@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
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
import { fromEvent as st, takeUntil as tt, debounceTime as lt, timer as ft } from "rxjs";
|
|
2
|
+
import "lit/directives/class-map.js";
|
|
3
|
+
import "lit/directives/style-map.js";
|
|
4
|
+
import { $ as mt } from "./litElement.mixin-Csoyz9Ih.js";
|
|
5
|
+
import "./tailwind.mixin-D0pn9tte.js";
|
|
6
|
+
import { g as ct } from "./_commonjsHelpers-Dw9sPFZy.js";
|
|
7
|
+
import { html as j } from "lit";
|
|
8
|
+
import { property as x, state as _, query as pt, customElement as yt } from "lit/decorators.js";
|
|
9
|
+
import { ifDefined as K } from "lit/directives/if-defined.js";
|
|
10
|
+
import { $ as Z } from "./dialog-service-noGCuxg1.js";
|
|
11
|
+
var nt, it = { exports: {} }, gt = (nt || (nt = 1, it.exports = function() {
|
|
12
|
+
var t = 1e3, a = 6e4, e = 36e5, o = "millisecond", y = "second", c = "minute", u = "hour", p = "day", P = "week", k = "month", N = "quarter", Y = "year", C = "date", M = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, U = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(h) {
|
|
13
|
+
var n = ["th", "st", "nd", "rd"], r = h % 100;
|
|
14
|
+
return "[" + h + (n[(r - 20) % 10] || n[r] || n[0]) + "]";
|
|
15
|
+
} }, O = function(h, n, r) {
|
|
16
|
+
var d = String(h);
|
|
17
|
+
return !d || d.length >= n ? h : "" + Array(n + 1 - d.length).join(r) + h;
|
|
18
|
+
}, ht = { s: O, z: function(h) {
|
|
19
|
+
var n = -h.utcOffset(), r = Math.abs(n), d = Math.floor(r / 60), s = r % 60;
|
|
20
|
+
return (n <= 0 ? "+" : "-") + O(d, 2, "0") + ":" + O(s, 2, "0");
|
|
21
|
+
}, m: function h(n, r) {
|
|
22
|
+
if (n.date() < r.date()) return -h(r, n);
|
|
23
|
+
var d = 12 * (r.year() - n.year()) + (r.month() - n.month()), s = n.clone().add(d, k), l = r - s < 0, f = n.clone().add(d + (l ? -1 : 1), k);
|
|
24
|
+
return +(-(d + (r - s) / (l ? s - f : f - s)) || 0);
|
|
25
|
+
}, a: function(h) {
|
|
26
|
+
return h < 0 ? Math.ceil(h) || 0 : Math.floor(h);
|
|
27
|
+
}, p: function(h) {
|
|
28
|
+
return { M: k, y: Y, w: P, d: p, D: C, h: u, m: c, s: y, ms: o, Q: N }[h] || String(h || "").toLowerCase().replace(/s$/, "");
|
|
29
|
+
}, u: function(h) {
|
|
30
|
+
return h === void 0;
|
|
31
|
+
} }, I = "en", V = {};
|
|
32
|
+
V[I] = U;
|
|
33
|
+
var at = "$isDayjsObject", X = function(h) {
|
|
34
|
+
return h instanceof B || !(!h || !h[at]);
|
|
35
|
+
}, z = function h(n, r, d) {
|
|
36
|
+
var s;
|
|
37
|
+
if (!n) return I;
|
|
38
|
+
if (typeof n == "string") {
|
|
39
|
+
var l = n.toLowerCase();
|
|
40
|
+
V[l] && (s = l), r && (V[l] = r, s = l);
|
|
41
|
+
var f = n.split("-");
|
|
42
|
+
if (!s && f.length > 1) return h(f[0]);
|
|
43
|
+
} else {
|
|
44
|
+
var v = n.name;
|
|
45
|
+
V[v] = n, s = v;
|
|
46
|
+
}
|
|
47
|
+
return !d && s && (I = s), s || !d && I;
|
|
48
|
+
}, T = function(h, n) {
|
|
49
|
+
if (X(h)) return h.clone();
|
|
50
|
+
var r = typeof n == "object" ? n : {};
|
|
51
|
+
return r.date = h, r.args = arguments, new B(r);
|
|
52
|
+
}, g = ht;
|
|
53
|
+
g.l = z, g.i = X, g.w = function(h, n) {
|
|
54
|
+
return T(h, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
55
|
+
};
|
|
56
|
+
var B = function() {
|
|
57
|
+
function h(r) {
|
|
58
|
+
this.$L = z(r.locale, null, !0), this.parse(r), this.$x = this.$x || r.x || {}, this[at] = !0;
|
|
59
|
+
}
|
|
60
|
+
var n = h.prototype;
|
|
61
|
+
return n.parse = function(r) {
|
|
62
|
+
this.$d = function(d) {
|
|
63
|
+
var s = d.date, l = d.utc;
|
|
64
|
+
if (s === null) return /* @__PURE__ */ new Date(NaN);
|
|
65
|
+
if (g.u(s)) return /* @__PURE__ */ new Date();
|
|
66
|
+
if (s instanceof Date) return new Date(s);
|
|
67
|
+
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
68
|
+
var f = s.match(m);
|
|
69
|
+
if (f) {
|
|
70
|
+
var v = f[2] - 1 || 0, $ = (f[7] || "0").substring(0, 3);
|
|
71
|
+
return l ? new Date(Date.UTC(f[1], v, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, $)) : new Date(f[1], v, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, $);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return new Date(s);
|
|
75
|
+
}(r), this.init();
|
|
76
|
+
}, n.init = function() {
|
|
77
|
+
var r = this.$d;
|
|
78
|
+
this.$y = r.getFullYear(), this.$M = r.getMonth(), this.$D = r.getDate(), this.$W = r.getDay(), this.$H = r.getHours(), this.$m = r.getMinutes(), this.$s = r.getSeconds(), this.$ms = r.getMilliseconds();
|
|
79
|
+
}, n.$utils = function() {
|
|
80
|
+
return g;
|
|
81
|
+
}, n.isValid = function() {
|
|
82
|
+
return this.$d.toString() !== M;
|
|
83
|
+
}, n.isSame = function(r, d) {
|
|
84
|
+
var s = T(r);
|
|
85
|
+
return this.startOf(d) <= s && s <= this.endOf(d);
|
|
86
|
+
}, n.isAfter = function(r, d) {
|
|
87
|
+
return T(r) < this.startOf(d);
|
|
88
|
+
}, n.isBefore = function(r, d) {
|
|
89
|
+
return this.endOf(d) < T(r);
|
|
90
|
+
}, n.$g = function(r, d, s) {
|
|
91
|
+
return g.u(r) ? this[d] : this.set(s, r);
|
|
92
|
+
}, n.unix = function() {
|
|
93
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
94
|
+
}, n.valueOf = function() {
|
|
95
|
+
return this.$d.getTime();
|
|
96
|
+
}, n.startOf = function(r, d) {
|
|
97
|
+
var s = this, l = !!g.u(d) || d, f = g.p(r), v = function(A, S) {
|
|
98
|
+
var q = g.w(s.$u ? Date.UTC(s.$y, S, A) : new Date(s.$y, S, A), s);
|
|
99
|
+
return l ? q : q.endOf(p);
|
|
100
|
+
}, $ = function(A, S) {
|
|
101
|
+
return g.w(s.toDate()[A].apply(s.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(S)), s);
|
|
102
|
+
}, w = this.$W, F = this.$M, R = this.$D, H = "set" + (this.$u ? "UTC" : "");
|
|
103
|
+
switch (f) {
|
|
104
|
+
case Y:
|
|
105
|
+
return l ? v(1, 0) : v(31, 11);
|
|
106
|
+
case k:
|
|
107
|
+
return l ? v(1, F) : v(0, F + 1);
|
|
108
|
+
case P:
|
|
109
|
+
var L = this.$locale().weekStart || 0, W = (w < L ? w + 7 : w) - L;
|
|
110
|
+
return v(l ? R - W : R + (6 - W), F);
|
|
111
|
+
case p:
|
|
112
|
+
case C:
|
|
113
|
+
return $(H + "Hours", 0);
|
|
114
|
+
case u:
|
|
115
|
+
return $(H + "Minutes", 1);
|
|
116
|
+
case c:
|
|
117
|
+
return $(H + "Seconds", 2);
|
|
118
|
+
case y:
|
|
119
|
+
return $(H + "Milliseconds", 3);
|
|
120
|
+
default:
|
|
121
|
+
return this.clone();
|
|
122
|
+
}
|
|
123
|
+
}, n.endOf = function(r) {
|
|
124
|
+
return this.startOf(r, !1);
|
|
125
|
+
}, n.$set = function(r, d) {
|
|
126
|
+
var s, l = g.p(r), f = "set" + (this.$u ? "UTC" : ""), v = (s = {}, s[p] = f + "Date", s[C] = f + "Date", s[k] = f + "Month", s[Y] = f + "FullYear", s[u] = f + "Hours", s[c] = f + "Minutes", s[y] = f + "Seconds", s[o] = f + "Milliseconds", s)[l], $ = l === p ? this.$D + (d - this.$W) : d;
|
|
127
|
+
if (l === k || l === Y) {
|
|
128
|
+
var w = this.clone().set(C, 1);
|
|
129
|
+
w.$d[v]($), w.init(), this.$d = w.set(C, Math.min(this.$D, w.daysInMonth())).$d;
|
|
130
|
+
} else v && this.$d[v]($);
|
|
131
|
+
return this.init(), this;
|
|
132
|
+
}, n.set = function(r, d) {
|
|
133
|
+
return this.clone().$set(r, d);
|
|
134
|
+
}, n.get = function(r) {
|
|
135
|
+
return this[g.p(r)]();
|
|
136
|
+
}, n.add = function(r, d) {
|
|
137
|
+
var s, l = this;
|
|
138
|
+
r = Number(r);
|
|
139
|
+
var f = g.p(d), v = function(F) {
|
|
140
|
+
var R = T(l);
|
|
141
|
+
return g.w(R.date(R.date() + Math.round(F * r)), l);
|
|
142
|
+
};
|
|
143
|
+
if (f === k) return this.set(k, this.$M + r);
|
|
144
|
+
if (f === Y) return this.set(Y, this.$y + r);
|
|
145
|
+
if (f === p) return v(1);
|
|
146
|
+
if (f === P) return v(7);
|
|
147
|
+
var $ = (s = {}, s[c] = a, s[u] = e, s[y] = t, s)[f] || 1, w = this.$d.getTime() + r * $;
|
|
148
|
+
return g.w(w, this);
|
|
149
|
+
}, n.subtract = function(r, d) {
|
|
150
|
+
return this.add(-1 * r, d);
|
|
151
|
+
}, n.format = function(r) {
|
|
152
|
+
var d = this, s = this.$locale();
|
|
153
|
+
if (!this.isValid()) return s.invalidDate || M;
|
|
154
|
+
var l = r || "YYYY-MM-DDTHH:mm:ssZ", f = g.z(this), v = this.$H, $ = this.$m, w = this.$M, F = s.weekdays, R = s.months, H = s.meridiem, L = function(S, q, Q, J) {
|
|
155
|
+
return S && (S[q] || S(d, l)) || Q[q].slice(0, J);
|
|
156
|
+
}, W = function(S) {
|
|
157
|
+
return g.s(v % 12 || 12, S, "0");
|
|
158
|
+
}, A = H || function(S, q, Q) {
|
|
159
|
+
var J = S < 12 ? "AM" : "PM";
|
|
160
|
+
return Q ? J.toLowerCase() : J;
|
|
161
|
+
};
|
|
162
|
+
return l.replace(E, function(S, q) {
|
|
163
|
+
return q || function(Q) {
|
|
164
|
+
switch (Q) {
|
|
165
|
+
case "YY":
|
|
166
|
+
return String(d.$y).slice(-2);
|
|
167
|
+
case "YYYY":
|
|
168
|
+
return g.s(d.$y, 4, "0");
|
|
169
|
+
case "M":
|
|
170
|
+
return w + 1;
|
|
171
|
+
case "MM":
|
|
172
|
+
return g.s(w + 1, 2, "0");
|
|
173
|
+
case "MMM":
|
|
174
|
+
return L(s.monthsShort, w, R, 3);
|
|
175
|
+
case "MMMM":
|
|
176
|
+
return L(R, w);
|
|
177
|
+
case "D":
|
|
178
|
+
return d.$D;
|
|
179
|
+
case "DD":
|
|
180
|
+
return g.s(d.$D, 2, "0");
|
|
181
|
+
case "d":
|
|
182
|
+
return String(d.$W);
|
|
183
|
+
case "dd":
|
|
184
|
+
return L(s.weekdaysMin, d.$W, F, 2);
|
|
185
|
+
case "ddd":
|
|
186
|
+
return L(s.weekdaysShort, d.$W, F, 3);
|
|
187
|
+
case "dddd":
|
|
188
|
+
return F[d.$W];
|
|
189
|
+
case "H":
|
|
190
|
+
return String(v);
|
|
191
|
+
case "HH":
|
|
192
|
+
return g.s(v, 2, "0");
|
|
193
|
+
case "h":
|
|
194
|
+
return W(1);
|
|
195
|
+
case "hh":
|
|
196
|
+
return W(2);
|
|
197
|
+
case "a":
|
|
198
|
+
return A(v, $, !0);
|
|
199
|
+
case "A":
|
|
200
|
+
return A(v, $, !1);
|
|
201
|
+
case "m":
|
|
202
|
+
return String($);
|
|
203
|
+
case "mm":
|
|
204
|
+
return g.s($, 2, "0");
|
|
205
|
+
case "s":
|
|
206
|
+
return String(d.$s);
|
|
207
|
+
case "ss":
|
|
208
|
+
return g.s(d.$s, 2, "0");
|
|
209
|
+
case "SSS":
|
|
210
|
+
return g.s(d.$ms, 3, "0");
|
|
211
|
+
case "Z":
|
|
212
|
+
return f;
|
|
213
|
+
}
|
|
214
|
+
return null;
|
|
215
|
+
}(S) || f.replace(":", "");
|
|
216
|
+
});
|
|
217
|
+
}, n.utcOffset = function() {
|
|
218
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
219
|
+
}, n.diff = function(r, d, s) {
|
|
220
|
+
var l, f = this, v = g.p(d), $ = T(r), w = ($.utcOffset() - this.utcOffset()) * a, F = this - $, R = function() {
|
|
221
|
+
return g.m(f, $);
|
|
222
|
+
};
|
|
223
|
+
switch (v) {
|
|
224
|
+
case Y:
|
|
225
|
+
l = R() / 12;
|
|
226
|
+
break;
|
|
227
|
+
case k:
|
|
228
|
+
l = R();
|
|
229
|
+
break;
|
|
230
|
+
case N:
|
|
231
|
+
l = R() / 3;
|
|
232
|
+
break;
|
|
233
|
+
case P:
|
|
234
|
+
l = (F - w) / 6048e5;
|
|
235
|
+
break;
|
|
236
|
+
case p:
|
|
237
|
+
l = (F - w) / 864e5;
|
|
238
|
+
break;
|
|
239
|
+
case u:
|
|
240
|
+
l = F / e;
|
|
241
|
+
break;
|
|
242
|
+
case c:
|
|
243
|
+
l = F / a;
|
|
244
|
+
break;
|
|
245
|
+
case y:
|
|
246
|
+
l = F / t;
|
|
247
|
+
break;
|
|
248
|
+
default:
|
|
249
|
+
l = F;
|
|
250
|
+
}
|
|
251
|
+
return s ? l : g.a(l);
|
|
252
|
+
}, n.daysInMonth = function() {
|
|
253
|
+
return this.endOf(k).$D;
|
|
254
|
+
}, n.$locale = function() {
|
|
255
|
+
return V[this.$L];
|
|
256
|
+
}, n.locale = function(r, d) {
|
|
257
|
+
if (!r) return this.$L;
|
|
258
|
+
var s = this.clone(), l = z(r, d, !0);
|
|
259
|
+
return l && (s.$L = l), s;
|
|
260
|
+
}, n.clone = function() {
|
|
261
|
+
return g.w(this.$d, this);
|
|
262
|
+
}, n.toDate = function() {
|
|
263
|
+
return new Date(this.valueOf());
|
|
264
|
+
}, n.toJSON = function() {
|
|
265
|
+
return this.isValid() ? this.toISOString() : null;
|
|
266
|
+
}, n.toISOString = function() {
|
|
267
|
+
return this.$d.toISOString();
|
|
268
|
+
}, n.toString = function() {
|
|
269
|
+
return this.$d.toUTCString();
|
|
270
|
+
}, h;
|
|
271
|
+
}(), rt = B.prototype;
|
|
272
|
+
return T.prototype = rt, [["$ms", o], ["$s", y], ["$m", c], ["$H", u], ["$W", p], ["$M", k], ["$y", Y], ["$D", C]].forEach(function(h) {
|
|
273
|
+
rt[h[1]] = function(n) {
|
|
274
|
+
return this.$g(n, h[0], h[1]);
|
|
275
|
+
};
|
|
276
|
+
}), T.extend = function(h, n) {
|
|
277
|
+
return h.$i || (h(n, B, T), h.$i = !0), T;
|
|
278
|
+
}, T.locale = z, T.isDayjs = X, T.unix = function(h) {
|
|
279
|
+
return T(1e3 * h);
|
|
280
|
+
}, T.en = V[I], T.Ls = V, T.p = {}, T;
|
|
281
|
+
}()), it.exports);
|
|
282
|
+
const i = ct(gt);
|
|
283
|
+
var ot, G, et, dt = { exports: {} };
|
|
284
|
+
const vt = ct(ot ? dt.exports : (ot = 1, dt.exports = (G = "month", et = "quarter", function(t, a) {
|
|
285
|
+
var e = a.prototype;
|
|
286
|
+
e.quarter = function(c) {
|
|
287
|
+
return this.$utils().u(c) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (c - 1));
|
|
288
|
+
};
|
|
289
|
+
var o = e.add;
|
|
290
|
+
e.add = function(c, u) {
|
|
291
|
+
return c = Number(c), this.$utils().p(u) === et ? this.add(3 * c, G) : o.bind(this)(c, u);
|
|
292
|
+
};
|
|
293
|
+
var y = e.startOf;
|
|
294
|
+
e.startOf = function(c, u) {
|
|
295
|
+
var p = this.$utils(), P = !!p.u(u) || u;
|
|
296
|
+
if (p.p(c) === et) {
|
|
297
|
+
var k = this.quarter() - 1;
|
|
298
|
+
return P ? this.month(3 * k).startOf(G).startOf("day") : this.month(3 * k + 2).endOf(G).endOf("day");
|
|
299
|
+
}
|
|
300
|
+
return y.bind(this)(c, u);
|
|
301
|
+
};
|
|
302
|
+
})));
|
|
303
|
+
function ut(t, a) {
|
|
304
|
+
if (!t) return null;
|
|
305
|
+
const e = i(t);
|
|
306
|
+
return e.isValid() ? e.format(a) : null;
|
|
307
|
+
}
|
|
308
|
+
function bt(t, a, e) {
|
|
309
|
+
const o = ut(t, e), y = ut(a, e);
|
|
310
|
+
return { dateFrom: o, dateTo: y, isValid: o !== null && y !== null };
|
|
311
|
+
}
|
|
312
|
+
var $t = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, D = (t, a, e, o) => {
|
|
313
|
+
for (var y, c = o > 1 ? void 0 : o ? Dt(a, e) : a, u = t.length - 1; u >= 0; u--) (y = t[u]) && (c = (o ? y(a, e, c) : y(c)) || c);
|
|
314
|
+
return o && c && $t(a, e, c), c;
|
|
315
|
+
};
|
|
316
|
+
i.extend(vt);
|
|
317
|
+
let b = class extends mt() {
|
|
318
|
+
constructor() {
|
|
319
|
+
super(...arguments), this.type = "date", this.dateFrom = { label: "From", value: "" }, this.dateTo = { label: "To", value: "" }, this.customPresets = [], this.disabled = !1, this.required = !1, this.placeholder = "Select date range", this.clearable = !0, this.allowDirectInput = !0, this.isOpen = !1, this.selectedDateRange = "", this.activePreset = null, this.announceMessage = "", this.isMobile = !1, this.isTyping = !1, this.typedValue = "", this.presetRanges = [], this.presetCategories = [], this.memoizedPresets = /* @__PURE__ */ new Map();
|
|
320
|
+
}
|
|
321
|
+
connectedCallback() {
|
|
322
|
+
super.connectedCallback(), this.initPresetRanges(), this.checkMobileView();
|
|
323
|
+
const t = this.getDateFormat(), a = bt(this.dateFrom.value, this.dateTo.value, t);
|
|
324
|
+
if (a.isValid) this.dateFrom.value = a.dateFrom, this.dateTo.value = a.dateTo, this.updateSelectedDateRange();
|
|
325
|
+
else {
|
|
326
|
+
const e = i().format(t);
|
|
327
|
+
this.dateFrom.value = e, this.dateTo.value = e, this.updateSelectedDateRange();
|
|
328
|
+
}
|
|
329
|
+
this.setupEventHandlers();
|
|
330
|
+
}
|
|
331
|
+
setupEventHandlers() {
|
|
332
|
+
st(document, "keydown").pipe(tt(this.disconnecting)).subscribe((t) => {
|
|
333
|
+
this.handleKeyboardNavigation(t);
|
|
334
|
+
}), st(window, "resize").pipe(lt(150), tt(this.disconnecting)).subscribe(() => {
|
|
335
|
+
this.checkMobileView();
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
disconnectedCallback() {
|
|
339
|
+
super.disconnectedCallback();
|
|
340
|
+
}
|
|
341
|
+
updated(t) {
|
|
342
|
+
var a, e;
|
|
343
|
+
super.updated(t), !t.has("dateFrom") && !t.has("dateTo") || ((a = this.dateFrom) == null ? void 0 : a.value) === void 0 && ((e = this.dateTo) == null ? void 0 : e.value) === void 0 || this.updateSelectedDateRange();
|
|
344
|
+
}
|
|
345
|
+
initPresetRanges() {
|
|
346
|
+
const t = this.getDateFormat(), a = `${this.type}-${t}-${JSON.stringify(this.customPresets)}`;
|
|
347
|
+
if (this.memoizedPresets.has(a)) {
|
|
348
|
+
const e = this.memoizedPresets.get(a);
|
|
349
|
+
return this.presetCategories = e, this.presetRanges = [], void e.forEach((o) => {
|
|
350
|
+
this.presetRanges.push(...o.presets);
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
if (this.presetCategories = [{ name: "Days", presets: [{ label: "Today", range: { dateFrom: i().startOf("day").format(t), dateTo: i().endOf("day").format(t) }, step: "day" }, { label: "Yesterday", range: { dateFrom: i().subtract(1, "days").startOf("day").format(t), dateTo: i().subtract(1, "days").endOf("day").format(t) }, step: "day" }, { label: "Last 7 Days", range: { dateFrom: i().subtract(6, "days").startOf("day").format(t), dateTo: i().endOf("day").format(t) }, step: "day" }, { label: "Last 14 Days", range: { dateFrom: i().subtract(13, "days").startOf("day").format(t), dateTo: i().endOf("day").format(t) }, step: "day" }, { label: "Last 30 Days", range: { dateFrom: i().subtract(29, "days").startOf("day").format(t), dateTo: i().endOf("day").format(t) }, step: "day" }, { label: "Last 60 Days", range: { dateFrom: i().subtract(59, "days").startOf("day").format(t), dateTo: i().endOf("day").format(t) }, step: "day" }, { label: "Last 90 Days", range: { dateFrom: i().subtract(89, "days").startOf("day").format(t), dateTo: i().endOf("day").format(t) }, step: "day" }] }, { name: "Weeks", presets: [{ label: "This Week", range: { dateFrom: i().startOf("week").format(t), dateTo: i().endOf("week").format(t) }, step: "week" }, { label: "Last Week", range: { dateFrom: i().subtract(1, "weeks").startOf("week").format(t), dateTo: i().subtract(1, "weeks").endOf("week").format(t) }, step: "week" }, { label: "Last 2 Weeks", range: { dateFrom: i().subtract(2, "weeks").startOf("week").format(t), dateTo: i().endOf("day").format(t) }, step: "week" }, { label: "Last 4 Weeks", range: { dateFrom: i().subtract(4, "weeks").startOf("week").format(t), dateTo: i().endOf("day").format(t) }, step: "week" }] }, { name: "Months", presets: [{ label: "This Month", range: { dateFrom: i().startOf("month").format(t), dateTo: i().endOf("month").format(t) }, step: "month" }, { label: "Last Month", range: { dateFrom: i().subtract(1, "month").startOf("month").format(t), dateTo: i().subtract(1, "month").endOf("month").format(t) }, step: "month" }, { label: "Last 3 Months", range: { dateFrom: i().subtract(3, "months").startOf("month").format(t), dateTo: i().endOf("day").format(t) }, step: "month" }, { label: "Last 6 Months", range: { dateFrom: i().subtract(6, "months").startOf("month").format(t), dateTo: i().endOf("day").format(t) }, step: "month" }] }, { name: "Quarters", presets: [{ label: "This Quarter", range: { dateFrom: i().startOf("quarter").format(t), dateTo: i().endOf("quarter").format(t) }, step: "quarter" }, { label: "Last Quarter", range: { dateFrom: i().subtract(1, "quarter").startOf("quarter").format(t), dateTo: i().subtract(1, "quarter").endOf("quarter").format(t) }, step: "quarter" }, { label: "Last 2 Quarters", range: { dateFrom: i().subtract(2, "quarters").startOf("quarter").format(t), dateTo: i().endOf("day").format(t) }, step: "quarter" }, { label: "Last 4 Quarters", range: { dateFrom: i().subtract(4, "quarters").startOf("quarter").format(t), dateTo: i().endOf("day").format(t) }, step: "quarter" }] }, { name: "Years", presets: [{ label: "This Year", range: { dateFrom: i().startOf("year").format(t), dateTo: i().endOf("year").format(t) }, step: "year" }, { label: "Last Year", range: { dateFrom: i().subtract(1, "year").startOf("year").format(t), dateTo: i().subtract(1, "year").endOf("year").format(t) }, step: "year" }, { label: "Year to Date", range: { dateFrom: i().startOf("year").format(t), dateTo: i().endOf("day").format(t) }, step: "day" }] }], this.type === "datetime-local" && this.presetCategories.unshift({ name: "Hours", presets: [{ label: "Last 24 Hours", range: { dateFrom: i().subtract(24, "hours").format(t), dateTo: i().format(t) }, step: "hour" }, { label: "Last 12 Hours", range: { dateFrom: i().subtract(12, "hours").format(t), dateTo: i().format(t) }, step: "hour" }] }), this.presetRanges = [], this.presetCategories.forEach((e) => {
|
|
354
|
+
this.presetRanges.push(...e.presets);
|
|
355
|
+
}), this.customPresets && this.customPresets.length > 0) {
|
|
356
|
+
const e = { name: "Custom", presets: this.customPresets.map((o) => ({ label: o.label, range: { dateFrom: o.dateFrom, dateTo: o.dateTo }, step: "day" })) };
|
|
357
|
+
this.presetCategories.push(e), this.presetRanges.push(...e.presets);
|
|
358
|
+
}
|
|
359
|
+
this.memoizedPresets.set(a, [...this.presetCategories]);
|
|
360
|
+
}
|
|
361
|
+
getDateFormat() {
|
|
362
|
+
return this.format || (this.type === "date" ? "YYYY-MM-DD" : "YYYY-MM-DDTHH:mm");
|
|
363
|
+
}
|
|
364
|
+
updateSelectedDateRange() {
|
|
365
|
+
const t = this.presetRanges.find((c) => c.range.dateFrom === this.dateFrom.value && c.range.dateTo === this.dateTo.value);
|
|
366
|
+
if (t) return this.selectedDateRange = t.label, void (this.activePreset = t.label);
|
|
367
|
+
if (this.checkAndUpdateActivePreset(this.dateFrom.value, this.dateTo.value), this.activePreset = null, !this.dateFrom.value || !this.dateTo.value) return void (this.selectedDateRange = this.placeholder);
|
|
368
|
+
const a = i(this.dateFrom.value), e = i(this.dateTo.value);
|
|
369
|
+
if (!a.isValid() || !e.isValid()) return void (this.selectedDateRange = this.placeholder);
|
|
370
|
+
const o = this.type === "datetime-local" ? a.format(" h:mm A") : "", y = this.type === "datetime-local" ? e.format(" h:mm A") : "";
|
|
371
|
+
a.isSame(e, "day") ? this.selectedDateRange = `${a.format("MMM D, YYYY")}${o}` : a.isSame(e, "month") && a.isSame(e, "year") ? this.selectedDateRange = `${a.format("MMM D")}-${e.format("D, YYYY")}${y}` : a.isSame(e, "year") ? this.selectedDateRange = `${a.format("MMM D")} - ${e.format("MMM D, YYYY")}${y}` : this.selectedDateRange = `${a.format("MMM D, YYYY")}${o} - ${e.format("MMM D, YYYY")}${y}`;
|
|
372
|
+
}
|
|
373
|
+
setDateRange(t, a) {
|
|
374
|
+
this.dateFrom.value = t, this.dateTo.value = a, this.updateSelectedDateRange(), this.announceToScreenReader(`Date range updated: ${this.selectedDateRange}`), this.dispatchEvent(new CustomEvent("change", { detail: { dateFrom: t, dateTo: a }, bubbles: !0, composed: !0 }));
|
|
375
|
+
}
|
|
376
|
+
handlePresetSelection(t, a) {
|
|
377
|
+
a.stopPropagation(), this.activePreset = t.label, this.setDateRange(t.range.dateFrom, t.range.dateTo), Z.dismiss();
|
|
378
|
+
}
|
|
379
|
+
toggleDropdown(t) {
|
|
380
|
+
t.stopPropagation(), this.disabled || (this.isOpen ? this.closeDropdown() : this.openDropdown());
|
|
381
|
+
}
|
|
382
|
+
openDropdown() {
|
|
383
|
+
if (this.disabled) return;
|
|
384
|
+
this.isOpen = !0;
|
|
385
|
+
const t = this.createDialogContent();
|
|
386
|
+
Z.component(t, { title: "Select Date Range", width: this.isMobile ? "100vw" : "800px", hideActions: !0 }).then(() => {
|
|
387
|
+
this.isOpen = !1;
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
closeDropdown() {
|
|
391
|
+
Z.dismiss(), this.isOpen = !1;
|
|
392
|
+
}
|
|
393
|
+
adjustQuarter(t, a, e) {
|
|
394
|
+
let o = t.quarter() + e * a, y = 0;
|
|
395
|
+
for (; o > 4; ) o -= 4, y += 1;
|
|
396
|
+
for (; o < 1; ) o += 4, y -= 1;
|
|
397
|
+
const c = t.add(y, "year").month(3 * (o - 1)), u = c.daysInMonth(), p = Math.min(t.date(), u);
|
|
398
|
+
return c.date(p);
|
|
399
|
+
}
|
|
400
|
+
shiftDateRange(t, a) {
|
|
401
|
+
if (a.stopPropagation(), !this.dateFrom.value || !this.dateTo.value) return;
|
|
402
|
+
const e = i(this.dateFrom.value), o = i(this.dateTo.value);
|
|
403
|
+
if (!e.isValid() || !o.isValid()) return;
|
|
404
|
+
const y = this.getDateFormat(), c = t > 0 ? 1 : -1;
|
|
405
|
+
let u, p;
|
|
406
|
+
const P = this.presetRanges.find((O) => O.label === this.activePreset), k = e.date() === 1 && o.isSame(e.endOf("month"), "day"), N = e.isSame(e.startOf("quarter"), "day") && o.isSame(o.endOf("quarter"), "day"), Y = e.isSame(e.startOf("year"), "day") && o.isSame(o.endOf("year"), "day"), C = e.day() === 0 && o.day() === 6 && o.diff(e, "days") === 6;
|
|
407
|
+
let M = "day", m = 1;
|
|
408
|
+
if (P) M = P.step, m = 1;
|
|
409
|
+
else {
|
|
410
|
+
const O = o.diff(e, "day");
|
|
411
|
+
O >= 360 ? (M = "year", m = Math.round(O / 365)) : O >= 90 ? (M = "quarter", m = Math.round(O / 90)) : O >= 30 ? (M = "month", m = Math.round(O / 30)) : O >= 7 ? (M = "week", m = Math.round(O / 7)) : (M = "day", m = O + 1);
|
|
412
|
+
}
|
|
413
|
+
if (M === "quarter") N ? c > 0 ? (u = this.adjustQuarter(e, m, 1).startOf("quarter"), p = u.endOf("quarter")) : (u = this.adjustQuarter(e, m, -1).startOf("quarter"), p = u.endOf("quarter")) : c > 0 ? (u = this.adjustQuarter(e, m, 1), p = this.adjustQuarter(o, m, 1)) : (u = this.adjustQuarter(e, m, -1), p = this.adjustQuarter(o, m, -1));
|
|
414
|
+
else if (M === "hour") {
|
|
415
|
+
const O = o.diff(e, "hour");
|
|
416
|
+
c > 0 ? (u = e.add(O, "hour"), p = o.add(O, "hour")) : (u = e.subtract(O, "hour"), p = o.subtract(O, "hour"));
|
|
417
|
+
} else M === "year" && Y ? c > 0 ? (u = e.add(m, "year").startOf("year"), p = u.endOf("year")) : (u = e.subtract(m, "year").startOf("year"), p = u.endOf("year")) : M === "year" ? c > 0 ? (u = e.add(m, "year"), p = o.add(m, "year")) : (u = e.subtract(m, "year"), p = o.subtract(m, "year")) : M === "month" && k ? c > 0 ? (u = e.add(m, "month").startOf("month"), p = u.endOf("month")) : (u = e.subtract(m, "month").startOf("month"), p = u.endOf("month")) : M === "month" ? c > 0 ? (u = e.add(m, "month"), p = o.add(m, "month")) : (u = e.subtract(m, "month"), p = o.subtract(m, "month")) : M === "week" && C ? c > 0 ? (u = e.add(m, "week").startOf("week"), p = u.endOf("week")) : (u = e.subtract(m, "week").startOf("week"), p = u.endOf("week")) : M === "week" ? c > 0 ? (u = e.add(m, "week"), p = o.add(m, "week")) : (u = e.subtract(m, "week"), p = o.subtract(m, "week")) : c > 0 ? (u = e.add(m, "day"), p = o.add(m, "day")) : (u = e.subtract(m, "day"), p = o.subtract(m, "day"));
|
|
418
|
+
const E = u.format(y), U = p.format(y);
|
|
419
|
+
this.setDateRange(E, U), this.checkAndUpdateActivePreset(E, U);
|
|
420
|
+
}
|
|
421
|
+
handleKeyboardNavigation(t) {
|
|
422
|
+
const a = t.key;
|
|
423
|
+
if (this.dateFrom.value && this.dateTo.value && !this.disabled) switch (a) {
|
|
424
|
+
case "PageUp":
|
|
425
|
+
(t.target === this || this.contains(t.target)) && (this.shiftDateRange(-1, t), t.preventDefault());
|
|
426
|
+
break;
|
|
427
|
+
case "PageDown":
|
|
428
|
+
(t.target === this || this.contains(t.target)) && (this.shiftDateRange(1, t), t.preventDefault());
|
|
429
|
+
break;
|
|
430
|
+
case "Home":
|
|
431
|
+
if (t.ctrlKey && (t.target === this || this.contains(t.target))) {
|
|
432
|
+
const e = i(this.dateFrom.value), o = i(this.dateTo.value), y = e.startOf("month"), c = o.diff(e, "day");
|
|
433
|
+
this.setDateRange(y.format(this.getDateFormat()), y.add(c, "day").format(this.getDateFormat())), t.preventDefault();
|
|
434
|
+
}
|
|
435
|
+
break;
|
|
436
|
+
case "End":
|
|
437
|
+
if (t.ctrlKey && (t.target === this || this.contains(t.target))) {
|
|
438
|
+
const e = i(this.dateFrom.value), o = i(this.dateTo.value), y = o.diff(e, "day"), c = o.endOf("month");
|
|
439
|
+
this.setDateRange(c.subtract(y, "day").format(this.getDateFormat()), c.format(this.getDateFormat())), t.preventDefault();
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
checkAndUpdateActivePreset(t, a) {
|
|
444
|
+
const e = this.presetRanges.find((o) => o.range.dateFrom === t && o.range.dateTo === a);
|
|
445
|
+
this.activePreset = e ? e.label : null;
|
|
446
|
+
}
|
|
447
|
+
applyManualDateSelection(t) {
|
|
448
|
+
t.stopPropagation();
|
|
449
|
+
const a = i(this.dateFrom.value), e = i(this.dateTo.value);
|
|
450
|
+
a.isValid() && e.isValid() ? (a.isAfter(e) ? this.setDateRange(e.format(this.getDateFormat()), a.format(this.getDateFormat())) : this.setDateRange(this.dateFrom.value, this.dateTo.value), Z.dismiss()) : this.announceToScreenReader("Invalid date format. Please check your input.");
|
|
451
|
+
}
|
|
452
|
+
checkMobileView() {
|
|
453
|
+
this.isMobile = window.innerWidth < 768;
|
|
454
|
+
}
|
|
455
|
+
handleDirectInput(t) {
|
|
456
|
+
const a = t.target;
|
|
457
|
+
this.typedValue = a.value, this.isTyping = !0;
|
|
458
|
+
}
|
|
459
|
+
parseTypedDateRange(t) {
|
|
460
|
+
const a = [" to ", " - ", " – ", " — ", "-", "–", "—"];
|
|
461
|
+
let e = [];
|
|
462
|
+
for (const c of a) if (t.includes(c)) {
|
|
463
|
+
e = t.split(c).map((u) => u.trim());
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
if (e.length !== 2) return null;
|
|
467
|
+
const o = i(e[0]), y = i(e[1]);
|
|
468
|
+
return o.isValid() && y.isValid() ? { dateFrom: o.format(this.getDateFormat()), dateTo: y.format(this.getDateFormat()) } : null;
|
|
469
|
+
}
|
|
470
|
+
handleInputBlur() {
|
|
471
|
+
if (!this.isTyping || !this.typedValue) return;
|
|
472
|
+
const t = this.parseTypedDateRange(this.typedValue);
|
|
473
|
+
t ? (this.setDateRange(t.dateFrom, t.dateTo), this.isTyping = !1, this.typedValue = "") : (this.announceToScreenReader("Invalid date format. Please use format like: Jan 1, 2024 - Jan 31, 2024"), this.inputRef && (this.inputRef.value = this.selectedDateRange), this.isTyping = !1, this.typedValue = "");
|
|
474
|
+
}
|
|
475
|
+
createDialogContent() {
|
|
476
|
+
return j`
|
|
477
|
+
<div class="w-full min-h-[400px] max-h-[80vh] flex flex-col p-4">
|
|
478
|
+
<!-- Custom Range Section with Inline Calendars -->
|
|
479
|
+
<schmancy-surface type="container" class="rounded-xl p-4 mb-6">
|
|
480
|
+
<div class="flex flex-col gap-4">
|
|
481
|
+
<div class="flex items-center justify-between">
|
|
482
|
+
<schmancy-typography type="label" token="lg" class="text-surface-onVariant">
|
|
483
|
+
Custom Range
|
|
484
|
+
</schmancy-typography>
|
|
485
|
+
<schmancy-button variant="filled" @click="${(t) => this.applyManualDateSelection(t)}">
|
|
486
|
+
Apply
|
|
487
|
+
</schmancy-button>
|
|
488
|
+
</div>
|
|
489
|
+
|
|
490
|
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
491
|
+
<!-- From Date Calendar -->
|
|
492
|
+
<div class="flex flex-col gap-2">
|
|
493
|
+
<schmancy-typography type="label" token="md" class="text-surface-onVariant">
|
|
494
|
+
${this.dateFrom.label || "From"}
|
|
495
|
+
</schmancy-typography>
|
|
496
|
+
<input
|
|
497
|
+
type="${this.type}"
|
|
498
|
+
value="${this.dateFrom.value}"
|
|
499
|
+
min="${K(this.minDate)}"
|
|
500
|
+
max="${K(this.maxDate)}"
|
|
501
|
+
class="w-full p-3 rounded-lg border border-outline bg-surface-container text-surface-on focus:outline-none focus:ring-2 focus:ring-primary"
|
|
502
|
+
@change="${(t) => {
|
|
503
|
+
const a = t.target;
|
|
504
|
+
this.dateFrom.value = a.value, this.updateSelectedDateRange();
|
|
505
|
+
}}"
|
|
506
|
+
style="color-scheme: ${this.getAttribute("scheme") === "dark" ? "dark" : "light"}"
|
|
507
|
+
/>
|
|
508
|
+
</div>
|
|
509
|
+
|
|
510
|
+
<!-- To Date Calendar -->
|
|
511
|
+
<div class="flex flex-col gap-2">
|
|
512
|
+
<schmancy-typography type="label" token="md" class="text-surface-onVariant">
|
|
513
|
+
${this.dateTo.label || "To"}
|
|
514
|
+
</schmancy-typography>
|
|
515
|
+
<input
|
|
516
|
+
type="${this.type}"
|
|
517
|
+
value="${this.dateTo.value}"
|
|
518
|
+
min="${K(this.dateFrom.value)}"
|
|
519
|
+
max="${K(this.maxDate)}"
|
|
520
|
+
class="w-full p-3 rounded-lg border border-outline bg-surface-container text-surface-on focus:outline-none focus:ring-2 focus:ring-primary"
|
|
521
|
+
@change="${(t) => {
|
|
522
|
+
const a = t.target;
|
|
523
|
+
this.dateTo.value = a.value, this.updateSelectedDateRange();
|
|
524
|
+
}}"
|
|
525
|
+
style="color-scheme: ${this.getAttribute("scheme") === "dark" ? "dark" : "light"}"
|
|
526
|
+
/>
|
|
527
|
+
</div>
|
|
528
|
+
</div>
|
|
529
|
+
</div>
|
|
530
|
+
</schmancy-surface>
|
|
531
|
+
|
|
532
|
+
<!-- Presets Section -->
|
|
533
|
+
<div class="flex-1 overflow-y-auto overflow-x-hidden min-h-0">
|
|
534
|
+
<div class="grid grid-cols-2 md:grid-cols-5 gap-6">
|
|
535
|
+
${this.presetCategories.map((t) => j`
|
|
536
|
+
<div class="space-y-3">
|
|
537
|
+
<schmancy-typography type="title" token="md" class="text-surface-onVariant font-medium">
|
|
538
|
+
${t.name}
|
|
539
|
+
</schmancy-typography>
|
|
540
|
+
<div class="space-y-1">
|
|
541
|
+
${t.presets.map((a) => j`
|
|
542
|
+
<schmancy-button
|
|
543
|
+
variant="${this.activePreset === a.label ? "filled" : "text"}"
|
|
544
|
+
size="sm"
|
|
545
|
+
class="w-full justify-start text-left"
|
|
546
|
+
@click="${(e) => this.handlePresetSelection(a, e)}"
|
|
547
|
+
aria-pressed="${this.activePreset === a.label}"
|
|
548
|
+
aria-label="${a.label}: ${a.range.dateFrom} to ${a.range.dateTo}"
|
|
549
|
+
title="${a.range.dateFrom} to ${a.range.dateTo}"
|
|
550
|
+
>
|
|
551
|
+
<span class="truncate">${a.label}</span>
|
|
552
|
+
</schmancy-button>
|
|
553
|
+
`)}
|
|
554
|
+
</div>
|
|
555
|
+
</div>
|
|
556
|
+
`)}
|
|
557
|
+
</div>
|
|
558
|
+
</div>
|
|
559
|
+
</div>
|
|
560
|
+
`;
|
|
561
|
+
}
|
|
562
|
+
announceToScreenReader(t) {
|
|
563
|
+
this.announceMessage = t, ft(100).pipe(tt(this.disconnecting)).subscribe(() => {
|
|
564
|
+
this.announceMessage = "";
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
render() {
|
|
568
|
+
return j`
|
|
569
|
+
<div class="relative ${this.disabled ? "opacity-60 pointer-events-none" : ""}">
|
|
570
|
+
<!-- Screen reader announcements -->
|
|
571
|
+
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true">
|
|
572
|
+
${this.announceMessage}
|
|
573
|
+
</div>
|
|
574
|
+
|
|
575
|
+
<!-- Trigger using the preferred schmancy-grid pattern -->
|
|
576
|
+
<div class="trigger-container">
|
|
577
|
+
<schmancy-grid @click=${(t) => t.stopPropagation()} align="center" cols="auto 1fr auto">
|
|
578
|
+
<schmancy-icon-button
|
|
579
|
+
type="button"
|
|
580
|
+
aria-label="Previous ${this.activePreset ? this.activePreset.toLowerCase() : "date range"}"
|
|
581
|
+
@click=${(t) => this.shiftDateRange(-1, t)}
|
|
582
|
+
?disabled=${this.disabled || !this.dateFrom.value || !this.dateTo.value}
|
|
583
|
+
>
|
|
584
|
+
arrow_left
|
|
585
|
+
</schmancy-icon-button>
|
|
586
|
+
|
|
587
|
+
${this.allowDirectInput ? j`
|
|
588
|
+
<schmancy-input
|
|
589
|
+
class="date-range-input w-full"
|
|
590
|
+
type="text"
|
|
591
|
+
.value=${this.isTyping ? this.typedValue : this.selectedDateRange}
|
|
592
|
+
placeholder=${this.placeholder}
|
|
593
|
+
?disabled=${this.disabled}
|
|
594
|
+
?required=${this.required}
|
|
595
|
+
aria-haspopup="menu"
|
|
596
|
+
aria-expanded=${this.isOpen}
|
|
597
|
+
aria-label="Select or type date range. Current: ${this.selectedDateRange || "No date selected"}"
|
|
598
|
+
@focus=${() => this.openDropdown()}
|
|
599
|
+
@input=${this.handleDirectInput}
|
|
600
|
+
@blur=${() => this.handleInputBlur()}
|
|
601
|
+
@keydown=${(t) => {
|
|
602
|
+
t.key === "Enter" && (t.preventDefault(), this.handleInputBlur());
|
|
603
|
+
}}
|
|
604
|
+
></schmancy-input>
|
|
605
|
+
` : j`
|
|
606
|
+
<schmancy-button
|
|
607
|
+
class="w-max"
|
|
608
|
+
variant="outlined"
|
|
609
|
+
type="button"
|
|
610
|
+
aria-haspopup="menu"
|
|
611
|
+
aria-expanded=${this.isOpen}
|
|
612
|
+
aria-label="Select date range. Current: ${this.selectedDateRange || "No date selected"}"
|
|
613
|
+
@click=${(t) => this.toggleDropdown(t)}
|
|
614
|
+
>
|
|
615
|
+
${this.selectedDateRange || this.placeholder}
|
|
616
|
+
</schmancy-button>
|
|
617
|
+
`}
|
|
618
|
+
|
|
619
|
+
<schmancy-icon-button
|
|
620
|
+
type="button"
|
|
621
|
+
aria-label="Next ${this.activePreset ? this.activePreset.toLowerCase() : "date range"}"
|
|
622
|
+
@click=${(t) => this.shiftDateRange(1, t)}
|
|
623
|
+
?disabled=${this.disabled || !this.dateFrom.value || !this.dateTo.value}
|
|
624
|
+
>
|
|
625
|
+
arrow_right
|
|
626
|
+
</schmancy-icon-button>
|
|
627
|
+
</schmancy-grid>
|
|
628
|
+
</div>
|
|
629
|
+
</div>
|
|
630
|
+
`;
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
D([x({ type: String })], b.prototype, "type", 2), D([x({ type: Object })], b.prototype, "dateFrom", 2), D([x({ type: Object })], b.prototype, "dateTo", 2), D([x({ type: String })], b.prototype, "minDate", 2), D([x({ type: String })], b.prototype, "maxDate", 2), D([x({ type: Array })], b.prototype, "customPresets", 2), D([x({ type: String })], b.prototype, "format", 2), D([x({ type: Boolean })], b.prototype, "disabled", 2), D([x({ type: Boolean })], b.prototype, "required", 2), D([x({ type: String })], b.prototype, "placeholder", 2), D([x({ type: Boolean })], b.prototype, "clearable", 2), D([x({ type: Boolean })], b.prototype, "allowDirectInput", 2), D([_()], b.prototype, "isOpen", 2), D([_()], b.prototype, "selectedDateRange", 2), D([_()], b.prototype, "activePreset", 2), D([_()], b.prototype, "announceMessage", 2), D([_()], b.prototype, "isMobile", 2), D([_()], b.prototype, "isTyping", 2), D([_()], b.prototype, "typedValue", 2), D([pt(".date-range-input")], b.prototype, "inputRef", 2), b = D([yt("schmancy-date-range")], b);
|
|
634
|
+
export {
|
|
635
|
+
b as S,
|
|
636
|
+
bt as v
|
|
637
|
+
};
|
|
638
|
+
//# sourceMappingURL=date-range-DYdBqzUs.js.map
|