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.
Files changed (44) hide show
  1. package/dist/cjs/q2-chart-area.cjs.entry.js +14 -1
  2. package/dist/cjs/q2-chart-area.cjs.entry.js.map +1 -1
  3. package/dist/cjs/q2-chart-bar.cjs.entry.js +20 -3
  4. package/dist/cjs/q2-chart-bar.cjs.entry.js.map +1 -1
  5. package/dist/cjs/q2-chart-donut.cjs.entry.js +22 -1
  6. package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
  7. package/dist/cjs/q2-select.cjs.entry.js +1 -2
  8. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  9. package/dist/collection/components/q2-chart-area/q2-chart-area.js +14 -1
  10. package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
  11. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +20 -3
  12. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
  13. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +22 -1
  14. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  15. package/dist/collection/components/q2-select/q2-select.js +1 -2
  16. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  17. package/dist/collection/components/q2-select/test/q2-select-test.spec.js +0 -4
  18. package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -1
  19. package/dist/components/q2-chart-area.js +14 -1
  20. package/dist/components/q2-chart-area.js.map +1 -1
  21. package/dist/components/q2-chart-bar.js +20 -3
  22. package/dist/components/q2-chart-bar.js.map +1 -1
  23. package/dist/components/q2-chart-donut.js +22 -1
  24. package/dist/components/q2-chart-donut.js.map +1 -1
  25. package/dist/components/q2-select2.js +1 -2
  26. package/dist/components/q2-select2.js.map +1 -1
  27. package/dist/esm/q2-chart-area.entry.js +14 -1
  28. package/dist/esm/q2-chart-area.entry.js.map +1 -1
  29. package/dist/esm/q2-chart-bar.entry.js +20 -3
  30. package/dist/esm/q2-chart-bar.entry.js.map +1 -1
  31. package/dist/esm/q2-chart-donut.entry.js +22 -1
  32. package/dist/esm/q2-chart-donut.entry.js.map +1 -1
  33. package/dist/esm/q2-select.entry.js +1 -2
  34. package/dist/esm/q2-select.entry.js.map +1 -1
  35. package/dist/q2-tecton-elements/q2-chart-area.entry.js +16 -3
  36. package/dist/q2-tecton-elements/q2-chart-area.entry.js.map +1 -1
  37. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +98 -81
  38. package/dist/q2-tecton-elements/q2-chart-bar.entry.js.map +1 -1
  39. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +28 -7
  40. package/dist/q2-tecton-elements/q2-chart-donut.entry.js.map +1 -1
  41. package/dist/q2-tecton-elements/q2-select.entry.js +1 -2
  42. package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
  43. package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +1 -0
  44. package/package.json +3 -3
@@ -1288,7 +1288,23 @@ const Q2ChartBar = class {
1288
1288
  // #endregion
1289
1289
  // #region Component Lifecycle Events
1290
1290
  disconnectedCallback() {
1291
+ // Remove event listeners
1291
1292
  window.removeEventListener('resize', this.resizeEventListener);
1293
+ // Clean up chart instance
1294
+ if (this.chart) {
1295
+ if (this.chartFinishedListener) {
1296
+ this.chart.off('finished', this.chartFinishedListener);
1297
+ }
1298
+ this.chart.dispose();
1299
+ this.chart = null;
1300
+ }
1301
+ // Null out cached computed styles to allow GC
1302
+ this.chartContainerStyles = null;
1303
+ this.hostElementStyles = null;
1304
+ // Null out DOM references
1305
+ this.chartContainer = null;
1306
+ this.resizeEventListener = null;
1307
+ this.chartFinishedListener = null;
1292
1308
  }
1293
1309
  componentDidLoad() {
1294
1310
  const chart = charting.init(this.chartContainer);
@@ -1339,13 +1355,14 @@ const Q2ChartBar = class {
1339
1355
  this.chart.resize();
1340
1356
  }
1341
1357
  setupChartEvents(chart) {
1342
- chart.on('finished', () => {
1358
+ this.chartFinishedListener = () => {
1343
1359
  var _a;
1344
1360
  const canvas = chart.getDom().querySelector('canvas');
1345
1361
  if ((_a = canvas === null || canvas === void 0 ? void 0 : canvas.hasAttribute('aria-hidden')) !== null && _a !== void 0 ? _a : false)
1346
1362
  return;
1347
1363
  canvas.setAttribute('aria-hidden', 'true');
1348
- });
1364
+ };
1365
+ chart.on('finished', this.chartFinishedListener);
1349
1366
  }
1350
1367
  updateChart(chart) {
1351
1368
  var _a;
@@ -1414,7 +1431,7 @@ const Q2ChartBar = class {
1414
1431
  // #endregion
1415
1432
  // #region Render Methods
1416
1433
  render() {
1417
- return (index.h("div", { key: '647bffbfd416069ed926ec138ef55b9ec2ff15f2', class: "container" }, index.h("div", { key: '2acf75f9b41d7142eae7da295fe900b88af7f9c1', ref: el => (this.chartContainer = el), class: "chart-container", role: "img", "test-id": "barChartContainer" })));
1434
+ return (index.h("div", { key: '99b476ec176b6ceeaa2b6741c35482b2ecb0d46e', class: "container" }, index.h("div", { key: '823fd20b58c8189ec81e31adcc21480f91bbf848', ref: el => (this.chartContainer = el), class: "chart-container", role: "img", "test-id": "barChartContainer" })));
1418
1435
  }
1419
1436
  get hostElement() { return index.getElement(this); }
1420
1437
  static get watchers() { return {