ninegrid2 6.459.0 → 6.461.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.
@@ -53,9 +53,16 @@ class aiMessage extends HTMLElement
53
53
  if (this.#unique) {
54
54
  const grd = document.querySelector("nine-grid");
55
55
 
56
+ console.log(this.#data.map(item =>
57
+ Object.fromEntries(this.#unique.map(key => [key, item[key]]))
58
+ ));
59
+
56
60
  grd.filtering.set(this.#data.map(item =>
57
61
  Object.fromEntries(this.#unique.map(key => [key, item[key]]))
58
62
  ));
63
+
64
+
65
+
59
66
  }
60
67
  });
61
68
 
@@ -236,6 +243,11 @@ class aiChat extends HTMLElement
236
243
 
237
244
 
238
245
  add = (sender, message, info, data, unique) => {
246
+
247
+ if (unique && !Array.isArray(unique)) {
248
+ unique = unique.split(",");
249
+ }
250
+
239
251
  const target = this.shadowRoot.querySelector(".chat-body");
240
252
 
241
253
  //console.log(data);
@@ -27478,9 +27478,16 @@ class aiMessage extends HTMLElement
27478
27478
  if (this.#unique) {
27479
27479
  const grd = document.querySelector("nine-grid");
27480
27480
 
27481
+ console.log(this.#data.map(item =>
27482
+ Object.fromEntries(this.#unique.map(key => [key, item[key]]))
27483
+ ));
27484
+
27481
27485
  grd.filtering.set(this.#data.map(item =>
27482
27486
  Object.fromEntries(this.#unique.map(key => [key, item[key]]))
27483
27487
  ));
27488
+
27489
+
27490
+
27484
27491
  }
27485
27492
  });
27486
27493
 
@@ -27661,6 +27668,11 @@ class aiChat extends HTMLElement
27661
27668
 
27662
27669
 
27663
27670
  add = (sender, message, info, data, unique) => {
27671
+
27672
+ if (unique && !Array.isArray(unique)) {
27673
+ unique = unique.split(",");
27674
+ }
27675
+
27664
27676
  const target = this.shadowRoot.querySelector(".chat-body");
27665
27677
 
27666
27678
  //console.log(data);
@@ -27476,9 +27476,16 @@ class aiMessage extends HTMLElement
27476
27476
  if (this.#unique) {
27477
27477
  const grd = document.querySelector("nine-grid");
27478
27478
 
27479
+ console.log(this.#data.map(item =>
27480
+ Object.fromEntries(this.#unique.map(key => [key, item[key]]))
27481
+ ));
27482
+
27479
27483
  grd.filtering.set(this.#data.map(item =>
27480
27484
  Object.fromEntries(this.#unique.map(key => [key, item[key]]))
27481
27485
  ));
27486
+
27487
+
27488
+
27482
27489
  }
27483
27490
  });
27484
27491
 
@@ -27659,6 +27666,11 @@ class aiChat extends HTMLElement
27659
27666
 
27660
27667
 
27661
27668
  add = (sender, message, info, data, unique) => {
27669
+
27670
+ if (unique && !Array.isArray(unique)) {
27671
+ unique = unique.split(",");
27672
+ }
27673
+
27662
27674
  const target = this.shadowRoot.querySelector(".chat-body");
27663
27675
 
27664
27676
  //console.log(data);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.459.0",
4
+ "version": "6.461.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -53,9 +53,16 @@ class aiMessage extends HTMLElement
53
53
  if (this.#unique) {
54
54
  const grd = document.querySelector("nine-grid");
55
55
 
56
+ console.log(this.#data.map(item =>
57
+ Object.fromEntries(this.#unique.map(key => [key, item[key]]))
58
+ ));
59
+
56
60
  grd.filtering.set(this.#data.map(item =>
57
61
  Object.fromEntries(this.#unique.map(key => [key, item[key]]))
58
62
  ));
63
+
64
+
65
+
59
66
  }
60
67
  });
61
68
 
@@ -236,6 +243,11 @@ class aiChat extends HTMLElement
236
243
 
237
244
 
238
245
  add = (sender, message, info, data, unique) => {
246
+
247
+ if (unique && !Array.isArray(unique)) {
248
+ unique = unique.split(",");
249
+ }
250
+
239
251
  const target = this.shadowRoot.querySelector(".chat-body");
240
252
 
241
253
  //console.log(data);