@onereach/ui-components 2.70.2-beta.2218.0 → 2.70.2-beta.2219.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/{OrCardCollection-9d8e3fbc.js → OrCardCollection-091e2193.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-a2ceda44.js → OrCheckbox-9be450f9.js} +12 -17
- package/dist/bundled/v2/{OrConfirm-d6e533f2.js → OrConfirm-ebff0b61.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-47fca182.js → OrInlineInput-b009a043.js} +9 -14
- package/dist/bundled/v2/{OrInlineTextarea-d9b9e485.js → OrInlineTextarea-6e8c1f80.js} +9 -14
- package/dist/bundled/v2/{OrInput-9288b667.js → OrInput-5404a234.js} +9 -14
- package/dist/bundled/v2/{OrPagination-44e713a2.js → OrPagination-daf25de2.js} +7 -14
- package/dist/bundled/v2/{OrRadio-f140c19a.js → OrRadio-fe23947a.js} +12 -17
- package/dist/bundled/v2/{OrSearch-ba756661.js → OrSearch-d1169241.js} +1 -1
- package/dist/bundled/v2/{OrSegmentedControl-b9d0b95a.js → OrSegmentedControl-878279bf.js} +6 -11
- package/dist/bundled/v2/{OrSelect-c91fc506.js → OrSelect-fef400f4.js} +10 -15
- package/dist/bundled/v2/{OrSortHeader-180d77ee.js → OrSortHeader-565ace92.js} +8 -13
- package/dist/bundled/v2/{OrSwitch-37a3ecf9.js → OrSwitch-782d7b43.js} +12 -17
- package/dist/bundled/v2/{OrTabs-92360920.js → OrTabs-d69780fc.js} +6 -11
- package/dist/bundled/v2/{OrTextarea-7822c4b6.js → OrTextarea-5c57c02b.js} +9 -14
- package/dist/bundled/v2/components/index.js +15 -15
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
- package/dist/bundled/v2/components/or-segmented-control-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +3 -14
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
- package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
- package/dist/bundled/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +15 -15
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-1e3dd861.js → OrCardCollection.vue_vue_type_script_lang-60403ae6.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-fec2fa29.js → OrCheckbox.vue_vue_type_script_lang-fc067611.js} +6 -11
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-747c5ce7.js → OrConfirm.vue_vue_type_script_lang-528380c1.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-62406472.js → OrInlineInput.vue_vue_type_script_lang-ab296efc.js} +6 -11
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a55dffd2.js → OrInlineTextarea.vue_vue_type_script_lang-3c3e1b4a.js} +6 -11
- package/dist/bundled/v3/{OrInput-9faa2035.js → OrInput-2a7c6b57.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-dea5c599.js → OrInput.vue_vue_type_script_lang-509de504.js} +6 -11
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-0d299d07.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +7 -14
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-2f053184.js → OrRadio.vue_vue_type_script_lang-8dc0720c.js} +6 -11
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-2bc9e930.js → OrSearch.vue_vue_type_script_lang-ab2ef22c.js} +2 -2
- package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-92379dcc.js → OrSegmentedControl.vue_vue_type_script_lang-38a00b68.js} +6 -11
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-72e0cd5a.js → OrSelect.vue_vue_type_script_lang-8ab7bc56.js} +10 -15
- package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-866f9764.js → OrSortHeader.vue_vue_type_script_lang-a20eae87.js} +8 -13
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-45f536b3.js → OrSwitch.vue_vue_type_script_lang-31994be7.js} +6 -11
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2b84672b.js → OrTabs.vue_vue_type_script_lang-cb550e87.js} +6 -11
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-94b94433.js → OrTextarea.vue_vue_type_script_lang-296da567.js} +6 -11
- package/dist/bundled/v3/components/index.js +16 -16
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-input-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-radio-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
- package/dist/bundled/v3/components/or-segmented-control-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +3 -14
- package/dist/bundled/v3/components/or-select-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
- package/dist/bundled/v3/components/or-sort-header-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
- package/dist/bundled/v3/components/or-switch-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +34 -34
- package/dist/esm/v2/{OrCardCollection-3fc3a24e.js → OrCardCollection-bbdb6159.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-05b9a244.js → OrCheckbox-b380c131.js} +12 -17
- package/dist/esm/v2/{OrConfirm-56db44bd.js → OrConfirm-7fb515d4.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-c8058b04.js → OrInlineInput-38645a8e.js} +9 -14
- package/dist/esm/v2/{OrInlineTextarea-252d3c2c.js → OrInlineTextarea-b49a7107.js} +9 -14
- package/dist/esm/v2/{OrInput-fd9b3e7d.js → OrInput-e8fe9102.js} +9 -14
- package/dist/esm/v2/{OrPagination-8b604bd9.js → OrPagination-1adbcadb.js} +7 -14
- package/dist/esm/v2/{OrRadio-2094e67d.js → OrRadio-87a4d226.js} +12 -17
- package/dist/esm/v2/{OrSearch-072ee1b9.js → OrSearch-4b774707.js} +1 -1
- package/dist/esm/v2/{OrSegmentedControl-71248337.js → OrSegmentedControl-7486115b.js} +6 -11
- package/dist/esm/v2/{OrSelect-23208d36.js → OrSelect-871fae44.js} +10 -15
- package/dist/esm/v2/{OrSortHeader-8ca76674.js → OrSortHeader-592727dc.js} +8 -13
- package/dist/esm/v2/{OrSwitch-a1f67338.js → OrSwitch-8549219a.js} +12 -17
- package/dist/esm/v2/{OrTabs-954838f3.js → OrTabs-96b0473d.js} +6 -11
- package/dist/esm/v2/{OrTextarea-5f79faca.js → OrTextarea-a5a3572b.js} +9 -14
- package/dist/esm/v2/components/index.js +15 -15
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +2 -2
- package/dist/esm/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +1 -1
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +3 -14
- package/dist/esm/v2/components/or-select-v3/index.js +3 -3
- package/dist/esm/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
- package/dist/esm/v2/components/or-sort-header-v3/index.js +1 -1
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v2/index.js +15 -15
- package/dist/esm/v3/{OrCardCollection-53e83dbb.js → OrCardCollection-47f61c40.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-afadd5b8.js → OrCheckbox-16c1e2f4.js} +7 -12
- package/dist/esm/v3/{OrConfirm-06ed85f9.js → OrConfirm-8b7f29c2.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-6d363088.js → OrInlineInput-09de432a.js} +6 -11
- package/dist/esm/v3/{OrInlineTextarea-3e48b319.js → OrInlineTextarea-56328f22.js} +6 -11
- package/dist/esm/v3/{OrInput-5ef51369.js → OrInput-6fb81556.js} +6 -11
- package/dist/esm/v3/{OrPagination-010b0bef.js → OrPagination-da9e5017.js} +7 -14
- package/dist/esm/v3/{OrRadio-a0bd352b.js → OrRadio-bb9b37c1.js} +7 -12
- package/dist/esm/v3/{OrSearch-9eb38b29.js → OrSearch-e15955a7.js} +1 -1
- package/dist/esm/v3/{OrSegmentedControl-c7221732.js → OrSegmentedControl-880b4911.js} +6 -11
- package/dist/esm/v3/{OrSelect-64fa5d0b.js → OrSelect-acf12fe6.js} +12 -17
- package/dist/esm/v3/{OrSortHeader-cab07616.js → OrSortHeader-a39f77f9.js} +8 -13
- package/dist/esm/v3/{OrSwitch-f342ee4b.js → OrSwitch-1c2196da.js} +7 -12
- package/dist/esm/v3/{OrTabs-a1ffc2a3.js → OrTabs-328d41b9.js} +6 -11
- package/dist/esm/v3/{OrTextarea-f3831b3f.js → OrTextarea-37566985.js} +6 -11
- package/dist/esm/v3/components/index.js +15 -15
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +3 -14
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
- package/dist/esm/v3/components/or-sort-header-v3/index.js +1 -1
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +15 -15
- package/package.json +1 -1
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +3 -7
- package/src/components/or-checkbox-v3/OrCheckbox.vue +8 -12
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +0 -4
- package/src/components/or-inline-input-v3/OrInlineInput.vue +6 -10
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +0 -4
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +6 -10
- package/src/components/or-input-v3/OrInput.stories3.ts +0 -4
- package/src/components/or-input-v3/OrInput.vue +6 -10
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -4
- package/src/components/or-pagination-v3/OrPagination.vue +9 -20
- package/src/components/or-radio-v3/OrRadio.stories3.ts +3 -7
- package/src/components/or-radio-v3/OrRadio.vue +8 -12
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +0 -4
- package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +6 -11
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
- package/src/components/or-select-v3/OrSelect.vue +8 -12
- package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +3 -7
- package/src/components/or-sort-header-v3/OrSortHeader.vue +9 -13
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +3 -7
- package/src/components/or-switch-v3/OrSwitch.vue +8 -12
- package/src/components/or-tabs-v3/OrTabs.stories3.ts +0 -4
- package/src/components/or-tabs-v3/OrTabs.vue +6 -11
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +0 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +6 -10
|
@@ -6,7 +6,7 @@ import { O as OrButton } from './OrButton-d45772c1.js';
|
|
|
6
6
|
import { O as OrMenu } from './OrMenu-52da43bc.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-d1169241.js';
|
|
10
10
|
|
|
11
11
|
const CardCollectionRoot = [
|
|
12
12
|
// Layout
|
|
@@ -40,16 +40,16 @@ var script = defineComponent({
|
|
|
40
40
|
components: {
|
|
41
41
|
OrLabel
|
|
42
42
|
},
|
|
43
|
+
model: {
|
|
44
|
+
prop: 'modelValue',
|
|
45
|
+
event: 'update:modelValue'
|
|
46
|
+
},
|
|
43
47
|
props: {
|
|
44
48
|
modelValue: {
|
|
45
49
|
type: [Boolean, Array],
|
|
46
50
|
default: undefined
|
|
47
51
|
},
|
|
48
52
|
value: {
|
|
49
|
-
type: [Boolean, Array],
|
|
50
|
-
default: undefined
|
|
51
|
-
},
|
|
52
|
-
inputValue: {
|
|
53
53
|
type: String,
|
|
54
54
|
default: undefined
|
|
55
55
|
},
|
|
@@ -74,7 +74,7 @@ var script = defineComponent({
|
|
|
74
74
|
default: false
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
emits: ['update:modelValue', '
|
|
77
|
+
emits: ['update:modelValue', 'focus', 'blur'],
|
|
78
78
|
expose: ['root', 'focus', 'blur'],
|
|
79
79
|
setup(props, context) {
|
|
80
80
|
// Refs
|
|
@@ -89,13 +89,8 @@ var script = defineComponent({
|
|
|
89
89
|
...useControlAttributes()
|
|
90
90
|
});
|
|
91
91
|
const proxyModelValue = computed({
|
|
92
|
-
get: () =>
|
|
93
|
-
var _a;
|
|
94
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
95
|
-
},
|
|
96
|
-
|
|
92
|
+
get: () => props.modelValue,
|
|
97
93
|
set: value => {
|
|
98
|
-
context.emit('input', value);
|
|
99
94
|
context.emit('update:modelValue', value);
|
|
100
95
|
}
|
|
101
96
|
});
|
|
@@ -148,8 +143,8 @@ var __vue_render__ = function () {
|
|
|
148
143
|
"type": "checkbox"
|
|
149
144
|
},
|
|
150
145
|
domProps: {
|
|
151
|
-
"value": _vm.
|
|
152
|
-
"checked": Array.isArray(_vm.proxyModelValue) ? _vm._i(_vm.proxyModelValue, _vm.
|
|
146
|
+
"value": _vm.value,
|
|
147
|
+
"checked": Array.isArray(_vm.proxyModelValue) ? _vm._i(_vm.proxyModelValue, _vm.value) > -1 : _vm.proxyModelValue
|
|
153
148
|
},
|
|
154
149
|
on: {
|
|
155
150
|
"focus": function ($event) {
|
|
@@ -163,7 +158,7 @@ var __vue_render__ = function () {
|
|
|
163
158
|
$$el = $event.target,
|
|
164
159
|
$$c = $$el.checked ? true : false;
|
|
165
160
|
if (Array.isArray($$a)) {
|
|
166
|
-
var $$v = _vm.
|
|
161
|
+
var $$v = _vm.value,
|
|
167
162
|
$$i = _vm._i($$a, $$v);
|
|
168
163
|
if ($$el.checked) {
|
|
169
164
|
$$i < 0 && (_vm.proxyModelValue = $$a.concat([$$v]));
|
|
@@ -198,14 +193,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
198
193
|
/* style */
|
|
199
194
|
const __vue_inject_styles__ = function (inject) {
|
|
200
195
|
if (!inject) return;
|
|
201
|
-
inject("data-v-
|
|
202
|
-
source: "input[data-v-
|
|
196
|
+
inject("data-v-164ddd6c_0", {
|
|
197
|
+
source: "input[data-v-164ddd6c]{appearance:none;line-height:0}",
|
|
203
198
|
map: undefined,
|
|
204
199
|
media: undefined
|
|
205
200
|
});
|
|
206
201
|
};
|
|
207
202
|
/* scoped */
|
|
208
|
-
const __vue_scope_id__ = "data-v-
|
|
203
|
+
const __vue_scope_id__ = "data-v-164ddd6c";
|
|
209
204
|
/* module identifier */
|
|
210
205
|
const __vue_module_identifier__ = undefined;
|
|
211
206
|
/* functional template */
|
|
@@ -3,7 +3,7 @@ import { l as logicAnd } from './index-17f264f9.js';
|
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
4
|
import { O as OrOverlay } from './OrOverlay-efa7992e.js';
|
|
5
5
|
import { O as OrButton, a as ButtonColor } from './OrButton-d45772c1.js';
|
|
6
|
-
import { O as OrInput } from './OrInput-
|
|
6
|
+
import { O as OrInput } from './OrInput-5404a234.js';
|
|
7
7
|
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
9
|
|
|
@@ -51,15 +51,15 @@ var script = defineComponent({
|
|
|
51
51
|
OrIconButton,
|
|
52
52
|
OrInlineInputBox
|
|
53
53
|
},
|
|
54
|
+
model: {
|
|
55
|
+
prop: 'modelValue',
|
|
56
|
+
event: 'update:modelValue'
|
|
57
|
+
},
|
|
54
58
|
props: {
|
|
55
59
|
modelValue: {
|
|
56
60
|
type: [String, Number],
|
|
57
61
|
default: undefined
|
|
58
62
|
},
|
|
59
|
-
value: {
|
|
60
|
-
type: [String, Number],
|
|
61
|
-
default: undefined
|
|
62
|
-
},
|
|
63
63
|
saveOnBlur: {
|
|
64
64
|
type: Boolean,
|
|
65
65
|
default: false
|
|
@@ -85,7 +85,7 @@ var script = defineComponent({
|
|
|
85
85
|
default: undefined
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
emits: ['update:modelValue', '
|
|
88
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
89
89
|
expose: ['root', 'focus', 'blur'],
|
|
90
90
|
setup(props, context) {
|
|
91
91
|
// Refs
|
|
@@ -102,13 +102,8 @@ var script = defineComponent({
|
|
|
102
102
|
...useValidationAttributes()
|
|
103
103
|
});
|
|
104
104
|
const proxyModelValue = computed({
|
|
105
|
-
get: () =>
|
|
106
|
-
var _a;
|
|
107
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
108
|
-
},
|
|
109
|
-
|
|
105
|
+
get: () => props.modelValue,
|
|
110
106
|
set: value => {
|
|
111
|
-
context.emit('input', value);
|
|
112
107
|
context.emit('update:modelValue', value);
|
|
113
108
|
}
|
|
114
109
|
});
|
|
@@ -353,14 +348,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
353
348
|
/* style */
|
|
354
349
|
const __vue_inject_styles__ = function (inject) {
|
|
355
350
|
if (!inject) return;
|
|
356
|
-
inject("data-v-
|
|
357
|
-
source: "input[data-v-
|
|
351
|
+
inject("data-v-a3451ac6_0", {
|
|
352
|
+
source: "input[data-v-a3451ac6]{min-width:0;background:0 0;outline:0}input[type=number][data-v-a3451ac6]::-webkit-inner-spin-button{display:none}input[type=search][data-v-a3451ac6]::-webkit-search-cancel-button{display:none}",
|
|
358
353
|
map: undefined,
|
|
359
354
|
media: undefined
|
|
360
355
|
});
|
|
361
356
|
};
|
|
362
357
|
/* scoped */
|
|
363
|
-
const __vue_scope_id__ = "data-v-
|
|
358
|
+
const __vue_scope_id__ = "data-v-a3451ac6";
|
|
364
359
|
/* module identifier */
|
|
365
360
|
const __vue_module_identifier__ = undefined;
|
|
366
361
|
/* functional template */
|
|
@@ -37,15 +37,15 @@ var script = defineComponent({
|
|
|
37
37
|
OrIconButton,
|
|
38
38
|
OrInlineInputBox
|
|
39
39
|
},
|
|
40
|
+
model: {
|
|
41
|
+
prop: 'modelValue',
|
|
42
|
+
event: 'update:modelValue'
|
|
43
|
+
},
|
|
40
44
|
props: {
|
|
41
45
|
modelValue: {
|
|
42
46
|
type: String,
|
|
43
47
|
default: undefined
|
|
44
48
|
},
|
|
45
|
-
value: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: undefined
|
|
48
|
-
},
|
|
49
49
|
saveOnBlur: {
|
|
50
50
|
type: Boolean,
|
|
51
51
|
default: false
|
|
@@ -63,7 +63,7 @@ var script = defineComponent({
|
|
|
63
63
|
default: undefined
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
emits: ['update:modelValue', '
|
|
66
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
67
67
|
expose: ['root', 'focus', 'blur'],
|
|
68
68
|
setup(props, context) {
|
|
69
69
|
// Refs
|
|
@@ -80,13 +80,8 @@ var script = defineComponent({
|
|
|
80
80
|
...useValidationAttributes()
|
|
81
81
|
});
|
|
82
82
|
const proxyModelValue = computed({
|
|
83
|
-
get: () =>
|
|
84
|
-
var _a;
|
|
85
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
86
|
-
},
|
|
87
|
-
|
|
83
|
+
get: () => props.modelValue,
|
|
88
84
|
set: value => {
|
|
89
|
-
context.emit('input', value);
|
|
90
85
|
context.emit('update:modelValue', value);
|
|
91
86
|
}
|
|
92
87
|
});
|
|
@@ -257,14 +252,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
257
252
|
/* style */
|
|
258
253
|
const __vue_inject_styles__ = function (inject) {
|
|
259
254
|
if (!inject) return;
|
|
260
|
-
inject("data-v-
|
|
261
|
-
source: "textarea[data-v-
|
|
255
|
+
inject("data-v-03ea829d_0", {
|
|
256
|
+
source: "textarea[data-v-03ea829d]{min-width:0;background:0 0;outline:0}",
|
|
262
257
|
map: undefined,
|
|
263
258
|
media: undefined
|
|
264
259
|
});
|
|
265
260
|
};
|
|
266
261
|
/* scoped */
|
|
267
|
-
const __vue_scope_id__ = "data-v-
|
|
262
|
+
const __vue_scope_id__ = "data-v-03ea829d";
|
|
268
263
|
/* module identifier */
|
|
269
264
|
const __vue_module_identifier__ = undefined;
|
|
270
265
|
/* functional template */
|
|
@@ -42,15 +42,15 @@ var script = defineComponent({
|
|
|
42
42
|
OrInputBox,
|
|
43
43
|
OrLabel
|
|
44
44
|
},
|
|
45
|
+
model: {
|
|
46
|
+
prop: 'modelValue',
|
|
47
|
+
event: 'update:modelValue'
|
|
48
|
+
},
|
|
45
49
|
props: {
|
|
46
50
|
modelValue: {
|
|
47
51
|
type: [String, Number],
|
|
48
52
|
default: undefined
|
|
49
53
|
},
|
|
50
|
-
value: {
|
|
51
|
-
type: [String, Number],
|
|
52
|
-
default: undefined
|
|
53
|
-
},
|
|
54
54
|
type: {
|
|
55
55
|
type: String,
|
|
56
56
|
default: InputType.Text
|
|
@@ -92,7 +92,7 @@ var script = defineComponent({
|
|
|
92
92
|
default: false
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
|
-
emits: ['update:modelValue', '
|
|
95
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
96
96
|
expose: ['root', 'focus', 'blur'],
|
|
97
97
|
setup(props, context) {
|
|
98
98
|
// Refs
|
|
@@ -108,13 +108,8 @@ var script = defineComponent({
|
|
|
108
108
|
...useValidationAttributes()
|
|
109
109
|
});
|
|
110
110
|
const proxyModelValue = computed({
|
|
111
|
-
get: () =>
|
|
112
|
-
var _a;
|
|
113
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
114
|
-
},
|
|
115
|
-
|
|
111
|
+
get: () => props.modelValue,
|
|
116
112
|
set: value => {
|
|
117
|
-
context.emit('input', value);
|
|
118
113
|
context.emit('update:modelValue', value);
|
|
119
114
|
}
|
|
120
115
|
});
|
|
@@ -371,14 +366,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
371
366
|
/* style */
|
|
372
367
|
const __vue_inject_styles__ = function (inject) {
|
|
373
368
|
if (!inject) return;
|
|
374
|
-
inject("data-v-
|
|
375
|
-
source: "input[data-v-
|
|
369
|
+
inject("data-v-1243ae22_0", {
|
|
370
|
+
source: "input[data-v-1243ae22]{min-width:0;background:0 0;outline:0}input[type=number][data-v-1243ae22]::-webkit-inner-spin-button{display:none}input[type=search][data-v-1243ae22]::-webkit-search-cancel-button{display:none}",
|
|
376
371
|
map: undefined,
|
|
377
372
|
media: undefined
|
|
378
373
|
});
|
|
379
374
|
};
|
|
380
375
|
/* scoped */
|
|
381
|
-
const __vue_scope_id__ = "data-v-
|
|
376
|
+
const __vue_scope_id__ = "data-v-1243ae22";
|
|
382
377
|
/* module identifier */
|
|
383
378
|
const __vue_module_identifier__ = undefined;
|
|
384
379
|
/* functional template */
|
|
@@ -39,15 +39,15 @@ var script = defineComponent({
|
|
|
39
39
|
OrMenu,
|
|
40
40
|
OrMenuItem
|
|
41
41
|
},
|
|
42
|
+
model: {
|
|
43
|
+
prop: 'modelValue',
|
|
44
|
+
event: 'update:modelValue'
|
|
45
|
+
},
|
|
42
46
|
props: {
|
|
43
47
|
modelValue: {
|
|
44
48
|
type: Object,
|
|
45
49
|
default: undefined
|
|
46
50
|
},
|
|
47
|
-
value: {
|
|
48
|
-
type: Object,
|
|
49
|
-
default: undefined
|
|
50
|
-
},
|
|
51
51
|
length: {
|
|
52
52
|
type: Number,
|
|
53
53
|
required: true
|
|
@@ -57,7 +57,7 @@ var script = defineComponent({
|
|
|
57
57
|
default: () => [50, 20, 10, 5]
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
emits: ['update:modelValue'
|
|
60
|
+
emits: ['update:modelValue'],
|
|
61
61
|
expose: ['root'],
|
|
62
62
|
setup(props, context) {
|
|
63
63
|
// Refs
|
|
@@ -79,13 +79,8 @@ var script = defineComponent({
|
|
|
79
79
|
const itemStyles = computed(() => [...PaginationItem]);
|
|
80
80
|
// State
|
|
81
81
|
const proxyModelValue = computed({
|
|
82
|
-
get: () =>
|
|
83
|
-
var _a;
|
|
84
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
85
|
-
},
|
|
86
|
-
|
|
82
|
+
get: () => props.modelValue,
|
|
87
83
|
set: value => {
|
|
88
|
-
context.emit('input', value);
|
|
89
84
|
context.emit('update:modelValue', value);
|
|
90
85
|
}
|
|
91
86
|
});
|
|
@@ -114,9 +109,7 @@ var script = defineComponent({
|
|
|
114
109
|
}
|
|
115
110
|
});
|
|
116
111
|
const currentPage = computed({
|
|
117
|
-
get: () =>
|
|
118
|
-
return Math.floor(currentOffset.value / currentLimit.value) + 1;
|
|
119
|
-
},
|
|
112
|
+
get: () => Math.floor(currentOffset.value / currentLimit.value) + 1,
|
|
120
113
|
set: value => {
|
|
121
114
|
currentOffset.value = (value - 1) * currentLimit.value;
|
|
122
115
|
}
|
|
@@ -40,16 +40,16 @@ var script = defineComponent({
|
|
|
40
40
|
components: {
|
|
41
41
|
OrLabel
|
|
42
42
|
},
|
|
43
|
+
model: {
|
|
44
|
+
prop: 'modelValue',
|
|
45
|
+
event: 'update:modelValue'
|
|
46
|
+
},
|
|
43
47
|
props: {
|
|
44
48
|
modelValue: {
|
|
45
49
|
type: String,
|
|
46
50
|
default: undefined
|
|
47
51
|
},
|
|
48
52
|
value: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: undefined
|
|
51
|
-
},
|
|
52
|
-
inputValue: {
|
|
53
53
|
type: String,
|
|
54
54
|
required: true
|
|
55
55
|
},
|
|
@@ -70,7 +70,7 @@ var script = defineComponent({
|
|
|
70
70
|
default: false
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
emits: ['update:modelValue', '
|
|
73
|
+
emits: ['update:modelValue', 'focus', 'blur'],
|
|
74
74
|
expose: ['root', 'focus', 'blur'],
|
|
75
75
|
setup(props, context) {
|
|
76
76
|
// Refs
|
|
@@ -85,13 +85,8 @@ var script = defineComponent({
|
|
|
85
85
|
...useControlAttributes()
|
|
86
86
|
});
|
|
87
87
|
const proxyModelValue = computed({
|
|
88
|
-
get: () =>
|
|
89
|
-
var _a;
|
|
90
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
91
|
-
},
|
|
92
|
-
|
|
88
|
+
get: () => props.modelValue,
|
|
93
89
|
set: value => {
|
|
94
|
-
context.emit('input', value);
|
|
95
90
|
context.emit('update:modelValue', value);
|
|
96
91
|
}
|
|
97
92
|
});
|
|
@@ -143,8 +138,8 @@ var __vue_render__ = function () {
|
|
|
143
138
|
"disabled": _vm.disabled
|
|
144
139
|
},
|
|
145
140
|
domProps: {
|
|
146
|
-
"value": _vm.
|
|
147
|
-
"checked": _vm._q(_vm.proxyModelValue, _vm.
|
|
141
|
+
"value": _vm.value,
|
|
142
|
+
"checked": _vm._q(_vm.proxyModelValue, _vm.value)
|
|
148
143
|
},
|
|
149
144
|
on: {
|
|
150
145
|
"focus": function ($event) {
|
|
@@ -154,7 +149,7 @@ var __vue_render__ = function () {
|
|
|
154
149
|
return _vm.$emit('blur', $event);
|
|
155
150
|
},
|
|
156
151
|
"change": function ($event) {
|
|
157
|
-
_vm.proxyModelValue = _vm.
|
|
152
|
+
_vm.proxyModelValue = _vm.value;
|
|
158
153
|
}
|
|
159
154
|
}
|
|
160
155
|
}, 'input', _vm.controlAttributes, false)), _vm._v(" "), _vm.$slots.default || _vm.label ? [_c('OrLabel', {
|
|
@@ -180,14 +175,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
180
175
|
/* style */
|
|
181
176
|
const __vue_inject_styles__ = function (inject) {
|
|
182
177
|
if (!inject) return;
|
|
183
|
-
inject("data-v-
|
|
184
|
-
source: "input[data-v-
|
|
178
|
+
inject("data-v-623ca300_0", {
|
|
179
|
+
source: "input[data-v-623ca300]{appearance:none;line-height:0}",
|
|
185
180
|
map: undefined,
|
|
186
181
|
media: undefined
|
|
187
182
|
});
|
|
188
183
|
};
|
|
189
184
|
/* scoped */
|
|
190
|
-
const __vue_scope_id__ = "data-v-
|
|
185
|
+
const __vue_scope_id__ = "data-v-623ca300";
|
|
191
186
|
/* module identifier */
|
|
192
187
|
const __vue_module_identifier__ = undefined;
|
|
193
188
|
/* functional template */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { debouncedWatch } from '@vueuse/core';
|
|
2
2
|
import './index-fa6eb4ca.js';
|
|
3
|
-
import { O as OrInput } from './OrInput-
|
|
3
|
+
import { O as OrInput } from './OrInput-5404a234.js';
|
|
4
4
|
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
5
|
import { a as InputBoxSize } from './OrInputBox-2f559e98.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -136,6 +136,10 @@ var script = defineComponent({
|
|
|
136
136
|
components: {
|
|
137
137
|
OrSegmentedControlItem
|
|
138
138
|
},
|
|
139
|
+
model: {
|
|
140
|
+
prop: 'modelValue',
|
|
141
|
+
event: 'update:modelValue'
|
|
142
|
+
},
|
|
139
143
|
props: {
|
|
140
144
|
options: {
|
|
141
145
|
type: Array,
|
|
@@ -145,10 +149,6 @@ var script = defineComponent({
|
|
|
145
149
|
type: String,
|
|
146
150
|
default: undefined
|
|
147
151
|
},
|
|
148
|
-
value: {
|
|
149
|
-
type: String,
|
|
150
|
-
default: undefined
|
|
151
|
-
},
|
|
152
152
|
size: {
|
|
153
153
|
type: String,
|
|
154
154
|
default: SegmentedControlSize.M
|
|
@@ -158,7 +158,7 @@ var script = defineComponent({
|
|
|
158
158
|
default: false
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
|
-
emits: ['update:modelValue'
|
|
161
|
+
emits: ['update:modelValue'],
|
|
162
162
|
expose: ['root'],
|
|
163
163
|
setup(props, context) {
|
|
164
164
|
// Refs
|
|
@@ -167,13 +167,8 @@ var script = defineComponent({
|
|
|
167
167
|
const rootStyles = computed(() => ['or-segmented-control', ...SegmentedControlRoot, ...SegmentedControlRootSizes[props.size]]);
|
|
168
168
|
// State
|
|
169
169
|
const proxyModelValue = computed({
|
|
170
|
-
get: () =>
|
|
171
|
-
var _a;
|
|
172
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
173
|
-
},
|
|
174
|
-
|
|
170
|
+
get: () => props.modelValue,
|
|
175
171
|
set: value => {
|
|
176
|
-
context.emit('input', value);
|
|
177
172
|
context.emit('update:modelValue', value);
|
|
178
173
|
}
|
|
179
174
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrCheckbox } from './OrCheckbox-
|
|
2
|
+
import { O as OrCheckbox } from './OrCheckbox-9be450f9.js';
|
|
3
3
|
import { O as OrError } from './OrError-52f668a4.js';
|
|
4
4
|
import { O as OrExpansionPanel } from './OrExpansionPanel-96b8f568.js';
|
|
5
5
|
import { O as OrHint } from './OrHint-fde53334.js';
|
|
6
6
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
7
|
-
import { O as OrInput } from './OrInput-
|
|
7
|
+
import { O as OrInput } from './OrInput-5404a234.js';
|
|
8
8
|
import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-2f559e98.js';
|
|
9
9
|
import { O as OrLabel } from './OrLabel-aff09c39.js';
|
|
10
10
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
@@ -70,6 +70,10 @@ var script = defineComponent({
|
|
|
70
70
|
DropdownClose,
|
|
71
71
|
DropdownOpen
|
|
72
72
|
},
|
|
73
|
+
model: {
|
|
74
|
+
prop: 'modelValue',
|
|
75
|
+
event: 'update:modelValue'
|
|
76
|
+
},
|
|
73
77
|
props: {
|
|
74
78
|
options: {
|
|
75
79
|
type: Array,
|
|
@@ -83,10 +87,6 @@ var script = defineComponent({
|
|
|
83
87
|
type: [String, Number, Array],
|
|
84
88
|
default: undefined
|
|
85
89
|
},
|
|
86
|
-
value: {
|
|
87
|
-
type: [String, Number, Array],
|
|
88
|
-
default: undefined
|
|
89
|
-
},
|
|
90
90
|
multiple: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: false
|
|
@@ -144,7 +144,7 @@ var script = defineComponent({
|
|
|
144
144
|
default: false
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
-
emits: ['update:modelValue', '
|
|
147
|
+
emits: ['update:modelValue', 'focus', 'blur', 'search'],
|
|
148
148
|
expose: ['root'],
|
|
149
149
|
setup(props, context) {
|
|
150
150
|
var _a;
|
|
@@ -175,13 +175,8 @@ var script = defineComponent({
|
|
|
175
175
|
// State
|
|
176
176
|
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
177
177
|
const proxyModelValue = computed({
|
|
178
|
-
get: () =>
|
|
179
|
-
var _a;
|
|
180
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
181
|
-
},
|
|
182
|
-
|
|
178
|
+
get: () => props.modelValue,
|
|
183
179
|
set: value => {
|
|
184
|
-
context.emit('input', value);
|
|
185
180
|
context.emit('update:modelValue', value);
|
|
186
181
|
}
|
|
187
182
|
});
|
|
@@ -416,7 +411,7 @@ var __vue_render__ = function () {
|
|
|
416
411
|
}, [_vm._t("optionTemplate", function () {
|
|
417
412
|
return [_c('OrCheckbox', {
|
|
418
413
|
attrs: {
|
|
419
|
-
"
|
|
414
|
+
"value": option.value,
|
|
420
415
|
"label": option.label,
|
|
421
416
|
"label-variant": 'input'
|
|
422
417
|
},
|
|
@@ -455,7 +450,7 @@ var __vue_render__ = function () {
|
|
|
455
450
|
}, [_vm._t("optionTemplate", function () {
|
|
456
451
|
return [_c('OrCheckbox', {
|
|
457
452
|
attrs: {
|
|
458
|
-
"
|
|
453
|
+
"value": option.value,
|
|
459
454
|
"label": option.label,
|
|
460
455
|
"label-variant": 'input'
|
|
461
456
|
},
|
|
@@ -22,21 +22,21 @@ var script = defineComponent({
|
|
|
22
22
|
components: {
|
|
23
23
|
OrIcon
|
|
24
24
|
},
|
|
25
|
+
model: {
|
|
26
|
+
prop: 'modelValue',
|
|
27
|
+
event: 'update:modelValue'
|
|
28
|
+
},
|
|
25
29
|
props: {
|
|
26
30
|
modelValue: {
|
|
27
31
|
type: Object,
|
|
28
32
|
default: undefined
|
|
29
33
|
},
|
|
30
34
|
value: {
|
|
31
|
-
type: Object,
|
|
32
|
-
default: undefined
|
|
33
|
-
},
|
|
34
|
-
inputValue: {
|
|
35
35
|
type: String,
|
|
36
36
|
required: true
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
emits: ['update:modelValue', '
|
|
39
|
+
emits: ['update:modelValue', 'focus', 'blur'],
|
|
40
40
|
expose: ['root'],
|
|
41
41
|
setup(props, context) {
|
|
42
42
|
// Refs
|
|
@@ -45,25 +45,20 @@ var script = defineComponent({
|
|
|
45
45
|
const rootStyles = computed(() => ['or-sort-header', ...SortHeaderRoot]);
|
|
46
46
|
// State
|
|
47
47
|
const proxyModelValue = computed({
|
|
48
|
-
get: () =>
|
|
49
|
-
var _a;
|
|
50
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
51
|
-
},
|
|
52
|
-
|
|
48
|
+
get: () => props.modelValue,
|
|
53
49
|
set: value => {
|
|
54
|
-
context.emit('input', value);
|
|
55
50
|
context.emit('update:modelValue', value);
|
|
56
51
|
}
|
|
57
52
|
});
|
|
58
53
|
const activated = computed(() => {
|
|
59
54
|
var _a;
|
|
60
|
-
return ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.column) === props.
|
|
55
|
+
return ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.column) === props.value;
|
|
61
56
|
});
|
|
62
57
|
// Methods
|
|
63
58
|
function toggleDirection() {
|
|
64
59
|
var _a;
|
|
65
60
|
proxyModelValue.value = {
|
|
66
|
-
column: props.
|
|
61
|
+
column: props.value,
|
|
67
62
|
direction: ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.direction) === 'asc' ? 'desc' : 'asc'
|
|
68
63
|
};
|
|
69
64
|
}
|