@watermarkinsights/ripple 5.27.0-alpha.4 → 5.27.0-alpha.6

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.
Files changed (59) hide show
  1. package/dist/cjs/{app-globals-2ce719ff.js → app-globals-0e8cfe80.js} +1 -1
  2. package/dist/cjs/{chartFunctions-0ac688ee.js → chartFunctions-e647a84c.js} +55 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/ripple.cjs.js +1 -1
  5. package/dist/cjs/wm-chart-bar.cjs.entry.js +52 -74
  6. package/dist/cjs/wm-chart-column.cjs.entry.js +152 -37
  7. package/dist/cjs/wm-chart.cjs.entry.js +1 -1
  8. package/dist/cjs/wm-line-chart.cjs.entry.js +1 -1
  9. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +1 -1
  10. package/dist/collection/components/charts/chartFunctions.js +52 -0
  11. package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +53 -75
  12. package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +24 -2
  13. package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +152 -37
  14. package/dist/collection/dev/chart-column.js +22 -0
  15. package/dist/esm/{app-globals-e6b62876.js → app-globals-70bd9899.js} +1 -1
  16. package/dist/esm/{chartFunctions-5c5ec047.js → chartFunctions-7f4666a3.js} +53 -1
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/ripple.js +1 -1
  19. package/dist/esm/wm-chart-bar.entry.js +52 -74
  20. package/dist/esm/wm-chart-column.entry.js +152 -37
  21. package/dist/esm/wm-chart.entry.js +1 -1
  22. package/dist/esm/wm-line-chart.entry.js +1 -1
  23. package/dist/esm/wm-progress-indicator_3.entry.js +1 -1
  24. package/dist/esm-es5/{app-globals-e6b62876.js → app-globals-70bd9899.js} +1 -1
  25. package/dist/esm-es5/{chartFunctions-5c5ec047.js → chartFunctions-7f4666a3.js} +1 -1
  26. package/dist/esm-es5/loader.js +1 -1
  27. package/dist/esm-es5/ripple.js +1 -1
  28. package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
  29. package/dist/esm-es5/wm-chart-column.entry.js +1 -1
  30. package/dist/esm-es5/wm-chart.entry.js +1 -1
  31. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  32. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  33. package/dist/ripple/p-036814b6.system.js +1 -0
  34. package/dist/ripple/p-11b73ce6.system.entry.js +1 -0
  35. package/dist/ripple/p-15ba4d78.system.entry.js +1 -0
  36. package/dist/ripple/{p-73cb7ed3.system.entry.js → p-1a8b2646.system.entry.js} +1 -1
  37. package/dist/ripple/p-727b91cb.entry.js +1 -0
  38. package/dist/ripple/p-764dc5f5.entry.js +1 -0
  39. package/dist/ripple/{p-68373243.system.js → p-892bc9bb.system.js} +1 -1
  40. package/dist/ripple/{p-a4e41780.system.js → p-a64700cf.system.js} +1 -1
  41. package/dist/ripple/{p-d6dffa33.js → p-ad4292fc.js} +1 -1
  42. package/dist/ripple/{p-ab3941ef.entry.js → p-ae2d429a.entry.js} +1 -1
  43. package/dist/ripple/{p-7bb837ee.js → p-d39ca25b.js} +1 -1
  44. package/dist/ripple/{p-ddeefea5.entry.js → p-d9fc4717.entry.js} +1 -1
  45. package/dist/ripple/{p-3306ac7e.system.entry.js → p-e911b1e7.system.entry.js} +1 -1
  46. package/dist/ripple/{p-0e7d9d2c.system.entry.js → p-f16526e2.system.entry.js} +1 -1
  47. package/dist/ripple/{p-6059a3ba.entry.js → p-f3e59161.entry.js} +1 -1
  48. package/dist/ripple/ripple.esm.js +1 -1
  49. package/dist/ripple/ripple.js +1 -1
  50. package/dist/types/components/charts/chartFunctions.d.ts +4 -1
  51. package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +8 -10
  52. package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +16 -7
  53. package/dist/types/global/interfaces.d.ts +1 -0
  54. package/package.json +2 -2
  55. package/dist/ripple/p-337a26a1.entry.js +0 -1
  56. package/dist/ripple/p-4a3b967b.system.entry.js +0 -1
  57. package/dist/ripple/p-9130bbf8.system.entry.js +0 -1
  58. package/dist/ripple/p-b13902c4.system.js +0 -1
  59. package/dist/ripple/p-b7357ac0.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index-788526f5.js');
