q2-tecton-elements 1.47.4 → 1.47.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/q2-chart-area.cjs.entry.js +14 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js +28 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +24 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +2 -3
- package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +14 -1
- package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +28 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +24 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
- package/dist/collection/components/q2-select/q2-select.js +2 -3
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/components/q2-chart-area.js +14 -1
- package/dist/components/q2-chart-area.js.map +1 -1
- package/dist/components/q2-chart-bar.js +28 -1
- package/dist/components/q2-chart-bar.js.map +1 -1
- package/dist/components/q2-chart-donut.js +24 -1
- package/dist/components/q2-chart-donut.js.map +1 -1
- package/dist/components/q2-select2.js +2 -3
- package/dist/components/q2-select2.js.map +1 -1
- package/dist/esm/q2-chart-area.entry.js +14 -1
- package/dist/esm/q2-chart-area.entry.js.map +1 -1
- package/dist/esm/q2-chart-bar.entry.js +28 -1
- package/dist/esm/q2-chart-bar.entry.js.map +1 -1
- package/dist/esm/q2-chart-donut.entry.js +24 -1
- package/dist/esm/q2-chart-donut.entry.js.map +1 -1
- package/dist/esm/q2-select.entry.js +2 -3
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/p-3ccb7031.entry.js +2 -0
- package/dist/q2-tecton-elements/p-3ccb7031.entry.js.map +1 -0
- package/dist/q2-tecton-elements/{p-0097a699.entry.js → p-4d1e5572.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-4d1e5572.entry.js.map +1 -0
- package/dist/q2-tecton-elements/{p-bcd6b43b.entry.js → p-52bb49a9.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-52bb49a9.entry.js.map +1 -0
- package/dist/q2-tecton-elements/p-91b89da7.entry.js +2 -0
- package/dist/q2-tecton-elements/{p-eef9966c.entry.js.map → p-91b89da7.entry.js.map} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/elements/q2-select-test.spec.js +0 -4
- package/dist/test/elements/q2-select-test.spec.js.map +1 -1
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +2 -0
- package/package.json +3 -3
- package/dist/q2-tecton-elements/p-0097a699.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-aa7e150c.entry.js +0 -2
- package/dist/q2-tecton-elements/p-aa7e150c.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-bcd6b43b.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-eef9966c.entry.js +0 -2
|
@@ -1291,10 +1291,27 @@ const Q2ChartBar = class {
|
|
|
1291
1291
|
window.addEventListener('resize', this.resizeEventListener);
|
|
1292
1292
|
this.cacheComputedStyles();
|
|
1293
1293
|
this.updateChart(chart);
|
|
1294
|
+
this.setupChartEvents(chart);
|
|
1294
1295
|
index$1.overrideFocus(this.hostElement);
|
|
1295
1296
|
}
|
|
1296
1297
|
disconnectedCallback() {
|
|
1298
|
+
// Remove event listeners
|
|
1297
1299
|
window.removeEventListener('resize', this.resizeEventListener);
|
|
1300
|
+
// Clean up chart instance
|
|
1301
|
+
if (this.chart) {
|
|
1302
|
+
if (this.chartFinishedListener) {
|
|
1303
|
+
this.chart.off('finished', this.chartFinishedListener);
|
|
1304
|
+
}
|
|
1305
|
+
this.chart.dispose();
|
|
1306
|
+
this.chart = null;
|
|
1307
|
+
}
|
|
1308
|
+
// Null out cached computed styles to allow GC
|
|
1309
|
+
this.chartContainerStyles = null;
|
|
1310
|
+
this.hostElementStyles = null;
|
|
1311
|
+
// Null out DOM references
|
|
1312
|
+
this.chartContainer = null;
|
|
1313
|
+
this.resizeEventListener = null;
|
|
1314
|
+
this.chartFinishedListener = null;
|
|
1298
1315
|
}
|
|
1299
1316
|
cacheComputedStyles() {
|
|
1300
1317
|
this.chartContainerStyles = getComputedStyle(this.chartContainer);
|
|
@@ -1393,11 +1410,21 @@ const Q2ChartBar = class {
|
|
|
1393
1410
|
resizeChart() {
|
|
1394
1411
|
this.chart.resize();
|
|
1395
1412
|
}
|
|
1413
|
+
setupChartEvents(chart) {
|
|
1414
|
+
this.chartFinishedListener = () => {
|
|
1415
|
+
var _a;
|
|
1416
|
+
const canvas = chart.getDom().querySelector('canvas');
|
|
1417
|
+
if ((_a = canvas === null || canvas === void 0 ? void 0 : canvas.hasAttribute('aria-hidden')) !== null && _a !== void 0 ? _a : false)
|
|
1418
|
+
return;
|
|
1419
|
+
canvas.setAttribute('aria-hidden', 'true');
|
|
1420
|
+
};
|
|
1421
|
+
chart.on('finished', this.chartFinishedListener);
|
|
1422
|
+
}
|
|
1396
1423
|
propsUpdates() {
|
|
1397
1424
|
this.updateChart(this.chart);
|
|
1398
1425
|
}
|
|
1399
1426
|
render() {
|
|
1400
|
-
return (index.h("div", { key: '
|
|
1427
|
+
return (index.h("div", { key: 'd46a9bf3769e9207b97085ece599917c51df17fe', class: "container" }, index.h("div", { key: '2ee334a1b21bfd7c6d5195378871a91af125552a', ref: el => (this.chartContainer = el), class: "chart-container", "test-id": "barChartContainer" })));
|
|
1401
1428
|
}
|
|
1402
1429
|
get hostElement() { return index.getElement(this); }
|
|
1403
1430
|
static get watchers() { return {
|