@breadstone/mosaik-elements-svelte 0.1.69 → 0.1.70
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 +189 -37
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 0.1.70 (2026-08-06)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **chat:** enhance message resizing and scrolling behavior ([6d32127ce7](https://github.com/RueDeRennes/mosaik/commit/6d32127ce7))
|
|
6
|
+
|
|
1
7
|
## 0.1.69 (2026-08-03)
|
|
2
8
|
|
|
3
9
|
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
|
@@ -71750,7 +71750,7 @@ var pL = {
|
|
|
71750
71750
|
_skipInitial;
|
|
71751
71751
|
_unobservedUpdate = !1;
|
|
71752
71752
|
constructor(e, t) {
|
|
71753
|
-
super(e), t?.target !== null && this._targets.add(t?.target ?? e), this._config = t?.config, this._skipInitial = t?.skipInitial ?? !1, this.callback = t?.callback, this._observer = new ResizeObserver((e) => {
|
|
71753
|
+
super(e), t?.target !== null && this._targets.add(t?.target ?? e), this._config = t?.config, this._skipInitial = t?.skipInitial ?? !1, this.callback = t?.callback, this._observer = typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
|
|
71754
71754
|
this.handleChanges(e), this.host.requestUpdate();
|
|
71755
71755
|
});
|
|
71756
71756
|
}
|
|
@@ -71767,16 +71767,16 @@ var pL = {
|
|
|
71767
71767
|
!this._skipInitial && this._unobservedUpdate && this.handleChanges([]), this._unobservedUpdate = !1;
|
|
71768
71768
|
}
|
|
71769
71769
|
observe(e) {
|
|
71770
|
-
this._targets.add(e), this._observer
|
|
71770
|
+
this._targets.add(e), this._observer?.observe(e, this._config), this._unobservedUpdate = !0, this.host.requestUpdate();
|
|
71771
71771
|
}
|
|
71772
71772
|
unobserve(e) {
|
|
71773
|
-
this._targets.delete(e), this._observer
|
|
71773
|
+
this._targets.delete(e), this._observer?.unobserve(e);
|
|
71774
71774
|
}
|
|
71775
71775
|
disconnect() {
|
|
71776
|
-
this._observer
|
|
71776
|
+
this._observer?.disconnect();
|
|
71777
71777
|
}
|
|
71778
71778
|
handleChanges(e) {
|
|
71779
|
-
this.value = this.callback?.(e, this._observer);
|
|
71779
|
+
this._observer && (this.value = this.callback?.(e, this._observer));
|
|
71780
71780
|
}
|
|
71781
71781
|
};
|
|
71782
71782
|
//#endregion
|
|
@@ -101456,9 +101456,10 @@ function zU() {
|
|
|
101456
101456
|
--prompt-box-floating-label-font-size: 12px;
|
|
101457
101457
|
--prompt-box-floating-label-line-height: 12px;
|
|
101458
101458
|
--prompt-box-focus-ring-active-width: 8px;
|
|
101459
|
-
--prompt-box-focus-ring-color:
|
|
101459
|
+
--prompt-box-focus-ring-color: var(--joy-scheme-highlight);
|
|
101460
101460
|
--prompt-box-focus-ring-inward-offset: 2px;
|
|
101461
101461
|
--prompt-box-focus-ring-outward-offset: 0px;
|
|
101462
|
+
--prompt-box-focus-ring-width: 0px;
|
|
101462
101463
|
--prompt-box-font-family: unset;
|
|
101463
101464
|
--prompt-box-font-letter-spacing: unset;
|
|
101464
101465
|
--prompt-box-font-line-height: unset;
|
|
@@ -101662,46 +101663,59 @@ function zU() {
|
|
|
101662
101663
|
:host([appearance="plain"]) {
|
|
101663
101664
|
--prompt-box-border-width: 0;
|
|
101664
101665
|
--prompt-box-background-color: var(--joy-scheme-transparent);
|
|
101666
|
+
--prompt-box-focus-ring-inward-offset: 0px;
|
|
101667
|
+
--prompt-box-focus-ring-outward-offset: 0px;
|
|
101665
101668
|
}
|
|
101666
101669
|
|
|
101667
101670
|
:host([appearance="soft"]), :host([appearance="solid"]) {
|
|
101668
101671
|
--prompt-box-background-color: var(--joy-scheme-highlight);
|
|
101672
|
+
--prompt-box-focus-ring-inward-offset: 0px;
|
|
101673
|
+
--prompt-box-focus-ring-outward-offset: 0px;
|
|
101669
101674
|
}
|
|
101670
101675
|
|
|
101671
101676
|
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101672
101677
|
--prompt-box-border-color: var(--joy-color-primary-500);
|
|
101678
|
+
--prompt-box-focus-ring-color: var(--joy-color-primary-500);
|
|
101673
101679
|
}
|
|
101674
101680
|
|
|
101675
101681
|
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101676
101682
|
--prompt-box-border-color: var(--joy-color-secondary-500);
|
|
101683
|
+
--prompt-box-focus-ring-color: var(--joy-color-secondary-500);
|
|
101677
101684
|
}
|
|
101678
101685
|
|
|
101679
101686
|
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101680
101687
|
--prompt-box-border-color: var(--joy-color-tertiary-500);
|
|
101688
|
+
--prompt-box-focus-ring-color: var(--joy-color-tertiary-500);
|
|
101681
101689
|
}
|
|
101682
101690
|
|
|
101683
101691
|
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101684
101692
|
--prompt-box-border-color: var(--joy-color-danger-500);
|
|
101693
|
+
--prompt-box-focus-ring-color: var(--joy-color-danger-500);
|
|
101685
101694
|
}
|
|
101686
101695
|
|
|
101687
101696
|
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101688
101697
|
--prompt-box-border-color: var(--joy-color-warning-500);
|
|
101698
|
+
--prompt-box-focus-ring-color: var(--joy-color-warning-500);
|
|
101689
101699
|
}
|
|
101690
101700
|
|
|
101691
101701
|
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101692
101702
|
--prompt-box-border-color: var(--joy-color-success-500);
|
|
101703
|
+
--prompt-box-focus-ring-color: var(--joy-color-success-500);
|
|
101693
101704
|
}
|
|
101694
101705
|
|
|
101695
101706
|
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101696
101707
|
--prompt-box-border-color: var(--joy-color-info-500);
|
|
101708
|
+
--prompt-box-focus-ring-color: var(--joy-color-info-500);
|
|
101697
101709
|
}
|
|
101698
101710
|
|
|
101699
101711
|
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101700
101712
|
--prompt-box-border-color: var(--joy-color-highlight-500);
|
|
101713
|
+
--prompt-box-focus-ring-color: var(--joy-color-highlight-500);
|
|
101701
101714
|
}
|
|
101702
101715
|
|
|
101703
101716
|
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):hover), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):active), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([readonly]:not([readonly="false"])):focus-within) {
|
|
101704
101717
|
--prompt-box-border-color: var(--joy-color-neutral-500);
|
|
101718
|
+
--prompt-box-focus-ring-color: var(--joy-color-neutral-500);
|
|
101705
101719
|
}
|
|
101706
101720
|
|
|
101707
101721
|
`;
|
|
@@ -142982,15 +142996,15 @@ function Efe(e) {
|
|
|
142982
142996
|
@scroll="${(t) => e.handleMessagesScroll(t.detail.distanceToEnd)}">
|
|
142983
142997
|
<div part="messages">
|
|
142984
142998
|
<slot name="message"></slot>
|
|
142985
|
-
${R(e.scrollToEnd, () => I`
|
|
142986
|
-
<mosaik-back-top part="backTop"
|
|
142987
|
-
.dir="${e.dir}"
|
|
142988
|
-
.lang="${e.lang}"
|
|
142989
|
-
.offset="${e.scrollToEndThreshold}"
|
|
142990
|
-
.to="${"bottom"}"></mosaik-back-top>
|
|
142991
|
-
`)}
|
|
142992
142999
|
</div>
|
|
142993
143000
|
</mosaik-scroll>
|
|
143001
|
+
${R(e.scrollToEnd, () => I`
|
|
143002
|
+
<mosaik-back-top part="backTop"
|
|
143003
|
+
.dir="${e.dir}"
|
|
143004
|
+
.lang="${e.lang}"
|
|
143005
|
+
.offset="${e.scrollToEndThreshold}"
|
|
143006
|
+
.to="${e.begin === W$.End ? "bottom" : "top"}"></mosaik-back-top>
|
|
143007
|
+
`)}
|
|
142994
143008
|
</div>
|
|
142995
143009
|
<div part="empty">
|
|
142996
143010
|
<slot name="empty"></slot>
|
|
@@ -146541,10 +146555,15 @@ var d1 = function(e, t, n, r) {
|
|
|
146541
146555
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
146542
146556
|
}, p1 = class extends A(YE(U(P(W(T))))) {
|
|
146543
146557
|
_intl;
|
|
146558
|
+
_messageResizeController;
|
|
146559
|
+
_observedMessageElements;
|
|
146560
|
+
_pendingInitialMessageResizeElements;
|
|
146544
146561
|
_scrollToEnd;
|
|
146545
146562
|
_scrollToEndThreshold;
|
|
146546
146563
|
_scrollEndDistance;
|
|
146547
146564
|
_isScrollEndAnchored;
|
|
146565
|
+
_messageResizeFollowFrame;
|
|
146566
|
+
_isMessageResizeFollowScheduled;
|
|
146548
146567
|
_begin;
|
|
146549
146568
|
_promptBoxElement;
|
|
146550
146569
|
constructor() {
|
|
@@ -146555,7 +146574,11 @@ var d1 = function(e, t, n, r) {
|
|
|
146555
146574
|
appearance: this.appearance,
|
|
146556
146575
|
intl: this.intl
|
|
146557
146576
|
})
|
|
146558
|
-
}), this.
|
|
146577
|
+
}), this._messageResizeController = new hL(this, {
|
|
146578
|
+
target: null,
|
|
146579
|
+
skipInitial: !0,
|
|
146580
|
+
callback: (e) => this.handleMessageResizes(e)
|
|
146581
|
+
}), this._scrollToEnd = l1.DEFAULTS.scrollToEnd, this._scrollToEndThreshold = l1.DEFAULTS.scrollToEndThreshold, this._scrollEndDistance = 0, this._isScrollEndAnchored = !0, this._observedMessageElements = /* @__PURE__ */ new Set(), this._pendingInitialMessageResizeElements = /* @__PURE__ */ new Set(), this._messageResizeFollowFrame = null, this._isMessageResizeFollowScheduled = !1, this._begin = l1.DEFAULTS.begin;
|
|
146559
146582
|
}
|
|
146560
146583
|
static get is() {
|
|
146561
146584
|
return "mosaik-chat";
|
|
@@ -146585,14 +146608,22 @@ var d1 = function(e, t, n, r) {
|
|
|
146585
146608
|
set intl(e) {
|
|
146586
146609
|
this._intl.provide(e);
|
|
146587
146610
|
}
|
|
146588
|
-
|
|
146589
|
-
super.
|
|
146611
|
+
connectedCallback() {
|
|
146612
|
+
super.connectedCallback(), this.hasUpdated && this.updateComplete.then(() => this.syncObservedMessageElements());
|
|
146613
|
+
}
|
|
146614
|
+
disconnectedCallback() {
|
|
146615
|
+
this.releaseMessageResizeObservations(), super.disconnectedCallback();
|
|
146590
146616
|
}
|
|
146591
146617
|
onSlotChanges(e) {
|
|
146592
|
-
super.onSlotChanges(e), e === "input" && (this._promptBoxElement = this.getSlotAssignmentsOf("input", c1).at(0), this._promptBoxElement && (this._promptBoxElement.dir = this.dir, this._promptBoxElement.variant = this.variant, this._promptBoxElement.appearance = this.appearance, this._promptBoxElement.placeholder = this.intl.inputPlaceholder)), (e === void 0 || e === "message") && this.hasUpdated && this.begin === W$.End && this.scrollToEnd && this._isScrollEndAnchored && this.scrollMessagesToEnd(!0);
|
|
146618
|
+
super.onSlotChanges(e), e === "input" && (this._promptBoxElement = this.getSlotAssignmentsOf("input", c1).at(0), this._promptBoxElement && (this._promptBoxElement.dir = this.dir, this._promptBoxElement.variant = this.variant, this._promptBoxElement.appearance = this.appearance, this._promptBoxElement.placeholder = this.intl.inputPlaceholder)), (e === void 0 || e === "message") && (this.syncObservedMessageElements(), this.hasUpdated && this.begin === W$.End && this.scrollToEnd && this._isScrollEndAnchored && this.scrollMessagesToEnd(!0));
|
|
146593
146619
|
}
|
|
146594
146620
|
handleMessagesScroll(e) {
|
|
146595
|
-
this._scrollEndDistance = e, this._isScrollEndAnchored =
|
|
146621
|
+
Number.isFinite(e) && (this._scrollEndDistance = Math.max(0, e), this._isScrollEndAnchored = this._scrollEndDistance <= this.scrollToEndThreshold);
|
|
146622
|
+
}
|
|
146623
|
+
onApplyTemplate() {
|
|
146624
|
+
super.onApplyTemplate(), this.begin === W$.End ? this.scrollMessagesToEnd(!1).then(() => {
|
|
146625
|
+
this.scrollToEnd && this.configureBackTop();
|
|
146626
|
+
}) : this.scrollToEnd && this.configureBackTop(), this.syncObservedMessageElements();
|
|
146596
146627
|
}
|
|
146597
146628
|
onWidthPropertyChanged(e, t) {
|
|
146598
146629
|
t === void 0 || Pv.isAuto(t) ? (j.current.removeStyle(this, "min-width"), j.current.removeStyle(this, "width")) : (j.current.setStyle(this, "min-width", t), j.current.setStyle(this, "width", t));
|
|
@@ -146609,13 +146640,35 @@ var d1 = function(e, t, n, r) {
|
|
|
146609
146640
|
this.scrollToEnd && this.getTemplatePart("backTop").attach(e.getScrollableElement());
|
|
146610
146641
|
});
|
|
146611
146642
|
}
|
|
146643
|
+
syncObservedMessageElements() {
|
|
146644
|
+
let e = new Set(this.getSlotAssignments("message"));
|
|
146645
|
+
for (let t of this._observedMessageElements) e.has(t) || (this._messageResizeController.unobserve(t), this._observedMessageElements.delete(t), this._pendingInitialMessageResizeElements.delete(t));
|
|
146646
|
+
for (let t of e) this._observedMessageElements.has(t) || (this._observedMessageElements.add(t), this._pendingInitialMessageResizeElements.add(t), this._messageResizeController.observe(t));
|
|
146647
|
+
}
|
|
146648
|
+
handleMessageResizes(e) {
|
|
146649
|
+
let t = !1;
|
|
146650
|
+
for (let n of e) this._observedMessageElements.has(n.target) && (this._pendingInitialMessageResizeElements.delete(n.target) || (t = !0));
|
|
146651
|
+
t && this.scheduleMessageResizeFollow();
|
|
146652
|
+
}
|
|
146653
|
+
scheduleMessageResizeFollow() {
|
|
146654
|
+
if (this._isMessageResizeFollowScheduled) return;
|
|
146655
|
+
this._isMessageResizeFollowScheduled = !0;
|
|
146656
|
+
let e = requestAnimationFrame(() => {
|
|
146657
|
+
this._isMessageResizeFollowScheduled = !1, this._messageResizeFollowFrame = null, this.scrollMessagesToEnd(!0);
|
|
146658
|
+
});
|
|
146659
|
+
this._messageResizeFollowFrame = this._isMessageResizeFollowScheduled ? e : null;
|
|
146660
|
+
}
|
|
146661
|
+
releaseMessageResizeObservations() {
|
|
146662
|
+
for (let e of this._observedMessageElements) this._messageResizeController.unobserve(e);
|
|
146663
|
+
this._observedMessageElements.clear(), this._pendingInitialMessageResizeElements.clear(), this._messageResizeFollowFrame !== null && cancelAnimationFrame(this._messageResizeFollowFrame), this._messageResizeFollowFrame = null, this._isMessageResizeFollowScheduled = !1;
|
|
146664
|
+
}
|
|
146612
146665
|
scrollMessagesToEnd(e) {
|
|
146613
146666
|
let t = this.getTemplatePart("scroll");
|
|
146614
|
-
t.updateComplete.then(() => {
|
|
146667
|
+
return t.updateComplete.then(() => new Promise((n) => {
|
|
146615
146668
|
requestAnimationFrame(() => {
|
|
146616
|
-
this.begin === W$.End && (!e || this.scrollToEnd && this._isScrollEndAnchored) && t.scrollToPosition(2 ** 53 - 1, !1);
|
|
146669
|
+
this.begin === W$.End && (!e || this.scrollToEnd && this._isScrollEndAnchored) && t.scrollToPosition(2 ** 53 - 1, !1), n();
|
|
146617
146670
|
});
|
|
146618
|
-
});
|
|
146671
|
+
}));
|
|
146619
146672
|
}
|
|
146620
146673
|
};
|
|
146621
146674
|
d1([
|
|
@@ -171700,11 +171753,14 @@ function o_e() {
|
|
|
171700
171753
|
}
|
|
171701
171754
|
|
|
171702
171755
|
:host {
|
|
171756
|
+
box-sizing: border-box;
|
|
171757
|
+
min-width: 0;
|
|
171758
|
+
max-width: 100%;
|
|
171703
171759
|
padding: var(--toast-actions-padding-top) var(--toast-actions-padding-right) var(--toast-actions-padding-bottom) var(--toast-actions-padding-left);
|
|
171704
171760
|
justify-content: space-between;
|
|
171705
171761
|
align-items: center;
|
|
171706
171762
|
gap: var(--toast-actions-gap);
|
|
171707
|
-
flex-
|
|
171763
|
+
flex-flow: wrap;
|
|
171708
171764
|
display: flex;
|
|
171709
171765
|
position: relative;
|
|
171710
171766
|
}
|
|
@@ -171712,7 +171768,9 @@ function o_e() {
|
|
|
171712
171768
|
:host [part="prefix"], :host [part="content"], :host [part="suffix"] {
|
|
171713
171769
|
align-items: center;
|
|
171714
171770
|
gap: var(--toast-actions-gap);
|
|
171715
|
-
flex-
|
|
171771
|
+
flex-flow: wrap;
|
|
171772
|
+
min-width: 0;
|
|
171773
|
+
max-width: 100%;
|
|
171716
171774
|
display: flex;
|
|
171717
171775
|
}
|
|
171718
171776
|
|
|
@@ -171721,6 +171779,11 @@ function o_e() {
|
|
|
171721
171779
|
justify-content: flex-end;
|
|
171722
171780
|
}
|
|
171723
171781
|
|
|
171782
|
+
:host ::slotted(*) {
|
|
171783
|
+
min-width: 0;
|
|
171784
|
+
max-width: 100%;
|
|
171785
|
+
}
|
|
171786
|
+
|
|
171724
171787
|
`;
|
|
171725
171788
|
}
|
|
171726
171789
|
//#endregion
|
|
@@ -171779,11 +171842,14 @@ function s_e() {
|
|
|
171779
171842
|
}
|
|
171780
171843
|
|
|
171781
171844
|
:host {
|
|
171845
|
+
box-sizing: border-box;
|
|
171846
|
+
min-width: 0;
|
|
171847
|
+
max-width: 100%;
|
|
171782
171848
|
padding: var(--toast-actions-padding-top) var(--toast-actions-padding-right) var(--toast-actions-padding-bottom) var(--toast-actions-padding-left);
|
|
171783
171849
|
justify-content: space-between;
|
|
171784
171850
|
align-items: center;
|
|
171785
171851
|
gap: var(--toast-actions-gap);
|
|
171786
|
-
flex-
|
|
171852
|
+
flex-flow: wrap;
|
|
171787
171853
|
display: flex;
|
|
171788
171854
|
position: relative;
|
|
171789
171855
|
}
|
|
@@ -171791,7 +171857,9 @@ function s_e() {
|
|
|
171791
171857
|
:host [part="prefix"], :host [part="content"], :host [part="suffix"] {
|
|
171792
171858
|
align-items: center;
|
|
171793
171859
|
gap: var(--toast-actions-gap);
|
|
171794
|
-
flex-
|
|
171860
|
+
flex-flow: wrap;
|
|
171861
|
+
min-width: 0;
|
|
171862
|
+
max-width: 100%;
|
|
171795
171863
|
display: flex;
|
|
171796
171864
|
}
|
|
171797
171865
|
|
|
@@ -171800,6 +171868,11 @@ function s_e() {
|
|
|
171800
171868
|
justify-content: flex-end;
|
|
171801
171869
|
}
|
|
171802
171870
|
|
|
171871
|
+
:host ::slotted(*) {
|
|
171872
|
+
min-width: 0;
|
|
171873
|
+
max-width: 100%;
|
|
171874
|
+
}
|
|
171875
|
+
|
|
171803
171876
|
`;
|
|
171804
171877
|
}
|
|
171805
171878
|
//#endregion
|
|
@@ -171858,11 +171931,14 @@ function c_e() {
|
|
|
171858
171931
|
}
|
|
171859
171932
|
|
|
171860
171933
|
:host {
|
|
171934
|
+
box-sizing: border-box;
|
|
171935
|
+
min-width: 0;
|
|
171936
|
+
max-width: 100%;
|
|
171861
171937
|
padding: var(--toast-actions-padding-top) var(--toast-actions-padding-right) var(--toast-actions-padding-bottom) var(--toast-actions-padding-left);
|
|
171862
171938
|
justify-content: space-between;
|
|
171863
171939
|
align-items: center;
|
|
171864
171940
|
gap: var(--toast-actions-gap);
|
|
171865
|
-
flex-
|
|
171941
|
+
flex-flow: wrap;
|
|
171866
171942
|
display: flex;
|
|
171867
171943
|
position: relative;
|
|
171868
171944
|
}
|
|
@@ -171870,7 +171946,9 @@ function c_e() {
|
|
|
171870
171946
|
:host [part="prefix"], :host [part="content"], :host [part="suffix"] {
|
|
171871
171947
|
align-items: center;
|
|
171872
171948
|
gap: var(--toast-actions-gap);
|
|
171873
|
-
flex-
|
|
171949
|
+
flex-flow: wrap;
|
|
171950
|
+
min-width: 0;
|
|
171951
|
+
max-width: 100%;
|
|
171874
171952
|
display: flex;
|
|
171875
171953
|
}
|
|
171876
171954
|
|
|
@@ -171879,6 +171957,11 @@ function c_e() {
|
|
|
171879
171957
|
justify-content: flex-end;
|
|
171880
171958
|
}
|
|
171881
171959
|
|
|
171960
|
+
:host ::slotted(*) {
|
|
171961
|
+
min-width: 0;
|
|
171962
|
+
max-width: 100%;
|
|
171963
|
+
}
|
|
171964
|
+
|
|
171882
171965
|
`;
|
|
171883
171966
|
}
|
|
171884
171967
|
//#endregion
|
|
@@ -172047,13 +172130,17 @@ function d_e() {
|
|
|
172047
172130
|
|
|
172048
172131
|
:host [part="root"] {
|
|
172049
172132
|
pointer-events: all;
|
|
172133
|
+
box-sizing: border-box;
|
|
172134
|
+
width: max-content;
|
|
172135
|
+
min-width: min(52px, 100dvw - var(--toast-offset-x) * 2);
|
|
172136
|
+
max-width: calc(100dvw - var(--toast-offset-x) * 2);
|
|
172137
|
+
max-height: calc(100dvh - var(--toast-offset-y) * 2);
|
|
172050
172138
|
border: var(--toast-border);
|
|
172051
172139
|
border-color: var(--toast-border-color);
|
|
172052
172140
|
border-radius: var(--toast-border-radius);
|
|
172053
172141
|
border-style: var(--toast-border-style);
|
|
172054
172142
|
border-width: var(--toast-border-width);
|
|
172055
172143
|
background-color: var(--toast-background-color);
|
|
172056
|
-
min-width: 52px;
|
|
172057
172144
|
color: var(--toast-foreground-color);
|
|
172058
172145
|
box-shadow: var(--toast-shadow);
|
|
172059
172146
|
transition-duration: var(--toast-transition-duration);
|
|
@@ -172073,12 +172160,18 @@ function d_e() {
|
|
|
172073
172160
|
:host [part="root"] [part="body"] {
|
|
172074
172161
|
align-items: center;
|
|
172075
172162
|
gap: var(--toast-gap);
|
|
172076
|
-
flex-
|
|
172163
|
+
flex-flow: wrap;
|
|
172164
|
+
min-width: 0;
|
|
172165
|
+
max-width: 100%;
|
|
172077
172166
|
display: flex;
|
|
172078
172167
|
}
|
|
172079
172168
|
|
|
172080
172169
|
:host [part="root"] [part="text"] {
|
|
172170
|
+
overflow-wrap: anywhere;
|
|
172081
172171
|
flex-direction: column;
|
|
172172
|
+
flex: auto;
|
|
172173
|
+
min-width: 0;
|
|
172174
|
+
max-width: 100%;
|
|
172082
172175
|
display: flex;
|
|
172083
172176
|
}
|
|
172084
172177
|
|
|
@@ -172093,11 +172186,24 @@ function d_e() {
|
|
|
172093
172186
|
color: inherit;
|
|
172094
172187
|
}
|
|
172095
172188
|
|
|
172096
|
-
:host [part="root"] [part="
|
|
172189
|
+
:host [part="root"] [part="content"]::part(text) {
|
|
172190
|
+
overflow-wrap: anywhere;
|
|
172191
|
+
-webkit-line-clamp: var(--__max-lines);
|
|
172192
|
+
-webkit-box-orient: vertical;
|
|
172193
|
+
display: -webkit-box;
|
|
172194
|
+
overflow: hidden;
|
|
172195
|
+
}
|
|
172196
|
+
|
|
172197
|
+
:host [part="root"] [part="icon"], :host [part="root"] [part="progressRing"], :host [part="root"] [part="close"] {
|
|
172097
172198
|
color: inherit;
|
|
172098
172199
|
flex-shrink: 0;
|
|
172099
172200
|
}
|
|
172100
172201
|
|
|
172202
|
+
:host [part="root"] slot[name="actions"]::slotted(*) {
|
|
172203
|
+
min-width: 0;
|
|
172204
|
+
max-width: 100%;
|
|
172205
|
+
}
|
|
172206
|
+
|
|
172101
172207
|
:host [part="root"] [part="progressFill"] {
|
|
172102
172208
|
background-color: var(--toast-progress-fill-color);
|
|
172103
172209
|
border-radius: inherit;
|
|
@@ -172523,13 +172629,17 @@ function f_e() {
|
|
|
172523
172629
|
|
|
172524
172630
|
:host [part="root"] {
|
|
172525
172631
|
pointer-events: all;
|
|
172632
|
+
box-sizing: border-box;
|
|
172633
|
+
width: max-content;
|
|
172634
|
+
min-width: min(52px, 100dvw - var(--toast-offset-x) * 2);
|
|
172635
|
+
max-width: calc(100dvw - var(--toast-offset-x) * 2);
|
|
172636
|
+
max-height: calc(100dvh - var(--toast-offset-y) * 2);
|
|
172526
172637
|
border: var(--toast-border);
|
|
172527
172638
|
border-color: var(--toast-border-color);
|
|
172528
172639
|
border-radius: var(--toast-border-radius);
|
|
172529
172640
|
border-style: var(--toast-border-style);
|
|
172530
172641
|
border-width: var(--toast-border-width);
|
|
172531
172642
|
background-color: var(--toast-background-color);
|
|
172532
|
-
min-width: 52px;
|
|
172533
172643
|
color: var(--toast-foreground-color);
|
|
172534
172644
|
box-shadow: var(--toast-shadow);
|
|
172535
172645
|
transition-duration: var(--toast-transition-duration);
|
|
@@ -172549,12 +172659,18 @@ function f_e() {
|
|
|
172549
172659
|
:host [part="root"] [part="body"] {
|
|
172550
172660
|
align-items: center;
|
|
172551
172661
|
gap: var(--toast-gap);
|
|
172552
|
-
flex-
|
|
172662
|
+
flex-flow: wrap;
|
|
172663
|
+
min-width: 0;
|
|
172664
|
+
max-width: 100%;
|
|
172553
172665
|
display: flex;
|
|
172554
172666
|
}
|
|
172555
172667
|
|
|
172556
172668
|
:host [part="root"] [part="text"] {
|
|
172669
|
+
overflow-wrap: anywhere;
|
|
172557
172670
|
flex-direction: column;
|
|
172671
|
+
flex: auto;
|
|
172672
|
+
min-width: 0;
|
|
172673
|
+
max-width: 100%;
|
|
172558
172674
|
display: flex;
|
|
172559
172675
|
}
|
|
172560
172676
|
|
|
@@ -172569,11 +172685,24 @@ function f_e() {
|
|
|
172569
172685
|
color: inherit;
|
|
172570
172686
|
}
|
|
172571
172687
|
|
|
172572
|
-
:host [part="root"] [part="
|
|
172688
|
+
:host [part="root"] [part="content"]::part(text) {
|
|
172689
|
+
overflow-wrap: anywhere;
|
|
172690
|
+
-webkit-line-clamp: var(--__max-lines);
|
|
172691
|
+
-webkit-box-orient: vertical;
|
|
172692
|
+
display: -webkit-box;
|
|
172693
|
+
overflow: hidden;
|
|
172694
|
+
}
|
|
172695
|
+
|
|
172696
|
+
:host [part="root"] [part="icon"], :host [part="root"] [part="progressRing"], :host [part="root"] [part="close"] {
|
|
172573
172697
|
color: inherit;
|
|
172574
172698
|
flex-shrink: 0;
|
|
172575
172699
|
}
|
|
172576
172700
|
|
|
172701
|
+
:host [part="root"] slot[name="actions"]::slotted(*) {
|
|
172702
|
+
min-width: 0;
|
|
172703
|
+
max-width: 100%;
|
|
172704
|
+
}
|
|
172705
|
+
|
|
172577
172706
|
:host [part="root"] [part="progressFill"] {
|
|
172578
172707
|
background-color: var(--toast-progress-fill-color);
|
|
172579
172708
|
border-radius: inherit;
|
|
@@ -173003,13 +173132,17 @@ function p_e() {
|
|
|
173003
173132
|
|
|
173004
173133
|
:host [part="root"] {
|
|
173005
173134
|
pointer-events: all;
|
|
173135
|
+
box-sizing: border-box;
|
|
173136
|
+
width: max-content;
|
|
173137
|
+
min-width: min(52px, 100dvw - var(--toast-offset-x) * 2);
|
|
173138
|
+
max-width: calc(100dvw - var(--toast-offset-x) * 2);
|
|
173139
|
+
max-height: calc(100dvh - var(--toast-offset-y) * 2);
|
|
173006
173140
|
border: var(--toast-border);
|
|
173007
173141
|
border-color: var(--toast-border-color);
|
|
173008
173142
|
border-radius: var(--toast-border-radius);
|
|
173009
173143
|
border-style: var(--toast-border-style);
|
|
173010
173144
|
border-width: var(--toast-border-width);
|
|
173011
173145
|
background-color: var(--toast-background-color);
|
|
173012
|
-
min-width: 52px;
|
|
173013
173146
|
color: var(--toast-foreground-color);
|
|
173014
173147
|
box-shadow: var(--toast-shadow);
|
|
173015
173148
|
transition-duration: var(--toast-transition-duration);
|
|
@@ -173029,12 +173162,18 @@ function p_e() {
|
|
|
173029
173162
|
:host [part="root"] [part="body"] {
|
|
173030
173163
|
align-items: center;
|
|
173031
173164
|
gap: var(--toast-gap);
|
|
173032
|
-
flex-
|
|
173165
|
+
flex-flow: wrap;
|
|
173166
|
+
min-width: 0;
|
|
173167
|
+
max-width: 100%;
|
|
173033
173168
|
display: flex;
|
|
173034
173169
|
}
|
|
173035
173170
|
|
|
173036
173171
|
:host [part="root"] [part="text"] {
|
|
173172
|
+
overflow-wrap: anywhere;
|
|
173037
173173
|
flex-direction: column;
|
|
173174
|
+
flex: auto;
|
|
173175
|
+
min-width: 0;
|
|
173176
|
+
max-width: 100%;
|
|
173038
173177
|
display: flex;
|
|
173039
173178
|
}
|
|
173040
173179
|
|
|
@@ -173049,11 +173188,24 @@ function p_e() {
|
|
|
173049
173188
|
color: inherit;
|
|
173050
173189
|
}
|
|
173051
173190
|
|
|
173052
|
-
:host [part="root"] [part="
|
|
173191
|
+
:host [part="root"] [part="content"]::part(text) {
|
|
173192
|
+
overflow-wrap: anywhere;
|
|
173193
|
+
-webkit-line-clamp: var(--__max-lines);
|
|
173194
|
+
-webkit-box-orient: vertical;
|
|
173195
|
+
display: -webkit-box;
|
|
173196
|
+
overflow: hidden;
|
|
173197
|
+
}
|
|
173198
|
+
|
|
173199
|
+
:host [part="root"] [part="icon"], :host [part="root"] [part="progressRing"], :host [part="root"] [part="close"] {
|
|
173053
173200
|
color: inherit;
|
|
173054
173201
|
flex-shrink: 0;
|
|
173055
173202
|
}
|
|
173056
173203
|
|
|
173204
|
+
:host [part="root"] slot[name="actions"]::slotted(*) {
|
|
173205
|
+
min-width: 0;
|
|
173206
|
+
max-width: 100%;
|
|
173207
|
+
}
|
|
173208
|
+
|
|
173057
173209
|
:host [part="root"] [part="progressFill"] {
|
|
173058
173210
|
background-color: var(--toast-progress-fill-color);
|
|
173059
173211
|
border-radius: inherit;
|
|
@@ -190244,7 +190396,7 @@ m6([C({ eventName: "resizeStart" }), h6("design:type", Object)], g6.prototype, "
|
|
|
190244
190396
|
memphis: ebe,
|
|
190245
190397
|
cosmopolitan: Qye
|
|
190246
190398
|
},
|
|
190247
|
-
imports: []
|
|
190399
|
+
imports: [oQ]
|
|
190248
190400
|
}), h6("design:paramtypes", [])], g6);
|
|
190249
190401
|
//#endregion
|
|
190250
190402
|
//#region ../mosaik-elements-foundation/dist/Controls/Components/Primitives/Ribbon/RibbonElementTemplate.js
|
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.70",
|
|
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.70",
|
|
15
|
+
"@breadstone/mosaik-elements-foundation": "0.1.70",
|
|
16
16
|
"tslib": "2.8.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|