@mhmo91/schmancy 0.2.15 → 0.2.16
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/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{chips-CCNEOlx2.js → chips-iwpEO4yI.js} +12 -12
- package/dist/{chips-CCNEOlx2.js.map → chips-iwpEO4yI.js.map} +1 -1
- package/dist/chips.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/context-5nmahssp.js +6 -0
- package/dist/context-5nmahssp.js.map +1 -0
- package/dist/context-BATZj31H.cjs +2 -0
- package/dist/context-BATZj31H.cjs.map +1 -0
- package/dist/{delay-ZjnwZygz.cjs → delay-Ci5OBInD.cjs} +2 -2
- package/dist/{delay-ZjnwZygz.cjs.map → delay-Ci5OBInD.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +72 -71
- package/dist/index.js.map +1 -1
- package/dist/list-CPuuRy-O.cjs +21 -0
- package/dist/list-CPuuRy-O.cjs.map +1 -0
- package/dist/list-DLUs5fLg.js +70 -0
- package/dist/list-DLUs5fLg.js.map +1 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +3 -3
- package/dist/{surface-DxPFMsdk.cjs → surface-D6dflZFw.cjs} +3 -3
- package/dist/surface-D6dflZFw.cjs.map +1 -0
- package/dist/{surface-Be5WvBRV.js → surface-DKT0Af0Z.js} +12 -13
- package/dist/surface-DKT0Af0Z.js.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/{teleport.component-BCkjx7SO.js → teleport.component-ChBGmqA6.js} +146 -212
- package/dist/teleport.component-ChBGmqA6.js.map +1 -0
- package/dist/teleport.component-HoGT2W8s.cjs +144 -0
- package/dist/teleport.component-HoGT2W8s.cjs.map +1 -0
- package/dist/teleport.js +3 -3
- package/dist/{typewriter-v9NtjriH.js → typewriter-8avpGisR.js} +11 -11
- package/dist/{typewriter-v9NtjriH.js.map → typewriter-8avpGisR.js.map} +1 -1
- package/dist/{typewriter-ChAfM5s5.cjs → typewriter-BodUEEGi.cjs} +2 -2
- package/dist/{typewriter-ChAfM5s5.cjs.map → typewriter-BodUEEGi.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/package.json +1 -1
- package/dist/surface-Be5WvBRV.js.map +0 -1
- package/dist/surface-DxPFMsdk.cjs.map +0 -1
- package/dist/teleport.component-BCkjx7SO.js.map +0 -1
- package/dist/teleport.component-Ca5QcRnp.cjs +0 -173
- package/dist/teleport.component-Ca5QcRnp.cjs.map +0 -1
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { customElement as l, property as c, state as m, queryAssignedElements as
|
|
3
|
-
import { Subject as
|
|
1
|
+
import { css as g, html as a, nothing as ht } from "lit";
|
|
2
|
+
import { customElement as l, property as c, state as m, queryAssignedElements as lt, query as V } from "lit/decorators.js";
|
|
3
|
+
import { Subject as G, merge as J, fromEvent as b, startWith as pt, tap as w, map as p, debounceTime as _, distinctUntilChanged as F, takeUntil as d, from as st, of as q, Observable as ft, distinctUntilKeyChanged as wt, zip as ot, filter as dt, take as gt, timeout as vt, bufferTime as xt, concatMap as Dt, interval as Ot, throwIfEmpty as Ct } from "rxjs";
|
|
4
4
|
import "./animated-text-BR3J5YzM.js";
|
|
5
|
-
import { a as
|
|
5
|
+
import { a as it, F as $t, H as Et } from "./area.component-BlcOhWYn.js";
|
|
6
6
|
import "./autocomplete-vfdJnjAx.js";
|
|
7
7
|
import "./spinner-BMi71Btm.js";
|
|
8
8
|
import "./icon-button-cThH-HDx.js";
|
|
9
9
|
import "lit/directives/class-map.js";
|
|
10
10
|
import "lit/directives/style-map.js";
|
|
11
|
-
import { T as
|
|
12
|
-
import { S as
|
|
11
|
+
import { T as N } from "./tailwind.mixin-C5OzBKVB.js";
|
|
12
|
+
import { S as U } from "./theme.interface-C5Kj6WjD.js";
|
|
13
13
|
import "./checkbox-BrVJwQYt.js";
|
|
14
|
-
import "./chips-
|
|
14
|
+
import "./chips-iwpEO4yI.js";
|
|
15
15
|
import "./payment-card-form-CSjKMW71.js";
|
|
16
16
|
import { SchmancyEvents as y } from "./types.js";
|
|
17
|
-
import { n as
|
|
18
|
-
import { $
|
|
17
|
+
import { n as C, e as O } from "./provide-kj6-udep.js";
|
|
18
|
+
import { $ } from "./litElement.mixin-Bn8Rl6md.js";
|
|
19
19
|
import { c as h } from "./consume-DSKPc5vj.js";
|
|
20
20
|
import "./date-range-Bf_u0TPH.js";
|
|
21
21
|
import "./delay-DrTqFWuI.js";
|
|
22
|
-
import { c as
|
|
22
|
+
import { c as S, f as jt } from "./ripple-BumgqsDT.js";
|
|
23
23
|
import "./divider-DE_qGu0Z.js";
|
|
24
24
|
import "./form-CiopR1cw.js";
|
|
25
25
|
import "./icon-uV29Oo_I.js";
|
|
26
26
|
import "./input-CjHwAdCr.js";
|
|
27
27
|
import "./scroll-BJ_3vZ-c.js";
|
|
28
|
-
import
|
|
29
|
-
import { when as X } from "lit/directives/when.js";
|
|
28
|
+
import "./list-DLUs5fLg.js";
|
|
30
29
|
import "./menu-CK0Aunqg.js";
|
|
30
|
+
import { when as K } from "lit/directives/when.js";
|
|
31
31
|
import "./outlet-CbHO2KGb.js";
|
|
32
32
|
import "./option-C3ovVy8Q.js";
|
|
33
33
|
import "./radio-group-BaAICOCk.js";
|
|
34
34
|
import "./index-CuY8m6ta.js";
|
|
35
35
|
import "./select-DzmFjt61.js";
|
|
36
|
-
import { s as
|
|
36
|
+
import { s as Y } from "./sheet-Co0cHr37.js";
|
|
37
37
|
import "./slider-dtJketj4.js";
|
|
38
|
+
import "./surface-DKT0Af0Z.js";
|
|
38
39
|
import "./table-DZIjJKTT.js";
|
|
39
40
|
import "./tabs-group-JXceC_AX.js";
|
|
40
41
|
import "./textarea-vre0j7PW.js";
|
|
41
42
|
import "./theme.component-DnykGuEm.js";
|
|
42
43
|
import "./theme-button-D8dDywwF.js";
|
|
43
44
|
import "./tree-Dzh0J35T.js";
|
|
44
|
-
import "./typewriter-
|
|
45
|
+
import "./typewriter-8avpGisR.js";
|
|
45
46
|
import "./typography-BsfF4nMf.js";
|
|
46
|
-
import { map as
|
|
47
|
-
var
|
|
48
|
-
let
|
|
47
|
+
import { map as Mt, distinctUntilChanged as Wt, take as kt } from "rxjs/operators";
|
|
48
|
+
var Pt = Object.defineProperty, zt = Object.getOwnPropertyDescriptor;
|
|
49
|
+
let rt = class extends N(g`
|
|
49
50
|
:host {
|
|
50
51
|
display: block;
|
|
51
52
|
}
|
|
@@ -54,15 +55,15 @@ let lt = class extends E(f`
|
|
|
54
55
|
return a` <section class="pb-4 px-4"><slot> </slot></section> `;
|
|
55
56
|
}
|
|
56
57
|
};
|
|
57
|
-
|
|
58
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
59
|
-
return i && s &&
|
|
60
|
-
})([l("schmancy-card-action")],
|
|
61
|
-
var
|
|
62
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
63
|
-
return i && s &&
|
|
58
|
+
rt = ((t, e, o, i) => {
|
|
59
|
+
for (var r, s = i > 1 ? void 0 : i ? zt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
60
|
+
return i && s && Pt(e, o, s), s;
|
|
61
|
+
})([l("schmancy-card-action")], rt);
|
|
62
|
+
var St = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, A = (t, e, o, i) => {
|
|
63
|
+
for (var r, s = i > 1 ? void 0 : i ? Nt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
64
|
+
return i && s && St(e, o, s), s;
|
|
64
65
|
};
|
|
65
|
-
let
|
|
66
|
+
let I = class extends N() {
|
|
66
67
|
constructor() {
|
|
67
68
|
super(...arguments), this.type = "elevated", this.elevation = 0;
|
|
68
69
|
}
|
|
@@ -73,43 +74,43 @@ let R = class extends E() {
|
|
|
73
74
|
</div>`;
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
-
var
|
|
78
|
-
let
|
|
77
|
+
A([c()], I.prototype, "type", 2), A([c({ type: Number })], I.prototype, "elevation", 2), I = A([l("schmancy-card")], I);
|
|
78
|
+
var It = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor;
|
|
79
|
+
let nt = class extends N() {
|
|
79
80
|
render() {
|
|
80
|
-
const t =
|
|
81
|
+
const t = U.sys.color.surface.on, e = U.sys.color.surface.onVariant;
|
|
81
82
|
return a`<schmancy-grid gap="md" class="${this.classMap({ "px-[16px] py-[24px]": !0 })}">
|
|
82
83
|
<schmancy-grid gap="xs">
|
|
83
84
|
<schmancy-typography
|
|
84
|
-
${
|
|
85
|
+
${S({ color: t })}
|
|
85
86
|
type="body"
|
|
86
87
|
token="lg"
|
|
87
88
|
><slot name="headline"> </slot
|
|
88
89
|
></schmancy-typography>
|
|
89
90
|
<schmancy-typography
|
|
90
|
-
${
|
|
91
|
+
${S({ color: e })}
|
|
91
92
|
type="body"
|
|
92
93
|
><slot name="subhead"></slot>
|
|
93
94
|
</schmancy-typography>
|
|
94
95
|
</schmancy-grid>
|
|
95
96
|
<schmancy-typography
|
|
96
97
|
type="body"
|
|
97
|
-
${
|
|
98
|
+
${S({ color: e })}
|
|
98
99
|
>
|
|
99
100
|
<slot></slot>
|
|
100
101
|
</schmancy-typography>
|
|
101
102
|
</schmancy-grid>`;
|
|
102
103
|
}
|
|
103
104
|
};
|
|
104
|
-
|
|
105
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
106
|
-
return i && s &&
|
|
107
|
-
})([l("schmancy-card-content")],
|
|
108
|
-
var
|
|
109
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
110
|
-
return i && s &&
|
|
105
|
+
nt = ((t, e, o, i) => {
|
|
106
|
+
for (var r, s = i > 1 ? void 0 : i ? Ht(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
107
|
+
return i && s && It(e, o, s), s;
|
|
108
|
+
})([l("schmancy-card-content")], nt);
|
|
109
|
+
var Tt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, B = (t, e, o, i) => {
|
|
110
|
+
for (var r, s = i > 1 ? void 0 : i ? Xt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
111
|
+
return i && s && Tt(e, o, s), s;
|
|
111
112
|
};
|
|
112
|
-
let
|
|
113
|
+
let H = class extends N(g`
|
|
113
114
|
:host {
|
|
114
115
|
display: block;
|
|
115
116
|
}
|
|
@@ -124,10 +125,10 @@ let _ = class extends E(f`
|
|
|
124
125
|
</schmancy-grid>`;
|
|
125
126
|
}
|
|
126
127
|
};
|
|
127
|
-
|
|
128
|
-
const
|
|
128
|
+
B([c({ type: String, reflect: !0 })], H.prototype, "src", 2), B([c({ type: String })], H.prototype, "fit", 2), H = B([l("schmancy-card-media")], H);
|
|
129
|
+
const Ye = new class {
|
|
129
130
|
constructor() {
|
|
130
|
-
this.$drawer = new
|
|
131
|
+
this.$drawer = new G(), this.$drawer.pipe().subscribe((t) => {
|
|
131
132
|
t.action === "dismiss" ? t.ref.dispatchEvent(new CustomEvent(y.ContentDrawerToggle, { detail: { state: "close" }, bubbles: !0, composed: !0 })) : t.action === "render" && (t.ref.dispatchEvent(new CustomEvent(y.ContentDrawerToggle, { detail: { state: "open" }, bubbles: !0, composed: !0 })), t.ref.dispatchEvent(new CustomEvent("schmancy-content-drawer-render", { detail: { component: t.component, title: t.title }, bubbles: !0, composed: !0 })));
|
|
132
133
|
});
|
|
133
134
|
}
|
|
@@ -137,12 +138,12 @@ const os = new class {
|
|
|
137
138
|
render(t, e, o) {
|
|
138
139
|
t.dispatchEvent(new CustomEvent("custom-event")), this.$drawer.next({ action: "render", ref: t, component: e, title: o });
|
|
139
140
|
}
|
|
140
|
-
}(),
|
|
141
|
-
var
|
|
142
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
143
|
-
return i && s &&
|
|
141
|
+
}(), L = C("push"), mt = C("close"), yt = C(Math.floor(Math.random() * Date.now()).toString()), Q = C("100%"), Z = C({});
|
|
142
|
+
var Rt = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, x = (t, e, o, i) => {
|
|
143
|
+
for (var r, s = i > 1 ? void 0 : i ? _t(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
144
|
+
return i && s && Rt(e, o, s), s;
|
|
144
145
|
};
|
|
145
|
-
let
|
|
146
|
+
let v = class extends $(g`
|
|
146
147
|
:host {
|
|
147
148
|
position: relative;
|
|
148
149
|
inset: 0;
|
|
@@ -154,19 +155,19 @@ let w = class extends M(f`
|
|
|
154
155
|
super(...arguments), this.minWidth = { main: 360, sheet: 576 }, this.schmancyContentDrawerID = Math.floor(Math.random() * Date.now()).toString(), this.maxHeight = "100%";
|
|
155
156
|
}
|
|
156
157
|
firstUpdated() {
|
|
157
|
-
|
|
158
|
-
}), p(() => this.clientWidth ? this.clientWidth : window.innerWidth), p((t) => t >= this.minWidth.main + this.minWidth.sheet),
|
|
158
|
+
J(b(window, "resize"), b(window, y.ContentDrawerResize)).pipe(pt(!0), w(() => {
|
|
159
|
+
}), p(() => this.clientWidth ? this.clientWidth : window.innerWidth), p((t) => t >= this.minWidth.main + this.minWidth.sheet), _(100), w(() => {
|
|
159
160
|
this.maxHeight = window.innerHeight - this.getOffsetTop(this) - 32 + "px", this.style.setProperty("max-height", this.maxHeight);
|
|
160
|
-
}),
|
|
161
|
+
}), F(), d(this.disconnecting)).subscribe((t) => {
|
|
161
162
|
t ? (this.mode = "push", this.open = "open") : (this.mode = "overlay", this.open = "close");
|
|
162
|
-
}), b(window, y.ContentDrawerToggle).pipe(
|
|
163
|
+
}), b(window, y.ContentDrawerToggle).pipe(w((t) => {
|
|
163
164
|
t.stopPropagation();
|
|
164
165
|
}), p((t) => t.detail.state), d(this.disconnecting)).subscribe((t) => {
|
|
165
166
|
this.open = t;
|
|
166
|
-
}), b(window, "schmancy-content-drawer-render").pipe(
|
|
167
|
+
}), b(window, "schmancy-content-drawer-render").pipe(w((t) => {
|
|
167
168
|
t.stopPropagation();
|
|
168
169
|
}), p((t) => t.detail), d(this.disconnecting)).subscribe(({ component: t, title: e }) => {
|
|
169
|
-
this.mode === "push" ? (
|
|
170
|
+
this.mode === "push" ? (it.push({ area: this.schmancyContentDrawerID, component: "empty", historyStrategy: "silent" }), it.push({ area: this.schmancyContentDrawerID, component: t, historyStrategy: "silent" })) : (this.mode = "overlay") && Y.open({ component: t, uid: this.schmancyContentDrawerID, title: e });
|
|
170
171
|
});
|
|
171
172
|
}
|
|
172
173
|
getOffsetTop(t) {
|
|
@@ -185,15 +186,15 @@ let w = class extends M(f`
|
|
|
185
186
|
>
|
|
186
187
|
<slot></slot>
|
|
187
188
|
</schmancy-grid>
|
|
188
|
-
` :
|
|
189
|
+
` : ht;
|
|
189
190
|
}
|
|
190
191
|
};
|
|
191
|
-
|
|
192
|
-
var
|
|
193
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
194
|
-
return i && s &&
|
|
192
|
+
x([O({ context: Z })], v.prototype, "minWidth", 2), x([O({ context: mt }), c()], v.prototype, "open", 2), x([O({ context: L }), m()], v.prototype, "mode", 2), x([O({ context: yt })], v.prototype, "schmancyContentDrawerID", 2), x([O({ context: Q })], v.prototype, "maxHeight", 2), x([lt({ flatten: !0 })], v.prototype, "assignedElements", 2), v = x([l("schmancy-content-drawer")], v);
|
|
193
|
+
var qt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, W = (t, e, o, i) => {
|
|
194
|
+
for (var r, s = i > 1 ? void 0 : i ? Ut(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
195
|
+
return i && s && qt(e, o, s), s;
|
|
195
196
|
};
|
|
196
|
-
let
|
|
197
|
+
let E = class extends $(g`
|
|
197
198
|
:host {
|
|
198
199
|
display: block;
|
|
199
200
|
overflow: hidden;
|
|
@@ -221,17 +222,17 @@ let k = class extends M(f`
|
|
|
221
222
|
<slot></slot>
|
|
222
223
|
</section>
|
|
223
224
|
</schmancy-grid>
|
|
224
|
-
${
|
|
225
|
+
${K(this.mode === "push", () => a` <schmancy-divider class="absolute right-0 top-0" orientation="vertical"></schmancy-divider>`)}
|
|
225
226
|
</section>
|
|
226
227
|
`;
|
|
227
228
|
}
|
|
228
229
|
};
|
|
229
|
-
|
|
230
|
-
var
|
|
231
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
232
|
-
return i && s &&
|
|
230
|
+
W([c({ type: Number })], E.prototype, "minWidth", 2), W([h({ context: Z, subscribe: !0 })], E.prototype, "drawerMinWidth", 2), W([h({ context: L, subscribe: !0 }), m()], E.prototype, "mode", 2), W([h({ context: Q, subscribe: !0 }), m()], E.prototype, "maxHeight", 2), E = W([l("schmancy-content-drawer-main")], E);
|
|
231
|
+
var At = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, f = (t, e, o, i) => {
|
|
232
|
+
for (var r, s = i > 1 ? void 0 : i ? Bt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
233
|
+
return i && s && At(e, o, s), s;
|
|
233
234
|
};
|
|
234
|
-
let u = class extends
|
|
235
|
+
let u = class extends $(g`
|
|
235
236
|
:host {
|
|
236
237
|
overflow: scroll;
|
|
237
238
|
}
|
|
@@ -240,19 +241,19 @@ let u = class extends M(f`
|
|
|
240
241
|
super.connectedCallback(), this.minWidth ? this.drawerMinWidth.sheet = this.minWidth : this.minWidth = this.drawerMinWidth.sheet;
|
|
241
242
|
}
|
|
242
243
|
updated(t) {
|
|
243
|
-
super.updated(t), t.has("minWidth") && this.minWidth ? (this.drawerMinWidth.sheet = this.minWidth, this.dispatchEvent(new CustomEvent(y.ContentDrawerResize, { bubbles: !0, composed: !0 }))) : (t.has("state") || t.has("mode")) && (this.mode === "overlay" ? this.state === "close" ? this.closeAll() : this.state : this.mode === "push" && (
|
|
244
|
+
super.updated(t), t.has("minWidth") && this.minWidth ? (this.drawerMinWidth.sheet = this.minWidth, this.dispatchEvent(new CustomEvent(y.ContentDrawerResize, { bubbles: !0, composed: !0 }))) : (t.has("state") || t.has("mode")) && (this.mode === "overlay" ? this.state === "close" ? this.closeAll() : this.state : this.mode === "push" && (Y.dismiss(this.schmancyContentDrawerID), this.state === "close" ? this.closeAll() : this.state === "open" && this.open()));
|
|
244
245
|
}
|
|
245
246
|
open() {
|
|
246
247
|
this.mode === "overlay" ? this.sheet.style.position = "fixed" : this.sheet.style.position = "relative", this.sheet.style.display = "block", this.sheet.animate([{ opacity: 0, transform: "translateX(100%)" }, { opacity: 1, transform: "translateX(0%)" }], { duration: 500, easing: "cubic-bezier(0.5, 0.01, 0.25, 1)" });
|
|
247
248
|
}
|
|
248
249
|
closeAll() {
|
|
249
|
-
|
|
250
|
+
J(st(this.closeModalSheet()), st(this.closeSheet())).pipe(d(this.disconnecting)).subscribe();
|
|
250
251
|
}
|
|
251
252
|
closeModalSheet() {
|
|
252
|
-
return
|
|
253
|
+
return q(!0).pipe(w(() => Y.dismiss(this.schmancyContentDrawerID)));
|
|
253
254
|
}
|
|
254
255
|
closeSheet() {
|
|
255
|
-
return new
|
|
256
|
+
return new ft((t) => {
|
|
256
257
|
this.sheet.animate([{ opacity: 1, transform: "translateX(0%)" }, { opacity: 1, transform: "translateX(100%)" }], { duration: 500, easing: "cubic-bezier(0.5, 0.01, 0.25, 1)" }).onfinish = () => {
|
|
257
258
|
this.sheet.style.display = "none", t.next(), t.complete();
|
|
258
259
|
};
|
|
@@ -269,75 +270,10 @@ let u = class extends M(f`
|
|
|
269
270
|
`;
|
|
270
271
|
}
|
|
271
272
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
for (var r, s = i > 1 ? void 0 : i ? Jt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
275
|
-
return i && s && Gt(e, o, s), s;
|
|
276
|
-
};
|
|
277
|
-
let x = class extends E() {
|
|
273
|
+
f([c({ type: Number })], u.prototype, "minWidth", 2), f([h({ context: L, subscribe: !0 }), m()], u.prototype, "mode", 2), f([h({ context: mt, subscribe: !0 }), m()], u.prototype, "state", 2), f([h({ context: yt })], u.prototype, "schmancyContentDrawerID", 2), f([V("#sheet")], u.prototype, "sheet", 2), f([lt({ flatten: !0, slot: void 0 })], u.prototype, "defaultSlot", 2), f([h({ context: Z, subscribe: !0 })], u.prototype, "drawerMinWidth", 2), f([h({ context: Q, subscribe: !0 }), m()], u.prototype, "maxHeight", 2), u = f([l("schmancy-content-drawer-sheet")], u);
|
|
274
|
+
const Ge = new class {
|
|
278
275
|
constructor() {
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
get imgClasses() {
|
|
282
|
-
return ["h-[24px]", "w-[24px]", "object-contain"];
|
|
283
|
-
}
|
|
284
|
-
firstUpdated() {
|
|
285
|
-
var t, e;
|
|
286
|
-
(t = this.leading) == null || t.forEach((o) => {
|
|
287
|
-
o.classList.add(...this.imgClasses);
|
|
288
|
-
}), (e = this.trailing) == null || e.forEach((o) => {
|
|
289
|
-
o.classList.add(...this.imgClasses);
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
render() {
|
|
293
|
-
const t = { "rounded-none": this.rounded === !1, "rounded-full": this.rounded, "w-full min-h-[56px] relative flex items-center gap-[16px] py-[8px] px-[16px] duration-500 transition-colors focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:z-1 outline-secondary-default outline-hidden": !0, "bg-secondary-container text-secondery-onContainer": this.selected }, e = { "z-0 duration-500 transition-opacity": !0, "rounded-none": this.rounded === !1, "rounded-full": this.rounded, "hover:bg-surface-on opacity-[0.08] cursor-pointer absolute inset-0 ": !this.readonly };
|
|
294
|
-
return a`<li .tabIndex=${this.readonly ? -1 : 0} class=${this.classMap(t)}>
|
|
295
|
-
${X(!this.readonly, () => a` <div class="${this.classMap(e)}"></div> `)}
|
|
296
|
-
<slot name="leading"> </slot>
|
|
297
|
-
<schmancy-flex flow="row">
|
|
298
|
-
<schmancy-typography type="body" token="lg">
|
|
299
|
-
<slot></slot>
|
|
300
|
-
</schmancy-typography>
|
|
301
|
-
<schmancy-typography
|
|
302
|
-
${z({ color: T.sys.color.surface.onVariant })}
|
|
303
|
-
type="body"
|
|
304
|
-
token="md"
|
|
305
|
-
>
|
|
306
|
-
<slot name="support"></slot>
|
|
307
|
-
</schmancy-typography>
|
|
308
|
-
</schmancy-flex>
|
|
309
|
-
${X(!this.readonly, () => a` <div class="${this.classMap(e)}"></div> `)}
|
|
310
|
-
<slot name="trailing"></slot>
|
|
311
|
-
</li>`;
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
C([h({ context: zt, subscribe: !0 }), c()], x.prototype, "variant", 2), C([c({ type: Boolean })], x.prototype, "rounded", 2), C([c({ type: Boolean })], x.prototype, "readonly", 2), C([c({ type: Boolean })], x.prototype, "selected", 2), C([A({ slot: "leading", flatten: !0 })], x.prototype, "leading", 2), C([A({ slot: "trailing", flatten: !0 })], x.prototype, "trailing", 2), x = C([l("schmancy-list-item")], x);
|
|
315
|
-
const Qt = D(void 0);
|
|
316
|
-
var Zt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, pt = (t, e, o, i) => {
|
|
317
|
-
for (var r, s = i > 1 ? void 0 : i ? te(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
318
|
-
return i && s && Zt(e, o, s), s;
|
|
319
|
-
};
|
|
320
|
-
let Y = class extends E(f`
|
|
321
|
-
:host {
|
|
322
|
-
display: block;
|
|
323
|
-
padding-top: 8px;
|
|
324
|
-
padding-bottom: 8px;
|
|
325
|
-
}
|
|
326
|
-
`) {
|
|
327
|
-
render() {
|
|
328
|
-
return a`
|
|
329
|
-
<schmancy-surface type=${this.surface}>
|
|
330
|
-
<ul>
|
|
331
|
-
<slot></slot>
|
|
332
|
-
</ul>
|
|
333
|
-
</schmancy-surface>
|
|
334
|
-
`;
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
pt([O({ context: Qt }), c()], Y.prototype, "surface", 2), Y = pt([l("schmancy-list")], Y);
|
|
338
|
-
const is = new class {
|
|
339
|
-
constructor() {
|
|
340
|
-
this.$drawer = new Z(), this.$drawer.pipe(Ot("state"), L(100)).subscribe((t) => {
|
|
276
|
+
this.$drawer = new G(), this.$drawer.pipe(wt("state"), _(100)).subscribe((t) => {
|
|
341
277
|
t.state ? window.dispatchEvent(new CustomEvent(y.NavDrawer_toggle, { detail: { state: "open" }, bubbles: !0, composed: !0 })) : window.dispatchEvent(new CustomEvent(y.NavDrawer_toggle, { detail: { state: "close" }, bubbles: !0, composed: !0 }));
|
|
342
278
|
});
|
|
343
279
|
}
|
|
@@ -347,12 +283,12 @@ const is = new class {
|
|
|
347
283
|
close(t) {
|
|
348
284
|
this.$drawer.next({ self: t, state: !1 });
|
|
349
285
|
}
|
|
350
|
-
}(),
|
|
351
|
-
var
|
|
352
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
353
|
-
return i && s &&
|
|
286
|
+
}(), tt = C("push"), et = C("close");
|
|
287
|
+
var Vt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, T = (t, e, o, i) => {
|
|
288
|
+
for (var r, s = i > 1 ? void 0 : i ? Ft(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
289
|
+
return i && s && Vt(e, o, s), s;
|
|
354
290
|
};
|
|
355
|
-
let
|
|
291
|
+
let k = class extends N(g`
|
|
356
292
|
:host {
|
|
357
293
|
display: block;
|
|
358
294
|
}
|
|
@@ -370,14 +306,14 @@ let I = class extends E(f`
|
|
|
370
306
|
gap="sm"
|
|
371
307
|
align="center"
|
|
372
308
|
>
|
|
373
|
-
${
|
|
309
|
+
${K(this.sidebarMode === "overlay" && this.toggler, () => a`<slot name="toggler">
|
|
374
310
|
<div class="${this.classMap(t)}">
|
|
375
311
|
<schmancy-icon-button
|
|
376
312
|
@click=${() => {
|
|
377
313
|
this.dispatchEvent(new CustomEvent(y.NavDrawer_toggle, { detail: { state: this.sidebarOpen === "open" ? "close" : "open" }, bubbles: !0, composed: !0 }));
|
|
378
314
|
}}
|
|
379
315
|
>
|
|
380
|
-
${
|
|
316
|
+
${K(this.sidebarOpen === "close", () => a`menu`, () => a`menu_open`)}
|
|
381
317
|
</schmancy-icon-button>
|
|
382
318
|
</div>
|
|
383
319
|
</slot>`)}
|
|
@@ -387,9 +323,9 @@ let I = class extends E(f`
|
|
|
387
323
|
`;
|
|
388
324
|
}
|
|
389
325
|
};
|
|
390
|
-
|
|
391
|
-
var
|
|
392
|
-
let
|
|
326
|
+
T([h({ context: tt, subscribe: !0 }), m()], k.prototype, "sidebarMode", 2), T([h({ context: et, subscribe: !0 }), m()], k.prototype, "sidebarOpen", 2), T([c({ type: Boolean })], k.prototype, "toggler", 2), k = T([l("schmancy-nav-drawer-appbar")], k);
|
|
327
|
+
var Kt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor;
|
|
328
|
+
let at = class extends $(g`
|
|
393
329
|
:host {
|
|
394
330
|
display: block;
|
|
395
331
|
position: relative;
|
|
@@ -406,15 +342,15 @@ let dt = class extends M(f`
|
|
|
406
342
|
return a` <slot></slot> `;
|
|
407
343
|
}
|
|
408
344
|
};
|
|
409
|
-
|
|
410
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
411
|
-
return i && s &&
|
|
412
|
-
})([l("schmancy-nav-drawer-content")],
|
|
413
|
-
var
|
|
414
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
415
|
-
return i && s &&
|
|
345
|
+
at = ((t, e, o, i) => {
|
|
346
|
+
for (var r, s = i > 1 ? void 0 : i ? Yt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
347
|
+
return i && s && Kt(e, o, s), s;
|
|
348
|
+
})([l("schmancy-nav-drawer-content")], at);
|
|
349
|
+
var Gt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, P = (t, e, o, i) => {
|
|
350
|
+
for (var r, s = i > 1 ? void 0 : i ? Jt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
351
|
+
return i && s && Gt(e, o, s), s;
|
|
416
352
|
};
|
|
417
|
-
let
|
|
353
|
+
let j = class extends $(g`
|
|
418
354
|
:host {
|
|
419
355
|
display: flex;
|
|
420
356
|
flex-grow: 1;
|
|
@@ -425,11 +361,11 @@ let P = class extends M(f`
|
|
|
425
361
|
super(...arguments), this.fullscreen = !1, this.breakpoint = 768;
|
|
426
362
|
}
|
|
427
363
|
connectedCallback() {
|
|
428
|
-
super.connectedCallback(), b(window, "resize").pipe(p((t) => t.target),
|
|
364
|
+
super.connectedCallback(), b(window, "resize").pipe(p((t) => t.target), pt(window), p((t) => t.innerWidth), p((t) => t >= this.breakpoint), F(), d(this.disconnecting), _(100)).subscribe((t) => {
|
|
429
365
|
t ? (this.mode = "push", this.open = "open") : (this.mode = "overlay", this.open = "close");
|
|
430
|
-
}), b(window, y.NavDrawer_toggle).pipe(
|
|
366
|
+
}), b(window, y.NavDrawer_toggle).pipe(w((t) => {
|
|
431
367
|
t.stopPropagation();
|
|
432
|
-
}), p((t) => t.detail.state),
|
|
368
|
+
}), p((t) => t.detail.state), F(), d(this.disconnecting), _(100)).subscribe((t) => {
|
|
433
369
|
this.mode === "push" && t === "close" || (this.open = t);
|
|
434
370
|
});
|
|
435
371
|
}
|
|
@@ -441,19 +377,19 @@ let P = class extends M(f`
|
|
|
441
377
|
flow="col"
|
|
442
378
|
justify="stretch"
|
|
443
379
|
align="stretch"
|
|
444
|
-
${
|
|
380
|
+
${jt()}
|
|
445
381
|
>
|
|
446
382
|
<slot></slot>
|
|
447
383
|
</schmancy-grid>
|
|
448
|
-
` :
|
|
384
|
+
` : ht;
|
|
449
385
|
}
|
|
450
386
|
};
|
|
451
|
-
|
|
452
|
-
var
|
|
453
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
454
|
-
return i && s &&
|
|
387
|
+
P([c({ type: Boolean })], j.prototype, "fullscreen", 2), P([c({ type: Number, attribute: "breakpoint" })], j.prototype, "breakpoint", 2), P([O({ context: tt }), m()], j.prototype, "mode", 2), P([O({ context: et }), c()], j.prototype, "open", 2), j = P([l("schmancy-nav-drawer")], j);
|
|
388
|
+
var Lt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, M = (t, e, o, i) => {
|
|
389
|
+
for (var r, s = i > 1 ? void 0 : i ? Qt(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
390
|
+
return i && s && Lt(e, o, s), s;
|
|
455
391
|
};
|
|
456
|
-
let
|
|
392
|
+
let D = class extends $() {
|
|
457
393
|
constructor() {
|
|
458
394
|
super(...arguments), this.width = "320px";
|
|
459
395
|
}
|
|
@@ -484,13 +420,13 @@ let j = class extends M() {
|
|
|
484
420
|
<nav
|
|
485
421
|
style=${this.styleMap(e)}
|
|
486
422
|
class="${this.classMap({ ...t })}"
|
|
487
|
-
${
|
|
423
|
+
${S({ bgColor: U.sys.color.surface.container })}
|
|
488
424
|
>
|
|
489
425
|
<slot></slot>
|
|
490
426
|
</nav>
|
|
491
427
|
<div
|
|
492
428
|
id="overlay"
|
|
493
|
-
${
|
|
429
|
+
${S({ bgColor: U.sys.color.scrim })}
|
|
494
430
|
@click=${() => {
|
|
495
431
|
window.dispatchEvent(new CustomEvent(y.NavDrawer_toggle, { detail: { state: "close" }, bubbles: !0, composed: !0 }));
|
|
496
432
|
}}
|
|
@@ -499,29 +435,29 @@ let j = class extends M() {
|
|
|
499
435
|
`;
|
|
500
436
|
}
|
|
501
437
|
};
|
|
502
|
-
|
|
503
|
-
const
|
|
438
|
+
M([h({ context: tt, subscribe: !0 }), m()], D.prototype, "mode", 2), M([h({ context: et, subscribe: !0 }), m()], D.prototype, "state", 2), M([V("#overlay")], D.prototype, "overlay", 2), M([V("nav")], D.prototype, "nav", 2), M([c({ type: String })], D.prototype, "width", 2), D = M([l("schmancy-nav-drawer-navbar")], D);
|
|
439
|
+
const ut = "whereAreYouRicky", bt = "hereMorty", X = new class {
|
|
504
440
|
constructor() {
|
|
505
|
-
this.activeTeleportations = /* @__PURE__ */ new Map(), this.flipRequests = new
|
|
506
|
-
window.dispatchEvent(new CustomEvent(
|
|
507
|
-
}))]).pipe(p(([e]) => e),
|
|
441
|
+
this.activeTeleportations = /* @__PURE__ */ new Map(), this.flipRequests = new G(), this.find = (t) => ot([b(window, bt).pipe(dt((e) => !!e.detail.component.uuid && !!t.id && e.detail.component.id === t.id && e.detail.component.uuid !== t.uuid), p((e) => e.detail.component), gt(1)), q(t).pipe(w(() => {
|
|
442
|
+
window.dispatchEvent(new CustomEvent(ut, { detail: { id: t.id, callerID: t.uuid } }));
|
|
443
|
+
}))]).pipe(p(([e]) => e), vt(0)), this.flip = (t) => {
|
|
508
444
|
const { from: e, to: o } = t, i = o.element.style.zIndex;
|
|
509
445
|
o.element.style.transformOrigin = "top left", o.element.style.setProperty("visibility", "visible"), o.element.style.zIndex = "1000";
|
|
510
446
|
const r = [{ transform: `translate(${e.rect.left - o.rect.left}px, ${e.rect.top - o.rect.top}px) scale(${e.rect.width / o.rect.width}, ${e.rect.height / o.rect.height})` }, { transform: "translate(0, 0) scale(1, 1)" }];
|
|
511
447
|
o.element.animate(r, { duration: 250, delay: 10, easing: "cubic-bezier(0.455, 0.03, 0.515, 0.955)" }).onfinish = () => {
|
|
512
448
|
o.element.style.zIndex = i, o.element.style.transformOrigin = "";
|
|
513
449
|
};
|
|
514
|
-
}, this.flipRequests.pipe(
|
|
450
|
+
}, this.flipRequests.pipe(xt(1), p((t) => t.map(({ from: e, to: o, host: i }, r) => ({ from: e, to: o, host: i, i: r }))), Dt((t) => ot(t.map((e) => q(this.flip(e)))))).subscribe();
|
|
515
451
|
}
|
|
516
452
|
}();
|
|
517
|
-
function
|
|
518
|
-
return
|
|
453
|
+
function ct(t) {
|
|
454
|
+
return Ot(50).pipe(Mt(() => t.getBoundingClientRect()), Wt((e, o) => e.width === o.width && e.height === o.height && e.top === o.top && e.right === o.right && e.bottom === o.bottom && e.left === o.left), kt(1));
|
|
519
455
|
}
|
|
520
|
-
var
|
|
521
|
-
for (var r, s = i > 1 ? void 0 : i ?
|
|
522
|
-
return i && s &&
|
|
456
|
+
var Zt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, R = (t, e, o, i) => {
|
|
457
|
+
for (var r, s = i > 1 ? void 0 : i ? te(e, o) : e, n = t.length - 1; n >= 0; n--) (r = t[n]) && (s = (i ? r(e, o, s) : r(s)) || s);
|
|
458
|
+
return i && s && Zt(e, o, s), s;
|
|
523
459
|
};
|
|
524
|
-
let
|
|
460
|
+
let z = class extends $(g``) {
|
|
525
461
|
constructor() {
|
|
526
462
|
super(...arguments), this.uuid = Math.floor(Math.random() * Date.now()), this.delay = 0, this.debugging = !1;
|
|
527
463
|
}
|
|
@@ -530,20 +466,20 @@ let H = class extends M(f``) {
|
|
|
530
466
|
}
|
|
531
467
|
connectedCallback() {
|
|
532
468
|
if (this.id === void 0) throw new Error("id is required");
|
|
533
|
-
super.connectedCallback(),
|
|
534
|
-
this.dispatchEvent(new CustomEvent(
|
|
535
|
-
} })), b(window,
|
|
536
|
-
t.detail.id === this.id && this.uuid && t.detail.callerID !== this.uuid && this.dispatchEvent(new CustomEvent(
|
|
469
|
+
super.connectedCallback(), J(b(window, $t).pipe(w({ next: () => {
|
|
470
|
+
this.dispatchEvent(new CustomEvent(Et, { detail: { component: this }, bubbles: !0, composed: !0 }));
|
|
471
|
+
} })), b(window, ut).pipe(w({ next: (t) => {
|
|
472
|
+
t.detail.id === this.id && this.uuid && t.detail.callerID !== this.uuid && this.dispatchEvent(new CustomEvent(bt, { detail: { component: this }, bubbles: !0, composed: !0 }));
|
|
537
473
|
} }))).pipe(d(this.disconnecting)).subscribe();
|
|
538
474
|
}
|
|
539
475
|
async firstUpdated() {
|
|
540
|
-
|
|
541
|
-
this.style.setProperty("visibility", "hidden"),
|
|
542
|
-
|
|
476
|
+
q(X.activeTeleportations.get(this.id)).pipe(dt((t) => !!t), d(this.disconnecting), Ct()).subscribe({ next: (t) => {
|
|
477
|
+
this.style.setProperty("visibility", "hidden"), ct(this).pipe(d(this.disconnecting)).subscribe({ next: (e) => {
|
|
478
|
+
X.activeTeleportations.set(this.id, e), X.flipRequests.next({ from: { rect: t }, to: { rect: e, element: this._slottedChildren[0] }, host: this });
|
|
543
479
|
} });
|
|
544
480
|
}, error: () => {
|
|
545
|
-
this.style.setProperty("visibility", "visible"),
|
|
546
|
-
|
|
481
|
+
this.style.setProperty("visibility", "visible"), ct(this).pipe(d(this.disconnecting)).subscribe({ next: (t) => {
|
|
482
|
+
X.activeTeleportations.set(this.id, t);
|
|
547
483
|
} });
|
|
548
484
|
}, complete: () => {
|
|
549
485
|
} });
|
|
@@ -552,29 +488,27 @@ let H = class extends M(f``) {
|
|
|
552
488
|
return a`<slot></slot>`;
|
|
553
489
|
}
|
|
554
490
|
};
|
|
555
|
-
|
|
491
|
+
R([c({ type: Number, reflect: !0 })], z.prototype, "uuid", 2), R([c({ type: String })], z.prototype, "id", 2), R([c({ type: Number })], z.prototype, "delay", 2), z = R([l("schmancy-teleport")], z);
|
|
556
492
|
export {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
k as f,
|
|
493
|
+
bt as H,
|
|
494
|
+
L as S,
|
|
495
|
+
ut as W,
|
|
496
|
+
mt as a,
|
|
497
|
+
yt as b,
|
|
498
|
+
Q as c,
|
|
499
|
+
Z as d,
|
|
500
|
+
v as e,
|
|
501
|
+
E as f,
|
|
567
502
|
u as g,
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
U as t
|
|
503
|
+
Ge as h,
|
|
504
|
+
k as i,
|
|
505
|
+
at as j,
|
|
506
|
+
tt as k,
|
|
507
|
+
et as l,
|
|
508
|
+
j as m,
|
|
509
|
+
D as n,
|
|
510
|
+
z as o,
|
|
511
|
+
Ye as s,
|
|
512
|
+
X as t
|
|
579
513
|
};
|
|
580
|
-
//# sourceMappingURL=teleport.component-
|
|
514
|
+
//# sourceMappingURL=teleport.component-ChBGmqA6.js.map
|