q2-tecton-elements 1.47.4 → 1.47.6
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 +28 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +24 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +2 -3
- 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 +28 -1
- 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 +24 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
- package/dist/collection/components/q2-select/q2-select.js +2 -3
- package/dist/collection/components/q2-select/q2-select.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 +28 -1
- package/dist/components/q2-chart-bar.js.map +1 -1
- package/dist/components/q2-chart-donut.js +24 -1
- package/dist/components/q2-chart-donut.js.map +1 -1
- package/dist/components/q2-select2.js +2 -3
- 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 +28 -1
- package/dist/esm/q2-chart-bar.entry.js.map +1 -1
- package/dist/esm/q2-chart-donut.entry.js +24 -1
- package/dist/esm/q2-chart-donut.entry.js.map +1 -1
- package/dist/esm/q2-select.entry.js +2 -3
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/p-3ccb7031.entry.js +2 -0
- package/dist/q2-tecton-elements/p-3ccb7031.entry.js.map +1 -0
- package/dist/q2-tecton-elements/{p-0097a699.entry.js → p-4d1e5572.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-4d1e5572.entry.js.map +1 -0
- package/dist/q2-tecton-elements/{p-bcd6b43b.entry.js → p-52bb49a9.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-52bb49a9.entry.js.map +1 -0
- package/dist/q2-tecton-elements/p-91b89da7.entry.js +2 -0
- package/dist/q2-tecton-elements/{p-eef9966c.entry.js.map → p-91b89da7.entry.js.map} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/elements/q2-select-test.spec.js +0 -4
- package/dist/test/elements/q2-select-test.spec.js.map +1 -1
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +2 -0
- package/package.json +3 -3
- package/dist/q2-tecton-elements/p-0097a699.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-aa7e150c.entry.js +0 -2
- package/dist/q2-tecton-elements/p-aa7e150c.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-bcd6b43b.entry.js.map +0 -1
- package/dist/q2-tecton-elements/p-eef9966c.entry.js +0 -2
|
@@ -4177,7 +4177,30 @@ const Q2ChartDonut = class {
|
|
|
4177
4177
|
index$1.overrideFocus(this.hostElement);
|
|
4178
4178
|
}
|
|
4179
4179
|
disconnectedCallback() {
|
|
4180
|
+
var _a;
|
|
4181
|
+
// CRITICAL: Dispose eCharts instance to prevent memory leaks
|
|
4182
|
+
// eCharts holds references to canvas, event listeners (mouseover, mouseout, click, selectchanged, finished),
|
|
4183
|
+
// and animation frames. All chart event listeners are automatically cleaned up by dispose()
|
|
4184
|
+
if (this.chart) {
|
|
4185
|
+
this.chart.dispose();
|
|
4186
|
+
this.chart = null;
|
|
4187
|
+
}
|
|
4188
|
+
// Disconnect ResizeObserver
|
|
4189
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
4180
4190
|
this.resizeObserver = null;
|
|
4191
|
+
// Clear cached style references that hold DOM references (Safari memory management)
|
|
4192
|
+
this.chartContainerStyles = null;
|
|
4193
|
+
this.hostElementStyles = null;
|
|
4194
|
+
// Clear DOM references
|
|
4195
|
+
this.chartContainer = null;
|
|
4196
|
+
this.centerButtonElement = null;
|
|
4197
|
+
this.btnElement = null;
|
|
4198
|
+
// Clear data references
|
|
4199
|
+
this.colors = null;
|
|
4200
|
+
this.legendData = null;
|
|
4201
|
+
// Clear state to prevent lingering references
|
|
4202
|
+
this.hoveredId = null;
|
|
4203
|
+
this.selectedId = null;
|
|
4181
4204
|
}
|
|
4182
4205
|
/// Getters ///
|
|
4183
4206
|
get centerData() {
|
|
@@ -4486,7 +4509,7 @@ const Q2ChartDonut = class {
|
|
|
4486
4509
|
} })), !!name && index.h("div", { class: "name" }, name), !!value && index.h("div", { class: "value" }, displayValue))));
|
|
4487
4510
|
}
|
|
4488
4511
|
render() {
|
|
4489
|
-
return (index.h("click-elsewhere", { key: '
|
|
4512
|
+
return (index.h("click-elsewhere", { key: '5e17be81ffc795f8ac0da10396fab7078280b1aa', onChange: this.onClickElsewhere }, index.h("figure", { key: '90ca579a42f73352b38a04f6ed8e57a6c2335cae' }, index.h("div", { key: '2d2eaa7228b22eb2d617e800b6a58c65602efdda', class: "container" }, index.h("div", { key: 'fa9dd8382b7ba85cc3520e7e9a52cae3024dce09', 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: '70b77fbbbd666a52a7e50a42f742e193ae62e315' }, index.h("q2-legend", { key: '3c3e03596b3b2729ee15697d6666c968140694e7', class: "legend", data: this.legendData, format: this.format, hoveredItemId: this.legendHoveredId, onClick: this.onLegendClick, onMouseleave: this.onLegendMouseleave, onMouseenter: this.onLegendMouseenter, selectedItemId: this.selectedId }))))));
|
|
4490
4513
|
}
|
|
4491
4514
|
get hostElement() { return index.getElement(this); }
|
|
4492
4515
|
static get watchers() { return {
|