@mhmo91/schmancy 0.10.4 → 0.10.5
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/custom-elements.json +17 -220
- package/dist/agent/schmancy.agent.js +3770 -4600
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +6 -211
- package/dist/{area-ZupIezvU.cjs → area-CSQdhCBF.cjs} +1 -1
- package/dist/{area-ZupIezvU.cjs.map → area-CSQdhCBF.cjs.map} +1 -1
- package/dist/{area-DHVANBbr.js → area-D5haQE-J.js} +1 -1
- package/dist/{area-DHVANBbr.js.map → area-D5haQE-J.js.map} +1 -1
- package/dist/area.cjs +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-Bn525CTp.cjs → autocomplete-B_bJXUjm.cjs} +1 -1
- package/dist/{autocomplete-Bn525CTp.cjs.map → autocomplete-B_bJXUjm.cjs.map} +1 -1
- package/dist/{autocomplete-pHvsyfbH.js → autocomplete-DtyjZJ1E.js} +2 -2
- package/dist/{autocomplete-pHvsyfbH.js.map → autocomplete-DtyjZJ1E.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +2 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-IyEtsNI4.cjs → boat-BJLCp-Hv.cjs} +1 -1
- package/dist/{boat-IyEtsNI4.cjs.map → boat-BJLCp-Hv.cjs.map} +1 -1
- package/dist/{boat-_Yv3M6YM.js → boat-MT8bRT8u.js} +2 -2
- package/dist/{boat-_Yv3M6YM.js.map → boat-MT8bRT8u.js.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/{busy-Ck2IXJ4r.js → busy-6BqWGryX.js} +1 -1
- package/dist/{busy-Ck2IXJ4r.js.map → busy-6BqWGryX.js.map} +1 -1
- package/dist/{busy-CjM39APN.cjs → busy-DSF2E-zy.cjs} +1 -1
- package/dist/{busy-CjM39APN.cjs.map → busy-DSF2E-zy.cjs.map} +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +3 -3
- package/dist/{card-DUWZmMHc.js → card-CvuVha-W.js} +1 -1
- package/dist/{card-DUWZmMHc.js.map → card-CvuVha-W.js.map} +1 -1
- package/dist/{card-DIxDuuth.cjs → card-DnKnaHzf.cjs} +1 -1
- package/dist/{card-DIxDuuth.cjs.map → card-DnKnaHzf.cjs.map} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +1 -1
- package/dist/{checkbox-CGdFXuWQ.cjs → checkbox-D3u8Wm9r.cjs} +1 -1
- package/dist/{checkbox-CGdFXuWQ.cjs.map → checkbox-D3u8Wm9r.cjs.map} +1 -1
- package/dist/{checkbox-DPS1mWG-.js → checkbox-QDRsE8cp.js} +1 -1
- package/dist/{checkbox-DPS1mWG-.js.map → checkbox-QDRsE8cp.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-UoFbwmlG.cjs → chips-CMoQzop1.cjs} +1 -1
- package/dist/{chips-UoFbwmlG.cjs.map → chips-CMoQzop1.cjs.map} +1 -1
- package/dist/{chips-BnnXQSA-.js → chips-Dy9vx8JS.js} +4 -4
- package/dist/{chips-BnnXQSA-.js.map → chips-Dy9vx8JS.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/{code-highlight-CMilN0B8.cjs → code-highlight-Ddp0oZnm.cjs} +1 -1
- package/dist/{code-highlight-CMilN0B8.cjs.map → code-highlight-Ddp0oZnm.cjs.map} +1 -1
- package/dist/{code-highlight-kFUJ1Eet.js → code-highlight-DtE2-ObF.js} +1 -1
- package/dist/{code-highlight-kFUJ1Eet.js.map → code-highlight-DtE2-ObF.js.map} +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/connectivity.cjs +1 -1
- package/dist/connectivity.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{context-daN5G6HS.cjs.map → context-BpCETidA.cjs.map} +1 -1
- package/dist/{context-Bdu1xt0W.js.map → context-DJTJnSK4.js.map} +1 -1
- package/dist/date-range-B2NuihKA.cjs +131 -0
- package/dist/date-range-B2NuihKA.cjs.map +1 -0
- package/dist/{date-range-DOstCIg8.js → date-range-Boesjlic.js} +99 -113
- package/dist/date-range-Boesjlic.js.map +1 -0
- package/dist/{date-range-inline-4P7zqeVe.cjs → date-range-inline-BI6_4Ahl.cjs} +1 -1
- package/dist/{date-range-inline-4P7zqeVe.cjs.map → date-range-inline-BI6_4Ahl.cjs.map} +1 -1
- package/dist/{date-range-inline-BVycTWLb.js → date-range-inline-DBuND2pc.js} +1 -1
- package/dist/{date-range-inline-BVycTWLb.js.map → date-range-inline-DBuND2pc.js.map} +1 -1
- package/dist/date-range-inline.cjs +1 -1
- package/dist/date-range-inline.js +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +2 -2
- package/dist/{details-BJBbZOO6.cjs → details-BRs_z5-k.cjs} +1 -1
- package/dist/{details-BJBbZOO6.cjs.map → details-BRs_z5-k.cjs.map} +1 -1
- package/dist/{details-DPc5GxPa.js → details-BrGrUTGC.js} +2 -2
- package/dist/{details-DPc5GxPa.js.map → details-BrGrUTGC.js.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +2 -2
- package/dist/{divider-DPT3XnG5.cjs → divider-BOxQ2T9h.cjs} +1 -1
- package/dist/{divider-DPT3XnG5.cjs.map → divider-BOxQ2T9h.cjs.map} +1 -1
- package/dist/{divider-BvJsmSPH.js → divider-W3TiDasp.js} +1 -1
- package/dist/{divider-BvJsmSPH.js.map → divider-W3TiDasp.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{expand-CTqBWVXo.cjs → expand-CnccBF91.cjs} +1 -1
- package/dist/{expand-CTqBWVXo.cjs.map → expand-CnccBF91.cjs.map} +1 -1
- package/dist/{expand-BMzocdtj.js → expand-Pu8fZ0jZ.js} +2 -2
- package/dist/{expand-BMzocdtj.js.map → expand-Pu8fZ0jZ.js.map} +1 -1
- package/dist/expand.cjs +1 -1
- package/dist/expand.js +1 -1
- package/dist/{extra-h_cuxRII.cjs → extra-B8IPs6gG.cjs} +1 -1
- package/dist/{extra-h_cuxRII.cjs.map → extra-B8IPs6gG.cjs.map} +1 -1
- package/dist/{extra-BeHlUhzv.js → extra-DxEWs41z.js} +1 -1
- package/dist/{extra-BeHlUhzv.js.map → extra-DxEWs41z.js.map} +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{float-CwVBs11k.cjs → float-BRKa-P6Z.cjs} +1 -1
- package/dist/{float-CwVBs11k.cjs.map → float-BRKa-P6Z.cjs.map} +1 -1
- package/dist/{float-CTc1xxqH.js → float-WCVdp3um.js} +1 -1
- package/dist/{float-CTc1xxqH.js.map → float-WCVdp3um.js.map} +1 -1
- package/dist/float.cjs +1 -1
- package/dist/float.js +1 -1
- package/dist/{form-CSJp687X.cjs.map → form-B2qudx_q.cjs.map} +1 -1
- package/dist/{form-BtwOBMZ9.js.map → form-CI59gad4.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/{hashContent-1ARKIsx9.js.map → hashContent-a8uVr3xs.js.map} +1 -1
- package/dist/{hashContent-Bp5S6T4U.cjs.map → hashContent-ejkBgDnN.cjs.map} +1 -1
- package/dist/{icons-BbCVrcas.js → icons-C0ufCcdp.js} +2 -2
- package/dist/{icons-BbCVrcas.js.map → icons-C0ufCcdp.js.map} +1 -1
- package/dist/{icons-qEQW4pjM.cjs → icons-DXEbmg-O.cjs} +1 -1
- package/dist/{icons-qEQW4pjM.cjs.map → icons-DXEbmg-O.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/{iframe-D6HTruav.cjs → iframe-C6RVODkW.cjs} +1 -1
- package/dist/{iframe-D6HTruav.cjs.map → iframe-C6RVODkW.cjs.map} +1 -1
- package/dist/{iframe-BJfDIEJf.js → iframe-c9lGxw7x.js} +1 -1
- package/dist/{iframe-BJfDIEJf.js.map → iframe-c9lGxw7x.js.map} +1 -1
- package/dist/iframe.cjs +1 -1
- package/dist/iframe.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +72 -76
- package/dist/{input-U26axtcs.cjs → input-B4HM-9-H.cjs} +1 -1
- package/dist/{input-U26axtcs.cjs.map → input-B4HM-9-H.cjs.map} +1 -1
- package/dist/{input-LTK3cctF.js → input-Pmj_bH37.js} +1 -1
- package/dist/{input-LTK3cctF.js.map → input-Pmj_bH37.js.map} +1 -1
- package/dist/{input-chip-Ch-aCs3c.js → input-chip-BIGgd_7w.js} +1 -1
- package/dist/{input-chip-Ch-aCs3c.js.map → input-chip-BIGgd_7w.js.map} +1 -1
- package/dist/{input-chip-CADXt0X5.cjs → input-chip-BoDisY6c.cjs} +1 -1
- package/dist/{input-chip-CADXt0X5.cjs.map → input-chip-BoDisY6c.cjs.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/json.cjs +1 -1
- package/dist/json.js +2 -2
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.js +1 -1
- package/dist/{layout-C4xmnU4n.js → layout-CXPNsUIo.js} +1 -1
- package/dist/{layout-C4xmnU4n.js.map → layout-CXPNsUIo.js.map} +1 -1
- package/dist/{layout-Dmh6fxh0.cjs → layout-Zhe7wSZ_.cjs} +1 -1
- package/dist/{layout-Dmh6fxh0.cjs.map → layout-Zhe7wSZ_.cjs.map} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{lightbox-DbYUSfVl.cjs → lightbox-DK1vDKm3.cjs} +1 -1
- package/dist/{lightbox-DbYUSfVl.cjs.map → lightbox-DK1vDKm3.cjs.map} +1 -1
- package/dist/{lightbox-DqG2z3Cn.js → lightbox-K1eJTYXP.js} +2 -2
- package/dist/{lightbox-DqG2z3Cn.js.map → lightbox-K1eJTYXP.js.map} +1 -1
- package/dist/lightbox.cjs +1 -1
- package/dist/lightbox.js +1 -1
- package/dist/{list-CLX4sSAw.cjs → list-CEuVqAxN.cjs} +1 -1
- package/dist/{list-CLX4sSAw.cjs.map → list-CEuVqAxN.cjs.map} +1 -1
- package/dist/{list-D6-_E5ZD.js → list-Ds0Nv1y5.js} +1 -1
- package/dist/{list-D6-_E5ZD.js.map → list-Ds0Nv1y5.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{magnetic-BH0TsofV.cjs.map → magnetic-BJgB1dVi.cjs.map} +1 -1
- package/dist/{magnetic-BZGFxAWG.js.map → magnetic-YwCNvtbB.js.map} +1 -1
- package/dist/{mailbox-Ct6iYe-4.cjs → mailbox-CDWqbVvZ.cjs} +58 -58
- package/dist/mailbox-CDWqbVvZ.cjs.map +1 -0
- package/dist/{mailbox-DsPII8HR.js → mailbox-DD2How0H.js} +112 -101
- package/dist/mailbox-DD2How0H.js.map +1 -0
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/{map-Dhy3ta9v.js → map-1uwxxvBa.js} +1 -1
- package/dist/{map-Dhy3ta9v.js.map → map-1uwxxvBa.js.map} +1 -1
- package/dist/{map-WXeVkx2K.cjs → map-BrBSrIqg.cjs} +1 -1
- package/dist/{map-WXeVkx2K.cjs.map → map-BrBSrIqg.cjs.map} +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/menu-Bly30Nje.cjs +23 -0
- package/dist/menu-Bly30Nje.cjs.map +1 -0
- package/dist/menu-L8MK1ma5.js +62 -0
- package/dist/menu-L8MK1ma5.js.map +1 -0
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/mixins-B34UxxCe.js +627 -0
- package/dist/{mixins-CcIWET41.js.map → mixins-B34UxxCe.js.map} +1 -1
- package/dist/mixins-CAb0b03r.cjs +298 -0
- package/dist/{mixins-De3xfjrm.cjs.map → mixins-CAb0b03r.cjs.map} +1 -1
- package/dist/mixins.cjs +1 -1
- package/dist/mixins.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/navigation-rail.cjs +1 -1
- package/dist/navigation-rail.js +1 -1
- package/dist/{notification-D_PQjBSf.cjs → notification-7fSbk8hm.cjs} +1 -1
- package/dist/{notification-D_PQjBSf.cjs.map → notification-7fSbk8hm.cjs.map} +1 -1
- package/dist/{notification-CVLqQ8c_.js → notification-DB25M-qo.js} +2 -2
- package/dist/{notification-CVLqQ8c_.js.map → notification-DB25M-qo.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-rm4HebVs.js → option-DDHa25k5.js} +1 -1
- package/dist/{option-rm4HebVs.js.map → option-DDHa25k5.js.map} +1 -1
- package/dist/{option-DDU_goh1.cjs → option-HF9Xqbuq.cjs} +1 -1
- package/dist/{option-DDU_goh1.cjs.map → option-HF9Xqbuq.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{overlay-stack-CAQno0CK.js.map → overlay-stack-CCiTaf_C.js.map} +1 -1
- package/dist/{overlay-stack-BprhAE9a.cjs.map → overlay-stack-CFGiYf34.cjs.map} +1 -1
- package/dist/overlay.cjs +5 -53
- package/dist/overlay.cjs.map +1 -1
- package/dist/overlay.confirm-body-BDG94R0x.js +104 -0
- package/dist/overlay.confirm-body-BDG94R0x.js.map +1 -0
- package/dist/overlay.confirm-body-b4Nx_OVf.cjs +49 -0
- package/dist/overlay.confirm-body-b4Nx_OVf.cjs.map +1 -0
- package/dist/overlay.js +120 -360
- package/dist/overlay.js.map +1 -1
- package/dist/overlay.service-BUCuZa6V.js +146 -0
- package/dist/overlay.service-BUCuZa6V.js.map +1 -0
- package/dist/overlay.service-CRHZZY9F.cjs +1 -0
- package/dist/overlay.service-CRHZZY9F.cjs.map +1 -0
- package/dist/page.cjs +1 -1
- package/dist/page.js +4 -4
- package/dist/{payment-card-form-C0dHYZIv.js → payment-card-form-C4jb-OdM.js} +1 -1
- package/dist/{payment-card-form-C0dHYZIv.js.map → payment-card-form-C4jb-OdM.js.map} +1 -1
- package/dist/{payment-card-form-DNvmZxs4.cjs → payment-card-form-WEx4CscR.cjs} +1 -1
- package/dist/{payment-card-form-DNvmZxs4.cjs.map → payment-card-form-WEx4CscR.cjs.map} +1 -1
- package/dist/payment-card-form.cjs +1 -1
- package/dist/payment-card-form.js +1 -1
- package/dist/{progress-U3LQkpM2.cjs → progress-54R4QRgW.cjs} +1 -1
- package/dist/{progress-U3LQkpM2.cjs.map → progress-54R4QRgW.cjs.map} +1 -1
- package/dist/{progress-BRerM5Bn.js → progress-CqOyMM4i.js} +1 -1
- package/dist/{progress-BRerM5Bn.js.map → progress-CqOyMM4i.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/qr-scanner.cjs +1 -1
- package/dist/qr-scanner.js +1 -1
- package/dist/{radio-group-BZ2WoOXJ.js → radio-group-B4zbBIZF.js} +1 -1
- package/dist/{radio-group-BZ2WoOXJ.js.map → radio-group-B4zbBIZF.js.map} +1 -1
- package/dist/{radio-group-D7mm-yvJ.cjs → radio-group-BJqZpYVy.cjs} +1 -1
- package/dist/{radio-group-D7mm-yvJ.cjs.map → radio-group-BJqZpYVy.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range.cjs +1 -1
- package/dist/range.js +1 -1
- package/dist/{rxjs-utils-d-ivVN84.js.map → rxjs-utils-BXpvHN4-.js.map} +1 -1
- package/dist/{rxjs-utils-Csnks202.cjs.map → rxjs-utils-CaC-tdot.cjs.map} +1 -1
- package/dist/rxjs-utils.cjs +1 -1
- package/dist/rxjs-utils.js +1 -1
- package/dist/{scroll-qL-HkMdP.js → scroll-CYm6Krus.js} +1 -1
- package/dist/{scroll-qL-HkMdP.js.map → scroll-CYm6Krus.js.map} +1 -1
- package/dist/{scroll-DJTjNIT_.cjs → scroll-iSRovYYt.cjs} +1 -1
- package/dist/{scroll-DJTjNIT_.cjs.map → scroll-iSRovYYt.cjs.map} +1 -1
- package/dist/{select-CnPXUeSf.js → select-1WHseXP6.js} +2 -2
- package/dist/{select-CnPXUeSf.js.map → select-1WHseXP6.js.map} +1 -1
- package/dist/{select-BvA7v-gL.cjs → select-DiQHtQJN.cjs} +1 -1
- package/dist/{select-BvA7v-gL.cjs.map → select-DiQHtQJN.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/skills/INDEX.md +2 -2
- package/dist/skills/SKILL.md +13 -9
- package/dist/skills/schmancy/INDEX.md +2 -2
- package/dist/skills/schmancy/SKILL.md +13 -9
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{splash-screen-C8JCqX5L.js → splash-screen-BwvtKMdN.js} +1 -1
- package/dist/{splash-screen-C8JCqX5L.js.map → splash-screen-BwvtKMdN.js.map} +1 -1
- package/dist/{splash-screen-BDt4PInk.cjs → splash-screen-CJL8DGDe.cjs} +1 -1
- package/dist/{splash-screen-BDt4PInk.cjs.map → splash-screen-CJL8DGDe.cjs.map} +1 -1
- package/dist/splash-screen.cjs +1 -1
- package/dist/splash-screen.js +1 -1
- package/dist/{src-CpRNClhg.cjs → src-Bwr2NR0A.cjs} +13 -13
- package/dist/src-Bwr2NR0A.cjs.map +1 -0
- package/dist/{src-CqdnWGgr.js → src-UaZeROcW.js} +164 -162
- package/dist/src-UaZeROcW.js.map +1 -0
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-Du2Y4vXd.cjs → surface-DE5iuI8e.cjs} +1 -1
- package/dist/{surface-Du2Y4vXd.cjs.map → surface-DE5iuI8e.cjs.map} +1 -1
- package/dist/{surface-C8jQy8Ym.js → surface-DPUkQ3OL.js} +1 -1
- package/dist/{surface-C8jQy8Ym.js.map → surface-DPUkQ3OL.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-Cyahh9Q6.js → tabs-B2XEQPQl.js} +1 -1
- package/dist/{tabs-Cyahh9Q6.js.map → tabs-B2XEQPQl.js.map} +1 -1
- package/dist/{tabs-0RfeCa00.cjs → tabs-CsDQ72Qk.cjs} +1 -1
- package/dist/{tabs-0RfeCa00.cjs.map → tabs-CsDQ72Qk.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-CXCcTVnf.js → textarea-C_ps0lL-.js} +1 -1
- package/dist/{textarea-CXCcTVnf.js.map → textarea-C_ps0lL-.js.map} +1 -1
- package/dist/{textarea-jqRrLxmo.cjs → textarea-aeAP9cDG.cjs} +1 -1
- package/dist/{textarea-jqRrLxmo.cjs.map → textarea-aeAP9cDG.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/theme-DAYTVw13.cjs +181 -0
- package/dist/{theme-Hjz9sCN-.cjs.map → theme-DAYTVw13.cjs.map} +1 -1
- package/dist/{theme-2KZW2Rfs.js → theme-DAx1iRNr.js} +3 -4
- package/dist/{theme-2KZW2Rfs.js.map → theme-DAx1iRNr.js.map} +1 -1
- package/dist/{theme-button-9uF1eoHz.js → theme-button-BrHkzCtj.js} +1 -1
- package/dist/{theme-button-9uF1eoHz.js.map → theme-button-BrHkzCtj.js.map} +1 -1
- package/dist/{theme-button-C7QIbke1.cjs → theme-button-LsMKY_N_.cjs} +1 -1
- package/dist/{theme-button-C7QIbke1.cjs.map → theme-button-LsMKY_N_.cjs.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.interface-DnVNre4O.js.map → theme.interface-C_034TxG.js.map} +1 -1
- package/dist/{theme.interface-D9l33b-M.cjs.map → theme.interface-DESopuZS.cjs.map} +1 -1
- package/dist/theme.js +5 -6
- package/dist/theme.service-Cfk88qHK.cjs +1 -0
- package/dist/theme.service-Cfk88qHK.cjs.map +1 -0
- package/dist/{theme.service-CmbOGMA8.js → theme.service-DIUo1mBP.js} +13 -14
- package/dist/theme.service-DIUo1mBP.js.map +1 -0
- package/dist/timeline.cjs +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/dist/{utils-hp-DnFf5.js → utils-BzFQfaIr.js} +1 -1
- package/dist/{utils-hp-DnFf5.js.map → utils-BzFQfaIr.js.map} +1 -1
- package/dist/{utils-Cr-YO4Np.cjs → utils-oLBkMvor.cjs} +1 -1
- package/dist/{utils-Cr-YO4Np.cjs.map → utils-oLBkMvor.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/visually-hidden.cjs +1 -1
- package/dist/visually-hidden.js +1 -1
- package/dist/{window-DtUOWiAj.cjs → window-BJrKS6Zr.cjs} +1 -1
- package/dist/{window-DtUOWiAj.cjs.map → window-BJrKS6Zr.cjs.map} +1 -1
- package/dist/{window-C7yY9yp5.js → window-CyDuTN80.js} +3 -3
- package/dist/{window-C7yY9yp5.js.map → window-CyDuTN80.js.map} +1 -1
- package/dist/window.cjs +1 -1
- package/dist/window.js +1 -1
- package/package.json +1 -1
- package/skills/schmancy/INDEX.md +2 -2
- package/skills/schmancy/SKILL.md +13 -9
- package/src/content-drawer/drawer.ts +24 -7
- package/src/content-drawer/events.ts +6 -0
- package/src/content-drawer/sheet.ts +13 -12
- package/src/date-range/date-range-dialog.ts +4 -4
- package/src/date-range/date-range.ts +35 -53
- package/src/index.ts +0 -2
- package/src/mailbox/email-editor.ts +17 -18
- package/src/mailbox/email-template-picker.ts +19 -13
- package/src/menu/menu-item.ts +7 -2
- package/src/menu/menu.ts +24 -20
- package/types/src/content-drawer/drawer.d.ts +2 -0
- package/types/src/content-drawer/events.d.ts +6 -0
- package/types/src/content-drawer/sheet.d.ts +6 -5
- package/types/src/date-range/date-range.d.ts +1 -5
- package/types/src/index.d.ts +0 -2
- package/types/src/mailbox/email-template-picker.d.ts +7 -7
- package/types/src/menu/menu-item.d.ts +1 -0
- package/types/src/menu/menu.d.ts +9 -7
- package/dist/date-range-BIyrzTRZ.cjs +0 -131
- package/dist/date-range-BIyrzTRZ.cjs.map +0 -1
- package/dist/date-range-DOstCIg8.js.map +0 -1
- package/dist/dialog-service-DI9PPy4H.js +0 -193
- package/dist/dialog-service-DI9PPy4H.js.map +0 -1
- package/dist/dialog-service-DJd5L0f5.cjs +0 -1
- package/dist/dialog-service-DJd5L0f5.cjs.map +0 -1
- package/dist/dialog.cjs +0 -89
- package/dist/dialog.cjs.map +0 -1
- package/dist/dialog.js +0 -419
- package/dist/dialog.js.map +0 -1
- package/dist/mailbox-Ct6iYe-4.cjs.map +0 -1
- package/dist/mailbox-DsPII8HR.js.map +0 -1
- package/dist/menu-Bhd3EapX.js +0 -56
- package/dist/menu-Bhd3EapX.js.map +0 -1
- package/dist/menu-Cg2aaDjs.cjs +0 -23
- package/dist/menu-Cg2aaDjs.cjs.map +0 -1
- package/dist/mixins-CcIWET41.js +0 -627
- package/dist/mixins-De3xfjrm.cjs +0 -298
- package/dist/sheet-BRL07BB4.js +0 -170
- package/dist/sheet-BRL07BB4.js.map +0 -1
- package/dist/sheet-BYQJAHQn.cjs +0 -35
- package/dist/sheet-BYQJAHQn.cjs.map +0 -1
- package/dist/sheet.cjs +0 -1
- package/dist/sheet.js +0 -3
- package/dist/sheet.service-B25bsrYG.cjs +0 -1
- package/dist/sheet.service-B25bsrYG.cjs.map +0 -1
- package/dist/sheet.service-SPQ8oLCi.js +0 -86
- package/dist/sheet.service-SPQ8oLCi.js.map +0 -1
- package/dist/skills/dialog.md +0 -69
- package/dist/skills/schmancy/dialog.md +0 -69
- package/dist/skills/schmancy/sheet.md +0 -76
- package/dist/skills/sheet.md +0 -76
- package/dist/src-CpRNClhg.cjs.map +0 -1
- package/dist/src-CqdnWGgr.js.map +0 -1
- package/dist/theme-Hjz9sCN-.cjs +0 -181
- package/dist/theme.events-Cv7N4Toe.js +0 -2
- package/dist/theme.events-Cv7N4Toe.js.map +0 -1
- package/dist/theme.events-DM4H5F2d.cjs +0 -1
- package/dist/theme.events-DM4H5F2d.cjs.map +0 -1
- package/dist/theme.service-BrUbGoeQ.cjs +0 -1
- package/dist/theme.service-BrUbGoeQ.cjs.map +0 -1
- package/dist/theme.service-CmbOGMA8.js.map +0 -1
- package/skills/schmancy/dialog.md +0 -69
- package/skills/schmancy/sheet.md +0 -76
- package/src/dialog/dialog-base.mixin.ts +0 -576
- package/src/dialog/dialog-events.ts +0 -17
- package/src/dialog/dialog-service.ts +0 -494
- package/src/dialog/dialog.component.ts +0 -414
- package/src/dialog/index.ts +0 -3
- package/src/sheet/hook.ts +0 -40
- package/src/sheet/index.ts +0 -2
- package/src/sheet/sheet.service.ts +0 -245
- package/src/sheet/sheet.ts +0 -238
- package/types/src/dialog/dialog-base.mixin.d.ts +0 -30
- package/types/src/dialog/dialog-events.d.ts +0 -13
- package/types/src/dialog/dialog-service.d.ts +0 -91
- package/types/src/dialog/dialog.component.d.ts +0 -150
- package/types/src/dialog/index.d.ts +0 -3
- package/types/src/sheet/hook.d.ts +0 -5
- package/types/src/sheet/index.d.ts +0 -2
- package/types/src/sheet/sheet.d.ts +0 -29
- package/types/src/sheet/sheet.service.d.ts +0 -65
- /package/dist/{context-daN5G6HS.cjs → context-BpCETidA.cjs} +0 -0
- /package/dist/{context-Bdu1xt0W.js → context-DJTJnSK4.js} +0 -0
- /package/dist/{form-CSJp687X.cjs → form-B2qudx_q.cjs} +0 -0
- /package/dist/{form-BtwOBMZ9.js → form-CI59gad4.js} +0 -0
- /package/dist/{hashContent-1ARKIsx9.js → hashContent-a8uVr3xs.js} +0 -0
- /package/dist/{hashContent-Bp5S6T4U.cjs → hashContent-ejkBgDnN.cjs} +0 -0
- /package/dist/{magnetic-BH0TsofV.cjs → magnetic-BJgB1dVi.cjs} +0 -0
- /package/dist/{magnetic-BZGFxAWG.js → magnetic-YwCNvtbB.js} +0 -0
- /package/dist/{overlay-stack-CAQno0CK.js → overlay-stack-CCiTaf_C.js} +0 -0
- /package/dist/{overlay-stack-BprhAE9a.cjs → overlay-stack-CFGiYf34.cjs} +0 -0
- /package/dist/{rxjs-utils-d-ivVN84.js → rxjs-utils-BXpvHN4-.js} +0 -0
- /package/dist/{rxjs-utils-Csnks202.cjs → rxjs-utils-CaC-tdot.cjs} +0 -0
- /package/dist/{theme.interface-DnVNre4O.js → theme.interface-C_034TxG.js} +0 -0
- /package/dist/{theme.interface-D9l33b-M.cjs → theme.interface-DESopuZS.cjs} +0 -0
package/src/sheet/sheet.ts
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { SchmancyElement } from '@mixins/index'
|
|
2
|
-
import { area } from '../area'
|
|
3
|
-
import { html, css } from 'lit'
|
|
4
|
-
import { customElement, property, query } from 'lit/decorators.js'
|
|
5
|
-
import { fromEvent, merge, takeUntil, tap, filter } from 'rxjs'
|
|
6
|
-
import { on } from './hook'
|
|
7
|
-
import { SchmancySheetPosition, sheet } from './sheet.service'
|
|
8
|
-
import { BLACKBIRD_EASING, DURATION_ENTER, DURATION_EXIT, DURATION_BACKDROP, EASE_OUT, EASE_IN } from '../utils/animation'
|
|
9
|
-
|
|
10
|
-
@customElement('schmancy-sheet')
|
|
11
|
-
export default class SchmancySheet extends SchmancyElement {
|
|
12
|
-
static styles = [css`
|
|
13
|
-
:host {
|
|
14
|
-
position: fixed;
|
|
15
|
-
inset: 0;
|
|
16
|
-
z-index: var(--schmancy-overlay-z, 999);
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
:host([open]) {
|
|
20
|
-
display: block;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Luminous edge glow on sheet panel */
|
|
24
|
-
.content {
|
|
25
|
-
box-shadow: -8px 0 40px -8px color-mix(in srgb, var(--schmancy-sys-color-primary-default) 15%, transparent);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host([position='bottom']) .content {
|
|
29
|
-
box-shadow: 0 -8px 40px -8px color-mix(in srgb, var(--schmancy-sys-color-primary-default) 15%, transparent);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@media (prefers-reduced-motion: reduce) {
|
|
33
|
-
.content { box-shadow: var(--schmancy-sys-elevation-3); }
|
|
34
|
-
}
|
|
35
|
-
`]
|
|
36
|
-
|
|
37
|
-
// uid is inherited from $LitElement mixin - auto-generated or set via attribute
|
|
38
|
-
@property({ type: Boolean, reflect: true }) open = false
|
|
39
|
-
@property({ type: String, reflect: true }) position: SchmancySheetPosition = SchmancySheetPosition.Side
|
|
40
|
-
@property({ type: Boolean, reflect: true }) persist = false
|
|
41
|
-
@property({ type: Boolean, reflect: true }) lock = false
|
|
42
|
-
@property({ type: Boolean, reflect: true }) handleHistory = true
|
|
43
|
-
|
|
44
|
-
private lastFocusedElement: HTMLElement | null = null
|
|
45
|
-
@query('.overlay') private overlayEl!: HTMLDivElement
|
|
46
|
-
@query('.content') private contentEl!: HTMLDivElement
|
|
47
|
-
|
|
48
|
-
@on('open')
|
|
49
|
-
onOpenChange(_oldValue: boolean, newValue: boolean) {
|
|
50
|
-
if (newValue) {
|
|
51
|
-
this.lastFocusedElement = document.activeElement as HTMLElement
|
|
52
|
-
this.setBackgroundInert(true)
|
|
53
|
-
this.animateIn()
|
|
54
|
-
this.focus()
|
|
55
|
-
} else {
|
|
56
|
-
this.animateOut()
|
|
57
|
-
this.setBackgroundInert(false)
|
|
58
|
-
this.lastFocusedElement?.focus()
|
|
59
|
-
this.lastFocusedElement = null
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private animateIn() {
|
|
64
|
-
if (!this.overlayEl || !this.contentEl) return
|
|
65
|
-
|
|
66
|
-
this.overlayEl.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
67
|
-
duration: DURATION_BACKDROP,
|
|
68
|
-
easing: EASE_OUT,
|
|
69
|
-
fill: 'forwards',
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
const animation =
|
|
73
|
-
this.position === SchmancySheetPosition.Side
|
|
74
|
-
? [
|
|
75
|
-
{ opacity: 0, transform: 'translateX(100%) scale(0.95)' },
|
|
76
|
-
{ opacity: 1, transform: 'translateX(0) scale(1)' },
|
|
77
|
-
]
|
|
78
|
-
: [
|
|
79
|
-
{ opacity: 0, transform: 'translateY(100%) scale(0.95)' },
|
|
80
|
-
{ opacity: 1, transform: 'translateY(0) scale(1)' },
|
|
81
|
-
]
|
|
82
|
-
|
|
83
|
-
this.contentEl.animate(animation, {
|
|
84
|
-
duration: DURATION_ENTER,
|
|
85
|
-
easing: BLACKBIRD_EASING,
|
|
86
|
-
fill: 'forwards',
|
|
87
|
-
})
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private animateOut() {
|
|
91
|
-
if (!this.overlayEl || !this.contentEl) return
|
|
92
|
-
|
|
93
|
-
this.overlayEl.animate([{ opacity: 1 }, { opacity: 0 }], {
|
|
94
|
-
duration: DURATION_EXIT,
|
|
95
|
-
easing: EASE_OUT,
|
|
96
|
-
fill: 'forwards',
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
const animation =
|
|
100
|
-
this.position === SchmancySheetPosition.Side
|
|
101
|
-
? [
|
|
102
|
-
{ opacity: 1, transform: 'translateX(0) scale(1)' },
|
|
103
|
-
{ opacity: 0, transform: 'translateX(100%) scale(0.98)' },
|
|
104
|
-
]
|
|
105
|
-
: [
|
|
106
|
-
{ opacity: 1, transform: 'translateY(0) scale(1)' },
|
|
107
|
-
{ opacity: 0, transform: 'translateY(100%) scale(0.98)' },
|
|
108
|
-
]
|
|
109
|
-
|
|
110
|
-
this.contentEl.animate(animation, {
|
|
111
|
-
duration: DURATION_EXIT,
|
|
112
|
-
easing: EASE_IN,
|
|
113
|
-
fill: 'forwards',
|
|
114
|
-
})
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
connectedCallback() {
|
|
118
|
-
super.connectedCallback()
|
|
119
|
-
this.setupEventListeners()
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
disconnectedCallback() {
|
|
123
|
-
super.disconnectedCallback()
|
|
124
|
-
this.disconnecting.next(true)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
private setupEventListeners() {
|
|
128
|
-
// Handle browser back button
|
|
129
|
-
const popState$ = fromEvent<PopStateEvent>(window, 'popstate').pipe(
|
|
130
|
-
filter(() => this.handleHistory),
|
|
131
|
-
tap(e => {
|
|
132
|
-
e.preventDefault()
|
|
133
|
-
this.closeSheet()
|
|
134
|
-
}),
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
// Handle ESC key
|
|
138
|
-
const keyUp$ = fromEvent<KeyboardEvent>(this, 'keydown').pipe(
|
|
139
|
-
tap(event => {
|
|
140
|
-
if (event.key === 'Escape' && !this.lock && this.open) {
|
|
141
|
-
event.preventDefault()
|
|
142
|
-
event.stopPropagation()
|
|
143
|
-
sheet.dismiss(this.uid)
|
|
144
|
-
}
|
|
145
|
-
}),
|
|
146
|
-
)
|
|
147
|
-
|
|
148
|
-
// Handle render events from sheet service
|
|
149
|
-
const render$ = fromEvent<CustomEvent>(window, 'schmancy-sheet-render').pipe(
|
|
150
|
-
filter(e => e.detail.uid === this.uid),
|
|
151
|
-
tap(e => {
|
|
152
|
-
area.push({
|
|
153
|
-
area: this.uid,
|
|
154
|
-
component: e.detail.component,
|
|
155
|
-
props: e.detail.props,
|
|
156
|
-
historyStrategy: 'silent',
|
|
157
|
-
})
|
|
158
|
-
}),
|
|
159
|
-
)
|
|
160
|
-
|
|
161
|
-
// Handle dismiss events from sheet service
|
|
162
|
-
const dismiss$ = fromEvent<CustomEvent>(window, 'schmancy-sheet-dismiss').pipe(
|
|
163
|
-
filter(e => e.detail.uid === this.uid),
|
|
164
|
-
tap(() => {
|
|
165
|
-
this.closeSheet()
|
|
166
|
-
}),
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
merge(popState$, keyUp$, render$, dismiss$).pipe(takeUntil(this.disconnecting)).subscribe()
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
private setBackgroundInert(inert: boolean) {
|
|
173
|
-
const parent = this.parentElement
|
|
174
|
-
if (!parent) return
|
|
175
|
-
|
|
176
|
-
Array.from(parent.children).forEach(child => {
|
|
177
|
-
if (child !== this && child instanceof HTMLElement) {
|
|
178
|
-
child.toggleAttribute('inert', inert)
|
|
179
|
-
}
|
|
180
|
-
})
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
closeSheet() {
|
|
184
|
-
this.open = false
|
|
185
|
-
this.dispatchEvent(new CustomEvent('close'))
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
override focus() {
|
|
189
|
-
// delegatesFocus in shadowRootOptions handles automatic focus
|
|
190
|
-
// Just focus first element with autofocus attribute if present
|
|
191
|
-
const element = this.querySelector('[autofocus]')
|
|
192
|
-
if (element instanceof HTMLElement) {
|
|
193
|
-
element.focus()
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
private handleOverlayClick = (e: Event) => {
|
|
198
|
-
e.stopPropagation()
|
|
199
|
-
if (!this.lock) {
|
|
200
|
-
sheet.dismiss(this.uid)
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
render() {
|
|
205
|
-
const sheetClasses = `absolute inset-0 flex h-full`
|
|
206
|
-
|
|
207
|
-
const overlayClasses = `overlay absolute inset-0 bg-surface-container/10 backdrop-blur-lg backdrop-saturate-150 ${this.lock ? '' : 'cursor-pointer'}`
|
|
208
|
-
|
|
209
|
-
const contentClasses =
|
|
210
|
-
this.position === SchmancySheetPosition.Side
|
|
211
|
-
? 'content h-full min-w-[320px] max-w-[90vw] w-fit ml-auto z-10'
|
|
212
|
-
: 'content w-full mt-auto rounded-t-2xl max-h-[90vh] z-10'
|
|
213
|
-
|
|
214
|
-
const surfaceClasses =
|
|
215
|
-
this.position === SchmancySheetPosition.Side
|
|
216
|
-
? 'h-full overflow-auto'
|
|
217
|
-
: 'max-h-[90vh] overflow-auto'
|
|
218
|
-
|
|
219
|
-
return html`
|
|
220
|
-
<div class=${sheetClasses} role="dialog" aria-hidden=${!this.open} aria-modal=${this.open} tabindex="0">
|
|
221
|
-
<div class=${overlayClasses} @click=${this.handleOverlayClick}></div>
|
|
222
|
-
<div class=${contentClasses}>
|
|
223
|
-
<schmancy-surface rounded="left" fill="all" id="body" class=${surfaceClasses} type="solid">
|
|
224
|
-
<schmancy-area class="size-full overflow-auto" name=${this.uid}>
|
|
225
|
-
<slot></slot>
|
|
226
|
-
</schmancy-area>
|
|
227
|
-
</schmancy-surface>
|
|
228
|
-
</div>
|
|
229
|
-
</div>
|
|
230
|
-
`
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
declare global {
|
|
235
|
-
interface HTMLElementTagNameMap {
|
|
236
|
-
'schmancy-sheet': SchmancySheet
|
|
237
|
-
}
|
|
238
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import type { Constructor } from '../../mixins/constructor';
|
|
3
|
-
import type { IBaseMixin } from '../../mixins/baseElement';
|
|
4
|
-
export interface DialogPosition {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
}
|
|
8
|
-
export interface VirtualReference {
|
|
9
|
-
getBoundingClientRect: () => DOMRect;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Interface for the DialogBase mixin methods
|
|
13
|
-
*/
|
|
14
|
-
export interface IDialogBaseMixin {
|
|
15
|
-
position: DialogPosition;
|
|
16
|
-
isMobile: boolean;
|
|
17
|
-
dragOffset: number;
|
|
18
|
-
show(positionOrEvent?: DialogPosition | MouseEvent | TouchEvent): Promise<boolean>;
|
|
19
|
-
hide(result?: boolean): Promise<void>;
|
|
20
|
-
isCentered(): boolean;
|
|
21
|
-
isAnimating(): boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Dialog mixin with smart positioning using Floating UI.
|
|
25
|
-
*
|
|
26
|
-
* On mobile (< 640px), automatically switches to bottom sheet mode
|
|
27
|
-
* with swipe-to-dismiss gesture. On tablet/desktop, if content exceeds
|
|
28
|
-
* a viewport-dependent threshold, also opens as bottom sheet.
|
|
29
|
-
*/
|
|
30
|
-
export declare const DialogBase: <T extends Constructor<LitElement & IBaseMixin>>(superClass: T) => Constructor<IDialogBaseMixin> & T;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const DialogWhereAreYouRicky = "are-you-there-dialog";
|
|
2
|
-
export declare const DialogHereMorty = "yes-dialog-here";
|
|
3
|
-
export interface DialogWhereAreYouRickyEvent extends CustomEvent {
|
|
4
|
-
detail: {
|
|
5
|
-
uid: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export interface DialogHereMortyEvent extends CustomEvent {
|
|
9
|
-
detail: {
|
|
10
|
-
dialog: any;
|
|
11
|
-
theme?: any;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* Dialog service options interface
|
|
4
|
-
*/
|
|
5
|
-
export interface DialogOptions {
|
|
6
|
-
title?: string;
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
message?: string;
|
|
9
|
-
confirmText?: string;
|
|
10
|
-
cancelText?: string;
|
|
11
|
-
variant?: 'default' | 'danger';
|
|
12
|
-
position?: {
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
} | MouseEvent | TouchEvent;
|
|
16
|
-
content?: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult);
|
|
17
|
-
onConfirm?: () => void;
|
|
18
|
-
onCancel?: () => void;
|
|
19
|
-
hideActions?: boolean;
|
|
20
|
-
targetContainer?: HTMLElement;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Prompt dialog options
|
|
24
|
-
*/
|
|
25
|
-
export interface PromptOptions {
|
|
26
|
-
title?: string;
|
|
27
|
-
message?: string;
|
|
28
|
-
label?: string;
|
|
29
|
-
placeholder?: string;
|
|
30
|
-
defaultValue?: string;
|
|
31
|
-
inputType?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
|
|
32
|
-
confirmText?: string;
|
|
33
|
-
cancelText?: string;
|
|
34
|
-
position?: {
|
|
35
|
-
x: number;
|
|
36
|
-
y: number;
|
|
37
|
-
} | MouseEvent | TouchEvent;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Dialog service for centralized dialog management.
|
|
41
|
-
* Uses a single unified SchmancyDialog component for all dialog types.
|
|
42
|
-
*/
|
|
43
|
-
export declare class DialogService {
|
|
44
|
-
private static instance;
|
|
45
|
-
private static DEFAULT_OPTIONS;
|
|
46
|
-
private activeDialogs;
|
|
47
|
-
private dialogSubject;
|
|
48
|
-
private dismissSubject;
|
|
49
|
-
private lastClickPosition;
|
|
50
|
-
private clickTrackingInitialized;
|
|
51
|
-
private constructor();
|
|
52
|
-
private setupClickPositionTracking;
|
|
53
|
-
static getInstance(): DialogService;
|
|
54
|
-
private setupDialogOpeningLogic;
|
|
55
|
-
private setupDialogDismissLogic;
|
|
56
|
-
confirm(options: DialogOptions): Promise<boolean>;
|
|
57
|
-
component(content: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult), options?: Omit<DialogOptions, 'content' | 'message'>): Promise<boolean>;
|
|
58
|
-
dismiss(): boolean;
|
|
59
|
-
close(): boolean;
|
|
60
|
-
ask(message: string, event?: MouseEvent | TouchEvent): Promise<boolean>;
|
|
61
|
-
danger(options: Omit<DialogOptions, 'variant'>): Promise<boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* Shows a prompt dialog with an input field.
|
|
64
|
-
* Returns the input value if confirmed, null if cancelled.
|
|
65
|
-
*/
|
|
66
|
-
prompt(options: PromptOptions): Promise<string | null>;
|
|
67
|
-
private getDefaultPosition;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Global dialog utility. Imperative modal API — open any element as a dialog,
|
|
71
|
-
* or use the built-in `confirm` / `ask` / `danger` prompts. Returns Promises
|
|
72
|
-
* that resolve when the user picks an action.
|
|
73
|
-
*
|
|
74
|
-
* @service
|
|
75
|
-
* @summary Imperative modal dialogs and built-in confirm/ask/danger prompts.
|
|
76
|
-
* @method confirm(options: DialogOptions) - Built-in confirm prompt. Returns Promise<boolean>.
|
|
77
|
-
* @method ask(message, event?) - One-line yes/no prompt anchored to the triggering event.
|
|
78
|
-
* @method danger(options) - Destructive-action confirm styled with the error palette.
|
|
79
|
-
* @method component(element, options?) - Open any element as a modal.
|
|
80
|
-
* @method dismiss(id?) - Dismiss a dialog by id, or the topmost dialog.
|
|
81
|
-
*/
|
|
82
|
-
export declare const $dialog: {
|
|
83
|
-
confirm: (options: DialogOptions) => Promise<boolean>;
|
|
84
|
-
ask: (message: string, event?: MouseEvent | TouchEvent) => Promise<boolean>;
|
|
85
|
-
danger: (options: Omit<DialogOptions, "variant">) => Promise<boolean>;
|
|
86
|
-
prompt: (options: PromptOptions) => Promise<string | null>;
|
|
87
|
-
component: (content: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult), options?: Omit<DialogOptions, "content" | "message">) => Promise<boolean>;
|
|
88
|
-
dismiss: () => boolean;
|
|
89
|
-
close: () => boolean;
|
|
90
|
-
};
|
|
91
|
-
export default DialogService;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
declare const SchmancyDialog_base: import("@mixins/index").Constructor<import("./dialog-base.mixin").IDialogBaseMixin> & CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
|
|
2
|
-
/**
|
|
3
|
-
* Unified dialog component that handles both content-only and confirm modes.
|
|
4
|
-
*
|
|
5
|
-
* @element schmancy-dialog
|
|
6
|
-
* @slot default - Content slot for dialog body (used in content mode)
|
|
7
|
-
* @slot content - Named slot for custom content in confirm mode
|
|
8
|
-
*
|
|
9
|
-
* @example Content mode (no buttons):
|
|
10
|
-
* ```html
|
|
11
|
-
* <schmancy-dialog>
|
|
12
|
-
* <my-custom-content></my-custom-content>
|
|
13
|
-
* </schmancy-dialog>
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @example Confirm mode (with buttons):
|
|
17
|
-
* ```html
|
|
18
|
-
* <schmancy-dialog
|
|
19
|
-
* title="Confirm Action"
|
|
20
|
-
* message="Are you sure?"
|
|
21
|
-
* confirm-text="Yes"
|
|
22
|
-
* cancel-text="No"
|
|
23
|
-
* ></schmancy-dialog>
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare class SchmancyDialog extends SchmancyDialog_base {
|
|
27
|
-
/**
|
|
28
|
-
* Unique identifier for the dialog instance
|
|
29
|
-
*/
|
|
30
|
-
uid: string;
|
|
31
|
-
/**
|
|
32
|
-
* Dialog title (enables confirm mode when set)
|
|
33
|
-
*/
|
|
34
|
-
title: string | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Dialog subtitle
|
|
37
|
-
*/
|
|
38
|
-
subtitle: string | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Dialog message
|
|
41
|
-
*/
|
|
42
|
-
message: string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Text for confirm button (enables confirm mode when set with cancelText)
|
|
45
|
-
*/
|
|
46
|
-
confirmText: string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Text for cancel button
|
|
49
|
-
*/
|
|
50
|
-
cancelText: string | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Dialog variant (affects button colors in confirm mode)
|
|
53
|
-
*/
|
|
54
|
-
variant: 'default' | 'danger';
|
|
55
|
-
/**
|
|
56
|
-
* Whether to hide action buttons (force content mode)
|
|
57
|
-
*/
|
|
58
|
-
hideActions: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Slotted children in the named "content" slot (confirm mode custom content)
|
|
61
|
-
*/
|
|
62
|
-
private _contentSlotElements;
|
|
63
|
-
/**
|
|
64
|
-
* Ref to the confirm mode wrapper div
|
|
65
|
-
*/
|
|
66
|
-
private _confirmDialogRef;
|
|
67
|
-
/**
|
|
68
|
-
* Ref to the content mode section element
|
|
69
|
-
*/
|
|
70
|
-
private _contentDialogRef;
|
|
71
|
-
/**
|
|
72
|
-
* Ref to the backdrop element for animations
|
|
73
|
-
*/
|
|
74
|
-
private _backdropRef;
|
|
75
|
-
/**
|
|
76
|
-
* Ref to the drag handle element for swipe gestures
|
|
77
|
-
*/
|
|
78
|
-
private _dragHandleRef;
|
|
79
|
-
/**
|
|
80
|
-
* Stable per-instance id used for ARIA labelledby/describedby wiring
|
|
81
|
-
*/
|
|
82
|
-
private readonly _a11yId;
|
|
83
|
-
private get _titleId();
|
|
84
|
-
private get _descId();
|
|
85
|
-
/**
|
|
86
|
-
* Return the dialog element for positioning/size measurement.
|
|
87
|
-
* In content mode, returns the first slotted child (the actual component).
|
|
88
|
-
* In confirm mode, returns the wrapper div.
|
|
89
|
-
*/
|
|
90
|
-
protected getDialogElement(): HTMLElement | null;
|
|
91
|
-
/**
|
|
92
|
-
* Return the backdrop element for animations
|
|
93
|
-
*/
|
|
94
|
-
protected getBackdropElement(): HTMLElement | null;
|
|
95
|
-
/**
|
|
96
|
-
* Return the drag handle element for swipe gestures
|
|
97
|
-
*/
|
|
98
|
-
protected getDragHandleElement(): HTMLElement | null;
|
|
99
|
-
/**
|
|
100
|
-
* Check if dialog is in confirm mode (has buttons)
|
|
101
|
-
*/
|
|
102
|
-
private get isConfirmMode();
|
|
103
|
-
/**
|
|
104
|
-
* Handle component connection to DOM
|
|
105
|
-
*/
|
|
106
|
-
connectedCallback(): void;
|
|
107
|
-
/**
|
|
108
|
-
* Announce this dialog's presence to the service
|
|
109
|
-
*/
|
|
110
|
-
private announcePresence;
|
|
111
|
-
/**
|
|
112
|
-
* Handle confirm action
|
|
113
|
-
*/
|
|
114
|
-
private handleConfirm;
|
|
115
|
-
/**
|
|
116
|
-
* Handle cancel/close action
|
|
117
|
-
*/
|
|
118
|
-
private handleClose;
|
|
119
|
-
/**
|
|
120
|
-
* Render drag handle for mobile bottom sheet
|
|
121
|
-
*/
|
|
122
|
-
private renderDragHandle;
|
|
123
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
124
|
-
/**
|
|
125
|
-
* Static helper for confirm dialogs
|
|
126
|
-
*/
|
|
127
|
-
static confirm(options: {
|
|
128
|
-
title?: string;
|
|
129
|
-
subtitle?: string;
|
|
130
|
-
message?: string;
|
|
131
|
-
confirmText?: string;
|
|
132
|
-
cancelText?: string;
|
|
133
|
-
variant?: 'default' | 'danger';
|
|
134
|
-
position?: {
|
|
135
|
-
x: number;
|
|
136
|
-
y: number;
|
|
137
|
-
} | MouseEvent | TouchEvent;
|
|
138
|
-
width?: string;
|
|
139
|
-
}): Promise<boolean>;
|
|
140
|
-
/**
|
|
141
|
-
* Simple shorthand - just pass message and optionally an event
|
|
142
|
-
*/
|
|
143
|
-
static ask(message: string, event?: MouseEvent | TouchEvent): Promise<boolean>;
|
|
144
|
-
}
|
|
145
|
-
export { SchmancyDialog as ConfirmDialog };
|
|
146
|
-
declare global {
|
|
147
|
-
interface HTMLElementTagNameMap {
|
|
148
|
-
'schmancy-dialog': SchmancyDialog;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SchmancyElement } from '@mixins/index';
|
|
2
|
-
import { SchmancySheetPosition } from './sheet.service';
|
|
3
|
-
export default class SchmancySheet extends SchmancyElement {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
open: boolean;
|
|
6
|
-
position: SchmancySheetPosition;
|
|
7
|
-
persist: boolean;
|
|
8
|
-
lock: boolean;
|
|
9
|
-
handleHistory: boolean;
|
|
10
|
-
private lastFocusedElement;
|
|
11
|
-
private overlayEl;
|
|
12
|
-
private contentEl;
|
|
13
|
-
onOpenChange(_oldValue: boolean, newValue: boolean): void;
|
|
14
|
-
private animateIn;
|
|
15
|
-
private animateOut;
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
disconnectedCallback(): void;
|
|
18
|
-
private setupEventListeners;
|
|
19
|
-
private setBackgroundInert;
|
|
20
|
-
closeSheet(): void;
|
|
21
|
-
focus(): void;
|
|
22
|
-
private handleOverlayClick;
|
|
23
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
24
|
-
}
|
|
25
|
-
declare global {
|
|
26
|
-
interface HTMLElementTagNameMap {
|
|
27
|
-
'schmancy-sheet': SchmancySheet;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import { ComponentType } from '../area/router.types';
|
|
3
|
-
export declare enum SchmancySheetPosition {
|
|
4
|
-
Side = "side",
|
|
5
|
-
Bottom = "bottom"
|
|
6
|
-
}
|
|
7
|
-
export type SheetConfig = {
|
|
8
|
-
component: ComponentType;
|
|
9
|
-
uid?: string;
|
|
10
|
-
position?: SchmancySheetPosition;
|
|
11
|
-
persist?: boolean;
|
|
12
|
-
close?: () => void;
|
|
13
|
-
lock?: boolean;
|
|
14
|
-
onBeforeOpen?: (component: HTMLElement) => void;
|
|
15
|
-
onAfterOpen?: (component: HTMLElement) => void;
|
|
16
|
-
props?: Record<string, unknown>;
|
|
17
|
-
};
|
|
18
|
-
type BottomSheeetTarget = SheetConfig;
|
|
19
|
-
declare class BottomSheetService {
|
|
20
|
-
bottomSheet: Subject<SheetConfig>;
|
|
21
|
-
private activeSheets;
|
|
22
|
-
private popStateListenerActive;
|
|
23
|
-
constructor();
|
|
24
|
-
/**
|
|
25
|
-
* Sets up the main sheet opening logic
|
|
26
|
-
*/
|
|
27
|
-
private setupSheetOpeningLogic;
|
|
28
|
-
/**
|
|
29
|
-
* Sets up the popstate listener to handle browser back button
|
|
30
|
-
*/
|
|
31
|
-
private setupPopStateListener;
|
|
32
|
-
/**
|
|
33
|
-
* Dismiss a sheet by uid, or dismiss the most recently opened sheet if no uid provided
|
|
34
|
-
*/
|
|
35
|
-
dismiss(uid?: string): void;
|
|
36
|
-
/**
|
|
37
|
-
* Open a sheet with the given target configuration
|
|
38
|
-
* @deprecated Use `push` instead for consistency with area router API
|
|
39
|
-
*/
|
|
40
|
-
open(target: BottomSheeetTarget): void;
|
|
41
|
-
/**
|
|
42
|
-
* Push a component to the sheet (recommended method)
|
|
43
|
-
* Follows the same API pattern as area.push for consistency
|
|
44
|
-
*/
|
|
45
|
-
push(target: BottomSheeetTarget): void;
|
|
46
|
-
/**
|
|
47
|
-
* Check if a sheet is currently open by uid
|
|
48
|
-
*/
|
|
49
|
-
isOpen(uid: string): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Close all open sheets
|
|
52
|
-
*/
|
|
53
|
-
closeAll(): void;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Bottom / side sheet service. Mounts any element as a sheet with a chosen
|
|
57
|
-
* position (see `SchmancySheetPosition` enum).
|
|
58
|
-
*
|
|
59
|
-
* @service
|
|
60
|
-
* @summary Imperative bottom / side sheet surface.
|
|
61
|
-
* @method open({ component, position? }) - Mount an element as a sheet.
|
|
62
|
-
* @method dismiss(id?) - Dismiss a sheet by id, or the topmost.
|
|
63
|
-
*/
|
|
64
|
-
export declare const sheet: BottomSheetService;
|
|
65
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|