@breadstone/mosaik-elements-svelte 0.1.51 → 0.1.53

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/index.mjs +46 -22
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.1.53 (2026-07-13)
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.1.52 (2026-07-13)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **overlay:** add requestAttention and closeAttempt CloseAttempted ([27f164ec7f](https://github.com/RueDeRennes/mosaik/commit/27f164ec7f))
10
+
1
11
  ## 0.1.51 (2026-07-13)
2
12
 
3
13
  ### 🚀 Features
package/index.mjs CHANGED
@@ -178237,10 +178237,10 @@ function oye() {
178237
178237
  --drawer-content-font-text-transform: unset;
178238
178238
  --drawer-content-font-weight: unset;
178239
178239
  --drawer-content-gap: unset;
178240
- --drawer-content-inset-bottom: unset;
178241
- --drawer-content-inset-left: unset;
178242
- --drawer-content-inset-right: unset;
178243
- --drawer-content-inset-top: unset;
178240
+ --drawer-content-inset-bottom: 0px;
178241
+ --drawer-content-inset-left: 0px;
178242
+ --drawer-content-inset-right: 0px;
178243
+ --drawer-content-inset-top: 0px;
178244
178244
  --drawer-content-padding-bottom: unset;
178245
178245
  --drawer-content-padding-left: unset;
178246
178246
  --drawer-content-padding-right: unset;
@@ -178314,7 +178314,7 @@ function sye() {
178314
178314
  --drawer-content-font-weight: unset;
178315
178315
  --drawer-content-gap: var(--joy-layout-space);
178316
178316
  --drawer-content-inset-bottom: var(--joy-layout-space);
178317
- --drawer-content-inset-left: unset;
178317
+ --drawer-content-inset-left: 0px;
178318
178318
  --drawer-content-inset-right: var(--joy-layout-space);
178319
178319
  --drawer-content-inset-top: var(--joy-layout-space);
178320
178320
  --drawer-content-padding-bottom: unset;
@@ -178389,10 +178389,10 @@ function cye() {
178389
178389
  --drawer-content-font-text-transform: unset;
178390
178390
  --drawer-content-font-weight: unset;
178391
178391
  --drawer-content-gap: var(--memphis-layout-space);
178392
- --drawer-content-inset-bottom: unset;
178393
- --drawer-content-inset-left: unset;
178394
- --drawer-content-inset-right: unset;
178395
- --drawer-content-inset-top: unset;
178392
+ --drawer-content-inset-bottom: 0px;
178393
+ --drawer-content-inset-left: 0px;
178394
+ --drawer-content-inset-right: 0px;
178395
+ --drawer-content-inset-top: 0px;
178396
178396
  --drawer-content-padding-bottom: unset;
178397
178397
  --drawer-content-padding-left: unset;
178398
178398
  --drawer-content-padding-right: unset;
@@ -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: [] }).then(() => super.close());
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>
@@ -232057,7 +232058,7 @@ function WDe() {
232057
232058
  return B`
232058
232059
  :host {
232059
232060
  --app-background-color: var(--cosmopolitan-scheme-background);
232060
- --app-body-offset-top: unset;
232061
+ --app-body-offset-top: 0px;
232061
232062
  --app-border-color: unset;
232062
232063
  --app-border-radius: unset;
232063
232064
  --app-border-style: solid;
@@ -232167,22 +232168,29 @@ function WDe() {
232167
232168
  border-radius: var(--app-view-border-radius);
232168
232169
  border-style: var(--app-view-border-style);
232169
232170
  border-width: var(--app-view-border-width);
232171
+ flex-direction: column;
232172
+ min-height: 0;
232173
+ display: flex;
232170
232174
  }
232171
232175
 
232172
232176
  :host [part="body"] {
232173
232177
  height: calc(100% - var(--app-body-offset-top));
232174
232178
  flex-direction: row;
232179
+ flex: 0 auto;
232175
232180
  width: 100%;
232181
+ min-height: 0;
232176
232182
  display: flex;
232177
232183
  }
232178
232184
 
232179
232185
  :host [part="body"] [part="main"] {
232180
232186
  flex: 1;
232181
232187
  width: 100%;
232188
+ min-height: 0;
232182
232189
  overflow: auto;
232183
232190
  }
232184
232191
 
232185
232192
  :host [part="body"] [part="rail"] {
232193
+ min-height: 0;
232186
232194
  overflow: auto;
232187
232195
  }
232188
232196
 
@@ -232194,7 +232202,7 @@ function GDe() {
232194
232202
  return B`
232195
232203
  :host {
232196
232204
  --app-background-color: var(--joy-scheme-background);
232197
- --app-body-offset-top: none;
232205
+ --app-body-offset-top: 0px;
232198
232206
  --app-border-color: unset;
232199
232207
  --app-border-radius: unset;
232200
232208
  --app-border-style: solid;
@@ -232304,22 +232312,29 @@ function GDe() {
232304
232312
  border-radius: var(--app-view-border-radius);
232305
232313
  border-style: var(--app-view-border-style);
232306
232314
  border-width: var(--app-view-border-width);
232315
+ flex-direction: column;
232316
+ min-height: 0;
232317
+ display: flex;
232307
232318
  }
232308
232319
 
232309
232320
  :host [part="body"] {
232310
232321
  height: calc(100% - var(--app-body-offset-top));
232311
232322
  flex-direction: row;
232323
+ flex: 0 auto;
232312
232324
  width: 100%;
232325
+ min-height: 0;
232313
232326
  display: flex;
232314
232327
  }
232315
232328
 
232316
232329
  :host [part="body"] [part="main"] {
232317
232330
  flex: 1;
232318
232331
  width: 100%;
232332
+ min-height: 0;
232319
232333
  overflow: auto;
232320
232334
  }
232321
232335
 
232322
232336
  :host [part="body"] [part="rail"] {
232337
+ min-height: 0;
232323
232338
  overflow: auto;
232324
232339
  }
232325
232340
 
@@ -232335,7 +232350,7 @@ function KDe() {
232335
232350
  return B`
232336
232351
  :host {
232337
232352
  --app-background-color: var(--memphis-scheme-background);
232338
- --app-body-offset-top: unset;
232353
+ --app-body-offset-top: 0px;
232339
232354
  --app-border-color: unset;
232340
232355
  --app-border-radius: unset;
232341
232356
  --app-border-style: solid;
@@ -232445,22 +232460,29 @@ function KDe() {
232445
232460
  border-radius: var(--app-view-border-radius);
232446
232461
  border-style: var(--app-view-border-style);
232447
232462
  border-width: var(--app-view-border-width);
232463
+ flex-direction: column;
232464
+ min-height: 0;
232465
+ display: flex;
232448
232466
  }
232449
232467
 
232450
232468
  :host [part="body"] {
232451
232469
  height: calc(100% - var(--app-body-offset-top));
232452
232470
  flex-direction: row;
232471
+ flex: 0 auto;
232453
232472
  width: 100%;
232473
+ min-height: 0;
232454
232474
  display: flex;
232455
232475
  }
232456
232476
 
232457
232477
  :host [part="body"] [part="main"] {
232458
232478
  flex: 1;
232459
232479
  width: 100%;
232480
+ min-height: 0;
232460
232481
  overflow: auto;
232461
232482
  }
232462
232483
 
232463
232484
  :host [part="body"] [part="rail"] {
232485
+ min-height: 0;
232464
232486
  overflow: auto;
232465
232487
  }
232466
232488
 
@@ -232477,7 +232499,6 @@ var G7 = function(e, t, n, r) {
232477
232499
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
232478
232500
  }, q7 = class extends F(Y(j)) {
232479
232501
  _breakpointController;
232480
- _drawerElement;
232481
232502
  _headerElement;
232482
232503
  _contentElement;
232483
232504
  _theme;
@@ -232541,6 +232562,9 @@ var G7 = function(e, t, n, r) {
232541
232562
  closeNavigation() {
232542
232563
  this.isNavOpen = !1;
232543
232564
  }
232565
+ onNavigationDrawerChanged(e) {
232566
+ e.target === e.currentTarget && e.detail.propertyName === "is-open" && (e.detail.newValue === null ? this.closeNavigation() : this.openNavigation());
232567
+ }
232544
232568
  onSlotChanges(e) {
232545
232569
  if (e === "header") {
232546
232570
  let e = this.getSlotAssignments("header").filter((e) => e instanceof W7);
@@ -232548,7 +232572,7 @@ var G7 = function(e, t, n, r) {
232548
232572
  }
232549
232573
  }
232550
232574
  onApplyTemplate() {
232551
- super.onApplyTemplate(), this._contentElement = this.getTemplatePart("main"), this._headerElement = this.getTemplatePart("header"), this._drawerElement = this.getTemplatePart("nav");
232575
+ super.onApplyTemplate(), this._contentElement = this.getTemplatePart("main"), this._headerElement = this.getTemplatePart("header");
232552
232576
  }
232553
232577
  onIsNavOpenPropertyChanged(e, t) {
232554
232578
  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.51",
3
+ "version": "0.1.53",
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.51",
15
- "@breadstone/mosaik-elements-foundation": "0.1.51",
14
+ "@breadstone/mosaik-elements": "0.1.53",
15
+ "@breadstone/mosaik-elements-foundation": "0.1.53",
16
16
  "tslib": "2.8.1"
17
17
  },
18
18
  "peerDependencies": {