ninegrid2 6.1397.0 → 6.1399.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.
@@ -28437,7 +28437,6 @@ class nxDiv extends HTMLElement {
28437
28437
  originContents;
28438
28438
  #isInitialized = false;
28439
28439
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
28440
- #hasChanged = false; // 1. 내부 상태 관리를 위한 프라이빗 변수
28441
28440
 
28442
28441
  constructor() {
28443
28442
  super();
@@ -28464,24 +28463,6 @@ class nxDiv extends HTMLElement {
28464
28463
  return false;
28465
28464
  }
28466
28465
 
28467
- // 2. changed Getter: 현재 변경 상태를 반환
28468
- get changed() {
28469
- return this.#hasChanged;
28470
- }
28471
-
28472
- // 3. changed Setter: 상태를 업데이트하고 UI(nx-title2)에 반영
28473
- set changed(v) {
28474
- const value = Boolean(v);
28475
- this.#hasChanged = value;
28476
-
28477
- // 기존 #changed 로직을 setter 내부로 통합
28478
- const parent = this.closest(".detail-wrapper");
28479
- if (parent) {
28480
- const el = parent.querySelector("nx-title2");
28481
- if (el) el.changed = value;
28482
- }
28483
- }
28484
-
28485
28466
  // 자식 클래스에서 접근 가능하도록 getter 제공
28486
28467
  get root() {
28487
28468
  return this.#root || this;
@@ -28564,7 +28545,7 @@ class nxDiv extends HTMLElement {
28564
28545
  const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
28565
28546
  this.#updateElement(el, val);
28566
28547
  });
28567
- this.changed = false;
28548
+ this.#changed(false);
28568
28549
  };
28569
28550
 
28570
28551
  setData = (jsonData) => {
@@ -28580,18 +28561,24 @@ class nxDiv extends HTMLElement {
28580
28561
  bChanged = true;
28581
28562
  }
28582
28563
  });
28583
- if (bChanged) this.#changed = true;
28564
+ if (bChanged) this.#changed(true);
28584
28565
  };
28585
28566
 
28586
28567
  initData = (jsonData) => {
28587
28568
  this.clearData(jsonData);
28588
- //this.#changed(false);
28589
- this.changed = false; // 4. setter 호출
28569
+ this.#changed(false);
28590
28570
  };
28591
28571
 
28572
+ #changed = (v) => {
28573
+ const parent = this.closest(".detail-wrapper");
28574
+ if (parent) {
28575
+ const el = parent.querySelector("nx-title2");
28576
+ if (el) el.changed = v;
28577
+ }
28578
+ }
28579
+
28592
28580
  #changeHandler = (e) => {
28593
- //this.#changed(true);
28594
- this.changed = true; // 4. setter 호출
28581
+ this.#changed(true);
28595
28582
  }
28596
28583
 
28597
28584
  #init = () => {
@@ -28433,7 +28433,6 @@ class nxDiv extends HTMLElement {
28433
28433
  originContents;
28434
28434
  #isInitialized = false;
28435
28435
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
28436
- #hasChanged = false; // 1. 내부 상태 관리를 위한 프라이빗 변수
28437
28436
 
28438
28437
  constructor() {
28439
28438
  super();
@@ -28460,24 +28459,6 @@ class nxDiv extends HTMLElement {
28460
28459
  return false;
28461
28460
  }
28462
28461
 
28463
- // 2. changed Getter: 현재 변경 상태를 반환
28464
- get changed() {
28465
- return this.#hasChanged;
28466
- }
28467
-
28468
- // 3. changed Setter: 상태를 업데이트하고 UI(nx-title2)에 반영
28469
- set changed(v) {
28470
- const value = Boolean(v);
28471
- this.#hasChanged = value;
28472
-
28473
- // 기존 #changed 로직을 setter 내부로 통합
28474
- const parent = this.closest(".detail-wrapper");
28475
- if (parent) {
28476
- const el = parent.querySelector("nx-title2");
28477
- if (el) el.changed = value;
28478
- }
28479
- }
28480
-
28481
28462
  // 자식 클래스에서 접근 가능하도록 getter 제공
28482
28463
  get root() {
28483
28464
  return this.#root || this;
@@ -28560,7 +28541,7 @@ class nxDiv extends HTMLElement {
28560
28541
  const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
28561
28542
  this.#updateElement(el, val);
28562
28543
  });
28563
- this.changed = false;
28544
+ this.#changed(false);
28564
28545
  };
28565
28546
 
28566
28547
  setData = (jsonData) => {
@@ -28576,18 +28557,24 @@ class nxDiv extends HTMLElement {
28576
28557
  bChanged = true;
28577
28558
  }
28578
28559
  });
28579
- if (bChanged) this.#changed = true;
28560
+ if (bChanged) this.#changed(true);
28580
28561
  };
28581
28562
 
28582
28563
  initData = (jsonData) => {
28583
28564
  this.clearData(jsonData);
28584
- //this.#changed(false);
28585
- this.changed = false; // 4. setter 호출
28565
+ this.#changed(false);
28586
28566
  };
28587
28567
 
28568
+ #changed = (v) => {
28569
+ const parent = this.closest(".detail-wrapper");
28570
+ if (parent) {
28571
+ const el = parent.querySelector("nx-title2");
28572
+ if (el) el.changed = v;
28573
+ }
28574
+ }
28575
+
28588
28576
  #changeHandler = (e) => {
