@sprawlify/primitives 0.0.62 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anatomy.d.cts +1 -1
- package/dist/anatomy.d.mts +1 -1
- package/dist/anatomy.mjs +1 -1
- package/dist/{aria-hidden-kcYiyWLo.cjs → aria-hidden-CHWfuKk2.cjs} +1 -1
- package/dist/{aria-hidden-CVIz-P9c.mjs → aria-hidden-Csp0PkO_.mjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-C55IrFLZ.cjs → auto-resize-BL8ul-hb.cjs} +1 -1
- package/dist/{auto-resize-R0jCGBHZ.mjs → auto-resize-jPUJLPa4.mjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-CjwZd09Z.mjs → collection-DHyEg4g5.mjs} +30 -30
- package/dist/{collection-Q52RkxUe.cjs → collection-Fkg4kgPn.cjs} +30 -30
- package/dist/collection.cjs +2 -2
- package/dist/collection.d.cts +4 -4
- package/dist/collection.d.mts +4 -4
- package/dist/collection.mjs +2 -2
- package/dist/{color-utils-BekVyYIJ.mjs → color-utils-CaqLeEog.mjs} +3 -3
- package/dist/{color-utils-BVq_rh8L.cjs → color-utils-eUlz6Gq4.cjs} +3 -3
- package/dist/color-utils.cjs +2 -2
- package/dist/color-utils.d.cts +1 -1
- package/dist/color-utils.d.mts +1 -1
- package/dist/color-utils.mjs +2 -2
- package/dist/{core-CsVTCpQ_.cjs → core-CHsDFMV3.cjs} +7 -7
- package/dist/{core-CujC6Y2H.mjs → core-owywCQ2e.mjs} +7 -7
- package/dist/core.cjs +3 -3
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +3 -3
- package/dist/{date-utils-_Hu9b5fQ.cjs → date-utils-BDBOiT_6.cjs} +22 -23
- package/dist/{date-utils-d1Jt6z5f.mjs → date-utils-LnVS7q0z.mjs} +22 -23
- package/dist/date-utils.cjs +1 -1
- package/dist/date-utils.d.cts +6 -6
- package/dist/date-utils.d.mts +1 -1
- package/dist/date-utils.mjs +1 -1
- package/dist/{defineProperty-bTDhmYM0.mjs → defineProperty-DR_NxfHn.mjs} +8 -8
- package/dist/{defineProperty-xA1FicUs.cjs → defineProperty-_bOnJOii.cjs} +8 -8
- package/dist/{dismissable-D0YyXTJv.mjs → dismissable-BlZazbp3.mjs} +7 -7
- package/dist/{dismissable-D9NEAGMU.cjs → dismissable-DSFGuAU6.cjs} +7 -7
- package/dist/{dismissable-layer-C39y-V3t.d.mts → dismissable-layer-B2bSyA07.d.cts} +2 -2
- package/dist/{dismissable-layer-D-7fwQL8.d.cts → dismissable-layer-CpUMMV1f.d.mts} +2 -2
- package/dist/dismissable.cjs +4 -4
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +4 -4
- package/dist/{dom-query-xZuxOsD4.cjs → dom-query-CAFhX43H.cjs} +25 -25
- package/dist/{dom-query-CUb85Z22.mjs → dom-query-CQFBCdpo.mjs} +25 -25
- package/dist/dom-query.cjs +1 -1
- package/dist/dom-query.d.cts +7 -7
- package/dist/dom-query.d.mts +7 -7
- package/dist/dom-query.mjs +1 -1
- package/dist/{file-utils-G9_tYexo.cjs → file-utils-Bkp18nrt.cjs} +6 -6
- package/dist/{file-utils-5E6-AtJ9.mjs → file-utils-lcjM-YjV.mjs} +6 -6
- package/dist/file-utils.cjs +1 -1
- package/dist/file-utils.d.cts +1 -1
- package/dist/file-utils.d.mts +1 -1
- package/dist/file-utils.mjs +1 -1
- package/dist/{focus-trap-KZbY4M-m.mjs → focus-trap-BXT0oBtL.mjs} +7 -7
- package/dist/{focus-trap-DcDcihd5.cjs → focus-trap-zaIiaoqE.cjs} +7 -7
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-Ddho9PEA.cjs → focus-visible-3pXNNo-l.cjs} +1 -1
- package/dist/{focus-visible-Bm2uoacD.mjs → focus-visible-DjGDsaLn.mjs} +1 -1
- package/dist/focus-visible.cjs +2 -2
- package/dist/focus-visible.mjs +2 -2
- package/dist/highlight-word.cjs +3 -3
- package/dist/highlight-word.mjs +3 -3
- package/dist/hotkeys.cjs +8 -8
- package/dist/hotkeys.mjs +8 -8
- package/dist/{i18n-utils-B3KjZ58Q.cjs → i18n-utils-CK27xonZ.cjs} +1 -1
- package/dist/{i18n-utils-85PCPQ3H.mjs → i18n-utils-KuoJj66z.mjs} +1 -1
- package/dist/i18n-utils.cjs +2 -2
- package/dist/i18n-utils.mjs +2 -2
- package/dist/{index-BuUzJjaP.d.mts → index-CafmAesU.d.mts} +3 -3
- package/dist/{index-Bqw3r34-.d.cts → index-D1U_WMQ9.d.cts} +3 -3
- package/dist/{interact-outside-xKQjln5u.mjs → interact-outside-CRmkKF6k.mjs} +4 -4
- package/dist/{interact-outside-xGMuVVaa.cjs → interact-outside-Dk2otQqs.cjs} +4 -4
- package/dist/interact-outside.cjs +3 -3
- package/dist/interact-outside.d.cts +1 -1
- package/dist/interact-outside.d.mts +1 -1
- package/dist/interact-outside.mjs +3 -3
- package/dist/json-tree-utils.cjs +30 -30
- package/dist/json-tree-utils.mjs +30 -30
- package/dist/{list-collection-BvMwDNHf.d.cts → list-collection-C9XUe75n.d.mts} +1 -1
- package/dist/{list-collection-CTt1eong.d.mts → list-collection-DwMgPYoA.d.cts} +1 -1
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/live-region.mjs +1 -1
- package/dist/machines/accordion/index.cjs +34 -34
- package/dist/machines/accordion/index.d.cts +3 -3
- package/dist/machines/accordion/index.d.mts +3 -3
- package/dist/machines/accordion/index.mjs +36 -36
- package/dist/machines/angle-slider/index.cjs +13 -13
- package/dist/machines/angle-slider/index.d.cts +4 -4
- package/dist/machines/angle-slider/index.d.mts +4 -4
- package/dist/machines/angle-slider/index.mjs +15 -15
- package/dist/machines/async-list/index.cjs +3 -3
- package/dist/machines/async-list/index.d.cts +1 -1
- package/dist/machines/async-list/index.d.mts +1 -1
- package/dist/machines/async-list/index.mjs +3 -3
- package/dist/machines/avatar/index.cjs +3 -3
- package/dist/machines/avatar/index.d.cts +3 -3
- package/dist/machines/avatar/index.d.mts +3 -3
- package/dist/machines/avatar/index.mjs +5 -5
- package/dist/machines/bottom-sheet/index.cjs +15 -15
- package/dist/machines/bottom-sheet/index.d.cts +6 -6
- package/dist/machines/bottom-sheet/index.d.mts +6 -6
- package/dist/machines/bottom-sheet/index.mjs +17 -17
- package/dist/machines/carousel/index.cjs +38 -38
- package/dist/machines/carousel/index.d.cts +4 -4
- package/dist/machines/carousel/index.d.mts +4 -4
- package/dist/machines/carousel/index.mjs +40 -40
- package/dist/machines/checkbox/index.cjs +11 -11
- package/dist/machines/checkbox/index.d.cts +4 -4
- package/dist/machines/checkbox/index.d.mts +4 -4
- package/dist/machines/checkbox/index.mjs +13 -13
- package/dist/machines/clipboard/index.cjs +7 -7
- package/dist/machines/clipboard/index.d.cts +4 -4
- package/dist/machines/clipboard/index.d.mts +4 -4
- package/dist/machines/clipboard/index.mjs +9 -9
- package/dist/machines/collapsible/index.cjs +3 -3
- package/dist/machines/collapsible/index.d.cts +3 -3
- package/dist/machines/collapsible/index.d.mts +3 -3
- package/dist/machines/collapsible/index.mjs +5 -5
- package/dist/machines/color-picker/index.cjs +58 -58
- package/dist/machines/color-picker/index.d.cts +7 -7
- package/dist/machines/color-picker/index.d.mts +7 -7
- package/dist/machines/color-picker/index.mjs +60 -60
- package/dist/machines/combobox/index.cjs +108 -108
- package/dist/machines/combobox/index.d.cts +8 -8
- package/dist/machines/combobox/index.d.mts +8 -8
- package/dist/machines/combobox/index.mjs +110 -110
- package/dist/machines/date-picker/index.cjs +113 -113
- package/dist/machines/date-picker/index.d.cts +8 -8
- package/dist/machines/date-picker/index.d.mts +8 -8
- package/dist/machines/date-picker/index.mjs +120 -120
- package/dist/machines/dialog/index.cjs +12 -12
- package/dist/machines/dialog/index.d.cts +6 -6
- package/dist/machines/dialog/index.d.mts +6 -6
- package/dist/machines/dialog/index.mjs +14 -14
- package/dist/machines/editable/index.cjs +14 -14
- package/dist/machines/editable/index.d.cts +5 -5
- package/dist/machines/editable/index.d.mts +5 -5
- package/dist/machines/editable/index.mjs +16 -16
- package/dist/machines/file-upload/index.cjs +27 -27
- package/dist/machines/file-upload/index.d.cts +5 -5
- package/dist/machines/file-upload/index.d.mts +5 -5
- package/dist/machines/file-upload/index.mjs +29 -29
- package/dist/machines/floating-panel/index.cjs +25 -25
- package/dist/machines/floating-panel/index.d.cts +5 -5
- package/dist/machines/floating-panel/index.d.mts +5 -5
- package/dist/machines/floating-panel/index.mjs +27 -27
- package/dist/machines/hover-card/index.cjs +11 -11
- package/dist/machines/hover-card/index.d.cts +6 -6
- package/dist/machines/hover-card/index.d.mts +6 -6
- package/dist/machines/hover-card/index.mjs +13 -13
- package/dist/machines/image-cropper/index.cjs +39 -39
- package/dist/machines/image-cropper/index.d.cts +4 -4
- package/dist/machines/image-cropper/index.d.mts +4 -4
- package/dist/machines/image-cropper/index.mjs +41 -41
- package/dist/machines/listbox/index.cjs +94 -94
- package/dist/machines/listbox/index.d.cts +8 -8
- package/dist/machines/listbox/index.d.mts +8 -8
- package/dist/machines/listbox/index.mjs +96 -96
- package/dist/machines/marquee/index.cjs +11 -11
- package/dist/machines/marquee/index.d.cts +6 -6
- package/dist/machines/marquee/index.d.mts +6 -6
- package/dist/machines/marquee/index.mjs +13 -13
- package/dist/machines/menu/index.cjs +59 -59
- package/dist/machines/menu/index.d.cts +9 -9
- package/dist/machines/menu/index.d.mts +9 -9
- package/dist/machines/menu/index.mjs +61 -61
- package/dist/machines/navigation-menu/index.cjs +66 -66
- package/dist/machines/navigation-menu/index.d.cts +4 -4
- package/dist/machines/navigation-menu/index.d.mts +4 -4
- package/dist/machines/navigation-menu/index.mjs +68 -68
- package/dist/machines/number-input/index.cjs +10 -10
- package/dist/machines/number-input/index.d.cts +4 -4
- package/dist/machines/number-input/index.d.mts +4 -4
- package/dist/machines/number-input/index.mjs +12 -12
- package/dist/machines/pagination/index.cjs +12 -12
- package/dist/machines/pagination/index.d.cts +4 -4
- package/dist/machines/pagination/index.d.mts +4 -4
- package/dist/machines/pagination/index.mjs +14 -14
- package/dist/machines/password-input/index.cjs +6 -6
- package/dist/machines/password-input/index.d.cts +4 -4
- package/dist/machines/password-input/index.d.mts +4 -4
- package/dist/machines/password-input/index.mjs +8 -8
- package/dist/machines/pin-input/index.cjs +9 -9
- package/dist/machines/pin-input/index.d.cts +4 -4
- package/dist/machines/pin-input/index.d.mts +4 -4
- package/dist/machines/pin-input/index.mjs +11 -11
- package/dist/machines/popover/index.cjs +16 -16
- package/dist/machines/popover/index.d.cts +7 -7
- package/dist/machines/popover/index.d.mts +7 -7
- package/dist/machines/popover/index.mjs +18 -18
- package/dist/machines/presence/index.cjs +6 -6
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +7 -7
- package/dist/machines/progress/index.cjs +19 -19
- package/dist/machines/progress/index.d.cts +4 -4
- package/dist/machines/progress/index.d.mts +4 -4
- package/dist/machines/progress/index.mjs +21 -21
- package/dist/machines/qr-code/index.cjs +7 -7
- package/dist/machines/qr-code/index.d.cts +4 -4
- package/dist/machines/qr-code/index.d.mts +4 -4
- package/dist/machines/qr-code/index.mjs +9 -9
- package/dist/machines/radio-group/index.cjs +39 -39
- package/dist/machines/radio-group/index.d.cts +4 -4
- package/dist/machines/radio-group/index.d.mts +4 -4
- package/dist/machines/radio-group/index.mjs +41 -41
- package/dist/machines/rating-group/index.cjs +16 -16
- package/dist/machines/rating-group/index.d.cts +4 -4
- package/dist/machines/rating-group/index.d.mts +4 -4
- package/dist/machines/rating-group/index.mjs +18 -18
- package/dist/machines/scroll-area/index.cjs +13 -13
- package/dist/machines/scroll-area/index.d.cts +4 -4
- package/dist/machines/scroll-area/index.d.mts +4 -4
- package/dist/machines/scroll-area/index.mjs +15 -15
- package/dist/machines/select/index.cjs +50 -50
- package/dist/machines/select/index.d.cts +9 -9
- package/dist/machines/select/index.d.mts +9 -9
- package/dist/machines/select/index.mjs +52 -52
- package/dist/machines/signature-pad/index.cjs +11 -11
- package/dist/machines/signature-pad/index.d.cts +4 -4
- package/dist/machines/signature-pad/index.d.mts +4 -4
- package/dist/machines/signature-pad/index.mjs +13 -13
- package/dist/machines/slider/index.cjs +42 -43
- package/dist/machines/slider/index.d.cts +4 -4
- package/dist/machines/slider/index.d.mts +4 -4
- package/dist/machines/slider/index.mjs +44 -45
- package/dist/machines/splitter/index.cjs +62 -62
- package/dist/machines/splitter/index.d.cts +3 -3
- package/dist/machines/splitter/index.d.mts +3 -3
- package/dist/machines/splitter/index.mjs +64 -64
- package/dist/machines/steps/index.cjs +27 -27
- package/dist/machines/steps/index.d.cts +4 -4
- package/dist/machines/steps/index.d.mts +4 -4
- package/dist/machines/steps/index.mjs +29 -29
- package/dist/machines/switch/index.cjs +10 -10
- package/dist/machines/switch/index.d.cts +4 -4
- package/dist/machines/switch/index.d.mts +4 -4
- package/dist/machines/switch/index.mjs +12 -12
- package/dist/machines/tabs/index.cjs +14 -14
- package/dist/machines/tabs/index.d.cts +4 -4
- package/dist/machines/tabs/index.d.mts +4 -4
- package/dist/machines/tabs/index.mjs +16 -16
- package/dist/machines/tags-input/index.cjs +30 -30
- package/dist/machines/tags-input/index.d.cts +6 -6
- package/dist/machines/tags-input/index.d.mts +6 -6
- package/dist/machines/tags-input/index.mjs +33 -33
- package/dist/machines/timer/index.cjs +19 -19
- package/dist/machines/timer/index.d.cts +4 -4
- package/dist/machines/timer/index.d.mts +4 -4
- package/dist/machines/timer/index.mjs +21 -21
- package/dist/machines/toast/index.cjs +11 -11
- package/dist/machines/toast/index.d.cts +5 -6
- package/dist/machines/toast/index.d.mts +5 -6
- package/dist/machines/toast/index.mjs +12 -12
- package/dist/machines/toggle/index.cjs +5 -5
- package/dist/machines/toggle/index.d.cts +3 -3
- package/dist/machines/toggle/index.d.mts +3 -3
- package/dist/machines/toggle/index.mjs +7 -7
- package/dist/machines/toggle-group/index.cjs +16 -16
- package/dist/machines/toggle-group/index.d.cts +3 -3
- package/dist/machines/toggle-group/index.d.mts +3 -3
- package/dist/machines/toggle-group/index.mjs +18 -18
- package/dist/machines/tooltip/index.cjs +12 -12
- package/dist/machines/tooltip/index.d.cts +5 -5
- package/dist/machines/tooltip/index.d.mts +5 -5
- package/dist/machines/tooltip/index.mjs +14 -14
- package/dist/machines/tour/index.cjs +19 -19
- package/dist/machines/tour/index.d.cts +7 -7
- package/dist/machines/tour/index.d.mts +7 -7
- package/dist/machines/tour/index.mjs +21 -21
- package/dist/machines/tree-view/index.cjs +161 -161
- package/dist/machines/tree-view/index.d.cts +7 -7
- package/dist/machines/tree-view/index.d.mts +7 -7
- package/dist/machines/tree-view/index.mjs +163 -163
- package/dist/{popper-TNUpC0Kp.cjs → popper-CY3ptPbm.cjs} +4 -4
- package/dist/{popper-DbfXVgrC.mjs → popper-DxgokNha.mjs} +4 -4
- package/dist/popper.cjs +3 -3
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +3 -3
- package/dist/{rect-utils-CDBAit19.mjs → rect-utils-BobE6Wut.mjs} +9 -9
- package/dist/{rect-utils-ChBPj9XR.cjs → rect-utils-DtqZwNtZ.cjs} +9 -9
- package/dist/rect-utils.cjs +1 -1
- package/dist/rect-utils.d.cts +1 -1
- package/dist/rect-utils.d.mts +1 -1
- package/dist/rect-utils.mjs +1 -1
- package/dist/{remove-scroll-DNoftRvo.mjs → remove-scroll-DcPV6nZy.mjs} +1 -1
- package/dist/{remove-scroll-D5aUrYvL.cjs → remove-scroll-DgJgF1C5.cjs} +1 -1
- package/dist/{scroll-snap-tDsdAemJ.mjs → scroll-snap-D_M1Q8ZQ.mjs} +1 -1
- package/dist/{scroll-snap-DhVLyRe-.cjs → scroll-snap-DpEzlrHP.cjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{selection-JDFmyke7.d.mts → selection-CPTdpru8.d.mts} +2 -2
- package/dist/{selection-vng1guNc.d.cts → selection-wfybIxD3.d.cts} +2 -2
- package/dist/{store-DDjfrUhd.cjs → store-B9Ewi-zx.cjs} +4 -4
- package/dist/{store-CpMJ6RZR.mjs → store-DMXvGOAu.mjs} +4 -4
- package/dist/store.cjs +1 -1
- package/dist/store.mjs +1 -1
- package/dist/{tree-collection-CmehimuO.d.cts → tree-collection-1g4DXuqa.d.mts} +1 -2
- package/dist/{tree-collection-CqXQBHwY.d.mts → tree-collection-CPcsMvje.d.cts} +1 -2
- package/dist/{types-DL5AIQk5.d.mts → types-BM4oVvZZ.d.mts} +10 -10
- package/dist/{types-DejIu60O.d.cts → types-fB7F7BBP.d.cts} +10 -10
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{utils-B4_qn2dt.cjs → utils-CJsQZljH.cjs} +21 -21
- package/dist/{utils-DSBXwmDm.mjs → utils-Vs04rt8f.mjs} +21 -21
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{color-Bcy-SLQ1.d.mts → color-B3sgFAa6.d.mts} +0 -0
- /package/dist/{color-Bj20c2qw.d.cts → color-BhaNI8oR.d.cts} +0 -0
- /package/dist/{create-anatomy-DHVOqZET.d.mts → create-anatomy-9eFQs7lO.d.cts} +0 -0
- /package/dist/{create-anatomy-CArN8dVu.mjs → create-anatomy-BVqM_FJ6.mjs} +0 -0
- /package/dist/{create-anatomy-smWrirg1.d.cts → create-anatomy-UNZ__hxH.d.mts} +0 -0
- /package/dist/{create-props-SRSjdUTq.mjs → create-props-Dtoa4OUk.mjs} +0 -0
- /package/dist/{data-url-C3ITPVRX.d.cts → data-url-BrR6WHXH.d.cts} +0 -0
- /package/dist/{data-url-mcVoUiET.d.mts → data-url-lOYkmlVX.d.mts} +0 -0
- /package/dist/{functions-7V6veSov.d.cts → functions-Box4pxDB.d.cts} +0 -0
- /package/dist/{functions-CjitT5Gr.d.mts → functions-Du4c1Rcz.d.mts} +0 -0
- /package/dist/{index-CygfPLvT.d.mts → index-B2rsdD3v.d.cts} +0 -0
- /package/dist/{index-Bvn6ocEE.d.mts → index-CXu0elLS.d.mts} +0 -0
- /package/dist/{index-C9-feK5c.d.cts → index-Cf0hysnI.d.cts} +0 -0
- /package/dist/{index-Owca7uxB.d.cts → index-DIJJrhP_.d.mts} +0 -0
- /package/dist/{index-BTi1wETB.d.mts → index-DJ1MHM3z.d.mts} +0 -0
- /package/dist/{index-BqhWpjZh.d.mts → index-DLbWwJUT.d.mts} +0 -0
- /package/dist/{live-region-BcSdQIM8.mjs → live-region-CBp2K1JK.mjs} +0 -0
- /package/dist/{node-CHGS3acf.d.mts → node-BGWAyUGo.d.mts} +0 -0
- /package/dist/{node-CSsuPZVZ.d.cts → node-D8Ztr9Hg.d.cts} +0 -0
- /package/dist/{raf-BV1049GE.d.mts → raf-B8md2utS.d.mts} +0 -0
- /package/dist/{raf-Cd2FGy0z.d.cts → raf-DWPAf0Nd.d.cts} +0 -0
- /package/dist/{typeahead-BdNwVP09.d.cts → typeahead-BhNtyjQC.d.cts} +0 -0
- /package/dist/{typeahead-DMSwLv1e.d.mts → typeahead-D4TUCBly.d.mts} +0 -0
- /package/dist/{types-D5ziaMrd.d.cts → types-B--gFZVP.d.cts} +0 -0
- /package/dist/{types-DddL75YY.d.cts → types-C1F7Y-Hc.d.cts} +0 -0
- /package/dist/{types-CADkcKtr.d.cts → types-CBWaEVU4.d.cts} +0 -0
- /package/dist/{types-D-ZRl1jP.d.mts → types-CW-uU8Nz.d.mts} +0 -0
- /package/dist/{types-Df8ZhdY-.d.mts → types-D0tsc4Jo.d.mts} +0 -0
- /package/dist/{types-GxLIgJib.d.cts → types-DTZZ5wsp.d.cts} +0 -0
- /package/dist/{types-J14X3oxU.d.mts → types-Dw1I6cFP.d.mts} +0 -0
- /package/dist/{types-F-0xFywm.d.cts → types-oR0sELNB.d.cts} +0 -0
- /package/dist/{wait-for-ChpX25fU.d.cts → wait-for-CVZu6XNU.d.mts} +0 -0
- /package/dist/{wait-for-DxY1szJ6.d.mts → wait-for-D5gBQyam.d.cts} +0 -0
|
@@ -46,7 +46,6 @@ function alignDate(date, alignment, duration, locale, min, max) {
|
|
|
46
46
|
switch (alignment) {
|
|
47
47
|
case "start": return alignStart(date, duration, locale, min, max);
|
|
48
48
|
case "end": return alignEnd(date, duration, locale, min, max);
|
|
49
|
-
case "center":
|
|
50
49
|
default: return alignCenter(date, duration, locale, min, max);
|
|
51
50
|
}
|
|
52
51
|
}
|
|
@@ -144,7 +143,7 @@ function formatSelectedDate(startDate, endDate, locale, timeZone) {
|
|
|
144
143
|
let end = endDate ?? startDate;
|
|
145
144
|
let formatter = getDayFormatter(locale, timeZone);
|
|
146
145
|
if ((0, _internationalized_date.isSameDay)(start, end)) return formatter.format(start.toDate(timeZone));
|
|
147
|
-
return formatRange(start, end, formatter, (start
|
|
146
|
+
return formatRange(start, end, formatter, (start, end) => `${start} – ${end}`, timeZone);
|
|
148
147
|
}
|
|
149
148
|
function formatVisibleRange(startDate, endDate, locale, timeZone) {
|
|
150
149
|
const start = startDate;
|
|
@@ -270,15 +269,15 @@ function getTodayDate(timeZone) {
|
|
|
270
269
|
function setCalendar(date, calendar) {
|
|
271
270
|
return (0, _internationalized_date.toCalendar)((0, _internationalized_date.toCalendarDateTime)(date), calendar);
|
|
272
271
|
}
|
|
273
|
-
function setDate(date, startDate, isDateUnavailable
|
|
272
|
+
function setDate(date, startDate, isDateUnavailable, locale, minValue, maxValue) {
|
|
274
273
|
let result;
|
|
275
274
|
result = constrainValue(date, minValue, maxValue);
|
|
276
|
-
result = getPreviousAvailableDate(date, startDate, locale, isDateUnavailable
|
|
275
|
+
result = getPreviousAvailableDate(date, startDate, locale, isDateUnavailable);
|
|
277
276
|
return result;
|
|
278
277
|
}
|
|
279
|
-
function getPreviousAvailableDate(date, minValue, locale, isDateUnavailable
|
|
280
|
-
if (!isDateUnavailable
|
|
281
|
-
while (date.compare(minValue) >= 0 && isDateUnavailable
|
|
278
|
+
function getPreviousAvailableDate(date, minValue, locale, isDateUnavailable) {
|
|
279
|
+
if (!isDateUnavailable) return date;
|
|
280
|
+
while (date.compare(minValue) >= 0 && isDateUnavailable(date, locale)) date = date.subtract({ days: 1 });
|
|
282
281
|
if (date.compare(minValue) >= 0) return date;
|
|
283
282
|
}
|
|
284
283
|
|
|
@@ -423,8 +422,8 @@ function parseDateString(date, locale, timeZone) {
|
|
|
423
422
|
if (isValidYear(year) && isValidMonth(month) && isValidDay(day)) return new _internationalized_date.CalendarDate(+year, +month, +day);
|
|
424
423
|
const time = Date.parse(date);
|
|
425
424
|
if (!isNaN(time)) {
|
|
426
|
-
const date
|
|
427
|
-
return new _internationalized_date.CalendarDate(date
|
|
425
|
+
const date = new Date(time);
|
|
426
|
+
return new _internationalized_date.CalendarDate(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
428
427
|
}
|
|
429
428
|
}
|
|
430
429
|
function createRegex(locale, timeZone) {
|
|
@@ -452,21 +451,21 @@ function extract(pattern, str) {
|
|
|
452
451
|
//#endregion
|
|
453
452
|
//#region src/shared/date-utils/preset.ts
|
|
454
453
|
function getDateRangePreset(preset, locale, timeZone) {
|
|
455
|
-
const today
|
|
454
|
+
const today = (0, _internationalized_date.toCalendarDate)((0, _internationalized_date.now)(timeZone));
|
|
456
455
|
switch (preset) {
|
|
457
|
-
case "thisWeek": return [(0, _internationalized_date.startOfWeek)(today
|
|
458
|
-
case "thisMonth": return [(0, _internationalized_date.startOfMonth)(today
|
|
459
|
-
case "thisQuarter": return [(0, _internationalized_date.startOfMonth)(today
|
|
460
|
-
case "thisYear": return [(0, _internationalized_date.startOfYear)(today
|
|
461
|
-
case "last3Days": return [today
|
|
462
|
-
case "last7Days": return [today
|
|
463
|
-
case "last14Days": return [today
|
|
464
|
-
case "last30Days": return [today
|
|
465
|
-
case "last90Days": return [today
|
|
466
|
-
case "lastMonth": return [(0, _internationalized_date.startOfMonth)(today
|
|
467
|
-
case "lastQuarter": return [(0, _internationalized_date.startOfMonth)(today
|
|
468
|
-
case "lastWeek": return [(0, _internationalized_date.startOfWeek)(today
|
|
469
|
-
case "lastYear": return [(0, _internationalized_date.startOfYear)(today
|
|
456
|
+
case "thisWeek": return [(0, _internationalized_date.startOfWeek)(today, locale), (0, _internationalized_date.endOfWeek)(today, locale)];
|
|
457
|
+
case "thisMonth": return [(0, _internationalized_date.startOfMonth)(today), today];
|
|
458
|
+
case "thisQuarter": return [(0, _internationalized_date.startOfMonth)(today).add({ months: -((today.month - 1) % 3) }), today];
|
|
459
|
+
case "thisYear": return [(0, _internationalized_date.startOfYear)(today), today];
|
|
460
|
+
case "last3Days": return [today.add({ days: -2 }), today];
|
|
461
|
+
case "last7Days": return [today.add({ days: -6 }), today];
|
|
462
|
+
case "last14Days": return [today.add({ days: -13 }), today];
|
|
463
|
+
case "last30Days": return [today.add({ days: -29 }), today];
|
|
464
|
+
case "last90Days": return [today.add({ days: -89 }), today];
|
|
465
|
+
case "lastMonth": return [(0, _internationalized_date.startOfMonth)(today.add({ months: -1 })), (0, _internationalized_date.endOfMonth)(today.add({ months: -1 }))];
|
|
466
|
+
case "lastQuarter": return [(0, _internationalized_date.startOfMonth)(today.add({ months: -((today.month - 1) % 3) - 3 })), (0, _internationalized_date.endOfMonth)(today.add({ months: -((today.month - 1) % 3) - 1 }))];
|
|
467
|
+
case "lastWeek": return [(0, _internationalized_date.startOfWeek)(today, locale).add({ weeks: -1 }), (0, _internationalized_date.endOfWeek)(today, locale).add({ weeks: -1 })];
|
|
468
|
+
case "lastYear": return [(0, _internationalized_date.startOfYear)(today.add({ years: -1 })), (0, _internationalized_date.endOfYear)(today.add({ years: -1 }))];
|
|
470
469
|
default: throw new Error(`Invalid date range preset: ${preset}`);
|
|
471
470
|
}
|
|
472
471
|
}
|
|
@@ -45,7 +45,6 @@ function alignDate(date, alignment, duration, locale, min, max) {
|
|
|
45
45
|
switch (alignment) {
|
|
46
46
|
case "start": return alignStart(date, duration, locale, min, max);
|
|
47
47
|
case "end": return alignEnd(date, duration, locale, min, max);
|
|
48
|
-
case "center":
|
|
49
48
|
default: return alignCenter(date, duration, locale, min, max);
|
|
50
49
|
}
|
|
51
50
|
}
|
|
@@ -143,7 +142,7 @@ function formatSelectedDate(startDate, endDate, locale, timeZone) {
|
|
|
143
142
|
let end = endDate ?? startDate;
|
|
144
143
|
let formatter = getDayFormatter(locale, timeZone);
|
|
145
144
|
if (isSameDay(start, end)) return formatter.format(start.toDate(timeZone));
|
|
146
|
-
return formatRange(start, end, formatter, (start
|
|
145
|
+
return formatRange(start, end, formatter, (start, end) => `${start} – ${end}`, timeZone);
|
|
147
146
|
}
|
|
148
147
|
function formatVisibleRange(startDate, endDate, locale, timeZone) {
|
|
149
148
|
const start = startDate;
|
|
@@ -269,15 +268,15 @@ function getTodayDate(timeZone) {
|
|
|
269
268
|
function setCalendar(date, calendar) {
|
|
270
269
|
return toCalendar(toCalendarDateTime(date), calendar);
|
|
271
270
|
}
|
|
272
|
-
function setDate(date, startDate, isDateUnavailable
|
|
271
|
+
function setDate(date, startDate, isDateUnavailable, locale, minValue, maxValue) {
|
|
273
272
|
let result;
|
|
274
273
|
result = constrainValue(date, minValue, maxValue);
|
|
275
|
-
result = getPreviousAvailableDate(date, startDate, locale, isDateUnavailable
|
|
274
|
+
result = getPreviousAvailableDate(date, startDate, locale, isDateUnavailable);
|
|
276
275
|
return result;
|
|
277
276
|
}
|
|
278
|
-
function getPreviousAvailableDate(date, minValue, locale, isDateUnavailable
|
|
279
|
-
if (!isDateUnavailable
|
|
280
|
-
while (date.compare(minValue) >= 0 && isDateUnavailable
|
|
277
|
+
function getPreviousAvailableDate(date, minValue, locale, isDateUnavailable) {
|
|
278
|
+
if (!isDateUnavailable) return date;
|
|
279
|
+
while (date.compare(minValue) >= 0 && isDateUnavailable(date, locale)) date = date.subtract({ days: 1 });
|
|
281
280
|
if (date.compare(minValue) >= 0) return date;
|
|
282
281
|
}
|
|
283
282
|
|
|
@@ -422,8 +421,8 @@ function parseDateString(date, locale, timeZone) {
|
|
|
422
421
|
if (isValidYear(year) && isValidMonth(month) && isValidDay(day)) return new CalendarDate(+year, +month, +day);
|
|
423
422
|
const time = Date.parse(date);
|
|
424
423
|
if (!isNaN(time)) {
|
|
425
|
-
const date
|
|
426
|
-
return new CalendarDate(date
|
|
424
|
+
const date = new Date(time);
|
|
425
|
+
return new CalendarDate(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
427
426
|
}
|
|
428
427
|
}
|
|
429
428
|
function createRegex(locale, timeZone) {
|
|
@@ -451,21 +450,21 @@ function extract(pattern, str) {
|
|
|
451
450
|
//#endregion
|
|
452
451
|
//#region src/shared/date-utils/preset.ts
|
|
453
452
|
function getDateRangePreset(preset, locale, timeZone) {
|
|
454
|
-
const today
|
|
453
|
+
const today = toCalendarDate(now(timeZone));
|
|
455
454
|
switch (preset) {
|
|
456
|
-
case "thisWeek": return [startOfWeek(today
|
|
457
|
-
case "thisMonth": return [startOfMonth(today
|
|
458
|
-
case "thisQuarter": return [startOfMonth(today
|
|
459
|
-
case "thisYear": return [startOfYear(today
|
|
460
|
-
case "last3Days": return [today
|
|
461
|
-
case "last7Days": return [today
|
|
462
|
-
case "last14Days": return [today
|
|
463
|
-
case "last30Days": return [today
|
|
464
|
-
case "last90Days": return [today
|
|
465
|
-
case "lastMonth": return [startOfMonth(today
|
|
466
|
-
case "lastQuarter": return [startOfMonth(today
|
|
467
|
-
case "lastWeek": return [startOfWeek(today
|
|
468
|
-
case "lastYear": return [startOfYear(today
|
|
455
|
+
case "thisWeek": return [startOfWeek(today, locale), endOfWeek(today, locale)];
|
|
456
|
+
case "thisMonth": return [startOfMonth(today), today];
|
|
457
|
+
case "thisQuarter": return [startOfMonth(today).add({ months: -((today.month - 1) % 3) }), today];
|
|
458
|
+
case "thisYear": return [startOfYear(today), today];
|
|
459
|
+
case "last3Days": return [today.add({ days: -2 }), today];
|
|
460
|
+
case "last7Days": return [today.add({ days: -6 }), today];
|
|
461
|
+
case "last14Days": return [today.add({ days: -13 }), today];
|
|
462
|
+
case "last30Days": return [today.add({ days: -29 }), today];
|
|
463
|
+
case "last90Days": return [today.add({ days: -89 }), today];
|
|
464
|
+
case "lastMonth": return [startOfMonth(today.add({ months: -1 })), endOfMonth(today.add({ months: -1 }))];
|
|
465
|
+
case "lastQuarter": return [startOfMonth(today.add({ months: -((today.month - 1) % 3) - 3 })), endOfMonth(today.add({ months: -((today.month - 1) % 3) - 1 }))];
|
|
466
|
+
case "lastWeek": return [startOfWeek(today, locale).add({ weeks: -1 }), endOfWeek(today, locale).add({ weeks: -1 })];
|
|
467
|
+
case "lastYear": return [startOfYear(today.add({ years: -1 })), endOfYear(today.add({ years: -1 }))];
|
|
469
468
|
default: throw new Error(`Invalid date range preset: ${preset}`);
|
|
470
469
|
}
|
|
471
470
|
}
|
package/dist/date-utils.cjs
CHANGED
package/dist/date-utils.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as DateRangePreset, i as DateGranularity, n as DateAlignment, r as DateAvailableFn, t as DateAdjustFn } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { a as DateRangePreset, i as DateGranularity, n as DateAlignment, r as DateAvailableFn, t as DateAdjustFn } from "./types-DTZZ5wsp.cjs";
|
|
2
|
+
import * as _internationalized_date4 from "@internationalized/date";
|
|
3
3
|
import { Calendar, DateDuration, DateFormatter, DateValue } from "@internationalized/date";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/date-utils/align.d.ts
|
|
@@ -27,7 +27,7 @@ declare function getUnitDuration(duration: DateDuration): {
|
|
|
27
27
|
weeks?: number;
|
|
28
28
|
days?: number;
|
|
29
29
|
};
|
|
30
|
-
declare function getEndDate(startDate: DateValue, duration: DateDuration):
|
|
30
|
+
declare function getEndDate(startDate: DateValue, duration: DateDuration): _internationalized_date4.CalendarDate | _internationalized_date4.CalendarDateTime | _internationalized_date4.ZonedDateTime;
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/shared/date-utils/format.d.ts
|
|
33
33
|
declare function formatRange(startDate: DateValue, endDate: DateValue, formatter: DateFormatter, toString: (start: string, end: string) => string, timeZone: string): string;
|
|
@@ -50,7 +50,7 @@ declare function getWeekdayFormats(locale: string, timeZone: string): <T extends
|
|
|
50
50
|
narrow: string;
|
|
51
51
|
};
|
|
52
52
|
declare function getWeekDays(date: DateValue, startOfWeekProp: number | undefined, timeZone: string, locale: string): {
|
|
53
|
-
value:
|
|
53
|
+
value: _internationalized_date4.CalendarDate | _internationalized_date4.CalendarDateTime | _internationalized_date4.ZonedDateTime;
|
|
54
54
|
short: string;
|
|
55
55
|
long: string;
|
|
56
56
|
narrow: string;
|
|
@@ -69,8 +69,8 @@ declare function getDecadeRange(year: number, opts?: {
|
|
|
69
69
|
}): number[];
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region src/shared/date-utils/mutation.d.ts
|
|
72
|
-
declare function getTodayDate(timeZone?: string):
|
|
73
|
-
declare function setCalendar(date: DateValue, calendar: Calendar):
|
|
72
|
+
declare function getTodayDate(timeZone?: string): _internationalized_date4.CalendarDate;
|
|
73
|
+
declare function setCalendar(date: DateValue, calendar: Calendar): _internationalized_date4.CalendarDateTime;
|
|
74
74
|
declare function setDate(date: DateValue, startDate: DateValue, isDateUnavailable: DateAvailableFn, locale: string, minValue: DateValue, maxValue: DateValue): DateValue | undefined;
|
|
75
75
|
declare function getPreviousAvailableDate(date: DateValue, minValue: DateValue, locale: string, isDateUnavailable?: DateAvailableFn): DateValue | undefined;
|
|
76
76
|
//#endregion
|
package/dist/date-utils.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as getMonthFormatter, B as constrainValue, C as getEndOfWeek, D as getWeekDays, E as getStartOfWeek, F as getUnitDuration, G as isPreviousRangeInvalid, H as isDateOutsideRange, I as alignCenter, J as DateAdjustFn, K as alignDate, L as alignEnd, M as formatSelectedDate, N as formatVisibleRange, O as getWeekdayFormats, P as getEndDate, R as alignStart, S as getDaysInWeek, T as getMonthNames, U as isDateUnavailable, V as isDateEqual, W as isNextRangeInvalid, X as DateRangePreset, Y as DateGranularity, _ as setDate, a as getAdjustedDateFn, b as getYearsRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as formatRange, k as getDayFormatter, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as alignStartDate, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getMonthDays, x as normalizeYear, y as getDecadeRange, z as constrainStart } from "./index-
|
|
1
|
+
import { A as getMonthFormatter, B as constrainValue, C as getEndOfWeek, D as getWeekDays, E as getStartOfWeek, F as getUnitDuration, G as isPreviousRangeInvalid, H as isDateOutsideRange, I as alignCenter, J as DateAdjustFn, K as alignDate, L as alignEnd, M as formatSelectedDate, N as formatVisibleRange, O as getWeekdayFormats, P as getEndDate, R as alignStart, S as getDaysInWeek, T as getMonthNames, U as isDateUnavailable, V as isDateEqual, W as isNextRangeInvalid, X as DateRangePreset, Y as DateGranularity, _ as setDate, a as getAdjustedDateFn, b as getYearsRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as formatRange, k as getDayFormatter, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as alignStartDate, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getMonthDays, x as normalizeYear, y as getDecadeRange, z as constrainStart } from "./index-DLbWwJUT.mjs";
|
|
2
2
|
export { AdjustDateParams, AdjustDateReturn, DateAdjustFn, DateGranularity, DateRangePreset, YearsRange, alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
|
package/dist/date-utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as getMonthFormatter, B as alignCenter, C as getStartOfWeek, D as formatSelectedDate, E as formatRange, F as isDateUnavailable, H as alignStart, I as isNextRangeInvalid, L as isPreviousRangeInvalid, M as getUnitDuration, N as isDateEqual, O as formatVisibleRange, P as isDateOutsideRange, R as alignDate, S as getMonthNames, T as getWeekdayFormats, U as constrainStart, V as alignEnd, W as constrainValue, _ as getYearsRange, a as getNextRow, b as getEndOfWeek, c as getPreviousRow, d as getSectionStart, f as getPreviousAvailableDate, g as getDecadeRange, h as setDate, i as getNextPage, j as getEndDate, k as getDayFormatter, l as getPreviousSection, m as setCalendar, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, u as getSectionEnd, v as normalizeYear, w as getWeekDays, x as getMonthDays, y as getDaysInWeek, z as alignStartDate } from "./date-utils-
|
|
1
|
+
import { A as getMonthFormatter, B as alignCenter, C as getStartOfWeek, D as formatSelectedDate, E as formatRange, F as isDateUnavailable, H as alignStart, I as isNextRangeInvalid, L as isPreviousRangeInvalid, M as getUnitDuration, N as isDateEqual, O as formatVisibleRange, P as isDateOutsideRange, R as alignDate, S as getMonthNames, T as getWeekdayFormats, U as constrainStart, V as alignEnd, W as constrainValue, _ as getYearsRange, a as getNextRow, b as getEndOfWeek, c as getPreviousRow, d as getSectionStart, f as getPreviousAvailableDate, g as getDecadeRange, h as setDate, i as getNextPage, j as getEndDate, k as getDayFormatter, l as getPreviousSection, m as setCalendar, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, u as getSectionEnd, v as normalizeYear, w as getWeekDays, x as getMonthDays, y as getDaysInWeek, z as alignStartDate } from "./date-utils-LnVS7q0z.mjs";
|
|
2
2
|
|
|
3
3
|
export { alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
5
|
-
return typeof o
|
|
6
|
-
} : function(o
|
|
7
|
-
return o
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function(o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/toPrimitive.js
|
|
13
13
|
function toPrimitive(t, r) {
|
|
14
14
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
15
|
var e = t[Symbol.toPrimitive];
|
|
@@ -22,14 +22,14 @@ function toPrimitive(t, r) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region \0@oxc-project+runtime@0.
|
|
25
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/toPropertyKey.js
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
28
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region \0@oxc-project+runtime@0.
|
|
32
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/defineProperty.js
|
|
33
33
|
function _defineProperty(e, r, t) {
|
|
34
34
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
35
35
|
value: t,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/typeof.js
|
|
3
3
|
function _typeof(o) {
|
|
4
4
|
"@babel/helpers - typeof";
|
|
5
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
6
|
-
return typeof o
|
|
7
|
-
} : function(o
|
|
8
|
-
return o
|
|
5
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
6
|
+
return typeof o;
|
|
7
|
+
} : function(o) {
|
|
8
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9
9
|
}, _typeof(o);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
13
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/toPrimitive.js
|
|
14
14
|
function toPrimitive(t, r) {
|
|
15
15
|
if ("object" != _typeof(t) || !t) return t;
|
|
16
16
|
var e = t[Symbol.toPrimitive];
|
|
@@ -23,14 +23,14 @@ function toPrimitive(t, r) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region \0@oxc-project+runtime@0.
|
|
26
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/toPropertyKey.js
|
|
27
27
|
function toPropertyKey(t) {
|
|
28
28
|
var i = toPrimitive(t, "string");
|
|
29
29
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/defineProperty.js
|
|
34
34
|
function _defineProperty(e, r, t) {
|
|
35
35
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
36
|
value: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $t as getDocument, H as nextTick, W as raf, Zt as contains, ct as addDomEvent, pt as getEventTarget, t as waitForElement, u as setStyle, un as isHTMLElement } from "./dom-query-
|
|
2
|
-
import { at as isFunction, i as warn } from "./utils-
|
|
3
|
-
import { t as trackInteractOutside } from "./interact-outside-
|
|
1
|
+
import { $t as getDocument, H as nextTick, W as raf, Zt as contains, ct as addDomEvent, pt as getEventTarget, t as waitForElement, u as setStyle, un as isHTMLElement } from "./dom-query-CQFBCdpo.mjs";
|
|
2
|
+
import { at as isFunction, i as warn } from "./utils-Vs04rt8f.mjs";
|
|
3
|
+
import { t as trackInteractOutside } from "./interact-outside-CRmkKF6k.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/dismissable/escape-keydown.ts
|
|
6
6
|
function trackEscapeKeydown(node, fn) {
|
|
@@ -153,10 +153,10 @@ function disablePointerEventsOutside(node, persistentElements) {
|
|
|
153
153
|
}
|
|
154
154
|
persistentElements?.forEach((el) => {
|
|
155
155
|
const [promise, abort] = waitForElement(() => {
|
|
156
|
-
const node
|
|
157
|
-
return isHTMLElement(node
|
|
156
|
+
const node = el();
|
|
157
|
+
return isHTMLElement(node) ? node : null;
|
|
158
158
|
}, { timeout: 1e3 });
|
|
159
|
-
promise.then((el
|
|
159
|
+
promise.then((el) => cleanups.push(setStyle(el, { pointerEvents: "auto" })));
|
|
160
160
|
cleanups.push(abort);
|
|
161
161
|
});
|
|
162
162
|
return () => {
|
|
@@ -221,7 +221,7 @@ function trackDismissableElementImpl(node, options) {
|
|
|
221
221
|
const _containers = Array.isArray(containers) ? containers : [containers];
|
|
222
222
|
const persistentElements = options.persistentElements?.map((fn) => fn()).filter(isHTMLElement);
|
|
223
223
|
if (persistentElements) _containers.push(...persistentElements);
|
|
224
|
-
return _containers.some((node
|
|
224
|
+
return _containers.some((node) => contains(node, target)) || layerStack.isInNestedLayer(node, target);
|
|
225
225
|
}
|
|
226
226
|
const cleanups = [
|
|
227
227
|
pointerBlocking ? disablePointerEventsOutside(node, options.persistentElements) : void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_dom_query = require('./dom-query-
|
|
2
|
-
const require_utils = require('./utils-
|
|
3
|
-
const require_interact_outside = require('./interact-outside-
|
|
1
|
+
const require_dom_query = require('./dom-query-CAFhX43H.cjs');
|
|
2
|
+
const require_utils = require('./utils-CJsQZljH.cjs');
|
|
3
|
+
const require_interact_outside = require('./interact-outside-Dk2otQqs.cjs');
|
|
4
4
|
|
|
5
5
|
//#region src/shared/dismissable/escape-keydown.ts
|
|
6
6
|
function trackEscapeKeydown(node, fn) {
|
|
@@ -153,10 +153,10 @@ function disablePointerEventsOutside(node, persistentElements) {
|
|
|
153
153
|
}
|
|
154
154
|
persistentElements?.forEach((el) => {
|
|
155
155
|
const [promise, abort] = require_dom_query.waitForElement(() => {
|
|
156
|
-
const node
|
|
157
|
-
return require_dom_query.isHTMLElement(node
|
|
156
|
+
const node = el();
|
|
157
|
+
return require_dom_query.isHTMLElement(node) ? node : null;
|
|
158
158
|
}, { timeout: 1e3 });
|
|
159
|
-
promise.then((el
|
|
159
|
+
promise.then((el) => cleanups.push(require_dom_query.setStyle(el, { pointerEvents: "auto" })));
|
|
160
160
|
cleanups.push(abort);
|
|
161
161
|
});
|
|
162
162
|
return () => {
|
|
@@ -221,7 +221,7 @@ function trackDismissableElementImpl(node, options) {
|
|
|
221
221
|
const _containers = Array.isArray(containers) ? containers : [containers];
|
|
222
222
|
const persistentElements = options.persistentElements?.map((fn) => fn()).filter(require_dom_query.isHTMLElement);
|
|
223
223
|
if (persistentElements) _containers.push(...persistentElements);
|
|
224
|
-
return _containers.some((node
|
|
224
|
+
return _containers.some((node) => require_dom_query.contains(node, target)) || layerStack.isInNestedLayer(node, target);
|
|
225
225
|
}
|
|
226
226
|
const cleanups = [
|
|
227
227
|
pointerBlocking ? disablePointerEventsOutside(node, options.persistentElements) : void 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as InteractOutsideHandlers } from "./index-
|
|
2
|
-
import { t as MaybeFunction } from "./functions-
|
|
1
|
+
import { i as InteractOutsideHandlers } from "./index-Cf0hysnI.cjs";
|
|
2
|
+
import { t as MaybeFunction } from "./functions-Box4pxDB.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/dismissable/layer-stack.d.ts
|
|
5
5
|
type LayerType = "dialog" | "popover" | "menu" | "listbox" | (string & {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as InteractOutsideHandlers } from "./index-
|
|
2
|
-
import { t as MaybeFunction } from "./functions-
|
|
1
|
+
import { i as InteractOutsideHandlers } from "./index-CXu0elLS.mjs";
|
|
2
|
+
import { t as MaybeFunction } from "./functions-Du4c1Rcz.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/dismissable/layer-stack.d.ts
|
|
5
5
|
type LayerType = "dialog" | "popover" | "menu" | "listbox" | (string & {});
|
package/dist/dismissable.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
require('./utils-
|
|
3
|
-
require('./interact-outside-
|
|
4
|
-
const require_dismissable = require('./dismissable-
|
|
1
|
+
require('./dom-query-CAFhX43H.cjs');
|
|
2
|
+
require('./utils-CJsQZljH.cjs');
|
|
3
|
+
require('./interact-outside-Dk2otQqs.cjs');
|
|
4
|
+
const require_dismissable = require('./dismissable-DSFGuAU6.cjs');
|
|
5
5
|
|
|
6
6
|
exports.trackDismissableBranch = require_dismissable.trackDismissableBranch;
|
|
7
7
|
exports.trackDismissableElement = require_dismissable.trackDismissableElement;
|
package/dist/dismissable.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "./index-
|
|
2
|
-
import { a as trackDismissableElement, i as trackDismissableBranch, n as DismissableElementOptions, o as LayerType, r as PersistentElementOptions, t as DismissableElementHandlers } from "./dismissable-layer-
|
|
1
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "./index-Cf0hysnI.cjs";
|
|
2
|
+
import { a as trackDismissableElement, i as trackDismissableBranch, n as DismissableElementOptions, o as LayerType, r as PersistentElementOptions, t as DismissableElementHandlers } from "./dismissable-layer-B2bSyA07.cjs";
|
|
3
3
|
export { DismissableElementHandlers, DismissableElementOptions, FocusOutsideEvent, InteractOutsideEvent, InteractOutsideHandlers, LayerType, PersistentElementOptions, PointerDownOutsideEvent, trackDismissableBranch, trackDismissableElement };
|
package/dist/dismissable.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "./index-
|
|
2
|
-
import { a as trackDismissableElement, i as trackDismissableBranch, n as DismissableElementOptions, o as LayerType, r as PersistentElementOptions, t as DismissableElementHandlers } from "./dismissable-layer-
|
|
1
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "./index-CXu0elLS.mjs";
|
|
2
|
+
import { a as trackDismissableElement, i as trackDismissableBranch, n as DismissableElementOptions, o as LayerType, r as PersistentElementOptions, t as DismissableElementHandlers } from "./dismissable-layer-CpUMMV1f.mjs";
|
|
3
3
|
export { DismissableElementHandlers, DismissableElementOptions, FocusOutsideEvent, InteractOutsideEvent, InteractOutsideHandlers, LayerType, PersistentElementOptions, PointerDownOutsideEvent, trackDismissableBranch, trackDismissableElement };
|
package/dist/dismissable.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import "./utils-
|
|
3
|
-
import "./interact-outside-
|
|
4
|
-
import { n as trackDismissableElement, t as trackDismissableBranch } from "./dismissable-
|
|
1
|
+
import "./dom-query-CQFBCdpo.mjs";
|
|
2
|
+
import "./utils-Vs04rt8f.mjs";
|
|
3
|
+
import "./interact-outside-CRmkKF6k.mjs";
|
|
4
|
+
import { n as trackDismissableElement, t as trackDismissableBranch } from "./dismissable-BlZazbp3.mjs";
|
|
5
5
|
|
|
6
6
|
export { trackDismissableBranch, trackDismissableElement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_defineProperty = require('./defineProperty-
|
|
1
|
+
const require_defineProperty = require('./defineProperty-_bOnJOii.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/shared/dom-query/caret.ts
|
|
4
4
|
function isCaretAtStart(input) {
|
|
@@ -265,8 +265,8 @@ function getPlatform() {
|
|
|
265
265
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
266
266
|
}
|
|
267
267
|
function getUserAgent() {
|
|
268
|
-
const ua
|
|
269
|
-
if (ua
|
|
268
|
+
const ua = navigator.userAgentData;
|
|
269
|
+
if (ua && Array.isArray(ua.brands)) return ua.brands.map(({ brand, version }) => `${brand}/${version}`).join(" ");
|
|
270
270
|
return navigator.userAgent;
|
|
271
271
|
}
|
|
272
272
|
const pt = (v) => isDom() && v.test(getPlatform());
|
|
@@ -670,13 +670,13 @@ function raf(fn) {
|
|
|
670
670
|
}
|
|
671
671
|
function nextTick(fn) {
|
|
672
672
|
const set = /* @__PURE__ */ new Set();
|
|
673
|
-
function raf
|
|
674
|
-
const id = globalThis.requestAnimationFrame(fn
|
|
673
|
+
function raf(fn) {
|
|
674
|
+
const id = globalThis.requestAnimationFrame(fn);
|
|
675
675
|
set.add(() => globalThis.cancelAnimationFrame(id));
|
|
676
676
|
}
|
|
677
|
-
raf
|
|
677
|
+
raf(() => raf(fn));
|
|
678
678
|
return function cleanup() {
|
|
679
|
-
set.forEach((fn
|
|
679
|
+
set.forEach((fn) => fn());
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
682
|
function queueBeforeEvent(el, type, cb) {
|
|
@@ -880,7 +880,7 @@ function requestPointerLock(doc, fn) {
|
|
|
880
880
|
} catch {}
|
|
881
881
|
const cleanup = [addDomEvent(doc, "pointerlockchange", onPointerChange, false), addDomEvent(doc, "pointerlockerror", onPointerError, false)];
|
|
882
882
|
return () => {
|
|
883
|
-
cleanup.forEach((cleanup
|
|
883
|
+
cleanup.forEach((cleanup) => cleanup());
|
|
884
884
|
doc.exitPointerLock();
|
|
885
885
|
};
|
|
886
886
|
}
|
|
@@ -1144,10 +1144,10 @@ function createSharedResizeObserver(options) {
|
|
|
1144
1144
|
const win = getWindow(element);
|
|
1145
1145
|
getObserver(win).observe(element, options);
|
|
1146
1146
|
return () => {
|
|
1147
|
-
const elementListeners
|
|
1148
|
-
if (!elementListeners
|
|
1149
|
-
elementListeners
|
|
1150
|
-
if (elementListeners
|
|
1147
|
+
const elementListeners = listeners.get(element);
|
|
1148
|
+
if (!elementListeners) return;
|
|
1149
|
+
elementListeners.delete(listener);
|
|
1150
|
+
if (elementListeners.size === 0) {
|
|
1151
1151
|
listeners.delete(element);
|
|
1152
1152
|
getObserver(win).unobserve(element);
|
|
1153
1153
|
}
|
|
@@ -1198,8 +1198,8 @@ const sanitize = (str) => str.split("").map((char) => {
|
|
|
1198
1198
|
const getValueText = (el) => {
|
|
1199
1199
|
return sanitize(el.dataset?.valuetext ?? el.textContent ?? "");
|
|
1200
1200
|
};
|
|
1201
|
-
const match = (valueText, query
|
|
1202
|
-
return valueText.trim().toLowerCase().startsWith(query
|
|
1201
|
+
const match = (valueText, query) => {
|
|
1202
|
+
return valueText.trim().toLowerCase().startsWith(query.toLowerCase());
|
|
1203
1203
|
};
|
|
1204
1204
|
function getByText(v, text, currentId, itemToId = defaultItemToId) {
|
|
1205
1205
|
const index = currentId ? indexOfId(v, currentId, itemToId) : -1;
|
|
@@ -1260,18 +1260,18 @@ function isEqual(a, b) {
|
|
|
1260
1260
|
//#endregion
|
|
1261
1261
|
//#region src/shared/dom-query/typeahead.ts
|
|
1262
1262
|
function getByTypeaheadImpl(baseItems, options) {
|
|
1263
|
-
const { state
|
|
1264
|
-
const search = state
|
|
1265
|
-
const query
|
|
1266
|
-
const next = getByText(baseItems.slice(), query
|
|
1263
|
+
const { state, activeId, key, timeout = 350, itemToId } = options;
|
|
1264
|
+
const search = state.keysSoFar + key;
|
|
1265
|
+
const query = search.length > 1 && Array.from(search).every((char) => char === search[0]) ? search[0] : search;
|
|
1266
|
+
const next = getByText(baseItems.slice(), query, activeId, itemToId);
|
|
1267
1267
|
function cleanup() {
|
|
1268
|
-
clearTimeout(state
|
|
1269
|
-
state
|
|
1268
|
+
clearTimeout(state.timer);
|
|
1269
|
+
state.timer = -1;
|
|
1270
1270
|
}
|
|
1271
1271
|
function update(value) {
|
|
1272
|
-
state
|
|
1272
|
+
state.keysSoFar = value;
|
|
1273
1273
|
cleanup();
|
|
1274
|
-
if (value !== "") state
|
|
1274
|
+
if (value !== "") state.timer = +setTimeout(() => {
|
|
1275
1275
|
update("");
|
|
1276
1276
|
cleanup();
|
|
1277
1277
|
}, timeout);
|
|
@@ -1364,10 +1364,10 @@ function waitForElement(target, options) {
|
|
|
1364
1364
|
return;
|
|
1365
1365
|
}
|
|
1366
1366
|
const observer = new win.MutationObserver(() => {
|
|
1367
|
-
const el
|
|
1368
|
-
if (el
|
|
1367
|
+
const el = target();
|
|
1368
|
+
if (el && el.isConnected) {
|
|
1369
1369
|
observer.disconnect();
|
|
1370
|
-
resolve(el
|
|
1370
|
+
resolve(el);
|
|
1371
1371
|
}
|
|
1372
1372
|
});
|
|
1373
1373
|
observer.observe(doc.body, {
|