@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,11 +1,11 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_collection = require('../../collection-
|
|
5
|
-
const require_core = require('../../core-
|
|
6
|
-
require('../../interact-outside-
|
|
7
|
-
const require_dismissable = require('../../dismissable-
|
|
8
|
-
const require_popper = require('../../popper-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
4
|
+
const require_collection = require('../../collection-Fkg4kgPn.cjs');
|
|
5
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
6
|
+
require('../../interact-outside-Dk2otQqs.cjs');
|
|
7
|
+
const require_dismissable = require('../../dismissable-DSFGuAU6.cjs');
|
|
8
|
+
const require_popper = require('../../popper-CY3ptPbm.cjs');
|
|
9
9
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
10
10
|
|
|
11
11
|
//#region src/machines/combobox/combobox.anatomy.ts
|
|
@@ -61,7 +61,7 @@ const focusTriggerEl = (ctx) => {
|
|
|
61
61
|
function connect(service, normalize) {
|
|
62
62
|
const { context, prop, state, send, scope, computed, event } = service;
|
|
63
63
|
const translations = prop("translations");
|
|
64
|
-
const collection
|
|
64
|
+
const collection = prop("collection");
|
|
65
65
|
const disabled = !!prop("disabled");
|
|
66
66
|
const interactive = computed("isInteractive");
|
|
67
67
|
const invalid = !!prop("invalid");
|
|
@@ -75,13 +75,13 @@ function connect(service, normalize) {
|
|
|
75
75
|
...prop("positioning"),
|
|
76
76
|
placement: context.get("currentPlacement")
|
|
77
77
|
});
|
|
78
|
-
function getItemState(props
|
|
79
|
-
const disabled
|
|
80
|
-
const value = collection
|
|
81
|
-
require_utils.ensure(value, () => `[sprawlify-js] No value found for item ${JSON.stringify(props
|
|
78
|
+
function getItemState(props) {
|
|
79
|
+
const disabled = collection.getItemDisabled(props.item);
|
|
80
|
+
const value = collection.getItemValue(props.item);
|
|
81
|
+
require_utils.ensure(value, () => `[sprawlify-js] No value found for item ${JSON.stringify(props.item)}`);
|
|
82
82
|
return {
|
|
83
83
|
value,
|
|
84
|
-
disabled: Boolean(disabled
|
|
84
|
+
disabled: Boolean(disabled || disabled),
|
|
85
85
|
highlighted: highlightedValue === value,
|
|
86
86
|
selected: context.get("value").includes(value)
|
|
87
87
|
};
|
|
@@ -173,9 +173,9 @@ function connect(service, normalize) {
|
|
|
173
173
|
"data-invalid": require_dom_query.dataAttr(invalid),
|
|
174
174
|
"data-required": require_dom_query.dataAttr(required),
|
|
175
175
|
"data-focus": require_dom_query.dataAttr(focused),
|
|
176
|
-
onClick(event
|
|
176
|
+
onClick(event) {
|
|
177
177
|
if (composite) return;
|
|
178
|
-
event
|
|
178
|
+
event.preventDefault();
|
|
179
179
|
getTriggerEl(scope)?.focus({ preventScroll: true });
|
|
180
180
|
}
|
|
181
181
|
});
|
|
@@ -225,8 +225,8 @@ function connect(service, normalize) {
|
|
|
225
225
|
"aria-expanded": open,
|
|
226
226
|
"data-state": open ? "open" : "closed",
|
|
227
227
|
"aria-activedescendant": highlightedValue ? getItemId(scope, highlightedValue) : void 0,
|
|
228
|
-
onClick(event
|
|
229
|
-
if (event
|
|
228
|
+
onClick(event) {
|
|
229
|
+
if (event.defaultPrevented) return;
|
|
230
230
|
if (!prop("openOnClick")) return;
|
|
231
231
|
if (!interactive) return;
|
|
232
232
|
send({
|
|
@@ -242,56 +242,56 @@ function connect(service, normalize) {
|
|
|
242
242
|
if (disabled) return;
|
|
243
243
|
send({ type: "INPUT.BLUR" });
|
|
244
244
|
},
|
|
245
|
-
onChange(event
|
|
245
|
+
onChange(event) {
|
|
246
246
|
send({
|
|
247
247
|
type: "INPUT.CHANGE",
|
|
248
|
-
value: event
|
|
248
|
+
value: event.currentTarget.value,
|
|
249
249
|
src: "input-change"
|
|
250
250
|
});
|
|
251
251
|
},
|
|
252
|
-
onKeyDown(event
|
|
253
|
-
if (event
|
|
252
|
+
onKeyDown(event) {
|
|
253
|
+
if (event.defaultPrevented) return;
|
|
254
254
|
if (!interactive) return;
|
|
255
|
-
if (event
|
|
255
|
+
if (event.ctrlKey || event.shiftKey || require_dom_query.isComposingEvent(event)) return;
|
|
256
256
|
const openOnKeyPress = prop("openOnKeyPress");
|
|
257
|
-
const isModifierKey = event
|
|
257
|
+
const isModifierKey = event.ctrlKey || event.metaKey || event.shiftKey;
|
|
258
258
|
const keypress = true;
|
|
259
259
|
const exec = {
|
|
260
|
-
ArrowDown(event
|
|
260
|
+
ArrowDown(event) {
|
|
261
261
|
if (!openOnKeyPress && !open) return;
|
|
262
262
|
send({
|
|
263
|
-
type: event
|
|
263
|
+
type: event.altKey ? "OPEN" : "INPUT.ARROW_DOWN",
|
|
264
264
|
keypress,
|
|
265
265
|
src: "arrow-key"
|
|
266
266
|
});
|
|
267
|
-
event
|
|
267
|
+
event.preventDefault();
|
|
268
268
|
},
|
|
269
269
|
ArrowUp() {
|
|
270
270
|
if (!openOnKeyPress && !open) return;
|
|
271
271
|
send({
|
|
272
|
-
type: event
|
|
272
|
+
type: event.altKey ? "CLOSE" : "INPUT.ARROW_UP",
|
|
273
273
|
keypress,
|
|
274
274
|
src: "arrow-key"
|
|
275
275
|
});
|
|
276
|
-
event
|
|
276
|
+
event.preventDefault();
|
|
277
277
|
},
|
|
278
|
-
Home(event
|
|
278
|
+
Home(event) {
|
|
279
279
|
if (isModifierKey) return;
|
|
280
280
|
send({
|
|
281
281
|
type: "INPUT.HOME",
|
|
282
282
|
keypress
|
|
283
283
|
});
|
|
284
|
-
if (open) event
|
|
284
|
+
if (open) event.preventDefault();
|
|
285
285
|
},
|
|
286
|
-
End(event
|
|
286
|
+
End(event) {
|
|
287
287
|
if (isModifierKey) return;
|
|
288
288
|
send({
|
|
289
289
|
type: "INPUT.END",
|
|
290
290
|
keypress
|
|
291
291
|
});
|
|
292
|
-
if (open) event
|
|
292
|
+
if (open) event.preventDefault();
|
|
293
293
|
},
|
|
294
|
-
Enter(event
|
|
294
|
+
Enter(event) {
|
|
295
295
|
send({
|
|
296
296
|
type: "INPUT.ENTER",
|
|
297
297
|
keypress,
|
|
@@ -300,7 +300,7 @@ function connect(service, normalize) {
|
|
|
300
300
|
const submittable = computed("isCustomValue") && prop("allowCustomValue");
|
|
301
301
|
const hasHighlight = highlightedValue != null;
|
|
302
302
|
const alwaysSubmit = prop("alwaysSubmitOnEnter");
|
|
303
|
-
if (open && !submittable && !alwaysSubmit && hasHighlight) event
|
|
303
|
+
if (open && !submittable && !alwaysSubmit && hasHighlight) event.preventDefault();
|
|
304
304
|
if (highlightedValue == null) return;
|
|
305
305
|
const itemEl = getItemEl(scope, highlightedValue);
|
|
306
306
|
if (require_dom_query.isAnchorElement(itemEl)) prop("navigate")?.({
|
|
@@ -315,57 +315,57 @@ function connect(service, normalize) {
|
|
|
315
315
|
keypress,
|
|
316
316
|
src: "escape-key"
|
|
317
317
|
});
|
|
318
|
-
event
|
|
318
|
+
event.preventDefault();
|
|
319
319
|
}
|
|
320
|
-
}[require_dom_query.getEventKey(event
|
|
321
|
-
exec?.(event
|
|
320
|
+
}[require_dom_query.getEventKey(event, { dir: prop("dir") })];
|
|
321
|
+
exec?.(event);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
},
|
|
325
|
-
getTriggerProps(props
|
|
325
|
+
getTriggerProps(props = {}) {
|
|
326
326
|
return normalize.button({
|
|
327
327
|
...parts.trigger.attrs,
|
|
328
328
|
dir: prop("dir"),
|
|
329
329
|
id: getTriggerId(scope),
|
|
330
330
|
"aria-haspopup": composite ? "listbox" : "dialog",
|
|
331
331
|
type: "button",
|
|
332
|
-
tabIndex: props
|
|
332
|
+
tabIndex: props.focusable ? void 0 : -1,
|
|
333
333
|
"aria-label": translations.triggerLabel,
|
|
334
334
|
"aria-expanded": open,
|
|
335
335
|
"data-state": open ? "open" : "closed",
|
|
336
336
|
"aria-controls": open ? getContentId(scope) : void 0,
|
|
337
337
|
disabled,
|
|
338
338
|
"data-invalid": require_dom_query.dataAttr(invalid),
|
|
339
|
-
"data-focusable": require_dom_query.dataAttr(props
|
|
339
|
+
"data-focusable": require_dom_query.dataAttr(props.focusable),
|
|
340
340
|
"data-readonly": require_dom_query.dataAttr(readOnly),
|
|
341
341
|
"data-disabled": require_dom_query.dataAttr(disabled),
|
|
342
342
|
onFocus() {
|
|
343
|
-
if (!props
|
|
343
|
+
if (!props.focusable) return;
|
|
344
344
|
send({
|
|
345
345
|
type: "INPUT.FOCUS",
|
|
346
346
|
src: "trigger"
|
|
347
347
|
});
|
|
348
348
|
},
|
|
349
|
-
onClick(event
|
|
350
|
-
if (event
|
|
349
|
+
onClick(event) {
|
|
350
|
+
if (event.defaultPrevented) return;
|
|
351
351
|
if (!interactive) return;
|
|
352
|
-
if (!require_dom_query.isLeftClick(event
|
|
352
|
+
if (!require_dom_query.isLeftClick(event)) return;
|
|
353
353
|
send({
|
|
354
354
|
type: "TRIGGER.CLICK",
|
|
355
355
|
src: "trigger-click"
|
|
356
356
|
});
|
|
357
357
|
},
|
|
358
|
-
onPointerDown(event
|
|
358
|
+
onPointerDown(event) {
|
|
359
359
|
if (!interactive) return;
|
|
360
|
-
if (event
|
|
361
|
-
if (!require_dom_query.isLeftClick(event
|
|
362
|
-
event
|
|
360
|
+
if (event.pointerType === "touch") return;
|
|
361
|
+
if (!require_dom_query.isLeftClick(event)) return;
|
|
362
|
+
event.preventDefault();
|
|
363
363
|
queueMicrotask(() => {
|
|
364
364
|
getInputEl(scope)?.focus({ preventScroll: true });
|
|
365
365
|
});
|
|
366
366
|
},
|
|
367
|
-
onKeyDown(event
|
|
368
|
-
if (event
|
|
367
|
+
onKeyDown(event) {
|
|
368
|
+
if (event.defaultPrevented) return;
|
|
369
369
|
if (composite) return;
|
|
370
370
|
const exec = {
|
|
371
371
|
ArrowDown() {
|
|
@@ -380,10 +380,10 @@ function connect(service, normalize) {
|
|
|
380
380
|
src: "arrow-key"
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
}[require_dom_query.getEventKey(event
|
|
383
|
+
}[require_dom_query.getEventKey(event, { dir: prop("dir") })];
|
|
384
384
|
if (exec) {
|
|
385
|
-
exec(event
|
|
386
|
-
event
|
|
385
|
+
exec(event);
|
|
386
|
+
event.preventDefault();
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
});
|
|
@@ -400,10 +400,10 @@ function connect(service, normalize) {
|
|
|
400
400
|
"data-placement": context.get("currentPlacement"),
|
|
401
401
|
"aria-labelledby": getLabelId(scope),
|
|
402
402
|
"aria-multiselectable": prop("multiple") && composite ? true : void 0,
|
|
403
|
-
"data-empty": require_dom_query.dataAttr(collection
|
|
404
|
-
onPointerDown(event
|
|
405
|
-
if (!require_dom_query.isLeftClick(event
|
|
406
|
-
event
|
|
403
|
+
"data-empty": require_dom_query.dataAttr(collection.size === 0),
|
|
404
|
+
onPointerDown(event) {
|
|
405
|
+
if (!require_dom_query.isLeftClick(event)) return;
|
|
406
|
+
event.preventDefault();
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
},
|
|
@@ -411,7 +411,7 @@ function connect(service, normalize) {
|
|
|
411
411
|
return normalize.element({
|
|
412
412
|
...parts.list.attrs,
|
|
413
413
|
role: !composite ? "listbox" : void 0,
|
|
414
|
-
"data-empty": require_dom_query.dataAttr(collection
|
|
414
|
+
"data-empty": require_dom_query.dataAttr(collection.size === 0),
|
|
415
415
|
"aria-labelledby": getLabelId(scope),
|
|
416
416
|
"aria-multiselectable": prop("multiple") && !composite ? true : void 0
|
|
417
417
|
});
|
|
@@ -428,12 +428,12 @@ function connect(service, normalize) {
|
|
|
428
428
|
"aria-label": translations.clearTriggerLabel,
|
|
429
429
|
"aria-controls": getInputId(scope),
|
|
430
430
|
hidden: !context.get("value").length,
|
|
431
|
-
onPointerDown(event
|
|
432
|
-
if (!require_dom_query.isLeftClick(event
|
|
433
|
-
event
|
|
431
|
+
onPointerDown(event) {
|
|
432
|
+
if (!require_dom_query.isLeftClick(event)) return;
|
|
433
|
+
event.preventDefault();
|
|
434
434
|
},
|
|
435
|
-
onClick(event
|
|
436
|
-
if (event
|
|
435
|
+
onClick(event) {
|
|
436
|
+
if (event.defaultPrevented) return;
|
|
437
437
|
if (!interactive) return;
|
|
438
438
|
send({
|
|
439
439
|
type: "VALUE.CLEAR",
|
|
@@ -443,8 +443,8 @@ function connect(service, normalize) {
|
|
|
443
443
|
});
|
|
444
444
|
},
|
|
445
445
|
getItemState,
|
|
446
|
-
getItemProps(props
|
|
447
|
-
const itemState = getItemState(props
|
|
446
|
+
getItemProps(props) {
|
|
447
|
+
const itemState = getItemState(props);
|
|
448
448
|
const value = itemState.value;
|
|
449
449
|
return normalize.element({
|
|
450
450
|
...parts.item.attrs,
|
|
@@ -467,7 +467,7 @@ function connect(service, normalize) {
|
|
|
467
467
|
});
|
|
468
468
|
},
|
|
469
469
|
onPointerLeave() {
|
|
470
|
-
if (props
|
|
470
|
+
if (props.persistFocus) return;
|
|
471
471
|
if (itemState.disabled) return;
|
|
472
472
|
if (!event.previous()?.type.includes("POINTER")) return;
|
|
473
473
|
send({
|
|
@@ -475,10 +475,10 @@ function connect(service, normalize) {
|
|
|
475
475
|
value
|
|
476
476
|
});
|
|
477
477
|
},
|
|
478
|
-
onClick(event
|
|
479
|
-
if (require_dom_query.isDownloadingEvent(event
|
|
480
|
-
if (require_dom_query.isOpeningInNewTab(event
|
|
481
|
-
if (require_dom_query.isContextMenuEvent(event
|
|
478
|
+
onClick(event) {
|
|
479
|
+
if (require_dom_query.isDownloadingEvent(event)) return;
|
|
480
|
+
if (require_dom_query.isOpeningInNewTab(event)) return;
|
|
481
|
+
if (require_dom_query.isContextMenuEvent(event)) return;
|
|
482
482
|
if (itemState.disabled) return;
|
|
483
483
|
send({
|
|
484
484
|
type: "ITEM.CLICK",
|
|
@@ -488,8 +488,8 @@ function connect(service, normalize) {
|
|
|
488
488
|
}
|
|
489
489
|
});
|
|
490
490
|
},
|
|
491
|
-
getItemTextProps(props
|
|
492
|
-
const itemState = getItemState(props
|
|
491
|
+
getItemTextProps(props) {
|
|
492
|
+
const itemState = getItemState(props);
|
|
493
493
|
return normalize.element({
|
|
494
494
|
...parts.itemText.attrs,
|
|
495
495
|
dir: prop("dir"),
|
|
@@ -498,8 +498,8 @@ function connect(service, normalize) {
|
|
|
498
498
|
"data-highlighted": require_dom_query.dataAttr(itemState.highlighted)
|
|
499
499
|
});
|
|
500
500
|
},
|
|
501
|
-
getItemIndicatorProps(props
|
|
502
|
-
const itemState = getItemState(props
|
|
501
|
+
getItemIndicatorProps(props) {
|
|
502
|
+
const itemState = getItemState(props);
|
|
503
503
|
return normalize.element({
|
|
504
504
|
"aria-hidden": true,
|
|
505
505
|
...parts.itemIndicator.attrs,
|
|
@@ -508,19 +508,19 @@ function connect(service, normalize) {
|
|
|
508
508
|
hidden: !itemState.selected
|
|
509
509
|
});
|
|
510
510
|
},
|
|
511
|
-
getItemGroupProps(props
|
|
512
|
-
const { id } = props
|
|
511
|
+
getItemGroupProps(props) {
|
|
512
|
+
const { id } = props;
|
|
513
513
|
return normalize.element({
|
|
514
514
|
...parts.itemGroup.attrs,
|
|
515
515
|
dir: prop("dir"),
|
|
516
516
|
id: getItemGroupId(scope, id),
|
|
517
517
|
"aria-labelledby": getItemGroupLabelId(scope, id),
|
|
518
|
-
"data-empty": require_dom_query.dataAttr(collection
|
|
518
|
+
"data-empty": require_dom_query.dataAttr(collection.size === 0),
|
|
519
519
|
role: "group"
|
|
520
520
|
});
|
|
521
521
|
},
|
|
522
|
-
getItemGroupLabelProps(props
|
|
523
|
-
const { htmlFor } = props
|
|
522
|
+
getItemGroupLabelProps(props) {
|
|
523
|
+
const { htmlFor } = props;
|
|
524
524
|
return normalize.element({
|
|
525
525
|
...parts.itemGroupLabel.attrs,
|
|
526
526
|
dir: prop("dir"),
|
|
@@ -536,17 +536,17 @@ function connect(service, normalize) {
|
|
|
536
536
|
const { guards, createMachine, choose } = require_core.setup();
|
|
537
537
|
const { and, not } = guards;
|
|
538
538
|
const machine = createMachine({
|
|
539
|
-
props({ props
|
|
539
|
+
props({ props }) {
|
|
540
540
|
return {
|
|
541
541
|
loopFocus: true,
|
|
542
542
|
openOnClick: false,
|
|
543
543
|
defaultValue: [],
|
|
544
544
|
defaultInputValue: "",
|
|
545
|
-
closeOnSelect: !props
|
|
545
|
+
closeOnSelect: !props.multiple,
|
|
546
546
|
allowCustomValue: false,
|
|
547
547
|
alwaysSubmitOnEnter: false,
|
|
548
548
|
inputBehavior: "none",
|
|
549
|
-
selectionBehavior: props
|
|
549
|
+
selectionBehavior: props.multiple ? "clear" : "replace",
|
|
550
550
|
openOnKeyPress: true,
|
|
551
551
|
openOnChange: true,
|
|
552
552
|
composite: true,
|
|
@@ -554,16 +554,16 @@ const machine = createMachine({
|
|
|
554
554
|
require_dom_query.clickIfLink(node);
|
|
555
555
|
},
|
|
556
556
|
collection: collection.empty(),
|
|
557
|
-
...props
|
|
557
|
+
...props,
|
|
558
558
|
positioning: {
|
|
559
559
|
placement: "bottom",
|
|
560
560
|
sameWidth: true,
|
|
561
|
-
...props
|
|
561
|
+
...props.positioning
|
|
562
562
|
},
|
|
563
563
|
translations: {
|
|
564
564
|
triggerLabel: "Toggle suggestions",
|
|
565
565
|
clearTriggerLabel: "Clear value",
|
|
566
|
-
...props
|
|
566
|
+
...props.translations
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
},
|
|
@@ -583,9 +583,9 @@ const machine = createMachine({
|
|
|
583
583
|
onChange(value) {
|
|
584
584
|
const context = getContext();
|
|
585
585
|
const prevSelectedItems = context.get("selectedItems");
|
|
586
|
-
const collection
|
|
586
|
+
const collection = prop("collection");
|
|
587
587
|
const nextItems = value.map((v) => {
|
|
588
|
-
return prevSelectedItems.find((item) => collection
|
|
588
|
+
return prevSelectedItems.find((item) => collection.getItemValue(item) === v) || collection.find(v);
|
|
589
589
|
});
|
|
590
590
|
context.set("selectedItems", nextItems);
|
|
591
591
|
prop("onValueChange")?.({
|
|
@@ -619,11 +619,11 @@ const machine = createMachine({
|
|
|
619
619
|
return {
|
|
620
620
|
defaultValue: inputValue,
|
|
621
621
|
value: prop("inputValue"),
|
|
622
|
-
onChange(value
|
|
622
|
+
onChange(value) {
|
|
623
623
|
const event = getEvent();
|
|
624
624
|
const reason = (event.previousEvent || event).src;
|
|
625
625
|
prop("onInputValueChange")?.({
|
|
626
|
-
inputValue: value
|
|
626
|
+
inputValue: value,
|
|
627
627
|
reason
|
|
628
628
|
});
|
|
629
629
|
}
|
|
@@ -1260,9 +1260,9 @@ const machine = createMachine({
|
|
|
1260
1260
|
},
|
|
1261
1261
|
selectHighlightedItem(params) {
|
|
1262
1262
|
const { context, prop } = params;
|
|
1263
|
-
const collection
|
|
1263
|
+
const collection = prop("collection");
|
|
1264
1264
|
const highlightedValue = context.get("highlightedValue");
|
|
1265
|
-
if (!highlightedValue || !collection
|
|
1265
|
+
if (!highlightedValue || !collection.has(highlightedValue)) return;
|
|
1266
1266
|
const nextValue = prop("multiple") ? require_utils.addOrRemove(context.get("value"), highlightedValue) : [highlightedValue];
|
|
1267
1267
|
prop("onSelect")?.({
|
|
1268
1268
|
value: nextValue,
|
|
@@ -1271,7 +1271,7 @@ const machine = createMachine({
|
|
|
1271
1271
|
context.set("value", nextValue);
|
|
1272
1272
|
const inputValue = require_utils.match(prop("selectionBehavior"), {
|
|
1273
1273
|
preserve: context.get("inputValue"),
|
|
1274
|
-
replace: collection
|
|
1274
|
+
replace: collection.stringifyMany(nextValue),
|
|
1275
1275
|
clear: ""
|
|
1276
1276
|
});
|
|
1277
1277
|
context.set("inputValue", inputValue);
|
|
@@ -1437,21 +1437,21 @@ const machine = createMachine({
|
|
|
1437
1437
|
highlightNextItem({ context, prop }) {
|
|
1438
1438
|
let value = null;
|
|
1439
1439
|
const highlightedValue = context.get("highlightedValue");
|
|
1440
|
-
const collection
|
|
1440
|
+
const collection = prop("collection");
|
|
1441
1441
|
if (highlightedValue) {
|
|
1442
|
-
value = collection
|
|
1443
|
-
if (!value && prop("loopFocus")) value = collection
|
|
1444
|
-
} else value = collection
|
|
1442
|
+
value = collection.getNextValue(highlightedValue);
|
|
1443
|
+
if (!value && prop("loopFocus")) value = collection.firstValue;
|
|
1444
|
+
} else value = collection.firstValue;
|
|
1445
1445
|
if (value) context.set("highlightedValue", value);
|
|
1446
1446
|
},
|
|
1447
1447
|
highlightPrevItem({ context, prop }) {
|
|
1448
1448
|
let value = null;
|
|
1449
1449
|
const highlightedValue = context.get("highlightedValue");
|
|
1450
|
-
const collection
|
|
1450
|
+
const collection = prop("collection");
|
|
1451
1451
|
if (highlightedValue) {
|
|
1452
|
-
value = collection
|
|
1453
|
-
if (!value && prop("loopFocus")) value = collection
|
|
1454
|
-
} else value = collection
|
|
1452
|
+
value = collection.getPreviousValue(highlightedValue);
|
|
1453
|
+
if (!value && prop("loopFocus")) value = collection.lastValue;
|
|
1454
|
+
} else value = collection.lastValue;
|
|
1455
1455
|
if (value) context.set("highlightedValue", value);
|
|
1456
1456
|
},
|
|
1457
1457
|
highlightFirstSelectedItem({ context, prop }) {
|
|
@@ -1470,18 +1470,18 @@ const machine = createMachine({
|
|
|
1470
1470
|
},
|
|
1471
1471
|
highlightLastOrSelectedItem({ context, prop, computed }) {
|
|
1472
1472
|
require_dom_query.raf(() => {
|
|
1473
|
-
const collection
|
|
1473
|
+
const collection = prop("collection");
|
|
1474
1474
|
let value = null;
|
|
1475
|
-
if (computed("hasSelectedItems")) value = collection
|
|
1476
|
-
else value = collection
|
|
1475
|
+
if (computed("hasSelectedItems")) value = collection.sort(context.get("value"))[0];
|
|
1476
|
+
else value = collection.lastValue;
|
|
1477
1477
|
if (value) context.set("highlightedValue", value);
|
|
1478
1478
|
});
|
|
1479
1479
|
},
|
|
1480
1480
|
autofillInputValue({ context, computed, prop, event, scope }) {
|
|
1481
1481
|
const inputEl = getInputEl(scope);
|
|
1482
|
-
const collection
|
|
1482
|
+
const collection = prop("collection");
|
|
1483
1483
|
if (!computed("autoComplete") || !inputEl || !event.keypress) return;
|
|
1484
|
-
const valueText = collection
|
|
1484
|
+
const valueText = collection.stringify(context.get("highlightedValue"));
|
|
1485
1485
|
require_dom_query.raf(() => {
|
|
1486
1486
|
inputEl.value = valueText || context.get("inputValue");
|
|
1487
1487
|
});
|
|
@@ -1489,15 +1489,15 @@ const machine = createMachine({
|
|
|
1489
1489
|
syncSelectedItems(params) {
|
|
1490
1490
|
queueMicrotask(() => {
|
|
1491
1491
|
const { context, prop } = params;
|
|
1492
|
-
const collection
|
|
1492
|
+
const collection = prop("collection");
|
|
1493
1493
|
const value = context.get("value");
|
|
1494
1494
|
const selectedItems = value.map((v) => {
|
|
1495
|
-
return context.get("selectedItems").find((item) => collection
|
|
1495
|
+
return context.get("selectedItems").find((item) => collection.getItemValue(item) === v) || collection.find(v);
|
|
1496
1496
|
});
|
|
1497
1497
|
context.set("selectedItems", selectedItems);
|
|
1498
1498
|
const inputValue = require_utils.match(prop("selectionBehavior"), {
|
|
1499
1499
|
preserve: context.get("inputValue"),
|
|
1500
|
-
replace: collection
|
|
1500
|
+
replace: collection.stringifyMany(value),
|
|
1501
1501
|
clear: ""
|
|
1502
1502
|
});
|
|
1503
1503
|
context.set("inputValue", inputValue);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { r as CollectionOptions, t as CollectionItem } from "../../types-
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
5
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
6
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
7
|
-
import { c as Placement, d as PositioningOptions } from "../../types-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { r as CollectionOptions, t as CollectionItem } from "../../types-CBWaEVU4.cjs";
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-DwMgPYoA.cjs";
|
|
4
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
5
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
6
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Cf0hysnI.cjs";
|
|
7
|
+
import { c as Placement, d as PositioningOptions } from "../../types-B--gFZVP.cjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/combobox/combobox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "trigger" | "content" | "list" | "item" | "itemIndicator" | "positioner" | "clearTrigger" | "itemText" | "itemGroup" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/combobox/combobox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { r as CollectionOptions, t as CollectionItem } from "../../types-
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
5
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
6
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
7
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { r as CollectionOptions, t as CollectionItem } from "../../types-D0tsc4Jo.mjs";
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-C9XUe75n.mjs";
|
|
4
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
5
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
6
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CXu0elLS.mjs";
|
|
7
|
+
import { p as PositioningOptions, u as Placement } from "../../index-DJ1MHM3z.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/combobox/combobox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "trigger" | "content" | "list" | "item" | "itemIndicator" | "positioner" | "clearTrigger" | "itemText" | "itemGroup" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/combobox/combobox.collection.d.ts
|
|
13
13
|
declare const collection: {
|