@aquera/nile-visualization 2.9.14 → 2.9.15

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/README.md ADDED
@@ -0,0 +1,166 @@
1
+ # \<nile-visualization>
2
+
3
+ This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm i @aquera/nile-visualization
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```html
14
+ <script type="module">
15
+ import '@aquera/nile-visualization/nile-bar-chart';
16
+ </script>
17
+
18
+ <nile-bar-chart></nile-bar-chart>
19
+ ```
20
+
21
+ ## Tooling configs
22
+
23
+ For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
24
+
25
+ If you customize the configuration a lot, you can consider moving them to individual files.
26
+
27
+ ## Local Demo with `web-dev-server`
28
+
29
+ ```bash
30
+ npm start
31
+ ```
32
+
33
+ To run a local development server that serves the basic demo located in `demo/index.html`
34
+
35
+ ## Release Notes
36
+
37
+ In this section, you can find the updates for each release of `nile-visualization`. It's a good practice to maintain detailed release notes to help users and developers understand what changes have been made from one version to another and how these changes might affect their projects.
38
+
39
+ #### Version 2.9.15 (June 02, 2026)
40
+ - Nile Filter Chart: Filter chip fixes (UIF-1250)
41
+
42
+ #### Version 2.9.14 (May 29, 2026)
43
+ - Nile Chart: Fixes and improvements
44
+
45
+ #### Version 2.9.13 (May 29, 2026)
46
+ - Nile Chart: Fixes and improvements
47
+ - Nile Filter Chart: Fixes and improvements
48
+
49
+ #### Version 2.9.12 (May 26, 2026)
50
+ - Nile Chart: Fixes and improvements
51
+
52
+ #### Version 2.9.11 (May 21, 2026)
53
+ - Nile Chart: Fixes and improvements
54
+ - Nile KPI Chart: Fixes and improvements
55
+
56
+ #### Version 2.9.10 (May 20, 2026)
57
+ - Nile Chart: Fixes and improvements
58
+ - Nile Filter Chart: Fixes and improvements
59
+
60
+ #### Version 2.9.9 (May 19, 2026)
61
+ - Nile Chart: Fixes and improvements
62
+ - Nile Filter Chart: Fixes and improvements
63
+
64
+ #### Version 2.9.7 (May 13, 2026)
65
+ - Nile KPI Chart: Fixes and improvements
66
+
67
+ #### Version 2.9.6 (May 12, 2026)
68
+ - Nile Filter Chart: Fixes and improvements
69
+
70
+ #### Version 2.9.5 (May 11, 2026)
71
+ - Nile Chart: Fixes and improvements
72
+ - Nile Filter Chart: Fixes and improvements
73
+
74
+ #### Version 2.9.4 (May 11, 2026)
75
+ - Nile KPI Chart: Fixes and improvements
76
+
77
+ #### Version 2.9.3 (May 09, 2026)
78
+ - Nile Chart: Fixes and improvements
79
+ - Nile Filter Chart: Fixes and improvements
80
+
81
+ #### Version 2.9.2 (May 07, 2026)
82
+ - Nile Chart: Fixes and improvements
83
+ - Nile KPI Chart: Fixes and improvements
84
+
85
+ #### Version 2.8.0 (May 04, 2026)
86
+ - Internal and type updates
87
+
88
+ #### Version 2.7.0 (May 04, 2026)
89
+ - Nile Filter Chart: Updates and improvements
90
+
91
+ #### Version 2.6.0 (April 30, 2026)
92
+ - Dependency and build updates
93
+
94
+ #### Version 2.3.0 (April 28, 2026)
95
+ - Nile Filter Chart: Added New Component
96
+ - Nile Chart: Updates and improvements
97
+
98
+ #### Version 2.2.0 (April 24, 2026)
99
+ - Nile Chart: Updates and improvements
100
+
101
+ #### Version 2.1.0 (April 23, 2026)
102
+ - Updates across all chart components
103
+
104
+ #### Version 1.9.0 (April 22, 2026)
105
+ - Nile Chart: Updates and improvements
106
+ - Nile KPI Chart: Updates and improvements
107
+ - Internal and type updates
108
+
109
+ #### Version 1.6.0 (April 21, 2026)
110
+ - Updates across all chart components and internals
111
+
112
+ #### Version 1.4.0 (April 20, 2026)
113
+ - Nile Chart: Updates and improvements
114
+
115
+ #### Version 1.3.0 (April 17, 2026)
116
+ - Nile Chart: Updates and improvements
117
+ - Internal updates
118
+
119
+ #### Version 1.2.0 (April 17, 2026)
120
+ - Nile Executive Summary: Updates and improvements
121
+
122
+ #### Version 1.1.0 (April 17, 2026)
123
+ - Nile Executive Summary: Updates and improvements
124
+
125
+ #### Version 1.0.0 (April 17, 2026)
126
+ - First stable release
127
+ - Nile Chart: Updates and improvements
128
+
129
+ #### Version 0.9.0 (April 16, 2026)
130
+ - Nile AI Panel: Updates and improvements
131
+ - Nile Dashboard Viewer: Updates and improvements
132
+
133
+ #### Version 0.8.0 (April 16, 2026)
134
+ - Nile Executive Summary: Added New Component
135
+ - Nile Chart: Updates and improvements
136
+ - Nile KPI Chart: Updates and improvements
137
+
138
+ #### Version 0.7.0 (April 15, 2026)
139
+ - Nile Chart: Updates and improvements
140
+ - Nile KPI Chart: Updates and improvements
141
+
142
+ #### Version 0.6.0 (April 15, 2026)
143
+ - Nile Widget Viewer: Added New Component
144
+ - Nile Dashboard Viewer: Added New Component
145
+
146
+ #### Version 0.5.0 (April 14, 2026)
147
+ - Nile KPI Chart: Added New Component with KPI configuration
148
+ - Nile AI Panel: Updates and improvements
149
+ - Nile Chart: Updates and improvements
150
+
151
+ #### Version 0.4.0 (April 14, 2026)
152
+ - Nile Heatmap Chart: Added New Component
153
+ - Nile Line Column Chart: Added New Component
154
+ - Nile Organization Chart: Added New Component
155
+ - Nile Bellcurve Chart, Nile Donut Chart, Nile Histogram Chart: Updates and improvements
156
+
157
+ #### Version 0.3.0 (April 13, 2026)
158
+ - Added chart variants: Nile Area Negative Chart, Nile Area Range Chart, Nile Area Spline Chart, Nile Column Drilldown Chart, Nile Column Pyramid Chart, Nile Column Range Chart, Nile Dumbbell Lower Chart, Nile Dumbbell Upper Chart, Nile Euler Chart, Nile Inverted Area Chart, Nile Lollipop Chart, Nile Polygon Chart, Nile Radial Bar Chart, Nile Variable Pie Chart, Nile Vector Chart, Nile XRange Chart
159
+
160
+ #### Version 0.2.0 (April 10, 2026)
161
+ - Expanded the chart catalog: Nile Anomaly Chart, Nile Area Chart, Nile Bar Chart, Nile Bellcurve Chart, Nile Boxplot Chart, Nile Bubble Chart, Nile Cluster Chart, Nile Column Chart, Nile Donut Chart, Nile Dumbbell Chart, Nile Fan Chart, Nile Flame Chart, Nile Funnel Chart, Nile Gauge Chart, Nile Histogram Chart, and more
162
+ - Nile AI Panel: Added New Component
163
+ - Nile AI Sender: Added New Component
164
+
165
+ #### Version 0.1.0 (April 09, 2026)
166
+ - Initial release of the Nile Visualization package
@@ -180,15 +180,6 @@ let NileFilterChart = NileFilterChart_1 = class NileFilterChart extends NileElem
180
180
  if (this.promptFieldWidth.get(id) === rounded)
