@onereach/ui-components 2.70.2-beta.2200.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-046b51fd.js → OrCardCollection-0141a358.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-251ecafc.js → OrCheckbox-dbef9f9a.js} +17 -32
- package/dist/bundled/v2/{OrConfirm-4a96edab.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-56314ef0.js → OrInput-82ccfe00.js} +31 -42
- 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-5022873f.js → OrSearch-53470b0e.js} +1 -1
- package/dist/bundled/v2/{OrSelect-4f163320.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-43c4b8a2.js → OrTextarea-5593fbe9.js} +20 -40
- 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-1b263db2.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-35c1085c.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-d1c13e6b.js → OrInput-a4f220ed.js} +13 -14
- 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-f5f127f6.js → OrSearch.vue_vue_type_script_lang-06f318ca.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-8092d0c0.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 -78
- package/dist/esm/v2/{OrCardCollection-d51e15f5.js → OrCardCollection-3c38fc85.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-7317fe1a.js → OrCheckbox-567e387c.js} +17 -32
- package/dist/esm/v2/{OrConfirm-fe4f21bf.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-fbbf5de4.js → OrInput-ada3a970.js} +31 -42
- 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-9e3dc7b2.js → OrSearch-0f08f2f5.js} +1 -1
- package/dist/esm/v2/{OrSelect-6d3c3d2a.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-709eea9b.js → OrTextarea-6712a150.js} +20 -40
- 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-14faa91f.js → OrCardCollection-dbb3e839.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-7144da06.js → OrCheckbox-3e139eac.js} +19 -36
- package/dist/esm/v3/{OrConfirm-671d4ff7.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-8332b985.js → OrInput-9c0426b9.js} +27 -39
- 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-875646f5.js → OrSearch-9885d178.js} +1 -1
- package/dist/esm/v3/{OrSelect-1a71fec6.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-d0892f73.js → OrTextarea-bb9ef3f2.js} +22 -43
- 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 +20 -33
- 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 -37
- 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
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
4
3
|
import '@vueuse/core';
|
|
5
|
-
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
6
4
|
import { s as script$1 } from './OrError-ec8c709d.js';
|
|
7
5
|
import { s as script$2 } from './OrHint-74bb732d.js';
|
|
8
6
|
import { s as script$3 } from './OrIconButton-1a89fbf9.js';
|
|
9
7
|
import { s as script$4 } from './OrInlineInputBox-8049f95a.js';
|
|
10
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
8
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, withDirectives, mergeProps, vModelText, withModifiers, createCommentVNode, Fragment, createBlock, createSlots, createTextVNode, toDisplayString } from 'vue';
|
|
11
9
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
12
10
|
|
|
13
11
|
const InlineTextareaRoot = [
|
|
@@ -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
|
};
|
|
@@ -166,24 +150,23 @@ var script = defineComponent({
|
|
|
166
150
|
const _hoisted_1 = {
|
|
167
151
|
class: /*#__PURE__*/normalizeClass(['layout-row', 'gap-sm+'])
|
|
168
152
|
};
|
|
169
|
-
const _hoisted_2 = ["placeholder", "activated"];
|
|
153
|
+
const _hoisted_2 = ["id", "placeholder", "activated"];
|
|
170
154
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
171
155
|
const _component_OrInlineInputBox = resolveComponent("OrInlineInputBox");
|
|
172
156
|
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
173
157
|
const _component_OrHint = resolveComponent("OrHint");
|
|
174
158
|
const _component_OrError = resolveComponent("OrError");
|
|
175
|
-
return openBlock(), createElementBlock("div",
|
|
176
|
-
ref: "root"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}), [createElementVNode("div", _hoisted_1, [createVNode(_component_OrInlineInputBox, {
|
|
159
|
+
return openBlock(), createElementBlock("div", {
|
|
160
|
+
ref: "root",
|
|
161
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
162
|
+
}, [createElementVNode("div", _hoisted_1, [createVNode(_component_OrInlineInputBox, {
|
|
180
163
|
size: 's',
|
|
181
164
|
invalid: _ctx.invalid
|
|
182
165
|
}, {
|
|
183
166
|
default: withCtx(() => [withDirectives(createElementVNode("textarea", mergeProps({
|
|
184
|
-
|
|
167
|
+
id: _ctx.controlId,
|
|
185
168
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.draftModelValue = $event)
|
|
186
|
-
}, _ctx
|
|
169
|
+
}, _ctx.$attrs, {
|
|
187
170
|
class: _ctx.controlStyles,
|
|
188
171
|
placeholder: _ctx.placeholder,
|
|
189
172
|
activated: _ctx.activated ? '' : null,
|
|
@@ -228,7 +211,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
228
211
|
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
229
212
|
|
|
230
213
|
key: "0"
|
|
231
|
-
} : undefined]), 1024 /* DYNAMIC_SLOTS */))],
|
|
214
|
+
} : undefined]), 1024 /* DYNAMIC_SLOTS */))], 2 /* CLASS */);
|
|
232
215
|
}
|
|
233
216
|
|
|
234
217
|
var css_248z = "\ntextarea[data-v-3f016b22] {\n min-width: 0;\n background: none;\n outline: none;\n}\n";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
4
3
|
import '@vueuse/core';
|
|
5
|
-
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
6
4
|
import { s as script$1 } from './OrError-ec8c709d.js';
|
|
7
5
|
import { s as script$2 } from './OrHint-74bb732d.js';
|
|
8
6
|
import { s as script$4 } from './OrIconButton-1a89fbf9.js';
|
|
9
7
|
import { s as script$3 } from './OrIcon-b195169c.js';
|
|
10
8
|
import { s as script$5, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
|
|
11
9
|
import { s as script$6 } from './OrLabel-bdaec602.js';
|
|
12
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
10
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
|
|
13
11
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
14
12
|
|
|
15
13
|
var InputType;
|
|
@@ -81,10 +79,6 @@ var script = defineComponent({
|
|
|
81
79
|
type: Boolean,
|
|
82
80
|
default: false
|
|
83
81
|
},
|
|
84
|
-
readonly: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
default: false
|
|
87
|
-
},
|
|
88
82
|
disabled: {
|
|
89
83
|
type: Boolean,
|
|
90
84
|
default: false
|
|
@@ -95,21 +89,19 @@ var script = defineComponent({
|
|
|
95
89
|
}
|
|
96
90
|
},
|
|
97
91
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
98
|
-
expose: ['root', 'focus'
|
|
92
|
+
expose: ['root', 'focus'],
|
|
99
93
|
setup(props, context) {
|
|
94
|
+
var _a;
|
|
95
|
+
const currentInstance = getCurrentInstance();
|
|
100
96
|
// Refs
|
|
101
97
|
const root = ref();
|
|
102
|
-
const
|
|
98
|
+
const input = ref();
|
|
103
99
|
// Styles
|
|
104
100
|
const classAttribute = useClassAttribute();
|
|
105
101
|
const rootStyles = computed(() => ['or-input', ...InputRoot, classAttribute.value]);
|
|
106
102
|
const controlStyles = computed(() => [...InputControl]);
|
|
107
103
|
// State
|
|
108
|
-
const
|
|
109
|
-
id: useIdAttribute(),
|
|
110
|
-
...useControlAttributes(),
|
|
111
|
-
...useValidationAttributes()
|
|
112
|
-
});
|
|
104
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
113
105
|
const proxyModelValue = computed({
|
|
114
106
|
get: () => {
|
|
115
107
|
var _a;
|
|
@@ -121,40 +113,37 @@ var script = defineComponent({
|
|
|
121
113
|
context.emit('update:modelValue', value);
|
|
122
114
|
}
|
|
123
115
|
});
|
|
116
|
+
const invalid = computed(() => !!props.error);
|
|
117
|
+
const readonly = computed(() => context.attrs.readonly);
|
|
124
118
|
const currentLength = computed(() => {
|
|
125
119
|
var _a, _b;
|
|
126
120
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
127
121
|
});
|
|
128
|
-
const maxLength = computed(() =>
|
|
129
|
-
const invalid = computed(() => !!props.error);
|
|
122
|
+
const maxLength = computed(() => context.attrs.maxlength);
|
|
130
123
|
const disclosed = ref(false);
|
|
131
124
|
// Methods
|
|
132
125
|
function focus() {
|
|
133
126
|
var _a;
|
|
134
|
-
(_a =
|
|
135
|
-
}
|
|
136
|
-
function blur() {
|
|
137
|
-
var _a;
|
|
138
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
127
|
+
(_a = input.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
139
128
|
}
|
|
140
129
|
return {
|
|
141
130
|
root,
|
|
142
|
-
|
|
131
|
+
input,
|
|
143
132
|
rootStyles,
|
|
144
133
|
controlStyles,
|
|
145
|
-
|
|
134
|
+
controlId,
|
|
146
135
|
proxyModelValue,
|
|
136
|
+
invalid,
|
|
137
|
+
readonly,
|
|
147
138
|
currentLength,
|
|
148
139
|
maxLength,
|
|
149
|
-
invalid,
|
|
150
140
|
disclosed,
|
|
151
|
-
focus
|
|
152
|
-
blur
|
|
141
|
+
focus
|
|
153
142
|
};
|
|
154
143
|
}
|
|
155
144
|
});
|
|
156
145
|
|
|
157
|
-
const _hoisted_1 = ["
|
|
146
|
+
const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled"];
|
|
158
147
|
const _hoisted_2 = {
|
|
159
148
|
class: /*#__PURE__*/normalizeClass(['layout-row'])
|
|
160
149
|
};
|
|
@@ -165,13 +154,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165
154
|
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
166
155
|
const _component_OrHint = resolveComponent("OrHint");
|
|
167
156
|
const _component_OrError = resolveComponent("OrError");
|
|
168
|
-
return openBlock(), createElementBlock("div",
|
|
169
|
-
ref: "root"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
157
|
+
return openBlock(), createElementBlock("div", {
|
|
158
|
+
ref: "root",
|
|
159
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
160
|
+
}, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
173
161
|
key: 0,
|
|
174
|
-
"control-id": _ctx.
|
|
162
|
+
"control-id": _ctx.controlId,
|
|
175
163
|
variant: 'input',
|
|
176
164
|
required: _ctx.required,
|
|
177
165
|
disabled: _ctx.disabled
|
|
@@ -188,14 +176,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
188
176
|
disabled: _ctx.disabled
|
|
189
177
|
}, {
|
|
190
178
|
default: withCtx(() => [withDirectives(createElementVNode("input", mergeProps({
|
|
191
|
-
|
|
179
|
+
id: _ctx.controlId,
|
|
180
|
+
ref: "input",
|
|
192
181
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
193
|
-
}, _ctx
|
|
182
|
+
}, _ctx.$attrs, {
|
|
194
183
|
class: _ctx.controlStyles,
|
|
195
184
|
type: _ctx.type === 'password' && _ctx.disclosed ? 'text' : _ctx.type,
|
|
196
185
|
placeholder: _ctx.placeholder,
|
|
197
186
|
required: _ctx.required,
|
|
198
|
-
readonly: _ctx.readonly,
|
|
199
187
|
disabled: _ctx.disabled,
|
|
200
188
|
onKeydown: _cache[1] || (_cache[1] = $event => _ctx.$emit('keydown', $event)),
|
|
201
189
|
onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
|
|
@@ -216,7 +204,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
216
204
|
key: 0,
|
|
217
205
|
icon: 'close',
|
|
218
206
|
color: 'inherit',
|
|
219
|
-
disabled: _ctx.
|
|
207
|
+
disabled: _ctx.disabled,
|
|
220
208
|
onClick: _cache[6] || (_cache[6] = withModifiers($event => _ctx.$emit('update:modelValue', ''), ["stop"]))
|
|
221
209
|
}, null, 8 /* PROPS */, ["disabled"])) : (openBlock(), createBlock(_component_OrIcon, {
|
|
222
210
|
key: 1,
|
|
@@ -250,7 +238,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
250
238
|
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
251
239
|
|
|
252
240
|
key: "0"
|
|
253
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))],
|
|
241
|
+
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))], 2 /* CLASS */);
|
|
254
242
|
}
|
|
255
243
|
|
|
256
244
|
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,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
4
3
|
import '@vueuse/core';
|
|
5
4
|
import { s as script$1, L as LabelVariant } from './OrLabel-bdaec602.js';
|
|
6
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
5
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, mergeProps, vModelRadio, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
7
6
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
8
7
|
|
|
9
8
|
const RadioRoot = [
|
|
@@ -73,20 +72,18 @@ var script = defineComponent({
|
|
|
73
72
|
}
|
|
74
73
|
},
|
|
75
74
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
76
|
-
expose: ['root'
|
|
75
|
+
expose: ['root'],
|
|
77
76
|
setup(props, context) {
|
|
77
|
+
var _a;
|
|
78
|
+
const currentInstance = getCurrentInstance();
|
|
78
79
|
// Refs
|
|
79
80
|
const root = ref();
|
|
80
|
-
const control = ref();
|
|
81
81
|
// Styles
|
|
82
82
|
const classAttribute = useClassAttribute();
|
|
83
83
|
const rootStyles = computed(() => ['or-radio', ...RadioRoot, classAttribute.value]);
|
|
84
84
|
const controlStyles = computed(() => [...RadioControl, ...RadioControlHandle]);
|
|
85
85
|
// State
|
|
86
|
-
const
|
|
87
|
-
id: useIdAttribute(),
|
|
88
|
-
...useControlAttributes()
|
|
89
|
-
});
|
|
86
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
90
87
|
const proxyModelValue = computed({
|
|
91
88
|
get: () => {
|
|
92
89
|
var _a;
|
|
@@ -98,39 +95,25 @@ var script = defineComponent({
|
|
|
98
95
|
context.emit('update:modelValue', value);
|
|
99
96
|
}
|
|
100
97
|
});
|
|
101
|
-
// Methods
|
|
102
|
-
function focus() {
|
|
103
|
-
var _a;
|
|
104
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
105
|
-
}
|
|
106
|
-
function blur() {
|
|
107
|
-
var _a;
|
|
108
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
109
|
-
}
|
|
110
98
|
return {
|
|
111
99
|
root,
|
|
112
|
-
control,
|
|
113
100
|
rootStyles,
|
|
114
101
|
controlStyles,
|
|
115
|
-
|
|
116
|
-
proxyModelValue
|
|
117
|
-
focus,
|
|
118
|
-
blur
|
|
102
|
+
controlId,
|
|
103
|
+
proxyModelValue
|
|
119
104
|
};
|
|
120
105
|
}
|
|
121
106
|
});
|
|
122
107
|
|
|
123
|
-
const _hoisted_1 = ["value", "required", "disabled"];
|
|
108
|
+
const _hoisted_1 = ["id", "value", "required", "disabled"];
|
|
124
109
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
125
110
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
126
|
-
return openBlock(), createElementBlock("div",
|
|
127
|
-
ref: "root"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
133
|
-
}, _ctx.controlAttributes, {
|
|
111
|
+
return openBlock(), createElementBlock("div", {
|
|
112
|
+
ref: "root",
|
|
113
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
114
|
+
}, [withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
115
|
+
id: _ctx.controlId,
|
|
116
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
134
117
|
class: _ctx.controlStyles,
|
|
135
118
|
type: "radio",
|
|
136
119
|
value: _ctx.inputValue,
|
|
@@ -140,7 +123,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
123
|
onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
|
|
141
124
|
}), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelRadio, _ctx.proxyModelValue]]), _ctx.$slots.default || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
142
125
|
key: 0,
|
|
143
|
-
"control-id": _ctx.
|
|
126
|
+
"control-id": _ctx.controlId,
|
|
144
127
|
variant: _ctx.labelVariant,
|
|
145
128
|
required: _ctx.required,
|
|
146
129
|
disabled: _ctx.disabled
|
|
@@ -149,7 +132,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149
132
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
|
|
150
133
|
|
|
151
134
|
_: 3 /* FORWARDED */
|
|
152
|
-
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)],
|
|
135
|
+
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
153
136
|
}
|
|
154
137
|
|
|
155
138
|
var css_248z = "\ninput[data-v-2567d702] {\n appearance: none;\n line-height: 0;\n}\n";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
-
import { s as script$1 } from './OrInput-
|
|
4
|
+
import { s as script$1 } from './OrInput-9c0426b9.js';
|
|
5
5
|
import { a as InputBoxSize } from './OrInputBox-6d1b6059.js';
|
|
6
6
|
import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
|
|
7
7
|
|
|
@@ -3,13 +3,13 @@ import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.
|
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
4
|
import { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
|
-
import { s as script$1 } from './OrCheckbox-
|
|
6
|
+
import { s as script$1 } from './OrCheckbox-3e139eac.js';
|
|
7
7
|
import { s as script$2 } from './OrError-ec8c709d.js';
|
|
8
8
|
import { s as script$3 } from './OrExpansionPanel-f8d7ff8d.js';
|
|
9
9
|
import { s as script$4 } from './OrHint-74bb732d.js';
|
|
10
10
|
import { s as script$5 } from './OrIcon-b195169c.js';
|
|
11
11
|
import { s as script$7, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
|
|
12
|
-
import { s as script$6 } from './OrInput-
|
|
12
|
+
import { s as script$6 } from './OrInput-9c0426b9.js';
|
|
13
13
|
import { s as script$8 } from './OrLabel-bdaec602.js';
|
|
14
14
|
import { s as script$9 } from './OrMenuItem-9da279f6.js';
|
|
15
15
|
import { s as script$a } from './OrPopover-1075dd38.js';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
4
3
|
import '@vueuse/core';
|
|
5
4
|
import { s as script$1, L as LabelVariant } from './OrLabel-bdaec602.js';
|
|
6
5
|
import { s as script$2 } from './OrLoader-b3cf4231.js';
|
|
7
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
6
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, mergeProps, vModelCheckbox, createVNode, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
8
7
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
8
|
|
|
10
9
|
const SwitchRoot = [
|
|
@@ -99,21 +98,19 @@ var script = defineComponent({
|
|
|
99
98
|
}
|
|
100
99
|
},
|
|
101
100
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
102
|
-
expose: ['root'
|
|
101
|
+
expose: ['root'],
|
|
103
102
|
setup(props, context) {
|
|
103
|
+
var _a;
|
|
104
|
+
const currentInstance = getCurrentInstance();
|
|
104
105
|
// Refs
|
|
105
106
|
const root = ref();
|
|
106
|
-
const control = ref();
|
|
107
107
|
// Styles
|
|
108
108
|
const classAttribute = useClassAttribute();
|
|
109
109
|
const rootStyles = computed(() => ['or-switch', ...SwitchRoot, classAttribute.value]);
|
|
110
110
|
const controlStyles = computed(() => [...SwitchControl, ...SwitchControlHandle]);
|
|
111
111
|
const loaderStyles = computed(() => [...SwitchLoader, ...SwitchLoaderHandle]);
|
|
112
112
|
// State
|
|
113
|
-
const
|
|
114
|
-
id: useIdAttribute(),
|
|
115
|
-
...useControlAttributes()
|
|
116
|
-
});
|
|
113
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
117
114
|
const proxyModelValue = computed({
|
|
118
115
|
get: () => {
|
|
119
116
|
var _a;
|
|
@@ -125,43 +122,30 @@ var script = defineComponent({
|
|
|
125
122
|
context.emit('update:modelValue', value);
|
|
126
123
|
}
|
|
127
124
|
});
|
|
128
|
-
// Methods
|
|
129
|
-
function focus() {
|
|
130
|
-
var _a;
|
|
131
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
132
|
-
}
|
|
133
|
-
function blur() {
|
|
134
|
-
var _a;
|
|
135
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
136
|
-
}
|
|
137
125
|
return {
|
|
138
126
|
root,
|
|
139
|
-
control,
|
|
140
127
|
rootStyles,
|
|
141
128
|
controlStyles,
|
|
142
129
|
loaderStyles,
|
|
143
|
-
|
|
144
|
-
proxyModelValue
|
|
145
|
-
focus,
|
|
146
|
-
blur
|
|
130
|
+
controlId,
|
|
131
|
+
proxyModelValue
|
|
147
132
|
};
|
|
148
133
|
}
|
|
149
134
|
});
|
|
150
135
|
|
|
151
|
-
const _hoisted_1 = ["value", "required", "disabled"];
|
|
136
|
+
const _hoisted_1 = ["id", "value", "required", "disabled"];
|
|
152
137
|
const _hoisted_2 = ["disabled"];
|
|
153
138
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
154
139
|
const _component_OrLoader = resolveComponent("OrLoader");
|
|
155
140
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
156
|
-
return openBlock(), createElementBlock("div",
|
|
157
|
-
ref: "root"
|
|
141
|
+
return openBlock(), createElementBlock("div", {
|
|
142
|
+
ref: "root",
|
|
143
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
144
|
+
}, [!_ctx.loading ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
145
|
+
key: 0
|
|
158
146
|
}, _ctx.$attrs, {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
key: 0,
|
|
162
|
-
ref: "control",
|
|
163
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
164
|
-
}, _ctx.controlAttributes, {
|
|
147
|
+
id: _ctx.controlId,
|
|
148
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
165
149
|
class: _ctx.controlStyles,
|
|
166
150
|
type: "checkbox",
|
|
167
151
|
value: _ctx.inputValue,
|
|
@@ -179,7 +163,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
163
|
size: 'm'
|
|
180
164
|
})], 10 /* CLASS, PROPS */, _hoisted_2)), _ctx.$slots.default || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
181
165
|
key: 2,
|
|
182
|
-
"control-id": _ctx.
|
|
166
|
+
"control-id": _ctx.controlId,
|
|
183
167
|
variant: _ctx.labelVariant,
|
|
184
168
|
required: _ctx.required,
|
|
185
169
|
disabled: _ctx.disabled
|
|
@@ -188,7 +172,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
188
172
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
|
|
189
173
|
|
|
190
174
|
_: 3 /* FORWARDED */
|
|
191
|
-
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)],
|
|
175
|
+
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
192
176
|
}
|
|
193
177
|
|
|
194
178
|
var css_248z = "\ninput[data-v-4296509a] {\n appearance: none;\n line-height: 0;\n}\n";
|