ninegrid2 6.1374.0 → 6.1375.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 +12 -3
- package/dist/bundle.esm.js +12 -3
- package/dist/nx/_nxDiv.js +12 -3
- package/package.json +1 -1
- package/src/nx/_nxDiv.js +13 -4
package/dist/bundle.cjs.js
CHANGED
|
@@ -28481,7 +28481,11 @@ class nxDiv extends HTMLElement {
|
|
|
28481
28481
|
if (!key) return;
|
|
28482
28482
|
|
|
28483
28483
|
let value;
|
|
28484
|
-
if (el.tagName === "INPUT" &&
|
|
28484
|
+
if (el.tagName === "INPUT" && el.type === "checkbox") {
|
|
28485
|
+
let t = el.getAttribute("true-value", "Y");
|
|
28486
|
+
let f = el.getAttribute("false-value", "N");
|
|
28487
|
+
value = el.checked ? t : f;
|
|
28488
|
+
} else if (el.tagName === "INPUT" && el.type === "radio") {
|
|
28485
28489
|
value = el.checked;
|
|
28486
28490
|
} else {
|
|
28487
28491
|
value = el.value;
|
|
@@ -28513,11 +28517,16 @@ class nxDiv extends HTMLElement {
|
|
|
28513
28517
|
if (!key || !jsonData.hasOwnProperty(key)) return;
|
|
28514
28518
|
|
|
28515
28519
|
const value = jsonData[key];
|
|
28516
|
-
|
|
28517
28520
|
const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
|
|
28518
28521
|
|
|
28519
28522
|
if (inputTags.includes(el.tagName)) {
|
|
28520
|
-
if (el.type === "checkbox"
|
|
28523
|
+
if (el.type === "checkbox") {
|
|
28524
|
+
let t = el.getAttribute("true-value", "Y");
|
|
28525
|
+
el.getAttribute("false-value", "N");
|
|
28526
|
+
const isChecked = (t === String(value));
|
|
28527
|
+
if (el.checked !== isChecked) bChanged = true;
|
|
28528
|
+
el.checked = isChecked;
|
|
28529
|
+
} else if (el.type === "radio") {
|
|
28521
28530
|
const isChecked = (String(el.value) === String(value));
|
|
28522
28531
|
if (el.checked !== isChecked) bChanged = true;
|
|
28523
28532
|
el.checked = isChecked;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -28477,7 +28477,11 @@ class nxDiv extends HTMLElement {
|
|
|
28477
28477
|
if (!key) return;
|
|
28478
28478
|
|
|
28479
28479
|
let value;
|
|
28480
|
-
if (el.tagName === "INPUT" &&
|
|
28480
|
+
if (el.tagName === "INPUT" && el.type === "checkbox") {
|
|
28481
|
+
let t = el.getAttribute("true-value", "Y");
|
|
28482
|
+
let f = el.getAttribute("false-value", "N");
|
|
28483
|
+
value = el.checked ? t : f;
|
|
28484
|
+
} else if (el.tagName === "INPUT" && el.type === "radio") {
|
|
28481
28485
|
value = el.checked;
|
|
28482
28486
|
} else {
|
|
28483
28487
|
value = el.value;
|
|
@@ -28509,11 +28513,16 @@ class nxDiv extends HTMLElement {
|
|
|
28509
28513
|
if (!key || !jsonData.hasOwnProperty(key)) return;
|
|
28510
28514
|
|
|
28511
28515
|
const value = jsonData[key];
|
|
28512
|
-
|
|
28513
28516
|
const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
|
|
28514
28517
|
|
|
28515
28518
|
if (inputTags.includes(el.tagName)) {
|
|
28516
|
-
if (el.type === "checkbox"
|
|
28519
|
+
if (el.type === "checkbox") {
|
|
28520
|
+
let t = el.getAttribute("true-value", "Y");
|
|
28521
|
+
el.getAttribute("false-value", "N");
|
|
28522
|
+
const isChecked = (t === String(value));
|
|
28523
|
+
if (el.checked !== isChecked) bChanged = true;
|
|
28524
|
+
el.checked = isChecked;
|
|
28525
|
+
} else if (el.type === "radio") {
|
|
28517
28526
|
const isChecked = (String(el.value) === String(value));
|
|
28518
28527
|
if (el.checked !== isChecked) bChanged = true;
|
|
28519
28528
|
el.checked = isChecked;
|
package/dist/nx/_nxDiv.js
CHANGED
|
@@ -48,7 +48,11 @@ export class nxDiv extends HTMLElement {
|
|
|
48
48
|
if (!key) return;
|
|
49
49
|
|
|
50
50
|
let value;
|
|
51
|
-
if (el.tagName === "INPUT" &&
|
|
51
|
+
if (el.tagName === "INPUT" && el.type === "checkbox") {
|
|
52
|
+
let t = el.getAttribute("true-value", "Y");
|
|
53
|
+
let f = el.getAttribute("false-value", "N");
|
|
54
|
+
value = el.checked ? t : f;
|
|
55
|
+
} else if (el.tagName === "INPUT" && el.type === "radio") {
|
|
52
56
|
value = el.checked;
|
|
53
57
|
} else {
|
|
54
58
|
value = el.value;
|
|
@@ -80,11 +84,16 @@ export class nxDiv extends HTMLElement {
|
|
|
80
84
|
if (!key || !jsonData.hasOwnProperty(key)) return;
|
|
81
85
|
|
|
82
86
|
const value = jsonData[key];
|
|
83
|
-
|
|
84
87
|
const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
|
|
85
88
|
|
|
86
89
|
if (inputTags.includes(el.tagName)) {
|
|
87
|
-
if (el.type === "checkbox"
|
|
90
|
+
if (el.type === "checkbox") {
|
|
91
|
+
let t = el.getAttribute("true-value", "Y");
|
|
92
|
+
let f = el.getAttribute("false-value", "N");
|
|
93
|
+
const isChecked = (t === String(value));
|
|
94
|
+
if (el.checked !== isChecked) bChanged = true;
|
|
95
|
+
el.checked = isChecked;
|
|
96
|
+
} else if (el.type === "radio") {
|
|
88
97
|
const isChecked = (String(el.value) === String(value));
|
|
89
98
|
if (el.checked !== isChecked) bChanged = true;
|
|
90
99
|
el.checked = isChecked;
|
package/package.json
CHANGED
package/src/nx/_nxDiv.js
CHANGED
|
@@ -48,8 +48,12 @@ export class nxDiv extends HTMLElement {
|
|
|
48
48
|
if (!key) return;
|
|
49
49
|
|
|
50
50
|
let value;
|
|
51
|
-
if (el.tagName === "INPUT" &&
|
|
52
|
-
|
|
51
|
+
if (el.tagName === "INPUT" && el.type === "checkbox") {
|
|
52
|
+
let t = el.getAttribute("true-value", "Y");
|
|
53
|
+
let f = el.getAttribute("false-value", "N");
|
|
54
|
+
value = el.checked ? t : f;
|
|
55
|
+
} else if (el.tagName === "INPUT" && el.type === "radio") {
|
|
56
|
+
value = el.value;
|
|
53
57
|
} else {
|
|
54
58
|
value = el.value;
|
|
55
59
|
}
|
|
@@ -80,11 +84,16 @@ export class nxDiv extends HTMLElement {
|
|
|
80
84
|
if (!key || !jsonData.hasOwnProperty(key)) return;
|
|
81
85
|
|
|
82
86
|
const value = jsonData[key];
|
|
83
|
-
|
|
84
87
|
const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
|
|
85
88
|
|
|
86
89
|
if (inputTags.includes(el.tagName)) {
|
|
87
|
-
if (el.type === "checkbox"
|
|
90
|
+
if (el.type === "checkbox") {
|
|
91
|
+
let t = el.getAttribute("true-value", "Y");
|
|
92
|
+
let f = el.getAttribute("false-value", "N");
|
|
93
|
+
const isChecked = (t === String(value));
|
|
94
|
+
if (el.checked !== isChecked) bChanged = true;
|
|
95
|
+
el.checked = isChecked;
|
|
96
|
+
} else if (el.type === "radio") {
|
|
88
97
|
const isChecked = (String(el.value) === String(value));
|
|
89
98
|
if (el.checked !== isChecked) bChanged = true;
|
|
90
99
|
el.checked = isChecked;
|