ninegrid2 6.392.0 → 6.393.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 +6 -0
- package/dist/bundle.cjs.js +6 -0
- package/dist/bundle.esm.js +6 -0
- package/package.json +1 -1
- package/src/ai/aiMessage.js +6 -0
package/dist/ai/aiMessage.js
CHANGED
|
@@ -90,6 +90,12 @@ class aiMessage extends HTMLElement
|
|
|
90
90
|
#init = () => {
|
|
91
91
|
|
|
92
92
|
const rowCount = Number(this.getAttribute("row-count"));
|
|
93
|
+
if (rowCount < 1) {
|
|
94
|
+
this.shadowRoot.querySelector(".grid").style.display = "none";
|
|
95
|
+
this.shadowRoot.querySelector(".chat-menu").style.display = "none";
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
93
99
|
const html = `
|
|
94
100
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : 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">
|
|
95
101
|
<table>
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27436,6 +27436,12 @@ class aiMessage extends HTMLElement
|
|
|
27436
27436
|
#init = () => {
|
|
27437
27437
|
|
|
27438
27438
|
const rowCount = Number(this.getAttribute("row-count"));
|
|
27439
|
+
if (rowCount < 1) {
|
|
27440
|
+
this.shadowRoot.querySelector(".grid").style.display = "none";
|
|
27441
|
+
this.shadowRoot.querySelector(".chat-menu").style.display = "none";
|
|
27442
|
+
return;
|
|
27443
|
+
}
|
|
27444
|
+
|
|
27439
27445
|
const html = `
|
|
27440
27446
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : 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">
|
|
27441
27447
|
<table>
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27434,6 +27434,12 @@ class aiMessage extends HTMLElement
|
|
|
27434
27434
|
#init = () => {
|
|
27435
27435
|
|
|
27436
27436
|
const rowCount = Number(this.getAttribute("row-count"));
|
|
27437
|
+
if (rowCount < 1) {
|
|
27438
|
+
this.shadowRoot.querySelector(".grid").style.display = "none";
|
|
27439
|
+
this.shadowRoot.querySelector(".chat-menu").style.display = "none";
|
|
27440
|
+
return;
|
|
27441
|
+
}
|
|
27442
|
+
|
|
27437
27443
|
const html = `
|
|
27438
27444
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : 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">
|
|
27439
27445
|
<table>
|
package/package.json
CHANGED
package/src/ai/aiMessage.js
CHANGED
|
@@ -90,6 +90,12 @@ class aiMessage extends HTMLElement
|
|
|
90
90
|
#init = () => {
|
|
91
91
|
|
|
92
92
|
const rowCount = Number(this.getAttribute("row-count"));
|
|
93
|
+
if (rowCount < 1) {
|
|
94
|
+
this.shadowRoot.querySelector(".grid").style.display = "none";
|
|
95
|
+
this.shadowRoot.querySelector(".chat-menu").style.display = "none";
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
93
99
|
const html = `
|
|
94
100
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : 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">
|
|
95
101
|
<table>
|