ninegrid2 6.1268.0 → 6.1270.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.
@@ -121958,6 +121958,9 @@ class nxDiv extends HTMLElement {
121958
121958
  }
121959
121959
  }
121960
121960
 
121961
+ console.log("=========");
121962
+ console.log(this.innerHTML.trim());
121963
+
121961
121964
  this.originContents = this.innerHTML.trim();
121962
121965
  this.innerHTML = ""; // 기존 내부 HTML 제거
121963
121966
 
@@ -122250,7 +122253,7 @@ class nxPanel extends nxDiv {
122250
122253
 
122251
122254
  customElements.define("nx-panel", nxPanel);
122252
122255
 
122253
- class nxButtons extends nxDiv {
122256
+ class nxButtons extends HTMLElement {
122254
122257
 
122255
122258
  constructor() {
122256
122259
  super();
@@ -122261,44 +122264,8 @@ class nxButtons extends nxDiv {
122261
122264
  };
122262
122265
 
122263
122266
  #init = () => {
122264
- const target = this.shadowRoot || this;
122265
-
122266
- const htmlTmpl = document.createElement("template");
122267
- htmlTmpl.innerHTML = `
122268
- <style>
122269
- @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
122270
- ${ninegrid.getCustomPath(this,"nxButtons.css")}
122271
- </style>
122272
-
122273
- ${this.originContents}
122274
- `;
122275
-
122276
- console.log(htmlTmpl);
122277
122267
 
122278
- target.appendChild(htmlTmpl.content.cloneNode(true));
122279
-
122280
- target.addEventListener('click', (e) => {
122281
-
122282
- const btn = e.target.closest('button');
122283
- if (!btn) return;
122284
-
122285
- //const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
122286
-
122287
- const actionName = btn.getAttribute('on-click');
122288
-
122289
- console.log(btn, actionName, this[actionName]);
122290
- console.log(typeof this[actionName]);
122291
- if (actionName) {
122292
- // 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
122293
- if (typeof this[actionName] === 'function') {
122294
- this[actionName](e);
122295
- }
122296
- // 2. 없으면 전역 window에서 확인
122297
- else if (typeof window[actionName] === 'function') {
122298
- window[actionName](e);
122299
- }
122300
- }
122301
- });
122268
+ return;
122302
122269
  }
122303
122270
  }
122304
122271
 
@@ -121954,6 +121954,9 @@ class nxDiv extends HTMLElement {
121954
121954
  }
121955
121955
  }
121956
121956
 
121957
+ console.log("=========");
121958
+ console.log(this.innerHTML.trim());
121959
+
121957
121960
  this.originContents = this.innerHTML.trim();
121958
121961
  this.innerHTML = ""; // 기존 내부 HTML 제거
121959
121962
 
@@ -122246,7 +122249,7 @@ class nxPanel extends nxDiv {
122246
122249
 
122247
122250
  customElements.define("nx-panel", nxPanel);
122248
122251
 
122249
- class nxButtons extends nxDiv {
122252
+ class nxButtons extends HTMLElement {
122250
122253
 
122251
122254
  constructor() {
122252
122255
  super();
@@ -122257,44 +122260,8 @@ class nxButtons extends nxDiv {
122257
122260
  };
122258
122261
 
122259
122262
  #init = () => {
122260
- const target = this.shadowRoot || this;
122261
-
122262
- const htmlTmpl = document.createElement("template");
122263
- htmlTmpl.innerHTML = `
122264
- <style>
122265
- @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/nxButtons.css";
122266
- ${ninegrid.getCustomPath(this,"nxButtons.css")}
122267
- </style>
122268
-
122269
- ${this.originContents}
122270
- `;
122271
-
122272
- console.log(htmlTmpl);
122273
122263
 
122274
- target.appendChild(htmlTmpl.content.cloneNode(true));
122275
-
122276
- target.addEventListener('click', (e) => {
122277
-
122278
- const btn = e.target.closest('button');
122279
- if (!btn) return;
122280
-
122281
- //const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
122282
-
122283
- const actionName = btn.getAttribute('on-click');
122284
-
122285
- console.log(btn, actionName, this[actionName]);
122286
- console.log(typeof this[actionName]);
122287
- if (actionName) {
122288
- // 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
122289
- if (typeof this[actionName] === 'function') {
122290
- this[actionName](e);
122291
- }
122292
- // 2. 없으면 전역 window에서 확인
122293
- else if (typeof window[actionName] === 'function') {
122294
- window[actionName](e);
122295
- }
122296
- }
122297
- });
122264
+ return;
122298
122265
  }
122299
122266
  }
122300
122267
 
package/dist/nx/_nxDiv.js CHANGED
@@ -120,6 +120,9 @@ export class nxDiv extends HTMLElement {
120
120
  }
121
121
  }
122
122
 
123
+ console.log("=========");
124
+ console.log(this.innerHTML.trim());
125
+
123
126
  this.originContents = this.innerHTML.trim();
124
127
  this.innerHTML = ""; // 기존 내부 HTML 제거
125
128
 
@@ -1,7 +1,7 @@
1
1
  import ninegrid from "../index.js";
2
2
  import {nxDiv} from "./_nxDiv.js";
3
3
 
4
- class nxButtons extends nxDiv {
4
+ class nxButtons extends HTMLElement {
5
5
 
6
6
  constructor() {
7
7
  super();
@@ -12,6 +12,9 @@ class nxButtons extends nxDiv {
12
12
  };
13
13
 
14
14
  #init = () => {
15
+
16
+ return;
17
+
15
18
  const target = this.shadowRoot || this;
16
19
 
17
20
  const htmlTmpl = document.createElement("template");
@@ -24,7 +27,7 @@ class nxButtons extends nxDiv {
24
27
  ${this.originContents}
25
28
  `;
26
29
 
27
- console.log(htmlTmpl);
30
+ //console.log(htmlTmpl);
28
31
 
29
32
  target.appendChild(htmlTmpl.content.cloneNode(true));
30
33
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1268.0",
4
+ "version": "6.1270.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/_nxDiv.js CHANGED
@@ -120,6 +120,9 @@ export class nxDiv extends HTMLElement {
120
120
  }
121
121
  }
122
122
 
123
+ console.log("=========");
124
+ console.log(this.innerHTML.trim());
125
+
123
126
  this.originContents = this.innerHTML.trim();
124
127
  this.innerHTML = ""; // 기존 내부 HTML 제거
125
128
 
@@ -1,7 +1,7 @@
1
1
  import ninegrid from "../index.js";
2
2
  import {nxDiv} from "./_nxDiv.js";
3
3
 
4
- class nxButtons extends nxDiv {
4
+ class nxButtons extends HTMLElement {
5
5
 
6
6
  constructor() {
7
7
  super();
@@ -12,6 +12,9 @@ class nxButtons extends nxDiv {
12
12
  };
13
13
 
14
14
  #init = () => {
15
+
16
+ return;
17
+
15
18
  const target = this.shadowRoot || this;
16
19
 
17
20
  const htmlTmpl = document.createElement("template");
@@ -24,7 +27,7 @@ class nxButtons extends nxDiv {
24
27
  ${this.originContents}
25
28
  `;
26
29
 
27
- console.log(htmlTmpl);
30
+ //console.log(htmlTmpl);
28
31
 
29
32
  target.appendChild(htmlTmpl.content.cloneNode(true));
30
33