ninegrid2 6.326.0 → 6.328.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.
@@ -3,6 +3,7 @@ import ninegrid from "../index.js";
3
3
  class aiMessage extends HTMLElement
4
4
  {
5
5
  #message;
6
+ #data;
6
7
 
7
8
  constructor() {
8
9
  super();
@@ -39,11 +40,10 @@ class aiMessage extends HTMLElement
39
40
  };
40
41
 
41
42
  get data() {
42
- return ;
43
+ return this.#data;
43
44
  }
44
45
  set data(v) {
45
- const grd = this.shadowRoot.querySelector("nine-grid");
46
- grd.data.source = v;
46
+ this.#data = v;
47
47
  }
48
48
 
49
49
  #init = () => {
@@ -99,8 +99,12 @@ class aiMessage extends HTMLElement
99
99
  else {
100
100
  elMore.style.display = "none";
101
101
  }
102
-
103
102
  });
103
+
104
+ setTimeout(() => {
105
+ const grd = this.shadowRoot.querySelector("nine-grid");
106
+ grd.data.source = this.data;
107
+ }, 300);
104
108
  };
105
109
  }
106
110
 
@@ -27301,6 +27301,7 @@ customElements.define("nx-ai-settings", aiSettings);
27301
27301
  class aiMessage extends HTMLElement
27302
27302
  {
27303
27303
  #message;
27304
+ #data;
27304
27305
 
27305
27306
  constructor() {
27306
27307
  super();
@@ -27337,11 +27338,10 @@ class aiMessage extends HTMLElement
27337
27338
  };
27338
27339
 
27339
27340
  get data() {
27340
- return ;
27341
+ return this.#data;
27341
27342
  }
27342
27343
  set data(v) {
27343
- const grd = this.shadowRoot.querySelector("nine-grid");
27344
- grd.data.source = v;
27344
+ this.#data = v;
27345
27345
  }
27346
27346
 
27347
27347
  #init = () => {
@@ -27397,8 +27397,12 @@ class aiMessage extends HTMLElement
27397
27397
  else {
27398
27398
  elMore.style.display = "none";
27399
27399
  }
27400
-
27401
27400
  });
27401
+
27402
+ setTimeout(() => {
27403
+ const grd = this.shadowRoot.querySelector("nine-grid");
27404
+ grd.data.source = this.data;
27405
+ }, 300);
27402
27406
  };
27403
27407
  }
27404
27408
 
@@ -27299,6 +27299,7 @@ customElements.define("nx-ai-settings", aiSettings);
27299
27299
  class aiMessage extends HTMLElement
27300
27300
  {
27301
27301
  #message;
27302
+ #data;
27302
27303
 
27303
27304
  constructor() {
27304
27305
  super();
@@ -27335,11 +27336,10 @@ class aiMessage extends HTMLElement
27335
27336
  };
27336
27337
 
27337
27338
  get data() {
27338
- return ;
27339
+ return this.#data;
27339
27340
  }
27340
27341
  set data(v) {
27341
- const grd = this.shadowRoot.querySelector("nine-grid");
27342
- grd.data.source = v;
27342
+ this.#data = v;
27343
27343
  }
27344
27344
 
27345
27345
  #init = () => {
@@ -27395,8 +27395,12 @@ class aiMessage extends HTMLElement
27395
27395
  else {
27396
27396
  elMore.style.display = "none";
27397
27397
  }
27398
-
27399
27398
  });
27399
+
27400
+ setTimeout(() => {
27401
+ const grd = this.shadowRoot.querySelector("nine-grid");
27402
+ grd.data.source = this.data;
27403
+ }, 300);
27400
27404
  };
27401
27405
  }
27402
27406
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.326.0",
4
+ "version": "6.328.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -3,6 +3,7 @@ import ninegrid from "../index.js";
3
3
  class aiMessage extends HTMLElement
4
4
  {
5
5
  #message;
6
+ #data;
6
7
 
7
8
  constructor() {
8
9
  super();
@@ -39,11 +40,10 @@ class aiMessage extends HTMLElement
39
40
  };
40
41
 
41
42
  get data() {
42
- return ;
43
+ return this.#data;
43
44
  }
44
45
  set data(v) {
45
- const grd = this.shadowRoot.querySelector("nine-grid");
46
- grd.data.source = v;
46
+ this.#data = v;
47
47
  }
48
48
 
49
49
  #init = () => {
@@ -99,8 +99,12 @@ class aiMessage extends HTMLElement
99
99
  else {
100
100
  elMore.style.display = "none";
101
101
  }
102
-
103
102
  });
103
+
104
+ setTimeout(() => {
105
+ const grd = this.shadowRoot.querySelector("nine-grid");
106
+ grd.data.source = this.data;
107
+ }, 300);
104
108
  };
105
109
  }
106
110