@onereach/ui-components 2.70.2-beta.2199.0 → 2.70.2-beta.2203.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-1bb83cfb.js → OrCardCollection-0141a358.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-251ecafc.js → OrCheckbox-dbef9f9a.js} +17 -32
- package/dist/bundled/v2/{OrConfirm-4cae7867.js → OrConfirm-057e997e.js} +13 -6
- package/dist/bundled/v2/{OrInlineInput-2133e469.js → OrInlineInput-87589946.js} +22 -38
- package/dist/bundled/v2/{OrInlineTextarea-d61ca596.js → OrInlineTextarea-21b0e6fc.js} +18 -34
- package/dist/bundled/v2/{OrInput-770f1bed.js → OrInput-82ccfe00.js} +30 -38
- package/dist/bundled/v2/{OrPagination-468d0964.js → OrPagination-379c10b8.js} +1 -1
- package/dist/bundled/v2/{OrRadio-ae89bc9b.js → OrRadio-cd39b20b.js} +15 -30
- package/dist/bundled/v2/{OrSearch-2e5f9e24.js → OrSearch-53470b0e.js} +1 -1
- package/dist/bundled/v2/{OrSelect-039c0711.js → OrSelect-c49e1bcf.js} +2 -2
- package/dist/bundled/v2/{OrSwitch-20640a05.js → OrSwitch-237a2081.js} +15 -30
- package/dist/bundled/v2/{OrTabs-85aefcba.js → OrTabs-42f7c52c.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-0ff8063b.js → OrTextarea-5593fbe9.js} +20 -39
- package/dist/bundled/v2/components/index.js +13 -15
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -5
- package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -6
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -3
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/bundled/v2/components/or-input-v3/index.js +1 -3
- package/dist/bundled/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/bundled/v2/components/or-radio-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +2 -4
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -5
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/bundled/v2/components/or-switch-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/bundled/v2/components/or-textarea-v3/index.js +1 -3
- package/dist/bundled/v2/hooks/index.d.ts +0 -3
- package/dist/bundled/v2/hooks/index.js +0 -2
- package/dist/bundled/v2/index.js +14 -16
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-a0f29a55.js → OrCardCollection.vue_vue_type_script_lang-2d78a51a.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-2024ec32.js → OrCheckbox.vue_vue_type_script_lang-8b36e06c.js} +7 -22
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-7d9d3810.js → OrConfirm.vue_vue_type_script_lang-9d9a3917.js} +14 -7
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-40f0073f.js → OrInlineInput.vue_vue_type_script_lang-67218502.js} +11 -27
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-2817edd5.js → OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js} +11 -27
- package/dist/bundled/v3/{OrInput-e325a104.js → OrInput-a4f220ed.js} +12 -12
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-fd850b82.js → OrInput.vue_vue_type_script_lang-607d79d4.js} +15 -26
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-0d9daaa7.js → OrPagination.vue_vue_type_script_lang-c96d7cd7.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-29e8b856.js → OrRadio.vue_vue_type_script_lang-2e666a56.js} +7 -22
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-480f4b1c.js → OrSearch.vue_vue_type_script_lang-06f318ca.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-7aa8956a.js → OrSelect.vue_vue_type_script_lang-58e5a52b.js} +15 -17
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-02b4913a.js → OrSwitch.vue_vue_type_script_lang-04829f64.js} +7 -22
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-01188224.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-2fdac7b2.js → OrTextarea.vue_vue_type_script_lang-8e3531cd.js} +12 -31
- package/dist/bundled/v3/components/index.js +14 -16
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -6
- package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -6
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/bundled/v3/components/or-input-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/bundled/v3/components/or-radio-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +3 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +4 -6
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/bundled/v3/components/or-switch-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/bundled/v3/components/or-textarea-v3/index.js +1 -3
- package/dist/bundled/v3/hooks/index.d.ts +0 -3
- package/dist/bundled/v3/hooks/index.js +0 -2
- package/dist/bundled/v3/index.js +69 -77
- package/dist/esm/v2/{OrCardCollection-784318ac.js → OrCardCollection-3c38fc85.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-7317fe1a.js → OrCheckbox-567e387c.js} +17 -32
- package/dist/esm/v2/{OrConfirm-3d064f6c.js → OrConfirm-047d4086.js} +13 -6
- package/dist/esm/v2/{OrInlineInput-7c4f1f92.js → OrInlineInput-10205811.js} +22 -38
- package/dist/esm/v2/{OrInlineTextarea-3381e2a9.js → OrInlineTextarea-7658611e.js} +18 -34
- package/dist/esm/v2/{OrInput-e10cc643.js → OrInput-ada3a970.js} +30 -38
- package/dist/esm/v2/{OrPagination-291bd1b9.js → OrPagination-c0dbec6a.js} +1 -1
- package/dist/esm/v2/{OrRadio-b0a560d2.js → OrRadio-848ce55d.js} +15 -30
- package/dist/esm/v2/{OrSearch-1490c00b.js → OrSearch-0f08f2f5.js} +1 -1
- package/dist/esm/v2/{OrSelect-1fbeed4f.js → OrSelect-1d705445.js} +2 -2
- package/dist/esm/v2/{OrSwitch-133052ca.js → OrSwitch-13b6a7ee.js} +15 -30
- package/dist/esm/v2/{OrTabs-e5b81f4b.js → OrTabs-71bd3fd2.js} +1 -1
- package/dist/esm/v2/{OrTextarea-a7c846da.js → OrTextarea-6712a150.js} +20 -39
- package/dist/esm/v2/components/index.js +13 -15
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -5
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +8 -10
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -3
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/esm/v2/components/or-input-v3/index.js +1 -3
- package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -2
- package/dist/esm/v2/components/or-search-v3/index.js +2 -4
- package/dist/esm/v2/components/or-select-v3/index.js +3 -5
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/esm/v2/components/or-textarea-v3/index.js +1 -3
- package/dist/esm/v2/hooks/index.d.ts +0 -3
- package/dist/esm/v2/hooks/index.js +0 -2
- package/dist/esm/v2/index.js +13 -15
- package/dist/esm/v3/{OrCardCollection-110b3a0b.js → OrCardCollection-dbb3e839.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-7144da06.js → OrCheckbox-3e139eac.js} +19 -36
- package/dist/esm/v3/{OrConfirm-1a38ed1b.js → OrConfirm-fee3c859.js} +13 -6
- package/dist/esm/v3/{OrInlineInput-a6b19dbe.js → OrInlineInput-507fc99c.js} +20 -37
- package/dist/esm/v3/{OrInlineTextarea-9eb60363.js → OrInlineTextarea-53a9e027.js} +20 -37
- package/dist/esm/v3/{OrInput-e07ec00c.js → OrInput-9c0426b9.js} +26 -37
- package/dist/esm/v3/{OrPagination-5e01a0a5.js → OrPagination-a703307d.js} +1 -1
- package/dist/esm/v3/{OrRadio-39d1905d.js → OrRadio-54b6d0de.js} +17 -34
- package/dist/esm/v3/{OrSearch-a60f67f0.js → OrSearch-9885d178.js} +1 -1
- package/dist/esm/v3/{OrSelect-2c70e384.js → OrSelect-dfa4885f.js} +2 -2
- package/dist/esm/v3/{OrSwitch-3e9a699d.js → OrSwitch-cca30aa0.js} +18 -34
- package/dist/esm/v3/{OrTabs-91618aab.js → OrTabs-d0ee6cef.js} +1 -1
- package/dist/esm/v3/{OrTextarea-fd6b9f31.js → OrTextarea-bb9ef3f2.js} +22 -42
- package/dist/esm/v3/components/index.js +13 -15
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -5
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +7 -9
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -3
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/esm/v3/components/or-input-v3/index.js +1 -3
- package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -2
- package/dist/esm/v3/components/or-search-v3/index.js +2 -4
- package/dist/esm/v3/components/or-select-v3/index.js +3 -5
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -3
- package/dist/esm/v3/hooks/index.d.ts +0 -3
- package/dist/esm/v3/hooks/index.js +0 -2
- package/dist/esm/v3/index.js +13 -15
- package/package.json +1 -1
- package/src/components/or-checkbox-v3/OrCheckbox.vue +10 -28
- package/src/components/or-confirm-v3/OrConfirm.vue +11 -10
- package/src/components/or-confirm-v3/styles.ts +13 -3
- package/src/components/or-inline-input-v3/OrInlineInput.vue +13 -32
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +13 -32
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -4
- package/src/components/or-input-v3/OrInput.vue +19 -31
- package/src/components/or-pagination-v3/OrPagination.vue +1 -1
- package/src/components/or-radio-v3/OrRadio.vue +9 -27
- package/src/components/or-switch-v3/OrSwitch.vue +9 -27
- package/src/components/or-tabs-v3/OrTabs.vue +1 -1
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +4 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +14 -36
- package/src/hooks/index.ts +0 -3
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +0 -8
- package/dist/bundled/v2/hooks/useIdAttribute.d.ts +0 -2
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/bundled/v2/useIdAttribute-cf61643f.js +0 -22
- package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +0 -17
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +0 -8
- package/dist/bundled/v3/hooks/useIdAttribute.d.ts +0 -2
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/bundled/v3/useIdAttribute-b2e42f31.js +0 -21
- package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +0 -16
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +0 -8
- package/dist/esm/v2/hooks/useIdAttribute.d.ts +0 -2
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/esm/v2/useIdAttribute-859439f0.js +0 -21
- package/dist/esm/v2/useValidationAttributes-d1abbe34.js +0 -16
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +0 -8
- package/dist/esm/v3/hooks/useIdAttribute.d.ts +0 -2
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/esm/v3/useIdAttribute-859439f0.js +0 -21
- package/dist/esm/v3/useValidationAttributes-d1abbe34.js +0 -16
- package/src/hooks/useControlAttributes.ts +0 -19
- package/src/hooks/useIdAttribute.ts +0 -9
- package/src/hooks/useValidationAttributes.ts +0 -25
|
@@ -7,7 +7,7 @@ import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
|
|
|
7
7
|
import './OrMenuItem-4feaba6c.js';
|
|
8
8
|
import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
|
|
9
9
|
import './OrIcon-d878b768.js';
|
|
10
|
-
import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-
|
|
10
|
+
import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-06f318ca.js';
|
|
11
11
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
12
12
|
import { s as script$4 } from './OrButton.vue_vue_type_script_lang-8c44986c.js';
|
|
13
13
|
import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed } from 'vue';
|
|
2
2
|
import './OrLabel-c6873e79.js';
|
|
3
3
|
import { s as script$1, L as LabelVariant } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
4
4
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
5
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
6
5
|
|
|
7
6
|
const CheckboxRoot = [
|
|
8
7
|
// Layout
|
|
@@ -75,20 +74,18 @@ var script = defineComponent({
|
|
|
75
74
|
}
|
|
76
75
|
},
|
|
77
76
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
78
|
-
expose: ['root'
|
|
77
|
+
expose: ['root'],
|
|
79
78
|
setup(props, context) {
|
|
79
|
+
var _a;
|
|
80
|
+
const currentInstance = getCurrentInstance();
|
|
80
81
|
// Refs
|
|
81
82
|
const root = ref();
|
|
82
|
-
const control = ref();
|
|
83
83
|
// Styles
|
|
84
84
|
const classAttribute = useClassAttribute();
|
|
85
85
|
const rootStyles = computed(() => ['or-checkbox', ...CheckboxRoot, classAttribute.value]);
|
|
86
86
|
const controlStyles = computed(() => [...CheckboxControl, ...CheckboxControlHandle]);
|
|
87
87
|
// State
|
|
88
|
-
const
|
|
89
|
-
id: useIdAttribute(),
|
|
90
|
-
...useControlAttributes()
|
|
91
|
-
});
|
|
88
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
92
89
|
const proxyModelValue = computed({
|
|
93
90
|
get: () => {
|
|
94
91
|
var _a;
|
|
@@ -100,24 +97,12 @@ var script = defineComponent({
|
|
|
100
97
|
context.emit('update:modelValue', value);
|
|
101
98
|
}
|
|
102
99
|
});
|
|
103
|
-
// Methods
|
|
104
|
-
function focus() {
|
|
105
|
-
var _a;
|
|
106
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
107
|
-
}
|
|
108
|
-
function blur() {
|
|
109
|
-
var _a;
|
|
110
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
111
|
-
}
|
|
112
100
|
return {
|
|
113
101
|
root,
|
|
114
|
-
control,
|
|
115
102
|
rootStyles,
|
|
116
103
|
controlStyles,
|
|
117
|
-
|
|
118
|
-
proxyModelValue
|
|
119
|
-
focus,
|
|
120
|
-
blur
|
|
104
|
+
controlId,
|
|
105
|
+
proxyModelValue
|
|
121
106
|
};
|
|
122
107
|
}
|
|
123
108
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMagicKeys, whenever } from '@vueuse/core';
|
|
1
|
+
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
3
2
|
import { l as logicAnd } from './index-01519e46.js';
|
|
3
|
+
import { defineComponent, ref, computed, watch } from 'vue';
|
|
4
4
|
import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
|
|
5
5
|
import './OrButton-2b27c1fd.js';
|
|
6
|
-
import './OrInput-
|
|
6
|
+
import './OrInput-a4f220ed.js';
|
|
7
7
|
import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-8c44986c.js';
|
|
8
8
|
import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
|
|
9
|
-
import { s as script$3 } from './OrInput.vue_vue_type_script_lang-
|
|
9
|
+
import { s as script$3 } from './OrInput.vue_vue_type_script_lang-607d79d4.js';
|
|
10
10
|
|
|
11
11
|
var ConfirmType;
|
|
12
12
|
(function (ConfirmType) {
|
|
@@ -15,12 +15,14 @@ var ConfirmType;
|
|
|
15
15
|
})(ConfirmType || (ConfirmType = {}));
|
|
16
16
|
|
|
17
17
|
const ConfirmRoot = [
|
|
18
|
+
// Position
|
|
19
|
+
'fixed md:static', 'left-none', 'right-none', 'bottom-none',
|
|
18
20
|
// Layout
|
|
19
21
|
'layout-column',
|
|
20
22
|
// Box
|
|
21
|
-
'w-[320px]',
|
|
23
|
+
'w-full md:w-[320px]',
|
|
22
24
|
// Shape
|
|
23
|
-
'rounded-md',
|
|
25
|
+
'rounded-0 md:rounded-md',
|
|
24
26
|
// Spacing
|
|
25
27
|
'px-lg', 'py-lg', 'gap-md',
|
|
26
28
|
// Typography
|
|
@@ -53,8 +55,10 @@ const ConfirmFooterTypes = {
|
|
|
53
55
|
'flex-row-reverse']
|
|
54
56
|
};
|
|
55
57
|
const ConfirmFooterButtons = [
|
|
58
|
+
// Layout
|
|
59
|
+
'grow',
|
|
56
60
|
// Box
|
|
57
|
-
'w-[128px]'];
|
|
61
|
+
'w-auto md:w-[128px]'];
|
|
58
62
|
|
|
59
63
|
var script = defineComponent({
|
|
60
64
|
name: 'OrConfirm',
|
|
@@ -196,6 +200,9 @@ var script = defineComponent({
|
|
|
196
200
|
const inputBoxStyles = computed(() => [...ConfirmInput]);
|
|
197
201
|
const footerStyles = computed(() => [...ConfirmFooter, ...ConfirmFooterTypes[props.confirmType]]);
|
|
198
202
|
const buttonsStyles = computed(() => [...ConfirmFooterButtons]);
|
|
203
|
+
// #region Click Outside
|
|
204
|
+
onClickOutside(root, close);
|
|
205
|
+
// #endregion
|
|
199
206
|
return {
|
|
200
207
|
root,
|
|
201
208
|
confirmationInput,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
3
|
import './OrIconButton-cd62526d.js';
|
|
4
4
|
import './OrInlineInputBox-9d68ded1.js';
|
|
5
5
|
import { s as script$4, I as InlineInputBoxSize } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
|
|
6
6
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
7
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
8
|
-
import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
|
|
9
7
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
10
8
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
11
9
|
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
@@ -88,22 +86,19 @@ var script = defineComponent({
|
|
|
88
86
|
}
|
|
89
87
|
},
|
|
90
88
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
91
|
-
expose: ['root'
|
|
89
|
+
expose: ['root'],
|
|
92
90
|
setup(props, context) {
|
|
91
|
+
var _a;
|
|
92
|
+
const currentInstance = getCurrentInstance();
|
|
93
93
|
// Refs
|
|
94
94
|
const root = ref();
|
|
95
|
-
const control = ref();
|
|
96
95
|
// Styles
|
|
97
96
|
const classAttribute = useClassAttribute();
|
|
98
97
|
const rootStyles = computed(() => ['or-inline-input', ...InlineInputRoot, classAttribute.value]);
|
|
99
98
|
const controlStyles = computed(() => [...InlineInputControl]);
|
|
100
99
|
const actionStyles = computed(() => [...InlineInputAction, ...InlineInputActionSizes[props.size]]);
|
|
101
100
|
// State
|
|
102
|
-
const
|
|
103
|
-
id: useIdAttribute(),
|
|
104
|
-
...useControlAttributes(),
|
|
105
|
-
...useValidationAttributes()
|
|
106
|
-
});
|
|
101
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
107
102
|
const proxyModelValue = computed({
|
|
108
103
|
get: () => {
|
|
109
104
|
var _a;
|
|
@@ -116,13 +111,13 @@ var script = defineComponent({
|
|
|
116
111
|
}
|
|
117
112
|
});
|
|
118
113
|
const draftModelValue = ref('');
|
|
114
|
+
const activated = ref(false);
|
|
115
|
+
const invalid = computed(() => !!props.error);
|
|
119
116
|
const currentLength = computed(() => {
|
|
120
117
|
var _a, _b;
|
|
121
118
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
122
119
|
});
|
|
123
|
-
const maxLength = computed(() =>
|
|
124
|
-
const invalid = computed(() => !!props.error);
|
|
125
|
-
const activated = ref(false);
|
|
120
|
+
const maxLength = computed(() => context.attrs.maxlength);
|
|
126
121
|
// Handlers
|
|
127
122
|
function onFocus(event) {
|
|
128
123
|
activated.value = true;
|
|
@@ -135,14 +130,6 @@ var script = defineComponent({
|
|
|
135
130
|
context.emit('blur', event);
|
|
136
131
|
}
|
|
137
132
|
// Methods
|
|
138
|
-
function focus() {
|
|
139
|
-
var _a;
|
|
140
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
141
|
-
}
|
|
142
|
-
function blur() {
|
|
143
|
-
var _a;
|
|
144
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
145
|
-
}
|
|
146
133
|
function apply() {
|
|
147
134
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
148
135
|
proxyModelValue.value = draftModelValue.value;
|
|
@@ -164,21 +151,18 @@ var script = defineComponent({
|
|
|
164
151
|
});
|
|
165
152
|
return {
|
|
166
153
|
root,
|
|
167
|
-
control,
|
|
168
154
|
rootStyles,
|
|
169
155
|
controlStyles,
|
|
170
156
|
actionStyles,
|
|
171
|
-
|
|
157
|
+
controlId,
|
|
172
158
|
proxyModelValue,
|
|
173
159
|
draftModelValue,
|
|
160
|
+
activated,
|
|
161
|
+
invalid,
|
|
174
162
|
currentLength,
|
|
175
163
|
maxLength,
|
|
176
|
-
invalid,
|
|
177
|
-
activated,
|
|
178
164
|
onFocus,
|
|
179
165
|
onBlur,
|
|
180
|
-
focus,
|
|
181
|
-
blur,
|
|
182
166
|
apply,
|
|
183
167
|
reset
|
|
184
168
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
3
|
import './OrIconButton-cd62526d.js';
|
|
4
4
|
import './OrInlineInputBox-9d68ded1.js';
|
|
5
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
6
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
7
|
-
import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
|
|
8
6
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
9
7
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
10
8
|
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
@@ -66,22 +64,19 @@ var script = defineComponent({
|
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
66
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
69
|
-
expose: ['root'
|
|
67
|
+
expose: ['root'],
|
|
70
68
|
setup(props, context) {
|
|
69
|
+
var _a;
|
|
70
|
+
const currentInstance = getCurrentInstance();
|
|
71
71
|
// Refs
|
|
72
72
|
const root = ref();
|
|
73
|
-
const control = ref();
|
|
74
73
|
// Styles
|
|
75
74
|
const classAttribute = useClassAttribute();
|
|
76
75
|
const rootStyles = computed(() => ['or-inline-textarea', ...InlineTextareaRoot, classAttribute.value]);
|
|
77
76
|
const controlStyles = computed(() => [...InlineTextareaControl]);
|
|
78
77
|
const actionStyles = computed(() => [...InlineTextareaAction]);
|
|
79
78
|
// State
|
|
80
|
-
const
|
|
81
|
-
id: useIdAttribute(),
|
|
82
|
-
...useControlAttributes(),
|
|
83
|
-
...useValidationAttributes()
|
|
84
|
-
});
|
|
79
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
85
80
|
const proxyModelValue = computed({
|
|
86
81
|
get: () => {
|
|
87
82
|
var _a;
|
|
@@ -94,13 +89,13 @@ var script = defineComponent({
|
|
|
94
89
|
}
|
|
95
90
|
});
|
|
96
91
|
const draftModelValue = ref('');
|
|
92
|
+
const activated = ref(false);
|
|
93
|
+
const invalid = computed(() => !!props.error);
|
|
97
94
|
const currentLength = computed(() => {
|
|
98
95
|
var _a, _b;
|
|
99
96
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
100
97
|
});
|
|
101
|
-
const maxLength = computed(() =>
|
|
102
|
-
const invalid = computed(() => !!props.error);
|
|
103
|
-
const activated = ref(false);
|
|
98
|
+
const maxLength = computed(() => context.attrs.maxlength);
|
|
104
99
|
// Handlers
|
|
105
100
|
function onFocus(event) {
|
|
106
101
|
activated.value = true;
|
|
@@ -113,14 +108,6 @@ var script = defineComponent({
|
|
|
113
108
|
context.emit('blur', event);
|
|
114
109
|
}
|
|
115
110
|
// Methods
|
|
116
|
-
function focus() {
|
|
117
|
-
var _a;
|
|
118
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
119
|
-
}
|
|
120
|
-
function blur() {
|
|
121
|
-
var _a;
|
|
122
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
123
|
-
}
|
|
124
111
|
function apply() {
|
|
125
112
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
126
113
|
proxyModelValue.value = draftModelValue.value;
|
|
@@ -142,21 +129,18 @@ var script = defineComponent({
|
|
|
142
129
|
});
|
|
143
130
|
return {
|
|
144
131
|
root,
|
|
145
|
-
control,
|
|
146
132
|
rootStyles,
|
|
147
133
|
controlStyles,
|
|
148
134
|
actionStyles,
|
|
149
|
-
|
|
135
|
+
controlId,
|
|
150
136
|
proxyModelValue,
|
|
151
137
|
draftModelValue,
|
|
138
|
+
activated,
|
|
139
|
+
invalid,
|
|
152
140
|
currentLength,
|
|
153
141
|
maxLength,
|
|
154
|
-
invalid,
|
|
155
|
-
activated,
|
|
156
142
|
onFocus,
|
|
157
143
|
onBlur,
|
|
158
|
-
focus,
|
|
159
|
-
blur,
|
|
160
144
|
apply,
|
|
161
145
|
reset
|
|
162
146
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as script } from './OrInput.vue_vue_type_script_lang-
|
|
2
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
1
|
+
import { s as script } from './OrInput.vue_vue_type_script_lang-607d79d4.js';
|
|
2
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
4
4
|
|
|
5
|
-
const _hoisted_1 = ["type", "placeholder", "required", "disabled"];
|
|
5
|
+
const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled"];
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
class: /*#__PURE__*/normalizeClass(['layout-row'])
|
|
8
8
|
};
|
|
@@ -13,13 +13,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13
13
|
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
14
14
|
const _component_OrHint = resolveComponent("OrHint");
|
|
15
15
|
const _component_OrError = resolveComponent("OrError");
|
|
16
|
-
return openBlock(), createElementBlock("div",
|
|
17
|
-
ref: "root"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
16
|
+
return openBlock(), createElementBlock("div", {
|
|
17
|
+
ref: "root",
|
|
18
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
19
|
+
}, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
21
20
|
key: 0,
|
|
22
|
-
"control-id": _ctx.
|
|
21
|
+
"control-id": _ctx.controlId,
|
|
23
22
|
variant: 'input',
|
|
24
23
|
required: _ctx.required,
|
|
25
24
|
disabled: _ctx.disabled
|
|
@@ -36,9 +35,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36
35
|
disabled: _ctx.disabled
|
|
37
36
|
}, {
|
|
38
37
|
default: withCtx(() => [withDirectives(createElementVNode("input", mergeProps({
|
|
39
|
-
|
|
38
|
+
id: _ctx.controlId,
|
|
39
|
+
ref: "input",
|
|
40
40
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
41
|
-
}, _ctx
|
|
41
|
+
}, _ctx.$attrs, {
|
|
42
42
|
class: _ctx.controlStyles,
|
|
43
43
|
type: _ctx.type === 'password' && _ctx.disclosed ? 'text' : _ctx.type,
|
|
44
44
|
placeholder: _ctx.placeholder,
|
|
@@ -97,7 +97,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
97
|
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
98
98
|
|
|
99
99
|
key: "0"
|
|
100
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))],
|
|
100
|
+
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))], 2 /* CLASS */);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
var css_248z = "\ninput[data-v-78975fa2] {\n min-width: 0;\n background: none;\n outline: none;\n}\ninput[type=\"number\"][data-v-78975fa2]::-webkit-inner-spin-button {\n display: none;\n}\ninput[type=\"search\"][data-v-78975fa2]::-webkit-search-cancel-button {\n display: none;\n}\n";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
3
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
4
4
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
@@ -9,8 +9,6 @@ import { s as script$5, a as InputBoxSize } from './OrInputBox.vue_vue_type_scri
|
|
|
9
9
|
import './OrLabel-c6873e79.js';
|
|
10
10
|
import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
11
11
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
12
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
13
|
-
import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
|
|
14
12
|
import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
15
13
|
import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
16
14
|
|
|
@@ -83,10 +81,6 @@ var script = defineComponent({
|
|
|
83
81
|
type: Boolean,
|
|
84
82
|
default: false
|
|
85
83
|
},
|
|
86
|
-
readonly: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: false
|
|
89
|
-
},
|
|
90
84
|
disabled: {
|
|
91
85
|
type: Boolean,
|
|
92
86
|
default: false
|
|
@@ -97,21 +91,19 @@ var script = defineComponent({
|
|
|
97
91
|
}
|
|
98
92
|
},
|
|
99
93
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
100
|
-
expose: ['root', 'focus'
|
|
94
|
+
expose: ['root', 'focus'],
|
|
101
95
|
setup(props, context) {
|
|
96
|
+
var _a;
|
|
97
|
+
const currentInstance = getCurrentInstance();
|
|
102
98
|
// Refs
|
|
103
99
|
const root = ref();
|
|
104
|
-
const
|
|
100
|
+
const input = ref();
|
|
105
101
|
// Styles
|
|
106
102
|
const classAttribute = useClassAttribute();
|
|
107
103
|
const rootStyles = computed(() => ['or-input', ...InputRoot, classAttribute.value]);
|
|
108
104
|
const controlStyles = computed(() => [...InputControl]);
|
|
109
105
|
// State
|
|
110
|
-
const
|
|
111
|
-
id: useIdAttribute(),
|
|
112
|
-
...useControlAttributes(),
|
|
113
|
-
...useValidationAttributes()
|
|
114
|
-
});
|
|
106
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
115
107
|
const proxyModelValue = computed({
|
|
116
108
|
get: () => {
|
|
117
109
|
var _a;
|
|
@@ -123,35 +115,32 @@ var script = defineComponent({
|
|
|
123
115
|
context.emit('update:modelValue', value);
|
|
124
116
|
}
|
|
125
117
|
});
|
|
118
|
+
const invalid = computed(() => !!props.error);
|
|
119
|
+
const readonly = computed(() => context.attrs.readonly);
|
|
126
120
|
const currentLength = computed(() => {
|
|
127
121
|
var _a, _b;
|
|
128
122
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
129
123
|
});
|
|
130
|
-
const maxLength = computed(() =>
|
|
131
|
-
const invalid = computed(() => !!props.error);
|
|
124
|
+
const maxLength = computed(() => context.attrs.maxlength);
|
|
132
125
|
const disclosed = ref(false);
|
|
133
126
|
// Methods
|
|
134
127
|
function focus() {
|
|
135
128
|
var _a;
|
|
136
|
-
(_a =
|
|
137
|
-
}
|
|
138
|
-
function blur() {
|
|
139
|
-
var _a;
|
|
140
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
129
|
+
(_a = input.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
141
130
|
}
|
|
142
131
|
return {
|
|
143
132
|
root,
|
|
144
|
-
|
|
133
|
+
input,
|
|
145
134
|
rootStyles,
|
|
146
135
|
controlStyles,
|
|
147
|
-
|
|
136
|
+
controlId,
|
|
148
137
|
proxyModelValue,
|
|
138
|
+
invalid,
|
|
139
|
+
readonly,
|
|
149
140
|
currentLength,
|
|
150
141
|
maxLength,
|
|
151
|
-
invalid,
|
|
152
142
|
disclosed,
|
|
153
|
-
focus
|
|
154
|
-
blur
|
|
143
|
+
focus
|
|
155
144
|
};
|
|
156
145
|
}
|
|
157
146
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed } from 'vue';
|
|
2
2
|
import './OrLabel-c6873e79.js';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
4
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
5
4
|
import { s as script$1, L as LabelVariant } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
6
5
|
|
|
7
6
|
const RadioRoot = [
|
|
@@ -71,20 +70,18 @@ var script = defineComponent({
|
|
|
71
70
|
}
|
|
72
71
|
},
|
|
73
72
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
74
|
-
expose: ['root'
|
|
73
|
+
expose: ['root'],
|
|
75
74
|
setup(props, context) {
|
|
75
|
+
var _a;
|
|
76
|
+
const currentInstance = getCurrentInstance();
|
|
76
77
|
// Refs
|
|
77
78
|
const root = ref();
|
|
78
|
-
const control = ref();
|
|
79
79
|
// Styles
|
|
80
80
|
const classAttribute = useClassAttribute();
|
|
81
81
|
const rootStyles = computed(() => ['or-radio', ...RadioRoot, classAttribute.value]);
|
|
82
82
|
const controlStyles = computed(() => [...RadioControl, ...RadioControlHandle]);
|
|
83
83
|
// State
|
|
84
|
-
const
|
|
85
|
-
id: useIdAttribute(),
|
|
86
|
-
...useControlAttributes()
|
|
87
|
-
});
|
|
84
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
88
85
|
const proxyModelValue = computed({
|
|
89
86
|
get: () => {
|
|
90
87
|
var _a;
|
|
@@ -96,24 +93,12 @@ var script = defineComponent({
|
|
|
96
93
|
context.emit('update:modelValue', value);
|
|
97
94
|
}
|
|
98
95
|
});
|
|
99
|
-
// Methods
|
|
100
|
-
function focus() {
|
|
101
|
-
var _a;
|
|
102
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
103
|
-
}
|
|
104
|
-
function blur() {
|
|
105
|
-
var _a;
|
|
106
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
107
|
-
}
|
|
108
96
|
return {
|
|
109
97
|
root,
|
|
110
|
-
control,
|
|
111
98
|
rootStyles,
|
|
112
99
|
controlStyles,
|
|
113
|
-
|
|
114
|
-
proxyModelValue
|
|
115
|
-
focus,
|
|
116
|
-
blur
|
|
100
|
+
controlId,
|
|
101
|
+
proxyModelValue
|
|
117
102
|
};
|
|
118
103
|
}
|
|
119
104
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
|
-
import './OrInput-
|
|
4
|
-
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-
|
|
3
|
+
import './OrInput-a4f220ed.js';
|
|
4
|
+
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-607d79d4.js';
|
|
5
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
6
6
|
import { a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
2
|
-
import { s as script$1 } from './OrCheckbox.vue_vue_type_script_lang-
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, mergeProps, vModelCheckbox, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withModifiers, createVNode, vShow, defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue';
|
|
2
|
+
import { s as script$1 } from './OrCheckbox.vue_vue_type_script_lang-8b36e06c.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
4
4
|
import './OrHint-9592499e.js';
|
|
5
5
|
import { s as script$2 } from './OrExpansionPanel.vue_vue_type_script_lang-5360f580.js';
|
|
6
6
|
import './OrIcon-d878b768.js';
|
|
7
|
-
import './OrInput-
|
|
7
|
+
import './OrInput-a4f220ed.js';
|
|
8
8
|
import './OrInputBox-eb54d73d.js';
|
|
9
9
|
import './OrLabel-c6873e79.js';
|
|
10
10
|
import './OrMenuItem-4feaba6c.js';
|
|
@@ -16,34 +16,32 @@ import { u as useOverflow } from './useOverflow-6dce216b.js';
|
|
|
16
16
|
import { s as script$4 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
17
17
|
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
18
18
|
import { s as script$6 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
19
|
-
import { s as script$7 } from './OrInput.vue_vue_type_script_lang-
|
|
19
|
+
import { s as script$7 } from './OrInput.vue_vue_type_script_lang-607d79d4.js';
|
|
20
20
|
import { s as script$8, a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
21
21
|
import { s as script$9 } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
22
22
|
import { s as script$a } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
|
|
23
23
|
import { s as script$b } from './OrPopover.vue_vue_type_script_lang-54c7b11c.js';
|
|
24
24
|
|
|
25
|
-
const _hoisted_1$2 = ["value", "indeterminate", "required", "disabled"];
|
|
25
|
+
const _hoisted_1$2 = ["id", "value", "indeterminate", "required", "disabled"];
|
|
26
26
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27
27
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
28
|
-
return openBlock(), createElementBlock("div",
|
|
29
|
-
ref: "root"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
35
|
-
}, _ctx.controlAttributes, {
|
|
28
|
+
return openBlock(), createElementBlock("div", {
|
|
29
|
+
ref: "root",
|
|
30
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
31
|
+
}, [withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
32
|
+
id: _ctx.controlId,
|
|
33
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
36
34
|
class: _ctx.controlStyles,
|
|
37
|
-
type:
|
|
35
|
+
type: "checkbox",
|
|
38
36
|
value: _ctx.inputValue,
|
|
39
37
|
indeterminate: _ctx.indeterminate,
|
|
40
38
|
required: _ctx.required,
|
|
41
39
|
disabled: _ctx.disabled,
|
|
42
40
|
onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
|
|
43
41
|
onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
|
|
44
|
-
}), null, 16 /* FULL_PROPS */, _hoisted_1$2), [[
|
|
42
|
+
}), null, 16 /* FULL_PROPS */, _hoisted_1$2), [[vModelCheckbox, _ctx.proxyModelValue]]), _ctx.$slots.default || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
45
43
|
key: 0,
|
|
46
|
-
"control-id": _ctx.
|
|
44
|
+
"control-id": _ctx.controlId,
|
|
47
45
|
variant: _ctx.labelVariant,
|
|
48
46
|
required: _ctx.required,
|
|
49
47
|
disabled: _ctx.disabled
|
|
@@ -52,7 +50,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52
50
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
|
|
53
51
|
|
|
54
52
|
_: 3 /* FORWARDED */
|
|
55
|
-
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)],
|
|
53
|
+
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
var css_248z = "\ninput[data-v-5358d710] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n line-height: 0;\n}\n";
|