28589
- //this.#changed(true);
28590
- this.changed = true; // 4. setter 호출
28577
+ this.#changed(true);
28591
28578
  }
28592
28579
 
28593
28580
  #init = () => {
package/dist/nx/_nxDiv.js CHANGED
@@ -4,7 +4,6 @@ export class nxDiv extends HTMLElement {
4
4
  originContents;
5
5
  #isInitialized = false;
6
6
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
7
- #hasChanged = false; // 1. 내부 상태 관리를 위한 프라이빗 변수
8
7
 
9
8
  constructor() {
10
9
  super();
@@ -31,24 +30,6 @@ export class nxDiv extends HTMLElement {
31
30
  return false;
32
31
  }
33
32
 
34
- // 2. changed Getter: 현재 변경 상태를 반환
35
- get changed() {
36
- return this.#hasChanged;
37
- }
38
-
39
- // 3. changed Setter: 상태를 업데이트하고 UI(nx-title2)에 반영
40
- set changed(v) {
41
- const value = Boolean(v);
42
- this.#hasChanged = value;
43
-
44
- // 기존 #changed 로직을 setter 내부로 통합
45
- const parent = this.closest(".detail-wrapper");
46
- if (parent) {
47
- const el = parent.querySelector("nx-title2");
48
- if (el) el.changed = value;
49
- }
50
- }
51
-
52
33
  // 자식 클래스에서 접근 가능하도록 getter 제공
53
34
  get root() {
54
35
  return this.#root || this;
@@ -131,7 +112,7 @@ export class nxDiv extends HTMLElement {
131
112
  const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
132
113
  this.#updateElement(el, val);
133
114
  });
134
- this.changed = false;
115
+ this.#changed(false);
135
116
  };
136
117
 
137
118
  setData = (jsonData) => {
@@ -147,18 +128,24 @@ export class nxDiv extends HTMLElement {
147
128
  bChanged = true;
148
129
  }
149
130
  });
150
- if (bChanged) this.#changed = true;
131
+ if (bChanged) this.#changed(true);
151
132
  };
152
133
 
153
134
  initData = (jsonData) => {
154
135
  this.clearData(jsonData);
155
- //this.#changed(false);
156
- this.changed = false; // 4. setter 호출
136
+ this.#changed(false);
157
137
  };
158
138
 
139
+ #changed = (v) => {
140
+ const parent = this.closest(".detail-wrapper");
141
+ if (parent) {
142
+ const el = parent.querySelector("nx-title2");
143
+ if (el) el.changed = v;
144
+ }
145
+ }
146
+
159
147
  #changeHandler = (e) => {
160
- //this.#changed(true);
161
- this.changed = true; // 4. setter 호출
148
+ this.#changed(true);
162
149
  }
163
150
 
164
151
  #init = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1397.0",
4
+ "version": "6.1399.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/_nxDiv.js CHANGED
@@ -4,7 +4,6 @@ export class nxDiv extends HTMLElement {
4
4
  originContents;
5
5
  #isInitialized = false;
6
6
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
7
- #hasChanged = false; // 1. 내부 상태 관리를 위한 프라이빗 변수
8
7
 
9
8
  constructor() {
10
9
  super();
@@ -31,24 +30,6 @@ export class nxDiv extends HTMLElement {
31
30
  return false;
32
31
  }
33
32
 
34
- // 2. changed Getter: 현재 변경 상태를 반환
35
- get changed() {
36
- return this.#hasChanged;
37
- }
38
-
39
- // 3. changed Setter: 상태를 업데이트하고 UI(nx-title2)에 반영
40
- set changed(v) {
41
- const value = Boolean(v);
42
- this.#hasChanged = value;
43
-
44
- // 기존 #changed 로직을 setter 내부로 통합
45
- const parent = this.closest(".detail-wrapper");
46
- if (parent) {
47
- const el = parent.querySelector("nx-title2");
48
- if (el) el.changed = value;
49
- }
50
- }
51
-
52
33
  // 자식 클래스에서 접근 가능하도록 getter 제공
53
34
  get root() {
54
35
  return this.#root || this;
@@ -131,7 +112,7 @@ export class nxDiv extends HTMLElement {
131
112
  const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
132
113
  this.#updateElement(el, val);
133
114
  });
134
- this.changed = false;
115
+ this.#changed(false);
135
116
  };
136
117
 
137
118
  setData = (jsonData) => {
@@ -147,18 +128,24 @@ export class nxDiv extends HTMLElement {
147
128
  bChanged = true;
148
129
  }
149
130
  });
150
- if (bChanged) this.#changed = true;
131
+ if (bChanged) this.#changed(true);
151
132
  };
152
133
 
153
134
  initData = (jsonData) => {
154
135
  this.clearData(jsonData);
155
- //this.#changed(false);
156
- this.changed = false; // 4. setter 호출
136
+ this.#changed(false);
157
137
  };
158
138
 
139
+ #changed = (v) => {
140
+ const parent = this.closest(".detail-wrapper");
141
+ if (parent) {
142
+ const el = parent.querySelector("nx-title2");
143
+ if (el) el.changed = v;
144
+ }
145
+ }
146
+
159
147
  #changeHandler = (e) => {
160
- //this.#changed(true);
161
- this.changed = true; // 4. setter 호출
148
+ this.#changed(true);
162
149
  }
163
150
 
164
151
  #init = () => {