@aziontech/webkit 1.7.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.
Files changed (22) hide show
  1. package/package.json +3 -2
  2. package/src/core/form/field-dropdown/field-dropdown.vue +4 -4
  3. package/src/core/form/field-dropdown/field-dropdown.vue.d.ts +3 -3
  4. package/src/core/form/field-number/field-number.vue +4 -4
  5. package/src/core/form/field-number/field-number.vue.d.ts +3 -3
  6. package/src/core/form/{field-text-password/field-text-password.vue → field-password/field-password.vue} +4 -4
  7. package/src/core/form/{field-text-password/field-text-password.vue.d.ts → field-password/field-password.vue.d.ts} +4 -4
  8. package/src/core/form/field-password/field-password.vue.d.ts.map +1 -0
  9. package/src/core/form/field-password/package.json +11 -0
  10. package/src/core/form/field-password-strength/field-password-strength.vue +209 -0
  11. package/src/core/form/field-password-strength/field-password-strength.vue.d.ts +175 -0
  12. package/src/core/form/field-password-strength/field-password-strength.vue.d.ts.map +1 -0
  13. package/src/core/form/field-password-strength/package.json +11 -0
  14. package/src/core/form/field-text/field-text.vue +4 -4
  15. package/src/core/form/field-text/field-text.vue.d.ts +3 -3
  16. package/src/core/form/field-text-area/field-text-area.vue +4 -4
  17. package/src/core/form/field-text-area/field-text-area.vue.d.ts +3 -3
  18. package/src/core/form/field-text-privacy/field-text-privacy.vue +7 -7
  19. package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts +3 -3
  20. package/src/core/primevue/breadcrumb/breadcrumb.vue.d.ts +1 -1
  21. package/src/core/form/field-text-password/field-text-password.vue.d.ts.map +0 -1
  22. package/src/core/form/field-text-password/package.json +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aziontech/webkit",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Reusable UI components and design system utilities for building Azion web interfaces.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -63,7 +63,8 @@
63
63
  "./field-text": "./src/core/form/field-text/field-text.vue",
64
64
  "./field-text-area": "./src/core/form/field-text-area/field-text-area.vue",
65
65
  "./field-text-icon": "./src/core/form/field-text-icon/field-text-icon.vue",
66
- "./field-text-password": "./src/core/form/field-text-password/field-text-password.vue",
66
+ "./field-password-strength": "./src/core/form/field-password-strength/field-password-strength.vue",
67
+ "./field-password": "./src/core/form/field-password/field-password.vue",
67
68
  "./field-text-privacy": "./src/core/form/field-text-privacy/field-text-privacy.vue",
68
69
  "./label": "./src/core/form/label/label.vue",
69
70
  "./selector-block": "./src/core/selector-block/selector-block.vue",
@@ -82,7 +82,7 @@
82
82
  type: String,
83
83
  default: 'No results found'
84
84
  },
