ninegrid2 6.1126.0 → 6.1128.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.
@@ -122027,6 +122027,13 @@ class nxDiv extends HTMLElement
122027
122027
 
122028
122028
  #init = () => {
122029
122029
  console.log("super.connectedCallback");
122030
+
122031
+ for (const attr of this.attributes) {
122032
+ if (attr.name.startsWith("css-")) {
122033
+ // "css-" 접두사를 제거하고 CSS 속성명으로 변환
122034
+ this.style.setProperty(attr.name.substring(4), attr.value);
122035
+ }
122036
+ }
122030
122037
  };
122031
122038
  }
122032
122039
 
@@ -122039,28 +122046,18 @@ class nxButtons extends nxDiv {
122039
122046
  }
122040
122047
 
122041
122048
  connectedCallback() {
122042
- super.connectedCallback();
122043
122049
 
122044
122050
  console.log("==========", super.isInitialized);
122045
122051
  // 2. 초기화되지 않았을 때만 #init 함수를 호출합니다.
122046
- //if (!this.#isInitialized) {
122047
- //this.#init();
122048
- //this.#isInitialized = true; // 3. 초기화 후 플래그를 true로 변경합니다.
122052
+ if (super.isInitialized) return;
122049
122053
 
122050
-
122051
- //}
122052
- }
122054
+ this.#init();
122055
+ super.connectedCallback();
122056
+ };
122053
122057
 
122054
122058
  #init = () => {
122055
122059
  const contents = this.innerHTML.trim();
122056
122060
 
122057
- for (const attr of this.attributes) {
122058
- if (attr.name.startsWith("css-")) {
122059
- // "css-" 접두사를 제거하고 CSS 속성명으로 변환
122060
- this.style.setProperty(attr.name.substring(4), attr.value);
122061
- }
122062
- }
122063
-
122064
122061
  this.innerHTML = ""; // 기존 내부 HTML 제거
122065
122062
 
122066
122063
  const htmlTmpl = document.createElement("template");
@@ -122023,6 +122023,13 @@ class nxDiv extends HTMLElement
122023
122023
 
122024
122024
  #init = () => {
122025
122025
  console.log("super.connectedCallback");
122026
+
122027
+ for (const attr of this.attributes) {
122028
+ if (attr.name.startsWith("css-")) {
122029
+ // "css-" 접두사를 제거하고 CSS 속성명으로 변환
122030
+ this.style.setProperty(attr.name.substring(4), attr.value);
122031
+ }
122032
+ }
122026
122033
  };
122027
122034
  }
122028
122035
 
@@ -122035,28 +122042,18 @@ class nxButtons extends nxDiv {
122035
122042
  }
122036
122043
 
122037
122044
  connectedCallback() {
122038
- super.connectedCallback();
122039
122045
 
122040
122046
  console.log("==========", super.isInitialized);
122041
122047
  // 2. 초기화되지 않았을 때만 #init 함수를 호출합니다.
122042
- //if (!this.#isInitialized) {
122043
- //this.#init();
122044
- //this.#isInitialized = true; // 3. 초기화 후 플래그를 true로 변경합니다.
122048
+ if (super.isInitialized) return;
122045
122049
 
122046
-
122047
- //}
122048
- }
122050
+ this.#init();
122051
+ super.connectedCallback();
122052
+ };
122049
122053
 
122050
122054
  #init = () => {
122051
122055
  const contents = this.innerHTML.trim();
122052
122056
 
122053
- for (const attr of this.attributes) {
122054
- if (attr.name.startsWith("css-")) {
122055
- // "css-" 접두사를 제거하고 CSS 속성명으로 변환
122056
- this.style.setProperty(attr.name.substring(4), attr.value);
122057
- }
122058
- }
122059
-
122060
122057
  this.innerHTML = ""; // 기존 내부 HTML 제거
122061
122058
 
122062
122059
  const htmlTmpl = document.createElement("template");
package/dist/nx/_nxDiv.js CHANGED
@@ -18,5 +18,12 @@ export class nxDiv extends HTMLElement
18
18
 
19
19
  #init = () => {
20
20
  console.log("super.connectedCallback");
21
+
22
+ for (const attr of this.attributes) {
23
+ if (attr.name.startsWith("css-")) {
24
+ // "css-" 접두사를 제거하고 CSS 속성명으로 변환
25
+ this.style.setProperty(attr.name.substring(4), attr.value);
26
+ }
27
+ }
21
28
  };
22
29
  }
@@ -10,28 +10,18 @@ class nxButtons extends nxDiv {
10
10
  }
11
11
 
12
12
  connectedCallback() {
13
- super.connectedCallback();
14
13
 
15
14
  console.log("==========", super.isInitialized);
16
15
  // 2. 초기화되지 않았을 때만 #init 함수를 호출합니다.
17
- //if (!this.#isInitialized) {
18
- //this.#init();
19
- //this.#isInitialized = true; // 3. 초기화 후 플래그를 true로 변경합니다.
20
-
16
+ if (super.isInitialized) return;
21
17
 
22
- //}
23
- }
18
+ this.#init();
19
+ super.connectedCallback();
20
+ };
24
21
 
25
22
  #init = () => {
26
23
  const contents = this.innerHTML.trim();
27
24
 
28
- for (const attr of this.attributes) {
29
- if (attr.name.startsWith("css-")) {
30
- // "css-" 접두사를 제거하고 CSS 속성명으로 변환
31
- this.style.setProperty(attr.name.substring(4), attr.value);
32
- }
33
- }
34
-
35
25
  this.innerHTML = ""; // 기존 내부 HTML 제거
36
26
 
37
27
  const htmlTmpl = document.createElement("template");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1126.0",
4
+ "version": "6.1128.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/_nxDiv.js CHANGED
@@ -18,5 +18,12 @@ export class nxDiv extends HTMLElement
18
18
 
19
19
  #init = () => {
20
20
  console.log("super.connectedCallback");
21
+
22
+ for (const attr of this.attributes) {
23
+ if (attr.name.startsWith("css-")) {
24
+ // "css-" 접두사를 제거하고 CSS 속성명으로 변환
25
+ this.style.setProperty(attr.name.substring(4), attr.value);
26
+ }
27
+ }
21
28
  };
22
29
  }
@@ -10,28 +10,18 @@ class nxButtons extends nxDiv {
10
10
  }
11
11
 
12
12
  connectedCallback() {
13
- super.connectedCallback();
14
13
 
15
14
  console.log("==========", super.isInitialized);
16
15
  // 2. 초기화되지 않았을 때만 #init 함수를 호출합니다.
17
- //if (!this.#isInitialized) {
18
- //this.#init();
19
- //this.#isInitialized = true; // 3. 초기화 후 플래그를 true로 변경합니다.
20
-
16
+ if (super.isInitialized) return;
21
17
 
22
- //}
23
- }
18
+ this.#init();
19
+ super.connectedCallback();
20
+ };
24
21
 
25
22
  #init = () => {
26
23
  const contents = this.innerHTML.trim();
27
24
 
28
- for (const attr of this.attributes) {
29
- if (attr.name.startsWith("css-")) {
30
- // "css-" 접두사를 제거하고 CSS 속성명으로 변환
31
- this.style.setProperty(attr.name.substring(4), attr.value);
32
- }
33
- }
34
-
35
25
  this.innerHTML = ""; // 기존 내부 HTML 제거
36
26
 
37
27
  const htmlTmpl = document.createElement("template");