|
|
|
@ -61,10 +61,12 @@ class NameLabel extends HTMLLabelElement {
|
|
|
|
|
}
|
|
|
|
|
if(doctx != null){
|
|
|
|
|
this.setAttribute("data-ref-doctx", doctx);
|
|
|
|
|
if(this.getAttribute("for") != null && this.getAttribute("for").indexOf("--") == -1){
|
|
|
|
|
this.htmlFor = this.getAttribute("for")+"--"+doctx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
customElements.define("name-label", NameLabel, { extends: "label" });
|
|
|
|
@ -177,17 +179,19 @@ class CurlyBrackets extends HTMLTemplateElement {
|
|
|
|
|
constructor() {
|
|
|
|
|
super();
|
|
|
|
|
|
|
|
|
|
let curlyBracketsOpen = String.fromCharCode(123); //중괄호시작
|
|
|
|
|
|
|
|
|
|
let thisCon = this.content;
|
|
|
|
|
|
|
|
|
|
let trs = thisCon.querySelectorAll("tr");
|
|
|
|
|
|
|
|
|
|
trs.forEach(function(node) {
|
|
|
|
|
let key = node.getAttribute("data-key");
|
|
|
|
|
if(key != null && key != "" && key.indexOf("{") == -1){
|
|
|
|
|
if(key != null && key != "" && key.indexOf(curlyBracketsOpen) == -1){
|
|
|
|
|
node.setAttribute("data-key","{"+key+"}");
|
|
|
|
|
}
|
|
|
|
|
let index = node.getAttribute("data-index");
|
|
|
|
|
if(index != null && index != "" && index.indexOf("{") == -1){
|
|
|
|
|
if(index != null && index != "" && index.indexOf(curlyBracketsOpen) == -1){
|
|
|
|
|
node.setAttribute("data-index","{"+index+"}");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -202,7 +206,7 @@ class CurlyBrackets extends HTMLTemplateElement {
|
|
|
|
|
node.setAttribute("ondblclick","{ondblclick}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(node.textContent.trim() != "" && node.textContent.indexOf("{") == -1){
|
|
|
|
|
if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){
|
|
|
|
|
node.textContent = "{"+node.textContent.trim()+"}";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|