ninegrid2 6.1382.0 → 6.1384.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.
@@ -28501,45 +28501,6 @@ class nxDiv extends HTMLElement {
28501
28501
  return jsonData;
28502
28502
  };
28503
28503
 
28504
- // [공통 로직 1] 특정 요소에 값을 쓰거나 초기화하는 핵심 함수
28505
- #updateElement(el, value) {
28506
- const tagName = el.tagName.toUpperCase();
28507
- const type = el.type;
28508
- let isChanged = false;
28509
-
28510
- if (["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"].includes(tagName)) {
28511
- if (type === "checkbox") {
28512
- const t = el.getAttribute("true-value") || "Y";
28513
- const isChecked = (String(t) === String(value));
28514
- if (el.checked !== isChecked) isChanged = true;
28515
- el.checked = isChecked;
28516
- } else if (type === "radio") {
28517
- const isChecked = (String(el.value) === String(value));
28518
- if (el.checked !== isChecked) isChanged = true;
28519
- el.checked = isChecked;
28520
- } else {
28521
- if (el.value !== value) isChanged = true;
28522
- el.value = value;
28523
- }
28524
- } else {
28525
- if (el.textContent !== value) isChanged = true;
28526
- el.textContent = value;
28527
- }
28528
- return isChanged;
28529
- }
28530
-
28531
- // 파라미터가 있으면 해당 값으로, 없으면 전체 공백 초기화
28532
- clearData = (jsonData = {}) => {
28533
- this.#refreshListeners();
28534
- this.#getElements().forEach(el => {
28535
- const key = el.name;
28536
- if (!key) return;
28537
- const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
28538
- this.#updateElement(el, val);
28539
- });
28540
- this.#changed(false);
28541
- };
28542
-
28543
28504
  setData = (jsonData) => {
28544
28505
  this.#getElements().forEach(el => {
28545
28506
  el.removeEventListener("input", this.#changeHandler);
@@ -28582,12 +28543,6 @@ class nxDiv extends HTMLElement {
28582
28543
  if (bChanged) this.#changed(bChanged);
28583
28544
  };
28584
28545
 
28585
- clearData = (bChanged) => {
28586
-
28587
-
28588
- this.#changed(false);
28589
- };
28590
-
28591
28546
  initData = (jsonData) => {
28592
28547
  this.setData(jsonData);
28593
28548
  this.#changed(false);
@@ -28497,45 +28497,6 @@ class nxDiv extends HTMLElement {
28497
28497
  return jsonData;
28498
28498
  };
28499
28499
 
28500
- // [공통 로직 1] 특정 요소에 값을 쓰거나 초기화하는 핵심 함수
28501
- #updateElement(el, value) {
28502
- const tagName = el.tagName.toUpperCase();
28503
- const type = el.type;
28504
- let isChanged = false;
28505
-
28506
- if (["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"].includes(tagName)) {
28507
- if (type === "checkbox") {
28508
- const t = el.getAttribute("true-value") || "Y";
28509
- const isChecked = (String(t) === String(value));
28510
- if (el.checked !== isChecked) isChanged = true;
28511
- el.checked = isChecked;
28512
- } else if (type === "radio") {
28513
- const isChecked = (String(el.value) === String(value));
28514
- if (el.checked !== isChecked) isChanged = true;
28515
- el.checked = isChecked;
28516
- } else {
28517
- if (el.value !== value) isChanged = true;
28518
- el.value = value;
28519
- }
28520
- } else {
28521
- if (el.textContent !== value) isChanged = true;
28522
- el.textContent = value;
28523
- }
28524
- return isChanged;
28525
- }
28526
-
28527
- // 파라미터가 있으면 해당 값으로, 없으면 전체 공백 초기화
28528
- clearData = (jsonData = {}) => {
28529
- this.#refreshListeners();
28530
- this.#getElements().forEach(el => {
28531
- const key = el.name;
28532
- if (!key) return;
28533
- const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
28534
- this.#updateElement(el, val);
28535
- });
28536
- this.#changed(false);
28537
- };
28538
-
28539
28500
  setData = (jsonData) => {
28540
28501
  this.#getElements().forEach(el => {
28541
28502
  el.removeEventListener("input", this.#changeHandler);
@@ -28578,12 +28539,6 @@ class nxDiv extends HTMLElement {
28578
28539
  if (bChanged) this.#changed(bChanged);
28579
28540
  };
28580
28541
 
28581
- clearData = (bChanged) => {
28582
-
28583
-
28584
- this.#changed(false);
28585
- };
28586
-
28587
28542
  initData = (jsonData) => {
28588
28543
  this.setData(jsonData);
28589
28544
  this.#changed(false);
package/dist/nx/_nxDiv.js CHANGED
@@ -68,45 +68,6 @@ export class nxDiv extends HTMLElement {
68
68
  return jsonData;
69
69
  };
70
70
 
71
- // [공통 로직 1] 특정 요소에 값을 쓰거나 초기화하는 핵심 함수
72
- #updateElement(el, value) {
73
- const tagName = el.tagName.toUpperCase();
74
- const type = el.type;
75
- let isChanged = false;
76
-
77
- if (["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"].includes(tagName)) {
78
- if (type === "checkbox") {
79
- const t = el.getAttribute("true-value") || "Y";
80
- const isChecked = (String(t) === String(value));
81
- if (el.checked !== isChecked) isChanged = true;
82
- el.checked = isChecked;
83
- } else if (type === "radio") {
84
- const isChecked = (String(el.value) === String(value));
85
- if (el.checked !== isChecked) isChanged = true;
86
- el.checked = isChecked;
87
- } else {
88
- if (el.value !== value) isChanged = true;
89
- el.value = value;
90
- }
91
- } else {
92
- if (el.textContent !== value) isChanged = true;
93
- el.textContent = value;
94
- }
95
- return isChanged;
96
- }
97
-
98
- // 파라미터가 있으면 해당 값으로, 없으면 전체 공백 초기화
99
- clearData = (jsonData = {}) => {
100
- this.#refreshListeners();
101
- this.#getElements().forEach(el => {
102
- const key = el.name;
103
- if (!key) return;
104
- const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
105
- this.#updateElement(el, val);
106
- });
107
- this.#changed(false);
108
- };
109
-
110
71
  setData = (jsonData) => {
111
72
  this.#getElements().forEach(el => {
112
73
  el.removeEventListener("input", this.#changeHandler);
@@ -149,12 +110,6 @@ export class nxDiv extends HTMLElement {
149
110
  if (bChanged) this.#changed(bChanged);
150
111
  };
151
112
 
152
- clearData = (bChanged) => {
153
-
154
-
155
- this.#changed(false);
156
- };
157
-
158
113
  initData = (jsonData) => {
159
114
  this.setData(jsonData);
160
115
  this.#changed(false);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1382.0",
4
+ "version": "6.1384.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/_nxDiv.js CHANGED
@@ -68,45 +68,6 @@ export class nxDiv extends HTMLElement {
68
68
  return jsonData;
69
69
  };
70
70
 
71
- // [공통 로직 1] 특정 요소에 값을 쓰거나 초기화하는 핵심 함수
72
- #updateElement(el, value) {
73
- const tagName = el.tagName.toUpperCase();
74
- const type = el.type;
75
- let isChanged = false;
76
-
77
- if (["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"].includes(tagName)) {
78
- if (type === "checkbox") {
79
- const t = el.getAttribute("true-value") || "Y";
80
- const isChecked = (String(t) === String(value));
81
- if (el.checked !== isChecked) isChanged = true;
82
- el.checked = isChecked;
83
- } else if (type === "radio") {
84
- const isChecked = (String(el.value) === String(value));
85
- if (el.checked !== isChecked) isChanged = true;
86
- el.checked = isChecked;
87
- } else {
88
- if (el.value !== value) isChanged = true;
89
- el.value = value;
90
- }
91
- } else {
92
- if (el.textContent !== value) isChanged = true;
93
- el.textContent = value;
94
- }
95
- return isChanged;
96
- }
97
-
98
- // 파라미터가 있으면 해당 값으로, 없으면 전체 공백 초기화
99
- clearData = (jsonData = {}) => {
100
- this.#refreshListeners();
101
- this.#getElements().forEach(el => {
102
- const key = el.name;
103
- if (!key) return;
104
- const val = (jsonData && jsonData[key] !== undefined) ? jsonData[key] : "";
105
- this.#updateElement(el, val);
106
- });
107
- this.#changed(false);
108
- };
109
-
110
71
  setData = (jsonData) => {
111
72
  this.#getElements().forEach(el => {
112
73
  el.removeEventListener("input", this.#changeHandler);
@@ -149,12 +110,6 @@ export class nxDiv extends HTMLElement {
149
110
  if (bChanged) this.#changed(bChanged);
150
111
  };
151
112
 
152
- clearData = (bChanged) => {
153
-
154
-
155
- this.#changed(false);
156
- };
157
-
158
113
  initData = (jsonData) => {
159
114
  this.setData(jsonData);
160
115
  this.#changed(false);