@onereach/ui-components 5.0.2 → 5.1.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/OrCheckboxV3/OrCheckbox.js +3 -2
- 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 +7 -3
- package/dist/bundled/v2/components/OrLabelV3/OrLabel.vue.d.ts +16 -5
- package/dist/bundled/v2/components/OrLabelV3/props.d.ts +2 -1
- package/dist/bundled/v2/components/OrLabelV3/props.js +1 -0
- package/dist/bundled/v2/components/OrLabelV3/styles.d.ts +2 -2
- package/dist/bundled/v2/components/OrLabelV3/styles.js +14 -5
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +99 -25
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +23 -0
- package/dist/bundled/v2/components/OrSelectV3/styles.d.ts +3 -1
- package/dist/bundled/v2/components/OrSelectV3/styles.js +14 -4
- 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 +1 -1
- package/dist/bundled/v2/directives/dropdown-close.js +0 -2
- package/dist/bundled/v2/directives/dropdown-open.js +1 -3
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ef25e74b.js → OrCardCollection.vue_vue_type_script_lang-32a5019d.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-eeb6b419.js → OrCheckbox.vue_vue_type_script_lang-38736023.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-3b25afe5.js → OrCheckboxGroup.vue_vue_type_script_lang-51bbd047.js} +2 -2
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-ab30a5c4.js → OrCheckboxTree.vue_vue_type_script_lang-e67747a4.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-aca7f503.js → OrCode.vue_vue_type_script_lang-1bf2766c.js} +1 -1
- package/dist/bundled/v3/{OrCombinedInput.vue_vue_type_script_lang-cb7a88f3.js → OrCombinedInput.vue_vue_type_script_lang-230d4d9c.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-2ca0f55a.js → OrConfirm.vue_vue_type_script_lang-d37994d8.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-86ca7af9.js → OrDatePicker.vue_vue_type_script_lang-f73b9f07.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-92429c31.js → OrDateTimePicker.vue_vue_type_script_lang-df504a2e.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-d9eef487.js → OrDateTimePickerPopoverHeader-eff1f44b.js} +1 -1
- package/dist/bundled/v3/{OrFormGroup.vue_vue_type_script_lang-1c6844d6.js → OrFormGroup.vue_vue_type_script_lang-d67479fc.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-3927acb7.js → OrInput.vue_vue_type_script_lang-4a4bec95.js} +1 -1
- package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-3e11ab8a.js → OrLabel.vue_vue_type_script_lang-fcdfd80d.js} +6 -3
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-48c2bc6b.js → OrRadio.vue_vue_type_script_lang-08ab2220.js} +1 -1
- package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-d7f6f8ca.js → OrRadioGroup.vue_vue_type_script_lang-d84948fc.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-787d1b44.js → OrSearch.vue_vue_type_script_lang-e055677e.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-932be22a.js → OrSelect.vue_vue_type_script_lang-19739ac1.js} +35 -8
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-ee55263f.js → OrSwitch.vue_vue_type_script_lang-14b4ec0a.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-85c70a2a.js → OrTagInput.vue_vue_type_script_lang-972ba1bb.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-7562cca1.js → OrTextarea.vue_vue_type_script_lang-a7cfbe82.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-15702833.js → OrTimePicker.vue_vue_type_script_lang-e4274a52.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 +5 -4
- 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 +4 -3
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +12 -3
- package/dist/bundled/v3/components/OrLabelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLabelV3/props.d.ts +2 -1
- package/dist/bundled/v3/components/OrLabelV3/props.js +1 -0
- package/dist/bundled/v3/components/OrLabelV3/styles.d.ts +2 -2
- package/dist/bundled/v3/components/OrLabelV3/styles.js +14 -5
- 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 +66 -40
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +15 -0
- package/dist/bundled/v3/components/OrSelectV3/index.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/styles.d.ts +3 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +14 -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/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/index.js +21 -21
- package/dist/bundled/v3/directives/dropdown-close.js +0 -2
- package/dist/bundled/v3/directives/dropdown-open.js +1 -3
- package/dist/bundled/v3/index.js +22 -22
- package/dist/esm/v2/{OrCardCollection-16d7fede.js → OrCardCollection-35add276.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-db66b4ea.js → OrCheckbox-ae903071.js} +4 -3
- package/dist/esm/v2/{OrCheckboxGroup-a04f27fe.js → OrCheckboxGroup-74dc7c1d.js} +2 -2
- package/dist/esm/v2/{OrCheckboxTree-f48db82f.js → OrCheckboxTree-19f5d69b.js} +1 -1
- package/dist/esm/v2/{OrCode-c772c8f5.js → OrCode-c2675f47.js} +1 -1
- package/dist/esm/v2/{OrCombinedInput-45187323.js → OrCombinedInput-2639e3e1.js} +1 -1
- package/dist/esm/v2/{OrConfirm-389d7e31.js → OrConfirm-9f43fb6a.js} +1 -1
- package/dist/esm/v2/{OrDatePicker-dab6a28b.js → OrDatePicker-29e3897a.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-b927b51a.js → OrDateTimePicker-5913e464.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-78b7ad39.js → OrDateTimePicker.vue_rollup-plugin-vue_script-e22f3b7b.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-1bd2a85f.js → OrDateTimePickerPopoverHeader-3a5c05ac.js} +1 -1
- package/dist/esm/v2/{OrFormGroup-29a514db.js → OrFormGroup-9000fcdf.js} +1 -1
- package/dist/esm/v2/{OrInput-57211a5b.js → OrInput-a6183a78.js} +3 -3
- package/dist/esm/v2/{OrLabel-63380256.js → OrLabel-4a3d8904.js} +18 -6
- package/dist/esm/v2/{OrRadio-b32dfbfe.js → OrRadio-0fc3ae14.js} +1 -1
- package/dist/esm/v2/{OrRadioGroup-d1c2e460.js → OrRadioGroup-1108883d.js} +2 -2
- package/dist/esm/v2/{OrSearch-95447225.js → OrSearch-15ecfbf0.js} +1 -1
- package/dist/esm/v2/{OrSelect-c92299c7.js → OrSelect-ee398af5.js} +115 -30
- package/dist/esm/v2/{OrSwitch-e49ce2d8.js → OrSwitch-a3da6bec.js} +1 -1
- package/dist/esm/v2/{OrTagInput-7c95be61.js → OrTagInput-adef254c.js} +1 -1
- package/dist/esm/v2/{OrTextarea-824f7048.js → OrTextarea-6fe8b65f.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-fe172ae6.js → OrTimePicker-9738c72f.js} +4 -4
- package/dist/esm/v2/components/index.js +23 -23
- 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 +16 -5
- package/dist/esm/v2/components/or-label-v3/index.js +1 -1
- package/dist/esm/v2/components/or-label-v3/props.d.ts +2 -1
- 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 +23 -0
- package/dist/esm/v2/components/or-select-v3/index.js +6 -6
- package/dist/esm/v2/components/or-select-v3/styles.d.ts +3 -1
- 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/directives/index.js +1 -1
- package/dist/esm/v2/{dropdown-open-e1f90e0a.js → dropdown-open-06d651cf.js} +1 -5
- package/dist/esm/v2/index.js +23 -23
- package/dist/esm/v3/{OrCardCollection-a03fe4ee.js → OrCardCollection-e4a72381.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-09f62aab.js → OrCheckbox-a571fc90.js} +3 -2
- package/dist/esm/v3/{OrCheckboxGroup-6c054793.js → OrCheckboxGroup-7fe25d85.js} +2 -2
- package/dist/esm/v3/{OrCheckboxTree-bb32455e.js → OrCheckboxTree-bea23696.js} +1 -1
- package/dist/esm/v3/{OrCode-e0046019.js → OrCode-efdc9eee.js} +1 -1
- package/dist/esm/v3/{OrCombinedInput-2800ee8b.js → OrCombinedInput-6dd0f75d.js} +1 -1
- package/dist/esm/v3/{OrConfirm-fd33e48c.js → OrConfirm-fa35ffd0.js} +1 -1
- package/dist/esm/v3/{OrDatePicker-dae900de.js → OrDatePicker-40e867e5.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-3d4aeabe.js → OrDateTimePicker-888a2f98.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-3c371f05.js → OrDateTimePickerPopoverHeader-8f0408b2.js} +1 -1
- package/dist/esm/v3/{OrFormGroup-9f581536.js → OrFormGroup-c4631ef0.js} +1 -1
- package/dist/esm/v3/{OrInput-41b40eee.js → OrInput-8463ca1d.js} +1 -1
- package/dist/esm/v3/{OrLabel-4da56db0.js → OrLabel-d4c46bb6.js} +19 -7
- package/dist/esm/v3/{OrRadio-7b722b16.js → OrRadio-48cd02a9.js} +1 -1
- package/dist/esm/v3/{OrRadioGroup-58c0214c.js → OrRadioGroup-82d10aa8.js} +2 -2
- package/dist/esm/v3/{OrSearch-e6f6573f.js → OrSearch-9c694c80.js} +1 -1
- package/dist/esm/v3/{OrSelect-db90c428.js → OrSelect-3a39f89e.js} +109 -46
- package/dist/esm/v3/{OrSwitch-a6efd081.js → OrSwitch-f4d9e196.js} +1 -1
- package/dist/esm/v3/{OrTagInput-f11a2d68.js → OrTagInput-8cc92992.js} +1 -1
- package/dist/esm/v3/{OrTextarea-6c471ccd.js → OrTextarea-f3412790.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-b1ff46c1.js → OrTimePicker-e3b5ef7f.js} +4 -4
- package/dist/esm/v3/components/index.js +22 -22
- 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 +12 -3
- package/dist/esm/v3/components/or-label-v3/index.js +1 -1
- package/dist/esm/v3/components/or-label-v3/props.d.ts +2 -1
- 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 +15 -0
- package/dist/esm/v3/components/or-select-v3/index.js +6 -6
- package/dist/esm/v3/components/or-select-v3/styles.d.ts +3 -1
- 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/directives/index.js +1 -1
- package/dist/esm/v3/{dropdown-open-e1f90e0a.js → dropdown-open-06d651cf.js} +1 -5
- package/dist/esm/v3/index.js +22 -22
- package/package.json +2 -2
- package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -0
- package/src/components/or-input-v3/OrInput.vue +1 -0
- package/src/components/or-label-v3/OrLabel.vue +9 -5
- package/src/components/or-label-v3/props.ts +1 -0
- package/src/components/or-label-v3/styles.ts +16 -4
- package/src/components/or-select-v3/OrSelect.vue +90 -21
- package/src/components/or-select-v3/styles.ts +20 -3
- package/src/directives/dropdown-close.ts +0 -3
- package/src/directives/dropdown-open.ts +1 -4
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-a4f77733.js → OrDateTimePickerPopoverHeader-f3d67e5d.js} +0 -0
package/dist/esm/v3/index.js
CHANGED
|
@@ -7,25 +7,25 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
|
|
|
7
7
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-4a3c3e7b.js';
|
|
8
8
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
9
9
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-8c81a2d5.js';
|
|
10
|
-
export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
10
|
+
export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-e4a72381.js';
|
|
11
11
|
export { s as OrCardV3 } from './OrCard-cc82902c.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-5666c954.js';
|
|
13
|
-
export { s as OrCheckboxGroupV3 } from './OrCheckboxGroup-
|
|
14
|
-
export { s as OrCheckboxTreeV3 } from './OrCheckboxTree-
|
|
15
|
-
export { s as OrCheckboxV3 } from './OrCheckbox-
|
|
13
|
+
export { s as OrCheckboxGroupV3 } from './OrCheckboxGroup-7fe25d85.js';
|
|
14
|
+
export { s as OrCheckboxTreeV3 } from './OrCheckboxTree-bea23696.js';
|
|
15
|
+
export { s as OrCheckboxV3 } from './OrCheckbox-a571fc90.js';
|
|
16
16
|
export { s as OrChip } from './OrChip-74e27265.js';
|
|
17
17
|
export { s as OrChips } from './OrChips-348b13e4.js';
|
|
18
18
|
export { s as OrCode, O as OrCodeLanguages } from './OrCode-0aadc737.js';
|
|
19
|
-
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-
|
|
19
|
+
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-efdc9eee.js';
|
|
20
20
|
export { s as OrCollapse } from './OrCollapse-d7c0afae.js';
|
|
21
21
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-252f482b.js';
|
|
22
|
-
export { s as OrCombinedInputV3 } from './OrCombinedInput-
|
|
22
|
+
export { s as OrCombinedInputV3 } from './OrCombinedInput-6dd0f75d.js';
|
|
23
23
|
export { I as CombinedInputSize, I as DatePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, s as OrInputBoxV3, I as SearchSize, I as SelectSize, I as TagInputSize, I as TextareaSize, I as TimePickerSize } from './OrInputBox-912a6254.js';
|
|
24
24
|
export { s as OrConfirm } from './OrConfirm-97ab80b9.js';
|
|
25
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
26
|
-
export { s as OrDatePickerV3 } from './OrDatePicker-
|
|
25
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-fa35ffd0.js';
|
|
26
|
+
export { s as OrDatePickerV3 } from './OrDatePicker-40e867e5.js';
|
|
27
27
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-4bfefbcd.js';
|
|
28
|
-
export { D as DateTimePickerTimeFormat, s as OrDateTimePickerV3, D as TimePickerFormat } from './OrDateTimePicker-
|
|
28
|
+
export { D as DateTimePickerTimeFormat, s as OrDateTimePickerV3, D as TimePickerFormat } from './OrDateTimePicker-888a2f98.js';
|
|
29
29
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-5349a1f9.js';
|
|
30
30
|
export { s as OrError } from './OrError-f90296db.js';
|
|
31
31
|
export { s as OrErrorTagV3 } from './OrErrorTag-ade9192b.js';
|
|
@@ -33,7 +33,7 @@ export { s as OrErrorV3 } from './OrError-c01d0c29.js';
|
|
|
33
33
|
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-891154e6.js';
|
|
34
34
|
export { F as FabColor, s as OrFabV3 } from './OrFab-83cd7ed7.js';
|
|
35
35
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-052ede5f.js';
|
|
36
|
-
export { F as FormGroupDirection, s as OrFormGroupV3 } from './OrFormGroup-
|
|
36
|
+
export { F as FormGroupDirection, s as OrFormGroupV3 } from './OrFormGroup-c4631ef0.js';
|
|
37
37
|
export { s as OrHint } from './OrHint-8822005b.js';
|
|
38
38
|
export { s as OrHintV3 } from './OrHint-06ab89d7.js';
|
|
39
39
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-f7130a5c.js';
|
|
@@ -44,9 +44,9 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-0b0d
|
|
|
44
44
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-a3c4c7dc.js';
|
|
45
45
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-2c54367e.js';
|
|
46
46
|
export { s as OrInput } from './OrInput-2c3111c2.js';
|
|
47
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
47
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-8463ca1d.js';
|
|
48
48
|
export { s as OrLabel } from './OrLabel-a7d99df4.js';
|
|
49
|
-
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-
|
|
49
|
+
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-d4c46bb6.js';
|
|
50
50
|
export { L as LinkColor, s as OrLinkV3 } from './OrLink-dcae31fb.js';
|
|
51
51
|
export { s as OrList } from './OrList-aa7b5ef9.js';
|
|
52
52
|
export { s as OrListOfInputs } from './OrListOfInputs-f8740785.js';
|
|
@@ -69,13 +69,13 @@ export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './
|
|
|
69
69
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-a54a42c0.js';
|
|
70
70
|
export { s as OrRadio } from './OrRadio-40bf2c87.js';
|
|
71
71
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
72
|
-
export { s as OrRadioGroupV3 } from './OrRadioGroup-
|
|
73
|
-
export { s as OrRadioV3 } from './OrRadio-
|
|
72
|
+
export { s as OrRadioGroupV3 } from './OrRadioGroup-82d10aa8.js';
|
|
73
|
+
export { s as OrRadioV3 } from './OrRadio-48cd02a9.js';
|
|
74
74
|
export { s as OrSearch } from './OrSearch-2800e9bf.js';
|
|
75
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
75
|
+
export { s as OrSearchV3 } from './OrSearch-9c694c80.js';
|
|
76
76
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-c8eb217d.js';
|
|
77
77
|
export { s as OrSelect } from './OrSelect-9520d6e6.js';
|
|
78
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
78
|
+
export { s as OrSelectV3 } from './OrSelect-3a39f89e.js';
|
|
79
79
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-aaf73310.js';
|
|
80
80
|
export { s as OrSidebarV3 } from './OrSidebar-34492810.js';
|
|
81
81
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-f6f5ec80.js';
|
|
@@ -90,23 +90,23 @@ export { s as OrSlider } from './OrSlider-b7bd588e.js';
|
|
|
90
90
|
export { s as OrSortingV3 } from './OrSorting-dc01b9de.js';
|
|
91
91
|
export { s as OrStepper } from './OrStepper-4943002c.js';
|
|
92
92
|
export { s as OrSwitch } from './OrSwitch-fb864132.js';
|
|
93
|
-
export { s as OrSwitchV3 } from './OrSwitch-
|
|
93
|
+
export { s as OrSwitchV3 } from './OrSwitch-f4d9e196.js';
|
|
94
94
|
export { s as OrTab } from './OrTab-d8d4e871.js';
|
|
95
95
|
export { s as OrTabHeaderItem } from './OrTabHeaderItem-c2af7ca3.js';
|
|
96
96
|
export { s as OrTabV3 } from './OrTab-2d567d8e.js';
|
|
97
97
|
export { s as OrTabs } from './OrTabs-3da3ea89.js';
|
|
98
98
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-3fa4a344.js';
|
|
99
99
|
export { s as OrTag } from './OrTag-1b3b1296.js';
|
|
100
|
-
export { s as OrTagInputV3 } from './OrTagInput-
|
|
100
|
+
export { s as OrTagInputV3 } from './OrTagInput-8cc92992.js';
|
|
101
101
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-9494f132.js';
|
|
102
102
|
export { s as OrTagsV3 } from './OrTags-cec632b8.js';
|
|
103
103
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
104
104
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
105
105
|
export { s as OrTextV3 } from './OrText-d54c951d.js';
|
|
106
106
|
export { s as OrTextarea } from './OrTextarea-7a753c1a.js';
|
|
107
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
107
|
+
export { s as OrTextareaV3 } from './OrTextarea-f3412790.js';
|
|
108
108
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-fe62c6c3.js';
|
|
109
|
-
export { s as OrTimePickerV3 } from './OrTimePicker-
|
|
109
|
+
export { s as OrTimePickerV3 } from './OrTimePicker-e3b5ef7f.js';
|
|
110
110
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-d6f117e2.js';
|
|
111
111
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-05a9c81b.js';
|
|
112
112
|
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-93e80c1b.js';
|
|
@@ -115,7 +115,7 @@ export { s as OrTooltip } from './OrTooltip-7ac03028.js';
|
|
|
115
115
|
export { s as OrTooltipContent } from './OrTooltipContent-c0042844.js';
|
|
116
116
|
export { s as OrTooltipV3 } from './OrTooltip-16f99e83.js';
|
|
117
117
|
export { s as OrTreeV3, T as TreeNodeDropPosition } from './OrTree-a0e57f4e.js';
|
|
118
|
-
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-
|
|
118
|
+
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
119
119
|
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
|
|
120
120
|
export { u as useElevation } from './useElevation-a50ec347.js';
|
|
121
121
|
export { u as useOverflow } from './useOverflow-c856b7b7.js';
|
|
@@ -149,7 +149,7 @@ import '@codemirror/lang-markdown';
|
|
|
149
149
|
import '@codemirror/language';
|
|
150
150
|
import '@lezer/highlight';
|
|
151
151
|
import '@vueuse/math';
|
|
152
|
-
import './OrDateTimePickerPopoverHeader-
|
|
152
|
+
import './OrDateTimePickerPopoverHeader-8f0408b2.js';
|
|
153
153
|
import 'lodash/padStart';
|
|
154
154
|
import '@floating-ui/dom';
|
|
155
155
|
import 'lodash/cloneDeep';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
},
|
|
150
150
|
"./package.json": "./package.json"
|
|
151
151
|
},
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "836bd5ff950876d0076ddc862dcc93d5f64ca794"
|
|
153
153
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
4
|
:class="rootStyles"
|
|
5
|
+
:selected="selected ? '' : null"
|
|
5
6
|
:disabled="disabled ? '' : null"
|
|
6
7
|
>
|
|
7
8
|
<label
|
|
@@ -22,11 +23,9 @@
|
|
|
22
23
|
<script lang="ts">
|
|
23
24
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
24
25
|
import { LabelVariant } from './props';
|
|
25
|
-
import {
|
|
26
|
+
import { Label, LabelAddon, LabelText, LabelVariants } from './styles';
|
|
26
27
|
|
|
27
28
|
export default defineComponent({
|
|
28
|
-
name: 'OrLabel',
|
|
29
|
-
|
|
30
29
|
props: {
|
|
31
30
|
controlId: {
|
|
32
31
|
type: String,
|
|
@@ -38,6 +37,11 @@ export default defineComponent({
|
|
|
38
37
|
default: LabelVariant.Input,
|
|
39
38
|
},
|
|
40
39
|
|
|
40
|
+
selected: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
44
|
+
|
|
41
45
|
required: {
|
|
42
46
|
type: Boolean,
|
|
43
47
|
default: false,
|
|
@@ -60,8 +64,8 @@ export default defineComponent({
|
|
|
60
64
|
// Styles
|
|
61
65
|
const rootStyles = computed(() => [
|
|
62
66
|
'or-label-v3',
|
|
63
|
-
...
|
|
64
|
-
...
|
|
67
|
+
...Label,
|
|
68
|
+
...LabelVariants[props.variant],
|
|
65
69
|
]);
|
|
66
70
|
|
|
67
71
|
const textStyles = computed(() => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LabelVariant } from './props';
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const Label: string[] = [
|
|
4
4
|
// Layout
|
|
5
5
|
'layout-row justify-between',
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@ export const LabelRoot: string[] = [
|
|
|
8
8
|
'gap-sm',
|
|
9
9
|
];
|
|
10
10
|
|
|
11
|
-
export const
|
|
12
|
-
|
|
11
|
+
export const LabelVariants: Record<LabelVariant, string[]> = {
|
|
12
|
+
[LabelVariant.Input]: [
|
|
13
13
|
// Typography
|
|
14
14
|
'typography-caption-regular',
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@ export const LabelRootVariants: Record<LabelVariant, string[]> = {
|
|
|
18
18
|
'dark:theme-foreground-outline-dark',
|
|
19
19
|
],
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
[LabelVariant.Toggle]: [
|
|
22
22
|
// Typography
|
|
23
23
|
'typography-body-2-regular',
|
|
24
24
|
|
|
@@ -26,6 +26,18 @@ export const LabelRootVariants: Record<LabelVariant, string[]> = {
|
|
|
26
26
|
'theme-foreground-default',
|
|
27
27
|
'dark:theme-foreground-default-dark',
|
|
28
28
|
],
|
|
29
|
+
|
|
30
|
+
[LabelVariant.MenuItem]: [
|
|
31
|
+
// Typography
|
|
32
|
+
'typography-body-2-regular',
|
|
33
|
+
|
|
34
|
+
// Typography (selected)
|
|
35
|
+
'selected:typography-body-2-semibold',
|
|
36
|
+
|
|
37
|
+
// Theme
|
|
38
|
+
'theme-foreground-default',
|
|
39
|
+
'dark:theme-foreground-default-dark',
|
|
40
|
+
],
|
|
29
41
|
};
|
|
30
42
|
|
|
31
43
|
export const LabelText: string[] = [
|
|
@@ -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="!isEmptyModelValue">
|
|
43
43
|
<slot
|
|
44
44
|
name="valueTemplate"
|
|
45
45
|
:model="proxyModelValue"
|
|
46
46
|
>
|
|
47
47
|
<OrTag
|
|
48
|
-
v-for="
|
|
49
|
-
:key="
|
|
48
|
+
v-for="option in selection"
|
|
49
|
+
:key="option.value"
|
|
50
50
|
:variant="'reset'"
|
|
51
51
|
:disabled="disabled || readonly"
|
|
52
52
|
@reset="deselect(option)"
|
|
@@ -56,8 +56,13 @@
|
|
|
56
56
|
</slot>
|
|
57
57
|
</template>
|
|
58
58
|
|
|
59
|
-
<template v-else>
|
|
60
|
-
<span
|
|
59
|
+
<template v-else-if="popoverState === 'closed' || !enableSearch">
|
|
60
|
+
<span
|
|
61
|
+
:class="placeholderStyles"
|
|
62
|
+
:disabled="disabled ? '' : null"
|
|
63
|
+
>
|
|
64
|
+
{{ placeholder }}
|
|
65
|
+
</span>
|
|
61
66
|
</template>
|
|
62
67
|
</template>
|
|
63
68
|
|
|
@@ -73,8 +78,13 @@
|
|
|
73
78
|
</slot>
|
|
74
79
|
</template>
|
|
75
80
|
|
|
76
|
-
<template v-else>
|
|
77
|
-
<span
|
|
81
|
+
<template v-else-if="popoverState === 'closed' || !enableSearch">
|
|
82
|
+
<span
|
|
83
|
+
:class="placeholderStyles"
|
|
84
|
+
:disabled="disabled ? '' : null"
|
|
85
|
+
>
|
|
86
|
+
{{ placeholder }}
|
|
87
|
+
</span>
|
|
78
88
|
</template>
|
|
79
89
|
</template>
|
|
80
90
|
</div>
|
|
@@ -83,13 +93,30 @@
|
|
|
83
93
|
+{{ outerItems.length }}
|
|
84
94
|
</template>
|
|
85
95
|
|
|
96
|
+
<template v-if="popoverState === 'open' && enableSearch && isDesktop">
|
|
97
|
+
<OrInput
|
|
98
|
+
ref="searchControl"
|
|
99
|
+
v-model="searchText"
|
|
100
|
+
:class="[...searchControlStyles, isEmptyModelValue && 'md:!ml-none']"
|
|
101
|
+
:type="'search'"
|
|
102
|
+
:placeholder="searchPlaceholder"
|
|
103
|
+
:size="size"
|
|
104
|
+
:disable-default-styles="true"
|
|
105
|
+
@click.stop
|
|
106
|
+
/>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
<template v-else>
|
|
110
|
+
<div :class="['grow']" />
|
|
111
|
+
</template>
|
|
112
|
+
|
|
86
113
|
<div :class="['layout-inline-row', 'gap-sm']">
|
|
87
|
-
<template v-if="
|
|
114
|
+
<template v-if="popoverState === 'closed' && !isEmptyModelValue">
|
|
88
115
|
<OrIconButton
|
|
89
116
|
:icon="'close'"
|
|
90
117
|
:color="'inherit'"
|
|
91
118
|
:disabled="readonly || disabled"
|
|
92
|
-
@click.stop="$emit('update:modelValue', undefined)"
|
|
119
|
+
@click.stop="$emit('update:modelValue', multiple ? [] : undefined)"
|
|
93
120
|
/>
|
|
94
121
|
</template>
|
|
95
122
|
|
|
@@ -107,14 +134,15 @@
|
|
|
107
134
|
:full-width="true"
|
|
108
135
|
:custom-styles="dropdownStyles"
|
|
109
136
|
:disable-default-styles="true"
|
|
137
|
+
@close="clearSearchControl()"
|
|
110
138
|
>
|
|
111
|
-
<template v-if="enableSearch">
|
|
139
|
+
<template v-if="popoverState === 'open' && enableSearch && isMobile">
|
|
112
140
|
<OrInput
|
|
141
|
+
ref="searchControl"
|
|
113
142
|
v-model="searchText"
|
|
143
|
+
:class="searchControlStyles"
|
|
114
144
|
:type="'search'"
|
|
115
|
-
:placeholder="
|
|
116
|
-
:size="'s'"
|
|
117
|
-
:disable-default-styles="true"
|
|
145
|
+
:placeholder="searchPlaceholder"
|
|
118
146
|
/>
|
|
119
147
|
</template>
|
|
120
148
|
|
|
@@ -129,6 +157,7 @@
|
|
|
129
157
|
<OrMenuItem
|
|
130
158
|
v-for="(option, i) in group"
|
|
131
159
|
:key="i"
|
|
160
|
+
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
132
161
|
>
|
|
133
162
|
<slot
|
|
134
163
|
name="optionTemplate"
|
|
@@ -139,7 +168,7 @@
|
|
|
139
168
|
v-model="proxyModelValue"
|
|
140
169
|
:value="option.value"
|
|
141
170
|
:label="option.label"
|
|
142
|
-
:label-variant="'
|
|
171
|
+
:label-variant="'menu-item'"
|
|
143
172
|
/>
|
|
144
173
|
</slot>
|
|
145
174
|
</OrMenuItem>
|
|
@@ -149,6 +178,8 @@
|
|
|
149
178
|
<OrMenuItem
|
|
150
179
|
v-for="(option, i) in group"
|
|
151
180
|
:key="i"
|
|
181
|
+
:class="dropdownItemStyles"
|
|
182
|
+
:selected="proxyModelValue === option.value"
|
|
152
183
|
@click.stop="proxyModelValue = option.value; close()"
|
|
153
184
|
>
|
|
154
185
|
<slot
|
|
@@ -168,12 +199,13 @@
|
|
|
168
199
|
<OrMenuItem
|
|
169
200
|
v-for="(option, i) in resolvedSearchOptions"
|
|
170
201
|
:key="i"
|
|
202
|
+
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
171
203
|
>
|
|
172
204
|
<OrCheckbox
|
|
173
205
|
v-model="proxyModelValue"
|
|
174
206
|
:value="option.value"
|
|
175
207
|
:label="option.label"
|
|
176
|
-
:label-variant="'
|
|
208
|
+
:label-variant="'menu-item'"
|
|
177
209
|
>
|
|
178
210
|
<slot
|
|
179
211
|
name="optionTemplate"
|
|
@@ -188,6 +220,8 @@
|
|
|
188
220
|
<OrMenuItem
|
|
189
221
|
v-for="(option, i) in resolvedSearchOptions"
|
|
190
222
|
:key="i"
|
|
223
|
+
:class="dropdownItemStyles"
|
|
224
|
+
:selected="proxyModelValue === option.value"
|
|
191
225
|
@click.stop="proxyModelValue = option.value; close()"
|
|
192
226
|
>
|
|
193
227
|
<slot
|
|
@@ -237,7 +271,7 @@
|
|
|
237
271
|
<script lang="ts">
|
|
238
272
|
import { computed, defineComponent, getCurrentInstance, onMounted, PropType, ref, toRef, watch } from 'vue-demi';
|
|
239
273
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
240
|
-
import { useOverflow, useProxyModelValue } from '../../hooks';
|
|
274
|
+
import { useOverflow, useProxyModelValue, useResponsive } from '../../hooks';
|
|
241
275
|
import { isEmptyValue } from '../../utils/isEmptyValue';
|
|
242
276
|
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
|
|
243
277
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
@@ -252,12 +286,10 @@ import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
|
252
286
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
253
287
|
import { OrTagV3 as OrTag } from '../or-tag-v3';
|
|
254
288
|
import { SelectSize } from './props';
|
|
255
|
-
import { SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectNoSearchResults, SelectPlaceholder,
|
|
289
|
+
import { Select, SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectDropdownItem, SelectNoSearchResults, SelectPlaceholder, SelectSearchControl } from './styles';
|
|
256
290
|
import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './types';
|
|
257
291
|
|
|
258
292
|
export default defineComponent({
|
|
259
|
-
name: 'OrSelect',
|
|
260
|
-
|
|
261
293
|
components: {
|
|
262
294
|
OrCheckbox,
|
|
263
295
|
OrError,
|
|
@@ -319,6 +351,11 @@ export default defineComponent({
|
|
|
319
351
|
default: undefined,
|
|
320
352
|
},
|
|
321
353
|
|
|
354
|
+
searchPlaceholder: {
|
|
355
|
+
type: String,
|
|
356
|
+
default: undefined,
|
|
357
|
+
},
|
|
358
|
+
|
|
322
359
|
hint: {
|
|
323
360
|
type: String,
|
|
324
361
|
default: undefined,
|
|
@@ -392,6 +429,8 @@ export default defineComponent({
|
|
|
392
429
|
|
|
393
430
|
const control = ref<HTMLElement>();
|
|
394
431
|
|
|
432
|
+
const searchControl = ref<HTMLElement>();
|
|
433
|
+
|
|
395
434
|
const popover = ref<InstanceType<typeof OrPopover>>();
|
|
396
435
|
const popoverRoot = computed(() => popover.value?.root);
|
|
397
436
|
const popoverState = computed(() => popover.value?.state);
|
|
@@ -399,13 +438,17 @@ export default defineComponent({
|
|
|
399
438
|
// Styles
|
|
400
439
|
const rootStyles = computed(() => [
|
|
401
440
|
'or-select-v3',
|
|
402
|
-
...
|
|
441
|
+
...Select,
|
|
403
442
|
]);
|
|
404
443
|
|
|
405
444
|
const controlStyles = computed(() => [
|
|
406
445
|
...SelectControl,
|
|
407
446
|
]);
|
|
408
447
|
|
|
448
|
+
const searchControlStyles = computed(() => [
|
|
449
|
+
...SelectSearchControl,
|
|
450
|
+
]);
|
|
451
|
+
|
|
409
452
|
const placeholderStyles = computed(() => [
|
|
410
453
|
...SelectPlaceholder,
|
|
411
454
|
]);
|
|
@@ -415,6 +458,10 @@ export default defineComponent({
|
|
|
415
458
|
...popover.value?.isFlipped ? SelectDropdownFlipped : SelectDropdownDefault,
|
|
416
459
|
]);
|
|
417
460
|
|
|
461
|
+
const dropdownItemStyles = computed(() => [
|
|
462
|
+
...SelectDropdownItem,
|
|
463
|
+
]);
|
|
464
|
+
|
|
418
465
|
const noSearchResultsStyles = computed(() => [
|
|
419
466
|
...SelectNoSearchResults,
|
|
420
467
|
]);
|
|
@@ -442,7 +489,9 @@ export default defineComponent({
|
|
|
442
489
|
const modelValue = proxyModelValue.value;
|
|
443
490
|
|
|
444
491
|
if (Array.isArray(modelValue)) {
|
|
445
|
-
return modelValue
|
|
492
|
+
return modelValue
|
|
493
|
+
.map((value) => props.options.find((option) => option.value === value))
|
|
494
|
+
.filter((value) => !!value);
|
|
446
495
|
}
|
|
447
496
|
|
|
448
497
|
return props.options.find((option) => option.value === modelValue);
|
|
@@ -521,20 +570,37 @@ export default defineComponent({
|
|
|
521
570
|
}
|
|
522
571
|
}
|
|
523
572
|
|
|
573
|
+
function clearSearchControl(): void {
|
|
574
|
+
searchText.value = '';
|
|
575
|
+
}
|
|
576
|
+
|
|
524
577
|
const { innerItems, outerItems } = useOverflow(control);
|
|
525
578
|
|
|
579
|
+
// Utils
|
|
580
|
+
const { isDesktop, isMobile } = useResponsive();
|
|
581
|
+
|
|
582
|
+
// Effects
|
|
583
|
+
watch(searchControl, (control) => {
|
|
584
|
+
setTimeout(() => {
|
|
585
|
+
control?.focus();
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
|
|
526
589
|
return {
|
|
527
590
|
root,
|
|
528
591
|
inputBox,
|
|
529
592
|
inputBoxRoot,
|
|
530
593
|
control,
|
|
594
|
+
searchControl,
|
|
531
595
|
popover,
|
|
532
596
|
popoverRoot,
|
|
533
597
|
popoverState,
|
|
534
598
|
rootStyles,
|
|
535
599
|
controlStyles,
|
|
600
|
+
searchControlStyles,
|
|
536
601
|
placeholderStyles,
|
|
537
602
|
dropdownStyles,
|
|
603
|
+
dropdownItemStyles,
|
|
538
604
|
noSearchResultsStyles,
|
|
539
605
|
controlId,
|
|
540
606
|
proxyModelValue,
|
|
@@ -548,8 +614,11 @@ export default defineComponent({
|
|
|
548
614
|
toggle,
|
|
549
615
|
close,
|
|
550
616
|
deselect,
|
|
617
|
+
clearSearchControl,
|
|
551
618
|
innerItems,
|
|
552
619
|
outerItems,
|
|
620
|
+
isDesktop,
|
|
621
|
+
isMobile,
|
|
553
622
|
};
|
|
554
623
|
},
|
|
555
624
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const Select: string[] = [
|
|
2
2
|
// Layout
|
|
3
3
|
'layout-column',
|
|
4
4
|
|
|
@@ -10,8 +10,8 @@ export const SelectControl: string[] = [
|
|
|
10
10
|
// Layout
|
|
11
11
|
'layout-row',
|
|
12
12
|
|
|
13
|
-
//
|
|
14
|
-
'
|
|
13
|
+
// Layout (empty)
|
|
14
|
+
'empty:hidden',
|
|
15
15
|
|
|
16
16
|
// Overflow
|
|
17
17
|
'overflow-hidden',
|
|
@@ -23,6 +23,15 @@ 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-sm+',
|
|
32
|
+
'!my-sm md:!my-none',
|
|
33
|
+
];
|
|
34
|
+
|
|
26
35
|
export const SelectPlaceholder: string[] = [
|
|
27
36
|
// Theme
|
|
28
37
|
'theme-foreground-outline',
|
|
@@ -66,6 +75,14 @@ export const SelectDropdownFlipped: string[] = [
|
|
|
66
75
|
'!border-b-0',
|
|
67
76
|
];
|
|
68
77
|
|
|
78
|
+
export const SelectDropdownItem: string[] = [
|
|
79
|
+
// Typography
|
|
80
|
+
'!typography-body-2-regular',
|
|
81
|
+
|
|
82
|
+
// Typography (selected)
|
|
83
|
+
'selected:!typography-body-2-semibold',
|
|
84
|
+
];
|
|
85
|
+
|
|
69
86
|
export const SelectNoSearchResults: string[] = [
|
|
70
87
|
// Layout
|
|
71
88
|
'layout-row justify-center',
|
|
@@ -2,9 +2,6 @@ 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
|
-
|
|
8
5
|
if (['Escape'].includes(event.key)) {
|
|
9
6
|
binding.value(event);
|
|
10
7
|
}
|
|
@@ -2,17 +2,14 @@ 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
|
-
|
|
8
5
|
if (['Enter', ' '].includes(event.key)) {
|
|
9
6
|
binding.value(event);
|
|
10
7
|
}
|
|
11
8
|
});
|
|
12
9
|
|
|
13
10
|
element.addEventListener('click', (event) => {
|
|
14
|
-
event.preventDefault();
|
|
15
11
|
event.stopPropagation();
|
|
12
|
+
event.preventDefault();
|
|
16
13
|
|
|
17
14
|
binding.value(event);
|
|
18
15
|
});
|
|
File without changes
|