4
4
 
5
- const version = "5.27.0-alpha.4";
5
+ const version = "5.27.0-alpha.6";
6
6
 
7
7
  // PRINT RIPPLE VERSION IN CONSOLE
8
8
  // test envs return 0 for plugin.length
@@ -782,10 +782,63 @@ function findNiceRoundNumber(value) {
782
782
  // Fallback: next order of magnitude
783
783
  return 10 * magnitude;
784
784
  }
785
+ function computeLegendData(data) {
786
+ const seen = new Set();
787
+ const result = [];
788
+ data.forEach((groupItems) => {
789
+ groupItems.forEach((item) => {
790
+ if (!seen.has(item.barLegend)) {
791
+ seen.add(item.barLegend);
792
+ result.push(item);
793
+ }
794
+ });
795
+ });
796
+ return result;
797
+ }
798
+ function groupProcessedData(data, defaultGroupName) {
799
+ const groups = new Map();
800
+ data.forEach((item) => {
801
+ let groupName = item.groupName;
802
+ if (!groupName) {
803
+ groupName = defaultGroupName;
804
+ }
805
+ if (!groups.has(groupName)) {
806
+ groups.set(groupName, []);
807
+ }
808
+ groups.get(groupName).push(item);
809
+ });
810
+ return groups;
811
+ }
812
+ function sortGroupedData(data) {
813
+ const barData = [...data];
814
+ // Determine group order and barLegend order by first occurrences
815
+ const groupOrder = [];
816
+ barData.forEach((item) => {
817
+ if (item.groupName && !groupOrder.includes(item.groupName)) {
818
+ groupOrder.push(item.groupName);
819
+ }
820
+ });
821
+ const barLegendOrder = barData
822
+ .filter((item) => item.groupName === groupOrder[0])
823
+ .map((item) => item.barLegend);
824
+ // Two step sorting: sort by group order, then by barLegend order
825
+ const sortedBarData = barData.sort((a, b) => {
826
+ const groupIndexA = groupOrder.indexOf(a.groupName || "");
827
+ const groupIndexB = groupOrder.indexOf(b.groupName || "");
828
+ if (groupIndexA !== groupIndexB) {
829
+ return groupIndexA - groupIndexB;
830
+ }
831
+ const legendIndexA = barLegendOrder.indexOf(a.barLegend);
832
+ const legendIndexB = barLegendOrder.indexOf(b.barLegend);
833
+ return legendIndexA - legendIndexB;
834
+ });
835
+ return sortedBarData;
836
+ }
785
837
 
786
838
  exports.abbrNumber = abbrNumber;
787
839
  exports.allChartsDetails = allChartsDetails;
788
840
  exports.amountToPercent = amountToPercent;
841
+ exports.computeLegendData = computeLegendData;
789
842
  exports.exitChart = exitChart;
790
843
  exports.findLargestNiceInterval = findLargestNiceInterval;
791
844
  exports.findNiceRoundNumber = findNiceRoundNumber;
@@ -793,6 +846,7 @@ exports.formatDisplayValue = formatDisplayValue;
793
846
  exports.getDetails = getDetails;
794
847
  exports.getInterval = getInterval;
795
848
  exports.getMaxTicks = getMaxTicks;
849
+ exports.groupProcessedData = groupProcessedData;
796
850
  exports.handleChartKeydown = handleChartKeydown;
797
851
  exports.removeSegmentInfoHighlight = removeSegmentInfoHighlight;
798
852
  exports.renderCompletionMessage = renderCompletionMessage;
@@ -803,4 +857,5 @@ exports.renderLegend = renderLegend;
803
857
  exports.renderLegendItem = renderLegendItem;