181
181
  return;
182
182
  this.promptFieldWidth = new Map(this.promptFieldWidth).set(id, rounded);
183
- // Tippy popups are portaled to document.body so component-scoped styles
184
- // can't reach them, and nile-lite-tooltip's `maxWidth` only takes effect
185
- // at attach time (its updated() hook doesn't re-attach for maxWidth
186
- // changes). Mirror the live width onto a document-level CSS variable
187
- // the global .tippy-box rule reads — wrapping then always reflects
188
- // the current input width.
189
- if (typeof document !== 'undefined') {
190
- document.documentElement.style.setProperty('--fc-prompt-tooltip-max-width', `${rounded}px`);
191
- }
192
183
  }
193
184
  _validateOrClear(ctrl, value, opts = {}) {
194
185
  const isNql = this.promptModes.get(ctrl.id) === 'expression';
@@ -276,70 +276,35 @@ function renderModeToggle(host, ctrl, mode) {
276
276
  </nile-button-toggle-group>
277
277
  `;
278
278
  }
279
- const SUGGESTION_LAYOUT_STYLE_ID = 'fc-prompt-suggestion-layout-v4';
280
- function ensureSuggestionLayoutStyles() {
279
+ const PROMPT_TIPPY_STYLE_ID = 'fc-prompt-tippy-styles-v1';
280
+ function ensurePromptTippyStyles() {
281
281
  if (typeof document === 'undefined')
282
282
  return;
283
- if (document.getElementById(SUGGESTION_LAYOUT_STYLE_ID))
283
+ if (document.getElementById(PROMPT_TIPPY_STYLE_ID))
284
284
  return;
285
285
  const el = document.createElement('style');
286
- el.id = SUGGESTION_LAYOUT_STYLE_ID;
286
+ el.id = PROMPT_TIPPY_STYLE_ID;
287
287
  el.textContent = `
288
- .fc-prompt__menu nile-menu-item::part(label) {
289
- flex: 1;
290
- min-width: 0;
291
- overflow: hidden;
292
- }
293
-
294
- .fc-prompt__suggestion-label {
295
- display: block;
296
- max-width: 100%;
297
- overflow: hidden;
298
- text-overflow: ellipsis;
299
- white-space: nowrap;
300
- }
301
-
302
- .fc-prompt__suggestion-tooltip {
303
- display: block;
304
- flex: 1;
305
- min-width: 0;
306
- overflow: hidden;
307
- }
308
-
309
-
310
-
311
- [data-tippy-root] {
288
+ [data-tippy-root].fc-prompt-tippy {
312
289
  max-width: var(--fc-prompt-tooltip-max-width, 320px);
313
290
  }
314
- [data-tippy-root] > .tippy-box,
315
- .tippy-box[data-theme~='lite'] {
291
+ [data-tippy-root].fc-prompt-tippy > .tippy-box {
316
292
  max-width: var(--fc-prompt-tooltip-max-width, 320px);
317
293
  white-space: normal;
318
294
  overflow-wrap: anywhere;
319
295
  word-break: break-word;
320
296
  }
321
- [data-tippy-root] > .tippy-box > .tippy-content {
297
+ [data-tippy-root].fc-prompt-tippy > .tippy-box > .tippy-content {
322
298
  white-space: normal;
323
299
  overflow-wrap: anywhere;
324
300
  word-break: break-word;
325
301
  max-width: 100%;
326
302
  }
327
- .fc-prompt__suggestion-tag {
328
- flex-shrink: 0;
329
- padding: 1px 8px;
330
- border-radius: 999px;
331
- background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
332
- color: var(--nile-colors-neutral-700, var(--ng-colors-text-quaternary-500));
333
- font-size: 10px;
334
- font-weight: 600;
335
- text-transform: uppercase;
336
- letter-spacing: 0.04em;
337
- }
338
303
  `;
339
304
  document.head.appendChild(el);
340
305
  }
341
306
  export function renderPrompt(host, ctrl) {
342
- ensureSuggestionLayoutStyles();
307
+ ensurePromptTippyStyles();
343
308
  const value = String(host.selectedValues.get(ctrl.id) ?? '');
344
309
  const animated = host.promptPlaceholder.get(ctrl.id) ?? '';
345
310
  const error = host.promptErrors.get(ctrl.id);
@@ -859,6 +824,13 @@ export function renderPrompt(host, ctrl) {
859
824
  content="${item.label}"
860
825
  class="fc-prompt__suggestion-tooltip"
861
826
  .maxWidth=${fieldWidth}
827
+ @nile-show="${(e) => {
828
+ const popper = e.detail?.instance?.popper;
829
+ if (!popper)
830
+ return;
831
+ popper.classList.add('fc-prompt-tippy');
832
+ popper.style.setProperty('--fc-prompt-tooltip-max-width', `${host.promptFieldWidth.get(ctrl.id) ?? 320}px`);
833
+ }}"
862
834
  >
863
835
  <span class="fc-prompt__suggestion-label">${item.label}</span>
864
836
  </nile-lite-tooltip>`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/nile-visualization",
3
- "version": "2.9.14",
3
+ "version": "2.9.15",
4
4
  "description": "A visualization Library for the Nile Design System",
5
5
  "license": "MIT",
6
6
  "author": "Aquera Inc",