@onereach/ui-components 7.0.0 → 7.0.1-beta.3529.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
|
@@ -18,21 +18,36 @@ export const Tags: string[] = [
|
|
|
18
18
|
export const TagsContainer: string[] = [
|
|
19
19
|
// Layout
|
|
20
20
|
'layout-row',
|
|
21
|
+
'max-w-full',
|
|
21
22
|
|
|
22
23
|
// Spacing
|
|
23
24
|
'gap-sm',
|
|
25
|
+
'py-xs',
|
|
24
26
|
];
|
|
25
27
|
|
|
26
28
|
export const TagsContainerOverflows: Record<TagsOverflow, string[]> = {
|
|
29
|
+
// todo: remove in next braking release
|
|
30
|
+
// @deprecated use Hidden instead
|
|
27
31
|
[TagsOverflow.Default]: [
|
|
28
32
|
// Overflow
|
|
29
33
|
'overflow-hidden',
|
|
30
34
|
],
|
|
31
35
|
|
|
36
|
+
[TagsOverflow.Hidden]: [
|
|
37
|
+
// Overflow
|
|
38
|
+
'overflow-hidden',
|
|
39
|
+
],
|
|
40
|
+
|
|
32
41
|
[TagsOverflow.Wrap]: [
|
|
33
42
|
// Layout
|
|
34
43
|
'!flex-wrap',
|
|
35
44
|
],
|
|
45
|
+
[TagsOverflow.Scroll]: [
|
|
46
|
+
// Layout
|
|
47
|
+
'overflow-y-auto',
|
|
48
|
+
// todo: extract to plugin?
|
|
49
|
+
'[&::-webkit-scrollbar]:hidden [-ms-overflow-style:\'none\'] [scrollbar-width:\'none\']',
|
|
50
|
+
],
|
|
36
51
|
};
|
|
37
52
|
|
|
38
53
|
export const TagsOverflowButton: string[] = [
|
|
@@ -42,10 +57,10 @@ export const TagsOverflowButton: string[] = [
|
|
|
42
57
|
|
|
43
58
|
export const TagsOverflowPopover: string[] = [
|
|
44
59
|
// Layout
|
|
45
|
-
'layout-row !flex-wrap',
|
|
60
|
+
'layout-row !flex-wrap !content-start overflow-y-auto',
|
|
46
61
|
|
|
47
62
|
// Box
|
|
48
|
-
'max-w-[192px]',
|
|
63
|
+
'max-w-[192px] max-h-[340px]',
|
|
49
64
|
|
|
50
65
|
// Spacing
|
|
51
66
|
'px-md',
|
package/src/hooks/useOverflow.ts
CHANGED
|
@@ -7,7 +7,13 @@ export interface Overflow {
|
|
|
7
7
|
outerItems: Ref<HTMLElement[]>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export
|
|
10
|
+
export interface UseOverflowOptions {
|
|
11
|
+
hide?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export function useOverflow(
|
|
14
|
+
container: MaybeElementRef<HTMLElement | undefined>,
|
|
15
|
+
options: UseOverflowOptions = { hide: true },
|
|
16
|
+
): Overflow {
|
|
11
17
|
const containerRef = isRef(container) ? container : ref(container);
|
|
12
18
|
|
|
13
19
|
// State
|
|
@@ -26,14 +32,18 @@ export function useOverflow(container: MaybeElementRef<HTMLElement | undefined>)
|
|
|
26
32
|
const { x: containerOffset, width: containerWidth } = container.getBoundingClientRect();
|
|
27
33
|
|
|
28
34
|
if (itemOffset + itemWidth > containerOffset + containerWidth) {
|
|
29
|
-
|
|
35
|
+
if (options.hide) {
|
|
36
|
+
item.style.setProperty('visibility', 'hidden');
|
|
37
|
+
}
|
|
30
38
|
|
|
31
39
|
return {
|
|
32
40
|
innerItems,
|
|
33
41
|
outerItems: [...outerItems, item],
|
|
34
42
|
};
|
|
35
43
|
} else {
|
|
36
|
-
|
|
44
|
+
if (options.hide) {
|
|
45
|
+
item.style.removeProperty('visibility');
|
|
46
|
+
}
|
|
37
47
|
|
|
38
48
|
return {
|
|
39
49
|
innerItems: [...innerItems, item],
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, getCurrentInstance, toRefs, onMounted, watch } from 'vue-demi';
|
|
2
|
-
import { isEmptyValue } from './utils/isEmptyValue.js';
|
|
3
|
-
import { openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
|
|
4
|
-
import { Select, SelectControl, SelectSearchControl, SelectDropdown, SelectDropdownFlipped, SelectDropdownDefault, SelectDropdownItem, SelectNoSearchResults } from './components/OrSelectV3/styles.js';
|
|
5
|
-
import './components/OrCheckboxV3/OrCheckbox.js';
|
|
6
|
-
import './components/OrErrorV3/OrError.js';
|
|
7
|
-
import './components/OrExpansionPanelV3/OrExpansionPanel.js';
|
|
8
|
-
import { s as script$4 } from './OrExpansionPanel.vue_vue_type_script_lang-d7c2d142.js';
|
|
9
|
-
import './components/OrHintV3/OrHint.js';
|
|
10
|
-
import './components/OrIconV3/OrIcon.js';
|
|
11
|
-
import './components/OrIconButtonV3/OrIconButton.js';
|
|
12
|
-
import './components/OrInputV3/OrInput.js';
|
|
13
|
-
import './components/OrInputBoxV3/OrInputBox.js';
|
|
14
|
-
import './components/OrLabelV3/OrLabel.js';
|
|
15
|
-
import './components/OrMenuItemV3/OrMenuItem.js';
|
|
16
|
-
import './components/OrPopoverV3/OrPopover.js';
|
|
17
|
-
import './components/OrTagV3/OrTag.js';
|
|
18
|
-
import { s as script$d } from './OrTag.vue_vue_type_script_lang-e4811b42.js';
|
|
19
|
-
import { useOverflow } from './hooks/useOverflow.js';
|
|
20
|
-
import { s as script$2 } from './OrCheckbox.vue_vue_type_script_lang-cdc466f7.js';
|
|
21
|
-
import { s as script$3 } from './OrError.vue_vue_type_script_lang-fcf91781.js';
|
|
22
|
-
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-0ab8b932.js';
|
|
23
|
-
import { s as script$6 } from './OrIcon.vue_vue_type_script_lang-bc674d9e.js';
|
|
24
|
-
import { s as script$7 } from './OrIconButton.vue_vue_type_script_lang-a35c30ce.js';
|
|
25
|
-
import { s as script$8 } from './OrInput.vue_vue_type_script_lang-bea5b267.js';
|
|
26
|
-
import { s as script$9 } from './OrInputBox.vue_vue_type_script_lang-137cb650.js';
|
|
27
|
-
import { s as script$a } from './OrLabel.vue_vue_type_script_lang-e2bcff17.js';
|
|
28
|
-
import { s as script$b } from './OrMenuItem.vue_vue_type_script_lang-1e9ee207.js';
|
|
29
|
-
import { s as script$c } from './OrPopover.vue_vue_type_script_lang-2462c31d.js';
|
|
30
|
-
import { DropdownClose } from './directives/dropdown-close.js';
|
|
31
|
-
import { DropdownOpen } from './directives/dropdown-open.js';
|
|
32
|
-
import { InputBoxSize } from './components/OrInputBoxV3/props.js';
|
|
33
|
-
import { useProxyModelValue } from './hooks/useProxyModelValue.js';
|
|
34
|
-
import useResponsive from './hooks/useResponsive/useResponsive.js';
|
|
35
|
-
|
|
36
|
-
const SelectPlaceholder = [
|
|
37
|
-
// Interactivity
|
|
38
|
-
'interactivity-default',
|
|
39
|
-
// Typography
|
|
40
|
-
'typography-inherit truncate',
|
|
41
|
-
// Theme
|
|
42
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
43
|
-
|
|
44
|
-
var script$1 = defineComponent({
|
|
45
|
-
props: {
|
|
46
|
-
disabled: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
expose: ['root'],
|
|
52
|
-
setup() {
|
|
53
|
-
// Refs
|
|
54
|
-
const root = ref();
|
|
55
|
-
// Styles
|
|
56
|
-
const rootStyles = computed(() => ['or-select-placeholder-v3', ...SelectPlaceholder]);
|
|
57
|
-
return {
|
|
58
|
-
root,
|
|
59
|
-
rootStyles
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
const _hoisted_1 = ["disabled"];
|
|
65
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
-
return openBlock(), createElementBlock("div", {
|
|
67
|
-
ref: "root",
|
|
68
|
-
class: normalizeClass(_ctx.rootStyles),
|
|
69
|
-
disabled: _ctx.disabled ? '' : null
|
|
70
|
-
}, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
script$1.render = render;
|
|
74
|
-
script$1.__file = "src/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue";
|
|
75
|
-
|
|
76
|
-
var script = defineComponent({
|
|
77
|
-
components: {
|
|
78
|
-
OrCheckbox: script$2,
|
|
79
|
-
OrError: script$3,
|
|
80
|
-
OrExpansionPanel: script$4,
|
|
81
|
-
OrHint: script$5,
|
|
82
|
-
OrIcon: script$6,
|
|
83
|
-
OrIconButton: script$7,
|
|
84
|
-
OrInput: script$8,
|
|
85
|
-
OrInputBox: script$9,
|
|
86
|
-
OrLabel: script$a,
|
|
87
|
-
OrMenuItem: script$b,
|
|
88
|
-
OrPopover: script$c,
|
|
89
|
-
OrSelectPlaceholder: script$1,
|
|
90
|
-
OrTag: script$d
|
|
91
|
-
},
|
|
92
|
-
directives: {
|
|
93
|
-
DropdownClose,
|
|
94
|
-
DropdownOpen
|
|
95
|
-
},
|
|
96
|
-
model: {
|
|
97
|
-
prop: 'modelValue',
|
|
98
|
-
event: 'update:modelValue'
|
|
99
|
-
},
|
|
100
|
-
props: {
|
|
101
|
-
options: {
|
|
102
|
-
type: Array,
|
|
103
|
-
default: () => []
|
|
104
|
-
},
|
|
105
|
-
searchOptions: {
|
|
106
|
-
type: Array,
|
|
107
|
-
default: () => []
|
|
108
|
-
},
|
|
109
|
-
modelValue: {
|
|
110
|
-
type: [Object, String, Number, Array],
|
|
111
|
-
default: undefined
|
|
112
|
-
},
|
|
113
|
-
multiple: {
|
|
114
|
-
type: Boolean,
|
|
115
|
-
default: false
|
|
116
|
-
},
|
|
117
|
-
size: {
|
|
118
|
-
type: String,
|
|
119
|
-
default: InputBoxSize.M
|
|
120
|
-
},
|
|
121
|
-
label: {
|
|
122
|
-
type: String,
|
|
123
|
-
default: undefined
|
|
124
|
-
},
|
|
125
|
-
placeholder: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: undefined
|
|
128
|
-
},
|
|
129
|
-
searchPlaceholder: {
|
|
130
|
-
type: String,
|
|
131
|
-
default: undefined
|
|
132
|
-
},
|
|
133
|
-
hint: {
|
|
134
|
-
type: String,
|
|
135
|
-
default: undefined
|
|
136
|
-
},
|
|
137
|
-
error: {
|
|
138
|
-
type: [String, Boolean],
|
|
139
|
-
default: undefined
|
|
140
|
-
},
|
|
141
|
-
required: {
|
|
142
|
-
type: Boolean,
|
|
143
|
-
default: false
|
|
144
|
-
},
|
|
145
|
-
disabled: {
|
|
146
|
-
type: Boolean,
|
|
147
|
-
default: false
|
|
148
|
-
},
|
|
149
|
-
disableDefaultStyles: {
|
|
150
|
-
type: Boolean,
|
|
151
|
-
default: false
|
|
152
|
-
},
|
|
153
|
-
enableSearch: {
|
|
154
|
-
type: Boolean,
|
|
155
|
-
default: false
|
|
156
|
-
},
|
|
157
|
-
enableClear: {
|
|
158
|
-
type: Boolean,
|
|
159
|
-
default: false
|
|
160
|
-
},
|
|
161
|
-
searchFunction: {
|
|
162
|
-
type: Function,
|
|
163
|
-
default: async (searchText, options) => {
|
|
164
|
-
return options.filter(_ref => {
|
|
165
|
-
let {
|
|
166
|
-
label
|
|
167
|
-
} = _ref;
|
|
168
|
-
return label.toLowerCase().includes(searchText.toLowerCase());
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
groupByFunction: {
|
|
173
|
-
type: Function,
|
|
174
|
-
default: undefined
|
|
175
|
-
},
|
|
176
|
-
externalControl: {
|
|
177
|
-
type: Boolean,
|
|
178
|
-
default: false
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
emits: ['update:modelValue', 'focus', 'blur', 'search'],
|
|
182
|
-
expose: ['root'],
|
|
183
|
-
setup(props, context) {
|
|
184
|
-
var _a;
|
|
185
|
-
const currentInstance = getCurrentInstance();
|
|
186
|
-
// Refs
|
|
187
|
-
const root = ref();
|
|
188
|
-
const inputBox = ref();
|
|
189
|
-
const inputBoxRoot = computed(() => {
|
|
190
|
-
var _a;
|
|
191
|
-
return (_a = inputBox.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
192
|
-
});
|
|
193
|
-
const control = ref();
|
|
194
|
-
const searchControl = ref();
|
|
195
|
-
const popover = ref();
|
|
196
|
-
const popoverRoot = computed(() => {
|
|
197
|
-
var _a;
|
|
198
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
199
|
-
});
|
|
200
|
-
const popoverState = computed(() => {
|
|
201
|
-
var _a;
|
|
202
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
203
|
-
});
|
|
204
|
-
// Props
|
|
205
|
-
const {
|
|
206
|
-
enableClear,
|
|
207
|
-
modelValue
|
|
208
|
-
} = toRefs(props);
|
|
209
|
-
// Styles
|
|
210
|
-
const rootStyles = computed(() => ['or-select-v3', ...Select]);
|
|
211
|
-
const controlStyles = computed(() => [...SelectControl]);
|
|
212
|
-
const searchControlStyles = computed(() => [...SelectSearchControl]);
|
|
213
|
-
const dropdownStyles = computed(() => {
|
|
214
|
-
var _a;
|
|
215
|
-
return [...SelectDropdown, ...(((_a = popover.value) === null || _a === void 0 ? void 0 : _a.isFlipped) ? SelectDropdownFlipped : SelectDropdownDefault)];
|
|
216
|
-
});
|
|
217
|
-
const dropdownItemStyles = computed(() => [...SelectDropdownItem]);
|
|
218
|
-
const noSearchResultsStyles = computed(() => [...SelectNoSearchResults]);
|
|
219
|
-
// State
|
|
220
|
-
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
221
|
-
const proxyModelValue = useProxyModelValue(modelValue, context.emit);
|
|
222
|
-
const isEmptyModelValue = computed(() => {
|
|
223
|
-
return Array.isArray(proxyModelValue.value) ? proxyModelValue.value.length === 0 : isEmptyValue(proxyModelValue.value);
|
|
224
|
-
});
|
|
225
|
-
const showClear = computed(() => {
|
|
226
|
-
return enableClear.value && !isEmptyModelValue.value;
|
|
227
|
-
});
|
|
228
|
-
onMounted(() => {
|
|
229
|
-
if (!proxyModelValue.value && props.multiple) {
|
|
230
|
-
proxyModelValue.value = [];
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
const readonly = computed(() => context.attrs.readonly);
|
|
234
|
-
const selection = computed(() => {
|
|
235
|
-
const modelValue = proxyModelValue.value;
|
|
236
|
-
if (Array.isArray(modelValue)) {
|
|
237
|
-
return modelValue.map(value => props.options.find(option => option.value === value)).filter(value => !!value);
|
|
238
|
-
}
|
|
239
|
-
return props.options.find(option => option.value === modelValue);
|
|
240
|
-
});
|
|
241
|
-
const internalSearchOptions = ref(props.options);
|
|
242
|
-
const resolvedSearchOptions = computed(() => {
|
|
243
|
-
return props.externalControl ? props.searchOptions : internalSearchOptions.value;
|
|
244
|
-
});
|
|
245
|
-
const searchText = ref('');
|
|
246
|
-
watch([() => props.externalControl, searchText, () => props.options], async _ref2 => {
|
|
247
|
-
let [externalControl, searchText, options] = _ref2;
|
|
248
|
-
if (externalControl) {
|
|
249
|
-
context.emit('search', searchText);
|
|
250
|
-
} else {
|
|
251
|
-
internalSearchOptions.value = await props.searchFunction(searchText, options);
|
|
252
|
-
}
|
|
253
|
-
}, {
|
|
254
|
-
deep: true
|
|
255
|
-
});
|
|
256
|
-
const groupedOptions = computed(() => {
|
|
257
|
-
const groupBy = props.groupByFunction;
|
|
258
|
-
if (groupBy) {
|
|
259
|
-
return internalSearchOptions.value.reduce((accumulator, option) => {
|
|
260
|
-
var _a;
|
|
261
|
-
const group = groupBy(option);
|
|
262
|
-
return {
|
|
263
|
-
...accumulator,
|
|
264
|
-
[group]: [...((_a = accumulator[group]) !== null && _a !== void 0 ? _a : []), option]
|
|
265
|
-
};
|
|
266
|
-
}, {});
|
|
267
|
-
}
|
|
268
|
-
return {
|
|
269
|
-
'': props.options
|
|
270
|
-
};
|
|
271
|
-
});
|
|
272
|
-
// Methods
|
|
273
|
-
function toggle() {
|
|
274
|
-
if (!readonly.value && !props.disabled) {
|
|
275
|
-
const popoverInstance = popover.value;
|
|
276
|
-
if (popoverInstance) {
|
|
277
|
-
if (popoverState.value === 'open') {
|
|
278
|
-
popoverInstance.close();
|
|
279
|
-
} else {
|
|
280
|
-
popoverInstance.open();
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
function close() {
|
|
286
|
-
const popoverInstance = popover.value;
|
|
287
|
-
if (popoverInstance) {
|
|
288
|
-
popoverInstance.close();
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
function deselect(option) {
|
|
292
|
-
const modelValue = proxyModelValue.value;
|
|
293
|
-
if (Array.isArray(modelValue)) {
|
|
294
|
-
proxyModelValue.value = modelValue.filter(value => value !== option.value);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
function clearSearchControl() {
|
|
298
|
-
searchText.value = '';
|
|
299
|
-
}
|
|
300
|
-
const {
|
|
301
|
-
innerItems,
|
|
302
|
-
outerItems
|
|
303
|
-
} = useOverflow(control);
|
|
304
|
-
// Utils
|
|
305
|
-
const {
|
|
306
|
-
isDesktop,
|
|
307
|
-
isMobile
|
|
308
|
-
} = useResponsive();
|
|
309
|
-
// Effects
|
|
310
|
-
watch(searchControl, control => {
|
|
311
|
-
setTimeout(() => {
|
|
312
|
-
control === null || control === void 0 ? void 0 : control.focus();
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
return {
|
|
316
|
-
root,
|
|
317
|
-
inputBox,
|
|
318
|
-
inputBoxRoot,
|
|
319
|
-
control,
|
|
320
|
-
searchControl,
|
|
321
|
-
popover,
|
|
322
|
-
popoverRoot,
|
|
323
|
-
popoverState,
|
|
324
|
-
rootStyles,
|
|
325
|
-
controlStyles,
|
|
326
|
-
searchControlStyles,
|
|
327
|
-
dropdownStyles,
|
|
328
|
-
dropdownItemStyles,
|
|
329
|
-
noSearchResultsStyles,
|
|
330
|
-
controlId,
|
|
331
|
-
proxyModelValue,
|
|
332
|
-
readonly,
|
|
333
|
-
isEmptyModelValue,
|
|
334
|
-
showClear,
|
|
335
|
-
selection,
|
|
336
|
-
searchText,
|
|
337
|
-
internalSearchOptions,
|
|
338
|
-
resolvedSearchOptions,
|
|
339
|
-
groupedOptions,
|
|
340
|
-
toggle,
|
|
341
|
-
close,
|
|
342
|
-
deselect,
|
|
343
|
-
clearSearchControl,
|
|
344
|
-
innerItems,
|
|
345
|
-
outerItems,
|
|
346
|
-
isDesktop,
|
|
347
|
-
isMobile
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
|
|
352
|
-
export { script as s };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|