@televet/kibble-ui 5.0.13 → 5.0.14
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/chunks/{alert.types-BsTOOEB7.js → alert.types-DWm1TeiF.js} +3 -3
- package/dist/chunks/{alert.types-BsTOOEB7.js.map → alert.types-DWm1TeiF.js.map} +1 -1
- package/dist/chunks/{anatomy-BkGk10kB.js → anatomy-B0LtI6sf.js} +2 -2
- package/dist/chunks/{anatomy-BkGk10kB.js.map → anatomy-B0LtI6sf.js.map} +1 -1
- package/dist/chunks/{anatomy-zd4ecEFD.js → anatomy-DKlFmIC5.js} +12 -12
- package/dist/chunks/{anatomy-zd4ecEFD.js.map → anatomy-DKlFmIC5.js.map} +1 -1
- package/dist/chunks/{avatar.component-CzutRWy6.js → avatar.component-BL6D6Lw_.js} +5 -5
- package/dist/chunks/{avatar.component-CzutRWy6.js.map → avatar.component-BL6D6Lw_.js.map} +1 -1
- package/dist/chunks/{avatar.records-EoZmO3VR.js → avatar.records-DFg5kBIk.js} +13 -13
- package/dist/chunks/{avatar.records-EoZmO3VR.js.map → avatar.records-DFg5kBIk.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-WSh9t8AX.js → avatarGroup.component-Ba_rfWUg.js} +5 -5
- package/dist/chunks/{avatarGroup.component-WSh9t8AX.js.map → avatarGroup.component-Ba_rfWUg.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-TsLHB-LO.js → buttonGroup.component-BNOBvOyv.js} +2 -2
- package/dist/chunks/{buttonGroup.component-TsLHB-LO.js.map → buttonGroup.component-BNOBvOyv.js.map} +1 -1
- package/dist/chunks/{calendar.component-CiBkNtlB.js → calendar.component-B4EcYQEb.js} +2 -2
- package/dist/chunks/{calendar.component-CiBkNtlB.js.map → calendar.component-B4EcYQEb.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-CoMqt04J.js → characterCounter.component-DI_FQNUR.js} +2 -2
- package/dist/chunks/{characterCounter.component-CoMqt04J.js.map → characterCounter.component-DI_FQNUR.js.map} +1 -1
- package/dist/chunks/{checkbox.anatomy-BzZ0IkUF.js → checkbox.anatomy-B8fWV_mm.js} +28 -28
- package/dist/chunks/{checkbox.anatomy-BzZ0IkUF.js.map → checkbox.anatomy-B8fWV_mm.js.map} +1 -1
- package/dist/chunks/{checkbox.component-C0XdgZkr.js → checkbox.component-DDsVfE4a.js} +9 -9
- package/dist/chunks/{checkbox.component-C0XdgZkr.js.map → checkbox.component-DDsVfE4a.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-lxNvlmd_.js → checkboxGroup.component-Cx2Gvii5.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-lxNvlmd_.js.map → checkboxGroup.component-Cx2Gvii5.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-B_XSYd1p.js → conversationCard.component-D7hpX-QG.js} +8 -8
- package/dist/chunks/{conversationCard.component-B_XSYd1p.js.map → conversationCard.component-D7hpX-QG.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BAaIqF1O.js → datePicker.component-BotAJpXU.js} +8 -8
- package/dist/chunks/{datePicker.component-BAaIqF1O.js.map → datePicker.component-BotAJpXU.js.map} +1 -1
- package/dist/chunks/{datePicker.component-mE9U6yIL.js → datePicker.component-Cx76pUPS.js} +2 -2
- package/dist/chunks/{datePicker.component-mE9U6yIL.js.map → datePicker.component-Cx76pUPS.js.map} +1 -1
- package/dist/chunks/{datePicker.provider-DEN8clnz.js → datePicker.provider-xtYFjWKI.js} +5 -5
- package/dist/chunks/{datePicker.provider-DEN8clnz.js.map → datePicker.provider-xtYFjWKI.js.map} +1 -1
- package/dist/chunks/{dateTimePicker.component-NOJdpYNs.js → dateTimePicker.component-CUIKZ5BK.js} +9 -9
- package/dist/chunks/{dateTimePicker.component-NOJdpYNs.js.map → dateTimePicker.component-CUIKZ5BK.js.map} +1 -1
- package/dist/chunks/{dateTimePicker.component-CmpTclKA.js → dateTimePicker.component-IGSiKHDc.js} +2 -2
- package/dist/chunks/{dateTimePicker.component-CmpTclKA.js.map → dateTimePicker.component-IGSiKHDc.js.map} +1 -1
- package/dist/chunks/{dialog-B9jifvV4.js → dialog-CJpn28QG.js} +6 -6
- package/dist/chunks/{dialog-B9jifvV4.js.map → dialog-CJpn28QG.js.map} +1 -1
- package/dist/chunks/{field.anatomy-C37GEr2p.js → field.anatomy-CAraH-al.js} +2 -2
- package/dist/chunks/{field.anatomy-C37GEr2p.js.map → field.anatomy-CAraH-al.js.map} +1 -1
- package/dist/chunks/{heading.component-PFNpLFT7.js → heading.component-CpSAN3cv.js} +2 -2
- package/dist/chunks/{heading.component-PFNpLFT7.js.map → heading.component-CpSAN3cv.js.map} +1 -1
- package/dist/chunks/index-6QSGfY1E.js +1011 -0
- package/dist/chunks/index-6QSGfY1E.js.map +1 -0
- package/dist/chunks/{index-D1RhzPVz.js → index-BBvspkoa.js} +3 -3
- package/dist/chunks/{index-D1RhzPVz.js.map → index-BBvspkoa.js.map} +1 -1
- package/dist/chunks/{index-D7QT9KIZ.js → index-BU6fRN91.js} +3 -3
- package/dist/chunks/{index-D7QT9KIZ.js.map → index-BU6fRN91.js.map} +1 -1
- package/dist/chunks/{index-Cxrrsmf-.js → index-BWNl4vB2.js} +8 -8
- package/dist/chunks/{index-Cxrrsmf-.js.map → index-BWNl4vB2.js.map} +1 -1
- package/dist/chunks/{index-fHSGm2nC.js → index-BcafYtXX.js} +47 -47
- package/dist/chunks/{index-fHSGm2nC.js.map → index-BcafYtXX.js.map} +1 -1
- package/dist/chunks/index-BhMI6dHH.js +191 -0
- package/dist/chunks/index-BhMI6dHH.js.map +1 -0
- package/dist/chunks/{index-QVc_GVoE.js → index-C0IJq4ol.js} +15 -15
- package/dist/chunks/{index-QVc_GVoE.js.map → index-C0IJq4ol.js.map} +1 -1
- package/dist/chunks/{index-wV4hG2vI.js → index-CXLyCyl3.js} +4 -4
- package/dist/chunks/{index-wV4hG2vI.js.map → index-CXLyCyl3.js.map} +1 -1
- package/dist/chunks/{index-DfzXSlq1.js → index-CcwGiuyq.js} +29 -29
- package/dist/chunks/{index-DfzXSlq1.js.map → index-CcwGiuyq.js.map} +1 -1
- package/dist/chunks/{index-BbZjRFzg.js → index-CgPTA7y6.js} +3 -3
- package/dist/chunks/{index-BbZjRFzg.js.map → index-CgPTA7y6.js.map} +1 -1
- package/dist/chunks/{index-CbVKVxMW.js → index-CmREf48Z.js} +11 -11
- package/dist/chunks/{index-CbVKVxMW.js.map → index-CmREf48Z.js.map} +1 -1
- package/dist/chunks/{index-B3xJnxjd.js → index-DJa3JmO7.js} +14 -14
- package/dist/chunks/{index-B3xJnxjd.js.map → index-DJa3JmO7.js.map} +1 -1
- package/dist/chunks/{index-DS4KlAkI.js → index-DVGrQEJi.js} +20 -20
- package/dist/chunks/{index-DS4KlAkI.js.map → index-DVGrQEJi.js.map} +1 -1
- package/dist/chunks/{index-C9UYIjEB.js → index-DcmJgLUo.js} +91 -91
- package/dist/chunks/{index-C9UYIjEB.js.map → index-DcmJgLUo.js.map} +1 -1
- package/dist/chunks/index-DhaZ70Qi.js +2 -0
- package/dist/chunks/index-DhaZ70Qi.js.map +1 -0
- package/dist/chunks/index-LDDF3MqB.js +2 -0
- package/dist/chunks/index-LDDF3MqB.js.map +1 -0
- package/dist/chunks/{index-D0DKQnEK.js → index-NrnnmC8w.js} +13 -13
- package/dist/chunks/{index-D0DKQnEK.js.map → index-NrnnmC8w.js.map} +1 -1
- package/dist/chunks/{index-BrJtqTzN.js → index-hPXhx9Mi.js} +5 -5
- package/dist/chunks/{index-BrJtqTzN.js.map → index-hPXhx9Mi.js.map} +1 -1
- package/dist/chunks/{index-BgFImxxe.js → index-k8xPaJWO.js} +12 -12
- package/dist/chunks/{index-BgFImxxe.js.map → index-k8xPaJWO.js.map} +1 -1
- package/dist/chunks/{index-D3Q0mQNf.js → index-mXLFPoCI.js} +18 -18
- package/dist/chunks/{index-D3Q0mQNf.js.map → index-mXLFPoCI.js.map} +1 -1
- package/dist/chunks/list-collection-Bla_aoE6.js +6 -0
- package/dist/chunks/list-collection-Bla_aoE6.js.map +1 -0
- package/dist/chunks/list-collection-DoQwQYv1.js +2 -0
- package/dist/chunks/list-collection-DoQwQYv1.js.map +1 -0
- package/dist/chunks/{menu.component-Cq9sPsTJ.js → menu.component-BEDMybmZ.js} +10 -10
- package/dist/chunks/{menu.component-Cq9sPsTJ.js.map → menu.component-BEDMybmZ.js.map} +1 -1
- package/dist/chunks/{modal.types-CVy-QT6f.js → modal.types-Bq9gdlSr.js} +4 -4
- package/dist/chunks/{modal.types-CVy-QT6f.js.map → modal.types-Bq9gdlSr.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-BlGSd37B.js → notificationCounter.component-6Q3q8jWj.js} +2 -2
- package/dist/chunks/{notificationCounter.component-BlGSd37B.js.map → notificationCounter.component-6Q3q8jWj.js.map} +1 -1
- package/dist/chunks/{numberInput.component-nT-7b9qv.js → numberInput.component-DFK4EYLV.js} +6 -6
- package/dist/chunks/{numberInput.component-nT-7b9qv.js.map → numberInput.component-DFK4EYLV.js.map} +1 -1
- package/dist/chunks/{pinInput.types-B0nfeSUS.js → pinInput.types-BmXYQb7O.js} +6 -6
- package/dist/chunks/{pinInput.types-B0nfeSUS.js.map → pinInput.types-BmXYQb7O.js.map} +1 -1
- package/dist/chunks/{popover-pd70xkY_.js → popover-Gb1fXSR7.js} +5 -5
- package/dist/chunks/{popover-pd70xkY_.js.map → popover-Gb1fXSR7.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-DR0Iuda1.js → popover-root-provider-CFn2dthZ.js} +5 -5
- package/dist/chunks/{popover-root-provider-DR0Iuda1.js.map → popover-root-provider-CFn2dthZ.js.map} +1 -1
- package/dist/chunks/{popover.component-BsiKfJR7.js → popover.component-DIYT1Lc0.js} +8 -8
- package/dist/chunks/{popover.component-BsiKfJR7.js.map → popover.component-DIYT1Lc0.js.map} +1 -1
- package/dist/chunks/{popover.component-C0nG3J1J.js → popover.component-DTjA1GSd.js} +2 -2
- package/dist/chunks/{popover.component-C0nG3J1J.js.map → popover.component-DTjA1GSd.js.map} +1 -1
- package/dist/chunks/{popover.recipe-NDvOfG9X.js → popover.recipe-CtptsJg6.js} +2 -2
- package/dist/chunks/{popover.recipe-NDvOfG9X.js.map → popover.recipe-CtptsJg6.js.map} +1 -1
- package/dist/chunks/{popover.recipe-BAl0q_IZ.js → popover.recipe-DPwwsWLb.js} +2 -2
- package/dist/chunks/{popover.recipe-BAl0q_IZ.js.map → popover.recipe-DPwwsWLb.js.map} +1 -1
- package/dist/chunks/{progress-value-text-DZkUF2cO.js → progress-value-text-D1GjH6w4.js} +4 -4
- package/dist/chunks/{progress-value-text-DZkUF2cO.js.map → progress-value-text-D1GjH6w4.js.map} +1 -1
- package/dist/chunks/{radioGroup.types-B--54AgI.js → radioGroup.types-CVFQ5dZ7.js} +7 -7
- package/dist/chunks/{radioGroup.types-B--54AgI.js.map → radioGroup.types-CVFQ5dZ7.js.map} +1 -1
- package/dist/chunks/{rating-group-CfwdAW9a.js → rating-group-DRCWuE5-.js} +5 -5
- package/dist/chunks/{rating-group-CfwdAW9a.js.map → rating-group-DRCWuE5-.js.map} +1 -1
- package/dist/chunks/{rating.component-DHlwuL8y.js → rating.component-CQgpD-gS.js} +3 -3
- package/dist/chunks/{rating.component-DHlwuL8y.js.map → rating.component-CQgpD-gS.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-C3ABFE0-.js → ratingDots.component-C1KgTGWj.js} +3 -3
- package/dist/chunks/{ratingDots.component-C3ABFE0-.js.map → ratingDots.component-C1KgTGWj.js.map} +1 -1
- package/dist/chunks/{render-strategy-munDZLwL.js → render-strategy-DLvzMQD1.js} +2 -2
- package/dist/chunks/{render-strategy-munDZLwL.js.map → render-strategy-DLvzMQD1.js.map} +1 -1
- package/dist/chunks/{select.component-D5EioB-E.js → select.component-BkDkYpf2.js} +254 -253
- package/dist/chunks/select.component-BkDkYpf2.js.map +1 -0
- package/dist/chunks/select.component-DoFwe4lJ.js +2 -0
- package/dist/chunks/select.component-DoFwe4lJ.js.map +1 -0
- package/dist/chunks/{sortableList.component-B2XQoMq7.js → sortableList.component-CbxbBLVQ.js} +3 -3
- package/dist/chunks/{sortableList.component-B2XQoMq7.js.map → sortableList.component-CbxbBLVQ.js.map} +1 -1
- package/dist/chunks/{spinner.component-D3s81AJH.js → spinner.component-CNHQ8UDz.js} +2 -2
- package/dist/chunks/{spinner.component-D3s81AJH.js.map → spinner.component-CNHQ8UDz.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-Dd3tKh-E.js → styledAvatar.types-BaOkOA8K.js} +2 -2
- package/dist/chunks/{styledAvatar.types-Dd3tKh-E.js.map → styledAvatar.types-BaOkOA8K.js.map} +1 -1
- package/dist/chunks/{switch.component-xlG0hUNX.js → switch.component-Cr8Abw0U.js} +6 -6
- package/dist/chunks/{switch.component-xlG0hUNX.js.map → switch.component-Cr8Abw0U.js.map} +1 -1
- package/dist/chunks/{tab.types-CO64KNxl.js → tab.types-BoHuF-QZ.js} +13 -13
- package/dist/chunks/{tab.types-CO64KNxl.js.map → tab.types-BoHuF-QZ.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-BKYJDU4L.js → tagBlock.component-DjbevH0J.js} +5 -5
- package/dist/chunks/{tagBlock.component-BKYJDU4L.js.map → tagBlock.component-DjbevH0J.js.map} +1 -1
- package/dist/chunks/{text.component-IjomJyJY.js → text.component-DhuUgP3j.js} +2 -2
- package/dist/chunks/{text.component-IjomJyJY.js.map → text.component-DhuUgP3j.js.map} +1 -1
- package/dist/chunks/{textInput.component-BMy6cEdV.js → textInput.component-C7kdQ8hF.js} +6 -6
- package/dist/chunks/{textInput.component-BMy6cEdV.js.map → textInput.component-C7kdQ8hF.js.map} +1 -1
- package/dist/chunks/{textarea.component-ChN0RGoe.js → textarea.component-W9VBnd4-.js} +12 -12
- package/dist/chunks/{textarea.component-ChN0RGoe.js.map → textarea.component-W9VBnd4-.js.map} +1 -1
- package/dist/chunks/{theme.provider-CezsihF5.js → theme.provider-BWhqnOFC.js} +2 -2
- package/dist/chunks/{theme.provider-CezsihF5.js.map → theme.provider-BWhqnOFC.js.map} +1 -1
- package/dist/chunks/{theme.provider-wnaH4Plk.js → theme.provider-Cl9_chOv.js} +15 -15
- package/dist/chunks/{theme.provider-wnaH4Plk.js.map → theme.provider-Cl9_chOv.js.map} +1 -1
- package/dist/chunks/{timePicker.component-CSm0UnA5.js → timePicker.component-CDb67FCr.js} +3 -3
- package/dist/chunks/{timePicker.component-CSm0UnA5.js.map → timePicker.component-CDb67FCr.js.map} +1 -1
- package/dist/chunks/{timePicker.component-BbDzVLdb.js → timePicker.component-CIk5bEyP.js} +2 -2
- package/dist/chunks/{timePicker.component-BbDzVLdb.js.map → timePicker.component-CIk5bEyP.js.map} +1 -1
- package/dist/chunks/{timeRange.component-Cwn94GUk.js → timeRange.component-B1WKwc-X.js} +2 -2
- package/dist/chunks/{timeRange.component-Cwn94GUk.js.map → timeRange.component-B1WKwc-X.js.map} +1 -1
- package/dist/chunks/{timeRange.component-DyB1Jo1d.js → timeRange.component-NX1EOY8h.js} +2 -2
- package/dist/chunks/{timeRange.component-DyB1Jo1d.js.map → timeRange.component-NX1EOY8h.js.map} +1 -1
- package/dist/chunks/{timestamp.component-IfjfMFXl.js → timestamp.component-DkLjxUsy.js} +3 -3
- package/dist/chunks/{timestamp.component-IfjfMFXl.js.map → timestamp.component-DkLjxUsy.js.map} +1 -1
- package/dist/chunks/{toaster.records-Cb3hbtuY.js → toaster.records-BzZmnA3j.js} +69 -69
- package/dist/chunks/{toaster.records-Cb3hbtuY.js.map → toaster.records-BzZmnA3j.js.map} +1 -1
- package/dist/chunks/{tooltip.component-DFsQNG1q.js → tooltip.component-CHohp2qn.js} +5 -5
- package/dist/chunks/{tooltip.component-DFsQNG1q.js.map → tooltip.component-CHohp2qn.js.map} +1 -1
- package/dist/chunks/{use-field-context-DrC9mrDd.js → use-field-context-BoqOeObh.js} +2 -2
- package/dist/chunks/{use-field-context-DrC9mrDd.js.map → use-field-context-BoqOeObh.js.map} +1 -1
- package/dist/chunks/{use-locale-context-Bw4Gg9Z0.js → use-locale-context-DmcfCmf9.js} +11 -11
- package/dist/chunks/{use-locale-context-Bw4Gg9Z0.js.map → use-locale-context-DmcfCmf9.js.map} +1 -1
- package/dist/chunks/{withFormControl-lDkIqkED.js → withFormControl-08PrhcOk.js} +6 -6
- package/dist/chunks/{withFormControl-lDkIqkED.js.map → withFormControl-08PrhcOk.js.map} +1 -1
- package/dist/chunks/{withTruncation-CqDQUSVU.js → withTruncation-B2GhwmHG.js} +2 -2
- package/dist/chunks/{withTruncation-CqDQUSVU.js.map → withTruncation-B2GhwmHG.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +2 -2
- package/dist/cjs/chakra/index.cjs.map +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +17 -15
- package/dist/esm/chakra/index.js.map +1 -1
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Calendar/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +2 -2
- package/dist/esm/components/DateTimePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +1 -1
- package/dist/esm/components/NumberInput/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/Progress/index.js +3 -3
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/Rating/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +36 -36
- package/dist/esm/index.js +37 -37
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/chakra/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/index-BGd_2-DY.js +0 -1197
- package/dist/chunks/index-BGd_2-DY.js.map +0 -1
- package/dist/chunks/index-_913FPya.js +0 -2
- package/dist/chunks/index-_913FPya.js.map +0 -1
- package/dist/chunks/select.component-D-1YMPU9.js +0 -2
- package/dist/chunks/select.component-D-1YMPU9.js.map +0 -1
- package/dist/chunks/select.component-D5EioB-E.js.map +0 -1
|
@@ -1,1197 +0,0 @@
|
|
|
1
|
-
import { i as z, R as x, S as M, n as oe, A as ue, T as Y, r as w, y as de, P as ce, E as he, U as B, V as ge, e as me, W as pe, X as fe, j, K as Ie, Y as Ee, v as ve, b as h, c as ye, Z as Te } from "./index-fHSGm2nC.js";
|
|
2
|
-
import { g as J, a as Oe } from "./index-C9UYIjEB.js";
|
|
3
|
-
import { t as Re } from "./index-D3Q0mQNf.js";
|
|
4
|
-
import { c as F } from "./use-locale-context-Bw4Gg9Z0.js";
|
|
5
|
-
var Ce = Object.defineProperty, Ve = (e, s, t) => s in e ? Ce(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, u = (e, s, t) => Ve(e, typeof s != "symbol" ? s + "" : s, t), P = {
|
|
6
|
-
itemToValue(e) {
|
|
7
|
-
return typeof e == "string" ? e : x(e) && M(e, "value") ? e.value : "";
|
|
8
|
-
},
|
|
9
|
-
itemToString(e) {
|
|
10
|
-
return typeof e == "string" ? e : x(e) && M(e, "label") ? e.label : P.itemToValue(e);
|
|
11
|
-
},
|
|
12
|
-
isItemDisabled(e) {
|
|
13
|
-
return x(e) && M(e, "disabled") ? !!e.disabled : !1;
|
|
14
|
-
}
|
|
15
|
-
}, ee = class te {
|
|
16
|
-
constructor(s) {
|
|
17
|
-
this.options = s, u(this, "items"), u(this, "copy", (t) => new te({ ...this.options, items: t ?? [...this.items] })), u(this, "isEqual", (t) => z(this.items, t.items)), u(this, "setItems", (t) => this.copy(t)), u(this, "getValues", (t = this.items) => Array.from(t).map((i) => this.getItemValue(i)).filter(Boolean)), u(this, "find", (t) => {
|
|
18
|
-
if (t == null) return null;
|
|
19
|
-
const i = this.indexOf(t);
|
|
20
|
-
return i != null ? this.at(i) : null;
|
|
21
|
-
}), u(this, "findMany", (t) => Array.from(t).map((i) => this.find(i)).filter((i) => i != null)), u(this, "at", (t) => {
|
|
22
|
-
if (!this.options.groupBy && !this.options.groupSort)
|
|
23
|
-
return this.items[t] ?? null;
|
|
24
|
-
let i = 0;
|
|
25
|
-
const l = this.group();
|
|
26
|
-
for (const [, n] of l)
|
|
27
|
-
for (const o of n) {
|
|
28
|
-
if (i === t) return o;
|
|
29
|
-
i++;
|
|
30
|
-
}
|
|
31
|
-
return null;
|
|
32
|
-
}), u(this, "sortFn", (t, i) => {
|
|
33
|
-
const l = this.indexOf(t), n = this.indexOf(i);
|
|
34
|
-
return (l ?? 0) - (n ?? 0);
|
|
35
|
-
}), u(this, "sort", (t) => [...t].sort(this.sortFn.bind(this))), u(this, "getItemValue", (t) => t == null ? null : this.options.itemToValue?.(t) ?? P.itemToValue(t)), u(this, "getItemDisabled", (t) => t == null ? !1 : this.options.isItemDisabled?.(t) ?? P.isItemDisabled(t)), u(this, "stringifyItem", (t) => t == null ? null : this.options.itemToString?.(t) ?? P.itemToString(t)), u(this, "stringify", (t) => t == null ? null : this.stringifyItem(this.find(t))), u(this, "stringifyItems", (t, i = ", ") => Array.from(t).map((l) => this.stringifyItem(l)).filter(Boolean).join(i)), u(this, "stringifyMany", (t, i) => this.stringifyItems(this.findMany(t), i)), u(this, "has", (t) => this.indexOf(t) !== -1), u(this, "hasItem", (t) => t == null ? !1 : this.has(this.getItemValue(t))), u(this, "group", () => {
|
|
36
|
-
const { groupBy: t, groupSort: i } = this.options;
|
|
37
|
-
if (!t) return [["", [...this.items]]];
|
|
38
|
-
const l = /* @__PURE__ */ new Map();
|
|
39
|
-
this.items.forEach((o, r) => {
|
|
40
|
-
const c = t(o, r);
|
|
41
|
-
l.has(c) || l.set(c, []), l.get(c).push(o);
|
|
42
|
-
});
|
|
43
|
-
let n = Array.from(l.entries());
|
|
44
|
-
return i && n.sort(([o], [r]) => {
|
|
45
|
-
if (typeof i == "function") return i(o, r);
|
|
46
|
-
if (Array.isArray(i)) {
|
|
47
|
-
const c = i.indexOf(o), m = i.indexOf(r);
|
|
48
|
-
return c === -1 ? 1 : m === -1 ? -1 : c - m;
|
|
49
|
-
}
|
|
50
|
-
return i === "asc" ? o.localeCompare(r) : i === "desc" ? r.localeCompare(o) : 0;
|
|
51
|
-
}), n;
|
|
52
|
-
}), u(this, "getNextValue", (t, i = 1, l = !1) => {
|
|
53
|
-
let n = this.indexOf(t);
|
|
54
|
-
if (n === -1) return null;
|
|
55
|
-
for (n = l ? Math.min(n + i, this.size - 1) : n + i; n <= this.size && this.getItemDisabled(this.at(n)); ) n++;
|
|
56
|
-
return this.getItemValue(this.at(n));
|
|
57
|
-
}), u(this, "getPreviousValue", (t, i = 1, l = !1) => {
|
|
58
|
-
let n = this.indexOf(t);
|
|
59
|
-
if (n === -1) return null;
|
|
60
|
-
for (n = l ? Math.max(n - i, 0) : n - i; n >= 0 && this.getItemDisabled(this.at(n)); ) n--;
|
|
61
|
-
return this.getItemValue(this.at(n));
|
|
62
|
-
}), u(this, "indexOf", (t) => {
|
|
63
|
-
if (t == null) return -1;
|
|
64
|
-
if (!this.options.groupBy && !this.options.groupSort)
|
|
65
|
-
return this.items.findIndex((n) => this.getItemValue(n) === t);
|
|
66
|
-
let i = 0;
|
|
67
|
-
const l = this.group();
|
|
68
|
-
for (const [, n] of l)
|
|
69
|
-
for (const o of n) {
|
|
70
|
-
if (this.getItemValue(o) === t) return i;
|
|
71
|
-
i++;
|
|
72
|
-
}
|
|
73
|
-
return -1;
|
|
74
|
-
}), u(this, "getByText", (t, i) => {
|
|
75
|
-
let l = i != null ? Se(this.items, this.indexOf(i)) : this.items;
|
|
76
|
-
return t.length === 1 && (l = l.filter((o) => this.getItemValue(o) !== i)), l.find((o) => be(this.stringifyItem(o), t));
|
|
77
|
-
}), u(this, "search", (t, i) => {
|
|
78
|
-
const { state: l, currentValue: n, timeout: o = 350 } = i, r = l.keysSoFar + t, m = r.length > 1 && Array.from(r).every((v) => v === r[0]) ? r[0] : r, E = this.getByText(m, n), f = this.getItemValue(E);
|
|
79
|
-
function y() {
|
|
80
|
-
clearTimeout(l.timer), l.timer = -1;
|
|
81
|
-
}
|
|
82
|
-
function I(v) {
|
|
83
|
-
l.keysSoFar = v, y(), v !== "" && (l.timer = +setTimeout(() => {
|
|
84
|
-
I(""), y();
|
|
85
|
-
}, o));
|
|
86
|
-
}
|
|
87
|
-
return I(r), f;
|
|
88
|
-
}), u(this, "update", (t, i) => {
|
|
89
|
-
let l = this.indexOf(t);
|
|
90
|
-
return l === -1 ? this : this.copy([...this.items.slice(0, l), i, ...this.items.slice(l + 1)]);
|
|
91
|
-
}), u(this, "upsert", (t, i, l = "append") => {
|
|
92
|
-
let n = this.indexOf(t);
|
|
93
|
-
return n === -1 ? (l === "append" ? this.append : this.prepend)(i) : this.copy([...this.items.slice(0, n), i, ...this.items.slice(n + 1)]);
|
|
94
|
-
}), u(this, "insert", (t, ...i) => this.copy(V(this.items, t, ...i))), u(this, "insertBefore", (t, ...i) => {
|
|
95
|
-
let l = this.indexOf(t);
|
|
96
|
-
if (l === -1)
|
|
97
|
-
if (this.items.length === 0) l = 0;
|
|
98
|
-
else return this;
|
|
99
|
-
return this.copy(V(this.items, l, ...i));
|
|
100
|
-
}), u(this, "insertAfter", (t, ...i) => {
|
|
101
|
-
let l = this.indexOf(t);
|
|
102
|
-
if (l === -1)
|
|
103
|
-
if (this.items.length === 0) l = 0;
|
|
104
|
-
else return this;
|
|
105
|
-
return this.copy(V(this.items, l + 1, ...i));
|
|
106
|
-
}), u(this, "prepend", (...t) => this.copy(V(this.items, 0, ...t))), u(this, "append", (...t) => this.copy(V(this.items, this.items.length, ...t))), u(this, "filter", (t) => {
|
|
107
|
-
const i = this.items.filter((l, n) => t(this.stringifyItem(l), n, l));
|
|
108
|
-
return this.copy(i);
|
|
109
|
-
}), u(this, "remove", (...t) => {
|
|
110
|
-
const i = t.map(
|
|
111
|
-
(l) => typeof l == "string" ? l : this.getItemValue(l)
|
|
112
|
-
);
|
|
113
|
-
return this.copy(
|
|
114
|
-
this.items.filter((l) => {
|
|
115
|
-
const n = this.getItemValue(l);
|
|
116
|
-
return n == null ? !1 : !i.includes(n);
|
|
117
|
-
})
|
|
118
|
-
);
|
|
119
|
-
}), u(this, "move", (t, i) => {
|
|
120
|
-
const l = this.indexOf(t);
|
|
121
|
-
return l === -1 ? this : this.copy(L(this.items, [l], i));
|
|
122
|
-
}), u(this, "moveBefore", (t, ...i) => {
|
|
123
|
-
let l = this.items.findIndex((o) => this.getItemValue(o) === t);
|
|
124
|
-
if (l === -1) return this;
|
|
125
|
-
let n = i.map((o) => this.items.findIndex((r) => this.getItemValue(r) === o)).sort((o, r) => o - r);
|
|
126
|
-
return this.copy(L(this.items, n, l));
|
|
127
|
-
}), u(this, "moveAfter", (t, ...i) => {
|
|
128
|
-
let l = this.items.findIndex((o) => this.getItemValue(o) === t);
|
|
129
|
-
if (l === -1) return this;
|
|
130
|
-
let n = i.map((o) => this.items.findIndex((r) => this.getItemValue(r) === o)).sort((o, r) => o - r);
|
|
131
|
-
return this.copy(L(this.items, n, l + 1));
|
|
132
|
-
}), u(this, "reorder", (t, i) => this.copy(L(this.items, [t], i))), u(this, "compareValue", (t, i) => {
|
|
133
|
-
const l = this.indexOf(t), n = this.indexOf(i);
|
|
134
|
-
return l < n ? -1 : l > n ? 1 : 0;
|
|
135
|
-
}), u(this, "range", (t, i) => {
|
|
136
|
-
let l = [], n = t;
|
|
137
|
-
for (; n != null; ) {
|
|
138
|
-
if (this.find(n) && l.push(n), n === i) return l;
|
|
139
|
-
n = this.getNextValue(n);
|
|
140
|
-
}
|
|
141
|
-
return [];
|
|
142
|
-
}), u(this, "getValueRange", (t, i) => t && i ? this.compareValue(t, i) <= 0 ? this.range(t, i) : this.range(i, t) : []), u(this, "toString", () => {
|
|
143
|
-
let t = "";
|
|
144
|
-
for (const i of this.items) {
|
|
145
|
-
const l = this.getItemValue(i), n = this.stringifyItem(i), o = this.getItemDisabled(i), r = [l, n, o].filter(Boolean).join(":");
|
|
146
|
-
t += r + ",";
|
|
147
|
-
}
|
|
148
|
-
return t;
|
|
149
|
-
}), u(this, "toJSON", () => ({
|
|
150
|
-
size: this.size,
|
|
151
|
-
first: this.firstValue,
|
|
152
|
-
last: this.lastValue
|
|
153
|
-
})), this.items = [...s.items];
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Returns the number of items in the collection
|
|
157
|
-
*/
|
|
158
|
-
get size() {
|
|
159
|
-
return this.items.length;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Returns the first value in the collection
|
|
163
|
-
*/
|
|
164
|
-
get firstValue() {
|
|
165
|
-
let s = 0;
|
|
166
|
-
for (; this.getItemDisabled(this.at(s)); ) s++;
|
|
167
|
-
return this.getItemValue(this.at(s));
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Returns the last value in the collection
|
|
171
|
-
*/
|
|
172
|
-
get lastValue() {
|
|
173
|
-
let s = this.size - 1;
|
|
174
|
-
for (; this.getItemDisabled(this.at(s)); ) s--;
|
|
175
|
-
return this.getItemValue(this.at(s));
|
|
176
|
-
}
|
|
177
|
-
*[Symbol.iterator]() {
|
|
178
|
-
yield* this.items;
|
|
179
|
-
}
|
|
180
|
-
}, be = (e, s) => !!e?.toLowerCase().startsWith(s.toLowerCase()), Se = (e, s) => e.map((t, i) => e[(Math.max(s, 0) + i) % e.length]);
|
|
181
|
-
function V(e, s, ...t) {
|
|
182
|
-
return [...e.slice(0, s), ...t, ...e.slice(s)];
|
|
183
|
-
}
|
|
184
|
-
function L(e, s, t) {
|
|
185
|
-
s = [...s].sort((l, n) => l - n);
|
|
186
|
-
const i = s.map((l) => e[l]);
|
|
187
|
-
for (let l = s.length - 1; l >= 0; l--)
|
|
188
|
-
e = [...e.slice(0, s[l]), ...e.slice(s[l] + 1)];
|
|
189
|
-
return t = Math.max(0, t - s.filter((l) => l < t).length), [...e.slice(0, t), ...i, ...e.slice(t)];
|
|
190
|
-
}
|
|
191
|
-
var Ge = me("select").parts(
|
|
192
|
-
"label",
|
|
193
|
-
"positioner",
|
|
194
|
-
"trigger",
|
|
195
|
-
"indicator",
|
|
196
|
-
"clearTrigger",
|
|
197
|
-
"item",
|
|
198
|
-
"itemText",
|
|
199
|
-
"itemIndicator",
|
|
200
|
-
"itemGroup",
|
|
201
|
-
"itemGroupLabel",
|
|
202
|
-
"list",
|
|
203
|
-
"content",
|
|
204
|
-
"root",
|
|
205
|
-
"control",
|
|
206
|
-
"valueText"
|
|
207
|
-
), p = Ge.build(), ie = (e) => new ee(e);
|
|
208
|
-
ie.empty = () => new ee({ items: [] });
|
|
209
|
-
var Le = (e) => e.ids?.root ?? `select:${e.id}`, U = (e) => e.ids?.content ?? `select:${e.id}:content`, W = (e) => e.ids?.trigger ?? `select:${e.id}:trigger`, se = (e) => e.ids?.clearTrigger ?? `select:${e.id}:clear-trigger`, A = (e) => e.ids?.label ?? `select:${e.id}:label`, Ae = (e) => e.ids?.control ?? `select:${e.id}:control`, K = (e, s) => e.ids?.item?.(s) ?? `select:${e.id}:option:${s}`, $ = (e) => e.ids?.hiddenSelect ?? `select:${e.id}:select`, le = (e) => e.ids?.positioner ?? `select:${e.id}:positioner`, Pe = (e, s) => e.ids?.itemGroup?.(s) ?? `select:${e.id}:optgroup:${s}`, X = (e, s) => e.ids?.itemGroupLabel?.(s) ?? `select:${e.id}:optgroup-label:${s}`, _ = (e) => e.getById($(e)), b = (e) => e.getById(U(e)), O = (e) => e.getById(W(e)), Fe = (e) => e.getById(se(e)), Z = (e) => e.getById(le(e)), Ne = (e, s) => e.getById(K(e, s));
|
|
210
|
-
function we(e, s) {
|
|
211
|
-
const { context: t, prop: i, scope: l, state: n, computed: o, send: r } = e, c = i("disabled") || t.get("fieldsetDisabled"), m = i("invalid"), E = i("readOnly"), f = i("composite"), y = i("collection"), I = n.hasTag("open"), v = n.matches("focused"), C = t.get("highlightedValue"), ne = t.get("highlightedItem"), re = t.get("selectedItems"), N = t.get("currentPlacement"), q = o("isTypingAhead"), H = o("isInteractive"), k = C ? K(l, C) : void 0;
|
|
212
|
-
function G(a) {
|
|
213
|
-
const d = y.getItemDisabled(a.item), g = y.getItemValue(a.item);
|
|
214
|
-
return Te(g, () => `[zag-js] No value found for item ${JSON.stringify(a.item)}`), {
|
|
215
|
-
value: g,
|
|
216
|
-
disabled: !!(c || d),
|
|
217
|
-
highlighted: C === g,
|
|
218
|
-
selected: t.get("value").includes(g)
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
const ae = Oe({
|
|
222
|
-
...i("positioning"),
|
|
223
|
-
placement: N
|
|
224
|
-
});
|
|
225
|
-
return {
|
|
226
|
-
open: I,
|
|
227
|
-
focused: v,
|
|
228
|
-
empty: t.get("value").length === 0,
|
|
229
|
-
highlightedItem: ne,
|
|
230
|
-
highlightedValue: C,
|
|
231
|
-
selectedItems: re,
|
|
232
|
-
hasSelectedItems: o("hasSelectedItems"),
|
|
233
|
-
value: t.get("value"),
|
|
234
|
-
valueAsString: o("valueAsString"),
|
|
235
|
-
collection: y,
|
|
236
|
-
multiple: !!i("multiple"),
|
|
237
|
-
disabled: !!c,
|
|
238
|
-
reposition(a = {}) {
|
|
239
|
-
r({ type: "POSITIONING.SET", options: a });
|
|
240
|
-
},
|
|
241
|
-
focus() {
|
|
242
|
-
O(l)?.focus({ preventScroll: !0 });
|
|
243
|
-
},
|
|
244
|
-
setOpen(a) {
|
|
245
|
-
n.hasTag("open") !== a && r({ type: a ? "OPEN" : "CLOSE" });
|
|
246
|
-
},
|
|
247
|
-
selectValue(a) {
|
|
248
|
-
r({ type: "ITEM.SELECT", value: a });
|
|
249
|
-
},
|
|
250
|
-
setValue(a) {
|
|
251
|
-
r({ type: "VALUE.SET", value: a });
|
|
252
|
-
},
|
|
253
|
-
selectAll() {
|
|
254
|
-
r({ type: "VALUE.SET", value: y.getValues() });
|
|
255
|
-
},
|
|
256
|
-
setHighlightValue(a) {
|
|
257
|
-
r({ type: "HIGHLIGHTED_VALUE.SET", value: a });
|
|
258
|
-
},
|
|
259
|
-
clearHighlightValue() {
|
|
260
|
-
r({ type: "HIGHLIGHTED_VALUE.CLEAR" });
|
|
261
|
-
},
|
|
262
|
-
clearValue(a) {
|
|
263
|
-
r(a ? { type: "ITEM.CLEAR", value: a } : { type: "VALUE.CLEAR" });
|
|
264
|
-
},
|
|
265
|
-
getItemState: G,
|
|
266
|
-
getRootProps() {
|
|
267
|
-
return s.element({
|
|
268
|
-
...p.root.attrs,
|
|
269
|
-
dir: i("dir"),
|
|
270
|
-
id: Le(l),
|
|
271
|
-
"data-invalid": h(m),
|
|
272
|
-
"data-readonly": h(E)
|
|
273
|
-
});
|
|
274
|
-
},
|
|
275
|
-
getLabelProps() {
|
|
276
|
-
return s.label({
|
|
277
|
-
dir: i("dir"),
|
|
278
|
-
id: A(l),
|
|
279
|
-
...p.label.attrs,
|
|
280
|
-
"data-disabled": h(c),
|
|
281
|
-
"data-invalid": h(m),
|
|
282
|
-
"data-readonly": h(E),
|
|
283
|
-
htmlFor: $(l),
|
|
284
|
-
onClick(a) {
|
|
285
|
-
a.defaultPrevented || c || O(l)?.focus({ preventScroll: !0 });
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
},
|
|
289
|
-
getControlProps() {
|
|
290
|
-
return s.element({
|
|
291
|
-
...p.control.attrs,
|
|
292
|
-
dir: i("dir"),
|
|
293
|
-
id: Ae(l),
|
|
294
|
-
"data-state": I ? "open" : "closed",
|
|
295
|
-
"data-focus": h(v),
|
|
296
|
-
"data-disabled": h(c),
|
|
297
|
-
"data-invalid": h(m)
|
|
298
|
-
});
|
|
299
|
-
},
|
|
300
|
-
getValueTextProps() {
|
|
301
|
-
return s.element({
|
|
302
|
-
...p.valueText.attrs,
|
|
303
|
-
dir: i("dir"),
|
|
304
|
-
"data-disabled": h(c),
|
|
305
|
-
"data-invalid": h(m),
|
|
306
|
-
"data-focus": h(v)
|
|
307
|
-
});
|
|
308
|
-
},
|
|
309
|
-
getTriggerProps() {
|
|
310
|
-
return s.button({
|
|
311
|
-
id: W(l),
|
|
312
|
-
disabled: c,
|
|
313
|
-
dir: i("dir"),
|
|
314
|
-
type: "button",
|
|
315
|
-
role: "combobox",
|
|
316
|
-
"aria-controls": U(l),
|
|
317
|
-
"aria-expanded": I,
|
|
318
|
-
"aria-haspopup": "listbox",
|
|
319
|
-
"data-state": I ? "open" : "closed",
|
|
320
|
-
"aria-invalid": m,
|
|
321
|
-
"aria-labelledby": A(l),
|
|
322
|
-
...p.trigger.attrs,
|
|
323
|
-
"data-disabled": h(c),
|
|
324
|
-
"data-invalid": h(m),
|
|
325
|
-
"data-readonly": h(E),
|
|
326
|
-
"data-placement": N,
|
|
327
|
-
"data-placeholder-shown": h(!o("hasSelectedItems")),
|
|
328
|
-
onClick(a) {
|
|
329
|
-
H && (a.defaultPrevented || r({ type: "TRIGGER.CLICK" }));
|
|
330
|
-
},
|
|
331
|
-
onFocus() {
|
|
332
|
-
r({ type: "TRIGGER.FOCUS" });
|
|
333
|
-
},
|
|
334
|
-
onBlur() {
|
|
335
|
-
r({ type: "TRIGGER.BLUR" });
|
|
336
|
-
},
|
|
337
|
-
onKeyDown(a) {
|
|
338
|
-
if (a.defaultPrevented || !H) return;
|
|
339
|
-
const g = {
|
|
340
|
-
ArrowUp() {
|
|
341
|
-
r({ type: "TRIGGER.ARROW_UP" });
|
|
342
|
-
},
|
|
343
|
-
ArrowDown(R) {
|
|
344
|
-
r({ type: R.altKey ? "OPEN" : "TRIGGER.ARROW_DOWN" });
|
|
345
|
-
},
|
|
346
|
-
ArrowLeft() {
|
|
347
|
-
r({ type: "TRIGGER.ARROW_LEFT" });
|
|
348
|
-
},
|
|
349
|
-
ArrowRight() {
|
|
350
|
-
r({ type: "TRIGGER.ARROW_RIGHT" });
|
|
351
|
-
},
|
|
352
|
-
Home() {
|
|
353
|
-
r({ type: "TRIGGER.HOME" });
|
|
354
|
-
},
|
|
355
|
-
End() {
|
|
356
|
-
r({ type: "TRIGGER.END" });
|
|
357
|
-
},
|
|
358
|
-
Enter() {
|
|
359
|
-
r({ type: "TRIGGER.ENTER" });
|
|
360
|
-
},
|
|
361
|
-
Space(R) {
|
|
362
|
-
r(q ? { type: "TRIGGER.TYPEAHEAD", key: R.key } : { type: "TRIGGER.ENTER" });
|
|
363
|
-
}
|
|
364
|
-
}[j(a, {
|
|
365
|
-
dir: i("dir"),
|
|
366
|
-
orientation: "vertical"
|
|
367
|
-
})];
|
|
368
|
-
if (g) {
|
|
369
|
-
g(a), a.preventDefault();
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
B.isValidEvent(a) && (r({ type: "TRIGGER.TYPEAHEAD", key: a.key }), a.preventDefault());
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
},
|
|
376
|
-
getIndicatorProps() {
|
|
377
|
-
return s.element({
|
|
378
|
-
...p.indicator.attrs,
|
|
379
|
-
dir: i("dir"),
|
|
380
|
-
"aria-hidden": !0,
|
|
381
|
-
"data-state": I ? "open" : "closed",
|
|
382
|
-
"data-disabled": h(c),
|
|
383
|
-
"data-invalid": h(m),
|
|
384
|
-
"data-readonly": h(E)
|
|
385
|
-
});
|
|
386
|
-
},
|
|
387
|
-
getItemProps(a) {
|
|
388
|
-
const d = G(a);
|
|
389
|
-
return s.element({
|
|
390
|
-
id: K(l, d.value),
|
|
391
|
-
role: "option",
|
|
392
|
-
...p.item.attrs,
|
|
393
|
-
dir: i("dir"),
|
|
394
|
-
"data-value": d.value,
|
|
395
|
-
"aria-selected": d.selected,
|
|
396
|
-
"data-state": d.selected ? "checked" : "unchecked",
|
|
397
|
-
"data-highlighted": h(d.highlighted),
|
|
398
|
-
"data-disabled": h(d.disabled),
|
|
399
|
-
"aria-disabled": ye(d.disabled),
|
|
400
|
-
onPointerMove(g) {
|
|
401
|
-
d.disabled || g.pointerType !== "mouse" || d.value !== C && r({ type: "ITEM.POINTER_MOVE", value: d.value });
|
|
402
|
-
},
|
|
403
|
-
onClick(g) {
|
|
404
|
-
g.defaultPrevented || d.disabled || r({ type: "ITEM.CLICK", src: "pointerup", value: d.value });
|
|
405
|
-
},
|
|
406
|
-
onPointerLeave(g) {
|
|
407
|
-
d.disabled || a.persistFocus || g.pointerType !== "mouse" || !e.event.previous()?.type.includes("POINTER") || r({ type: "ITEM.POINTER_LEAVE" });
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
},
|
|
411
|
-
getItemTextProps(a) {
|
|
412
|
-
const d = G(a);
|
|
413
|
-
return s.element({
|
|
414
|
-
...p.itemText.attrs,
|
|
415
|
-
"data-state": d.selected ? "checked" : "unchecked",
|
|
416
|
-
"data-disabled": h(d.disabled),
|
|
417
|
-
"data-highlighted": h(d.highlighted)
|
|
418
|
-
});
|
|
419
|
-
},
|
|
420
|
-
getItemIndicatorProps(a) {
|
|
421
|
-
const d = G(a);
|
|
422
|
-
return s.element({
|
|
423
|
-
"aria-hidden": !0,
|
|
424
|
-
...p.itemIndicator.attrs,
|
|
425
|
-
"data-state": d.selected ? "checked" : "unchecked",
|
|
426
|
-
hidden: !d.selected
|
|
427
|
-
});
|
|
428
|
-
},
|
|
429
|
-
getItemGroupLabelProps(a) {
|
|
430
|
-
const { htmlFor: d } = a;
|
|
431
|
-
return s.element({
|
|
432
|
-
...p.itemGroupLabel.attrs,
|
|
433
|
-
id: X(l, d),
|
|
434
|
-
dir: i("dir"),
|
|
435
|
-
role: "presentation"
|
|
436
|
-
});
|
|
437
|
-
},
|
|
438
|
-
getItemGroupProps(a) {
|
|
439
|
-
const { id: d } = a;
|
|
440
|
-
return s.element({
|
|
441
|
-
...p.itemGroup.attrs,
|
|
442
|
-
"data-disabled": h(c),
|
|
443
|
-
id: Pe(l, d),
|
|
444
|
-
"aria-labelledby": X(l, d),
|
|
445
|
-
role: "group",
|
|
446
|
-
dir: i("dir")
|
|
447
|
-
});
|
|
448
|
-
},
|
|
449
|
-
getClearTriggerProps() {
|
|
450
|
-
return s.button({
|
|
451
|
-
...p.clearTrigger.attrs,
|
|
452
|
-
id: se(l),
|
|
453
|
-
type: "button",
|
|
454
|
-
"aria-label": "Clear value",
|
|
455
|
-
"data-invalid": h(m),
|
|
456
|
-
disabled: c,
|
|
457
|
-
hidden: !o("hasSelectedItems"),
|
|
458
|
-
dir: i("dir"),
|
|
459
|
-
onClick(a) {
|
|
460
|
-
a.defaultPrevented || r({ type: "CLEAR.CLICK" });
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
},
|
|
464
|
-
getHiddenSelectProps() {
|
|
465
|
-
const a = t.get("value"), d = i("multiple") ? a : a?.[0];
|
|
466
|
-
return s.select({
|
|
467
|
-
name: i("name"),
|
|
468
|
-
form: i("form"),
|
|
469
|
-
disabled: c,
|
|
470
|
-
multiple: i("multiple"),
|
|
471
|
-
required: i("required"),
|
|
472
|
-
"aria-hidden": !0,
|
|
473
|
-
id: $(l),
|
|
474
|
-
defaultValue: d,
|
|
475
|
-
style: ve,
|
|
476
|
-
tabIndex: -1,
|
|
477
|
-
// Some browser extensions will focus the hidden select.
|
|
478
|
-
// Let's forward the focus to the trigger.
|
|
479
|
-
onFocus() {
|
|
480
|
-
O(l)?.focus({ preventScroll: !0 });
|
|
481
|
-
},
|
|
482
|
-
"aria-labelledby": A(l)
|
|
483
|
-
});
|
|
484
|
-
},
|
|
485
|
-
getPositionerProps() {
|
|
486
|
-
return s.element({
|
|
487
|
-
...p.positioner.attrs,
|
|
488
|
-
dir: i("dir"),
|
|
489
|
-
id: le(l),
|
|
490
|
-
style: ae.floating
|
|
491
|
-
});
|
|
492
|
-
},
|
|
493
|
-
getContentProps() {
|
|
494
|
-
return s.element({
|
|
495
|
-
hidden: !I,
|
|
496
|
-
dir: i("dir"),
|
|
497
|
-
id: U(l),
|
|
498
|
-
role: f ? "listbox" : "dialog",
|
|
499
|
-
...p.content.attrs,
|
|
500
|
-
"data-state": I ? "open" : "closed",
|
|
501
|
-
"data-placement": N,
|
|
502
|
-
"data-activedescendant": k,
|
|
503
|
-
"aria-activedescendant": f ? k : void 0,
|
|
504
|
-
"aria-multiselectable": i("multiple") && f ? !0 : void 0,
|
|
505
|
-
"aria-labelledby": A(l),
|
|
506
|
-
tabIndex: 0,
|
|
507
|
-
onKeyDown(a) {
|
|
508
|
-
if (!H || !pe(a)) return;
|
|
509
|
-
if (a.key === "Tab" && !fe(a)) {
|
|
510
|
-
a.preventDefault();
|
|
511
|
-
return;
|
|
512
|
-
}
|
|
513
|
-
const d = {
|
|
514
|
-
ArrowUp() {
|
|
515
|
-
r({ type: "CONTENT.ARROW_UP" });
|
|
516
|
-
},
|
|
517
|
-
ArrowDown() {
|
|
518
|
-
r({ type: "CONTENT.ARROW_DOWN" });
|
|
519
|
-
},
|
|
520
|
-
Home() {
|
|
521
|
-
r({ type: "CONTENT.HOME" });
|
|
522
|
-
},
|
|
523
|
-
End() {
|
|
524
|
-
r({ type: "CONTENT.END" });
|
|
525
|
-
},
|
|
526
|
-
Enter() {
|
|
527
|
-
r({ type: "ITEM.CLICK", src: "keydown.enter" });
|
|
528
|
-
},
|
|
529
|
-
Space(D) {
|
|
530
|
-
q ? r({ type: "CONTENT.TYPEAHEAD", key: D.key }) : d.Enter?.(D);
|
|
531
|
-
}
|
|
532
|
-
}, g = d[j(a)];
|
|
533
|
-
if (g) {
|
|
534
|
-
g(a), a.preventDefault();
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
const R = Ie(a);
|
|
538
|
-
Ee(R) || B.isValidEvent(a) && (r({ type: "CONTENT.TYPEAHEAD", key: a.key }), a.preventDefault());
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
},
|
|
542
|
-
getListProps() {
|
|
543
|
-
return s.element({
|
|
544
|
-
...p.list.attrs,
|
|
545
|
-
tabIndex: 0,
|
|
546
|
-
role: f ? void 0 : "listbox",
|
|
547
|
-
"aria-labelledby": W(l),
|
|
548
|
-
"aria-activedescendant": f ? void 0 : k,
|
|
549
|
-
"aria-multiselectable": !f && i("multiple") ? !0 : void 0
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
}
|
|
554
|
-
var { and: S, not: T, or: He } = ue(), _e = oe({
|
|
555
|
-
props({ props: e }) {
|
|
556
|
-
return {
|
|
557
|
-
loopFocus: !1,
|
|
558
|
-
closeOnSelect: !e.multiple,
|
|
559
|
-
composite: !0,
|
|
560
|
-
defaultValue: [],
|
|
561
|
-
...e,
|
|
562
|
-
collection: e.collection ?? ie.empty(),
|
|
563
|
-
positioning: {
|
|
564
|
-
placement: "bottom-start",
|
|
565
|
-
gutter: 8,
|
|
566
|
-
...e.positioning
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
},
|
|
570
|
-
context({ prop: e, bindable: s }) {
|
|
571
|
-
return {
|
|
572
|
-
value: s(() => ({
|
|
573
|
-
defaultValue: e("defaultValue"),
|
|
574
|
-
value: e("value"),
|
|
575
|
-
isEqual: z,
|
|
576
|
-
onChange(t) {
|
|
577
|
-
const i = e("collection").findMany(t);
|
|
578
|
-
return e("onValueChange")?.({ value: t, items: i });
|
|
579
|
-
}
|
|
580
|
-
})),
|
|
581
|
-
highlightedValue: s(() => ({
|
|
582
|
-
defaultValue: e("defaultHighlightedValue") || null,
|
|
583
|
-
value: e("highlightedValue"),
|
|
584
|
-
onChange(t) {
|
|
585
|
-
e("onHighlightChange")?.({
|
|
586
|
-
highlightedValue: t,
|
|
587
|
-
highlightedItem: e("collection").find(t),
|
|
588
|
-
highlightedIndex: e("collection").indexOf(t)
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
})),
|
|
592
|
-
currentPlacement: s(() => ({
|
|
593
|
-
defaultValue: void 0
|
|
594
|
-
})),
|
|
595
|
-
fieldsetDisabled: s(() => ({
|
|
596
|
-
defaultValue: !1
|
|
597
|
-
})),
|
|
598
|
-
highlightedItem: s(() => ({
|
|
599
|
-
defaultValue: null
|
|
600
|
-
})),
|
|
601
|
-
selectedItems: s(() => {
|
|
602
|
-
const t = e("value") ?? e("defaultValue") ?? [];
|
|
603
|
-
return { defaultValue: e("collection").findMany(t) };
|
|
604
|
-
})
|
|
605
|
-
};
|
|
606
|
-
},
|
|
607
|
-
refs() {
|
|
608
|
-
return {
|
|
609
|
-
typeahead: { ...B.defaultOptions }
|
|
610
|
-
};
|
|
611
|
-
},
|
|
612
|
-
computed: {
|
|
613
|
-
hasSelectedItems: ({ context: e }) => e.get("value").length > 0,
|
|
614
|
-
isTypingAhead: ({ refs: e }) => e.get("typeahead").keysSoFar !== "",
|
|
615
|
-
isDisabled: ({ prop: e, context: s }) => !!e("disabled") || !!s.get("fieldsetDisabled"),
|
|
616
|
-
isInteractive: ({ prop: e }) => !(e("disabled") || e("readOnly")),
|
|
617
|
-
valueAsString: ({ context: e, prop: s }) => s("collection").stringifyItems(e.get("selectedItems"))
|
|
618
|
-
},
|
|
619
|
-
initialState({ prop: e }) {
|
|
620
|
-
return e("open") || e("defaultOpen") ? "open" : "idle";
|
|
621
|
-
},
|
|
622
|
-
entry: ["syncSelectElement"],
|
|
623
|
-
watch({ context: e, prop: s, track: t, action: i }) {
|
|
624
|
-
t([() => e.get("value").toString()], () => {
|
|
625
|
-
i(["syncSelectedItems", "syncSelectElement", "dispatchChangeEvent"]);
|
|
626
|
-
}), t([() => s("open")], () => {
|
|
627
|
-
i(["toggleVisibility"]);
|
|
628
|
-
}), t([() => e.get("highlightedValue")], () => {
|
|
629
|
-
i(["syncHighlightedItem"]);
|
|
630
|
-
}), t([() => s("collection").toString()], () => {
|
|
631
|
-
i(["syncCollection"]);
|
|
632
|
-
});
|
|
633
|
-
},
|
|
634
|
-
on: {
|
|
635
|
-
"HIGHLIGHTED_VALUE.SET": {
|
|
636
|
-
actions: ["setHighlightedItem"]
|
|
637
|
-
},
|
|
638
|
-
"HIGHLIGHTED_VALUE.CLEAR": {
|
|
639
|
-
actions: ["clearHighlightedItem"]
|
|
640
|
-
},
|
|
641
|
-
"ITEM.SELECT": {
|
|
642
|
-
actions: ["selectItem"]
|
|
643
|
-
},
|
|
644
|
-
"ITEM.CLEAR": {
|
|
645
|
-
actions: ["clearItem"]
|
|
646
|
-
},
|
|
647
|
-
"VALUE.SET": {
|
|
648
|
-
actions: ["setSelectedItems"]
|
|
649
|
-
},
|
|
650
|
-
"VALUE.CLEAR": {
|
|
651
|
-
actions: ["clearSelectedItems"]
|
|
652
|
-
},
|
|
653
|
-
"CLEAR.CLICK": {
|
|
654
|
-
actions: ["clearSelectedItems", "focusTriggerEl"]
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
effects: ["trackFormControlState"],
|
|
658
|
-
states: {
|
|
659
|
-
idle: {
|
|
660
|
-
tags: ["closed"],
|
|
661
|
-
on: {
|
|
662
|
-
"CONTROLLED.OPEN": [
|
|
663
|
-
{
|
|
664
|
-
guard: "isTriggerClickEvent",
|
|
665
|
-
target: "open",
|
|
666
|
-
actions: ["setInitialFocus", "highlightFirstSelectedItem"]
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
target: "open",
|
|
670
|
-
actions: ["setInitialFocus"]
|
|
671
|
-
}
|
|
672
|
-
],
|
|
673
|
-
"TRIGGER.CLICK": [
|
|
674
|
-
{
|
|
675
|
-
guard: "isOpenControlled",
|
|
676
|
-
actions: ["invokeOnOpen"]
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
target: "open",
|
|
680
|
-
actions: ["invokeOnOpen", "setInitialFocus", "highlightFirstSelectedItem"]
|
|
681
|
-
}
|
|
682
|
-
],
|
|
683
|
-
"TRIGGER.FOCUS": {
|
|
684
|
-
target: "focused"
|
|
685
|
-
},
|
|
686
|
-
OPEN: [
|
|
687
|
-
{
|
|
688
|
-
guard: "isOpenControlled",
|
|
689
|
-
actions: ["invokeOnOpen"]
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
target: "open",
|
|
693
|
-
actions: ["setInitialFocus", "invokeOnOpen"]
|
|
694
|
-
}
|
|
695
|
-
]
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
focused: {
|
|
699
|
-
tags: ["closed"],
|
|
700
|
-
on: {
|
|
701
|
-
"CONTROLLED.OPEN": [
|
|
702
|
-
{
|
|
703
|
-
guard: "isTriggerClickEvent",
|
|
704
|
-
target: "open",
|
|
705
|
-
actions: ["setInitialFocus", "highlightFirstSelectedItem"]
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
guard: "isTriggerArrowUpEvent",
|
|
709
|
-
target: "open",
|
|
710
|
-
actions: ["setInitialFocus", "highlightComputedLastItem"]
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
guard: He("isTriggerArrowDownEvent", "isTriggerEnterEvent"),
|
|
714
|
-
target: "open",
|
|
715
|
-
actions: ["setInitialFocus", "highlightComputedFirstItem"]
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
target: "open",
|
|
719
|
-
actions: ["setInitialFocus"]
|
|
720
|
-
}
|
|
721
|
-
],
|
|
722
|
-
OPEN: [
|
|
723
|
-
{
|
|
724
|
-
guard: "isOpenControlled",
|
|
725
|
-
actions: ["invokeOnOpen"]
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
target: "open",
|
|
729
|
-
actions: ["setInitialFocus", "invokeOnOpen"]
|
|
730
|
-
}
|
|
731
|
-
],
|
|
732
|
-
"TRIGGER.BLUR": {
|
|
733
|
-
target: "idle"
|
|
734
|
-
},
|
|
735
|
-
"TRIGGER.CLICK": [
|
|
736
|
-
{
|
|
737
|
-
guard: "isOpenControlled",
|
|
738
|
-
actions: ["invokeOnOpen"]
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
target: "open",
|
|
742
|
-
actions: ["setInitialFocus", "invokeOnOpen", "highlightFirstSelectedItem"]
|
|
743
|
-
}
|
|
744
|
-
],
|
|
745
|
-
"TRIGGER.ENTER": [
|
|
746
|
-
{
|
|
747
|
-
guard: "isOpenControlled",
|
|
748
|
-
actions: ["invokeOnOpen"]
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
target: "open",
|
|
752
|
-
actions: ["setInitialFocus", "invokeOnOpen", "highlightComputedFirstItem"]
|
|
753
|
-
}
|
|
754
|
-
],
|
|
755
|
-
"TRIGGER.ARROW_UP": [
|
|
756
|
-
{
|
|
757
|
-
guard: "isOpenControlled",
|
|
758
|
-
actions: ["invokeOnOpen"]
|
|
759
|
-
},
|
|
760
|
-
{
|
|
761
|
-
target: "open",
|
|
762
|
-
actions: ["setInitialFocus", "invokeOnOpen", "highlightComputedLastItem"]
|
|
763
|
-
}
|
|
764
|
-
],
|
|
765
|
-
"TRIGGER.ARROW_DOWN": [
|
|
766
|
-
{
|
|
767
|
-
guard: "isOpenControlled",
|
|
768
|
-
actions: ["invokeOnOpen"]
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
target: "open",
|
|
772
|
-
actions: ["setInitialFocus", "invokeOnOpen", "highlightComputedFirstItem"]
|
|
773
|
-
}
|
|
774
|
-
],
|
|
775
|
-
"TRIGGER.ARROW_LEFT": [
|
|
776
|
-
{
|
|
777
|
-
guard: S(T("multiple"), "hasSelectedItems"),
|
|
778
|
-
actions: ["selectPreviousItem"]
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
guard: T("multiple"),
|
|
782
|
-
actions: ["selectLastItem"]
|
|
783
|
-
}
|
|
784
|
-
],
|
|
785
|
-
"TRIGGER.ARROW_RIGHT": [
|
|
786
|
-
{
|
|
787
|
-
guard: S(T("multiple"), "hasSelectedItems"),
|
|
788
|
-
actions: ["selectNextItem"]
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
guard: T("multiple"),
|
|
792
|
-
actions: ["selectFirstItem"]
|
|
793
|
-
}
|
|
794
|
-
],
|
|
795
|
-
"TRIGGER.HOME": {
|
|
796
|
-
guard: T("multiple"),
|
|
797
|
-
actions: ["selectFirstItem"]
|
|
798
|
-
},
|
|
799
|
-
"TRIGGER.END": {
|
|
800
|
-
guard: T("multiple"),
|
|
801
|
-
actions: ["selectLastItem"]
|
|
802
|
-
},
|
|
803
|
-
"TRIGGER.TYPEAHEAD": {
|
|
804
|
-
guard: T("multiple"),
|
|
805
|
-
actions: ["selectMatchingItem"]
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
open: {
|
|
810
|
-
tags: ["open"],
|
|
811
|
-
exit: ["scrollContentToTop"],
|
|
812
|
-
effects: ["trackDismissableElement", "computePlacement", "scrollToHighlightedItem"],
|
|
813
|
-
on: {
|
|
814
|
-
"CONTROLLED.CLOSE": [
|
|
815
|
-
{
|
|
816
|
-
guard: "restoreFocus",
|
|
817
|
-
target: "focused",
|
|
818
|
-
actions: ["focusTriggerEl", "clearHighlightedItem"]
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
target: "idle",
|
|
822
|
-
actions: ["clearHighlightedItem"]
|
|
823
|
-
}
|
|
824
|
-
],
|
|
825
|
-
CLOSE: [
|
|
826
|
-
{
|
|
827
|
-
guard: "isOpenControlled",
|
|
828
|
-
actions: ["invokeOnClose"]
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
guard: "restoreFocus",
|
|
832
|
-
target: "focused",
|
|
833
|
-
actions: ["invokeOnClose", "focusTriggerEl", "clearHighlightedItem"]
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
target: "idle",
|
|
837
|
-
actions: ["invokeOnClose", "clearHighlightedItem"]
|
|
838
|
-
}
|
|
839
|
-
],
|
|
840
|
-
"TRIGGER.CLICK": [
|
|
841
|
-
{
|
|
842
|
-
guard: "isOpenControlled",
|
|
843
|
-
actions: ["invokeOnClose"]
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
target: "focused",
|
|
847
|
-
actions: ["invokeOnClose", "clearHighlightedItem"]
|
|
848
|
-
}
|
|
849
|
-
],
|
|
850
|
-
"ITEM.CLICK": [
|
|
851
|
-
{
|
|
852
|
-
guard: S("closeOnSelect", "isOpenControlled"),
|
|
853
|
-
actions: ["selectHighlightedItem", "invokeOnClose"]
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
guard: "closeOnSelect",
|
|
857
|
-
target: "focused",
|
|
858
|
-
actions: ["selectHighlightedItem", "invokeOnClose", "focusTriggerEl", "clearHighlightedItem"]
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
actions: ["selectHighlightedItem"]
|
|
862
|
-
}
|
|
863
|
-
],
|
|
864
|
-
"CONTENT.HOME": {
|
|
865
|
-
actions: ["highlightFirstItem"]
|
|
866
|
-
},
|
|
867
|
-
"CONTENT.END": {
|
|
868
|
-
actions: ["highlightLastItem"]
|
|
869
|
-
},
|
|
870
|
-
"CONTENT.ARROW_DOWN": [
|
|
871
|
-
{
|
|
872
|
-
guard: S("hasHighlightedItem", "loop", "isLastItemHighlighted"),
|
|
873
|
-
actions: ["highlightFirstItem"]
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
guard: "hasHighlightedItem",
|
|
877
|
-
actions: ["highlightNextItem"]
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
actions: ["highlightFirstItem"]
|
|
881
|
-
}
|
|
882
|
-
],
|
|
883
|
-
"CONTENT.ARROW_UP": [
|
|
884
|
-
{
|
|
885
|
-
guard: S("hasHighlightedItem", "loop", "isFirstItemHighlighted"),
|
|
886
|
-
actions: ["highlightLastItem"]
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
guard: "hasHighlightedItem",
|
|
890
|
-
actions: ["highlightPreviousItem"]
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
actions: ["highlightLastItem"]
|
|
894
|
-
}
|
|
895
|
-
],
|
|
896
|
-
"CONTENT.TYPEAHEAD": {
|
|
897
|
-
actions: ["highlightMatchingItem"]
|
|
898
|
-
},
|
|
899
|
-
"ITEM.POINTER_MOVE": {
|
|
900
|
-
actions: ["highlightItem"]
|
|
901
|
-
},
|
|
902
|
-
"ITEM.POINTER_LEAVE": {
|
|
903
|
-
actions: ["clearHighlightedItem"]
|
|
904
|
-
},
|
|
905
|
-
"POSITIONING.SET": {
|
|
906
|
-
actions: ["reposition"]
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
},
|
|
911
|
-
implementations: {
|
|
912
|
-
guards: {
|
|
913
|
-
loop: ({ prop: e }) => !!e("loopFocus"),
|
|
914
|
-
multiple: ({ prop: e }) => !!e("multiple"),
|
|
915
|
-
hasSelectedItems: ({ computed: e }) => !!e("hasSelectedItems"),
|
|
916
|
-
hasHighlightedItem: ({ context: e }) => e.get("highlightedValue") != null,
|
|
917
|
-
isFirstItemHighlighted: ({ context: e, prop: s }) => e.get("highlightedValue") === s("collection").firstValue,
|
|
918
|
-
isLastItemHighlighted: ({ context: e, prop: s }) => e.get("highlightedValue") === s("collection").lastValue,
|
|
919
|
-
closeOnSelect: ({ prop: e, event: s }) => !!(s.closeOnSelect ?? e("closeOnSelect")),
|
|
920
|
-
restoreFocus: ({ event: e }) => Q(e),
|
|
921
|
-
// guard assertions (for controlled mode)
|
|
922
|
-
isOpenControlled: ({ prop: e }) => e("open") !== void 0,
|
|
923
|
-
isTriggerClickEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.CLICK",
|
|
924
|
-
isTriggerEnterEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.ENTER",
|
|
925
|
-
isTriggerArrowUpEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.ARROW_UP",
|
|
926
|
-
isTriggerArrowDownEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.ARROW_DOWN"
|
|
927
|
-
},
|
|
928
|
-
effects: {
|
|
929
|
-
trackFormControlState({ context: e, scope: s }) {
|
|
930
|
-
return he(_(s), {
|
|
931
|
-
onFieldsetDisabledChange(t) {
|
|
932
|
-
e.set("fieldsetDisabled", t);
|
|
933
|
-
},
|
|
934
|
-
onFormReset() {
|
|
935
|
-
const t = e.initial("value");
|
|
936
|
-
e.set("value", t);
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
},
|
|
940
|
-
trackDismissableElement({ scope: e, send: s, prop: t }) {
|
|
941
|
-
const i = () => b(e);
|
|
942
|
-
let l = !0;
|
|
943
|
-
return Re(i, {
|
|
944
|
-
defer: !0,
|
|
945
|
-
exclude: [O(e), Fe(e)],
|
|
946
|
-
onFocusOutside: t("onFocusOutside"),
|
|
947
|
-
onPointerDownOutside: t("onPointerDownOutside"),
|
|
948
|
-
onInteractOutside(n) {
|
|
949
|
-
t("onInteractOutside")?.(n), l = !(n.detail.focusable || n.detail.contextmenu);
|
|
950
|
-
},
|
|
951
|
-
onDismiss() {
|
|
952
|
-
s({ type: "CLOSE", src: "interact-outside", restoreFocus: l });
|
|
953
|
-
}
|
|
954
|
-
});
|
|
955
|
-
},
|
|
956
|
-
computePlacement({ context: e, prop: s, scope: t }) {
|
|
957
|
-
const i = s("positioning");
|
|
958
|
-
return e.set("currentPlacement", i.placement), J(() => O(t), () => Z(t), {
|
|
959
|
-
defer: !0,
|
|
960
|
-
...i,
|
|
961
|
-
onComplete(o) {
|
|
962
|
-
e.set("currentPlacement", o.placement);
|
|
963
|
-
}
|
|
964
|
-
});
|
|
965
|
-
},
|
|
966
|
-
scrollToHighlightedItem({ context: e, prop: s, scope: t, event: i }) {
|
|
967
|
-
const l = (o) => {
|
|
968
|
-
const r = e.get("highlightedValue");
|
|
969
|
-
if (r == null || i.current().type.includes("POINTER")) return;
|
|
970
|
-
const c = Ne(t, r), m = b(t), E = s("scrollToIndexFn");
|
|
971
|
-
if (E) {
|
|
972
|
-
const f = s("collection").indexOf(r);
|
|
973
|
-
E?.({ index: f, immediate: o });
|
|
974
|
-
return;
|
|
975
|
-
}
|
|
976
|
-
ge(c, { rootEl: m, block: "nearest" });
|
|
977
|
-
};
|
|
978
|
-
return w(() => l(!0)), ce(() => b(t), {
|
|
979
|
-
defer: !0,
|
|
980
|
-
attributes: ["data-activedescendant"],
|
|
981
|
-
callback() {
|
|
982
|
-
l(!1);
|
|
983
|
-
}
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
},
|
|
987
|
-
actions: {
|
|
988
|
-
reposition({ context: e, prop: s, scope: t, event: i }) {
|
|
989
|
-
const l = () => Z(t);
|
|
990
|
-
J(O(t), l, {
|
|
991
|
-
...s("positioning"),
|
|
992
|
-
...i.options,
|
|
993
|
-
defer: !0,
|
|
994
|
-
listeners: !1,
|
|
995
|
-
onComplete(n) {
|
|
996
|
-
e.set("currentPlacement", n.placement);
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
},
|
|
1000
|
-
toggleVisibility({ send: e, prop: s, event: t }) {
|
|
1001
|
-
e({ type: s("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: t });
|
|
1002
|
-
},
|
|
1003
|
-
highlightPreviousItem({ context: e, prop: s }) {
|
|
1004
|
-
const t = e.get("highlightedValue");
|
|
1005
|
-
if (t == null) return;
|
|
1006
|
-
const i = s("collection").getPreviousValue(t, 1, s("loopFocus"));
|
|
1007
|
-
i != null && e.set("highlightedValue", i);
|
|
1008
|
-
},
|
|
1009
|
-
highlightNextItem({ context: e, prop: s }) {
|
|
1010
|
-
const t = e.get("highlightedValue");
|
|
1011
|
-
if (t == null) return;
|
|
1012
|
-
const i = s("collection").getNextValue(t, 1, s("loopFocus"));
|
|
1013
|
-
i != null && e.set("highlightedValue", i);
|
|
1014
|
-
},
|
|
1015
|
-
highlightFirstItem({ context: e, prop: s }) {
|
|
1016
|
-
const t = s("collection").firstValue;
|
|
1017
|
-
e.set("highlightedValue", t);
|
|
1018
|
-
},
|
|
1019
|
-
highlightLastItem({ context: e, prop: s }) {
|
|
1020
|
-
const t = s("collection").lastValue;
|
|
1021
|
-
e.set("highlightedValue", t);
|
|
1022
|
-
},
|
|
1023
|
-
setInitialFocus({ scope: e }) {
|
|
1024
|
-
w(() => {
|
|
1025
|
-
de({
|
|
1026
|
-
root: b(e)
|
|
1027
|
-
})?.focus({ preventScroll: !0 });
|
|
1028
|
-
});
|
|
1029
|
-
},
|
|
1030
|
-
focusTriggerEl({ event: e, scope: s }) {
|
|
1031
|
-
Q(e) && w(() => {
|
|
1032
|
-
O(s)?.focus({ preventScroll: !0 });
|
|
1033
|
-
});
|
|
1034
|
-
},
|
|
1035
|
-
selectHighlightedItem({ context: e, prop: s, event: t }) {
|
|
1036
|
-
let i = t.value ?? e.get("highlightedValue");
|
|
1037
|
-
if (i == null || !s("collection").has(i)) return;
|
|
1038
|
-
s("onSelect")?.({ value: i }), i = s("deselectable") && !s("multiple") && e.get("value").includes(i) ? null : i, e.set("value", (n) => i == null ? [] : s("multiple") ? Y(n, i) : [i]);
|
|
1039
|
-
},
|
|
1040
|
-
highlightComputedFirstItem({ context: e, prop: s, computed: t }) {
|
|
1041
|
-
const i = s("collection"), l = t("hasSelectedItems") ? i.sort(e.get("value"))[0] : i.firstValue;
|
|
1042
|
-
e.set("highlightedValue", l);
|
|
1043
|
-
},
|
|
1044
|
-
highlightComputedLastItem({ context: e, prop: s, computed: t }) {
|
|
1045
|
-
const i = s("collection"), l = t("hasSelectedItems") ? i.sort(e.get("value"))[0] : i.lastValue;
|
|
1046
|
-
e.set("highlightedValue", l);
|
|
1047
|
-
},
|
|
1048
|
-
highlightFirstSelectedItem({ context: e, prop: s, computed: t }) {
|
|
1049
|
-
if (!t("hasSelectedItems")) return;
|
|
1050
|
-
const i = s("collection").sort(e.get("value"))[0];
|
|
1051
|
-
e.set("highlightedValue", i);
|
|
1052
|
-
},
|
|
1053
|
-
highlightItem({ context: e, event: s }) {
|
|
1054
|
-
e.set("highlightedValue", s.value);
|
|
1055
|
-
},
|
|
1056
|
-
highlightMatchingItem({ context: e, prop: s, event: t, refs: i }) {
|
|
1057
|
-
const l = s("collection").search(t.key, {
|
|
1058
|
-
state: i.get("typeahead"),
|
|
1059
|
-
currentValue: e.get("highlightedValue")
|
|
1060
|
-
});
|
|
1061
|
-
l != null && e.set("highlightedValue", l);
|
|
1062
|
-
},
|
|
1063
|
-
setHighlightedItem({ context: e, event: s }) {
|
|
1064
|
-
e.set("highlightedValue", s.value);
|
|
1065
|
-
},
|
|
1066
|
-
clearHighlightedItem({ context: e }) {
|
|
1067
|
-
e.set("highlightedValue", null);
|
|
1068
|
-
},
|
|
1069
|
-
selectItem({ context: e, prop: s, event: t }) {
|
|
1070
|
-
s("onSelect")?.({ value: t.value });
|
|
1071
|
-
const l = s("deselectable") && !s("multiple") && e.get("value").includes(t.value) ? null : t.value;
|
|
1072
|
-
e.set("value", (n) => l == null ? [] : s("multiple") ? Y(n, l) : [l]);
|
|
1073
|
-
},
|
|
1074
|
-
clearItem({ context: e, event: s }) {
|
|
1075
|
-
e.set("value", (t) => t.filter((i) => i !== s.value));
|
|
1076
|
-
},
|
|
1077
|
-
setSelectedItems({ context: e, event: s }) {
|
|
1078
|
-
e.set("value", s.value);
|
|
1079
|
-
},
|
|
1080
|
-
clearSelectedItems({ context: e }) {
|
|
1081
|
-
e.set("value", []);
|
|
1082
|
-
},
|
|
1083
|
-
selectPreviousItem({ context: e, prop: s }) {
|
|
1084
|
-
const [t] = e.get("value"), i = s("collection").getPreviousValue(t);
|
|
1085
|
-
i && e.set("value", [i]);
|
|
1086
|
-
},
|
|
1087
|
-
selectNextItem({ context: e, prop: s }) {
|
|
1088
|
-
const [t] = e.get("value"), i = s("collection").getNextValue(t);
|
|
1089
|
-
i && e.set("value", [i]);
|
|
1090
|
-
},
|
|
1091
|
-
selectFirstItem({ context: e, prop: s }) {
|
|
1092
|
-
const t = s("collection").firstValue;
|
|
1093
|
-
t && e.set("value", [t]);
|
|
1094
|
-
},
|
|
1095
|
-
selectLastItem({ context: e, prop: s }) {
|
|
1096
|
-
const t = s("collection").lastValue;
|
|
1097
|
-
t && e.set("value", [t]);
|
|
1098
|
-
},
|
|
1099
|
-
selectMatchingItem({ context: e, prop: s, event: t, refs: i }) {
|
|
1100
|
-
const l = s("collection").search(t.key, {
|
|
1101
|
-
state: i.get("typeahead"),
|
|
1102
|
-
currentValue: e.get("value")[0]
|
|
1103
|
-
});
|
|
1104
|
-
l != null && e.set("value", [l]);
|
|
1105
|
-
},
|
|
1106
|
-
scrollContentToTop({ prop: e, scope: s }) {
|
|
1107
|
-
e("scrollToIndexFn") ? e("scrollToIndexFn")?.({ index: 0, immediate: !0 }) : b(s)?.scrollTo(0, 0);
|
|
1108
|
-
},
|
|
1109
|
-
invokeOnOpen({ prop: e }) {
|
|
1110
|
-
e("onOpenChange")?.({ open: !0 });
|
|
1111
|
-
},
|
|
1112
|
-
invokeOnClose({ prop: e }) {
|
|
1113
|
-
e("onOpenChange")?.({ open: !1 });
|
|
1114
|
-
},
|
|
1115
|
-
syncSelectElement({ context: e, prop: s, scope: t }) {
|
|
1116
|
-
const i = _(t);
|
|
1117
|
-
if (i) {
|
|
1118
|
-
if (e.get("value").length === 0 && !s("multiple")) {
|
|
1119
|
-
i.selectedIndex = -1;
|
|
1120
|
-
return;
|
|
1121
|
-
}
|
|
1122
|
-
for (const l of i.options)
|
|
1123
|
-
l.selected = e.get("value").includes(l.value);
|
|
1124
|
-
}
|
|
1125
|
-
},
|
|
1126
|
-
syncCollection({ context: e, prop: s }) {
|
|
1127
|
-
const t = s("collection"), i = t.find(e.get("highlightedValue"));
|
|
1128
|
-
i && e.set("highlightedItem", i);
|
|
1129
|
-
const l = t.findMany(e.get("value"));
|
|
1130
|
-
e.set("selectedItems", l);
|
|
1131
|
-
},
|
|
1132
|
-
syncSelectedItems({ context: e, prop: s }) {
|
|
1133
|
-
const t = s("collection"), i = e.get("selectedItems"), n = e.get("value").map((o) => i.find((c) => t.getItemValue(c) === o) || t.find(o));
|
|
1134
|
-
e.set("selectedItems", n);
|
|
1135
|
-
},
|
|
1136
|
-
syncHighlightedItem({ context: e, prop: s }) {
|
|
1137
|
-
const t = s("collection"), i = e.get("highlightedValue"), l = i ? t.find(i) : null;
|
|
1138
|
-
e.set("highlightedItem", l);
|
|
1139
|
-
},
|
|
1140
|
-
dispatchChangeEvent({ scope: e }) {
|
|
1141
|
-
queueMicrotask(() => {
|
|
1142
|
-
const s = _(e);
|
|
1143
|
-
if (!s) return;
|
|
1144
|
-
const t = e.getWin(), i = new t.Event("change", { bubbles: !0, composed: !0 });
|
|
1145
|
-
s.dispatchEvent(i);
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
});
|
|
1151
|
-
function Q(e) {
|
|
1152
|
-
const s = e.restoreFocus ?? e.previousEvent?.restoreFocus;
|
|
1153
|
-
return s == null || !!s;
|
|
1154
|
-
}
|
|
1155
|
-
F()([
|
|
1156
|
-
"closeOnSelect",
|
|
1157
|
-
"collection",
|
|
1158
|
-
"composite",
|
|
1159
|
-
"defaultHighlightedValue",
|
|
1160
|
-
"defaultOpen",
|
|
1161
|
-
"defaultValue",
|
|
1162
|
-
"deselectable",
|
|
1163
|
-
"dir",
|
|
1164
|
-
"disabled",
|
|
1165
|
-
"form",
|
|
1166
|
-
"getRootNode",
|
|
1167
|
-
"highlightedValue",
|
|
1168
|
-
"id",
|
|
1169
|
-
"ids",
|
|
1170
|
-
"invalid",
|
|
1171
|
-
"loopFocus",
|
|
1172
|
-
"multiple",
|
|
1173
|
-
"name",
|
|
1174
|
-
"onFocusOutside",
|
|
1175
|
-
"onHighlightChange",
|
|
1176
|
-
"onInteractOutside",
|
|
1177
|
-
"onOpenChange",
|
|
1178
|
-
"onPointerDownOutside",
|
|
1179
|
-
"onSelect",
|
|
1180
|
-
"onValueChange",
|
|
1181
|
-
"open",
|
|
1182
|
-
"positioning",
|
|
1183
|
-
"readOnly",
|
|
1184
|
-
"required",
|
|
1185
|
-
"scrollToIndexFn",
|
|
1186
|
-
"value"
|
|
1187
|
-
]);
|
|
1188
|
-
F()(["item", "persistFocus"]);
|
|
1189
|
-
F()(["id"]);
|
|
1190
|
-
F()(["htmlFor"]);
|
|
1191
|
-
export {
|
|
1192
|
-
ee as L,
|
|
1193
|
-
Ge as a,
|
|
1194
|
-
we as c,
|
|
1195
|
-
_e as m
|
|
1196
|
-
};
|
|
1197
|
-
//# sourceMappingURL=index-BGd_2-DY.js.map
|