@breadstone/mosaik-elements-svelte 0.0.258 → 0.0.260
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 +14 -0
- package/index.mjs +57 -29
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 0.0.260 (2026-05-07)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **overlays:** implement OverlayStackManager for better overlay handling ([2a9e5e31bf](https://github.com/RueDeRennes/mosaik/commit/2a9e5e31bf))
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **api:** update line numbers in documentation for various services and components ([7ac1fab82d](https://github.com/RueDeRennes/mosaik/commit/7ac1fab82d))
|
|
10
|
+
|
|
11
|
+
## 0.0.259 (2026-05-06)
|
|
12
|
+
|
|
13
|
+
This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
|
|
14
|
+
|
|
1
15
|
## 0.0.258 (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.
|
|
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
|
-
|
|
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-
|
|
62653
|
-
--card-sub-title-font-line-height: var(--joy-typography-
|
|
62654
|
-
--card-sub-title-font-size: var(--joy-typography-
|
|
62655
|
-
--card-sub-title-font-text-decoration: var(--joy-typography-
|
|
62656
|
-
--card-sub-title-font-text-transform: var(--joy-typography-
|
|
62657
|
-
--card-sub-title-font-weight: var(--joy-typography-
|
|
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-
|
|
62740
|
-
--card-sub-title-font-line-height: var(--memphis-typography-
|
|
62741
|
-
--card-sub-title-font-size: var(--memphis-typography-
|
|
62742
|
-
--card-sub-title-font-text-decoration: var(--memphis-typography-
|
|
62743
|
-
--card-sub-title-font-text-transform: var(--memphis-typography-
|
|
62744
|
-
--card-sub-title-font-weight: var(--memphis-typography-
|
|
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-
|
|
65195
|
-
--expander-header-font-line-height: var(--joy-typography-
|
|
65196
|
-
--expander-header-font-size: var(--joy-typography-
|
|
65197
|
-
--expander-header-font-text-decoration: var(--joy-typography-
|
|
65198
|
-
--expander-header-font-text-transform: var(--joy-typography-
|
|
65199
|
-
--expander-header-font-weight: var(--joy-typography-
|
|
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-
|
|
65282
|
-
--expander-header-font-line-height: var(--memphis-typography-
|
|
65283
|
-
--expander-header-font-size: var(--memphis-typography-
|
|
65284
|
-
--expander-header-font-text-decoration: var(--memphis-typography-
|
|
65285
|
-
--expander-header-font-text-transform: var(--memphis-typography-
|
|
65286
|
-
--expander-header-font-weight: var(--memphis-typography-
|
|
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;
|
|
@@ -154681,7 +154697,7 @@ var L1 = function(e, t, n, r) {
|
|
|
154681
154697
|
onSlotChanges() {
|
|
154682
154698
|
this.clearEvents();
|
|
154683
154699
|
let e = this.getSlotAssignments("").filter((e) => e instanceof iz);
|
|
154684
|
-
for (let [t, n] of e.entries()) n.isCheckable =
|
|
154700
|
+
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
154701
|
}
|
|
154686
154702
|
checkValidity() {
|
|
154687
154703
|
return this.getSlotAssignments("").filter((e) => e instanceof iz).filter((e) => e.isChecked).length > 0;
|
|
@@ -154698,6 +154714,12 @@ var L1 = function(e, t, n, r) {
|
|
|
154698
154714
|
onChipChanged(e) {
|
|
154699
154715
|
this._chipChanged.emit(e);
|
|
154700
154716
|
}
|
|
154717
|
+
onSelectionModePropertyChange(e, t) {
|
|
154718
|
+
let n = this.getSlotAssignments("").filter((e) => e instanceof iz);
|
|
154719
|
+
t === dL.None ? (n.forEach((e) => {
|
|
154720
|
+
e.uncheck(), e.isCheckable = !1;
|
|
154721
|
+
}), this.value = void 0) : n.forEach((e) => e.isCheckable = !0);
|
|
154722
|
+
}
|
|
154701
154723
|
onValuePropertyChange(e, t) {
|
|
154702
154724
|
let n = this.getSlotAssignments("").filter((e) => e instanceof iz);
|
|
154703
154725
|
if (this._selectionMode === dL.Single) n.forEach((e) => e.isChecked = t === e.value);
|
|
@@ -154707,11 +154729,12 @@ var L1 = function(e, t, n, r) {
|
|
|
154707
154729
|
}
|
|
154708
154730
|
}
|
|
154709
154731
|
onChipCheckChanged(e) {
|
|
154732
|
+
if (this._selectionMode === dL.None) return;
|
|
154710
154733
|
let t = e.target;
|
|
154711
154734
|
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
154735
|
}
|
|
154713
154736
|
onChipUncheckChanged(e) {
|
|
154714
|
-
this._selectionMode === dL.Multiple ? this.updateValue() : (this.value = void 0, this.onChipChanged({ value: void 0 }));
|
|
154737
|
+
this._selectionMode !== dL.None && (this._selectionMode === dL.Multiple ? this.updateValue() : (this.value = void 0, this.onChipChanged({ value: void 0 })));
|
|
154715
154738
|
}
|
|
154716
154739
|
updateValue() {
|
|
154717
154740
|
let e = this.getSlotAssignments("").filter((e) => e instanceof iz).filter((e) => e.isChecked).map((e) => e.value);
|
|
@@ -154754,6 +154777,11 @@ L1([
|
|
|
154754
154777
|
R1("design:type", Object),
|
|
154755
154778
|
R1("design:paramtypes", [])
|
|
154756
154779
|
], B1.prototype, "chipChanged", null), L1([
|
|
154780
|
+
L("selectionMode"),
|
|
154781
|
+
R1("design:type", Function),
|
|
154782
|
+
R1("design:paramtypes", [String, String]),
|
|
154783
|
+
R1("design:returntype", void 0)
|
|
154784
|
+
], B1.prototype, "onSelectionModePropertyChange", null), L1([
|
|
154757
154785
|
L("value"),
|
|
154758
154786
|
R1("design:type", Function),
|
|
154759
154787
|
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.
|
|
3
|
+
"version": "0.0.260",
|
|
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.
|
|
19
|
-
"@breadstone/mosaik-elements-foundation": "^0.0.
|
|
18
|
+
"@breadstone/mosaik-elements": "^0.0.260",
|
|
19
|
+
"@breadstone/mosaik-elements-foundation": "^0.0.260"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|