ninegrid2 6.1402.0 → 6.1404.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.
- package/dist/bundle.cjs.js +22 -3
- package/dist/bundle.esm.js +22 -3
- package/dist/nx/_nxDiv.js +22 -3
- package/package.json +1 -1
- package/src/nx/_nxDiv.js +22 -3
package/dist/bundle.cjs.js
CHANGED
|
@@ -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;
|
|
@@ -28545,7 +28562,7 @@ class nxDiv extends HTMLElement {
|
|
|
28545
28562
|
const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
|
|
28546
28563
|
this.#updateElement(el, val);
|
|
28547
28564
|
});
|
|
28548
|
-
this
|
|
28565
|
+
this.changed = false;
|
|
28549
28566
|
};
|
|
28550
28567
|
|
|
28551
28568
|
setData = (jsonData) => {
|
|
@@ -28561,12 +28578,12 @@ class nxDiv extends HTMLElement {
|
|
|
28561
28578
|
bChanged = true;
|
|
28562
28579
|
}
|
|
28563
28580
|
});
|
|
28564
|
-
if (bChanged) this
|
|
28581
|
+
if (bChanged) this.changed = true;
|
|
28565
28582
|
};
|
|
28566
28583
|
|
|
28567
28584
|
initData = (jsonData) => {
|
|
28568
28585
|
this.clearData(jsonData);
|
|
28569
|
-
this
|
|
28586
|
+
this.changed = false;
|
|
28570
28587
|
};
|
|
28571
28588
|
|
|
28572
28589
|
#changed = (v) => {
|
|
@@ -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) => {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -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;
|
|
@@ -28541,7 +28558,7 @@ class nxDiv extends HTMLElement {
|
|
|
28541
28558
|
const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
|
|
28542
28559
|
this.#updateElement(el, val);
|
|
28543
28560
|
});
|
|
28544
|
-
this
|
|
28561
|
+
this.changed = false;
|
|
28545
28562
|
};
|
|
28546
28563
|
|
|
28547
28564
|
setData = (jsonData) => {
|
|
@@ -28557,12 +28574,12 @@ class nxDiv extends HTMLElement {
|
|
|
28557
28574
|
bChanged = true;
|
|
28558
28575
|
}
|
|
28559
28576
|
});
|
|
28560
|
-
if (bChanged) this
|
|
28577
|
+
if (bChanged) this.changed = true;
|
|
28561
28578
|
};
|
|
28562
28579
|
|
|
28563
28580
|
initData = (jsonData) => {
|
|
28564
28581
|
this.clearData(jsonData);
|
|
28565
|
-
this
|
|
28582
|
+
this.changed = false;
|
|
28566
28583
|
};
|
|
28567
28584
|
|
|
28568
28585
|
#changed = (v) => {
|
|
@@ -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;
|
|
@@ -112,7 +129,7 @@ export class nxDiv extends HTMLElement {
|
|
|
112
129
|
const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
|
|
113
130
|
this.#updateElement(el, val);
|
|
114
131
|
});
|
|
115
|
-
this
|
|
132
|
+
this.changed = false;
|
|
116
133
|
};
|
|
117
134
|
|
|
118
135
|
setData = (jsonData) => {
|
|
@@ -128,12 +145,12 @@ export class nxDiv extends HTMLElement {
|
|
|
128
145
|
bChanged = true;
|
|
129
146
|
}
|
|
130
147
|
});
|
|
131
|
-
if (bChanged) this
|
|
148
|
+
if (bChanged) this.changed = true;
|
|
132
149
|
};
|
|
133
150
|
|
|
134
151
|
initData = (jsonData) => {
|
|
135
152
|
this.clearData(jsonData);
|
|
136
|
-
this
|
|
153
|
+
this.changed = false;
|
|
137
154
|
};
|
|
138
155
|
|
|
139
156
|
#changed = (v) => {
|
|
@@ -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
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;
|
|
@@ -112,7 +129,7 @@ export class nxDiv extends HTMLElement {
|
|
|
112
129
|
const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
|
|
113
130
|
this.#updateElement(el, val);
|
|
114
131
|
});
|
|
115
|
-
this
|
|
132
|
+
this.changed = false;
|
|
116
133
|
};
|
|
117
134
|
|
|
118
135
|
setData = (jsonData) => {
|
|
@@ -128,12 +145,12 @@ export class nxDiv extends HTMLElement {
|
|
|
128
145
|
bChanged = true;
|
|
129
146
|
}
|
|
130
147
|
});
|
|
131
|
-
if (bChanged) this
|
|
148
|
+
if (bChanged) this.changed = true;
|
|
132
149
|
};
|
|
133
150
|
|
|
134
151
|
initData = (jsonData) => {
|
|
135
152
|
this.clearData(jsonData);
|
|
136
|
-
this
|
|
153
|
+
this.changed = false;
|
|
137
154
|
};
|
|
138
155
|
|
|
139
156
|
#changed = (v) => {
|
|
@@ -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) => {
|