ninegrid2 6.1401.0 → 6.1403.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,6 +28437,7 @@ class nxDiv extends HTMLElement {
28437
28437
  originContents;
28438
28438
  #isInitialized = false;
28439
28439
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
28440
+ #hasChanged = false;
28440
28441
 
28441
28442
  constructor() {
28442
28443
  super();
@@ -28463,6 +28464,22 @@ class nxDiv extends HTMLElement {
28463
28464
  return false;
28464
28465
  }
28465
28466
 
28467
+ get changed() {
28468
+ return this.#hasChanged;
28469
+ }
28470
+
28471
+ set changed(v) {
28472
+ const value = Boolean(v);
28473
+ this.#hasChanged = value;
28474
+
28475
+ // 기존 #changed 로직을 setter 내부로 통합
28476
+ const parent = this.closest(".detail-wrapper");
28477
+ if (parent) {
28478
+ const el = parent.querySelector("nx-title2");
28479
+ if (el) el.changed = value;
28480
+ }
28481
+ }
28482
+
28466
28483
  // 자식 클래스에서 접근 가능하도록 getter 제공
28467
28484
  get root() {
28468
28485
  return this.#root || this;
@@ -28575,6 +28592,8 @@ class nxDiv extends HTMLElement {
28575
28592
  const el = parent.querySelector("nx-title2");
28576
28593
  if (el) el.changed = v;
28577
28594
  }
28595
+
28596
+ this.changed = v;
28578
28597
  }
28579
28598
 
28580
28599
  #changeHandler = (e) => {
@@ -28433,6 +28433,7 @@ class nxDiv extends HTMLElement {
28433
28433
  originContents;
28434
28434
  #isInitialized = false;
28435
28435
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
28436
+ #hasChanged = false;
28436
28437
 
28437
28438
  constructor() {
28438
28439
  super();
@@ -28459,6 +28460,22 @@ class nxDiv extends HTMLElement {
28459
28460
  return false;
28460
28461
  }
28461
28462
 
28463
+ get changed() {
28464
+ return this.#hasChanged;
28465
+ }
28466
+
28467
+ set changed(v) {
28468
+ const value = Boolean(v);
28469
+ this.#hasChanged = value;
28470
+
28471
+ // 기존 #changed 로직을 setter 내부로 통합
28472
+ const parent = this.closest(".detail-wrapper");
28473
+ if (parent) {
28474
+ const el = parent.querySelector("nx-title2");
28475
+ if (el) el.changed = value;
28476
+ }
28477
+ }
28478
+
28462
28479
  // 자식 클래스에서 접근 가능하도록 getter 제공
28463
28480
  get root() {
28464
28481
  return this.#root || this;
@@ -28571,6 +28588,8 @@ class nxDiv extends HTMLElement {
28571
28588
  const el = parent.querySelector("nx-title2");
28572
28589
  if (el) el.changed = v;
28573
28590
  }
28591
+
28592
+ this.changed = v;
28574
28593
  }
28575
28594
 
28576
28595
  #changeHandler = (e) => {
package/dist/nx/_nxDiv.js CHANGED
@@ -4,6 +4,7 @@ export class nxDiv extends HTMLElement {
4
4
  originContents;
5
5
  #isInitialized = false;
6
6
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
7
+ #hasChanged = false;
7
8
 
8
9
  constructor() {
9
10
  super();
@@ -30,6 +31,22 @@ export class nxDiv extends HTMLElement {
30
31
  return false;
31
32
  }
32
33
 
34
+ get changed() {
35
+ return this.#hasChanged;
36
+ }
37
+
38
+ set changed(v) {
39
+ const value = Boolean(v);
40
+ this.#hasChanged = value;
41
+
42
+ // 기존 #changed 로직을 setter 내부로 통합
43
+ const parent = this.closest(".detail-wrapper");
44
+ if (parent) {
45
+ const el = parent.querySelector("nx-title2");
46
+ if (el) el.changed = value;
47
+ }
48
+ }
49
+
33
50
  // 자식 클래스에서 접근 가능하도록 getter 제공
34
51
  get root() {
35
52
  return this.#root || this;
@@ -142,6 +159,8 @@ export class nxDiv extends HTMLElement {
142
159
  const el = parent.querySelector("nx-title2");
143
160
  if (el) el.changed = v;
144
161
  }
162
+
163
+ this.changed = v;
145
164
  }
146
165
 
147
166
  #changeHandler = (e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1401.0",
4
+ "version": "6.1403.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/_nxDiv.js CHANGED
@@ -4,6 +4,7 @@ export class nxDiv extends HTMLElement {
4
4
  originContents;
5
5
  #isInitialized = false;
6
6
  #root; // Shadow DOM 사용 여부에 따라 shadowRoot 또는 this를 가리킴
7
+ #hasChanged = false;
7
8
 
8
9
  constructor() {
9
10
  super();
@@ -30,6 +31,22 @@ export class nxDiv extends HTMLElement {
30
31
  return false;
31
32
  }
32
33
 
34
+ get changed() {
35
+ return this.#hasChanged;
36
+ }
37
+
38
+ set changed(v) {
39
+ const value = Boolean(v);
40
+ this.#hasChanged = value;
41
+
42
+ // 기존 #changed 로직을 setter 내부로 통합
43
+ const parent = this.closest(".detail-wrapper");
44
+ if (parent) {
45
+ const el = parent.querySelector("nx-title2");
46
+ if (el) el.changed = value;
47
+ }
48
+ }
49
+
33
50
  // 자식 클래스에서 접근 가능하도록 getter 제공
34
51
  get root() {
35
52
  return this.#root || this;
@@ -142,6 +159,8 @@ export class nxDiv extends HTMLElement {
142
159
  const el = parent.querySelector("nx-title2");
143
160
  if (el) el.changed = v;
144
161
  }
162
+
163
+ this.changed = v;
145
164
  }
146
165
 
147
166
  #changeHandler = (e) => {