@breadstone/mosaik-elements-svelte 0.0.289 → 0.0.291
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/CHANGELOG.md +10 -0
- package/index.mjs +27 -5
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.0.291 (2026-05-24)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.0.290 (2026-05-24)
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **package:** add missing newline at end of file in package.json ([b2edcaf718](https://github.com/RueDeRennes/mosaik/commit/b2edcaf718))
|
|
10
|
+
|
|
1
11
|
## 0.0.289 (2026-05-24)
|
|
2
12
|
|
|
3
13
|
### 🚀 Features
|
package/index.mjs
CHANGED
|
@@ -50852,6 +50852,8 @@ var Lk = function(e, t, n, r) {
|
|
|
50852
50852
|
_isYAxisVisible;
|
|
50853
50853
|
_stacked;
|
|
50854
50854
|
_stackType;
|
|
50855
|
+
_pendingUpdate;
|
|
50856
|
+
_pendingSeriesUpdate;
|
|
50855
50857
|
_chart;
|
|
50856
50858
|
_annotations;
|
|
50857
50859
|
_colors;
|
|
@@ -50908,7 +50910,7 @@ var Lk = function(e, t, n, r) {
|
|
|
50908
50910
|
fontFamily: "",
|
|
50909
50911
|
fontSize: ""
|
|
50910
50912
|
} }
|
|
50911
|
-
}, this._display = xk.Line, this._isLegendVisible = !1, this._legendPosition = Sk.Right, this._isXAxisVisible = !1, this._isYAxisVisible = !1, this._stacked = !1, this._stackType = Ck.Normal, this._chart = null, this._annotations = null, this._colors = null, this._dataLabels = null, this._series = null, this._stroke = null, this._labels = null, this._legend = null, this._markers = null, this._noData = null, this._fill = null, this._tooltip = null, this._plotOptions = null, this._responsive = null, this._xAxis = null, this._yAxis = null, this._grid = null, this._states = null, this._theme = null;
|
|
50913
|
+
}, this._display = xk.Line, this._isLegendVisible = !1, this._legendPosition = Sk.Right, this._isXAxisVisible = !1, this._isYAxisVisible = !1, this._stacked = !1, this._stackType = Ck.Normal, this._pendingUpdate = !1, this._pendingSeriesUpdate = !1, this._chart = null, this._annotations = null, this._colors = null, this._dataLabels = null, this._series = null, this._stroke = null, this._labels = null, this._legend = null, this._markers = null, this._noData = null, this._fill = null, this._tooltip = null, this._plotOptions = null, this._responsive = null, this._xAxis = null, this._yAxis = null, this._grid = null, this._states = null, this._theme = null;
|
|
50912
50914
|
}
|
|
50913
50915
|
static get is() {
|
|
50914
50916
|
return "mosaik-chart";
|
|
@@ -51075,18 +51077,38 @@ var Lk = function(e, t, n, r) {
|
|
|
51075
51077
|
onApplyTemplate() {
|
|
51076
51078
|
super.onApplyTemplate();
|
|
51077
51079
|
let e = O.current.findDescendant(this, "[part=\"chart\"]", { strict: !0 });
|
|
51078
|
-
this._host &&= (this._host.destroy(), null), this._host = new OO(e, this.computedOptions()), this.updateComplete.then(() =>
|
|
51080
|
+
this._host &&= (this._host.destroy(), null), this._host = new OO(e, this.computedOptions()), this.updateComplete.then(() => {
|
|
51081
|
+
this._host?.render().then(() => {
|
|
51082
|
+
this.applyPendingUpdates();
|
|
51083
|
+
}).catch((e) => {
|
|
51084
|
+
console.warn("[mosaik-chart] Initial render failed:", e);
|
|
51085
|
+
});
|
|
51086
|
+
});
|
|
51079
51087
|
}
|
|
51080
51088
|
update(e) {
|
|
51081
|
-
if (super.update(e),
|
|
51082
|
-
|
|
51089
|
+
if (super.update(e), !this.isChartReady()) {
|
|
51090
|
+
e.has("series") && this._series ? this._pendingSeriesUpdate = !0 : this._pendingUpdate = !0;
|
|
51083
51091
|
return;
|
|
51084
51092
|
}
|
|
51085
|
-
|
|
51093
|
+
if (e.has("series") && this._series) {
|
|
51094
|
+
this.updateComplete.then(() => {
|
|
51095
|
+
this.isChartReady() && this._host?.updateSeries(this._series);
|
|
51096
|
+
});
|
|
51097
|
+
return;
|
|
51098
|
+
}
|
|
51099
|
+
this.updateComplete.then(() => {
|
|
51100
|
+
this.isChartReady() && this._host?.updateOptions(this.computedOptions(), !1, !0);
|
|
51101
|
+
});
|
|
51086
51102
|
}
|
|
51087
51103
|
onFitPropertyChanged(e, t) {
|
|
51088
51104
|
super.onFitPropertyChanged(e, t), t === _x.Both ? (I.current.setStyle(this, "width", "100%"), I.current.setStyle(this, "height", "100%")) : t === _x.Width ? (I.current.setStyle(this, "width", "100%"), I.current.removeStyle(this, "height")) : t === _x.Height ? (I.current.removeStyle(this, "width"), I.current.setStyle(this, "height", "100%")) : (I.current.removeStyle(this, "width"), I.current.removeStyle(this, "height"));
|
|
51089
51105
|
}
|
|
51106
|
+
applyPendingUpdates() {
|
|
51107
|
+
this.isChartReady() && (this._pendingSeriesUpdate && this._series && (this._host?.updateSeries(this._series), this._pendingSeriesUpdate = !1), this._pendingUpdate &&= (this._host?.updateOptions(this.computedOptions(), !1, !0), !1));
|
|
51108
|
+
}
|
|
51109
|
+
isChartReady() {
|
|
51110
|
+
return !!this._host?.w?.globals?.dom;
|
|
51111
|
+
}
|
|
51090
51112
|
updateSize(e) {
|
|
51091
51113
|
let t = e.at(0)?.contentRect;
|
|
51092
51114
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone/mosaik-elements-svelte",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.291",
|
|
4
4
|
"description": "Mosaik elements for Svelte.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
"repository": {
|
|
11
11
|
"url": "git+ssh://git@github.com/RueDeRennes/mosaik.git"
|
|
12
12
|
},
|
|
13
|
-
"peerDependencies": {
|
|
14
|
-
"svelte": "*",
|
|
15
|
-
"vite": "*"
|
|
16
|
-
},
|
|
17
13
|
"dependencies": {
|
|
18
|
-
"@breadstone/mosaik-elements": "
|
|
19
|
-
"@breadstone/mosaik-elements-foundation": "
|
|
14
|
+
"@breadstone/mosaik-elements": "0.0.291",
|
|
15
|
+
"@breadstone/mosaik-elements-foundation": "0.0.291",
|
|
16
|
+
"tslib": "2.8.1"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"svelte": ">=4.0.0",
|
|
20
|
+
"vite": ">=5.0.0"
|
|
20
21
|
},
|
|
21
22
|
"exports": {
|
|
22
23
|
".": {
|