@aquera/nile-visualization 1.9.0 → 2.0.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.
|
@@ -162,9 +162,19 @@ let NileChart = class NileChart extends NileElement {
|
|
|
162
162
|
/** True when elements are projected into `header-actions` (used to show the header row). */
|
|
163
163
|
this.hasHeaderActionsSlot = false;
|
|
164
164
|
this.handleOutsideClick = (e) => {
|
|
165
|
-
|
|
165
|
+
const path = e.composedPath();
|
|
166
|
+
if (!path.includes(this)) {
|
|
166
167
|
this.menuOpen = false;
|
|
167
168
|
this.chatOpen = false;
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
if (this.chatOpen) {
|
|
172
|
+
const root = this.renderRoot;
|
|
173
|
+
const panel = root.querySelector('.nile-ai-panel-overlay');
|
|
174
|
+
const trigger = root.querySelector('.nile-ai-trigger');
|
|
175
|
+
if (!path.some((n) => n === panel || n === trigger)) {
|
|
176
|
+
this.chatOpen = false;
|
|
177
|
+
}
|
|
168
178
|
}
|
|
169
179
|
};
|
|
170
180
|
this.handleChartReady = (e) => {
|
|
@@ -447,6 +457,7 @@ let NileChart = class NileChart extends NileElement {
|
|
|
447
457
|
aria-label="Ask AI about this chart"
|
|
448
458
|
aria-expanded=${this.chatOpen ? 'true' : 'false'}
|
|
449
459
|
@click=${this.toggleChat}
|
|
460
|
+
part="ai-trigger"
|
|
450
461
|
>
|
|
451
462
|
<nile-glyph name="smart-code" size="16"></nile-glyph>
|
|
452
463
|
</button>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aquera/nile-visualization",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A visualization Library for the Nile Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aquera Inc",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"@aquera/nile-data-grid": {
|
|
67
|
-
|
|
67
|
+
"optional": true
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|