@breadstone/mosaik-elements-svelte 0.1.32 → 0.1.33

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.33 (2026-06-25)
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.32 (2026-06-25)
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
@@ -61512,9 +61512,10 @@ function eN() {
61512
61512
  box-sizing: inherit;
61513
61513
  display: inherit;
61514
61514
  max-width: inherit;
61515
- flex-direction: row;
61516
61515
  align-content: flex-start;
61517
61516
  align-items: flex-start;
61517
+ gap: var(--banner-gap);
61518
+ flex-direction: row;
61518
61519
  width: 100%;
61519
61520
  height: 100%;
61520
61521
  min-height: 100%;
@@ -61544,6 +61545,10 @@ function eN() {
61544
61545
  align-items: flex-end;
61545
61546
  }
61546
61547
 
61548
+ :host [part="root"] [part="actions"][hidden] {
61549
+ display: none;
61550
+ }
61551
+
61547
61552
  @media (width <= 599px) {
61548
61553
  :host [part="root"] [part="actions"] {
61549
61554
  flex-flow: wrap;
@@ -61683,9 +61688,10 @@ function tN() {
61683
61688
  box-sizing: inherit;
61684
61689
  display: inherit;
61685
61690
  max-width: inherit;
61686
- flex-direction: row;
61687
61691
  align-content: flex-start;
61688
61692
  align-items: flex-start;
61693
+ gap: var(--banner-gap);
61694
+ flex-direction: row;
61689
61695
  width: 100%;
61690
61696
  height: 100%;
61691
61697
  min-height: 100%;
@@ -61715,6 +61721,10 @@ function tN() {
61715
61721
  align-items: flex-end;
61716
61722
  }
61717
61723
 
61724
+ :host [part="root"] [part="actions"][hidden] {
61725
+ display: none;
61726
+ }
61727
+
61718
61728
  @media (width <= 599px) {
61719
61729
  :host [part="root"] [part="actions"] {
61720
61730
  flex-flow: wrap;
@@ -62061,9 +62071,10 @@ function nN() {
62061
62071
  box-sizing: inherit;
62062
62072
  display: inherit;
62063
62073
  max-width: inherit;
62064
- flex-direction: row;
62065
62074
  align-content: flex-start;
62066
62075
  align-items: flex-start;
62076
+ gap: var(--banner-gap);
62077
+ flex-direction: row;
62067
62078
  width: 100%;
62068
62079
  height: 100%;
62069
62080
  min-height: 100%;
@@ -62093,6 +62104,10 @@ function nN() {
62093
62104
  align-items: flex-end;
62094
62105
  }
62095
62106
 
62107
+ :host [part="root"] [part="actions"][hidden] {
62108
+ display: none;
62109
+ }
62110
+
62096
62111
  @media (width <= 599px) {
62097
62112
  :host [part="root"] [part="actions"] {
62098
62113
  flex-flow: wrap;
@@ -183940,7 +183955,11 @@ var C4 = class e {
183940
183955
  this._timerId !== null && (window.clearTimeout(this._timerId), this._timerId = null, this._remaining !== null && (this._remaining -= Date.now() - this._startTime));
183941
183956
  }
183942
183957
  resume() {
183943
- this._timerId !== null && window.clearTimeout(this._timerId), this._remaining ??= this._duration, this._startTime = Date.now(), this._timerId = window.setTimeout(() => {
183958
+ if (this._timerId !== null && window.clearTimeout(this._timerId), this._remaining ??= this._duration, this._remaining <= 0) {
183959
+ this._remaining = null;
183960
+ return;
183961
+ }
183962
+ this._startTime = Date.now(), this._timerId = window.setTimeout(() => {
183944
183963
  this._remaining = null, this._callback();
183945
183964
  }, this._remaining);
183946
183965
  }
@@ -185461,8 +185480,9 @@ var T4 = function(e, t, n, r) {
185461
185480
  _fillAnimation;
185462
185481
  _mouseOverSubscription;
185463
185482
  _mouseOutSubscription;
185483
+ _isExitAnimationPlaying;
185464
185484
  constructor() {
185465
- super(), this._header = "", this._content = "", this._icon = "", this._iconSize = null, this._timeout = 0, this._position = w4.Center, this._showProgress = !1, this._fillElement = null, this._fillAnimation = null, this._timer = C4.empty(() => this.close()), this._mouseOverSubscription = null, this._mouseOutSubscription = null, this.enter = fw, this.exit = dw;
185485
+ super(), this._header = "", this._content = "", this._icon = "", this._iconSize = null, this._timeout = 0, this._position = w4.Center, this._showProgress = !1, this._fillElement = null, this._fillAnimation = null, this._timer = C4.empty(() => this.close()), this._mouseOverSubscription = null, this._mouseOutSubscription = null, this._isExitAnimationPlaying = !1, this.enter = fw, this.exit = dw;
185466
185486
  }
185467
185487
  static get is() {
185468
185488
  return "mosaik-toast";
@@ -185512,11 +185532,20 @@ var T4 = function(e, t, n, r) {
185512
185532
  get animationTarget() {
185513
185533
  return this.getTemplatePart("root");
185514
185534
  }
185535
+ onIsOpenChanged(e, t) {
185536
+ if (!t && this.exit && !this._isExitAnimationPlaying) {
185537
+ this._isExitAnimationPlaying = !0, this.play(this.exit).then(() => {
185538
+ this._isExitAnimationPlaying = !1, super.onIsOpenChanged(e, t);
185539
+ });
185540
+ return;
185541
+ }
185542
+ super.onIsOpenChanged(e, t);
185543
+ }
185515
185544
  onIsOpenPropertyChanged(e, t) {
185516
- t ? (this.play(this.enter ?? { steps: [] }), this._timer.start(), this._showProgress && this._timeout > 0 && this.startFillAnimation()) : (this._timer.destroy(), this.cancelFillAnimation());
185545
+ t ? (this.play(this.enter ?? { steps: [] }), this._timeout > 0 && (this._timer.start(), this._showProgress && this.startFillAnimation())) : (this._timer.destroy(), this.cancelFillAnimation());
185517
185546
  }
185518
185547
  async close() {
185519
- return this.play(this.exit ?? { steps: [] }).then(() => super.close());
185548
+ return super.close();
185520
185549
  }
185521
185550
  connectedCallback() {
185522
185551
  super.connectedCallback();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
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.32",
15
- "@breadstone/mosaik-elements-foundation": "0.1.32",
14
+ "@breadstone/mosaik-elements": "0.1.33",
15
+ "@breadstone/mosaik-elements-foundation": "0.1.33",
16
16
  "tslib": "2.8.1"
17
17
  },
18
18
  "peerDependencies": {