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
|
@@ -4161,8 +4161,29 @@ const Q2ChartDonut = class {
|
|
|
4161
4161
|
// #region Component Lifecycle Events
|
|
4162
4162
|
disconnectedCallback() {
|
|
4163
4163
|
var _a;
|
|
4164
|
+
// CRITICAL: Dispose eCharts instance to prevent memory leaks
|
|
4165
|
+
// eCharts holds references to canvas, event listeners (mouseover, mouseout, click, selectchanged, finished),
|
|
4166
|
+
// and animation frames. All chart event listeners are automatically cleaned up by dispose()
|
|
4167
|
+
if (this.chart) {
|
|
4168
|
+
this.chart.dispose();
|
|
4169
|
+
this.chart = null;
|
|
4170
|
+
}
|
|
4171
|
+
// Disconnect ResizeObserver
|
|
4164
4172
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
4165
4173
|
this.resizeObserver = null;
|
|
4174
|
+
// Clear cached style references that hold DOM references (Safari memory management)
|
|
4175
|
+
this.chartContainerStyles = null;
|
|
4176
|
+
this.hostElementStyles = null;
|
|
4177
|
+
// Clear DOM references
|
|
4178
|
+
this.chartContainer = null;
|
|
4179
|
+
this.centerButtonElement = null;
|
|
4180
|
+
this.btnElement = null;
|
|
4181
|
+
// Clear data references
|
|
4182
|
+
this.colors = null;
|
|
4183
|
+
this.legendData = null;
|
|
4184
|
+
// Clear state to prevent lingering references
|
|
4185
|
+
this.hoveredId = null;
|
|
4186
|
+
this.selectedId = null;
|
|
4166
4187
|
}
|
|
4167
4188
|
componentDidLoad() {
|
|
4168
4189
|
const chart = init(this.chartContainer);
|
|
@@ -4507,7 +4528,7 @@ const Q2ChartDonut = class {
|
|
|
4507
4528
|
} })), !!name && h("div", { class: "name" }, name), !isNaN(value) && h("div", { class: "value" }, displayValue))));
|
|
4508
4529
|
}
|
|
4509
4530
|
render() {
|
|
4510
|
-
return (h("click-elsewhere", { key: '
|
|
4531
|
+
return (h("click-elsewhere", { key: 'd97fd96a56f2f6ba206d2f07fa986e48702180aa', onChange: this.onClickElsewhere }, h("figure", { key: '4b56f4ec01675b11cfd589e3877998d28f1ce8aa' }, h("div", { key: '3f66b3d98f093a7da1a90650e2fd9ef48916e847', class: "container" }, 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 && (h("figcaption", { key: 'bf7180411fc3cc46b74edf7dd8794475c331e496' }, 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 }))))));
|
|
4511
4532
|
}
|
|
4512
4533
|
get hostElement() { return getElement(this); }
|
|
4513
4534
|
static get watchers() { return {
|