@aziontech/webkit 1.6.0 → 1.7.1
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 +37 -2
- package/src/components/empty-results-block/empty-results-block.vue +115 -0
- package/src/components/empty-results-block/empty-results-block.vue.d.ts +112 -0
- package/src/components/empty-results-block/empty-results-block.vue.d.ts.map +1 -0
- package/src/components/empty-results-block/package.json +9 -0
- package/src/components/resizable-splitter/package.json +9 -0
- package/src/components/resizable-splitter/resizable-splitter.vue +282 -0
- package/src/components/resizable-splitter/resizable-splitter.vue.d.ts +78 -0
- package/src/components/resizable-splitter/resizable-splitter.vue.d.ts.map +1 -0
- package/src/core/form/field-dropdown/field-dropdown.vue +4 -4
- package/src/core/form/field-dropdown/field-dropdown.vue.d.ts +3 -3
- package/src/core/form/field-group-switch/field-group-switch.vue.d.ts +1 -1
- package/src/core/form/field-number/field-number.vue +4 -4
- package/src/core/form/field-number/field-number.vue.d.ts +3 -3
- package/src/core/form/{field-text-password/field-text-password.vue → field-password/field-password.vue} +4 -4
- package/src/core/form/{field-text-password/field-text-password.vue.d.ts → field-password/field-password.vue.d.ts} +4 -4
- package/src/core/form/field-password/field-password.vue.d.ts.map +1 -0
- package/src/core/form/field-password/package.json +11 -0
- package/src/core/form/field-password-strength/field-password-strength.vue +209 -0
- package/src/core/form/field-password-strength/field-password-strength.vue.d.ts +175 -0
- package/src/core/form/field-password-strength/field-password-strength.vue.d.ts.map +1 -0
- package/src/core/form/field-password-strength/package.json +11 -0
- package/src/core/form/field-radio-block/field-radio-block.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 +4 -4
- package/src/core/form/field-text/field-text.vue.d.ts +3 -3
- package/src/core/form/field-text-area/field-text-area.vue +4 -4
- package/src/core/form/field-text-area/field-text-area.vue.d.ts +3 -3
- package/src/core/form/field-text-privacy/field-text-privacy.vue +7 -7
- package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts +3 -3
- package/src/core/primevue/accordion/accordion.vue +35 -0
- package/src/core/primevue/accordion/accordion.vue.d.ts +49 -0
- package/src/core/primevue/accordion/accordion.vue.d.ts.map +1 -0
- package/src/core/primevue/accordion/package.json +8 -0
- package/src/core/primevue/accordion-tab/accordion-tab.vue +30 -0
- package/src/core/primevue/accordion-tab/accordion-tab.vue.d.ts +41 -0
- package/src/core/primevue/accordion-tab/accordion-tab.vue.d.ts.map +1 -0
- package/src/core/primevue/accordion-tab/package.json +8 -0
- package/src/core/primevue/avatar/avatar.vue +47 -0
- package/src/core/primevue/avatar/avatar.vue.d.ts +72 -0
- package/src/core/primevue/avatar/avatar.vue.d.ts.map +1 -0
- package/src/core/primevue/avatar/package.json +1 -0
- package/src/core/primevue/badge/badge.vue +35 -0
- package/src/core/primevue/badge/badge.vue.d.ts +47 -0
- package/src/core/primevue/badge/badge.vue.d.ts.map +1 -0
- package/src/core/primevue/badge/package.json +8 -0
- package/src/core/primevue/breadcrumb/breadcrumb.vue +32 -0
- package/src/core/primevue/breadcrumb/breadcrumb.vue.d.ts +43 -0
- package/src/core/primevue/breadcrumb/breadcrumb.vue.d.ts.map +1 -0
- package/src/core/primevue/breadcrumb/package.json +1 -0
- package/src/core/primevue/button/button.vue +98 -0
- package/src/core/primevue/button/button.vue.d.ts +159 -0
- package/src/core/primevue/button/button.vue.d.ts.map +1 -0
- package/src/core/primevue/button/package.json +8 -0
- package/src/core/primevue/card/card.vue +32 -0
- package/src/core/primevue/card/card.vue.d.ts +31 -0
- package/src/core/primevue/card/card.vue.d.ts.map +1 -0
- package/src/core/primevue/card/package.json +1 -0
- package/src/core/primevue/carousel/carousel.vue +111 -0
- package/src/core/primevue/carousel/carousel.vue.d.ts +170 -0
- package/src/core/primevue/carousel/carousel.vue.d.ts.map +1 -0
- package/src/core/primevue/carousel/package.json +1 -0
- package/src/core/primevue/chip/chip.vue +45 -0
- package/src/core/primevue/chip/chip.vue.d.ts +63 -0
- package/src/core/primevue/chip/chip.vue.d.ts.map +1 -0
- package/src/core/primevue/chip/package.json +1 -0
- package/src/core/primevue/column/column.vue +75 -0
- package/src/core/primevue/column/column.vue.d.ts +138 -0
- package/src/core/primevue/column/column.vue.d.ts.map +1 -0
- package/src/core/primevue/column/package.json +1 -0
- package/src/core/primevue/datatable/datatable.vue +167 -0
- package/src/core/primevue/datatable/datatable.vue.d.ts +311 -0
- package/src/core/primevue/datatable/datatable.vue.d.ts.map +1 -0
- package/src/core/primevue/datatable/package.json +1 -0
- package/src/core/primevue/dialog/dialog.vue +86 -0
- package/src/core/primevue/dialog/dialog.vue.d.ts +124 -0
- package/src/core/primevue/dialog/dialog.vue.d.ts.map +1 -0
- package/src/core/primevue/dialog/package.json +1 -0
- package/src/core/primevue/divider/divider.vue +40 -0
- package/src/core/primevue/divider/divider.vue.d.ts +56 -0
- package/src/core/primevue/divider/divider.vue.d.ts.map +1 -0
- package/src/core/primevue/divider/package.json +1 -0
- package/src/core/primevue/inline-message/inline-message.vue +31 -0
- package/src/core/primevue/inline-message/inline-message.vue.d.ts +43 -0
- package/src/core/primevue/inline-message/inline-message.vue.d.ts.map +1 -0
- package/src/core/primevue/inline-message/package.json +8 -0
- package/src/core/primevue/menu/menu.vue +45 -0
- package/src/core/primevue/menu/menu.vue.d.ts +57 -0
- package/src/core/primevue/menu/menu.vue.d.ts.map +1 -0
- package/src/core/primevue/menu/package.json +1 -0
- package/src/core/primevue/message/message.vue +49 -0
- package/src/core/primevue/message/message.vue.d.ts +74 -0
- package/src/core/primevue/message/message.vue.d.ts.map +1 -0
- package/src/core/primevue/message/package.json +8 -0
- package/src/core/primevue/overlaypanel/overlaypanel.vue +36 -0
- package/src/core/primevue/overlaypanel/overlaypanel.vue.d.ts +47 -0
- package/src/core/primevue/overlaypanel/overlaypanel.vue.d.ts.map +1 -0
- package/src/core/primevue/overlaypanel/package.json +1 -0
- package/src/core/primevue/paginator/package.json +1 -0
- package/src/core/primevue/paginator/paginator.vue +65 -0
- package/src/core/primevue/paginator/paginator.vue.d.ts +96 -0
- package/src/core/primevue/paginator/paginator.vue.d.ts.map +1 -0
- package/src/core/primevue/progressbar/package.json +1 -0
- package/src/core/primevue/progressbar/progressbar.vue +34 -0
- package/src/core/primevue/progressbar/progressbar.vue.d.ts +45 -0
- package/src/core/primevue/progressbar/progressbar.vue.d.ts.map +1 -0
- package/src/core/primevue/progressspinner/package.json +1 -0
- package/src/core/primevue/progressspinner/progressspinner.vue +33 -0
- package/src/core/primevue/progressspinner/progressspinner.vue.d.ts +43 -0
- package/src/core/primevue/progressspinner/progressspinner.vue.d.ts.map +1 -0
- package/src/core/primevue/sidebar/package.json +1 -0
- package/src/core/primevue/sidebar/sidebar.vue +69 -0
- package/src/core/primevue/sidebar/sidebar.vue.d.ts +100 -0
- package/src/core/primevue/sidebar/sidebar.vue.d.ts.map +1 -0
- package/src/core/primevue/skeleton/package.json +1 -0
- package/src/core/primevue/skeleton/skeleton.vue +51 -0
- package/src/core/primevue/skeleton/skeleton.vue.d.ts +76 -0
- package/src/core/primevue/skeleton/skeleton.vue.d.ts.map +1 -0
- package/src/core/primevue/splitbutton/package.json +1 -0
- package/src/core/primevue/splitbutton/splitbutton.vue +77 -0
- package/src/core/primevue/splitbutton/splitbutton.vue.d.ts +121 -0
- package/src/core/primevue/splitbutton/splitbutton.vue.d.ts.map +1 -0
- package/src/core/primevue/steps/package.json +1 -0
- package/src/core/primevue/steps/steps.vue +40 -0
- package/src/core/primevue/steps/steps.vue.d.ts +57 -0
- package/src/core/primevue/steps/steps.vue.d.ts.map +1 -0
- package/src/core/primevue/tabmenu/package.json +1 -0
- package/src/core/primevue/tabmenu/tabmenu.vue +40 -0
- package/src/core/primevue/tabmenu/tabmenu.vue.d.ts +57 -0
- package/src/core/primevue/tabmenu/tabmenu.vue.d.ts.map +1 -0
- package/src/core/primevue/tabpanel/package.json +1 -0
- package/src/core/primevue/tabpanel/tabpanel.vue +35 -0
- package/src/core/primevue/tabpanel/tabpanel.vue.d.ts +43 -0
- package/src/core/primevue/tabpanel/tabpanel.vue.d.ts.map +1 -0
- package/src/core/primevue/tabview/package.json +1 -0
- package/src/core/primevue/tabview/tabview.vue +41 -0
- package/src/core/primevue/tabview/tabview.vue.d.ts +56 -0
- package/src/core/primevue/tabview/tabview.vue.d.ts.map +1 -0
- package/src/core/primevue/tag/package.json +8 -0
- package/src/core/primevue/tag/tag.vue +43 -0
- package/src/core/primevue/tag/tag.vue.d.ts +61 -0
- package/src/core/primevue/tag/tag.vue.d.ts.map +1 -0
- package/src/core/primevue/timeline/package.json +1 -0
- package/src/core/primevue/timeline/timeline.vue +48 -0
- package/src/core/primevue/timeline/timeline.vue.d.ts +72 -0
- package/src/core/primevue/timeline/timeline.vue.d.ts.map +1 -0
- package/src/core/primevue/toast/package.json +1 -0
- package/src/core/primevue/toast/toast.vue +38 -0
- package/src/core/primevue/toast/toast.vue.d.ts +54 -0
- package/src/core/primevue/toast/toast.vue.d.ts.map +1 -0
- package/src/core/primevue/toolbar/package.json +1 -0
- package/src/core/primevue/toolbar/toolbar.vue +26 -0
- package/src/core/primevue/toolbar/toolbar.vue.d.ts +27 -0
- package/src/core/primevue/toolbar/toolbar.vue.d.ts.map +1 -0
- package/src/core/form/field-text-password/field-text-password.vue.d.ts.map +0 -1
- package/src/core/form/field-text-password/package.json +0 -11
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
type: String,
|
|
83
83
|
default: 'No results found'
|
|
84
84
|
},
|
|
85
|
-
|
|
85
|
+
additionalError: {
|
|
86
86
|
type: String,
|
|
87
87
|
default: ''
|
|
88
88
|
}
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
:emptyFilterMessage="props.emptyFilterMessage"
|
|
203
203
|
@change="emitChange"
|
|
204
204
|
@blur="emitBlur"
|
|
205
|
-
:class="{ 'p-invalid':
|
|
205
|
+
:class="{ 'p-invalid': additionalError || errorMessage }"
|
|
206
206
|
v-bind="$attrs"
|
|
207
207
|
:disabled="props.disabled"
|
|
208
208
|
class="w-full"
|
|
@@ -224,11 +224,11 @@
|
|
|
224
224
|
</Dropdown>
|
|
225
225
|
|
|
226
226
|
<small
|
|
227
|
-
v-if="
|
|
227
|
+
v-if="additionalError || errorMessage"
|
|
228
228
|
:data-testid="customTestId.error"
|
|
229
229
|
class="p-error text-xs font-normal leading-tight"
|
|
230
230
|
>
|
|
231
|
-
{{
|
|
231
|
+
{{ additionalError || errorMessage }}
|
|
232
232
|
</small>
|
|
233
233
|
<small
|
|
234
234
|
class="text-xs text-color-secondary font-normal leading-5"
|
|
@@ -81,7 +81,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
81
81
|
type: StringConstructor;
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
additionalError: {
|
|
85
85
|
type: StringConstructor;
|
|
86
86
|
default: string;
|
|
87
87
|
};
|
|
@@ -166,7 +166,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
166
166
|
type: StringConstructor;
|
|
167
167
|
default: string;
|
|
168
168
|
};
|
|
169
|
-
|
|
169
|
+
additionalError: {
|
|
170
170
|
type: StringConstructor;
|
|
171
171
|
default: string;
|
|
172
172
|
};
|
|
@@ -193,7 +193,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
193
193
|
editable: boolean;
|
|
194
194
|
emptyMessage: string;
|
|
195
195
|
emptyFilterMessage: string;
|
|
196
|
-
|
|
196
|
+
additionalError: string;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
198
198
|
type __VLS_Slots = {
|
|
199
199
|
footer?: ((props: {}) => any) | undefined;
|
|
@@ -73,8 +73,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
73
73
|
}>> & Readonly<{}>, {
|
|
74
74
|
label: string;
|
|
75
75
|
disabled: boolean;
|
|
76
|
-
inputClass: string;
|
|
77
76
|
auto: boolean;
|
|
77
|
+
inputClass: string;
|
|
78
78
|
isCard: boolean;
|
|
79
79
|
hideSelector: boolean;
|
|
80
80
|
helpText: string;
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: true
|
|
59
59
|
},
|
|
60
|
-
|
|
60
|
+
additionalError: {
|
|
61
61
|
type: String,
|
|
62
62
|
default: ''
|
|
63
63
|
}
|
|
@@ -125,16 +125,16 @@
|
|
|
125
125
|
name: props.name
|
|
126
126
|
}
|
|
127
127
|
}"
|
|
128
|
-
:class="[{ 'p-invalid':
|
|
128
|
+
:class="[{ 'p-invalid': additionalError || errorMessage }, props.inputClass]"
|
|
129
129
|
:data-testid="customTestId.input"
|
|
130
130
|
/>
|
|
131
131
|
|
|
132
132
|
<small
|
|
133
|
-
v-if="
|
|
133
|
+
v-if="additionalError || errorMessage"
|
|
134
134
|
class="p-error text-xs font-normal leading-tight"
|
|
135
135
|
:data-testid="customTestId.error"
|
|
136
136
|
>
|
|
137
|
-
{{
|
|
137
|
+
{{ additionalError || errorMessage }}
|
|
138
138
|
</small>
|
|
139
139
|
<small
|
|
140
140
|
class="text-xs text-color-secondary font-normal leading-5"
|
|
@@ -51,7 +51,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
51
51
|
type: BooleanConstructor;
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
additionalError: {
|
|
55
55
|
type: StringConstructor;
|
|
56
56
|
default: string;
|
|
57
57
|
};
|
|
@@ -109,7 +109,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
109
109
|
type: BooleanConstructor;
|
|
110
110
|
default: boolean;
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
additionalError: {
|
|
113
113
|
type: StringConstructor;
|
|
114
114
|
default: string;
|
|
115
115
|
};
|
|
@@ -124,7 +124,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
124
124
|
placeholder: string;
|
|
125
125
|
readonly: boolean;
|
|
126
126
|
inputClass: string;
|
|
127
|
-
|
|
127
|
+
additionalError: string;
|
|
128
128
|
step: number;
|
|
129
129
|
showButtons: boolean;
|
|
130
130
|
useGrouping: boolean;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: false
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
additionalError: {
|
|
46
46
|
type: String,
|
|
47
47
|
default: ''
|
|
48
48
|
}
|
|
@@ -104,18 +104,18 @@
|
|
|
104
104
|
:readonly="readonly"
|
|
105
105
|
:disabled="disabled"
|
|
106
106
|
:placeholder="props.placeholder"
|
|
107
|
-
:class="[{ 'p-invalid':
|
|
107
|
+
:class="[{ 'p-invalid': additionalError || veeValidateErrorMessage }, props.class]"
|
|
108
108
|
:feedback="false"
|
|
109
109
|
:data-testid="customTestId.input"
|
|
110
110
|
@input="onChange"
|
|
111
111
|
@blur="onBlur"
|
|
112
112
|
/>
|
|
113
113
|
<small
|
|
114
|
-
v-if="
|
|
114
|
+
v-if="additionalError || veeValidateErrorMessage"
|
|
115
115
|
class="p-error text-xs font-normal leading-tight"
|
|
116
116
|
:data-testid="customTestId.error"
|
|
117
117
|
>
|
|
118
|
-
{{
|
|
118
|
+
{{ additionalError || veeValidateErrorMessage }}
|
|
119
119
|
</small>
|
|
120
120
|
<small
|
|
121
121
|
v-if="props.description || hasDescriptionSlot"
|
|
@@ -40,7 +40,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
40
40
|
type: BooleanConstructor;
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
additionalError: {
|
|
44
44
|
type: StringConstructor;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
@@ -85,7 +85,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
85
85
|
type: BooleanConstructor;
|
|
86
86
|
default: boolean;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
additionalError: {
|
|
89
89
|
type: StringConstructor;
|
|
90
90
|
default: string;
|
|
91
91
|
};
|
|
@@ -99,10 +99,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
99
99
|
value: string;
|
|
100
100
|
placeholder: string;
|
|
101
101
|
readonly: boolean;
|
|
102
|
-
|
|
102
|
+
additionalError: string;
|
|
103
103
|
sensitive: boolean;
|
|
104
104
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
105
|
type __VLS_Slots = {
|
|
106
106
|
description?: ((props: {}) => any) | undefined;
|
|
107
107
|
};
|
|
108
|
-
//# sourceMappingURL=field-
|
|
108
|
+
//# sourceMappingURL=field-password.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-password.vue.d.ts","sourceRoot":"","sources":["field-password.vue"],"names":[],"mappings":"wBAoZqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA/CzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, toRef, useAttrs, useSlots } from 'vue'
|
|
3
|
+
import { useField } from 'vee-validate'
|
|
4
|
+
import Password from 'primevue/password'
|
|
5
|
+
import Divider from 'primevue/divider'
|
|
6
|
+
import Label from '../label'
|
|
7
|
+
import InputSlot from '../slots/input-slot'
|
|
8
|
+
|
|
9
|
+
const emit = defineEmits(['blur', 'input', 'submit', 'focus'])
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
value: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ''
|
|
14
|
+
},
|
|
15
|
+
class: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ''
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
label: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ''
|
|
26
|
+
},
|
|
27
|
+
placeholder: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ''
|
|
30
|
+
},
|
|
31
|
+
description: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ''
|
|
34
|
+
},
|
|
35
|
+
disabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
readonly: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
additionalError: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ''
|
|
46
|
+
},
|
|
47
|
+
promptLabel: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: 'Choose a password'
|
|
50
|
+
},
|
|
51
|
+
weakLabel: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: 'Weak'
|
|
54
|
+
},
|
|
55
|
+
mediumLabel: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: 'Medium'
|
|
58
|
+
},
|
|
59
|
+
strongLabel: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: 'Strong'
|
|
62
|
+
},
|
|
63
|
+
strongRegex: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: '^(?=.*[-_!@#$%^&*(),.?":{}|<>])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.{8,})'
|
|
66
|
+
},
|
|
67
|
+
requirements: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default: () => [
|
|
70
|
+
{ text: '8 characters' },
|
|
71
|
+
{ text: '1 uppercase letter' },
|
|
72
|
+
{ text: '1 lowercase letter' },
|
|
73
|
+
{ text: '1 number' },
|
|
74
|
+
{ text: '1 special character' }
|
|
75
|
+
],
|
|
76
|
+
validator: (value) => value.every((item) => typeof item.text === 'string')
|
|
77
|
+
},
|
|
78
|
+
requirementsLabel: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: 'Must have at least:'
|
|
81
|
+
}
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
const inputPasswordRef = ref(null)
|
|
85
|
+
const name = toRef(props, 'name')
|
|
86
|
+
const slots = useSlots()
|
|
87
|
+
const attrs = useAttrs()
|
|
88
|
+
const hasDescriptionSlot = computed(() => !!slots.description)
|
|
89
|
+
|
|
90
|
+
const hasError = computed(() => !!(props.additionalError || veeValidateErrorMessage.value))
|
|
91
|
+
|
|
92
|
+
const customTestId = computed(() => {
|
|
93
|
+
const id = attrs['data-testid'] || 'field-password-strength'
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
label: `${id}__label`,
|
|
97
|
+
input: `${id}__input`,
|
|
98
|
+
description: `${id}__description`,
|
|
99
|
+
error: `${id}__error-message`
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
const {
|
|
104
|
+
value: inputValue,
|
|
105
|
+
errorMessage: veeValidateErrorMessage,
|
|
106
|
+
handleBlur,
|
|
107
|
+
handleChange
|
|
108
|
+
} = useField(name, undefined, {
|
|
109
|
+
initialValue: props.value
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
const onBlur = (event) => {
|
|
113
|
+
handleBlur(event)
|
|
114
|
+
emit('blur', event)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const onChange = (event) => {
|
|
118
|
+
handleChange(event)
|
|
119
|
+
emit('input', event?.target?.value ?? inputValue.value)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const onFocus = (event) => {
|
|
123
|
+
emit('focus', event)
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const onKeydown = (event) => {
|
|
127
|
+
if (event.key === 'Enter' && !props.disabled && !props.readonly) {
|
|
128
|
+
event.preventDefault()
|
|
129
|
+
emit('submit', inputValue.value)
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
defineExpose({ inputPasswordRef })
|
|
134
|
+
</script>
|
|
135
|
+
|
|
136
|
+
<template>
|
|
137
|
+
<InputSlot>
|
|
138
|
+
<Label
|
|
139
|
+
v-if="props.label"
|
|
140
|
+
:for="props.name"
|
|
141
|
+
:data-testid="customTestId.label"
|
|
142
|
+
:label="props.label"
|
|
143
|
+
:isRequired="attrs.required"
|
|
144
|
+
/>
|
|
145
|
+
<Password
|
|
146
|
+
toggleMask
|
|
147
|
+
ref="inputPasswordRef"
|
|
148
|
+
v-model="inputValue"
|
|
149
|
+
:id="name"
|
|
150
|
+
:name="name"
|
|
151
|
+
:readonly="readonly"
|
|
152
|
+
:disabled="disabled"
|
|
153
|
+
:placeholder="props.placeholder"
|
|
154
|
+
:class="[{ 'p-invalid': hasError }, props.class]"
|
|
155
|
+
:aria-invalid="hasError"
|
|
156
|
+
:aria-describedby="`${name}-error ${name}-description`"
|
|
157
|
+
:promptLabel="props.promptLabel"
|
|
158
|
+
:weakLabel="props.weakLabel"
|
|
159
|
+
:mediumLabel="props.mediumLabel"
|
|
160
|
+
:strongLabel="props.strongLabel"
|
|
161
|
+
:strongRegex="props.strongRegex"
|
|
162
|
+
:pt="{ meter: 'rounded-md', meterLabel: 'text-sm' }"
|
|
163
|
+
:data-testid="customTestId.input"
|
|
164
|
+
autocomplete="off"
|
|
165
|
+
@input="onChange"
|
|
166
|
+
@blur="onBlur"
|
|
167
|
+
@focus="onFocus"
|
|
168
|
+
@keydown="onKeydown"
|
|
169
|
+
>
|
|
170
|
+
<template #header> </template>
|
|
171
|
+
<template #footer v-if="props.requirements.length">
|
|
172
|
+
<div class="mt-4 text-sm space-y-4">
|
|
173
|
+
<Divider />
|
|
174
|
+
<p class="font-medium">{{ props.requirementsLabel }}</p>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="text-sm p-4 py-0 mt-2">
|
|
177
|
+
<ul
|
|
178
|
+
:aria-label="props.requirementsLabel"
|
|
179
|
+
class="list-square font-normal space-y-2 text-color-secondary"
|
|
180
|
+
>
|
|
181
|
+
<li v-for="(requirement, index) in props.requirements" :key="requirement.text || index">
|
|
182
|
+
<span>{{ requirement.text }}</span>
|
|
183
|
+
</li>
|
|
184
|
+
</ul>
|
|
185
|
+
</div>
|
|
186
|
+
</template>
|
|
187
|
+
</Password>
|
|
188
|
+
<small
|
|
189
|
+
v-if="hasError"
|
|
190
|
+
:id="`${name}-error`"
|
|
191
|
+
role="alert"
|
|
192
|
+
aria-live="assertive"
|
|
193
|
+
class="p-error text-xs font-normal leading-tight"
|
|
194
|
+
:data-testid="customTestId.error"
|
|
195
|
+
>
|
|
196
|
+
{{ additionalError || veeValidateErrorMessage }}
|
|
197
|
+
</small>
|
|
198
|
+
<small
|
|
199
|
+
v-if="props.description || hasDescriptionSlot"
|
|
200
|
+
:id="`${name}-description`"
|
|
201
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
202
|
+
:data-testid="customTestId.description"
|
|
203
|
+
>
|
|
204
|
+
<slot name="description">
|
|
205
|
+
{{ props.description }}
|
|
206
|
+
</slot>
|
|
207
|
+
</small>
|
|
208
|
+
</InputSlot>
|
|
209
|
+
</template>
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
value: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
class: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
name: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
placeholder: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
description: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
disabled: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
readonly: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
additionalError: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
promptLabel: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
weakLabel: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
mediumLabel: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
strongLabel: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
strongRegex: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
requirements: {
|
|
65
|
+
type: ArrayConstructor;
|
|
66
|
+
default: () => {
|
|
67
|
+
text: string;
|
|
68
|
+
}[];
|
|
69
|
+
validator: (value: unknown) => any;
|
|
70
|
+
};
|
|
71
|
+
requirementsLabel: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
}>, {
|
|
76
|
+
inputPasswordRef: import("vue").Ref<null, null>;
|
|
77
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
78
|
+
input: (...args: any[]) => void;
|
|
79
|
+
blur: (...args: any[]) => void;
|
|
80
|
+
focus: (...args: any[]) => void;
|
|
81
|
+
submit: (...args: any[]) => void;
|
|
82
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
|
+
value: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
class: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
name: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
label: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
placeholder: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
description: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
disabled: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
readonly: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
additionalError: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
promptLabel: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
weakLabel: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
mediumLabel: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
strongLabel: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
strongRegex: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
requirements: {
|
|
140
|
+
type: ArrayConstructor;
|
|
141
|
+
default: () => {
|
|
142
|
+
text: string;
|
|
143
|
+
}[];
|
|
144
|
+
validator: (value: unknown) => any;
|
|
145
|
+
};
|
|
146
|
+
requirementsLabel: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
}>> & Readonly<{
|
|
151
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
}>, {
|
|
156
|
+
description: string;
|
|
157
|
+
label: string;
|
|
158
|
+
class: string;
|
|
159
|
+
disabled: boolean;
|
|
160
|
+
value: string;
|
|
161
|
+
placeholder: string;
|
|
162
|
+
readonly: boolean;
|
|
163
|
+
additionalError: string;
|
|
164
|
+
promptLabel: string;
|
|
165
|
+
strongRegex: string;
|
|
166
|
+
weakLabel: string;
|
|
167
|
+
mediumLabel: string;
|
|
168
|
+
strongLabel: string;
|
|
169
|
+
requirements: unknown[];
|
|
170
|
+
requirementsLabel: string;
|
|
171
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
172
|
+
type __VLS_Slots = {
|
|
173
|
+
description?: ((props: {}) => any) | undefined;
|
|
174
|
+
};
|
|
175
|
+
//# sourceMappingURL=field-password-strength.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-password-strength.vue.d.ts","sourceRoot":"","sources":["field-password-strength.vue"],"names":[],"mappings":"wBA+oBqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA/EzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4EG"}
|
|
@@ -102,8 +102,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
102
102
|
onOnRadioChange?: ((...args: any[]) => any) | undefined;
|
|
103
103
|
}>, {
|
|
104
104
|
disabled: boolean;
|
|
105
|
-
inputValue: string | boolean | Record<string, any>;
|
|
106
105
|
auto: boolean;
|
|
106
|
+
inputValue: string | boolean | Record<string, any>;
|
|
107
107
|
isCard: boolean;
|
|
108
108
|
hideSelector: boolean;
|
|
109
109
|
isLabel: boolean;
|
|
@@ -111,8 +111,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
111
111
|
}>, {
|
|
112
112
|
disabled: boolean;
|
|
113
113
|
value: boolean;
|
|
114
|
-
readonly: boolean;
|
|
115
114
|
auto: boolean;
|
|
115
|
+
readonly: boolean;
|
|
116
116
|
isCard: boolean;
|
|
117
117
|
hideSelector: boolean;
|
|
118
118
|
isLabel: boolean;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: false
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
additionalError: {
|
|
46
46
|
type: String,
|
|
47
47
|
default: ''
|
|
48
48
|
}
|
|
@@ -106,17 +106,17 @@
|
|
|
106
106
|
:readonly="readonly"
|
|
107
107
|
:disabled="disabled"
|
|
108
108
|
:placeholder="props.placeholder"
|
|
109
|
-
:class="[{ 'p-invalid':
|
|
109
|
+
:class="[{ 'p-invalid': additionalError || veeValidateErrorMessage }, props.class]"
|
|
110
110
|
@input="onChange"
|
|
111
111
|
@keypress.enter.prevent
|
|
112
112
|
@blur="onBlur"
|
|
113
113
|
/>
|
|
114
114
|
<small
|
|
115
|
-
v-if="
|
|
115
|
+
v-if="additionalError || veeValidateErrorMessage"
|
|
116
116
|
class="p-error text-xs font-normal leading-tight"
|
|
117
117
|
:data-testid="customTestId.error"
|
|
118
118
|
>
|
|
119
|
-
{{
|
|
119
|
+
{{ additionalError || veeValidateErrorMessage }}
|
|
120
120
|
</small>
|
|
121
121
|
<small
|
|
122
122
|
v-if="props.description || hasDescriptionSlot"
|
|
@@ -40,7 +40,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
40
40
|
type: BooleanConstructor;
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
additionalError: {
|
|
44
44
|
type: StringConstructor;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
@@ -85,7 +85,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
85
85
|
type: BooleanConstructor;
|
|
86
86
|
default: boolean;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
additionalError: {
|
|
89
89
|
type: StringConstructor;
|
|
90
90
|
default: string;
|
|
91
91
|
};
|
|
@@ -99,7 +99,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
99
99
|
value: string;
|
|
100
100
|
placeholder: string;
|
|
101
101
|
readonly: boolean;
|
|
102
|
-
|
|
102
|
+
additionalError: string;
|
|
103
103
|
sensitive: boolean;
|
|
104
104
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
105
|
type __VLS_Slots = {
|