@onereach/ui-components 5.0.2-beta.3147.0 → 5.0.2-beta.3148.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 +15 -8
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +2 -0
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -3
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +5 -5
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -2
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v2/components/OrLabelV3/OrLabel.js +3 -7
- package/dist/bundled/v2/components/OrLabelV3/OrLabel.vue.d.ts +5 -16
- package/dist/bundled/v2/components/OrLabelV3/props.d.ts +1 -2
- package/dist/bundled/v2/components/OrLabelV3/props.js +0 -1
- package/dist/bundled/v2/components/OrLabelV3/styles.d.ts +2 -2
- package/dist/bundled/v2/components/OrLabelV3/styles.js +5 -14
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +24 -134
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +0 -12
- package/dist/bundled/v2/components/OrSelectV3/styles.d.ts +1 -3
- package/dist/bundled/v2/components/OrSelectV3/styles.js +2 -12
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/index.js +2 -2
- package/dist/bundled/v2/directives/dropdown-close.js +2 -0
- package/dist/bundled/v2/directives/dropdown-open.js +3 -1
- package/dist/bundled/v2/index.js +3 -3
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-d6609a26.js → OrBottomSheet.vue_vue_type_script_lang-92bd40dc.js} +14 -7
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c93da401.js → OrCardCollection.vue_vue_type_script_lang-fb56ff84.js} +3 -3
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-38736023.js → OrCheckbox.vue_vue_type_script_lang-eeb6b419.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-51bbd047.js → OrCheckboxGroup.vue_vue_type_script_lang-3b25afe5.js} +2 -2
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-e67747a4.js → OrCheckboxTree.vue_vue_type_script_lang-ab30a5c4.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-0e34e3c4.js → OrCode.vue_vue_type_script_lang-415cbcef.js} +3 -3
- package/dist/bundled/v3/{OrCombinedInput.vue_vue_type_script_lang-230d4d9c.js → OrCombinedInput.vue_vue_type_script_lang-cb7a88f3.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-383e286f.js → OrConfirm.vue_vue_type_script_lang-1479048a.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-ae3aabc6.js → OrDatePicker.vue_vue_type_script_lang-3f47f9d0.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-911a50a3.js → OrDateTimePicker.vue_vue_type_script_lang-0e308da1.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-47d89402.js → OrDateTimePickerMonthSelect-70f423bd.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-eff1f44b.js → OrDateTimePickerPopoverHeader-d9eef487.js} +1 -1
- package/dist/bundled/v3/{OrFormGroup.vue_vue_type_script_lang-d67479fc.js → OrFormGroup.vue_vue_type_script_lang-1c6844d6.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-da2a6044.js → OrIconButton.vue_vue_type_script_lang-8ece3249.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-8400fa8c.js → OrInlineInput.vue_vue_type_script_lang-b8d413e4.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-d6a348da.js → OrInlineTextarea.vue_vue_type_script_lang-ab9c16ed.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-ec80afeb.js → OrInput.vue_vue_type_script_lang-b4f529b9.js} +2 -2
- package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-fcdfd80d.js → OrLabel.vue_vue_type_script_lang-3e11ab8a.js} +3 -6
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-6d3459d2.js → OrMenu.vue_vue_type_script_lang-ee977f0d.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-9db0be3b.js → OrModal.vue_vue_type_script_lang-849d963e.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-01382876.js → OrNotification.vue_vue_type_script_lang-3f3ea765.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-4e054df4.js → OrPagination.vue_vue_type_script_lang-8a110763.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-cc1ee134.js → OrPopover.vue_vue_type_script_lang-e7c2dc12.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-08ab2220.js → OrRadio.vue_vue_type_script_lang-48c2bc6b.js} +1 -1
- package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-d84948fc.js → OrRadioGroup.vue_vue_type_script_lang-d7f6f8ca.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-12bbade9.js → OrSearch.vue_vue_type_script_lang-e9529628.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-4a6e81f8.js → OrSelect.vue_vue_type_script_lang-f4f95df2.js} +11 -34
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-a7103da5.js → OrSidebar.vue_vue_type_script_lang-edd63847.js} +1 -1
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-a43c7a38.js → OrSorting.vue_vue_type_script_lang-5a6bcbc0.js} +1 -1
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-14b4ec0a.js → OrSwitch.vue_vue_type_script_lang-ee55263f.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-3831d139.js → OrTabs.vue_vue_type_script_lang-5cc06213.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-206b5c7c.js → OrTag.vue_vue_type_script_lang-6537c2d6.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-00010fb4.js → OrTagInput.vue_vue_type_script_lang-6664643f.js} +3 -3
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-de78876f.js → OrTags.vue_vue_type_script_lang-db152367.js} +2 -2
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-a7cfbe82.js → OrTextarea.vue_vue_type_script_lang-7562cca1.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-a3554386.js → OrTimePicker.vue_vue_type_script_lang-9cd380e9.js} +4 -4
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-215def44.js → OrTooltip.vue_vue_type_script_lang-f2f905d0.js} +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +3 -3
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +1 -0
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +11 -11
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +10 -10
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +6 -6
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +5 -5
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +4 -4
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +3 -3
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +4 -5
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +3 -3
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +8 -8
- package/dist/bundled/v3/components/OrCodeV3/index.js +7 -7
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +3 -3
- package/dist/bundled/v3/components/OrCombinedInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +8 -8
- package/dist/bundled/v3/components/OrConfirmV3/index.js +7 -7
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +10 -10
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +9 -9
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +10 -10
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +9 -9
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +3 -3
- package/dist/bundled/v3/components/OrFormGroupV3/index.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +5 -5
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +4 -4
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +6 -6
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +5 -5
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +6 -6
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +5 -5
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +7 -7
- package/dist/bundled/v3/components/OrInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.js +3 -4
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +3 -12
- package/dist/bundled/v3/components/OrLabelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLabelV3/props.d.ts +1 -2
- package/dist/bundled/v3/components/OrLabelV3/props.js +0 -1
- package/dist/bundled/v3/components/OrLabelV3/styles.d.ts +2 -2
- package/dist/bundled/v3/components/OrLabelV3/styles.js +5 -14
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +4 -4
- package/dist/bundled/v3/components/OrMenuV3/index.js +3 -3
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +6 -6
- package/dist/bundled/v3/components/OrModalV3/index.js +5 -5
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +6 -6
- package/dist/bundled/v3/components/OrNotificationV3/index.js +5 -5
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +5 -5
- package/dist/bundled/v3/components/OrPaginationV3/index.js +4 -4
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +3 -3
- package/dist/bundled/v3/components/OrPopoverV3/index.js +2 -2
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +5 -5
- package/dist/bundled/v3/components/OrRadioGroupV3/index.js +4 -4
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +3 -3
- package/dist/bundled/v3/components/OrRadioV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +8 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +7 -7
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +48 -97
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +0 -6
- package/dist/bundled/v3/components/OrSelectV3/index.js +9 -9
- package/dist/bundled/v3/components/OrSelectV3/styles.d.ts +1 -3
- package/dist/bundled/v3/components/OrSelectV3/styles.js +2 -12
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +6 -6
- package/dist/bundled/v3/components/OrSidebarV3/index.js +5 -5
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +5 -5
- package/dist/bundled/v3/components/OrSortingV3/index.js +4 -4
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +3 -3
- package/dist/bundled/v3/components/OrSwitchV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +5 -5
- package/dist/bundled/v3/components/OrTabsV3/index.js +4 -4
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +9 -9
- package/dist/bundled/v3/components/OrTagInputV3/index.js +8 -8
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +6 -6
- package/dist/bundled/v3/components/OrTagV3/index.js +5 -5
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +7 -7
- package/dist/bundled/v3/components/OrTagsV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +3 -3
- package/dist/bundled/v3/components/OrTextareaV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +8 -8
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +7 -7
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +6 -6
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +5 -5
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +4 -4
- package/dist/bundled/v3/components/OrToastV3/index.js +5 -5
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +4 -4
- package/dist/bundled/v3/components/OrTooltipV3/index.js +3 -3
- package/dist/bundled/v3/components/index.js +38 -38
- package/dist/bundled/v3/directives/dropdown-close.js +2 -0
- package/dist/bundled/v3/directives/dropdown-open.js +3 -1
- package/dist/bundled/v3/index.js +39 -39
- package/dist/esm/v2/{OrBottomSheet-a4ee4b0e.js → OrBottomSheet-c5733d46.js} +15 -8
- package/dist/esm/v2/{OrCardCollection-10ae5e3a.js → OrCardCollection-aa2d56aa.js} +3 -3
- package/dist/esm/v2/{OrCheckbox-ae903071.js → OrCheckbox-db66b4ea.js} +3 -4
- package/dist/esm/v2/{OrCheckboxGroup-74dc7c1d.js → OrCheckboxGroup-a04f27fe.js} +2 -2
- package/dist/esm/v2/{OrCheckboxTree-19f5d69b.js → OrCheckboxTree-f48db82f.js} +1 -1
- package/dist/esm/v2/{OrCode-65f78f9f.js → OrCode-71a630bc.js} +3 -3
- package/dist/esm/v2/{OrCombinedInput-2639e3e1.js → OrCombinedInput-45187323.js} +1 -1
- package/dist/esm/v2/{OrConfirm-d2ae622a.js → OrConfirm-652c902d.js} +1 -1
- package/dist/esm/v2/{OrDatePicker-3eef3059.js → OrDatePicker-4dfd0ffe.js} +5 -5
- package/dist/esm/v2/{OrDateTimePicker-aeebd5ea.js → OrDateTimePicker-a99ca552.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-5044ee23.js → OrDateTimePicker.vue_rollup-plugin-vue_script-4673e3b6.js} +5 -5
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-83eb5ad1.js → OrDateTimePickerPopoverHeader-bbb30c80.js} +4 -4
- package/dist/esm/v2/{OrFormGroup-9000fcdf.js → OrFormGroup-29a514db.js} +1 -1
- package/dist/esm/v2/{OrIconButton-311050dc.js → OrIconButton-cacd0ad4.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-410e6e7d.js → OrInlineInput-2119c715.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-be5970dd.js → OrInlineTextarea-58c683dd.js} +1 -1
- package/dist/esm/v2/{OrInput-fbed0b61.js → OrInput-296b0efa.js} +4 -4
- package/dist/esm/v2/{OrLabel-4a3d8904.js → OrLabel-63380256.js} +6 -18
- package/dist/esm/v2/{OrMenu-e2f557c8.js → OrMenu-953ee124.js} +1 -1
- package/dist/esm/v2/{OrModal-3dafa3ce.js → OrModal-73f37e3f.js} +1 -1
- package/dist/esm/v2/{OrNotification-6df1f6f6.js → OrNotification-0fd6d08c.js} +1 -1
- package/dist/esm/v2/{OrPagination-f1e7aaa7.js → OrPagination-24b68ad5.js} +2 -2
- package/dist/esm/v2/{OrPopover-36e2fc9f.js → OrPopover-1121e84b.js} +1 -1
- package/dist/esm/v2/{OrRadio-0fc3ae14.js → OrRadio-b32dfbfe.js} +1 -1
- package/dist/esm/v2/{OrRadioGroup-1108883d.js → OrRadioGroup-d1c2e460.js} +2 -2
- package/dist/esm/v2/{OrSearch-598dee09.js → OrSearch-9bd19fe4.js} +1 -1
- package/dist/esm/v2/{OrSelect-79deda5f.js → OrSelect-8f2375d5.js} +30 -151
- package/dist/esm/v2/{OrSidebar-0539d572.js → OrSidebar-950c6de0.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-8474d9c3.js → OrSidebarCollapseButton-b3bcc3c4.js} +1 -1
- package/dist/esm/v2/{OrSorting-fad7928f.js → OrSorting-3c17311a.js} +2 -2
- package/dist/esm/v2/{OrSwitch-a3da6bec.js → OrSwitch-e49ce2d8.js} +1 -1
- package/dist/esm/v2/{OrTabs-0046e15b.js → OrTabs-586b3992.js} +2 -2
- package/dist/esm/v2/{OrTag-d21ee9c1.js → OrTag-08d0404a.js} +1 -1
- package/dist/esm/v2/{OrTagInput-400f0605.js → OrTagInput-c5e99ffb.js} +3 -3
- package/dist/esm/v2/{OrTags-c1a44ef7.js → OrTags-97c39bd1.js} +2 -2
- package/dist/esm/v2/{OrTextarea-6fe8b65f.js → OrTextarea-824f7048.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-b6c79be1.js → OrTimePicker-20ff2d76.js} +6 -6
- package/dist/esm/v2/{OrTooltip-ec00d3ee.js → OrTooltip-54eba075.js} +1 -1
- package/dist/esm/v2/components/index.js +40 -40
- package/dist/esm/v2/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +10 -10
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +5 -5
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +5 -5
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v2/components/or-code-v3/index.js +7 -7
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +7 -7
- package/dist/esm/v2/components/or-date-picker-v3/index.js +9 -9
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -10
- package/dist/esm/v2/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v2/components/or-icon-button-v3/index.js +4 -4
- package/dist/esm/v2/components/or-inline-input-v3/index.js +5 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/esm/v2/components/or-input-v3/index.js +6 -6
- package/dist/esm/v2/components/or-label-v3/OrLabel.vue.d.ts +5 -16
- package/dist/esm/v2/components/or-label-v3/index.js +1 -1
- package/dist/esm/v2/components/or-label-v3/props.d.ts +1 -2
- package/dist/esm/v2/components/or-label-v3/styles.d.ts +2 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +3 -3
- package/dist/esm/v2/components/or-modal-v3/index.js +5 -5
- package/dist/esm/v2/components/or-notification-v3/index.js +5 -5
- package/dist/esm/v2/components/or-pagination-v3/index.js +4 -4
- package/dist/esm/v2/components/or-popover-v3/index.js +2 -2
- package/dist/esm/v2/components/or-radio-group-v3/index.js +4 -4
- package/dist/esm/v2/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +7 -7
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +0 -12
- package/dist/esm/v2/components/or-select-v3/index.js +11 -11
- package/dist/esm/v2/components/or-select-v3/styles.d.ts +1 -3
- package/dist/esm/v2/components/or-sidebar-v3/index.js +6 -6
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +5 -5
- package/dist/esm/v2/components/or-sorting-v3/index.js +4 -4
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tag-input-v3/index.js +8 -8
- package/dist/esm/v2/components/or-tag-v3/index.js +5 -5
- package/dist/esm/v2/components/or-tags-v3/index.js +6 -6
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +10 -10
- package/dist/esm/v2/components/or-toast-v3/index.js +5 -5
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +5 -5
- package/dist/esm/v2/components/or-tooltip-v3/index.js +3 -3
- package/dist/esm/v2/directives/index.js +1 -1
- package/dist/esm/v2/{dropdown-open-06d651cf.js → dropdown-open-e1f90e0a.js} +5 -1
- package/dist/esm/v2/index.js +40 -40
- package/dist/esm/v2/{types-e481ff6f.js → types-220d4fd0.js} +1 -1
- package/dist/esm/v3/{OrBottomSheet-98aec82b.js → OrBottomSheet-ebfaa41b.js} +15 -8
- package/dist/esm/v3/{OrCardCollection-7d647b53.js → OrCardCollection-b94a4027.js} +3 -3
- package/dist/esm/v3/{OrCheckbox-a571fc90.js → OrCheckbox-09f62aab.js} +2 -3
- package/dist/esm/v3/{OrCheckboxGroup-7fe25d85.js → OrCheckboxGroup-6c054793.js} +2 -2
- package/dist/esm/v3/{OrCheckboxTree-bea23696.js → OrCheckboxTree-bb32455e.js} +1 -1
- package/dist/esm/v3/{OrCode-fd372d76.js → OrCode-01c116d6.js} +3 -3
- package/dist/esm/v3/{OrCombinedInput-6dd0f75d.js → OrCombinedInput-2800ee8b.js} +1 -1
- package/dist/esm/v3/{OrConfirm-de678c6c.js → OrConfirm-b49fbb90.js} +1 -1
- package/dist/esm/v3/{OrDatePicker-10c4e1ea.js → OrDatePicker-1f7d7258.js} +5 -5
- package/dist/esm/v3/{OrDateTimePicker-044dd6fb.js → OrDateTimePicker-fb7f7648.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-ae493df9.js → OrDateTimePickerPopoverHeader-25d611a8.js} +4 -4
- package/dist/esm/v3/{OrFormGroup-c4631ef0.js → OrFormGroup-9f581536.js} +1 -1
- package/dist/esm/v3/{OrIconButton-65b1a004.js → OrIconButton-ed3ca1f4.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-1d8b7ba7.js → OrInlineInput-5c96504a.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-384e66cd.js → OrInlineTextarea-56952d5a.js} +1 -1
- package/dist/esm/v3/{OrInput-487c7632.js → OrInput-e9ec0f43.js} +2 -2
- package/dist/esm/v3/{OrLabel-d4c46bb6.js → OrLabel-4da56db0.js} +7 -19
- package/dist/esm/v3/{OrMenu-7943ee1f.js → OrMenu-a0c0e2db.js} +1 -1
- package/dist/esm/v3/{OrModal-fb598e97.js → OrModal-98d05f94.js} +1 -1
- package/dist/esm/v3/{OrNotification-a1de8289.js → OrNotification-13e23a58.js} +1 -1
- package/dist/esm/v3/{OrPagination-0dd5c8f0.js → OrPagination-5813b0b9.js} +2 -2
- package/dist/esm/v3/{OrPopover-466a8297.js → OrPopover-7ebafc52.js} +1 -1
- package/dist/esm/v3/{OrRadio-48cd02a9.js → OrRadio-7b722b16.js} +1 -1
- package/dist/esm/v3/{OrRadioGroup-82d10aa8.js → OrRadioGroup-58c0214c.js} +2 -2
- package/dist/esm/v3/{OrSearch-998e4390.js → OrSearch-f9e99142.js} +1 -1
- package/dist/esm/v3/{OrSelect-e1886d74.js → OrSelect-a2992cc5.js} +50 -132
- package/dist/esm/v3/{OrSidebar-d8e70813.js → OrSidebar-6d907fe1.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-7a9f76cf.js → OrSidebarCollapseButton-673f0fd8.js} +1 -1
- package/dist/esm/v3/{OrSorting-d5f3e077.js → OrSorting-2138609c.js} +2 -2
- package/dist/esm/v3/{OrSwitch-f4d9e196.js → OrSwitch-a6efd081.js} +1 -1
- package/dist/esm/v3/{OrTabs-83e4477c.js → OrTabs-d4e4b241.js} +2 -2
- package/dist/esm/v3/{OrTag-8fede185.js → OrTag-89409786.js} +1 -1
- package/dist/esm/v3/{OrTagInput-65e725b0.js → OrTagInput-fefa4042.js} +3 -3
- package/dist/esm/v3/{OrTags-5feb7c2d.js → OrTags-4ed528cc.js} +2 -2
- package/dist/esm/v3/{OrTextarea-f3412790.js → OrTextarea-6c471ccd.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-ef98ec36.js → OrTimePicker-1d0c7a27.js} +6 -6
- package/dist/esm/v3/{OrTooltip-6802b717.js → OrTooltip-ee84da3e.js} +1 -1
- package/dist/esm/v3/components/index.js +39 -39
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +1 -0
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +10 -10
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +5 -5
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v3/components/or-code-v3/index.js +7 -7
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +7 -7
- package/dist/esm/v3/components/or-date-picker-v3/index.js +9 -9
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +9 -9
- package/dist/esm/v3/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v3/components/or-icon-button-v3/index.js +4 -4
- package/dist/esm/v3/components/or-inline-input-v3/index.js +5 -5
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/esm/v3/components/or-input-v3/index.js +6 -6
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +3 -12
- package/dist/esm/v3/components/or-label-v3/index.js +1 -1
- package/dist/esm/v3/components/or-label-v3/props.d.ts +1 -2
- package/dist/esm/v3/components/or-label-v3/styles.d.ts +2 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +3 -3
- package/dist/esm/v3/components/or-modal-v3/index.js +5 -5
- package/dist/esm/v3/components/or-notification-v3/index.js +5 -5
- package/dist/esm/v3/components/or-pagination-v3/index.js +4 -4
- package/dist/esm/v3/components/or-popover-v3/index.js +2 -2
- package/dist/esm/v3/components/or-radio-group-v3/index.js +4 -4
- package/dist/esm/v3/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +7 -7
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +0 -6
- package/dist/esm/v3/components/or-select-v3/index.js +11 -11
- package/dist/esm/v3/components/or-select-v3/styles.d.ts +1 -3
- package/dist/esm/v3/components/or-sidebar-v3/index.js +6 -6
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +5 -5
- package/dist/esm/v3/components/or-sorting-v3/index.js +4 -4
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tag-input-v3/index.js +8 -8
- package/dist/esm/v3/components/or-tag-v3/index.js +5 -5
- package/dist/esm/v3/components/or-tags-v3/index.js +6 -6
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +10 -10
- package/dist/esm/v3/components/or-toast-v3/index.js +5 -5
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +5 -5
- package/dist/esm/v3/components/or-tooltip-v3/index.js +3 -3
- package/dist/esm/v3/directives/index.js +1 -1
- package/dist/esm/v3/{dropdown-open-06d651cf.js → dropdown-open-e1f90e0a.js} +5 -1
- package/dist/esm/v3/index.js +39 -39
- package/dist/esm/v3/{types-94be8310.js → types-e5b7da7c.js} +1 -1
- package/package.json +1 -1
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +17 -6
- package/src/components/or-checkbox-v3/OrCheckbox.vue +0 -1
- package/src/components/or-input-v3/OrInput.vue +0 -1
- package/src/components/or-label-v3/OrLabel.vue +5 -9
- package/src/components/or-label-v3/props.ts +0 -1
- package/src/components/or-label-v3/styles.ts +4 -16
- package/src/components/or-select-v3/OrSelect.vue +27 -117
- package/src/components/or-select-v3/styles.ts +1 -18
- package/src/directives/dropdown-close.ts +3 -0
- package/src/directives/dropdown-open.ts +4 -1
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-a3097661.js → OrDateTimePickerMonthSelect-dc83db95.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-f3d67e5d.js → OrDateTimePickerPopoverHeader-a4f77733.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-64d27360.js → OrToastContainer.vue_vue_type_script_lang-457f1ce4.js} +0 -0
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
@blur="$emit('blur', $event)"
|
|
40
40
|
>
|
|
41
41
|
<template v-if="multiple">
|
|
42
|
-
<template v-if="
|
|
42
|
+
<template v-if="proxyModelValue && proxyModelValue.length > 0">
|
|
43
43
|
<slot
|
|
44
44
|
name="valueTemplate"
|
|
45
45
|
:model="proxyModelValue"
|
|
46
46
|
>
|
|
47
47
|
<OrTag
|
|
48
|
-
v-for="option in selection"
|
|
49
|
-
:key="
|
|
48
|
+
v-for="(option, i) in selection"
|
|
49
|
+
:key="i"
|
|
50
50
|
:variant="'reset'"
|
|
51
51
|
:disabled="disabled || readonly"
|
|
52
52
|
@reset="deselect(option)"
|
|
@@ -54,80 +54,27 @@
|
|
|
54
54
|
{{ option.label }}
|
|
55
55
|
</OrTag>
|
|
56
56
|
</slot>
|
|
57
|
-
|
|
58
|
-
<template v-if="popoverState === 'open' && enableSearch && isDesktop">
|
|
59
|
-
<OrInput
|
|
60
|
-
ref="searchControl"
|
|
61
|
-
v-model="searchText"
|
|
62
|
-
:class="searchControlStyles"
|
|
63
|
-
:type="'search'"
|
|
64
|
-
:placeholder="'Search'"
|
|
65
|
-
:size="size"
|
|
66
|
-
:disable-default-styles="true"
|
|
67
|
-
@click.stop
|
|
68
|
-
/>
|
|
69
|
-
</template>
|
|
70
57
|
</template>
|
|
71
58
|
|
|
72
59
|
<template v-else>
|
|
73
|
-
<
|
|
74
|
-
<OrInput
|
|
75
|
-
ref="searchControl"
|
|
76
|
-
v-model="searchText"
|
|
77
|
-
:class="searchControlStyles"
|
|
78
|
-
:type="'search'"
|
|
79
|
-
:placeholder="'Search'"
|
|
80
|
-
:size="size"
|
|
81
|
-
:disable-default-styles="true"
|
|
82
|
-
@click.stop
|
|
83
|
-
/>
|
|
84
|
-
</template>
|
|
85
|
-
|
|
86
|
-
<template v-else>
|
|
87
|
-
<span
|
|
88
|
-
:class="placeholderStyles"
|
|
89
|
-
:disabled="disabled ? '' : null"
|
|
90
|
-
>
|
|
91
|
-
{{ placeholder }}
|
|
92
|
-
</span>
|
|
93
|
-
</template>
|
|
60
|
+
<span :class="placeholderStyles">{{ placeholder }}</span>
|
|
94
61
|
</template>
|
|
95
62
|
</template>
|
|
96
63
|
|
|
97
64
|
<template v-else>
|
|
98
|
-
<template v-if="
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
@click.stop
|
|
108
|
-
/>
|
|
65
|
+
<template v-if="!isEmptyModelValue">
|
|
66
|
+
<slot
|
|
67
|
+
name="valueTemplate"
|
|
68
|
+
:model="proxyModelValue"
|
|
69
|
+
>
|
|
70
|
+
<span class="truncate">
|
|
71
|
+
{{ selection && selection.label }}
|
|
72
|
+
</span>
|
|
73
|
+
</slot>
|
|
109
74
|
</template>
|
|
110
75
|
|
|
111
76
|
<template v-else>
|
|
112
|
-
<
|
|
113
|
-
<slot
|
|
114
|
-
name="valueTemplate"
|
|
115
|
-
:model="proxyModelValue"
|
|
116
|
-
>
|
|
117
|
-
<span class="truncate">
|
|
118
|
-
{{ selection && selection.label }}
|
|
119
|
-
</span>
|
|
120
|
-
</slot>
|
|
121
|
-
</template>
|
|
122
|
-
|
|
123
|
-
<template v-else>
|
|
124
|
-
<span
|
|
125
|
-
:class="placeholderStyles"
|
|
126
|
-
:disabled="disabled ? '' : null"
|
|
127
|
-
>
|
|
128
|
-
{{ placeholder }}
|
|
129
|
-
</span>
|
|
130
|
-
</template>
|
|
77
|
+
<span :class="placeholderStyles">{{ placeholder }}</span>
|
|
131
78
|
</template>
|
|
132
79
|
</template>
|
|
133
80
|
</div>
|
|
@@ -137,12 +84,12 @@
|
|
|
137
84
|
</template>
|
|
138
85
|
|
|
139
86
|
<div :class="['layout-inline-row', 'gap-sm']">
|
|
140
|
-
<template v-if="!
|
|
87
|
+
<template v-if="!multiple && proxyModelValue">
|
|
141
88
|
<OrIconButton
|
|
142
89
|
:icon="'close'"
|
|
143
90
|
:color="'inherit'"
|
|
144
91
|
:disabled="readonly || disabled"
|
|
145
|
-
@click.stop="$emit('update:modelValue',
|
|
92
|
+
@click.stop="$emit('update:modelValue', undefined)"
|
|
146
93
|
/>
|
|
147
94
|
</template>
|
|
148
95
|
|
|
@@ -160,15 +107,14 @@
|
|
|
160
107
|
:full-width="true"
|
|
161
108
|
:custom-styles="dropdownStyles"
|
|
162
109
|
:disable-default-styles="true"
|
|
163
|
-
@close="clearSearchControl()"
|
|
164
110
|
>
|
|
165
|
-
<template v-if="
|
|
111
|
+
<template v-if="enableSearch">
|
|
166
112
|
<OrInput
|
|
167
|
-
ref="searchControl"
|
|
168
113
|
v-model="searchText"
|
|
169
|
-
:class="searchControlStyles"
|
|
170
114
|
:type="'search'"
|
|
171
115
|
:placeholder="'Search'"
|
|
116
|
+
:size="'s'"
|
|
117
|
+
:disable-default-styles="true"
|
|
172
118
|
/>
|
|
173
119
|
</template>
|
|
174
120
|
|
|
@@ -183,7 +129,6 @@
|
|
|
183
129
|
<OrMenuItem
|
|
184
130
|
v-for="(option, i) in group"
|
|
185
131
|
:key="i"
|
|
186
|
-
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
187
132
|
>
|
|
188
133
|
<slot
|
|
189
134
|
name="optionTemplate"
|
|
@@ -194,7 +139,7 @@
|
|
|
194
139
|
v-model="proxyModelValue"
|
|
195
140
|
:value="option.value"
|
|
196
141
|
:label="option.label"
|
|
197
|
-
:label-variant="'
|
|
142
|
+
:label-variant="'input'"
|
|
198
143
|
/>
|
|
199
144
|
</slot>
|
|
200
145
|
</OrMenuItem>
|
|
@@ -204,8 +149,6 @@
|
|
|
204
149
|
<OrMenuItem
|
|
205
150
|
v-for="(option, i) in group"
|
|
206
151
|
:key="i"
|
|
207
|
-
:class="dropdownItemStyles"
|
|
208
|
-
:selected="proxyModelValue === option.value"
|
|
209
152
|
@click.stop="proxyModelValue = option.value; close()"
|
|
210
153
|
>
|
|
211
154
|
<slot
|
|
@@ -225,13 +168,12 @@
|
|
|
225
168
|
<OrMenuItem
|
|
226
169
|
v-for="(option, i) in resolvedSearchOptions"
|
|
227
170
|
:key="i"
|
|
228
|
-
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
229
171
|
>
|
|
230
172
|
<OrCheckbox
|
|
231
173
|
v-model="proxyModelValue"
|
|
232
174
|
:value="option.value"
|
|
233
175
|
:label="option.label"
|
|
234
|
-
:label-variant="'
|
|
176
|
+
:label-variant="'input'"
|
|
235
177
|
>
|
|
236
178
|
<slot
|
|
237
179
|
name="optionTemplate"
|
|
@@ -246,8 +188,6 @@
|
|
|
246
188
|
<OrMenuItem
|
|
247
189
|
v-for="(option, i) in resolvedSearchOptions"
|
|
248
190
|
:key="i"
|
|
249
|
-
:class="dropdownItemStyles"
|
|
250
|
-
:selected="proxyModelValue === option.value"
|
|
251
191
|
@click.stop="proxyModelValue = option.value; close()"
|
|
252
192
|
>
|
|
253
193
|
<slot
|
|
@@ -297,7 +237,7 @@
|
|
|
297
237
|
<script lang="ts">
|
|
298
238
|
import { computed, defineComponent, getCurrentInstance, onMounted, PropType, ref, toRef, watch } from 'vue-demi';
|
|
299
239
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
300
|
-
import { useOverflow, useProxyModelValue
|
|
240
|
+
import { useOverflow, useProxyModelValue } from '../../hooks';
|
|
301
241
|
import { isEmptyValue } from '../../utils/isEmptyValue';
|
|
302
242
|
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
|
|
303
243
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
@@ -312,10 +252,12 @@ import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
|
312
252
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
313
253
|
import { OrTagV3 as OrTag } from '../or-tag-v3';
|
|
314
254
|
import { SelectSize } from './props';
|
|
315
|
-
import {
|
|
255
|
+
import { SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectNoSearchResults, SelectPlaceholder, SelectRoot } from './styles';
|
|
316
256
|
import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './types';
|
|
317
257
|
|
|
318
258
|
export default defineComponent({
|
|
259
|
+
name: 'OrSelect',
|
|
260
|
+
|
|
319
261
|
components: {
|
|
320
262
|
OrCheckbox,
|
|
321
263
|
OrError,
|
|
@@ -450,8 +392,6 @@ export default defineComponent({
|
|
|
450
392
|
|
|
451
393
|
const control = ref<HTMLElement>();
|
|
452
394
|
|
|
453
|
-
const searchControl = ref<HTMLElement>();
|
|
454
|
-
|
|
455
395
|
const popover = ref<InstanceType<typeof OrPopover>>();
|
|
456
396
|
const popoverRoot = computed(() => popover.value?.root);
|
|
457
397
|
const popoverState = computed(() => popover.value?.state);
|
|
@@ -459,17 +399,13 @@ export default defineComponent({
|
|
|
459
399
|
// Styles
|
|
460
400
|
const rootStyles = computed(() => [
|
|
461
401
|
'or-select-v3',
|
|
462
|
-
...
|
|
402
|
+
...SelectRoot,
|
|
463
403
|
]);
|
|
464
404
|
|
|
465
405
|
const controlStyles = computed(() => [
|
|
466
406
|
...SelectControl,
|
|
467
407
|
]);
|
|
468
408
|
|
|
469
|
-
const searchControlStyles = computed(() => [
|
|
470
|
-
...SelectSearchControl,
|
|
471
|
-
]);
|
|
472
|
-
|
|
473
409
|
const placeholderStyles = computed(() => [
|
|
474
410
|
...SelectPlaceholder,
|
|
475
411
|
]);
|
|
@@ -479,10 +415,6 @@ export default defineComponent({
|
|
|
479
415
|
...popover.value?.isFlipped ? SelectDropdownFlipped : SelectDropdownDefault,
|
|
480
416
|
]);
|
|
481
417
|
|
|
482
|
-
const dropdownItemStyles = computed(() => [
|
|
483
|
-
...SelectDropdownItem,
|
|
484
|
-
]);
|
|
485
|
-
|
|
486
418
|
const noSearchResultsStyles = computed(() => [
|
|
487
419
|
...SelectNoSearchResults,
|
|
488
420
|
]);
|
|
@@ -510,9 +442,7 @@ export default defineComponent({
|
|
|
510
442
|
const modelValue = proxyModelValue.value;
|
|
511
443
|
|
|
512
444
|
if (Array.isArray(modelValue)) {
|
|
513
|
-
return modelValue
|
|
514
|
-
.map((value) => props.options.find((option) => option.value === value))
|
|
515
|
-
.filter((value) => !!value);
|
|
445
|
+
return modelValue.map((value) => props.options.find((option) => option.value === value));
|
|
516
446
|
}
|
|
517
447
|
|
|
518
448
|
return props.options.find((option) => option.value === modelValue);
|
|
@@ -591,37 +521,20 @@ export default defineComponent({
|
|
|
591
521
|
}
|
|
592
522
|
}
|
|
593
523
|
|
|
594
|
-
function clearSearchControl(): void {
|
|
595
|
-
searchText.value = '';
|
|
596
|
-
}
|
|
597
|
-
|
|
598
524
|
const { innerItems, outerItems } = useOverflow(control);
|
|
599
525
|
|
|
600
|
-
// Utils
|
|
601
|
-
const { isDesktop, isMobile } = useResponsive();
|
|
602
|
-
|
|
603
|
-
// Effects
|
|
604
|
-
watch(searchControl, (control) => {
|
|
605
|
-
setTimeout(() => {
|
|
606
|
-
control?.focus();
|
|
607
|
-
});
|
|
608
|
-
});
|
|
609
|
-
|
|
610
526
|
return {
|
|
611
527
|
root,
|
|
612
528
|
inputBox,
|
|
613
529
|
inputBoxRoot,
|
|
614
530
|
control,
|
|
615
|
-
searchControl,
|
|
616
531
|
popover,
|
|
617
532
|
popoverRoot,
|
|
618
533
|
popoverState,
|
|
619
534
|
rootStyles,
|
|
620
535
|
controlStyles,
|
|
621
|
-
searchControlStyles,
|
|
622
536
|
placeholderStyles,
|
|
623
537
|
dropdownStyles,
|
|
624
|
-
dropdownItemStyles,
|
|
625
538
|
noSearchResultsStyles,
|
|
626
539
|
controlId,
|
|
627
540
|
proxyModelValue,
|
|
@@ -635,11 +548,8 @@ export default defineComponent({
|
|
|
635
548
|
toggle,
|
|
636
549
|
close,
|
|
637
550
|
deselect,
|
|
638
|
-
clearSearchControl,
|
|
639
551
|
innerItems,
|
|
640
552
|
outerItems,
|
|
641
|
-
isDesktop,
|
|
642
|
-
isMobile,
|
|
643
553
|
};
|
|
644
554
|
},
|
|
645
555
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const SelectRoot: string[] = [
|
|
2
2
|
// Layout
|
|
3
3
|
'layout-column',
|
|
4
4
|
|
|
@@ -23,15 +23,6 @@ export const SelectControl: string[] = [
|
|
|
23
23
|
'typography-inherit',
|
|
24
24
|
];
|
|
25
25
|
|
|
26
|
-
export const SelectSearchControl: string[] = [
|
|
27
|
-
// Layout
|
|
28
|
-
'grow',
|
|
29
|
-
|
|
30
|
-
// Spacing
|
|
31
|
-
'!mx-lg md:!mx-none',
|
|
32
|
-
'!my-sm md:!my-none',
|
|
33
|
-
];
|
|
34
|
-
|
|
35
26
|
export const SelectPlaceholder: string[] = [
|
|
36
27
|
// Theme
|
|
37
28
|
'theme-foreground-outline',
|
|
@@ -75,14 +66,6 @@ export const SelectDropdownFlipped: string[] = [
|
|
|
75
66
|
'!border-b-0',
|
|
76
67
|
];
|
|
77
68
|
|
|
78
|
-
export const SelectDropdownItem: string[] = [
|
|
79
|
-
// Typography
|
|
80
|
-
'!typography-body-2-regular',
|
|
81
|
-
|
|
82
|
-
// Typography (selected)
|
|
83
|
-
'selected:!typography-body-2-semibold',
|
|
84
|
-
];
|
|
85
|
-
|
|
86
69
|
export const SelectNoSearchResults: string[] = [
|
|
87
70
|
// Layout
|
|
88
71
|
'layout-row justify-center',
|
|
@@ -2,6 +2,9 @@ import { DirectiveBinding, DirectiveHook, isVue3 } from 'vue-demi';
|
|
|
2
2
|
|
|
3
3
|
const created: DirectiveHook = (element: HTMLElement, binding: DirectiveBinding<(event: Event) => void>) => {
|
|
4
4
|
element.addEventListener('keydown', (event) => {
|
|
5
|
+
event.preventDefault();
|
|
6
|
+
event.stopPropagation();
|
|
7
|
+
|
|
5
8
|
if (['Escape'].includes(event.key)) {
|
|
6
9
|
binding.value(event);
|
|
7
10
|
}
|
|
@@ -2,14 +2,17 @@ import { DirectiveBinding, DirectiveHook, isVue3 } from 'vue-demi';
|
|
|
2
2
|
|
|
3
3
|
const created: DirectiveHook = (element: HTMLElement, binding: DirectiveBinding<(event: Event) => void>) => {
|
|
4
4
|
element.addEventListener('keydown', (event) => {
|
|
5
|
+
event.preventDefault();
|
|
6
|
+
event.stopPropagation();
|
|
7
|
+
|
|
5
8
|
if (['Enter', ' '].includes(event.key)) {
|
|
6
9
|
binding.value(event);
|
|
7
10
|
}
|
|
8
11
|
});
|
|
9
12
|
|
|
10
13
|
element.addEventListener('click', (event) => {
|
|
11
|
-
event.stopPropagation();
|
|
12
14
|
event.preventDefault();
|
|
15
|
+
event.stopPropagation();
|
|
13
16
|
|
|
14
17
|
binding.value(event);
|
|
15
18
|
});
|
|
File without changes
|
|
File without changes
|