ninegrid2 6.1166.0 → 6.1168.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 +14 -0
- package/dist/bundle.esm.js +14 -0
- package/dist/nx/_nxDiv.js +14 -0
- package/package.json +1 -1
- package/src/nx/_nxDiv.js +14 -0
package/dist/bundle.cjs.js
CHANGED
|
@@ -122050,6 +122050,20 @@ class nxDiv extends HTMLElement
|
|
|
122050
122050
|
return jsonData;
|
|
122051
122051
|
};
|
|
122052
122052
|
|
|
122053
|
+
setData = (jsonData) => {
|
|
122054
|
+
|
|
122055
|
+
console.log(jsonData);
|
|
122056
|
+
|
|
122057
|
+
this.shadowRoot.querySelectorAll("input, textarea, select, [id], [name]").forEach(el => {
|
|
122058
|
+
const key = el.id || el.name; // id가 있으면 우선, 없으면 name 사용
|
|
122059
|
+
if (!key || !jsonData[key]) return; // id도 name도 없으면 건너뛰기
|
|
122060
|
+
|
|
122061
|
+
console.log(el);
|
|
122062
|
+
|
|
122063
|
+
el[el.hasOwnProperty("value") ? "value" : "text"] = jsonData[key];
|
|
122064
|
+
});
|
|
122065
|
+
};
|
|
122066
|
+
|
|
122053
122067
|
#init = () => {
|
|
122054
122068
|
|
|
122055
122069
|
/**
|
package/dist/bundle.esm.js
CHANGED
|
@@ -122046,6 +122046,20 @@ class nxDiv extends HTMLElement
|
|
|
122046
122046
|
return jsonData;
|
|
122047
122047
|
};
|
|
122048
122048
|
|
|
122049
|
+
setData = (jsonData) => {
|
|
122050
|
+
|
|
122051
|
+
console.log(jsonData);
|
|
122052
|
+
|
|
122053
|
+
this.shadowRoot.querySelectorAll("input, textarea, select, [id], [name]").forEach(el => {
|
|
122054
|
+
const key = el.id || el.name; // id가 있으면 우선, 없으면 name 사용
|
|
122055
|
+
if (!key || !jsonData[key]) return; // id도 name도 없으면 건너뛰기
|
|
122056
|
+
|
|
122057
|
+
console.log(el);
|
|
122058
|
+
|
|
122059
|
+
el[el.hasOwnProperty("value") ? "value" : "text"] = jsonData[key];
|
|
122060
|
+
});
|
|
122061
|
+
};
|
|
122062
|
+
|
|
122049
122063
|
#init = () => {
|
|
122050
122064
|
|
|
122051
122065
|
/**
|
package/dist/nx/_nxDiv.js
CHANGED
|
@@ -45,6 +45,20 @@ export class nxDiv extends HTMLElement
|
|
|
45
45
|
return jsonData;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
setData = (jsonData) => {
|
|
49
|
+
|
|
50
|
+
console.log(jsonData);
|
|
51
|
+
|
|
52
|
+
this.shadowRoot.querySelectorAll("input, textarea, select, [id], [name]").forEach(el => {
|
|
53
|
+
const key = el.id || el.name; // id가 있으면 우선, 없으면 name 사용
|
|
54
|
+
if (!key || !jsonData[key]) return; // id도 name도 없으면 건너뛰기
|
|
55
|
+
|
|
56
|
+
console.log(el);
|
|
57
|
+
|
|
58
|
+
el[el.hasOwnProperty("value") ? "value" : "text"] = jsonData[key];
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
48
62
|
#init = () => {
|
|
49
63
|
|
|
50
64
|
/**
|
package/package.json
CHANGED
package/src/nx/_nxDiv.js
CHANGED
|
@@ -45,6 +45,20 @@ export class nxDiv extends HTMLElement
|
|
|
45
45
|
return jsonData;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
setData = (jsonData) => {
|
|
49
|
+
|
|
50
|
+
console.log(jsonData);
|
|
51
|
+
|
|
52
|
+
this.shadowRoot.querySelectorAll("input, textarea, select, [id], [name]").forEach(el => {
|
|
53
|
+
const key = el.id || el.name; // id가 있으면 우선, 없으면 name 사용
|
|
54
|
+
if (!key || !jsonData[key]) return; // id도 name도 없으면 건너뛰기
|
|
55
|
+
|
|
56
|
+
console.log(el);
|
|
57
|
+
|
|
58
|
+
el[el.hasOwnProperty("value") ? "value" : "text"] = jsonData[key];
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
48
62
|
#init = () => {
|
|
49
63
|
|
|
50
64
|
/**
|