85
- aditionalError: {
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': aditionalError || errorMessage }"
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="aditionalError || errorMessage"
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
- {{ aditionalError || errorMessage }}
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
- aditionalError: {
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
- aditionalError: {
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
- aditionalError: string;
196
+ additionalError: string;
197
197
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
198
198
  type __VLS_Slots = {
199
199
  footer?: ((props: {}) => any) | undefined;
@@ -57,7 +57,7 @@
57
57
  type: Boolean,
58
58
  default: true
59
59
  },
60
- aditionalError: {
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': aditionalError || errorMessage }, props.inputClass]"
128
+ :class="[{ 'p-invalid': additionalError || errorMessage }, props.inputClass]"
129
129
  :data-testid="customTestId.input"
130
130
  />
131
131
 
132
132
  <small
133
- v-if="aditionalError || errorMessage"
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
- {{ aditionalError || errorMessage }}
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
- aditionalError: {
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
- aditionalError: {
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
- aditionalError: string;
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
- aditionalError: {
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': aditionalError || veeValidateErrorMessage }, props.class]"
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="aditionalError || veeValidateErrorMessage"
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
- {{ aditionalError || veeValidateErrorMessage }}
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
- aditionalError: {
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
- aditionalError: {
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
- aditionalError: string;
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-text-password.vue.d.ts.map
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,11 @@
1
+ {
2
+ "main": "./field-password.vue",
3
+ "module": "./field-password.vue",
4
+ "types": "./field-password.vue.d.ts",
5
+ "browser": {
6
+ "./sfc": "./field-password.vue"
7
+ },
8
+ "sideEffects": [
9
+ "*.vue"
10
+ ]
11
+ }
@@ -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"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "main": "./field-password-strength.vue",
3
+ "module": "./field-password-strength.vue",
4
+ "types": "./field-password-strength.vue.d.ts",
5
+ "browser": {
6
+ "./sfc": "./field-password-strength.vue"
7
+ },
8
+ "sideEffects": [
9
+ "*.vue"
10
+ ]
11
+ }
@@ -42,7 +42,7 @@
42
42
  type: Boolean,
43
43
  default: false
44
44
  },
45
- aditionalError: {
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': aditionalError || veeValidateErrorMessage }, props.class]"
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="aditionalError || veeValidateErrorMessage"
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
- {{ aditionalError || veeValidateErrorMessage }}
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
- aditionalError: {
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
- aditionalError: {
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
- aditionalError: string;
102
+ additionalError: string;
103
103
  sensitive: boolean;
104
104
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
105
105
  type __VLS_Slots = {
@@ -54,7 +54,7 @@
54
54
  type: Boolean,
55
55
  default: false
56
56
  },
57
- aditionalError: {
57
+ additionalError: {
58
58
  type: String,
59
59
  default: ''
60
60
  },
@@ -148,7 +148,7 @@
148
148
  ref="inputRef"
149
149
  type="text"
150
150
  class="w-full min-h-[2.75rem]"
151
- :class="[{ 'p-invalid': aditionalError || veeValidateErrorMessage }, props.class]"
151
+ :class="[{ 'p-invalid': additionalError || veeValidateErrorMessage }, props.class]"
152
152
  :id="name"
153
153
  :data-testid="customTestId.textarea"
154
154
  :name="props.name"
@@ -162,11 +162,11 @@
162
162
  />
163
163
  </span>
164
164
  <small
165
- v-if="aditionalError || veeValidateErrorMessage"
165
+ v-if="additionalError || veeValidateErrorMessage"
166
166
  class="p-error text-xs font-normal leading-tight"
167
167
  :data-testid="customTestId.error"
168
168
  >
169
- {{ aditionalError || veeValidateErrorMessage }}
169
+ {{ additionalError || veeValidateErrorMessage }}
170
170
  </small>
171
171
  <small
172
172
  class="text-xs text-color-secondary font-normal leading-5"
@@ -51,7 +51,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
51
51
  type: BooleanConstructor;
52
52
  default: boolean;
53
53
  };
54
- aditionalError: {
54
+ additionalError: {
55
55
  type: StringConstructor;
56
56
  default: string;
57
57
  };
@@ -111,7 +111,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
111
111
  type: BooleanConstructor;
112
112
  default: boolean;
113
113
  };
114
- aditionalError: {
114
+ additionalError: {
115
115
  type: StringConstructor;
116
116
  default: string;
117
117
  };
@@ -129,7 +129,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
129
129
  disabled: boolean;
130
130
  value: string;
131
131
  placeholder: string;
132
- aditionalError: string;
132
+ additionalError: string;
133
133
  sensitive: boolean;
134
134
  rows: string | number;
135
135
  cols: number;
@@ -43,7 +43,7 @@
43
43
  type: Boolean,
44
44
  default: false
45
45
  },
46
- aditionalError: {
46
+ additionalError: {
47
47
  type: String,
48
48
  default: ''
49
49
  },
@@ -74,14 +74,14 @@
74
74
  })
75
75
 
76
76
  const groupBorderClass = computed(() => {
77
- if (aditionalError.value || veeValidateErrorMessage.value) return '!border-red-500'
77
+ if (additionalError.value || veeValidateErrorMessage.value) return '!border-red-500'
78
78
  if (isFocused.value || isHovered.value) return '!border-[#f3652b]'
79
79
  return ''
80
80
  })
81
81
 
82
82
  const groupShadowClass = computed(() => {
83
83
  if (isFocused.value || isHovered.value) {
84
- const color = aditionalError.value || veeValidateErrorMessage.value ? '#ef4444' : '#f3652b'
84
+ const color = additionalError.value || veeValidateErrorMessage.value ? '#ef4444' : '#f3652b'
85
85
  return `shadow-[0_0_0_1px_${color}]`
86
86
  }
87
87
  return ''
@@ -96,7 +96,7 @@
96
96
  initialValue: props.value
97
97
  })
98
98
 
99
- const aditionalError = computed(() => props.aditionalError)
99
+ const additionalError = computed(() => props.additionalError)
100
100
 
101
101
  const onBlur = (event) => {
102
102
  handleBlur(event)
@@ -163,7 +163,7 @@
163
163
  :class="[
164
164
  '!border-r-0 !outline-none !shadow-none transition-colors duration-150',
165
165
  groupBorderClass,
166
- { 'p-invalid': aditionalError || veeValidateErrorMessage },
166
+ { 'p-invalid': additionalError || veeValidateErrorMessage },
167
167
  props.class
168
168
  ]"
169
169
  @input="onChange"
@@ -260,11 +260,11 @@
260
260
  </div>
261
261
 
262
262
  <small
263
- v-if="aditionalError || veeValidateErrorMessage"
263
+ v-if="additionalError || veeValidateErrorMessage"
264
264
  class="p-error text-xs font-normal leading-tight"
265
265
  :data-testid="customTestId.error"
266
266
  >
267
- {{ aditionalError || veeValidateErrorMessage }}
267
+ {{ additionalError || veeValidateErrorMessage }}
268
268
  </small>
269
269
 
270
270
  <small
@@ -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
- aditionalError: {
43
+ additionalError: {
44
44
  type: StringConstructor;
45
45
  default: string;
46
46
  };
@@ -90,7 +90,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
90
90
  type: BooleanConstructor;
91
91
  default: boolean;
92
92
  };
93
- aditionalError: {
93
+ additionalError: {
94
94
  type: StringConstructor;
95
95
  default: string;
96
96
  };
@@ -109,7 +109,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
109
109
  value: string;
110
110
  placeholder: string;
111
111
  readonly: boolean;
112
- aditionalError: string;
112
+ additionalError: string;
113
113
  sensitive: boolean;
114
114
  isPublic: boolean;
115
115
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -32,8 +32,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
32
32
  };
33
33
  }>> & Readonly<{}>, {
34
34
  class: string;
35
- model: unknown[];
36
35
  home: Record<string, any>;
36
+ model: unknown[];
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
38
38
  type __VLS_Slots = {
39
39
  item?: ((props: {
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-text-password.vue.d.ts","sourceRoot":"","sources":["field-text-password.vue"],"names":[],"mappings":"wBAoZqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA/CzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
@@ -1,11 +0,0 @@
1
- {
2
- "main": "./field-text-password.vue",
3
- "module": "./field-text-password.vue",
4
- "types": "./field-text-password.vue.d.ts",
5
- "browser": {
6
- "./sfc": "./field-text-password.vue"
7
- },
8
- "sideEffects": [
9
- "*.vue"
10
- ]
11
- }