@aziontech/webkit 1.1.0 → 1.3.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/package.json +5 -3
- package/src/components/azion-system-status/azion-system-status.vue +122 -0
- package/src/components/azion-system-status/azion-system-status.vue.d.ts +4 -0
- package/src/components/azion-system-status/azion-system-status.vue.d.ts.map +1 -0
- package/src/components/azion-system-status/package.json +11 -0
- package/src/core/form/field-auto-complete/field-auto-complete.vue +48 -45
- package/src/core/form/field-auto-complete/field-auto-complete.vue.d.ts +4 -4
- package/src/core/form/field-auto-complete/field-auto-complete.vue.d.ts.map +1 -1
- package/src/core/form/field-checkbox-block/field-checkbox-block.vue.d.ts +3 -3
- package/src/core/form/field-dropdown/field-dropdown.vue +68 -65
- package/src/core/form/field-dropdown/field-dropdown.vue.d.ts +5 -5
- package/src/core/form/field-dropdown/field-dropdown.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue +49 -46
- package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue.d.ts +4 -4
- package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue +116 -113
- package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue.d.ts +2 -2
- package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue +93 -90
- package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue.d.ts +2 -2
- package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue +111 -108
- package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue.d.ts +2 -2
- package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue +92 -89
- package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue.d.ts +2 -2
- package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue.d.ts.map +1 -1
- package/src/core/form/field-input-group/field-input-group.vue +44 -41
- package/src/core/form/field-input-group/field-input-group.vue.d.ts +3 -3
- package/src/core/form/field-input-group/field-input-group.vue.d.ts.map +1 -1
- package/src/core/form/field-multi-select/field-multi-select.vue +2 -2
- package/src/core/form/field-multi-select/field-multi-select.vue.d.ts +5 -5
- package/src/core/form/field-number/field-number.vue +46 -43
- package/src/core/form/field-number/field-number.vue.d.ts +3 -3
- package/src/core/form/field-number/field-number.vue.d.ts.map +1 -1
- package/src/core/form/field-phone-number/field-phone-number.vue +2 -2
- package/src/core/form/field-phone-number/field-phone-number.vue.d.ts +2 -2
- package/src/core/form/field-radio-block/field-radio-block.vue.d.ts +2 -2
- package/src/core/form/field-switch/field-switch.vue.d.ts +1 -1
- package/src/core/form/field-switch-block/field-switch-block.vue.d.ts +1 -1
- package/src/core/form/field-text/field-text.vue +43 -40
- package/src/core/form/field-text/field-text.vue.d.ts +3 -3
- package/src/core/form/field-text/field-text.vue.d.ts.map +1 -1
- package/src/core/form/field-text-area/field-text-area.vue +61 -58
- package/src/core/form/field-text-area/field-text-area.vue.d.ts +3 -3
- package/src/core/form/field-text-area/field-text-area.vue.d.ts.map +1 -1
- package/src/core/form/field-text-icon/field-text-icon.vue +48 -42
- package/src/core/form/field-text-icon/field-text-icon.vue.d.ts +4 -4
- package/src/core/form/field-text-icon/field-text-icon.vue.d.ts.map +1 -1
- package/src/core/form/field-text-password/field-text-password.vue +42 -39
- package/src/core/form/field-text-password/field-text-password.vue.d.ts +3 -3
- package/src/core/form/field-text-password/field-text-password.vue.d.ts.map +1 -1
- package/src/core/form/field-text-privacy/field-text-privacy.vue +132 -129
- package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts +3 -3
- package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts.map +1 -1
- package/src/core/form/slots/input-slot/input-slot.vue +8 -0
- package/src/core/form/slots/input-slot/input-slot.vue.d.ts +11 -0
- package/src/core/form/slots/input-slot/input-slot.vue.d.ts.map +1 -0
- package/src/core/form/slots/input-slot/package.json +11 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { computed, toRef, useAttrs } from 'vue'
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import InputNumber from 'primevue/inputnumber'
|
|
5
|
-
import
|
|
5
|
+
import Label from '../label'
|
|
6
|
+
import InputSlot from '../slots/input-slot'
|
|
6
7
|
|
|
7
8
|
const emit = defineEmits(['blur', 'input'])
|
|
8
9
|
const props = defineProps({
|
|
@@ -98,47 +99,49 @@
|
|
|
98
99
|
</script>
|
|
99
100
|
|
|
100
101
|
<template>
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
102
|
+
<InputSlot>
|
|
103
|
+
<Label
|
|
104
|
+
:for="props.name"
|
|
105
|
+
:data-testid="customTestId.label"
|
|
106
|
+
:label="props.label"
|
|
107
|
+
:isRequired="$attrs.required"
|
|
108
|
+
/>
|
|
109
|
+
<InputNumber
|
|
110
|
+
v-model="inputValue"
|
|
111
|
+
:showButtons="props.showButtons"
|
|
112
|
+
:placeholder="props.placeholder"
|
|
113
|
+
:disabled="props.disabled"
|
|
114
|
+
:readonly="props.readonly"
|
|
115
|
+
:id="name"
|
|
116
|
+
:min="props.min"
|
|
117
|
+
:max="props.max"
|
|
118
|
+
:step="props.step"
|
|
119
|
+
:useGrouping="props.useGrouping"
|
|
120
|
+
type="number"
|
|
121
|
+
@input="onInput"
|
|
122
|
+
@blur="onBlur"
|
|
123
|
+
:pt="{
|
|
124
|
+
input: {
|
|
125
|
+
name: props.name
|
|
126
|
+
}
|
|
127
|
+
}"
|
|
128
|
+
:class="[{ 'p-invalid': aditionalError || errorMessage }, props.inputClass]"
|
|
129
|
+
:data-testid="customTestId.input"
|
|
130
|
+
/>
|
|
129
131
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
<small
|
|
133
|
+
v-if="aditionalError || errorMessage"
|
|
134
|
+
class="p-error text-xs font-normal leading-tight"
|
|
135
|
+
:data-testid="customTestId.error"
|
|
136
|
+
>
|
|
137
|
+
{{ aditionalError || errorMessage }}
|
|
138
|
+
</small>
|
|
139
|
+
<small
|
|
140
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
141
|
+
:data-testid="customTestId.description"
|
|
142
|
+
v-if="props.description"
|
|
143
|
+
>
|
|
144
|
+
{{ props.description }}
|
|
145
|
+
</small>
|
|
146
|
+
</InputSlot>
|
|
144
147
|
</template>
|
|
@@ -117,11 +117,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
117
117
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
118
118
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
119
119
|
}>, {
|
|
120
|
-
value: string;
|
|
121
|
-
label: string;
|
|
122
|
-
placeholder: string;
|
|
123
120
|
description: string;
|
|
121
|
+
label: string;
|
|
124
122
|
disabled: boolean;
|
|
123
|
+
value: string;
|
|
124
|
+
placeholder: string;
|
|
125
125
|
readonly: boolean;
|
|
126
126
|
inputClass: string;
|
|
127
127
|
aditionalError: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-number.vue.d.ts","sourceRoot":"","sources":["field-number.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-number.vue.d.ts","sourceRoot":"","sources":["field-number.vue"],"names":[],"mappings":"wBA8bqB,OAAO,YAAY;;AA3DxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA0DG"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import Dropdown from 'primevue/dropdown'
|
|
5
5
|
import InputMask from 'primevue/inputmask'
|
|
6
|
-
import
|
|
6
|
+
import Label from '../label'
|
|
7
7
|
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
options: {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
<template>
|
|
78
78
|
<div class="flex flex-col sm:max-w-lg w-full gap-2">
|
|
79
|
-
<
|
|
79
|
+
<Label
|
|
80
80
|
:data-testid="customTestId.label"
|
|
81
81
|
:for="mobileName"
|
|
82
82
|
:label="props.label"
|
|
@@ -65,10 +65,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
65
|
"onChange:countryCode"?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
"onChange:mobile"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
}>, {
|
|
68
|
-
label: string;
|
|
69
68
|
description: string;
|
|
70
|
-
|
|
69
|
+
label: string;
|
|
71
70
|
loading: boolean;
|
|
71
|
+
disabled: boolean;
|
|
72
72
|
options: unknown[];
|
|
73
73
|
countryCodeName: string;
|
|
74
74
|
mobileName: string;
|
|
@@ -43,7 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
43
43
|
required: true;
|
|
44
44
|
};
|
|
45
45
|
inputValue: {
|
|
46
|
-
type: (
|
|
46
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
49
|
binary: {
|
|
@@ -91,7 +91,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
91
91
|
required: true;
|
|
92
92
|
};
|
|
93
93
|
inputValue: {
|
|
94
|
-
type: (
|
|
94
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
95
95
|
default: boolean;
|
|
96
96
|
};
|
|
97
97
|
binary: {
|
|
@@ -27,7 +27,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
}>> & Readonly<{}>, {
|
|
30
|
-
label: string;
|
|
31
30
|
description: string;
|
|
31
|
+
label: string;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
33
|
//# sourceMappingURL=field-switch.vue.d.ts.map
|
|
@@ -109,8 +109,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
109
109
|
}>> & Readonly<{
|
|
110
110
|
onOnSwitchChange?: ((...args: any[]) => any) | undefined;
|
|
111
111
|
}>, {
|
|
112
|
-
value: boolean;
|
|
113
112
|
disabled: boolean;
|
|
113
|
+
value: boolean;
|
|
114
114
|
readonly: boolean;
|
|
115
115
|
auto: boolean;
|
|
116
116
|
isCard: boolean;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { computed, ref, toRef, useAttrs, useSlots } from 'vue'
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import InputText from 'primevue/inputtext'
|
|
5
|
-
import
|
|
5
|
+
import InputSlot from '../slots/input-slot'
|
|
6
|
+
import Label from '../label'
|
|
6
7
|
|
|
7
8
|
const emit = defineEmits(['blur', 'input'])
|
|
8
9
|
const props = defineProps({
|
|
@@ -86,43 +87,45 @@
|
|
|
86
87
|
</script>
|
|
87
88
|
|
|
88
89
|
<template>
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
90
|
+
<InputSlot>
|
|
91
|
+
<Label
|
|
92
|
+
v-if="props.label"
|
|
93
|
+
:for="props.name"
|
|
94
|
+
:data-testid="customTestId.label"
|
|
95
|
+
:label="props.label"
|
|
96
|
+
:isRequired="attrs.required"
|
|
97
|
+
/>
|
|
98
|
+
<InputText
|
|
99
|
+
v-bind="sensitive ? { 'data-sentry-mask': '' } : {}"
|
|
100
|
+
v-model="inputValue"
|
|
101
|
+
ref="inputRef"
|
|
102
|
+
type="text"
|
|
103
|
+
:data-testid="customTestId.input"
|
|
104
|
+
:id="name"
|
|
105
|
+
:name="name"
|
|
106
|
+
:readonly="readonly"
|
|
107
|
+
:disabled="disabled"
|
|
108
|
+
:placeholder="props.placeholder"
|
|
109
|
+
:class="[{ 'p-invalid': aditionalError || veeValidateErrorMessage }, props.class]"
|
|
110
|
+
@input="onChange"
|
|
111
|
+
@keypress.enter.prevent
|
|
112
|
+
@blur="onBlur"
|
|
113
|
+
/>
|
|
114
|
+
<small
|
|
115
|
+
v-if="aditionalError || veeValidateErrorMessage"
|
|
116
|
+
class="p-error text-xs font-normal leading-tight"
|
|
117
|
+
:data-testid="customTestId.error"
|
|
118
|
+
>
|
|
119
|
+
{{ aditionalError || veeValidateErrorMessage }}
|
|
120
|
+
</small>
|
|
121
|
+
<small
|
|
122
|
+
v-if="props.description || hasDescriptionSlot"
|
|
123
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
124
|
+
:data-testid="customTestId.description"
|
|
125
|
+
>
|
|
126
|
+
<slot name="description">
|
|
127
|
+
{{ props.description }}
|
|
128
|
+
</slot>
|
|
129
|
+
</small>
|
|
130
|
+
</InputSlot>
|
|
128
131
|
</template>
|
|
@@ -93,11 +93,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
93
93
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
94
94
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
}>, {
|
|
96
|
-
value: string;
|
|
97
|
-
label: string;
|
|
98
|
-
placeholder: string;
|
|
99
96
|
description: string;
|
|
97
|
+
label: string;
|
|
100
98
|
disabled: boolean;
|
|
99
|
+
value: string;
|
|
100
|
+
placeholder: string;
|
|
101
101
|
readonly: boolean;
|
|
102
102
|
aditionalError: string;
|
|
103
103
|
sensitive: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-text.vue.d.ts","sourceRoot":"","sources":["field-text.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-text.vue.d.ts","sourceRoot":"","sources":["field-text.vue"],"names":[],"mappings":"wBA0ZqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA/CzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import TextArea from 'primevue/textarea'
|
|
5
5
|
import Skeleton from 'primevue/skeleton'
|
|
6
|
-
import
|
|
6
|
+
import InputSlot from '../slots/input-slot'
|
|
7
|
+
import Label from '../label'
|
|
7
8
|
|
|
8
9
|
const emit = defineEmits(['blur', 'input'])
|
|
9
10
|
const props = defineProps({
|
|
@@ -117,62 +118,64 @@
|
|
|
117
118
|
</script>
|
|
118
119
|
|
|
119
120
|
<template>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
<span
|
|
127
|
-
class="w-full"
|
|
128
|
-
:class="iconPositionClass"
|
|
129
|
-
>
|
|
130
|
-
<i
|
|
131
|
-
v-if="props.icon"
|
|
132
|
-
:class="props.icon"
|
|
133
|
-
class="text-color-secondary top-5 right-5"
|
|
121
|
+
<InputSlot>
|
|
122
|
+
<Label
|
|
123
|
+
:for="props.name"
|
|
124
|
+
:data-testid="customTestId.label"
|
|
125
|
+
:label="props.label"
|
|
126
|
+
:isRequired="attrs.required"
|
|
134
127
|
/>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
128
|
+
<span
|
|
129
|
+
class="w-full"
|
|
130
|
+
:class="iconPositionClass"
|
|
131
|
+
>
|
|
132
|
+
<i
|
|
133
|
+
v-if="props.icon"
|
|
134
|
+
:class="props.icon"
|
|
135
|
+
class="text-color-secondary top-5 right-5"
|
|
136
|
+
/>
|
|
137
|
+
<!-- Skeleton only for textarea input -->
|
|
138
|
+
<Skeleton
|
|
139
|
+
v-if="props.loading"
|
|
140
|
+
width="100%"
|
|
141
|
+
:height="textareaHeight"
|
|
142
|
+
borderRadius="6px"
|
|
143
|
+
/>
|
|
144
|
+
<TextArea
|
|
145
|
+
v-else
|
|
146
|
+
v-bind="sensitive ? { 'data-sentry-mask': '' } : {}"
|
|
147
|
+
v-model="inputValue"
|
|
148
|
+
ref="inputRef"
|
|
149
|
+
type="text"
|
|
150
|
+
class="w-full min-h-[2.75rem]"
|
|
151
|
+
:class="[{ 'p-invalid': aditionalError || veeValidateErrorMessage }, props.class]"
|
|
152
|
+
:id="name"
|
|
153
|
+
:data-testid="customTestId.textarea"
|
|
154
|
+
:name="props.name"
|
|
155
|
+
:disabled="props.disabled"
|
|
156
|
+
:autoResize="props.autoResize"
|
|
157
|
+
:rows="props.rows"
|
|
158
|
+
:cols="props.cols"
|
|
159
|
+
:placeholder="props.placeholder"
|
|
160
|
+
@input="onChange"
|
|
161
|
+
@blur="onBlur"
|
|
162
|
+
/>
|
|
163
|
+
</span>
|
|
164
|
+
<small
|
|
165
|
+
v-if="aditionalError || veeValidateErrorMessage"
|
|
166
|
+
class="p-error text-xs font-normal leading-tight"
|
|
167
|
+
:data-testid="customTestId.error"
|
|
168
|
+
>
|
|
169
|
+
{{ aditionalError || veeValidateErrorMessage }}
|
|
170
|
+
</small>
|
|
171
|
+
<small
|
|
172
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
173
|
+
:data-testid="customTestId.description"
|
|
174
|
+
v-if="props.description || hasDescriptionSlot"
|
|
175
|
+
>
|
|
176
|
+
<slot name="description">
|
|
177
|
+
{{ props.description }}
|
|
178
|
+
</slot>
|
|
179
|
+
</small>
|
|
180
|
+
</InputSlot>
|
|
178
181
|
</template>
|
|
@@ -123,12 +123,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
123
123
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
125
125
|
}>, {
|
|
126
|
-
value: string;
|
|
127
|
-
placeholder: string;
|
|
128
126
|
description: string;
|
|
129
|
-
disabled: boolean;
|
|
130
127
|
icon: string;
|
|
131
128
|
loading: boolean;
|
|
129
|
+
disabled: boolean;
|
|
130
|
+
value: string;
|
|
131
|
+
placeholder: string;
|
|
132
132
|
aditionalError: string;
|
|
133
133
|
sensitive: boolean;
|
|
134
134
|
rows: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-text-area.vue.d.ts","sourceRoot":"","sources":["field-text-area.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-text-area.vue.d.ts","sourceRoot":"","sources":["field-text-area.vue"],"names":[],"mappings":"wBA8hBqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA9DzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA2DG"}
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
import { computed, toRef, ref, watch } from 'vue'
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import InputText from 'primevue/inputtext'
|
|
5
|
-
import
|
|
5
|
+
import InputSlot from '../slots/input-slot'
|
|
6
|
+
import Label from '../label'
|
|
7
|
+
|
|
6
8
|
const emit = defineEmits(['click-icon'])
|
|
9
|
+
|
|
7
10
|
const props = defineProps({
|
|
8
11
|
value: {
|
|
9
12
|
type: String,
|
|
@@ -48,7 +51,6 @@
|
|
|
48
51
|
})
|
|
49
52
|
|
|
50
53
|
const nameInput = toRef(props, 'name')
|
|
51
|
-
|
|
52
54
|
const inputValue = ref(props.value)
|
|
53
55
|
const errorMessage = ref('')
|
|
54
56
|
let handleBlur = () => {}
|
|
@@ -58,8 +60,10 @@
|
|
|
58
60
|
const field = useField(nameInput, undefined, {
|
|
59
61
|
initialValue: props.value
|
|
60
62
|
})
|
|
63
|
+
|
|
61
64
|
inputValue.value = field.value
|
|
62
65
|
errorMessage.value = field.errorMessage
|
|
66
|
+
|
|
63
67
|
handleBlur = field.handleBlur
|
|
64
68
|
handleChange = field.handleChange
|
|
65
69
|
} else {
|
|
@@ -81,47 +85,49 @@
|
|
|
81
85
|
</script>
|
|
82
86
|
|
|
83
87
|
<template>
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<span
|
|
90
|
-
class="w-full"
|
|
91
|
-
:class="iconPositionClass"
|
|
92
|
-
>
|
|
93
|
-
<i
|
|
94
|
-
v-if="props.icon"
|
|
95
|
-
:class="props.icon"
|
|
96
|
-
class="text-color-secondary cursor-pointer"
|
|
97
|
-
@click="handleClick"
|
|
88
|
+
<InputSlot>
|
|
89
|
+
<Label
|
|
90
|
+
:for="props.name"
|
|
91
|
+
:label="props.label"
|
|
92
|
+
:isRequired="props.required"
|
|
98
93
|
/>
|
|
99
|
-
<
|
|
100
|
-
:id="props.name"
|
|
101
|
-
v-model="inputValue"
|
|
102
|
-
:name="props.name"
|
|
103
|
-
:readonly="props.readonly"
|
|
104
|
-
:disabled="props.disabled"
|
|
105
|
-
type="text"
|
|
94
|
+
<span
|
|
106
95
|
class="w-full"
|
|
107
|
-
:class="
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
96
|
+
:class="iconPositionClass"
|
|
97
|
+
>
|
|
98
|
+
<i
|
|
99
|
+
v-if="props.icon"
|
|
100
|
+
:class="props.icon"
|
|
101
|
+
class="text-color-secondary cursor-pointer"
|
|
102
|
+
@click="handleClick"
|
|
103
|
+
/>
|
|
104
|
+
<InputText
|
|
105
|
+
:id="props.name"
|
|
106
|
+
v-model="inputValue"
|
|
107
|
+
:name="props.name"
|
|
108
|
+
:readonly="props.readonly"
|
|
109
|
+
:disabled="props.disabled"
|
|
110
|
+
type="text"
|
|
111
|
+
class="w-full"
|
|
112
|
+
:class="{ 'p-invalid': errorMessage }"
|
|
113
|
+
:placeholder="props.placeholder"
|
|
114
|
+
@input="handleChange"
|
|
115
|
+
@blur="handleBlur"
|
|
116
|
+
v-bind="$attrs"
|
|
117
|
+
/>
|
|
118
|
+
</span>
|
|
114
119
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
<small
|
|
121
|
+
v-if="errorMessage"
|
|
122
|
+
class="p-error text-xs font-normal leading-tight"
|
|
123
|
+
>
|
|
124
|
+
{{ errorMessage }}
|
|
125
|
+
</small>
|
|
126
|
+
<small
|
|
127
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
128
|
+
v-if="props.description"
|
|
129
|
+
>
|
|
130
|
+
{{ props.description }}
|
|
131
|
+
</small>
|
|
132
|
+
</InputSlot>
|
|
127
133
|
</template>
|
|
@@ -87,13 +87,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
87
87
|
}>> & Readonly<{
|
|
88
88
|
"onClick-icon"?: ((...args: any[]) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
-
value: string;
|
|
91
|
-
label: string;
|
|
92
|
-
placeholder: string;
|
|
93
90
|
description: string;
|
|
91
|
+
label: string;
|
|
92
|
+
icon: string;
|
|
94
93
|
disabled: boolean;
|
|
94
|
+
value: string;
|
|
95
|
+
placeholder: string;
|
|
95
96
|
readonly: boolean;
|
|
96
|
-
icon: string;
|
|
97
97
|
required: boolean;
|
|
98
98
|
iconPosition: string;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-text-icon.vue.d.ts","sourceRoot":"","sources":["field-text-icon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-text-icon.vue.d.ts","sourceRoot":"","sources":["field-text-icon.vue"],"names":[],"mappings":"wBA8YqB,OAAO,YAAY;;AA7CxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
|