@aziontech/webkit 1.2.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.
Files changed (37) hide show
  1. package/package.json +3 -2
  2. package/src/components/azion-system-status/azion-system-status.vue +0 -1
  3. package/src/components/azion-system-status/azion-system-status.vue.d.ts.map +1 -1
  4. package/src/core/form/field-auto-complete/field-auto-complete.vue +48 -45
  5. package/src/core/form/field-auto-complete/field-auto-complete.vue.d.ts.map +1 -1
  6. package/src/core/form/field-dropdown/field-dropdown.vue +68 -65
  7. package/src/core/form/field-dropdown/field-dropdown.vue.d.ts.map +1 -1
  8. package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue +49 -46
  9. package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue.d.ts.map +1 -1
  10. package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue +116 -113
  11. package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue.d.ts.map +1 -1
  12. package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue +93 -90
  13. package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue.d.ts.map +1 -1
  14. package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue +111 -108
  15. package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue.d.ts.map +1 -1
  16. package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue +92 -89
  17. package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue.d.ts.map +1 -1
  18. package/src/core/form/field-input-group/field-input-group.vue +44 -41
  19. package/src/core/form/field-input-group/field-input-group.vue.d.ts.map +1 -1
  20. package/src/core/form/field-multi-select/field-multi-select.vue +2 -2
  21. package/src/core/form/field-number/field-number.vue +46 -43
  22. package/src/core/form/field-number/field-number.vue.d.ts.map +1 -1
  23. package/src/core/form/field-phone-number/field-phone-number.vue +2 -2
  24. package/src/core/form/field-text/field-text.vue +43 -40
  25. package/src/core/form/field-text/field-text.vue.d.ts.map +1 -1
  26. package/src/core/form/field-text-area/field-text-area.vue +61 -58
  27. package/src/core/form/field-text-area/field-text-area.vue.d.ts.map +1 -1
  28. package/src/core/form/field-text-icon/field-text-icon.vue +48 -42
  29. package/src/core/form/field-text-icon/field-text-icon.vue.d.ts.map +1 -1
  30. package/src/core/form/field-text-password/field-text-password.vue +42 -39
  31. package/src/core/form/field-text-password/field-text-password.vue.d.ts.map +1 -1
  32. package/src/core/form/field-text-privacy/field-text-privacy.vue +132 -129
  33. package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts.map +1 -1
  34. package/src/core/form/slots/input-slot/input-slot.vue +8 -0
  35. package/src/core/form/slots/input-slot/input-slot.vue.d.ts +11 -0
  36. package/src/core/form/slots/input-slot/input-slot.vue.d.ts.map +1 -0
  37. package/src/core/form/slots/input-slot/package.json +11 -0
@@ -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 LabelBlock from '../label'
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
- <LabelBlock
79
+ <Label
80
80
  :data-testid="customTestId.label"
81
81
  :for="mobileName"
82
82
  :label="props.label"
