@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.
- package/dist/cjs/{app-globals-2ce719ff.js → app-globals-0e8cfe80.js} +1 -1
- package/dist/cjs/{chartFunctions-0ac688ee.js → chartFunctions-e647a84c.js} +55 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-chart-bar.cjs.entry.js +52 -74
- package/dist/cjs/wm-chart-column.cjs.entry.js +152 -37
- package/dist/cjs/wm-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +1 -1
- package/dist/collection/components/charts/chartFunctions.js +52 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +53 -75
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +24 -2
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +152 -37
- package/dist/collection/dev/chart-column.js +22 -0
- package/dist/esm/{app-globals-e6b62876.js → app-globals-70bd9899.js} +1 -1
- package/dist/esm/{chartFunctions-5c5ec047.js → chartFunctions-7f4666a3.js} +53 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-chart-bar.entry.js +52 -74
- package/dist/esm/wm-chart-column.entry.js +152 -37
- package/dist/esm/wm-chart.entry.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/{app-globals-e6b62876.js → app-globals-70bd9899.js} +1 -1
- package/dist/esm-es5/{chartFunctions-5c5ec047.js → chartFunctions-7f4666a3.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
- package/dist/esm-es5/wm-chart-column.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/ripple/p-036814b6.system.js +1 -0
- package/dist/ripple/p-11b73ce6.system.entry.js +1 -0
- package/dist/ripple/p-15ba4d78.system.entry.js +1 -0
- package/dist/ripple/{p-73cb7ed3.system.entry.js → p-1a8b2646.system.entry.js} +1 -1
- package/dist/ripple/p-727b91cb.entry.js +1 -0
- package/dist/ripple/p-764dc5f5.entry.js +1 -0
- package/dist/ripple/{p-68373243.system.js → p-892bc9bb.system.js} +1 -1
- package/dist/ripple/{p-a4e41780.system.js → p-a64700cf.system.js} +1 -1
- package/dist/ripple/{p-d6dffa33.js → p-ad4292fc.js} +1 -1
- package/dist/ripple/{p-ab3941ef.entry.js → p-ae2d429a.entry.js} +1 -1
- package/dist/ripple/{p-7bb837ee.js → p-d39ca25b.js} +1 -1
- package/dist/ripple/{p-ddeefea5.entry.js → p-d9fc4717.entry.js} +1 -1
- package/dist/ripple/{p-3306ac7e.system.entry.js → p-e911b1e7.system.entry.js} +1 -1
- package/dist/ripple/{p-0e7d9d2c.system.entry.js → p-f16526e2.system.entry.js} +1 -1
- package/dist/ripple/{p-6059a3ba.entry.js → p-f3e59161.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/chartFunctions.d.ts +4 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +8 -10
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +16 -7
- package/dist/types/global/interfaces.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ripple/p-337a26a1.entry.js +0 -1
- package/dist/ripple/p-4a3b967b.system.entry.js +0 -1
- package/dist/ripple/p-9130bbf8.system.entry.js +0 -1
- package/dist/ripple/p-b13902c4.system.js +0 -1
- package/dist/ripple/p-b7357ac0.entry.js +0 -1
|
@@ -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;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-
|
|
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;
|
package/dist/cjs/ripple.cjs.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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.
|
|
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.
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
445
|
-
|
|
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); }
|