ninegrid2 6.335.0 → 6.337.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 +10 -9
- package/dist/bundle.cjs.js +10 -9
- package/dist/bundle.esm.js +10 -9
- package/package.json +1 -1
- package/src/ai/aiMessage.js +10 -9
package/dist/ai/aiMessage.js
CHANGED
|
@@ -11,7 +11,7 @@ class aiMessage extends HTMLElement
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
connectedCallback() {
|
|
14
|
-
this.#message = this.getAttribute("message");
|
|
14
|
+
//this.#message = this.getAttribute("message");
|
|
15
15
|
|
|
16
16
|
this.shadowRoot.innerHTML = `
|
|
17
17
|
<style>
|
|
@@ -36,20 +36,20 @@ class aiMessage extends HTMLElement
|
|
|
36
36
|
</div>
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
|
-
this.#init();
|
|
39
|
+
//this.#init();
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this.#data = v;
|
|
42
|
+
initialize = (data) => {
|
|
43
|
+
this.#data = data;
|
|
44
|
+
|
|
45
|
+
this.#init();
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
#init = () => {
|
|
50
49
|
|
|
50
|
+
const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
|
|
51
51
|
const html = `
|
|
52
|
-
<nine-grid display-row-count="
|
|
52
|
+
<nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
53
53
|
<table>
|
|
54
54
|
<caption>Sheet1</caption>
|
|
55
55
|
<thead>
|
|
@@ -221,7 +221,8 @@ class aiChat extends HTMLElement
|
|
|
221
221
|
|
|
222
222
|
el = document.createElement("nx-ai-message");
|
|
223
223
|
el.setAttribute("message", message);
|
|
224
|
-
el.data = data;
|
|
224
|
+
//el.data = data;
|
|
225
|
+
el.initialize(data);
|
|
225
226
|
target.appendChild(el);
|
|
226
227
|
break;
|
|
227
228
|
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27318,7 +27318,7 @@ class aiMessage extends HTMLElement
|
|
|
27318
27318
|
}
|
|
27319
27319
|
|
|
27320
27320
|
connectedCallback() {
|
|
27321
|
-
this.#message = this.getAttribute("message");
|
|
27321
|
+
//this.#message = this.getAttribute("message");
|
|
27322
27322
|
|
|
27323
27323
|
this.shadowRoot.innerHTML = `
|
|
27324
27324
|
<style>
|
|
@@ -27343,20 +27343,20 @@ class aiMessage extends HTMLElement
|
|
|
27343
27343
|
</div>
|
|
27344
27344
|
`;
|
|
27345
27345
|
|
|
27346
|
-
this.#init();
|
|
27346
|
+
//this.#init();
|
|
27347
27347
|
};
|
|
27348
27348
|
|
|
27349
|
-
|
|
27350
|
-
|
|
27351
|
-
|
|
27352
|
-
|
|
27353
|
-
this.#data = v;
|
|
27349
|
+
initialize = (data) => {
|
|
27350
|
+
this.#data = data;
|
|
27351
|
+
|
|
27352
|
+
this.#init();
|
|
27354
27353
|
}
|
|
27355
27354
|
|
|
27356
27355
|
#init = () => {
|
|
27357
27356
|
|
|
27357
|
+
const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
|
|
27358
27358
|
const html = `
|
|
27359
|
-
<nine-grid display-row-count="
|
|
27359
|
+
<nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
27360
27360
|
<table>
|
|
27361
27361
|
<caption>Sheet1</caption>
|
|
27362
27362
|
<thead>
|
|
@@ -27528,7 +27528,8 @@ class aiChat extends HTMLElement
|
|
|
27528
27528
|
|
|
27529
27529
|
el = document.createElement("nx-ai-message");
|
|
27530
27530
|
el.setAttribute("message", message);
|
|
27531
|
-
el.data = data;
|
|
27531
|
+
//el.data = data;
|
|
27532
|
+
el.initialize(data);
|
|
27532
27533
|
target.appendChild(el);
|
|
27533
27534
|
break;
|
|
27534
27535
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27316,7 +27316,7 @@ class aiMessage extends HTMLElement
|
|
|
27316
27316
|
}
|
|
27317
27317
|
|
|
27318
27318
|
connectedCallback() {
|
|
27319
|
-
this.#message = this.getAttribute("message");
|
|
27319
|
+
//this.#message = this.getAttribute("message");
|
|
27320
27320
|
|
|
27321
27321
|
this.shadowRoot.innerHTML = `
|
|
27322
27322
|
<style>
|
|
@@ -27341,20 +27341,20 @@ class aiMessage extends HTMLElement
|
|
|
27341
27341
|
</div>
|
|
27342
27342
|
`;
|
|
27343
27343
|
|
|
27344
|
-
this.#init();
|
|
27344
|
+
//this.#init();
|
|
27345
27345
|
};
|
|
27346
27346
|
|
|
27347
|
-
|
|
27348
|
-
|
|
27349
|
-
|
|
27350
|
-
|
|
27351
|
-
this.#data = v;
|
|
27347
|
+
initialize = (data) => {
|
|
27348
|
+
this.#data = data;
|
|
27349
|
+
|
|
27350
|
+
this.#init();
|
|
27352
27351
|
}
|
|
27353
27352
|
|
|
27354
27353
|
#init = () => {
|
|
27355
27354
|
|
|
27355
|
+
const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
|
|
27356
27356
|
const html = `
|
|
27357
|
-
<nine-grid display-row-count="
|
|
27357
|
+
<nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
27358
27358
|
<table>
|
|
27359
27359
|
<caption>Sheet1</caption>
|
|
27360
27360
|
<thead>
|
|
@@ -27526,7 +27526,8 @@ class aiChat extends HTMLElement
|
|
|
27526
27526
|
|
|
27527
27527
|
el = document.createElement("nx-ai-message");
|
|
27528
27528
|
el.setAttribute("message", message);
|
|
27529
|
-
el.data = data;
|
|
27529
|
+
//el.data = data;
|
|
27530
|
+
el.initialize(data);
|
|
27530
27531
|
target.appendChild(el);
|
|
27531
27532
|
break;
|
|
27532
27533
|
}
|
package/package.json
CHANGED
package/src/ai/aiMessage.js
CHANGED
|
@@ -11,7 +11,7 @@ class aiMessage extends HTMLElement
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
connectedCallback() {
|
|
14
|
-
this.#message = this.getAttribute("message");
|
|
14
|
+
//this.#message = this.getAttribute("message");
|
|
15
15
|
|
|
16
16
|
this.shadowRoot.innerHTML = `
|
|
17
17
|
<style>
|
|
@@ -36,20 +36,20 @@ class aiMessage extends HTMLElement
|
|
|
36
36
|
</div>
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
|
-
this.#init();
|
|
39
|
+
//this.#init();
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this.#data = v;
|
|
42
|
+
initialize = (data) => {
|
|
43
|
+
this.#data = data;
|
|
44
|
+
|
|
45
|
+
this.#init();
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
#init = () => {
|
|
50
49
|
|
|
50
|
+
const rowCount = this.#data.length > 5 ? 5 : this.#data.length;
|
|
51
51
|
const html = `
|
|
52
|
-
<nine-grid display-row-count="
|
|
52
|
+
<nine-grid display-row-count="${rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
53
53
|
<table>
|
|
54
54
|
<caption>Sheet1</caption>
|
|
55
55
|
<thead>
|
|
@@ -221,7 +221,8 @@ class aiChat extends HTMLElement
|
|
|
221
221
|
|
|
222
222
|
el = document.createElement("nx-ai-message");
|
|
223
223
|
el.setAttribute("message", message);
|
|
224
|
-
el.data = data;
|
|
224
|
+
//el.data = data;
|
|
225
|
+
el.initialize(data);
|
|
225
226
|
target.appendChild(el);
|
|
226
227
|
break;
|
|
227
228
|
|