@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
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
2
|
-
import { isEmptyValue } from '../../utils/isEmptyValue.js';
|
|
3
|
-
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
1
|
+
import { defineComponent, ref, computed, toRefs, watch, getCurrentInstance, onMounted } from 'vue-demi';
|
|
4
2
|
import { Select, SelectControl, SelectSearchControl, SelectDropdown, SelectDropdownFlipped, SelectDropdownDefault, SelectDropdownItem, SelectNoSearchResults } from './styles.js';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import __vue_component__$
|
|
10
|
-
import
|
|
11
|
-
import __vue_component__$
|
|
12
|
-
import __vue_component__$
|
|
13
|
-
import __vue_component__$
|
|
14
|
-
import __vue_component__$
|
|
15
|
-
import __vue_component__$
|
|
16
|
-
import __vue_component__$
|
|
17
|
-
import
|
|
3
|
+
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
4
|
+
import { isEmptyValue } from '../../utils/isEmptyValue.js';
|
|
5
|
+
import { f as useFocus } from '../../index-a77d7adf.js';
|
|
6
|
+
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
7
|
+
import __vue_component__$5 from '../OrTagsV3/OrTags.js';
|
|
8
|
+
import { TagsOverflow } from '../OrTagsV3/props.js';
|
|
9
|
+
import __vue_component__$6 from '../OrCheckboxV3/OrCheckbox.js';
|
|
10
|
+
import __vue_component__$7 from '../OrErrorV3/OrError.js';
|
|
11
|
+
import __vue_component__$8 from '../OrExpansionPanelV3/OrExpansionPanel.js';
|
|
12
|
+
import __vue_component__$9 from '../OrHintV3/OrHint.js';
|
|
13
|
+
import __vue_component__$a from '../OrIconV3/OrIcon.js';
|
|
14
|
+
import __vue_component__$b from '../OrIconButtonV3/OrIconButton.js';
|
|
15
|
+
import __vue_component__$c from '../OrInputV3/OrInput.js';
|
|
16
|
+
import __vue_component__$d from '../OrInputBoxV3/OrInputBox.js';
|
|
17
|
+
import __vue_component__$e from '../OrLabelV3/OrLabel.js';
|
|
18
|
+
import __vue_component__$f from '../OrMenuItemV3/OrMenuItem.js';
|
|
19
|
+
import __vue_component__$g from '../OrPopoverV3/OrPopover.js';
|
|
18
20
|
import { DropdownClose } from '../../directives/dropdown-close.js';
|
|
19
21
|
import { DropdownOpen } from '../../directives/dropdown-open.js';
|
|
20
22
|
import { InputBoxSize } from '../OrInputBoxV3/props.js';
|
|
21
|
-
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
22
23
|
import useResponsive from '../../hooks/useResponsive/useResponsive.js';
|
|
23
24
|
|
|
24
25
|
const SelectPlaceholder = [
|
|
@@ -29,7 +30,7 @@ const SelectPlaceholder = [
|
|
|
29
30
|
// Theme
|
|
30
31
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
31
32
|
|
|
32
|
-
var script$
|
|
33
|
+
var script$4 = defineComponent({
|
|
33
34
|
props: {
|
|
34
35
|
disabled: {
|
|
35
36
|
type: Boolean,
|
|
@@ -50,10 +51,10 @@ var script$1 = defineComponent({
|
|
|
50
51
|
});
|
|
51
52
|
|
|
52
53
|
/* script */
|
|
53
|
-
const __vue_script__$
|
|
54
|
+
const __vue_script__$4 = script$4;
|
|
54
55
|
|
|
55
56
|
/* template */
|
|
56
|
-
var __vue_render__$
|
|
57
|
+
var __vue_render__$4 = function () {
|
|
57
58
|
var _vm = this;
|
|
58
59
|
var _h = _vm.$createElement;
|
|
59
60
|
var _c = _vm._self._c || _h;
|
|
@@ -65,6 +66,477 @@ var __vue_render__$1 = function () {
|
|
|
65
66
|
}
|
|
66
67
|
}, [_vm._t("default")], 2);
|
|
67
68
|
};
|
|
69
|
+
var __vue_staticRenderFns__$4 = [];
|
|
70
|
+
|
|
71
|
+
/* style */
|
|
72
|
+
const __vue_inject_styles__$4 = undefined;
|
|
73
|
+
/* scoped */
|
|
74
|
+
const __vue_scope_id__$4 = undefined;
|
|
75
|
+
/* module identifier */
|
|
76
|
+
const __vue_module_identifier__$4 = undefined;
|
|
77
|
+
/* functional template */
|
|
78
|
+
const __vue_is_functional_template__$4 = false;
|
|
79
|
+
/* style inject */
|
|
80
|
+
|
|
81
|
+
/* style inject SSR */
|
|
82
|
+
|
|
83
|
+
/* style inject shadow dom */
|
|
84
|
+
|
|
85
|
+
const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
86
|
+
render: __vue_render__$4,
|
|
87
|
+
staticRenderFns: __vue_staticRenderFns__$4
|
|
88
|
+
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
|
|
89
|
+
var OrSelectPlaceholder = __vue_component__$4;
|
|
90
|
+
|
|
91
|
+
function castToMultipleValue(value) {
|
|
92
|
+
if (Array.isArray(value)) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
return isEmptyValue(value) ? [] : [value];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const SelectControlInput = [
|
|
99
|
+
// Base
|
|
100
|
+
'appearance-none',
|
|
101
|
+
// Typography
|
|
102
|
+
'typography-inherit',
|
|
103
|
+
// Theme (placeholder)
|
|
104
|
+
'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark', 'theme-background-transparent', 'outline-none'];
|
|
105
|
+
|
|
106
|
+
var script$3 = defineComponent({
|
|
107
|
+
model: {
|
|
108
|
+
prop: 'modelValue',
|
|
109
|
+
event: 'update:modelValue'
|
|
110
|
+
},
|
|
111
|
+
props: {
|
|
112
|
+
modelValue: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: ''
|
|
115
|
+
},
|
|
116
|
+
placeholder: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: ''
|
|
119
|
+
},
|
|
120
|
+
disabled: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: false
|
|
123
|
+
},
|
|
124
|
+
readonly: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
emits: ['update:modelValue'],
|
|
130
|
+
expose: ['focused', 'root', 'focus'],
|
|
131
|
+
setup(props, context) {
|
|
132
|
+
// Refs
|
|
133
|
+
const root = ref();
|
|
134
|
+
// Props
|
|
135
|
+
const {
|
|
136
|
+
placeholder,
|
|
137
|
+
modelValue
|
|
138
|
+
} = toRefs(props);
|
|
139
|
+
// State
|
|
140
|
+
const proxyModelValue = useProxyModelValue(modelValue, context.emit);
|
|
141
|
+
const {
|
|
142
|
+
focused
|
|
143
|
+
} = useFocus(root);
|
|
144
|
+
// Styles
|
|
145
|
+
const controlStyles = computed(() => [...SelectControlInput]);
|
|
146
|
+
const controlInlineStyles = computed(() => {
|
|
147
|
+
var _a;
|
|
148
|
+
const chars = proxyModelValue.value.length > 0 ? proxyModelValue.value.length : (_a = placeholder.value) === null || _a === void 0 ? void 0 : _a.length;
|
|
149
|
+
return {
|
|
150
|
+
width: `${Math.max(chars + 1 || 0, 2)}ch`
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
// Methods
|
|
154
|
+
function focus() {
|
|
155
|
+
focused.value = true;
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
root,
|
|
159
|
+
proxyModelValue,
|
|
160
|
+
controlStyles,
|
|
161
|
+
controlInlineStyles,
|
|
162
|
+
focused,
|
|
163
|
+
focus
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/* script */
|
|
169
|
+
const __vue_script__$3 = script$3;
|
|
170
|
+
|
|
171
|
+
/* template */
|
|
172
|
+
var __vue_render__$3 = function () {
|
|
173
|
+
var _vm = this;
|
|
174
|
+
var _h = _vm.$createElement;
|
|
175
|
+
var _c = _vm._self._c || _h;
|
|
176
|
+
return _c('input', {
|
|
177
|
+
directives: [{
|
|
178
|
+
name: "model",
|
|
179
|
+
rawName: "v-model",
|
|
180
|
+
value: _vm.proxyModelValue,
|
|
181
|
+
expression: "proxyModelValue"
|
|
182
|
+
}],
|
|
183
|
+
ref: "root",
|
|
184
|
+
class: _vm.controlStyles,
|
|
185
|
+
style: _vm.controlInlineStyles,
|
|
186
|
+
attrs: {
|
|
187
|
+
"placeholder": _vm.placeholder,
|
|
188
|
+
"readonly": _vm.readonly,
|
|
189
|
+
"disabled": _vm.disabled,
|
|
190
|
+
"autocomplete": 'off',
|
|
191
|
+
"minlength": undefined,
|
|
192
|
+
"maxlength": undefined,
|
|
193
|
+
"type": 'text'
|
|
194
|
+
},
|
|
195
|
+
domProps: {
|
|
196
|
+
"value": _vm.proxyModelValue
|
|
197
|
+
},
|
|
198
|
+
on: {
|
|
199
|
+
"input": function ($event) {
|
|
200
|
+
if ($event.target.composing) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
_vm.proxyModelValue = $event.target.value;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
var __vue_staticRenderFns__$3 = [];
|
|
209
|
+
|
|
210
|
+
/* style */
|
|
211
|
+
const __vue_inject_styles__$3 = undefined;
|
|
212
|
+
/* scoped */
|
|
213
|
+
const __vue_scope_id__$3 = undefined;
|
|
214
|
+
/* module identifier */
|
|
215
|
+
const __vue_module_identifier__$3 = undefined;
|
|
216
|
+
/* functional template */
|
|
217
|
+
const __vue_is_functional_template__$3 = false;
|
|
218
|
+
/* style inject */
|
|
219
|
+
|
|
220
|
+
/* style inject SSR */
|
|
221
|
+
|
|
222
|
+
/* style inject shadow dom */
|
|
223
|
+
|
|
224
|
+
const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
|
|
225
|
+
render: __vue_render__$3,
|
|
226
|
+
staticRenderFns: __vue_staticRenderFns__$3
|
|
227
|
+
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
|
|
228
|
+
var OrSelectControlInput = __vue_component__$3;
|
|
229
|
+
|
|
230
|
+
const SelectMultipleControlRoot = [
|
|
231
|
+
// Layout
|
|
232
|
+
'layout-row', 'w-full'];
|
|
233
|
+
|
|
234
|
+
var script$2 = defineComponent({
|
|
235
|
+
components: {
|
|
236
|
+
OrSelectPlaceholder,
|
|
237
|
+
OrSelectControlInput,
|
|
238
|
+
OrTags: __vue_component__$5
|
|
239
|
+
},
|
|
240
|
+
model: {
|
|
241
|
+
prop: 'modelValue',
|
|
242
|
+
event: 'update:modelValue'
|
|
243
|
+
},
|
|
244
|
+
props: {
|
|
245
|
+
model: {
|
|
246
|
+
type: [Object, String, Number, Array],
|
|
247
|
+
default: () => []
|
|
248
|
+
},
|
|
249
|
+
options: {
|
|
250
|
+
type: Array,
|
|
251
|
+
default: () => []
|
|
252
|
+
},
|
|
253
|
+
disabled: {
|
|
254
|
+
type: Boolean,
|
|
255
|
+
default: false
|
|
256
|
+
},
|
|
257
|
+
readonly: {
|
|
258
|
+
type: Boolean,
|
|
259
|
+
default: false
|
|
260
|
+
},
|
|
261
|
+
placeholder: {
|
|
262
|
+
type: String,
|
|
263
|
+
default: ''
|
|
264
|
+
},
|
|
265
|
+
enableSearch: {
|
|
266
|
+
type: Boolean,
|
|
267
|
+
default: false
|
|
268
|
+
},
|
|
269
|
+
overflow: {
|
|
270
|
+
type: String,
|
|
271
|
+
default: TagsOverflow.Hidden
|
|
272
|
+
},
|
|
273
|
+
modelValue: {
|
|
274
|
+
type: String,
|
|
275
|
+
default: ''
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
emits: ['reset', 'update:modelValue'],
|
|
279
|
+
expose: ['focus', 'root', 'focused'],
|
|
280
|
+
setup(props, context) {
|
|
281
|
+
// Refs
|
|
282
|
+
const root = ref();
|
|
283
|
+
const searchControl = ref();
|
|
284
|
+
const tags = ref();
|
|
285
|
+
// Props
|
|
286
|
+
const {
|
|
287
|
+
modelValue,
|
|
288
|
+
model,
|
|
289
|
+
options,
|
|
290
|
+
overflow
|
|
291
|
+
} = toRefs(props);
|
|
292
|
+
// State
|
|
293
|
+
const searchModelValue = useProxyModelValue(modelValue, context.emit);
|
|
294
|
+
const focused = computed(() => {
|
|
295
|
+
var _a;
|
|
296
|
+
return (_a = searchControl.value) === null || _a === void 0 ? void 0 : _a.focused;
|
|
297
|
+
});
|
|
298
|
+
// Styles
|
|
299
|
+
const rootStyles = computed(() => ['or-select-multiple-control-v3', ...SelectMultipleControlRoot]);
|
|
300
|
+
// Computed
|
|
301
|
+
const value = computed(() => castToMultipleValue(model.value));
|
|
302
|
+
const isEmpty = computed(() => value.value.length === 0);
|
|
303
|
+
const selection = computed(() => {
|
|
304
|
+
if (model.value === undefined || model.value === null) {
|
|
305
|
+
return [];
|
|
306
|
+
}
|
|
307
|
+
return value.value.map(value => options.value.find(option => option.value === value)).filter(value => !!value);
|
|
308
|
+
});
|
|
309
|
+
watch(selection, (items, prevItems) => {
|
|
310
|
+
if (items.length != prevItems.length && overflow.value === TagsOverflow.Scroll && tags.value) {
|
|
311
|
+
tags.value.scrollToEnd();
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
// Methods
|
|
315
|
+
function focus() {
|
|
316
|
+
if (searchControl.value) {
|
|
317
|
+
searchControl.value.focus();
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return {
|
|
321
|
+
root,
|
|
322
|
+
tags,
|
|
323
|
+
rootStyles,
|
|
324
|
+
searchControl,
|
|
325
|
+
searchModelValue,
|
|
326
|
+
isEmpty,
|
|
327
|
+
selection,
|
|
328
|
+
value,
|
|
329
|
+
focus,
|
|
330
|
+
focused
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
/* script */
|
|
336
|
+
const __vue_script__$2 = script$2;
|
|
337
|
+
|
|
338
|
+
/* template */
|
|
339
|
+
var __vue_render__$2 = function () {
|
|
340
|
+
var _vm = this;
|
|
341
|
+
var _h = _vm.$createElement;
|
|
342
|
+
var _c = _vm._self._c || _h;
|
|
343
|
+
return _c('div', {
|
|
344
|
+
ref: "root",
|
|
345
|
+
class: _vm.rootStyles
|
|
346
|
+
}, [_c('OrTags', {
|
|
347
|
+
directives: [{
|
|
348
|
+
name: "show",
|
|
349
|
+
rawName: "v-show",
|
|
350
|
+
value: !_vm.isEmpty || _vm.enableSearch,
|
|
351
|
+
expression: "!isEmpty || enableSearch"
|
|
352
|
+
}],
|
|
353
|
+
ref: "tags",
|
|
354
|
+
staticClass: "grow",
|
|
355
|
+
attrs: {
|
|
356
|
+
"items": _vm.selection,
|
|
357
|
+
"disabled": _vm.disabled,
|
|
358
|
+
"tag-props": {
|
|
359
|
+
variant: _vm.readonly || _vm.disabled ? 'tag' : 'reset',
|
|
360
|
+
disabled: _vm.disabled
|
|
361
|
+
},
|
|
362
|
+
"overflow": _vm.overflow
|
|
363
|
+
},
|
|
364
|
+
on: {
|
|
365
|
+
"reset": function ($event) {
|
|
366
|
+
return _vm.$emit('reset', $event);
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
scopedSlots: _vm._u([_vm.enableSearch ? {
|
|
370
|
+
key: "tail",
|
|
371
|
+
fn: function () {
|
|
372
|
+
return [_c('div', {
|
|
373
|
+
staticClass: "inline-flex w-fit max-w-full"
|
|
374
|
+
}, [_c('OrSelectControlInput', {
|
|
375
|
+
ref: "searchControl",
|
|
376
|
+
attrs: {
|
|
377
|
+
"placeholder": _vm.isEmpty ? _vm.placeholder : '',
|
|
378
|
+
"readonly": _vm.readonly,
|
|
379
|
+
"disabled": _vm.disabled
|
|
380
|
+
},
|
|
381
|
+
model: {
|
|
382
|
+
value: _vm.searchModelValue,
|
|
383
|
+
callback: function ($$v) {
|
|
384
|
+
_vm.searchModelValue = $$v;
|
|
385
|
+
},
|
|
386
|
+
expression: "searchModelValue"
|
|
387
|
+
}
|
|
388
|
+
})], 1)];
|
|
389
|
+
},
|
|
390
|
+
proxy: true
|
|
391
|
+
} : null], null, true)
|
|
392
|
+
}), _vm._v(" "), _vm.isEmpty && !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
393
|
+
attrs: {
|
|
394
|
+
"disabled": _vm.disabled
|
|
395
|
+
}
|
|
396
|
+
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()], 2);
|
|
397
|
+
};
|
|
398
|
+
var __vue_staticRenderFns__$2 = [];
|
|
399
|
+
|
|
400
|
+
/* style */
|
|
401
|
+
const __vue_inject_styles__$2 = undefined;
|
|
402
|
+
/* scoped */
|
|
403
|
+
const __vue_scope_id__$2 = undefined;
|
|
404
|
+
/* module identifier */
|
|
405
|
+
const __vue_module_identifier__$2 = undefined;
|
|
406
|
+
/* functional template */
|
|
407
|
+
const __vue_is_functional_template__$2 = false;
|
|
408
|
+
/* style inject */
|
|
409
|
+
|
|
410
|
+
/* style inject SSR */
|
|
411
|
+
|
|
412
|
+
/* style inject shadow dom */
|
|
413
|
+
|
|
414
|
+
const __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
415
|
+
render: __vue_render__$2,
|
|
416
|
+
staticRenderFns: __vue_staticRenderFns__$2
|
|
417
|
+
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
|
|
418
|
+
var OrSelectMultipleControl = __vue_component__$2;
|
|
419
|
+
|
|
420
|
+
const SelectSingleControlInput = [
|
|
421
|
+
// Layout
|
|
422
|
+
'w-full'];
|
|
423
|
+
|
|
424
|
+
var script$1 = defineComponent({
|
|
425
|
+
components: {
|
|
426
|
+
OrSelectPlaceholder,
|
|
427
|
+
OrSelectControlInput
|
|
428
|
+
},
|
|
429
|
+
model: {
|
|
430
|
+
prop: 'modelValue',
|
|
431
|
+
event: 'update:modelValue'
|
|
432
|
+
},
|
|
433
|
+
props: {
|
|
434
|
+
modelValue: {
|
|
435
|
+
type: String,
|
|
436
|
+
default: ''
|
|
437
|
+
},
|
|
438
|
+
model: {
|
|
439
|
+
type: [Object, String, Number, Array],
|
|
440
|
+
default: undefined
|
|
441
|
+
},
|
|
442
|
+
placeholder: {
|
|
443
|
+
type: String,
|
|
444
|
+
default: ''
|
|
445
|
+
},
|
|
446
|
+
options: {
|
|
447
|
+
type: Array,
|
|
448
|
+
default: () => []
|
|
449
|
+
},
|
|
450
|
+
enableSearch: {
|
|
451
|
+
type: Boolean,
|
|
452
|
+
default: false
|
|
453
|
+
},
|
|
454
|
+
disabled: {
|
|
455
|
+
type: Boolean,
|
|
456
|
+
default: false
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
emits: ['update:modelValue'],
|
|
460
|
+
expose: ['root', 'focus', 'focused'],
|
|
461
|
+
setup(props, context) {
|
|
462
|
+
// Refs
|
|
463
|
+
const root = ref();
|
|
464
|
+
const searchControl = ref();
|
|
465
|
+
// Props
|
|
466
|
+
const {
|
|
467
|
+
modelValue,
|
|
468
|
+
model,
|
|
469
|
+
options
|
|
470
|
+
} = toRefs(props);
|
|
471
|
+
// State
|
|
472
|
+
const searchModelValue = useProxyModelValue(modelValue, context.emit);
|
|
473
|
+
const isEmpty = computed(() => {
|
|
474
|
+
return isEmptyValue(model.value);
|
|
475
|
+
});
|
|
476
|
+
const selection = computed(() => {
|
|
477
|
+
return options.value.find(option => option.value === model.value);
|
|
478
|
+
});
|
|
479
|
+
const selectionLabel = computed(() => {
|
|
480
|
+
var _a;
|
|
481
|
+
return (_a = selection.value) === null || _a === void 0 ? void 0 : _a.label;
|
|
482
|
+
});
|
|
483
|
+
const focused = computed(() => {
|
|
484
|
+
var _a;
|
|
485
|
+
return (_a = searchControl.value) === null || _a === void 0 ? void 0 : _a.focused;
|
|
486
|
+
});
|
|
487
|
+
// Styles
|
|
488
|
+
const rootStyles = computed(() => ['or-select-single-control-v3', ...SelectSingleControlInput]);
|
|
489
|
+
// Methods
|
|
490
|
+
function focus() {
|
|
491
|
+
if (searchControl.value) {
|
|
492
|
+
searchControl.value.focus();
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return {
|
|
496
|
+
root,
|
|
497
|
+
rootStyles,
|
|
498
|
+
searchControl,
|
|
499
|
+
searchModelValue,
|
|
500
|
+
isEmpty,
|
|
501
|
+
selection,
|
|
502
|
+
selectionLabel,
|
|
503
|
+
focus,
|
|
504
|
+
focused
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
|
|
509
|
+
/* script */
|
|
510
|
+
const __vue_script__$1 = script$1;
|
|
511
|
+
|
|
512
|
+
/* template */
|
|
513
|
+
var __vue_render__$1 = function () {
|
|
514
|
+
var _vm = this;
|
|
515
|
+
var _h = _vm.$createElement;
|
|
516
|
+
var _c = _vm._self._c || _h;
|
|
517
|
+
return _c('div', {
|
|
518
|
+
ref: "root",
|
|
519
|
+
class: _vm.rootStyles
|
|
520
|
+
}, [!_vm.isEmpty ? [_c('span', {
|
|
521
|
+
staticClass: "truncate"
|
|
522
|
+
}, [_vm._v("\n " + _vm._s(_vm.selectionLabel) + "\n ")])] : [_vm.enableSearch ? _c('OrSelectControlInput', {
|
|
523
|
+
ref: "searchControl",
|
|
524
|
+
attrs: {
|
|
525
|
+
"placeholder": _vm.placeholder
|
|
526
|
+
},
|
|
527
|
+
model: {
|
|
528
|
+
value: _vm.searchModelValue,
|
|
529
|
+
callback: function ($$v) {
|
|
530
|
+
_vm.searchModelValue = $$v;
|
|
531
|
+
},
|
|
532
|
+
expression: "searchModelValue"
|
|
533
|
+
}
|
|
534
|
+
}) : _c('OrSelectPlaceholder', {
|
|
535
|
+
attrs: {
|
|
536
|
+
"disabled": _vm.disabled
|
|
537
|
+
}
|
|
538
|
+
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])]], 2);
|
|
539
|
+
};
|
|
68
540
|
var __vue_staticRenderFns__$1 = [];
|
|
69
541
|
|
|
70
542
|
/* style */
|
|
@@ -85,23 +557,23 @@ const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
|
85
557
|
render: __vue_render__$1,
|
|
86
558
|
staticRenderFns: __vue_staticRenderFns__$1
|
|
87
559
|
}, __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
|
-
var
|
|
560
|
+
var OrSelectSingleControl = __vue_component__$1;
|
|
89
561
|
|
|
90
562
|
var script = defineComponent({
|
|
91
563
|
components: {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
564
|
+
OrSelectMultipleControl,
|
|
565
|
+
OrSelectSingleControl,
|
|
566
|
+
OrCheckbox: __vue_component__$6,
|
|
567
|
+
OrError: __vue_component__$7,
|
|
568
|
+
OrExpansionPanel: __vue_component__$8,
|
|
569
|
+
OrHint: __vue_component__$9,
|
|
570
|
+
OrIcon: __vue_component__$a,
|
|
571
|
+
OrIconButton: __vue_component__$b,
|
|
572
|
+
OrInput: __vue_component__$c,
|
|
573
|
+
OrInputBox: __vue_component__$d,
|
|
574
|
+
OrLabel: __vue_component__$e,
|
|
575
|
+
OrMenuItem: __vue_component__$f,
|
|
576
|
+
OrPopover: __vue_component__$g
|
|
105
577
|
},
|
|
106
578
|
directives: {
|
|
107
579
|
DropdownClose,
|
|
@@ -140,10 +612,6 @@ var script = defineComponent({
|
|
|
140
612
|
type: String,
|
|
141
613
|
default: undefined
|
|
142
614
|
},
|
|
143
|
-
searchPlaceholder: {
|
|
144
|
-
type: String,
|
|
145
|
-
default: undefined
|
|
146
|
-
},
|
|
147
615
|
hint: {
|
|
148
616
|
type: String,
|
|
149
617
|
default: undefined
|
|
@@ -190,6 +658,10 @@ var script = defineComponent({
|
|
|
190
658
|
externalControl: {
|
|
191
659
|
type: Boolean,
|
|
192
660
|
default: false
|
|
661
|
+
},
|
|
662
|
+
overflow: {
|
|
663
|
+
type: String,
|
|
664
|
+
default: TagsOverflow.Hidden
|
|
193
665
|
}
|
|
194
666
|
},
|
|
195
667
|
emits: ['update:modelValue', 'focus', 'blur', 'search'],
|
|
@@ -205,6 +677,8 @@ var script = defineComponent({
|
|
|
205
677
|
return (_a = inputBox.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
206
678
|
});
|
|
207
679
|
const control = ref();
|
|
680
|
+
const multipleControl = ref();
|
|
681
|
+
const singleControl = ref();
|
|
208
682
|
const searchControl = ref();
|
|
209
683
|
const popover = ref();
|
|
210
684
|
const popoverRoot = computed(() => {
|
|
@@ -218,7 +692,9 @@ var script = defineComponent({
|
|
|
218
692
|
// Props
|
|
219
693
|
const {
|
|
220
694
|
enableClear,
|
|
221
|
-
|
|
695
|
+
enableSearch,
|
|
696
|
+
modelValue,
|
|
697
|
+
multiple
|
|
222
698
|
} = toRefs(props);
|
|
223
699
|
// Styles
|
|
224
700
|
const rootStyles = computed(() => ['or-select-v3', ...Select]);
|
|
@@ -244,14 +720,15 @@ var script = defineComponent({
|
|
|
244
720
|
proxyModelValue.value = [];
|
|
245
721
|
}
|
|
246
722
|
});
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
723
|
+
const focused = computed(() => {
|
|
724
|
+
var _a, _b;
|
|
725
|
+
if (multiple.value) {
|
|
726
|
+
return (_a = multipleControl.value) === null || _a === void 0 ? void 0 : _a.focused;
|
|
727
|
+
} else {
|
|
728
|
+
return (_b = singleControl.value) === null || _b === void 0 ? void 0 : _b.focused;
|
|
252
729
|
}
|
|
253
|
-
return props.options.find(option => option.value === modelValue);
|
|
254
730
|
});
|
|
731
|
+
const readonly = computed(() => context.attrs.readonly);
|
|
255
732
|
const internalSearchOptions = ref(props.options);
|
|
256
733
|
const resolvedSearchOptions = computed(() => {
|
|
257
734
|
return props.externalControl ? props.searchOptions : internalSearchOptions.value;
|
|
@@ -288,49 +765,69 @@ var script = defineComponent({
|
|
|
288
765
|
if (!readonly.value && !props.disabled) {
|
|
289
766
|
const popoverInstance = popover.value;
|
|
290
767
|
if (popoverInstance) {
|
|
291
|
-
if (popoverState.value === 'open') {
|
|
292
|
-
|
|
768
|
+
if (popoverState.value === 'open' && !focused.value) {
|
|
769
|
+
close();
|
|
293
770
|
} else {
|
|
294
|
-
|
|
771
|
+
open();
|
|
772
|
+
focus();
|
|
295
773
|
}
|
|
296
774
|
}
|
|
297
775
|
}
|
|
298
776
|
}
|
|
777
|
+
function open() {
|
|
778
|
+
const popoverInstance = popover.value;
|
|
779
|
+
if (popoverInstance) {
|
|
780
|
+
popoverInstance.open();
|
|
781
|
+
}
|
|
782
|
+
}
|
|
299
783
|
function close() {
|
|
300
784
|
const popoverInstance = popover.value;
|
|
301
785
|
if (popoverInstance) {
|
|
302
786
|
popoverInstance.close();
|
|
303
787
|
}
|
|
304
788
|
}
|
|
789
|
+
function focus() {
|
|
790
|
+
if (enableSearch.value) {
|
|
791
|
+
const controlInstance = multiple.value ? multipleControl.value : singleControl.value;
|
|
792
|
+
if (controlInstance) {
|
|
793
|
+
controlInstance.focus();
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
305
797
|
function deselect(option) {
|
|
306
798
|
const modelValue = proxyModelValue.value;
|
|
307
799
|
if (Array.isArray(modelValue)) {
|
|
308
|
-
proxyModelValue.value = modelValue.filter(value => value !== option
|
|
800
|
+
proxyModelValue.value = modelValue.filter(value => value !== option);
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
function toggleOption(option) {
|
|
804
|
+
const modelValue = proxyModelValue.value;
|
|
805
|
+
if (Array.isArray(modelValue)) {
|
|
806
|
+
if (modelValue.includes(option)) {
|
|
807
|
+
deselect(option);
|
|
808
|
+
} else {
|
|
809
|
+
proxyModelValue.value = [...modelValue, option];
|
|
810
|
+
}
|
|
811
|
+
} else {
|
|
812
|
+
proxyModelValue.value = option;
|
|
309
813
|
}
|
|
814
|
+
clearSearchControl();
|
|
310
815
|
}
|
|
311
816
|
function clearSearchControl() {
|
|
312
817
|
searchText.value = '';
|
|
313
818
|
}
|
|
314
|
-
const {
|
|
315
|
-
innerItems,
|
|
316
|
-
outerItems
|
|
317
|
-
} = useOverflow(control);
|
|
318
819
|
// Utils
|
|
319
820
|
const {
|
|
320
821
|
isDesktop,
|
|
321
822
|
isMobile
|
|
322
823
|
} = useResponsive();
|
|
323
|
-
// Effects
|
|
324
|
-
watch(searchControl, control => {
|
|
325
|
-
setTimeout(() => {
|
|
326
|
-
control === null || control === void 0 ? void 0 : control.focus();
|
|
327
|
-
});
|
|
328
|
-
});
|
|
329
824
|
return {
|
|
330
825
|
root,
|
|
331
826
|
inputBox,
|
|
332
827
|
inputBoxRoot,
|
|
333
828
|
control,
|
|
829
|
+
multipleControl,
|
|
830
|
+
singleControl,
|
|
334
831
|
searchControl,
|
|
335
832
|
popover,
|
|
336
833
|
popoverRoot,
|
|
@@ -346,17 +843,16 @@ var script = defineComponent({
|
|
|
346
843
|
readonly,
|
|
347
844
|
isEmptyModelValue,
|
|
348
845
|
showClear,
|
|
349
|
-
selection,
|
|
350
846
|
searchText,
|
|
351
847
|
internalSearchOptions,
|
|
352
848
|
resolvedSearchOptions,
|
|
353
849
|
groupedOptions,
|
|
354
850
|
toggle,
|
|
355
851
|
close,
|
|
852
|
+
open,
|
|
356
853
|
deselect,
|
|
854
|
+
toggleOption,
|
|
357
855
|
clearSearchControl,
|
|
358
|
-
innerItems,
|
|
359
|
-
outerItems,
|
|
360
856
|
isDesktop,
|
|
361
857
|
isMobile
|
|
362
858
|
};
|
|
@@ -401,7 +897,7 @@ var __vue_render__ = function () {
|
|
|
401
897
|
expression: "close"
|
|
402
898
|
}],
|
|
403
899
|
ref: "inputBox",
|
|
404
|
-
class: [_vm.popoverState === 'open' && (_vm.popover.isFlipped ? 'rounded-t-0' : 'rounded-b-0')],
|
|
900
|
+
class: [_vm.popoverState === 'open' && (_vm.popover && _vm.popover.isFlipped ? 'rounded-t-0' : 'rounded-b-0')],
|
|
405
901
|
attrs: {
|
|
406
902
|
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
407
903
|
"size": _vm.size,
|
|
@@ -425,66 +921,53 @@ var __vue_render__ = function () {
|
|
|
425
921
|
return _vm.$emit('blur', $event);
|
|
426
922
|
}
|
|
427
923
|
}
|
|
428
|
-
}, [_vm.
|
|
429
|
-
return _vm.
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
924
|
+
}, [_vm._t("valueTemplate", function () {
|
|
925
|
+
return [_vm.multiple ? [_c('OrSelectMultipleControl', {
|
|
926
|
+
ref: "multipleControl",
|
|
927
|
+
attrs: {
|
|
928
|
+
"options": _vm.options,
|
|
929
|
+
"model": _vm.proxyModelValue,
|
|
930
|
+
"placeholder": _vm.placeholder,
|
|
931
|
+
"disabled": _vm.disabled,
|
|
932
|
+
"readonly": _vm.readonly,
|
|
933
|
+
"enable-search": _vm.enableSearch,
|
|
934
|
+
"overflow": _vm.overflow
|
|
935
|
+
},
|
|
936
|
+
on: {
|
|
937
|
+
"reset": _vm.deselect
|
|
938
|
+
},
|
|
939
|
+
model: {
|
|
940
|
+
value: _vm.searchText,
|
|
941
|
+
callback: function ($$v) {
|
|
942
|
+
_vm.searchText = $$v;
|
|
435
943
|
},
|
|
436
|
-
|
|
437
|
-
"reset": function ($event) {
|
|
438
|
-
return _vm.deselect(option);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
|
|
442
|
-
});
|
|
443
|
-
}, {
|
|
444
|
-
"model": _vm.proxyModelValue
|
|
445
|
-
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
446
|
-
attrs: {
|
|
447
|
-
"disabled": _vm.disabled
|
|
448
|
-
}
|
|
449
|
-
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()] : [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
|
|
450
|
-
return [_c('span', {
|
|
451
|
-
staticClass: "truncate"
|
|
452
|
-
}, [_vm._v("\n " + _vm._s(_vm.selection && _vm.selection.label) + "\n ")])];
|
|
453
|
-
}, {
|
|
454
|
-
"model": _vm.proxyModelValue
|
|
455
|
-
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
456
|
-
attrs: {
|
|
457
|
-
"disabled": _vm.disabled
|
|
458
|
-
}
|
|
459
|
-
}, [_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', {
|
|
460
|
-
ref: "searchControl",
|
|
461
|
-
class: _vm.searchControlStyles.concat([_vm.isEmptyModelValue && 'md:!ml-none']),
|
|
462
|
-
attrs: {
|
|
463
|
-
"type": 'search',
|
|
464
|
-
"placeholder": _vm.searchPlaceholder,
|
|
465
|
-
"size": _vm.size,
|
|
466
|
-
"disable-default-styles": true
|
|
467
|
-
},
|
|
468
|
-
on: {
|
|
469
|
-
"click": function ($event) {
|
|
470
|
-
$event.stopPropagation();
|
|
944
|
+
expression: "searchText"
|
|
471
945
|
}
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
_vm.
|
|
946
|
+
})] : [_c('OrSelectSingleControl', {
|
|
947
|
+
ref: "singleControl",
|
|
948
|
+
attrs: {
|
|
949
|
+
"model": _vm.proxyModelValue,
|
|
950
|
+
"options": _vm.options,
|
|
951
|
+
"placeholder": _vm.placeholder,
|
|
952
|
+
"enable-search": _vm.enableSearch
|
|
477
953
|
},
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
954
|
+
model: {
|
|
955
|
+
value: _vm.searchText,
|
|
956
|
+
callback: function ($$v) {
|
|
957
|
+
_vm.searchText = $$v;
|
|
958
|
+
},
|
|
959
|
+
expression: "searchText"
|
|
960
|
+
}
|
|
961
|
+
})]];
|
|
962
|
+
}, {
|
|
963
|
+
"model": _vm.proxyModelValue
|
|
964
|
+
})], 2), _vm._v(" "), _c('div', {
|
|
483
965
|
class: ['layout-inline-row', 'gap-sm']
|
|
484
966
|
}, [_vm.showClear ? [_c('OrIconButton', {
|
|
485
967
|
attrs: {
|
|
486
968
|
"icon": 'close',
|
|
487
969
|
"color": 'inherit',
|
|
970
|
+
"additional-styles": ['!text-outline', '!dark:text-outline-dark'],
|
|
488
971
|
"disabled": _vm.readonly || _vm.disabled
|
|
489
972
|
},
|
|
490
973
|
on: {
|
|
@@ -494,8 +977,9 @@ var __vue_render__ = function () {
|
|
|
494
977
|
}
|
|
495
978
|
}
|
|
496
979
|
})] : _vm._e(), _vm._v(" "), _c('OrIcon', {
|
|
980
|
+
class: _vm.popoverState === 'open' && _vm.enableSearch ? '!text-outline !dark:text-outline-dark' : '',
|
|
497
981
|
attrs: {
|
|
498
|
-
"icon": _vm.popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down',
|
|
982
|
+
"icon": _vm.popoverState === 'open' ? _vm.enableSearch ? 'search' : 'arrow_drop_up' : 'arrow_drop_down',
|
|
499
983
|
"variant": 'outlined'
|
|
500
984
|
}
|
|
501
985
|
})], 2), _vm._v(" "), _c('OrPopover', {
|
|
@@ -507,18 +991,13 @@ var __vue_render__ = function () {
|
|
|
507
991
|
"full-width": true,
|
|
508
992
|
"custom-styles": _vm.dropdownStyles,
|
|
509
993
|
"disable-default-styles": true
|
|
510
|
-
},
|
|
511
|
-
on: {
|
|
512
|
-
"close": function ($event) {
|
|
513
|
-
return _vm.clearSearchControl();
|
|
514
|
-
}
|
|
515
994
|
}
|
|
516
995
|
}, [_vm.popoverState === 'open' && _vm.enableSearch && _vm.isMobile ? [_c('OrInput', {
|
|
517
996
|
ref: "searchControl",
|
|
518
997
|
class: _vm.searchControlStyles,
|
|
519
998
|
attrs: {
|
|
520
999
|
"type": 'search',
|
|
521
|
-
"placeholder": _vm.
|
|
1000
|
+
"placeholder": _vm.placeholder
|
|
522
1001
|
},
|
|
523
1002
|
model: {
|
|
524
1003
|
value: _vm.searchText,
|
|
@@ -568,8 +1047,7 @@ var __vue_render__ = function () {
|
|
|
568
1047
|
on: {
|
|
569
1048
|
"click": function ($event) {
|
|
570
1049
|
$event.stopPropagation();
|
|
571
|
-
_vm.
|
|
572
|
-
_vm.close();
|
|
1050
|
+
return _vm.toggleOption(option.value);
|
|
573
1051
|
}
|
|
574
1052
|
}
|
|
575
1053
|
}, [_vm._t("optionTemplate", function () {
|
|
@@ -584,24 +1062,31 @@ var __vue_render__ = function () {
|
|
|
584
1062
|
key: i,
|
|
585
1063
|
attrs: {
|
|
586
1064
|
"selected": _vm.proxyModelValue && _vm.proxyModelValue.includes(option.value)
|
|
1065
|
+
},
|
|
1066
|
+
on: {
|
|
1067
|
+
"click": function ($event) {
|
|
1068
|
+
$event.stopPropagation();
|
|
1069
|
+
return _vm.toggleOption(option.value);
|
|
1070
|
+
}
|
|
587
1071
|
}
|
|
588
1072
|
}, [_c('OrCheckbox', {
|
|
589
1073
|
attrs: {
|
|
1074
|
+
"model-value": _vm.proxyModelValue,
|
|
590
1075
|
"value": option.value,
|
|
591
|
-
"label": option.label,
|
|
592
1076
|
"label-variant": 'menu-item'
|
|
593
|
-
},
|
|
594
|
-
model: {
|
|
595
|
-
value: _vm.proxyModelValue,
|
|
596
|
-
callback: function ($$v) {
|
|
597
|
-
_vm.proxyModelValue = $$v;
|
|
598
|
-
},
|
|
599
|
-
expression: "proxyModelValue"
|
|
600
1077
|
}
|
|
601
|
-
}, [
|
|
1078
|
+
}, [_c('div', {
|
|
1079
|
+
on: {
|
|
1080
|
+
"click": function ($event) {
|
|
1081
|
+
return _vm.toggleOption(option.value);
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}, [_vm._t("optionTemplate", function () {
|
|
1085
|
+
return [_vm._v("\n " + _vm._s(option.label) + "\n ")];
|
|
1086
|
+
}, {
|
|
602
1087
|
"model": _vm.proxyModelValue,
|
|
603
1088
|
"option": option
|
|
604
|
-
})], 2)], 1);
|
|
1089
|
+
})], 2)])], 1);
|
|
605
1090
|
}) : _vm._l(_vm.resolvedSearchOptions, function (option, i) {
|
|
606
1091
|
return _c('OrMenuItem', {
|
|
607
1092
|
key: i,
|
|
@@ -612,8 +1097,7 @@ var __vue_render__ = function () {
|
|
|
612
1097
|
on: {
|
|
613
1098
|
"click": function ($event) {
|
|
614
1099
|
$event.stopPropagation();
|
|
615
|
-
_vm.
|
|
616
|
-
_vm.close();
|
|
1100
|
+
return _vm.toggleOption(option.value);
|
|
617
1101
|
}
|
|
618
1102
|
}
|
|
619
1103
|
}, [_vm._t("optionTemplate", function () {
|
|
@@ -626,7 +1110,7 @@ var __vue_render__ = function () {
|
|
|
626
1110
|
class: _vm.noSearchResultsStyles
|
|
627
1111
|
}, [_vm._t("noSearchResultsTemplate", function () {
|
|
628
1112
|
return [_vm._v("\n No results\n ")];
|
|
629
|
-
})], 2)]], 2)],
|
|
1113
|
+
})], 2)]], 2)], 1), _vm._v(" "), _c('div', {
|
|
630
1114
|
directives: [{
|
|
631
1115
|
name: "show",
|
|
632
1116
|
rawName: "v-show",
|