q2-tecton-elements 1.47.4 → 1.47.5

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 (37) 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 +28 -1
  4. package/dist/cjs/q2-chart-bar.cjs.entry.js.map +1 -1
  5. package/dist/cjs/q2-chart-donut.cjs.entry.js +24 -1
  6. package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
  7. package/dist/collection/components/q2-chart-area/q2-chart-area.js +14 -1
  8. package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
  9. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +28 -1
  10. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
  11. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +24 -1
  12. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  13. package/dist/components/q2-chart-area.js +14 -1
  14. package/dist/components/q2-chart-area.js.map +1 -1
  15. package/dist/components/q2-chart-bar.js +28 -1
  16. package/dist/components/q2-chart-bar.js.map +1 -1
  17. package/dist/components/q2-chart-donut.js +24 -1
  18. package/dist/components/q2-chart-donut.js.map +1 -1
  19. package/dist/esm/q2-chart-area.entry.js +14 -1
  20. package/dist/esm/q2-chart-area.entry.js.map +1 -1
  21. package/dist/esm/q2-chart-bar.entry.js +28 -1
  22. package/dist/esm/q2-chart-bar.entry.js.map +1 -1
  23. package/dist/esm/q2-chart-donut.entry.js +24 -1
  24. package/dist/esm/q2-chart-donut.entry.js.map +1 -1
  25. package/dist/q2-tecton-elements/p-3ccb7031.entry.js +2 -0
  26. package/dist/q2-tecton-elements/p-3ccb7031.entry.js.map +1 -0
  27. package/dist/q2-tecton-elements/{p-0097a699.entry.js → p-4d1e5572.entry.js} +2 -2
  28. package/dist/q2-tecton-elements/p-4d1e5572.entry.js.map +1 -0
  29. package/dist/q2-tecton-elements/{p-bcd6b43b.entry.js → p-52bb49a9.entry.js} +2 -2
  30. package/dist/q2-tecton-elements/p-52bb49a9.entry.js.map +1 -0
  31. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  32. package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +2 -0
  33. package/package.json +3 -3
  34. package/dist/q2-tecton-elements/p-0097a699.entry.js.map +0 -1
  35. package/dist/q2-tecton-elements/p-aa7e150c.entry.js +0 -2
  36. package/dist/q2-tecton-elements/p-aa7e150c.entry.js.map +0 -1
  37. package/dist/q2-tecton-elements/p-bcd6b43b.entry.js.map +0 -1
@@ -4028,7 +4028,20 @@ const Q2ChartArea = class {
4028
4028
  index$1.overrideFocus(this.hostElement);
4029
4029
  }
4030
4030
  disconnectedCallback() {
4031
+ // CRITICAL: Dispose eCharts instance to prevent memory leaks
4032
+ // eCharts holds references to canvas, event listeners, and animation frames
4033
+ if (this.chart) {
4034
+ this.chart.dispose();
4035
+ this.chart = null;
4036
+ }
4037
+ // Remove window resize listener
4031
4038
  window.removeEventListener('resize', this.resizeEventListener);
4039
+ // Clear cached style references that hold DOM references (Safari memory management)
4040
+ this.chartContainerStyles = null;
4041
+ this.hostElementStyles = null;
4042
+ // Clear DOM and event listener references
4043
+ this.chartContainer = null;
4044
+ this.resizeEventListener = null;
4032
4045
  }
4033
4046
  cacheComputedStyles() {
4034
4047
  this.chartContainerStyles = getComputedStyle(this.chartContainer);
@@ -4178,7 +4191,7 @@ const Q2ChartArea = class {
4178
4191
  this.updateChart(this.chart);
4179
4192
  }
4180
4193
  render() {
4181
- return (index.h("div", { key: '5ac722f85acf3a00828cfcd6bfb3d13cadc8d4ef', class: "container" }, index.h("div", { key: 'a39f5664712841ad70c1628c88b77500b694db63', ref: el => (this.chartContainer = el), class: "chart-container", "test-id": "areaChartContainer" })));
4194
+ return (index.h("div", { key: '9be8e22a08ac2971ecb0aadb9b86eac5830b5cf2', class: "container" }, index.h("div", { key: '95dc71d45f12bf3820ea17a0641ebb147ea029ac', ref: el => (this.chartContainer = el), class: "chart-container", "test-id": "areaChartContainer" })));
4182
4195
  }
4183
4196
  get hostElement() { return index.getElement(this); }
4184
4197
  static get watchers() { return {