q2-tecton-elements 1.52.7 → 1.52.8
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 +20 -3
- package/dist/cjs/q2-chart-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +22 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +1 -2
- 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 +20 -3
- 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 +22 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
- package/dist/collection/components/q2-select/q2-select.js +1 -2
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js +0 -4
- package/dist/collection/components/q2-select/test/q2-select-test.spec.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 +20 -3
- package/dist/components/q2-chart-bar.js.map +1 -1
- package/dist/components/q2-chart-donut.js +22 -1
- package/dist/components/q2-chart-donut.js.map +1 -1
- package/dist/components/q2-select2.js +1 -2
- 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 +20 -3
- package/dist/esm/q2-chart-bar.entry.js.map +1 -1
- package/dist/esm/q2-chart-donut.entry.js +22 -1
- package/dist/esm/q2-chart-donut.entry.js.map +1 -1
- package/dist/esm/q2-select.entry.js +1 -2
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +16 -3
- package/dist/q2-tecton-elements/q2-chart-area.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +98 -81
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +28 -7
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-select.entry.js +1 -2
- package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1284,7 +1284,23 @@ const Q2ChartBar = class {
|
|
|
1284
1284
|
// #endregion
|
|
1285
1285
|
// #region Component Lifecycle Events
|
|
1286
1286
|
disconnectedCallback() {
|
|
1287
|
+
// Remove event listeners
|
|
1287
1288
|
window.removeEventListener('resize', this.resizeEventListener);
|
|
1289
|
+
// Clean up chart instance
|
|
1290
|
+
if (this.chart) {
|
|
1291
|
+
if (this.chartFinishedListener) {
|
|
1292
|
+
this.chart.off('finished', this.chartFinishedListener);
|
|
1293
|
+
}
|
|
1294
|
+
this.chart.dispose();
|
|
1295
|
+
this.chart = null;
|
|
1296
|
+
}
|
|
1297
|
+
// Null out cached computed styles to allow GC
|
|
1298
|
+
this.chartContainerStyles = null;
|
|
1299
|
+
this.hostElementStyles = null;
|
|
1300
|
+
// Null out DOM references
|
|
1301
|
+
this.chartContainer = null;
|
|
1302
|
+
this.resizeEventListener = null;
|
|
1303
|
+
this.chartFinishedListener = null;
|
|
1288
1304
|
}
|
|
1289
1305
|
componentDidLoad() {
|
|
1290
1306
|
const chart = init(this.chartContainer);
|
|
@@ -1335,13 +1351,14 @@ const Q2ChartBar = class {
|
|
|
1335
1351
|
this.chart.resize();
|
|
1336
1352
|
}
|
|
1337
1353
|
setupChartEvents(chart) {
|
|
1338
|
-
|
|
1354
|
+
this.chartFinishedListener = () => {
|
|
1339
1355
|
var _a;
|
|
1340
1356
|
const canvas = chart.getDom().querySelector('canvas');
|
|
1341
1357
|
if ((_a = canvas === null || canvas === void 0 ? void 0 : canvas.hasAttribute('aria-hidden')) !== null && _a !== void 0 ? _a : false)
|
|
1342
1358
|
return;
|
|
1343
1359
|
canvas.setAttribute('aria-hidden', 'true');
|
|
1344
|
-
}
|
|
1360
|
+
};
|
|
1361
|
+
chart.on('finished', this.chartFinishedListener);
|
|
1345
1362
|
}
|
|
1346
1363
|
updateChart(chart) {
|
|
1347
1364
|
var _a;
|
|
@@ -1410,7 +1427,7 @@ const Q2ChartBar = class {
|
|
|
1410
1427
|
// #endregion
|
|
1411
1428
|
// #region Render Methods
|
|
1412
1429
|
render() {
|
|
1413
|
-
return (h("div", { key: '
|
|
1430
|
+
return (h("div", { key: '99b476ec176b6ceeaa2b6741c35482b2ecb0d46e', class: "container" }, h("div", { key: '823fd20b58c8189ec81e31adcc21480f91bbf848', ref: el => (this.chartContainer = el), class: "chart-container", role: "img", "test-id": "barChartContainer" })));
|
|
1414
1431
|
}
|
|
1415
1432
|
get hostElement() { return getElement(this); }
|
|
1416
1433
|
static get watchers() { return {
|