@servicetitan/anvil2 1.0.0 → 1.0.2
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/Alert-9b9be403.js +89 -0
- package/Alert-9b9be403.js.map +1 -0
- package/Alert-f8312c73.cjs +2 -0
- package/Alert-f8312c73.cjs.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.css +1 -1
- package/Alert.js +1 -1
- package/Announcement-01964ff1.js +88 -0
- package/Announcement-01964ff1.js.map +1 -0
- package/Announcement-2da2a353.cjs +2 -0
- package/Announcement-2da2a353.cjs.map +1 -0
- package/Announcement.cjs +1 -1
- package/Announcement.css +1 -1
- package/Announcement.js +1 -1
- package/AnvilProvider.cjs +1 -1
- package/AnvilProvider.js +1 -1
- package/Avatar-68eccd63.cjs +2 -0
- package/Avatar-68eccd63.cjs.map +1 -0
- package/Avatar-bff54b28.js +120 -0
- package/Avatar-bff54b28.js.map +1 -0
- package/Avatar.cjs +1 -1
- package/Avatar.css +1 -1
- package/Avatar.js +9 -9
- package/Badge-1c0d0287.js +35 -0
- package/Badge-1c0d0287.js.map +1 -0
- package/Badge-a5e78d6e.cjs +2 -0
- package/Badge-a5e78d6e.cjs.map +1 -0
- package/Badge.cjs +1 -1
- package/Badge.css +1 -1
- package/Badge.js +1 -1
- package/{Button-830a1db0.js → Button-6054b7d9.js} +106 -107
- package/Button-6054b7d9.js.map +1 -0
- package/Button-a947c7df.cjs +2 -0
- package/Button-a947c7df.cjs.map +1 -0
- package/Button.cjs +1 -1
- package/Button.css +1 -1
- package/Button.js +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.js +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.js +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.js +1 -1
- package/Calendar-46cd1f54.cjs +2 -0
- package/{Calendar-9eb0d3bf.cjs.map → Calendar-46cd1f54.cjs.map} +1 -1
- package/{Calendar-88da97c5.js → Calendar-db99f08b.js} +243 -244
- package/{Calendar-88da97c5.js.map → Calendar-db99f08b.js.map} +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.css +1 -1
- package/Calendar.js +1 -1
- package/Card-365760fb.js +51 -0
- package/Card-365760fb.js.map +1 -0
- package/Card-4212dc8d.cjs +2 -0
- package/Card-4212dc8d.cjs.map +1 -0
- package/Card.cjs +1 -1
- package/Card.css +1 -1
- package/Card.js +1 -1
- package/Checkbox-1fac1f11.cjs +2 -0
- package/Checkbox-1fac1f11.cjs.map +1 -0
- package/{Checkbox-8520e116.js → Checkbox-f9806cbc.js} +58 -59
- package/Checkbox-f9806cbc.js.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.css +1 -1
- package/Checkbox.js +4 -4
- package/Chip-61edfd39.js +90 -0
- package/Chip-61edfd39.js.map +1 -0
- package/Chip-a9be7ed4.cjs +2 -0
- package/Chip-a9be7ed4.cjs.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.css +1 -1
- package/Chip.js +1 -1
- package/{Combobox-e540feb6.js → Combobox-15edb0b7.js} +978 -966
- package/{Combobox-e540feb6.js.map → Combobox-15edb0b7.js.map} +1 -1
- package/Combobox-2c631320.cjs +23 -0
- package/{Combobox-fb7ea5f1.cjs.map → Combobox-2c631320.cjs.map} +1 -1
- package/Combobox.cjs +1 -1
- package/Combobox.js +7 -7
- package/Details-5aae3aa8.js +123 -0
- package/Details-5aae3aa8.js.map +1 -0
- package/Details-efb16082.cjs +2 -0
- package/Details-efb16082.cjs.map +1 -0
- package/Details.cjs +1 -1
- package/Details.css +1 -1
- package/Details.js +1 -1
- package/Dialog-4253cce0.cjs +2 -0
- package/Dialog-4253cce0.cjs.map +1 -0
- package/Dialog-f72622c3.js +193 -0
- package/Dialog-f72622c3.js.map +1 -0
- package/Dialog.cjs +1 -1
- package/Dialog.css +1 -1
- package/Dialog.js +1 -1
- package/{Divider-a686c1f1.js → Divider-3c208037.js} +20 -21
- package/Divider-3c208037.js.map +1 -0
- package/Divider-74679695.cjs +2 -0
- package/Divider-74679695.cjs.map +1 -0
- package/Divider.cjs +1 -1
- package/Divider.css +1 -1
- package/Divider.js +1 -1
- package/Drawer-4a93f21b.js +190 -0
- package/Drawer-4a93f21b.js.map +1 -0
- package/Drawer-e55378d2.cjs +2 -0
- package/Drawer-e55378d2.cjs.map +1 -0
- package/Drawer.cjs +1 -1
- package/Drawer.css +1 -1
- package/Drawer.js +1 -1
- package/Flex-7e74d309.cjs +2 -0
- package/{Flex-29c4ffce.cjs.map → Flex-7e74d309.cjs.map} +1 -1
- package/{Flex-9956f1b3.js → Flex-88f1d8d1.js} +21 -22
- package/Flex-88f1d8d1.js.map +1 -0
- package/Flex.cjs +1 -1
- package/Flex.css +1 -1
- package/Flex.js +1 -1
- package/Grid-250cb165.cjs +2 -0
- package/{Grid-5fbf04d4.cjs.map → Grid-250cb165.cjs.map} +1 -1
- package/{Grid-9c813cf7.js → Grid-88d82e23.js} +10 -11
- package/Grid-88d82e23.js.map +1 -0
- package/Grid.cjs +1 -1
- package/Grid.css +1 -1
- package/Grid.js +1 -1
- package/{Helper-74a1f07f-3909b3ee.cjs → Helper-74a1f07f-2e0f4273.cjs} +2 -2
- package/{Helper-74a1f07f-3909b3ee.cjs.map → Helper-74a1f07f-2e0f4273.cjs.map} +1 -1
- package/{Helper-74a1f07f-afa4e958.js → Helper-74a1f07f-56e7c8de.js} +3 -3
- package/{Helper-74a1f07f-afa4e958.js.map → Helper-74a1f07f-56e7c8de.js.map} +1 -1
- package/Icon-52e14d4e.js +47 -0
- package/Icon-52e14d4e.js.map +1 -0
- package/Icon-f1045beb.cjs +2 -0
- package/Icon-f1045beb.cjs.map +1 -0
- package/Icon.cjs +1 -1
- package/Icon.css +1 -1
- package/Icon.js +1 -1
- package/Label-1e720bb8.cjs +2 -0
- package/Label-1e720bb8.cjs.map +1 -0
- package/Label-a8c57a5d.js +47 -0
- package/Label-a8c57a5d.js.map +1 -0
- package/Label.css +1 -1
- package/Layout.cjs +1 -1
- package/Layout.js +1 -1
- package/{Link-a593ba6b.js → Link-9d24095b.js} +18 -19
- package/Link-9d24095b.js.map +1 -0
- package/Link-bb64defc.cjs +2 -0
- package/Link-bb64defc.cjs.map +1 -0
- package/Link.cjs +1 -1
- package/Link.css +1 -1
- package/Link.js +1 -1
- package/ListView-02c0eee3.cjs +2 -0
- package/{ListView-74bad83a.cjs.map → ListView-02c0eee3.cjs.map} +1 -1
- package/{ListView-af0da517.js → ListView-5325f570.js} +33 -34
- package/{ListView-af0da517.js.map → ListView-5325f570.js.map} +1 -1
- package/ListView.cjs +1 -1
- package/ListView.css +1 -1
- package/ListView.js +1 -1
- package/ListView.module-3868990a-7ce1f78e.js +11 -0
- package/ListView.module-3868990a-7ce1f78e.js.map +1 -0
- package/ListView.module-3868990a-95f714ae.cjs +2 -0
- package/ListView.module-3868990a-95f714ae.cjs.map +1 -0
- package/Listbox-7cd1c816.cjs +2 -0
- package/{Listbox-4db34d85.cjs.map → Listbox-7cd1c816.cjs.map} +1 -1
- package/{Listbox-92b706c2.js → Listbox-a34f738b.js} +53 -54
- package/{Listbox-92b706c2.js.map → Listbox-a34f738b.js.map} +1 -1
- package/Listbox.cjs +1 -1
- package/Listbox.css +1 -1
- package/Listbox.js +1 -1
- package/Listbox.module-98274ee1-1a954c60.js +13 -0
- package/Listbox.module-98274ee1-1a954c60.js.map +1 -0
- package/Listbox.module-98274ee1-cacb3419.cjs +2 -0
- package/Listbox.module-98274ee1-cacb3419.cjs.map +1 -0
- package/LocalizationProvider.cjs +1 -1
- package/LocalizationProvider.cjs.map +1 -1
- package/LocalizationProvider.js +25 -28
- package/LocalizationProvider.js.map +1 -1
- package/{Menu-7fd2dc23.js → Menu-b4ffc0bd.js} +56 -55
- package/Menu-b4ffc0bd.js.map +1 -0
- package/Menu-c8bf4232.cjs +2 -0
- package/{Menu-76939bdb.cjs.map → Menu-c8bf4232.cjs.map} +1 -1
- package/Menu.cjs +1 -1
- package/Menu.css +1 -1
- package/Menu.js +7 -7
- package/Overflow.cjs +1 -1
- package/Overflow.cjs.map +1 -1
- package/Overflow.js +68 -69
- package/Overflow.js.map +1 -1
- package/Page.cjs +1 -1
- package/Page.js +68 -68
- package/{Popover-a163d0aa.js → Popover-0dcd0e5b.js} +80 -79
- package/Popover-0dcd0e5b.js.map +1 -0
- package/Popover-0f5f9062.cjs +2 -0
- package/Popover-0f5f9062.cjs.map +1 -0
- package/Popover.cjs +1 -1
- package/Popover.css +1 -1
- package/Popover.js +7 -7
- package/ProgressBar-4dcc2f0f.cjs +2 -0
- package/ProgressBar-4dcc2f0f.cjs.map +1 -0
- package/{ProgressBar-49e1e48e.js → ProgressBar-544184e3.js} +40 -41
- package/ProgressBar-544184e3.js.map +1 -0
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.css +1 -1
- package/ProgressBar.js +1 -1
- package/Radio-38ca63a4.cjs +2 -0
- package/Radio-38ca63a4.cjs.map +1 -0
- package/Radio-6cffbb08.js +124 -0
- package/Radio-6cffbb08.js.map +1 -0
- package/Radio.cjs +1 -1
- package/Radio.css +1 -1
- package/Radio.js +1 -1
- package/SideNav-404b894d.cjs +2 -0
- package/SideNav-404b894d.cjs.map +1 -0
- package/SideNav-6933fe8a.js +236 -0
- package/SideNav-6933fe8a.js.map +1 -0
- package/SideNav.cjs +3 -3
- package/SideNav.cjs.map +1 -1
- package/SideNav.css +1 -1
- package/SideNav.js +3 -3
- package/{Spinner-e6a0837b-a4cbf304.cjs → Spinner-e6a0837b-f93c6099.cjs} +2 -2
- package/{Spinner-e6a0837b-a4cbf304.cjs.map → Spinner-e6a0837b-f93c6099.cjs.map} +1 -1
- package/{Spinner-e6a0837b-9a5e00e0.js → Spinner-e6a0837b-facaafc6.js} +2 -2
- package/{Spinner-e6a0837b-9a5e00e0.js.map → Spinner-e6a0837b-facaafc6.js.map} +1 -1
- package/{SrOnly-f331a0ad.js → SrOnly-6b9efe73.js} +2 -2
- package/{SrOnly-f331a0ad.js.map → SrOnly-6b9efe73.js.map} +1 -1
- package/{SrOnly-69d90781.cjs → SrOnly-bbef7e22.cjs} +2 -2
- package/{SrOnly-69d90781.cjs.map → SrOnly-bbef7e22.cjs.map} +1 -1
- package/SrOnly.cjs +1 -1
- package/SrOnly.js +1 -1
- package/{Stepper-0b488606.js → Stepper-68017e2a.js} +142 -142
- package/Stepper-68017e2a.js.map +1 -0
- package/Stepper-9d249c75.cjs +2 -0
- package/Stepper-9d249c75.cjs.map +1 -0
- package/Stepper.cjs +1 -1
- package/Stepper.cjs.map +1 -1
- package/Stepper.css +1 -1
- package/Stepper.d.ts +6 -0
- package/Stepper.js +19 -15
- package/Stepper.js.map +1 -1
- package/Switch-4692c583.js +54 -0
- package/Switch-4692c583.js.map +1 -0
- package/Switch-64d3899f.cjs +2 -0
- package/Switch-64d3899f.cjs.map +1 -0
- package/Switch.cjs +1 -1
- package/Switch.css +1 -1
- package/Switch.js +1 -1
- package/{Tab-7bc38f7f.js → Tab-6284f9f4.js} +117 -118
- package/Tab-6284f9f4.js.map +1 -0
- package/Tab-cce7124e.cjs +10 -0
- package/Tab-cce7124e.cjs.map +1 -0
- package/Tab.cjs +1 -1
- package/Tab.css +1 -1
- package/Tab.js +1 -1
- package/Text-5cc984cd.js +107 -0
- package/Text-5cc984cd.js.map +1 -0
- package/Text-d18dce57.cjs +2 -0
- package/Text-d18dce57.cjs.map +1 -0
- package/Text.cjs +1 -1
- package/Text.css +1 -1
- package/Text.js +1 -1
- package/TextField-c5be914c.cjs +2 -0
- package/TextField-c5be914c.cjs.map +1 -0
- package/TextField-e1f03333.js +133 -0
- package/TextField-e1f03333.js.map +1 -0
- package/TextField.cjs +1 -1
- package/TextField.cjs.map +1 -1
- package/TextField.css +1 -1
- package/TextField.d.ts +7 -30
- package/TextField.js +1 -1
- package/TextField.js.map +1 -1
- package/{Textarea-7c5259de.js → Textarea-3a8cd093.js} +49 -50
- package/{Textarea-7c5259de.js.map → Textarea-3a8cd093.js.map} +1 -1
- package/Textarea-aa63a45e.cjs +2 -0
- package/{Textarea-925aeb0b.cjs.map → Textarea-aa63a45e.cjs.map} +1 -1
- package/Textarea.cjs +1 -1
- package/Textarea.css +1 -1
- package/Textarea.js +1 -1
- package/ThemeProvider.cjs +1 -1
- package/ThemeProvider.js +1 -1
- package/{Toast-3e277d81.js → Toast-12784d2f.js} +74 -74
- package/{Toast-3e277d81.js.map → Toast-12784d2f.js.map} +1 -1
- package/Toast-a72a1b01.cjs +9 -0
- package/{Toast-8446ca9d.cjs.map → Toast-a72a1b01.cjs.map} +1 -1
- package/Toast.cjs +1 -1
- package/Toast.css +1 -1
- package/Toast.js +1 -1
- package/Tooltip-46963b9c.cjs +2 -0
- package/Tooltip-46963b9c.cjs.map +1 -0
- package/Tooltip-727d82b1.js +149 -0
- package/Tooltip-727d82b1.js.map +1 -0
- package/Tooltip.cjs +1 -1
- package/Tooltip.css +1 -1
- package/Tooltip.js +4 -4
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +135 -102
- package/anvil2.js +158 -153
- package/anvil2.js.map +1 -1
- package/assets/icons/st/batch.svg +1 -0
- package/assets/icons/st/call.svg +1 -0
- package/assets/icons/st/call_inbound.svg +1 -0
- package/assets/icons/st/call_outbound.svg +1 -0
- package/assets/icons/st/customer.svg +1 -0
- package/assets/icons/st/equipment.svg +1 -0
- package/assets/icons/st/estimate.svg +1 -0
- package/assets/icons/st/form.svg +1 -0
- package/assets/icons/st/invoice.svg +1 -0
- package/assets/icons/st/job.svg +1 -0
- package/assets/icons/st/local_settings.svg +1 -11
- package/assets/icons/st/location.svg +1 -0
- package/assets/icons/st/memberships.svg +1 -6
- package/assets/icons/st/payment.svg +1 -0
- package/assets/icons/st/pro_tip.svg +1 -0
- package/assets/icons/st/project.svg +1 -0
- package/assets/icons/st/proposal.svg +1 -0
- package/assets/icons/st/purchase_order.svg +1 -0
- package/assets/icons/st/service_agreements.svg +1 -6
- package/assets/icons/st/sms.svg +1 -0
- package/assets/icons/st/text_inbound.svg +1 -0
- package/assets/icons/st/text_outbound.svg +1 -0
- package/assets/icons/st/upsell.svg +1 -0
- package/assets/icons/st/virtual_agent.svg +1 -0
- package/assets/icons/st/web_chat.svg +1 -0
- package/{index-a062ce5a.js → index-0fcc8f2c.js} +2 -2
- package/{index-a062ce5a.js.map → index-0fcc8f2c.js.map} +1 -1
- package/index-2bd62884.cjs +6 -0
- package/{index-d3c6e880.cjs.map → index-2bd62884.cjs.map} +1 -1
- package/index-3a42c2f5.cjs +2 -0
- package/{index-1f072fda.cjs.map → index-3a42c2f5.cjs.map} +1 -1
- package/index-6c0d3173.js +48 -0
- package/{index-39087e81.js.map → index-6c0d3173.js.map} +1 -1
- package/{index-92baae54.cjs → index-88f64542.cjs} +6 -6
- package/{index-92baae54.cjs.map → index-88f64542.cjs.map} +1 -1
- package/index-a8953a8d.cjs +2 -0
- package/index-a8953a8d.cjs.map +1 -0
- package/index-b5a703ca.js +57 -0
- package/index-b5a703ca.js.map +1 -0
- package/{index-09d89a47.js → index-d92d2eb5.js} +2 -2
- package/{index-09d89a47.js.map → index-d92d2eb5.js.map} +1 -1
- package/index-e1f04536-33ebb65b.js +62 -0
- package/index-e1f04536-33ebb65b.js.map +1 -0
- package/index-e1f04536-67254699.cjs +2 -0
- package/index-e1f04536-67254699.cjs.map +1 -0
- package/{index-6142d9b8.js → index-e54f92d0.js} +3 -3
- package/{index-6142d9b8.js.map → index-e54f92d0.js.map} +1 -1
- package/{index-1cf3540f.cjs → index-f42fb342.cjs} +2 -2
- package/{index-1cf3540f.cjs.map → index-f42fb342.cjs.map} +1 -1
- package/index2.css +1 -1
- package/index3.css +1 -1
- package/package.json +3 -3
- package/token.cjs +1 -1
- package/token.js +1 -1
- package/useAccessibleColor.cjs +1 -1
- package/useAccessibleColor.js +40 -40
- package/useLayoutPropsUtil-e307abc7-053ab281.js +869 -0
- package/useLayoutPropsUtil-e307abc7-053ab281.js.map +1 -0
- package/useLayoutPropsUtil-e307abc7-9cffb4b6.cjs +2 -0
- package/useLayoutPropsUtil-e307abc7-9cffb4b6.cjs.map +1 -0
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +39 -39
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.js +39 -39
- package/usePrefersColorScheme-129544ad-8a88962d.cjs +2 -0
- package/{usePrefersColorScheme-129544ad-96356659.cjs.map → usePrefersColorScheme-129544ad-8a88962d.cjs.map} +1 -1
- package/{usePrefersColorScheme-129544ad-3ba4632b.js → usePrefersColorScheme-129544ad-d4fd2894.js} +2 -2
- package/{usePrefersColorScheme-129544ad-3ba4632b.js.map → usePrefersColorScheme-129544ad-d4fd2894.js.map} +1 -1
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.js +39 -39
- package/useSize.cjs +1 -1
- package/useSize.cjs.map +1 -1
- package/useSize.js +56 -342
- package/useSize.js.map +1 -1
- package/useSwipe.cjs +1 -1
- package/useSwipe.js +39 -39
- package/Alert-344183ea.js +0 -90
- package/Alert-344183ea.js.map +0 -1
- package/Alert-62672ace.cjs +0 -2
- package/Alert-62672ace.cjs.map +0 -1
- package/Announcement-9851a347.cjs +0 -2
- package/Announcement-9851a347.cjs.map +0 -1
- package/Announcement-bc49dcda.js +0 -89
- package/Announcement-bc49dcda.js.map +0 -1
- package/Avatar-3631c6ec.js +0 -121
- package/Avatar-3631c6ec.js.map +0 -1
- package/Avatar-4f12215a.cjs +0 -2
- package/Avatar-4f12215a.cjs.map +0 -1
- package/Badge-4341cdd7.cjs +0 -2
- package/Badge-4341cdd7.cjs.map +0 -1
- package/Badge-53f22ef2.js +0 -33
- package/Badge-53f22ef2.js.map +0 -1
- package/Button-1a971c5a.cjs +0 -2
- package/Button-1a971c5a.cjs.map +0 -1
- package/Button-830a1db0.js.map +0 -1
- package/Calendar-9eb0d3bf.cjs +0 -2
- package/Card-3b826e9c.js +0 -52
- package/Card-3b826e9c.js.map +0 -1
- package/Card-a93a5f83.cjs +0 -2
- package/Card-a93a5f83.cjs.map +0 -1
- package/Checkbox-639ce252.cjs +0 -2
- package/Checkbox-639ce252.cjs.map +0 -1
- package/Checkbox-8520e116.js.map +0 -1
- package/Chip-6bedca94.js +0 -91
- package/Chip-6bedca94.js.map +0 -1
- package/Chip-da8c6362.cjs +0 -2
- package/Chip-da8c6362.cjs.map +0 -1
- package/Combobox-fb7ea5f1.cjs +0 -23
- package/Details-4b2021ec.cjs +0 -2
- package/Details-4b2021ec.cjs.map +0 -1
- package/Details-b28ee573.js +0 -124
- package/Details-b28ee573.js.map +0 -1
- package/Dialog-6eb58365.js +0 -193
- package/Dialog-6eb58365.js.map +0 -1
- package/Dialog-a919dea4.cjs +0 -2
- package/Dialog-a919dea4.cjs.map +0 -1
- package/Divider-7ef2a224.cjs +0 -2
- package/Divider-7ef2a224.cjs.map +0 -1
- package/Divider-a686c1f1.js.map +0 -1
- package/Drawer-1b273181.cjs +0 -2
- package/Drawer-1b273181.cjs.map +0 -1
- package/Drawer-b33f5343.js +0 -190
- package/Drawer-b33f5343.js.map +0 -1
- package/Flex-29c4ffce.cjs +0 -2
- package/Flex-9956f1b3.js.map +0 -1
- package/Grid-5fbf04d4.cjs +0 -2
- package/Grid-9c813cf7.js.map +0 -1
- package/Icon-2d4ee439.cjs +0 -2
- package/Icon-2d4ee439.cjs.map +0 -1
- package/Icon-f2b149cf.js +0 -48
- package/Icon-f2b149cf.js.map +0 -1
- package/Label-3ad0b0ab.js +0 -47
- package/Label-3ad0b0ab.js.map +0 -1
- package/Label-eb7ce922.cjs +0 -2
- package/Label-eb7ce922.cjs.map +0 -1
- package/Link-a593ba6b.js.map +0 -1
- package/Link-ec7cbdf8.cjs +0 -2
- package/Link-ec7cbdf8.cjs.map +0 -1
- package/ListView-74bad83a.cjs +0 -2
- package/ListView.module-79d72342-d7aa9dc4.js +0 -11
- package/ListView.module-79d72342-d7aa9dc4.js.map +0 -1
- package/ListView.module-79d72342-d9f4290e.cjs +0 -2
- package/ListView.module-79d72342-d9f4290e.cjs.map +0 -1
- package/Listbox-4db34d85.cjs +0 -2
- package/Listbox.module-c63c1bfa-5ebe4039.cjs +0 -2
- package/Listbox.module-c63c1bfa-5ebe4039.cjs.map +0 -1
- package/Listbox.module-c63c1bfa-9824a4a9.js +0 -13
- package/Listbox.module-c63c1bfa-9824a4a9.js.map +0 -1
- package/Menu-76939bdb.cjs +0 -2
- package/Menu-7fd2dc23.js.map +0 -1
- package/Popover-a163d0aa.js.map +0 -1
- package/Popover-da69669e.cjs +0 -2
- package/Popover-da69669e.cjs.map +0 -1
- package/ProgressBar-49e1e48e.js.map +0 -1
- package/ProgressBar-ae651373.cjs +0 -2
- package/ProgressBar-ae651373.cjs.map +0 -1
- package/Radio-51163e05.cjs +0 -2
- package/Radio-51163e05.cjs.map +0 -1
- package/Radio-8da19f8d.js +0 -125
- package/Radio-8da19f8d.js.map +0 -1
- package/SideNav-55cdec93.cjs +0 -2
- package/SideNav-55cdec93.cjs.map +0 -1
- package/SideNav-ad0fff00.js +0 -237
- package/SideNav-ad0fff00.js.map +0 -1
- package/Stepper-0b488606.js.map +0 -1
- package/Stepper-582e737c.cjs +0 -2
- package/Stepper-582e737c.cjs.map +0 -1
- package/Switch-4fd76a55.cjs +0 -2
- package/Switch-4fd76a55.cjs.map +0 -1
- package/Switch-5e5f3da5.js +0 -55
- package/Switch-5e5f3da5.js.map +0 -1
- package/Tab-7bc38f7f.js.map +0 -1
- package/Tab-dc80fe7e.cjs +0 -10
- package/Tab-dc80fe7e.cjs.map +0 -1
- package/Text-317031b1.cjs +0 -2
- package/Text-317031b1.cjs.map +0 -1
- package/Text-796fd2cb.js +0 -108
- package/Text-796fd2cb.js.map +0 -1
- package/TextField-d1447bda.js +0 -134
- package/TextField-d1447bda.js.map +0 -1
- package/TextField-dc7293ad.cjs +0 -2
- package/TextField-dc7293ad.cjs.map +0 -1
- package/Textarea-925aeb0b.cjs +0 -2
- package/Toast-8446ca9d.cjs +0 -9
- package/Tooltip-3e04d2a9.js +0 -148
- package/Tooltip-3e04d2a9.js.map +0 -1
- package/Tooltip-881868fb.cjs +0 -2
- package/Tooltip-881868fb.cjs.map +0 -1
- package/_commonjsHelpers-10dfc225.js +0 -9
- package/_commonjsHelpers-10dfc225.js.map +0 -1
- package/_commonjsHelpers-87b0abe8.cjs +0 -2
- package/_commonjsHelpers-87b0abe8.cjs.map +0 -1
- package/index-1f072fda.cjs +0 -2
- package/index-22a2f39b.js +0 -38
- package/index-22a2f39b.js.map +0 -1
- package/index-39087e81.js +0 -43
- package/index-8b24e154.cjs +0 -2
- package/index-8b24e154.cjs.map +0 -1
- package/index-cb90cd0a-1857e934.js +0 -58
- package/index-cb90cd0a-1857e934.js.map +0 -1
- package/index-cb90cd0a-821182f5.cjs +0 -2
- package/index-cb90cd0a-821182f5.cjs.map +0 -1
- package/index-d3c6e880.cjs +0 -6
- package/tinycolor-3b50a250.cjs +0 -2
- package/tinycolor-3b50a250.cjs.map +0 -1
- package/tinycolor-d415b1fd.js +0 -712
- package/tinycolor-d415b1fd.js.map +0 -1
- package/useBreakpoint-8f3e3792-1a3ca6bd.js +0 -68
- package/useBreakpoint-8f3e3792-1a3ca6bd.js.map +0 -1
- package/useBreakpoint-8f3e3792-7746c47f.cjs +0 -2
- package/useBreakpoint-8f3e3792-7746c47f.cjs.map +0 -1
- package/useLayoutPropsUtil-4361a49d-a262cd66.cjs +0 -2
- package/useLayoutPropsUtil-4361a49d-a262cd66.cjs.map +0 -1
- package/useLayoutPropsUtil-4361a49d-f9f6e64c.js +0 -99
- package/useLayoutPropsUtil-4361a49d-f9f6e64c.js.map +0 -1
- package/usePrefersColorScheme-129544ad-96356659.cjs +0 -2
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
import "./Combobox.css";
|
|
2
|
-
import { f as
|
|
3
|
-
import Ue, { useRef as
|
|
4
|
-
import { a as
|
|
5
|
-
import { P as g, _ as nr } from "./index-
|
|
6
|
-
import { K as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { z as ar } from "./Text-796fd2cb.js";
|
|
2
|
+
import { f as j } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
3
|
+
import Ue, { useRef as ie, useCallback as X, useEffect as ue, useMemo as Qe, cloneElement as Jn, Component as Qn, useLayoutEffect as sn, useReducer as Zn, createContext as er, useState as le, useId as Kt, useContext as tr } from "react";
|
|
4
|
+
import { a as T, _ as fe } from "./extends-135d7828.js";
|
|
5
|
+
import { P as g, _ as nr } from "./index-d92d2eb5.js";
|
|
6
|
+
import { g as rr, K as Pe } from "./index-6c0d3173.js";
|
|
7
|
+
import { j as or } from "./Flex-88f1d8d1.js";
|
|
8
|
+
import { z as nt, w as ir } from "./Popover-0dcd0e5b.js";
|
|
9
|
+
import { u as sr } from "./Label-a8c57a5d.js";
|
|
10
|
+
import { C as jt } from "./Button-6054b7d9.js";
|
|
11
|
+
import { $ as $t } from "./Chip-61edfd39.js";
|
|
12
|
+
import { I as ur } from "./Icon-52e14d4e.js";
|
|
13
|
+
import { r as lr } from "./Checkbox-f9806cbc.js";
|
|
14
|
+
import { E as ar } from "./Text-5cc984cd.js";
|
|
16
15
|
import { a as cr } from "./close-064c8acc-7e0b4df7.js";
|
|
17
16
|
import { a as dr } from "./chevron_right-5b0931b5-ac35ad56.js";
|
|
18
17
|
import { a as pr } from "./check-5f087ea0-b5474547.js";
|
|
19
|
-
import { v as fr } from "./Helper-74a1f07f-
|
|
20
|
-
/* empty css */import {
|
|
21
|
-
import {
|
|
22
|
-
import "./
|
|
23
|
-
import { J as ln } from "./useLayoutPropsUtil-4361a49d-f9f6e64c.js";
|
|
18
|
+
import { v as fr } from "./Helper-74a1f07f-56e7c8de.js";
|
|
19
|
+
/* empty css */import { a as un } from "./Listbox.module-98274ee1-1a954c60.js";
|
|
20
|
+
import { t as Ze } from "./ListView.module-3868990a-7ce1f78e.js";
|
|
21
|
+
import { J as ln } from "./useLayoutPropsUtil-e307abc7-053ab281.js";
|
|
24
22
|
function Ft(t) {
|
|
25
23
|
if (t === void 0)
|
|
26
24
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27
25
|
return t;
|
|
28
26
|
}
|
|
29
|
-
var et = { exports: {} },
|
|
27
|
+
var et = { exports: {} }, U = {};
|
|
30
28
|
/**
|
|
31
29
|
* @license React
|
|
32
30
|
* react-is.production.min.js
|
|
@@ -39,73 +37,73 @@ var et = { exports: {} }, W = {};
|
|
|
39
37
|
var Lt;
|
|
40
38
|
function gr() {
|
|
41
39
|
if (Lt)
|
|
42
|
-
return
|
|
40
|
+
return U;
|
|
43
41
|
Lt = 1;
|
|
44
|
-
var t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), e = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"),
|
|
42
|
+
var t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), e = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), E;
|
|
45
43
|
E = Symbol.for("react.module.reference");
|
|
46
|
-
function
|
|
44
|
+
function R(h) {
|
|
47
45
|
if (typeof h == "object" && h !== null) {
|
|
48
|
-
var
|
|
49
|
-
switch (
|
|
46
|
+
var $ = h.$$typeof;
|
|
47
|
+
switch ($) {
|
|
50
48
|
case t:
|
|
51
49
|
switch (h = h.type, h) {
|
|
52
50
|
case r:
|
|
53
51
|
case o:
|
|
54
52
|
case i:
|
|
55
53
|
case a:
|
|
56
|
-
case
|
|
54
|
+
case l:
|
|
57
55
|
return h;
|
|
58
56
|
default:
|
|
59
57
|
switch (h = h && h.$$typeof, h) {
|
|
60
58
|
case u:
|
|
61
59
|
case s:
|
|
62
|
-
case
|
|
63
|
-
case
|
|
60
|
+
case c:
|
|
61
|
+
case O:
|
|
64
62
|
case m:
|
|
65
63
|
case e:
|
|
66
64
|
return h;
|
|
67
65
|
default:
|
|
68
|
-
return
|
|
66
|
+
return $;
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
case n:
|
|
72
|
-
return
|
|
70
|
+
return $;
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
|
-
return
|
|
74
|
+
return U.ContextConsumer = s, U.ContextProvider = e, U.Element = t, U.ForwardRef = c, U.Fragment = r, U.Lazy = O, U.Memo = m, U.Portal = n, U.Profiler = o, U.StrictMode = i, U.Suspense = a, U.SuspenseList = l, U.isAsyncMode = function() {
|
|
77
75
|
return !1;
|
|
78
|
-
},
|
|
76
|
+
}, U.isConcurrentMode = function() {
|
|
79
77
|
return !1;
|
|
80
|
-
},
|
|
81
|
-
return
|
|
82
|
-
},
|
|
83
|
-
return
|
|
84
|
-
},
|
|
78
|
+
}, U.isContextConsumer = function(h) {
|
|
79
|
+
return R(h) === s;
|
|
80
|
+
}, U.isContextProvider = function(h) {
|
|
81
|
+
return R(h) === e;
|
|
82
|
+
}, U.isElement = function(h) {
|
|
85
83
|
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
86
|
-
},
|
|
87
|
-
return
|
|
88
|
-
},
|
|
89
|
-
return
|
|
90
|
-
},
|
|
91
|
-
return
|
|
92
|
-
},
|
|
93
|
-
return
|
|
94
|
-
},
|
|
95
|
-
return
|
|
96
|
-
},
|
|
97
|
-
return
|
|
98
|
-
},
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
return
|
|
102
|
-
},
|
|
103
|
-
return
|
|
104
|
-
},
|
|
105
|
-
return typeof h == "string" || typeof h == "function" || h === r || h === o || h === i || h === a || h ===
|
|
106
|
-
},
|
|
107
|
-
}
|
|
108
|
-
var
|
|
84
|
+
}, U.isForwardRef = function(h) {
|
|
85
|
+
return R(h) === c;
|
|
86
|
+
}, U.isFragment = function(h) {
|
|
87
|
+
return R(h) === r;
|
|
88
|
+
}, U.isLazy = function(h) {
|
|
89
|
+
return R(h) === O;
|
|
90
|
+
}, U.isMemo = function(h) {
|
|
91
|
+
return R(h) === m;
|
|
92
|
+
}, U.isPortal = function(h) {
|
|
93
|
+
return R(h) === n;
|
|
94
|
+
}, U.isProfiler = function(h) {
|
|
95
|
+
return R(h) === o;
|
|
96
|
+
}, U.isStrictMode = function(h) {
|
|
97
|
+
return R(h) === i;
|
|
98
|
+
}, U.isSuspense = function(h) {
|
|
99
|
+
return R(h) === a;
|
|
100
|
+
}, U.isSuspenseList = function(h) {
|
|
101
|
+
return R(h) === l;
|
|
102
|
+
}, U.isValidElementType = function(h) {
|
|
103
|
+
return typeof h == "string" || typeof h == "function" || h === r || h === o || h === i || h === a || h === l || h === x || typeof h == "object" && h !== null && (h.$$typeof === O || h.$$typeof === m || h.$$typeof === e || h.$$typeof === s || h.$$typeof === c || h.$$typeof === E || h.getModuleId !== void 0);
|
|
104
|
+
}, U.typeOf = R, U;
|
|
105
|
+
}
|
|
106
|
+
var W = {};
|
|
109
107
|
/**
|
|
110
108
|
* @license React
|
|
111
109
|
* react-is.development.js
|
|
@@ -118,99 +116,99 @@ var Y = {};
|
|
|
118
116
|
var Bt;
|
|
119
117
|
function hr() {
|
|
120
118
|
return Bt || (Bt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
121
|
-
var t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), e = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"),
|
|
119
|
+
var t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), e = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), E = !1, R = !1, h = !1, $ = !1, d = !1, f;
|
|
122
120
|
f = Symbol.for("react.module.reference");
|
|
123
|
-
function p(
|
|
124
|
-
return !!(typeof
|
|
121
|
+
function p(I) {
|
|
122
|
+
return !!(typeof I == "string" || typeof I == "function" || I === r || I === o || d || I === i || I === a || I === l || $ || I === x || E || R || h || typeof I == "object" && I !== null && (I.$$typeof === O || I.$$typeof === m || I.$$typeof === e || I.$$typeof === s || I.$$typeof === c || // This needs to include all possible module reference object
|
|
125
123
|
// types supported by any Flight configuration anywhere since
|
|
126
124
|
// we don't know which Flight build this will end up being used
|
|
127
125
|
// with.
|
|
128
|
-
|
|
126
|
+
I.$$typeof === f || I.getModuleId !== void 0));
|
|
129
127
|
}
|
|
130
|
-
function
|
|
131
|
-
if (typeof
|
|
132
|
-
var
|
|
133
|
-
switch (
|
|
128
|
+
function _(I) {
|
|
129
|
+
if (typeof I == "object" && I !== null) {
|
|
130
|
+
var ce = I.$$typeof;
|
|
131
|
+
switch (ce) {
|
|
134
132
|
case t:
|
|
135
|
-
var
|
|
136
|
-
switch (
|
|
133
|
+
var Z = I.type;
|
|
134
|
+
switch (Z) {
|
|
137
135
|
case r:
|
|
138
136
|
case o:
|
|
139
137
|
case i:
|
|
140
138
|
case a:
|
|
141
|
-
case
|
|
142
|
-
return
|
|
139
|
+
case l:
|
|
140
|
+
return Z;
|
|
143
141
|
default:
|
|
144
|
-
var xe =
|
|
142
|
+
var xe = Z && Z.$$typeof;
|
|
145
143
|
switch (xe) {
|
|
146
144
|
case u:
|
|
147
145
|
case s:
|
|
148
|
-
case
|
|
149
|
-
case
|
|
146
|
+
case c:
|
|
147
|
+
case O:
|
|
150
148
|
case m:
|
|
151
149
|
case e:
|
|
152
150
|
return xe;
|
|
153
151
|
default:
|
|
154
|
-
return
|
|
152
|
+
return ce;
|
|
155
153
|
}
|
|
156
154
|
}
|
|
157
155
|
case n:
|
|
158
|
-
return
|
|
156
|
+
return ce;
|
|
159
157
|
}
|
|
160
158
|
}
|
|
161
159
|
}
|
|
162
|
-
var
|
|
163
|
-
function
|
|
164
|
-
return
|
|
160
|
+
var y = s, V = e, b = t, A = c, P = r, w = O, S = m, k = n, H = o, q = i, Y = a, K = l, ee = !1, re = !1;
|
|
161
|
+
function N(I) {
|
|
162
|
+
return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
165
163
|
}
|
|
166
|
-
function
|
|
167
|
-
return
|
|
164
|
+
function z(I) {
|
|
165
|
+
return re || (re = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
168
166
|
}
|
|
169
|
-
function
|
|
170
|
-
return
|
|
167
|
+
function G(I) {
|
|
168
|
+
return _(I) === s;
|
|
171
169
|
}
|
|
172
|
-
function
|
|
173
|
-
return
|
|
170
|
+
function se(I) {
|
|
171
|
+
return _(I) === e;
|
|
174
172
|
}
|
|
175
|
-
function I
|
|
176
|
-
return typeof
|
|
173
|
+
function D(I) {
|
|
174
|
+
return typeof I == "object" && I !== null && I.$$typeof === t;
|
|
177
175
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
176
|
+
function C(I) {
|
|
177
|
+
return _(I) === c;
|
|
180
178
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
179
|
+
function v(I) {
|
|
180
|
+
return _(I) === r;
|
|
183
181
|
}
|
|
184
|
-
function
|
|
185
|
-
return
|
|
182
|
+
function M(I) {
|
|
183
|
+
return _(I) === O;
|
|
186
184
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
185
|
+
function L(I) {
|
|
186
|
+
return _(I) === m;
|
|
189
187
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
188
|
+
function B(I) {
|
|
189
|
+
return _(I) === n;
|
|
192
190
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
191
|
+
function F(I) {
|
|
192
|
+
return _(I) === o;
|
|
195
193
|
}
|
|
196
|
-
function te(
|
|
197
|
-
return
|
|
194
|
+
function te(I) {
|
|
195
|
+
return _(I) === i;
|
|
198
196
|
}
|
|
199
|
-
function
|
|
200
|
-
return
|
|
197
|
+
function ne(I) {
|
|
198
|
+
return _(I) === a;
|
|
201
199
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
200
|
+
function oe(I) {
|
|
201
|
+
return _(I) === l;
|
|
204
202
|
}
|
|
205
|
-
|
|
206
|
-
}()),
|
|
203
|
+
W.ContextConsumer = y, W.ContextProvider = V, W.Element = b, W.ForwardRef = A, W.Fragment = P, W.Lazy = w, W.Memo = S, W.Portal = k, W.Profiler = H, W.StrictMode = q, W.Suspense = Y, W.SuspenseList = K, W.isAsyncMode = N, W.isConcurrentMode = z, W.isContextConsumer = G, W.isContextProvider = se, W.isElement = D, W.isForwardRef = C, W.isFragment = v, W.isLazy = M, W.isMemo = L, W.isPortal = B, W.isProfiler = F, W.isStrictMode = te, W.isSuspense = ne, W.isSuspenseList = oe, W.isValidElementType = p, W.typeOf = _;
|
|
204
|
+
}()), W;
|
|
207
205
|
}
|
|
208
206
|
process.env.NODE_ENV === "production" ? et.exports = gr() : et.exports = hr();
|
|
209
207
|
var Ut = et.exports;
|
|
210
|
-
const Wt = (t) => typeof t == "object" && t != null && t.nodeType === 1,
|
|
208
|
+
const Wt = (t) => typeof t == "object" && t != null && t.nodeType === 1, qt = (t, n) => (!n || t !== "hidden") && t !== "visible" && t !== "clip", Je = (t, n) => {
|
|
211
209
|
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
212
210
|
const r = getComputedStyle(t, null);
|
|
213
|
-
return
|
|
211
|
+
return qt(r.overflowY, n) || qt(r.overflowX, n) || ((i) => {
|
|
214
212
|
const o = ((e) => {
|
|
215
213
|
if (!e.ownerDocument || !e.ownerDocument.defaultView)
|
|
216
214
|
return null;
|
|
@@ -231,39 +229,39 @@ const Wt = (t) => typeof t == "object" && t != null && t.nodeType === 1, Yt = (t
|
|
|
231
229
|
var r, i, o, e;
|
|
232
230
|
if (typeof document > "u")
|
|
233
231
|
return [];
|
|
234
|
-
const { scrollMode: s, block: u, inline:
|
|
232
|
+
const { scrollMode: s, block: u, inline: c, boundary: a, skipOverflowHiddenElements: l } = n, m = typeof a == "function" ? a : (Y) => Y !== a;
|
|
235
233
|
if (!Wt(t))
|
|
236
234
|
throw new TypeError("Invalid target");
|
|
237
|
-
const
|
|
235
|
+
const O = document.scrollingElement || document.documentElement, x = [];
|
|
238
236
|
let E = t;
|
|
239
237
|
for (; Wt(E) && m(E); ) {
|
|
240
|
-
if (E = mr(E), E ===
|
|
241
|
-
|
|
238
|
+
if (E = mr(E), E === O) {
|
|
239
|
+
x.push(E);
|
|
242
240
|
break;
|
|
243
241
|
}
|
|
244
|
-
E != null && E === document.body && Je(E) && !Je(document.documentElement) || E != null && Je(E,
|
|
242
|
+
E != null && E === document.body && Je(E) && !Je(document.documentElement) || E != null && Je(E, l) && x.push(E);
|
|
245
243
|
}
|
|
246
|
-
const
|
|
247
|
-
const
|
|
248
|
-
return { top: parseFloat(
|
|
244
|
+
const R = (i = (r = window.visualViewport) == null ? void 0 : r.width) != null ? i : innerWidth, h = (e = (o = window.visualViewport) == null ? void 0 : o.height) != null ? e : innerHeight, { scrollX: $, scrollY: d } = window, { height: f, width: p, top: _, right: y, bottom: V, left: b } = t.getBoundingClientRect(), { top: A, right: P, bottom: w, left: S } = ((Y) => {
|
|
245
|
+
const K = window.getComputedStyle(Y);
|
|
246
|
+
return { top: parseFloat(K.scrollMarginTop) || 0, right: parseFloat(K.scrollMarginRight) || 0, bottom: parseFloat(K.scrollMarginBottom) || 0, left: parseFloat(K.scrollMarginLeft) || 0 };
|
|
249
247
|
})(t);
|
|
250
|
-
let
|
|
248
|
+
let k = u === "start" || u === "nearest" ? _ - A : u === "end" ? V + w : _ + f / 2 - A + w, H = c === "center" ? b + p / 2 - S + P : c === "end" ? y + P : b - S;
|
|
251
249
|
const q = [];
|
|
252
|
-
for (let
|
|
253
|
-
const
|
|
254
|
-
if (s === "if-needed" &&
|
|
250
|
+
for (let Y = 0; Y < x.length; Y++) {
|
|
251
|
+
const K = x[Y], { height: ee, width: re, top: N, right: z, bottom: G, left: se } = K.getBoundingClientRect();
|
|
252
|
+
if (s === "if-needed" && _ >= 0 && b >= 0 && V <= h && y <= R && _ >= N && V <= G && b >= se && y <= z)
|
|
255
253
|
return q;
|
|
256
|
-
const
|
|
257
|
-
let
|
|
258
|
-
const te = "offsetWidth" in
|
|
259
|
-
if (
|
|
260
|
-
|
|
254
|
+
const D = getComputedStyle(K), C = parseInt(D.borderLeftWidth, 10), v = parseInt(D.borderTopWidth, 10), M = parseInt(D.borderRightWidth, 10), L = parseInt(D.borderBottomWidth, 10);
|
|
255
|
+
let B = 0, F = 0;
|
|
256
|
+
const te = "offsetWidth" in K ? K.offsetWidth - K.clientWidth - C - M : 0, ne = "offsetHeight" in K ? K.offsetHeight - K.clientHeight - v - L : 0, oe = "offsetWidth" in K ? K.offsetWidth === 0 ? 0 : re / K.offsetWidth : 0, I = "offsetHeight" in K ? K.offsetHeight === 0 ? 0 : ee / K.offsetHeight : 0;
|
|
257
|
+
if (O === K)
|
|
258
|
+
B = u === "start" ? k : u === "end" ? k - h : u === "nearest" ? $e(d, d + h, h, v, L, d + k, d + k + f, f) : k - h / 2, F = c === "start" ? H : c === "center" ? H - R / 2 : c === "end" ? H - R : $e($, $ + R, R, C, M, $ + H, $ + H + p, p), B = Math.max(0, B + d), F = Math.max(0, F + $);
|
|
261
259
|
else {
|
|
262
|
-
|
|
263
|
-
const { scrollLeft:
|
|
264
|
-
|
|
260
|
+
B = u === "start" ? k - N - v : u === "end" ? k - G + L + ne : u === "nearest" ? $e(N, G, ee, v, L + ne, k, k + f, f) : k - (N + ee / 2) + ne / 2, F = c === "start" ? H - se - C : c === "center" ? H - (se + re / 2) + te / 2 : c === "end" ? H - z + M + te : $e(se, z, re, C, M + te, H, H + p, p);
|
|
261
|
+
const { scrollLeft: ce, scrollTop: Z } = K;
|
|
262
|
+
B = I === 0 ? 0 : Math.max(0, Math.min(Z + B / I, K.scrollHeight - ee / I + ne)), F = oe === 0 ? 0 : Math.max(0, Math.min(ce + F / oe, K.scrollWidth - re / oe + te)), k += Z - B, H += ce - F;
|
|
265
263
|
}
|
|
266
|
-
q.push({ el:
|
|
264
|
+
q.push({ el: K, top: B, left: F });
|
|
267
265
|
}
|
|
268
266
|
return q;
|
|
269
267
|
};
|
|
@@ -278,10 +276,10 @@ var De = function() {
|
|
|
278
276
|
}, De.apply(this, arguments);
|
|
279
277
|
};
|
|
280
278
|
var Ir = 0;
|
|
281
|
-
function
|
|
282
|
-
return typeof t == "function" ? t :
|
|
279
|
+
function Yt(t) {
|
|
280
|
+
return typeof t == "function" ? t : pe;
|
|
283
281
|
}
|
|
284
|
-
function
|
|
282
|
+
function pe() {
|
|
285
283
|
}
|
|
286
284
|
function an(t, n) {
|
|
287
285
|
if (t) {
|
|
@@ -314,7 +312,7 @@ function rt(t, n) {
|
|
|
314
312
|
}
|
|
315
313
|
return o.cancel = i, o;
|
|
316
314
|
}
|
|
317
|
-
function
|
|
315
|
+
function Q() {
|
|
318
316
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
319
317
|
n[r] = arguments[r];
|
|
320
318
|
return function(i) {
|
|
@@ -388,8 +386,8 @@ function be(t, n, r, i, o) {
|
|
|
388
386
|
(typeof t != "number" || t < 0 || t > s) && (t = n > 0 ? -1 : s + 1);
|
|
389
387
|
var u = t + n;
|
|
390
388
|
u < 0 ? u = o ? s : 0 : u > s && (u = o ? 0 : s);
|
|
391
|
-
var
|
|
392
|
-
return
|
|
389
|
+
var c = Se(u, n < 0, r, i, o);
|
|
390
|
+
return c === -1 ? t >= e ? -1 : t : c;
|
|
393
391
|
}
|
|
394
392
|
function Se(t, n, r, i, o) {
|
|
395
393
|
o === void 0 && (o = !1);
|
|
@@ -404,12 +402,12 @@ function Se(t, n, r, i, o) {
|
|
|
404
402
|
return u;
|
|
405
403
|
return o ? Se(n ? e - 1 : 0, n, r, i) : -1;
|
|
406
404
|
}
|
|
407
|
-
function
|
|
405
|
+
function qe(t, n, r, i) {
|
|
408
406
|
return i === void 0 && (i = !0), r && n.some(function(o) {
|
|
409
407
|
return o && (zt(o, t, r) || i && zt(o, r.document.activeElement, r));
|
|
410
408
|
});
|
|
411
409
|
}
|
|
412
|
-
var ot =
|
|
410
|
+
var ot = pe;
|
|
413
411
|
process.env.NODE_ENV !== "production" && (ot = function(n, r, i) {
|
|
414
412
|
var o = "This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";
|
|
415
413
|
Object.keys(n).forEach(function(e) {
|
|
@@ -438,7 +436,7 @@ function it(t, n) {
|
|
|
438
436
|
r.textContent = t, wr(n);
|
|
439
437
|
}
|
|
440
438
|
}
|
|
441
|
-
var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, mn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, vn = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, Le = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, Be = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, In = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, _n = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, yn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, En = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, wn = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, bn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, xn = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11,
|
|
439
|
+
var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, mn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, vn = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, Le = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, Be = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, In = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, _n = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, yn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, En = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, wn = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, bn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, xn = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, On = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, tt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Cn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, Dn = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Sn = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, br = /* @__PURE__ */ Object.freeze({
|
|
442
440
|
__proto__: null,
|
|
443
441
|
unknown: hn,
|
|
444
442
|
mouseUp: mn,
|
|
@@ -452,12 +450,12 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
452
450
|
clickItem: wn,
|
|
453
451
|
blurInput: bn,
|
|
454
452
|
changeInput: xn,
|
|
455
|
-
keyDownSpaceButton:
|
|
453
|
+
keyDownSpaceButton: On,
|
|
456
454
|
clickButton: tt,
|
|
457
|
-
blurButton:
|
|
455
|
+
blurButton: Cn,
|
|
458
456
|
controlledPropUpdatedSelectedItem: Dn,
|
|
459
457
|
touchEnd: Sn
|
|
460
|
-
}), xr = ["refKey", "ref"],
|
|
458
|
+
}), xr = ["refKey", "ref"], Or = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], Cr = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], Dr = ["refKey", "ref"], Sr = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], Nr = /* @__PURE__ */ function() {
|
|
461
459
|
var t = /* @__PURE__ */ function(n) {
|
|
462
460
|
nr(r, n);
|
|
463
461
|
function r(o) {
|
|
@@ -466,8 +464,8 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
466
464
|
return e.id + "-item-" + d;
|
|
467
465
|
}, e.items = [], e.itemCount = null, e.previousResultCount = 0, e.timeoutIds = [], e.internalSetTimeout = function(d, f) {
|
|
468
466
|
var p = setTimeout(function() {
|
|
469
|
-
e.timeoutIds = e.timeoutIds.filter(function(
|
|
470
|
-
return
|
|
467
|
+
e.timeoutIds = e.timeoutIds.filter(function(_) {
|
|
468
|
+
return _ !== p;
|
|
471
469
|
}), d();
|
|
472
470
|
}, f);
|
|
473
471
|
e.timeoutIds.push(p);
|
|
@@ -479,7 +477,7 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
479
477
|
var p = e.getItemNodeFromIndex(f);
|
|
480
478
|
return p && p.hasAttribute("disabled");
|
|
481
479
|
}, e.setHighlightedIndex = function(d, f) {
|
|
482
|
-
d === void 0 && (d = e.props.defaultHighlightedIndex), f === void 0 && (f = {}), f = Fe(f), e.internalSetState(
|
|
480
|
+
d === void 0 && (d = e.props.defaultHighlightedIndex), f === void 0 && (f = {}), f = Fe(f), e.internalSetState(T({
|
|
483
481
|
highlightedIndex: d
|
|
484
482
|
}, f));
|
|
485
483
|
}, e.clearSelection = function(d) {
|
|
@@ -490,46 +488,46 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
490
488
|
isOpen: e.props.defaultIsOpen
|
|
491
489
|
}, d);
|
|
492
490
|
}, e.selectItem = function(d, f, p) {
|
|
493
|
-
f = Fe(f), e.internalSetState(
|
|
491
|
+
f = Fe(f), e.internalSetState(T({
|
|
494
492
|
isOpen: e.props.defaultIsOpen,
|
|
495
493
|
highlightedIndex: e.props.defaultHighlightedIndex,
|
|
496
494
|
selectedItem: d,
|
|
497
495
|
inputValue: e.props.itemToString(d)
|
|
498
496
|
}, f), p);
|
|
499
497
|
}, e.selectItemAtIndex = function(d, f, p) {
|
|
500
|
-
var
|
|
501
|
-
|
|
498
|
+
var _ = e.items[d];
|
|
499
|
+
_ != null && e.selectItem(_, f, p);
|
|
502
500
|
}, e.selectHighlightedItem = function(d, f) {
|
|
503
501
|
return e.selectItemAtIndex(e.getState().highlightedIndex, d, f);
|
|
504
502
|
}, e.internalSetState = function(d, f) {
|
|
505
|
-
var p,
|
|
506
|
-
return !
|
|
503
|
+
var p, _, y = {}, V = typeof d == "function";
|
|
504
|
+
return !V && d.hasOwnProperty("inputValue") && e.props.onInputValueChange(d.inputValue, T({}, e.getStateAndHelpers(), d)), e.setState(function(b) {
|
|
507
505
|
var A;
|
|
508
|
-
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
return p &&
|
|
513
|
-
|
|
514
|
-
}),
|
|
506
|
+
b = e.getState(b);
|
|
507
|
+
var P = V ? d(b) : d;
|
|
508
|
+
P = e.props.stateReducer(b, P), p = P.hasOwnProperty("selectedItem");
|
|
509
|
+
var w = {};
|
|
510
|
+
return p && P.selectedItem !== b.selectedItem && (_ = P.selectedItem), (A = P).type || (A.type = hn), Object.keys(P).forEach(function(S) {
|
|
511
|
+
b[S] !== P[S] && (y[S] = P[S]), S !== "type" && (P[S], We(e.props, S) || (w[S] = P[S]));
|
|
512
|
+
}), V && P.hasOwnProperty("inputValue") && e.props.onInputValueChange(P.inputValue, T({}, e.getStateAndHelpers(), P)), w;
|
|
515
513
|
}, function() {
|
|
516
|
-
|
|
517
|
-
var
|
|
518
|
-
|
|
514
|
+
Yt(f)();
|
|
515
|
+
var b = Object.keys(y).length > 1;
|
|
516
|
+
b && e.props.onStateChange(y, e.getStateAndHelpers()), p && e.props.onSelect(d.selectedItem, e.getStateAndHelpers()), _ !== void 0 && e.props.onChange(_, e.getStateAndHelpers()), e.props.onUserAction(y, e.getStateAndHelpers());
|
|
519
517
|
});
|
|
520
518
|
}, e.rootRef = function(d) {
|
|
521
519
|
return e._rootNode = d;
|
|
522
520
|
}, e.getRootProps = function(d, f) {
|
|
523
|
-
var p,
|
|
524
|
-
e.getRootProps.called = !0, e.getRootProps.refKey =
|
|
525
|
-
var
|
|
526
|
-
return
|
|
521
|
+
var p, _ = d === void 0 ? {} : d, y = _.refKey, V = y === void 0 ? "ref" : y, b = _.ref, A = fe(_, xr), P = f === void 0 ? {} : f, w = P.suppressRefError, S = w === void 0 ? !1 : w;
|
|
522
|
+
e.getRootProps.called = !0, e.getRootProps.refKey = V, e.getRootProps.suppressRefError = S;
|
|
523
|
+
var k = e.getState(), H = k.isOpen;
|
|
524
|
+
return T((p = {}, p[V] = Ee(b, e.rootRef), p.role = "combobox", p["aria-expanded"] = H, p["aria-haspopup"] = "listbox", p["aria-owns"] = H ? e.menuId : void 0, p["aria-labelledby"] = e.labelId, p), A);
|
|
527
525
|
}, e.keyDownHandlers = {
|
|
528
526
|
ArrowDown: function(f) {
|
|
529
527
|
var p = this;
|
|
530
528
|
if (f.preventDefault(), this.getState().isOpen) {
|
|
531
|
-
var
|
|
532
|
-
this.moveHighlightedIndex(
|
|
529
|
+
var _ = f.shiftKey ? 5 : 1;
|
|
530
|
+
this.moveHighlightedIndex(_, {
|
|
533
531
|
type: Be
|
|
534
532
|
});
|
|
535
533
|
} else
|
|
@@ -537,10 +535,10 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
537
535
|
isOpen: !0,
|
|
538
536
|
type: Be
|
|
539
537
|
}, function() {
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
542
|
-
var
|
|
543
|
-
length:
|
|
538
|
+
var y = p.getItemCount();
|
|
539
|
+
if (y > 0) {
|
|
540
|
+
var V = p.getState(), b = V.highlightedIndex, A = be(b, 1, {
|
|
541
|
+
length: y
|
|
544
542
|
}, p.isItemDisabled, !0);
|
|
545
543
|
p.setHighlightedIndex(A, {
|
|
546
544
|
type: Be
|
|
@@ -551,8 +549,8 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
551
549
|
ArrowUp: function(f) {
|
|
552
550
|
var p = this;
|
|
553
551
|
if (f.preventDefault(), this.getState().isOpen) {
|
|
554
|
-
var
|
|
555
|
-
this.moveHighlightedIndex(
|
|
552
|
+
var _ = f.shiftKey ? -5 : -1;
|
|
553
|
+
this.moveHighlightedIndex(_, {
|
|
556
554
|
type: Le
|
|
557
555
|
});
|
|
558
556
|
} else
|
|
@@ -560,10 +558,10 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
560
558
|
isOpen: !0,
|
|
561
559
|
type: Le
|
|
562
560
|
}, function() {
|
|
563
|
-
var
|
|
564
|
-
if (
|
|
565
|
-
var
|
|
566
|
-
length:
|
|
561
|
+
var y = p.getItemCount();
|
|
562
|
+
if (y > 0) {
|
|
563
|
+
var V = p.getState(), b = V.highlightedIndex, A = be(b, -1, {
|
|
564
|
+
length: y
|
|
567
565
|
}, p.isItemDisabled, !0);
|
|
568
566
|
p.setHighlightedIndex(A, {
|
|
569
567
|
type: Le
|
|
@@ -573,11 +571,11 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
573
571
|
},
|
|
574
572
|
Enter: function(f) {
|
|
575
573
|
if (f.which !== 229) {
|
|
576
|
-
var p = this.getState(),
|
|
577
|
-
if (
|
|
574
|
+
var p = this.getState(), _ = p.isOpen, y = p.highlightedIndex;
|
|
575
|
+
if (_ && y != null) {
|
|
578
576
|
f.preventDefault();
|
|
579
|
-
var
|
|
580
|
-
if (
|
|
577
|
+
var V = this.items[y], b = this.getItemNodeFromIndex(y);
|
|
578
|
+
if (V == null || b && b.hasAttribute("disabled"))
|
|
581
579
|
return;
|
|
582
580
|
this.selectHighlightedItem({
|
|
583
581
|
type: _n
|
|
@@ -586,45 +584,45 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
586
584
|
}
|
|
587
585
|
},
|
|
588
586
|
Escape: function(f) {
|
|
589
|
-
f.preventDefault(), this.reset(
|
|
587
|
+
f.preventDefault(), this.reset(T({
|
|
590
588
|
type: In
|
|
591
589
|
}, !this.state.isOpen && {
|
|
592
590
|
selectedItem: null,
|
|
593
591
|
inputValue: ""
|
|
594
592
|
}));
|
|
595
593
|
}
|
|
596
|
-
}, e.buttonKeyDownHandlers =
|
|
594
|
+
}, e.buttonKeyDownHandlers = T({}, e.keyDownHandlers, {
|
|
597
595
|
" ": function(f) {
|
|
598
596
|
f.preventDefault(), this.toggleMenu({
|
|
599
|
-
type:
|
|
597
|
+
type: On
|
|
600
598
|
});
|
|
601
599
|
}
|
|
602
|
-
}), e.inputKeyDownHandlers =
|
|
600
|
+
}), e.inputKeyDownHandlers = T({}, e.keyDownHandlers, {
|
|
603
601
|
Home: function(f) {
|
|
604
|
-
var p = this.getState(),
|
|
605
|
-
if (
|
|
602
|
+
var p = this.getState(), _ = p.isOpen;
|
|
603
|
+
if (_) {
|
|
606
604
|
f.preventDefault();
|
|
607
|
-
var
|
|
608
|
-
if (!(
|
|
609
|
-
var
|
|
610
|
-
length:
|
|
605
|
+
var y = this.getItemCount();
|
|
606
|
+
if (!(y <= 0 || !_)) {
|
|
607
|
+
var V = Se(0, !1, {
|
|
608
|
+
length: y
|
|
611
609
|
}, this.isItemDisabled);
|
|
612
|
-
this.setHighlightedIndex(
|
|
610
|
+
this.setHighlightedIndex(V, {
|
|
613
611
|
type: yn
|
|
614
612
|
});
|
|
615
613
|
}
|
|
616
614
|
}
|
|
617
615
|
},
|
|
618
616
|
End: function(f) {
|
|
619
|
-
var p = this.getState(),
|
|
620
|
-
if (
|
|
617
|
+
var p = this.getState(), _ = p.isOpen;
|
|
618
|
+
if (_) {
|
|
621
619
|
f.preventDefault();
|
|
622
|
-
var
|
|
623
|
-
if (!(
|
|
624
|
-
var
|
|
625
|
-
length:
|
|
620
|
+
var y = this.getItemCount();
|
|
621
|
+
if (!(y <= 0 || !_)) {
|
|
622
|
+
var V = Se(y - 1, !0, {
|
|
623
|
+
length: y
|
|
626
624
|
}, this.isItemDisabled);
|
|
627
|
-
this.setHighlightedIndex(
|
|
625
|
+
this.setHighlightedIndex(V, {
|
|
628
626
|
type: En
|
|
629
627
|
});
|
|
630
628
|
}
|
|
@@ -633,19 +631,19 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
633
631
|
}), e.getToggleButtonProps = function(d) {
|
|
634
632
|
var f = d === void 0 ? {} : d, p = f.onClick;
|
|
635
633
|
f.onPress;
|
|
636
|
-
var
|
|
637
|
-
onClick:
|
|
638
|
-
onKeyDown:
|
|
639
|
-
onKeyUp:
|
|
640
|
-
onBlur:
|
|
641
|
-
},
|
|
642
|
-
return
|
|
634
|
+
var _ = f.onKeyDown, y = f.onKeyUp, V = f.onBlur, b = fe(f, Or), A = e.getState(), P = A.isOpen, w = {
|
|
635
|
+
onClick: Q(p, e.buttonHandleClick),
|
|
636
|
+
onKeyDown: Q(_, e.buttonHandleKeyDown),
|
|
637
|
+
onKeyUp: Q(y, e.buttonHandleKeyUp),
|
|
638
|
+
onBlur: Q(V, e.buttonHandleBlur)
|
|
639
|
+
}, S = b.disabled ? {} : w;
|
|
640
|
+
return T({
|
|
643
641
|
type: "button",
|
|
644
642
|
role: "button",
|
|
645
|
-
"aria-label":
|
|
643
|
+
"aria-label": P ? "close menu" : "open menu",
|
|
646
644
|
"aria-haspopup": !0,
|
|
647
645
|
"data-toggle": !0
|
|
648
|
-
},
|
|
646
|
+
}, S, b);
|
|
649
647
|
}, e.buttonHandleKeyUp = function(d) {
|
|
650
648
|
d.preventDefault();
|
|
651
649
|
}, e.buttonHandleKeyDown = function(d) {
|
|
@@ -653,8 +651,8 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
653
651
|
e.buttonKeyDownHandlers[f] && e.buttonKeyDownHandlers[f].call(Ft(e), d);
|
|
654
652
|
}, e.buttonHandleClick = function(d) {
|
|
655
653
|
if (d.preventDefault(), e.props.environment) {
|
|
656
|
-
var f = e.props.environment.document, p = f.body,
|
|
657
|
-
p && p ===
|
|
654
|
+
var f = e.props.environment.document, p = f.body, _ = f.activeElement;
|
|
655
|
+
p && p === _ && d.target.focus();
|
|
658
656
|
}
|
|
659
657
|
process.env.NODE_ENV === "test" ? e.toggleMenu({
|
|
660
658
|
type: tt
|
|
@@ -669,36 +667,36 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
669
667
|
if (!(e.isMouseDown || !e.props.environment)) {
|
|
670
668
|
var p = e.props.environment.document.activeElement;
|
|
671
669
|
(p == null || p.id !== e.inputId) && p !== f && e.reset({
|
|
672
|
-
type:
|
|
670
|
+
type: Cn
|
|
673
671
|
});
|
|
674
672
|
}
|
|
675
673
|
});
|
|
676
674
|
}, e.getLabelProps = function(d) {
|
|
677
|
-
return
|
|
675
|
+
return T({
|
|
678
676
|
htmlFor: e.inputId,
|
|
679
677
|
id: e.labelId
|
|
680
678
|
}, d);
|
|
681
679
|
}, e.getInputProps = function(d) {
|
|
682
|
-
var f = d === void 0 ? {} : d, p = f.onKeyDown,
|
|
680
|
+
var f = d === void 0 ? {} : d, p = f.onKeyDown, _ = f.onBlur, y = f.onChange, V = f.onInput;
|
|
683
681
|
f.onChangeText;
|
|
684
|
-
var
|
|
682
|
+
var b = fe(f, Cr), A, P = {};
|
|
685
683
|
A = "onChange";
|
|
686
|
-
var
|
|
687
|
-
if (!
|
|
684
|
+
var w = e.getState(), S = w.inputValue, k = w.isOpen, H = w.highlightedIndex;
|
|
685
|
+
if (!b.disabled) {
|
|
688
686
|
var q;
|
|
689
|
-
|
|
687
|
+
P = (q = {}, q[A] = Q(y, V, e.inputHandleChange), q.onKeyDown = Q(p, e.inputHandleKeyDown), q.onBlur = Q(_, e.inputHandleBlur), q);
|
|
690
688
|
}
|
|
691
|
-
return
|
|
689
|
+
return T({
|
|
692
690
|
"aria-autocomplete": "list",
|
|
693
|
-
"aria-activedescendant":
|
|
694
|
-
"aria-controls":
|
|
695
|
-
"aria-labelledby":
|
|
691
|
+
"aria-activedescendant": k && typeof H == "number" && H >= 0 ? e.getItemId(H) : void 0,
|
|
692
|
+
"aria-controls": k ? e.menuId : void 0,
|
|
693
|
+
"aria-labelledby": b && b["aria-label"] ? void 0 : e.labelId,
|
|
696
694
|
// https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
|
|
697
695
|
// revert back since autocomplete="nope" is ignored on latest Chrome and Opera
|
|
698
696
|
autoComplete: "off",
|
|
699
|
-
value:
|
|
697
|
+
value: S,
|
|
700
698
|
id: e.inputId
|
|
701
|
-
},
|
|
699
|
+
}, P, b);
|
|
702
700
|
}, e.inputHandleKeyDown = function(d) {
|
|
703
701
|
var f = ke(d);
|
|
704
702
|
f && e.inputKeyDownHandlers[f] && e.inputKeyDownHandlers[f].call(Ft(e), d);
|
|
@@ -722,64 +720,64 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
722
720
|
}, e.menuRef = function(d) {
|
|
723
721
|
e._menuNode = d;
|
|
724
722
|
}, e.getMenuProps = function(d, f) {
|
|
725
|
-
var p,
|
|
726
|
-
return e.getMenuProps.called = !0, e.getMenuProps.refKey =
|
|
723
|
+
var p, _ = d === void 0 ? {} : d, y = _.refKey, V = y === void 0 ? "ref" : y, b = _.ref, A = fe(_, Dr), P = f === void 0 ? {} : f, w = P.suppressRefError, S = w === void 0 ? !1 : w;
|
|
724
|
+
return e.getMenuProps.called = !0, e.getMenuProps.refKey = V, e.getMenuProps.suppressRefError = S, T((p = {}, p[V] = Ee(b, e.menuRef), p.role = "listbox", p["aria-labelledby"] = A && A["aria-label"] ? void 0 : e.labelId, p.id = e.menuId, p), A);
|
|
727
725
|
}, e.getItemProps = function(d) {
|
|
728
|
-
var f, p = d === void 0 ? {} : d,
|
|
726
|
+
var f, p = d === void 0 ? {} : d, _ = p.onMouseMove, y = p.onMouseDown, V = p.onClick;
|
|
729
727
|
p.onPress;
|
|
730
|
-
var
|
|
728
|
+
var b = p.index, A = p.item, P = A === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
731
729
|
/* istanbul ignore next */
|
|
732
730
|
void 0
|
|
733
|
-
) : _r("getItemProps", "item") : A,
|
|
734
|
-
|
|
735
|
-
var
|
|
731
|
+
) : _r("getItemProps", "item") : A, w = fe(p, Sr);
|
|
732
|
+
b === void 0 ? (e.items.push(P), b = e.items.indexOf(P)) : e.items[b] = P;
|
|
733
|
+
var S = "onClick", k = V, H = (f = {
|
|
736
734
|
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
737
735
|
// is only triggered on actual mouse movement while onMouseEnter
|
|
738
736
|
// can fire on DOM changes, interrupting keyboard navigation
|
|
739
|
-
onMouseMove:
|
|
740
|
-
|
|
737
|
+
onMouseMove: Q(_, function() {
|
|
738
|
+
b !== e.getState().highlightedIndex && (e.setHighlightedIndex(b, {
|
|
741
739
|
type: vn
|
|
742
740
|
}), e.avoidScrolling = !0, e.internalSetTimeout(function() {
|
|
743
741
|
return e.avoidScrolling = !1;
|
|
744
742
|
}, 250));
|
|
745
743
|
}),
|
|
746
|
-
onMouseDown:
|
|
747
|
-
|
|
744
|
+
onMouseDown: Q(y, function(Y) {
|
|
745
|
+
Y.preventDefault();
|
|
748
746
|
})
|
|
749
|
-
}, f[
|
|
750
|
-
e.selectItemAtIndex(
|
|
747
|
+
}, f[S] = Q(k, function() {
|
|
748
|
+
e.selectItemAtIndex(b, {
|
|
751
749
|
type: wn
|
|
752
750
|
});
|
|
753
|
-
}), f), q =
|
|
754
|
-
onMouseDown:
|
|
755
|
-
} :
|
|
756
|
-
return
|
|
757
|
-
id: e.getItemId(
|
|
751
|
+
}), f), q = w.disabled ? {
|
|
752
|
+
onMouseDown: H.onMouseDown
|
|
753
|
+
} : H;
|
|
754
|
+
return T({
|
|
755
|
+
id: e.getItemId(b),
|
|
758
756
|
role: "option",
|
|
759
|
-
"aria-selected": e.getState().highlightedIndex ===
|
|
760
|
-
}, q,
|
|
757
|
+
"aria-selected": e.getState().highlightedIndex === b
|
|
758
|
+
}, q, w);
|
|
761
759
|
}, e.clearItems = function() {
|
|
762
760
|
e.items = [];
|
|
763
761
|
}, e.reset = function(d, f) {
|
|
764
762
|
d === void 0 && (d = {}), d = Fe(d), e.internalSetState(function(p) {
|
|
765
|
-
var
|
|
766
|
-
return
|
|
763
|
+
var _ = p.selectedItem;
|
|
764
|
+
return T({
|
|
767
765
|
isOpen: e.props.defaultIsOpen,
|
|
768
766
|
highlightedIndex: e.props.defaultHighlightedIndex,
|
|
769
|
-
inputValue: e.props.itemToString(
|
|
767
|
+
inputValue: e.props.itemToString(_)
|
|
770
768
|
}, d);
|
|
771
769
|
}, f);
|
|
772
770
|
}, e.toggleMenu = function(d, f) {
|
|
773
771
|
d === void 0 && (d = {}), d = Fe(d), e.internalSetState(function(p) {
|
|
774
|
-
var
|
|
775
|
-
return
|
|
776
|
-
isOpen: !
|
|
777
|
-
},
|
|
772
|
+
var _ = p.isOpen;
|
|
773
|
+
return T({
|
|
774
|
+
isOpen: !_
|
|
775
|
+
}, _ && {
|
|
778
776
|
highlightedIndex: e.props.defaultHighlightedIndex
|
|
779
777
|
}, d);
|
|
780
778
|
}, function() {
|
|
781
|
-
var p = e.getState(),
|
|
782
|
-
|
|
779
|
+
var p = e.getState(), _ = p.isOpen, y = p.highlightedIndex;
|
|
780
|
+
_ && e.getItemCount() > 0 && typeof y == "number" && e.setHighlightedIndex(y, d), Yt(f)();
|
|
783
781
|
});
|
|
784
782
|
}, e.openMenu = function(d) {
|
|
785
783
|
e.internalSetState({
|
|
@@ -792,22 +790,22 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
792
790
|
}, e.updateStatus = rt(function() {
|
|
793
791
|
var d;
|
|
794
792
|
if ((d = e.props) != null && (d = d.environment) != null && d.document) {
|
|
795
|
-
var f = e.getState(), p = e.items[f.highlightedIndex],
|
|
793
|
+
var f = e.getState(), p = e.items[f.highlightedIndex], _ = e.getItemCount(), y = e.props.getA11yStatusMessage(T({
|
|
796
794
|
itemToString: e.props.itemToString,
|
|
797
795
|
previousResultCount: e.previousResultCount,
|
|
798
|
-
resultCount:
|
|
796
|
+
resultCount: _,
|
|
799
797
|
highlightedItem: p
|
|
800
798
|
}, f));
|
|
801
|
-
e.previousResultCount =
|
|
799
|
+
e.previousResultCount = _, it(y, e.props.environment.document);
|
|
802
800
|
}
|
|
803
801
|
}, 200);
|
|
804
|
-
var s = e.props, u = s.defaultHighlightedIndex,
|
|
802
|
+
var s = e.props, u = s.defaultHighlightedIndex, c = s.initialHighlightedIndex, a = c === void 0 ? u : c, l = s.defaultIsOpen, m = s.initialIsOpen, O = m === void 0 ? l : m, x = s.initialInputValue, E = x === void 0 ? "" : x, R = s.initialSelectedItem, h = R === void 0 ? null : R, $ = e.getState({
|
|
805
803
|
highlightedIndex: a,
|
|
806
|
-
isOpen:
|
|
804
|
+
isOpen: O,
|
|
807
805
|
inputValue: E,
|
|
808
806
|
selectedItem: h
|
|
809
807
|
});
|
|
810
|
-
return
|
|
808
|
+
return $.selectedItem != null && e.props.initialInputValue === void 0 && ($.inputValue = e.props.itemToString($.selectedItem)), e.state = $, e;
|
|
811
809
|
}
|
|
812
810
|
var i = r.prototype;
|
|
813
811
|
return i.internalClearTimeouts = function() {
|
|
@@ -827,46 +825,46 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
827
825
|
this.props.scrollIntoView(e, this._menuNode);
|
|
828
826
|
}
|
|
829
827
|
}, i.moveHighlightedIndex = function(e, s) {
|
|
830
|
-
var u = this.getItemCount(),
|
|
828
|
+
var u = this.getItemCount(), c = this.getState(), a = c.highlightedIndex;
|
|
831
829
|
if (u > 0) {
|
|
832
|
-
var
|
|
830
|
+
var l = be(a, e, {
|
|
833
831
|
length: u
|
|
834
832
|
}, this.isItemDisabled, !0);
|
|
835
|
-
this.setHighlightedIndex(
|
|
833
|
+
this.setHighlightedIndex(l, s);
|
|
836
834
|
}
|
|
837
835
|
}, i.getStateAndHelpers = function() {
|
|
838
|
-
var e = this.getState(), s = e.highlightedIndex, u = e.inputValue,
|
|
836
|
+
var e = this.getState(), s = e.highlightedIndex, u = e.inputValue, c = e.selectedItem, a = e.isOpen, l = this.props.itemToString, m = this.id, O = this.getRootProps, x = this.getToggleButtonProps, E = this.getLabelProps, R = this.getMenuProps, h = this.getInputProps, $ = this.getItemProps, d = this.openMenu, f = this.closeMenu, p = this.toggleMenu, _ = this.selectItem, y = this.selectItemAtIndex, V = this.selectHighlightedItem, b = this.setHighlightedIndex, A = this.clearSelection, P = this.clearItems, w = this.reset, S = this.setItemCount, k = this.unsetItemCount, H = this.internalSetState;
|
|
839
837
|
return {
|
|
840
838
|
// prop getters
|
|
841
|
-
getRootProps:
|
|
842
|
-
getToggleButtonProps:
|
|
839
|
+
getRootProps: O,
|
|
840
|
+
getToggleButtonProps: x,
|
|
843
841
|
getLabelProps: E,
|
|
844
|
-
getMenuProps:
|
|
842
|
+
getMenuProps: R,
|
|
845
843
|
getInputProps: h,
|
|
846
|
-
getItemProps:
|
|
844
|
+
getItemProps: $,
|
|
847
845
|
// actions
|
|
848
|
-
reset:
|
|
846
|
+
reset: w,
|
|
849
847
|
openMenu: d,
|
|
850
848
|
closeMenu: f,
|
|
851
849
|
toggleMenu: p,
|
|
852
|
-
selectItem:
|
|
853
|
-
selectItemAtIndex:
|
|
854
|
-
selectHighlightedItem:
|
|
855
|
-
setHighlightedIndex:
|
|
850
|
+
selectItem: _,
|
|
851
|
+
selectItemAtIndex: y,
|
|
852
|
+
selectHighlightedItem: V,
|
|
853
|
+
setHighlightedIndex: b,
|
|
856
854
|
clearSelection: A,
|
|
857
|
-
clearItems:
|
|
858
|
-
setItemCount:
|
|
859
|
-
unsetItemCount:
|
|
860
|
-
setState:
|
|
855
|
+
clearItems: P,
|
|
856
|
+
setItemCount: S,
|
|
857
|
+
unsetItemCount: k,
|
|
858
|
+
setState: H,
|
|
861
859
|
// props
|
|
862
|
-
itemToString:
|
|
860
|
+
itemToString: l,
|
|
863
861
|
// derived
|
|
864
862
|
id: m,
|
|
865
863
|
// state
|
|
866
864
|
highlightedIndex: s,
|
|
867
865
|
inputValue: u,
|
|
868
866
|
isOpen: a,
|
|
869
|
-
selectedItem:
|
|
867
|
+
selectedItem: c
|
|
870
868
|
};
|
|
871
869
|
}, i.componentDidMount = function() {
|
|
872
870
|
var e = this;
|
|
@@ -877,33 +875,33 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
877
875
|
else {
|
|
878
876
|
var s = function() {
|
|
879
877
|
e.isMouseDown = !0;
|
|
880
|
-
}, u = function(
|
|
878
|
+
}, u = function(x) {
|
|
881
879
|
e.isMouseDown = !1;
|
|
882
|
-
var E =
|
|
880
|
+
var E = qe(x.target, [e._rootNode, e._menuNode], e.props.environment);
|
|
883
881
|
!E && e.getState().isOpen && e.reset({
|
|
884
882
|
type: mn
|
|
885
883
|
}, function() {
|
|
886
884
|
return e.props.onOuterClick(e.getStateAndHelpers());
|
|
887
885
|
});
|
|
888
|
-
},
|
|
886
|
+
}, c = function() {
|
|
889
887
|
e.isTouchMove = !1;
|
|
890
888
|
}, a = function() {
|
|
891
889
|
e.isTouchMove = !0;
|
|
892
|
-
},
|
|
893
|
-
var E =
|
|
890
|
+
}, l = function(x) {
|
|
891
|
+
var E = qe(x.target, [e._rootNode, e._menuNode], e.props.environment, !1);
|
|
894
892
|
!e.isTouchMove && !E && e.getState().isOpen && e.reset({
|
|
895
893
|
type: Sn
|
|
896
894
|
}, function() {
|
|
897
895
|
return e.props.onOuterClick(e.getStateAndHelpers());
|
|
898
896
|
});
|
|
899
897
|
}, m = this.props.environment;
|
|
900
|
-
m.addEventListener("mousedown", s), m.addEventListener("mouseup", u), m.addEventListener("touchstart",
|
|
901
|
-
e.internalClearTimeouts(), e.updateStatus.cancel(), m.removeEventListener("mousedown", s), m.removeEventListener("mouseup", u), m.removeEventListener("touchstart",
|
|
898
|
+
m.addEventListener("mousedown", s), m.addEventListener("mouseup", u), m.addEventListener("touchstart", c), m.addEventListener("touchmove", a), m.addEventListener("touchend", l), this.cleanup = function() {
|
|
899
|
+
e.internalClearTimeouts(), e.updateStatus.cancel(), m.removeEventListener("mousedown", s), m.removeEventListener("mouseup", u), m.removeEventListener("touchstart", c), m.removeEventListener("touchmove", a), m.removeEventListener("touchend", l);
|
|
902
900
|
};
|
|
903
901
|
}
|
|
904
902
|
}, i.shouldScroll = function(e, s) {
|
|
905
|
-
var u = this.props.highlightedIndex === void 0 ? this.getState() : this.props,
|
|
906
|
-
return m ||
|
|
903
|
+
var u = this.props.highlightedIndex === void 0 ? this.getState() : this.props, c = u.highlightedIndex, a = s.highlightedIndex === void 0 ? e : s, l = a.highlightedIndex, m = c && this.getState().isOpen && !e.isOpen, O = c !== l;
|
|
904
|
+
return m || O;
|
|
907
905
|
}, i.componentDidUpdate = function(e, s) {
|
|
908
906
|
process.env.NODE_ENV !== "production" && (ot(this.state, e, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && Xt(this._menuNode, this.getMenuProps)), We(this.props, "selectedItem") && this.props.selectedItemChanged(e.selectedItem, this.props.selectedItem) && this.internalSetState({
|
|
909
907
|
type: Dn,
|
|
@@ -912,7 +910,7 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
912
910
|
}, i.componentWillUnmount = function() {
|
|
913
911
|
this.cleanup();
|
|
914
912
|
}, i.render = function() {
|
|
915
|
-
var e = Gt(this.props.children,
|
|
913
|
+
var e = Gt(this.props.children, pe);
|
|
916
914
|
this.clearItems(), this.getRootProps.called = !1, this.getRootProps.refKey = void 0, this.getRootProps.suppressRefError = void 0, this.getMenuProps.called = !1, this.getMenuProps.refKey = void 0, this.getMenuProps.suppressRefError = void 0, this.getLabelProps.called = !1, this.getInputProps.called = !1;
|
|
917
915
|
var s = Gt(e(this.getStateAndHelpers()));
|
|
918
916
|
if (!s)
|
|
@@ -932,12 +930,12 @@ var hn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
932
930
|
itemToString: function(r) {
|
|
933
931
|
return r == null ? "" : (process.env.NODE_ENV !== "production" && Er(r) && !r.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", r), String(r));
|
|
934
932
|
},
|
|
935
|
-
onStateChange:
|
|
936
|
-
onInputValueChange:
|
|
937
|
-
onUserAction:
|
|
938
|
-
onChange:
|
|
939
|
-
onSelect:
|
|
940
|
-
onOuterClick:
|
|
933
|
+
onStateChange: pe,
|
|
934
|
+
onInputValueChange: pe,
|
|
935
|
+
onUserAction: pe,
|
|
936
|
+
onChange: pe,
|
|
937
|
+
onSelect: pe,
|
|
938
|
+
onOuterClick: pe,
|
|
941
939
|
selectedItemChanged: function(r, i) {
|
|
942
940
|
return r !== i;
|
|
943
941
|
},
|
|
@@ -1006,23 +1004,23 @@ function Rr(t, n) {
|
|
|
1006
1004
|
var r = n.refKey, i = r !== "ref", o = !pn(t);
|
|
1007
1005
|
o && !i && !Ut.isForwardRef(t) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !o && i && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + r + '"'), !Ut.isForwardRef(t) && !fn(t)[r] && console.error('downshift: You must apply the ref prop "' + r + '" from getRootProps onto your root element.');
|
|
1008
1006
|
}
|
|
1009
|
-
var
|
|
1007
|
+
var Mr = ["highlightedIndex", "items", "environment"], Nn = {
|
|
1010
1008
|
highlightedIndex: -1,
|
|
1011
1009
|
isOpen: !1,
|
|
1012
1010
|
selectedItem: null,
|
|
1013
1011
|
inputValue: ""
|
|
1014
1012
|
};
|
|
1015
|
-
function
|
|
1013
|
+
function Pr(t, n, r) {
|
|
1016
1014
|
var i = t.props, o = t.type, e = {};
|
|
1017
1015
|
Object.keys(n).forEach(function(s) {
|
|
1018
1016
|
Vr(s, t, n, r), r[s] !== n[s] && (e[s] = r[s]);
|
|
1019
|
-
}), i.onStateChange && Object.keys(e).length && i.onStateChange(
|
|
1017
|
+
}), i.onStateChange && Object.keys(e).length && i.onStateChange(T({
|
|
1020
1018
|
type: o
|
|
1021
1019
|
}, e));
|
|
1022
1020
|
}
|
|
1023
1021
|
function Vr(t, n, r, i) {
|
|
1024
1022
|
var o = n.props, e = n.type, s = "on" + st(t) + "Change";
|
|
1025
|
-
o[s] && i[t] !== void 0 && i[t] !== r[t] && o[s](
|
|
1023
|
+
o[s] && i[t] !== void 0 && i[t] !== r[t] && o[s](T({
|
|
1026
1024
|
type: e
|
|
1027
1025
|
}, i));
|
|
1028
1026
|
}
|
|
@@ -1035,28 +1033,28 @@ function Tr(t) {
|
|
|
1035
1033
|
}
|
|
1036
1034
|
var Ar = rt(function(t, n) {
|
|
1037
1035
|
it(t(), n);
|
|
1038
|
-
}, 200), Hr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? sn :
|
|
1039
|
-
var r = n.id, i = n.labelId, o = n.menuId, e = n.getItemId, s = n.toggleButtonId, u = n.inputId,
|
|
1040
|
-
r || (r =
|
|
1041
|
-
var a =
|
|
1036
|
+
}, 200), Hr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? sn : ue, Kr = "useId" in Ue ? function(n) {
|
|
1037
|
+
var r = n.id, i = n.labelId, o = n.menuId, e = n.getItemId, s = n.toggleButtonId, u = n.inputId, c = "downshift-" + Ue.useId();
|
|
1038
|
+
r || (r = c);
|
|
1039
|
+
var a = ie({
|
|
1042
1040
|
labelId: i || r + "-label",
|
|
1043
1041
|
menuId: o || r + "-menu",
|
|
1044
|
-
getItemId: e || function(
|
|
1045
|
-
return r + "-item-" +
|
|
1042
|
+
getItemId: e || function(l) {
|
|
1043
|
+
return r + "-item-" + l;
|
|
1046
1044
|
},
|
|
1047
1045
|
toggleButtonId: s || r + "-toggle-button",
|
|
1048
1046
|
inputId: u || r + "-input"
|
|
1049
1047
|
});
|
|
1050
1048
|
return a.current;
|
|
1051
1049
|
} : function(n) {
|
|
1052
|
-
var r = n.id, i = r === void 0 ? "downshift-" + cn() : r, o = n.labelId, e = n.menuId, s = n.getItemId, u = n.toggleButtonId,
|
|
1050
|
+
var r = n.id, i = r === void 0 ? "downshift-" + cn() : r, o = n.labelId, e = n.menuId, s = n.getItemId, u = n.toggleButtonId, c = n.inputId, a = ie({
|
|
1053
1051
|
labelId: o || i + "-label",
|
|
1054
1052
|
menuId: e || i + "-menu",
|
|
1055
|
-
getItemId: s || function(
|
|
1056
|
-
return i + "-item-" +
|
|
1053
|
+
getItemId: s || function(l) {
|
|
1054
|
+
return i + "-item-" + l;
|
|
1057
1055
|
},
|
|
1058
1056
|
toggleButtonId: u || i + "-toggle-button",
|
|
1059
|
-
inputId:
|
|
1057
|
+
inputId: c || i + "-input"
|
|
1060
1058
|
});
|
|
1061
1059
|
return a.current;
|
|
1062
1060
|
};
|
|
@@ -1074,31 +1072,31 @@ function st(t) {
|
|
|
1074
1072
|
return "" + t.slice(0, 1).toUpperCase() + t.slice(1);
|
|
1075
1073
|
}
|
|
1076
1074
|
function ut(t) {
|
|
1077
|
-
var n =
|
|
1075
|
+
var n = ie(t);
|
|
1078
1076
|
return n.current = t, n;
|
|
1079
1077
|
}
|
|
1080
|
-
function
|
|
1081
|
-
var o =
|
|
1082
|
-
e.current = E,
|
|
1083
|
-
var
|
|
1084
|
-
changes:
|
|
1078
|
+
function Mn(t, n, r, i) {
|
|
1079
|
+
var o = ie(), e = ie(), s = X(function(x, E) {
|
|
1080
|
+
e.current = E, x = Ve(x, E.props);
|
|
1081
|
+
var R = t(x, E), h = E.props.stateReducer(x, T({}, E, {
|
|
1082
|
+
changes: R
|
|
1085
1083
|
}));
|
|
1086
1084
|
return h;
|
|
1087
|
-
}, [t]), u = Zn(s, n, r),
|
|
1088
|
-
return a(
|
|
1089
|
-
props:
|
|
1090
|
-
},
|
|
1091
|
-
}, [
|
|
1092
|
-
return
|
|
1093
|
-
var
|
|
1094
|
-
E &&
|
|
1095
|
-
}, [
|
|
1085
|
+
}, [t]), u = Zn(s, n, r), c = u[0], a = u[1], l = ut(n), m = X(function(x) {
|
|
1086
|
+
return a(T({
|
|
1087
|
+
props: l.current
|
|
1088
|
+
}, x));
|
|
1089
|
+
}, [l]), O = e.current;
|
|
1090
|
+
return ue(function() {
|
|
1091
|
+
var x = Ve(o.current, O == null ? void 0 : O.props), E = O && o.current && !i(x, c);
|
|
1092
|
+
E && Pr(O, x, c), o.current = c;
|
|
1093
|
+
}, [c, O, i]), [c, m];
|
|
1096
1094
|
}
|
|
1097
1095
|
function jr(t, n, r, i) {
|
|
1098
|
-
var o =
|
|
1096
|
+
var o = Mn(t, n, r, i), e = o[0], s = o[1];
|
|
1099
1097
|
return [Ve(e, n), s];
|
|
1100
1098
|
}
|
|
1101
|
-
var
|
|
1099
|
+
var Oe = {
|
|
1102
1100
|
itemToString: function(n) {
|
|
1103
1101
|
return n ? String(n) : "";
|
|
1104
1102
|
},
|
|
@@ -1118,7 +1116,7 @@ function he(t, n, r) {
|
|
|
1118
1116
|
var i = t["default" + st(n)];
|
|
1119
1117
|
return i !== void 0 ? i : r[n];
|
|
1120
1118
|
}
|
|
1121
|
-
function
|
|
1119
|
+
function Ce(t, n, r) {
|
|
1122
1120
|
r === void 0 && (r = Nn);
|
|
1123
1121
|
var i = t[n];
|
|
1124
1122
|
if (i !== void 0)
|
|
@@ -1127,7 +1125,7 @@ function Oe(t, n, r) {
|
|
|
1127
1125
|
return o !== void 0 ? o : he(t, n, r);
|
|
1128
1126
|
}
|
|
1129
1127
|
function $r(t) {
|
|
1130
|
-
var n =
|
|
1128
|
+
var n = Ce(t, "selectedItem"), r = Ce(t, "isOpen"), i = Ce(t, "highlightedIndex"), o = Ce(t, "inputValue");
|
|
1131
1129
|
return {
|
|
1132
1130
|
highlightedIndex: i < 0 && n && r ? t.items.findIndex(function(e) {
|
|
1133
1131
|
return t.itemToKey(e) === t.itemToKey(n);
|
|
@@ -1137,78 +1135,78 @@ function $r(t) {
|
|
|
1137
1135
|
inputValue: o
|
|
1138
1136
|
};
|
|
1139
1137
|
}
|
|
1140
|
-
function
|
|
1141
|
-
var i = t.items, o = t.initialHighlightedIndex, e = t.defaultHighlightedIndex, s = t.itemToKey, u = n.selectedItem,
|
|
1142
|
-
return i.length === 0 ? -1 : o !== void 0 &&
|
|
1138
|
+
function Me(t, n, r) {
|
|
1139
|
+
var i = t.items, o = t.initialHighlightedIndex, e = t.defaultHighlightedIndex, s = t.itemToKey, u = n.selectedItem, c = n.highlightedIndex;
|
|
1140
|
+
return i.length === 0 ? -1 : o !== void 0 && c === o ? o : e !== void 0 ? e : u ? i.findIndex(function(a) {
|
|
1143
1141
|
return s(u) === s(a);
|
|
1144
1142
|
}) : r === 0 ? -1 : r < 0 ? i.length - 1 : 0;
|
|
1145
1143
|
}
|
|
1146
1144
|
function Fr(t, n, r) {
|
|
1147
|
-
var i =
|
|
1145
|
+
var i = ie({
|
|
1148
1146
|
isMouseDown: !1,
|
|
1149
1147
|
isTouchMove: !1,
|
|
1150
1148
|
isTouchEnd: !1
|
|
1151
1149
|
});
|
|
1152
|
-
return
|
|
1150
|
+
return ue(function() {
|
|
1153
1151
|
if (!t)
|
|
1154
|
-
return
|
|
1155
|
-
var o = n.map(function(
|
|
1156
|
-
return
|
|
1152
|
+
return pe;
|
|
1153
|
+
var o = n.map(function(l) {
|
|
1154
|
+
return l.current;
|
|
1157
1155
|
});
|
|
1158
1156
|
function e() {
|
|
1159
1157
|
i.current.isTouchEnd = !1, i.current.isMouseDown = !0;
|
|
1160
1158
|
}
|
|
1161
|
-
function s(
|
|
1162
|
-
i.current.isMouseDown = !1,
|
|
1159
|
+
function s(l) {
|
|
1160
|
+
i.current.isMouseDown = !1, qe(l.target, o, t) || r();
|
|
1163
1161
|
}
|
|
1164
1162
|
function u() {
|
|
1165
1163
|
i.current.isTouchEnd = !1, i.current.isTouchMove = !1;
|
|
1166
1164
|
}
|
|
1167
|
-
function
|
|
1165
|
+
function c() {
|
|
1168
1166
|
i.current.isTouchMove = !0;
|
|
1169
1167
|
}
|
|
1170
|
-
function a(
|
|
1171
|
-
i.current.isTouchEnd = !0, !i.current.isTouchMove && !
|
|
1168
|
+
function a(l) {
|
|
1169
|
+
i.current.isTouchEnd = !0, !i.current.isTouchMove && !qe(l.target, o, t, !1) && r();
|
|
1172
1170
|
}
|
|
1173
|
-
return t.addEventListener("mousedown", e), t.addEventListener("mouseup", s), t.addEventListener("touchstart", u), t.addEventListener("touchmove",
|
|
1174
|
-
t.removeEventListener("mousedown", e), t.removeEventListener("mouseup", s), t.removeEventListener("touchstart", u), t.removeEventListener("touchmove",
|
|
1171
|
+
return t.addEventListener("mousedown", e), t.addEventListener("mouseup", s), t.addEventListener("touchstart", u), t.addEventListener("touchmove", c), t.addEventListener("touchend", a), function() {
|
|
1172
|
+
t.removeEventListener("mousedown", e), t.removeEventListener("mouseup", s), t.removeEventListener("touchstart", u), t.removeEventListener("touchmove", c), t.removeEventListener("touchend", a);
|
|
1175
1173
|
};
|
|
1176
1174
|
}, [t, r]), i.current;
|
|
1177
1175
|
}
|
|
1178
1176
|
var lt = function() {
|
|
1179
|
-
return
|
|
1177
|
+
return pe;
|
|
1180
1178
|
};
|
|
1181
1179
|
process.env.NODE_ENV !== "production" && (lt = function() {
|
|
1182
|
-
for (var n =
|
|
1180
|
+
for (var n = ie(!0), r = arguments.length, i = new Array(r), o = 0; o < r; o++)
|
|
1183
1181
|
i[o] = arguments[o];
|
|
1184
|
-
var e =
|
|
1185
|
-
return u[
|
|
1182
|
+
var e = ie(i.reduce(function(u, c) {
|
|
1183
|
+
return u[c] = {}, u;
|
|
1186
1184
|
}, {}));
|
|
1187
|
-
|
|
1185
|
+
ue(function() {
|
|
1188
1186
|
Object.keys(e.current).forEach(function(u) {
|
|
1189
|
-
var
|
|
1190
|
-
if (n.current && !Object.keys(
|
|
1187
|
+
var c = e.current[u];
|
|
1188
|
+
if (n.current && !Object.keys(c).length) {
|
|
1191
1189
|
console.error("downshift: You forgot to call the " + u + " getter function on your component / element.");
|
|
1192
1190
|
return;
|
|
1193
1191
|
}
|
|
1194
|
-
var a =
|
|
1195
|
-
(!m || !m.current) && !a && console.error('downshift: The ref prop "' +
|
|
1192
|
+
var a = c.suppressRefError, l = c.refKey, m = c.elementRef;
|
|
1193
|
+
(!m || !m.current) && !a && console.error('downshift: The ref prop "' + l + '" from ' + u + " was not applied correctly on your element.");
|
|
1196
1194
|
}), n.current = !1;
|
|
1197
1195
|
});
|
|
1198
|
-
var s =
|
|
1196
|
+
var s = X(function(u, c, a, l) {
|
|
1199
1197
|
e.current[u] = {
|
|
1200
|
-
suppressRefError:
|
|
1198
|
+
suppressRefError: c,
|
|
1201
1199
|
refKey: a,
|
|
1202
|
-
elementRef:
|
|
1200
|
+
elementRef: l
|
|
1203
1201
|
};
|
|
1204
1202
|
}, []);
|
|
1205
1203
|
return s;
|
|
1206
1204
|
});
|
|
1207
1205
|
function Jt(t, n, r) {
|
|
1208
|
-
var i = r.highlightedIndex, o = r.items, e = r.environment, s = fe(r,
|
|
1209
|
-
|
|
1206
|
+
var i = r.highlightedIndex, o = r.items, e = r.environment, s = fe(r, Mr), u = Te();
|
|
1207
|
+
ue(function() {
|
|
1210
1208
|
u || !(e != null && e.document) || Ar(function() {
|
|
1211
|
-
return t(
|
|
1209
|
+
return t(T({
|
|
1212
1210
|
highlightedIndex: i,
|
|
1213
1211
|
highlightedItem: o[i],
|
|
1214
1212
|
resultCount: o.length
|
|
@@ -1217,15 +1215,15 @@ function Jt(t, n, r) {
|
|
|
1217
1215
|
}, n);
|
|
1218
1216
|
}
|
|
1219
1217
|
function Lr(t) {
|
|
1220
|
-
var n = t.highlightedIndex, r = t.isOpen, i = t.itemRefs, o = t.getItemNodeFromIndex, e = t.menuElement, s = t.scrollIntoView, u =
|
|
1218
|
+
var n = t.highlightedIndex, r = t.isOpen, i = t.itemRefs, o = t.getItemNodeFromIndex, e = t.menuElement, s = t.scrollIntoView, u = ie(!0);
|
|
1221
1219
|
return Hr(function() {
|
|
1222
1220
|
n < 0 || !r || !Object.keys(i.current).length || (u.current === !1 ? u.current = !0 : s(o(n), e));
|
|
1223
1221
|
}, [n]), u;
|
|
1224
1222
|
}
|
|
1225
|
-
var at =
|
|
1223
|
+
var at = pe;
|
|
1226
1224
|
process.env.NODE_ENV !== "production" && (at = function(n) {
|
|
1227
|
-
var r = n.props, i = n.state, o =
|
|
1228
|
-
|
|
1225
|
+
var r = n.props, i = n.state, o = ie(r), e = Te();
|
|
1226
|
+
ue(function() {
|
|
1229
1227
|
e || (ot(i, o.current, r), o.current = r);
|
|
1230
1228
|
}, [i, r, e]);
|
|
1231
1229
|
});
|
|
@@ -1233,10 +1231,10 @@ function Qt(t, n, r) {
|
|
|
1233
1231
|
var i;
|
|
1234
1232
|
r === void 0 && (r = !0);
|
|
1235
1233
|
var o = ((i = t.items) == null ? void 0 : i.length) && n >= 0;
|
|
1236
|
-
return
|
|
1234
|
+
return T({
|
|
1237
1235
|
isOpen: !1,
|
|
1238
1236
|
highlightedIndex: -1
|
|
1239
|
-
}, o &&
|
|
1237
|
+
}, o && T({
|
|
1240
1238
|
selectedItem: t.items[n],
|
|
1241
1239
|
isOpen: he(t, "isOpen"),
|
|
1242
1240
|
highlightedIndex: he(t, "highlightedIndex")
|
|
@@ -1255,7 +1253,7 @@ function Te() {
|
|
|
1255
1253
|
};
|
|
1256
1254
|
}, []), t.current;
|
|
1257
1255
|
}
|
|
1258
|
-
var
|
|
1256
|
+
var Pn = {
|
|
1259
1257
|
environment: g.shape({
|
|
1260
1258
|
addEventListener: g.func.isRequired,
|
|
1261
1259
|
removeEventListener: g.func.isRequired,
|
|
@@ -1270,7 +1268,7 @@ var Mn = {
|
|
|
1270
1268
|
itemToString: g.func,
|
|
1271
1269
|
itemToKey: g.func,
|
|
1272
1270
|
stateReducer: g.func
|
|
1273
|
-
}, Vn =
|
|
1271
|
+
}, Vn = T({}, Pn, {
|
|
1274
1272
|
getA11yStatusMessage: g.func,
|
|
1275
1273
|
highlightedIndex: g.number,
|
|
1276
1274
|
defaultHighlightedIndex: g.number,
|
|
@@ -1309,13 +1307,13 @@ function Ur(t, n, r) {
|
|
|
1309
1307
|
case r.FunctionToggleMenu:
|
|
1310
1308
|
e = {
|
|
1311
1309
|
isOpen: !t.isOpen,
|
|
1312
|
-
highlightedIndex: t.isOpen ? -1 :
|
|
1310
|
+
highlightedIndex: t.isOpen ? -1 : Me(o, t, 0)
|
|
1313
1311
|
};
|
|
1314
1312
|
break;
|
|
1315
1313
|
case r.FunctionOpenMenu:
|
|
1316
1314
|
e = {
|
|
1317
1315
|
isOpen: !0,
|
|
1318
|
-
highlightedIndex:
|
|
1316
|
+
highlightedIndex: Me(o, t, 0)
|
|
1319
1317
|
};
|
|
1320
1318
|
break;
|
|
1321
1319
|
case r.FunctionCloseMenu:
|
|
@@ -1344,14 +1342,14 @@ function Ur(t, n, r) {
|
|
|
1344
1342
|
default:
|
|
1345
1343
|
throw new Error("Reducer called without proper action type.");
|
|
1346
1344
|
}
|
|
1347
|
-
return
|
|
1345
|
+
return T({}, t, e);
|
|
1348
1346
|
}
|
|
1349
1347
|
De(De({}, Vn), { items: g.array.isRequired, isItemDisabled: g.func, getA11ySelectionMessage: g.func });
|
|
1350
1348
|
function Wr(t) {
|
|
1351
1349
|
var n = t.isOpen, r = t.resultCount, i = t.previousResultCount;
|
|
1352
1350
|
return n ? r ? r !== i ? "".concat(r, " result").concat(r === 1 ? " is" : "s are", " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.") : "" : "No results are available." : "";
|
|
1353
1351
|
}
|
|
1354
|
-
De(De({},
|
|
1352
|
+
De(De({}, Oe), { getA11yStatusMessage: Wr, isItemDisabled: function() {
|
|
1355
1353
|
return !1;
|
|
1356
1354
|
} });
|
|
1357
1355
|
process.env.NODE_ENV;
|
|
@@ -1377,7 +1375,7 @@ process.env.NODE_ENV;
|
|
|
1377
1375
|
process.env.NODE_ENV;
|
|
1378
1376
|
process.env.NODE_ENV;
|
|
1379
1377
|
process.env.NODE_ENV;
|
|
1380
|
-
var ct = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, dt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, pt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, ft = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, gt = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, ht = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, mt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, vt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, It = process.env.NODE_ENV !== "production" ? "__input_change__" : 8,
|
|
1378
|
+
var ct = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, dt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, pt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, ft = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, gt = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, ht = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, mt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, vt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, It = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, Ye = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, _t = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, kn = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, Tn = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, yt = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, An = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, Hn = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Kn = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, jn = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, $n = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, Et = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, Fn = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, Ln = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, wt = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, Bn = /* @__PURE__ */ Object.freeze({
|
|
1381
1379
|
__proto__: null,
|
|
1382
1380
|
InputKeyDownArrowDown: ct,
|
|
1383
1381
|
InputKeyDownArrowUp: dt,
|
|
@@ -1388,7 +1386,7 @@ var ct = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__"
|
|
|
1388
1386
|
InputKeyDownPageDown: mt,
|
|
1389
1387
|
InputKeyDownEnter: vt,
|
|
1390
1388
|
InputChange: It,
|
|
1391
|
-
InputBlur:
|
|
1389
|
+
InputBlur: Ye,
|
|
1392
1390
|
InputClick: _t,
|
|
1393
1391
|
MenuMouseLeave: kn,
|
|
1394
1392
|
ItemMouseMove: Tn,
|
|
@@ -1403,13 +1401,13 @@ var ct = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__"
|
|
|
1403
1401
|
FunctionReset: Ln,
|
|
1404
1402
|
ControlledPropUpdatedSelectedItem: wt
|
|
1405
1403
|
});
|
|
1406
|
-
function
|
|
1404
|
+
function qr(t) {
|
|
1407
1405
|
var n = $r(t), r = n.selectedItem, i = n.inputValue;
|
|
1408
|
-
return i === "" && r && t.defaultInputValue === void 0 && t.initialInputValue === void 0 && t.inputValue === void 0 && (i = t.itemToString(r)),
|
|
1406
|
+
return i === "" && r && t.defaultInputValue === void 0 && t.initialInputValue === void 0 && t.inputValue === void 0 && (i = t.itemToString(r)), T({}, n, {
|
|
1409
1407
|
inputValue: i
|
|
1410
1408
|
});
|
|
1411
1409
|
}
|
|
1412
|
-
var
|
|
1410
|
+
var Yr = T({}, Vn, {
|
|
1413
1411
|
items: g.array.isRequired,
|
|
1414
1412
|
isItemDisabled: g.func,
|
|
1415
1413
|
selectedItemChanged: g.func,
|
|
@@ -1421,10 +1419,10 @@ var qr = V({}, Vn, {
|
|
|
1421
1419
|
onInputValueChange: g.func
|
|
1422
1420
|
});
|
|
1423
1421
|
function zr(t, n, r, i) {
|
|
1424
|
-
var o =
|
|
1425
|
-
return
|
|
1422
|
+
var o = ie(), e = Mn(t, n, r, i), s = e[0], u = e[1], c = Te();
|
|
1423
|
+
return ue(function() {
|
|
1426
1424
|
if (We(n, "selectedItem")) {
|
|
1427
|
-
if (!
|
|
1425
|
+
if (!c) {
|
|
1428
1426
|
var a;
|
|
1429
1427
|
n.selectedItemChanged === void 0 ? a = n.itemToKey(n.selectedItem) !== n.itemToKey(o.current) : (console.warn('The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged'), a = n.selectedItemChanged(o.current, n.selectedItem)), a && u({
|
|
1430
1428
|
type: wt,
|
|
@@ -1435,11 +1433,11 @@ function zr(t, n, r, i) {
|
|
|
1435
1433
|
}
|
|
1436
1434
|
}, [s.selectedItem, n.selectedItem]), [Ve(s, n), u];
|
|
1437
1435
|
}
|
|
1438
|
-
var Un =
|
|
1436
|
+
var Un = pe;
|
|
1439
1437
|
process.env.NODE_ENV !== "production" && (Un = function(n, r) {
|
|
1440
|
-
g.checkPropTypes(
|
|
1438
|
+
g.checkPropTypes(Yr, n, "prop", r.name);
|
|
1441
1439
|
});
|
|
1442
|
-
var Gr =
|
|
1440
|
+
var Gr = T({}, Oe, {
|
|
1443
1441
|
getA11yStatusMessage: dn,
|
|
1444
1442
|
isItemDisabled: function() {
|
|
1445
1443
|
return !1;
|
|
@@ -1460,7 +1458,7 @@ function Xr(t, n) {
|
|
|
1460
1458
|
t.isOpen ? s = {
|
|
1461
1459
|
highlightedIndex: be(t.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
|
|
1462
1460
|
} : s = {
|
|
1463
|
-
highlightedIndex: e && t.selectedItem == null ? -1 :
|
|
1461
|
+
highlightedIndex: e && t.selectedItem == null ? -1 : Me(o, t, 1),
|
|
1464
1462
|
isOpen: o.items.length >= 0
|
|
1465
1463
|
};
|
|
1466
1464
|
break;
|
|
@@ -1468,7 +1466,7 @@ function Xr(t, n) {
|
|
|
1468
1466
|
t.isOpen ? e ? s = Qt(o, t.highlightedIndex) : s = {
|
|
1469
1467
|
highlightedIndex: be(t.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
|
|
1470
1468
|
} : s = {
|
|
1471
|
-
highlightedIndex:
|
|
1469
|
+
highlightedIndex: Me(o, t, -1),
|
|
1472
1470
|
isOpen: o.items.length >= 0
|
|
1473
1471
|
};
|
|
1474
1472
|
break;
|
|
@@ -1476,7 +1474,7 @@ function Xr(t, n) {
|
|
|
1476
1474
|
s = Qt(o, t.highlightedIndex);
|
|
1477
1475
|
break;
|
|
1478
1476
|
case pt:
|
|
1479
|
-
s =
|
|
1477
|
+
s = T({
|
|
1480
1478
|
isOpen: !1,
|
|
1481
1479
|
highlightedIndex: -1
|
|
1482
1480
|
}, !t.isOpen && {
|
|
@@ -1504,8 +1502,8 @@ function Xr(t, n) {
|
|
|
1504
1502
|
highlightedIndex: Se(o.items.length - 1, !0, o.items, o.isItemDisabled)
|
|
1505
1503
|
};
|
|
1506
1504
|
break;
|
|
1507
|
-
case
|
|
1508
|
-
s =
|
|
1505
|
+
case Ye:
|
|
1506
|
+
s = T({
|
|
1509
1507
|
isOpen: !1,
|
|
1510
1508
|
highlightedIndex: -1
|
|
1511
1509
|
}, t.highlightedIndex >= 0 && ((r = o.items) == null ? void 0 : r.length) && n.selectItem && {
|
|
@@ -1523,7 +1521,7 @@ function Xr(t, n) {
|
|
|
1523
1521
|
case _t:
|
|
1524
1522
|
s = {
|
|
1525
1523
|
isOpen: !t.isOpen,
|
|
1526
|
-
highlightedIndex: t.isOpen ? -1 :
|
|
1524
|
+
highlightedIndex: t.isOpen ? -1 : Me(o, t, 0)
|
|
1527
1525
|
};
|
|
1528
1526
|
break;
|
|
1529
1527
|
case Et:
|
|
@@ -1540,241 +1538,241 @@ function Xr(t, n) {
|
|
|
1540
1538
|
default:
|
|
1541
1539
|
return Ur(t, n, Bn);
|
|
1542
1540
|
}
|
|
1543
|
-
return
|
|
1541
|
+
return T({}, t, s);
|
|
1544
1542
|
}
|
|
1545
1543
|
var Jr = ["onMouseLeave", "refKey", "ref"], Qr = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Zr = ["onClick", "onPress", "refKey", "ref"], eo = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
|
|
1546
|
-
|
|
1547
|
-
function
|
|
1548
|
-
t === void 0 && (t = {}), Un(t,
|
|
1549
|
-
var n =
|
|
1544
|
+
de.stateChangeTypes = Bn;
|
|
1545
|
+
function de(t) {
|
|
1546
|
+
t === void 0 && (t = {}), Un(t, de);
|
|
1547
|
+
var n = T({}, Gr, t), r = n.items, i = n.scrollIntoView, o = n.environment, e = n.getA11yStatusMessage, s = n.getA11ySelectionMessage, u = n.itemToString, c = zr(Xr, n, qr, Br), a = c[0], l = c[1], m = a.isOpen, O = a.highlightedIndex, x = a.selectedItem, E = a.inputValue, R = ie(null), h = ie({}), $ = ie(null), d = ie(null), f = Te(), p = Kr(n), _ = ie(), y = ut({
|
|
1550
1548
|
state: a,
|
|
1551
1549
|
props: n
|
|
1552
|
-
}),
|
|
1553
|
-
return h.current[p.getItemId(
|
|
1550
|
+
}), V = X(function(D) {
|
|
1551
|
+
return h.current[p.getItemId(D)];
|
|
1554
1552
|
}, [p]);
|
|
1555
|
-
Jt(e, [m,
|
|
1556
|
-
previousResultCount:
|
|
1553
|
+
Jt(e, [m, O, E, r], T({
|
|
1554
|
+
previousResultCount: _.current,
|
|
1557
1555
|
items: r,
|
|
1558
1556
|
environment: o,
|
|
1559
1557
|
itemToString: u
|
|
1560
|
-
}, a)), Jt(s, [
|
|
1561
|
-
previousResultCount:
|
|
1558
|
+
}, a)), Jt(s, [x], T({
|
|
1559
|
+
previousResultCount: _.current,
|
|
1562
1560
|
items: r,
|
|
1563
1561
|
environment: o,
|
|
1564
1562
|
itemToString: u
|
|
1565
1563
|
}, a));
|
|
1566
|
-
var
|
|
1567
|
-
menuElement:
|
|
1568
|
-
highlightedIndex:
|
|
1564
|
+
var b = Lr({
|
|
1565
|
+
menuElement: R.current,
|
|
1566
|
+
highlightedIndex: O,
|
|
1569
1567
|
isOpen: m,
|
|
1570
1568
|
itemRefs: h,
|
|
1571
1569
|
scrollIntoView: i,
|
|
1572
|
-
getItemNodeFromIndex:
|
|
1570
|
+
getItemNodeFromIndex: V
|
|
1573
1571
|
});
|
|
1574
1572
|
at({
|
|
1575
1573
|
props: n,
|
|
1576
1574
|
state: a
|
|
1577
|
-
}),
|
|
1578
|
-
var
|
|
1579
|
-
|
|
1580
|
-
}, []),
|
|
1581
|
-
f || (
|
|
1575
|
+
}), ue(function() {
|
|
1576
|
+
var D = Ce(n, "isOpen");
|
|
1577
|
+
D && $.current && $.current.focus();
|
|
1578
|
+
}, []), ue(function() {
|
|
1579
|
+
f || (_.current = r.length);
|
|
1582
1580
|
});
|
|
1583
|
-
var A = Fr(o, [d,
|
|
1584
|
-
|
|
1585
|
-
type:
|
|
1581
|
+
var A = Fr(o, [d, R, $], X(function() {
|
|
1582
|
+
y.current.state.isOpen && l({
|
|
1583
|
+
type: Ye,
|
|
1586
1584
|
selectItem: !1
|
|
1587
1585
|
});
|
|
1588
|
-
}, [
|
|
1589
|
-
|
|
1586
|
+
}, [l, y])), P = lt("getInputProps", "getMenuProps");
|
|
1587
|
+
ue(function() {
|
|
1590
1588
|
m || (h.current = {});
|
|
1591
|
-
}, [m]),
|
|
1592
|
-
var
|
|
1593
|
-
!m || !(o != null && o.document) || !(
|
|
1589
|
+
}, [m]), ue(function() {
|
|
1590
|
+
var D;
|
|
1591
|
+
!m || !(o != null && o.document) || !($ != null && (D = $.current) != null && D.focus) || o.document.activeElement !== $.current && $.current.focus();
|
|
1594
1592
|
}, [m, o]);
|
|
1595
|
-
var
|
|
1593
|
+
var w = Qe(function() {
|
|
1596
1594
|
return {
|
|
1597
|
-
ArrowDown: function(
|
|
1598
|
-
|
|
1595
|
+
ArrowDown: function(C) {
|
|
1596
|
+
C.preventDefault(), l({
|
|
1599
1597
|
type: ct,
|
|
1600
|
-
altKey:
|
|
1598
|
+
altKey: C.altKey
|
|
1601
1599
|
});
|
|
1602
1600
|
},
|
|
1603
|
-
ArrowUp: function(
|
|
1604
|
-
|
|
1601
|
+
ArrowUp: function(C) {
|
|
1602
|
+
C.preventDefault(), l({
|
|
1605
1603
|
type: dt,
|
|
1606
|
-
altKey:
|
|
1604
|
+
altKey: C.altKey
|
|
1607
1605
|
});
|
|
1608
1606
|
},
|
|
1609
|
-
Home: function(
|
|
1610
|
-
|
|
1607
|
+
Home: function(C) {
|
|
1608
|
+
y.current.state.isOpen && (C.preventDefault(), l({
|
|
1611
1609
|
type: ft
|
|
1612
1610
|
}));
|
|
1613
1611
|
},
|
|
1614
|
-
End: function(
|
|
1615
|
-
|
|
1612
|
+
End: function(C) {
|
|
1613
|
+
y.current.state.isOpen && (C.preventDefault(), l({
|
|
1616
1614
|
type: gt
|
|
1617
1615
|
}));
|
|
1618
1616
|
},
|
|
1619
|
-
Escape: function(
|
|
1620
|
-
var
|
|
1621
|
-
(
|
|
1617
|
+
Escape: function(C) {
|
|
1618
|
+
var v = y.current.state;
|
|
1619
|
+
(v.isOpen || v.inputValue || v.selectedItem || v.highlightedIndex > -1) && (C.preventDefault(), l({
|
|
1622
1620
|
type: pt
|
|
1623
1621
|
}));
|
|
1624
1622
|
},
|
|
1625
|
-
Enter: function(
|
|
1626
|
-
var
|
|
1627
|
-
!
|
|
1623
|
+
Enter: function(C) {
|
|
1624
|
+
var v = y.current.state;
|
|
1625
|
+
!v.isOpen || C.which === 229 || (C.preventDefault(), l({
|
|
1628
1626
|
type: vt
|
|
1629
1627
|
}));
|
|
1630
1628
|
},
|
|
1631
|
-
PageUp: function(
|
|
1632
|
-
|
|
1629
|
+
PageUp: function(C) {
|
|
1630
|
+
y.current.state.isOpen && (C.preventDefault(), l({
|
|
1633
1631
|
type: ht
|
|
1634
1632
|
}));
|
|
1635
1633
|
},
|
|
1636
|
-
PageDown: function(
|
|
1637
|
-
|
|
1634
|
+
PageDown: function(C) {
|
|
1635
|
+
y.current.state.isOpen && (C.preventDefault(), l({
|
|
1638
1636
|
type: mt
|
|
1639
1637
|
}));
|
|
1640
1638
|
}
|
|
1641
1639
|
};
|
|
1642
|
-
}, [
|
|
1643
|
-
return
|
|
1640
|
+
}, [l, y]), S = X(function(D) {
|
|
1641
|
+
return T({
|
|
1644
1642
|
id: p.labelId,
|
|
1645
1643
|
htmlFor: p.inputId
|
|
1646
|
-
},
|
|
1647
|
-
}, [p]),
|
|
1648
|
-
var
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1651
|
-
}),
|
|
1652
|
-
|
|
1644
|
+
}, D);
|
|
1645
|
+
}, [p]), k = X(function(D, C) {
|
|
1646
|
+
var v, M = D === void 0 ? {} : D, L = M.onMouseLeave, B = M.refKey, F = B === void 0 ? "ref" : B, te = M.ref, ne = fe(M, Jr), oe = C === void 0 ? {} : C, I = oe.suppressRefError, ce = I === void 0 ? !1 : I;
|
|
1647
|
+
return P("getMenuProps", ce, F, R), T((v = {}, v[F] = Ee(te, function(Z) {
|
|
1648
|
+
R.current = Z;
|
|
1649
|
+
}), v.id = p.menuId, v.role = "listbox", v["aria-labelledby"] = ne && ne["aria-label"] ? void 0 : "" + p.labelId, v.onMouseLeave = Q(L, function() {
|
|
1650
|
+
l({
|
|
1653
1651
|
type: kn
|
|
1654
1652
|
});
|
|
1655
|
-
}),
|
|
1656
|
-
}, [
|
|
1657
|
-
var
|
|
1658
|
-
|
|
1659
|
-
var
|
|
1660
|
-
|
|
1661
|
-
var Ne =
|
|
1662
|
-
A.isTouchEnd || ve === me.highlightedIndex || (
|
|
1653
|
+
}), v), ne);
|
|
1654
|
+
}, [l, P, p]), H = X(function(D) {
|
|
1655
|
+
var C, v, M = D === void 0 ? {} : D, L = M.item, B = M.index, F = M.refKey, te = F === void 0 ? "ref" : F, ne = M.ref, oe = M.onMouseMove, I = M.onMouseDown, ce = M.onClick;
|
|
1656
|
+
M.onPress;
|
|
1657
|
+
var Z = M.disabled, xe = fe(M, Qr);
|
|
1658
|
+
Z !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
1659
|
+
var Ne = y.current, He = Ne.props, me = Ne.state, Ke = Rn(L, B, He.items, "Pass either item or index to getItemProps!"), Ge = Ke[0], ve = Ke[1], Re = He.isItemDisabled(Ge, ve), Xe = "onClick", je = ce, Ie = function() {
|
|
1660
|
+
A.isTouchEnd || ve === me.highlightedIndex || (b.current = !1, l({
|
|
1663
1661
|
type: Tn,
|
|
1664
1662
|
index: ve,
|
|
1665
1663
|
disabled: Re
|
|
1666
1664
|
}));
|
|
1667
1665
|
}, we = function() {
|
|
1668
|
-
|
|
1666
|
+
l({
|
|
1669
1667
|
type: yt,
|
|
1670
1668
|
index: ve
|
|
1671
1669
|
});
|
|
1672
1670
|
}, _e = function(Xn) {
|
|
1673
1671
|
return Xn.preventDefault();
|
|
1674
1672
|
};
|
|
1675
|
-
return
|
|
1673
|
+
return T((C = {}, C[te] = Ee(ne, function(ge) {
|
|
1676
1674
|
ge && (h.current[p.getItemId(ve)] = ge);
|
|
1677
|
-
}),
|
|
1678
|
-
onMouseMove:
|
|
1679
|
-
onMouseDown:
|
|
1675
|
+
}), C["aria-disabled"] = Re, C["aria-selected"] = "" + (ve === me.highlightedIndex), C.id = p.getItemId(ve), C.role = "option", C), !Re && (v = {}, v[Xe] = Q(je, we), v), {
|
|
1676
|
+
onMouseMove: Q(oe, Ie),
|
|
1677
|
+
onMouseDown: Q(I, _e)
|
|
1680
1678
|
}, xe);
|
|
1681
|
-
}, [
|
|
1682
|
-
var
|
|
1683
|
-
|
|
1684
|
-
var
|
|
1685
|
-
|
|
1679
|
+
}, [l, p, y, A, b]), q = X(function(D) {
|
|
1680
|
+
var C, v = D === void 0 ? {} : D, M = v.onClick;
|
|
1681
|
+
v.onPress;
|
|
1682
|
+
var L = v.refKey, B = L === void 0 ? "ref" : L, F = v.ref, te = fe(v, Zr), ne = y.current.state, oe = function() {
|
|
1683
|
+
l({
|
|
1686
1684
|
type: An
|
|
1687
1685
|
});
|
|
1688
1686
|
};
|
|
1689
|
-
return
|
|
1690
|
-
d.current =
|
|
1691
|
-
}),
|
|
1692
|
-
onClick:
|
|
1687
|
+
return T((C = {}, C[B] = Ee(F, function(I) {
|
|
1688
|
+
d.current = I;
|
|
1689
|
+
}), C["aria-controls"] = p.menuId, C["aria-expanded"] = ne.isOpen, C.id = p.toggleButtonId, C.tabIndex = -1, C), !te.disabled && T({}, {
|
|
1690
|
+
onClick: Q(M, oe)
|
|
1693
1691
|
}), te);
|
|
1694
|
-
}, [
|
|
1695
|
-
var
|
|
1696
|
-
|
|
1697
|
-
var
|
|
1698
|
-
|
|
1699
|
-
var me =
|
|
1692
|
+
}, [l, y, p]), Y = X(function(D, C) {
|
|
1693
|
+
var v, M = D === void 0 ? {} : D, L = M.onKeyDown, B = M.onChange, F = M.onInput, te = M.onBlur;
|
|
1694
|
+
M.onChangeText;
|
|
1695
|
+
var ne = M.onClick, oe = M.refKey, I = oe === void 0 ? "ref" : oe, ce = M.ref, Z = fe(M, eo), xe = C === void 0 ? {} : C, Ne = xe.suppressRefError, He = Ne === void 0 ? !1 : Ne;
|
|
1696
|
+
P("getInputProps", He, I, $);
|
|
1697
|
+
var me = y.current.state, Ke = function(_e) {
|
|
1700
1698
|
var ge = ke(_e);
|
|
1701
|
-
ge &&
|
|
1699
|
+
ge && w[ge] && w[ge](_e);
|
|
1702
1700
|
}, Ge = function(_e) {
|
|
1703
|
-
|
|
1701
|
+
l({
|
|
1704
1702
|
type: It,
|
|
1705
1703
|
inputValue: _e.target.value
|
|
1706
1704
|
});
|
|
1707
1705
|
}, ve = function(_e) {
|
|
1708
1706
|
if (o != null && o.document && me.isOpen && !A.isMouseDown) {
|
|
1709
1707
|
var ge = _e.relatedTarget === null && o.document.activeElement !== o.document.body;
|
|
1710
|
-
|
|
1711
|
-
type:
|
|
1708
|
+
l({
|
|
1709
|
+
type: Ye,
|
|
1712
1710
|
selectItem: !ge
|
|
1713
1711
|
});
|
|
1714
1712
|
}
|
|
1715
1713
|
}, Re = function() {
|
|
1716
|
-
|
|
1714
|
+
l({
|
|
1717
1715
|
type: _t
|
|
1718
1716
|
});
|
|
1719
1717
|
}, Xe = "onChange", je = {};
|
|
1720
|
-
if (!
|
|
1718
|
+
if (!Z.disabled) {
|
|
1721
1719
|
var Ie;
|
|
1722
|
-
je = (Ie = {}, Ie[Xe] =
|
|
1720
|
+
je = (Ie = {}, Ie[Xe] = Q(B, F, Ge), Ie.onKeyDown = Q(L, Ke), Ie.onBlur = Q(te, ve), Ie.onClick = Q(ne, Re), Ie);
|
|
1723
1721
|
}
|
|
1724
|
-
return
|
|
1725
|
-
|
|
1726
|
-
}),
|
|
1727
|
-
}, [
|
|
1728
|
-
|
|
1722
|
+
return T((v = {}, v[I] = Ee(ce, function(we) {
|
|
1723
|
+
$.current = we;
|
|
1724
|
+
}), v["aria-activedescendant"] = me.isOpen && me.highlightedIndex > -1 ? p.getItemId(me.highlightedIndex) : "", v["aria-autocomplete"] = "list", v["aria-controls"] = p.menuId, v["aria-expanded"] = me.isOpen, v["aria-labelledby"] = Z && Z["aria-label"] ? void 0 : p.labelId, v.autoComplete = "off", v.id = p.inputId, v.role = "combobox", v.value = me.inputValue, v), je, Z);
|
|
1725
|
+
}, [l, p, o, w, y, A, P]), K = X(function() {
|
|
1726
|
+
l({
|
|
1729
1727
|
type: Hn
|
|
1730
1728
|
});
|
|
1731
|
-
}, [
|
|
1732
|
-
|
|
1729
|
+
}, [l]), ee = X(function() {
|
|
1730
|
+
l({
|
|
1733
1731
|
type: jn
|
|
1734
1732
|
});
|
|
1735
|
-
}, [
|
|
1736
|
-
|
|
1733
|
+
}, [l]), re = X(function() {
|
|
1734
|
+
l({
|
|
1737
1735
|
type: Kn
|
|
1738
1736
|
});
|
|
1739
|
-
}, [
|
|
1740
|
-
|
|
1737
|
+
}, [l]), N = X(function(D) {
|
|
1738
|
+
l({
|
|
1741
1739
|
type: $n,
|
|
1742
|
-
highlightedIndex:
|
|
1740
|
+
highlightedIndex: D
|
|
1743
1741
|
});
|
|
1744
|
-
}, [
|
|
1745
|
-
|
|
1742
|
+
}, [l]), z = X(function(D) {
|
|
1743
|
+
l({
|
|
1746
1744
|
type: Et,
|
|
1747
|
-
selectedItem:
|
|
1745
|
+
selectedItem: D
|
|
1748
1746
|
});
|
|
1749
|
-
}, [
|
|
1750
|
-
|
|
1747
|
+
}, [l]), G = X(function(D) {
|
|
1748
|
+
l({
|
|
1751
1749
|
type: Fn,
|
|
1752
|
-
inputValue:
|
|
1750
|
+
inputValue: D
|
|
1753
1751
|
});
|
|
1754
|
-
}, [
|
|
1755
|
-
|
|
1752
|
+
}, [l]), se = X(function() {
|
|
1753
|
+
l({
|
|
1756
1754
|
type: Ln
|
|
1757
1755
|
});
|
|
1758
|
-
}, [
|
|
1756
|
+
}, [l]);
|
|
1759
1757
|
return {
|
|
1760
1758
|
// prop getters.
|
|
1761
|
-
getItemProps:
|
|
1762
|
-
getLabelProps:
|
|
1763
|
-
getMenuProps:
|
|
1764
|
-
getInputProps:
|
|
1759
|
+
getItemProps: H,
|
|
1760
|
+
getLabelProps: S,
|
|
1761
|
+
getMenuProps: k,
|
|
1762
|
+
getInputProps: Y,
|
|
1765
1763
|
getToggleButtonProps: q,
|
|
1766
1764
|
// actions.
|
|
1767
|
-
toggleMenu:
|
|
1768
|
-
openMenu:
|
|
1769
|
-
closeMenu:
|
|
1770
|
-
setHighlightedIndex:
|
|
1771
|
-
setInputValue:
|
|
1772
|
-
selectItem:
|
|
1773
|
-
reset:
|
|
1765
|
+
toggleMenu: K,
|
|
1766
|
+
openMenu: re,
|
|
1767
|
+
closeMenu: ee,
|
|
1768
|
+
setHighlightedIndex: N,
|
|
1769
|
+
setInputValue: G,
|
|
1770
|
+
selectItem: z,
|
|
1771
|
+
reset: se,
|
|
1774
1772
|
// state.
|
|
1775
|
-
highlightedIndex:
|
|
1773
|
+
highlightedIndex: O,
|
|
1776
1774
|
isOpen: m,
|
|
1777
|
-
selectedItem:
|
|
1775
|
+
selectedItem: x,
|
|
1778
1776
|
inputValue: E
|
|
1779
1777
|
};
|
|
1780
1778
|
}
|
|
@@ -1783,7 +1781,7 @@ var Wn = {
|
|
|
1783
1781
|
selectedItems: []
|
|
1784
1782
|
};
|
|
1785
1783
|
function Zt(t, n) {
|
|
1786
|
-
return
|
|
1784
|
+
return Ce(t, n, Wn);
|
|
1787
1785
|
}
|
|
1788
1786
|
function en(t, n) {
|
|
1789
1787
|
return he(t, n, Wn);
|
|
@@ -1811,7 +1809,7 @@ function no(t) {
|
|
|
1811
1809
|
function ro(t, n) {
|
|
1812
1810
|
return t.selectedItems === n.selectedItems && t.activeIndex === n.activeIndex;
|
|
1813
1811
|
}
|
|
1814
|
-
var oo =
|
|
1812
|
+
var oo = T({}, Pn, {
|
|
1815
1813
|
selectedItems: g.array,
|
|
1816
1814
|
initialSelectedItems: g.array,
|
|
1817
1815
|
defaultSelectedItems: g.array,
|
|
@@ -1824,57 +1822,57 @@ var oo = V({}, Mn, {
|
|
|
1824
1822
|
keyNavigationNext: g.string,
|
|
1825
1823
|
keyNavigationPrevious: g.string
|
|
1826
1824
|
}), io = {
|
|
1827
|
-
itemToString:
|
|
1828
|
-
itemToKey:
|
|
1829
|
-
stateReducer:
|
|
1830
|
-
environment:
|
|
1825
|
+
itemToString: Oe.itemToString,
|
|
1826
|
+
itemToKey: Oe.itemToKey,
|
|
1827
|
+
stateReducer: Oe.stateReducer,
|
|
1828
|
+
environment: Oe.environment,
|
|
1831
1829
|
getA11yRemovalMessage: no,
|
|
1832
1830
|
keyNavigationNext: "ArrowRight",
|
|
1833
1831
|
keyNavigationPrevious: "ArrowLeft"
|
|
1834
|
-
},
|
|
1835
|
-
process.env.NODE_ENV !== "production" && (
|
|
1832
|
+
}, qn = pe;
|
|
1833
|
+
process.env.NODE_ENV !== "production" && (qn = function(n, r) {
|
|
1836
1834
|
g.checkPropTypes(oo, n, "prop", r.name);
|
|
1837
1835
|
});
|
|
1838
|
-
var bt = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, xt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1,
|
|
1836
|
+
var bt = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, xt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1, Ot = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_backspace__" : 2, Ct = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_next__" : 3, Dt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_previous__" : 4, St = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_navigation_previous__" : 5, Nt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_backspace__" : 6, Rt = process.env.NODE_ENV !== "production" ? "__dropdown_click__" : 7, Mt = process.env.NODE_ENV !== "production" ? "__function_add_selected_item__" : 8, Pt = process.env.NODE_ENV !== "production" ? "__function_remove_selected_item__" : 9, Vt = process.env.NODE_ENV !== "production" ? "__function_set_selected_items__" : 10, kt = process.env.NODE_ENV !== "production" ? "__function_set_active_index__" : 11, Tt = process.env.NODE_ENV !== "production" ? "__function_reset__" : 12, so = /* @__PURE__ */ Object.freeze({
|
|
1839
1837
|
__proto__: null,
|
|
1840
1838
|
SelectedItemClick: bt,
|
|
1841
1839
|
SelectedItemKeyDownDelete: xt,
|
|
1842
|
-
SelectedItemKeyDownBackspace:
|
|
1843
|
-
SelectedItemKeyDownNavigationNext:
|
|
1840
|
+
SelectedItemKeyDownBackspace: Ot,
|
|
1841
|
+
SelectedItemKeyDownNavigationNext: Ct,
|
|
1844
1842
|
SelectedItemKeyDownNavigationPrevious: Dt,
|
|
1845
1843
|
DropdownKeyDownNavigationPrevious: St,
|
|
1846
1844
|
DropdownKeyDownBackspace: Nt,
|
|
1847
1845
|
DropdownClick: Rt,
|
|
1848
|
-
FunctionAddSelectedItem:
|
|
1849
|
-
FunctionRemoveSelectedItem:
|
|
1846
|
+
FunctionAddSelectedItem: Mt,
|
|
1847
|
+
FunctionRemoveSelectedItem: Pt,
|
|
1850
1848
|
FunctionSetSelectedItems: Vt,
|
|
1851
1849
|
FunctionSetActiveIndex: kt,
|
|
1852
1850
|
FunctionReset: Tt
|
|
1853
1851
|
});
|
|
1854
1852
|
function uo(t, n) {
|
|
1855
|
-
var r = n.type, i = n.index, o = n.props, e = n.selectedItem, s = t.activeIndex, u = t.selectedItems,
|
|
1853
|
+
var r = n.type, i = n.index, o = n.props, e = n.selectedItem, s = t.activeIndex, u = t.selectedItems, c;
|
|
1856
1854
|
switch (r) {
|
|
1857
1855
|
case bt:
|
|
1858
|
-
|
|
1856
|
+
c = {
|
|
1859
1857
|
activeIndex: i
|
|
1860
1858
|
};
|
|
1861
1859
|
break;
|
|
1862
1860
|
case Dt:
|
|
1863
|
-
|
|
1861
|
+
c = {
|
|
1864
1862
|
activeIndex: s - 1 < 0 ? 0 : s - 1
|
|
1865
1863
|
};
|
|
1866
1864
|
break;
|
|
1867
|
-
case
|
|
1868
|
-
|
|
1865
|
+
case Ct:
|
|
1866
|
+
c = {
|
|
1869
1867
|
activeIndex: s + 1 >= u.length ? -1 : s + 1
|
|
1870
1868
|
};
|
|
1871
1869
|
break;
|
|
1872
|
-
case
|
|
1870
|
+
case Ot:
|
|
1873
1871
|
case xt: {
|
|
1874
1872
|
if (s < 0)
|
|
1875
1873
|
break;
|
|
1876
1874
|
var a = s;
|
|
1877
|
-
u.length === 1 ? a = -1 : s === u.length - 1 && (a = u.length - 2),
|
|
1875
|
+
u.length === 1 ? a = -1 : s === u.length - 1 && (a = u.length - 2), c = T({
|
|
1878
1876
|
selectedItems: [].concat(u.slice(0, s), u.slice(s + 1))
|
|
1879
1877
|
}, {
|
|
1880
1878
|
activeIndex: a
|
|
@@ -1882,53 +1880,53 @@ function uo(t, n) {
|
|
|
1882
1880
|
break;
|
|
1883
1881
|
}
|
|
1884
1882
|
case St:
|
|
1885
|
-
|
|
1883
|
+
c = {
|
|
1886
1884
|
activeIndex: u.length - 1
|
|
1887
1885
|
};
|
|
1888
1886
|
break;
|
|
1889
1887
|
case Nt:
|
|
1890
|
-
|
|
1888
|
+
c = {
|
|
1891
1889
|
selectedItems: u.slice(0, u.length - 1)
|
|
1892
1890
|
};
|
|
1893
1891
|
break;
|
|
1894
|
-
case
|
|
1895
|
-
|
|
1892
|
+
case Mt:
|
|
1893
|
+
c = {
|
|
1896
1894
|
selectedItems: [].concat(u, [e])
|
|
1897
1895
|
};
|
|
1898
1896
|
break;
|
|
1899
1897
|
case Rt:
|
|
1900
|
-
|
|
1898
|
+
c = {
|
|
1901
1899
|
activeIndex: -1
|
|
1902
1900
|
};
|
|
1903
1901
|
break;
|
|
1904
|
-
case
|
|
1905
|
-
var
|
|
1902
|
+
case Pt: {
|
|
1903
|
+
var l = s, m = u.findIndex(function(E) {
|
|
1906
1904
|
return o.itemToKey(E) === o.itemToKey(e);
|
|
1907
1905
|
});
|
|
1908
1906
|
if (m < 0)
|
|
1909
1907
|
break;
|
|
1910
|
-
u.length === 1 ?
|
|
1908
|
+
u.length === 1 ? l = -1 : m === u.length - 1 && (l = u.length - 2), c = {
|
|
1911
1909
|
selectedItems: [].concat(u.slice(0, m), u.slice(m + 1)),
|
|
1912
|
-
activeIndex:
|
|
1910
|
+
activeIndex: l
|
|
1913
1911
|
};
|
|
1914
1912
|
break;
|
|
1915
1913
|
}
|
|
1916
1914
|
case Vt: {
|
|
1917
|
-
var
|
|
1918
|
-
|
|
1919
|
-
selectedItems:
|
|
1915
|
+
var O = n.selectedItems;
|
|
1916
|
+
c = {
|
|
1917
|
+
selectedItems: O
|
|
1920
1918
|
};
|
|
1921
1919
|
break;
|
|
1922
1920
|
}
|
|
1923
1921
|
case kt: {
|
|
1924
|
-
var
|
|
1925
|
-
|
|
1926
|
-
activeIndex:
|
|
1922
|
+
var x = n.activeIndex;
|
|
1923
|
+
c = {
|
|
1924
|
+
activeIndex: x
|
|
1927
1925
|
};
|
|
1928
1926
|
break;
|
|
1929
1927
|
}
|
|
1930
1928
|
case Tt:
|
|
1931
|
-
|
|
1929
|
+
c = {
|
|
1932
1930
|
activeIndex: en(o, "activeIndex"),
|
|
1933
1931
|
selectedItems: en(o, "selectedItems")
|
|
1934
1932
|
};
|
|
@@ -1936,140 +1934,140 @@ function uo(t, n) {
|
|
|
1936
1934
|
default:
|
|
1937
1935
|
throw new Error("Reducer called without proper action type.");
|
|
1938
1936
|
}
|
|
1939
|
-
return
|
|
1937
|
+
return T({}, t, c);
|
|
1940
1938
|
}
|
|
1941
1939
|
var lo = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], ao = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
|
|
1942
1940
|
ye.stateChangeTypes = so;
|
|
1943
1941
|
function ye(t) {
|
|
1944
|
-
t === void 0 && (t = {}),
|
|
1945
|
-
var n =
|
|
1946
|
-
|
|
1942
|
+
t === void 0 && (t = {}), qn(t, ye);
|
|
1943
|
+
var n = T({}, io, t), r = n.getA11yRemovalMessage, i = n.itemToString, o = n.environment, e = n.keyNavigationNext, s = n.keyNavigationPrevious, u = jr(uo, n, to, ro), c = u[0], a = u[1], l = c.activeIndex, m = c.selectedItems, O = Te(), x = ie(null), E = ie(m), R = ie();
|
|
1944
|
+
R.current = [];
|
|
1947
1945
|
var h = ut({
|
|
1948
|
-
state:
|
|
1946
|
+
state: c,
|
|
1949
1947
|
props: n
|
|
1950
1948
|
});
|
|
1951
|
-
|
|
1952
|
-
if (!(
|
|
1949
|
+
ue(function() {
|
|
1950
|
+
if (!(O || !(o != null && o.document))) {
|
|
1953
1951
|
if (m.length < E.current.length) {
|
|
1954
|
-
var
|
|
1955
|
-
return m.findIndex(function(
|
|
1956
|
-
return n.itemToKey(
|
|
1952
|
+
var w = E.current.find(function(S) {
|
|
1953
|
+
return m.findIndex(function(k) {
|
|
1954
|
+
return n.itemToKey(k) === n.itemToKey(S);
|
|
1957
1955
|
}) < 0;
|
|
1958
1956
|
});
|
|
1959
1957
|
it(r({
|
|
1960
1958
|
itemToString: i,
|
|
1961
1959
|
resultCount: m.length,
|
|
1962
|
-
removedSelectedItem:
|
|
1963
|
-
activeIndex:
|
|
1964
|
-
activeSelectedItem: m[
|
|
1960
|
+
removedSelectedItem: w,
|
|
1961
|
+
activeIndex: l,
|
|
1962
|
+
activeSelectedItem: m[l]
|
|
1965
1963
|
}), o.document);
|
|
1966
1964
|
}
|
|
1967
1965
|
E.current = m;
|
|
1968
1966
|
}
|
|
1969
|
-
}, [m.length]),
|
|
1970
|
-
|
|
1971
|
-
}, [
|
|
1967
|
+
}, [m.length]), ue(function() {
|
|
1968
|
+
O || (l === -1 && x.current ? x.current.focus() : R.current[l] && R.current[l].focus());
|
|
1969
|
+
}, [l]), at({
|
|
1972
1970
|
props: n,
|
|
1973
|
-
state:
|
|
1971
|
+
state: c
|
|
1974
1972
|
});
|
|
1975
|
-
var
|
|
1976
|
-
var
|
|
1977
|
-
return
|
|
1973
|
+
var $ = lt("getDropdownProps"), d = Qe(function() {
|
|
1974
|
+
var w;
|
|
1975
|
+
return w = {}, w[s] = function() {
|
|
1978
1976
|
a({
|
|
1979
1977
|
type: Dt
|
|
1980
1978
|
});
|
|
1981
|
-
},
|
|
1979
|
+
}, w[e] = function() {
|
|
1982
1980
|
a({
|
|
1983
|
-
type:
|
|
1981
|
+
type: Ct
|
|
1984
1982
|
});
|
|
1985
|
-
},
|
|
1983
|
+
}, w.Delete = function() {
|
|
1986
1984
|
a({
|
|
1987
1985
|
type: xt
|
|
1988
1986
|
});
|
|
1989
|
-
},
|
|
1987
|
+
}, w.Backspace = function() {
|
|
1990
1988
|
a({
|
|
1991
|
-
type:
|
|
1989
|
+
type: Ot
|
|
1992
1990
|
});
|
|
1993
|
-
},
|
|
1991
|
+
}, w;
|
|
1994
1992
|
}, [a, e, s]), f = Qe(function() {
|
|
1995
|
-
var
|
|
1996
|
-
return
|
|
1997
|
-
tn(
|
|
1993
|
+
var w;
|
|
1994
|
+
return w = {}, w[s] = function(S) {
|
|
1995
|
+
tn(S) && a({
|
|
1998
1996
|
type: St
|
|
1999
1997
|
});
|
|
2000
|
-
},
|
|
2001
|
-
tn(
|
|
1998
|
+
}, w.Backspace = function(k) {
|
|
1999
|
+
tn(k) && a({
|
|
2002
2000
|
type: Nt
|
|
2003
2001
|
});
|
|
2004
|
-
},
|
|
2005
|
-
}, [a, s]), p =
|
|
2006
|
-
var
|
|
2002
|
+
}, w;
|
|
2003
|
+
}, [a, s]), p = X(function(w) {
|
|
2004
|
+
var S, k = w === void 0 ? {} : w, H = k.refKey, q = H === void 0 ? "ref" : H, Y = k.ref, K = k.onClick, ee = k.onKeyDown, re = k.selectedItem, N = k.index, z = fe(k, lo), G = h.current.state, se = Rn(re, N, G.selectedItems, "Pass either item or index to getSelectedItemProps!"), D = se[1], C = D > -1 && D === G.activeIndex, v = function() {
|
|
2007
2005
|
a({
|
|
2008
2006
|
type: bt,
|
|
2009
|
-
index:
|
|
2007
|
+
index: D
|
|
2010
2008
|
});
|
|
2011
|
-
},
|
|
2012
|
-
var
|
|
2013
|
-
|
|
2009
|
+
}, M = function(B) {
|
|
2010
|
+
var F = ke(B);
|
|
2011
|
+
F && d[F] && d[F](B);
|
|
2014
2012
|
};
|
|
2015
|
-
return
|
|
2016
|
-
|
|
2017
|
-
}),
|
|
2018
|
-
}, [a, h, d]),
|
|
2019
|
-
var
|
|
2020
|
-
|
|
2021
|
-
var
|
|
2022
|
-
var
|
|
2023
|
-
|
|
2024
|
-
},
|
|
2013
|
+
return T((S = {}, S[q] = Ee(Y, function(L) {
|
|
2014
|
+
L && R.current.push(L);
|
|
2015
|
+
}), S.tabIndex = C ? 0 : -1, S.onClick = Q(K, v), S.onKeyDown = Q(ee, M), S), z);
|
|
2016
|
+
}, [a, h, d]), _ = X(function(w, S) {
|
|
2017
|
+
var k, H = w === void 0 ? {} : w, q = H.refKey, Y = q === void 0 ? "ref" : q, K = H.ref, ee = H.onKeyDown, re = H.onClick, N = H.preventKeyAction, z = N === void 0 ? !1 : N, G = fe(H, ao), se = S === void 0 ? {} : S, D = se.suppressRefError, C = D === void 0 ? !1 : D;
|
|
2018
|
+
$("getDropdownProps", C, Y, x);
|
|
2019
|
+
var v = function(B) {
|
|
2020
|
+
var F = ke(B);
|
|
2021
|
+
F && f[F] && f[F](B);
|
|
2022
|
+
}, M = function() {
|
|
2025
2023
|
a({
|
|
2026
2024
|
type: Rt
|
|
2027
2025
|
});
|
|
2028
2026
|
};
|
|
2029
|
-
return
|
|
2030
|
-
|
|
2031
|
-
}),
|
|
2032
|
-
onKeyDown:
|
|
2033
|
-
onClick:
|
|
2034
|
-
},
|
|
2035
|
-
}, [a, f,
|
|
2027
|
+
return T((k = {}, k[Y] = Ee(K, function(L) {
|
|
2028
|
+
L && (x.current = L);
|
|
2029
|
+
}), k), !z && {
|
|
2030
|
+
onKeyDown: Q(ee, v),
|
|
2031
|
+
onClick: Q(re, M)
|
|
2032
|
+
}, G);
|
|
2033
|
+
}, [a, f, $]), y = X(function(w) {
|
|
2036
2034
|
a({
|
|
2037
|
-
type:
|
|
2038
|
-
selectedItem:
|
|
2035
|
+
type: Mt,
|
|
2036
|
+
selectedItem: w
|
|
2039
2037
|
});
|
|
2040
|
-
}, [a]),
|
|
2038
|
+
}, [a]), V = X(function(w) {
|
|
2041
2039
|
a({
|
|
2042
|
-
type:
|
|
2043
|
-
selectedItem:
|
|
2040
|
+
type: Pt,
|
|
2041
|
+
selectedItem: w
|
|
2044
2042
|
});
|
|
2045
|
-
}, [a]),
|
|
2043
|
+
}, [a]), b = X(function(w) {
|
|
2046
2044
|
a({
|
|
2047
2045
|
type: Vt,
|
|
2048
|
-
selectedItems:
|
|
2046
|
+
selectedItems: w
|
|
2049
2047
|
});
|
|
2050
|
-
}, [a]), A =
|
|
2048
|
+
}, [a]), A = X(function(w) {
|
|
2051
2049
|
a({
|
|
2052
2050
|
type: kt,
|
|
2053
|
-
activeIndex:
|
|
2051
|
+
activeIndex: w
|
|
2054
2052
|
});
|
|
2055
|
-
}, [a]),
|
|
2053
|
+
}, [a]), P = X(function() {
|
|
2056
2054
|
a({
|
|
2057
2055
|
type: Tt
|
|
2058
2056
|
});
|
|
2059
2057
|
}, [a]);
|
|
2060
2058
|
return {
|
|
2061
2059
|
getSelectedItemProps: p,
|
|
2062
|
-
getDropdownProps:
|
|
2063
|
-
addSelectedItem:
|
|
2064
|
-
removeSelectedItem:
|
|
2065
|
-
setSelectedItems:
|
|
2060
|
+
getDropdownProps: _,
|
|
2061
|
+
addSelectedItem: y,
|
|
2062
|
+
removeSelectedItem: V,
|
|
2063
|
+
setSelectedItems: b,
|
|
2066
2064
|
setActiveIndex: A,
|
|
2067
|
-
reset:
|
|
2065
|
+
reset: P,
|
|
2068
2066
|
selectedItems: m,
|
|
2069
|
-
activeIndex:
|
|
2067
|
+
activeIndex: l
|
|
2070
2068
|
};
|
|
2071
2069
|
}
|
|
2072
|
-
var ze = { exports: {} },
|
|
2070
|
+
var ze = { exports: {} }, Yn = {
|
|
2073
2071
|
À: "A",
|
|
2074
2072
|
Á: "A",
|
|
2075
2073
|
Â: "A",
|
|
@@ -2529,9 +2527,9 @@ var ze = { exports: {} }, qn = {
|
|
|
2529
2527
|
Й: "И",
|
|
2530
2528
|
ё: "е",
|
|
2531
2529
|
Ё: "Е"
|
|
2532
|
-
}, zn = Object.keys(
|
|
2530
|
+
}, zn = Object.keys(Yn).join("|"), co = new RegExp(zn, "g"), po = new RegExp(zn, "");
|
|
2533
2531
|
function fo(t) {
|
|
2534
|
-
return
|
|
2532
|
+
return Yn[t];
|
|
2535
2533
|
}
|
|
2536
2534
|
var Gn = function(t) {
|
|
2537
2535
|
return t.replace(co, fo);
|
|
@@ -2565,22 +2563,22 @@ function At(t, n, r) {
|
|
|
2565
2563
|
keys: i,
|
|
2566
2564
|
threshold: o = ae.MATCHES,
|
|
2567
2565
|
baseSort: e = vo,
|
|
2568
|
-
sorter: s = (a) => a.sort((
|
|
2569
|
-
} = r, u = t.reduce(
|
|
2566
|
+
sorter: s = (a) => a.sort((l, m) => Eo(l, m, e))
|
|
2567
|
+
} = r, u = t.reduce(c, []);
|
|
2570
2568
|
return s(u).map((a) => {
|
|
2571
2569
|
let {
|
|
2572
|
-
item:
|
|
2570
|
+
item: l
|
|
2573
2571
|
} = a;
|
|
2574
|
-
return
|
|
2572
|
+
return l;
|
|
2575
2573
|
});
|
|
2576
|
-
function
|
|
2577
|
-
const
|
|
2578
|
-
rank:
|
|
2574
|
+
function c(a, l, m) {
|
|
2575
|
+
const O = Io(l, i, n, r), {
|
|
2576
|
+
rank: x,
|
|
2579
2577
|
keyThreshold: E = o
|
|
2580
|
-
} =
|
|
2581
|
-
return
|
|
2582
|
-
...
|
|
2583
|
-
item:
|
|
2578
|
+
} = O;
|
|
2579
|
+
return x >= E && a.push({
|
|
2580
|
+
...O,
|
|
2581
|
+
item: l,
|
|
2584
2582
|
index: m
|
|
2585
2583
|
}), a;
|
|
2586
2584
|
}
|
|
@@ -2599,23 +2597,23 @@ function Io(t, n, r, i) {
|
|
|
2599
2597
|
}
|
|
2600
2598
|
return xo(t, n).reduce((e, s, u) => {
|
|
2601
2599
|
let {
|
|
2602
|
-
rank:
|
|
2600
|
+
rank: c,
|
|
2603
2601
|
rankedValue: a,
|
|
2604
|
-
keyIndex:
|
|
2602
|
+
keyIndex: l,
|
|
2605
2603
|
keyThreshold: m
|
|
2606
2604
|
} = e, {
|
|
2607
|
-
itemValue:
|
|
2608
|
-
attributes:
|
|
2609
|
-
} = s, E = nn(
|
|
2605
|
+
itemValue: O,
|
|
2606
|
+
attributes: x
|
|
2607
|
+
} = s, E = nn(O, r, i), R = a;
|
|
2610
2608
|
const {
|
|
2611
2609
|
minRanking: h,
|
|
2612
|
-
maxRanking:
|
|
2610
|
+
maxRanking: $,
|
|
2613
2611
|
threshold: d
|
|
2614
|
-
} =
|
|
2615
|
-
return E < h && E >= ae.MATCHES ? E = h : E >
|
|
2616
|
-
rankedValue:
|
|
2617
|
-
rank:
|
|
2618
|
-
keyIndex:
|
|
2612
|
+
} = x;
|
|
2613
|
+
return E < h && E >= ae.MATCHES ? E = h : E > $ && (E = $), E > c && (c = E, l = u, m = d, R = O), {
|
|
2614
|
+
rankedValue: R,
|
|
2615
|
+
rank: c,
|
|
2616
|
+
keyIndex: l,
|
|
2619
2617
|
keyThreshold: m
|
|
2620
2618
|
};
|
|
2621
2619
|
}, {
|
|
@@ -2638,23 +2636,23 @@ function _o(t) {
|
|
|
2638
2636
|
}
|
|
2639
2637
|
function yo(t, n) {
|
|
2640
2638
|
let r = 0, i = 0;
|
|
2641
|
-
function o(
|
|
2642
|
-
for (let m =
|
|
2643
|
-
if (a[m] ===
|
|
2639
|
+
function o(c, a, l) {
|
|
2640
|
+
for (let m = l, O = a.length; m < O; m++)
|
|
2641
|
+
if (a[m] === c)
|
|
2644
2642
|
return r += 1, m + 1;
|
|
2645
2643
|
return -1;
|
|
2646
2644
|
}
|
|
2647
|
-
function e(
|
|
2648
|
-
const a = 1 /
|
|
2649
|
-
return ae.MATCHES +
|
|
2645
|
+
function e(c) {
|
|
2646
|
+
const a = 1 / c, l = r / n.length;
|
|
2647
|
+
return ae.MATCHES + l * a;
|
|
2650
2648
|
}
|
|
2651
2649
|
const s = o(n[0], t, 0);
|
|
2652
2650
|
if (s < 0)
|
|
2653
2651
|
return ae.NO_MATCH;
|
|
2654
2652
|
i = s;
|
|
2655
|
-
for (let
|
|
2656
|
-
const
|
|
2657
|
-
if (i = o(
|
|
2653
|
+
for (let c = 1, a = n.length; c < a; c++) {
|
|
2654
|
+
const l = n[c];
|
|
2655
|
+
if (i = o(l, t, i), !(i > -1))
|
|
2658
2656
|
return ae.NO_MATCH;
|
|
2659
2657
|
}
|
|
2660
2658
|
const u = i - s;
|
|
@@ -2666,9 +2664,9 @@ function Eo(t, n, r) {
|
|
|
2666
2664
|
keyIndex: s
|
|
2667
2665
|
} = t, {
|
|
2668
2666
|
rank: u,
|
|
2669
|
-
keyIndex:
|
|
2667
|
+
keyIndex: c
|
|
2670
2668
|
} = n;
|
|
2671
|
-
return e === u ? s ===
|
|
2669
|
+
return e === u ? s === c ? r(t, n) : s < c ? -1 : 1 : e > u ? -1 : 1;
|
|
2672
2670
|
}
|
|
2673
2671
|
function rn(t, n) {
|
|
2674
2672
|
let {
|
|
@@ -2698,14 +2696,14 @@ function bo(t, n) {
|
|
|
2698
2696
|
for (let o = 0, e = r.length; o < e; o++) {
|
|
2699
2697
|
const s = r[o];
|
|
2700
2698
|
let u = [];
|
|
2701
|
-
for (let
|
|
2702
|
-
const
|
|
2703
|
-
if (
|
|
2704
|
-
if (Object.hasOwnProperty.call(
|
|
2705
|
-
const m =
|
|
2699
|
+
for (let c = 0, a = i.length; c < a; c++) {
|
|
2700
|
+
const l = i[c];
|
|
2701
|
+
if (l != null)
|
|
2702
|
+
if (Object.hasOwnProperty.call(l, s)) {
|
|
2703
|
+
const m = l[s];
|
|
2706
2704
|
m != null && u.push(m);
|
|
2707
2705
|
} else
|
|
2708
|
-
s === "*" && (u = u.concat(
|
|
2706
|
+
s === "*" && (u = u.concat(l));
|
|
2709
2707
|
}
|
|
2710
2708
|
i = u;
|
|
2711
2709
|
}
|
|
@@ -2714,10 +2712,10 @@ function bo(t, n) {
|
|
|
2714
2712
|
function xo(t, n) {
|
|
2715
2713
|
const r = [];
|
|
2716
2714
|
for (let i = 0, o = n.length; i < o; i++) {
|
|
2717
|
-
const e = n[i], s =
|
|
2718
|
-
for (let
|
|
2715
|
+
const e = n[i], s = Oo(e), u = wo(t, e);
|
|
2716
|
+
for (let c = 0, a = u.length; c < a; c++)
|
|
2719
2717
|
r.push({
|
|
2720
|
-
itemValue: u[
|
|
2718
|
+
itemValue: u[c],
|
|
2721
2719
|
attributes: s
|
|
2722
2720
|
});
|
|
2723
2721
|
}
|
|
@@ -2727,14 +2725,14 @@ const on = {
|
|
|
2727
2725
|
maxRanking: 1 / 0,
|
|
2728
2726
|
minRanking: -1 / 0
|
|
2729
2727
|
};
|
|
2730
|
-
function
|
|
2728
|
+
function Oo(t) {
|
|
2731
2729
|
return typeof t == "string" ? on : {
|
|
2732
2730
|
...on,
|
|
2733
2731
|
...t
|
|
2734
2732
|
};
|
|
2735
2733
|
}
|
|
2736
|
-
const
|
|
2737
|
-
combobox:
|
|
2734
|
+
const Co = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61", No = "_small_1jt3w_86", Ro = "_large_1jt3w_89", Mo = "_disabled_1jt3w_113", Po = "_chip_1jt3w_162", Vo = "_prefix_1jt3w_217", ko = "_suffix_1jt3w_218", To = "_empty_1jt3w_260", J = {
|
|
2735
|
+
combobox: Co,
|
|
2738
2736
|
"search-field": "_search-field_1jt3w_6",
|
|
2739
2737
|
"popover-content": "_popover-content_1jt3w_21",
|
|
2740
2738
|
"input-wrapper": "_input-wrapper_1jt3w_30",
|
|
@@ -2747,12 +2745,12 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
2747
2745
|
"close-button": "_close-button_1jt3w_93",
|
|
2748
2746
|
"loading-infinite": "_loading-infinite_1jt3w_113",
|
|
2749
2747
|
"loading-progress": "_loading-progress_1jt3w_113",
|
|
2750
|
-
disabled:
|
|
2748
|
+
disabled: Mo,
|
|
2751
2749
|
"toggle-button-wrapper": "_toggle-button-wrapper_1jt3w_117",
|
|
2752
2750
|
"toggle-button": "_toggle-button_1jt3w_117",
|
|
2753
2751
|
"rows-wrapper": "_rows-wrapper_1jt3w_151",
|
|
2754
2752
|
"chip-wrapper": "_chip-wrapper_1jt3w_162",
|
|
2755
|
-
chip:
|
|
2753
|
+
chip: Po,
|
|
2756
2754
|
prefix: Vo,
|
|
2757
2755
|
suffix: ko,
|
|
2758
2756
|
"listview-option": "_listview-option_1jt3w_255",
|
|
@@ -2766,7 +2764,7 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
2766
2764
|
return t;
|
|
2767
2765
|
}, Ao = function(t) {
|
|
2768
2766
|
const { multiple: n = !1, ...r } = t;
|
|
2769
|
-
return n ? /* @__PURE__ */
|
|
2767
|
+
return n ? /* @__PURE__ */ j.jsx(Ko, { ...r }) : /* @__PURE__ */ j.jsx(Ho, { ...r });
|
|
2770
2768
|
}, Ho = function(t) {
|
|
2771
2769
|
const { layoutStyles: n, componentProps: r } = ln(t), {
|
|
2772
2770
|
className: i,
|
|
@@ -2774,93 +2772,94 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
2774
2772
|
children: e,
|
|
2775
2773
|
open: s,
|
|
2776
2774
|
items: u,
|
|
2777
|
-
itemToString:
|
|
2775
|
+
itemToString: c,
|
|
2778
2776
|
onChange: a,
|
|
2779
|
-
onSelectedItemChange:
|
|
2777
|
+
onSelectedItemChange: l,
|
|
2780
2778
|
disableCloseOnClickOutside: m = !1,
|
|
2781
|
-
filterOptions:
|
|
2782
|
-
...
|
|
2783
|
-
} = r, [E,
|
|
2784
|
-
function
|
|
2785
|
-
return
|
|
2779
|
+
filterOptions: O,
|
|
2780
|
+
...x
|
|
2781
|
+
} = r, [E, R] = le(u), [h, $] = le(!1), [d, f] = le(!1), [p, _] = le(!1), [y, V] = le([]);
|
|
2782
|
+
function b(N) {
|
|
2783
|
+
return c && N ? c(N) : N ? String(N) : "";
|
|
2786
2784
|
}
|
|
2787
2785
|
const {
|
|
2788
|
-
isOpen:
|
|
2789
|
-
getLabelProps:
|
|
2790
|
-
getInputProps:
|
|
2791
|
-
getToggleButtonProps:
|
|
2792
|
-
getMenuProps:
|
|
2793
|
-
getItemProps:
|
|
2794
|
-
highlightedIndex:
|
|
2795
|
-
selectedItem:
|
|
2796
|
-
selectItem:
|
|
2797
|
-
setInputValue:
|
|
2798
|
-
inputValue:
|
|
2799
|
-
} =
|
|
2800
|
-
...
|
|
2786
|
+
isOpen: A,
|
|
2787
|
+
getLabelProps: P,
|
|
2788
|
+
getInputProps: w,
|
|
2789
|
+
getToggleButtonProps: S,
|
|
2790
|
+
getMenuProps: k,
|
|
2791
|
+
getItemProps: H,
|
|
2792
|
+
highlightedIndex: q,
|
|
2793
|
+
selectedItem: Y,
|
|
2794
|
+
selectItem: K,
|
|
2795
|
+
setInputValue: ee,
|
|
2796
|
+
inputValue: re
|
|
2797
|
+
} = de({
|
|
2798
|
+
...x,
|
|
2801
2799
|
items: E,
|
|
2802
|
-
itemToString(
|
|
2803
|
-
return
|
|
2800
|
+
itemToString(N) {
|
|
2801
|
+
return b(N);
|
|
2804
2802
|
},
|
|
2805
|
-
onInputValueChange({ inputValue:
|
|
2806
|
-
|
|
2803
|
+
onInputValueChange({ inputValue: N, type: z }) {
|
|
2804
|
+
z === de.stateChangeTypes.InputKeyDownEnter || z === de.stateChangeTypes.ItemClick ? R(u) : N != null && N !== "" ? R(At(u, N, O)) : R(u);
|
|
2807
2805
|
},
|
|
2808
|
-
onSelectedItemChange({ selectedItem:
|
|
2809
|
-
a != null && a(
|
|
2806
|
+
onSelectedItemChange({ selectedItem: N, ...z }) {
|
|
2807
|
+
a != null && a(N || null), l != null && l({ selectedItem: N, ...z });
|
|
2810
2808
|
},
|
|
2811
|
-
onIsOpenChange({ isOpen:
|
|
2812
|
-
|
|
2809
|
+
onIsOpenChange({ isOpen: N, inputValue: z, selectedItem: G }) {
|
|
2810
|
+
N === !1 && z === "" ? K(null) : N === !1 && ee(G != null ? b(G) : "");
|
|
2813
2811
|
},
|
|
2814
|
-
stateReducer(
|
|
2815
|
-
switch (
|
|
2816
|
-
case
|
|
2812
|
+
stateReducer(N, { type: z, changes: G }) {
|
|
2813
|
+
switch (z) {
|
|
2814
|
+
case de.stateChangeTypes.InputBlur:
|
|
2817
2815
|
return m ? {
|
|
2818
|
-
...
|
|
2819
|
-
isOpen:
|
|
2820
|
-
highlightedIndex:
|
|
2821
|
-
} :
|
|
2816
|
+
...G,
|
|
2817
|
+
isOpen: N.isOpen,
|
|
2818
|
+
highlightedIndex: N.highlightedIndex
|
|
2819
|
+
} : G;
|
|
2822
2820
|
default:
|
|
2823
|
-
return
|
|
2821
|
+
return G;
|
|
2824
2822
|
}
|
|
2825
2823
|
},
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
return h;
|
|
2824
|
+
isItemDisabled(N) {
|
|
2825
|
+
return h || !!(N && N instanceof Object && "disabled" in N && N.disabled || N && N instanceof Object && "readOnly" in N && N.readOnly || y.includes(N));
|
|
2829
2826
|
}
|
|
2830
2827
|
});
|
|
2831
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ j.jsx(
|
|
2832
2829
|
Ht.Provider,
|
|
2833
2830
|
{
|
|
2834
2831
|
value: {
|
|
2835
2832
|
multiple: !1,
|
|
2836
2833
|
items: E,
|
|
2837
|
-
itemToString:
|
|
2838
|
-
isOpen:
|
|
2839
|
-
getLabelProps:
|
|
2840
|
-
getInputProps:
|
|
2841
|
-
getToggleButtonProps:
|
|
2842
|
-
getMenuProps:
|
|
2843
|
-
getItemProps:
|
|
2844
|
-
highlightedIndex:
|
|
2845
|
-
selectedItem:
|
|
2834
|
+
itemToString: b,
|
|
2835
|
+
isOpen: A,
|
|
2836
|
+
getLabelProps: P,
|
|
2837
|
+
getInputProps: w,
|
|
2838
|
+
getToggleButtonProps: S,
|
|
2839
|
+
getMenuProps: k,
|
|
2840
|
+
getItemProps: H,
|
|
2841
|
+
highlightedIndex: q,
|
|
2842
|
+
selectedItem: Y,
|
|
2846
2843
|
selectedItems: [],
|
|
2844
|
+
disabledItems: y,
|
|
2845
|
+
setDisabledItems: V,
|
|
2847
2846
|
getSelectedItemProps: void 0,
|
|
2848
2847
|
getDropdownProps: void 0,
|
|
2849
2848
|
reset: void 0,
|
|
2850
2849
|
removeSelectedItem: void 0,
|
|
2851
|
-
selectItem:
|
|
2852
|
-
inputValue:
|
|
2850
|
+
selectItem: K,
|
|
2851
|
+
inputValue: re,
|
|
2853
2852
|
isDisabledOrReadOnly: h,
|
|
2854
|
-
setIsDisabledOrReadOnly:
|
|
2853
|
+
setIsDisabledOrReadOnly: $,
|
|
2855
2854
|
hasDisabledPopover: d,
|
|
2856
2855
|
setHasDisabledPopover: f,
|
|
2857
2856
|
hasEmpty: p,
|
|
2858
|
-
setHasEmpty:
|
|
2857
|
+
setHasEmpty: _
|
|
2859
2858
|
},
|
|
2860
|
-
children: /* @__PURE__ */
|
|
2859
|
+
children: /* @__PURE__ */ j.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ j.jsx(
|
|
2861
2860
|
nt,
|
|
2862
2861
|
{
|
|
2863
|
-
open: s === !0 ? s :
|
|
2862
|
+
open: s === !0 ? s : A,
|
|
2864
2863
|
noPadding: !0,
|
|
2865
2864
|
disableCaret: !0,
|
|
2866
2865
|
fillAvailableHeight: !0,
|
|
@@ -2878,125 +2877,125 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
2878
2877
|
children: e,
|
|
2879
2878
|
open: s,
|
|
2880
2879
|
items: u,
|
|
2881
|
-
itemToString:
|
|
2880
|
+
itemToString: c,
|
|
2882
2881
|
onChange: a,
|
|
2883
|
-
onSelectedItemChange:
|
|
2882
|
+
onSelectedItemChange: l,
|
|
2884
2883
|
disableCloseOnClickOutside: m = !1,
|
|
2885
|
-
filterOptions:
|
|
2886
|
-
...
|
|
2887
|
-
} = r, [E,
|
|
2888
|
-
selectedItems:
|
|
2889
|
-
onStateChange({ selectedItems:
|
|
2890
|
-
switch (
|
|
2884
|
+
filterOptions: O,
|
|
2885
|
+
...x
|
|
2886
|
+
} = r, [E, R] = le(u), [h, $] = le(!1), [d, f] = le(!1), [p, _] = le(!1), [y, V] = le(""), [b, A] = le([]), [P, w] = le([]), { getSelectedItemProps: S, getDropdownProps: k, reset: H, removeSelectedItem: q } = ye({
|
|
2887
|
+
selectedItems: b,
|
|
2888
|
+
onStateChange({ selectedItems: v, type: M }) {
|
|
2889
|
+
switch (M) {
|
|
2891
2890
|
case ye.stateChangeTypes.SelectedItemKeyDownBackspace:
|
|
2892
2891
|
case ye.stateChangeTypes.SelectedItemKeyDownDelete:
|
|
2893
2892
|
case ye.stateChangeTypes.DropdownKeyDownBackspace:
|
|
2894
2893
|
case ye.stateChangeTypes.FunctionRemoveSelectedItem:
|
|
2895
|
-
a != null && a(
|
|
2894
|
+
a != null && a(v ?? []), A(v ?? []);
|
|
2896
2895
|
break;
|
|
2897
2896
|
case ye.stateChangeTypes.FunctionReset:
|
|
2898
|
-
a != null && a([]), A([]),
|
|
2897
|
+
a != null && a([]), A([]), V("");
|
|
2899
2898
|
break;
|
|
2900
2899
|
}
|
|
2901
2900
|
}
|
|
2902
2901
|
});
|
|
2903
|
-
function
|
|
2904
|
-
return
|
|
2902
|
+
function Y(v) {
|
|
2903
|
+
return c && v ? c(v) : v ? String(v) : "";
|
|
2905
2904
|
}
|
|
2906
2905
|
const {
|
|
2907
|
-
isOpen:
|
|
2908
|
-
getLabelProps:
|
|
2909
|
-
getInputProps:
|
|
2910
|
-
getToggleButtonProps:
|
|
2911
|
-
getMenuProps:
|
|
2912
|
-
getItemProps:
|
|
2906
|
+
isOpen: K,
|
|
2907
|
+
getLabelProps: ee,
|
|
2908
|
+
getInputProps: re,
|
|
2909
|
+
getToggleButtonProps: N,
|
|
2910
|
+
getMenuProps: z,
|
|
2911
|
+
getItemProps: G,
|
|
2913
2912
|
highlightedIndex: se,
|
|
2914
|
-
selectedItem:
|
|
2915
|
-
selectItem:
|
|
2916
|
-
} =
|
|
2917
|
-
...
|
|
2913
|
+
selectedItem: D,
|
|
2914
|
+
selectItem: C
|
|
2915
|
+
} = de({
|
|
2916
|
+
...x,
|
|
2918
2917
|
items: E,
|
|
2919
|
-
itemToString(
|
|
2920
|
-
return
|
|
2918
|
+
itemToString(v) {
|
|
2919
|
+
return Y(v);
|
|
2921
2920
|
},
|
|
2922
2921
|
selectedItem: null,
|
|
2923
|
-
inputValue:
|
|
2924
|
-
onInputValueChange({ inputValue:
|
|
2925
|
-
|
|
2922
|
+
inputValue: y,
|
|
2923
|
+
onInputValueChange({ inputValue: v, type: M }) {
|
|
2924
|
+
M === de.stateChangeTypes.InputKeyDownEnter || M === de.stateChangeTypes.ItemClick ? R(u) : v != null && v !== "" ? R(At(u, v, O)) : R(u);
|
|
2926
2925
|
},
|
|
2927
|
-
onIsOpenChange({ isOpen:
|
|
2928
|
-
|
|
2926
|
+
onIsOpenChange({ isOpen: v }) {
|
|
2927
|
+
v === !1 && V("");
|
|
2929
2928
|
},
|
|
2930
|
-
stateReducer(
|
|
2931
|
-
switch (
|
|
2932
|
-
case
|
|
2929
|
+
stateReducer(v, { type: M, changes: L }) {
|
|
2930
|
+
switch (M) {
|
|
2931
|
+
case de.stateChangeTypes.InputBlur:
|
|
2933
2932
|
return m ? {
|
|
2934
|
-
...
|
|
2935
|
-
isOpen:
|
|
2936
|
-
highlightedIndex:
|
|
2937
|
-
} :
|
|
2933
|
+
...L,
|
|
2934
|
+
isOpen: v.isOpen,
|
|
2935
|
+
highlightedIndex: v.highlightedIndex
|
|
2936
|
+
} : L;
|
|
2938
2937
|
default:
|
|
2939
|
-
return
|
|
2938
|
+
return L;
|
|
2940
2939
|
}
|
|
2941
2940
|
},
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
isItemDisabled() {
|
|
2945
|
-
return h;
|
|
2941
|
+
isItemDisabled(v) {
|
|
2942
|
+
return h || !!(v && v instanceof Object && "disabled" in v && v.disabled || v && v instanceof Object && "readOnly" in v && v.readOnly || P.includes(v));
|
|
2946
2943
|
},
|
|
2947
2944
|
onStateChange({
|
|
2948
|
-
inputValue:
|
|
2949
|
-
type:
|
|
2950
|
-
selectedItem:
|
|
2945
|
+
inputValue: v = "",
|
|
2946
|
+
type: M,
|
|
2947
|
+
selectedItem: L
|
|
2951
2948
|
}) {
|
|
2952
|
-
switch (
|
|
2953
|
-
case
|
|
2954
|
-
case
|
|
2955
|
-
case
|
|
2956
|
-
if (
|
|
2957
|
-
const
|
|
2958
|
-
a != null && a(
|
|
2949
|
+
switch (M) {
|
|
2950
|
+
case de.stateChangeTypes.InputKeyDownEnter:
|
|
2951
|
+
case de.stateChangeTypes.ItemClick:
|
|
2952
|
+
case de.stateChangeTypes.InputBlur:
|
|
2953
|
+
if (L) {
|
|
2954
|
+
const B = b.includes(L) ? b.filter((F) => F !== L) : [...b, L];
|
|
2955
|
+
a != null && a(B), A(B), V("");
|
|
2959
2956
|
}
|
|
2960
2957
|
break;
|
|
2961
|
-
case
|
|
2962
|
-
|
|
2958
|
+
case de.stateChangeTypes.InputChange:
|
|
2959
|
+
V(v);
|
|
2963
2960
|
break;
|
|
2964
2961
|
}
|
|
2965
2962
|
}
|
|
2966
2963
|
});
|
|
2967
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ j.jsx(
|
|
2968
2965
|
Ht.Provider,
|
|
2969
2966
|
{
|
|
2970
2967
|
value: {
|
|
2971
2968
|
multiple: !0,
|
|
2972
2969
|
items: E,
|
|
2973
|
-
itemToString:
|
|
2974
|
-
isOpen:
|
|
2975
|
-
getLabelProps:
|
|
2976
|
-
getInputProps:
|
|
2977
|
-
getToggleButtonProps:
|
|
2978
|
-
getMenuProps:
|
|
2979
|
-
getItemProps:
|
|
2970
|
+
itemToString: Y,
|
|
2971
|
+
isOpen: K,
|
|
2972
|
+
getLabelProps: ee,
|
|
2973
|
+
getInputProps: re,
|
|
2974
|
+
getToggleButtonProps: N,
|
|
2975
|
+
getMenuProps: z,
|
|
2976
|
+
getItemProps: G,
|
|
2980
2977
|
highlightedIndex: se,
|
|
2981
|
-
selectedItem:
|
|
2982
|
-
selectedItems:
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2978
|
+
selectedItem: D,
|
|
2979
|
+
selectedItems: b,
|
|
2980
|
+
disabledItems: P,
|
|
2981
|
+
setDisabledItems: w,
|
|
2982
|
+
getSelectedItemProps: S,
|
|
2983
|
+
getDropdownProps: k,
|
|
2984
|
+
reset: H,
|
|
2985
|
+
removeSelectedItem: q,
|
|
2986
|
+
selectItem: C,
|
|
2987
|
+
inputValue: y,
|
|
2989
2988
|
isDisabledOrReadOnly: h,
|
|
2990
|
-
setIsDisabledOrReadOnly:
|
|
2989
|
+
setIsDisabledOrReadOnly: $,
|
|
2991
2990
|
hasDisabledPopover: d,
|
|
2992
2991
|
setHasDisabledPopover: f,
|
|
2993
2992
|
hasEmpty: p,
|
|
2994
|
-
setHasEmpty:
|
|
2993
|
+
setHasEmpty: _
|
|
2995
2994
|
},
|
|
2996
|
-
children: /* @__PURE__ */
|
|
2995
|
+
children: /* @__PURE__ */ j.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ j.jsx(
|
|
2997
2996
|
nt,
|
|
2998
2997
|
{
|
|
2999
|
-
open: s === !0 ? s :
|
|
2998
|
+
open: s === !0 ? s : K,
|
|
3000
2999
|
noPadding: !0,
|
|
3001
3000
|
disableCaret: !0,
|
|
3002
3001
|
fillAvailableHeight: !0,
|
|
@@ -3014,192 +3013,194 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3014
3013
|
error: i,
|
|
3015
3014
|
hint: o,
|
|
3016
3015
|
description: e,
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3016
|
+
required: s,
|
|
3017
|
+
moreInfo: u,
|
|
3018
|
+
openMoreInfo: c,
|
|
3019
|
+
disabled: a,
|
|
3020
|
+
readOnly: l,
|
|
3021
|
+
prefix: m,
|
|
3022
|
+
suffix: O,
|
|
3023
|
+
maxRows: x,
|
|
3024
|
+
...E
|
|
3025
3025
|
}) => {
|
|
3026
3026
|
const {
|
|
3027
|
-
isOpen:
|
|
3028
|
-
itemToString:
|
|
3029
|
-
getLabelProps:
|
|
3030
|
-
getInputProps:
|
|
3031
|
-
getToggleButtonProps:
|
|
3032
|
-
selectedItems:
|
|
3033
|
-
getSelectedItemProps:
|
|
3034
|
-
getDropdownProps:
|
|
3035
|
-
reset:
|
|
3036
|
-
removeSelectedItem:
|
|
3037
|
-
selectItem:
|
|
3038
|
-
inputValue:
|
|
3039
|
-
setIsDisabledOrReadOnly:
|
|
3040
|
-
hasDisabledPopover:
|
|
3041
|
-
} = Ae(),
|
|
3042
|
-
[
|
|
3043
|
-
[
|
|
3044
|
-
}),
|
|
3045
|
-
[
|
|
3027
|
+
isOpen: R,
|
|
3028
|
+
itemToString: h,
|
|
3029
|
+
getLabelProps: $,
|
|
3030
|
+
getInputProps: d,
|
|
3031
|
+
getToggleButtonProps: f,
|
|
3032
|
+
selectedItems: p,
|
|
3033
|
+
getSelectedItemProps: _,
|
|
3034
|
+
getDropdownProps: y,
|
|
3035
|
+
reset: V,
|
|
3036
|
+
removeSelectedItem: b,
|
|
3037
|
+
selectItem: A,
|
|
3038
|
+
inputValue: P,
|
|
3039
|
+
setIsDisabledOrReadOnly: w,
|
|
3040
|
+
hasDisabledPopover: S
|
|
3041
|
+
} = Ae(), k = ir(), H = Pe(J["input-wrapper"], {
|
|
3042
|
+
[J.small]: r === "small",
|
|
3043
|
+
[J.large]: r === "large"
|
|
3044
|
+
}), q = Kt(), Y = Kt(), K = Pe(J.input, t, {
|
|
3045
|
+
[J.error]: i
|
|
3046
3046
|
});
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
}), [
|
|
3050
|
-
let
|
|
3051
|
-
|
|
3052
|
-
const
|
|
3047
|
+
ue(() => (w(!!(a || l)), () => {
|
|
3048
|
+
w(!1);
|
|
3049
|
+
}), [a, l, w]);
|
|
3050
|
+
let ee = `label${q} `;
|
|
3051
|
+
ee += ` helper${Y}`;
|
|
3052
|
+
const re = typeof i != "boolean" ? i : void 0, N = ie(null), [z, G] = le(!1), [se, D] = le(!1), [C, v] = le(
|
|
3053
3053
|
null
|
|
3054
|
-
), [
|
|
3054
|
+
), [M, L] = le(0);
|
|
3055
3055
|
sn(() => {
|
|
3056
|
-
var F,
|
|
3057
|
-
if (
|
|
3058
|
-
if (
|
|
3059
|
-
|
|
3060
|
-
else if ((F =
|
|
3061
|
-
const
|
|
3062
|
-
(
|
|
3063
|
-
const
|
|
3064
|
-
return
|
|
3065
|
-
...
|
|
3066
|
-
{ count:
|
|
3067
|
-
] :
|
|
3056
|
+
var F, te;
|
|
3057
|
+
if (x !== void 0) {
|
|
3058
|
+
if (z === !1)
|
|
3059
|
+
G(!0), D(!1), v(null), L((ne) => ne + 1);
|
|
3060
|
+
else if ((F = N == null ? void 0 : N.current) != null && F.children) {
|
|
3061
|
+
const ne = (te = N == null ? void 0 : N.current) == null ? void 0 : te.children, oe = Array.from(ne).reduce(
|
|
3062
|
+
(I, ce) => {
|
|
3063
|
+
const Z = ce.getBoundingClientRect().top;
|
|
3064
|
+
return I.length ? I[I.length - 1].top === Z ? [
|
|
3065
|
+
...I.slice(0, -1),
|
|
3066
|
+
{ count: I[I.length - 1].count + 1, top: Z }
|
|
3067
|
+
] : I[I.length - 1].top !== Z ? [...I, { count: 1, top: Z }] : I : [{ count: 1, top: Z }];
|
|
3068
3068
|
},
|
|
3069
3069
|
[]
|
|
3070
3070
|
);
|
|
3071
|
-
if (!
|
|
3072
|
-
|
|
3071
|
+
if (!oe[1] || C === 0)
|
|
3072
|
+
G(!1);
|
|
3073
3073
|
else {
|
|
3074
|
-
if (
|
|
3075
|
-
const
|
|
3076
|
-
|
|
3074
|
+
if (D(!0), C == null) {
|
|
3075
|
+
const I = Math.max(
|
|
3076
|
+
oe[0].count + oe[1].count - 2,
|
|
3077
3077
|
0
|
|
3078
3078
|
);
|
|
3079
|
-
|
|
3079
|
+
v(I);
|
|
3080
3080
|
} else
|
|
3081
|
-
|
|
3082
|
-
|
|
3081
|
+
v(C - 1);
|
|
3082
|
+
L((I) => I + 1);
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
|
-
}, [
|
|
3087
|
-
const B =
|
|
3088
|
-
return /* @__PURE__ */
|
|
3089
|
-
/* @__PURE__ */
|
|
3090
|
-
/* @__PURE__ */
|
|
3086
|
+
}, [p.length, x, M]);
|
|
3087
|
+
const B = se && x != null && C !== null ? C : p.length;
|
|
3088
|
+
return /* @__PURE__ */ j.jsxs("div", { className: J["search-field"], children: [
|
|
3089
|
+
/* @__PURE__ */ j.jsxs("div", { children: [
|
|
3090
|
+
/* @__PURE__ */ j.jsx(
|
|
3091
3091
|
sr,
|
|
3092
3092
|
{
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
required:
|
|
3096
|
-
|
|
3093
|
+
...$({
|
|
3094
|
+
id: q,
|
|
3095
|
+
required: s,
|
|
3096
|
+
moreInfo: u,
|
|
3097
|
+
openMoreInfo: c
|
|
3097
3098
|
}),
|
|
3098
3099
|
children: n
|
|
3099
3100
|
}
|
|
3100
3101
|
),
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
+
/* @__PURE__ */ j.jsxs(
|
|
3102
3103
|
"div",
|
|
3103
3104
|
{
|
|
3104
|
-
className:
|
|
3105
|
-
ref:
|
|
3105
|
+
className: H,
|
|
3106
|
+
ref: k.refs.setReference,
|
|
3106
3107
|
children: [
|
|
3107
|
-
/* @__PURE__ */
|
|
3108
|
-
|
|
3108
|
+
/* @__PURE__ */ j.jsxs("div", { className: J["buttons-wrapper"], children: [
|
|
3109
|
+
P || p.length ? /* @__PURE__ */ j.jsx("div", { className: J["close-button-wrapper"], children: /* @__PURE__ */ j.jsx(
|
|
3109
3110
|
jt,
|
|
3110
3111
|
{
|
|
3111
3112
|
"aria-label": "clear selection",
|
|
3112
3113
|
appearance: "ghost",
|
|
3113
3114
|
size: "small",
|
|
3114
3115
|
icon: cr,
|
|
3115
|
-
className:
|
|
3116
|
+
className: J["close-button"],
|
|
3116
3117
|
onClick: () => {
|
|
3117
|
-
|
|
3118
|
+
V != null ? V() : A(null);
|
|
3118
3119
|
},
|
|
3119
3120
|
tabIndex: -1,
|
|
3120
|
-
disabled:
|
|
3121
|
+
disabled: a || l
|
|
3121
3122
|
}
|
|
3122
3123
|
) }) : null,
|
|
3123
|
-
|
|
3124
|
+
S ? null : /* @__PURE__ */ j.jsx("div", { className: J["toggle-button-wrapper"], children: /* @__PURE__ */ j.jsx(
|
|
3124
3125
|
jt,
|
|
3125
3126
|
{
|
|
3126
3127
|
"aria-label": "toggle menu",
|
|
3127
|
-
...
|
|
3128
|
+
...f({
|
|
3128
3129
|
icon: dr,
|
|
3129
|
-
className:
|
|
3130
|
-
disabled:
|
|
3130
|
+
className: J["toggle-button"],
|
|
3131
|
+
disabled: a || l
|
|
3131
3132
|
}),
|
|
3132
3133
|
appearance: "ghost",
|
|
3133
3134
|
size: "small"
|
|
3134
3135
|
}
|
|
3135
3136
|
) })
|
|
3136
3137
|
] }),
|
|
3137
|
-
/* @__PURE__ */
|
|
3138
|
-
|
|
3139
|
-
const { onClick:
|
|
3138
|
+
/* @__PURE__ */ j.jsxs("div", { className: J["rows-wrapper"], ref: N, children: [
|
|
3139
|
+
p.length && b != null && _ != null ? p.slice(0, B).map((F, te) => {
|
|
3140
|
+
const { onClick: ne, ...oe } = _({
|
|
3140
3141
|
selectedItem: F,
|
|
3141
|
-
index:
|
|
3142
|
+
index: te
|
|
3142
3143
|
});
|
|
3143
|
-
return /* @__PURE__ */
|
|
3144
|
+
return /* @__PURE__ */ j.jsx(
|
|
3144
3145
|
"div",
|
|
3145
3146
|
{
|
|
3146
|
-
className:
|
|
3147
|
-
children: /* @__PURE__ */
|
|
3147
|
+
className: J["chip-wrapper"],
|
|
3148
|
+
children: /* @__PURE__ */ j.jsx(
|
|
3148
3149
|
$t,
|
|
3149
3150
|
{
|
|
3150
|
-
...
|
|
3151
|
-
label:
|
|
3152
|
-
onClose: () =>
|
|
3153
|
-
className:
|
|
3154
|
-
title:
|
|
3151
|
+
...oe,
|
|
3152
|
+
label: h(F),
|
|
3153
|
+
onClose: () => b(F),
|
|
3154
|
+
className: J.chip,
|
|
3155
|
+
title: h(F)
|
|
3155
3156
|
}
|
|
3156
3157
|
)
|
|
3157
3158
|
},
|
|
3158
|
-
`selected-item-${
|
|
3159
|
+
`selected-item-${te}`
|
|
3159
3160
|
);
|
|
3160
3161
|
}) : null,
|
|
3161
|
-
|
|
3162
|
+
se && x != null ? /* @__PURE__ */ j.jsx("div", { className: J["chip-wrapper"], children: /* @__PURE__ */ j.jsx(
|
|
3162
3163
|
$t,
|
|
3163
3164
|
{
|
|
3164
|
-
label: `+${
|
|
3165
|
-
className:
|
|
3166
|
-
title:
|
|
3165
|
+
label: `+${p.length - B}`,
|
|
3166
|
+
className: J.chip,
|
|
3167
|
+
title: p.slice(B).map((F) => h(F)).join(", ")
|
|
3167
3168
|
}
|
|
3168
3169
|
) }) : null,
|
|
3169
|
-
/* @__PURE__ */
|
|
3170
|
+
/* @__PURE__ */ j.jsxs(
|
|
3170
3171
|
or,
|
|
3171
3172
|
{
|
|
3172
3173
|
flex: "1 1 100px",
|
|
3173
3174
|
alignItems: "center",
|
|
3174
3175
|
style: { width: "100px" },
|
|
3175
3176
|
children: [
|
|
3176
|
-
|
|
3177
|
-
/* @__PURE__ */
|
|
3177
|
+
m ? /* @__PURE__ */ j.jsx("div", { className: J.prefix, children: m }) : null,
|
|
3178
|
+
/* @__PURE__ */ j.jsx(
|
|
3178
3179
|
"input",
|
|
3179
3180
|
{
|
|
3180
|
-
...
|
|
3181
|
-
|
|
3182
|
-
...
|
|
3183
|
-
className:
|
|
3184
|
-
disabled:
|
|
3185
|
-
readOnly:
|
|
3186
|
-
required:
|
|
3181
|
+
...y != null ? d(
|
|
3182
|
+
y({
|
|
3183
|
+
...E,
|
|
3184
|
+
className: K,
|
|
3185
|
+
disabled: a,
|
|
3186
|
+
readOnly: l,
|
|
3187
|
+
required: s,
|
|
3187
3188
|
autoComplete: "off",
|
|
3188
|
-
"aria-labelledby":
|
|
3189
|
-
preventKeyAction:
|
|
3189
|
+
"aria-labelledby": ee,
|
|
3190
|
+
preventKeyAction: R
|
|
3190
3191
|
})
|
|
3191
|
-
) :
|
|
3192
|
-
...
|
|
3193
|
-
className:
|
|
3194
|
-
disabled:
|
|
3195
|
-
readOnly:
|
|
3196
|
-
required:
|
|
3192
|
+
) : d({
|
|
3193
|
+
...E,
|
|
3194
|
+
className: K,
|
|
3195
|
+
disabled: a,
|
|
3196
|
+
readOnly: l,
|
|
3197
|
+
required: s,
|
|
3197
3198
|
autoComplete: "off",
|
|
3198
|
-
"aria-labelledby":
|
|
3199
|
+
"aria-labelledby": ee
|
|
3199
3200
|
})
|
|
3200
3201
|
}
|
|
3201
3202
|
),
|
|
3202
|
-
|
|
3203
|
+
O ? /* @__PURE__ */ j.jsx("div", { className: J.suffix, children: O }) : null
|
|
3203
3204
|
]
|
|
3204
3205
|
}
|
|
3205
3206
|
)
|
|
@@ -3208,11 +3209,11 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3208
3209
|
}
|
|
3209
3210
|
)
|
|
3210
3211
|
] }),
|
|
3211
|
-
o ||
|
|
3212
|
+
o || re || e ? /* @__PURE__ */ j.jsx(
|
|
3212
3213
|
fr,
|
|
3213
3214
|
{
|
|
3214
|
-
id:
|
|
3215
|
-
errorMessage:
|
|
3215
|
+
id: Y,
|
|
3216
|
+
errorMessage: re,
|
|
3216
3217
|
hint: o,
|
|
3217
3218
|
description: e
|
|
3218
3219
|
}
|
|
@@ -3229,22 +3230,22 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3229
3230
|
highlightedIndex: e,
|
|
3230
3231
|
selectedItem: s,
|
|
3231
3232
|
selectedItems: u,
|
|
3232
|
-
setHasDisabledPopover:
|
|
3233
|
+
setHasDisabledPopover: c,
|
|
3233
3234
|
getMenuProps: a,
|
|
3234
|
-
getItemProps:
|
|
3235
|
+
getItemProps: l,
|
|
3235
3236
|
isDisabledOrReadOnly: m
|
|
3236
|
-
} = Ae(),
|
|
3237
|
-
|
|
3237
|
+
} = Ae(), O = Pe(
|
|
3238
|
+
J["popover-content"],
|
|
3238
3239
|
n
|
|
3239
3240
|
);
|
|
3240
|
-
return
|
|
3241
|
-
|
|
3242
|
-
}), [r,
|
|
3241
|
+
return ue(() => (c(r), () => {
|
|
3242
|
+
c(!1);
|
|
3243
|
+
}), [r, c]), r ? /* @__PURE__ */ j.jsx("div", { ...i, className: O, children: t ? t({
|
|
3243
3244
|
items: o,
|
|
3244
3245
|
highlightedIndex: e,
|
|
3245
3246
|
selectedItem: s,
|
|
3246
3247
|
getMenuProps: a,
|
|
3247
|
-
getItemProps:
|
|
3248
|
+
getItemProps: l,
|
|
3248
3249
|
listProps: {
|
|
3249
3250
|
...a({}, { suppressRefError: !0 }),
|
|
3250
3251
|
style: {
|
|
@@ -3252,25 +3253,25 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3252
3253
|
overflow: "auto"
|
|
3253
3254
|
}
|
|
3254
3255
|
},
|
|
3255
|
-
options: o.map((
|
|
3256
|
+
options: o.map((x, E) => ({
|
|
3256
3257
|
optionProps: {
|
|
3257
|
-
...
|
|
3258
|
-
item:
|
|
3258
|
+
...l({
|
|
3259
|
+
item: x,
|
|
3259
3260
|
index: E
|
|
3260
3261
|
}),
|
|
3261
|
-
selected: s ===
|
|
3262
|
+
selected: s === x || u.includes(x),
|
|
3262
3263
|
disabled: m
|
|
3263
3264
|
// also see "isItemDisabled" function
|
|
3264
3265
|
},
|
|
3265
|
-
item:
|
|
3266
|
+
item: x,
|
|
3266
3267
|
index: E
|
|
3267
3268
|
}))
|
|
3268
|
-
}) : null }) : /* @__PURE__ */
|
|
3269
|
+
}) : null }) : /* @__PURE__ */ j.jsx(nt.Content, { ...i, className: O, children: t ? t({
|
|
3269
3270
|
items: o,
|
|
3270
3271
|
highlightedIndex: e,
|
|
3271
3272
|
selectedItem: s,
|
|
3272
3273
|
getMenuProps: a,
|
|
3273
|
-
getItemProps:
|
|
3274
|
+
getItemProps: l,
|
|
3274
3275
|
listProps: {
|
|
3275
3276
|
...a({}, { suppressRefError: !0 }),
|
|
3276
3277
|
style: {
|
|
@@ -3278,17 +3279,17 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3278
3279
|
overflow: "auto"
|
|
3279
3280
|
}
|
|
3280
3281
|
},
|
|
3281
|
-
options: o.map((
|
|
3282
|
+
options: o.map((x, E) => ({
|
|
3282
3283
|
optionProps: {
|
|
3283
|
-
...
|
|
3284
|
-
item:
|
|
3284
|
+
...l({
|
|
3285
|
+
item: x,
|
|
3285
3286
|
index: E
|
|
3286
3287
|
}),
|
|
3287
|
-
selected: s ===
|
|
3288
|
+
selected: s === x || u.includes(x),
|
|
3288
3289
|
disabled: m
|
|
3289
3290
|
// also see "isItemDisabled" function
|
|
3290
3291
|
},
|
|
3291
|
-
item:
|
|
3292
|
+
item: x,
|
|
3292
3293
|
index: E
|
|
3293
3294
|
}))
|
|
3294
3295
|
}) : null });
|
|
@@ -3297,7 +3298,7 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3297
3298
|
...n
|
|
3298
3299
|
}) {
|
|
3299
3300
|
const { getMenuProps: r, multiple: i, items: o, hasEmpty: e } = Ae();
|
|
3300
|
-
return i ? /* @__PURE__ */
|
|
3301
|
+
return i ? /* @__PURE__ */ j.jsx(
|
|
3301
3302
|
"div",
|
|
3302
3303
|
{
|
|
3303
3304
|
...r(n),
|
|
@@ -3308,8 +3309,8 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3308
3309
|
},
|
|
3309
3310
|
children: t
|
|
3310
3311
|
}
|
|
3311
|
-
) : /* @__PURE__ */
|
|
3312
|
-
/* @__PURE__ */
|
|
3312
|
+
) : /* @__PURE__ */ j.jsxs(j.Fragment, { children: [
|
|
3313
|
+
/* @__PURE__ */ j.jsx(
|
|
3313
3314
|
"ul",
|
|
3314
3315
|
{
|
|
3315
3316
|
...r(n),
|
|
@@ -3321,58 +3322,69 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3321
3322
|
children: t
|
|
3322
3323
|
}
|
|
3323
3324
|
),
|
|
3324
|
-
!o.length && !e ? /* @__PURE__ */
|
|
3325
|
+
!o.length && !e ? /* @__PURE__ */ j.jsx("div", { className: J.empty, children: /* @__PURE__ */ j.jsx(ar, { subdued: !0, size: "small", children: "No results found" }) }) : null
|
|
3325
3326
|
] });
|
|
3326
3327
|
}, Lo = function({
|
|
3327
3328
|
children: t,
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3329
|
+
disabled: n,
|
|
3330
|
+
item: r,
|
|
3331
|
+
index: i,
|
|
3332
|
+
...o
|
|
3331
3333
|
}) {
|
|
3332
|
-
const {
|
|
3333
|
-
|
|
3334
|
+
const {
|
|
3335
|
+
getItemProps: e,
|
|
3336
|
+
multiple: s,
|
|
3337
|
+
selectedItem: u,
|
|
3338
|
+
selectedItems: c,
|
|
3339
|
+
disabledItems: a,
|
|
3340
|
+
setDisabledItems: l
|
|
3341
|
+
} = Ae(), m = n || r && r instanceof Object && "disabled" in r && r.disabled;
|
|
3342
|
+
return ue(() => (n && !a.includes(r) ? l([...a, r]) : a.includes(r) && l(a.filter((O) => O === r)), () => {
|
|
3343
|
+
a.includes(r) && l(a.filter((O) => O === r));
|
|
3344
|
+
}), [r, n, l]), s ? /* @__PURE__ */ j.jsx(
|
|
3334
3345
|
"div",
|
|
3335
3346
|
{
|
|
3336
|
-
...
|
|
3337
|
-
item:
|
|
3338
|
-
index:
|
|
3339
|
-
...
|
|
3347
|
+
...e({
|
|
3348
|
+
item: r,
|
|
3349
|
+
index: i,
|
|
3350
|
+
...o
|
|
3340
3351
|
}),
|
|
3341
|
-
className:
|
|
3342
|
-
|
|
3352
|
+
className: Pe(
|
|
3353
|
+
J["listview-option"],
|
|
3343
3354
|
Ze["listview-option"]
|
|
3344
3355
|
),
|
|
3345
|
-
children: /* @__PURE__ */
|
|
3346
|
-
/* @__PURE__ */
|
|
3356
|
+
children: /* @__PURE__ */ j.jsxs("div", { className: Pe(J.cell, Ze.cell), children: [
|
|
3357
|
+
/* @__PURE__ */ j.jsx(
|
|
3347
3358
|
lr,
|
|
3348
3359
|
{
|
|
3349
|
-
checked:
|
|
3350
|
-
|
|
3351
|
-
|
|
3360
|
+
checked: c.includes(r),
|
|
3361
|
+
"aria-label": "Select",
|
|
3362
|
+
...m ? { disabled: !0 } : {}
|
|
3352
3363
|
}
|
|
3353
3364
|
),
|
|
3354
3365
|
t
|
|
3355
3366
|
] })
|
|
3356
3367
|
}
|
|
3357
|
-
) : /* @__PURE__ */
|
|
3368
|
+
) : /* @__PURE__ */ j.jsxs(
|
|
3358
3369
|
"li",
|
|
3359
3370
|
{
|
|
3360
|
-
...
|
|
3361
|
-
item:
|
|
3362
|
-
index:
|
|
3363
|
-
...
|
|
3371
|
+
...e({
|
|
3372
|
+
item: r,
|
|
3373
|
+
index: i,
|
|
3374
|
+
...o
|
|
3364
3375
|
}),
|
|
3365
3376
|
className: un.option,
|
|
3377
|
+
...m ? { "aria-disabled": !0 } : {},
|
|
3366
3378
|
children: [
|
|
3367
|
-
/* @__PURE__ */
|
|
3368
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ j.jsx("span", { children: t }),
|
|
3380
|
+
/* @__PURE__ */ j.jsx(
|
|
3369
3381
|
ur,
|
|
3370
3382
|
{
|
|
3371
3383
|
"aria-hidden": !0,
|
|
3372
3384
|
svg: pr,
|
|
3373
3385
|
inherit: !0,
|
|
3374
|
-
className:
|
|
3375
|
-
style: { opacity:
|
|
3386
|
+
className: J.Icon,
|
|
3387
|
+
style: { opacity: u === r ? 1 : 0 }
|
|
3376
3388
|
}
|
|
3377
3389
|
)
|
|
3378
3390
|
]
|
|
@@ -3382,10 +3394,10 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3382
3394
|
children: t
|
|
3383
3395
|
}) {
|
|
3384
3396
|
const { items: n, setHasEmpty: r } = Ae();
|
|
3385
|
-
return
|
|
3397
|
+
return ue(() => (r(!0), () => {
|
|
3386
3398
|
r(!1);
|
|
3387
3399
|
})), n.length ? null : t;
|
|
3388
|
-
},
|
|
3400
|
+
}, pi = Object.assign(Ao, {
|
|
3389
3401
|
SearchField: jo,
|
|
3390
3402
|
Content: $o,
|
|
3391
3403
|
List: Fo,
|
|
@@ -3393,6 +3405,6 @@ const Oo = "_combobox_1jt3w_2", Do = "_input_1jt3w_30", So = "_error_1jt3w_61",
|
|
|
3393
3405
|
Empty: Bo
|
|
3394
3406
|
});
|
|
3395
3407
|
export {
|
|
3396
|
-
|
|
3408
|
+
pi as x
|
|
3397
3409
|
};
|
|
3398
|
-
//# sourceMappingURL=Combobox-
|
|
3410
|
+
//# sourceMappingURL=Combobox-15edb0b7.js.map
|