@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,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, reactive,
|
|
1
|
+
import { defineComponent, ref, toRefs, computed, reactive, watch, nextTick } from 'vue-demi';
|
|
2
|
+
import { onClickOutside } from '@vueuse/core';
|
|
2
3
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
3
|
-
import '@vueuse/core';
|
|
4
4
|
import './dom-aecadd9a.js';
|
|
5
5
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
6
6
|
import '@onereach/styles/tailwind/plugins/core';
|
|
@@ -10,9 +10,9 @@ import { _ as __vue_component__$1 } from './OrError-916e928e.js';
|
|
|
10
10
|
import { _ as __vue_component__$2 } from './OrHint-1220face.js';
|
|
11
11
|
import { _ as __vue_component__$3 } from './OrIconButton-07c0bd56.js';
|
|
12
12
|
import { _ as __vue_component__$4 } from './OrInputBox-7dc5b9e9.js';
|
|
13
|
-
import
|
|
13
|
+
import './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
14
14
|
import { _ as __vue_component__$5 } from './OrLabel-b465bc0b.js';
|
|
15
|
-
import { _ as __vue_component__$6 } from './OrTags-
|
|
15
|
+
import { _ as __vue_component__$6, T as TagsOverflow } from './OrTags-ed4ddf4d.js';
|
|
16
16
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
17
17
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
18
|
|
|
@@ -23,7 +23,7 @@ const TagInput = [
|
|
|
23
23
|
'gap-xs'];
|
|
24
24
|
const TagInputControl = [
|
|
25
25
|
// Layout
|
|
26
|
-
'flex-auto',
|
|
26
|
+
// 'flex-auto',
|
|
27
27
|
// Typography
|
|
28
28
|
'typography-inherit',
|
|
29
29
|
// Theme (placeholder)
|
|
@@ -33,7 +33,6 @@ const TagInputItem = [
|
|
|
33
33
|
'!min-h-0'];
|
|
34
34
|
|
|
35
35
|
var script = defineComponent({
|
|
36
|
-
name: 'OrTagInput',
|
|
37
36
|
components: {
|
|
38
37
|
OrError: __vue_component__$1,
|
|
39
38
|
OrHint: __vue_component__$2,
|
|
@@ -51,10 +50,6 @@ var script = defineComponent({
|
|
|
51
50
|
type: Array,
|
|
52
51
|
default: () => []
|
|
53
52
|
},
|
|
54
|
-
size: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: InputBoxSize.M
|
|
57
|
-
},
|
|
58
53
|
label: {
|
|
59
54
|
type: String,
|
|
60
55
|
default: undefined
|
|
@@ -86,14 +81,33 @@ var script = defineComponent({
|
|
|
86
81
|
disableDefaultStyles: {
|
|
87
82
|
type: Boolean,
|
|
88
83
|
default: false
|
|
84
|
+
},
|
|
85
|
+
overflow: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: TagsOverflow.Hidden
|
|
88
|
+
},
|
|
89
|
+
// todo: review default state, disabling will breaking
|
|
90
|
+
enableClear: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: true
|
|
89
93
|
}
|
|
90
94
|
},
|
|
91
|
-
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
95
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur', 'reset'],
|
|
92
96
|
expose: ['root', 'focus', 'blur'],
|
|
93
97
|
setup(props, context) {
|
|
94
98
|
// Refs
|
|
95
99
|
const root = ref();
|
|
96
100
|
const control = ref();
|
|
101
|
+
const inputBox = ref();
|
|
102
|
+
const tags = ref();
|
|
103
|
+
// Props
|
|
104
|
+
const {
|
|
105
|
+
modelValue,
|
|
106
|
+
overflow,
|
|
107
|
+
placeholder,
|
|
108
|
+
disabled,
|
|
109
|
+
readonly
|
|
110
|
+
} = toRefs(props);
|
|
97
111
|
// Styles
|
|
98
112
|
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
|
|
99
113
|
const controlStyles = computed(() => [...TagInputControl]);
|
|
@@ -104,13 +118,24 @@ var script = defineComponent({
|
|
|
104
118
|
...useControlAttributes(),
|
|
105
119
|
...useValidationAttributes()
|
|
106
120
|
});
|
|
107
|
-
const
|
|
108
|
-
const
|
|
121
|
+
const activated = ref(false);
|
|
122
|
+
const proxyModelValue = useProxyModelValue(modelValue, context.emit);
|
|
123
|
+
const draftModelValue = ref('');
|
|
109
124
|
const currentLength = computed(() => {
|
|
110
125
|
var _a, _b;
|
|
111
126
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
112
127
|
});
|
|
113
128
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
129
|
+
const controlInlineStyles = computed(() => {
|
|
130
|
+
var _a, _b;
|
|
131
|
+
const chars = draftModelValue.value.length > 0 ? draftModelValue.value.length : currentLength.value === 0 ? (_b = (_a = placeholder.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0 : 0;
|
|
132
|
+
return {
|
|
133
|
+
width: `${Math.max(chars + 1 || 0, 3)}ch`
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
const showControl = computed(() => {
|
|
137
|
+
return draftModelValue.value.length > 0 || currentLength.value === 0 || activated.value;
|
|
138
|
+
});
|
|
114
139
|
// Methods
|
|
115
140
|
function focus() {
|
|
116
141
|
var _a;
|
|
@@ -120,6 +145,17 @@ var script = defineComponent({
|
|
|
120
145
|
var _a;
|
|
121
146
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
122
147
|
}
|
|
148
|
+
function deactivate() {
|
|
149
|
+
activated.value = false;
|
|
150
|
+
nextTick(() => blur());
|
|
151
|
+
context.emit('blur');
|
|
152
|
+
}
|
|
153
|
+
function activate() {
|
|
154
|
+
if (disabled.value || readonly.value) return;
|
|
155
|
+
activated.value = true;
|
|
156
|
+
nextTick(() => focus());
|
|
157
|
+
context.emit('focus');
|
|
158
|
+
}
|
|
123
159
|
function add() {
|
|
124
160
|
var _a;
|
|
125
161
|
const newItem = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
@@ -127,36 +163,56 @@ var script = defineComponent({
|
|
|
127
163
|
if (proxyModelValue.value.includes(newItem)) return;
|
|
128
164
|
if (maxLength.value && currentLength.value >= maxLength.value) return;
|
|
129
165
|
proxyModelValue.value = [...proxyModelValue.value, newItem];
|
|
130
|
-
draftModelValue.value =
|
|
166
|
+
draftModelValue.value = '';
|
|
131
167
|
}
|
|
132
168
|
function remove(value) {
|
|
133
169
|
proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
|
|
134
170
|
}
|
|
135
171
|
function reset() {
|
|
136
172
|
proxyModelValue.value = [];
|
|
137
|
-
draftModelValue.value =
|
|
173
|
+
draftModelValue.value = '';
|
|
174
|
+
context.emit('reset');
|
|
138
175
|
}
|
|
176
|
+
// Effects
|
|
177
|
+
onClickOutside(inputBox, () => {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
if (activated.value === false || ((_b = (_a = tags.value) === null || _a === void 0 ? void 0 : _a.overflowPopover) === null || _b === void 0 ? void 0 : _b.state) === 'open') return;
|
|
180
|
+
deactivate();
|
|
181
|
+
});
|
|
182
|
+
watch(proxyModelValue, (items, prevItems) => {
|
|
183
|
+
var _a;
|
|
184
|
+
if (items.length != prevItems.length && overflow.value === TagsOverflow.Scroll) {
|
|
185
|
+
((_a = tags.value) === null || _a === void 0 ? void 0 : _a.scrollToEnd)();
|
|
186
|
+
}
|
|
187
|
+
});
|
|
139
188
|
return {
|
|
140
189
|
root,
|
|
141
190
|
control,
|
|
191
|
+
inputBox,
|
|
192
|
+
tags,
|
|
142
193
|
rootStyles,
|
|
143
194
|
controlStyles,
|
|
144
195
|
itemStyles,
|
|
196
|
+
controlInlineStyles,
|
|
145
197
|
controlAttributes,
|
|
146
198
|
proxyModelValue,
|
|
147
199
|
draftModelValue,
|
|
148
200
|
currentLength,
|
|
149
201
|
maxLength,
|
|
202
|
+
activated,
|
|
203
|
+
showControl,
|
|
150
204
|
focus,
|
|
151
205
|
blur,
|
|
152
206
|
add,
|
|
207
|
+
activate,
|
|
208
|
+
deactivate,
|
|
153
209
|
remove,
|
|
154
210
|
reset
|
|
155
211
|
};
|
|
156
212
|
}
|
|
157
213
|
});
|
|
158
214
|
|
|
159
|
-
var css_248z = "input[data-v-
|
|
215
|
+
var css_248z = "input[data-v-5083e0d4]{min-width:0;background:0 0;outline:0}";
|
|
160
216
|
styleInject(css_248z);
|
|
161
217
|
|
|
162
218
|
/* script */
|
|
@@ -184,14 +240,20 @@ var __vue_render__ = function () {
|
|
|
184
240
|
proxy: true
|
|
185
241
|
}], null, true)
|
|
186
242
|
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
|
|
243
|
+
ref: "inputBox",
|
|
244
|
+
staticClass: "cursor-text",
|
|
187
245
|
attrs: {
|
|
188
246
|
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
189
|
-
"
|
|
247
|
+
"force-state": _vm.activated ? 'focus-within' : undefined,
|
|
190
248
|
"invalid": !!_vm.error,
|
|
191
249
|
"readonly": _vm.readonly,
|
|
192
|
-
"disabled": _vm.disabled
|
|
250
|
+
"disabled": _vm.disabled,
|
|
251
|
+
"tabindex": "0"
|
|
193
252
|
},
|
|
194
|
-
|
|
253
|
+
on: {
|
|
254
|
+
"focus": _vm.activate
|
|
255
|
+
},
|
|
256
|
+
scopedSlots: _vm._u([_vm.enableClear && !_vm.readonly && !_vm.disabled ? {
|
|
195
257
|
key: "addon",
|
|
196
258
|
fn: function () {
|
|
197
259
|
return [_vm.proxyModelValue.length > 0 || _vm.draftModelValue ? [_c('OrIconButton', {
|
|
@@ -202,74 +264,82 @@ var __vue_render__ = function () {
|
|
|
202
264
|
},
|
|
203
265
|
on: {
|
|
204
266
|
"click": function ($event) {
|
|
205
|
-
$event.stopPropagation();
|
|
206
267
|
return _vm.reset();
|
|
207
268
|
}
|
|
208
269
|
}
|
|
209
270
|
})] : _vm._e()];
|
|
210
271
|
},
|
|
211
272
|
proxy: true
|
|
212
|
-
}])
|
|
213
|
-
}, [
|
|
273
|
+
} : null], null, true)
|
|
274
|
+
}, [_c('OrTags', {
|
|
275
|
+
ref: "tags",
|
|
276
|
+
staticClass: "grow",
|
|
214
277
|
attrs: {
|
|
215
278
|
"items": _vm.proxyModelValue,
|
|
279
|
+
"disabled": _vm.disabled,
|
|
216
280
|
"tag-props": {
|
|
217
281
|
variant: _vm.readonly || _vm.disabled ? 'tag' : 'reset',
|
|
218
282
|
disabled: _vm.disabled
|
|
219
|
-
}
|
|
283
|
+
},
|
|
284
|
+
"overflow": _vm.overflow
|
|
220
285
|
},
|
|
221
286
|
on: {
|
|
222
287
|
"reset": function ($event) {
|
|
223
288
|
return _vm.remove($event);
|
|
224
289
|
}
|
|
225
|
-
}
|
|
226
|
-
})] : _vm._e(), _vm._v(" "), _c('input', _vm._b({
|
|
227
|
-
directives: [{
|
|
228
|
-
name: "model",
|
|
229
|
-
rawName: "v-model",
|
|
230
|
-
value: _vm.draftModelValue,
|
|
231
|
-
expression: "draftModelValue"
|
|
232
|
-
}],
|
|
233
|
-
ref: "control",
|
|
234
|
-
class: _vm.controlStyles,
|
|
235
|
-
attrs: {
|
|
236
|
-
"placeholder": _vm.proxyModelValue.length === 0 ? _vm.placeholder : undefined,
|
|
237
|
-
"readonly": _vm.readonly,
|
|
238
|
-
"disabled": _vm.disabled,
|
|
239
|
-
"autocomplete": 'off',
|
|
240
|
-
"minlength": undefined,
|
|
241
|
-
"maxlength": undefined,
|
|
242
|
-
"type": 'text'
|
|
243
|
-
},
|
|
244
|
-
domProps: {
|
|
245
|
-
"value": _vm.draftModelValue
|
|
246
290
|
},
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
291
|
+
scopedSlots: _vm._u([_vm.showControl ? {
|
|
292
|
+
key: "tail",
|
|
293
|
+
fn: function () {
|
|
294
|
+
return [_c('div', {
|
|
295
|
+
staticClass: "inline-flex w-fit max-w-full"
|
|
296
|
+
}, [_c('input', _vm._b({
|
|
297
|
+
directives: [{
|
|
298
|
+
name: "model",
|
|
299
|
+
rawName: "v-model",
|
|
300
|
+
value: _vm.draftModelValue,
|
|
301
|
+
expression: "draftModelValue"
|
|
302
|
+
}],
|
|
303
|
+
ref: "control",
|
|
304
|
+
class: _vm.controlStyles,
|
|
305
|
+
style: _vm.controlInlineStyles,
|
|
306
|
+
attrs: {
|
|
307
|
+
"placeholder": _vm.proxyModelValue.length === 0 ? _vm.placeholder : undefined,
|
|
308
|
+
"readonly": _vm.readonly,
|
|
309
|
+
"disabled": _vm.disabled,
|
|
310
|
+
"autocomplete": 'off',
|
|
311
|
+
"minlength": undefined,
|
|
312
|
+
"maxlength": undefined,
|
|
313
|
+
"type": 'text'
|
|
314
|
+
},
|
|
315
|
+
domProps: {
|
|
316
|
+
"value": _vm.draftModelValue
|
|
317
|
+
},
|
|
318
|
+
on: {
|
|
319
|
+
"keydown": [function ($event) {
|
|
320
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
return _vm.add();
|
|
324
|
+
}, function ($event) {
|
|
325
|
+
return _vm.$emit('keydown', $event);
|
|
326
|
+
}],
|
|
327
|
+
"keyup": function ($event) {
|
|
328
|
+
return _vm.$emit('keyup', $event);
|
|
329
|
+
},
|
|
330
|
+
"focus": _vm.activate,
|
|
331
|
+
"input": function ($event) {
|
|
332
|
+
if ($event.target.composing) {
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
_vm.draftModelValue = $event.target.value;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}, 'input', _vm.controlAttributes, false))])];
|
|
264
339
|
},
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
_vm.draftModelValue = $event.target.value;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}, 'input', _vm.controlAttributes, false))], 2), _vm._v(" "), _c('div', {
|
|
340
|
+
proxy: true
|
|
341
|
+
} : null], null, true)
|
|
342
|
+
})], 1), _vm._v(" "), _c('div', {
|
|
273
343
|
directives: [{
|
|
274
344
|
name: "show",
|
|
275
345
|
rawName: "v-show",
|
|
@@ -314,7 +384,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
314
384
|
/* style */
|
|
315
385
|
const __vue_inject_styles__ = undefined;
|
|
316
386
|
/* scoped */
|
|
317
|
-
const __vue_scope_id__ = "data-v-
|
|
387
|
+
const __vue_scope_id__ = "data-v-5083e0d4";
|
|
318
388
|
/* module identifier */
|
|
319
389
|
const __vue_module_identifier__ = undefined;
|
|
320
390
|
/* functional template */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { u as useOverflow } from './useOverflow-
|
|
1
|
+
import { defineComponent, ref, toRefs, computed, nextTick } from 'vue-demi';
|
|
2
|
+
import { u as useOverflow } from './useOverflow-b482f3c9.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '@onereach/styles/tailwind/plugins/core';
|
|
5
5
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -10,8 +10,12 @@ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
|
10
10
|
|
|
11
11
|
var TagsOverflow;
|
|
12
12
|
(function (TagsOverflow) {
|
|
13
|
+
// todo: remove in next braking release
|
|
14
|
+
// @deprecated use Hidden instead
|
|
13
15
|
TagsOverflow["Default"] = "default";
|
|
14
16
|
TagsOverflow["Wrap"] = "wrap";
|
|
17
|
+
TagsOverflow["Hidden"] = "hidden";
|
|
18
|
+
TagsOverflow["Scroll"] = "scroll";
|
|
15
19
|
})(TagsOverflow || (TagsOverflow = {}));
|
|
16
20
|
|
|
17
21
|
const Tags = [
|
|
@@ -25,28 +29,49 @@ const Tags = [
|
|
|
25
29
|
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
26
30
|
const TagsContainer = [
|
|
27
31
|
// Layout
|
|
28
|
-
'layout-row',
|
|
32
|
+
'layout-row', 'max-w-full',
|
|
29
33
|
// Spacing
|
|
30
|
-
'gap-sm'];
|
|
34
|
+
'gap-sm', 'py-xs'];
|
|
31
35
|
const TagsContainerOverflows = {
|
|
36
|
+
// todo: remove in next braking release
|
|
37
|
+
// @deprecated use Hidden instead
|
|
32
38
|
[TagsOverflow.Default]: [
|
|
33
39
|
// Overflow
|
|
34
40
|
'overflow-hidden'],
|
|
41
|
+
[TagsOverflow.Hidden]: [
|
|
42
|
+
// Overflow
|
|
43
|
+
'overflow-hidden'],
|
|
35
44
|
[TagsOverflow.Wrap]: [
|
|
36
45
|
// Layout
|
|
37
|
-
'!flex-wrap']
|
|
46
|
+
'!flex-wrap'],
|
|
47
|
+
[TagsOverflow.Scroll]: [
|
|
48
|
+
// Layout
|
|
49
|
+
'overflow-y-auto',
|
|
50
|
+
// todo: extract to plugin?
|
|
51
|
+
'[&::-webkit-scrollbar]:hidden [-ms-overflow-style:\'none\'] [scrollbar-width:\'none\']']
|
|
38
52
|
};
|
|
39
53
|
const TagsOverflowButton = [
|
|
40
54
|
// Typography
|
|
41
55
|
'typography-caption-regular'];
|
|
42
56
|
const TagsOverflowPopover = [
|
|
43
57
|
// Layout
|
|
44
|
-
'layout-row !flex-wrap',
|
|
58
|
+
'layout-row !flex-wrap !content-start overflow-y-auto',
|
|
45
59
|
// Box
|
|
46
|
-
'max-w-[192px]',
|
|
60
|
+
'max-w-[192px] max-h-[340px]',
|
|
47
61
|
// Spacing
|
|
48
62
|
'px-md', 'py-md', 'gap-sm'];
|
|
49
63
|
|
|
64
|
+
function castToTagObject(tag) {
|
|
65
|
+
if (typeof tag === 'string') {
|
|
66
|
+
return {
|
|
67
|
+
label: tag,
|
|
68
|
+
value: tag
|
|
69
|
+
};
|
|
70
|
+
} else {
|
|
71
|
+
return tag;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
50
75
|
var script = defineComponent({
|
|
51
76
|
name: 'OrTags',
|
|
52
77
|
components: {
|
|
@@ -61,19 +86,31 @@ var script = defineComponent({
|
|
|
61
86
|
},
|
|
62
87
|
overflow: {
|
|
63
88
|
type: String,
|
|
64
|
-
default: TagsOverflow.
|
|
89
|
+
default: TagsOverflow.Hidden
|
|
65
90
|
},
|
|
66
91
|
tagProps: {
|
|
67
92
|
type: Object,
|
|
68
93
|
default: undefined
|
|
94
|
+
},
|
|
95
|
+
disabled: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: false
|
|
69
98
|
}
|
|
70
99
|
},
|
|
71
100
|
emits: ['click', 'focus', 'blur', 'reset'],
|
|
72
|
-
expose: ['root'],
|
|
101
|
+
expose: ['root', 'container', 'overflowPopover', 'scrollToEnd'],
|
|
73
102
|
setup(props) {
|
|
74
103
|
// Refs
|
|
75
104
|
const root = ref();
|
|
76
105
|
const container = ref();
|
|
106
|
+
// Props
|
|
107
|
+
const {
|
|
108
|
+
items,
|
|
109
|
+
overflow
|
|
110
|
+
} = toRefs(props);
|
|
111
|
+
const localOverflow = computed(() => {
|
|
112
|
+
return overflow.value === TagsOverflow.Default ? TagsOverflow.Hidden : overflow.value;
|
|
113
|
+
});
|
|
77
114
|
const overflowButton = ref();
|
|
78
115
|
const overflowButtonRoot = computed(() => {
|
|
79
116
|
var _a;
|
|
@@ -86,19 +123,39 @@ var script = defineComponent({
|
|
|
86
123
|
});
|
|
87
124
|
// Styles
|
|
88
125
|
const rootStyles = computed(() => ['or-tags-v3', ...Tags]);
|
|
89
|
-
const containerStyles = computed(() => [...TagsContainer, ...TagsContainerOverflows[
|
|
126
|
+
const containerStyles = computed(() => [...TagsContainer, ...TagsContainerOverflows[localOverflow.value]]);
|
|
90
127
|
const overflowButtonStyles = computed(() => [...TagsOverflowButton]);
|
|
91
128
|
const overflowPopoverStyles = computed(() => [...TagsOverflowPopover]);
|
|
92
129
|
// State
|
|
93
130
|
const {
|
|
94
131
|
innerItems
|
|
95
|
-
} = useOverflow(container
|
|
132
|
+
} = useOverflow(container, {
|
|
133
|
+
hide: false
|
|
134
|
+
});
|
|
135
|
+
const localItems = computed(() => {
|
|
136
|
+
return items.value.map(castToTagObject);
|
|
137
|
+
});
|
|
96
138
|
const overflowItems = computed(() => {
|
|
97
|
-
return
|
|
139
|
+
return localItems.value.slice(innerItems.value.length);
|
|
98
140
|
});
|
|
141
|
+
// Methods
|
|
142
|
+
function togglePopover() {
|
|
143
|
+
overflowPopover.value.toggle();
|
|
144
|
+
}
|
|
145
|
+
function scrollToEnd() {
|
|
146
|
+
nextTick(() => {
|
|
147
|
+
var _a, _b;
|
|
148
|
+
(_a = container.value) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
149
|
+
left: (_b = container.value) === null || _b === void 0 ? void 0 : _b.scrollWidth,
|
|
150
|
+
behavior: 'smooth'
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
}
|
|
99
154
|
return {
|
|
100
155
|
root,
|
|
101
156
|
container,
|
|
157
|
+
localOverflow,
|
|
158
|
+
localItems,
|
|
102
159
|
overflowButton,
|
|
103
160
|
overflowButtonRoot,
|
|
104
161
|
overflowPopover,
|
|
@@ -107,7 +164,9 @@ var script = defineComponent({
|
|
|
107
164
|
containerStyles,
|
|
108
165
|
overflowButtonStyles,
|
|
109
166
|
overflowPopoverStyles,
|
|
110
|
-
overflowItems
|
|
167
|
+
overflowItems,
|
|
168
|
+
togglePopover,
|
|
169
|
+
scrollToEnd
|
|
111
170
|
};
|
|
112
171
|
}
|
|
113
172
|
});
|
|
@@ -123,30 +182,32 @@ var __vue_render__ = function () {
|
|
|
123
182
|
return _c('div', {
|
|
124
183
|
ref: "root",
|
|
125
184
|
class: _vm.rootStyles
|
|
126
|
-
}, [_c('div', {
|
|
185
|
+
}, [_vm.localItems.length > 0 ? _c('div', {
|
|
127
186
|
ref: "container",
|
|
128
187
|
class: _vm.containerStyles
|
|
129
|
-
}, _vm._l(_vm.
|
|
188
|
+
}, [_vm._l(_vm.localItems, function (item) {
|
|
130
189
|
return _c('OrTag', _vm._b({
|
|
131
|
-
key: item,
|
|
190
|
+
key: item.value,
|
|
191
|
+
staticClass: "max-w-full",
|
|
132
192
|
on: {
|
|
133
193
|
"reset": function ($event) {
|
|
134
|
-
return _vm.$emit('reset', item);
|
|
194
|
+
return _vm.$emit('reset', item.value);
|
|
135
195
|
}
|
|
136
196
|
}
|
|
137
|
-
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item) + "\n ")]);
|
|
138
|
-
}),
|
|
197
|
+
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
|
|
198
|
+
}), _vm._v(" "), _vm.localOverflow === 'wrap' ? _vm._t("tail") : _vm._e()], 2) : _vm._e(), _vm._v(" "), _vm.localOverflow === 'hidden' && _vm.overflowItems.length > 0 ? [_c('OrButton', {
|
|
139
199
|
ref: "overflowButton",
|
|
140
200
|
class: _vm.overflowButtonStyles,
|
|
141
201
|
attrs: {
|
|
142
202
|
"type": 'button',
|
|
143
203
|
"variant": 'link',
|
|
144
|
-
"color": 'inherit'
|
|
204
|
+
"color": 'inherit',
|
|
205
|
+
"disabled": _vm.disabled
|
|
145
206
|
},
|
|
146
207
|
on: {
|
|
147
208
|
"click": function ($event) {
|
|
148
209
|
$event.stopPropagation();
|
|
149
|
-
return _vm.
|
|
210
|
+
return _vm.togglePopover.apply(null, arguments);
|
|
150
211
|
}
|
|
151
212
|
}
|
|
152
213
|
}, [_vm._v("\n +" + _vm._s(_vm.overflowItems.length) + "\n ")]), _vm._v(" "), _c('OrPopover', {
|
|
@@ -158,14 +219,14 @@ var __vue_render__ = function () {
|
|
|
158
219
|
class: _vm.overflowPopoverStyles
|
|
159
220
|
}, _vm._l(_vm.overflowItems, function (item) {
|
|
160
221
|
return _c('OrTag', _vm._b({
|
|
161
|
-
key: item,
|
|
222
|
+
key: item.value,
|
|
162
223
|
on: {
|
|
163
224
|
"reset": function ($event) {
|
|
164
|
-
return _vm.$emit('reset', item);
|
|
225
|
+
return _vm.$emit('reset', item.value);
|
|
165
226
|
}
|
|
166
227
|
}
|
|
167
|
-
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item) + "\n ")]);
|
|
168
|
-
}), 1)])] : _vm._e()], 2);
|
|
228
|
+
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
|
|
229
|
+
}), 1)])] : _vm._e(), _vm._v(" "), _vm.localOverflow != 'wrap' || _vm.items.length === 0 ? _vm._t("tail") : _vm._e()], 2);
|
|
169
230
|
};
|
|
170
231
|
var __vue_staticRenderFns__ = [];
|
|
171
232
|
|
|
@@ -93,7 +93,7 @@ export { _ as OrSearch } from '../OrSearch-ac542dd6.js';
|
|
|
93
93
|
export { _ as OrSearchV3 } from '../OrSearch-c5850ddd.js';
|
|
94
94
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-bba94cda.js';
|
|
95
95
|
export { _ as OrSelect } from '../OrSelect-c0d04cf6.js';
|
|
96
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
96
|
+
export { _ as OrSelectV3 } from '../OrSelect-578bcee2.js';
|
|
97
97
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-c56a9221.js';
|
|
98
98
|
export { _ as OrSidebarV3 } from '../OrSidebar-d24100a9.js';
|
|
99
99
|
export { S as OrSidebarPlacement, S as SidebarPlacement } from '../props-cc0586c8.js';
|
|
@@ -115,9 +115,9 @@ export { _ as OrTabV3 } from '../OrTab-13db2e49.js';
|
|
|
115
115
|
export { _ as OrTabs } from '../OrTabs-62e7e478.js';
|
|
116
116
|
export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-71f4fc47.js';
|
|
117
117
|
export { _ as OrTag } from '../OrTag-b5803a20.js';
|
|
118
|
-
export { _ as OrTagInputV3 } from '../OrTagInput-
|
|
118
|
+
export { _ as OrTagInputV3 } from '../OrTagInput-7f917d41.js';
|
|
119
119
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-884d1994.js';
|
|
120
|
-
export { _ as OrTagsV3, T as TagsOverflow } from '../OrTags-
|
|
120
|
+
export { _ as OrTagsV3, T as TagsOverflow } from '../OrTags-ed4ddf4d.js';
|
|
121
121
|
export { _ as OrTeleport } from '../OrTeleport.vue2-f0c16c71.js';
|
|
122
122
|
export { _ as OrTeleportV3 } from '../OrTeleport.vue2-424c7f33.js';
|
|
123
123
|
export { _ as OrTextV3 } from '../OrText-44449e7b.js';
|
|
@@ -199,8 +199,12 @@ import '../codemirrorView-020fe885.js';
|
|
|
199
199
|
import 'prosemirror-state';
|
|
200
200
|
import 'prosemirror-commands';
|
|
201
201
|
import 'lodash/keyBy';
|
|
202
|
-
import '../
|
|
202
|
+
import '../OrSelectMultipleControl-961d8d6a.js';
|
|
203
|
+
import '../OrSelectPlaceholder-f36f4e40.js';
|
|
204
|
+
import '../OrSelectControlInput-28c226f8.js';
|
|
205
|
+
import '../OrSelectSingleControl-76b29e0b.js';
|
|
203
206
|
import 'lodash/range';
|
|
204
207
|
import '../styles-ed564e39.js';
|
|
208
|
+
import '../useOverflow-b482f3c9.js';
|
|
205
209
|
import 'portal-vue/dist/portal-vue.esm.js';
|
|
206
210
|
import 'portal-vue';
|