ninegrid2 6.1352.0 → 6.1353.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.
@@ -28566,8 +28566,8 @@ class nxDiv extends HTMLElement {
28566
28566
 
28567
28567
  //console.log("=========");
28568
28568
  //console.log(this.innerHTML.trim());
28569
-
28570
- this.originContents = this.innerHTML.trim();
28569
+ /**
28570
+ //this.originContents = this.innerHTML.trim();
28571
28571
  //this.innerHTML = ""; // 기존 내부 HTML 제거
28572
28572
  // 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
28573
28573
  this.fragment = document.createDocumentFragment();
@@ -28576,7 +28576,9 @@ class nxDiv extends HTMLElement {
28576
28576
  }
28577
28577
 
28578
28578
  // 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
28579
- if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') ;
28579
+ if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
28580
+ //this.shadowRoot.innerHTML = this.originContents;
28581
+ } */
28580
28582
  };
28581
28583
  }
28582
28584
 
@@ -28901,16 +28903,13 @@ class nxButtons extends nxDiv {
28901
28903
  @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
28902
28904
  ${ninegrid.getCustomPath(this,"nxButtons.css")}
28903
28905
  </style>
28904
- <div id="container"></div>
28906
+ <slot></slot>
28905
28907
  `;
28906
28908
 
28907
28909
  target.appendChild(htmlTmpl.content.cloneNode(true));
28908
28910
 
28909
28911
  // 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
28910
- const container = target.querySelector('#container');
28911
- if (this.fragment) {
28912
- container.appendChild(this.fragment); // 원본 그대로 복구!
28913
- }
28912
+
28914
28913
  }
28915
28914
  }
28916
28915
 
@@ -28562,8 +28562,8 @@ class nxDiv extends HTMLElement {
28562
28562
 
28563
28563
  //console.log("=========");
28564
28564
  //console.log(this.innerHTML.trim());
28565
-
28566
- this.originContents = this.innerHTML.trim();
28565
+ /**
28566
+ //this.originContents = this.innerHTML.trim();
28567
28567
  //this.innerHTML = ""; // 기존 내부 HTML 제거
28568
28568
  // 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
28569
28569
  this.fragment = document.createDocumentFragment();
@@ -28572,7 +28572,9 @@ class nxDiv extends HTMLElement {
28572
28572
  }
28573
28573
 
28574
28574
  // 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
28575
- if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') ;
28575
+ if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
28576
+ //this.shadowRoot.innerHTML = this.originContents;
28577
+ } */
28576
28578
  };
28577
28579
  }
28578
28580
 
@@ -28897,16 +28899,13 @@ class nxButtons extends nxDiv {
28897
28899
  @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
28898
28900
  ${ninegrid.getCustomPath(this,"nxButtons.css")}
28899
28901
  </style>
28900
- <div id="container"></div>
28902
+ <slot></slot>
28901
28903
  `;
28902
28904
 
28903
28905
  target.appendChild(htmlTmpl.content.cloneNode(true));
28904
28906
 
28905
28907
  // 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
28906
- const container = target.querySelector('#container');
28907
- if (this.fragment) {
28908
- container.appendChild(this.fragment); // 원본 그대로 복구!
28909
- }
28908
+
28910
28909
  }
28911
28910
  }
28912
28911
 
package/dist/nx/_nxDiv.js CHANGED
@@ -133,8 +133,8 @@ export class nxDiv extends HTMLElement {
133
133
 
134
134
  //console.log("=========");
135
135
  //console.log(this.innerHTML.trim());
136
-
137
- this.originContents = this.innerHTML.trim();
136
+ /**
137
+ //this.originContents = this.innerHTML.trim();
138
138
  //this.innerHTML = ""; // 기존 내부 HTML 제거
139
139
  // 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
140
140
  this.fragment = document.createDocumentFragment();
@@ -145,6 +145,6 @@ export class nxDiv extends HTMLElement {
145
145
  // 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
146
146
  if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
147
147
  //this.shadowRoot.innerHTML = this.originContents;
148
- }
148
+ } */
149
149
  };
150
150
  }
@@ -21,16 +21,13 @@ 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
- <div id="container"></div>
24
+ <slot></slot>
25
25
  `;
26
26
 
27
27
  target.appendChild(htmlTmpl.content.cloneNode(true));
28
28
 
29
29
  // 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
30
- const container = target.querySelector('#container');
31
- if (this.fragment) {
32
- container.appendChild(this.fragment); // 원본 그대로 복구!
33
- }
30
+
34
31
  }
35
32
  }
36
33
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1352.0",
4
+ "version": "6.1353.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/_nxDiv.js CHANGED
@@ -133,8 +133,8 @@ export class nxDiv extends HTMLElement {
133
133
 
134
134
  //console.log("=========");
135
135
  //console.log(this.innerHTML.trim());
136
-
137
- this.originContents = this.innerHTML.trim();
136
+ /**
137
+ //this.originContents = this.innerHTML.trim();
138
138
  //this.innerHTML = ""; // 기존 내부 HTML 제거
139
139
  // 1. 문자열로 복사하는 대신, 자식 노드들을 안전하게 '대피'시킵니다.
140
140
  this.fragment = document.createDocumentFragment();
@@ -145,6 +145,6 @@ export class nxDiv extends HTMLElement {
145
145
  // 만약 순수 nx-div로만 쓰일 경우(상속 x), 내용을 shadow에 채워줌
146
146
  if (this.shadowRoot && this.tagName.toLowerCase() === 'nx-div') {
147
147
  //this.shadowRoot.innerHTML = this.originContents;
148
- }
148
+ } */
149
149
  };
150
150
  }
@@ -21,16 +21,13 @@ 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
- <div id="container"></div>
24
+ <slot></slot>
25
25
  `;
26
26
 
27
27
  target.appendChild(htmlTmpl.content.cloneNode(true));
28
28
 
29
29
  // 2. 대피시켰던 원본 노드들을 다시 목적지에 집어넣습니다.
30
- const container = target.querySelector('#container');
31
- if (this.fragment) {
32
- container.appendChild(this.fragment); // 원본 그대로 복구!
33
- }
30
+
34
31
  }
35
32
  }
36
33