@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.
- package/package.json +3 -2
- package/src/components/azion-system-status/azion-system-status.vue +0 -1
- package/src/components/azion-system-status/azion-system-status.vue.d.ts.map +1 -1
- package/src/core/form/field-auto-complete/field-auto-complete.vue +48 -45
- package/src/core/form/field-auto-complete/field-auto-complete.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown/field-dropdown.vue +68 -65
- package/src/core/form/field-dropdown/field-dropdown.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue +49 -46
- package/src/core/form/field-dropdown-icon/field-dropdown-icon.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue +116 -113
- package/src/core/form/field-dropdown-lazy-loader/field-dropdown-lazy-loader.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue +93 -90
- package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue +111 -108
- package/src/core/form/field-dropdown-lazy-loader-with-filter/field-dropdown-lazy-loader-with-filter.vue.d.ts.map +1 -1
- package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue +92 -89
- package/src/core/form/field-dropdown-multi-select-lazy-loader/field-dropdown-multi-select-lazy-loader.vue.d.ts.map +1 -1
- package/src/core/form/field-input-group/field-input-group.vue +44 -41
- package/src/core/form/field-input-group/field-input-group.vue.d.ts.map +1 -1
- package/src/core/form/field-multi-select/field-multi-select.vue +2 -2
- package/src/core/form/field-number/field-number.vue +46 -43
- package/src/core/form/field-number/field-number.vue.d.ts.map +1 -1
- package/src/core/form/field-phone-number/field-phone-number.vue +2 -2
- package/src/core/form/field-text/field-text.vue +43 -40
- package/src/core/form/field-text/field-text.vue.d.ts.map +1 -1
- package/src/core/form/field-text-area/field-text-area.vue +61 -58
- package/src/core/form/field-text-area/field-text-area.vue.d.ts.map +1 -1
- package/src/core/form/field-text-icon/field-text-icon.vue +48 -42
- package/src/core/form/field-text-icon/field-text-icon.vue.d.ts.map +1 -1
- package/src/core/form/field-text-password/field-text-password.vue +42 -39
- package/src/core/form/field-text-password/field-text-password.vue.d.ts.map +1 -1
- package/src/core/form/field-text-privacy/field-text-privacy.vue +132 -129
- package/src/core/form/field-text-privacy/field-text-privacy.vue.d.ts.map +1 -1
- package/src/core/form/slots/input-slot/input-slot.vue +8 -0
- package/src/core/form/slots/input-slot/input-slot.vue.d.ts +11 -0
- package/src/core/form/slots/input-slot/input-slot.vue.d.ts.map +1 -0
- package/src/core/form/slots/input-slot/package.json +11 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { computed, ref, toRef, useAttrs, useSlots } from 'vue'
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import InputText from 'primevue/inputtext'
|
|
5
|
-
import
|
|
5
|
+
import Label from '../label'
|
|
6
|
+
import InputSlot from '../slots/input-slot'
|
|
6
7
|
|
|
7
8
|
const emit = defineEmits(['blur', 'input', 'update:isPublic'])
|
|
8
9
|
|
|
@@ -131,149 +132,151 @@
|
|
|
131
132
|
</script>
|
|
132
133
|
|
|
133
134
|
<template>
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<div
|
|
143
|
-
class="p-inputgroup rounded transition-shadow duration-150"
|
|
144
|
-
:class="[groupShadowClass, disabled ? 'opacity-50 pointer-events-none' : '']"
|
|
145
|
-
@focusin="onGroupFocusIn"
|
|
146
|
-
@focusout="onGroupFocusOut"
|
|
147
|
-
@mouseenter="onGroupMouseEnter"
|
|
148
|
-
@mouseleave="onGroupMouseLeave"
|
|
149
|
-
>
|
|
150
|
-
<InputText
|
|
151
|
-
v-bind="sensitive ? { 'data-sentry-mask': '' } : {}"
|
|
152
|
-
v-model="inputValue"
|
|
153
|
-
ref="inputRef"
|
|
154
|
-
type="text"
|
|
155
|
-
:data-testid="customTestId.input"
|
|
156
|
-
:id="name"
|
|
157
|
-
:name="name"
|
|
158
|
-
:readonly="readonly"
|
|
159
|
-
:disabled="disabled"
|
|
160
|
-
:placeholder="props.placeholder"
|
|
161
|
-
:class="[
|
|
162
|
-
'!border-r-0 !outline-none !shadow-none transition-colors duration-150',
|
|
163
|
-
groupBorderClass,
|
|
164
|
-
{ 'p-invalid': aditionalError || veeValidateErrorMessage },
|
|
165
|
-
props.class
|
|
166
|
-
]"
|
|
167
|
-
@input="onChange"
|
|
168
|
-
@keypress.enter.prevent
|
|
169
|
-
@blur="onBlur"
|
|
135
|
+
<InputSlot>
|
|
136
|
+
<Label
|
|
137
|
+
v-if="props.label"
|
|
138
|
+
:for="props.name"
|
|
139
|
+
:data-testid="customTestId.label"
|
|
140
|
+
:label="props.label"
|
|
141
|
+
:isRequired="attrs.required"
|
|
170
142
|
/>
|
|
171
143
|
|
|
172
|
-
<
|
|
173
|
-
|
|
174
|
-
:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
"
|
|
180
|
-
:aria-pressed="isPublic"
|
|
181
|
-
role="switch"
|
|
182
|
-
tabindex="0"
|
|
183
|
-
class="p-inputgroup-addon !bg-[var(--input-bg,var(--surface-0))] !border-l-0 cursor-pointer outline-none transition-colors duration-150 select-none"
|
|
184
|
-
:class="[
|
|
185
|
-
groupBorderClass,
|
|
186
|
-
{ 'opacity-50 cursor-not-allowed pointer-events-none': disabled || readonly }
|
|
187
|
-
]"
|
|
188
|
-
@click="togglePrivacy"
|
|
189
|
-
@keydown.enter.prevent="togglePrivacy"
|
|
190
|
-
@keydown.space.prevent="togglePrivacy"
|
|
144
|
+
<div
|
|
145
|
+
class="p-inputgroup rounded transition-shadow duration-150"
|
|
146
|
+
:class="[groupShadowClass, disabled ? 'opacity-50 pointer-events-none' : '']"
|
|
147
|
+
@focusin="onGroupFocusIn"
|
|
148
|
+
@focusout="onGroupFocusOut"
|
|
149
|
+
@mouseenter="onGroupMouseEnter"
|
|
150
|
+
@mouseleave="onGroupMouseLeave"
|
|
191
151
|
>
|
|
152
|
+
<InputText
|
|
153
|
+
v-bind="sensitive ? { 'data-sentry-mask': '' } : {}"
|
|
154
|
+
v-model="inputValue"
|
|
155
|
+
ref="inputRef"
|
|
156
|
+
type="text"
|
|
157
|
+
:data-testid="customTestId.input"
|
|
158
|
+
:id="name"
|
|
159
|
+
:name="name"
|
|
160
|
+
:readonly="readonly"
|
|
161
|
+
:disabled="disabled"
|
|
162
|
+
:placeholder="props.placeholder"
|
|
163
|
+
:class="[
|
|
164
|
+
'!border-r-0 !outline-none !shadow-none transition-colors duration-150',
|
|
165
|
+
groupBorderClass,
|
|
166
|
+
{ 'p-invalid': aditionalError || veeValidateErrorMessage },
|
|
167
|
+
props.class
|
|
168
|
+
]"
|
|
169
|
+
@input="onChange"
|
|
170
|
+
@keypress.enter.prevent
|
|
171
|
+
@blur="onBlur"
|
|
172
|
+
/>
|
|
173
|
+
|
|
192
174
|
<span
|
|
193
|
-
|
|
194
|
-
:
|
|
175
|
+
:data-testid="customTestId.privacySwitch"
|
|
176
|
+
:title="isPublic ? 'Public – click to make private' : 'Private – click to make public'"
|
|
177
|
+
:aria-label="
|
|
195
178
|
isPublic
|
|
196
|
-
? '
|
|
197
|
-
: '
|
|
179
|
+
? 'Field is public. Click to make private.'
|
|
180
|
+
: 'Field is private. Click to make public.'
|
|
198
181
|
"
|
|
182
|
+
:aria-pressed="isPublic"
|
|
183
|
+
role="switch"
|
|
184
|
+
tabindex="0"
|
|
185
|
+
class="p-inputgroup-addon !bg-[var(--input-bg,var(--surface-0))] !border-l-0 cursor-pointer outline-none transition-colors duration-150 select-none"
|
|
186
|
+
:class="[
|
|
187
|
+
groupBorderClass,
|
|
188
|
+
{ 'opacity-50 cursor-not-allowed pointer-events-none': disabled || readonly }
|
|
189
|
+
]"
|
|
190
|
+
@click="togglePrivacy"
|
|
191
|
+
@keydown.enter.prevent="togglePrivacy"
|
|
192
|
+
@keydown.space.prevent="togglePrivacy"
|
|
199
193
|
>
|
|
200
194
|
<span
|
|
201
|
-
class="
|
|
202
|
-
:class="
|
|
195
|
+
class="relative w-9 h-5 rounded-full transition-colors duration-200"
|
|
196
|
+
:class="
|
|
197
|
+
isPublic
|
|
198
|
+
? 'bg-[#f3652b] hover:bg-[#d95522]'
|
|
199
|
+
: 'bg-[var(--input-switch-slider-off-bg)] hover:bg-[var(--input-switch-slider-off-hover-bg)]'
|
|
200
|
+
"
|
|
203
201
|
>
|
|
204
|
-
<span
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
202
|
+
<span
|
|
203
|
+
class="absolute top-0.5 left-0.5 w-4 h-4 rounded-full bg-white flex items-center justify-center shadow-sm transition-transform duration-200"
|
|
204
|
+
:class="isPublic ? 'translate-x-4' : 'translate-x-0'"
|
|
205
|
+
>
|
|
206
|
+
<span class="relative w-3 h-3">
|
|
207
|
+
<svg
|
|
208
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
209
|
+
width="12"
|
|
210
|
+
height="12"
|
|
211
|
+
viewBox="0 0 24 24"
|
|
212
|
+
fill="none"
|
|
213
|
+
stroke="currentColor"
|
|
214
|
+
stroke-width="2.5"
|
|
215
|
+
stroke-linecap="round"
|
|
216
|
+
stroke-linejoin="round"
|
|
217
|
+
aria-hidden="true"
|
|
218
|
+
class="absolute inset-0 transition-all duration-200 text-gray-500"
|
|
219
|
+
:class="isPublic ? 'opacity-0 scale-75' : 'opacity-100 scale-100'"
|
|
220
|
+
>
|
|
221
|
+
<rect
|
|
222
|
+
x="3"
|
|
223
|
+
y="11"
|
|
224
|
+
width="18"
|
|
225
|
+
height="11"
|
|
226
|
+
rx="2"
|
|
227
|
+
ry="2"
|
|
228
|
+
/>
|
|
229
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
|
|
230
|
+
</svg>
|
|
229
231
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
232
|
+
<svg
|
|
233
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
234
|
+
width="12"
|
|
235
|
+
height="12"
|
|
236
|
+
viewBox="0 0 24 24"
|
|
237
|
+
fill="none"
|
|
238
|
+
stroke="currentColor"
|
|
239
|
+
stroke-width="2.5"
|
|
240
|
+
stroke-linecap="round"
|
|
241
|
+
stroke-linejoin="round"
|
|
242
|
+
aria-hidden="true"
|
|
243
|
+
class="absolute inset-0 transition-all duration-200 text-orange-700"
|
|
244
|
+
:class="isPublic ? 'opacity-100 scale-100' : 'opacity-0 scale-75'"
|
|
245
|
+
>
|
|
246
|
+
<rect
|
|
247
|
+
x="3"
|
|
248
|
+
y="11"
|
|
249
|
+
width="18"
|
|
250
|
+
height="11"
|
|
251
|
+
rx="2"
|
|
252
|
+
ry="2"
|
|
253
|
+
/>
|
|
254
|
+
<path d="M7 11V7a5 5 0 0 1 9.9-1" />
|
|
255
|
+
</svg>
|
|
256
|
+
</span>
|
|
254
257
|
</span>
|
|
255
258
|
</span>
|
|
256
259
|
</span>
|
|
257
|
-
</
|
|
258
|
-
</div>
|
|
260
|
+
</div>
|
|
259
261
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
262
|
+
<small
|
|
263
|
+
v-if="aditionalError || veeValidateErrorMessage"
|
|
264
|
+
class="p-error text-xs font-normal leading-tight"
|
|
265
|
+
:data-testid="customTestId.error"
|
|
266
|
+
>
|
|
267
|
+
{{ aditionalError || veeValidateErrorMessage }}
|
|
268
|
+
</small>
|
|
267
269
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
270
|
+
<small
|
|
271
|
+
v-if="props.description || hasDescriptionSlot"
|
|
272
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
273
|
+
:data-testid="customTestId.description"
|
|
274
|
+
>
|
|
275
|
+
<slot name="description">
|
|
276
|
+
{{ props.description }}
|
|
277
|
+
</slot>
|
|
278
|
+
</small>
|
|
279
|
+
</InputSlot>
|
|
277
280
|
</template>
|
|
278
281
|
|
|
279
282
|
<style scoped>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-text-privacy.vue.d.ts","sourceRoot":"","sources":["field-text-privacy.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-text-privacy.vue.d.ts","sourceRoot":"","sources":["field-text-privacy.vue"],"names":[],"mappings":"wBA2wBqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AAnDzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAgDG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default?: ((props: {}) => any) | undefined;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=input-slot.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-slot.vue.d.ts","sourceRoot":"","sources":["input-slot.vue"],"names":[],"mappings":"wBAuCqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AAJzB,wSACG"}
|