@sprawlify/primitives 0.0.7 → 0.0.9
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-Dvvxh8vn.mjs → aria-hidden-DIoJxbA3.mjs} +1 -1
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-jPNnPyMJ.mjs → auto-resize-L6Oqa0lE.mjs} +1 -1
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-Bxz7UdDS.mjs → collection-0DmMA3br.mjs} +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-DbSDg6nI.mjs → color-utils-D0Lo5X-u.mjs} +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-OWR4AcP6.d.cts → core-75kSaDJc.d.mts} +2 -2
- package/dist/{core-BgFo-0ii.d.mts → core-D_pI64vx.d.cts} +2 -2
- package/dist/{core-C77LsUvk.mjs → core-qHH8MshY.mjs} +2 -2
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +3 -3
- 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/{dismissable-WpM6GqPg.mjs → dismissable-C-6M-juU.mjs} +3 -3
- package/dist/{dismissable-layer-DwFMEm4o.d.mts → dismissable-layer-2TW8ZBcS.d.cts} +2 -2
- package/dist/{dismissable-layer-BHdxdWFo.d.cts → dismissable-layer-CllXZ1N9.d.mts} +2 -2
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +4 -4
- package/dist/{dom-query-DlipWdON.mjs → dom-query-Bwyyt0Vp.mjs} +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-5E6-AtJ9.mjs +210 -0
- package/dist/file-utils-G9_tYexo.cjs +270 -0
- package/dist/file-utils.cjs +12 -220
- package/dist/file-utils.d.cts +2 -12
- package/dist/file-utils.d.mts +2 -12
- package/dist/file-utils.mjs +1 -208
- package/dist/{focus-trap-BY0WXiLZ.mjs → focus-trap-BG22frp5.mjs} +2 -2
- package/dist/focus-trap.cjs +1 -1
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-C8Gu5QYM.mjs → focus-visible-BKLakzc7.mjs} +1 -1
- package/dist/focus-visible.cjs +1 -1
- package/dist/focus-visible.mjs +2 -2
- package/dist/hotkeys.mjs +1 -1
- package/dist/i18n-utils-B8IY1mOh.cjs +505 -0
- package/dist/i18n-utils-DCz8B6DF.mjs +440 -0
- package/dist/i18n-utils.cjs +14 -450
- package/dist/i18n-utils.mjs +2 -438
- package/dist/{interact-outside-JTrDIgHe.mjs → interact-outside-BtY3-DVp.mjs} +2 -2
- 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/{list-collection-DCuqR6Ky.d.cts → list-collection-BvMwDNHf.d.cts} +2 -2
- package/dist/{list-collection-tfCvbaJH.d.mts → list-collection-CTt1eong.d.mts} +2 -2
- package/dist/live-region.cjs +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 +1 -1
- package/dist/machines/accordion/index.d.cts +3 -3
- package/dist/machines/accordion/index.d.mts +3 -3
- package/dist/machines/accordion/index.mjs +5 -5
- package/dist/machines/angle-slider/index.cjs +2 -2
- 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 +6 -6
- 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 +1 -1
- 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 +3 -3
- package/dist/machines/bottom-sheet/index.d.cts +5 -5
- package/dist/machines/bottom-sheet/index.d.mts +5 -5
- package/dist/machines/bottom-sheet/index.mjs +11 -11
- package/dist/machines/carousel/index.cjs +2 -2
- package/dist/machines/carousel/index.d.cts +4 -4
- package/dist/machines/carousel/index.d.mts +4 -4
- package/dist/machines/carousel/index.mjs +6 -6
- package/dist/machines/checkbox/index.cjs +2 -2
- package/dist/machines/checkbox/index.d.cts +4 -4
- package/dist/machines/checkbox/index.d.mts +4 -4
- package/dist/machines/checkbox/index.mjs +6 -6
- package/dist/machines/clipboard/index.cjs +1 -1
- package/dist/machines/clipboard/index.d.cts +4 -4
- package/dist/machines/clipboard/index.d.mts +4 -4
- package/dist/machines/clipboard/index.mjs +5 -5
- package/dist/machines/collapsible/index.cjs +1 -1
- 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 +2 -2
- 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 +9 -9
- package/dist/machines/combobox/index.cjs +2 -2
- package/dist/machines/combobox/index.d.cts +8 -8
- package/dist/machines/combobox/index.d.mts +8 -8
- package/dist/machines/combobox/index.mjs +9 -9
- package/dist/machines/date-picker/index.cjs +3 -3
- 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 +10 -10
- package/dist/machines/dialog/index.cjs +3 -3
- package/dist/machines/dialog/index.d.cts +6 -6
- package/dist/machines/dialog/index.d.mts +6 -6
- package/dist/machines/dialog/index.mjs +10 -10
- package/dist/machines/editable/index.cjs +1 -1
- package/dist/machines/editable/index.d.cts +5 -5
- package/dist/machines/editable/index.d.mts +5 -5
- package/dist/machines/editable/index.mjs +6 -6
- package/dist/machines/file-upload/index.cjs +627 -0
- package/dist/machines/file-upload/index.d.cts +145 -0
- package/dist/machines/file-upload/index.d.mts +145 -0
- package/dist/machines/file-upload/index.mjs +621 -0
- package/dist/machines/floating-panel/index.cjs +3 -3
- 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 +7 -7
- package/dist/machines/hover-card/index.cjs +2 -2
- 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 +8 -8
- package/dist/machines/image-cropper/index.cjs +1 -1
- package/dist/machines/image-cropper/index.d.cts +3 -3
- package/dist/machines/image-cropper/index.d.mts +3 -3
- package/dist/machines/image-cropper/index.mjs +5 -5
- package/dist/machines/listbox/index.cjs +2 -2
- package/dist/machines/listbox/index.d.cts +8 -8
- package/dist/machines/listbox/index.d.mts +8 -8
- package/dist/machines/listbox/index.mjs +7 -7
- package/dist/machines/marquee/index.cjs +1 -1
- package/dist/machines/marquee/index.d.cts +6 -6
- package/dist/machines/marquee/index.d.mts +6 -6
- package/dist/machines/marquee/index.mjs +5 -5
- package/dist/machines/menu/index.cjs +3 -3
- package/dist/machines/menu/index.d.cts +9 -9
- package/dist/machines/menu/index.d.mts +9 -9
- package/dist/machines/menu/index.mjs +9 -9
- package/dist/machines/navigation-menu/index.cjs +1 -1
- 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 +7 -7
- package/dist/machines/number-input/index.cjs +1 -1
- 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 +5 -5
- package/dist/machines/pagination/index.cjs +1 -1
- package/dist/machines/pagination/index.d.cts +3 -3
- package/dist/machines/pagination/index.d.mts +3 -3
- package/dist/machines/pagination/index.mjs +5 -5
- package/dist/machines/password-input/index.cjs +1 -1
- 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 +5 -5
- package/dist/machines/pin-input/index.cjs +1 -1
- 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 +5 -5
- package/dist/machines/popover/index.cjs +4 -4
- package/dist/machines/popover/index.d.cts +7 -7
- package/dist/machines/popover/index.d.mts +7 -7
- package/dist/machines/popover/index.mjs +11 -11
- package/dist/machines/presence/index.cjs +1 -1
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +4 -4
- package/dist/machines/progress/index.cjs +1 -1
- package/dist/machines/progress/index.d.cts +4 -4
- package/dist/machines/progress/index.d.mts +4 -4
- package/dist/machines/progress/index.mjs +5 -5
- package/dist/machines/qr-code/index.cjs +1 -1
- 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 +5 -5
- package/dist/machines/radio-group/index.cjs +2 -2
- 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 +6 -6
- package/dist/machines/rating-group/index.cjs +1 -1
- package/dist/machines/rating-group/index.d.cts +3 -3
- package/dist/machines/rating-group/index.d.mts +3 -3
- package/dist/machines/rating-group/index.mjs +5 -5
- package/dist/machines/scroll-area/index.cjs +1 -1
- 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 +6 -6
- package/dist/machines/select/index.cjs +2 -2
- package/dist/machines/select/index.d.cts +9 -9
- package/dist/machines/select/index.d.mts +9 -9
- package/dist/machines/select/index.mjs +9 -9
- package/dist/machines/signature-pad/index.cjs +1 -1
- package/dist/machines/signature-pad/index.d.cts +3 -3
- package/dist/machines/signature-pad/index.d.mts +3 -3
- package/dist/machines/signature-pad/index.mjs +5 -5
- package/dist/machines/slider/index.cjs +1 -1
- package/dist/machines/slider/index.d.cts +4 -4
- package/dist/machines/slider/index.d.mts +4 -4
- package/dist/machines/slider/index.mjs +5 -5
- package/dist/machines/splitter/index.cjs +1 -1
- package/dist/machines/splitter/index.d.cts +3 -3
- package/dist/machines/splitter/index.d.mts +3 -3
- package/dist/machines/splitter/index.mjs +5 -5
- package/dist/machines/steps/index.cjs +1 -1
- package/dist/machines/steps/index.d.cts +4 -4
- package/dist/machines/steps/index.d.mts +4 -4
- package/dist/machines/steps/index.mjs +5 -5
- package/dist/machines/switch/index.cjs +2 -2
- package/dist/machines/switch/index.d.cts +3 -3
- package/dist/machines/switch/index.d.mts +3 -3
- package/dist/machines/switch/index.mjs +6 -6
- package/dist/machines/tabs/index.cjs +1 -1
- package/dist/machines/tabs/index.d.cts +4 -4
- package/dist/machines/tabs/index.d.mts +4 -4
- package/dist/machines/tabs/index.mjs +5 -5
- package/dist/machines/tags-input/index.cjs +2 -2
- 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 +8 -8
- package/dist/machines/timer/index.cjs +1 -1
- package/dist/machines/timer/index.d.cts +4 -4
- package/dist/machines/timer/index.d.mts +4 -4
- package/dist/machines/timer/index.mjs +5 -5
- package/dist/machines/toast/index.d.cts +5 -5
- package/dist/machines/toast/index.d.mts +5 -5
- package/dist/machines/toast/index.mjs +6 -6
- package/dist/machines/toggle/index.cjs +1 -1
- package/dist/machines/toggle/index.d.cts +3 -3
- package/dist/machines/toggle/index.d.mts +3 -3
- package/dist/machines/toggle/index.mjs +5 -5
- package/dist/machines/toggle-group/index.cjs +1 -1
- 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 +5 -5
- package/dist/machines/tooltip/index.cjs +3 -3
- package/dist/machines/tooltip/index.d.cts +5 -5
- package/dist/machines/tooltip/index.d.mts +5 -5
- package/dist/machines/tooltip/index.mjs +7 -7
- package/dist/machines/tour/index.cjs +3 -3
- package/dist/machines/tour/index.d.cts +7 -7
- package/dist/machines/tour/index.d.mts +7 -7
- package/dist/machines/tour/index.mjs +9 -9
- package/dist/machines/tree-view/index.cjs +1 -1
- 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 +6 -6
- package/dist/{popper-MxgCIf_4.mjs → popper-4MZcEna4.mjs} +2 -2
- package/dist/popper.cjs +1 -1
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +3 -3
- package/dist/{rect-utils-BENI97My.mjs → rect-utils-j6C9uZk1.mjs} +1 -1
- 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-BL1SJPHq.mjs → remove-scroll-C73TLIgr.mjs} +1 -1
- package/dist/{scroll-snap-D-BtyzPh.mjs → scroll-snap-D4hJV_c8.mjs} +1 -1
- package/dist/scroll-snap.cjs +1 -1
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{selection-Crnu2rAv.d.mts → selection-JDFmyke7.d.mts} +2 -2
- package/dist/{selection-CDXTJgsR.d.cts → selection-vng1guNc.d.cts} +2 -2
- package/dist/store.cjs +1 -1
- package/dist/store.mjs +1 -1
- package/dist/{tree-collection-Ders6toe.d.mts → tree-collection-DYIVkVee.d.mts} +1 -1
- package/dist/{tree-collection-CcgKezAi.d.cts → tree-collection-Dlv1BAsc.d.cts} +1 -1
- package/dist/types-CsK6JMut.d.mts +13 -0
- package/dist/types-xyuh-a2-.d.cts +13 -0
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{utils-BxXp67XU.mjs → utils-hFKGi-oS.mjs} +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-DMmL1Ky0.d.cts → color-CIaXnwJx.d.mts} +0 -0
- /package/dist/{color-blKFMqAz.d.mts → color-_pKYh-E2.d.cts} +0 -0
- /package/dist/{create-anatomy-Df7y5SsP.mjs → create-anatomy-CArN8dVu.mjs} +0 -0
- /package/dist/{create-anatomy-B1eclDhe.d.cts → create-anatomy-DHVOqZET.d.mts} +0 -0
- /package/dist/{create-anatomy-B9oniNA9.d.mts → create-anatomy-smWrirg1.d.cts} +0 -0
- /package/dist/{create-props-BML_gpX0.mjs → create-props-SRSjdUTq.mjs} +0 -0
- /package/dist/{create-props-YKy7JIKj.cjs → create-props-l5q5b8Wo.cjs} +0 -0
- /package/dist/{data-url-B5BT_GnT.d.mts → data-url-BqpiKO1L.d.mts} +0 -0
- /package/dist/{data-url-p1B_RG_H.d.cts → data-url-og2AwQaU.d.cts} +0 -0
- /package/dist/{date-utils-DftsV7SR.mjs → date-utils-d1Jt6z5f.mjs} +0 -0
- /package/dist/{defineProperty-DxNiKPNe.mjs → defineProperty-Cql4jybt.mjs} +0 -0
- /package/dist/{focus-trap-D4i52S9A.cjs → focus-trap-DMoa9bOi.cjs} +0 -0
- /package/dist/{focus-visible-DYTWdWpa.cjs → focus-visible-BVOZnp76.cjs} +0 -0
- /package/dist/{functions-D3G3aWHL.d.mts → functions-DFnYr-gp.d.cts} +0 -0
- /package/dist/{functions-DtSGq3MR.d.cts → functions-i_nVCRW0.d.mts} +0 -0
- /package/dist/{index-CefB9yps.d.mts → index-9OlOKr2i.d.mts} +0 -0
- /package/dist/{index-DQnU976_.d.cts → index-BBTkH09t.d.cts} +0 -0
- /package/dist/{index-CuONGeOw.d.mts → index-BVcPBg7R.d.mts} +0 -0
- /package/dist/{index-WDB45Zqi.d.mts → index-C9ajBf1B.d.mts} +0 -0
- /package/dist/{index-DvpM-Mfi.d.cts → index-DFiQyzeW.d.cts} +0 -0
- /package/dist/{index-CMBjdeFN.d.mts → index-DYzqCFaj.d.mts} +0 -0
- /package/dist/{index-pPMoFaB-.d.mts → index-DikGG00a.d.mts} +0 -0
- /package/dist/{index-PMpGStDQ.d.cts → index-UNyqrBDu.d.cts} +0 -0
- /package/dist/{live-region-CcZPGo89.cjs → live-region-2RiuzOr-.cjs} +0 -0
- /package/dist/{live-region-BjruYEJ2.mjs → live-region-BcSdQIM8.mjs} +0 -0
- /package/dist/{node-Cs9VjvUL.d.cts → node-BecR7gec.d.cts} +0 -0
- /package/dist/{node-R56TVizn.d.mts → node-v8Pyrj9P.d.mts} +0 -0
- /package/dist/{popper-D0FAW_p7.cjs → popper-CWip5FHB.cjs} +0 -0
- /package/dist/{raf-BBPHUdcb.d.mts → raf-BF2VrckK.d.cts} +0 -0
- /package/dist/{raf-DiJ6_y_m.d.cts → raf-DX52LaVy.d.mts} +0 -0
- /package/dist/{rect-utils-DKLRhP8G.cjs → rect-utils-Dp9Wvl7-.cjs} +0 -0
- /package/dist/{remove-scroll-Uvzg1L9r.cjs → remove-scroll-Dh9PjZFE.cjs} +0 -0
- /package/dist/{scroll-snap-zyiZLv7W.cjs → scroll-snap-BsPbmOTg.cjs} +0 -0
- /package/dist/{store-D6DXvVrK.mjs → store-CpMJ6RZR.mjs} +0 -0
- /package/dist/{store-BZcXv49B.cjs → store-DDjfrUhd.cjs} +0 -0
- /package/dist/{typeahead-DoNxux_s.d.mts → typeahead-BWyD_KIb.d.cts} +0 -0
- /package/dist/{typeahead-JQJrD3Fg.d.cts → typeahead-BX-BWYjD.d.mts} +0 -0
- /package/dist/{types-BrAcjFWl.d.cts → types-BIy26Uwn.d.cts} +0 -0
- /package/dist/{types-BLWhvNQm.d.cts → types-ByFp2QfD.d.mts} +0 -0
- /package/dist/{types-BXIZOjVE.d.mts → types-CADkcKtr.d.cts} +0 -0
- /package/dist/{types-YxEXuJrz.d.mts → types-CaxzY9yP.d.cts} +0 -0
- /package/dist/{types-DwwrI0dI.d.cts → types-Df8ZhdY-.d.mts} +0 -0
- /package/dist/{types-oXs2YVjs.d.cts → types-PjLoIczn.d.cts} +0 -0
- /package/dist/{types-D9XpvNCK.d.mts → types-jyV564Ip.d.mts} +0 -0
- /package/dist/{types-D3yZIhlx.d.cts → types-oh90SH45.d.cts} +0 -0
- /package/dist/{wait-for-CdgWKT7N.d.mts → wait-for-C9QyzQj2.d.cts} +0 -0
- /package/dist/{wait-for-kzsbN3VT.d.cts → wait-for-Pn6RmrHX.d.mts} +0 -0
package/dist/anatomy.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createAnatomy, i as AnatomyPartName, n as AnatomyInstance, r as AnatomyPart, t as Anatomy } from "./create-anatomy-
|
|
1
|
+
import { a as createAnatomy, i as AnatomyPartName, n as AnatomyInstance, r as AnatomyPart, t as Anatomy } from "./create-anatomy-smWrirg1.cjs";
|
|
2
2
|
export { Anatomy, AnatomyInstance, AnatomyPart, AnatomyPartName, createAnatomy };
|
package/dist/anatomy.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createAnatomy, i as AnatomyPartName, n as AnatomyInstance, r as AnatomyPart, t as Anatomy } from "./create-anatomy-
|
|
1
|
+
import { a as createAnatomy, i as AnatomyPartName, n as AnatomyInstance, r as AnatomyPart, t as Anatomy } from "./create-anatomy-DHVOqZET.mjs";
|
|
2
2
|
export { Anatomy, AnatomyInstance, AnatomyPart, AnatomyPartName, createAnatomy };
|
package/dist/anatomy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ht as findControlledElements, ln as isHTMLElement } from "./dom-query-
|
|
1
|
+
import { Ht as findControlledElements, ln as isHTMLElement } from "./dom-query-Bwyyt0Vp.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/aria-hidden/walk-tree-outside.ts
|
|
4
4
|
let counterMap = /* @__PURE__ */ new WeakMap();
|
package/dist/aria-hidden.mjs
CHANGED
package/dist/auto-resize.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-
|
|
1
|
+
import "./dom-query-Bwyyt0Vp.mjs";
|
|
2
|
+
import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-L6Oqa0lE.mjs";
|
|
3
3
|
|
|
4
4
|
export { autoResizeInput, autoresizeTextarea };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
2
|
-
import { Ot as prevIndex, Tt as nextIndex, dt as isEqual, et as hasProp, mt as chunk, st as isObject } from "./utils-
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-Cql4jybt.mjs";
|
|
2
|
+
import { Ot as prevIndex, Tt as nextIndex, dt as isEqual, et as hasProp, mt as chunk, st as isObject } from "./utils-hFKGi-oS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/collection/list-collection.ts
|
|
5
5
|
let _Symbol$iterator;
|
package/dist/collection.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-
|
|
2
|
-
import { n as isListCollection, t as ListCollection } from "./list-collection-
|
|
3
|
-
import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-
|
|
4
|
-
import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-
|
|
1
|
+
import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-CADkcKtr.cjs";
|
|
2
|
+
import { n as isListCollection, t as ListCollection } from "./list-collection-BvMwDNHf.cjs";
|
|
3
|
+
import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-vng1guNc.cjs";
|
|
4
|
+
import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-Dlv1BAsc.cjs";
|
|
5
5
|
export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
|
package/dist/collection.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-
|
|
2
|
-
import { n as isListCollection, t as ListCollection } from "./list-collection-
|
|
3
|
-
import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-
|
|
4
|
-
import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-
|
|
1
|
+
import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-Df8ZhdY-.mjs";
|
|
2
|
+
import { n as isListCollection, t as ListCollection } from "./list-collection-CTt1eong.mjs";
|
|
3
|
+
import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-JDFmyke7.mjs";
|
|
4
|
+
import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-DYIVkVee.mjs";
|
|
5
5
|
export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
|
package/dist/collection.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { a as GridCollection, c as isListCollection, i as Selection, n as filePathToTree, o as isGridCollection, r as flattenedToTree, s as ListCollection, t as TreeCollection } from "./collection-
|
|
1
|
+
import "./utils-hFKGi-oS.mjs";
|
|
2
|
+
import { a as GridCollection, c as isListCollection, i as Selection, n as filePathToTree, o as isGridCollection, r as flattenedToTree, s as ListCollection, t as TreeCollection } from "./collection-0DmMA3br.mjs";
|
|
3
3
|
|
|
4
4
|
export { GridCollection, ListCollection, Selection, TreeCollection, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
2
|
-
import { B as snapValueToStep, C as getPercentValue, P as mod, T as getValuePercent, V as toFixedNumber, g as clampValue } from "./utils-
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-Cql4jybt.mjs";
|
|
2
|
+
import { B as snapValueToStep, C as getPercentValue, P as mod, T as getValuePercent, V as toFixedNumber, g as clampValue } from "./utils-hFKGi-oS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/color-utils/color-format-gradient.ts
|
|
5
5
|
const generateRGB_R = (orientation, dir, zValue) => {
|
package/dist/color-utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ColorFormat, i as ColorChannelRange, n as ColorAxes, o as ColorStringFormat, r as ColorChannel, s as ColorType, t as Color } from "./color-
|
|
1
|
+
import { a as ColorFormat, i as ColorChannelRange, n as ColorAxes, o as ColorStringFormat, r as ColorChannel, s as ColorType, t as Color } from "./color-_pKYh-E2.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/color-utils/area-gradient.d.ts
|
|
4
4
|
interface GradientOptions {
|
package/dist/color-utils.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ColorFormat, i as ColorChannelRange, n as ColorAxes, o as ColorStringFormat, r as ColorChannel, s as ColorType, t as Color } from "./color-
|
|
1
|
+
import { a as ColorFormat, i as ColorChannelRange, n as ColorAxes, o as ColorStringFormat, r as ColorChannel, s as ColorType, t as Color } from "./color-CIaXnwJx.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/color-utils/area-gradient.d.ts
|
|
4
4
|
interface GradientOptions {
|
package/dist/color-utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { i as getColorAreaGradient, n as parseColor, r as Color, t as normalizeColor } from "./color-utils-
|
|
1
|
+
import "./utils-hFKGi-oS.mjs";
|
|
2
|
+
import { i as getColorAreaGradient, n as parseColor, r as Color, t as normalizeColor } from "./color-utils-D0Lo5X-u.mjs";
|
|
3
3
|
|
|
4
4
|
export { Color, getColorAreaGradient, normalizeColor, parseColor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as Transition, d as GuardFn, g as Params, m as MachineSchema, p as Machine, v as Scope } from "./types-
|
|
2
|
-
import { l as isActiveElement } from "./node-
|
|
1
|
+
import { b as Transition, d as GuardFn, g as Params, m as MachineSchema, p as Machine, v as Scope } from "./types-jyV564Ip.mjs";
|
|
2
|
+
import { l as isActiveElement } from "./node-v8Pyrj9P.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/core/merge-props.d.ts
|
|
5
5
|
interface Props {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as Transition, d as GuardFn, g as Params, m as MachineSchema, p as Machine, v as Scope } from "./types-
|
|
2
|
-
import { l as isActiveElement } from "./node-
|
|
1
|
+
import { b as Transition, d as GuardFn, g as Params, m as MachineSchema, p as Machine, v as Scope } from "./types-BIy26Uwn.cjs";
|
|
2
|
+
import { l as isActiveElement } from "./node-BecR7gec.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/core/merge-props.d.ts
|
|
5
5
|
interface Props {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Qt as getDocument, Zt as getActiveElement, in as isActiveElement } from "./dom-query-
|
|
2
|
-
import { W as callAll, dt as isEqual, ut as isString } from "./utils-
|
|
1
|
+
import { Qt as getDocument, Zt as getActiveElement, in as isActiveElement } from "./dom-query-Bwyyt0Vp.mjs";
|
|
2
|
+
import { W as callAll, dt as isEqual, ut as isString } from "./utils-hFKGi-oS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/core/merge-props.ts
|
|
5
5
|
const clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(" ");
|
package/dist/core.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as memo, i as setup, n as createGuards, o as mergeProps, r as createMachine, t as createScope } from "./core-
|
|
2
|
-
import { _ as PropFn, a as BindableParams, b as Transition, c as ComputedFn, d as GuardFn, f as INIT_STATE, g as Params, h as MachineStatus, i as BindableFn, l as EffectsOrFn, m as MachineSchema, n as Bindable, o as BindableRefs, p as Machine, r as BindableContext, s as ChooseFn, t as ActionsOrFn, u as EventObject, v as Scope, x as ValueOrFn, y as Service } from "./types-
|
|
1
|
+
import { a as memo, i as setup, n as createGuards, o as mergeProps, r as createMachine, t as createScope } from "./core-D_pI64vx.cjs";
|
|
2
|
+
import { _ as PropFn, a as BindableParams, b as Transition, c as ComputedFn, d as GuardFn, f as INIT_STATE, g as Params, h as MachineStatus, i as BindableFn, l as EffectsOrFn, m as MachineSchema, n as Bindable, o as BindableRefs, p as Machine, r as BindableContext, s as ChooseFn, t as ActionsOrFn, u as EventObject, v as Scope, x as ValueOrFn, y as Service } from "./types-BIy26Uwn.cjs";
|
|
3
3
|
export { ActionsOrFn, Bindable, BindableContext, BindableFn, BindableParams, BindableRefs, ChooseFn, ComputedFn, EffectsOrFn, EventObject, GuardFn, INIT_STATE, Machine, MachineSchema, MachineStatus, Params, PropFn, Scope, Service, Transition, ValueOrFn, createGuards, createMachine, createScope, memo, mergeProps, setup };
|
package/dist/core.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as memo, i as setup, n as createGuards, o as mergeProps, r as createMachine, t as createScope } from "./core-
|
|
2
|
-
import { _ as PropFn, a as BindableParams, b as Transition, c as ComputedFn, d as GuardFn, f as INIT_STATE, g as Params, h as MachineStatus, i as BindableFn, l as EffectsOrFn, m as MachineSchema, n as Bindable, o as BindableRefs, p as Machine, r as BindableContext, s as ChooseFn, t as ActionsOrFn, u as EventObject, v as Scope, x as ValueOrFn, y as Service } from "./types-
|
|
1
|
+
import { a as memo, i as setup, n as createGuards, o as mergeProps, r as createMachine, t as createScope } from "./core-75kSaDJc.mjs";
|
|
2
|
+
import { _ as PropFn, a as BindableParams, b as Transition, c as ComputedFn, d as GuardFn, f as INIT_STATE, g as Params, h as MachineStatus, i as BindableFn, l as EffectsOrFn, m as MachineSchema, n as Bindable, o as BindableRefs, p as Machine, r as BindableContext, s as ChooseFn, t as ActionsOrFn, u as EventObject, v as Scope, x as ValueOrFn, y as Service } from "./types-jyV564Ip.mjs";
|
|
3
3
|
export { ActionsOrFn, Bindable, BindableContext, BindableFn, BindableParams, BindableRefs, ChooseFn, ComputedFn, EffectsOrFn, EventObject, GuardFn, INIT_STATE, Machine, MachineSchema, MachineStatus, Params, PropFn, Scope, Service, Transition, ValueOrFn, createGuards, createMachine, createScope, memo, mergeProps, setup };
|
package/dist/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import "./utils-
|
|
3
|
-
import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-
|
|
1
|
+
import "./dom-query-Bwyyt0Vp.mjs";
|
|
2
|
+
import "./utils-hFKGi-oS.mjs";
|
|
3
|
+
import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-qHH8MshY.mjs";
|
|
4
4
|
|
|
5
5
|
export { INIT_STATE, MachineStatus, createGuards, createMachine, createScope, memo, mergeProps, setup };
|
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-oh90SH45.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-DYzqCFaj.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-d1Jt6z5f.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,6 +1,6 @@
|
|
|
1
|
-
import { Qt as getDocument, U as raf, Xt as contains, ft as getEventTarget, l as setStyle, ln as isHTMLElement, st as addDomEvent, t as waitForElement } from "./dom-query-
|
|
2
|
-
import { i as warn, it as isFunction } from "./utils-
|
|
3
|
-
import { t as trackInteractOutside } from "./interact-outside-
|
|
1
|
+
import { Qt as getDocument, U as raf, Xt as contains, ft as getEventTarget, l as setStyle, ln as isHTMLElement, st as addDomEvent, t as waitForElement } from "./dom-query-Bwyyt0Vp.mjs";
|
|
2
|
+
import { i as warn, it as isFunction } from "./utils-hFKGi-oS.mjs";
|
|
3
|
+
import { t as trackInteractOutside } from "./interact-outside-BtY3-DVp.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/dismissable/escape-keydown.ts
|
|
6
6
|
function trackEscapeKeydown(node, fn) {
|
|
@@ -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-DFiQyzeW.cjs";
|
|
2
|
+
import { t as MaybeFunction } from "./functions-DFnYr-gp.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-9OlOKr2i.mjs";
|
|
2
|
+
import { t as MaybeFunction } from "./functions-i_nVCRW0.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.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-DFiQyzeW.cjs";
|
|
2
|
+
import { a as trackDismissableElement, i as trackDismissableBranch, n as DismissableElementOptions, o as LayerType, r as PersistentElementOptions, t as DismissableElementHandlers } from "./dismissable-layer-2TW8ZBcS.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-9OlOKr2i.mjs";
|
|
2
|
+
import { a as trackDismissableElement, i as trackDismissableBranch, n as DismissableElementOptions, o as LayerType, r as PersistentElementOptions, t as DismissableElementHandlers } from "./dismissable-layer-CllXZ1N9.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-Bwyyt0Vp.mjs";
|
|
2
|
+
import "./utils-hFKGi-oS.mjs";
|
|
3
|
+
import "./interact-outside-BtY3-DVp.mjs";
|
|
4
|
+
import { n as trackDismissableElement, t as trackDismissableBranch } from "./dismissable-C-6M-juU.mjs";
|
|
5
5
|
|
|
6
6
|
export { trackDismissableBranch, trackDismissableElement };
|
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 { i as waitForPromise, n as WaitForPromiseReturn, r as waitForElement, t as WaitForOptions } from "./wait-for-
|
|
1
|
+
import { n as DataUrlType, r as getDataUrl, t as DataUrlOptions } from "./data-url-og2AwQaU.cjs";
|
|
2
|
+
import { C as JSX, c as MaybeFn, u as Nullable } from "./index-UNyqrBDu.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-BecR7gec.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-BWyD_KIb.cjs";
|
|
5
|
+
import { i as raf, n as nextTick, r as queueBeforeEvent, t as AnimationFrame } from "./raf-BF2VrckK.cjs";
|
|
6
|
+
import { i as waitForPromise, n as WaitForPromiseReturn, r as waitForElement, t as WaitForOptions } from "./wait-for-C9QyzQj2.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 { i as waitForPromise, n as WaitForPromiseReturn, r as waitForElement, t as WaitForOptions } from "./wait-for-
|
|
1
|
+
import { n as DataUrlType, r as getDataUrl, t as DataUrlOptions } from "./data-url-BqpiKO1L.mjs";
|
|
2
|
+
import { C as JSX, c as MaybeFn, u as Nullable } from "./index-BVcPBg7R.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-v8Pyrj9P.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-BX-BWYjD.mjs";
|
|
5
|
+
import { i as raf, n as nextTick, r as queueBeforeEvent, t as AnimationFrame } from "./raf-DX52LaVy.mjs";
|
|
6
|
+
import { i as waitForPromise, n as WaitForPromiseReturn, r as waitForElement, t as WaitForOptions } from "./wait-for-Pn6RmrHX.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 getTabbables, $t as getDocumentElement, A as getNearestOverflowAncestor, At as isApple, B as AnimationFrame, Bt as isWebKit, C as proxyTabFocus, Ct as isSelfTarget, D as restoreTextSelection, Dt as getPlatform, E as disableTextSelection, Et as isVirtualPointerEvent, F as scrollIntoView, Ft as isIPhone, G as isValidTabEvent, Gt as isControlledByExpandedController, H as queueBeforeEvent, Ht as findControlledElements, I as clickIfLink, It as isIos, J as getFocusables, Jt as isInteractiveContainerElement, K as getFirstFocusable, Kt as isControlledElement, L as navigate, Lt as isMac, M as getScrollPosition, Mt as isDom, N as isInView, Nt as isFirefox, O as requestPointerLock, Ot as getUserAgent, P as isOverflowElement, Pt as isIPad, Q as getTabbableEdges, Qt as getDocument, R as observeAttributes, Rt as isSafari, S as queryAll, St as isPrintableKey, T as trackPointerMove, Tt as isVirtualClick, U as raf, Ut as getControlledElements, V as nextTick, Vt as getDataUrl, W as getInitialFocus, Wt as hasControllerElements, X as getNextTabbable, Xt as contains, Y as getLastTabbable, Yt as getComputedStyle, Z as getTabIndex, Zt as getActiveElement, _ as indexOfId, _n as ariaAttr, _t as isDownloadingEvent, a as trackVisualViewport, an as isAnchorElement, at as setElementValue, b as prevById, bn as setCaretToEnd, bt as isModifierKey, c as setProperty, cn as isElementVisible, ct as getBeforeInputValue, d as getByText, dn as isNode, dt as getEventStep, en as getNodeName, et as isFocusable, f as createScope, fn as isRootElement, ft as getEventTarget, g as defaultItemToId, gn as MAX_Z_INDEX, gt as isCtrlOrMetaKey, h as resizeObserverDevicePixelContentBox, hn as isWindow, ht as isContextMenuEvent, i as visuallyHiddenStyle, in as isActiveElement, it as setElementChecked, j as getOverflowAncestors, jt as isChrome, k as getRelativePoint, kt as isAndroid, l as setStyle, ln as isHTMLElement, lt as getEventKey, m as resizeObserverContentBox, mn as isVisualViewport, mt as isComposingEvent, n as waitForPromise, nn as getRootNode, nt as dispatchInputCheckedEvent, o as getByTypeahead, on as isDocument, ot as trackFormControl, p as resizeObserverBorderBox, pn as isShadowRoot, pt as getNativeEvent, q as getFirstTabbable, qt as isControllerElement, r as setVisuallyHidden, rn as getWindow, rt as dispatchInputValueEvent, s as setAttribute, sn as isEditableElement, st as addDomEvent, t as waitForElement, tn as getParentNode, tt as isTabbable, u as setStyleProperty, un as isInputElement, ut as getEventPoint, v as itemById, vn as dataAttr, vt as isKeyboardClick, w as trackPress, wt as isTouchEvent, x as query, xt as isOpeningInNewTab, y as nextById, yn as isCaretAtStart, yt as isLeftClick, z as observeChildren, zt as isTouchDevice } from "./dom-query-
|
|
1
|
+
import { $ as getTabbables, $t as getDocumentElement, A as getNearestOverflowAncestor, At as isApple, B as AnimationFrame, Bt as isWebKit, C as proxyTabFocus, Ct as isSelfTarget, D as restoreTextSelection, Dt as getPlatform, E as disableTextSelection, Et as isVirtualPointerEvent, F as scrollIntoView, Ft as isIPhone, G as isValidTabEvent, Gt as isControlledByExpandedController, H as queueBeforeEvent, Ht as findControlledElements, I as clickIfLink, It as isIos, J as getFocusables, Jt as isInteractiveContainerElement, K as getFirstFocusable, Kt as isControlledElement, L as navigate, Lt as isMac, M as getScrollPosition, Mt as isDom, N as isInView, Nt as isFirefox, O as requestPointerLock, Ot as getUserAgent, P as isOverflowElement, Pt as isIPad, Q as getTabbableEdges, Qt as getDocument, R as observeAttributes, Rt as isSafari, S as queryAll, St as isPrintableKey, T as trackPointerMove, Tt as isVirtualClick, U as raf, Ut as getControlledElements, V as nextTick, Vt as getDataUrl, W as getInitialFocus, Wt as hasControllerElements, X as getNextTabbable, Xt as contains, Y as getLastTabbable, Yt as getComputedStyle, Z as getTabIndex, Zt as getActiveElement, _ as indexOfId, _n as ariaAttr, _t as isDownloadingEvent, a as trackVisualViewport, an as isAnchorElement, at as setElementValue, b as prevById, bn as setCaretToEnd, bt as isModifierKey, c as setProperty, cn as isElementVisible, ct as getBeforeInputValue, d as getByText, dn as isNode, dt as getEventStep, en as getNodeName, et as isFocusable, f as createScope, fn as isRootElement, ft as getEventTarget, g as defaultItemToId, gn as MAX_Z_INDEX, gt as isCtrlOrMetaKey, h as resizeObserverDevicePixelContentBox, hn as isWindow, ht as isContextMenuEvent, i as visuallyHiddenStyle, in as isActiveElement, it as setElementChecked, j as getOverflowAncestors, jt as isChrome, k as getRelativePoint, kt as isAndroid, l as setStyle, ln as isHTMLElement, lt as getEventKey, m as resizeObserverContentBox, mn as isVisualViewport, mt as isComposingEvent, n as waitForPromise, nn as getRootNode, nt as dispatchInputCheckedEvent, o as getByTypeahead, on as isDocument, ot as trackFormControl, p as resizeObserverBorderBox, pn as isShadowRoot, pt as getNativeEvent, q as getFirstTabbable, qt as isControllerElement, r as setVisuallyHidden, rn as getWindow, rt as dispatchInputValueEvent, s as setAttribute, sn as isEditableElement, st as addDomEvent, t as waitForElement, tn as getParentNode, tt as isTabbable, u as setStyleProperty, un as isInputElement, ut as getEventPoint, v as itemById, vn as dataAttr, vt as isKeyboardClick, w as trackPress, wt as isTouchEvent, x as query, xt as isOpeningInNewTab, y as nextById, yn as isCaretAtStart, yt as isLeftClick, z as observeChildren, zt as isTouchDevice } from "./dom-query-Bwyyt0Vp.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, waitForPromise };
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
//#region src/shared/file-utils/data-transfer.ts
|
|
2
|
+
const getItemEntry = (item) => typeof item.getAsEntry === "function" ? item.getAsEntry() : typeof item.webkitGetAsEntry === "function" ? item.webkitGetAsEntry() : null;
|
|
3
|
+
const isDirectoryEntry = (entry) => entry.isDirectory;
|
|
4
|
+
const isFileEntry = (entry) => entry.isFile;
|
|
5
|
+
const addRelativePath = (file, path) => {
|
|
6
|
+
Object.defineProperty(file, "relativePath", { value: path ? `${path}/${file.name}` : file.name });
|
|
7
|
+
return file;
|
|
8
|
+
};
|
|
9
|
+
const getFileEntries = (items, traverseDirectories) => Promise.all(Array.from(items).filter((item) => item.kind === "file").map((item) => {
|
|
10
|
+
const entry = getItemEntry(item);
|
|
11
|
+
if (!entry) return null;
|
|
12
|
+
if (isDirectoryEntry(entry) && traverseDirectories) return getDirectoryFiles(entry.createReader(), `${entry.name}`);
|
|
13
|
+
if (isFileEntry(entry) && typeof item.getAsFile === "function") {
|
|
14
|
+
const file = item.getAsFile();
|
|
15
|
+
return Promise.resolve(file ? addRelativePath(file, "") : null);
|
|
16
|
+
}
|
|
17
|
+
if (isFileEntry(entry)) return new Promise((resolve) => {
|
|
18
|
+
entry.file((file) => {
|
|
19
|
+
resolve(addRelativePath(file, ""));
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
}).filter((b) => b));
|
|
23
|
+
const getDirectoryFiles = (reader, path = "") => new Promise((resolve) => {
|
|
24
|
+
const entryPromises = [];
|
|
25
|
+
const readDirectoryEntries = () => {
|
|
26
|
+
reader.readEntries((entries) => {
|
|
27
|
+
if (entries.length === 0) {
|
|
28
|
+
resolve(Promise.all(entryPromises).then((entries$1) => entries$1.flat()));
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const promises = entries.map((entry) => {
|
|
32
|
+
if (!entry) return null;
|
|
33
|
+
if (isDirectoryEntry(entry)) return getDirectoryFiles(entry.createReader(), `${path}${entry.name}`);
|
|
34
|
+
if (isFileEntry(entry)) return new Promise((resolve$1) => {
|
|
35
|
+
entry.file((file) => {
|
|
36
|
+
resolve$1(addRelativePath(file, path));
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}).filter((b) => b);
|
|
40
|
+
entryPromises.push(Promise.all(promises));
|
|
41
|
+
readDirectoryEntries();
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
readDirectoryEntries();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/shared/file-utils/data-url-to-blob.ts
|
|
49
|
+
function dataURItoBlob(uri) {
|
|
50
|
+
const binary = atob(uri.split(",")[1]);
|
|
51
|
+
const mimeString = uri.split(",")[0].split(":")[1].split(";")[0];
|
|
52
|
+
const buffer = new ArrayBuffer(binary.length);
|
|
53
|
+
const intArray = new Uint8Array(buffer);
|
|
54
|
+
for (let i = 0; i < binary.length; i++) intArray[i] = binary.charCodeAt(i);
|
|
55
|
+
return new Blob([buffer], { type: mimeString });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/shared/file-utils/download-file.ts
|
|
60
|
+
const BOM_REGEX = /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i;
|
|
61
|
+
const MAC_REGEX = /Macintosh/;
|
|
62
|
+
const APPLE_WEBKIT_REGEX = /AppleWebKit/;
|
|
63
|
+
const SAFARI_REGEX = /Safari/;
|
|
64
|
+
function getBlob(blobOrString, type, appendBOM) {
|
|
65
|
+
let blob = typeof blobOrString === "string" ? new Blob([blobOrString], { type }) : blobOrString;
|
|
66
|
+
if (appendBOM && BOM_REGEX.test(blob.type)) return new Blob([String.fromCharCode(65279), blob], { type: blob.type });
|
|
67
|
+
return blob;
|
|
68
|
+
}
|
|
69
|
+
function isMSEdge(win) {
|
|
70
|
+
return Boolean(win.navigator && win.navigator.msSaveOrOpenBlob);
|
|
71
|
+
}
|
|
72
|
+
function isWebView(win) {
|
|
73
|
+
return win.navigator && MAC_REGEX.test(win.navigator.userAgent) && APPLE_WEBKIT_REGEX.test(win.navigator.userAgent) && !SAFARI_REGEX.test(win.navigator.userAgent);
|
|
74
|
+
}
|
|
75
|
+
function downloadFile(options) {
|
|
76
|
+
const { file, win = window, type, name, appendBOM, revokeTimeout = 0 } = options;
|
|
77
|
+
const doc = win.document;
|
|
78
|
+
const blob = getBlob(file, type, appendBOM);
|
|
79
|
+
const fileName = (file instanceof File ? name || file.name : name) || "file-download";
|
|
80
|
+
if (isMSEdge(win)) {
|
|
81
|
+
win.navigator.msSaveOrOpenBlob(blob, fileName);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const isMacOSWebView = isWebView(win);
|
|
85
|
+
const anchor = doc.createElement("a");
|
|
86
|
+
if ("download" in anchor && !isMacOSWebView) {
|
|
87
|
+
const url$1 = win.URL.createObjectURL(blob);
|
|
88
|
+
anchor.href = url$1;
|
|
89
|
+
anchor.rel = "noopener";
|
|
90
|
+
anchor.download = fileName;
|
|
91
|
+
anchor.style.display = "none";
|
|
92
|
+
doc.body.appendChild(anchor);
|
|
93
|
+
anchor.dispatchEvent(new win.MouseEvent("click"));
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
win.URL.revokeObjectURL(url$1);
|
|
96
|
+
anchor.remove();
|
|
97
|
+
}, revokeTimeout);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const url = win.URL.createObjectURL(blob);
|
|
101
|
+
if (!win.open(url, "_blank")) win.location.href = url;
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
win.URL.revokeObjectURL(url);
|
|
104
|
+
}, revokeTimeout);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/shared/file-utils/get-accept-attr.ts
|
|
109
|
+
function isMIMEType(v) {
|
|
110
|
+
return v === "audio/*" || v === "video/*" || v === "image/*" || v === "text/*" || /\w+\/[-+.\w]+/g.test(v);
|
|
111
|
+
}
|
|
112
|
+
function isExt(v) {
|
|
113
|
+
return /^.*\.[\w]+$/.test(v);
|
|
114
|
+
}
|
|
115
|
+
const isValidMIME = (v) => isMIMEType(v) || isExt(v);
|
|
116
|
+
function getAcceptAttrString(accept) {
|
|
117
|
+
if (accept == null) return;
|
|
118
|
+
if (typeof accept === "string") return accept;
|
|
119
|
+
if (Array.isArray(accept)) return accept.filter(isValidMIME).join(",");
|
|
120
|
+
return Object.entries(accept).reduce((a, [mimeType, ext]) => [
|
|
121
|
+
...a,
|
|
122
|
+
mimeType,
|
|
123
|
+
...ext
|
|
124
|
+
], []).filter(isValidMIME).join(",");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/shared/file-utils/get-file-data-url.ts
|
|
129
|
+
const getFileDataUrl = async (file) => {
|
|
130
|
+
const reader = new FileReader();
|
|
131
|
+
return new Promise((resolve, reject) => {
|
|
132
|
+
reader.onerror = () => {
|
|
133
|
+
reader.abort();
|
|
134
|
+
reject(/* @__PURE__ */ new Error("There was an error reading a file"));
|
|
135
|
+
};
|
|
136
|
+
reader.onloadend = () => {
|
|
137
|
+
const { result } = reader;
|
|
138
|
+
if (result instanceof ArrayBuffer) reject(/* @__PURE__ */ new Error("Expected DataURL as string from Blob/File, got ArrayBuffer"));
|
|
139
|
+
else resolve(result || void 0);
|
|
140
|
+
};
|
|
141
|
+
reader.readAsDataURL(file);
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/shared/file-utils/get-total-file-size.ts
|
|
147
|
+
const getTotalFileSize = (files) => {
|
|
148
|
+
return files.reduce((acc, file) => acc + file.size, 0);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/shared/file-utils/is-file-equal.ts
|
|
153
|
+
const isFileEqual = (file1, file2) => {
|
|
154
|
+
return file1.name === file2.name && file1.size === file2.size && file1.type === file2.type;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/shared/file-utils/is-valid-file-size.ts
|
|
159
|
+
const isDefined = (v) => v !== void 0 && v !== null;
|
|
160
|
+
function isValidFileSize(file, minSize, maxSize) {
|
|
161
|
+
if (isDefined(file.size)) {
|
|
162
|
+
if (isDefined(minSize) && isDefined(maxSize)) {
|
|
163
|
+
if (file.size > maxSize) return [false, "FILE_TOO_LARGE"];
|
|
164
|
+
if (file.size < minSize) return [false, "FILE_TOO_SMALL"];
|
|
165
|
+
} else if (isDefined(minSize) && file.size < minSize) return [false, "FILE_TOO_SMALL"];
|
|
166
|
+
else if (isDefined(maxSize) && file.size > maxSize) return [false, "FILE_TOO_LARGE"];
|
|
167
|
+
}
|
|
168
|
+
return [true, null];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/shared/file-utils/mime-types.ts
|
|
173
|
+
const mimeTypes = "3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip";
|
|
174
|
+
const mimeTypesMap = new Map(mimeTypes.split("[").flatMap((mime) => {
|
|
175
|
+
const [extensions, mimeType] = mime.split("_");
|
|
176
|
+
return extensions.split(",").map((ext) => [ext, mimeType]);
|
|
177
|
+
}));
|
|
178
|
+
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/shared/file-utils/get-file-mime-type.ts
|
|
181
|
+
function getFileMimeType(name) {
|
|
182
|
+
const extension = name.split(".").pop();
|
|
183
|
+
return extension ? mimeTypesMap.get(extension) || null : null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/shared/file-utils/is-valid-file-type.ts
|
|
188
|
+
function isFileAccepted(file, accept) {
|
|
189
|
+
if (file && accept) {
|
|
190
|
+
const types = Array.isArray(accept) ? accept : typeof accept === "string" ? accept.split(",") : [];
|
|
191
|
+
if (types.length === 0) return true;
|
|
192
|
+
const fileName = file.name || "";
|
|
193
|
+
const mimeType = (file.type || getFileMimeType(fileName) || "").toLowerCase();
|
|
194
|
+
const baseMimeType = mimeType.replace(/\/.*$/, "");
|
|
195
|
+
return types.some((type) => {
|
|
196
|
+
const validType = type.trim().toLowerCase();
|
|
197
|
+
if (validType.charAt(0) === ".") return fileName.toLowerCase().endsWith(validType);
|
|
198
|
+
if (validType.endsWith("/*")) return baseMimeType === validType.replace(/\/.*$/, "");
|
|
199
|
+
return mimeType === validType;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
function isValidFileType(file, accept) {
|
|
205
|
+
const isAcceptable = file.type === "application/x-moz-file" || isFileAccepted(file, accept);
|
|
206
|
+
return [isAcceptable, isAcceptable ? null : "FILE_INVALID_TYPE"];
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
//#endregion
|
|
210
|
+
export { getTotalFileSize as a, downloadFile as c, isFileEqual as i, dataURItoBlob as l, getFileMimeType as n, getFileDataUrl as o, isValidFileSize as r, getAcceptAttrString as s, isValidFileType as t, getFileEntries as u };
|