@mhmo91/schmancy 0.3.2 → 0.3.6
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/ai/boat.md +6 -6
- package/ai/index.md +1 -1
- package/ai/layout.md +161 -140
- package/dist/ai/boat.md +6 -6
- package/dist/ai/index.md +1 -1
- package/dist/ai/layout.md +161 -140
- package/dist/{animated-text-DuL0BVFF.cjs → animated-text-CvOxKhXc.cjs} +2 -2
- package/dist/{animated-text-DuL0BVFF.cjs.map → animated-text-CvOxKhXc.cjs.map} +1 -1
- package/dist/{animated-text-B2RjyIK5.js → animated-text-DzY-xfTP.js} +3 -3
- package/dist/{animated-text-B2RjyIK5.js.map → animated-text-DzY-xfTP.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-DYh2KKnh.cjs → area.component-DEOob0ox.cjs} +2 -2
- package/dist/{area.component-DYh2KKnh.cjs.map → area.component-DEOob0ox.cjs.map} +1 -1
- package/dist/{area.component-C4lraBSz.js → area.component-X7coBLB2.js} +3 -3
- package/dist/{area.component-C4lraBSz.js.map → area.component-X7coBLB2.js.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-C2MgBZdi.cjs → autocomplete-DqbWESS2.cjs} +2 -2
- package/dist/{autocomplete-C2MgBZdi.cjs.map → autocomplete-DqbWESS2.cjs.map} +1 -1
- package/dist/{autocomplete-BXf34fA-.js → autocomplete-KvR4MRDs.js} +3 -3
- package/dist/{autocomplete-BXf34fA-.js.map → autocomplete-KvR4MRDs.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-DVN44OzV.cjs → avatar-BvqaPLuL.cjs} +2 -2
- package/dist/{avatar-DVN44OzV.cjs.map → avatar-BvqaPLuL.cjs.map} +1 -1
- package/dist/{avatar-DupGPy32.js → avatar-Dy63jAZP.js} +48 -47
- package/dist/{avatar-DupGPy32.js.map → avatar-Dy63jAZP.js.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/boat-CL-jiVBO.js +99 -0
- package/dist/boat-CL-jiVBO.js.map +1 -0
- package/dist/boat-DpwpvrwB.cjs +70 -0
- package/dist/boat-DpwpvrwB.cjs.map +1 -0
- package/dist/boat.cjs +1 -1
- package/dist/boat.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-CZUwhaUm.js → checkbox-BjDdxFyz.js} +6 -6
- package/dist/{checkbox-CZUwhaUm.js.map → checkbox-BjDdxFyz.js.map} +1 -1
- package/dist/{checkbox-BSndX5zU.cjs → checkbox-DFSfKDe7.cjs} +2 -2
- package/dist/{checkbox-BSndX5zU.cjs.map → checkbox-DFSfKDe7.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-Cy-Uf0By.js → chips-DdDQGtnw.js} +9 -9
- package/dist/{chips-Cy-Uf0By.js.map → chips-DdDQGtnw.js.map} +1 -1
- package/dist/{chips-Do9LFtJA.cjs → chips-SlEVDtLL.cjs} +2 -2
- package/dist/{chips-Do9LFtJA.cjs.map → chips-SlEVDtLL.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/{circular-progress-DS6pw54i.cjs → circular-progress-D0Ei_TVO.cjs} +2 -2
- package/dist/{circular-progress-DS6pw54i.cjs.map → circular-progress-D0Ei_TVO.cjs.map} +1 -1
- package/dist/{circular-progress-D5vVDl4d.js → circular-progress-hBD2CBnQ.js} +3 -3
- package/dist/{circular-progress-D5vVDl4d.js.map → circular-progress-hBD2CBnQ.js.map} +1 -1
- package/dist/circular-progress.cjs +1 -1
- package/dist/circular-progress.js +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-CXO3vsRi.cjs → code-preview-CHUDQgBs.cjs} +2 -2
- package/dist/{code-preview-CXO3vsRi.cjs.map → code-preview-CHUDQgBs.cjs.map} +1 -1
- package/dist/{code-preview-AQ1T_x11.js → code-preview-rZY7AeQl.js} +2 -2
- package/dist/{code-preview-AQ1T_x11.js.map → code-preview-rZY7AeQl.js.map} +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-DYdBqzUs.js +638 -0
- package/dist/date-range-DYdBqzUs.js.map +1 -0
- package/dist/date-range-vfh_MQQ8.cjs +140 -0
- package/dist/date-range-vfh_MQQ8.cjs.map +1 -0
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +3 -2
- package/dist/{delay-BjYDvkud.js → delay-D0iuwCUK.js} +2 -2
- package/dist/{delay-BjYDvkud.js.map → delay-D0iuwCUK.js.map} +1 -1
- package/dist/{delay-BV4QWYDw.cjs → delay-DSlalih2.cjs} +2 -2
- package/dist/{delay-BV4QWYDw.cjs.map → delay-DSlalih2.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/dialog-content-Bc8Dem2U.js +282 -0
- package/dist/dialog-content-Bc8Dem2U.js.map +1 -0
- package/dist/dialog-content-C2mSWw93.cjs +106 -0
- package/dist/dialog-content-C2mSWw93.cjs.map +1 -0
- package/dist/dialog-events--DuMbZ8T.cjs +2 -0
- package/dist/dialog-events--DuMbZ8T.cjs.map +1 -0
- package/dist/dialog-events-mjOcyPQ-.js +6 -0
- package/dist/dialog-events-mjOcyPQ-.js.map +1 -0
- package/dist/dialog-service-Di9NiBao.cjs +2 -0
- package/dist/dialog-service-Di9NiBao.cjs.map +1 -0
- package/dist/dialog-service-noGCuxg1.js +127 -0
- package/dist/dialog-service-noGCuxg1.js.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +7 -6
- package/dist/dialog.js.map +1 -1
- package/dist/{divider-CEyi1ooH.cjs → divider-BLWfsrgW.cjs} +2 -2
- package/dist/{divider-CEyi1ooH.cjs.map → divider-BLWfsrgW.cjs.map} +1 -1
- package/dist/{divider-3tv52Nso.js → divider-CE4Z74RZ.js} +3 -3
- package/dist/{divider-3tv52Nso.js.map → divider-CE4Z74RZ.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-BoKXumxT.cjs → dropdown-content-DGzqx1S_.cjs} +2 -2
- package/dist/{dropdown-content-BoKXumxT.cjs.map → dropdown-content-DGzqx1S_.cjs.map} +1 -1
- package/dist/{dropdown-content-R-EVmTas.js → dropdown-content-owobMGzG.js} +3 -3
- package/dist/{dropdown-content-R-EVmTas.js.map → dropdown-content-owobMGzG.js.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-DFGC-5rG.js → flex-BsSncdMc.js} +2 -2
- package/dist/flex-BsSncdMc.js.map +1 -0
- package/dist/{flex-Dfk62-Dn.cjs → flex-Dpr6dCxo.cjs} +2 -2
- package/dist/flex-Dpr6dCxo.cjs.map +1 -0
- package/dist/{form-C-YpNF0Z.cjs → form-BQE8JXxF.cjs} +2 -2
- package/dist/{form-C-YpNF0Z.cjs.map → form-BQE8JXxF.cjs.map} +1 -1
- package/dist/{form-DWz7p8Ru.js → form-CHNcjEbu.js} +2 -2
- package/dist/{form-DWz7p8Ru.js.map → form-CHNcjEbu.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-D-o0ZArk.js → icon-BEBPLEy5.js} +2 -2
- package/dist/{icon-D-o0ZArk.js.map → icon-BEBPLEy5.js.map} +1 -1
- package/dist/{icon-button-6K7j0Ifl.js → icon-button-2HzMutoD.js} +3 -3
- package/dist/{icon-button-6K7j0Ifl.js.map → icon-button-2HzMutoD.js.map} +1 -1
- package/dist/{icon-button-fT0E5fJN.cjs → icon-button-BCMiumJV.cjs} +2 -2
- package/dist/{icon-button-fT0E5fJN.cjs.map → icon-button-BCMiumJV.cjs.map} +1 -1
- package/dist/{icon-D_0MYmHT.cjs → icon-pSnkdbDc.cjs} +2 -2
- package/dist/{icon-D_0MYmHT.cjs.map → icon-pSnkdbDc.cjs.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 +149 -147
- package/dist/index.js.map +1 -1
- package/dist/{input-y7H2rS_c.cjs → input-BN2LXdXz.cjs} +2 -2
- package/dist/{input-y7H2rS_c.cjs.map → input-BN2LXdXz.cjs.map} +1 -1
- package/dist/{input-3-d9ijGr.js → input-BeF_sRNg.js} +2 -2
- package/dist/{input-3-d9ijGr.js.map → input-BeF_sRNg.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-CQCRYpMc.cjs → list-BEbwK0js.cjs} +2 -2
- package/dist/{list-CQCRYpMc.cjs.map → list-BEbwK0js.cjs.map} +1 -1
- package/dist/{list-DdZ0XbRC.js → list-BL8wGmIx.js} +2 -2
- package/dist/{list-DdZ0XbRC.js.map → list-BL8wGmIx.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-DCTPuIQ4.js → litElement.mixin-Csoyz9Ih.js} +2 -2
- package/dist/{litElement.mixin-DCTPuIQ4.js.map → litElement.mixin-Csoyz9Ih.js.map} +1 -1
- package/dist/{litElement.mixin-DcYItU_Y.cjs → litElement.mixin-DBKBn5-0.cjs} +2 -2
- package/dist/{litElement.mixin-DcYItU_Y.cjs.map → litElement.mixin-DBKBn5-0.cjs.map} +1 -1
- package/dist/{menu-DTNNwC3X.cjs → menu-BdzIXUjg.cjs} +2 -2
- package/dist/{menu-DTNNwC3X.cjs.map → menu-BdzIXUjg.cjs.map} +1 -1
- package/dist/{menu-BBeCodjv.js → menu-DyAZ0l5W.js} +3 -3
- package/dist/{menu-BBeCodjv.js.map → menu-DyAZ0l5W.js.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-service-Dw1vWE8m.cjs → notification-service-CXc-_Kb_.cjs} +2 -2
- package/dist/{notification-service-Dw1vWE8m.cjs.map → notification-service-CXc-_Kb_.cjs.map} +1 -1
- package/dist/{notification-service-cV_jYoFM.js → notification-service-DKZuIFCM.js} +3 -3
- package/dist/{notification-service-cV_jYoFM.js.map → notification-service-DKZuIFCM.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-D9kAMX93.js → option-CYaG8vnG.js} +2 -2
- package/dist/{option-D9kAMX93.js.map → option-CYaG8vnG.js.map} +1 -1
- package/dist/{option-BkYybtqQ.cjs → option-EnoMfyR-.cjs} +2 -2
- package/dist/{option-BkYybtqQ.cjs.map → option-EnoMfyR-.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-C2X4AyyB.js → payment-card-form-BSmtEC4S.js} +3 -3
- package/dist/{payment-card-form-C2X4AyyB.js.map → payment-card-form-BSmtEC4S.js.map} +1 -1
- package/dist/{payment-card-form-CLRmWodS.cjs → payment-card-form-CpgGccLb.cjs} +2 -2
- package/dist/{payment-card-form-CLRmWodS.cjs.map → payment-card-form-CpgGccLb.cjs.map} +1 -1
- package/dist/{radio-button-b-3WocDM.cjs → radio-button-BJjvHX_o.cjs} +2 -2
- package/dist/{radio-button-b-3WocDM.cjs.map → radio-button-BJjvHX_o.cjs.map} +1 -1
- package/dist/{radio-button-C0IThgUp.js → radio-button-BURq74ON.js} +2 -2
- package/dist/{radio-button-C0IThgUp.js.map → radio-button-BURq74ON.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-zat0B8ZS.cjs → schmancy-steps-container-DDTHvnOz.cjs} +2 -2
- package/dist/{schmancy-steps-container-zat0B8ZS.cjs.map → schmancy-steps-container-DDTHvnOz.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-B1pLiWXH.js → schmancy-steps-container-Jm5DjyWr.js} +2 -2
- package/dist/{schmancy-steps-container-B1pLiWXH.js.map → schmancy-steps-container-Jm5DjyWr.js.map} +1 -1
- package/dist/{select-BLI7oX60.js → select-C7KUOvwM.js} +3 -3
- package/dist/{select-BLI7oX60.js.map → select-C7KUOvwM.js.map} +1 -1
- package/dist/{select-DsFHJyZw.cjs → select-DhsURRRa.cjs} +2 -2
- package/dist/{select-DsFHJyZw.cjs.map → select-DhsURRRa.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-cxQG63jb.js → sheet-BD5cVkNb.js} +12 -12
- package/dist/{sheet-cxQG63jb.js.map → sheet-BD5cVkNb.js.map} +1 -1
- package/dist/{sheet-xbPPu7eJ.cjs → sheet-L0BMbi1B.cjs} +2 -2
- package/dist/{sheet-xbPPu7eJ.cjs.map → sheet-L0BMbi1B.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-DI42q9wf.cjs → slider-CAYWu8jw.cjs} +2 -2
- package/dist/{slider-DI42q9wf.cjs.map → slider-CAYWu8jw.cjs.map} +1 -1
- package/dist/{slider-D5GAJBtp.js → slider-DiRa4lW4.js} +3 -3
- package/dist/{slider-D5GAJBtp.js.map → slider-DiRa4lW4.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-jxwBlOT6.js → spinner-CnjBDKlQ.js} +3 -3
- package/dist/{spinner-jxwBlOT6.js.map → spinner-CnjBDKlQ.js.map} +1 -1
- package/dist/{spinner-I_J8koHo.cjs → spinner-XXVCb3SB.cjs} +2 -2
- package/dist/{spinner-I_J8koHo.cjs.map → spinner-XXVCb3SB.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-CgjTa2At.cjs → surface-B93-RzTP.cjs} +2 -2
- package/dist/{surface-CgjTa2At.cjs.map → surface-B93-RzTP.cjs.map} +1 -1
- package/dist/{surface-KO5G93q6.js → surface-DPoDLP5m.js} +2 -2
- package/dist/{surface-KO5G93q6.js.map → surface-DPoDLP5m.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-tMVVNYqd.cjs → table-CZ0Kxa-3.cjs} +2 -2
- package/dist/{table-tMVVNYqd.cjs.map → table-CZ0Kxa-3.cjs.map} +1 -1
- package/dist/{table-ae8AvxxX.js → table-Dsb3MObV.js} +2 -2
- package/dist/{table-ae8AvxxX.js.map → table-Dsb3MObV.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-K7hN1FMS.cjs → tabs-compatibility-B8L2QZNH.cjs} +2 -2
- package/dist/{tabs-compatibility-K7hN1FMS.cjs.map → tabs-compatibility-B8L2QZNH.cjs.map} +1 -1
- package/dist/{tabs-compatibility-DgqIx0_d.js → tabs-compatibility-Dx9gQzb8.js} +2 -2
- package/dist/{tabs-compatibility-DgqIx0_d.js.map → tabs-compatibility-Dx9gQzb8.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-CYcf-U4R.cjs +2 -0
- package/dist/{tailwind.mixin-DWvvleWP.cjs.map → tailwind.mixin-CYcf-U4R.cjs.map} +1 -1
- package/dist/tailwind.mixin-D0pn9tte.js +43 -0
- package/dist/{tailwind.mixin-BPIDvfDe.js.map → tailwind.mixin-D0pn9tte.js.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-Coqtz8dI.js → textarea-DRRZOHFq.js} +2 -2
- package/dist/{textarea-Coqtz8dI.js.map → textarea-DRRZOHFq.js.map} +1 -1
- package/dist/{textarea-DlxS_YbV.cjs → textarea-c08GNNdE.cjs} +2 -2
- package/dist/{textarea-DlxS_YbV.cjs.map → textarea-c08GNNdE.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-MLe6lqim.cjs → theme-button-C1WDEzCs.cjs} +2 -2
- package/dist/{theme-button-MLe6lqim.cjs.map → theme-button-C1WDEzCs.cjs.map} +1 -1
- package/dist/{theme-button-aGO9tJ2X.js → theme-button-CVyoV6wr.js} +2 -2
- package/dist/{theme-button-aGO9tJ2X.js.map → theme-button-CVyoV6wr.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-hNNgXue7.cjs +3 -0
- package/dist/{theme.component-Bhodmw04.cjs.map → theme.component-hNNgXue7.cjs.map} +1 -1
- package/dist/{theme.component-DtSJBwyz.js → theme.component-rwAI-wT2.js} +112 -108
- package/dist/{theme.component-DtSJBwyz.js.map → theme.component-rwAI-wT2.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-MNEWy4jq.cjs → timezone-B9ulERyu.cjs} +2 -2
- package/dist/{timezone-MNEWy4jq.cjs.map → timezone-B9ulERyu.cjs.map} +1 -1
- package/dist/{timezone-DRzBs7kc.js → timezone-D3qGsxoX.js} +3 -3
- package/dist/{timezone-DRzBs7kc.js.map → timezone-D3qGsxoX.js.map} +1 -1
- package/dist/{tooltip-DXepH6lG.cjs → tooltip-BcfZtAjX.cjs} +2 -2
- package/dist/{tooltip-DXepH6lG.cjs.map → tooltip-BcfZtAjX.cjs.map} +1 -1
- package/dist/{tooltip-CyHXFI4n.js → tooltip-wORJd0XU.js} +2 -2
- package/dist/{tooltip-CyHXFI4n.js.map → tooltip-wORJd0XU.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-BkqvB6rh.cjs → tree-D0gmqicQ.cjs} +2 -2
- package/dist/{tree-BkqvB6rh.cjs.map → tree-D0gmqicQ.cjs.map} +1 -1
- package/dist/{tree-BDvR_Ooq.js → tree-DbCTJGWZ.js} +2 -2
- package/dist/{tree-BDvR_Ooq.js.map → tree-DbCTJGWZ.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-CoOcshun.cjs → typewriter-B9CTFK02.cjs} +2 -2
- package/dist/{typewriter-CoOcshun.cjs.map → typewriter-B9CTFK02.cjs.map} +1 -1
- package/dist/{typewriter-B1uzg12Z.js → typewriter-CrSNqZl5.js} +16 -16
- package/dist/{typewriter-B1uzg12Z.js.map → typewriter-CrSNqZl5.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-CRa9BYOd.cjs → typography-846IJx5H.cjs} +2 -2
- package/dist/{typography-CRa9BYOd.cjs.map → typography-846IJx5H.cjs.map} +1 -1
- package/dist/{typography-BoHmbEy7.js → typography-B2HnnOVG.js} +2 -2
- package/dist/{typography-BoHmbEy7.js.map → typography-B2HnnOVG.js.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/boat/boat.d.ts +3 -2
- package/types/src/date-range/date-range.d.ts +35 -5
- package/types/src/date-range/index.d.ts +1 -0
- package/types/src/dialog/dialog-events.d.ts +13 -0
- package/types/src/dialog/dialog-service.d.ts +11 -0
- package/types/src/dialog/dialog.component.d.ts +12 -0
- package/types/src/layout/flex/flex.d.ts +10 -0
- package/types/src/layout/grid/grid.d.ts +10 -0
- package/types/src/layout/layout.d.ts +10 -0
- package/types/src/layout/v2/flex.d.ts +9 -0
- package/dist/boat-D6RMa9wL.js +0 -95
- package/dist/boat-D6RMa9wL.js.map +0 -1
- package/dist/boat-DeEs020x.cjs +0 -64
- package/dist/boat-DeEs020x.cjs.map +0 -1
- package/dist/date-range-B0CSi1D6.cjs +0 -121
- package/dist/date-range-B0CSi1D6.cjs.map +0 -1
- package/dist/date-range-IrXoBUVr.js +0 -563
- package/dist/date-range-IrXoBUVr.js.map +0 -1
- package/dist/dialog-content-D5kti4-b.cjs +0 -106
- package/dist/dialog-content-D5kti4-b.cjs.map +0 -1
- package/dist/dialog-content-D9uVow4E.js +0 -343
- package/dist/dialog-content-D9uVow4E.js.map +0 -1
- package/dist/flex-DFGC-5rG.js.map +0 -1
- package/dist/flex-Dfk62-Dn.cjs.map +0 -1
- package/dist/tailwind.mixin-BPIDvfDe.js +0 -43
- package/dist/tailwind.mixin-DWvvleWP.cjs +0 -2
- package/dist/theme.component-Bhodmw04.cjs +0 -3
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
import { autoUpdate as g, computePosition as x, offset as C, flip as P, shift as R, size as S } from "@floating-ui/dom";
|
|
2
|
-
import { fromEvent as T } from "rxjs";
|
|
3
|
-
import "lit/directives/class-map.js";
|
|
4
|
-
import "lit/directives/style-map.js";
|
|
5
|
-
import { $ as f } from "./litElement.mixin-DCTPuIQ4.js";
|
|
6
|
-
import "./tailwind.mixin-BPIDvfDe.js";
|
|
7
|
-
import { css as v, html as c, render as m } from "lit";
|
|
8
|
-
import { property as p, customElement as y } from "lit/decorators.js";
|
|
9
|
-
import { when as u } from "lit/directives/when.js";
|
|
10
|
-
import { debounceTime as H } from "rxjs/operators";
|
|
11
|
-
var M = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, l = (t, i, n, e) => {
|
|
12
|
-
for (var o, s = e > 1 ? void 0 : e ? $(i, n) : i, a = t.length - 1; a >= 0; a--) (o = t[a]) && (s = (e ? o(i, n, s) : o(s)) || s);
|
|
13
|
-
return e && s && M(i, n, s), s;
|
|
14
|
-
};
|
|
15
|
-
let r = class extends f(v`
|
|
16
|
-
:host {
|
|
17
|
-
position: fixed;
|
|
18
|
-
z-index: 10000;
|
|
19
|
-
inset: 0;
|
|
20
|
-
display: none;
|
|
21
|
-
--dialog-width: 360px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host([active]) {
|
|
25
|
-
display: block;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.overlay {
|
|
29
|
-
position: fixed;
|
|
30
|
-
inset: 0;
|
|
31
|
-
background: rgba(0, 0, 0, 0.4);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.dialog {
|
|
35
|
-
position: absolute;
|
|
36
|
-
max-width: var(--dialog-width);
|
|
37
|
-
width: max-content;
|
|
38
|
-
max-height: calc(100vh - 40px); /* Prevent exceeding viewport height */
|
|
39
|
-
overflow: auto; /* Allow scrolling for oversized content */
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Used when centered for initial positioning */
|
|
43
|
-
.dialog.centered {
|
|
44
|
-
top: 50%;
|
|
45
|
-
left: 50%;
|
|
46
|
-
transform: translate(-50%, -55%); /* Slight upward shift looks better */
|
|
47
|
-
}
|
|
48
|
-
`) {
|
|
49
|
-
constructor() {
|
|
50
|
-
super(...arguments), this.title = void 0, this.subtitle = void 0, this.message = void 0, this.confirmText = "Confirm", this.cancelText = "Cancel", this.variant = "default", this.position = { x: 0, y: 0 };
|
|
51
|
-
}
|
|
52
|
-
async show(t) {
|
|
53
|
-
let i, n;
|
|
54
|
-
if (t) if ("clientX" in t) i = t.clientX, n = t.clientY;
|
|
55
|
-
else if ("touches" in t && t.touches.length) i = t.touches[0].clientX, n = t.touches[0].clientY;
|
|
56
|
-
else {
|
|
57
|
-
const e = t;
|
|
58
|
-
i = e.x, n = e.y;
|
|
59
|
-
}
|
|
60
|
-
else i = window.innerWidth / 2, n = window.innerHeight / 2;
|
|
61
|
-
return this.position = { x: i, y: n }, this.virtualReference = { getBoundingClientRect: () => new DOMRect(i, n, 0, 0) }, this.setAttribute("active", ""), new Promise((e) => {
|
|
62
|
-
this.resolvePromise = e;
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
hide(t = !1) {
|
|
66
|
-
this.removeAttribute("active"), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0), this.resolvePromise && (this.resolvePromise(t), this.resolvePromise = void 0);
|
|
67
|
-
}
|
|
68
|
-
setupPositioning(t) {
|
|
69
|
-
const i = window.innerWidth, n = window.innerHeight;
|
|
70
|
-
if (Math.abs(this.position.x - i / 2) < 10 && Math.abs(this.position.y - n / 2) < 10) return t.classList.add("centered"), void (this.cleanupAutoUpdate = g(document.body, t, () => {
|
|
71
|
-
if (t.classList.contains("centered")) {
|
|
72
|
-
const e = window.innerHeight - 40;
|
|
73
|
-
t.offsetHeight > e && (t.style.maxHeight = `${e}px`);
|
|
74
|
-
}
|
|
75
|
-
}, { elementResize: !0, ancestorScroll: !0 }));
|
|
76
|
-
t.classList.remove("centered"), this.virtualReference && (this.cleanupAutoUpdate = g(this.virtualReference, t, () => this.updatePosition(t), { ancestorScroll: !0, ancestorResize: !0, elementResize: !0, animationFrame: !0 }), this.updatePosition(t));
|
|
77
|
-
}
|
|
78
|
-
async updatePosition(t) {
|
|
79
|
-
if (!this.virtualReference) return;
|
|
80
|
-
if (this.position.x > 0 && this.position.y > 0) {
|
|
81
|
-
const e = window.innerWidth, o = window.innerHeight, s = Math.min(this.position.x, e - 20), a = Math.min(this.position.y, o - 20);
|
|
82
|
-
this.virtualReference = { getBoundingClientRect: () => new DOMRect(s, a, 0, 0) };
|
|
83
|
-
}
|
|
84
|
-
const { x: i, y: n } = await x(this.virtualReference, t, { placement: "bottom-start", strategy: "absolute", middleware: [C(20), P({ fallbackPlacements: ["top-start", "bottom-end", "top-end"], fallbackStrategy: "bestFit" }), R({ padding: 20 }), S({ apply({ availableWidth: e, availableHeight: o, elements: s }) {
|
|
85
|
-
s.floating.offsetWidth > e && Object.assign(s.floating.style, { maxWidth: `${Math.max(e - 40, 280)}px` }), s.floating.offsetHeight > o && Object.assign(s.floating.style, { maxHeight: o - 40 + "px" });
|
|
86
|
-
}, padding: 20 })] });
|
|
87
|
-
Object.assign(t.style, { left: `${Math.round(i)}px`, top: `${Math.round(n)}px`, transform: "none" });
|
|
88
|
-
}
|
|
89
|
-
disconnectedCallback() {
|
|
90
|
-
super.disconnectedCallback(), this.resizeSubscription && (this.resizeSubscription.unsubscribe(), this.resizeSubscription = void 0), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0);
|
|
91
|
-
}
|
|
92
|
-
firstUpdated() {
|
|
93
|
-
var i;
|
|
94
|
-
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".dialog");
|
|
95
|
-
t && (this.setupPositioning(t), this.resizeSubscription = T(window, "resize").pipe(H(50)).subscribe(() => {
|
|
96
|
-
const n = window.innerWidth, e = window.innerHeight;
|
|
97
|
-
Math.abs(this.position.x - n / 2) < 10 && Math.abs(this.position.y - e / 2) < 10 && (this.position = { x: n / 2, y: e / 2 }), this.updatePosition(t);
|
|
98
|
-
}));
|
|
99
|
-
}
|
|
100
|
-
handleConfirm() {
|
|
101
|
-
this.hide(!0), this.dispatchEvent(new CustomEvent("confirm", { bubbles: !0, composed: !0 }));
|
|
102
|
-
}
|
|
103
|
-
handleCancel() {
|
|
104
|
-
this.hide(!1), this.dispatchEvent(new CustomEvent("cancel", { bubbles: !0, composed: !0 }));
|
|
105
|
-
}
|
|
106
|
-
getConfirmButtonClass() {
|
|
107
|
-
const t = { error: "bg-red-600 hover:bg-red-700 text-white", warning: "bg-orange-600 hover:bg-orange-700 text-white", success: "bg-green-600 hover:bg-green-700 text-white", primary: "" };
|
|
108
|
-
return this.variant === "danger" || this.confirmColor === "error" ? t.error : t[this.confirmColor || "primary"] || "";
|
|
109
|
-
}
|
|
110
|
-
render() {
|
|
111
|
-
const t = this.querySelectorAll('[slot="content"]').length > 0, i = this.confirmText && this.confirmText.trim() !== "" && this.cancelText && this.cancelText.trim() !== "";
|
|
112
|
-
return c`
|
|
113
|
-
<div class="overlay" @click=${this.handleCancel}></div>
|
|
114
|
-
|
|
115
|
-
<div class="dialog" role="alertdialog" aria-modal="true">
|
|
116
|
-
<schmancy-surface rounded="all" elevation="3" type="containerHigh">
|
|
117
|
-
<schmancy-form @submit=${this.handleConfirm} class="p-4">
|
|
118
|
-
${u(this.title && this.title.trim() !== "", () => c`
|
|
119
|
-
<schmancy-typography type="title" token="md" class="mb-1"> ${this.title} </schmancy-typography>
|
|
120
|
-
${u(this.subtitle && this.subtitle.trim() !== "", () => c`
|
|
121
|
-
<schmancy-typography type="subtitle" token="xs" class="mb-2">
|
|
122
|
-
${this.subtitle}
|
|
123
|
-
</schmancy-typography>
|
|
124
|
-
`, () => c``)}
|
|
125
|
-
`)}
|
|
126
|
-
${t ? c`<div class="${i ? "mb-4" : ""}"><slot name="content"></slot></div>` : u(this.message && this.message.trim() !== "", () => c`<schmancy-typography type="body" class="mb-4"> ${this.message} </schmancy-typography>`)}
|
|
127
|
-
${u(i, () => c`
|
|
128
|
-
<div class="flex justify-end gap-3">
|
|
129
|
-
<schmancy-button variant="outlined" @click=${this.handleCancel}> ${this.cancelText} </schmancy-button>
|
|
130
|
-
<schmancy-button type="submit" variant="filled" class=${this.getConfirmButtonClass()}> ${this.confirmText} </schmancy-button>
|
|
131
|
-
</div>
|
|
132
|
-
`)}
|
|
133
|
-
</schmancy-form>
|
|
134
|
-
</schmancy-surface>
|
|
135
|
-
</div>
|
|
136
|
-
`;
|
|
137
|
-
}
|
|
138
|
-
static async confirm(t) {
|
|
139
|
-
let i = document.querySelector("confirm-dialog");
|
|
140
|
-
return i || (i = document.createElement("confirm-dialog"), document.body.appendChild(i)), t.title && (i.title = t.title), t.subtitle && (i.subtitle = t.subtitle), t.message && (i.message = t.message), t.confirmText && (i.confirmText = t.confirmText), t.cancelText && (i.cancelText = t.cancelText), t.variant && (i.variant = t.variant), t.width && i.style.setProperty("--dialog-width", t.width), i.show(t.position);
|
|
141
|
-
}
|
|
142
|
-
static async ask(t, i) {
|
|
143
|
-
return this.confirm({ message: t, position: i });
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
l([p({ type: String })], r.prototype, "title", 2), l([p({ type: String })], r.prototype, "subtitle", 2), l([p({ type: String })], r.prototype, "message", 2), l([p({ type: String, attribute: "confirm-text" })], r.prototype, "confirmText", 2), l([p({ type: String, attribute: "cancel-text" })], r.prototype, "cancelText", 2), l([p({ type: String })], r.prototype, "variant", 2), l([p({ type: String, attribute: "confirm-color" })], r.prototype, "confirmColor", 2), r = l([y("confirm-dialog")], r);
|
|
147
|
-
const d = class d {
|
|
148
|
-
constructor() {
|
|
149
|
-
this.activeDialogs = [], this.activeRawDialogs = [];
|
|
150
|
-
}
|
|
151
|
-
static getInstance() {
|
|
152
|
-
return d.instance || (d.instance = new d()), d.instance;
|
|
153
|
-
}
|
|
154
|
-
confirm(i) {
|
|
155
|
-
const n = { ...d.DEFAULT_OPTIONS, ...i };
|
|
156
|
-
n.position || (n.position = this.getCenteredPosition());
|
|
157
|
-
let e = document.querySelector("confirm-dialog");
|
|
158
|
-
if (e || (e = document.createElement("confirm-dialog"), document.body.appendChild(e)), n.title && (e.title = n.title), n.subtitle && (e.subtitle = n.subtitle), n.message && (e.message = n.message), n.confirmText && (e.confirmText = n.confirmText), n.cancelText && (e.cancelText = n.cancelText), n.variant && (e.variant = n.variant), n.confirmColor && (e.confirmColor = n.confirmColor), n.width && e.style.setProperty("--dialog-width", n.width), n.content) {
|
|
159
|
-
const o = document.createElement("div");
|
|
160
|
-
if (o.slot = "content", typeof n.content == "function") {
|
|
161
|
-
const s = n.content();
|
|
162
|
-
s instanceof HTMLElement ? o.appendChild(s) : m(s, o);
|
|
163
|
-
} else n.content instanceof HTMLElement ? o.appendChild(n.content) : m(n.content, o);
|
|
164
|
-
e.appendChild(o);
|
|
165
|
-
}
|
|
166
|
-
if (n.onConfirm) {
|
|
167
|
-
const o = (s) => {
|
|
168
|
-
n.onConfirm(), e.removeEventListener("confirm", o);
|
|
169
|
-
};
|
|
170
|
-
e.addEventListener("confirm", o);
|
|
171
|
-
}
|
|
172
|
-
if (n.onCancel) {
|
|
173
|
-
const o = (s) => {
|
|
174
|
-
n.onCancel(), e.removeEventListener("cancel", o);
|
|
175
|
-
};
|
|
176
|
-
e.addEventListener("cancel", o);
|
|
177
|
-
}
|
|
178
|
-
return this.activeDialogs.push(e), e.show(n.position).finally(() => {
|
|
179
|
-
const o = this.activeDialogs.indexOf(e);
|
|
180
|
-
if (o !== -1 && this.activeDialogs.splice(o, 1), n.content) {
|
|
181
|
-
const s = e.querySelector('[slot="content"]');
|
|
182
|
-
s && e.removeChild(s);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
component(i, n = {}) {
|
|
187
|
-
const e = document.createElement("div");
|
|
188
|
-
if (e.style.height = "100%", e.style.width = "100%", e.classList.add("schmancy-dialog-content-container"), typeof i == "function") {
|
|
189
|
-
const s = i();
|
|
190
|
-
s instanceof HTMLElement ? e.appendChild(s) : m(s, e);
|
|
191
|
-
} else i instanceof HTMLElement ? e.appendChild(i) : m(i, e);
|
|
192
|
-
let o = document.querySelector("schmancy-dialog");
|
|
193
|
-
return o || (o = document.createElement("schmancy-dialog"), document.body.appendChild(o)), o.appendChild(e), n.width && o.style.setProperty("--dialog-width", n.width), this.activeRawDialogs.push(o), o.show(n.position).finally(() => {
|
|
194
|
-
e && e.parentNode && e.parentNode.removeChild(e);
|
|
195
|
-
const s = this.activeRawDialogs.indexOf(o);
|
|
196
|
-
s !== -1 && this.activeRawDialogs.splice(s, 1);
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
dismiss() {
|
|
200
|
-
return this.activeRawDialogs.length > 0 ? (this.activeRawDialogs[this.activeRawDialogs.length - 1].hide(!1), this.activeRawDialogs.pop(), !0) : this.activeDialogs.length > 0 ? (this.activeDialogs[this.activeDialogs.length - 1].hide(!1), !0) : !1;
|
|
201
|
-
}
|
|
202
|
-
ask(i, n) {
|
|
203
|
-
return this.confirm({ message: i, position: n });
|
|
204
|
-
}
|
|
205
|
-
danger(i) {
|
|
206
|
-
return this.confirm({ ...i, variant: "danger" });
|
|
207
|
-
}
|
|
208
|
-
getCenteredPosition() {
|
|
209
|
-
return { x: window.innerWidth / 2, y: window.innerHeight / 2 };
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
d.DEFAULT_OPTIONS = { title: void 0, subtitle: void 0, confirmText: void 0, cancelText: void 0, variant: "default", width: "360px" };
|
|
213
|
-
let h = d;
|
|
214
|
-
const B = { confirm: (t) => h.getInstance().confirm(t), ask: (t, i) => h.getInstance().ask(t, i), danger: (t) => h.getInstance().danger(t), component: (t, i) => h.getInstance().component(t, i), simple: (t, i) => h.getInstance().component(t, i), dismiss: () => h.getInstance().dismiss() };
|
|
215
|
-
var k = Object.getOwnPropertyDescriptor;
|
|
216
|
-
let b = class extends f(v`
|
|
217
|
-
:host {
|
|
218
|
-
position: fixed;
|
|
219
|
-
z-index: 10000;
|
|
220
|
-
inset: 0;
|
|
221
|
-
display: none;
|
|
222
|
-
--dialog-width: 360px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
:host([active]) {
|
|
226
|
-
display: block;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.overlay {
|
|
230
|
-
position: fixed;
|
|
231
|
-
inset: 0;
|
|
232
|
-
background: rgba(0, 0, 0, 0.4);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.dialog {
|
|
236
|
-
position: absolute;
|
|
237
|
-
max-width: var(--dialog-width);
|
|
238
|
-
width: max-content;
|
|
239
|
-
max-height: calc(100vh - 40px); /* Prevent exceeding viewport height */
|
|
240
|
-
overflow: auto; /* Allow scrolling for oversized content */
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/* Used when centered for initial positioning */
|
|
244
|
-
.dialog.centered {
|
|
245
|
-
top: 50%;
|
|
246
|
-
left: 50%;
|
|
247
|
-
transform: translate(-50%, -55%); /* Slight upward shift looks better */
|
|
248
|
-
}
|
|
249
|
-
`) {
|
|
250
|
-
constructor() {
|
|
251
|
-
super(...arguments), this.position = { x: 0, y: 0 };
|
|
252
|
-
}
|
|
253
|
-
async show(t) {
|
|
254
|
-
let i, n;
|
|
255
|
-
if (t) if ("clientX" in t) i = t.clientX, n = t.clientY;
|
|
256
|
-
else if ("touches" in t && t.touches.length) i = t.touches[0].clientX, n = t.touches[0].clientY;
|
|
257
|
-
else {
|
|
258
|
-
const e = t;
|
|
259
|
-
i = e.x, n = e.y;
|
|
260
|
-
}
|
|
261
|
-
else i = window.innerWidth / 2, n = window.innerHeight / 2;
|
|
262
|
-
return this.position = { x: i, y: n }, this.virtualReference = { getBoundingClientRect: () => new DOMRect(i, n, 0, 0) }, this.setAttribute("active", ""), new Promise((e) => {
|
|
263
|
-
this.resolvePromise = e;
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
hide(t = !1) {
|
|
267
|
-
this.removeAttribute("active"), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0), this.resolvePromise && (this.resolvePromise(t), this.resolvePromise = void 0);
|
|
268
|
-
}
|
|
269
|
-
setupPositioning(t) {
|
|
270
|
-
const i = window.innerWidth, n = window.innerHeight;
|
|
271
|
-
if (Math.abs(this.position.x - i / 2) < 10 && Math.abs(this.position.y - n / 2) < 10) return t.classList.add("centered"), void (this.cleanupAutoUpdate = g(document.body, t, () => {
|
|
272
|
-
if (t.classList.contains("centered")) {
|
|
273
|
-
const e = window.innerHeight - 40;
|
|
274
|
-
t.offsetHeight > e && (t.style.maxHeight = `${e}px`);
|
|
275
|
-
}
|
|
276
|
-
}, { elementResize: !0, ancestorScroll: !0 }));
|
|
277
|
-
t.classList.remove("centered"), this.virtualReference && (this.cleanupAutoUpdate = g(this.virtualReference, t, () => this.updatePosition(t), { ancestorScroll: !0, ancestorResize: !0, elementResize: !0, animationFrame: !0 }), this.updatePosition(t));
|
|
278
|
-
}
|
|
279
|
-
async updatePosition(t) {
|
|
280
|
-
if (!this.virtualReference) return;
|
|
281
|
-
if (this.position.x > 0 && this.position.y > 0) {
|
|
282
|
-
const e = window.innerWidth, o = window.innerHeight, s = Math.min(this.position.x, e - 20), a = Math.min(this.position.y, o - 20);
|
|
283
|
-
this.virtualReference = { getBoundingClientRect: () => new DOMRect(s, a, 0, 0) };
|
|
284
|
-
}
|
|
285
|
-
const { x: i, y: n } = await x(this.virtualReference, t, { placement: "bottom-start", strategy: "absolute", middleware: [C(20), P({ fallbackPlacements: ["top-start", "bottom-end", "top-end"], fallbackStrategy: "bestFit" }), R({ padding: 20 }), S({ apply({ availableWidth: e, availableHeight: o, elements: s }) {
|
|
286
|
-
s.floating.offsetWidth > e && Object.assign(s.floating.style, { maxWidth: `${Math.max(e - 40, 280)}px` }), s.floating.offsetHeight > o && Object.assign(s.floating.style, { maxHeight: o - 40 + "px" });
|
|
287
|
-
}, padding: 20 })] });
|
|
288
|
-
Object.assign(t.style, { left: `${Math.round(i)}px`, top: `${Math.round(n)}px`, transform: "none" });
|
|
289
|
-
}
|
|
290
|
-
disconnectedCallback() {
|
|
291
|
-
super.disconnectedCallback(), this.resizeSubscription && (this.resizeSubscription.unsubscribe(), this.resizeSubscription = void 0), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0);
|
|
292
|
-
}
|
|
293
|
-
firstUpdated() {
|
|
294
|
-
var i;
|
|
295
|
-
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".dialog");
|
|
296
|
-
t && (this.setupPositioning(t), this.resizeSubscription = T(window, "resize").pipe(H(50)).subscribe(() => {
|
|
297
|
-
const n = window.innerWidth, e = window.innerHeight;
|
|
298
|
-
Math.abs(this.position.x - n / 2) < 10 && Math.abs(this.position.y - e / 2) < 10 && (this.position = { x: n / 2, y: e / 2 }), this.updatePosition(t);
|
|
299
|
-
}));
|
|
300
|
-
}
|
|
301
|
-
handleClose() {
|
|
302
|
-
this.hide(!1), this.dispatchEvent(new CustomEvent("close", { bubbles: !0, composed: !0 }));
|
|
303
|
-
}
|
|
304
|
-
render() {
|
|
305
|
-
return c`
|
|
306
|
-
<div class="overlay" @click=${this.handleClose}></div>
|
|
307
|
-
|
|
308
|
-
<div class="dialog" role="dialog" aria-modal="true">
|
|
309
|
-
<schmancy-surface rounded="all" elevation="3" type="containerHigh">
|
|
310
|
-
<slot></slot>
|
|
311
|
-
</schmancy-surface>
|
|
312
|
-
</div>
|
|
313
|
-
`;
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
b = ((t, i, n, e) => {
|
|
317
|
-
for (var o, s = e > 1 ? void 0 : e ? k(i, n) : i, a = t.length - 1; a >= 0; a--) (o = t[a]) && (s = o(s) || s);
|
|
318
|
-
return s;
|
|
319
|
-
})([y("schmancy-dialog")], b);
|
|
320
|
-
var A = Object.getOwnPropertyDescriptor;
|
|
321
|
-
let w = class extends f(v`
|
|
322
|
-
:host {
|
|
323
|
-
display: block;
|
|
324
|
-
width: 100%;
|
|
325
|
-
height: 100%;
|
|
326
|
-
}
|
|
327
|
-
`) {
|
|
328
|
-
render() {
|
|
329
|
-
return c`<slot></slot>`;
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
w = ((t, i, n, e) => {
|
|
333
|
-
for (var o, s = e > 1 ? void 0 : e ? A(i, n) : i, a = t.length - 1; a >= 0; a--) (o = t[a]) && (s = o(s) || s);
|
|
334
|
-
return s;
|
|
335
|
-
})([y("schmancy-dialog-content")], w);
|
|
336
|
-
export {
|
|
337
|
-
B as $,
|
|
338
|
-
r as C,
|
|
339
|
-
h as D,
|
|
340
|
-
b as S,
|
|
341
|
-
w as a
|
|
342
|
-
};
|
|
343
|
-
//# sourceMappingURL=dialog-content-D9uVow4E.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-content-D9uVow4E.js","sources":["../src/dialog/dailog.ts","../src/dialog/dialog-service.ts","../src/dialog/dialog.component.ts","../src/dialog/dialog-content.ts"],"sourcesContent":["import { autoUpdate, computePosition, flip, offset, Placement, shift, size, Strategy } from '@floating-ui/dom'\nimport { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { when } from 'lit/directives/when.js'\nimport { fromEvent } from 'rxjs'\nimport { debounceTime } from 'rxjs/operators'\n\n/**\n * A confirm dialog web component with custom content support\n *\n * @element confirm-dialog\n * @slot content - Optional slot for custom content\n */\n@customElement('confirm-dialog')\nexport class ConfirmDialog extends $LitElement(css`\n\t:host {\n\t\tposition: fixed;\n\t\tz-index: 10000;\n\t\tinset: 0;\n\t\tdisplay: none;\n\t\t--dialog-width: 360px;\n\t}\n\n\t:host([active]) {\n\t\tdisplay: block;\n\t}\n\n\t.overlay {\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tbackground: rgba(0, 0, 0, 0.4);\n\t}\n\n\t.dialog {\n\t\tposition: absolute;\n\t\tmax-width: var(--dialog-width);\n\t\twidth: max-content;\n\t\tmax-height: calc(100vh - 40px); /* Prevent exceeding viewport height */\n\t\toverflow: auto; /* Allow scrolling for oversized content */\n\t}\n\n\t/* Used when centered for initial positioning */\n\t.dialog.centered {\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -55%); /* Slight upward shift looks better */\n\t}\n`) {\n\t/**\n\t * Dialog title\n\t */\n\t@property({ type: String })\n\ttitle = undefined\n\n\t/**\n\t * Dialog subtitle\n\t */\n\t@property({ type: String })\n\tsubtitle = undefined\n\n\t/**\n\t * Dialog message\n\t */\n\t@property({ type: String })\n\tmessage = undefined\n\n\t/**\n\t * Text for confirm button\n\t */\n\t@property({ type: String, attribute: 'confirm-text' })\n\tconfirmText = 'Confirm'\n\n\t/**\n\t * Text for cancel button\n\t */\n\t@property({ type: String, attribute: 'cancel-text' })\n\tcancelText = 'Cancel'\n\n\t/**\n\t * Dialog variant (affects button colors)\n\t */\n\t@property({ type: String })\n\tvariant: 'default' | 'danger' = 'default'\n\n\t/**\n\t * Confirm button color\n\t */\n\t@property({ type: String, attribute: 'confirm-color' })\n\tconfirmColor?: 'primary' | 'error' | 'warning' | 'success'\n\n\t/**\n\t * Current position of the dialog\n\t */\n\tprivate position = { x: 0, y: 0 }\n\n\t/**\n\t * Current active promise resolver\n\t */\n\tprivate resolvePromise?: (value: boolean) => void\n\n\t/**\n\t * Store cleanup function for position auto-updates\n\t */\n\tprivate cleanupAutoUpdate?: () => void\n\n\t/**\n\t * Store resize subscription\n\t */\n\tprivate resizeSubscription?: { unsubscribe: () => void }\n\n\t/**\n\t * Virtual element to use as reference for positioning\n\t */\n\tprivate virtualReference?: {\n\t\tgetBoundingClientRect: () => DOMRect\n\t}\n\n\t/**\n\t * Simple API: Show the dialog at a specific position\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tasync show(positionOrEvent?: { x: number; y: number } | MouseEvent | TouchEvent): Promise<boolean> {\n\t\t// Extract position from event or use direct coordinates\n\t\tlet x: number, y: number\n\n\t\tif (!positionOrEvent) {\n\t\t\t// Default to center of viewport if no position provided\n\t\t\tx = window.innerWidth / 2\n\t\t\ty = window.innerHeight / 2\n\t\t} else if ('clientX' in positionOrEvent) {\n\t\t\t// It's a mouse event\n\t\t\tx = positionOrEvent.clientX\n\t\t\ty = positionOrEvent.clientY\n\t\t} else if ('touches' in positionOrEvent && positionOrEvent.touches.length) {\n\t\t\t// It's a touch event\n\t\t\tx = positionOrEvent.touches[0].clientX\n\t\t\ty = positionOrEvent.touches[0].clientY\n\t\t} else {\n\t\t\t// It's a position object with x,y coordinates\n\t\t\tconst pos = positionOrEvent as { x: number; y: number }\n\t\t\tx = pos.x\n\t\t\ty = pos.y\n\t\t}\n\n\t\t// Store initial position\n\t\tthis.position = { x, y }\n\n\t\t// Create virtual reference element at the provided coordinates\n\t\tthis.virtualReference = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t},\n\t\t}\n\n\t\t// Make dialog active\n\t\tthis.setAttribute('active', '')\n\n\t\t// Return a promise that resolves when the user makes a choice\n\t\treturn new Promise<boolean>(resolve => {\n\t\t\tthis.resolvePromise = resolve\n\t\t})\n\t}\n\n\t/**\n\t * Simple API: Hide the dialog\n\t */\n\thide(confirmed = false) {\n\t\tthis.removeAttribute('active')\n\n\t\t// Clean up any auto-update subscription\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\n\t\t// Resolve any pending promise\n\t\tif (this.resolvePromise) {\n\t\t\tthis.resolvePromise(confirmed)\n\t\t\tthis.resolvePromise = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Set up position auto-updating when dialog content changes or window resizes\n\t */\n\tprivate setupPositioning(dialog: HTMLElement) {\n\t\tconst viewportWidth = window.innerWidth\n\t\tconst viewportHeight = window.innerHeight\n\n\t\t// Check if this is a centered dialog\n\t\tconst isCentered =\n\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\tif (isCentered) {\n\t\t\t// For centered dialogs, use CSS-based centering\n\t\t\tdialog.classList.add('centered')\n\n\t\t\t// Always set up auto-update for content changes, even for centered dialogs\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(\n\t\t\t\tdocument.body, // Use body as reference for centered dialogs\n\t\t\t\tdialog,\n\t\t\t\t() => {\n\t\t\t\t\t// If dialog has the centered class, ensure it stays visible\n\t\t\t\t\t// even when content changes its dimensions\n\t\t\t\t\tif (dialog.classList.contains('centered')) {\n\t\t\t\t\t\t// Adjust max-height to ensure dialog stays within viewport\n\t\t\t\t\t\tconst availableHeight = window.innerHeight - 40\n\t\t\t\t\t\tif (dialog.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tdialog.style.maxHeight = `${availableHeight}px`\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\telementResize: true,\n\t\t\t\t\tancestorScroll: true,\n\t\t\t\t},\n\t\t\t)\n\n\t\t\treturn\n\t\t}\n\n\t\t// Remove centered class if it exists\n\t\tdialog.classList.remove('centered')\n\n\t\t// Use Floating UI's autoUpdate to continually update position\n\t\tif (this.virtualReference) {\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(this.virtualReference, dialog, () => this.updatePosition(dialog), {\n\t\t\t\tancestorScroll: true,\n\t\t\t\tancestorResize: true,\n\t\t\t\telementResize: true,\n\t\t\t\tanimationFrame: true, // Enable continuous updates for smoother repositioning\n\t\t\t})\n\n\t\t\t// Initial positioning\n\t\t\tthis.updatePosition(dialog)\n\t\t}\n\t}\n\n\t/**\n\t * Update dialog position using Floating UI\n\t */\n\tprivate async updatePosition(dialog: HTMLElement) {\n\t\tif (!this.virtualReference) return\n\n\t\t// Force window bounds recalculation on resize\n\t\tif (this.position.x > 0 && this.position.y > 0) {\n\t\t\t// Update virtual reference to consider current window size\n\t\t\tconst viewportWidth = window.innerWidth\n\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t// Ensure position is constrained to current viewport\n\t\t\tconst x = Math.min(this.position.x, viewportWidth - 20)\n\t\t\tconst y = Math.min(this.position.y, viewportHeight - 20)\n\n\t\t\t// Update virtual reference with current viewport-constrained position\n\t\t\tthis.virtualReference = {\n\t\t\t\tgetBoundingClientRect() {\n\t\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\n\t\tconst placement: Placement = 'bottom-start'\n\t\tconst strategy: Strategy = 'absolute'\n\t\tconst margin = 20 // Standard margin from edges\n\n\t\tconst { x, y } = await computePosition(this.virtualReference, dialog, {\n\t\t\tplacement,\n\t\t\tstrategy,\n\t\t\tmiddleware: [\n\t\t\t\t// Offset from the reference point\n\t\t\t\toffset(margin),\n\n\t\t\t\t// Flip to opposite side if no space\n\t\t\t\tflip({\n\t\t\t\t\tfallbackPlacements: ['top-start', 'bottom-end', 'top-end'],\n\t\t\t\t\tfallbackStrategy: 'bestFit',\n\t\t\t\t}),\n\n\t\t\t\t// Shift along the preferred axis to stay in view\n\t\t\t\tshift({\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\n\t\t\t\t// Resize dialog if needed\n\t\t\t\tsize({\n\t\t\t\t\tapply({ availableWidth, availableHeight, elements }) {\n\t\t\t\t\t\t// If dialog is wider than available space\n\t\t\t\t\t\tif (elements.floating.offsetWidth > availableWidth) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxWidth: `${Math.max(availableWidth - margin * 2, 280)}px`, // Keep at least 280px if possible\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If dialog is taller than available space\n\t\t\t\t\t\tif (elements.floating.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxHeight: `${availableHeight - margin * 2}px`,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\t\t\t],\n\t\t})\n\n\t\t// Apply the computed position\n\t\tObject.assign(dialog.style, {\n\t\t\tleft: `${Math.round(x)}px`,\n\t\t\ttop: `${Math.round(y)}px`,\n\t\t\ttransform: 'none', // Remove any transform that might interfere\n\t\t})\n\t}\n\n\t/**\n\t * Handle component disconnection from DOM\n\t */\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback()\n\n\t\t// Clean up subscriptions\n\t\tif (this.resizeSubscription) {\n\t\t\tthis.resizeSubscription.unsubscribe()\n\t\t\tthis.resizeSubscription = undefined\n\t\t}\n\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Handle lifecycle callback when dialog is first rendered\n\t */\n\tfirstUpdated() {\n\t\tconst dialog = this.shadowRoot?.querySelector('.dialog') as HTMLElement\n\t\tif (!dialog) return\n\n\t\t// Set up positioning with Floating UI\n\t\tthis.setupPositioning(dialog)\n\n\t\t// Set up window resize subscription using RxJS with debounce\n\t\tthis.resizeSubscription = fromEvent(window, 'resize')\n\t\t\t.pipe(debounceTime(50)) // Faster response time\n\t\t\t.subscribe(() => {\n\t\t\t\t// Get current viewport dimensions\n\t\t\t\tconst viewportWidth = window.innerWidth\n\t\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t\t// If using CSS centered positioning, ensure it stays centered\n\t\t\t\tconst isCentered =\n\t\t\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\t\t\tif (isCentered) {\n\t\t\t\t\t// Update position to new center\n\t\t\t\t\tthis.position = {\n\t\t\t\t\t\tx: viewportWidth / 2,\n\t\t\t\t\t\ty: viewportHeight / 2,\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Always update position on resize\n\t\t\t\tthis.updatePosition(dialog)\n\t\t\t})\n\t}\n\n\t/**\n\t * Handle confirm action\n\t */\n\tprivate handleConfirm() {\n\t\tthis.hide(true)\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('confirm', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\t/**\n\t * Handle cancel action\n\t */\n\tprivate handleCancel() {\n\t\tthis.hide(false)\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('cancel', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\t/**\n\t * Get the CSS class for the confirm button based on color\n\t */\n\tprivate getConfirmButtonClass(): string {\n\t\t// Map confirmColor to appropriate CSS classes\n\t\tconst colorMap = {\n\t\t\terror: 'bg-red-600 hover:bg-red-700 text-white',\n\t\t\twarning: 'bg-orange-600 hover:bg-orange-700 text-white',\n\t\t\tsuccess: 'bg-green-600 hover:bg-green-700 text-white',\n\t\t\tprimary: ''\n\t\t}\n\n\t\t// If variant is danger, use error color\n\t\tif (this.variant === 'danger' || this.confirmColor === 'error') {\n\t\t\treturn colorMap.error\n\t\t}\n\n\t\treturn colorMap[this.confirmColor || 'primary'] || ''\n\t}\n\n\trender() {\n\t\t// For initial rendering, use transform-based centering from CSS\n\t\t// firstUpdated will handle precise positioning after measuring\n\t\tconst hasCustomContent = this.querySelectorAll('[slot=\"content\"]').length > 0\n\t\t// Only show buttons if both confirmText and cancelText are non-empty strings\n\t\tconst showButtons =\n\t\t\tthis.confirmText && this.confirmText.trim() !== '' && this.cancelText && this.cancelText.trim() !== ''\n\n\t\treturn html`\n\t\t\t<div class=\"overlay\" @click=${this.handleCancel}></div>\n\n\t\t\t<div class=\"dialog\" role=\"alertdialog\" aria-modal=\"true\">\n\t\t\t\t<schmancy-surface rounded=\"all\" elevation=\"3\" type=\"containerHigh\">\n\t\t\t\t\t<schmancy-form @submit=${this.handleConfirm} class=\"p-4\">\n\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\tthis.title && this.title.trim() !== '',\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<schmancy-typography type=\"title\" token=\"md\" class=\"mb-1\"> ${this.title} </schmancy-typography>\n\t\t\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\t\t\tthis.subtitle && this.subtitle.trim() !== '',\n\t\t\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t\t\t<schmancy-typography type=\"subtitle\" token=\"xs\" class=\"mb-2\">\n\t\t\t\t\t\t\t\t\t\t\t${this.subtitle}\n\t\t\t\t\t\t\t\t\t\t</schmancy-typography>\n\t\t\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t\t\t\t() => html``\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t${hasCustomContent\n\t\t\t\t\t\t\t? html`<div class=\"${showButtons ? 'mb-4' : ''}\"><slot name=\"content\"></slot></div>`\n\t\t\t\t\t\t\t: when(\n\t\t\t\t\t\t\t\t\tthis.message && this.message.trim() !== '',\n\t\t\t\t\t\t\t\t\t() => html`<schmancy-typography type=\"body\" class=\"mb-4\"> ${this.message} </schmancy-typography>`,\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\tshowButtons,\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<div class=\"flex justify-end gap-3\">\n\t\t\t\t\t\t\t\t\t<schmancy-button variant=\"outlined\" @click=${this.handleCancel}> ${this.cancelText} </schmancy-button>\n\t\t\t\t\t\t\t\t\t<schmancy-button type=\"submit\" variant=\"filled\" class=${this.getConfirmButtonClass()}> ${this.confirmText} </schmancy-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t)}\n\t\t\t\t\t</schmancy-form>\n\t\t\t\t</schmancy-surface>\n\t\t\t</div>\n\t\t`\n\t}\n\n\t/**\n\t * Static helper for even simpler API\n\t */\n\tstatic async confirm(options: {\n\t\ttitle?: string\n\t\tsubtitle?: string\n\t\tmessage?: string\n\t\tconfirmText?: string\n\t\tcancelText?: string\n\t\tvariant?: 'default' | 'danger'\n\t\tposition?: { x: number; y: number } | MouseEvent | TouchEvent\n\t\twidth?: string\n\t}): Promise<boolean> {\n\t\t// Create dialog if it doesn't exist\n\t\tlet dialog = document.querySelector('confirm-dialog') as ConfirmDialog\n\n\t\tif (!dialog) {\n\t\t\tdialog = document.createElement('confirm-dialog') as ConfirmDialog\n\t\t\tdocument.body.appendChild(dialog)\n\t\t}\n\n\t\t// Set options\n\t\tif (options.title) dialog.title = options.title\n\t\tif (options.subtitle) dialog.subtitle = options.subtitle\n\t\tif (options.message) dialog.message = options.message\n\t\tif (options.confirmText) dialog.confirmText = options.confirmText\n\t\tif (options.cancelText) dialog.cancelText = options.cancelText\n\t\tif (options.variant) dialog.variant = options.variant\n\t\tif (options.width) dialog.style.setProperty('--dialog-width', options.width)\n\n\t\t// Show dialog and return promise\n\t\treturn dialog.show(options.position)\n\t}\n\n\t/**\n\t * Even simpler shorthand method - just pass message and optionally an event\n\t */\n\tstatic async ask(message: string, event?: MouseEvent | TouchEvent): Promise<boolean> {\n\t\treturn this.confirm({\n\t\t\tmessage,\n\t\t\tposition: event,\n\t\t})\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'confirm-dialog': ConfirmDialog\n\t}\n}\n","import { render, TemplateResult } from 'lit'\nimport { ConfirmDialog } from './dailog'\n\n/**\n * Dialog service options interface with component support\n */\nexport interface DialogOptions {\n\ttitle?: string\n\tsubtitle?: string\n\tmessage?: string\n\tconfirmText?: string\n\tcancelText?: string\n\tvariant?: 'default' | 'danger'\n\tconfirmColor?: 'primary' | 'error' | 'warning' | 'success' // Button color for confirm action\n\tposition?: { x: number; y: number } | MouseEvent | TouchEvent\n\n\t// New options for component rendering\n\tcontent?: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult)\n\twidth?: string\n\tonConfirm?: () => void\n\tonCancel?: () => void\n\thideActions?: boolean // Set to true to hide all buttons and title\n}\n\n/**\n * Dialog service for centralized dialog management.\n * Provides a simple API for showing dialogs with optional custom components.\n */\nexport class DialogService {\n\tprivate static instance: DialogService\n\n\t// Default dialog options\n\tprivate static DEFAULT_OPTIONS: Partial<DialogOptions> = {\n\t\ttitle: undefined,\n\t\tsubtitle: undefined,\n\t\tconfirmText: undefined,\n\t\tcancelText: undefined,\n\t\tvariant: 'default',\n\t\twidth: '360px',\n\t}\n\n\t// Track active dialogs to handle dismissing the most recent one\n\tprivate activeDialogs: ConfirmDialog[] = []\n\t\n\t// Track component dialogs (schmancy-dialog instances)\n\tprivate activeRawDialogs: any[] = []\n\n\t// Private constructor for singleton pattern\n\tprivate constructor() {}\n\n\t/**\n\t * Get the singleton instance\n\t */\n\tpublic static getInstance(): DialogService {\n\t\tif (!DialogService.instance) {\n\t\t\tDialogService.instance = new DialogService()\n\t\t}\n\t\treturn DialogService.instance\n\t}\n\n\t/**\n\t * Show a confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tpublic confirm(options: DialogOptions): Promise<boolean> {\n\t\t// Apply default options\n\t\tconst completeOptions = {\n\t\t\t...DialogService.DEFAULT_OPTIONS,\n\t\t\t...options,\n\t\t}\n\n\t\t// If no position is provided, center the dialog\n\t\tif (!completeOptions.position) {\n\t\t\tcompleteOptions.position = this.getCenteredPosition()\n\t\t}\n\n\t\t// Create or find the dialog\n\t\tlet dialog = document.querySelector('confirm-dialog') as ConfirmDialog\n\t\tif (!dialog) {\n\t\t\tdialog = document.createElement('confirm-dialog') as ConfirmDialog\n\t\t\tdocument.body.appendChild(dialog)\n\t\t}\n\n\t\t// Set basic options\n\t\tif (completeOptions.title) dialog.title = completeOptions.title\n\t\tif (completeOptions.subtitle) dialog.subtitle = completeOptions.subtitle\n\t\tif (completeOptions.message) dialog.message = completeOptions.message\n\t\tif (completeOptions.confirmText) dialog.confirmText = completeOptions.confirmText\n\t\tif (completeOptions.cancelText) dialog.cancelText = completeOptions.cancelText\n\t\tif (completeOptions.variant) dialog.variant = completeOptions.variant\n\t\tif (completeOptions.confirmColor) dialog.confirmColor = completeOptions.confirmColor\n\t\tif (completeOptions.width) dialog.style.setProperty('--dialog-width', completeOptions.width)\n\n\t\t// Handle custom content if provided\n\t\tif (completeOptions.content) {\n\t\t\tconst contentContainer = document.createElement('div')\n\t\t\tcontentContainer.slot = 'content'\n\n\t\t\tif (typeof completeOptions.content === 'function') {\n\t\t\t\tconst result = completeOptions.content()\n\t\t\t\tif (result instanceof HTMLElement) {\n\t\t\t\t\tcontentContainer.appendChild(result)\n\t\t\t\t} else {\n\t\t\t\t\trender(result, contentContainer)\n\t\t\t\t}\n\t\t\t} else if (completeOptions.content instanceof HTMLElement) {\n\t\t\t\tcontentContainer.appendChild(completeOptions.content)\n\t\t\t} else {\n\t\t\t\trender(completeOptions.content, contentContainer)\n\t\t\t}\n\n\t\t\tdialog.appendChild(contentContainer)\n\t\t}\n\n\t\t// Set up event listeners for optional callbacks\n\t\tif (completeOptions.onConfirm) {\n\t\t\tconst onConfirm = (_e: Event) => {\n\t\t\t\tcompleteOptions.onConfirm!()\n\t\t\t\tdialog.removeEventListener('confirm', onConfirm)\n\t\t\t}\n\t\t\tdialog.addEventListener('confirm', onConfirm)\n\t\t}\n\n\t\tif (completeOptions.onCancel) {\n\t\t\tconst onCancel = (_e: Event) => {\n\t\t\t\tcompleteOptions.onCancel!()\n\t\t\t\tdialog.removeEventListener('cancel', onCancel)\n\t\t\t}\n\t\t\tdialog.addEventListener('cancel', onCancel)\n\t\t}\n\n\t\t// Add this dialog to active dialogs\n\t\tthis.activeDialogs.push(dialog)\n\n\t\t// Show dialog and return promise\n\t\treturn dialog.show(completeOptions.position).finally(() => {\n\t\t\t// Remove from active dialogs when closed\n\t\t\tconst index = this.activeDialogs.indexOf(dialog)\n\t\t\tif (index !== -1) {\n\t\t\t\tthis.activeDialogs.splice(index, 1)\n\t\t\t}\n\n\t\t\t// Clean up the content when dialog closes\n\t\t\tif (completeOptions.content) {\n\t\t\t\tconst contentEl = dialog.querySelector('[slot=\"content\"]')\n\t\t\t\tif (contentEl) {\n\t\t\t\t\tdialog.removeChild(contentEl)\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\t/**\n\t * Show a dialog with custom component content\n\t * Always renders content directly without any headers or action buttons\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tpublic component(\n\t\tcontent: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult),\n\t\toptions: Omit<DialogOptions, 'content' | 'message'> = {},\n\t): Promise<boolean> {\n\t\t// Create a direct container for the component without any wrapping\n\t\tconst directContentContainer = document.createElement('div');\n\t\tdirectContentContainer.style.height = '100%';\n\t\tdirectContentContainer.style.width = '100%';\n\t\tdirectContentContainer.classList.add('schmancy-dialog-content-container');\n\t\t\n\t\t// Render the content directly\n\t\tif (typeof content === 'function') {\n\t\t\tconst result = content();\n\t\t\tif (result instanceof HTMLElement) {\n\t\t\t\tdirectContentContainer.appendChild(result);\n\t\t\t} else {\n\t\t\t\trender(result, directContentContainer);\n\t\t\t}\n\t\t} else if (content instanceof HTMLElement) {\n\t\t\tdirectContentContainer.appendChild(content);\n\t\t} else {\n\t\t\trender(content, directContentContainer);\n\t\t}\n\t\t\n\t\t// Create dialog if it doesn't exist\n\t\tlet dialog = document.querySelector('schmancy-dialog') as any;\n\t\tif (!dialog) {\n\t\t\tdialog = document.createElement('schmancy-dialog');\n\t\t\tdocument.body.appendChild(dialog);\n\t\t}\n\t\t\n\t\t// Always use raw component rendering with no actions\n\t\tdialog.appendChild(directContentContainer);\n\t\t\n\t\t// Set width from options\n\t\tif (options.width) {\n\t\t\tdialog.style.setProperty('--dialog-width', options.width);\n\t\t}\n\t\t\n\t\t// Add to active raw dialogs for dismiss functionality\n\t\tthis.activeRawDialogs.push(dialog);\n\t\t\n\t\t// Show dialog and return promise with cleanup\n\t\tconst promise = dialog.show(options.position);\n\t\treturn promise.finally(() => {\n\t\t\t// Clean up content when dialog closes\n\t\t\tif (directContentContainer && directContentContainer.parentNode) {\n\t\t\t\tdirectContentContainer.parentNode.removeChild(directContentContainer);\n\t\t\t}\n\t\t\t\n\t\t\t// Remove from active raw dialogs\n\t\t\tconst index = this.activeRawDialogs.indexOf(dialog);\n\t\t\tif (index !== -1) {\n\t\t\t\tthis.activeRawDialogs.splice(index, 1);\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Dismiss the most recently opened dialog (either confirm or component type)\n\t * @returns true if a dialog was dismissed, false if no dialogs were open\n\t */\n\tpublic dismiss(): boolean {\n\t\t// Try component dialog first (they're more likely to be on top)\n\t\tif (this.activeRawDialogs.length > 0) {\n\t\t\t// Get the most recently opened raw dialog (last in the array)\n\t\t\tconst dialog = this.activeRawDialogs[this.activeRawDialogs.length - 1];\n\t\t\t\n\t\t\t// Hide the dialog\n\t\t\tdialog.hide(false);\n\t\t\t\n\t\t\t// Remove from active dialogs\n\t\t\tthis.activeRawDialogs.pop();\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Fall back to confirm dialogs\n\t\tif (this.activeDialogs.length > 0) {\n\t\t\t// Get the most recently opened dialog (last in the array)\n\t\t\tconst dialog = this.activeDialogs[this.activeDialogs.length - 1];\n\t\t\t\n\t\t\t// Hide the dialog (with cancel result)\n\t\t\tdialog.hide(false);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Show a simple confirmation dialog with just a message\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tpublic ask(message: string, event?: MouseEvent | TouchEvent): Promise<boolean> {\n\t\treturn this.confirm({\n\t\t\tmessage,\n\t\t\tposition: event,\n\t\t})\n\t}\n\n\t/**\n\t * Show a danger confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tpublic danger(options: Omit<DialogOptions, 'variant'>): Promise<boolean> {\n\t\treturn this.confirm({\n\t\t\t...options,\n\t\t\tvariant: 'danger',\n\t\t})\n\t}\n\n\t/**\n\t * Get a centered position for the dialog\n\t */\n\tprivate getCenteredPosition(): { x: number; y: number } {\n\t\treturn {\n\t\t\tx: window.innerWidth / 2,\n\t\t\ty: window.innerHeight / 2,\n\t\t}\n\t}\n\n}\n\n/**\n * Global dialog utility - provides a quick way to show dialogs\n */\nexport const $dialog = {\n\t/**\n\t * Show a confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tconfirm: (options: DialogOptions): Promise<boolean> => {\n\t\treturn DialogService.getInstance().confirm(options)\n\t},\n\n\t/**\n\t * Show a simple confirmation dialog with just a message\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\task: (message: string, event?: MouseEvent | TouchEvent): Promise<boolean> => {\n\t\treturn DialogService.getInstance().ask(message, event)\n\t},\n\n\t/**\n\t * Show a danger confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tdanger: (options: Omit<DialogOptions, 'variant'>): Promise<boolean> => {\n\t\treturn DialogService.getInstance().danger(options)\n\t},\n\n\t/**\n\t * Show a dialog with custom component content\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tcomponent: (\n\t\tcontent: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult),\n\t\toptions?: Omit<DialogOptions, 'content' | 'message'>,\n\t): Promise<boolean> => {\n\t\treturn DialogService.getInstance().component(content, options)\n\t},\n\n\t/**\n\t * Show a simple dialog without title or actions, just content\n\t * This is an alias for component() since all component dialogs are now simple by design\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tsimple: (\n\t\tcontent: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult),\n\t\toptions?: Omit<DialogOptions, 'content' | 'message' | 'title' | 'confirmText' | 'cancelText'>,\n\t): Promise<boolean> => {\n\t\treturn DialogService.getInstance().component(content, options)\n\t},\n\n\t/**\n\t * Dismiss the most recently opened dialog\n\t * @returns true if a dialog was dismissed, false if no dialogs were open\n\t */\n\tdismiss: (): boolean => {\n\t\treturn DialogService.getInstance().dismiss()\n\t},\n}\n\nexport default DialogService","import { autoUpdate, computePosition, flip, offset, Placement, shift, size, Strategy } from '@floating-ui/dom'\nimport { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\nimport { fromEvent } from 'rxjs'\nimport { debounceTime } from 'rxjs/operators'\n\n/**\n * A basic dialog web component without title or actions\n *\n * @element schmancy-dialog\n * @slot default - Content slot for dialog body\n */\n@customElement('schmancy-dialog')\nexport class SchmancyDialog extends $LitElement(css`\n\t:host {\n\t\tposition: fixed;\n\t\tz-index: 10000;\n\t\tinset: 0;\n\t\tdisplay: none;\n\t\t--dialog-width: 360px;\n\t}\n\n\t:host([active]) {\n\t\tdisplay: block;\n\t}\n\n\t.overlay {\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tbackground: rgba(0, 0, 0, 0.4);\n\t}\n\n\t.dialog {\n\t\tposition: absolute;\n\t\tmax-width: var(--dialog-width);\n\t\twidth: max-content;\n\t\tmax-height: calc(100vh - 40px); /* Prevent exceeding viewport height */\n\t\toverflow: auto; /* Allow scrolling for oversized content */\n\t}\n\n\t/* Used when centered for initial positioning */\n\t.dialog.centered {\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -55%); /* Slight upward shift looks better */\n\t}\n`) {\n\t/**\n\t * Current position of the dialog\n\t */\n\tprivate position = { x: 0, y: 0 }\n\n\t/**\n\t * Current active promise resolver\n\t */\n\tprivate resolvePromise?: (value: boolean) => void\n\n\t/**\n\t * Store cleanup function for position auto-updates\n\t */\n\tprivate cleanupAutoUpdate?: () => void\n\n\t/**\n\t * Virtual element to use as reference for positioning\n\t */\n\tprivate virtualReference?: {\n\t\tgetBoundingClientRect: () => DOMRect\n\t}\n\n\t/**\n\t * Simple API: Show the dialog at a specific position\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tasync show(positionOrEvent?: { x: number; y: number } | MouseEvent | TouchEvent): Promise<boolean> {\n\t\t// Extract position from event or use direct coordinates\n\t\tlet x: number, y: number\n\n\t\tif (!positionOrEvent) {\n\t\t\t// Default to center of viewport if no position provided\n\t\t\tx = window.innerWidth / 2\n\t\t\ty = window.innerHeight / 2\n\t\t} else if ('clientX' in positionOrEvent) {\n\t\t\t// It's a mouse event\n\t\t\tx = positionOrEvent.clientX\n\t\t\ty = positionOrEvent.clientY\n\t\t} else if ('touches' in positionOrEvent && positionOrEvent.touches.length) {\n\t\t\t// It's a touch event\n\t\t\tx = positionOrEvent.touches[0].clientX\n\t\t\ty = positionOrEvent.touches[0].clientY\n\t\t} else {\n\t\t\t// It's a position object with x,y coordinates\n\t\t\tconst pos = positionOrEvent as { x: number; y: number }\n\t\t\tx = pos.x\n\t\t\ty = pos.y\n\t\t}\n\n\t\t// Store initial position\n\t\tthis.position = { x, y }\n\n\t\t// Create virtual reference element at the provided coordinates\n\t\tthis.virtualReference = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t},\n\t\t}\n\n\t\t// Make dialog active\n\t\tthis.setAttribute('active', '')\n\n\t\t// Return a promise that resolves when the user makes a choice\n\t\treturn new Promise<boolean>(resolve => {\n\t\t\tthis.resolvePromise = resolve\n\t\t})\n\t}\n\n\t/**\n\t * Simple API: Hide the dialog\n\t */\n\thide(result = false) {\n\t\tthis.removeAttribute('active')\n\n\t\t// Clean up any auto-update subscription\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\n\t\t// Resolve any pending promise\n\t\tif (this.resolvePromise) {\n\t\t\tthis.resolvePromise(result)\n\t\t\tthis.resolvePromise = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Set up position auto-updating when dialog content changes or window resizes\n\t */\n\tprivate setupPositioning(dialog: HTMLElement) {\n\t\tconst viewportWidth = window.innerWidth\n\t\tconst viewportHeight = window.innerHeight\n\n\t\t// Check if this is a centered dialog\n\t\tconst isCentered =\n\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\tif (isCentered) {\n\t\t\t// For centered dialogs, use CSS-based centering\n\t\t\tdialog.classList.add('centered')\n\n\t\t\t// Always set up auto-update for content changes, even for centered dialogs\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(\n\t\t\t\tdocument.body, // Use body as reference for centered dialogs\n\t\t\t\tdialog,\n\t\t\t\t() => {\n\t\t\t\t\t// If dialog has the centered class, ensure it stays visible\n\t\t\t\t\t// even when content changes its dimensions\n\t\t\t\t\tif (dialog.classList.contains('centered')) {\n\t\t\t\t\t\t// Adjust max-height to ensure dialog stays within viewport\n\t\t\t\t\t\tconst availableHeight = window.innerHeight - 40\n\t\t\t\t\t\tif (dialog.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tdialog.style.maxHeight = `${availableHeight}px`\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\telementResize: true,\n\t\t\t\t\tancestorScroll: true,\n\t\t\t\t},\n\t\t\t)\n\n\t\t\treturn\n\t\t}\n\n\t\t// Remove centered class if it exists\n\t\tdialog.classList.remove('centered')\n\n\t\t// Use Floating UI's autoUpdate to continually update position\n\t\tif (this.virtualReference) {\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(this.virtualReference, dialog, () => this.updatePosition(dialog), {\n\t\t\t\tancestorScroll: true,\n\t\t\t\tancestorResize: true,\n\t\t\t\telementResize: true,\n\t\t\t\tanimationFrame: true, // Enable continuous updates for smoother repositioning\n\t\t\t})\n\n\t\t\t// Initial positioning\n\t\t\tthis.updatePosition(dialog)\n\t\t}\n\t}\n\n\t/**\n\t * Update dialog position using Floating UI\n\t */\n\tprivate async updatePosition(dialog: HTMLElement) {\n\t\tif (!this.virtualReference) return\n\n\t\t// Force window bounds recalculation on resize\n\t\tif (this.position.x > 0 && this.position.y > 0) {\n\t\t\t// Update virtual reference to consider current window size\n\t\t\tconst viewportWidth = window.innerWidth\n\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t// Ensure position is constrained to current viewport\n\t\t\tconst x = Math.min(this.position.x, viewportWidth - 20)\n\t\t\tconst y = Math.min(this.position.y, viewportHeight - 20)\n\n\t\t\t// Update virtual reference with current viewport-constrained position\n\t\t\tthis.virtualReference = {\n\t\t\t\tgetBoundingClientRect() {\n\t\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\n\t\tconst placement: Placement = 'bottom-start'\n\t\tconst strategy: Strategy = 'absolute'\n\t\tconst margin = 20 // Standard margin from edges\n\n\t\tconst { x, y } = await computePosition(this.virtualReference, dialog, {\n\t\t\tplacement,\n\t\t\tstrategy,\n\t\t\tmiddleware: [\n\t\t\t\t// Offset from the reference point\n\t\t\t\toffset(margin),\n\n\t\t\t\t// Flip to opposite side if no space\n\t\t\t\tflip({\n\t\t\t\t\tfallbackPlacements: ['top-start', 'bottom-end', 'top-end'],\n\t\t\t\t\tfallbackStrategy: 'bestFit',\n\t\t\t\t}),\n\n\t\t\t\t// Shift along the preferred axis to stay in view\n\t\t\t\tshift({\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\n\t\t\t\t// Resize dialog if needed\n\t\t\t\tsize({\n\t\t\t\t\tapply({ availableWidth, availableHeight, elements }) {\n\t\t\t\t\t\t// If dialog is wider than available space\n\t\t\t\t\t\tif (elements.floating.offsetWidth > availableWidth) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxWidth: `${Math.max(availableWidth - margin * 2, 280)}px`, // Keep at least 280px if possible\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If dialog is taller than available space\n\t\t\t\t\t\tif (elements.floating.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxHeight: `${availableHeight - margin * 2}px`,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\t\t\t],\n\t\t})\n\n\t\t// Apply the computed position\n\t\tObject.assign(dialog.style, {\n\t\t\tleft: `${Math.round(x)}px`,\n\t\t\ttop: `${Math.round(y)}px`,\n\t\t\ttransform: 'none', // Remove any transform that might interfere\n\t\t})\n\t}\n\n\t// Store resize subscription\n\tprivate resizeSubscription?: { unsubscribe: () => void }\n\n\t/**\n\t * Handle component disconnection from DOM\n\t */\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback()\n\n\t\t// Clean up subscriptions\n\t\tif (this.resizeSubscription) {\n\t\t\tthis.resizeSubscription.unsubscribe()\n\t\t\tthis.resizeSubscription = undefined\n\t\t}\n\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Handle lifecycle callback when dialog is first rendered\n\t */\n\tfirstUpdated() {\n\t\tconst dialog = this.shadowRoot?.querySelector('.dialog') as HTMLElement\n\t\tif (!dialog) return\n\n\t\t// Set up positioning with Floating UI\n\t\tthis.setupPositioning(dialog)\n\n\t\t// Set up window resize subscription using RxJS with debounce\n\t\tthis.resizeSubscription = fromEvent(window, 'resize')\n\t\t\t.pipe(debounceTime(50)) // Faster response time\n\t\t\t.subscribe(() => {\n\t\t\t\t// Get current viewport dimensions\n\t\t\t\tconst viewportWidth = window.innerWidth\n\t\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t\t// If using CSS centered positioning, ensure it stays centered\n\t\t\t\tconst isCentered =\n\t\t\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\t\t\tif (isCentered) {\n\t\t\t\t\t// Update position to new center\n\t\t\t\t\tthis.position = {\n\t\t\t\t\t\tx: viewportWidth / 2,\n\t\t\t\t\t\ty: viewportHeight / 2,\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Always update position on resize\n\t\t\t\tthis.updatePosition(dialog)\n\t\t\t})\n\t}\n\n\t/**\n\t * Handle close action\n\t */\n\tprivate handleClose() {\n\t\tthis.hide(false)\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('close', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\trender() {\n\t\treturn html`\n\t\t\t<div class=\"overlay\" @click=${this.handleClose}></div>\n\n\t\t\t<div class=\"dialog\" role=\"dialog\" aria-modal=\"true\">\n\t\t\t\t<schmancy-surface rounded=\"all\" elevation=\"3\" type=\"containerHigh\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</schmancy-surface>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-dialog': SchmancyDialog\n\t}\n}\n","import { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n/**\n * A basic dialog content component that doesn't add any padding or styling\n * Used for rendering raw content in a dialog\n *\n * @element schmancy-dialog-content\n * @slot default - Content slot for dialog content without any styling\n */\n@customElement('schmancy-dialog-content')\nexport class SchmancyDialogContent extends $LitElement(css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`) {\n render() {\n return html`<slot></slot>`\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'schmancy-dialog-content': SchmancyDialogContent\n }\n}"],"names":["ConfirmDialog","$LitElement","css","super","arguments","this","title","subtitle","message","confirmText","cancelText","variant","position","x","y","show","positionOrEvent","clientX","clientY","touches","length","pos","window","innerWidth","innerHeight","virtualReference","getBoundingClientRect","DOMRect","setAttribute","Promise","resolve","resolvePromise","confirmed","removeAttribute","cleanupAutoUpdate","dialog","viewportWidth","viewportHeight","Math","abs","classList","add","autoUpdate","document","body","contains","availableHeight","offsetHeight","style","maxHeight","elementResize","ancestorScroll","remove","updatePosition","ancestorResize","animationFrame","min","computePosition","placement","strategy","middleware","offset","flip","fallbackPlacements","fallbackStrategy","shift","padding","size","apply","availableWidth","elements","floating","offsetWidth","Object","assign","maxWidth","max","margin","left","round","top","transform","disconnectedCallback","resizeSubscription","unsubscribe","firstUpdated","shadowRoot","querySelector","setupPositioning","fromEvent","pipe","debounceTime","subscribe","handleConfirm","hide","dispatchEvent","CustomEvent","bubbles","composed","getConfirmButtonClass","colorMap","error","warning","success","primary","confirmColor","hasCustomContent","querySelectorAll","showButtons","trim","html","handleCancel","when","options","createElement","appendChild","width","setProperty","event","confirm","__decorateClass","property","type","String","prototype","attribute","customElement","DialogService","constructor","activeDialogs","activeRawDialogs","getInstance","instance","completeOptions","DEFAULT_OPTIONS","getCenteredPosition","content","contentContainer","slot","result","HTMLElement","render","onConfirm","_e","removeEventListener","addEventListener","onCancel","push","finally","index","indexOf","splice","contentEl","removeChild","directContentContainer","height","parentNode","pop","_v","$dialog","ask","danger","component","simple","dismiss","SchmancyDialog","handleClose","SchmancyDialogContent"],"mappings":";;;;;;;;;;;;;;AAea,IAAAA,IAAN,cAA4BC,EAAYC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,CAAxC,EAAA;AAAA,EAAA,cAAAC;AAAAA,UAAAA,GAAAC,SAsCEC,GAAAA,KAAAC,QAAA,QAMGD,KAAAE,WAAAA,QAMDF,KAAAG,UAAA,QAMIH,KAAAI,cAAA,WAMDJ,KAAAK,aAAA,UAMmBL,KAAAM,UAAA,WAWhCN,KAAQO,WAAW,EAAEC,GAAG,GAAGC,GAAG,EAAA;AAAA,EAAE;AAAA,EA4BhC,MAAMC,KAAKC,GAEV;AAAA,QAAIH,GAAWC;AAEf,QAAKE,EAIL,KAAW,aAAaA,EAEvBH,KAAIG,EAAgBC,SACpBH,IAAIE,EAAgBE;AAAAA,aACV,aAAaF,KAAmBA,EAAgBG,QAAQC,OAE9DP,KAAAG,EAAgBG,QAAQ,CAAA,EAAGF,SAC3BH,IAAAE,EAAgBG,QAAQ,CAAGD,EAAAA;AAAAA,SACzB;AAEN,YAAMG,IAAML;AACZH,UAAIQ,EAAIR,GACRC,IAAIO,EAAIP;AAAAA,IAAA;AAAA,QAdRD,KAAIS,O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AA,EAGD,SACQ;AAAA,WAAAY;AAAAA,iCACwBzG,KAAKiK,WAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,EAAW;AApUpCD;AAAAA;;;GAAN,CADNvC,EAAc,iBACFuC,CAAAA,GAAAA,CAAAA;;ACFA,IAAAE,IAAN,cAAoCtK,EAAYC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;EAOrD,SAAA2I;AACS,WAAA/B;AAAAA,EAAA;;AAREyD;;;GAAN,CADNzC,EAAc,6BACFyC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flex-DFGC-5rG.js","sources":["../src/layout/layout.ts","../src/layout/flex/flex.ts","../src/layout/grid/grid.ts","../src/layout/scroll/scroll.ts","../src/layout/v2/flex.ts"],"sourcesContent":["import { TailwindElement } from '@mixins/index'\nimport { property } from 'lit/decorators.js'\n\nexport default class Layout extends TailwindElement() {\n\tstatic styles = [this.styles]\n\tlayout = true\n\t@property({ type: Boolean }) center: boolean | undefined = undefined\n\t@property({ type: String }) padding: string | undefined\n\t@property({ type: String }) margin: string | undefined\n\t@property({ type: String }) width: string | undefined\n\t@property({ type: String }) height: string | undefined\n\t@property({ type: String }) minWidth: string | undefined\n\t@property({ type: String }) minHeight: string | undefined\n\t@property({ type: String }) maxWidth: string | undefined\n\t@property({ type: String }) maxHeight: string | undefined\n\t@property({ type: String }) display:\n\t\t| 'block'\n\t\t| 'inline-block'\n\t\t| 'inline'\n\t\t| 'flex'\n\t\t| 'inline-flex'\n\t\t| 'grid'\n\t\t| 'inline-grid'\n\t\t| 'table'\n\t\t| 'inline-table'\n\t\t| 'flow-root'\n\t\t| 'none'\n\t\t| undefined = undefined\n\t@property({ type: String }) overflow: 'visible' | 'hidden' | 'scroll' | 'auto' | undefined = undefined\n\t@property({ type: String }) overflowX: 'visible' | 'hidden' | 'scroll' | 'auto' | undefined = undefined\n\t@property({ type: String }) overflowY: 'visible' | 'hidden' | 'scroll' | 'auto' | undefined = undefined\n\t@property({ type: String }) position: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky' | undefined = undefined\n\t@property({ type: String }) top: string | undefined\n\t@property({ type: String }) right: string | undefined\n\t@property({ type: String }) bottom: string | undefined\n\t@property({ type: String }) left: string | undefined\n\t@property({ type: String }) inset: string | undefined\n\t@property({ type: String }) zIndex: string | undefined\n\n\t@property({ type: String }) border: string | undefined\n\t@property({ type: String }) borderTop: string | undefined\n\t@property({ type: String }) borderRight: string | undefined\n\t@property({ type: String }) borderBottom: string | undefined\n\t@property({ type: String }) borderLeft: string | undefined\n\t@property({ type: String }) borderColor: string | undefined\n\t@property({ type: String }) borderRadius: string | undefined\n\t@property({ type: String }) borderWidth: string | undefined\n\n\t@property({ type: String }) boxShadow: string | undefined\n\t@property({ type: String }) opacity: string | undefined\n\t@property({ type: String }) background: string | undefined\n\t@property({ type: String }) backgroundImage: string | undefined\n\t@property({ type: String }) backgroundPosition: string | undefined\n\t@property({ type: String }) backgroundSize: string | undefined\n\t@property({ type: String }) backgroundRepeat: string | undefined\n\t@property({ type: String }) backgroundAttachment: string | undefined\n\t@property({ type: String }) backgroundColor: string | undefined\n\t@property({ type: String }) backgroundClip: string | undefined\n\t@property({ type: String }) backgroundOrigin: string | undefined\n\t@property({ type: String }) backgroundBlendMode: string | undefined\n\t@property({ type: String }) filter: string | undefined\n\t@property({ type: String }) backdropFilter: string | undefined\n\n\tconnectedCallback(): void {\n\t\tsuper.connectedCallback()\n\t\tthis.style.setProperty('padding', this.padding ?? '')\n\t\tthis.style.setProperty('margin', this.margin ?? '')\n\t\tthis.style.setProperty('width', this.width ?? '')\n\t\tthis.style.setProperty('height', this.height ?? '')\n\t\tthis.style.setProperty('min-width', this.minWidth ?? '')\n\t\tthis.style.setProperty('min-height', this.minHeight ?? '')\n\t\tthis.style.setProperty('max-width', this.maxWidth ?? '')\n\t\tthis.style.setProperty('max-height', this.maxHeight ?? '')\n\t\tthis.style.setProperty('display', this.display ?? '')\n\t\tthis.style.setProperty('overflow', this.overflow ?? '')\n\t\tthis.style.setProperty('overflow-x', this.overflowX ?? '')\n\t\tthis.style.setProperty('overflow-y', this.overflowY ?? '')\n\t\tthis.style.setProperty('position', this.position ?? '')\n\t\tthis.style.setProperty('top', this.top ?? '')\n\t\tthis.style.setProperty('right', this.right ?? '')\n\t\tthis.style.setProperty('bottom', this.bottom ?? '')\n\t\tthis.style.setProperty('left', this.left ?? '')\n\t\tthis.style.setProperty('inset', this.inset ?? '')\n\t\tthis.style.setProperty('z-index', this.zIndex ?? '')\n\t\tthis.style.setProperty('border', this.border ?? '')\n\t\tthis.style.setProperty('border-top', this.borderTop ?? '')\n\t\tthis.style.setProperty('border-right', this.borderRight ?? '')\n\t\tthis.style.setProperty('border-bottom', this.borderBottom ?? '')\n\t\tthis.style.setProperty('border-left', this.borderLeft ?? '')\n\t\tthis.style.setProperty('border-color', this.borderColor ?? '')\n\t\tthis.style.setProperty('border-radius', this.borderRadius ?? '')\n\t\tthis.style.setProperty('border-width', this.borderWidth ?? '')\n\t\tthis.style.setProperty('box-shadow', this.boxShadow ?? '')\n\t\tthis.style.setProperty('opacity', this.opacity ?? '')\n\t\tthis.style.setProperty('background', this.background ?? '')\n\t\tthis.style.setProperty('background-image', this.backgroundImage ?? '')\n\t\tthis.style.setProperty('background-position', this.backgroundPosition ?? '')\n\t\tthis.style.setProperty('background-size', this.backgroundSize ?? '')\n\t\tthis.style.setProperty('background-repeat', this.backgroundRepeat ?? '')\n\t\tthis.style.setProperty('background-attachment', this.backgroundAttachment ?? '')\n\t\tthis.style.setProperty('background-color', this.backgroundColor ?? '')\n\t\tthis.style.setProperty('background-clip', this.backgroundClip ?? '')\n\t\tthis.style.setProperty('background-origin', this.backgroundOrigin ?? '')\n\t\tthis.style.setProperty('background-blend-mode', this.backgroundBlendMode ?? '')\n\t\tthis.style.setProperty('filter', this.filter ?? '')\n\t\tthis.style.setProperty('backdrop-filter', this.backdropFilter ?? '')\n\t\tif (this.center) {\n\t\t\tthis.style.setProperty('margin-left', 'auto')\n\t\t\tthis.style.setProperty('margin-right', 'auto')\n\t\t}\n\t}\n}\n","import { html, unsafeCSS } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport Layout from '../layout'\nimport style from './flex.scss?inline'\n@customElement('schmancy-flex')\nexport class SchmancyFlex extends Layout {\n\tstatic styles = [Layout.styles, unsafeCSS(style)]\n\tlayout = true\n\t@property({ type: String, reflect: true }) flow: 'row' | 'row-reverse' | 'col' | 'col-reverse' = 'col'\n\t@property({ type: String, reflect: true }) wrap: 'wrap' | 'nowrap' | 'wrap-reverse' = 'wrap'\n\t@property({ type: String, reflect: true }) align: 'start' | 'center' | 'end' | 'stretch' | 'baseline' = 'start'\n\t@property({ type: String, reflect: true }) justify: 'start' | 'center' | 'end' | 'stretch' | 'between' = 'start'\n\t@property({ type: String, reflect: true }) gap: 'none' | 'sm' | 'md' | 'lg' = 'none'\n\n\trender() {\n\t\tconst classes = {\n\t\t\tflex: true,\n\t\t\t// Direction\n\t\t\t'flex-col': this.flow === 'row',\n\t\t\t'flex-col-reverse': this.flow === 'row-reverse',\n\t\t\t'flex-row': this.flow === 'col',\n\t\t\t'flex-row-reverse': this.flow === 'col-reverse',\n\t\t\t// Wrap\n\t\t\t'flex-wrap': this.wrap === 'wrap',\n\t\t\t'flex-wrap-reverse': this.wrap === 'wrap-reverse',\n\t\t\t'flex-nowrap': this.wrap === 'nowrap',\n\t\t\t// Align\n\t\t\t'items-start': this.align === 'start',\n\t\t\t'items-center': this.align === 'center',\n\t\t\t'items-end': this.align === 'end',\n\t\t\t'items-stretch': this.align === 'stretch',\n\t\t\t'justify-baseline': this.align === 'baseline',\n\n\t\t\t// Justify\n\t\t\t'justify-center': this.justify === 'center',\n\t\t\t'justify-end': this.justify === 'end',\n\t\t\t'justify-start': this.justify === 'start',\n\t\t\t'justify-stretch': this.justify === 'stretch',\n\t\t\t'justify-between': this.justify === 'between',\n\n\t\t\t// Gap\n\t\t\t'gap-0': this.gap === 'none',\n\t\t\t'gap-2': this.gap === 'sm',\n\t\t\t'gap-4': this.gap === 'md',\n\t\t\t'gap-8': this.gap === 'lg',\n\t\t}\n\n\t\tconst styles = {}\n\t\treturn html`\n\t\t\t<section class=${classMap(classes)} style=${styleMap(styles)}>\n\t\t\t\t<slot></slot>\n\t\t\t</section>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-flex': SchmancyFlex\n\t}\n}\n","import { html, unsafeCSS } from 'lit'\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js'\nimport { debounceTime, distinctUntilChanged, fromEvent, map, startWith, takeUntil } from 'rxjs'\nimport Layout from '../layout'\nimport style from './grid.scss?inline'\n\n@customElement('schmancy-grid')\nexport class SchmancyGrid extends Layout {\n\tstatic styles = [Layout.styles, unsafeCSS(style)]\n\tlayout = true\n\t@property({ type: String }) flow: 'row' | 'col' | 'dense' | 'row-dense' | 'col-dense' = 'row'\n\t@property({ type: String }) align: 'start' | 'center' | 'end' | 'stretch' | 'baseline' = 'stretch'\n\t@property({ type: String }) justify: 'start' | 'center' | 'end' | 'stretch' = 'stretch'\n\t@property({ type: String }) content: 'start' | 'center' | 'end' | 'stretch' | 'around' | 'evenly' | 'between' =\n\t\t'stretch'\n\t@property({ type: String }) gap: 'none' | 'xs' | 'sm' | 'md' | 'lg' = 'none'\n\n\t@property({ type: String }) cols?: string\n\t@property({ type: String }) rows?: string\n\t@property({ type: Object }) rcols?: {\n\t\txs?: string | number\n\t\tsm?: string | number\n\t\tmd?: string | number\n\t\tlg?: string | number\n\t\txl?: string | number\n\t\t'2xl'?: string | number\n\t}\n\n\t@property({ type: Boolean }) wrap = false\n\n\t@queryAssignedElements() assignedElements!: HTMLElement[]\n\n\tfirstUpdated() {\n\t\tif (this.rcols)\n\t\t\tfromEvent<CustomEvent>(window, 'resize')\n\t\t\t\t.pipe(\n\t\t\t\t\tmap(event => event.target as Window),\n\t\t\t\t\tstartWith(1),\n\t\t\t\t\tmap(() => (this.clientWidth ? this.clientWidth : window.innerWidth)),\n\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t\t\tdebounceTime(10),\n\t\t\t\t\tmap(w => {\n\t\t\t\t\t\tlet cols\n\t\t\t\t\t\tif (this.rcols?.['2xl'] && w >= 1536) cols = this.rcols?.['2xl']\n\t\t\t\t\t\telse if (this.rcols?.xl && w >= 1280) cols = this.rcols?.xl\n\t\t\t\t\t\telse if (this.rcols?.lg && w >= 1024) cols = this.rcols?.lg\n\t\t\t\t\t\telse if (this.rcols?.md && w >= 768) cols = this.rcols?.md\n\t\t\t\t\t\telse if (this.rcols?.sm && w >= 640) cols = this.rcols?.sm\n\t\t\t\t\t\telse if (this.rcols?.xs && w < 640) cols = this.rcols?.xs\n\t\t\t\t\t\treturn cols\n\t\t\t\t\t}),\n\t\t\t\t)\n\t\t\t\t.subscribe(cols => {\n\t\t\t\t\tthis.cols = cols\n\t\t\t\t})\n\t}\n\n\trender() {\n\t\tconst classes = {\n\t\t\t'h-full': true,\n\t\t\t'grid flex-1': true,\n\t\t\t// flow classes: https://tailwindcss.com/docs/grid-auto-flow\n\t\t\t'grid-flow-row auto-rows-max': this.flow === 'row',\n\t\t\t'grid-flow-col auto-cols-max': this.flow === 'col',\n\t\t\t'grid-flow-row-dense': this.flow === 'row-dense',\n\t\t\t'grid-flow-col-dense': this.flow === 'col-dense',\n\t\t\t'grid-flow-dense': this.flow === 'dense',\n\n\t\t\t'justify-center': this.content === 'center',\n\t\t\t'justify-end': this.content === 'end',\n\t\t\t'justify-start': this.content === 'start',\n\t\t\t'justify-stretch': this.content === 'stretch',\n\t\t\t'justify-between': this.content === 'between',\n\t\t\t'justify-around': this.content === 'around',\n\t\t\t'justify-evenly': this.content === 'evenly',\n\n\t\t\t'justify-items-center': this.justify === 'center',\n\t\t\t'justify-items-end': this.justify === 'end',\n\t\t\t'justify-items-start': this.justify === 'start',\n\t\t\t'justify-items-stretch': this.justify === 'stretch',\n\t\t\t'items-center': this.align === 'center',\n\t\t\t'items-end': this.align === 'end',\n\t\t\t'items-start': this.align === 'start',\n\t\t\t'items-stretch': this.align === 'stretch',\n\t\t\t'items-baseline': this.align === 'baseline',\n\t\t\t'gap-0': this.gap === 'none',\n\t\t\t'gap-1': this.gap === 'xs',\n\t\t\t'gap-2': this.gap === 'sm',\n\t\t\t'gap-4': this.gap === 'md',\n\t\t\t'gap-8': this.gap === 'lg',\n\t\t\t'flex-nowrap': this.wrap,\n\t\t\t'flex-wrap': !this.wrap,\n\t\t}\n\t\tconst style = {\n\t\t\tgridTemplateRows: this.rows ? this.rows : undefined,\n\t\t\tgridTemplateColumns: this.cols ? this.cols : undefined,\n\t\t}\n\t\treturn html`\n\t\t\t<section class=\"${this.classMap(classes)}\" style=${this.styleMap(style)}>\n\t\t\t\t<slot> </slot>\n\t\t\t</section>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-grid': SchmancyGrid\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\nimport { debounceTime, filter, fromEvent, takeUntil } from 'rxjs'\n\n/**\n * Custom scroll event interface for the SchmancyScroll component.\n * Contains detailed information about the scroll state.\n */\nexport interface SchmancyScrollEvent\n\textends CustomEvent<{\n\t\t/** Current scroll position from the top */\n\t\tscrollTop: number\n\t\t/** Total scrollable height of the content */\n\t\tscrollHeight: number\n\t\t/** Visible height of the container */\n\t\tclientHeight: number\n\t\t/** Original scroll event */\n\t\te: Event\n\t\t/** Current scroll position from the left (for horizontal scrolling) */\n\t\tscrollLeft?: number\n\t\t/** Total scrollable width of the content (for horizontal scrolling) */\n\t\tscrollWidth?: number\n\t\t/** Visible width of the container (for horizontal scrolling) */\n\t\tclientWidth?: number\n\t}> {}\n\n/**\n * Command event interface for controlling SchmancyScroll components\n */\nexport interface SchmancyScrollCommandEvent\n\textends CustomEvent<{\n\t\t/** Target component name */\n\t\tname: string\n\t\t/** Command action to perform */\n\t\taction: 'scrollTo'\n\t\t/** Scroll position for scrollTo action */\n\t\ttop: number\n\t\t/** Horizontal scroll position for scrollTo action (optional) */\n\t\tleft?: number\n\t}> {}\n\n// Augment the HTMLElementEventMap to include our custom events\ndeclare global {\n\tinterface HTMLElementEventMap {\n\t\tscroll: SchmancyScrollEvent\n\t\t'schmancy-scroll-command': SchmancyScrollCommandEvent\n\t}\n}\n\n/**\n * A custom scrollable container with enhanced features.\n *\n * @fires {SchmancyScrollEvent} scroll - Fired when scrolling occurs (with a configurable debounce)\n * @slot - Default slot for content to be scrolled\n * @csspart scroller - The inner scrollable div element\n *\n * @example\n * ```html\n * <schmancy-scroll hide name=\"main-content\">\n * <div>Scrollable content goes here</div>\n * </schmancy-scroll>\n * ```\n *\n * @example\n * ```html\n * <schmancy-scroll direction=\"horizontal\" hide name=\"image-carousel\">\n * <div class=\"flex\">\n * <img src=\"image1.jpg\" alt=\"Image 1\">\n * <img src=\"image2.jpg\" alt=\"Image 2\">\n * </div>\n * </schmancy-scroll>\n * ```\n */\n@customElement('schmancy-scroll')\nexport class SchmancyScroll extends TailwindElement(css`\n\t:host {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\toverflow: hidden;\n\t\tbox-sizing: border-box; /* Ensures proper sizing */\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\tinset: 0px;\n\t}\n\t.scrollbar-hide {\n\t\t-ms-overflow-style: none; /* IE and Edge */\n\t\tscrollbar-width: none; /* Firefox */\n\t}\n\t.scrollbar-hide::-webkit-scrollbar {\n\t\tdisplay: none; /* Chrome, Safari, and Opera */\n\t}\n`) {\n\t/**\n\t * Determines whether the scrollbar is hidden.\n\t *\n\t * When `hide` is true, the inner scrollable div receives the `scrollbar-hide` class,\n\t * which hides scrollbars in supported browsers.\n\t *\n\t * @attr hide\n\t * @example <schmancy-scroll hide></schmancy-scroll>\n\t */\n\t@property({ type: Boolean, reflect: true })\n\tpublic hide = false\n\n\t/**\n\t * Optional name identifier for the component.\n\t * Used for targeting this specific component with global events.\n\t *\n\t * @attr name\n\t * @example <schmancy-scroll name=\"main-content\"></schmancy-scroll>\n\t */\n\t@property({ type: String, reflect: true })\n\tpublic name?: string\n\n\t/**\n\t * Direction of scrolling: vertical, horizontal, or both.\n\t * - vertical: Only allows vertical scrolling\n\t * - horizontal: Only allows horizontal scrolling\n\t * - both: Allows both horizontal and vertical scrolling (default)\n\t *\n\t * @attr direction\n\t * @example <schmancy-scroll direction=\"horizontal\"></schmancy-scroll>\n\t */\n\t@property({ type: String, reflect: true })\n\tpublic direction: 'vertical' | 'horizontal' | 'both' = 'both'\n\n\t/**\n\t * Reference to the inner scrollable div element\n\t * @public\n\t */\n\t@query('#scroller')\n\tscroller!: HTMLElement\n\n\t/**\n\t * Debounce time in milliseconds for the scroll event.\n\t * Higher values reduce the frequency of scroll events being dispatched.\n\t *\n\t * @attr debounce\n\t * @example <schmancy-scroll debounce=\"50\"></schmancy-scroll>\n\t */\n\t@property({ type: Number })\n\tpublic debounce = 10\n\n\t/**\n\t * Scrolls the container to the specified position\n\t * @param options - ScrollToOptions or a number representing the top position\n\t * @param top - For backward compatibility, if options is a number, this is treated as \"behavior\"\n\t */\n\tpublic override scrollTo(options?: ScrollToOptions | number, top?: number): void {\n\t\tif (!this.scroller) return\n\n\t\tif (typeof options === 'number') {\n\t\t\t// Legacy support for scrollTo(top, behavior)\n\t\t\tthis.scroller.scrollTo({\n\t\t\t\ttop: options,\n\t\t\t\tbehavior: top ? 'smooth' : 'auto',\n\t\t\t})\n\t\t} else if (options) {\n\t\t\tthis.scroller.scrollTo(options)\n\t\t} else {\n\t\t\tthis.scroller.scrollTo({\n\t\t\t\ttop: 0,\n\t\t\t\tleft: 0,\n\t\t\t\tbehavior: 'auto',\n\t\t\t})\n\t\t}\n\t}\n\n\t/**\n\t * Scrolls the container horizontally to the specified position\n\t * @param left - The horizontal position to scroll to (in pixels)\n\t * @param behavior - The scroll behavior ('auto' or 'smooth')\n\t */\n\tpublic scrollToLeft(left: number, behavior: ScrollBehavior = 'auto'): void {\n\t\tif (this.scroller) {\n\t\t\tthis.scroller.scrollTo({\n\t\t\t\tleft,\n\t\t\t\tbehavior,\n\t\t\t})\n\t\t}\n\t}\n\n\t/**\n\t * Called after the component's first update\n\t * Sets up the scroll event listener with debouncing\n\t * @protected\n\t */\n\tprotected firstUpdated(): void {\n\t\t// Set up scroll event listening with debounce\n\t\tfromEvent(this.scroller, 'scroll', {\n\t\t\tpassive: true,\n\t\t})\n\t\t\t.pipe(\n\t\t\t\tdebounceTime(this.debounce),\n\t\t\t\ttakeUntil(this.disconnecting), // Unsubscribe when the element is destroyed\n\t\t\t)\n\t\t\t.subscribe(e => {\n\t\t\t\t// Always include the original required properties for backward compatibility\n\t\t\t\tconst scrollTop = this.scroller.scrollTop\n\t\t\t\tconst scrollHeight = this.scroller.scrollHeight\n\t\t\t\tconst clientHeight = this.scroller.clientHeight\n\n\t\t\t\t// Include horizontal scroll information as optional properties\n\t\t\t\tconst scrollLeft = this.scroller.scrollLeft\n\t\t\t\tconst scrollWidth = this.scroller.scrollWidth\n\t\t\t\tconst clientWidth = this.scroller.clientWidth\n\n\t\t\t\tthis.dispatchEvent(\n\t\t\t\t\tnew CustomEvent('scroll', {\n\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\t// Original required properties first\n\t\t\t\t\t\t\tscrollTop,\n\t\t\t\t\t\t\tscrollHeight,\n\t\t\t\t\t\t\tclientHeight,\n\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t// New optional properties last\n\t\t\t\t\t\t\tscrollLeft,\n\t\t\t\t\t\t\tscrollWidth,\n\t\t\t\t\t\t\tclientWidth,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t}) as SchmancyScrollEvent,\n\t\t\t\t)\n\t\t\t})\n\n\t\t// Set up global command event listener\n\t\tfromEvent<SchmancyScrollCommandEvent>(window, '@schmancy:scrollTo')\n\t\t\t.pipe(\n\t\t\t\t// Only process events targeting this component by name\n\t\t\t\tfilter(e => this.name !== undefined && e.detail.name === this.name),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe(e => {\n\t\t\t\tif (e.detail.action === 'scrollTo' && typeof e.detail.top === 'number') {\n\t\t\t\t\tconst options: ScrollToOptions = {\n\t\t\t\t\t\tbehavior: 'smooth',\n\t\t\t\t\t\ttop: e.detail.top, // Required for backward compatibility\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add optional left position if provided\n\t\t\t\t\tif (typeof e.detail.left === 'number') {\n\t\t\t\t\t\toptions.left = e.detail.left\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.scrollTo(options)\n\t\t\t\t}\n\t\t\t})\n\t}\n\n\t/**\n\t * Renders the component template\n\t * @returns {TemplateResult} The template to render\n\t * @protected\n\t */\n\tprotected render() {\n\t\t// The classes are dynamically assigned based on the properties\n\t\tconst classes = {\n\t\t\t'h-full w-full inset-0 scroll-smooth overscroll-contain': true,\n\t\t\t'overflow-y-auto': this.direction !== 'horizontal',\n\t\t\t'overflow-y-hidden': this.direction === 'horizontal',\n\t\t\t'overflow-x-auto': this.direction !== 'vertical',\n\t\t\t'overflow-x-hidden': this.direction === 'vertical',\n\t\t\t'scrollbar-hide': this.hide,\n\t\t}\n\n\t\treturn html`\n\t\t\t<div class=\"relative inset-0 h-full w-full overscroll-none\">\n\t\t\t\t<div id=\"scroller\" part=\"scroller\" class=${this.classMap(classes)}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-scroll': SchmancyScroll\n\t}\n}\n","import { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport Layout from '../layout'\n\n/**\n * SchmancyFlex exposes a flex container with all the Tailwind CSS 4 options:\n *\n * - **Display**: By default uses `flex` but can be set to inline using the `inline` property.\n * - **Flow**: Accepts 'row', 'row-reverse', 'col', 'col-reverse' as well as grid‐like dense variants:\n * - Dense variants (`row-dense`, `col-dense`) force wrapping.\n * - **Wrap**: 'wrap', 'nowrap', or 'wrap-reverse'\n * - **Align Items**: 'start', 'center', 'end', 'stretch', or 'baseline'\n * - **Justify Content**: 'start', 'center', 'end', 'between', 'around', or 'evenly'\n * - **Align Content** (for multi-line flex containers): 'start', 'center', 'end', 'between', 'around', or 'evenly'\n * - **Gap**: Supports Tailwind’s spacing scale (e.g. 'none', '0', '1', '2', …, '64')\n */\n@customElement('sch-flex')\nexport class SchmancyFlexV2 extends Layout {\n\tstatic styles = [\n\t\tLayout.styles,\n\t\tcss`\n\t\t\t:host {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t`,\n\t]\n\t// If true, the container will use inline-flex instead of flex.\n\t@property({ type: Boolean, reflect: true })\n\tinline = false\n\n\t/**\n\t * Flow property that determines the flex direction.\n\t * Allowed values:\n\t * - Standard: 'row', 'row-reverse', 'col', 'col-reverse'\n\t * - Dense variants: 'row-dense', 'col-dense' (dense implies wrapping)\n\t */\n\t@property({ type: String, reflect: true })\n\tflow: 'row' | 'row-reverse' | 'col' | 'col-reverse' | 'row-dense' | 'col-dense' = 'row'\n\n\t/**\n\t * Flex-wrap options:\n\t * - 'wrap', 'nowrap', or 'wrap-reverse'\n\t */\n\t@property({ type: String, reflect: true })\n\twrap: 'wrap' | 'nowrap' | 'wrap-reverse' = 'wrap'\n\n\t/**\n\t * Align-items (vertical alignment of flex items):\n\t * - 'start', 'center', 'end', 'stretch', or 'baseline'\n\t */\n\t@property({ type: String, reflect: true })\n\talign: 'start' | 'center' | 'end' | 'stretch' | 'baseline' = 'stretch'\n\n\t/**\n\t * Justify-content (horizontal distribution):\n\t * - 'start', 'center', 'end', 'between', 'around', or 'evenly'\n\t */\n\t@property({ type: String, reflect: true })\n\tjustify: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly' = 'start'\n\n\t/**\n\t * Align-content (spacing between rows when wrapping):\n\t * - 'start', 'center', 'end', 'between', 'around', or 'evenly'\n\t */\n\t@property({ type: String, reflect: true })\n\tcontent?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'\n\n\t/**\n\t * Gap between flex items.\n\t * Options (based on Tailwind CSS 4 spacing scale):\n\t * - 'none', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '12', '16', '20', '24', '32', '40', '48', '56', or '64'\n\t */\n\t@property({ type: String, reflect: true })\n\tgap:\n\t\t| 'none'\n\t\t| '0'\n\t\t| '1'\n\t\t| '2'\n\t\t| '3'\n\t\t| '4'\n\t\t| '5'\n\t\t| '6'\n\t\t| '7'\n\t\t| '8'\n\t\t| '9'\n\t\t| '10'\n\t\t| '12'\n\t\t| '16'\n\t\t| '20'\n\t\t| '24'\n\t\t| '32'\n\t\t| '40'\n\t\t| '48'\n\t\t| '56'\n\t\t| '64' = 'none'\n\n\trender() {\n\t\t// Determine whether to use inline-flex or flex.\n\t\tconst baseDisplay = this.inline ? 'inline-flex' : 'flex'\n\n\t\t// Map the flow property to a flex-direction class.\n\t\t// (Dense variants use the same class as their standard counterparts.)\n\t\tlet directionClass = ''\n\t\tswitch (this.flow) {\n\t\t\tcase 'row':\n\t\t\tcase 'row-dense':\n\t\t\t\tdirectionClass = 'flex-row'\n\t\t\t\tbreak\n\t\t\tcase 'row-reverse':\n\t\t\t\tdirectionClass = 'flex-row-reverse'\n\t\t\t\tbreak\n\t\t\tcase 'col':\n\t\t\tcase 'col-dense':\n\t\t\t\tdirectionClass = 'flex-col'\n\t\t\t\tbreak\n\t\t\tcase 'col-reverse':\n\t\t\t\tdirectionClass = 'flex-col-reverse'\n\t\t\t\tbreak\n\t\t\tdefault:\n\t\t\t\tdirectionClass = 'flex-row'\n\t\t}\n\n\t\t// Dense variants force wrapping regardless of the wrap property.\n\t\tconst isDense = this.flow === 'row-dense' || this.flow === 'col-dense'\n\t\tconst effectiveWrap = isDense ? 'wrap' : this.wrap\n\n\t\tlet wrapClass = ''\n\t\tswitch (effectiveWrap) {\n\t\t\tcase 'wrap':\n\t\t\t\twrapClass = 'flex-wrap'\n\t\t\t\tbreak\n\t\t\tcase 'nowrap':\n\t\t\t\twrapClass = 'flex-nowrap'\n\t\t\t\tbreak\n\t\t\tcase 'wrap-reverse':\n\t\t\t\twrapClass = 'flex-wrap-reverse'\n\t\t\t\tbreak\n\t\t\tdefault:\n\t\t\t\twrapClass = 'flex-wrap'\n\t\t}\n\n\t\t// Map align-items.\n\t\tlet alignClass = ''\n\t\tswitch (this.align) {\n\t\t\tcase 'start':\n\t\t\t\talignClass = 'items-start'\n\t\t\t\tbreak\n\t\t\tcase 'center':\n\t\t\t\talignClass = 'items-center'\n\t\t\t\tbreak\n\t\t\tcase 'end':\n\t\t\t\talignClass = 'items-end'\n\t\t\t\tbreak\n\t\t\tcase 'stretch':\n\t\t\t\talignClass = 'items-stretch'\n\t\t\t\tbreak\n\t\t\tcase 'baseline':\n\t\t\t\talignClass = 'items-baseline'\n\t\t\t\tbreak\n\t\t\tdefault:\n\t\t\t\talignClass = 'items-stretch'\n\t\t}\n\n\t\t// Map justify-content.\n\t\tlet justifyClass = ''\n\t\tswitch (this.justify) {\n\t\t\tcase 'start':\n\t\t\t\tjustifyClass = 'justify-start'\n\t\t\t\tbreak\n\t\t\tcase 'center':\n\t\t\t\tjustifyClass = 'justify-center'\n\t\t\t\tbreak\n\t\t\tcase 'end':\n\t\t\t\tjustifyClass = 'justify-end'\n\t\t\t\tbreak\n\t\t\tcase 'between':\n\t\t\t\tjustifyClass = 'justify-between'\n\t\t\t\tbreak\n\t\t\tcase 'around':\n\t\t\t\tjustifyClass = 'justify-around'\n\t\t\t\tbreak\n\t\t\tcase 'evenly':\n\t\t\t\tjustifyClass = 'justify-evenly'\n\t\t\t\tbreak\n\t\t\tdefault:\n\t\t\t\tjustifyClass = 'justify-start'\n\t\t}\n\n\t\t// Map align-content (if provided).\n\t\tlet contentClass = ''\n\t\tif (this.content) {\n\t\t\tswitch (this.content) {\n\t\t\t\tcase 'start':\n\t\t\t\t\tcontentClass = 'content-start'\n\t\t\t\t\tbreak\n\t\t\t\tcase 'center':\n\t\t\t\t\tcontentClass = 'content-center'\n\t\t\t\t\tbreak\n\t\t\t\tcase 'end':\n\t\t\t\t\tcontentClass = 'content-end'\n\t\t\t\t\tbreak\n\t\t\t\tcase 'between':\n\t\t\t\t\tcontentClass = 'content-between'\n\t\t\t\t\tbreak\n\t\t\t\tcase 'around':\n\t\t\t\t\tcontentClass = 'content-around'\n\t\t\t\t\tbreak\n\t\t\t\tcase 'evenly':\n\t\t\t\t\tcontentClass = 'content-evenly'\n\t\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\t// Map gap value.\n\t\tconst gapClass = this.gap === 'none' ? 'gap-0' : `gap-${this.gap}`\n\n\t\t// Build the complete list of classes.\n\t\tconst classes = [baseDisplay, directionClass, wrapClass, alignClass, justifyClass, contentClass, gapClass]\n\t\t\t.filter(Boolean)\n\t\t\t.join(' ')\n\n\t\treturn html`\n\t\t\t<section class=${classes}>\n\t\t\t\t<slot></slot>\n\t\t\t</section>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sch-flex': SchmancyFlexV2\n\t}\n}\n"],"names":["Layout","TailwindElement","constructor","super","arguments","this","layout","center","display","overflow","overflowX","overflowY","position","connectedCallback","style","setProperty","padding","margin","width","height","minWidth","minHeight","maxWidth","maxHeight","top","right","bottom","left","inset","zIndex","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","borderWidth","boxShadow","opacity","background","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundColor","backgroundClip","backgroundOrigin","backgroundBlendMode","filter","backdropFilter","styles","_m","__decorateClass","property","type","Boolean","prototype","String","SchmancyFlex","flow","wrap","align","justify","gap","render","classes","flex","html","classMap","styleMap","unsafeCSS","reflect","customElement","SchmancyGrid","content","rcols","fromEvent","window","pipe","map","event","target","startWith","clientWidth","innerWidth","distinctUntilChanged","takeUntil","disconnecting","debounceTime","w","cols","xl","lg","md","sm","xs","subscribe","gridTemplateRows","rows","gridTemplateColumns","Object","queryAssignedElements","SchmancyScroll","css","hide","direction","debounce","options","scroller","scrollTo","behavior","passive","e","scrollTop","scrollHeight","clientHeight","scrollLeft","scrollWidth","dispatchEvent","CustomEvent","detail","bubbles","composed","name","action","query","Number","SchmancyFlexV2","inline","baseDisplay","directionClass","wrapClass","alignClass","justifyClass","contentClass","join"],"mappings":";;;;;;;;;;AAGqB,MAAAA,IAAA,MAAAA,UAAeC,EAAAA,EAAAA;AAAAA,EAApC,cAAAC;AAAAC,UAAAC,GAAAA,SAAAA,GAEUC,KAAAC,SAAAA,IACkDD,KAAAE,iBAqB5CF,KAAAG,UAAA,QAC8EH,KAAAI,WAAAA,QACCJ,KAAAK,YAAA,QACAL,KAAAM,YAAAA,QACcN,KAAAO;EAAA;AAAA,EAgC5G,oBAAAC;AACCV,UAAMU,kBAAAA,GACNR,KAAKS,MAAMC,YAAY,WAAWV,KAAKW,WAAW,EAAA,GAClDX,KAAKS,MAAMC,YAAY,UAAUV,KAAKY,UAAU,EAChDZ,GAAAA,KAAKS,MAAMC,YAAY,SAASV,KAAKa,SAAS,EAC9Cb,GAAAA,KAAKS,MAAMC,YAAY,UAAUV,KAAKc,UAAU,EAChDd,GAAAA,KAAKS,MAAMC,YAAY,aAAaV,KAAKe,YAAY,EACrDf,GAAAA,KAAKS,MAAMC,YAAY,cAAcV,KAAKgB,aAAa,EAAA,GACvDhB,KAAKS,MAAMC,YAAY,aAAaV,KAAKiB,YAAY,EAAA,GACrDjB,KAAKS,MAAMC,YAAY,cAAcV,KAAKkB,aAAa,EACvDlB,GAAAA,KAAKS,MAAMC,YAA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