@mhmo91/schmancy 0.2.39 → 0.2.41
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/{animated-text-B3UYCBgB.cjs → animated-text-CaUJr-yL.cjs} +2 -2
- package/dist/{animated-text-B3UYCBgB.cjs.map → animated-text-CaUJr-yL.cjs.map} +1 -1
- package/dist/{animated-text-D6s-YOrx.js → animated-text-D8LhwMLu.js} +3 -3
- package/dist/{animated-text-D6s-YOrx.js.map → animated-text-D8LhwMLu.js.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/{area.component-CNHbzqRX.cjs → area.component-DJYgP8NP.cjs} +2 -2
- package/dist/{area.component-CNHbzqRX.cjs.map → area.component-DJYgP8NP.cjs.map} +1 -1
- package/dist/{area.component-xeDLv_CE.js → area.component-FgfXnOUF.js} +3 -3
- package/dist/{area.component-xeDLv_CE.js.map → area.component-FgfXnOUF.js.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-Cz4oZQBB.js → autocomplete-C36FPrMT.js} +3 -3
- package/dist/{autocomplete-Cz4oZQBB.js.map → autocomplete-C36FPrMT.js.map} +1 -1
- package/dist/{autocomplete-D71XBwSj.cjs → autocomplete-CFcZcrJm.cjs} +2 -2
- package/dist/{autocomplete-D71XBwSj.cjs.map → autocomplete-CFcZcrJm.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-CQvBkjyb.cjs → checkbox-Drf8MwrJ.cjs} +2 -2
- package/dist/{checkbox-CQvBkjyb.cjs.map → checkbox-Drf8MwrJ.cjs.map} +1 -1
- package/dist/{checkbox-DCRZj150.js → checkbox-Sf2HtMs9.js} +2 -2
- package/dist/{checkbox-DCRZj150.js.map → checkbox-Sf2HtMs9.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-BUDT0jpL.cjs → chips-8SMj1Siq.cjs} +2 -2
- package/dist/{chips-BUDT0jpL.cjs.map → chips-8SMj1Siq.cjs.map} +1 -1
- package/dist/{chips-DStbVgUo.js → chips-CA-B5JGD.js} +3 -3
- package/dist/{chips-DStbVgUo.js.map → chips-CA-B5JGD.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-D_zg5C9O.js → date-range-BFW0xGWz.js} +3 -3
- package/dist/{date-range-D_zg5C9O.js.map → date-range-BFW0xGWz.js.map} +1 -1
- package/dist/{date-range-BjIt4Ocb.cjs → date-range-CAFOX_Sm.cjs} +2 -2
- package/dist/{date-range-BjIt4Ocb.cjs.map → date-range-CAFOX_Sm.cjs.map} +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-LxXCSBHq.js → delay-DbaKftdS.js} +2 -2
- package/dist/{delay-LxXCSBHq.js.map → delay-DbaKftdS.js.map} +1 -1
- package/dist/{delay-D8wCtScV.cjs → delay-_LA9VzS1.cjs} +2 -2
- package/dist/{delay-D8wCtScV.cjs.map → delay-_LA9VzS1.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{divider-BSEoJ09J.js → divider-Ba1jSOh5.js} +3 -3
- package/dist/{divider-BSEoJ09J.js.map → divider-Ba1jSOh5.js.map} +1 -1
- package/dist/{divider-lCnFIhkp.cjs → divider-DUvuIyeA.cjs} +2 -2
- package/dist/{divider-lCnFIhkp.cjs.map → divider-DUvuIyeA.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{form-Bf2BlAqE.cjs → form-Dga1_eim.cjs} +2 -2
- package/dist/{form-Bf2BlAqE.cjs.map → form-Dga1_eim.cjs.map} +1 -1
- package/dist/{form-C-1W3Aqc.js → form-H0pfjyGl.js} +2 -2
- package/dist/{form-C-1W3Aqc.js.map → form-H0pfjyGl.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-Wj9hmgVr.cjs → icon-Dr1MeHJo.cjs} +2 -2
- package/dist/{icon-Wj9hmgVr.cjs.map → icon-Dr1MeHJo.cjs.map} +1 -1
- package/dist/{icon-button-C0bTDyZI.cjs → icon-button-B1Hzc1qy.cjs} +2 -2
- package/dist/{icon-button-C0bTDyZI.cjs.map → icon-button-B1Hzc1qy.cjs.map} +1 -1
- package/dist/{icon-button-CRWWdZ-S.js → icon-button-BFdAiGNP.js} +3 -3
- package/dist/{icon-button-CRWWdZ-S.js.map → icon-button-BFdAiGNP.js.map} +1 -1
- package/dist/{icon-CXD3W__G.js → icon-pvbFfBbz.js} +3 -3
- package/dist/{icon-CXD3W__G.js.map → icon-pvbFfBbz.js.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +33 -33
- package/dist/{input-DRhsCSxi.cjs → input-1-LnDYbT.cjs} +2 -2
- package/dist/{input-DRhsCSxi.cjs.map → input-1-LnDYbT.cjs.map} +1 -1
- package/dist/{input-BQtGX-Fg.js → input-CBjD2PL8.js} +2 -2
- package/dist/{input-BQtGX-Fg.js.map → input-CBjD2PL8.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-CUpWM7R0.js → list-BdN19pT0.js} +2 -2
- package/dist/{list-CUpWM7R0.js.map → list-BdN19pT0.js.map} +1 -1
- package/dist/{list-bbSGS1sE.cjs → list-DSyxyPI_.cjs} +2 -2
- package/dist/{list-bbSGS1sE.cjs.map → list-DSyxyPI_.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-CYwiYZyZ.cjs → litElement.mixin-B9kSOE4x.cjs} +2 -2
- package/dist/{litElement.mixin-CYwiYZyZ.cjs.map → litElement.mixin-B9kSOE4x.cjs.map} +1 -1
- package/dist/{litElement.mixin-DoKCdkhO.js → litElement.mixin-D9kneJpW.js} +2 -2
- package/dist/{litElement.mixin-DoKCdkhO.js.map → litElement.mixin-D9kneJpW.js.map} +1 -1
- package/dist/{menu-DGFcpetb.js → menu-DjWA-lYK.js} +3 -3
- package/dist/{menu-DGFcpetb.js.map → menu-DjWA-lYK.js.map} +1 -1
- package/dist/{menu-CXDFSHgu.cjs → menu-XffIwQSn.cjs} +2 -2
- package/dist/{menu-CXDFSHgu.cjs.map → menu-XffIwQSn.cjs.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-Cr7OiYc5.js → option-C4fWPkxl.js} +2 -2
- package/dist/{option-Cr7OiYc5.js.map → option-C4fWPkxl.js.map} +1 -1
- package/dist/{option-BKHQU-_I.cjs → option-Dcuv7dNV.cjs} +2 -2
- package/dist/{option-BKHQU-_I.cjs.map → option-Dcuv7dNV.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{outlet-BZSpbcNh.cjs → outlet-881x1gpm.cjs} +2 -2
- package/dist/{outlet-BZSpbcNh.cjs.map → outlet-881x1gpm.cjs.map} +1 -1
- package/dist/{outlet-D39IYQgF.js → outlet-oc58T2jq.js} +2 -2
- package/dist/{outlet-D39IYQgF.js.map → outlet-oc58T2jq.js.map} +1 -1
- package/dist/{payment-card-form-jktK4YkR.cjs → payment-card-form-BlusjI2Q.cjs} +2 -2
- package/dist/{payment-card-form-jktK4YkR.cjs.map → payment-card-form-BlusjI2Q.cjs.map} +1 -1
- package/dist/{payment-card-form-MU2rWtCN.js → payment-card-form-D2NiZkJM.js} +3 -3
- package/dist/{payment-card-form-MU2rWtCN.js.map → payment-card-form-D2NiZkJM.js.map} +1 -1
- package/dist/{radio-group-Cbcn7M8H.js → radio-group-BALwJIFj.js} +2 -2
- package/dist/{radio-group-Cbcn7M8H.js.map → radio-group-BALwJIFj.js.map} +1 -1
- package/dist/{radio-group-DnpFVpBo.cjs → radio-group-DE6ao3xB.cjs} +2 -2
- package/dist/{radio-group-DnpFVpBo.cjs.map → radio-group-DE6ao3xB.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{scroll-moSwU3Ry.js → scroll-BbqxMyDc.js} +2 -2
- package/dist/{scroll-moSwU3Ry.js.map → scroll-BbqxMyDc.js.map} +1 -1
- package/dist/{scroll-DNj5rrzc.cjs → scroll-BqLesKK7.cjs} +2 -2
- package/dist/{scroll-DNj5rrzc.cjs.map → scroll-BqLesKK7.cjs.map} +1 -1
- package/dist/{select-Dmhiq26e.js → select-CaBI5TrW.js} +3 -3
- package/dist/{select-Dmhiq26e.js.map → select-CaBI5TrW.js.map} +1 -1
- package/dist/{select-DEOnUayG.cjs → select-N1WX3mjc.cjs} +2 -2
- package/dist/{select-DEOnUayG.cjs.map → select-N1WX3mjc.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-CgaQ6pVJ.cjs → sheet-BLzXXxJz.cjs} +2 -2
- package/dist/{sheet-CgaQ6pVJ.cjs.map → sheet-BLzXXxJz.cjs.map} +1 -1
- package/dist/{sheet-BDPiwpWN.js → sheet-CrFAERdT.js} +3 -3
- package/dist/{sheet-BDPiwpWN.js.map → sheet-CrFAERdT.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-D-cIdjqg.js → slider-BAQ6ue43.js} +3 -3
- package/dist/{slider-D-cIdjqg.js.map → slider-BAQ6ue43.js.map} +1 -1
- package/dist/{slider-Dbz2ehmj.cjs → slider-Ck3rrBuj.cjs} +2 -2
- package/dist/{slider-Dbz2ehmj.cjs.map → slider-Ck3rrBuj.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-COoBI2kA.cjs → spinner-B1iL6lg7.cjs} +2 -2
- package/dist/{spinner-COoBI2kA.cjs.map → spinner-B1iL6lg7.cjs.map} +1 -1
- package/dist/{spinner-qHgA76_k.js → spinner-Dp-BlzFE.js} +3 -3
- package/dist/{spinner-qHgA76_k.js.map → spinner-Dp-BlzFE.js.map} +1 -1
- package/dist/{surface-BALOUsnP.js → surface-C-5hXuc0.js} +2 -2
- package/dist/{surface-BALOUsnP.js.map → surface-C-5hXuc0.js.map} +1 -1
- package/dist/{surface-DI4R4vjx.cjs → surface-KIYOpqYN.cjs} +2 -2
- package/dist/{surface-DI4R4vjx.cjs.map → surface-KIYOpqYN.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-DVqYwon7.cjs → table-COiGzwHG.cjs} +2 -2
- package/dist/{table-DVqYwon7.cjs.map → table-COiGzwHG.cjs.map} +1 -1
- package/dist/{table-C3YCvbyA.js → table-D5Y7TtBM.js} +2 -2
- package/dist/{table-C3YCvbyA.js.map → table-D5Y7TtBM.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-group-DtvVC_nM.js → tabs-group-DIv7H3ii.js} +2 -2
- package/dist/{tabs-group-DtvVC_nM.js.map → tabs-group-DIv7H3ii.js.map} +1 -1
- package/dist/{tabs-group-CM9Hd80d.cjs → tabs-group-Dzw-rYWP.cjs} +2 -2
- package/dist/{tabs-group-CM9Hd80d.cjs.map → tabs-group-Dzw-rYWP.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-BBKdEPAU.js +43 -0
- package/dist/{tailwind.mixin-CHPxMV8E.js.map → tailwind.mixin-BBKdEPAU.js.map} +1 -1
- package/dist/{tailwind.mixin-CHPxMV8E.js → tailwind.mixin-gE-6eUQA.cjs} +2 -43
- package/dist/{tailwind.mixin-BmIP1Qzo.cjs.map → tailwind.mixin-gE-6eUQA.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.component-Bp9B02lJ.cjs +150 -0
- package/dist/teleport.component-Bp9B02lJ.cjs.map +1 -0
- package/dist/teleport.component-Do0-5-jy.js +530 -0
- package/dist/teleport.component-Do0-5-jy.js.map +1 -0
- package/dist/teleport.js +1 -1
- package/dist/{textarea-C8bsVuSe.cjs → textarea-Cm_0BDw5.cjs} +2 -2
- package/dist/{textarea-C8bsVuSe.cjs.map → textarea-Cm_0BDw5.cjs.map} +1 -1
- package/dist/{textarea-D7ZLtbVj.js → textarea-DWBpogxd.js} +2 -2
- package/dist/{textarea-D7ZLtbVj.js.map → textarea-DWBpogxd.js.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-fUwuhdHz.cjs → theme-button-B7JR-68y.cjs} +2 -2
- package/dist/{theme-button-fUwuhdHz.cjs.map → theme-button-B7JR-68y.cjs.map} +1 -1
- package/dist/{theme-button-CcHxfORU.js → theme-button-CdjTjQE-.js} +2 -2
- package/dist/{theme-button-CcHxfORU.js.map → theme-button-CdjTjQE-.js.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-ByOov4NR.cjs → theme.component-D0pi4zH5.cjs} +2 -2
- package/dist/{theme.component-ByOov4NR.cjs.map → theme.component-D0pi4zH5.cjs.map} +1 -1
- package/dist/{theme.component-D4gPoycY.js → theme.component-DWRFe6NX.js} +2 -2
- package/dist/{theme.component-D4gPoycY.js.map → theme.component-DWRFe6NX.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{tree-DW_S-LL9.js → tree-COFA9Z7I.js} +2 -2
- package/dist/{tree-DW_S-LL9.js.map → tree-COFA9Z7I.js.map} +1 -1
- package/dist/{tree-DJQKaG-K.cjs → tree-D8SHnBQ7.cjs} +2 -2
- package/dist/{tree-DJQKaG-K.cjs.map → tree-D8SHnBQ7.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-jDCMhixI.cjs → typewriter-B254asJ6.cjs} +2 -2
- package/dist/{typewriter-jDCMhixI.cjs.map → typewriter-B254asJ6.cjs.map} +1 -1
- package/dist/{typewriter-_3w-aV-9.js → typewriter-CKloAbr2.js} +4 -4
- package/dist/{typewriter-_3w-aV-9.js.map → typewriter-CKloAbr2.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-BhqtMVYz.cjs → typography-BjmgtlSe.cjs} +2 -2
- package/dist/{typography-BhqtMVYz.cjs.map → typography-BjmgtlSe.cjs.map} +1 -1
- package/dist/{typography-GzUb3OWl.js → typography-C0__6Aqk.js} +2 -2
- package/dist/{typography-GzUb3OWl.js.map → typography-C0__6Aqk.js.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +5 -5
- package/types/src/nav-drawer/drawer.d.ts +33 -10
- package/types/src/nav-drawer/navbar.d.ts +23 -2
- package/dist/tailwind.mixin-BmIP1Qzo.cjs +0 -2
- package/dist/teleport.component-BQTFUlsF.js +0 -515
- package/dist/teleport.component-BQTFUlsF.js.map +0 -1
- package/dist/teleport.component-hBN2zB0w.cjs +0 -144
- package/dist/teleport.component-hBN2zB0w.cjs.map +0 -1
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import { css as g, html as n, nothing as ht } from "lit";
|
|
2
|
+
import { customElement as d, property as c, state as l, queryAssignedElements as dt, query as V } from "lit/decorators.js";
|
|
3
|
+
import { Subject as J, merge as L, fromEvent as b, startWith as ft, tap as w, map as f, debounceTime as A, distinctUntilChanged as F, takeUntil as p, from as it, of as U, Observable as vt, distinctUntilKeyChanged as wt, zip as ot, filter as pt, take as gt, timeout as xt, bufferTime as Ot, concatMap as Dt, interval as Ct, throwIfEmpty as $t } from "rxjs";
|
|
4
|
+
import "./animated-text-D8LhwMLu.js";
|
|
5
|
+
import { a as rt, F as Et, H as Wt } from "./area.component-FgfXnOUF.js";
|
|
6
|
+
import "./autocomplete-C36FPrMT.js";
|
|
7
|
+
import "./spinner-Dp-BlzFE.js";
|
|
8
|
+
import "./icon-button-BFdAiGNP.js";
|
|
9
|
+
import "lit/directives/class-map.js";
|
|
10
|
+
import "lit/directives/style-map.js";
|
|
11
|
+
import { T as I } from "./tailwind.mixin-BBKdEPAU.js";
|
|
12
|
+
import { S as q } from "./theme.interface-C5Kj6WjD.js";
|
|
13
|
+
import "./checkbox-Sf2HtMs9.js";
|
|
14
|
+
import "./chips-CA-B5JGD.js";
|
|
15
|
+
import "./payment-card-form-D2NiZkJM.js";
|
|
16
|
+
import { SchmancyEvents as m } from "./types.js";
|
|
17
|
+
import { n as E, e as $ } from "./provide-kj6-udep.js";
|
|
18
|
+
import { $ as W } from "./litElement.mixin-D9kneJpW.js";
|
|
19
|
+
import { c as h } from "./consume-DSKPc5vj.js";
|
|
20
|
+
import "./date-range-BFW0xGWz.js";
|
|
21
|
+
import "./delay-DbaKftdS.js";
|
|
22
|
+
import { c as z, f as jt } from "./ripple-BumgqsDT.js";
|
|
23
|
+
import "./divider-Ba1jSOh5.js";
|
|
24
|
+
import "./form-H0pfjyGl.js";
|
|
25
|
+
import "./icon-pvbFfBbz.js";
|
|
26
|
+
import "./input-CBjD2PL8.js";
|
|
27
|
+
import "./scroll-BbqxMyDc.js";
|
|
28
|
+
import "./list-BdN19pT0.js";
|
|
29
|
+
import "./menu-DjWA-lYK.js";
|
|
30
|
+
import { when as Y } from "lit/directives/when.js";
|
|
31
|
+
import "./outlet-oc58T2jq.js";
|
|
32
|
+
import "./option-C4fWPkxl.js";
|
|
33
|
+
import "./radio-group-BALwJIFj.js";
|
|
34
|
+
import "./index-CuY8m6ta.js";
|
|
35
|
+
import "./select-CaBI5TrW.js";
|
|
36
|
+
import { s as G } from "./sheet-CrFAERdT.js";
|
|
37
|
+
import "./slider-BAQ6ue43.js";
|
|
38
|
+
import "./surface-C-5hXuc0.js";
|
|
39
|
+
import "./table-D5Y7TtBM.js";
|
|
40
|
+
import "./tabs-group-DIv7H3ii.js";
|
|
41
|
+
import "./textarea-DWBpogxd.js";
|
|
42
|
+
import "./theme.component-DWRFe6NX.js";
|
|
43
|
+
import "./theme-button-CdjTjQE-.js";
|
|
44
|
+
import "./tree-COFA9Z7I.js";
|
|
45
|
+
import "./typewriter-CKloAbr2.js";
|
|
46
|
+
import "./typography-C0__6Aqk.js";
|
|
47
|
+
import { map as kt, distinctUntilChanged as Mt, take as Pt } from "rxjs/operators";
|
|
48
|
+
var St = Object.defineProperty, zt = Object.getOwnPropertyDescriptor;
|
|
49
|
+
let at = class extends I(g`
|
|
50
|
+
:host {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
`) {
|
|
54
|
+
render() {
|
|
55
|
+
return n` <section class="pb-4 px-4"><slot> </slot></section> `;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
at = ((t, e, i, o) => {
|
|
59
|
+
for (var r, s = o > 1 ? void 0 : o ? zt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
60
|
+
return o && s && St(e, i, s), s;
|
|
61
|
+
})([d("schmancy-card-action")], at);
|
|
62
|
+
var It = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, B = (t, e, i, o) => {
|
|
63
|
+
for (var r, s = o > 1 ? void 0 : o ? Nt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
64
|
+
return o && s && It(e, i, s), s;
|
|
65
|
+
};
|
|
66
|
+
let N = class extends I() {
|
|
67
|
+
constructor() {
|
|
68
|
+
super(...arguments), this.type = "elevated", this.elevation = 0;
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
const t = { "rounded-md": !0, "shadow-xs": this.elevation === 1, "shadow-sm": this.elevation === 2, "shadow-md": this.elevation === 3, "shadow-lg": this.elevation === 4, "shadow-5": this.elevation === 5, "hover:shadow-xs": ["outlined", "filled"].includes(this.type), "bg-surface-low shadow-xs hover:shadow-sm": this.type === "elevated", "bg-surface-highest": this.type === "filled", "bg-surface-default border border-solid border-1 border-outlineVariant": this.type === "outlined" };
|
|
72
|
+
return n`<div class="${this.classMap(t)}">
|
|
73
|
+
<slot> </slot>
|
|
74
|
+
</div>`;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
B([c()], N.prototype, "type", 2), B([c({ type: Number })], N.prototype, "elevation", 2), N = B([d("schmancy-card")], N);
|
|
78
|
+
var Tt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor;
|
|
79
|
+
let nt = class extends I() {
|
|
80
|
+
render() {
|
|
81
|
+
const t = q.sys.color.surface.on, e = q.sys.color.surface.onVariant;
|
|
82
|
+
return n`<schmancy-grid gap="md" class="${this.classMap({ "px-[16px] py-[24px]": !0 })}">
|
|
83
|
+
<schmancy-grid gap="xs">
|
|
84
|
+
<schmancy-typography
|
|
85
|
+
${z({ color: t })}
|
|
86
|
+
type="body"
|
|
87
|
+
token="lg"
|
|
88
|
+
><slot name="headline"> </slot
|
|
89
|
+
></schmancy-typography>
|
|
90
|
+
<schmancy-typography
|
|
91
|
+
${z({ color: e })}
|
|
92
|
+
type="body"
|
|
93
|
+
><slot name="subhead"></slot>
|
|
94
|
+
</schmancy-typography>
|
|
95
|
+
</schmancy-grid>
|
|
96
|
+
<schmancy-typography
|
|
97
|
+
type="body"
|
|
98
|
+
${z({ color: e })}
|
|
99
|
+
>
|
|
100
|
+
<slot></slot>
|
|
101
|
+
</schmancy-typography>
|
|
102
|
+
</schmancy-grid>`;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
nt = ((t, e, i, o) => {
|
|
106
|
+
for (var r, s = o > 1 ? void 0 : o ? Xt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
107
|
+
return o && s && Tt(e, i, s), s;
|
|
108
|
+
})([d("schmancy-card-content")], nt);
|
|
109
|
+
var _t = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, K = (t, e, i, o) => {
|
|
110
|
+
for (var r, s = o > 1 ? void 0 : o ? Ht(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
111
|
+
return o && s && _t(e, i, s), s;
|
|
112
|
+
};
|
|
113
|
+
let T = class extends I(g`
|
|
114
|
+
:host {
|
|
115
|
+
display: block;
|
|
116
|
+
}
|
|
117
|
+
`) {
|
|
118
|
+
constructor() {
|
|
119
|
+
super(...arguments), this.src = "", this.fit = "contain";
|
|
120
|
+
}
|
|
121
|
+
render() {
|
|
122
|
+
const t = { "object-center": !0, "object-contain": this.fit === "contain", "object-cover w-full": this.fit === "cover", "object-fill": this.fit === "fill", "object-none": this.fit === "none", "object-scale-down": this.fit === "scale-down" };
|
|
123
|
+
return n`<schmancy-grid align="stretch" justify="stretch" gap="md">
|
|
124
|
+
<img src="${this.src}" style=${this.styleMap({ height: "200px" })} class="${this.classMap(t)}" />
|
|
125
|
+
</schmancy-grid>`;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
K([c({ type: String, reflect: !0 })], T.prototype, "src", 2), K([c({ type: String })], T.prototype, "fit", 2), T = K([d("schmancy-card-media")], T);
|
|
129
|
+
const Je = new class {
|
|
130
|
+
constructor() {
|
|
131
|
+
this.$drawer = new J(), this.$drawer.pipe().subscribe((t) => {
|
|
132
|
+
t.action === "dismiss" ? t.ref.dispatchEvent(new CustomEvent(m.ContentDrawerToggle, { detail: { state: "close" }, bubbles: !0, composed: !0 })) : t.action === "render" && (t.ref.dispatchEvent(new CustomEvent(m.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 })));
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
dimiss(t) {
|
|
136
|
+
this.$drawer.next({ action: "dismiss", ref: t });
|
|
137
|
+
}
|
|
138
|
+
render(t, e, i) {
|
|
139
|
+
t.dispatchEvent(new CustomEvent("custom-event")), this.$drawer.next({ action: "render", ref: t, component: e, title: i });
|
|
140
|
+
}
|
|
141
|
+
}(), Q = E("push"), mt = E("close"), yt = E(Math.floor(Math.random() * Date.now()).toString()), Z = E("100%"), tt = E({});
|
|
142
|
+
var Rt = Object.defineProperty, At = Object.getOwnPropertyDescriptor, D = (t, e, i, o) => {
|
|
143
|
+
for (var r, s = o > 1 ? void 0 : o ? At(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
144
|
+
return o && s && Rt(e, i, s), s;
|
|
145
|
+
};
|
|
146
|
+
let x = class extends W(g`
|
|
147
|
+
:host {
|
|
148
|
+
position: relative;
|
|
149
|
+
inset: 0;
|
|
150
|
+
display: block;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
}
|
|
153
|
+
`) {
|
|
154
|
+
constructor() {
|
|
155
|
+
super(...arguments), this.minWidth = { main: 360, sheet: 576 }, this.schmancyContentDrawerID = Math.floor(Math.random() * Date.now()).toString(), this.maxHeight = "100%";
|
|
156
|
+
}
|
|
157
|
+
firstUpdated() {
|
|
158
|
+
L(b(window, "resize"), b(window, m.ContentDrawerResize)).pipe(ft(!0), w(() => {
|
|
159
|
+
}), f(() => this.clientWidth ? this.clientWidth : window.innerWidth), f((t) => t >= this.minWidth.main + this.minWidth.sheet), A(100), w(() => {
|
|
160
|
+
this.maxHeight = window.innerHeight - this.getOffsetTop(this) - 32 + "px", this.style.setProperty("max-height", this.maxHeight);
|
|
161
|
+
}), F(), p(this.disconnecting)).subscribe((t) => {
|
|
162
|
+
t ? (this.mode = "push", this.open = "open") : (this.mode = "overlay", this.open = "close");
|
|
163
|
+
}), b(window, m.ContentDrawerToggle).pipe(w((t) => {
|
|
164
|
+
t.stopPropagation();
|
|
165
|
+
}), f((t) => t.detail.state), p(this.disconnecting)).subscribe((t) => {
|
|
166
|
+
this.open = t;
|
|
167
|
+
}), b(window, "schmancy-content-drawer-render").pipe(w((t) => {
|
|
168
|
+
t.stopPropagation();
|
|
169
|
+
}), f((t) => t.detail), p(this.disconnecting)).subscribe(({ component: t, title: e }) => {
|
|
170
|
+
this.mode === "push" ? (rt.push({ area: this.schmancyContentDrawerID, component: "empty", historyStrategy: "silent" }), rt.push({ area: this.schmancyContentDrawerID, component: t, historyStrategy: "silent" })) : (this.mode = "overlay") && G.open({ component: t, uid: this.schmancyContentDrawerID, title: e });
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
getOffsetTop(t) {
|
|
174
|
+
let e = 0;
|
|
175
|
+
for (; t; ) e += t.offsetTop, t = t.offsetParent;
|
|
176
|
+
return e;
|
|
177
|
+
}
|
|
178
|
+
render() {
|
|
179
|
+
return this.mode && this.open ? n`
|
|
180
|
+
<schmancy-grid
|
|
181
|
+
cols=${this.mode === "overlay" ? "1fr" : "auto 1fr"}
|
|
182
|
+
rows="1fr"
|
|
183
|
+
flow="col"
|
|
184
|
+
justify="stretch"
|
|
185
|
+
align="stretch"
|
|
186
|
+
>
|
|
187
|
+
<slot></slot>
|
|
188
|
+
</schmancy-grid>
|
|
189
|
+
` : ht;
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
D([$({ context: tt })], x.prototype, "minWidth", 2), D([$({ context: mt }), c()], x.prototype, "open", 2), D([$({ context: Q }), l()], x.prototype, "mode", 2), D([$({ context: yt })], x.prototype, "schmancyContentDrawerID", 2), D([$({ context: Z })], x.prototype, "maxHeight", 2), D([dt({ flatten: !0 })], x.prototype, "assignedElements", 2), x = D([d("schmancy-content-drawer")], x);
|
|
193
|
+
var Ut = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, M = (t, e, i, o) => {
|
|
194
|
+
for (var r, s = o > 1 ? void 0 : o ? qt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
195
|
+
return o && s && Ut(e, i, s), s;
|
|
196
|
+
};
|
|
197
|
+
let j = class extends W(g`
|
|
198
|
+
:host {
|
|
199
|
+
display: block;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
}
|
|
202
|
+
`) {
|
|
203
|
+
connectedCallback() {
|
|
204
|
+
super.connectedCallback(), this.minWidth ? this.drawerMinWidth.main = this.minWidth : this.minWidth = this.drawerMinWidth.main;
|
|
205
|
+
}
|
|
206
|
+
update(t) {
|
|
207
|
+
super.update(t), t.has("minWidth") && this.minWidth && (this.drawerMinWidth.main = this.minWidth, this.dispatchEvent(new CustomEvent(m.ContentDrawerResize, { bubbles: !0, composed: !0 })));
|
|
208
|
+
}
|
|
209
|
+
render() {
|
|
210
|
+
const t = { minWidth: `${this.minWidth}px`, maxHeight: this.maxHeight };
|
|
211
|
+
return n`
|
|
212
|
+
<section class="relative inset-0 h-full">
|
|
213
|
+
<schmancy-grid
|
|
214
|
+
class="h-full relative overflow-scroll"
|
|
215
|
+
cols="${this.mode === "push" ? "auto 1fr" : "1fr"}"
|
|
216
|
+
rows="1fr"
|
|
217
|
+
flow="col"
|
|
218
|
+
align="stretch"
|
|
219
|
+
justify="stretch"
|
|
220
|
+
>
|
|
221
|
+
<section style=${this.styleMap(t)}>
|
|
222
|
+
<slot></slot>
|
|
223
|
+
</section>
|
|
224
|
+
</schmancy-grid>
|
|
225
|
+
${Y(this.mode === "push", () => n` <schmancy-divider class="absolute right-0 top-0" orientation="vertical"></schmancy-divider>`)}
|
|
226
|
+
</section>
|
|
227
|
+
`;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
M([c({ type: Number })], j.prototype, "minWidth", 2), M([h({ context: tt, subscribe: !0 })], j.prototype, "drawerMinWidth", 2), M([h({ context: Q, subscribe: !0 }), l()], j.prototype, "mode", 2), M([h({ context: Z, subscribe: !0 }), l()], j.prototype, "maxHeight", 2), j = M([d("schmancy-content-drawer-main")], j);
|
|
231
|
+
var Bt = Object.defineProperty, Kt = Object.getOwnPropertyDescriptor, v = (t, e, i, o) => {
|
|
232
|
+
for (var r, s = o > 1 ? void 0 : o ? Kt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
233
|
+
return o && s && Bt(e, i, s), s;
|
|
234
|
+
};
|
|
235
|
+
let y = class extends W(g`
|
|
236
|
+
:host {
|
|
237
|
+
overflow: scroll;
|
|
238
|
+
}
|
|
239
|
+
`) {
|
|
240
|
+
connectedCallback() {
|
|
241
|
+
super.connectedCallback(), this.minWidth ? this.drawerMinWidth.sheet = this.minWidth : this.minWidth = this.drawerMinWidth.sheet;
|
|
242
|
+
}
|
|
243
|
+
updated(t) {
|
|
244
|
+
super.updated(t), t.has("minWidth") && this.minWidth ? (this.drawerMinWidth.sheet = this.minWidth, this.dispatchEvent(new CustomEvent(m.ContentDrawerResize, { bubbles: !0, composed: !0 }))) : (t.has("state") || t.has("mode")) && (this.mode === "overlay" ? this.state === "close" ? this.closeAll() : this.state : this.mode === "push" && (G.dismiss(this.schmancyContentDrawerID), this.state === "close" ? this.closeAll() : this.state === "open" && this.open()));
|
|
245
|
+
}
|
|
246
|
+
open() {
|
|
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)" });
|
|
248
|
+
}
|
|
249
|
+
closeAll() {
|
|
250
|
+
L(it(this.closeModalSheet()), it(this.closeSheet())).pipe(p(this.disconnecting)).subscribe();
|
|
251
|
+
}
|
|
252
|
+
closeModalSheet() {
|
|
253
|
+
return U(!0).pipe(w(() => G.dismiss(this.schmancyContentDrawerID)));
|
|
254
|
+
}
|
|
255
|
+
closeSheet() {
|
|
256
|
+
return new vt((t) => {
|
|
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 = () => {
|
|
258
|
+
this.sheet.style.display = "none", t.next(), t.complete();
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
render() {
|
|
263
|
+
const t = { block: this.mode === "push", "absolute z-50": this.mode === "overlay", "opacity-1": this.mode === "overlay" && this.state === "open" }, e = { minWidth: `${this.minWidth}px`, maxHeight: this.maxHeight };
|
|
264
|
+
return n`
|
|
265
|
+
<section id="sheet" class="${this.classMap(t)}" style=${this.styleMap(e)}>
|
|
266
|
+
<schmancy-area name="${this.schmancyContentDrawerID}">
|
|
267
|
+
<slot name="placeholder"></slot>
|
|
268
|
+
</schmancy-area>
|
|
269
|
+
</section>
|
|
270
|
+
`;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
v([c({ type: Number })], y.prototype, "minWidth", 2), v([h({ context: Q, subscribe: !0 }), l()], y.prototype, "mode", 2), v([h({ context: mt, subscribe: !0 }), l()], y.prototype, "state", 2), v([h({ context: yt })], y.prototype, "schmancyContentDrawerID", 2), v([V("#sheet")], y.prototype, "sheet", 2), v([dt({ flatten: !0, slot: void 0 })], y.prototype, "defaultSlot", 2), v([h({ context: tt, subscribe: !0 })], y.prototype, "drawerMinWidth", 2), v([h({ context: Z, subscribe: !0 }), l()], y.prototype, "maxHeight", 2), y = v([d("schmancy-content-drawer-sheet")], y);
|
|
274
|
+
const Vt = new class {
|
|
275
|
+
constructor() {
|
|
276
|
+
this.$drawer = new J(), this.$drawer.pipe(wt("state"), A(100)).subscribe((t) => {
|
|
277
|
+
t.state ? window.dispatchEvent(new CustomEvent(m.NavDrawer_toggle, { detail: { state: "open" }, bubbles: !0, composed: !0 })) : window.dispatchEvent(new CustomEvent(m.NavDrawer_toggle, { detail: { state: "close" }, bubbles: !0, composed: !0 }));
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
open(t) {
|
|
281
|
+
this.$drawer.next({ self: t, state: !0 });
|
|
282
|
+
}
|
|
283
|
+
close(t) {
|
|
284
|
+
this.$drawer.next({ self: t, state: !1 });
|
|
285
|
+
}
|
|
286
|
+
}(), Le = Vt, et = E("push"), st = E("close");
|
|
287
|
+
var Ft = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, X = (t, e, i, o) => {
|
|
288
|
+
for (var r, s = o > 1 ? void 0 : o ? Yt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
289
|
+
return o && s && Ft(e, i, s), s;
|
|
290
|
+
};
|
|
291
|
+
let P = class extends I(g`
|
|
292
|
+
:host {
|
|
293
|
+
display: block;
|
|
294
|
+
}
|
|
295
|
+
`) {
|
|
296
|
+
constructor() {
|
|
297
|
+
super(...arguments), this.toggler = !0;
|
|
298
|
+
}
|
|
299
|
+
render() {
|
|
300
|
+
const t = { "block left-3 z-50": this.sidebarMode === "overlay", hidden: this.sidebarMode === "push" };
|
|
301
|
+
return n`
|
|
302
|
+
<schmancy-grid
|
|
303
|
+
cols=${this.sidebarMode === "overlay" && this.toggler ? "auto 1fr" : "1fr"}
|
|
304
|
+
flow="col"
|
|
305
|
+
class=${this.classMap({ "block z-50": !0 })}
|
|
306
|
+
gap="sm"
|
|
307
|
+
align="center"
|
|
308
|
+
>
|
|
309
|
+
${Y(this.sidebarMode === "overlay" && this.toggler, () => n`<slot name="toggler">
|
|
310
|
+
<div class="${this.classMap(t)}">
|
|
311
|
+
<schmancy-icon-button
|
|
312
|
+
@click=${() => {
|
|
313
|
+
this.dispatchEvent(new CustomEvent(m.NavDrawer_toggle, { detail: { state: this.sidebarOpen === "open" ? "close" : "open" }, bubbles: !0, composed: !0 }));
|
|
314
|
+
}}
|
|
315
|
+
>
|
|
316
|
+
${Y(this.sidebarOpen === "close", () => n`menu`, () => n`menu_open`)}
|
|
317
|
+
</schmancy-icon-button>
|
|
318
|
+
</div>
|
|
319
|
+
</slot>`)}
|
|
320
|
+
|
|
321
|
+
<slot> </slot>
|
|
322
|
+
</schmancy-grid>
|
|
323
|
+
`;
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
X([h({ context: et, subscribe: !0 }), l()], P.prototype, "sidebarMode", 2), X([h({ context: st, subscribe: !0 }), l()], P.prototype, "sidebarOpen", 2), X([c({ type: Boolean })], P.prototype, "toggler", 2), P = X([d("schmancy-nav-drawer-appbar")], P);
|
|
327
|
+
var Gt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor;
|
|
328
|
+
let ct = class extends W(g`
|
|
329
|
+
:host {
|
|
330
|
+
display: block;
|
|
331
|
+
position: relative;
|
|
332
|
+
inset: 0;
|
|
333
|
+
overflow-y: auto;
|
|
334
|
+
}
|
|
335
|
+
`) {
|
|
336
|
+
connectedCallback() {
|
|
337
|
+
super.connectedCallback(), b(this, "scroll").pipe(p(this.disconnecting)).subscribe((t) => {
|
|
338
|
+
this.parentElement.dispatchEvent(new CustomEvent("scroll", { detail: t, bubbles: !0, composed: !0 }));
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
render() {
|
|
342
|
+
return n` <slot></slot> `;
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
ct = ((t, e, i, o) => {
|
|
346
|
+
for (var r, s = o > 1 ? void 0 : o ? Jt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
347
|
+
return o && s && Gt(e, i, s), s;
|
|
348
|
+
})([d("schmancy-nav-drawer-content")], ct);
|
|
349
|
+
var Lt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, k = (t, e, i, o) => {
|
|
350
|
+
for (var r, s = o > 1 ? void 0 : o ? Qt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
351
|
+
return o && s && Lt(e, i, s), s;
|
|
352
|
+
};
|
|
353
|
+
let u = class extends W(g`
|
|
354
|
+
:host {
|
|
355
|
+
display: flex;
|
|
356
|
+
flex-grow: 1;
|
|
357
|
+
overflow: hidden;
|
|
358
|
+
/* Initially hide the component until it’s ready */
|
|
359
|
+
visibility: hidden;
|
|
360
|
+
}
|
|
361
|
+
/* Once the component is ready, remove the hidden style */
|
|
362
|
+
:host([data-ready]) {
|
|
363
|
+
visibility: visible;
|
|
364
|
+
}
|
|
365
|
+
`) {
|
|
366
|
+
constructor() {
|
|
367
|
+
super(...arguments), this.fullscreen = !1, this.breakpoint = "md", this._initialized = !1;
|
|
368
|
+
}
|
|
369
|
+
firstUpdated() {
|
|
370
|
+
this.updateState(window.innerWidth), this._initialized = !0, this.setAttribute("data-ready", ""), b(window, "resize").pipe(f((t) => t.target.innerWidth), f((t) => t >= u.BREAKPOINTS[this.breakpoint]), F(), A(100), p(this.disconnecting)).subscribe((t) => {
|
|
371
|
+
t ? (this.mode = "push", this.open = "open") : (this.mode = "overlay", this.open = "close");
|
|
372
|
+
}), b(window, m.NavDrawer_toggle).pipe(w((t) => {
|
|
373
|
+
t.stopPropagation();
|
|
374
|
+
}), f((t) => t.detail.state), F(), A(100), p(this.disconnecting)).subscribe((t) => {
|
|
375
|
+
this.mode === "push" && t === "close" || (this.open = t);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
updateState(t) {
|
|
379
|
+
const e = t >= u.BREAKPOINTS[this.breakpoint];
|
|
380
|
+
this.mode = e ? "push" : "overlay", this.open = e ? "open" : "close";
|
|
381
|
+
}
|
|
382
|
+
render() {
|
|
383
|
+
return this._initialized ? n`
|
|
384
|
+
<schmancy-grid
|
|
385
|
+
cols=${this.fullscreen ? "1fr" : "auto 1fr"}
|
|
386
|
+
rows="1fr"
|
|
387
|
+
flow="col"
|
|
388
|
+
justify="stretch"
|
|
389
|
+
align="stretch"
|
|
390
|
+
${jt()}
|
|
391
|
+
>
|
|
392
|
+
<slot></slot>
|
|
393
|
+
</schmancy-grid>
|
|
394
|
+
` : ht;
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
u.BREAKPOINTS = { sm: 640, md: 768, lg: 1024, xl: 1280 }, k([c({ type: Boolean })], u.prototype, "fullscreen", 2), k([c({ type: String, attribute: "breakpoint" })], u.prototype, "breakpoint", 2), k([$({ context: et }), l()], u.prototype, "mode", 2), k([$({ context: st }), c()], u.prototype, "open", 2), k([l()], u.prototype, "_initialized", 2), u = k([d("schmancy-nav-drawer")], u);
|
|
398
|
+
var Zt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, C = (t, e, i, o) => {
|
|
399
|
+
for (var r, s = o > 1 ? void 0 : o ? te(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
400
|
+
return o && s && Zt(e, i, s), s;
|
|
401
|
+
};
|
|
402
|
+
const _ = "cubic-bezier(0.5, 0.01, 0.25, 1)";
|
|
403
|
+
let O = class extends W() {
|
|
404
|
+
constructor() {
|
|
405
|
+
super(...arguments), this.width = "320px", this._initialized = !1;
|
|
406
|
+
}
|
|
407
|
+
firstUpdated() {
|
|
408
|
+
this.mode === "overlay" ? this.drawerState === "close" ? (this.nav.style.transform = "translateX(-100%)", this.overlay.style.display = "none") : this.drawerState === "open" && (this.nav.style.transform = "translateX(0)", this.overlay.style.display = "block", this.overlay.style.opacity = "0.4") : this.mode === "push" && (this.nav.style.transform = "translateX(0)", this.overlay.style.display = "none"), this._initialized = !0;
|
|
409
|
+
}
|
|
410
|
+
updated(t) {
|
|
411
|
+
this._initialized && (t.has("drawerState") || t.has("mode")) && (this.mode === "overlay" ? this.drawerState === "open" ? this.nav.style.transform !== "translateX(0)" && (this.openOverlay(), this.showNavDrawer()) : this.drawerState === "close" && this.nav.style.transform !== "translateX(-100%)" && (this.hideNavDrawer(), this.closeOverlay()) : this.mode === "push" && (this.nav.style.transform !== "translateX(0)" && this.showNavDrawer(), this.overlay.style.display !== "none" && this.closeOverlay()));
|
|
412
|
+
}
|
|
413
|
+
openOverlay() {
|
|
414
|
+
this.overlay.style.display = "block", this.overlay.animate([{ opacity: 0 }, { opacity: 0.4 }], { duration: 200, easing: _, fill: "forwards" });
|
|
415
|
+
}
|
|
416
|
+
closeOverlay() {
|
|
417
|
+
this.overlay.animate([{ opacity: 0.4 }, { opacity: 0 }], { duration: 150, easing: _, fill: "forwards" }).onfinish = () => {
|
|
418
|
+
this.overlay.style.display = "none";
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
showNavDrawer() {
|
|
422
|
+
this.nav.animate([{ transform: "translateX(-100%)" }, { transform: "translateX(0)" }], { duration: 200, easing: _, fill: "forwards" }).onfinish = () => {
|
|
423
|
+
this.nav.style.transform = "translateX(0)";
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
hideNavDrawer() {
|
|
427
|
+
this.nav.animate([{ transform: "translateX(0)" }, { transform: "translateX(-100%)" }], { duration: 200, easing: _, fill: "forwards" }).onfinish = () => {
|
|
428
|
+
this.nav.style.transform = "translateX(-100%)";
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
handleOverlayClick() {
|
|
432
|
+
window.dispatchEvent(new CustomEvent(m.NavDrawer_toggle, { detail: { state: "close" }, bubbles: !0, composed: !0 }));
|
|
433
|
+
}
|
|
434
|
+
render() {
|
|
435
|
+
const t = { "p-[16px] max-w-[360px] w-fit h-full overflow-auto": !0, block: this.mode === "push", "fixed inset-0 z-50": this.mode === "overlay" }, e = { width: this.width };
|
|
436
|
+
return n`
|
|
437
|
+
<nav
|
|
438
|
+
style=${this.styleMap(e)}
|
|
439
|
+
class="${this.classMap({ ...t })}"
|
|
440
|
+
${z({ bgColor: q.sys.color.surface.container })}
|
|
441
|
+
>
|
|
442
|
+
<slot></slot>
|
|
443
|
+
</nav>
|
|
444
|
+
<div
|
|
445
|
+
id="overlay"
|
|
446
|
+
${z({ bgColor: q.sys.color.scrim })}
|
|
447
|
+
@click=${this.handleOverlayClick}
|
|
448
|
+
class="${this.classMap({ "fixed inset-0 z-49 hidden": !0 })}"
|
|
449
|
+
></div>
|
|
450
|
+
`;
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
C([h({ context: et, subscribe: !0 }), l()], O.prototype, "mode", 2), C([h({ context: st, subscribe: !0 }), l()], O.prototype, "drawerState", 2), C([V("#overlay")], O.prototype, "overlay", 2), C([V("nav")], O.prototype, "nav", 2), C([c({ type: String })], O.prototype, "width", 2), C([l()], O.prototype, "_initialized", 2), O = C([d("schmancy-nav-drawer-navbar")], O);
|
|
454
|
+
const ut = "whereAreYouRicky", bt = "hereMorty", H = new class {
|
|
455
|
+
constructor() {
|
|
456
|
+
this.activeTeleportations = /* @__PURE__ */ new Map(), this.flipRequests = new J(), this.find = (t) => ot([b(window, bt).pipe(pt((e) => !!e.detail.component.uuid && !!t.id && e.detail.component.id === t.id && e.detail.component.uuid !== t.uuid), f((e) => e.detail.component), gt(1)), U(t).pipe(w(() => {
|
|
457
|
+
window.dispatchEvent(new CustomEvent(ut, { detail: { id: t.id, callerID: t.uuid } }));
|
|
458
|
+
}))]).pipe(f(([e]) => e), xt(0)), this.flip = (t) => {
|
|
459
|
+
const { from: e, to: i } = t, o = i.element.style.zIndex;
|
|
460
|
+
i.element.style.transformOrigin = "top left", i.element.style.setProperty("visibility", "visible"), i.element.style.zIndex = "1000";
|
|
461
|
+
const r = [{ transform: `translate(${e.rect.left - i.rect.left}px, ${e.rect.top - i.rect.top}px) scale(${e.rect.width / i.rect.width}, ${e.rect.height / i.rect.height})` }, { transform: "translate(0, 0) scale(1, 1)" }];
|
|
462
|
+
i.element.animate(r, { duration: 250, delay: 10, easing: "cubic-bezier(0.455, 0.03, 0.515, 0.955)" }).onfinish = () => {
|
|
463
|
+
i.element.style.zIndex = o, i.element.style.transformOrigin = "";
|
|
464
|
+
};
|
|
465
|
+
}, this.flipRequests.pipe(Ot(1), f((t) => t.map(({ from: e, to: i, host: o }, r) => ({ from: e, to: i, host: o, i: r }))), Dt((t) => ot(t.map((e) => U(this.flip(e)))))).subscribe();
|
|
466
|
+
}
|
|
467
|
+
}();
|
|
468
|
+
function lt(t) {
|
|
469
|
+
return Ct(50).pipe(kt(() => t.getBoundingClientRect()), Mt((e, i) => e.width === i.width && e.height === i.height && e.top === i.top && e.right === i.right && e.bottom === i.bottom && e.left === i.left), Pt(1));
|
|
470
|
+
}
|
|
471
|
+
var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, R = (t, e, i, o) => {
|
|
472
|
+
for (var r, s = o > 1 ? void 0 : o ? se(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
|
|
473
|
+
return o && s && ee(e, i, s), s;
|
|
474
|
+
};
|
|
475
|
+
let S = class extends W(g``) {
|
|
476
|
+
constructor() {
|
|
477
|
+
super(...arguments), this.uuid = Math.floor(Math.random() * Date.now()), this.delay = 0, this.debugging = !1;
|
|
478
|
+
}
|
|
479
|
+
get _slottedChildren() {
|
|
480
|
+
return this.shadowRoot.querySelector("slot").assignedElements({ flatten: !0 });
|
|
481
|
+
}
|
|
482
|
+
connectedCallback() {
|
|
483
|
+
if (this.id === void 0) throw new Error("id is required");
|
|
484
|
+
super.connectedCallback(), L(b(window, Et).pipe(w({ next: () => {
|
|
485
|
+
this.dispatchEvent(new CustomEvent(Wt, { detail: { component: this }, bubbles: !0, composed: !0 }));
|
|
486
|
+
} })), b(window, ut).pipe(w({ next: (t) => {
|
|
487
|
+
t.detail.id === this.id && this.uuid && t.detail.callerID !== this.uuid && this.dispatchEvent(new CustomEvent(bt, { detail: { component: this }, bubbles: !0, composed: !0 }));
|
|
488
|
+
} }))).pipe(p(this.disconnecting)).subscribe();
|
|
489
|
+
}
|
|
490
|
+
async firstUpdated() {
|
|
491
|
+
U(H.activeTeleportations.get(this.id)).pipe(pt((t) => !!t), p(this.disconnecting), $t()).subscribe({ next: (t) => {
|
|
492
|
+
this.style.setProperty("visibility", "hidden"), lt(this).pipe(p(this.disconnecting)).subscribe({ next: (e) => {
|
|
493
|
+
H.activeTeleportations.set(this.id, e), H.flipRequests.next({ from: { rect: t }, to: { rect: e, element: this._slottedChildren[0] }, host: this });
|
|
494
|
+
} });
|
|
495
|
+
}, error: () => {
|
|
496
|
+
this.style.setProperty("visibility", "visible"), lt(this).pipe(p(this.disconnecting)).subscribe({ next: (t) => {
|
|
497
|
+
H.activeTeleportations.set(this.id, t);
|
|
498
|
+
} });
|
|
499
|
+
}, complete: () => {
|
|
500
|
+
} });
|
|
501
|
+
}
|
|
502
|
+
render() {
|
|
503
|
+
return n`<slot></slot>`;
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
R([c({ type: Number, reflect: !0 })], S.prototype, "uuid", 2), R([c({ type: String })], S.prototype, "id", 2), R([c({ type: Number })], S.prototype, "delay", 2), S = R([d("schmancy-teleport")], S);
|
|
507
|
+
export {
|
|
508
|
+
Le as $,
|
|
509
|
+
bt as H,
|
|
510
|
+
Q as S,
|
|
511
|
+
ut as W,
|
|
512
|
+
mt as a,
|
|
513
|
+
yt as b,
|
|
514
|
+
Z as c,
|
|
515
|
+
tt as d,
|
|
516
|
+
x as e,
|
|
517
|
+
j as f,
|
|
518
|
+
y as g,
|
|
519
|
+
Vt as h,
|
|
520
|
+
P as i,
|
|
521
|
+
ct as j,
|
|
522
|
+
et as k,
|
|
523
|
+
st as l,
|
|
524
|
+
u as m,
|
|
525
|
+
O as n,
|
|
526
|
+
S as o,
|
|
527
|
+
Je as s,
|
|
528
|
+
H as t
|
|
529
|
+
};
|
|
530
|
+
//# sourceMappingURL=teleport.component-Do0-5-jy.js.map
|