@breadstone/mosaik-elements-svelte 0.0.259 → 0.0.261

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 +14 -0
  2. package/index.mjs +63 -37
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.0.261 (2026-05-07)
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.260 (2026-05-07)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **overlays:** implement OverlayStackManager for better overlay handling ([2a9e5e31bf](https://github.com/RueDeRennes/mosaik/commit/2a9e5e31bf))
10
+
11
+ ### 🩹 Fixes
12
+
13
+ - **api:** update line numbers in documentation for various services and components ([7ac1fab82d](https://github.com/RueDeRennes/mosaik/commit/7ac1fab82d))
14
+
1
15
  ## 0.0.259 (2026-05-06)
2
16
 
3
17
  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
@@ -21391,17 +21391,33 @@ var Zw = function(e, t, n, r) {
21391
21391
  });
21392
21392
  }
21393
21393
  detach() {
21394
- let e = this.getDestination();
21395
21394
  if (this._projection) {
21395
+ let e = this._projection.parentElement ?? this.getDestination();
21396
21396
  for (; this._projection.firstChild;) this.appendChild(this._projection.firstChild);
21397
- this._projection.isConnected && e.removeChild(this._projection), this.isProjected = !1, this._detached.emit({
21397
+ this._projection.parentNode && this._projection.parentNode.removeChild(this._projection), this.isProjected = !1, this._detached.emit({
21398
21398
  destination: e,
21399
21399
  projection: this._projection
21400
21400
  }), this._projection = null;
21401
21401
  }
21402
21402
  }
21403
21403
  getDestination() {
21404
- return typeof this._destination == "string" ? zw.get(this._destination) || O.current.findDescendant(document, this._destination, { strict: !0 }) : this._destination;
21404
+ if (typeof this._destination == "string") return zw.get(this._destination) || O.current.findDescendant(document, this._destination, { strict: !0 });
21405
+ if (this._destination === document.body) {
21406
+ let e = this.findTopLayerAncestor();
21407
+ if (e) return e;
21408
+ }
21409
+ return this._destination;
21410
+ }
21411
+ findTopLayerAncestor() {
21412
+ let e = this;
21413
+ for (; e;) {
21414
+ if (e instanceof Element) try {
21415
+ if (e.matches(":popover-open") || e.matches(":modal")) return e;
21416
+ } catch {}
21417
+ let t = e.parentNode;
21418
+ !t && e instanceof ShadowRoot && (t = e.host), e = t;
21419
+ }
21420
+ return null;
21405
21421
  }
21406
21422
  createProjection() {
21407
21423
  return this._projection || (this._projection = I.current.createElement(Xw.is), I.current.setAttribute(this._projection, "id", Rw.next(Xw.is)), this._projection.assign(this)), this._projection;
@@ -62649,12 +62665,12 @@ function zN() {
62649
62665
  --card-sub-title-background-color: var(--joy-scheme-transparent);
62650
62666
  --card-sub-title-border-color: var(--joy-scheme-highlight);
62651
62667
  --card-sub-title-font-family: var(--joy-font-family);
62652
- --card-sub-title-font-letter-spacing: var(--joy-typography-subtitle1-letter-spacing);
62653
- --card-sub-title-font-line-height: var(--joy-typography-subtitle1-line-height);
62654
- --card-sub-title-font-size: var(--joy-typography-subtitle1-font-size);
62655
- --card-sub-title-font-text-decoration: var(--joy-typography-subtitle1-text-decoration);
62656
- --card-sub-title-font-text-transform: var(--joy-typography-subtitle1-text-transform);
62657
- --card-sub-title-font-weight: var(--joy-typography-subtitle1-font-weight);
62668
+ --card-sub-title-font-letter-spacing: var(--joy-typography-subtitle2-letter-spacing);
62669
+ --card-sub-title-font-line-height: var(--joy-typography-subtitle2-line-height);
62670
+ --card-sub-title-font-size: var(--joy-typography-subtitle2-font-size);
62671
+ --card-sub-title-font-text-decoration: var(--joy-typography-subtitle2-text-decoration);
62672
+ --card-sub-title-font-text-transform: var(--joy-typography-subtitle2-text-transform);
62673
+ --card-sub-title-font-weight: var(--joy-typography-subtitle2-font-weight);
62658
62674
  --card-sub-title-foreground-color: var(--joy-scheme-middlelight);
62659
62675
  --card-sub-title-gap: unset;
62660
62676
  --card-sub-title-padding-bottom: unset;
@@ -62736,12 +62752,12 @@ function BN() {
62736
62752
  --card-sub-title-background-color: var(--memphis-scheme-transparent);
62737
62753
  --card-sub-title-border-color: var(--memphis-scheme-contrast);
62738
62754
  --card-sub-title-font-family: var(--memphis-font-family);
62739
- --card-sub-title-font-letter-spacing: var(--memphis-typography-subtitle1-letter-spacing);
62740
- --card-sub-title-font-line-height: var(--memphis-typography-subtitle1-line-height);
62741
- --card-sub-title-font-size: var(--memphis-typography-subtitle1-font-size);
62742
- --card-sub-title-font-text-decoration: var(--memphis-typography-subtitle1-text-decoration);
62743
- --card-sub-title-font-text-transform: var(--memphis-typography-subtitle1-text-transform);
62744
- --card-sub-title-font-weight: var(--memphis-typography-subtitle1-font-weight);
62755
+ --card-sub-title-font-letter-spacing: var(--memphis-typography-subtitle2-letter-spacing);
62756
+ --card-sub-title-font-line-height: var(--memphis-typography-subtitle2-line-height);
62757
+ --card-sub-title-font-size: var(--memphis-typography-subtitle2-font-size);
62758
+ --card-sub-title-font-text-decoration: var(--memphis-typography-subtitle2-text-decoration);
62759
+ --card-sub-title-font-text-transform: var(--memphis-typography-subtitle2-text-transform);
62760
+ --card-sub-title-font-weight: var(--memphis-typography-subtitle2-font-weight);
62745
62761
  --card-sub-title-foreground-color: var(--memphis-scheme-middlelight);
62746
62762
  --card-sub-title-gap: unset;
62747
62763
  --card-sub-title-padding-bottom: unset;
@@ -65191,12 +65207,12 @@ function kP() {
65191
65207
  --expander-header-background-color: var(--joy-scheme-transparent);
65192
65208
  --expander-header-border-color: var(--joy-scheme-highlight);
65193
65209
  --expander-header-font-family: var(--joy-font-family);
65194
- --expander-header-font-letter-spacing: var(--joy-typography-subtitle1-letter-spacing);
65195
- --expander-header-font-line-height: var(--joy-typography-subtitle1-line-height);
65196
- --expander-header-font-size: var(--joy-typography-subtitle1-font-size);
65197
- --expander-header-font-text-decoration: var(--joy-typography-subtitle1-text-decoration);
65198
- --expander-header-font-text-transform: var(--joy-typography-subtitle1-text-transform);
65199
- --expander-header-font-weight: var(--joy-typography-subtitle1-font-weight);
65210
+ --expander-header-font-letter-spacing: var(--joy-typography-subtitle2-letter-spacing);
65211
+ --expander-header-font-line-height: var(--joy-typography-subtitle2-line-height);
65212
+ --expander-header-font-size: var(--joy-typography-subtitle2-font-size);
65213
+ --expander-header-font-text-decoration: var(--joy-typography-subtitle2-text-decoration);
65214
+ --expander-header-font-text-transform: var(--joy-typography-subtitle2-text-transform);
65215
+ --expander-header-font-weight: var(--joy-typography-subtitle2-font-weight);
65200
65216
  --expander-header-foreground-color: var(--joy-scheme-foreground);
65201
65217
  --expander-header-gap: unset;
65202
65218
  --expander-header-padding-bottom: unset;
@@ -65278,12 +65294,12 @@ function AP() {
65278
65294
  --expander-header-background-color: var(--memphis-scheme-transparent);
65279
65295
  --expander-header-border-color: var(--memphis-scheme-highlight);
65280
65296
  --expander-header-font-family: var(--memphis-font-family);
65281
- --expander-header-font-letter-spacing: var(--memphis-typography-subtitle1-letter-spacing);
65282
- --expander-header-font-line-height: var(--memphis-typography-subtitle1-line-height);
65283
- --expander-header-font-size: var(--memphis-typography-subtitle1-font-size);
65284
- --expander-header-font-text-decoration: var(--memphis-typography-subtitle1-text-decoration);
65285
- --expander-header-font-text-transform: var(--memphis-typography-subtitle1-text-transform);
65286
- --expander-header-font-weight: var(--memphis-typography-subtitle1-font-weight);
65297
+ --expander-header-font-letter-spacing: var(--memphis-typography-subtitle2-letter-spacing);
65298
+ --expander-header-font-line-height: var(--memphis-typography-subtitle2-line-height);
65299
+ --expander-header-font-size: var(--memphis-typography-subtitle2-font-size);
65300
+ --expander-header-font-text-decoration: var(--memphis-typography-subtitle2-text-decoration);
65301
+ --expander-header-font-text-transform: var(--memphis-typography-subtitle2-text-transform);
65302
+ --expander-header-font-weight: var(--memphis-typography-subtitle2-font-weight);
65287
65303
  --expander-header-foreground-color: var(--memphis-scheme-foreground);
65288
65304
  --expander-header-gap: unset;
65289
65305
  --expander-header-padding-bottom: unset;
@@ -101878,7 +101894,8 @@ function rU(e) {
101878
101894
  .variant="${e.variant}"
101879
101895
  @connected="${(t) => t.target.attach(e)}"></mosaik-ripple>
101880
101896
  `)}
101881
- <div part="prefix">
101897
+ <div part="prefix"
101898
+ ?hidden="${!yM(e, "has-prefix", e.hasSlotContent("prefix"))}">
101882
101899
  <slot name="prefix"></slot>
101883
101900
  </div>
101884
101901
  <div part="content">
@@ -101900,7 +101917,8 @@ function rU(e) {
101900
101917
  `]
101901
101918
  ])}
101902
101919
  </div>
101903
- <div part="suffix">
101920
+ <div part="suffix"
101921
+ ?hidden="${!yM(e, "has-suffix", e.hasSlotContent("suffix"))}">
101904
101922
  <slot name="suffix"></slot>
101905
101923
  </div>
101906
101924
  `;
@@ -102013,7 +102031,6 @@ function iU() {
102013
102031
  flex-direction: column;
102014
102032
  flex: auto;
102015
102033
  display: flex;
102016
- overflow: hidden;
102017
102034
  }
102018
102035
 
102019
102036
  :host ::slotted(mosaik-text) {
@@ -102143,7 +102160,6 @@ function aU() {
102143
102160
  flex-direction: column;
102144
102161
  flex: auto;
102145
102162
  display: flex;
102146
- overflow: hidden;
102147
102163
  }
102148
102164
 
102149
102165
  :host ::slotted(mosaik-text) {
@@ -102286,7 +102302,6 @@ function oU() {
102286
102302
  flex-direction: column;
102287
102303
  flex: auto;
102288
102304
  display: flex;
102289
- overflow: hidden;
102290
102305
  }
102291
102306
 
102292
102307
  :host ::slotted(mosaik-text) {
@@ -102317,11 +102332,10 @@ var sU = function(e, t, n, r) {
102317
102332
  return i > 3 && a && Object.defineProperty(t, n, a), a;
102318
102333
  }, cU = function(e, t) {
102319
102334
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
102320
- }, lU = class extends F(kS(R(dS(z(TS(zI)))))) {
102321
- _inheritance = ix(this, { context: nU });
102335
+ }, lU = class extends F(kS(R(dS(z(TS(Y(zI))))))) {
102322
102336
  _isChecked;
102323
102337
  constructor() {
102324
- super(), this._isChecked = !1;
102338
+ super(), ix(this, { context: nU }), this._isChecked = !1;
102325
102339
  }
102326
102340
  static get is() {
102327
102341
  return "mosaik-list-item";
@@ -154681,7 +154695,7 @@ var L1 = function(e, t, n, r) {
154681
154695
  onSlotChanges() {
154682
154696
  this.clearEvents();
154683
154697
  let e = this.getSlotAssignments("").filter((e) => e instanceof iz);
154684
- for (let [t, n] of e.entries()) n.isCheckable = !0, (n.value === void 0 || n.value === null || n.value === "") && (n.value = n.label || `chip-${t}`), this._selectionMode === dL.Single ? n.isChecked = this.value === n.value : n.isChecked = (Array.isArray(this.value) ? this.value : []).includes(n.value), n.classList.add("chip-group-chip"), n.classList.toggle("first", t === 0), n.classList.toggle("inner", t > 0 && t < e.length - 1), n.classList.toggle("last", t === e.length - 1), this._eventSubscriptions.push(n.on("checked", (e) => this.onChipCheckChanged(e), { passive: !0 }), n.on("unchecked", (e) => this.onChipUncheckChanged(e), { passive: !0 }));
154698
+ for (let [t, n] of e.entries()) n.isCheckable = this._selectionMode !== dL.None, (n.value === void 0 || n.value === null || n.value === "") && (n.value = n.label || `chip-${t}`), this._selectionMode === dL.Single ? n.isChecked = this.value === n.value : n.isChecked = (Array.isArray(this.value) ? this.value : []).includes(n.value), n.classList.add("chip-group-chip"), n.classList.toggle("first", t === 0), n.classList.toggle("inner", t > 0 && t < e.length - 1), n.classList.toggle("last", t === e.length - 1), this._eventSubscriptions.push(n.on("checked", (e) => this.onChipCheckChanged(e), { passive: !0 }), n.on("unchecked", (e) => this.onChipUncheckChanged(e), { passive: !0 }));
154685
154699
  }
154686
154700
  checkValidity() {
154687
154701
  return this.getSlotAssignments("").filter((e) => e instanceof iz).filter((e) => e.isChecked).length > 0;
@@ -154698,6 +154712,12 @@ var L1 = function(e, t, n, r) {
154698
154712
  onChipChanged(e) {
154699
154713
  this._chipChanged.emit(e);
154700
154714
  }
154715
+ onSelectionModePropertyChange(e, t) {
154716
+ let n = this.getSlotAssignments("").filter((e) => e instanceof iz);
154717
+ t === dL.None ? (n.forEach((e) => {
154718
+ e.uncheck(), e.isCheckable = !1;
154719
+ }), this.value = void 0) : n.forEach((e) => e.isCheckable = !0);
154720
+ }
154701
154721
  onValuePropertyChange(e, t) {
154702
154722
  let n = this.getSlotAssignments("").filter((e) => e instanceof iz);
154703
154723
  if (this._selectionMode === dL.Single) n.forEach((e) => e.isChecked = t === e.value);
@@ -154707,11 +154727,12 @@ var L1 = function(e, t, n, r) {
154707
154727
  }
154708
154728
  }
154709
154729
  onChipCheckChanged(e) {
154730
+ if (this._selectionMode === dL.None) return;
154710
154731
  let t = e.target;
154711
154732
  this._selectionMode === dL.Single ? (this.getSlotAssignments("").filter((e) => e instanceof iz).filter((e) => e !== t).forEach((e) => e.uncheck()), this.value = t.value, this.onChipChanged({ value: t.value })) : this.updateValue();
154712
154733
  }
154713
154734
  onChipUncheckChanged(e) {
154714
- this._selectionMode === dL.Multiple ? this.updateValue() : (this.value = void 0, this.onChipChanged({ value: void 0 }));
154735
+ this._selectionMode !== dL.None && (this._selectionMode === dL.Multiple ? this.updateValue() : (this.value = void 0, this.onChipChanged({ value: void 0 })));
154715
154736
  }
154716
154737
  updateValue() {
154717
154738
  let e = this.getSlotAssignments("").filter((e) => e instanceof iz).filter((e) => e.isChecked).map((e) => e.value);
@@ -154754,6 +154775,11 @@ L1([
154754
154775
  R1("design:type", Object),
154755
154776
  R1("design:paramtypes", [])
154756
154777
  ], B1.prototype, "chipChanged", null), L1([
154778
+ L("selectionMode"),
154779
+ R1("design:type", Function),
154780
+ R1("design:paramtypes", [String, String]),
154781
+ R1("design:returntype", void 0)
154782
+ ], B1.prototype, "onSelectionModePropertyChange", null), L1([
154757
154783
  L("value"),
154758
154784
  R1("design:type", Function),
154759
154785
  R1("design:paramtypes", [Object, Object]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.0.259",
3
+ "version": "0.0.261",
4
4
  "description": "Mosaik elements for Svelte.",
5
5
  "license": "MIT",
6
6
  "author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
@@ -15,8 +15,8 @@
15
15
  "vite": "*"
16
16
  },
17
17
  "dependencies": {
18
- "@breadstone/mosaik-elements": "^0.0.259",
19
- "@breadstone/mosaik-elements-foundation": "^0.0.259"
18
+ "@breadstone/mosaik-elements": "^0.0.261",
19
+ "@breadstone/mosaik-elements-foundation": "^0.0.261"
20
20
  },
21
21
  "exports": {
22
22
  ".": {