@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-DR_NxfHn.mjs";
|
|
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, {
|
package/dist/dom-query.cjs
CHANGED
package/dist/dom-query.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as DataUrlType, r as getDataUrl, t as DataUrlOptions } from "./data-url-
|
|
2
|
-
import { C as JSX, c as MaybeFn, u as Nullable } from "./index-
|
|
3
|
-
import { _ as isRootElement, a as getNodeName, b as isWindow, c as getWindow, d as isDocument, f as isEditableElement, g as isNode, h as isInputElement, i as getDocumentElement, l as isActiveElement, m as isHTMLElement, n as getActiveElement, o as getParentNode, p as isElementVisible, r as getDocument, s as getRootNode, t as contains, u as isAnchorElement, v as isShadowRoot, y as isVisualViewport } from "./node-
|
|
4
|
-
import { a as getByText, c as indexOfId, d as prevById, f as query, i as SearchableItem, l as itemById, n as TypeaheadState, o as ItemToId, p as queryAll, r as getByTypeahead, s as defaultItemToId, t as TypeaheadOptions, u as nextById } from "./typeahead-
|
|
5
|
-
import { i as raf, n as nextTick, r as queueBeforeEvent, t as AnimationFrame } from "./raf-
|
|
6
|
-
import { a as waitForEvent, i as waitForElement, n as WaitForOptions, o as waitForPromise, r as WaitForPromiseReturn, t as WaitForEventOptions } from "./wait-for-
|
|
1
|
+
import { n as DataUrlType, r as getDataUrl, t as DataUrlOptions } from "./data-url-BrR6WHXH.cjs";
|
|
2
|
+
import { C as JSX, c as MaybeFn, u as Nullable } from "./index-D1U_WMQ9.cjs";
|
|
3
|
+
import { _ as isRootElement, a as getNodeName, b as isWindow, c as getWindow, d as isDocument, f as isEditableElement, g as isNode, h as isInputElement, i as getDocumentElement, l as isActiveElement, m as isHTMLElement, n as getActiveElement, o as getParentNode, p as isElementVisible, r as getDocument, s as getRootNode, t as contains, u as isAnchorElement, v as isShadowRoot, y as isVisualViewport } from "./node-D8Ztr9Hg.cjs";
|
|
4
|
+
import { a as getByText, c as indexOfId, d as prevById, f as query, i as SearchableItem, l as itemById, n as TypeaheadState, o as ItemToId, p as queryAll, r as getByTypeahead, s as defaultItemToId, t as TypeaheadOptions, u as nextById } from "./typeahead-BhNtyjQC.cjs";
|
|
5
|
+
import { i as raf, n as nextTick, r as queueBeforeEvent, t as AnimationFrame } from "./raf-DWPAf0Nd.cjs";
|
|
6
|
+
import { a as waitForEvent, i as waitForElement, n as WaitForOptions, o as waitForPromise, r as WaitForPromiseReturn, t as WaitForEventOptions } from "./wait-for-D5gBQyam.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/shared/dom-query/caret.d.ts
|
|
9
9
|
declare function isCaretAtStart(input: HTMLInputElement | HTMLTextAreaElement | null): boolean;
|
|
@@ -57,7 +57,7 @@ declare const isModifierKey: (e: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "al
|
|
|
57
57
|
declare const isTouchEvent: (event: AnyPointerEvent) => event is TouchEvent;
|
|
58
58
|
declare function getEventKey(event: Pick<KeyboardEvent, "key">, options?: EventKeyOptions): string;
|
|
59
59
|
declare function getNativeEvent<E>(event: E): NativeEvent<E>;
|
|
60
|
-
declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 0.1
|
|
60
|
+
declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 10 | 0.1;
|
|
61
61
|
declare function getEventPoint(event: any, type?: "page" | "client"): {
|
|
62
62
|
x: number;
|
|
63
63
|
y: number;
|
package/dist/dom-query.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as DataUrlType, r as getDataUrl, t as DataUrlOptions } from "./data-url-
|
|
2
|
-
import { C as JSX, c as MaybeFn, u as Nullable } from "./index-
|
|
3
|
-
import { _ as isRootElement, a as getNodeName, b as isWindow, c as getWindow, d as isDocument, f as isEditableElement, g as isNode, h as isInputElement, i as getDocumentElement, l as isActiveElement, m as isHTMLElement, n as getActiveElement, o as getParentNode, p as isElementVisible, r as getDocument, s as getRootNode, t as contains, u as isAnchorElement, v as isShadowRoot, y as isVisualViewport } from "./node-
|
|
4
|
-
import { a as getByText, c as indexOfId, d as prevById, f as query, i as SearchableItem, l as itemById, n as TypeaheadState, o as ItemToId, p as queryAll, r as getByTypeahead, s as defaultItemToId, t as TypeaheadOptions, u as nextById } from "./typeahead-
|
|
5
|
-
import { i as raf, n as nextTick, r as queueBeforeEvent, t as AnimationFrame } from "./raf-
|
|
6
|
-
import { a as waitForEvent, i as waitForElement, n as WaitForOptions, o as waitForPromise, r as WaitForPromiseReturn, t as WaitForEventOptions } from "./wait-for-
|
|
1
|
+
import { n as DataUrlType, r as getDataUrl, t as DataUrlOptions } from "./data-url-lOYkmlVX.mjs";
|
|
2
|
+
import { C as JSX, c as MaybeFn, u as Nullable } from "./index-CafmAesU.mjs";
|
|
3
|
+
import { _ as isRootElement, a as getNodeName, b as isWindow, c as getWindow, d as isDocument, f as isEditableElement, g as isNode, h as isInputElement, i as getDocumentElement, l as isActiveElement, m as isHTMLElement, n as getActiveElement, o as getParentNode, p as isElementVisible, r as getDocument, s as getRootNode, t as contains, u as isAnchorElement, v as isShadowRoot, y as isVisualViewport } from "./node-BGWAyUGo.mjs";
|
|
4
|
+
import { a as getByText, c as indexOfId, d as prevById, f as query, i as SearchableItem, l as itemById, n as TypeaheadState, o as ItemToId, p as queryAll, r as getByTypeahead, s as defaultItemToId, t as TypeaheadOptions, u as nextById } from "./typeahead-D4TUCBly.mjs";
|
|
5
|
+
import { i as raf, n as nextTick, r as queueBeforeEvent, t as AnimationFrame } from "./raf-B8md2utS.mjs";
|
|
6
|
+
import { a as waitForEvent, i as waitForElement, n as WaitForOptions, o as waitForPromise, r as WaitForPromiseReturn, t as WaitForEventOptions } from "./wait-for-CVZu6XNU.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/shared/dom-query/caret.d.ts
|
|
9
9
|
declare function isCaretAtStart(input: HTMLInputElement | HTMLTextAreaElement | null): boolean;
|
|
@@ -57,7 +57,7 @@ declare const isModifierKey: (e: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "al
|
|
|
57
57
|
declare const isTouchEvent: (event: AnyPointerEvent) => event is TouchEvent;
|
|
58
58
|
declare function getEventKey(event: Pick<KeyboardEvent, "key">, options?: EventKeyOptions): string;
|
|
59
59
|
declare function getNativeEvent<E>(event: E): NativeEvent<E>;
|
|
60
|
-
declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 0.1
|
|
60
|
+
declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 10 | 0.1;
|
|
61
61
|
declare function getEventPoint(event: any, type?: "page" | "client"): {
|
|
62
62
|
x: number;
|
|
63
63
|
y: number;
|
package/dist/dom-query.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as getTabbableEdges, $t as getDocument, A as getRelativePoint, At as isAndroid, B as observeChildren, Bt as isTouchDevice, C as queryAll, Ct as isPrintableKey, D as disableTextSelection, Dt as isVirtualPointerEvent, E as trackPointerMove, Et as isVirtualClick, F as isOverflowElement, Ft as isIPad, G as getInitialFocus, Gt as hasControllerElements, H as nextTick, Ht as getDataUrl, I as scrollIntoView, It as isIPhone, J as getFirstTabbable, Jt as isControllerElement, K as isValidTabEvent, Kt as isControlledByExpandedController, L as clickIfLink, Lt as isIos, M as getOverflowAncestors, Mt as isChrome, N as getScrollPosition, Nt as isDom, O as restoreTextSelection, Ot as getPlatform, P as isInView, Pt as isFirefox, Q as getTabIndex, Qt as getActiveElement, R as navigate, Rt as isMac, S as query, St as isOpeningInNewTab, T as trackPress, Tt as isTouchEvent, U as queueBeforeEvent, Ut as findControlledElements, V as AnimationFrame, Vt as isWebKit, W as raf, Wt as getControlledElements, X as getLastTabbable, Xt as getComputedStyle, Y as getFocusables, Yt as isInteractiveContainerElement, Z as getNextTabbable, Zt as contains, _ as defaultItemToId, _n as MAX_Z_INDEX, _t as isCtrlOrMetaKey, a as visuallyHiddenStyle, an as isActiveElement, at as setElementChecked, b as nextById, bn as isCaretAtStart, bt as isLeftClick, c as setAttribute, cn as isEditableElement, ct as addDomEvent, d as setStyleProperty, dn as isInputElement, dt as getEventPoint, en as getDocumentElement, et as getTabbables, f as getByText, fn as isNode, ft as getEventStep, g as resizeObserverDevicePixelContentBox, gn as isWindow, gt as isContextMenuEvent, h as resizeObserverContentBox, hn as isVisualViewport, ht as isComposingEvent, i as setVisuallyHidden, in as getWindow, it as dispatchInputValueEvent, j as getNearestOverflowAncestor, jt as isApple, k as requestPointerLock, kt as getUserAgent, l as setProperty, ln as isElementVisible, lt as getBeforeInputValue, m as resizeObserverBorderBox, mn as isShadowRoot, mt as getNativeEvent, n as waitForEvent, nn as getParentNode, nt as isTabbable, o as trackVisualViewport, on as isAnchorElement, ot as setElementValue, p as createScope, pn as isRootElement, pt as getEventTarget, q as getFirstFocusable, qt as isControlledElement, r as waitForPromise, rn as getRootNode, rt as dispatchInputCheckedEvent, s as getByTypeahead, sn as isDocument, st as trackFormControl, t as waitForElement, tn as getNodeName, tt as isFocusable, u as setStyle, un as isHTMLElement, ut as getEventKey, v as indexOfId, vn as ariaAttr, vt as isDownloadingEvent, w as proxyTabFocus, wt as isSelfTarget, x as prevById, xn as setCaretToEnd, xt as isModifierKey, y as itemById, yn as dataAttr, yt as isKeyboardClick, z as observeAttributes, zt as isSafari } from "./dom-query-
|
|
1
|
+
import { $ as getTabbableEdges, $t as getDocument, A as getRelativePoint, At as isAndroid, B as observeChildren, Bt as isTouchDevice, C as queryAll, Ct as isPrintableKey, D as disableTextSelection, Dt as isVirtualPointerEvent, E as trackPointerMove, Et as isVirtualClick, F as isOverflowElement, Ft as isIPad, G as getInitialFocus, Gt as hasControllerElements, H as nextTick, Ht as getDataUrl, I as scrollIntoView, It as isIPhone, J as getFirstTabbable, Jt as isControllerElement, K as isValidTabEvent, Kt as isControlledByExpandedController, L as clickIfLink, Lt as isIos, M as getOverflowAncestors, Mt as isChrome, N as getScrollPosition, Nt as isDom, O as restoreTextSelection, Ot as getPlatform, P as isInView, Pt as isFirefox, Q as getTabIndex, Qt as getActiveElement, R as navigate, Rt as isMac, S as query, St as isOpeningInNewTab, T as trackPress, Tt as isTouchEvent, U as queueBeforeEvent, Ut as findControlledElements, V as AnimationFrame, Vt as isWebKit, W as raf, Wt as getControlledElements, X as getLastTabbable, Xt as getComputedStyle, Y as getFocusables, Yt as isInteractiveContainerElement, Z as getNextTabbable, Zt as contains, _ as defaultItemToId, _n as MAX_Z_INDEX, _t as isCtrlOrMetaKey, a as visuallyHiddenStyle, an as isActiveElement, at as setElementChecked, b as nextById, bn as isCaretAtStart, bt as isLeftClick, c as setAttribute, cn as isEditableElement, ct as addDomEvent, d as setStyleProperty, dn as isInputElement, dt as getEventPoint, en as getDocumentElement, et as getTabbables, f as getByText, fn as isNode, ft as getEventStep, g as resizeObserverDevicePixelContentBox, gn as isWindow, gt as isContextMenuEvent, h as resizeObserverContentBox, hn as isVisualViewport, ht as isComposingEvent, i as setVisuallyHidden, in as getWindow, it as dispatchInputValueEvent, j as getNearestOverflowAncestor, jt as isApple, k as requestPointerLock, kt as getUserAgent, l as setProperty, ln as isElementVisible, lt as getBeforeInputValue, m as resizeObserverBorderBox, mn as isShadowRoot, mt as getNativeEvent, n as waitForEvent, nn as getParentNode, nt as isTabbable, o as trackVisualViewport, on as isAnchorElement, ot as setElementValue, p as createScope, pn as isRootElement, pt as getEventTarget, q as getFirstFocusable, qt as isControlledElement, r as waitForPromise, rn as getRootNode, rt as dispatchInputCheckedEvent, s as getByTypeahead, sn as isDocument, st as trackFormControl, t as waitForElement, tn as getNodeName, tt as isFocusable, u as setStyle, un as isHTMLElement, ut as getEventKey, v as indexOfId, vn as ariaAttr, vt as isDownloadingEvent, w as proxyTabFocus, wt as isSelfTarget, x as prevById, xn as setCaretToEnd, xt as isModifierKey, y as itemById, yn as dataAttr, yt as isKeyboardClick, z as observeAttributes, zt as isSafari } from "./dom-query-CQFBCdpo.mjs";
|
|
2
2
|
|
|
3
3
|
export { AnimationFrame, MAX_Z_INDEX, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
|
|
@@ -26,15 +26,15 @@ const getDirectoryFiles = (reader, path = "") => new Promise((resolve) => {
|
|
|
26
26
|
const readDirectoryEntries = () => {
|
|
27
27
|
reader.readEntries((entries) => {
|
|
28
28
|
if (entries.length === 0) {
|
|
29
|
-
resolve(Promise.all(entryPromises).then((entries
|
|
29
|
+
resolve(Promise.all(entryPromises).then((entries) => entries.flat()));
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
const promises = entries.map((entry) => {
|
|
33
33
|
if (!entry) return null;
|
|
34
34
|
if (isDirectoryEntry(entry)) return getDirectoryFiles(entry.createReader(), `${path}${entry.name}`);
|
|
35
|
-
if (isFileEntry(entry)) return new Promise((resolve
|
|
35
|
+
if (isFileEntry(entry)) return new Promise((resolve) => {
|
|
36
36
|
entry.file((file) => {
|
|
37
|
-
resolve
|
|
37
|
+
resolve(addRelativePath(file, path));
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
}).filter((b) => b);
|
|
@@ -85,15 +85,15 @@ function downloadFile(options) {
|
|
|
85
85
|
const isMacOSWebView = isWebView(win);
|
|
86
86
|
const anchor = doc.createElement("a");
|
|
87
87
|
if ("download" in anchor && !isMacOSWebView) {
|
|
88
|
-
const url
|
|
89
|
-
anchor.href = url
|
|
88
|
+
const url = win.URL.createObjectURL(blob);
|
|
89
|
+
anchor.href = url;
|
|
90
90
|
anchor.rel = "noopener";
|
|
91
91
|
anchor.download = fileName;
|
|
92
92
|
anchor.style.display = "none";
|
|
93
93
|
doc.body.appendChild(anchor);
|
|
94
94
|
anchor.dispatchEvent(new win.MouseEvent("click"));
|
|
95
95
|
setTimeout(() => {
|
|
96
|
-
win.URL.revokeObjectURL(url
|
|
96
|
+
win.URL.revokeObjectURL(url);
|
|
97
97
|
anchor.remove();
|
|
98
98
|
}, revokeTimeout);
|
|
99
99
|
return;
|
|
@@ -25,15 +25,15 @@ const getDirectoryFiles = (reader, path = "") => new Promise((resolve) => {
|
|
|
25
25
|
const readDirectoryEntries = () => {
|
|
26
26
|
reader.readEntries((entries) => {
|
|
27
27
|
if (entries.length === 0) {
|
|
28
|
-
resolve(Promise.all(entryPromises).then((entries
|
|
28
|
+
resolve(Promise.all(entryPromises).then((entries) => entries.flat()));
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
const promises = entries.map((entry) => {
|
|
32
32
|
if (!entry) return null;
|
|
33
33
|
if (isDirectoryEntry(entry)) return getDirectoryFiles(entry.createReader(), `${path}${entry.name}`);
|
|
34
|
-
if (isFileEntry(entry)) return new Promise((resolve
|
|
34
|
+
if (isFileEntry(entry)) return new Promise((resolve) => {
|
|
35
35
|
entry.file((file) => {
|
|
36
|
-
resolve
|
|
36
|
+
resolve(addRelativePath(file, path));
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
}).filter((b) => b);
|
|
@@ -84,15 +84,15 @@ function downloadFile(options) {
|
|
|
84
84
|
const isMacOSWebView = isWebView(win);
|
|
85
85
|
const anchor = doc.createElement("a");
|
|
86
86
|
if ("download" in anchor && !isMacOSWebView) {
|
|
87
|
-
const url
|
|
88
|
-
anchor.href = url
|
|
87
|
+
const url = win.URL.createObjectURL(blob);
|
|
88
|
+
anchor.href = url;
|
|
89
89
|
anchor.rel = "noopener";
|
|
90
90
|
anchor.download = fileName;
|
|
91
91
|
anchor.style.display = "none";
|
|
92
92
|
doc.body.appendChild(anchor);
|
|
93
93
|
anchor.dispatchEvent(new win.MouseEvent("click"));
|
|
94
94
|
setTimeout(() => {
|
|
95
|
-
win.URL.revokeObjectURL(url
|
|
95
|
+
win.URL.revokeObjectURL(url);
|
|
96
96
|
anchor.remove();
|
|
97
97
|
}, revokeTimeout);
|
|
98
98
|
return;
|
package/dist/file-utils.cjs
CHANGED
package/dist/file-utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-
|
|
1
|
+
import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-oR0sELNB.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/file-utils/data-transfer.d.ts
|
|
4
4
|
declare const getFileEntries: (items: DataTransferItemList, traverseDirectories: boolean | undefined) => Promise<(File | (File | null)[] | null | undefined)[]>;
|
package/dist/file-utils.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-
|
|
1
|
+
import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-CW-uU8Nz.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/file-utils/data-transfer.d.ts
|
|
4
4
|
declare const getFileEntries: (items: DataTransferItemList, traverseDirectories: boolean | undefined) => Promise<(File | (File | null)[] | null | undefined)[]>;
|
package/dist/file-utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as getTotalFileSize, c as downloadFile, i as isFileEqual, l as dataURItoBlob, n as getFileMimeType, o as getFileDataUrl, r as isValidFileSize, s as getAcceptAttrString, t as isValidFileType, u as getFileEntries } from "./file-utils-
|
|
1
|
+
import { a as getTotalFileSize, c as downloadFile, i as isFileEqual, l as dataURItoBlob, n as getFileMimeType, o as getFileDataUrl, r as isValidFileSize, s as getAcceptAttrString, t as isValidFileType, u as getFileEntries } from "./file-utils-lcjM-YjV.mjs";
|
|
2
2
|
|
|
3
3
|
export { dataURItoBlob, downloadFile, getAcceptAttrString, getFileDataUrl, getFileEntries, getFileMimeType, getTotalFileSize, isFileEqual, isValidFileSize, isValidFileType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as getDocument, Gt as hasControllerElements, Kt as isControlledByExpandedController, Q as getTabIndex, Qt as getActiveElement, W as raf, Wt as getControlledElements, Y as getFocusables, ct as addDomEvent, et as getTabbables, nt as isTabbable, pt as getEventTarget, qt as isControlledElement, sn as isDocument, tt as isFocusable } from "./dom-query-
|
|
2
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
1
|
+
import { $t as getDocument, Gt as hasControllerElements, Kt as isControlledByExpandedController, Q as getTabIndex, Qt as getActiveElement, W as raf, Wt as getControlledElements, Y as getFocusables, ct as addDomEvent, et as getTabbables, nt as isTabbable, pt as getEventTarget, qt as isControlledElement, sn as isDocument, tt as isFocusable } from "./dom-query-CQFBCdpo.mjs";
|
|
2
|
+
import { t as _defineProperty } from "./defineProperty-DR_NxfHn.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/focus-trap/focus-trap.ts
|
|
5
5
|
const activeFocusTraps = {
|
|
@@ -210,7 +210,7 @@ var FocusTrap = class {
|
|
|
210
210
|
});
|
|
211
211
|
_defineProperty(this, "deactivate", (deactivateOptions) => {
|
|
212
212
|
if (!this.state.active) return this;
|
|
213
|
-
const options
|
|
213
|
+
const options = {
|
|
214
214
|
onDeactivate: this.config.onDeactivate,
|
|
215
215
|
onPostDeactivate: this.config.onPostDeactivate,
|
|
216
216
|
checkCanReturnFocus: this.config.checkCanReturnFocus,
|
|
@@ -224,10 +224,10 @@ var FocusTrap = class {
|
|
|
224
224
|
this.updateObservedNodes();
|
|
225
225
|
activeFocusTraps.deactivateTrap(this.trapStack, this);
|
|
226
226
|
this.portalContainers.clear();
|
|
227
|
-
const onDeactivate = this.getOption(options
|
|
228
|
-
const onPostDeactivate = this.getOption(options
|
|
229
|
-
const checkCanReturnFocus = this.getOption(options
|
|
230
|
-
const returnFocus = this.getOption(options
|
|
227
|
+
const onDeactivate = this.getOption(options, "onDeactivate");
|
|
228
|
+
const onPostDeactivate = this.getOption(options, "onPostDeactivate");
|
|
229
|
+
const checkCanReturnFocus = this.getOption(options, "checkCanReturnFocus");
|
|
230
|
+
const returnFocus = this.getOption(options, "returnFocus", "returnFocusOnDeactivate");
|
|
231
231
|
onDeactivate?.();
|
|
232
232
|
const finishDeactivation = () => {
|
|
233
233
|
delay(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_dom_query = require('./dom-query-
|
|
2
|
-
const require_defineProperty = require('./defineProperty-
|
|
1
|
+
const require_dom_query = require('./dom-query-CAFhX43H.cjs');
|
|
2
|
+
const require_defineProperty = require('./defineProperty-_bOnJOii.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/shared/focus-trap/focus-trap.ts
|
|
5
5
|
const activeFocusTraps = {
|
|
@@ -210,7 +210,7 @@ var FocusTrap = class {
|
|
|
210
210
|
});
|
|
211
211
|
require_defineProperty._defineProperty(this, "deactivate", (deactivateOptions) => {
|
|
212
212
|
if (!this.state.active) return this;
|
|
213
|
-
const options
|
|
213
|
+
const options = {
|
|
214
214
|
onDeactivate: this.config.onDeactivate,
|
|
215
215
|
onPostDeactivate: this.config.onPostDeactivate,
|
|
216
216
|
checkCanReturnFocus: this.config.checkCanReturnFocus,
|
|
@@ -224,10 +224,10 @@ var FocusTrap = class {
|
|
|
224
224
|
this.updateObservedNodes();
|
|
225
225
|
activeFocusTraps.deactivateTrap(this.trapStack, this);
|
|
226
226
|
this.portalContainers.clear();
|
|
227
|
-
const onDeactivate = this.getOption(options
|
|
228
|
-
const onPostDeactivate = this.getOption(options
|
|
229
|
-
const checkCanReturnFocus = this.getOption(options
|
|
230
|
-
const returnFocus = this.getOption(options
|
|
227
|
+
const onDeactivate = this.getOption(options, "onDeactivate");
|
|
228
|
+
const onPostDeactivate = this.getOption(options, "onPostDeactivate");
|
|
229
|
+
const checkCanReturnFocus = this.getOption(options, "checkCanReturnFocus");
|
|
230
|
+
const returnFocus = this.getOption(options, "returnFocus", "returnFocusOnDeactivate");
|
|
231
231
|
onDeactivate?.();
|
|
232
232
|
const finishDeactivation = () => {
|
|
233
233
|
delay(() => {
|
package/dist/focus-trap.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
const require_focus_trap = require('./focus-trap-
|
|
1
|
+
require('./dom-query-CAFhX43H.cjs');
|
|
2
|
+
const require_focus_trap = require('./focus-trap-zaIiaoqE.cjs');
|
|
3
3
|
|
|
4
4
|
exports.FocusTrap = require_focus_trap.FocusTrap;
|
|
5
5
|
exports.trapFocus = require_focus_trap.trapFocus;
|
package/dist/focus-trap.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as getDocument, Et as isVirtualClick, Rt as isMac, in as getWindow, pt as getEventTarget } from "./dom-query-
|
|
1
|
+
import { $t as getDocument, Et as isVirtualClick, Rt as isMac, in as getWindow, pt as getEventTarget } from "./dom-query-CQFBCdpo.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/focus-visible/index.ts
|
|
4
4
|
function isValidKey(e) {
|
package/dist/focus-visible.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
const require_focus_visible = require('./focus-visible-
|
|
1
|
+
require('./dom-query-CAFhX43H.cjs');
|
|
2
|
+
const require_focus_visible = require('./focus-visible-3pXNNo-l.cjs');
|
|
3
3
|
|
|
4
4
|
exports.getInteractionModality = require_focus_visible.getInteractionModality;
|
|
5
5
|
exports.isFocusVisible = require_focus_visible.isFocusVisible;
|
package/dist/focus-visible.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-
|
|
1
|
+
import "./dom-query-CQFBCdpo.mjs";
|
|
2
|
+
import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-DjGDsaLn.mjs";
|
|
3
3
|
|
|
4
4
|
export { getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
|
package/dist/highlight-word.cjs
CHANGED
|
@@ -38,10 +38,10 @@ function highlightFirst(props) {
|
|
|
38
38
|
text,
|
|
39
39
|
match: false
|
|
40
40
|
}];
|
|
41
|
-
const start
|
|
41
|
+
const start = match.index;
|
|
42
42
|
return normalizeSpan([{
|
|
43
|
-
start
|
|
44
|
-
end: start
|
|
43
|
+
start,
|
|
44
|
+
end: start + match[0].length
|
|
45
45
|
}], text.length).map((chunk) => ({
|
|
46
46
|
text: text.slice(chunk.start, chunk.end),
|
|
47
47
|
match: !!chunk.match
|
package/dist/highlight-word.mjs
CHANGED
|
@@ -37,10 +37,10 @@ function highlightFirst(props) {
|
|
|
37
37
|
text,
|
|
38
38
|
match: false
|
|
39
39
|
}];
|
|
40
|
-
const start
|
|
40
|
+
const start = match.index;
|
|
41
41
|
return normalizeSpan([{
|
|
42
|
-
start
|
|
43
|
-
end: start
|
|
42
|
+
start,
|
|
43
|
+
end: start + match[0].length
|
|
44
44
|
}], text.length).map((chunk) => ({
|
|
45
45
|
text: text.slice(chunk.start, chunk.end),
|
|
46
46
|
match: !!chunk.match
|
package/dist/hotkeys.cjs
CHANGED
|
@@ -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/hotkeys/modifier.ts
|
|
4
4
|
const MODIFIER_NORMALIZATION_MAP = new Map([
|
|
@@ -186,15 +186,15 @@ function parseHotkey(hotkey, platform) {
|
|
|
186
186
|
for (const rawPart of sequenceParts) {
|
|
187
187
|
const part = rawPart.trim();
|
|
188
188
|
if (part.includes(MODIFIER_SEPARATOR)) {
|
|
189
|
-
const { modifiers
|
|
189
|
+
const { modifiers, key } = parseHotkeyString(part, platform);
|
|
190
190
|
const step = {
|
|
191
|
-
key: normalizeKey(key
|
|
191
|
+
key: normalizeKey(key),
|
|
192
192
|
alt: false,
|
|
193
193
|
ctrl: false,
|
|
194
194
|
meta: false,
|
|
195
195
|
shift: false
|
|
196
196
|
};
|
|
197
|
-
for (const modifier of modifiers
|
|
197
|
+
for (const modifier of modifiers) switch (normalizeModifier(resolveControlOrMeta(modifier, platform))) {
|
|
198
198
|
case "Alt":
|
|
199
199
|
step.alt = true;
|
|
200
200
|
break;
|
|
@@ -213,16 +213,16 @@ function parseHotkey(hotkey, platform) {
|
|
|
213
213
|
const code = keyToCode(step.key);
|
|
214
214
|
if (code != null) allCodes.push(code);
|
|
215
215
|
} else {
|
|
216
|
-
const key
|
|
216
|
+
const key = normalizeKey(part);
|
|
217
217
|
sequenceSteps.push({
|
|
218
|
-
key
|
|
218
|
+
key,
|
|
219
219
|
alt: false,
|
|
220
220
|
ctrl: false,
|
|
221
221
|
meta: false,
|
|
222
222
|
shift: false
|
|
223
223
|
});
|
|
224
|
-
allKeys.push(key
|
|
225
|
-
const code = keyToCode(key
|
|
224
|
+
allKeys.push(key);
|
|
225
|
+
const code = keyToCode(key);
|
|
226
226
|
if (code != null) allCodes.push(code);
|
|
227
227
|
}
|
|
228
228
|
}
|
package/dist/hotkeys.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-DR_NxfHn.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/hotkeys/modifier.ts
|
|
4
4
|
const MODIFIER_NORMALIZATION_MAP = new Map([
|
|
@@ -186,15 +186,15 @@ function parseHotkey(hotkey, platform) {
|
|
|
186
186
|
for (const rawPart of sequenceParts) {
|
|
187
187
|
const part = rawPart.trim();
|
|
188
188
|
if (part.includes(MODIFIER_SEPARATOR)) {
|
|
189
|
-
const { modifiers
|
|
189
|
+
const { modifiers, key } = parseHotkeyString(part, platform);
|
|
190
190
|
const step = {
|
|
191
|
-
key: normalizeKey(key
|
|
191
|
+
key: normalizeKey(key),
|
|
192
192
|
alt: false,
|
|
193
193
|
ctrl: false,
|
|
194
194
|
meta: false,
|
|
195
195
|
shift: false
|
|
196
196
|
};
|
|
197
|
-
for (const modifier of modifiers
|
|
197
|
+
for (const modifier of modifiers) switch (normalizeModifier(resolveControlOrMeta(modifier, platform))) {
|
|
198
198
|
case "Alt":
|
|
199
199
|
step.alt = true;
|
|
200
200
|
break;
|
|
@@ -213,16 +213,16 @@ function parseHotkey(hotkey, platform) {
|
|
|
213
213
|
const code = keyToCode(step.key);
|
|
214
214
|
if (code != null) allCodes.push(code);
|
|
215
215
|
} else {
|
|
216
|
-
const key
|
|
216
|
+
const key = normalizeKey(part);
|
|
217
217
|
sequenceSteps.push({
|
|
218
|
-
key
|
|
218
|
+
key,
|
|
219
219
|
alt: false,
|
|
220
220
|
ctrl: false,
|
|
221
221
|
meta: false,
|
|
222
222
|
shift: false
|
|
223
223
|
});
|
|
224
|
-
allKeys.push(key
|
|
225
|
-
const code = keyToCode(key
|
|
224
|
+
allKeys.push(key);
|
|
225
|
+
const code = keyToCode(key);
|
|
226
226
|
if (code != null) allCodes.push(code);
|
|
227
227
|
}
|
|
228
228
|
}
|
package/dist/i18n-utils.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
const require_i18n_utils = require('./i18n-utils-
|
|
1
|
+
require('./dom-query-CAFhX43H.cjs');
|
|
2
|
+
const require_i18n_utils = require('./i18n-utils-CK27xonZ.cjs');
|
|
3
3
|
|
|
4
4
|
exports.createCollator = require_i18n_utils.createCollator;
|
|
5
5
|
exports.createFilter = require_i18n_utils.createFilter;
|
package/dist/i18n-utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { a as formatRelativeTime, c as formatBytes, d as createCollator, i as isRTL, l as formatNumber, n as getDefaultLocale, o as formatList, r as getLocaleDir, s as formatDate, t as trackLocale, u as createFilter } from "./i18n-utils-
|
|
1
|
+
import "./dom-query-CQFBCdpo.mjs";
|
|
2
|
+
import { a as formatRelativeTime, c as formatBytes, d as createCollator, i as isRTL, l as formatNumber, n as getDefaultLocale, o as formatList, r as getLocaleDir, s as formatDate, t as trackLocale, u as createFilter } from "./i18n-utils-KuoJj66z.mjs";
|
|
3
3
|
|
|
4
4
|
export { createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
|
@@ -1339,11 +1339,11 @@ type NormalizeProps<T extends PropTypes> = { [K in keyof T]: (props: K extends k
|
|
|
1339
1339
|
declare function createNormalizer<T extends PropTypes>(fn: (props: Dict) => Dict): NormalizeProps<T>;
|
|
1340
1340
|
//#endregion
|
|
1341
1341
|
//#region src/shared/types/create-props.d.ts
|
|
1342
|
-
type StrictKeys<K
|
|
1343
|
-
declare const createProps: <T extends Record<never, never>>() => <K
|
|
1342
|
+
type StrictKeys<K extends (keyof T)[], T> = K extends (keyof T)[] ? [keyof T] extends [K[number]] ? unknown : `Missing required keys: ${Exclude<keyof T, K[number]>}` : never;
|
|
1343
|
+
declare const createProps: <T extends Record<never, never>>() => <K extends (keyof T)[]>(props: K & StrictKeys<K, T>) => (keyof T)[];
|
|
1344
1344
|
//#endregion
|
|
1345
1345
|
//#region src/shared/types/index.d.ts
|
|
1346
|
-
type RequiredBy<T, K
|
|
1346
|
+
type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;
|
|
1347
1347
|
type Nullable<T> = T | null;
|
|
1348
1348
|
type NonNullable<T> = T extends null | undefined ? never : T;
|
|
1349
1349
|
type Required<T> = { [P in keyof T]-?: NonNullable<T[P]> };
|
|
@@ -1339,11 +1339,11 @@ type NormalizeProps<T extends PropTypes> = { [K in keyof T]: (props: K extends k
|
|
|
1339
1339
|
declare function createNormalizer<T extends PropTypes>(fn: (props: Dict) => Dict): NormalizeProps<T>;
|
|
1340
1340
|
//#endregion
|
|
1341
1341
|
//#region src/shared/types/create-props.d.ts
|
|
1342
|
-
type StrictKeys<K
|
|
1343
|
-
declare const createProps: <T extends Record<never, never>>() => <K
|
|
1342
|
+
type StrictKeys<K extends (keyof T)[], T> = K extends (keyof T)[] ? [keyof T] extends [K[number]] ? unknown : `Missing required keys: ${Exclude<keyof T, K[number]>}` : never;
|
|
1343
|
+
declare const createProps: <T extends Record<never, never>>() => <K extends (keyof T)[]>(props: K & StrictKeys<K, T>) => (keyof T)[];
|
|
1344
1344
|
//#endregion
|
|
1345
1345
|
//#region src/shared/types/index.d.ts
|
|
1346
|
-
type RequiredBy<T, K
|
|
1346
|
+
type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;
|
|
1347
1347
|
type Nullable<T> = T | null;
|
|
1348
1348
|
type NonNullable<T> = T extends null | undefined ? never : T;
|
|
1349
1349
|
type Required<T> = { [P in keyof T]-?: NonNullable<T[P]> };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as getDocument, Bt as isTouchDevice, W as raf, Zt as contains, ct as addDomEvent, gt as isContextMenuEvent, in as getWindow, j as getNearestOverflowAncestor, mn as isShadowRoot, pt as getEventTarget, qt as isControlledElement, tt as isFocusable, un as isHTMLElement } from "./dom-query-
|
|
2
|
-
import { W as callAll } from "./utils-
|
|
1
|
+
import { $t as getDocument, Bt as isTouchDevice, W as raf, Zt as contains, ct as addDomEvent, gt as isContextMenuEvent, in as getWindow, j as getNearestOverflowAncestor, mn as isShadowRoot, pt as getEventTarget, qt as isControlledElement, tt as isFocusable, un as isHTMLElement } from "./dom-query-CQFBCdpo.mjs";
|
|
2
|
+
import { W as callAll } from "./utils-Vs04rt8f.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/interact-outside/frame-utils.ts
|
|
5
5
|
function getWindowFrames(win) {
|
|
@@ -119,8 +119,8 @@ function trackInteractOutsideImpl(node, options) {
|
|
|
119
119
|
const target = isInShadowRoot ? composedPath[0] : getEventTarget(event);
|
|
120
120
|
if (!node || !isEventOutside(event, target)) return;
|
|
121
121
|
if (onPointerDownOutside || onInteractOutside) {
|
|
122
|
-
const handler
|
|
123
|
-
node.addEventListener(POINTER_OUTSIDE_EVENT, handler
|
|
122
|
+
const handler = callAll(onPointerDownOutside, onInteractOutside);
|
|
123
|
+
node.addEventListener(POINTER_OUTSIDE_EVENT, handler, { once: true });
|
|
124
124
|
}
|
|
125
125
|
fireCustomEvent(node, POINTER_OUTSIDE_EVENT, {
|
|
126
126
|
bubbles: false,
|