@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch } from 'vue-demi';
|
|
2
2
|
import { _ as __vue_component__$2 } from './OrIconButton-667d8f83.js';
|
|
3
|
-
import { _ as __vue_component__$4 } from './OrSearch-
|
|
3
|
+
import { _ as __vue_component__$4 } from './OrSearch-15ecfbf0.js';
|
|
4
4
|
import './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
5
5
|
import { _ as __vue_component__$3 } from './OrSorting-501484aa.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -5,7 +5,7 @@ import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
|
5
5
|
import '@onereach/styles/tailwind.config';
|
|
6
6
|
import 'tailwindcss/resolveConfig';
|
|
7
7
|
import { i as isEmptyValue } from './isEmptyValue-fd56a6e4.js';
|
|
8
|
-
import { _ as __vue_component__$1, L as LabelVariant } from './OrLabel-
|
|
8
|
+
import { _ as __vue_component__$1, L as LabelVariant } from './OrLabel-4a3d8904.js';
|
|
9
9
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
10
10
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
11
11
|
|
|
@@ -133,7 +133,7 @@ var script = defineComponent({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
|
|
136
|
-
var css_248z = "input[data-v-
|
|
136
|
+
var css_248z = "input[data-v-9968416e]{appearance:none;line-height:0}";
|
|
137
137
|
styleInject(css_248z);
|
|
138
138
|
|
|
139
139
|
/* script */
|
|
@@ -174,6 +174,7 @@ var __vue_render__ = function () {
|
|
|
174
174
|
attrs: {
|
|
175
175
|
"control-id": _vm.controlAttributes.id,
|
|
176
176
|
"variant": _vm.labelVariant,
|
|
177
|
+
"selected": _vm.isChecked,
|
|
177
178
|
"required": _vm.required,
|
|
178
179
|
"disabled": _vm.disabled
|
|
179
180
|
},
|
|
@@ -193,7 +194,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
193
194
|
/* style */
|
|
194
195
|
const __vue_inject_styles__ = undefined;
|
|
195
196
|
/* scoped */
|
|
196
|
-
const __vue_scope_id__ = "data-v-
|
|
197
|
+
const __vue_scope_id__ = "data-v-9968416e";
|
|
197
198
|
/* module identifier */
|
|
198
199
|
const __vue_module_identifier__ = undefined;
|
|
199
200
|
/* functional template */
|
|
@@ -3,8 +3,8 @@ import '@vueuse/core';
|
|
|
3
3
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
4
4
|
import '@onereach/styles/tailwind.config';
|
|
5
5
|
import 'tailwindcss/resolveConfig';
|
|
6
|
-
import { _ as __vue_component__$1 } from './OrCheckboxTree-
|
|
7
|
-
import { _ as __vue_component__$2, F as FormGroupDirection } from './OrFormGroup-
|
|
6
|
+
import { _ as __vue_component__$1 } from './OrCheckboxTree-19f5d69b.js';
|
|
7
|
+
import { _ as __vue_component__$2, F as FormGroupDirection } from './OrFormGroup-9000fcdf.js';
|
|
8
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
9
|
|
|
10
10
|
var script = defineComponent({
|
|
@@ -4,7 +4,7 @@ import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
|
4
4
|
import '@onereach/styles/tailwind.config';
|
|
5
5
|
import 'tailwindcss/resolveConfig';
|
|
6
6
|
import { _ as __vue_component__$3 } from './OrButton-a23ee9f0.js';
|
|
7
|
-
import { _ as __vue_component__$2 } from './OrCheckbox-
|
|
7
|
+
import { _ as __vue_component__$2 } from './OrCheckbox-ae903071.js';
|
|
8
8
|
import { _ as __vue_component__$1 } from './OrIcon-d35a84d8.js';
|
|
9
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ import { _ as __vue_component__$2 } from './OrHint-aa221198.js';
|
|
|
18
18
|
import { _ as __vue_component__$3 } from './OrIconButton-667d8f83.js';
|
|
19
19
|
import { _ as __vue_component__$4 } from './OrInputBox-7dc5b9e9.js';
|
|
20
20
|
import './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
21
|
-
import { _ as __vue_component__$5 } from './OrLabel-
|
|
21
|
+
import { _ as __vue_component__$5 } from './OrLabel-4a3d8904.js';
|
|
22
22
|
import { _ as __vue_component__$6 } from './OrModal-836db96a.js';
|
|
23
23
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
24
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { _ as __vue_component__$1 } from './OrError-4ffc1c39.js';
|
|
3
3
|
import { _ as __vue_component__$2 } from './OrHint-aa221198.js';
|
|
4
|
-
import { _ as __vue_component__$3 } from './OrLabel-
|
|
4
|
+
import { _ as __vue_component__$3 } from './OrLabel-4a3d8904.js';
|
|
5
5
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ import { u as usePopoverState } from './usePopoverState-b92c698b.js';
|
|
|
5
5
|
import '@onereach/styles/tailwind.config';
|
|
6
6
|
import 'tailwindcss/resolveConfig';
|
|
7
7
|
import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-a23ee9f0.js';
|
|
8
|
-
import { _ as __vue_component__$3 } from './OrInput-
|
|
8
|
+
import { _ as __vue_component__$3 } from './OrInput-a6183a78.js';
|
|
9
9
|
import { _ as __vue_component__$1 } from './OrOverlay-f819eff9.js';
|
|
10
10
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
11
11
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
|
-
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-
|
|
2
|
+
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
5
5
|
import '@onereach/styles/tailwind.config';
|
|
6
6
|
import 'tailwindcss/resolveConfig';
|
|
7
|
-
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$3, c as __vue_component__$4, d as __vue_component__$5, e as __vue_component__$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-
|
|
7
|
+
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$3, c as __vue_component__$4, d as __vue_component__$5, e as __vue_component__$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-3a5c05ac.js';
|
|
8
8
|
import { _ as __vue_component__$7 } from './OrError-4ffc1c39.js';
|
|
9
9
|
import { _ as __vue_component__$8 } from './OrHint-aa221198.js';
|
|
10
10
|
import { _ as __vue_component__$a } from './OrIconButton-667d8f83.js';
|
|
11
11
|
import { _ as __vue_component__$9 } from './OrIcon-d35a84d8.js';
|
|
12
12
|
import { _ as __vue_component__$b } from './OrInputBox-7dc5b9e9.js';
|
|
13
13
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
14
|
-
import { _ as __vue_component__$c } from './OrLabel-
|
|
14
|
+
import { _ as __vue_component__$c } from './OrLabel-4a3d8904.js';
|
|
15
15
|
import { _ as __vue_component__$d } from './OrPopover-66817adb.js';
|
|
16
16
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
17
17
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as script } from './OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
1
|
+
import { s as script } from './OrDateTimePicker.vue_rollup-plugin-vue_script-e22f3b7b.js';
|
|
2
2
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
3
3
|
|
|
4
4
|
/* script */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
|
-
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-
|
|
2
|
+
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
5
5
|
import '@onereach/styles/tailwind.config';
|
|
@@ -10,9 +10,9 @@ import { _ as __vue_component__$c } from './OrIconButton-667d8f83.js';
|
|
|
10
10
|
import { _ as __vue_component__$b } from './OrIcon-d35a84d8.js';
|
|
11
11
|
import { _ as __vue_component__$d } from './OrInputBox-7dc5b9e9.js';
|
|
12
12
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
13
|
-
import { _ as __vue_component__$e } from './OrLabel-
|
|
13
|
+
import { _ as __vue_component__$e } from './OrLabel-4a3d8904.js';
|
|
14
14
|
import { _ as __vue_component__$f } from './OrPopover-66817adb.js';
|
|
15
|
-
import { _ as __vue_component__$3, a as __vue_component__$4, b as __vue_component__$5, c as __vue_component__$6, d as __vue_component__$7, e as __vue_component__$8, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-
|
|
15
|
+
import { _ as __vue_component__$3, a as __vue_component__$4, b as __vue_component__$5, c as __vue_component__$6, d as __vue_component__$7, e as __vue_component__$8, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-3a5c05ac.js';
|
|
16
16
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
17
17
|
import { _ as __vue_component__$2 } from './OrButton-a23ee9f0.js';
|
|
18
18
|
|
|
@@ -5,7 +5,7 @@ import '@onereach/styles/tailwind.config';
|
|
|
5
5
|
import 'tailwindcss/resolveConfig';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
7
|
import { _ as __vue_component__$6 } from './OrButton-a23ee9f0.js';
|
|
8
|
-
import { _ as __vue_component__$7 } from './OrLabel-
|
|
8
|
+
import { _ as __vue_component__$7 } from './OrLabel-4a3d8904.js';
|
|
9
9
|
import { _ as __vue_component__$9 } from './OrIconButton-667d8f83.js';
|
|
10
10
|
import { _ as __vue_component__$8 } from './OrIcon-d35a84d8.js';
|
|
11
11
|
import { _ as __vue_component__$b } from './OrMenuItem-c1c97ebe.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrLabel-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrLabel-4a3d8904.js';
|
|
3
3
|
import { _ as __vue_component__$2 } from './OrError-4ffc1c39.js';
|
|
4
4
|
import { _ as __vue_component__$3 } from './OrHint-aa221198.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -12,7 +12,7 @@ import { _ as __vue_component__$4 } from './OrIconButton-667d8f83.js';
|
|
|
12
12
|
import { _ as __vue_component__$3 } from './OrIcon-d35a84d8.js';
|
|
13
13
|
import { _ as __vue_component__$5 } from './OrInputBox-7dc5b9e9.js';
|
|
14
14
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
15
|
-
import { _ as __vue_component__$6 } from './OrLabel-
|
|
15
|
+
import { _ as __vue_component__$6 } from './OrLabel-4a3d8904.js';
|
|
16
16
|
import { _ as __vue_component__$7 } from './OrLoader-b0c381f9.js';
|
|
17
17
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
18
18
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -158,7 +158,7 @@ var script = defineComponent({
|
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
var css_248z = "input[data-v-
|
|
161
|
+
var css_248z = "input[data-v-fea72d76]{min-width:0;background:0 0;outline:0}input[type=number][data-v-fea72d76]::-webkit-inner-spin-button{display:none}input[type=search][data-v-fea72d76]::-webkit-search-cancel-button{display:none}";
|
|
162
162
|
styleInject(css_248z);
|
|
163
163
|
|
|
164
164
|
/* script */
|
|
@@ -418,7 +418,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
418
418
|
/* style */
|
|
419
419
|
const __vue_inject_styles__ = undefined;
|
|
420
420
|
/* scoped */
|
|
421
|
-
const __vue_scope_id__ = "data-v-
|
|
421
|
+
const __vue_scope_id__ = "data-v-fea72d76";
|
|
422
422
|
/* module identifier */
|
|
423
423
|
const __vue_module_identifier__ = undefined;
|
|
424
424
|
/* functional template */
|
|
@@ -5,23 +5,31 @@ var LabelVariant;
|
|
|
5
5
|
(function (LabelVariant) {
|
|
6
6
|
LabelVariant["Input"] = "input";
|
|
7
7
|
LabelVariant["Toggle"] = "toggle";
|
|
8
|
+
LabelVariant["MenuItem"] = "menu-item";
|
|
8
9
|
})(LabelVariant || (LabelVariant = {}));
|
|
9
10
|
|
|
10
|
-
const
|
|
11
|
+
const Label = [
|
|
11
12
|
// Layout
|
|
12
13
|
'layout-row justify-between',
|
|
13
14
|
// Spacing
|
|
14
15
|
'gap-sm'];
|
|
15
|
-
const
|
|
16
|
-
|
|
16
|
+
const LabelVariants = {
|
|
17
|
+
[LabelVariant.Input]: [
|
|
17
18
|
// Typography
|
|
18
19
|
'typography-caption-regular',
|
|
19
20
|
// Theme
|
|
20
21
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'],
|
|
21
|
-
|
|
22
|
+
[LabelVariant.Toggle]: [
|
|
22
23
|
// Typography
|
|
23
24
|
'typography-body-2-regular',
|
|
24
25
|
// Theme
|
|
26
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark'],
|
|
27
|
+
[LabelVariant.MenuItem]: [
|
|
28
|
+
// Typography
|
|
29
|
+
'typography-body-2-regular',
|
|
30
|
+
// Typography (selected)
|
|
31
|
+
'selected:typography-body-2-semibold',
|
|
32
|
+
// Theme
|
|
25
33
|
'theme-foreground-default', 'dark:theme-foreground-default-dark']
|
|
26
34
|
};
|
|
27
35
|
const LabelText = [
|
|
@@ -36,7 +44,6 @@ const LabelAddon = [
|
|
|
36
44
|
'whitespace-nowrap'];
|
|
37
45
|
|
|
38
46
|
var script = defineComponent({
|
|
39
|
-
name: 'OrLabel',
|
|
40
47
|
props: {
|
|
41
48
|
controlId: {
|
|
42
49
|
type: String,
|
|
@@ -46,6 +53,10 @@ var script = defineComponent({
|
|
|
46
53
|
type: String,
|
|
47
54
|
default: LabelVariant.Input
|
|
48
55
|
},
|
|
56
|
+
selected: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false
|
|
59
|
+
},
|
|
49
60
|
required: {
|
|
50
61
|
type: Boolean,
|
|
51
62
|
default: false
|
|
@@ -60,7 +71,7 @@ var script = defineComponent({
|
|
|
60
71
|
// Refs
|
|
61
72
|
const root = ref();
|
|
62
73
|
// Styles
|
|
63
|
-
const rootStyles = computed(() => ['or-label-v3', ...
|
|
74
|
+
const rootStyles = computed(() => ['or-label-v3', ...Label, ...LabelVariants[props.variant]]);
|
|
64
75
|
const textStyles = computed(() => [...LabelText]);
|
|
65
76
|
const addonStyles = computed(() => [...LabelAddon]);
|
|
66
77
|
return {
|
|
@@ -84,6 +95,7 @@ var __vue_render__ = function () {
|
|
|
84
95
|
ref: "root",
|
|
85
96
|
class: _vm.rootStyles,
|
|
86
97
|
attrs: {
|
|
98
|
+
"selected": _vm.selected ? '' : null,
|
|
87
99
|
"disabled": _vm.disabled ? '' : null
|
|
88
100
|
}
|
|
89
101
|
}, [_c('label', {
|
|
@@ -4,7 +4,7 @@ import '@vueuse/core';
|
|
|
4
4
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
5
5
|
import '@onereach/styles/tailwind.config';
|
|
6
6
|
import 'tailwindcss/resolveConfig';
|
|
7
|
-
import { _ as __vue_component__$1, L as LabelVariant } from './OrLabel-
|
|
7
|
+
import { _ as __vue_component__$1, L as LabelVariant } from './OrLabel-4a3d8904.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@ import '@vueuse/core';
|
|
|
3
3
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
4
4
|
import '@onereach/styles/tailwind.config';
|
|
5
5
|
import 'tailwindcss/resolveConfig';
|
|
6
|
-
import { _ as __vue_component__$1 } from './OrFormGroup-
|
|
7
|
-
import { _ as __vue_component__$2 } from './OrRadio-
|
|
6
|
+
import { _ as __vue_component__$1 } from './OrFormGroup-9000fcdf.js';
|
|
7
|
+
import { _ as __vue_component__$2 } from './OrRadio-0fc3ae14.js';
|
|
8
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
9
|
|
|
10
10
|
var script = defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { debouncedWatch } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
3
|
-
import { _ as __vue_component__$1 } from './OrInput-
|
|
3
|
+
import { _ as __vue_component__$1 } from './OrInput-a6183a78.js';
|
|
4
4
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
6
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, ref, computed, toRef, onMounted, watch } from 'vue-demi';
|
|
2
|
-
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-
|
|
2
|
+
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
3
3
|
import { u as useOverflow } from './useOverflow-c856b7b7.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
6
|
+
import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
6
7
|
import '@onereach/styles/tailwind.config';
|
|
7
8
|
import 'tailwindcss/resolveConfig';
|
|
8
9
|
import { i as isEmptyValue } from './isEmptyValue-fd56a6e4.js';
|
|
9
|
-
import { _ as __vue_component__$1 } from './OrCheckbox-
|
|
10
|
+
import { _ as __vue_component__$1 } from './OrCheckbox-ae903071.js';
|
|
10
11
|
import { _ as __vue_component__$2 } from './OrError-4ffc1c39.js';
|
|
11
12
|
import { _ as __vue_component__$3 } from './OrExpansionPanel-f1d8fcc9.js';
|
|
12
13
|
import { _ as __vue_component__$4 } from './OrHint-aa221198.js';
|
|
@@ -14,14 +15,14 @@ import { _ as __vue_component__$6 } from './OrIconButton-667d8f83.js';
|
|
|
14
15
|
import { _ as __vue_component__$5 } from './OrIcon-d35a84d8.js';
|
|
15
16
|
import { _ as __vue_component__$8 } from './OrInputBox-7dc5b9e9.js';
|
|
16
17
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
17
|
-
import { _ as __vue_component__$7 } from './OrInput-
|
|
18
|
-
import { _ as __vue_component__$9 } from './OrLabel-
|
|
18
|
+
import { _ as __vue_component__$7 } from './OrInput-a6183a78.js';
|
|
19
|
+
import { _ as __vue_component__$9 } from './OrLabel-4a3d8904.js';
|
|
19
20
|
import { _ as __vue_component__$a } from './OrMenuItem-c1c97ebe.js';
|
|
20
21
|
import { _ as __vue_component__$b } from './OrPopover-66817adb.js';
|
|
21
22
|
import { _ as __vue_component__$c } from './OrTag-7a14e88b.js';
|
|
22
23
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
23
24
|
|
|
24
|
-
const
|
|
25
|
+
const Select = [
|
|
25
26
|
// Layout
|
|
26
27
|
'layout-column',
|
|
27
28
|
// Spacing
|
|
@@ -29,14 +30,19 @@ const SelectRoot = [
|
|
|
29
30
|
const SelectControl = [
|
|
30
31
|
// Layout
|
|
31
32
|
'layout-row',
|
|
32
|
-
//
|
|
33
|
-
'
|
|
33
|
+
// Layout (empty)
|
|
34
|
+
'empty:hidden',
|
|
34
35
|
// Overflow
|
|
35
36
|
'overflow-hidden',
|
|
36
37
|
// Spacing
|
|
37
38
|
'gap-xs',
|
|
38
39
|
// Typography
|
|
39
40
|
'typography-inherit'];
|
|
41
|
+
const SelectSearchControl = [
|
|
42
|
+
// Layout
|
|
43
|
+
'grow',
|
|
44
|
+
// Spacing
|
|
45
|
+
'!mx-lg md:!-mx-sm+', '!my-sm md:!my-none'];
|
|
40
46
|
const SelectPlaceholder = [
|
|
41
47
|
// Theme
|
|
42
48
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
|
|
@@ -61,6 +67,11 @@ const SelectDropdownFlipped = [
|
|
|
61
67
|
'rounded-t-md',
|
|
62
68
|
// Theme
|
|
63
69
|
'!border-b-0'];
|
|
70
|
+
const SelectDropdownItem = [
|
|
71
|
+
// Typography
|
|
72
|
+
'!typography-body-2-regular',
|
|
73
|
+
// Typography (selected)
|
|
74
|
+
'selected:!typography-body-2-semibold'];
|
|
64
75
|
const SelectNoSearchResults = [
|
|
65
76
|
// Layout
|
|
66
77
|
'layout-row justify-center',
|
|
@@ -72,7 +83,6 @@ const SelectNoSearchResults = [
|
|
|
72
83
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
73
84
|
|
|
74
85
|
var script = defineComponent({
|
|
75
|
-
name: 'OrSelect',
|
|
76
86
|
components: {
|
|
77
87
|
OrCheckbox: __vue_component__$1,
|
|
78
88
|
OrError: __vue_component__$2,
|
|
@@ -124,6 +134,10 @@ var script = defineComponent({
|
|
|
124
134
|
type: String,
|
|
125
135
|
default: undefined
|
|
126
136
|
},
|
|
137
|
+
searchPlaceholder: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: undefined
|
|
140
|
+
},
|
|
127
141
|
hint: {
|
|
128
142
|
type: String,
|
|
129
143
|
default: undefined
|
|
@@ -181,6 +195,7 @@ var script = defineComponent({
|
|
|
181
195
|
return (_a = inputBox.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
182
196
|
});
|
|
183
197
|
const control = ref();
|
|
198
|
+
const searchControl = ref();
|
|
184
199
|
const popover = ref();
|
|
185
200
|
const popoverRoot = computed(() => {
|
|
186
201
|
var _a;
|
|
@@ -191,13 +206,15 @@ var script = defineComponent({
|
|
|
191
206
|
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
192
207
|
});
|
|
193
208
|
// Styles
|
|
194
|
-
const rootStyles = computed(() => ['or-select-v3', ...
|
|
209
|
+
const rootStyles = computed(() => ['or-select-v3', ...Select]);
|
|
195
210
|
const controlStyles = computed(() => [...SelectControl]);
|
|
211
|
+
const searchControlStyles = computed(() => [...SelectSearchControl]);
|
|
196
212
|
const placeholderStyles = computed(() => [...SelectPlaceholder]);
|
|
197
213
|
const dropdownStyles = computed(() => {
|
|
198
214
|
var _a;
|
|
199
215
|
return [...SelectDropdown, ...(((_a = popover.value) === null || _a === void 0 ? void 0 : _a.isFlipped) ? SelectDropdownFlipped : SelectDropdownDefault)];
|
|
200
216
|
});
|
|
217
|
+
const dropdownItemStyles = computed(() => [...SelectDropdownItem]);
|
|
201
218
|
const noSearchResultsStyles = computed(() => [...SelectNoSearchResults]);
|
|
202
219
|
// State
|
|
203
220
|
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
@@ -214,7 +231,7 @@ var script = defineComponent({
|
|
|
214
231
|
const selection = computed(() => {
|
|
215
232
|
const modelValue = proxyModelValue.value;
|
|
216
233
|
if (Array.isArray(modelValue)) {
|
|
217
|
-
return modelValue.map(value => props.options.find(option => option.value === value));
|
|
234
|
+
return modelValue.map(value => props.options.find(option => option.value === value)).filter(value => !!value);
|
|
218
235
|
}
|
|
219
236
|
return props.options.find(option => option.value === modelValue);
|
|
220
237
|
});
|
|
@@ -274,22 +291,39 @@ var script = defineComponent({
|
|
|
274
291
|
proxyModelValue.value = modelValue.filter(value => value !== option.value);
|
|
275
292
|
}
|
|
276
293
|
}
|
|
294
|
+
function clearSearchControl() {
|
|
295
|
+
searchText.value = '';
|
|
296
|
+
}
|
|
277
297
|
const {
|
|
278
298
|
innerItems,
|
|
279
299
|
outerItems
|
|
280
300
|
} = useOverflow(control);
|
|
301
|
+
// Utils
|
|
302
|
+
const {
|
|
303
|
+
isDesktop,
|
|
304
|
+
isMobile
|
|
305
|
+
} = useResponsive();
|
|
306
|
+
// Effects
|
|
307
|
+
watch(searchControl, control => {
|
|
308
|
+
setTimeout(() => {
|
|
309
|
+
control === null || control === void 0 ? void 0 : control.focus();
|
|
310
|
+
});
|
|
311
|
+
});
|
|
281
312
|
return {
|
|
282
313
|
root,
|
|
283
314
|
inputBox,
|
|
284
315
|
inputBoxRoot,
|
|
285
316
|
control,
|
|
317
|
+
searchControl,
|
|
286
318
|
popover,
|
|
287
319
|
popoverRoot,
|
|
288
320
|
popoverState,
|
|
289
321
|
rootStyles,
|
|
290
322
|
controlStyles,
|
|
323
|
+
searchControlStyles,
|
|
291
324
|
placeholderStyles,
|
|
292
325
|
dropdownStyles,
|
|
326
|
+
dropdownItemStyles,
|
|
293
327
|
noSearchResultsStyles,
|
|
294
328
|
controlId,
|
|
295
329
|
proxyModelValue,
|
|
@@ -303,8 +337,11 @@ var script = defineComponent({
|
|
|
303
337
|
toggle,
|
|
304
338
|
close,
|
|
305
339
|
deselect,
|
|
340
|
+
clearSearchControl,
|
|
306
341
|
innerItems,
|
|
307
|
-
outerItems
|
|
342
|
+
outerItems,
|
|
343
|
+
isDesktop,
|
|
344
|
+
isMobile
|
|
308
345
|
};
|
|
309
346
|
}
|
|
310
347
|
});
|
|
@@ -371,10 +408,10 @@ var __vue_render__ = function () {
|
|
|
371
408
|
return _vm.$emit('blur', $event);
|
|
372
409
|
}
|
|
373
410
|
}
|
|
374
|
-
}, [_vm.multiple ? [_vm.
|
|
375
|
-
return _vm._l(_vm.selection, function (option
|
|
411
|
+
}, [_vm.multiple ? [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
|
|
412
|
+
return _vm._l(_vm.selection, function (option) {
|
|
376
413
|
return _c('OrTag', {
|
|
377
|
-
key:
|
|
414
|
+
key: option.value,
|
|
378
415
|
attrs: {
|
|
379
416
|
"variant": 'reset',
|
|
380
417
|
"disabled": _vm.disabled || _vm.readonly
|
|
@@ -388,19 +425,48 @@ var __vue_render__ = function () {
|
|
|
388
425
|
});
|
|
389
426
|
}, {
|
|
390
427
|
"model": _vm.proxyModelValue
|
|
391
|
-
})] : [_c('span', {
|
|
392
|
-
class: _vm.placeholderStyles
|
|
393
|
-
|
|
428
|
+
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('span', {
|
|
429
|
+
class: _vm.placeholderStyles,
|
|
430
|
+
attrs: {
|
|
431
|
+
"disabled": _vm.disabled ? '' : null
|
|
432
|
+
}
|
|
433
|
+
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()] : [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
|
|
394
434
|
return [_c('span', {
|
|
395
435
|
staticClass: "truncate"
|
|
396
436
|
}, [_vm._v("\n " + _vm._s(_vm.selection && _vm.selection.label) + "\n ")])];
|
|
397
437
|
}, {
|
|
398
438
|
"model": _vm.proxyModelValue
|
|
399
|
-
})] : [_c('span', {
|
|
400
|
-
class: _vm.placeholderStyles
|
|
401
|
-
|
|
439
|
+
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('span', {
|
|
440
|
+
class: _vm.placeholderStyles,
|
|
441
|
+
attrs: {
|
|
442
|
+
"disabled": _vm.disabled ? '' : null
|
|
443
|
+
}
|
|
444
|
+
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
|
|
445
|
+
ref: "searchControl",
|
|
446
|
+
class: _vm.searchControlStyles.concat([_vm.isEmptyModelValue && 'md:!ml-none']),
|
|
447
|
+
attrs: {
|
|
448
|
+
"type": 'search',
|
|
449
|
+
"placeholder": _vm.searchPlaceholder,
|
|
450
|
+
"size": _vm.size,
|
|
451
|
+
"disable-default-styles": true
|
|
452
|
+
},
|
|
453
|
+
on: {
|
|
454
|
+
"click": function ($event) {
|
|
455
|
+
$event.stopPropagation();
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
model: {
|
|
459
|
+
value: _vm.searchText,
|
|
460
|
+
callback: function ($$v) {
|
|
461
|
+
_vm.searchText = $$v;
|
|
462
|
+
},
|
|
463
|
+
expression: "searchText"
|
|
464
|
+
}
|
|
465
|
+
})] : [_c('div', {
|
|
466
|
+
class: ['grow']
|
|
467
|
+
})], _vm._v(" "), _c('div', {
|
|
402
468
|
class: ['layout-inline-row', 'gap-sm']
|
|
403
|
-
}, [
|
|
469
|
+
}, [_vm.popoverState === 'closed' && !_vm.isEmptyModelValue ? [_c('OrIconButton', {
|
|
404
470
|
attrs: {
|
|
405
471
|
"icon": 'close',
|
|
406
472
|
"color": 'inherit',
|
|
@@ -409,7 +475,7 @@ var __vue_render__ = function () {
|
|
|
409
475
|
on: {
|
|
410
476
|
"click": function ($event) {
|
|
411
477
|
$event.stopPropagation();
|
|
412
|
-
return _vm.$emit('update:modelValue', undefined);
|
|
478
|
+
return _vm.$emit('update:modelValue', _vm.multiple ? [] : undefined);
|
|
413
479
|
}
|
|
414
480
|
}
|
|
415
481
|
})] : _vm._e(), _vm._v(" "), _c('OrIcon', {
|
|
@@ -426,13 +492,18 @@ var __vue_render__ = function () {
|
|
|
426
492
|
"full-width": true,
|
|
427
493
|
"custom-styles": _vm.dropdownStyles,
|
|
428
494
|
"disable-default-styles": true
|
|
495
|
+
},
|
|
496
|
+
on: {
|
|
497
|
+
"close": function ($event) {
|
|
498
|
+
return _vm.clearSearchControl();
|
|
499
|
+
}
|
|
429
500
|
}
|
|
430
|
-
}, [_vm.enableSearch ? [_c('OrInput', {
|
|
501
|
+
}, [_vm.popoverState === 'open' && _vm.enableSearch && _vm.isMobile ? [_c('OrInput', {
|
|
502
|
+
ref: "searchControl",
|
|
503
|
+
class: _vm.searchControlStyles,
|
|
431
504
|
attrs: {
|
|
432
505
|
"type": 'search',
|
|
433
|
-
"placeholder":
|
|
434
|
-
"size": 's',
|
|
435
|
-
"disable-default-styles": true
|
|
506
|
+
"placeholder": _vm.searchPlaceholder
|
|
436
507
|
},
|
|
437
508
|
model: {
|
|
438
509
|
value: _vm.searchText,
|
|
@@ -449,13 +520,16 @@ var __vue_render__ = function () {
|
|
|
449
520
|
}
|
|
450
521
|
}, [_vm.multiple ? _vm._l(group, function (option, i) {
|
|
451
522
|
return _c('OrMenuItem', {
|
|
452
|
-
key: i
|
|
523
|
+
key: i,
|
|
524
|
+
attrs: {
|
|
525
|
+
"selected": _vm.proxyModelValue && _vm.proxyModelValue.includes(option.value)
|
|
526
|
+
}
|
|
453
527
|
}, [_vm._t("optionTemplate", function () {
|
|
454
528
|
return [_c('OrCheckbox', {
|
|
455
529
|
attrs: {
|
|
456
530
|
"value": option.value,
|
|
457
531
|
"label": option.label,
|
|
458
|
-
"label-variant": '
|
|
532
|
+
"label-variant": 'menu-item'
|
|
459
533
|
},
|
|
460
534
|
model: {
|
|
461
535
|
value: _vm.proxyModelValue,
|
|
@@ -472,6 +546,10 @@ var __vue_render__ = function () {
|
|
|
472
546
|
}) : _vm._l(group, function (option, i) {
|
|
473
547
|
return _c('OrMenuItem', {
|
|
474
548
|
key: i,
|
|
549
|
+
class: _vm.dropdownItemStyles,
|
|
550
|
+
attrs: {
|
|
551
|
+
"selected": _vm.proxyModelValue === option.value
|
|
552
|
+
},
|
|
475
553
|
on: {
|
|
476
554
|
"click": function ($event) {
|
|
477
555
|
$event.stopPropagation();
|
|
@@ -488,12 +566,15 @@ var __vue_render__ = function () {
|
|
|
488
566
|
})], 2);
|
|
489
567
|
}) : [_vm.multiple ? _vm._l(_vm.resolvedSearchOptions, function (option, i) {
|
|
490
568
|
return _c('OrMenuItem', {
|
|
491
|
-
key: i
|
|
569
|
+
key: i,
|
|
570
|
+
attrs: {
|
|
571
|
+
"selected": _vm.proxyModelValue && _vm.proxyModelValue.includes(option.value)
|
|
572
|
+
}
|
|
492
573
|
}, [_c('OrCheckbox', {
|
|
493
574
|
attrs: {
|
|
494
575
|
"value": option.value,
|
|
495
576
|
"label": option.label,
|
|
496
|
-
"label-variant": '
|
|
577
|
+
"label-variant": 'menu-item'
|
|
497
578
|
},
|
|
498
579
|
model: {
|
|
499
580
|
value: _vm.proxyModelValue,
|
|
@@ -509,6 +590,10 @@ var __vue_render__ = function () {
|
|
|
509
590
|
}) : _vm._l(_vm.resolvedSearchOptions, function (option, i) {
|
|
510
591
|
return _c('OrMenuItem', {
|
|
511
592
|
key: i,
|
|
593
|
+
class: _vm.dropdownItemStyles,
|
|
594
|
+
attrs: {
|
|
595
|
+
"selected": _vm.proxyModelValue === option.value
|
|
596
|
+
},
|
|
512
597
|
on: {
|
|
513
598
|
"click": function ($event) {
|
|
514
599
|
$event.stopPropagation();
|
|
@@ -4,7 +4,7 @@ import '@vueuse/core';
|
|
|
4
4
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
5
5
|
import '@onereach/styles/tailwind.config';
|
|
6
6
|
import 'tailwindcss/resolveConfig';
|
|
7
|
-
import { _ as __vue_component__$1, L as LabelVariant } from './OrLabel-
|
|
7
|
+
import { _ as __vue_component__$1, L as LabelVariant } from './OrLabel-4a3d8904.js';
|
|
8
8
|
import { _ as __vue_component__$2 } from './OrLoader-b0c381f9.js';
|
|
9
9
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
10
10
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -10,7 +10,7 @@ import { _ as __vue_component__$2 } from './OrHint-aa221198.js';
|
|
|
10
10
|
import { _ as __vue_component__$3 } from './OrIconButton-667d8f83.js';
|
|
11
11
|
import { _ as __vue_component__$4 } from './OrInputBox-7dc5b9e9.js';
|
|
12
12
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js';
|
|
13
|
-
import { _ as __vue_component__$5 } from './OrLabel-
|
|
13
|
+
import { _ as __vue_component__$5 } from './OrLabel-4a3d8904.js';
|
|
14
14
|
import { _ as __vue_component__$6 } from './OrTags-b4de9652.js';
|
|
15
15
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
16
16
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|