ninegrid2 6.1323.0 → 6.1325.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.
@@ -28508,12 +28508,14 @@ class nxDiv extends HTMLElement {
28508
28508
  let bChanged = false;
28509
28509
  this.#getElements().forEach(el => {
28510
28510
  const key = el.name;
28511
+ //console.log(el.tagName, key, el.name);
28512
+
28511
28513
  if (!key || !jsonData.hasOwnProperty(key)) return;
28512
28514
 
28513
28515
  const value = jsonData[key];
28514
28516
 
28515
28517
  const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
28516
- console.log(el.tagName);
28518
+
28517
28519
  if (inputTags.includes(el.tagName)) {
28518
28520
  if (el.type === "checkbox" || el.type === "radio") {
28519
28521
  const isChecked = (String(el.value) === String(value));
@@ -55201,6 +55203,20 @@ class nxEditor extends nxDiv {
55201
55203
  this.#editor.commands.setContent(v || "", false);
55202
55204
  }
55203
55205
 
55206
+ get id() {
55207
+ return this.getAttribute("id");
55208
+ }
55209
+ set id(v) {
55210
+ this.setAttribute("id", v);
55211
+ }
55212
+
55213
+ get name() {
55214
+ return this.getAttribute("name");
55215
+ }
55216
+ set name(v) {
55217
+ this.setAttribute("name", v);
55218
+ }
55219
+
55204
55220
  #render() {
55205
55221
  this.shadowRoot.innerHTML = `
55206
55222
  <style>
@@ -28504,12 +28504,14 @@ class nxDiv extends HTMLElement {
28504
28504
  let bChanged = false;
28505
28505
  this.#getElements().forEach(el => {
28506
28506
  const key = el.name;
28507
+ //console.log(el.tagName, key, el.name);
28508
+
28507
28509
  if (!key || !jsonData.hasOwnProperty(key)) return;
28508
28510
 
28509
28511
  const value = jsonData[key];
28510
28512
 
28511
28513
  const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
28512
- console.log(el.tagName);
28514
+
28513
28515
  if (inputTags.includes(el.tagName)) {
28514
28516
  if (el.type === "checkbox" || el.type === "radio") {
28515
28517
  const isChecked = (String(el.value) === String(value));
@@ -55197,6 +55199,20 @@ class nxEditor extends nxDiv {
55197
55199
  this.#editor.commands.setContent(v || "", false);
55198
55200
  }
55199
55201
 
55202
+ get id() {
55203
+ return this.getAttribute("id");
55204
+ }
55205
+ set id(v) {
55206
+ this.setAttribute("id", v);
55207
+ }
55208
+
55209
+ get name() {
55210
+ return this.getAttribute("name");
55211
+ }
55212
+ set name(v) {
55213
+ this.setAttribute("name", v);
55214
+ }
55215
+
55200
55216
  #render() {
55201
55217
  this.shadowRoot.innerHTML = `
55202
55218
  <style>
package/dist/nx/_nxDiv.js CHANGED
@@ -75,12 +75,14 @@ export class nxDiv extends HTMLElement {
75
75
  let bChanged = false;
76
76
  this.#getElements().forEach(el => {
77
77
  const key = el.name;
78
+ //console.log(el.tagName, key, el.name);
79
+
78
80
  if (!key || !jsonData.hasOwnProperty(key)) return;
79
81
 
80
82
  const value = jsonData[key];
81
83
 
82
84
  const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
83
- console.log(el.tagName)
85
+
84
86
  if (inputTags.includes(el.tagName)) {
85
87
  if (el.type === "checkbox" || el.type === "radio") {
86
88
  const isChecked = (String(el.value) === String(value));
@@ -34,6 +34,20 @@ class nxEditor extends nxDiv {
34
34
  this.#editor.commands.setContent(v || "", false);
35
35
  }
36
36
 
37
+ get id() {
38
+ return this.getAttribute("id");
39
+ }
40
+ set id(v) {
41
+ this.setAttribute("id", v);
42
+ }
43
+
44
+ get name() {
45
+ return this.getAttribute("name");
46
+ }
47
+ set name(v) {
48
+ this.setAttribute("name", v);
49
+ }
50
+
37
51
  #render() {
38
52
  this.shadowRoot.innerHTML = `
39
53
  <style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1323.0",
4
+ "version": "6.1325.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/_nxDiv.js CHANGED
@@ -75,12 +75,14 @@ export class nxDiv extends HTMLElement {
75
75
  let bChanged = false;
76
76
  this.#getElements().forEach(el => {
77
77
  const key = el.name;
78
+ //console.log(el.tagName, key, el.name);
79
+
78
80
  if (!key || !jsonData.hasOwnProperty(key)) return;
79
81
 
80
82
  const value = jsonData[key];
81
83
 
82
84
  const inputTags = ["INPUT", "TEXTAREA", "SELECT", "NX-EDITOR"];
83
- console.log(el.tagName)
85
+
84
86
  if (inputTags.includes(el.tagName)) {
85
87
  if (el.type === "checkbox" || el.type === "radio") {
86
88
  const isChecked = (String(el.value) === String(value));
@@ -34,6 +34,20 @@ class nxEditor extends nxDiv {
34
34
  this.#editor.commands.setContent(v || "", false);
35
35
  }
36
36
 
37
+ get id() {
38
+ return this.getAttribute("id");
39
+ }
40
+ set id(v) {
41
+ this.setAttribute("id", v);
42
+ }
43
+
44
+ get name() {
45
+ return this.getAttribute("name");
46
+ }
47
+ set name(v) {
48
+ this.setAttribute("name", v);
49
+ }
50
+
37
51
  #render() {
38
52
  this.shadowRoot.innerHTML = `
39
53
  <style>