@@ -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 LabelBlock from '../label'
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
- <LabelBlock
90
- v-if="props.label"
91
- :for="props.name"
92
- :data-testid="customTestId.label"
93
- :label="props.label"
94
- :isRequired="attrs.required"
95
- />
96
- <InputText
97
- v-bind="sensitive ? { 'data-sentry-mask': '' } : {}"
98
- v-model="inputValue"
99
- ref="inputRef"
100
- type="text"
101
- :data-testid="customTestId.input"
102
- :id="name"
103
- :name="name"
104
- :readonly="readonly"
105
- :disabled="disabled"
106
- :placeholder="props.placeholder"
107
- :class="[{ 'p-invalid': aditionalError || veeValidateErrorMessage }, props.class]"
108
- @input="onChange"
109
- @keypress.enter.prevent
110
- @blur="onBlur"
111
- />
112
- <small
113
- v-if="aditionalError || veeValidateErrorMessage"
114
- class="p-error text-xs font-normal leading-tight"
115
- :data-testid="customTestId.error"
116
- >
117
- {{ aditionalError || veeValidateErrorMessage }}
118
- </small>
119
- <small
120
- v-if="props.description || hasDescriptionSlot"
121
- class="text-xs text-color-secondary font-normal leading-5"
122
- :data-testid="customTestId.description"
123
- >
124
- <slot name="description">
125
- {{ props.description }}
126
- </slot>
127
- </small>
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>
@@ -1 +1 @@
1
- {"version":3,"file":"field-text.vue.d.ts","sourceRoot":"","sources":["field-text.vue"],"names":[],"mappings":"wBAsYqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA/CzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
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 LabelBlock from '../label'
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
- <LabelBlock
121
- :for="props.name"
122
- :data-testid="customTestId.label"
123
- :label="props.label"
124
- :isRequired="attrs.required"
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
- <!-- Skeleton only for textarea input -->
136
- <Skeleton
137
- v-if="props.loading"
138
- width="100%"
139
- :height="textareaHeight"
140
- borderRadius="6px"
141
- />
142
- <TextArea
143
- v-else
144
- v-bind="sensitive ? { 'data-sentry-mask': '' } : {}"
145
- v-model="inputValue"
146
- ref="inputRef"
147
- type="text"
148
- class="w-full min-h-[2.75rem]"
149
- :class="[{ 'p-invalid': aditionalError || veeValidateErrorMessage }, props.class]"
150
- :id="name"
151
- :data-testid="customTestId.textarea"
152
- :name="props.name"
153
- :disabled="props.disabled"
154
- :autoResize="props.autoResize"
155
- :rows="props.rows"
156
- :cols="props.cols"
157
- :placeholder="props.placeholder"
158
- @input="onChange"
159
- @blur="onBlur"
160
- />
161
- </span>
162
- <small
163
- v-if="aditionalError || veeValidateErrorMessage"
164
- class="p-error text-xs font-normal leading-tight"
165
- :data-testid="customTestId.error"
166
- >
167
- {{ aditionalError || veeValidateErrorMessage }}
168
- </small>
169
- <small
170
- class="text-xs text-color-secondary font-normal leading-5"
171
- :data-testid="customTestId.description"
172
- v-if="props.description || hasDescriptionSlot"
173
- >
174
- <slot name="description">
175
- {{ props.description }}
176
- </slot>
177
- </small>
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>
@@ -1 +1 @@
1
- {"version":3,"file":"field-text-area.vue.d.ts","sourceRoot":"","sources":["field-text-area.vue"],"names":[],"mappings":"wBA0gBqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA9DzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA2DG"}
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 LabelBlock from '../label'
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
- <LabelBlock
85
- :for="props.name"
86
- :label="props.label"
87
- :isRequired="props.required"
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
- <InputText
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="{ 'p-invalid': errorMessage }"
108
- :placeholder="props.placeholder"
109
- @input="handleChange"
110
- @blur="handleBlur"
111
- v-bind="$attrs"
112
- />
113
- </span>
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
- <small
116
- v-if="errorMessage"
117
- class="p-error text-xs font-normal leading-tight"
118
- >
119
- {{ errorMessage }}
120
- </small>
121
- <small
122
- class="text-xs text-color-secondary font-normal leading-5"
123
- v-if="props.description"
124
- >
125
- {{ props.description }}
126
- </small>
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>
@@ -1 +1 @@
1
- {"version":3,"file":"field-text-icon.vue.d.ts","sourceRoot":"","sources":["field-text-icon.vue"],"names":[],"mappings":"wBAoXqB,OAAO,YAAY;;AA7CxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
1
+ {"version":3,"file":"field-text-icon.vue.d.ts","sourceRoot":"","sources":["field-text-icon.vue"],"names":[],"mappings":"wBA8YqB,OAAO,YAAY;;AA7CxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
@@ -2,7 +2,8 @@
2
2
  import { computed, ref, toRef, useAttrs, useSlots } from 'vue'
3
3
  import { useField } from 'vee-validate'
4
4
  import Password from 'primevue/password'
5
- import LabelBlock from '../label'
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({
@@ -86,42 +87,44 @@
86
87
  </script>
87
88
 
88
89
  <template>
89
- <LabelBlock
90
- v-if="props.label"
91
- :for="props.name"
92
- :data-testid="customTestId.label"
93
- :label="props.label"
94
- :isRequired="attrs.required"
95
- />
96
- <Password
97
- toggleMask
98
- ref="inputPasswordRef"
99
- v-model="inputValue"
100
- :id="name"
101
- :name="name"
102
- :readonly="readonly"
103
- :disabled="disabled"
104
- :placeholder="props.placeholder"
105
- :class="[{ 'p-invalid': aditionalError || veeValidateErrorMessage }, props.class]"
106
- :feedback="false"
107
- :data-testid="customTestId.input"
108
- @input="onChange"
109
- @blur="onBlur"
110
- />
111
- <small
112
- v-if="aditionalError || veeValidateErrorMessage"
113
- class="p-error text-xs font-normal leading-tight"
114
- :data-testid="customTestId.error"
115
- >
116
- {{ aditionalError || veeValidateErrorMessage }}
117
- </small>
118
- <small
119
- v-if="props.description || hasDescriptionSlot"
120
- class="text-xs text-color-secondary font-normal leading-5"
121
- :data-testid="customTestId.description"
122
- >
123
- <slot name="description">
124
- {{ props.description }}
125
- </slot>
126
- </small>
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
+ <Password
99
+ toggleMask
100
+ ref="inputPasswordRef"
101
+ v-model="inputValue"
102
+ :id="name"
103
+ :name="name"
104
+ :readonly="readonly"
105
+ :disabled="disabled"
106
+ :placeholder="props.placeholder"
107
+ :class="[{ 'p-invalid': aditionalError || veeValidateErrorMessage }, props.class]"
108
+ :feedback="false"
109
+ :data-testid="customTestId.input"
110
+ @input="onChange"
111
+ @blur="onBlur"
112
+ />
113
+ <small
114
+ v-if="aditionalError || veeValidateErrorMessage"
115
+ class="p-error text-xs font-normal leading-tight"
116
+ :data-testid="customTestId.error"
117
+ >
118
+ {{ aditionalError || veeValidateErrorMessage }}
119
+ </small>
120
+ <small
121
+ v-if="props.description || hasDescriptionSlot"
122
+ class="text-xs text-color-secondary font-normal leading-5"
123
+ :data-testid="customTestId.description"
124
+ >
125
+ <slot name="description">
126
+ {{ props.description }}
127
+ </slot>
128
+ </small>
129
+ </InputSlot>
127
130
  </template>
@@ -1 +1 @@
1
- {"version":3,"file":"field-text-password.vue.d.ts","sourceRoot":"","sources":["field-text-password.vue"],"names":[],"mappings":"wBAgYqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AA/CzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA4CG"}
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"}