@breadstone/mosaik-elements-svelte 0.1.55 → 0.1.56
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 +4 -0
- package/index.mjs +10 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.1.56 (2026-07-23)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 0.1.55 (2026-07-23)
|
|
2
6
|
|
|
3
7
|
This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
|
package/index.mjs
CHANGED
|
@@ -181685,12 +181685,13 @@ var b2 = function(e, t, n, r) {
|
|
|
181685
181685
|
_contentMarginChanged;
|
|
181686
181686
|
_resizeController;
|
|
181687
181687
|
_drawer;
|
|
181688
|
+
_observedDrawerTarget;
|
|
181688
181689
|
_content;
|
|
181689
181690
|
_autoSize;
|
|
181690
181691
|
_hasBackdrop;
|
|
181691
181692
|
_isOpen;
|
|
181692
181693
|
constructor() {
|
|
181693
|
-
super(), this._drawer = null, this._content = null, this._autoSize = !1, this._hasBackdrop = !1, this._isOpen = !1, this._contentMarginChanged = new E(this, "contentMarginChanged", { bubbles: !1 }), this._resizeController = new Oz(this, { callback: () => this.updateContentMargins() });
|
|
181694
|
+
super(), this._drawer = null, this._observedDrawerTarget = null, this._content = null, this._autoSize = !1, this._hasBackdrop = !1, this._isOpen = !1, this._contentMarginChanged = new E(this, "contentMarginChanged", { bubbles: !1 }), this._resizeController = new Oz(this, { callback: () => this.updateContentMargins() });
|
|
181694
181695
|
}
|
|
181695
181696
|
static get is() {
|
|
181696
181697
|
return "mosaik-drawer-container";
|
|
@@ -181733,7 +181734,14 @@ var b2 = function(e, t, n, r) {
|
|
|
181733
181734
|
this.isOpen = e, this._content && (this._content.isOpen = e), this.updateContentMargins();
|
|
181734
181735
|
}
|
|
181735
181736
|
onApplyTemplate() {
|
|
181736
|
-
super.onApplyTemplate(), this._drawer = O.current.findDescendant(this, y2), this._content = O.current.findDescendant(this, Z0), this._drawer?.parentElement === this && (this._drawer.on("opened", () => this.updateContentMargins()), this._drawer.on("closed", () => this.updateContentMargins()), this.updateDrawerState());
|
|
181737
|
+
super.onApplyTemplate(), this._drawer = O.current.findDescendant(this, y2), this._content = O.current.findDescendant(this, Z0), this._drawer?.parentElement === this && (this._drawer.on("opened", () => this.updateContentMargins()), this._drawer.on("closed", () => this.updateContentMargins()), this.observeDrawerSize(this._drawer), this.updateDrawerState());
|
|
181738
|
+
}
|
|
181739
|
+
observeDrawerSize(e) {
|
|
181740
|
+
e.updateComplete.then(() => {
|
|
181741
|
+
if (this._drawer !== e || e.parentElement !== this) return;
|
|
181742
|
+
let t = e.animationTarget;
|
|
181743
|
+
this._observedDrawerTarget !== t && (this._observedDrawerTarget && this._resizeController.unobserve(this._observedDrawerTarget), this._observedDrawerTarget = t, this._resizeController.observe(t));
|
|
181744
|
+
});
|
|
181737
181745
|
}
|
|
181738
181746
|
updateContentMargins() {
|
|
181739
181747
|
this.updateComplete.then(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone/mosaik-elements-svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.56",
|
|
4
4
|
"description": "Mosaik elements for Svelte.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"url": "git+ssh://git@github.com/RueDeRennes/mosaik.git"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@breadstone/mosaik-elements": "0.1.
|
|
15
|
-
"@breadstone/mosaik-elements-foundation": "0.1.
|
|
14
|
+
"@breadstone/mosaik-elements": "0.1.56",
|
|
15
|
+
"@breadstone/mosaik-elements-foundation": "0.1.56",
|
|
16
16
|
"tslib": "2.8.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|