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
|
@@ -4165,8 +4165,29 @@ const Q2ChartDonut = class {
|
|
|
4165
4165
|
// #region Component Lifecycle Events
|
|
4166
4166
|
disconnectedCallback() {
|
|
4167
4167
|
var _a;
|
|
4168
|
+
// CRITICAL: Dispose eCharts instance to prevent memory leaks
|
|
4169
|
+
// eCharts holds references to canvas, event listeners (mouseover, mouseout, click, selectchanged, finished),
|
|
4170
|
+
// and animation frames. All chart event listeners are automatically cleaned up by dispose()
|
|
4171
|
+
if (this.chart) {
|
|
4172
|
+
this.chart.dispose();
|
|
4173
|
+
this.chart = null;
|
|
4174
|
+
}
|
|
4175
|
+
// Disconnect ResizeObserver
|
|
4168
4176
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
4169
4177
|
this.resizeObserver = null;
|
|
4178
|
+
// Clear cached style references that hold DOM references (Safari memory management)
|
|
4179
|
+
this.chartContainerStyles = null;
|
|
4180
|
+
this.hostElementStyles = null;
|
|
4181
|
+
// Clear DOM references
|
|
4182
|
+
this.chartContainer = null;
|
|
4183
|
+
this.centerButtonElement = null;
|
|
4184
|
+
this.btnElement = null;
|
|
4185
|
+
// Clear data references
|
|
4186
|
+
this.colors = null;
|
|
4187
|
+
this.legendData = null;
|
|
4188
|
+
// Clear state to prevent lingering references
|
|
4189
|
+
this.hoveredId = null;
|
|
4190
|
+
this.selectedId = null;
|
|
4170
4191
|
}
|
|
4171
4192
|
componentDidLoad() {
|
|
4172
4193
|
const chart = charting.init(this.chartContainer);
|
|
@@ -4511,7 +4532,7 @@ const Q2ChartDonut = class {
|
|
|
4511
4532
|
} })), !!name && index.h("div", { class: "name" }, name), !isNaN(value) && index.h("div", { class: "value" }, displayValue))));
|
|
4512
4533
|
}
|
|
4513
4534
|
render() {
|
|
4514
|
-
return (index.h("click-elsewhere", { key: '
|
|
4535
|
+
return (index.h("click-elsewhere", { key: 'd97fd96a56f2f6ba206d2f07fa986e48702180aa', onChange: this.onClickElsewhere }, index.h("figure", { key: '4b56f4ec01675b11cfd589e3877998d28f1ce8aa' }, index.h("div", { key: '3f66b3d98f093a7da1a90650e2fd9ef48916e847', class: "container" }, index.h("div", { key: 'bb0513d31884d2c8b2f454b9fbf899b770716bc7', ref: el => (this.chartContainer = el), "aria-describedby": !this.isClickable ? 'center-card-description' : undefined, class: "chart-container", role: "img", "test-id": "chartContainer", onClick: this.onContainerClick, tabIndex: !this.isClickable ? 0 : undefined, onKeyDown: !this.isClickable ? this.onButtonKeyDown : undefined }), this.renderCenterBlock()), this.showLegend && (index.h("figcaption", { key: 'bf7180411fc3cc46b74edf7dd8794475c331e496' }, index.h("q2-legend", { key: '14994085c95d3cc662d919dfdc69a7ad3c579a21', class: "legend", data: this.legendData, format: this.format, hoveredItemId: this.legendHoveredId, onClick: this.onLegendClick, onMouseleave: this.onLegendMouseleave, onMouseenter: this.onLegendMouseenter, selectedItemId: this.selectedId }))))));
|
|
4515
4536
|
}
|
|
4516
4537
|
get hostElement() { return index.getElement(this); }
|
|
4517
4538
|
static get watchers() { return {
|