@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.
Files changed (59) hide show
  1. package/package.json +5 -3
  2. package/src/components/azion-system-status/azion-system-status.vue +122 -0
  3. package/src/components/azion-system-status/azion-system-status.vue.d.ts +4 -0
  4. package/src/components/azion-system-status/azion-system-status.vue.d.ts.map +1 -0
  5. package/src/components/azion-system-status/package.json +11 -0
  6. package/src/core/form/field-auto-complete/field-auto-complete.vue +48 -45
  7. package/src/core/form/field-auto-complete/field-auto-complete.vue.d.ts +4 -4
  8. package/src/core/form/field-auto-complete/field-auto-complete.vue.d.ts.map +1 -1
  9. package/src/core/form/field-checkbox-block/field-checkbox-block.vue.d.ts +3 -3
  10. package/src/core/form/field-dropdown/field-dropdown.vue +68 -65
  11. package/src/core/form/field-dropdown/field-dropdown.vue.d.ts +5 -5
  12. package/src/core/form/field-dropdown/field-dropdown.vue.d.ts.map +1 -1
  13. package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue +49 -46
  14. package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue.d.ts +4 -4
  15. package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue.d.ts.map +1 -1
  16. package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue +116 -113
  17. package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue.d.ts +2 -2
  18. package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue.d.ts.map +1 -1
  19. package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue +93 -90
  20. package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue.d.ts +2 -2
  21. package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue.d.ts.map +1 -1
  22. package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue +111 -108
  23. package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue.d.ts +2 -2
  24. package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue.d.ts.map +1 -1
  25. package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue +92 -89
  26. package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue.d.ts +2 -2
  27. package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue.d.ts.map +1 -1
  28. package/src/core/form/field-input-group/field-input-group.vue +44 -41
  29. package/src/core/form/field-input-group/field-input-group.vue.d.ts +3 -3
  30. package/src/core/form/field-input-group/field-input-group.vue.d.ts.map +1 -1
  31. package/src/core/form/field-multi-select/field-multi-select.vue +2 -2
  32. package/src/core/form/field-multi-select/field-multi-select.vue.d.ts +5 -5
  33. package/src/core/form/field-number/field-number.vue +46 -43
  34. package/src/core/form/field-number/field-number.vue.d.ts +3 -3
  35. package/src/core/form/field-number/field-number.vue.d.ts.map +1 -1
  36. package/src/core/form/field-phone-number/field-phone-number.vue +2 -2
  37. package/src/core/form/field-phone-number/field-phone-number.vue.d.ts +2 -2
  38. package/src/core/form/field-radio-block/field-radio-block.vue.d.ts +2 -2
  39. package/src/core/form/field-switch/field-switch.vue.d.ts +1 -1
  40. package/src/core/form/field-switch-block/field-switch-block.vue.d.ts +1 -1
  41. package/src/core/form/field-text/field-text.vue +43 -40
  42. package/src/core/form/field-text/field-text.vue.d.ts +3 -3
  43. package/src/core/form/field-text/field-text.vue.d.ts.map +1 -1
  44. package/src/core/form/field-text-area/field-text-area.vue +61 -58
  45. package/src/core/form/field-text-area/field-text-area.vue.d.ts +3 -3
  46. package/src/core/form/field-text-area/field-text-area.vue.d.ts.map +1 -1
  47. package/src/core/form/field-text-icon/field-text-icon.vue +48 -42
  48. package/src/core/form/field-text-icon/field-text-icon.vue.d.ts +4 -4
  49. package/src/core/form/field-text-icon/field-text-icon.vue.d.ts.map +1 -1
  50. package/src/core/form/field-text-password/field-text-password.vue +42 -39
  51. package/src/core/form/field-text-password/field-text-password.vue.d.ts +3 -3
  52. package/src/core/form/field-text-password/field-text-password.vue.d.ts.map +1 -1
  53. package/src/core/form/field-text-privacy/field-text-privacy.vue +132 -129
  54. package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts +3 -3
  55. package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts.map +1 -1
  56. package/src/core/form/slots/input-slot/input-slot.vue +8 -0
  57. package/src/core/form/slots/input-slot/input-slot.vue.d.ts +11 -0
  58. package/src/core/form/slots/input-slot/input-slot.vue.d.ts.map +1 -0
  59. 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 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({
@@ -98,47 +99,49 @@
98
99
  </script>
99
100
 
100
101
  <template>
101
- <LabelBlock
102
- :for="props.name"
103
- :data-testid="customTestId.label"
104
- :label="props.label"
105
- :isRequired="$attrs.required"
106
- />
107
- <InputNumber
108
- v-model="inputValue"
109
- :showButtons="props.showButtons"
110
- :placeholder="props.placeholder"
111
- :disabled="props.disabled"
112
- :readonly="props.readonly"
113
- :id="name"
114
- :min="props.min"
115
- :max="props.max"
116
- :step="props.step"
117
- :useGrouping="props.useGrouping"
118
- type="number"
119
- @input="onInput"
120
- @blur="onBlur"
121
- :pt="{
122
- input: {
123
- name: props.name
124
- }
125
- }"
126
- :class="[{ 'p-invalid': aditionalError || errorMessage }, props.inputClass]"
127
- :data-testid="customTestId.input"
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
- <small
131
- v-if="aditionalError || errorMessage"
132
- class="p-error text-xs font-normal leading-tight"
133
- :data-testid="customTestId.error"
134
- >
135
- {{ aditionalError || errorMessage }}
136
- </small>
137
- <small
138
- class="text-xs text-color-secondary font-normal leading-5"
139
- :data-testid="customTestId.description"
140
- v-if="props.description"
141
- >
142
- {{ props.description }}
143
- </small>
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":"wBA0aqB,OAAO,YAAY;;AA3DxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA0DG"}
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 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"
@@ -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
- disabled: boolean;
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: (StringConstructor | BooleanConstructor | ObjectConstructor)[];
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: (StringConstructor | BooleanConstructor | ObjectConstructor)[];
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 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>
@@ -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":"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>
@@ -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":"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>
@@ -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":"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"}