@onereach/ui-components 7.0.0 → 7.0.1-beta.3531.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +1 -1
- package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v2/components/OrCode/OrCode.js +1 -1
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +1 -1
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +1 -1
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +3 -3
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +1 -1
- package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +1 -1
- package/dist/bundled/v2/components/OrModal/OrModal.js +2 -2
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +1 -1
- package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +1 -1
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +1 -1
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +1 -1
- package/dist/bundled/v2/components/OrResizeablePanelV3/OrResizeablePanel.js +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +621 -137
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +48 -29
- package/dist/bundled/v2/components/OrSelectV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/types.d.ts +3 -1
- package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +1 -1
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -1
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +138 -67
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +59 -14
- package/dist/bundled/v2/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +56 -19
- package/dist/bundled/v2/components/OrTagsV3/OrTags.vue.d.ts +32 -12
- package/dist/bundled/v2/components/OrTagsV3/props.d.ts +3 -1
- package/dist/bundled/v2/components/OrTagsV3/props.js +4 -0
- package/dist/bundled/v2/components/OrTagsV3/styles.js +15 -5
- package/dist/bundled/v2/components/OrTagsV3/types.d.ts +6 -0
- package/dist/bundled/v2/components/OrTagsV3/types.js +1 -0
- package/dist/bundled/v2/components/OrTagsV3/utils/castToTag.d.ts +2 -0
- package/dist/bundled/v2/components/OrTagsV3/utils/castToTag.js +12 -0
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +1 -1
- package/dist/bundled/v2/components/index.js +3 -3
- package/dist/bundled/v2/hooks/useOverflow.d.ts +4 -1
- package/dist/bundled/v2/hooks/useOverflow.js +10 -3
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v2/{index-a488b35e.js → index-a77d7adf.js} +23 -1
- package/dist/bundled/v2/index.js +4 -4
- package/dist/bundled/v2/{useFocusTrap-44eded81.js → useFocusTrap-dad25115.js} +1 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-37e2fc0e.js → OrBottomSheet.vue_vue_type_script_lang-5c209d34.js} +2 -2
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-bc25bb37.js → OrButton.vue_vue_type_script_lang-0f7bda53.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-77bcd3a8.js → OrCardCollection.vue_vue_type_script_lang-4bbd52e3.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-81901ad7.js → OrCardCollection.vue_vue_type_script_lang-832a6115.js} +3 -3
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-ada59489.js → OrCheckboxGroup.vue_vue_type_script_lang-850a6eba.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-aea94f67.js → OrCheckboxTree.vue_vue_type_script_lang-daa18318.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-12e5e92d.js → OrCode.vue_vue_type_script_lang-3a6280cf.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-9008d0ff.js → OrCode.vue_vue_type_script_lang-e7e395eb.js} +2 -2
- package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-5c6fd662.js → OrColorPicker.vue_vue_type_script_lang-ae778af6.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-22a73313.js → OrConfirm.vue_vue_type_script_lang-1c3c49c8.js} +6 -6
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-5dd6c37e.js → OrConfirm.vue_vue_type_script_lang-9ed9ba84.js} +4 -4
- package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-4d5e445b.js → OrContextMenu.vue_vue_type_script_lang-6caa81c0.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-eeb33130.js → OrDatePicker.vue_vue_type_script_lang-b2bdcc61.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-a75fb98f.js → OrDateTimePicker.vue_vue_type_script_lang-a4f4d0dd.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-3b26d48d.js → OrDateTimePicker.vue_vue_type_script_lang-fcacd5d0.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-0c4c9bbc.js → OrDateTimePickerPopoverHeader-0ebbb959.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-f2f452de.js → OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-c9eb540e.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-ca150449.js → OrDateTimePickerTimeSelect-934093b2.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-a35c30ce.js → OrIconButton.vue_vue_type_script_lang-6a53a819.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-df7eb768.js → OrInlineInput.vue_vue_type_script_lang-c5b3b8f5.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-70b79aec.js → OrInlineTextEdit.vue_vue_type_script_lang-3efb497c.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-4f7dfa64.js → OrInlineTextarea.vue_vue_type_script_lang-b36f6ddd.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-bea5b267.js → OrInput.vue_vue_type_script_lang-f558bdbb.js} +2 -2
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-aefd49c2.js → OrLoader.vue_vue_type_script_lang-e4fbf869.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-c4b4ca1b.js → OrMenu.vue_vue_type_script_lang-2ef9ec71.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-712e0986.js → OrModal.vue_vue_type_script_lang-a7ac4ac5.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-09c00129.js → OrModal.vue_vue_type_script_lang-c4d31fae.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-b53d29af.js → OrNotification.vue_vue_type_script_lang-eaf4f467.js} +1 -1
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-bba61b94.js → OrOverflowMenu.vue_vue_type_script_lang-fa75e033.js} +2 -2
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-a2afd31a.js → OrOverlay.vue_vue_type_script_lang-5b1f4a36.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-5b33bd96.js → OrPagination.vue_vue_type_script_lang-8a01d103.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-b36b869a.js → OrPassword.vue_vue_type_script_lang-5cacdf5e.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-2462c31d.js → OrPopover.vue_vue_type_script_lang-d7c493af.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-f2da8e58.js → OrProgress.vue_vue_type_script_lang-9f7dcc82.js} +1 -1
- package/dist/bundled/v3/{OrResizeablePanel.vue_vue_type_script_lang-6ff56926.js → OrResizeablePanel.vue_vue_type_script_lang-b521771e.js} +2 -2
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-3e868b85.js → OrRichTextEditor.vue_vue_type_script_lang-88d8212b.js} +8 -8
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-44935ef1.js → OrSearch.vue_vue_type_script_lang-89527d71.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-12b1c76f.js → OrSearch.vue_vue_type_script_lang-e756d8a8.js} +2 -2
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-3c895f3a.js +746 -0
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-0ae0fd63.js → OrSelect.vue_vue_type_script_lang-a4d17559.js} +1 -1
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-509fb105.js → OrSidebar.vue_vue_type_script_lang-314721d5.js} +1 -1
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-696f6851.js → OrSidebar.vue_vue_type_script_lang-f69f92ca.js} +1 -1
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-e0c33892.js → OrSlider.vue_vue_type_script_lang-207c0596.js} +1 -1
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-9c054059.js → OrSorting.vue_vue_type_script_lang-257e1c8b.js} +2 -2
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-188b038b.js → OrSwitch.vue_vue_type_script_lang-032fd11a.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-c06d9565.js → OrTabs.vue_vue_type_script_lang-ddac6c54.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-e4811b42.js → OrTag.vue_vue_type_script_lang-6c0094be.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-c074503e.js → OrTagInput.vue_vue_type_script_lang-cef895f1.js} +71 -14
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-ffa6d728.js → OrTags.vue_vue_type_script_lang-ab2ccd23.js} +45 -10
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-9f7d944b.js → OrTimePicker.vue_vue_type_script_lang-5c3cd13d.js} +4 -4
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-2ae21641.js → OrToastContainer.vue_vue_type_script_lang-2905654d.js} +1 -1
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-671d567d.js → OrToastContainer.vue_vue_type_script_lang-ccc99bf4.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-28b89a3e.js → OrTooltip.vue_vue_type_script_lang-dd0c252d.js} +1 -1
- package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-5f86b587.js → OrTree.vue_vue_type_script_lang-cd793811.js} +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollection/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCode/index.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirm/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
- package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +4 -4
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +2 -2
- package/dist/bundled/v3/components/OrLoaderV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModal/index.js +1 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +1 -1
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +2 -2
- package/dist/bundled/v3/components/OrPassword/index.js +1 -1
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
- package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.js +2 -2
- package/dist/bundled/v3/components/OrResizeablePanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearch/index.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelect/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +52 -84
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +21 -19
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/types.d.ts +3 -1
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebar/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v3/components/OrSlider/index.js +1 -1
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
- package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +60 -39
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +31 -12
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +22 -15
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +21 -7
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/props.d.ts +3 -1
- package/dist/bundled/v3/components/OrTagsV3/props.js +4 -0
- package/dist/bundled/v3/components/OrTagsV3/styles.js +15 -5
- package/dist/bundled/v3/components/OrTagsV3/types.d.ts +6 -0
- package/dist/bundled/v3/components/OrTagsV3/types.js +1 -0
- package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.d.ts +2 -0
- package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.js +12 -0
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToast/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainer/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTreeV3/OrTree.js +2 -2
- package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/index.js +55 -55
- package/dist/bundled/v3/hooks/useOverflow.d.ts +4 -1
- package/dist/bundled/v3/hooks/useOverflow.js +10 -3
- package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v3/{index-6c0c514a.js → index-0f230746.js} +1 -1
- package/dist/bundled/v3/{index-544e4b4e.js → index-6cbf1493.js} +1 -1
- package/dist/bundled/v3/{index-5baaa991.js → index-c5cda763.js} +24 -2
- package/dist/bundled/v3/index.js +56 -56
- package/dist/bundled/v3/{useFocusTrap-7acc7be5.js → useFocusTrap-aa5b17f6.js} +2 -2
- package/dist/esm/v2/{OrSelect-57af5b9a.js → OrSelect-578bcee2.js} +147 -197
- package/dist/esm/v2/OrSelectControlInput-28c226f8.js +140 -0
- package/dist/esm/v2/OrSelectMultipleControl-961d8d6a.js +209 -0
- package/dist/esm/v2/OrSelectPlaceholder-f36f4e40.js +69 -0
- package/dist/esm/v2/OrSelectSingleControl-76b29e0b.js +153 -0
- package/dist/esm/v2/{OrTagInput-51521313.js → OrTagInput-7f917d41.js} +140 -70
- package/dist/esm/v2/{OrTags-98807166.js → OrTags-ed4ddf4d.js} +86 -25
- package/dist/esm/v2/components/index.js +8 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +48 -29
- package/dist/esm/v2/components/or-select-v3/index.js +9 -3
- package/dist/esm/v2/components/or-select-v3/partials/index.d.ts +3 -0
- package/dist/esm/v2/components/or-select-v3/partials/index.js +32 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-control-input/OrSelectControlInput.vue.d.ts +73 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-control-input/index.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-control-input/index.js +10 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-control-input/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue.d.ts +140 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/index.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/index.js +31 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/utils/castToMultipleModel.d.ts +2 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-placeholder/index.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-placeholder/index.js +3 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue.d.ts +107 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-single-control/index.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-single-control/index.js +13 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-single-control/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/types.d.ts +3 -1
- package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +59 -14
- package/dist/esm/v2/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tags-v3/OrTags.vue.d.ts +32 -12
- package/dist/esm/v2/components/or-tags-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tags-v3/props.d.ts +3 -1
- package/dist/esm/v2/components/or-tags-v3/types.d.ts +6 -0
- package/dist/esm/v2/components/or-tags-v3/utils/castToTag.d.ts +2 -0
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/hooks/useOverflow.d.ts +4 -1
- package/dist/esm/v2/index.js +8 -4
- package/dist/esm/v2/{useOverflow-ff9ae748.js → useOverflow-b482f3c9.js} +9 -2
- package/dist/esm/v3/{OrSelect-74c2c521.js → OrSelect-b359beb6.js} +134 -179
- package/dist/esm/v3/OrSelectControlInput-3297e30d.js +99 -0
- package/dist/esm/v3/OrSelectMultipleControl-3620b234.js +172 -0
- package/dist/esm/v3/OrSelectPlaceholder-10e3bf5e.js +44 -0
- package/dist/esm/v3/OrSelectSingleControl-f969c913.js +132 -0
- package/dist/esm/v3/{OrTagInput-851b05c8.js → OrTagInput-56ee7d0b.js} +129 -52
- package/dist/esm/v3/{OrTags-55b8c446.js → OrTags-52da64cd.js} +92 -26
- package/dist/esm/v3/components/index.js +8 -4
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +21 -19
- package/dist/esm/v3/components/or-select-v3/index.js +9 -3
- package/dist/esm/v3/components/or-select-v3/partials/index.d.ts +3 -0
- package/dist/esm/v3/components/or-select-v3/partials/index.js +31 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-control-input/OrSelectControlInput.vue.d.ts +52 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-control-input/index.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-control-input/index.js +10 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-control-input/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue.d.ts +94 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/index.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/index.js +30 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/utils/castToMultipleModel.d.ts +2 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/index.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/index.js +3 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue.d.ts +73 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-single-control/index.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-single-control/index.js +13 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-single-control/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/types.d.ts +3 -1
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +31 -12
- package/dist/esm/v3/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +21 -7
- package/dist/esm/v3/components/or-tags-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tags-v3/props.d.ts +3 -1
- package/dist/esm/v3/components/or-tags-v3/types.d.ts +6 -0
- package/dist/esm/v3/components/or-tags-v3/utils/castToTag.d.ts +2 -0
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/hooks/useOverflow.d.ts +4 -1
- package/dist/esm/v3/index.js +8 -4
- package/dist/esm/v3/{useOverflow-ff9ae748.js → useOverflow-b482f3c9.js} +9 -2
- package/package.json +2 -3
- package/src/components/or-select-v3/OrSelect.vue +107 -115
- package/src/components/or-select-v3/partials/index.ts +3 -0
- package/src/components/or-select-v3/partials/or-select-control-input/OrSelectControlInput.vue +88 -0
- package/src/components/or-select-v3/partials/or-select-control-input/index.ts +1 -0
- package/src/components/or-select-v3/partials/or-select-control-input/styles.ts +13 -0
- package/src/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue +161 -0
- package/src/components/or-select-v3/partials/or-select-multiple-control/index.ts +1 -0
- package/src/components/or-select-v3/partials/or-select-multiple-control/styles.ts +6 -0
- package/src/components/or-select-v3/partials/or-select-multiple-control/utils/castToMultipleModel.ts +10 -0
- package/src/components/or-select-v3/partials/or-select-placeholder/index.ts +1 -0
- package/src/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue +131 -0
- package/src/components/or-select-v3/partials/or-select-single-control/index.ts +1 -0
- package/src/components/or-select-v3/partials/or-select-single-control/styles.ts +4 -0
- package/src/components/or-select-v3/styles.ts +1 -0
- package/src/components/or-select-v3/types.ts +5 -1
- package/src/components/or-tag-input-v3/OrTagInput.vue +121 -44
- package/src/components/or-tag-input-v3/styles.ts +1 -1
- package/src/components/or-tags-v3/OrTags.vue +67 -15
- package/src/components/or-tags-v3/props.ts +4 -0
- package/src/components/or-tags-v3/styles.ts +17 -2
- package/src/components/or-tags-v3/types.ts +6 -0
- package/src/components/or-tags-v3/utils/castToTag.ts +11 -0
- package/src/hooks/useOverflow.ts +13 -3
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-d1d57fd5.js +0 -352
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-06eb6ce3.js → OrDateTimePickerMonthSelect-0dfe417f.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-fceb3125.js → OrDateTimePickerPopoverHeader-20b13137.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-5ebd3f35.js → OrDateTimePickerTimeSelect-02a369fb.js} +0 -0
- /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-d7c2d142.js → OrExpansionPanel.vue_vue_type_script_lang-6efa4414.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as unrefElement } from './index-c5cda763.js';
|
|
2
2
|
import { ref, watch } from 'vue-demi';
|
|
3
|
-
import { d as tryOnScopeDispose } from './index-
|
|
3
|
+
import { d as tryOnScopeDispose } from './index-6cbf1493.js';
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
6
|
* tabbable 6.2.0
|
|
@@ -1,91 +1,29 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed, toRefs, onMounted, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
3
|
-
import { u as useOverflow } from './useOverflow-ff9ae748.js';
|
|
4
3
|
import '@vueuse/core';
|
|
4
|
+
import './dom-aecadd9a.js';
|
|
5
|
+
import { i as isEmptyValue } from './isEmptyValue-fd56a6e4.js';
|
|
5
6
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
6
7
|
import { u as useResponsive } from './useResponsive-5c8291da.js';
|
|
7
8
|
import '@onereach/styles/tailwind.config.json';
|
|
8
|
-
import {
|
|
9
|
-
import { _ as __vue_component__$
|
|
10
|
-
import { _ as __vue_component__$
|
|
11
|
-
import { _ as __vue_component__$
|
|
12
|
-
import { _ as __vue_component__$
|
|
13
|
-
import { _ as __vue_component__$7 } from './
|
|
14
|
-
import { _ as __vue_component__$
|
|
15
|
-
import { _ as __vue_component__$9 } from './OrInputBox-7dc5b9e9.js';
|
|
9
|
+
import { _ as __vue_component__$3 } from './OrCheckbox-6177b03e.js';
|
|
10
|
+
import { _ as __vue_component__$4 } from './OrError-916e928e.js';
|
|
11
|
+
import { _ as __vue_component__$5 } from './OrExpansionPanel-218abf58.js';
|
|
12
|
+
import { _ as __vue_component__$6 } from './OrHint-1220face.js';
|
|
13
|
+
import { _ as __vue_component__$8 } from './OrIconButton-07c0bd56.js';
|
|
14
|
+
import { _ as __vue_component__$7 } from './OrIcon-82bfdc62.js';
|
|
15
|
+
import { _ as __vue_component__$a } from './OrInputBox-7dc5b9e9.js';
|
|
16
16
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
17
|
-
import { _ as __vue_component__$
|
|
18
|
-
import { _ as __vue_component__$
|
|
19
|
-
import { _ as __vue_component__$
|
|
20
|
-
import { _ as __vue_component__$
|
|
21
|
-
import {
|
|
17
|
+
import { _ as __vue_component__$9 } from './OrInput-e9e91885.js';
|
|
18
|
+
import { _ as __vue_component__$b } from './OrLabel-b465bc0b.js';
|
|
19
|
+
import { _ as __vue_component__$c } from './OrMenuItem-8d1c89f6.js';
|
|
20
|
+
import { _ as __vue_component__$d } from './OrPopover-2ced765c.js';
|
|
21
|
+
import { T as TagsOverflow } from './OrTags-ed4ddf4d.js';
|
|
22
|
+
import { _ as __vue_component__$1 } from './OrSelectMultipleControl-961d8d6a.js';
|
|
23
|
+
import { _ as __vue_component__$2 } from './OrSelectSingleControl-76b29e0b.js';
|
|
24
|
+
import './OrSelectPlaceholder-f36f4e40.js';
|
|
22
25
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
23
26
|
|
|
24
|
-
const SelectPlaceholder = [
|
|
25
|
-
// Interactivity
|
|
26
|
-
'interactivity-default',
|
|
27
|
-
// Typography
|
|
28
|
-
'typography-inherit truncate',
|
|
29
|
-
// Theme
|
|
30
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
31
|
-
|
|
32
|
-
var script$1 = defineComponent({
|
|
33
|
-
props: {
|
|
34
|
-
disabled: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
expose: ['root'],
|
|
40
|
-
setup() {
|
|
41
|
-
// Refs
|
|
42
|
-
const root = ref();
|
|
43
|
-
// Styles
|
|
44
|
-
const rootStyles = computed(() => ['or-select-placeholder-v3', ...SelectPlaceholder]);
|
|
45
|
-
return {
|
|
46
|
-
root,
|
|
47
|
-
rootStyles
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
/* script */
|
|
53
|
-
const __vue_script__$1 = script$1;
|
|
54
|
-
|
|
55
|
-
/* template */
|
|
56
|
-
var __vue_render__$1 = function () {
|
|
57
|
-
var _vm = this;
|
|
58
|
-
var _h = _vm.$createElement;
|
|
59
|
-
var _c = _vm._self._c || _h;
|
|
60
|
-
return _c('div', {
|
|
61
|
-
ref: "root",
|
|
62
|
-
class: _vm.rootStyles,
|
|
63
|
-
attrs: {
|
|
64
|
-
"disabled": _vm.disabled ? '' : null
|
|
65
|
-
}
|
|
66
|
-
}, [_vm._t("default")], 2);
|
|
67
|
-
};
|
|
68
|
-
var __vue_staticRenderFns__$1 = [];
|
|
69
|
-
|
|
70
|
-
/* style */
|
|
71
|
-
const __vue_inject_styles__$1 = undefined;
|
|
72
|
-
/* scoped */
|
|
73
|
-
const __vue_scope_id__$1 = undefined;
|
|
74
|
-
/* module identifier */
|
|
75
|
-
const __vue_module_identifier__$1 = undefined;
|
|
76
|
-
/* functional template */
|
|
77
|
-
const __vue_is_functional_template__$1 = false;
|
|
78
|
-
/* style inject */
|
|
79
|
-
|
|
80
|
-
/* style inject SSR */
|
|
81
|
-
|
|
82
|
-
/* style inject shadow dom */
|
|
83
|
-
|
|
84
|
-
const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
85
|
-
render: __vue_render__$1,
|
|
86
|
-
staticRenderFns: __vue_staticRenderFns__$1
|
|
87
|
-
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
88
|
-
|
|
89
27
|
const Select = [
|
|
90
28
|
// Layout
|
|
91
29
|
'layout-column',
|
|
@@ -93,7 +31,7 @@ const Select = [
|
|
|
93
31
|
'gap-xs'];
|
|
94
32
|
const SelectControl = [
|
|
95
33
|
// Layout
|
|
96
|
-
'layout-row',
|
|
34
|
+
'layout-row', 'w-full',
|
|
97
35
|
// Layout (empty)
|
|
98
36
|
'empty:hidden',
|
|
99
37
|
// Overflow
|
|
@@ -141,19 +79,19 @@ const SelectNoSearchResults = [
|
|
|
141
79
|
|
|
142
80
|
var script = defineComponent({
|
|
143
81
|
components: {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
82
|
+
OrSelectMultipleControl: __vue_component__$1,
|
|
83
|
+
OrSelectSingleControl: __vue_component__$2,
|
|
84
|
+
OrCheckbox: __vue_component__$3,
|
|
85
|
+
OrError: __vue_component__$4,
|
|
86
|
+
OrExpansionPanel: __vue_component__$5,
|
|
87
|
+
OrHint: __vue_component__$6,
|
|
88
|
+
OrIcon: __vue_component__$7,
|
|
89
|
+
OrIconButton: __vue_component__$8,
|
|
90
|
+
OrInput: __vue_component__$9,
|
|
91
|
+
OrInputBox: __vue_component__$a,
|
|
92
|
+
OrLabel: __vue_component__$b,
|
|
93
|
+
OrMenuItem: __vue_component__$c,
|
|
94
|
+
OrPopover: __vue_component__$d
|
|
157
95
|
},
|
|
158
96
|
directives: {
|
|
159
97
|
DropdownClose,
|
|
@@ -192,10 +130,6 @@ var script = defineComponent({
|
|
|
192
130
|
type: String,
|
|
193
131
|
default: undefined
|
|
194
132
|
},
|
|
195
|
-
searchPlaceholder: {
|
|
196
|
-
type: String,
|
|
197
|
-
default: undefined
|
|
198
|
-
},
|
|
199
133
|
hint: {
|
|
200
134
|
type: String,
|
|
201
135
|
default: undefined
|
|
@@ -242,6 +176,10 @@ var script = defineComponent({
|
|
|
242
176
|
externalControl: {
|
|
243
177
|
type: Boolean,
|
|
244
178
|
default: false
|
|
179
|
+
},
|
|
180
|
+
overflow: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: TagsOverflow.Hidden
|
|
245
183
|
}
|
|
246
184
|
},
|
|
247
185
|
emits: ['update:modelValue', 'focus', 'blur', 'search'],
|
|
@@ -257,6 +195,8 @@ var script = defineComponent({
|
|
|
257
195
|
return (_a = inputBox.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
258
196
|
});
|
|
259
197
|
const control = ref();
|
|
198
|
+
const multipleControl = ref();
|
|
199
|
+
const singleControl = ref();
|
|
260
200
|
const searchControl = ref();
|
|
261
201
|
const popover = ref();
|
|
262
202
|
const popoverRoot = computed(() => {
|
|
@@ -270,7 +210,9 @@ var script = defineComponent({
|
|
|
270
210
|
// Props
|
|
271
211
|
const {
|
|
272
212
|
enableClear,
|
|
273
|
-
|
|
213
|
+
enableSearch,
|
|
214
|
+
modelValue,
|
|
215
|
+
multiple
|
|
274
216
|
} = toRefs(props);
|
|
275
217
|
// Styles
|
|
276
218
|
const rootStyles = computed(() => ['or-select-v3', ...Select]);
|
|
@@ -296,14 +238,15 @@ var script = defineComponent({
|
|
|
296
238
|
proxyModelValue.value = [];
|
|
297
239
|
}
|
|
298
240
|
});
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
241
|
+
const focused = computed(() => {
|
|
242
|
+
var _a, _b;
|
|
243
|
+
if (multiple.value) {
|
|
244
|
+
return (_a = multipleControl.value) === null || _a === void 0 ? void 0 : _a.focused;
|
|
245
|
+
} else {
|
|
246
|
+
return (_b = singleControl.value) === null || _b === void 0 ? void 0 : _b.focused;
|
|
304
247
|
}
|
|
305
|
-
return props.options.find(option => option.value === modelValue);
|
|
306
248
|
});
|
|
249
|
+
const readonly = computed(() => context.attrs.readonly);
|
|
307
250
|
const internalSearchOptions = ref(props.options);
|
|
308
251
|
const resolvedSearchOptions = computed(() => {
|
|
309
252
|
return props.externalControl ? props.searchOptions : internalSearchOptions.value;
|
|
@@ -340,49 +283,69 @@ var script = defineComponent({
|
|
|
340
283
|
if (!readonly.value && !props.disabled) {
|
|
341
284
|
const popoverInstance = popover.value;
|
|
342
285
|
if (popoverInstance) {
|
|
343
|
-
if (popoverState.value === 'open') {
|
|
344
|
-
|
|
286
|
+
if (popoverState.value === 'open' && !focused.value) {
|
|
287
|
+
close();
|
|
345
288
|
} else {
|
|
346
|
-
|
|
289
|
+
open();
|
|
290
|
+
focus();
|
|
347
291
|
}
|
|
348
292
|
}
|
|
349
293
|
}
|
|
350
294
|
}
|
|
295
|
+
function open() {
|
|
296
|
+
const popoverInstance = popover.value;
|
|
297
|
+
if (popoverInstance) {
|
|
298
|
+
popoverInstance.open();
|
|
299
|
+
}
|
|
300
|
+
}
|
|
351
301
|
function close() {
|
|
352
302
|
const popoverInstance = popover.value;
|
|
353
303
|
if (popoverInstance) {
|
|
354
304
|
popoverInstance.close();
|
|
355
305
|
}
|
|
356
306
|
}
|
|
307
|
+
function focus() {
|
|
308
|
+
if (enableSearch.value) {
|
|
309
|
+
const controlInstance = multiple.value ? multipleControl.value : singleControl.value;
|
|
310
|
+
if (controlInstance) {
|
|
311
|
+
controlInstance.focus();
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
357
315
|
function deselect(option) {
|
|
358
316
|
const modelValue = proxyModelValue.value;
|
|
359
317
|
if (Array.isArray(modelValue)) {
|
|
360
|
-
proxyModelValue.value = modelValue.filter(value => value !== option
|
|
318
|
+
proxyModelValue.value = modelValue.filter(value => value !== option);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
function toggleOption(option) {
|
|
322
|
+
const modelValue = proxyModelValue.value;
|
|
323
|
+
if (Array.isArray(modelValue)) {
|
|
324
|
+
if (modelValue.includes(option)) {
|
|
325
|
+
deselect(option);
|
|
326
|
+
} else {
|
|
327
|
+
proxyModelValue.value = [...modelValue, option];
|
|
328
|
+
}
|
|
329
|
+
} else {
|
|
330
|
+
proxyModelValue.value = option;
|
|
361
331
|
}
|
|
332
|
+
clearSearchControl();
|
|
362
333
|
}
|
|
363
334
|
function clearSearchControl() {
|
|
364
335
|
searchText.value = '';
|
|
365
336
|
}
|
|
366
|
-
const {
|
|
367
|
-
innerItems,
|
|
368
|
-
outerItems
|
|
369
|
-
} = useOverflow(control);
|
|
370
337
|
// Utils
|
|
371
338
|
const {
|
|
372
339
|
isDesktop,
|
|
373
340
|
isMobile
|
|
374
341
|
} = useResponsive();
|
|
375
|
-
// Effects
|
|
376
|
-
watch(searchControl, control => {
|
|
377
|
-
setTimeout(() => {
|
|
378
|
-
control === null || control === void 0 ? void 0 : control.focus();
|
|
379
|
-
});
|
|
380
|
-
});
|
|
381
342
|
return {
|
|
382
343
|
root,
|
|
383
344
|
inputBox,
|
|
384
345
|
inputBoxRoot,
|
|
385
346
|
control,
|
|
347
|
+
multipleControl,
|
|
348
|
+
singleControl,
|
|
386
349
|
searchControl,
|
|
387
350
|
popover,
|
|
388
351
|
popoverRoot,
|
|
@@ -398,17 +361,16 @@ var script = defineComponent({
|
|
|
398
361
|
readonly,
|
|
399
362
|
isEmptyModelValue,
|
|
400
363
|
showClear,
|
|
401
|
-
selection,
|
|
402
364
|
searchText,
|
|
403
365
|
internalSearchOptions,
|
|
404
366
|
resolvedSearchOptions,
|
|
405
367
|
groupedOptions,
|
|
406
368
|
toggle,
|
|
407
369
|
close,
|
|
370
|
+
open,
|
|
408
371
|
deselect,
|
|
372
|
+
toggleOption,
|
|
409
373
|
clearSearchControl,
|
|
410
|
-
innerItems,
|
|
411
|
-
outerItems,
|
|
412
374
|
isDesktop,
|
|
413
375
|
isMobile
|
|
414
376
|
};
|
|
@@ -453,7 +415,7 @@ var __vue_render__ = function () {
|
|
|
453
415
|
expression: "close"
|
|
454
416
|
}],
|
|
455
417
|
ref: "inputBox",
|
|
456
|
-
class: [_vm.popoverState === 'open' && (_vm.popover.isFlipped ? 'rounded-t-0' : 'rounded-b-0')],
|
|
418
|
+
class: [_vm.popoverState === 'open' && (_vm.popover && _vm.popover.isFlipped ? 'rounded-t-0' : 'rounded-b-0')],
|
|
457
419
|
attrs: {
|
|
458
420
|
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
459
421
|
"size": _vm.size,
|
|
@@ -477,66 +439,53 @@ var __vue_render__ = function () {
|
|
|
477
439
|
return _vm.$emit('blur', $event);
|
|
478
440
|
}
|
|
479
441
|
}
|
|
480
|
-
}, [_vm.
|
|
481
|
-
return _vm.
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
442
|
+
}, [_vm._t("valueTemplate", function () {
|
|
443
|
+
return [_vm.multiple ? [_c('OrSelectMultipleControl', {
|
|
444
|
+
ref: "multipleControl",
|
|
445
|
+
attrs: {
|
|
446
|
+
"options": _vm.options,
|
|
447
|
+
"model": _vm.proxyModelValue,
|
|
448
|
+
"placeholder": _vm.placeholder,
|
|
449
|
+
"disabled": _vm.disabled,
|
|
450
|
+
"readonly": _vm.readonly,
|
|
451
|
+
"enable-search": _vm.enableSearch,
|
|
452
|
+
"overflow": _vm.overflow
|
|
453
|
+
},
|
|
454
|
+
on: {
|
|
455
|
+
"reset": _vm.deselect
|
|
456
|
+
},
|
|
457
|
+
model: {
|
|
458
|
+
value: _vm.searchText,
|
|
459
|
+
callback: function ($$v) {
|
|
460
|
+
_vm.searchText = $$v;
|
|
487
461
|
},
|
|
488
|
-
|
|
489
|
-
"reset": function ($event) {
|
|
490
|
-
return _vm.deselect(option);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
|
|
494
|
-
});
|
|
495
|
-
}, {
|
|
496
|
-
"model": _vm.proxyModelValue
|
|
497
|
-
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
498
|
-
attrs: {
|
|
499
|
-
"disabled": _vm.disabled
|
|
500
|
-
}
|
|
501
|
-
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()] : [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
|
|
502
|
-
return [_c('span', {
|
|
503
|
-
staticClass: "truncate"
|
|
504
|
-
}, [_vm._v("\n " + _vm._s(_vm.selection && _vm.selection.label) + "\n ")])];
|
|
505
|
-
}, {
|
|
506
|
-
"model": _vm.proxyModelValue
|
|
507
|
-
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
508
|
-
attrs: {
|
|
509
|
-
"disabled": _vm.disabled
|
|
510
|
-
}
|
|
511
|
-
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
|
|
512
|
-
ref: "searchControl",
|
|
513
|
-
class: _vm.searchControlStyles.concat([_vm.isEmptyModelValue && 'md:!ml-none']),
|
|
514
|
-
attrs: {
|
|
515
|
-
"type": 'search',
|
|
516
|
-
"placeholder": _vm.searchPlaceholder,
|
|
517
|
-
"size": _vm.size,
|
|
518
|
-
"disable-default-styles": true
|
|
519
|
-
},
|
|
520
|
-
on: {
|
|
521
|
-
"click": function ($event) {
|
|
522
|
-
$event.stopPropagation();
|
|
462
|
+
expression: "searchText"
|
|
523
463
|
}
|
|
524
|
-
},
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
_vm.
|
|
464
|
+
})] : [_c('OrSelectSingleControl', {
|
|
465
|
+
ref: "singleControl",
|
|
466
|
+
attrs: {
|
|
467
|
+
"model": _vm.proxyModelValue,
|
|
468
|
+
"options": _vm.options,
|
|
469
|
+
"placeholder": _vm.placeholder,
|
|
470
|
+
"enable-search": _vm.enableSearch
|
|
529
471
|
},
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
472
|
+
model: {
|
|
473
|
+
value: _vm.searchText,
|
|
474
|
+
callback: function ($$v) {
|
|
475
|
+
_vm.searchText = $$v;
|
|
476
|
+
},
|
|
477
|
+
expression: "searchText"
|
|
478
|
+
}
|
|
479
|
+
})]];
|
|
480
|
+
}, {
|
|
481
|
+
"model": _vm.proxyModelValue
|
|
482
|
+
})], 2), _vm._v(" "), _c('div', {
|
|
535
483
|
class: ['layout-inline-row', 'gap-sm']
|
|
536
484
|
}, [_vm.showClear ? [_c('OrIconButton', {
|
|
537
485
|
attrs: {
|
|
538
486
|
"icon": 'close',
|
|
539
487
|
"color": 'inherit',
|
|
488
|
+
"additional-styles": ['!text-outline', '!dark:text-outline-dark'],
|
|
540
489
|
"disabled": _vm.readonly || _vm.disabled
|
|
541
490
|
},
|
|
542
491
|
on: {
|
|
@@ -546,8 +495,9 @@ var __vue_render__ = function () {
|
|
|
546
495
|
}
|
|
547
496
|
}
|
|
548
497
|
})] : _vm._e(), _vm._v(" "), _c('OrIcon', {
|
|
498
|
+
class: _vm.popoverState === 'open' && _vm.enableSearch ? '!text-outline !dark:text-outline-dark' : '',
|
|
549
499
|
attrs: {
|
|
550
|
-
"icon": _vm.popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down',
|
|
500
|
+
"icon": _vm.popoverState === 'open' ? _vm.enableSearch ? 'search' : 'arrow_drop_up' : 'arrow_drop_down',
|
|
551
501
|
"variant": 'outlined'
|
|
552
502
|
}
|
|
553
503
|
})], 2), _vm._v(" "), _c('OrPopover', {
|
|
@@ -559,18 +509,13 @@ var __vue_render__ = function () {
|
|
|
559
509
|
"full-width": true,
|
|
560
510
|
"custom-styles": _vm.dropdownStyles,
|
|
561
511
|
"disable-default-styles": true
|
|
562
|
-
},
|
|
563
|
-
on: {
|
|
564
|
-
"close": function ($event) {
|
|
565
|
-
return _vm.clearSearchControl();
|
|
566
|
-
}
|
|
567
512
|
}
|
|
568
513
|
}, [_vm.popoverState === 'open' && _vm.enableSearch && _vm.isMobile ? [_c('OrInput', {
|
|
569
514
|
ref: "searchControl",
|
|
570
515
|
class: _vm.searchControlStyles,
|
|
571
516
|
attrs: {
|
|
572
517
|
"type": 'search',
|
|
573
|
-
"placeholder": _vm.
|
|
518
|
+
"placeholder": _vm.placeholder
|
|
574
519
|
},
|
|
575
520
|
model: {
|
|
576
521
|
value: _vm.searchText,
|
|
@@ -620,8 +565,7 @@ var __vue_render__ = function () {
|
|
|
620
565
|
on: {
|
|
621
566
|
"click": function ($event) {
|
|
622
567
|
$event.stopPropagation();
|
|
623
|
-
_vm.
|
|
624
|
-
_vm.close();
|
|
568
|
+
return _vm.toggleOption(option.value);
|
|
625
569
|
}
|
|
626
570
|
}
|
|
627
571
|
}, [_vm._t("optionTemplate", function () {
|
|
@@ -636,24 +580,31 @@ var __vue_render__ = function () {
|
|
|
636
580
|
key: i,
|
|
637
581
|
attrs: {
|
|
638
582
|
"selected": _vm.proxyModelValue && _vm.proxyModelValue.includes(option.value)
|
|
583
|
+
},
|
|
584
|
+
on: {
|
|
585
|
+
"click": function ($event) {
|
|
586
|
+
$event.stopPropagation();
|
|
587
|
+
return _vm.toggleOption(option.value);
|
|
588
|
+
}
|
|
639
589
|
}
|
|
640
590
|
}, [_c('OrCheckbox', {
|
|
641
591
|
attrs: {
|
|
592
|
+
"model-value": _vm.proxyModelValue,
|
|
642
593
|
"value": option.value,
|
|
643
|
-
"label": option.label,
|
|
644
594
|
"label-variant": 'menu-item'
|
|
645
|
-
},
|
|
646
|
-
model: {
|
|
647
|
-
value: _vm.proxyModelValue,
|
|
648
|
-
callback: function ($$v) {
|
|
649
|
-
_vm.proxyModelValue = $$v;
|
|
650
|
-
},
|
|
651
|
-
expression: "proxyModelValue"
|
|
652
595
|
}
|
|
653
|
-
}, [
|
|
596
|
+
}, [_c('div', {
|
|
597
|
+
on: {
|
|
598
|
+
"click": function ($event) {
|
|
599
|
+
return _vm.toggleOption(option.value);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}, [_vm._t("optionTemplate", function () {
|
|
603
|
+
return [_vm._v("\n " + _vm._s(option.label) + "\n ")];
|
|
604
|
+
}, {
|
|
654
605
|
"model": _vm.proxyModelValue,
|
|
655
606
|
"option": option
|
|
656
|
-
})], 2)], 1);
|
|
607
|
+
})], 2)])], 1);
|
|
657
608
|
}) : _vm._l(_vm.resolvedSearchOptions, function (option, i) {
|
|
658
609
|
return _c('OrMenuItem', {
|
|
659
610
|
key: i,
|
|
@@ -664,8 +615,7 @@ var __vue_render__ = function () {
|
|
|
664
615
|
on: {
|
|
665
616
|
"click": function ($event) {
|
|
666
617
|
$event.stopPropagation();
|
|
667
|
-
_vm.
|
|
668
|
-
_vm.close();
|
|
618
|
+
return _vm.toggleOption(option.value);
|
|
669
619
|
}
|
|
670
620
|
}
|
|
671
621
|
}, [_vm._t("optionTemplate", function () {
|
|
@@ -678,7 +628,7 @@ var __vue_render__ = function () {
|
|
|
678
628
|
class: _vm.noSearchResultsStyles
|
|
679
629
|
}, [_vm._t("noSearchResultsTemplate", function () {
|
|
680
630
|
return [_vm._v("\n No results\n ")];
|
|
681
|
-
})], 2)]], 2)],
|
|
631
|
+
})], 2)]], 2)], 1), _vm._v(" "), _c('div', {
|
|
682
632
|
directives: [{
|
|
683
633
|
name: "show",
|
|
684
634
|
rawName: "v-show",
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent, ref, toRefs, computed } from 'vue-demi';
|
|
2
|
+
import { useFocus } from '@vueuse/core';
|
|
3
|
+
import './dom-aecadd9a.js';
|
|
4
|
+
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
5
|
+
import '@onereach/styles/tailwind/plugins/core';
|
|
6
|
+
import '@onereach/styles/tailwind.config.json';
|
|
7
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
|
+
|
|
9
|
+
const SelectControlInput = [
|
|
10
|
+
// Base
|
|
11
|
+
'appearance-none',
|
|
12
|
+
// Typography
|
|
13
|
+
'typography-inherit',
|
|
14
|
+
// Theme (placeholder)
|
|
15
|
+
'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark', 'theme-background-transparent', 'outline-none'];
|
|
16
|
+
|
|
17
|
+
var script = defineComponent({
|
|
18
|
+
model: {
|
|
19
|
+
prop: 'modelValue',
|
|
20
|
+
event: 'update:modelValue'
|
|
21
|
+
},
|
|
22
|
+
props: {
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ''
|
|
26
|
+
},
|
|
27
|
+
placeholder: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ''
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
readonly: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
emits: ['update:modelValue'],
|
|
41
|
+
expose: ['focused', 'root', 'focus'],
|
|
42
|
+
setup(props, context) {
|
|
43
|
+
// Refs
|
|
44
|
+
const root = ref();
|
|
45
|
+
// Props
|
|
46
|
+
const {
|
|
47
|
+
placeholder,
|
|
48
|
+
modelValue
|
|
49
|
+
} = toRefs(props);
|
|
50
|
+
// State
|
|
51
|
+
const proxyModelValue = useProxyModelValue(modelValue, context.emit);
|
|
52
|
+
const {
|
|
53
|
+
focused
|
|
54
|
+
} = useFocus(root);
|
|
55
|
+
// Styles
|
|
56
|
+
const controlStyles = computed(() => [...SelectControlInput]);
|
|
57
|
+
const controlInlineStyles = computed(() => {
|
|
58
|
+
var _a;
|
|
59
|
+
const chars = proxyModelValue.value.length > 0 ? proxyModelValue.value.length : (_a = placeholder.value) === null || _a === void 0 ? void 0 : _a.length;
|
|
60
|
+
return {
|
|
61
|
+
width: `${Math.max(chars + 1 || 0, 2)}ch`
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
// Methods
|
|
65
|
+
function focus() {
|
|
66
|
+
focused.value = true;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
root,
|
|
70
|
+
proxyModelValue,
|
|
71
|
+
controlStyles,
|
|
72
|
+
controlInlineStyles,
|
|
73
|
+
focused,
|
|
74
|
+
focus
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/* script */
|
|
80
|
+
const __vue_script__ = script;
|
|
81
|
+
|
|
82
|
+
/* template */
|
|
83
|
+
var __vue_render__ = function () {
|
|
84
|
+
var _vm = this;
|
|
85
|
+
var _h = _vm.$createElement;
|
|
86
|
+
var _c = _vm._self._c || _h;
|
|
87
|
+
return _c('input', {
|
|
88
|
+
directives: [{
|
|
89
|
+
name: "model",
|
|
90
|
+
rawName: "v-model",
|
|
91
|
+
value: _vm.proxyModelValue,
|
|
92
|
+
expression: "proxyModelValue"
|
|
93
|
+
}],
|
|
94
|
+
ref: "root",
|
|
95
|
+
class: _vm.controlStyles,
|
|
96
|
+
style: _vm.controlInlineStyles,
|
|
97
|
+
attrs: {
|
|
98
|
+
"placeholder": _vm.placeholder,
|
|
99
|
+
"readonly": _vm.readonly,
|
|
100
|
+
"disabled": _vm.disabled,
|
|
101
|
+
"autocomplete": 'off',
|
|
102
|
+
"minlength": undefined,
|
|
103
|
+
"maxlength": undefined,
|
|
104
|
+
"type": 'text'
|
|
105
|
+
},
|
|
106
|
+
domProps: {
|
|
107
|
+
"value": _vm.proxyModelValue
|
|
108
|
+
},
|
|
109
|
+
on: {
|
|
110
|
+
"input": function ($event) {
|
|
111
|
+
if ($event.target.composing) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
_vm.proxyModelValue = $event.target.value;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
var __vue_staticRenderFns__ = [];
|
|
120
|
+
|
|
121
|
+
/* style */
|
|
122
|
+
const __vue_inject_styles__ = undefined;
|
|
123
|
+
/* scoped */
|
|
124
|
+
const __vue_scope_id__ = undefined;
|
|
125
|
+
/* module identifier */
|
|
126
|
+
const __vue_module_identifier__ = undefined;
|
|
127
|
+
/* functional template */
|
|
128
|
+
const __vue_is_functional_template__ = false;
|
|
129
|
+
/* style inject */
|
|
130
|
+
|
|
131
|
+
/* style inject SSR */
|
|
132
|
+
|
|
133
|
+
/* style inject shadow dom */
|
|
134
|
+
|
|
135
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
136
|
+
render: __vue_render__,
|
|
137
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
138
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
139
|
+
|
|
140
|
+
export { __vue_component__ as _ };
|