@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,12 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
-
v-bind="$attrs"
|
|
5
4
|
:class="rootStyles"
|
|
6
5
|
>
|
|
7
6
|
<template v-if="label">
|
|
8
7
|
<OrLabel
|
|
9
|
-
:control-id="
|
|
8
|
+
:control-id="controlId"
|
|
10
9
|
:variant="'input'"
|
|
11
10
|
:required="required"
|
|
12
11
|
:disabled="disabled"
|
|
@@ -26,13 +25,12 @@
|
|
|
26
25
|
:disabled="disabled"
|
|
27
26
|
>
|
|
28
27
|
<textarea
|
|
29
|
-
|
|
28
|
+
:id="controlId"
|
|
30
29
|
v-model="proxyModelValue"
|
|
31
|
-
v-bind="
|
|
30
|
+
v-bind="$attrs"
|
|
32
31
|
:class="controlStyles"
|
|
33
32
|
:placeholder="placeholder"
|
|
34
33
|
:required="required"
|
|
35
|
-
:readonly="readonly"
|
|
36
34
|
:disabled="disabled"
|
|
37
35
|
@keydown="$emit('keydown', $event)"
|
|
38
36
|
@keyup="$emit('keyup', $event)"
|
|
@@ -72,8 +70,8 @@
|
|
|
72
70
|
</template>
|
|
73
71
|
|
|
74
72
|
<script lang="ts">
|
|
75
|
-
import { computed, defineComponent,
|
|
76
|
-
import { useClassAttribute
|
|
73
|
+
import { computed, defineComponent, getCurrentInstance, PropType, ref } from 'vue-demi';
|
|
74
|
+
import { useClassAttribute } from '../../hooks';
|
|
77
75
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
78
76
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
79
77
|
import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
|
|
@@ -134,11 +132,6 @@ export default defineComponent({
|
|
|
134
132
|
default: false,
|
|
135
133
|
},
|
|
136
134
|
|
|
137
|
-
readonly: {
|
|
138
|
-
type: Boolean,
|
|
139
|
-
default: false,
|
|
140
|
-
},
|
|
141
|
-
|
|
142
135
|
disabled: {
|
|
143
136
|
type: Boolean,
|
|
144
137
|
default: false,
|
|
@@ -157,15 +150,13 @@ export default defineComponent({
|
|
|
157
150
|
|
|
158
151
|
expose: [
|
|
159
152
|
'root',
|
|
160
|
-
|
|
161
|
-
'focus',
|
|
162
|
-
'blur',
|
|
163
153
|
],
|
|
164
154
|
|
|
165
155
|
setup(props, context) {
|
|
156
|
+
const currentInstance = getCurrentInstance()!;
|
|
157
|
+
|
|
166
158
|
// Refs
|
|
167
159
|
const root = ref<HTMLElement>();
|
|
168
|
-
const control = ref<HTMLTextAreaElement>();
|
|
169
160
|
|
|
170
161
|
// Styles
|
|
171
162
|
const classAttribute = useClassAttribute();
|
|
@@ -181,11 +172,7 @@ export default defineComponent({
|
|
|
181
172
|
]);
|
|
182
173
|
|
|
183
174
|
// State
|
|
184
|
-
const
|
|
185
|
-
id: useIdAttribute(),
|
|
186
|
-
...useControlAttributes(),
|
|
187
|
-
...useValidationAttributes(),
|
|
188
|
-
});
|
|
175
|
+
const controlId = ref(context.attrs.id as string ?? currentInstance.uid.toString());
|
|
189
176
|
|
|
190
177
|
const proxyModelValue = computed({
|
|
191
178
|
get: () => {
|
|
@@ -198,32 +185,22 @@ export default defineComponent({
|
|
|
198
185
|
},
|
|
199
186
|
});
|
|
200
187
|
|
|
201
|
-
const currentLength = computed(() => proxyModelValue.value?.toString().length ?? 0);
|
|
202
|
-
const maxLength = computed(() => controlAttributes.maxlength);
|
|
203
|
-
|
|
204
188
|
const invalid = computed(() => !!props.error);
|
|
189
|
+
const readonly = computed(() => context.attrs.readonly as boolean);
|
|
205
190
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
control.value?.focus();
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
function blur(): void {
|
|
212
|
-
control.value?.blur();
|
|
213
|
-
}
|
|
191
|
+
const currentLength = computed(() => proxyModelValue.value?.toString().length ?? 0);
|
|
192
|
+
const maxLength = computed(() => context.attrs.maxlength as number | undefined);
|
|
214
193
|
|
|
215
194
|
return {
|
|
216
195
|
root,
|
|
217
|
-
control,
|
|
218
196
|
rootStyles,
|
|
219
197
|
controlStyles,
|
|
220
|
-
|
|
198
|
+
controlId,
|
|
221
199
|
proxyModelValue,
|
|
200
|
+
invalid,
|
|
201
|
+
readonly,
|
|
222
202
|
currentLength,
|
|
223
203
|
maxLength,
|
|
224
|
-
invalid,
|
|
225
|
-
focus,
|
|
226
|
-
blur,
|
|
227
204
|
};
|
|
228
205
|
},
|
|
229
206
|
});
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export { useClassAttribute } from './useClassAttribute';
|
|
2
|
-
export { useControlAttributes } from './useControlAttributes';
|
|
3
2
|
export { useElevation } from './useElevation';
|
|
4
|
-
export { useIdAttribute } from './useIdAttribute';
|
|
5
3
|
export { useOverflow } from './useOverflow';
|
|
6
4
|
export { useResponsive } from './useResponsive';
|
|
7
5
|
export { default as useToggle } from './useToggle';
|
|
8
|
-
export { useValidationAttributes } from './useValidationAttributes';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ControlAttributes {
|
|
3
|
-
readonly: ComputedRef<boolean | undefined>;
|
|
4
|
-
disabled: ComputedRef<boolean | undefined>;
|
|
5
|
-
'force-state': ComputedRef<string | undefined>;
|
|
6
|
-
}
|
|
7
|
-
export declare function useControlAttributes(): ControlAttributes;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ValidationAttributes {
|
|
3
|
-
required: ComputedRef<boolean | undefined>;
|
|
4
|
-
minlength: ComputedRef<number | undefined>;
|
|
5
|
-
maxlength: ComputedRef<number | undefined>;
|
|
6
|
-
pattern: ComputedRef<string | undefined>;
|
|
7
|
-
min: ComputedRef<number | undefined>;
|
|
8
|
-
max: ComputedRef<number | undefined>;
|
|
9
|
-
step: ComputedRef<number | undefined>;
|
|
10
|
-
}
|
|
11
|
-
export declare function useValidationAttributes(): ValidationAttributes;
|
|
12
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import './index-fa6eb4ca.js';
|
|
2
|
-
import { useAttrs, computed, getCurrentInstance } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
-
|
|
4
|
-
function useControlAttributes() {
|
|
5
|
-
const attributes = useAttrs();
|
|
6
|
-
return {
|
|
7
|
-
readonly: computed(() => attributes['readonly']),
|
|
8
|
-
disabled: computed(() => attributes['disabled']),
|
|
9
|
-
'force-state': computed(() => attributes['force-state'])
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function useIdAttribute() {
|
|
14
|
-
const attributes = useAttrs(),
|
|
15
|
-
component = getCurrentInstance();
|
|
16
|
-
return computed(() => {
|
|
17
|
-
var _a;
|
|
18
|
-
return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { useIdAttribute as a, useControlAttributes as u };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import './index-fa6eb4ca.js';
|
|
2
|
-
import { useAttrs, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
-
|
|
4
|
-
function useValidationAttributes() {
|
|
5
|
-
const attributes = useAttrs();
|
|
6
|
-
return {
|
|
7
|
-
required: computed(() => attributes['required']),
|
|
8
|
-
minlength: computed(() => attributes['minlength']),
|
|
9
|
-
maxlength: computed(() => attributes['maxlength']),
|
|
10
|
-
pattern: computed(() => attributes['pattern']),
|
|
11
|
-
min: computed(() => attributes['min']),
|
|
12
|
-
max: computed(() => attributes['max']),
|
|
13
|
-
step: computed(() => attributes['step'])
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { useValidationAttributes as u };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ControlAttributes {
|
|
3
|
-
readonly: ComputedRef<boolean | undefined>;
|
|
4
|
-
disabled: ComputedRef<boolean | undefined>;
|
|
5
|
-
'force-state': ComputedRef<string | undefined>;
|
|
6
|
-
}
|
|
7
|
-
export declare function useControlAttributes(): ControlAttributes;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ValidationAttributes {
|
|
3
|
-
required: ComputedRef<boolean | undefined>;
|
|
4
|
-
minlength: ComputedRef<number | undefined>;
|
|
5
|
-
maxlength: ComputedRef<number | undefined>;
|
|
6
|
-
pattern: ComputedRef<string | undefined>;
|
|
7
|
-
min: ComputedRef<number | undefined>;
|
|
8
|
-
max: ComputedRef<number | undefined>;
|
|
9
|
-
step: ComputedRef<number | undefined>;
|
|
10
|
-
}
|
|
11
|
-
export declare function useValidationAttributes(): ValidationAttributes;
|
|
12
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useAttrs, computed, getCurrentInstance } from 'vue';
|
|
2
|
-
|
|
3
|
-
function useControlAttributes() {
|
|
4
|
-
const attributes = useAttrs();
|
|
5
|
-
return {
|
|
6
|
-
readonly: computed(() => attributes['readonly']),
|
|
7
|
-
disabled: computed(() => attributes['disabled']),
|
|
8
|
-
'force-state': computed(() => attributes['force-state'])
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function useIdAttribute() {
|
|
13
|
-
const attributes = useAttrs(),
|
|
14
|
-
component = getCurrentInstance();
|
|
15
|
-
return computed(() => {
|
|
16
|
-
var _a;
|
|
17
|
-
return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { useIdAttribute as a, useControlAttributes as u };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useAttrs, computed } from 'vue';
|
|
2
|
-
|
|
3
|
-
function useValidationAttributes() {
|
|
4
|
-
const attributes = useAttrs();
|
|
5
|
-
return {
|
|
6
|
-
required: computed(() => attributes['required']),
|
|
7
|
-
minlength: computed(() => attributes['minlength']),
|
|
8
|
-
maxlength: computed(() => attributes['maxlength']),
|
|
9
|
-
pattern: computed(() => attributes['pattern']),
|
|
10
|
-
min: computed(() => attributes['min']),
|
|
11
|
-
max: computed(() => attributes['max']),
|
|
12
|
-
step: computed(() => attributes['step'])
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { useValidationAttributes as u };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ControlAttributes {
|
|
3
|
-
readonly: ComputedRef<boolean | undefined>;
|
|
4
|
-
disabled: ComputedRef<boolean | undefined>;
|
|
5
|
-
'force-state': ComputedRef<string | undefined>;
|
|
6
|
-
}
|
|
7
|
-
export declare function useControlAttributes(): ControlAttributes;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ValidationAttributes {
|
|
3
|
-
required: ComputedRef<boolean | undefined>;
|
|
4
|
-
minlength: ComputedRef<number | undefined>;
|
|
5
|
-
maxlength: ComputedRef<number | undefined>;
|
|
6
|
-
pattern: ComputedRef<string | undefined>;
|
|
7
|
-
min: ComputedRef<number | undefined>;
|
|
8
|
-
max: ComputedRef<number | undefined>;
|
|
9
|
-
step: ComputedRef<number | undefined>;
|
|
10
|
-
}
|
|
11
|
-
export declare function useValidationAttributes(): ValidationAttributes;
|
|
12
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useAttrs, computed, getCurrentInstance } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
function useControlAttributes() {
|
|
4
|
-
const attributes = useAttrs();
|
|
5
|
-
return {
|
|
6
|
-
readonly: computed(() => attributes['readonly']),
|
|
7
|
-
disabled: computed(() => attributes['disabled']),
|
|
8
|
-
'force-state': computed(() => attributes['force-state'])
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function useIdAttribute() {
|
|
13
|
-
const attributes = useAttrs(),
|
|
14
|
-
component = getCurrentInstance();
|
|
15
|
-
return computed(() => {
|
|
16
|
-
var _a;
|
|
17
|
-
return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { useIdAttribute as a, useControlAttributes as u };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useAttrs, computed } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
function useValidationAttributes() {
|
|
4
|
-
const attributes = useAttrs();
|
|
5
|
-
return {
|
|
6
|
-
required: computed(() => attributes['required']),
|
|
7
|
-
minlength: computed(() => attributes['minlength']),
|
|
8
|
-
maxlength: computed(() => attributes['maxlength']),
|
|
9
|
-
pattern: computed(() => attributes['pattern']),
|
|
10
|
-
min: computed(() => attributes['min']),
|
|
11
|
-
max: computed(() => attributes['max']),
|
|
12
|
-
step: computed(() => attributes['step'])
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { useValidationAttributes as u };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ControlAttributes {
|
|
3
|
-
readonly: ComputedRef<boolean | undefined>;
|
|
4
|
-
disabled: ComputedRef<boolean | undefined>;
|
|
5
|
-
'force-state': ComputedRef<string | undefined>;
|
|
6
|
-
}
|
|
7
|
-
export declare function useControlAttributes(): ControlAttributes;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue-demi';
|
|
2
|
-
interface ValidationAttributes {
|
|
3
|
-
required: ComputedRef<boolean | undefined>;
|
|
4
|
-
minlength: ComputedRef<number | undefined>;
|
|
5
|
-
maxlength: ComputedRef<number | undefined>;
|
|
6
|
-
pattern: ComputedRef<string | undefined>;
|
|
7
|
-
min: ComputedRef<number | undefined>;
|
|
8
|
-
max: ComputedRef<number | undefined>;
|
|
9
|
-
step: ComputedRef<number | undefined>;
|
|
10
|
-
}
|
|
11
|
-
export declare function useValidationAttributes(): ValidationAttributes;
|
|
12
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useAttrs, computed, getCurrentInstance } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
function useControlAttributes() {
|
|
4
|
-
const attributes = useAttrs();
|
|
5
|
-
return {
|
|
6
|
-
readonly: computed(() => attributes['readonly']),
|
|
7
|
-
disabled: computed(() => attributes['disabled']),
|
|
8
|
-
'force-state': computed(() => attributes['force-state'])
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function useIdAttribute() {
|
|
13
|
-
const attributes = useAttrs(),
|
|
14
|
-
component = getCurrentInstance();
|
|
15
|
-
return computed(() => {
|
|
16
|
-
var _a;
|
|
17
|
-
return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { useIdAttribute as a, useControlAttributes as u };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useAttrs, computed } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
function useValidationAttributes() {
|
|
4
|
-
const attributes = useAttrs();
|
|
5
|
-
return {
|
|
6
|
-
required: computed(() => attributes['required']),
|
|
7
|
-
minlength: computed(() => attributes['minlength']),
|
|
8
|
-
maxlength: computed(() => attributes['maxlength']),
|
|
9
|
-
pattern: computed(() => attributes['pattern']),
|
|
10
|
-
min: computed(() => attributes['min']),
|
|
11
|
-
max: computed(() => attributes['max']),
|
|
12
|
-
step: computed(() => attributes['step'])
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { useValidationAttributes as u };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { computed, ComputedRef, useAttrs } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
interface ControlAttributes {
|
|
4
|
-
readonly: ComputedRef<boolean | undefined>;
|
|
5
|
-
disabled: ComputedRef<boolean | undefined>;
|
|
6
|
-
|
|
7
|
-
'force-state': ComputedRef<string | undefined>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function useControlAttributes(): ControlAttributes {
|
|
11
|
-
const attributes = useAttrs();
|
|
12
|
-
|
|
13
|
-
return {
|
|
14
|
-
readonly: computed(() => attributes['readonly'] as boolean | undefined),
|
|
15
|
-
disabled: computed(() => attributes['disabled'] as boolean | undefined),
|
|
16
|
-
|
|
17
|
-
'force-state': computed(() => attributes['force-state'] as string | undefined),
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { computed, ComputedRef, getCurrentInstance, useAttrs } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
export function useIdAttribute(): ComputedRef<string | undefined> {
|
|
4
|
-
const attributes = useAttrs(), component = getCurrentInstance();
|
|
5
|
-
|
|
6
|
-
return computed(() => {
|
|
7
|
-
return attributes['id'] as string | undefined ?? component?.uid.toString();
|
|
8
|
-
});
|
|
9
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { computed, ComputedRef, useAttrs } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
interface ValidationAttributes {
|
|
4
|
-
required: ComputedRef<boolean | undefined>;
|
|
5
|
-
minlength: ComputedRef<number | undefined>;
|
|
6
|
-
maxlength: ComputedRef<number | undefined>;
|
|
7
|
-
pattern: ComputedRef<string | undefined>;
|
|
8
|
-
min: ComputedRef<number | undefined>;
|
|
9
|
-
max: ComputedRef<number | undefined>;
|
|
10
|
-
step: ComputedRef<number | undefined>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function useValidationAttributes(): ValidationAttributes {
|
|
14
|
-
const attributes = useAttrs();
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
required: computed(() => attributes['required'] as boolean | undefined),
|
|
18
|
-
minlength: computed(() => attributes['minlength'] as number | undefined),
|
|
19
|
-
maxlength: computed(() => attributes['maxlength'] as number | undefined),
|
|
20
|
-
pattern: computed(() => attributes['pattern'] as string | undefined),
|
|
21
|
-
min: computed(() => attributes['min'] as number | undefined),
|
|
22
|
-
max: computed(() => attributes['max'] as number | undefined),
|
|
23
|
-
step: computed(() => attributes['step'] as number | undefined),
|
|
24
|
-
};
|
|
25
|
-
}
|