804
858
  exports.renderSimpleBar = renderSimpleBar;
805
859
  exports.renderStackedBar = renderStackedBar;
860
+ exports.sortGroupedData = sortGroupedData;
806
861
  exports.suffixNumber = suffixNumber;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-788526f5.js');
6
- const appGlobals = require('./app-globals-2ce719ff.js');
6
+ const appGlobals = require('./app-globals-0e8cfe80.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-788526f5.js');
6
- const appGlobals = require('./app-globals-2ce719ff.js');
6
+ const appGlobals = require('./app-globals-0e8cfe80.js');
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-788526f5.js');
6
6
  const interfaces = require('./interfaces-8419be91.js');
7
- const chartFunctions = require('./chartFunctions-0ac688ee.js');
7
+ const chartFunctions = require('./chartFunctions-e647a84c.js');
8
8
  const intl = require('./intl-02a445a1.js');
9
9
  const functions = require('./functions-2041a1d8.js');
10
10
 
@@ -17,13 +17,13 @@ const ChartBar = class {
17
17
  this.wmChartBarHighlighted = index.createEvent(this, "wmChartBarHighlighted", 7);
18
18
  this.gridMax = 0;
19
19
  this.isGrouped = false;
20
- this.groupedData = new Map();
21
20
  this.legendData = [];
21
+ this.ungroupedDataName = "_ungrouped";
22
22
  this.config = undefined;
23
23
  this.data = undefined;
24
24
  this.printMode = undefined;
25
25
  this.subinfo = undefined;
26
- this.processedData = [];
26
+ this.processedData = new Map();
27
27
  this.gridInfo = undefined;
28
28
  this.isKeying = false;
29
29
  }
