@onereach/ui-components 4.18.2-beta.3122.0 → 4.18.2
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/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 +1 -1
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
- 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 -142
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +0 -14
- 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/OrToast/composable/useToast.js +2 -2
- package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +2 -2
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/directives/dropdown-close.js +2 -0
- package/dist/bundled/v2/directives/dropdown-open.js +4 -0
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-cded1b7c.js → OrCardCollection.vue_vue_type_script_lang-bc4757dd.js} +1 -1
- 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-229fadef.js → OrCheckboxGroup.vue_vue_type_script_lang-ff3d450b.js} +2 -2
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-92648e11.js → OrCheckboxTree.vue_vue_type_script_lang-120abecd.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-3cb3ae8e.js → OrCode.vue_vue_type_script_lang-f1380ecb.js} +1 -1
- 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-babc39a8.js → OrConfirm.vue_vue_type_script_lang-73aa938c.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-31d47bde.js → OrDatePicker.vue_vue_type_script_lang-9c41e3f9.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-d07bd111.js → OrDateTimePicker.vue_vue_type_script_lang-32107a94.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-ba83ac70.js → OrDateTimePickerPopoverHeader-dec42484.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/{OrInput.vue_vue_type_script_lang-2ae62a50.js → OrInput.vue_vue_type_script_lang-d64bda8a.js} +1 -1
- 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/{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-9a6e8dcf.js → OrSearch.vue_vue_type_script_lang-07373511.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-0697221b.js → OrSelect.vue_vue_type_script_lang-9acc1912.js} +8 -36
- 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/{OrTagInput.vue_vue_type_script_lang-29e3ea3a.js → OrTagInput.vue_vue_type_script_lang-6b584d66.js} +1 -1
- 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-72f4a4e6.js → OrTimePicker.vue_vue_type_script_lang-223d7bb1.js} +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +5 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +4 -4
- 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 +3 -3
- package/dist/bundled/v3/components/OrCodeV3/index.js +2 -2
- 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 +4 -4
- package/dist/bundled/v3/components/OrConfirmV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +4 -4
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -4
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
- 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/OrInputV3/OrInput.js +3 -3
- package/dist/bundled/v3/components/OrInputV3/index.js +2 -2
- 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/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 +4 -4
- package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +43 -93
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +0 -7
- package/dist/bundled/v3/components/OrSelectV3/index.js +4 -4
- 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/OrSwitchV3/OrSwitch.js +3 -3
- package/dist/bundled/v3/components/OrSwitchV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +3 -3
- package/dist/bundled/v3/components/OrTagInputV3/index.js +2 -2
- 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 +4 -4
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrToast/composable/useToast.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +2 -2
- package/dist/bundled/v3/components/index.js +21 -21
- package/dist/bundled/v3/directives/dropdown-close.js +2 -0
- package/dist/bundled/v3/directives/dropdown-open.js +4 -0
- package/dist/bundled/v3/index.js +22 -22
- package/dist/esm/v2/{OrCardCollection-8ecb1d0f.js → OrCardCollection-ca6d1e3c.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-ae903071.js → OrCheckbox-db66b4ea.js} +3 -4
- package/dist/esm/v2/{OrCheckboxGroup-7a933055.js → OrCheckboxGroup-eda833b1.js} +2 -2
- package/dist/esm/v2/{OrCheckboxTree-9e6af2f9.js → OrCheckboxTree-231ba2b1.js} +1 -1
- package/dist/esm/v2/{OrCode-00286c98.js → OrCode-996daa11.js} +1 -1
- package/dist/esm/v2/{OrCombinedInput-2639e3e1.js → OrCombinedInput-45187323.js} +1 -1
- package/dist/esm/v2/{OrConfirm-aa0f4e37.js → OrConfirm-e4f8c958.js} +1 -1
- package/dist/esm/v2/{OrDatePicker-12fed728.js → OrDatePicker-20d1ed3e.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-f70fca37.js → OrDateTimePicker-42c99a26.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-a89539d7.js → OrDateTimePicker.vue_rollup-plugin-vue_script-64817206.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-238b134e.js → OrDateTimePickerPopoverHeader-dd9de00f.js} +1 -1
- package/dist/esm/v2/{OrFormGroup-9000fcdf.js → OrFormGroup-29a514db.js} +1 -1
- package/dist/esm/v2/{OrInput-db5bfe4d.js → OrInput-a7e317b8.js} +3 -3
- package/dist/esm/v2/{OrLabel-4a3d8904.js → OrLabel-63380256.js} +6 -18
- 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-96caffa0.js → OrSearch-7ad39657.js} +1 -1
- package/dist/esm/v2/{OrSelect-35379ddd.js → OrSelect-0bd57cba.js} +27 -156
- package/dist/esm/v2/{OrSwitch-a3da6bec.js → OrSwitch-e49ce2d8.js} +1 -1
- package/dist/esm/v2/{OrTagInput-90df4d39.js → OrTagInput-f2ddcc97.js} +1 -1
- package/dist/esm/v2/{OrTextarea-6fe8b65f.js → OrTextarea-824f7048.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-079e4db8.js → OrTimePicker-9312df72.js} +4 -4
- package/dist/esm/v2/{OrToastContainer-d1a7b839.js → OrToastContainer-ecffc69f.js} +1 -1
- package/dist/esm/v2/components/index.js +27 -27
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
- 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 +2 -2
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +2 -2
- 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-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 +3 -3
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +0 -14
- package/dist/esm/v2/components/or-select-v3/index.js +6 -6
- package/dist/esm/v2/components/or-select-v3/styles.d.ts +1 -3
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-toast/composable/index.js +1 -1
- package/dist/esm/v2/components/or-toast/index.js +2 -2
- package/dist/esm/v2/components/or-toast/or-toast-container/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/composable/index.js +1 -1
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
- package/dist/esm/v2/directives/index.js +1 -1
- package/dist/esm/v2/{dropdown-open-d6d66d32.js → dropdown-open-e1f90e0a.js} +6 -0
- package/dist/esm/v2/index.js +27 -27
- package/dist/esm/v2/{types-dab9146d.js → types-6792dff8.js} +1 -1
- package/dist/esm/v2/{useToast-b5ea5cb2.js → useToast-05a9c81b.js} +2 -2
- package/dist/esm/{v3/useToast-a1332cc2.js → v2/useToast-5aa9dc05.js} +2 -2
- package/dist/esm/v3/{OrCardCollection-c1f348ce.js → OrCardCollection-0adc842d.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-a571fc90.js → OrCheckbox-09f62aab.js} +2 -3
- package/dist/esm/v3/{OrCheckboxGroup-93611f6e.js → OrCheckboxGroup-e0afc5c3.js} +2 -2
- package/dist/esm/v3/{OrCheckboxTree-3e6e5fd9.js → OrCheckboxTree-76f1b7ed.js} +1 -1
- package/dist/esm/v3/{OrCode-47ef126c.js → OrCode-a252b73f.js} +1 -1
- package/dist/esm/v3/{OrCombinedInput-6dd0f75d.js → OrCombinedInput-2800ee8b.js} +1 -1
- package/dist/esm/v3/{OrConfirm-7e6e4d18.js → OrConfirm-e3e225b3.js} +1 -1
- package/dist/esm/v3/{OrDatePicker-896db2cd.js → OrDatePicker-6993440a.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-b7ceda4d.js → OrDateTimePicker-fd642cb1.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-1cfbd368.js → OrDateTimePickerPopoverHeader-ece5b2a7.js} +1 -1
- package/dist/esm/v3/{OrFormGroup-c4631ef0.js → OrFormGroup-9f581536.js} +1 -1
- package/dist/esm/v3/{OrInput-75cb55d1.js → OrInput-5ffebd41.js} +1 -1
- package/dist/esm/v3/{OrLabel-d4c46bb6.js → OrLabel-4da56db0.js} +7 -19
- 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-4a2e8530.js → OrSearch-94019f8b.js} +1 -1
- package/dist/esm/v3/{OrSelect-10aae4fd.js → OrSelect-48f2374c.js} +47 -135
- package/dist/esm/v3/{OrSwitch-f4d9e196.js → OrSwitch-a6efd081.js} +1 -1
- package/dist/esm/v3/{OrTagInput-e47f0eb9.js → OrTagInput-9c53b28c.js} +1 -1
- package/dist/esm/v3/{OrTextarea-f3412790.js → OrTextarea-6c471ccd.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-5f3b9fd6.js → OrTimePicker-dc9a10d5.js} +4 -4
- package/dist/esm/v3/{OrToastContainer-1bba845b.js → OrToastContainer-d6f117e2.js} +1 -1
- package/dist/esm/v3/components/index.js +26 -26
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- 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 +2 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- 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-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 +3 -3
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +0 -7
- package/dist/esm/v3/components/or-select-v3/index.js +6 -6
- package/dist/esm/v3/components/or-select-v3/styles.d.ts +1 -3
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-toast/composable/index.js +1 -1
- package/dist/esm/v3/components/or-toast/index.js +2 -2
- package/dist/esm/v3/components/or-toast/or-toast-container/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/composable/index.js +1 -1
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
- package/dist/esm/v3/directives/index.js +1 -1
- package/dist/esm/v3/{dropdown-open-d6d66d32.js → dropdown-open-e1f90e0a.js} +6 -0
- package/dist/esm/v3/index.js +26 -26
- package/dist/esm/v3/{types-a369627d.js → types-a3038b68.js} +1 -1
- package/dist/esm/v3/{useToast-b5ea5cb2.js → useToast-05a9c81b.js} +2 -2
- package/dist/esm/{v2/useToast-a1332cc2.js → v3/useToast-5aa9dc05.js} +2 -2
- package/package.json +3 -2
- 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 -123
- package/src/components/or-select-v3/styles.ts +1 -18
- package/src/components/or-toast/composable/useToast.ts +1 -1
- package/src/components/or-toast/or-toast-container/OrToastContainer.stories.ts +38 -7
- package/src/components/or-toast-v3/composable/useToast.ts +1 -1
- package/src/directives/dropdown-close.ts +3 -0
- package/src/directives/dropdown-open.ts +6 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-9908babc.js → OrDateTimePickerPopoverHeader-03768809.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">
|
|
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,16 +107,14 @@
|
|
|
160
107
|
:full-width="true"
|
|
161
108
|
:custom-styles="dropdownStyles"
|
|
162
109
|
:disable-default-styles="true"
|
|
163
|
-
@open="focusSearchControl()"
|
|
164
|
-
@close="clearSearchControl()"
|
|
165
110
|
>
|
|
166
|
-
<template v-if="
|
|
111
|
+
<template v-if="enableSearch">
|
|
167
112
|
<OrInput
|
|
168
|
-
ref="mobileSearchControl"
|
|
169
113
|
v-model="searchText"
|
|
170
|
-
:class="searchControlStyles"
|
|
171
114
|
:type="'search'"
|
|
172
115
|
:placeholder="'Search'"
|
|
116
|
+
:size="'s'"
|
|
117
|
+
:disable-default-styles="true"
|
|
173
118
|
/>
|
|
174
119
|
</template>
|
|
175
120
|
|
|
@@ -184,7 +129,6 @@
|
|
|
184
129
|
<OrMenuItem
|
|
185
130
|
v-for="(option, i) in group"
|
|
186
131
|
:key="i"
|
|
187
|
-
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
188
132
|
>
|
|
189
133
|
<slot
|
|
190
134
|
name="optionTemplate"
|
|
@@ -195,7 +139,7 @@
|
|
|
195
139
|
v-model="proxyModelValue"
|
|
196
140
|
:value="option.value"
|
|
197
141
|
:label="option.label"
|
|
198
|
-
:label-variant="'
|
|
142
|
+
:label-variant="'input'"
|
|
199
143
|
/>
|
|
200
144
|
</slot>
|
|
201
145
|
</OrMenuItem>
|
|
@@ -205,8 +149,6 @@
|
|
|
205
149
|
<OrMenuItem
|
|
206
150
|
v-for="(option, i) in group"
|
|
207
151
|
:key="i"
|
|
208
|
-
:class="dropdownItemStyles"
|
|
209
|
-
:selected="proxyModelValue === option.value"
|
|
210
152
|
@click.stop="proxyModelValue = option.value; close()"
|
|
211
153
|
>
|
|
212
154
|
<slot
|
|
@@ -226,13 +168,12 @@
|
|
|
226
168
|
<OrMenuItem
|
|
227
169
|
v-for="(option, i) in resolvedSearchOptions"
|
|
228
170
|
:key="i"
|
|
229
|
-
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
230
171
|
>
|
|
231
172
|
<OrCheckbox
|
|
232
173
|
v-model="proxyModelValue"
|
|
233
174
|
:value="option.value"
|
|
234
175
|
:label="option.label"
|
|
235
|
-
:label-variant="'
|
|
176
|
+
:label-variant="'input'"
|
|
236
177
|
>
|
|
237
178
|
<slot
|
|
238
179
|
name="optionTemplate"
|
|
@@ -247,8 +188,6 @@
|
|
|
247
188
|
<OrMenuItem
|
|
248
189
|
v-for="(option, i) in resolvedSearchOptions"
|
|
249
190
|
:key="i"
|
|
250
|
-
:class="dropdownItemStyles"
|
|
251
|
-
:selected="proxyModelValue === option.value"
|
|
252
191
|
@click.stop="proxyModelValue = option.value; close()"
|
|
253
192
|
>
|
|
254
193
|
<slot
|
|
@@ -298,7 +237,7 @@
|
|
|
298
237
|
<script lang="ts">
|
|
299
238
|
import { computed, defineComponent, getCurrentInstance, onMounted, PropType, ref, toRef, watch } from 'vue-demi';
|
|
300
239
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
301
|
-
import { useOverflow, useProxyModelValue
|
|
240
|
+
import { useOverflow, useProxyModelValue } from '../../hooks';
|
|
302
241
|
import { isEmptyValue } from '../../utils/isEmptyValue';
|
|
303
242
|
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
|
|
304
243
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
@@ -313,10 +252,12 @@ import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
|
313
252
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
314
253
|
import { OrTagV3 as OrTag } from '../or-tag-v3';
|
|
315
254
|
import { SelectSize } from './props';
|
|
316
|
-
import {
|
|
255
|
+
import { SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectNoSearchResults, SelectPlaceholder, SelectRoot } from './styles';
|
|
317
256
|
import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './types';
|
|
318
257
|
|
|
319
258
|
export default defineComponent({
|
|
259
|
+
name: 'OrSelect',
|
|
260
|
+
|
|
320
261
|
components: {
|
|
321
262
|
OrCheckbox,
|
|
322
263
|
OrError,
|
|
@@ -451,9 +392,6 @@ export default defineComponent({
|
|
|
451
392
|
|
|
452
393
|
const control = ref<HTMLElement>();
|
|
453
394
|
|
|
454
|
-
const searchControl = ref<HTMLElement>();
|
|
455
|
-
const mobileSearchControl = ref<HTMLElement>();
|
|
456
|
-
|
|
457
395
|
const popover = ref<InstanceType<typeof OrPopover>>();
|
|
458
396
|
const popoverRoot = computed(() => popover.value?.root);
|
|
459
397
|
const popoverState = computed(() => popover.value?.state);
|
|
@@ -461,17 +399,13 @@ export default defineComponent({
|
|
|
461
399
|
// Styles
|
|
462
400
|
const rootStyles = computed(() => [
|
|
463
401
|
'or-select-v3',
|
|
464
|
-
...
|
|
402
|
+
...SelectRoot,
|
|
465
403
|
]);
|
|
466
404
|
|
|
467
405
|
const controlStyles = computed(() => [
|
|
468
406
|
...SelectControl,
|
|
469
407
|
]);
|
|
470
408
|
|
|
471
|
-
const searchControlStyles = computed(() => [
|
|
472
|
-
...SelectSearchControl,
|
|
473
|
-
]);
|
|
474
|
-
|
|
475
409
|
const placeholderStyles = computed(() => [
|
|
476
410
|
...SelectPlaceholder,
|
|
477
411
|
]);
|
|
@@ -481,10 +415,6 @@ export default defineComponent({
|
|
|
481
415
|
...popover.value?.isFlipped ? SelectDropdownFlipped : SelectDropdownDefault,
|
|
482
416
|
]);
|
|
483
417
|
|
|
484
|
-
const dropdownItemStyles = computed(() => [
|
|
485
|
-
...SelectDropdownItem,
|
|
486
|
-
]);
|
|
487
|
-
|
|
488
418
|
const noSearchResultsStyles = computed(() => [
|
|
489
419
|
...SelectNoSearchResults,
|
|
490
420
|
]);
|
|
@@ -512,9 +442,7 @@ export default defineComponent({
|
|
|
512
442
|
const modelValue = proxyModelValue.value;
|
|
513
443
|
|
|
514
444
|
if (Array.isArray(modelValue)) {
|
|
515
|
-
return modelValue
|
|
516
|
-
.map((value) => props.options.find((option) => option.value === value))
|
|
517
|
-
.filter((value) => !!value);
|
|
445
|
+
return modelValue.map((value) => props.options.find((option) => option.value === value));
|
|
518
446
|
}
|
|
519
447
|
|
|
520
448
|
return props.options.find((option) => option.value === modelValue);
|
|
@@ -593,41 +521,20 @@ export default defineComponent({
|
|
|
593
521
|
}
|
|
594
522
|
}
|
|
595
523
|
|
|
596
|
-
function focusSearchControl(): void {
|
|
597
|
-
setTimeout(() => {
|
|
598
|
-
if (isMobile.value) {
|
|
599
|
-
mobileSearchControl.value?.focus();
|
|
600
|
-
} else {
|
|
601
|
-
searchControl.value?.focus();
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
function clearSearchControl(): void {
|
|
607
|
-
searchText.value = '';
|
|
608
|
-
}
|
|
609
|
-
|
|
610
524
|
const { innerItems, outerItems } = useOverflow(control);
|
|
611
525
|
|
|
612
|
-
// Utils
|
|
613
|
-
const { isMobile } = useResponsive();
|
|
614
|
-
|
|
615
526
|
return {
|
|
616
527
|
root,
|
|
617
528
|
inputBox,
|
|
618
529
|
inputBoxRoot,
|
|
619
530
|
control,
|
|
620
|
-
searchControl,
|
|
621
|
-
mobileSearchControl,
|
|
622
531
|
popover,
|
|
623
532
|
popoverRoot,
|
|
624
533
|
popoverState,
|
|
625
534
|
rootStyles,
|
|
626
535
|
controlStyles,
|
|
627
|
-
searchControlStyles,
|
|
628
536
|
placeholderStyles,
|
|
629
537
|
dropdownStyles,
|
|
630
|
-
dropdownItemStyles,
|
|
631
538
|
noSearchResultsStyles,
|
|
632
539
|
controlId,
|
|
633
540
|
proxyModelValue,
|
|
@@ -641,11 +548,8 @@ export default defineComponent({
|
|
|
641
548
|
toggle,
|
|
642
549
|
close,
|
|
643
550
|
deselect,
|
|
644
|
-
focusSearchControl,
|
|
645
|
-
clearSearchControl,
|
|
646
551
|
innerItems,
|
|
647
552
|
outerItems,
|
|
648
|
-
isMobile,
|
|
649
553
|
};
|
|
650
554
|
},
|
|
651
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',
|
|
@@ -65,9 +65,9 @@ export default function useToast(globalToastProps: ToastProps = {}) {
|
|
|
65
65
|
|
|
66
66
|
function loading(props: ToastProps, behaviour: ToastBehaviour = {}): UseToastNotifyReturns {
|
|
67
67
|
return notify({
|
|
68
|
+
dismissible: false,
|
|
68
69
|
...props,
|
|
69
70
|
toastType: ToastType.loading,
|
|
70
|
-
dismissible: false,
|
|
71
71
|
}, {
|
|
72
72
|
...behaviour,
|
|
73
73
|
duration: 0, // <- toast with type "loading" will not cloe automatically
|
|
@@ -33,26 +33,57 @@ const Template: Story = (_args, { argTypes }) => {
|
|
|
33
33
|
OrButton: OrButtonV2,
|
|
34
34
|
},
|
|
35
35
|
template: `
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
<div>
|
|
37
|
+
<or-toast-container v-bind="$props" />
|
|
38
|
+
<or-button @click="showSuccess" content="Success"></or-button>
|
|
39
|
+
<or-button @click="showLoading" content="Loading"></or-button>
|
|
40
|
+
<or-button @click="showLoadingDismissable" content="Loading dismissable"></or-button>
|
|
41
|
+
<or-button @click="showDismissible" content="Dismissable"></or-button>
|
|
42
|
+
<or-button @click="showNotDismissible" content="Not dismissable"></or-button>
|
|
43
|
+
</div>
|
|
44
|
+
`,
|
|
41
45
|
data() {
|
|
42
|
-
const { success, clearAll } = useToast();
|
|
46
|
+
const { success, clearAll, loading, notify } = useToast();
|
|
43
47
|
const button = ref();
|
|
44
48
|
return {
|
|
45
49
|
button,
|
|
46
50
|
success,
|
|
47
51
|
clearAll,
|
|
52
|
+
loading,
|
|
53
|
+
notify,
|
|
48
54
|
};
|
|
49
55
|
},
|
|
50
56
|
methods: {
|
|
51
|
-
|
|
57
|
+
showSuccess() {
|
|
52
58
|
(this as any).success({
|
|
53
59
|
messageText: Faker.lorem.words(7),
|
|
54
60
|
} as ToastProps);
|
|
55
61
|
},
|
|
62
|
+
showLoading() {
|
|
63
|
+
(this as any).loading({
|
|
64
|
+
messageText: Faker.lorem.words(7),
|
|
65
|
+
loadingProgress: 0.5,
|
|
66
|
+
} as ToastProps);
|
|
67
|
+
},
|
|
68
|
+
showDismissible() {
|
|
69
|
+
(this as any).notify({
|
|
70
|
+
messageText: Faker.lorem.words(7),
|
|
71
|
+
dismissible: true,
|
|
72
|
+
} as ToastProps);
|
|
73
|
+
},
|
|
74
|
+
showNotDismissible() {
|
|
75
|
+
(this as any).notify({
|
|
76
|
+
messageText: Faker.lorem.words(7),
|
|
77
|
+
dismissible: false,
|
|
78
|
+
} as ToastProps);
|
|
79
|
+
},
|
|
80
|
+
showLoadingDismissable() {
|
|
81
|
+
(this as any).loading({
|
|
82
|
+
messageText: Faker.lorem.words(7),
|
|
83
|
+
loadingProgress: 0.5,
|
|
84
|
+
dismissible: true,
|
|
85
|
+
} as ToastProps);
|
|
86
|
+
},
|
|
56
87
|
},
|
|
57
88
|
};
|
|
58
89
|
};
|
|
@@ -67,9 +67,9 @@ export default function useToast(globalToastProps: ToastProps = {}) {
|
|
|
67
67
|
|
|
68
68
|
function loading(props: ToastProps, behaviour: ToastBehaviour = {}): UseToastNotifyReturns {
|
|
69
69
|
return notify({
|
|
70
|
+
dismissible: false,
|
|
70
71
|
...props,
|
|
71
72
|
toastType: ToastType.Loading,
|
|
72
|
-
dismissible: false,
|
|
73
73
|
}, {
|
|
74
74
|
...behaviour,
|
|
75
75
|
duration: 0, // <- toast with type "loading" will not cloe automatically
|
|
@@ -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,12 +2,18 @@ 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) => {
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
|
|
11
17
|
binding.value(event);
|
|
12
18
|
});
|
|
13
19
|
};
|
|
File without changes
|