@breadstone/mosaik-elements-svelte 0.1.51 → 0.1.52
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 +6 -0
- package/index.mjs +13 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/index.mjs
CHANGED
|
@@ -180824,13 +180824,8 @@ var _2 = function(e, t, n, r) {
|
|
|
180824
180824
|
case X0.Bottom: return this.createHorizontalDrawerRootStyles("bottom");
|
|
180825
180825
|
}
|
|
180826
180826
|
}
|
|
180827
|
-
async open() {
|
|
180828
|
-
return super.open().then(() => {
|
|
180829
|
-
this.play(this.enter ?? { steps: [] });
|
|
180830
|
-
});
|
|
180831
|
-
}
|
|
180832
180827
|
async close() {
|
|
180833
|
-
return this.play(this.exit ?? { steps: [] })
|
|
180828
|
+
return await this.play(this.exit ?? { steps: [] }) ? super.close() : !1;
|
|
180834
180829
|
}
|
|
180835
180830
|
async toggle() {
|
|
180836
180831
|
return this.isOpen ? this.close().then(() => {}) : this.open();
|
|
@@ -180845,7 +180840,12 @@ var _2 = function(e, t, n, r) {
|
|
|
180845
180840
|
super.onApplyTemplate(), O.current.findAncestor(this, C2) && (this.isComposed = !0);
|
|
180846
180841
|
}
|
|
180847
180842
|
onIsOpenChanged(e, t) {
|
|
180848
|
-
super.onIsOpenChanged(e, t), O.current.findAncestor(this, C2, { strict: !1 })?.updateDrawerState();
|
|
180843
|
+
super.onIsOpenChanged(e, t), t && this.playEnterAnimationWhenReady(), O.current.findAncestor(this, C2, { strict: !1 })?.updateDrawerState();
|
|
180844
|
+
}
|
|
180845
|
+
playEnterAnimationWhenReady() {
|
|
180846
|
+
this.updateComplete.then(() => {
|
|
180847
|
+
this.isOpen && this.play(this.enter ?? { steps: [] });
|
|
180848
|
+
});
|
|
180849
180849
|
}
|
|
180850
180850
|
createVerticalDrawerRootStyles(e) {
|
|
180851
180851
|
let t = this.getDrawerViewportInset(), n = this.createInsetSize(y2.FULL_SIZE, t);
|
|
@@ -231426,7 +231426,8 @@ function RDe(e) {
|
|
|
231426
231426
|
.mode="${e.isMobile ? Y0.Push : Y0.Side}"
|
|
231427
231427
|
.hasBackdrop="${e.isMobile}"
|
|
231428
231428
|
.hasShadow="${e.isMobile}"
|
|
231429
|
-
.clickOutsideToClose="${e.isMobile}"
|
|
231429
|
+
.clickOutsideToClose="${e.isMobile}"
|
|
231430
|
+
@changed="${(t) => e.onNavigationDrawerChanged(t)}">
|
|
231430
231431
|
<nav part="nav-body">
|
|
231431
231432
|
<slot name="nav"></slot>
|
|
231432
231433
|
</nav>
|
|
@@ -232477,7 +232478,6 @@ var G7 = function(e, t, n, r) {
|
|
|
232477
232478
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
232478
232479
|
}, q7 = class extends F(Y(j)) {
|
|
232479
232480
|
_breakpointController;
|
|
232480
|
-
_drawerElement;
|
|
232481
232481
|
_headerElement;
|
|
232482
232482
|
_contentElement;
|
|
232483
232483
|
_theme;
|
|
@@ -232541,6 +232541,9 @@ var G7 = function(e, t, n, r) {
|
|
|
232541
232541
|
closeNavigation() {
|
|
232542
232542
|
this.isNavOpen = !1;
|
|
232543
232543
|
}
|
|
232544
|
+
onNavigationDrawerChanged(e) {
|
|
232545
|
+
e.target === e.currentTarget && e.detail.propertyName === "is-open" && (e.detail.newValue === null ? this.closeNavigation() : this.openNavigation());
|
|
232546
|
+
}
|
|
232544
232547
|
onSlotChanges(e) {
|
|
232545
232548
|
if (e === "header") {
|
|
232546
232549
|
let e = this.getSlotAssignments("header").filter((e) => e instanceof W7);
|
|
@@ -232548,7 +232551,7 @@ var G7 = function(e, t, n, r) {
|
|
|
232548
232551
|
}
|
|
232549
232552
|
}
|
|
232550
232553
|
onApplyTemplate() {
|
|
232551
|
-
super.onApplyTemplate(), this._contentElement = this.getTemplatePart("main"), this._headerElement = this.getTemplatePart("header")
|
|
232554
|
+
super.onApplyTemplate(), this._contentElement = this.getTemplatePart("main"), this._headerElement = this.getTemplatePart("header");
|
|
232552
232555
|
}
|
|
232553
232556
|
onIsNavOpenPropertyChanged(e, t) {
|
|
232554
232557
|
this._headerElement.isToggled = t ?? !1;
|
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.52",
|
|
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.52",
|
|
15
|
+
"@breadstone/mosaik-elements-foundation": "0.1.52",
|
|
16
16
|
"tslib": "2.8.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|