ninegrid2 6.1352.0 → 6.1354.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs.js +6 -14
- package/dist/bundle.esm.js +6 -14
- package/dist/nx/_nxDiv.js +2 -7
- package/dist/nx/nxButtons.js +2 -7
- package/package.json +1 -1
- package/src/nx/_nxDiv.js +2 -7
- package/src/nx/nxButtons.js +2 -7
package/dist/bundle.cjs.js
CHANGED
|
@@ -28568,15 +28568,12 @@ class nxDiv extends HTMLElement {
|
|
|
28568
28568
|
//console.log(this.innerHTML.trim());
|
|
28569
28569
|
|
|
28570
28570
|
this.originContents = this.innerHTML.trim();
|
|
28571
|
-
|
|
28572
|
-
// 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
|
|
28573
|
-
this.fragment = document.createDocumentFragment();
|
|
28574
|
-
while (this.firstChild) {
|
|
28575
|
-
this.fragment.appendChild(this.firstChild); // 원본 노드(이벤트 포함)를 이동
|
|
28576
|
-
}
|
|
28571
|
+
this.innerHTML = ""; // 기존 내부 HTML 제거
|
|
28577
28572
|
|
|
28578
28573
|
// 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
|
|
28579
|
-
if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div')
|
|
28574
|
+
if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
|
|
28575
|
+
this.shadowRoot.innerHTML = this.originContents;
|
|
28576
|
+
}
|
|
28580
28577
|
};
|
|
28581
28578
|
}
|
|
28582
28579
|
|
|
@@ -28901,16 +28898,11 @@ class nxButtons extends nxDiv {
|
|
|
28901
28898
|
@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
|
|
28902
28899
|
${ninegrid.getCustomPath(this,"nxButtons.css")}
|
|
28903
28900
|
</style>
|
|
28904
|
-
|
|
28901
|
+
|
|
28902
|
+
${this.originContents}
|
|
28905
28903
|
`;
|
|
28906
28904
|
|
|
28907
28905
|
target.appendChild(htmlTmpl.content.cloneNode(true));
|
|
28908
|
-
|
|
28909
|
-
// 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
|
|
28910
|
-
const container = target.querySelector('#container');
|
|
28911
|
-
if (this.fragment) {
|
|
28912
|
-
container.appendChild(this.fragment); // 원본 그대로 복구!
|
|
28913
|
-
}
|
|
28914
28906
|
}
|
|
28915
28907
|
}
|
|
28916
28908
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -28564,15 +28564,12 @@ class nxDiv extends HTMLElement {
|
|
|
28564
28564
|
//console.log(this.innerHTML.trim());
|
|
28565
28565
|
|
|
28566
28566
|
this.originContents = this.innerHTML.trim();
|
|
28567
|
-
|
|
28568
|
-
// 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
|
|
28569
|
-
this.fragment = document.createDocumentFragment();
|
|
28570
|
-
while (this.firstChild) {
|
|
28571
|
-
this.fragment.appendChild(this.firstChild); // 원본 노드(이벤트 포함)를 이동
|
|
28572
|
-
}
|
|
28567
|
+
this.innerHTML = ""; // 기존 내부 HTML 제거
|
|
28573
28568
|
|
|
28574
28569
|
// 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
|
|
28575
|
-
if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div')
|
|
28570
|
+
if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
|
|
28571
|
+
this.shadowRoot.innerHTML = this.originContents;
|
|
28572
|
+
}
|
|
28576
28573
|
};
|
|
28577
28574
|
}
|
|
28578
28575
|
|
|
@@ -28897,16 +28894,11 @@ class nxButtons extends nxDiv {
|
|
|
28897
28894
|
@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
|
|
28898
28895
|
${ninegrid.getCustomPath(this,"nxButtons.css")}
|
|
28899
28896
|
</style>
|
|
28900
|
-
|
|
28897
|
+
|
|
28898
|
+
${this.originContents}
|
|
28901
28899
|
`;
|
|
28902
28900
|
|
|
28903
28901
|
target.appendChild(htmlTmpl.content.cloneNode(true));
|
|
28904
|
-
|
|
28905
|
-
// 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
|
|
28906
|
-
const container = target.querySelector('#container');
|
|
28907
|
-
if (this.fragment) {
|
|
28908
|
-
container.appendChild(this.fragment); // 원본 그대로 복구!
|
|
28909
|
-
}
|
|
28910
28902
|
}
|
|
28911
28903
|
}
|
|
28912
28904
|
|
package/dist/nx/_nxDiv.js
CHANGED
|
@@ -135,16 +135,11 @@ export class nxDiv extends HTMLElement {
|
|
|
135
135
|
//console.log(this.innerHTML.trim());
|
|
136
136
|
|
|
137
137
|
this.originContents = this.innerHTML.trim();
|
|
138
|
-
|
|
139
|
-
// 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
|
|
140
|
-
this.fragment = document.createDocumentFragment();
|
|
141
|
-
while (this.firstChild) {
|
|
142
|
-
this.fragment.appendChild(this.firstChild); // 원본 노드(이벤트 포함)를 이동
|
|
143
|
-
}
|
|
138
|
+
this.innerHTML = ""; // 기존 내부 HTML 제거
|
|
144
139
|
|
|
145
140
|
// 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
|
|
146
141
|
if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
|
|
147
|
-
|
|
142
|
+
this.shadowRoot.innerHTML = this.originContents;
|
|
148
143
|
}
|
|
149
144
|
};
|
|
150
145
|
}
|
package/dist/nx/nxButtons.js
CHANGED
|
@@ -21,16 +21,11 @@ class nxButtons extends nxDiv {
|
|
|
21
21
|
@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
|
|
22
22
|
${ninegrid.getCustomPath(this,"nxButtons.css")}
|
|
23
23
|
</style>
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
${this.originContents}
|
|
25
26
|
`;
|
|
26
27
|
|
|
27
28
|
target.appendChild(htmlTmpl.content.cloneNode(true));
|
|
28
|
-
|
|
29
|
-
// 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
|
|
30
|
-
const container = target.querySelector('#container');
|
|
31
|
-
if (this.fragment) {
|
|
32
|
-
container.appendChild(this.fragment); // 원본 그대로 복구!
|
|
33
|
-
}
|
|
34
29
|
}
|
|
35
30
|
}
|
|
36
31
|
|
package/package.json
CHANGED
package/src/nx/_nxDiv.js
CHANGED
|
@@ -135,16 +135,11 @@ export class nxDiv extends HTMLElement {
|
|
|
135
135
|
//console.log(this.innerHTML.trim());
|
|
136
136
|
|
|
137
137
|
this.originContents = this.innerHTML.trim();
|
|
138
|
-
|
|
139
|
-
// 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
|
|
140
|
-
this.fragment = document.createDocumentFragment();
|
|
141
|
-
while (this.firstChild) {
|
|
142
|
-
this.fragment.appendChild(this.firstChild); // 원본 노드(이벤트 포함)를 이동
|
|
143
|
-
}
|
|
138
|
+
this.innerHTML = ""; // 기존 내부 HTML 제거
|
|
144
139
|
|
|
145
140
|
// 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
|
|
146
141
|
if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
|
|
147
|
-
|
|
142
|
+
this.shadowRoot.innerHTML = this.originContents;
|
|
148
143
|
}
|
|
149
144
|
};
|
|
150
145
|
}
|
package/src/nx/nxButtons.js
CHANGED
|
@@ -21,16 +21,11 @@ class nxButtons extends nxDiv {
|
|
|
21
21
|
@import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
|
|
22
22
|
${ninegrid.getCustomPath(this,"nxButtons.css")}
|
|
23
23
|
</style>
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
${this.originContents}
|
|
25
26
|
`;
|
|
26
27
|
|
|
27
28
|
target.appendChild(htmlTmpl.content.cloneNode(true));
|
|
28
|
-
|
|
29
|
-
// 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
|
|
30
|
-
const container = target.querySelector('#container');
|
|
31
|
-
if (this.fragment) {
|
|
32
|
-
container.appendChild(this.fragment); // 원본 그대로 복구!
|
|
33
|
-
}
|
|
34
29
|
}
|
|
35
30
|
}
|
|
36
31
|
|