ninegrid2 6.458.0 → 6.460.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/ai/aiMessage.js +12 -4
- package/dist/bundle.cjs.js +12 -4
- package/dist/bundle.esm.js +12 -4
- package/package.json +1 -1
- package/src/ai/aiMessage.js +12 -4
package/dist/ai/aiMessage.js
CHANGED
|
@@ -49,11 +49,14 @@ class aiMessage extends HTMLElement
|
|
|
49
49
|
|
|
50
50
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
if (
|
|
52
|
+
//if (e.target.classList.contains("disabled")) return;
|
|
53
|
+
if (this.#unique) {
|
|
54
|
+
const grd = document.querySelector("nine-grid");
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
grd.filtering.set(this.#data.map(item =>
|
|
57
|
+
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
58
|
+
));
|
|
59
|
+
}
|
|
57
60
|
});
|
|
58
61
|
|
|
59
62
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -233,6 +236,11 @@ class aiChat extends HTMLElement
|
|
|
233
236
|
|
|
234
237
|
|
|
235
238
|
add = (sender, message, info, data, unique) => {
|
|
239
|
+
|
|
240
|
+
if (unique && !Array.isArray(unique)) {
|
|
241
|
+
unique = unique.split(",");
|
|
242
|
+
}
|
|
243
|
+
|
|
236
244
|
const target = this.shadowRoot.querySelector(".chat-body");
|
|
237
245
|
|
|
238
246
|
//console.log(data);
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27474,11 +27474,14 @@ class aiMessage extends HTMLElement
|
|
|
27474
27474
|
|
|
27475
27475
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
27476
27476
|
|
|
27477
|
-
|
|
27478
|
-
if (
|
|
27477
|
+
//if (e.target.classList.contains("disabled")) return;
|
|
27478
|
+
if (this.#unique) {
|
|
27479
|
+
const grd = document.querySelector("nine-grid");
|
|
27479
27480
|
|
|
27480
|
-
|
|
27481
|
-
|
|
27481
|
+
grd.filtering.set(this.#data.map(item =>
|
|
27482
|
+
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
27483
|
+
));
|
|
27484
|
+
}
|
|
27482
27485
|
});
|
|
27483
27486
|
|
|
27484
27487
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -27658,6 +27661,11 @@ class aiChat extends HTMLElement
|
|
|
27658
27661
|
|
|
27659
27662
|
|
|
27660
27663
|
add = (sender, message, info, data, unique) => {
|
|
27664
|
+
|
|
27665
|
+
if (unique && !Array.isArray(unique)) {
|
|
27666
|
+
unique = unique.split(",");
|
|
27667
|
+
}
|
|
27668
|
+
|
|
27661
27669
|
const target = this.shadowRoot.querySelector(".chat-body");
|
|
27662
27670
|
|
|
27663
27671
|
//console.log(data);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27472,11 +27472,14 @@ class aiMessage extends HTMLElement
|
|
|
27472
27472
|
|
|
27473
27473
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
27474
27474
|
|
|
27475
|
-
|
|
27476
|
-
if (
|
|
27475
|
+
//if (e.target.classList.contains("disabled")) return;
|
|
27476
|
+
if (this.#unique) {
|
|
27477
|
+
const grd = document.querySelector("nine-grid");
|
|
27477
27478
|
|
|
27478
|
-
|
|
27479
|
-
|
|
27479
|
+
grd.filtering.set(this.#data.map(item =>
|
|
27480
|
+
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
27481
|
+
));
|
|
27482
|
+
}
|
|
27480
27483
|
});
|
|
27481
27484
|
|
|
27482
27485
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -27656,6 +27659,11 @@ class aiChat extends HTMLElement
|
|
|
27656
27659
|
|
|
27657
27660
|
|
|
27658
27661
|
add = (sender, message, info, data, unique) => {
|
|
27662
|
+
|
|
27663
|
+
if (unique && !Array.isArray(unique)) {
|
|
27664
|
+
unique = unique.split(",");
|
|
27665
|
+
}
|
|
27666
|
+
|
|
27659
27667
|
const target = this.shadowRoot.querySelector(".chat-body");
|
|
27660
27668
|
|
|
27661
27669
|
//console.log(data);
|
package/package.json
CHANGED
package/src/ai/aiMessage.js
CHANGED
|
@@ -49,11 +49,14 @@ class aiMessage extends HTMLElement
|
|
|
49
49
|
|
|
50
50
|
this.shadowRoot.querySelector(".filter").addEventListener("click", e => {
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
if (
|
|
52
|
+
//if (e.target.classList.contains("disabled")) return;
|
|
53
|
+
if (this.#unique) {
|
|
54
|
+
const grd = document.querySelector("nine-grid");
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
grd.filtering.set(this.#data.map(item =>
|
|
57
|
+
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
58
|
+
));
|
|
59
|
+
}
|
|
57
60
|
});
|
|
58
61
|
|
|
59
62
|
this.shadowRoot.querySelector(".maximize").addEventListener("click", e => {
|
|
@@ -233,6 +236,11 @@ class aiChat extends HTMLElement
|
|
|
233
236
|
|
|
234
237
|
|
|
235
238
|
add = (sender, message, info, data, unique) => {
|
|
239
|
+
|
|
240
|
+
if (unique && !Array.isArray(unique)) {
|
|
241
|
+
unique = unique.split(",");
|
|
242
|
+
}
|
|
243
|
+
|
|
236
244
|
const target = this.shadowRoot.querySelector(".chat-body");
|
|
237
245
|
|
|
238
246
|
//console.log(data);
|