@@ -32,7 +32,8 @@ const ChartBar = class {
32
32
  ////////////////////////////////////////////////////////////
33
33
  get colorPalette() {
34
34
  var _a, _b, _c, _d;
35
- let palette = ["wmcolor-dataviz-discrete-01"]; // default to single color
35
+ // Default to discrete palette for grouped charts, single color for ungrouped
36
+ let palette = this.isGrouped ? interfaces.chartPalettes.discrete : ["wmcolor-dataviz-discrete-01"];
36
37
  if (((_a = this.config) === null || _a === void 0 ? void 0 : _a.colors) === "semantic") {
37
38
  palette = interfaces.chartPalettes.semantic;
38
39
  }
@@ -60,6 +61,9 @@ const ChartBar = class {
60
61
  var _a, _b, _c;
61
62
  return !!this.gridInfo && ((_a = this.config) === null || _a === void 0 ? void 0 : _a.gridMax) != undefined && ((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.showGrid) !== null && _c !== void 0 ? _c : true);
62
63
  }
64
+ get flattenedData() {
65
+ return [...this.processedData.values()].flat();
66
+ }
63
67
  // #endregion getters
64
68
  ////////////////////////////////////////////////////////////
65
69
  // #region Component lifecycle
@@ -95,7 +99,7 @@ const ChartBar = class {
95
99
  this.isGrouped = this.data.some((item) => item.groupName);
96
100
  let processedItems = this.processChartData();
97
101
  if (this.isGrouped) {
98
- processedItems = this.sortGroupedData(processedItems);
102
+ processedItems = chartFunctions.sortGroupedData(processedItems);
99
103
  }
100
104
  else if (this.sort === "ascending") {
101
105
  processedItems.sort((a, b) => a.amount - b.amount);
@@ -103,12 +107,9 @@ const ChartBar = class {
103
107
  else if (this.sort === "descending") {
104
108
  processedItems.sort((a, b) => b.amount - a.amount);
105
109
  }
106
- this.processedData = processedItems;
107
- this.legendData = this.computeLegendData(this.processedData);
110
+ this.processedData = chartFunctions.groupProcessedData(processedItems, this.ungroupedDataName);
111
+ this.legendData = chartFunctions.computeLegendData(this.processedData);
108
112
  this.gridInfo = this.calculateGridInfo();
109
- if (this.isGrouped) {
110
- this.groupedData = this.computeGroupedData(this.processedData);
111
- }
112
113
  }
113
114
  }
114
115
  processChartData() {
@@ -179,53 +180,6 @@ const ChartBar = class {
179
180
  tickLabels: tickLabels,
180
181
  };
181
182
  }
182
- sortGroupedData(data) {
183
- const barData = [...data];
184
- // Determine group order and barLegend order by first occurrences
185
- const groupOrder = [];
186
- barData.forEach((item) => {
187
- if (item.groupName && !groupOrder.includes(item.groupName)) {
188
- groupOrder.push(item.groupName);
189
- }
190
- });
191
- const barLegendOrder = barData
192
- .filter((item) => item.groupName === groupOrder[0])
193
- .map((item) => item.barLegend);
194
- // Two step sorting: sort by group order, then by barLegend order
195
- const sortedBarData = barData.sort((a, b) => {
196
- const groupIndexA = groupOrder.indexOf(a.groupName || "");
197
- const groupIndexB = groupOrder.indexOf(b.groupName || "");
198
- if (groupIndexA !== groupIndexB) {
199
- return groupIndexA - groupIndexB;
200
- }
201
- const legendIndexA = barLegendOrder.indexOf(a.barLegend);
202
- const legendIndexB = barLegendOrder.indexOf(b.barLegend);
203
- return legendIndexA - legendIndexB;
204
- });
205
- return sortedBarData;
206
- }
207
- computeLegendData(data) {
208
- const seen = new Set();
209
- return data.filter((item) => {
210
- if (seen.has(item.barLegend))
211
- return false;
212
- seen.add(item.barLegend);
213
- return true;
214
- });
215
- }
216
- computeGroupedData(data) {
217
- const groups = new Map();
218
- data.forEach((item) => {
219
- const groupName = item.groupName;
220
- if (groupName) {
221
- if (!groups.has(groupName)) {
222
- groups.set(groupName, []);
223
- }
224
- groups.get(groupName).push(item);
225
- }
226
- });
227
- return groups;
228
- }
229
183
  // #endregion data processing
230
184
  ////////////////////////////////////////////////////////////
231
185
  // #region Keyboard interaction and Event handling
@@ -252,7 +206,7 @@ const ChartBar = class {
252
206
  }
253
207
  }
254
208
  handleBarKeyDown(ev, item) {
255
- const barIdx = this.processedData.indexOf(item);
209
+ const barIdx = this.flattenedData.indexOf(item);
256
210
  switch (ev.key) {
257
211
  case "ArrowUp":
258
212
  case "ArrowLeft":
@@ -320,20 +274,22 @@ const ChartBar = class {
320
274
  const wrappedIdx = ((barIdx % bars.length) + bars.length) % bars.length;
321
275
  const barToFocus = bars[wrappedIdx];
322
276
  barToFocus.focus();
323
- const item = this.processedData[wrappedIdx];
324
- this.highlightBar(item);
325
- const cornerOffset = 12;
326
- this.openPopover(item, {
327
- x: barToFocus.getBoundingClientRect().left + cornerOffset,
328
- y: barToFocus.getBoundingClientRect().top + cornerOffset,
329
- });
277
+ const item = this.flattenedData[wrappedIdx];
278
+ if (item) {
279
+ this.highlightBar(item);
280
+ const cornerOffset = 12;
281
+ this.openPopover(item, {
282
+ x: barToFocus.getBoundingClientRect().left + cornerOffset,
283
+ y: barToFocus.getBoundingClientRect().top + cornerOffset,
284
+ });
285
+ }
330
286
  }
331
287
  handlePopoverToggled(_ev) {
332
288
  setTimeout(() => {
333
289
  // allow time for the popover to reopen if the click that closed it was on a bar, to prevent flash
334
290
  if (this.popoverEl.open) {
335
291
  const chartData = this.popoverEl.chartData;
336
- const item = this.processedData.find((item) => item.barLegend === (chartData === null || chartData === void 0 ? void 0 : chartData.barLegend) && item.groupName === (chartData === null || chartData === void 0 ? void 0 : chartData.groupName));
292
+ const item = this.flattenedData.find((item) => item.barLegend === (chartData === null || chartData === void 0 ? void 0 : chartData.barLegend) && item.groupName === (chartData === null || chartData === void 0 ? void 0 : chartData.groupName));
337
293
  item && this.highlightBar(item);
338
294
  }
339
295
  else {
@@ -368,7 +324,7 @@ const ChartBar = class {
368
324
  this.wmChartBarHighlighted.emit({ idx: -1 });
369
325
  }
370
326
  highlightBar(item) {
371
- const idx = this.processedData.indexOf(item);
327
+ const idx = this.flattenedData.indexOf(item);
372
328
  const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
373
329
  barItems.forEach((barItem) => {
374
330
  barItem.classList.add("faded");
@@ -381,7 +337,7 @@ const ChartBar = class {
381
337
  const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
382
338
  barItems.forEach((barItem, idx) => {
383
339
  var _a;
384
- if (((_a = this.processedData[idx]) === null || _a === void 0 ? void 0 : _a.barLegend) === barLegend) {
340
+ if (((_a = this.flattenedData[idx]) === null || _a === void 0 ? void 0 : _a.barLegend) === barLegend) {
385
341
  barItem.classList.remove("faded");
386
342
  }
387
343
  else {
@@ -400,7 +356,13 @@ const ChartBar = class {
400
356
  // #region Rendering
401
357
  ////////////////////////////////////////////////////////////
402
358
  renderBarLegends() {
403
- return this.processedData.map((item) => (index.h("div", { key: `legend-${item.barLegend}`, class: "bar-legend" }, item.barLegend)));
359
+ const legends = [];
360
+ this.processedData.forEach((items) => {
361
+ items.forEach((item) => {
362
+ legends.push(index.h("div", { key: `legend-${item.barLegend}`, class: "bar-legend" }, item.barLegend));
363
+ });
364
+ });
365
+ return legends;
404
366
  }
405
367
  renderBar(item, effectiveGridMax) {
406
368
  var _a;
@@ -412,17 +374,31 @@ const ChartBar = class {
412
374
  return;
413
375
  }
414
376
  const effectiveGridMax = this.gridInfo.numTicks * this.gridInfo.interval;
415
- return this.processedData.map((item) => this.renderBar(item, effectiveGridMax));
377
+ const bars = [];
378
+ this.processedData.forEach((items) => {
379
+ items.forEach((item) => {
380
+ bars.push(this.renderBar(item, effectiveGridMax));
381
+ });
382
+ });
383
+ return bars;
416
384
  }
417
385
  renderGroupLegends() {
418
- return Array.from(this.groupedData.keys()).map((groupName) => (index.h("div", { key: `legend-${groupName}`, class: "group-legend" }, groupName)));
386
+ const legends = [];
387
+ this.processedData.forEach((_, groupName) => {
388
+ legends.push(index.h("div", { key: `legend-${groupName}`, class: "group-legend" }, groupName));
389
+ });
390
+ return legends;
419
391
  }
420
392
  renderGroupedBars() {
421
393
  if (!this.gridInfo || !this.processedData) {
422
394
  return;
423
395
  }
424
396
  const effectiveGridMax = this.gridInfo.numTicks * this.gridInfo.interval;
425
- return Array.from(this.groupedData.entries()).map(([groupName, items]) => (index.h("div", { key: `group-${groupName}`, class: "group-bars" }, items.map((item) => this.renderBar(item, effectiveGridMax)))));
397
+ const groupedBars = [];
398
+ this.processedData.forEach((items, groupName) => {
399
+ groupedBars.push(index.h("div", { key: `group-${groupName}`, class: "group-bars" }, items.map((item) => this.renderBar(item, effectiveGridMax))));
400
+ });
401
+ return groupedBars;
426
402
  }
427
403
  renderXAxis() {
428
404
  var _a;
@@ -441,8 +417,10 @@ const ChartBar = class {
441
417
  // #endregion rendering
442
418
  render() {
443
419
  var _a, _b, _c, _d, _e, _f, _g, _h;
444
- const rowCount = this.isGrouped ? this.groupedData.size || 1 : this.processedData.length || 1;
445
- return (index.h(index.Host, { key: 'dc18c7f0e16c9395390d8b10991ce596710b7b75' }, index.h("div", { key: '0d9898a48bed4b345b05b26e6067160fbb14975c', class: "popover-wrapper" }, index.h("priv-chart-popover", { key: 'b717d8bfc2b2451175283b696a1d0b9ed7d17acf', ref: (el) => (this.popoverEl = el), onIntChartPopoverToggled: (ev) => this.handlePopoverToggled(ev) })), index.h("div", { key: '6f7abe87bd608f99c3a0635a6bb10413963560df', ref: (el) => (this.componentWrapperEl = el), class: "component-wrapper", tabindex: "0", role: "application", onKeyDown: (ev) => this.handleChartKeyDown(ev), onBlur: (ev) => this.handleComponentBlur(ev), "aria-roledescription": intl.chartMessages.interactiveChart, "aria-describedby": "chart-instructions", "aria-label": (_a = this.config) === null || _a === void 0 ? void 0 : _a.label }, ((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.showLabel) !== null && _c !== void 0 ? _c : true) && (index.h("label", { key: '1bdacd770d63612d320708a9b62a65f0b1e88db0', id: "label", class: "label" }, index.h("span", { key: '67d56b01c22520ffcaab23b08f7543fa410685b3', class: "label-text" }, (_d = this.config) === null || _d === void 0 ? void 0 : _d.label), this.subinfoText ? index.h("span", { class: "subinfo" }, this.subinfoText) : "")), this.showLegend === "top" && this.renderLegend("horizontal"), index.h("div", { key: 'f09a65a3693b113876f131167d09e77571d3520f', class: "chart-wrapper" }, index.h("div", { key: '0789c67f4cd70957b453102c084663d09ea0701f', class: "chart-left-side" }, this.showLegend === "left" && this.renderLegend("vertical"), index.h("div", { key: 'a187cffa2adc02c70d0e4ead3b198a3ee53d32d5', class: "left-axis-label" }, index.h("span", { key: 'ecdab36313608c9ad83aed01fa2519e7bdd43785', class: "axis-label-text" }, (_e = this.config) === null || _e === void 0 ? void 0 : _e.categoryAxisLabel))), index.h("div", { key: 'f37584ae13b6c8b4478462ce04e99efdf8401040', class: "chart-center" }, index.h("div", { key: '53aba0880f1737b4efa6af44e2392d391f1e504a', class: "chart-area", style: { "--row-count": rowCount.toString() } }, this.processedData && (this.isGrouped ? this.renderGroupLegends() : this.renderBarLegends()), index.h("div", { key: '7207315cb4a1afabcb41d6f3dfc8f453439ae48a', class: `bar-area ${this.isKeying ? "user-is-keying" : ""} ${this.isGrouped ? "grouped" : ""}`, ref: (el) => (this.barAreaEl = el) }, this.gridVisible && this.renderGrid(), ((_f = this.config) === null || _f === void 0 ? void 0 : _f.gridMax) != undefined && !this.isGrouped && this.renderBars(), ((_g = this.config) === null || _g === void 0 ? void 0 : _g.gridMax) != undefined && this.isGrouped && this.renderGroupedBars())), index.h("div", { key: '2b23571f457d8cad85569d36b18e96ab64c64bd7', class: "bottom-axis-label" }, index.h("span", { key: 'e0e1b04b36301eda3a7cb91a99341f17e9ad8430', class: "axis-label-text" }, (_h = this.config) === null || _h === void 0 ? void 0 : _h.valueAxisLabel)), this.gridVisible && this.renderXAxis()), index.h("div", { key: '2d72f2f92066de300791627e7aecfbdb1de9c713', class: "chart-right-side" }, this.showLegend === "right" && this.renderLegend("vertical"))), this.showLegend === "bottom" && this.renderLegend("horizontal"), chartFunctions.renderInstructionsText())));
420
+ const rowCount = this.isGrouped
421
+ ? this.processedData.size || 1
422
+ : ((_a = this.processedData.get(this.ungroupedDataName)) === null || _a === void 0 ? void 0 : _a.length) || 1;
423
+ return (index.h(index.Host, { key: '1c87d56eb8d2efc9ff5dc28ba8c31cd74f114320' }, index.h("div", { key: '280fc2d3ea4d191fc2c5a7c74a631824efbcf40e', class: "popover-wrapper" }, index.h("priv-chart-popover", { key: '96899ce56eb4b0bc7be3cb94cd60a98770f1e134', ref: (el) => (this.popoverEl = el), onIntChartPopoverToggled: (ev) => this.handlePopoverToggled(ev) })), index.h("div", { key: '5352946f4cd3e02a6e0483279c5a54b04b624a39', ref: (el) => (this.componentWrapperEl = el), class: "component-wrapper", tabindex: "0", role: "application", onKeyDown: (ev) => this.handleChartKeyDown(ev), onBlur: (ev) => this.handleComponentBlur(ev), "aria-roledescription": intl.chartMessages.interactiveChart, "aria-describedby": "chart-instructions", "aria-label": (_b = this.config) === null || _b === void 0 ? void 0 : _b.label }, ((_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.showLabel) !== null && _d !== void 0 ? _d : true) && (index.h("label", { key: 'b8b9ad3890b71dbba8e13bf49aba8b706088440e', id: "label", class: "label" }, index.h("span", { key: '38a02f30582c17454a75bfb182fb581d7e9ac16c', class: "label-text" }, (_e = this.config) === null || _e === void 0 ? void 0 : _e.label), this.subinfoText ? index.h("span", { class: "subinfo" }, this.subinfoText) : "")), this.showLegend === "top" && this.renderLegend("horizontal"), index.h("div", { key: 'f8d02c5539618d4e6ba7bed322a9b212976dc7b8', class: "chart-wrapper" }, index.h("div", { key: 'ffd036730778b11e3287215838cb4c8535d30b4e', class: "chart-left-side" }, this.showLegend === "left" && this.renderLegend("vertical"), index.h("div", { key: '39743d5fc4d7982b54d8e6c9636c756883dd36e6', class: "left-axis-label" }, index.h("span", { key: '60f613acabdf5ded9213128530626e2b2fdeaba6', class: "axis-label-text" }, (_f = this.config) === null || _f === void 0 ? void 0 : _f.categoryAxisLabel))), index.h("div", { key: 'a04f828912679a1dd5f012c3e9f69b5d4e7216e1', class: "chart-center" }, index.h("div", { key: '72a30421887c24bf0a89bd35e4b96e9b9f8fdd72', class: "chart-area", style: { "--row-count": rowCount.toString() } }, this.processedData && (this.isGrouped ? this.renderGroupLegends() : this.renderBarLegends()), index.h("div", { key: '3c142e2b75533ea9b94761f5476a0d6443e47b93', class: `bar-area ${this.isKeying ? "user-is-keying" : ""} ${this.isGrouped ? "grouped" : ""}`, ref: (el) => (this.barAreaEl = el) }, this.gridVisible && this.renderGrid(), ((_g = this.config) === null || _g === void 0 ? void 0 : _g.gridMax) != undefined && (this.isGrouped ? this.renderGroupedBars() : this.renderBars()))), index.h("div", { key: '2f5a4864e5b9186b2a2230c470d02ed6f4352ebf', class: "bottom-axis-label" }, index.h("span", { key: '78bdab308efd6fbc6b383f794e4daedc509d9d10', class: "axis-label-text" }, (_h = this.config) === null || _h === void 0 ? void 0 : _h.valueAxisLabel)), this.gridVisible && this.renderXAxis()), index.h("div", { key: 'be80d9d9c8e5f7fcb5dd20ff64f48728d4acbbf6', class: "chart-right-side" }, this.showLegend === "right" && this.renderLegend("vertical"))), this.showLegend === "bottom" && this.renderLegend("horizontal"), chartFunctions.renderInstructionsText())));
446
424
  }
447
425
  static get delegatesFocus() { return true; }
448
426
  get el() { return index.getElement(this); }