@aziontech/webkit 1.2.0 → 1.4.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/.releaserc +61 -0
- package/CHANGELOG.md +93 -0
- package/package.json +3 -36
- 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
- package/tsconfig.json +23 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -1,117 +1,11 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<LabelBlock
|
|
3
|
-
v-if="props.label"
|
|
4
|
-
:for="props.name"
|
|
5
|
-
:label="props.label"
|
|
6
|
-
:isRequired="$attrs.required"
|
|
7
|
-
:data-testid="customTestId.label"
|
|
8
|
-
/>
|
|
9
|
-
<Dropdown
|
|
10
|
-
appendTo="self"
|
|
11
|
-
:id="name"
|
|
12
|
-
:name="props.name"
|
|
13
|
-
:loading="loading"
|
|
14
|
-
v-model="inputValue"
|
|
15
|
-
:options="data"
|
|
16
|
-
:optionLabel="props.optionLabel"
|
|
17
|
-
:optionDisabled="props.optionDisabled"
|
|
18
|
-
:optionValue="props.optionValue"
|
|
19
|
-
:placeholder="props.placeholder"
|
|
20
|
-
:showClear="props.enableClearOption"
|
|
21
|
-
@change="emitChange"
|
|
22
|
-
@blur="emitBlur"
|
|
23
|
-
:class="errorMessage ? 'p-invalid' : ''"
|
|
24
|
-
v-bind="$attrs"
|
|
25
|
-
class="w-full"
|
|
26
|
-
:optionGroupLabel="props.optionGroupLabel"
|
|
27
|
-
:optionGroupChildren="props.optionGroupChildren"
|
|
28
|
-
:pt="{
|
|
29
|
-
clearIcon: {
|
|
30
|
-
'data-testid': customTestId.clearIcon
|
|
31
|
-
},
|
|
32
|
-
filterInput: {
|
|
33
|
-
class: 'w-full',
|
|
34
|
-
'data-testid': customTestId.filterInput
|
|
35
|
-
},
|
|
36
|
-
trigger: {
|
|
37
|
-
'data-testid': customTestId.trigger
|
|
38
|
-
},
|
|
39
|
-
loadingIcon: {
|
|
40
|
-
'data-testid': customTestId.loadingIcon
|
|
41
|
-
}
|
|
42
|
-
}"
|
|
43
|
-
:data-testid="customTestId.dropdown"
|
|
44
|
-
:virtualScrollerOptions="VIRTUAL_SCROLLER_CONFIG"
|
|
45
|
-
>
|
|
46
|
-
<template
|
|
47
|
-
v-if="enableCustomLabel"
|
|
48
|
-
#value="slotProps"
|
|
49
|
-
>
|
|
50
|
-
<span :data-testid="customTestId.value">
|
|
51
|
-
{{ getLabelBySelectedValue(slotProps.value) }}
|
|
52
|
-
</span>
|
|
53
|
-
</template>
|
|
54
|
-
<template #option="slotProps">
|
|
55
|
-
<div class="flex align-items-center gap-2">
|
|
56
|
-
<i
|
|
57
|
-
v-if="slotProps.option.icon"
|
|
58
|
-
:class="`pi ${slotProps.option.icon}`"
|
|
59
|
-
></i>
|
|
60
|
-
<div>{{ slotProps.option.name }}</div>
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
|
|
64
|
-
<template #header>
|
|
65
|
-
<div class="p-2 flex">
|
|
66
|
-
<div class="p-inputgroup">
|
|
67
|
-
<InputText
|
|
68
|
-
type="text"
|
|
69
|
-
v-model="search"
|
|
70
|
-
placeholder="Search"
|
|
71
|
-
class="w-full rounded-r-none"
|
|
72
|
-
ref="focusSearch"
|
|
73
|
-
:data-testid="customTestId.search"
|
|
74
|
-
/>
|
|
75
|
-
<span
|
|
76
|
-
class="p-inputgroup-addon"
|
|
77
|
-
@click="searchFilter"
|
|
78
|
-
>
|
|
79
|
-
<i class="pi pi-search"></i>
|
|
80
|
-
</span>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</template>
|
|
84
|
-
|
|
85
|
-
<template #footer>
|
|
86
|
-
<slot name="footer" />
|
|
87
|
-
</template>
|
|
88
|
-
</Dropdown>
|
|
89
|
-
|
|
90
|
-
<small
|
|
91
|
-
v-if="errorMessage"
|
|
92
|
-
:data-testid="customTestId.error"
|
|
93
|
-
class="p-error text-xs font-normal leading-tight"
|
|
94
|
-
>
|
|
95
|
-
{{ errorMessage }}
|
|
96
|
-
</small>
|
|
97
|
-
<small
|
|
98
|
-
class="text-xs text-color-secondary font-normal leading-5"
|
|
99
|
-
:data-testid="customTestId.description"
|
|
100
|
-
v-if="props.description || hasDescriptionSlot"
|
|
101
|
-
>
|
|
102
|
-
<slot name="description">
|
|
103
|
-
{{ props.description }}
|
|
104
|
-
</slot>
|
|
105
|
-
</small>
|
|
106
|
-
</template>
|
|
107
|
-
|
|
108
1
|
<script setup>
|
|
109
2
|
import Dropdown from 'primevue/dropdown'
|
|
110
3
|
import InputText from 'primevue/inputtext'
|
|
111
4
|
import { useField } from 'vee-validate'
|
|
112
5
|
import { computed, toRef, useSlots, useAttrs, ref, onMounted, watchEffect, watch } from 'vue'
|
|
113
6
|
import { watchDebounced } from '@vueuse/core'
|
|
114
|
-
import
|
|
7
|
+
import InputSlot from '../slots/input-slot'
|
|
8
|
+
import Label from '../label'
|
|
115
9
|
|
|
116
10
|
const props = defineProps({
|
|
117
11
|
value: {
|
|
@@ -525,3 +419,112 @@
|
|
|
525
419
|
}
|
|
526
420
|
}
|
|
527
421
|
</script>
|
|
422
|
+
|
|
423
|
+
<template>
|
|
424
|
+
<InputSlot>
|
|
425
|
+
<Label
|
|
426
|
+
v-if="props.label"
|
|
427
|
+
:for="props.name"
|
|
428
|
+
:label="props.label"
|
|
429
|
+
:isRequired="$attrs.required"
|
|
430
|
+
:data-testid="customTestId.label"
|
|
431
|
+
/>
|
|
432
|
+
<Dropdown
|
|
433
|
+
appendTo="self"
|
|
434
|
+
:id="name"
|
|
435
|
+
:name="props.name"
|
|
436
|
+
:loading="loading"
|
|
437
|
+
v-model="inputValue"
|
|
438
|
+
:options="data"
|
|
439
|
+
:optionLabel="props.optionLabel"
|
|
440
|
+
:optionDisabled="props.optionDisabled"
|
|
441
|
+
:optionValue="props.optionValue"
|
|
442
|
+
:placeholder="props.placeholder"
|
|
443
|
+
:showClear="props.enableClearOption"
|
|
444
|
+
@change="emitChange"
|
|
445
|
+
@blur="emitBlur"
|
|
446
|
+
:class="errorMessage ? 'p-invalid' : ''"
|
|
447
|
+
v-bind="$attrs"
|
|
448
|
+
class="w-full"
|
|
449
|
+
:optionGroupLabel="props.optionGroupLabel"
|
|
450
|
+
:optionGroupChildren="props.optionGroupChildren"
|
|
451
|
+
:pt="{
|
|
452
|
+
clearIcon: {
|
|
453
|
+
'data-testid': customTestId.clearIcon
|
|
454
|
+
},
|
|
455
|
+
filterInput: {
|
|
456
|
+
class: 'w-full',
|
|
457
|
+
'data-testid': customTestId.filterInput
|
|
458
|
+
},
|
|
459
|
+
trigger: {
|
|
460
|
+
'data-testid': customTestId.trigger
|
|
461
|
+
},
|
|
462
|
+
loadingIcon: {
|
|
463
|
+
'data-testid': customTestId.loadingIcon
|
|
464
|
+
}
|
|
465
|
+
}"
|
|
466
|
+
:data-testid="customTestId.dropdown"
|
|
467
|
+
:virtualScrollerOptions="VIRTUAL_SCROLLER_CONFIG"
|
|
468
|
+
>
|
|
469
|
+
<template
|
|
470
|
+
v-if="enableCustomLabel"
|
|
471
|
+
#value="slotProps"
|
|
472
|
+
>
|
|
473
|
+
<span :data-testid="customTestId.value">
|
|
474
|
+
{{ getLabelBySelectedValue(slotProps.value) }}
|
|
475
|
+
</span>
|
|
476
|
+
</template>
|
|
477
|
+
<template #option="slotProps">
|
|
478
|
+
<div class="flex align-items-center gap-2">
|
|
479
|
+
<i
|
|
480
|
+
v-if="slotProps.option.icon"
|
|
481
|
+
:class="`pi ${slotProps.option.icon}`"
|
|
482
|
+
></i>
|
|
483
|
+
<div>{{ slotProps.option.name }}</div>
|
|
484
|
+
</div>
|
|
485
|
+
</template>
|
|
486
|
+
|
|
487
|
+
<template #header>
|
|
488
|
+
<div class="p-2 flex">
|
|
489
|
+
<div class="p-inputgroup">
|
|
490
|
+
<InputText
|
|
491
|
+
type="text"
|
|
492
|
+
v-model="search"
|
|
493
|
+
placeholder="Search"
|
|
494
|
+
class="w-full rounded-r-none"
|
|
495
|
+
ref="focusSearch"
|
|
496
|
+
:data-testid="customTestId.search"
|
|
497
|
+
/>
|
|
498
|
+
<span
|
|
499
|
+
class="p-inputgroup-addon"
|
|
500
|
+
@click="searchFilter"
|
|
501
|
+
>
|
|
502
|
+
<i class="pi pi-search"></i>
|
|
503
|
+
</span>
|
|
504
|
+
</div>
|
|
505
|
+
</div>
|
|
506
|
+
</template>
|
|
507
|
+
|
|
508
|
+
<template #footer>
|
|
509
|
+
<slot name="footer" />
|
|
510
|
+
</template>
|
|
511
|
+
</Dropdown>
|
|
512
|
+
|
|
513
|
+
<small
|
|
514
|
+
v-if="errorMessage"
|
|
515
|
+
:data-testid="customTestId.error"
|
|
516
|
+
class="p-error text-xs font-normal leading-tight"
|
|
517
|
+
>
|
|
518
|
+
{{ errorMessage }}
|
|
519
|
+
</small>
|
|
520
|
+
<small
|
|
521
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
522
|
+
:data-testid="customTestId.description"
|
|
523
|
+
v-if="props.description || hasDescriptionSlot"
|
|
524
|
+
>
|
|
525
|
+
<slot name="description">
|
|
526
|
+
{{ props.description }}
|
|
527
|
+
</slot>
|
|
528
|
+
</small>
|
|
529
|
+
</InputSlot>
|
|
530
|
+
</template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-dropdown-lazy-loader-with-filter.vue.d.ts","sourceRoot":"","sources":["field-dropdown-lazy-loader-with-filter.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-dropdown-lazy-loader-with-filter.vue.d.ts","sourceRoot":"","sources":["field-dropdown-lazy-loader-with-filter.vue"],"names":[],"mappings":"wBAqyCqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AAvFzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAoFG"}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import MultiSelect from 'primevue/multiselect'
|
|
5
5
|
import InputText from 'primevue/inputtext'
|
|
6
6
|
import { useField } from 'vee-validate'
|
|
7
|
-
import
|
|
7
|
+
import Label from '../label'
|
|
8
|
+
import InputSlot from '../slots/input-slot'
|
|
8
9
|
|
|
9
10
|
const props = defineProps({
|
|
10
11
|
value: {
|
|
@@ -355,95 +356,97 @@
|
|
|
355
356
|
</script>
|
|
356
357
|
|
|
357
358
|
<template>
|
|
358
|
-
<
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
<template
|
|
401
|
-
v-if="enableCustomLabel"
|
|
402
|
-
#value="slotProps"
|
|
359
|
+
<InputSlot>
|
|
360
|
+
<Label
|
|
361
|
+
v-if="props.label"
|
|
362
|
+
:for="props.name"
|
|
363
|
+
:label="props.label"
|
|
364
|
+
:isRequired="$attrs.required"
|
|
365
|
+
:data-testid="customTestId.label"
|
|
366
|
+
/>
|
|
367
|
+
<MultiSelect
|
|
368
|
+
:id="name"
|
|
369
|
+
:name="props.name"
|
|
370
|
+
:loading="loading"
|
|
371
|
+
v-model="inputValue"
|
|
372
|
+
:options="data"
|
|
373
|
+
:optionLabel="props.optionLabel"
|
|
374
|
+
:optionDisabled="props.optionDisabled"
|
|
375
|
+
:optionValue="props.optionValue"
|
|
376
|
+
:placeholder="props.placeholder"
|
|
377
|
+
:showClear="props.enableClearOption"
|
|
378
|
+
@change="emitChange"
|
|
379
|
+
@blur="emitBlur"
|
|
380
|
+
:class="errorMessage ? 'p-invalid' : ''"
|
|
381
|
+
v-bind="$attrs"
|
|
382
|
+
class="w-full md:w-80"
|
|
383
|
+
display="chip"
|
|
384
|
+
:pt="{
|
|
385
|
+
clearIcon: {
|
|
386
|
+
'data-testid': customTestId.clearIcon
|
|
387
|
+
},
|
|
388
|
+
filterInput: {
|
|
389
|
+
class: 'w-full',
|
|
390
|
+
'data-testid': customTestId.filterInput
|
|
391
|
+
},
|
|
392
|
+
trigger: {
|
|
393
|
+
'data-testid': customTestId.trigger
|
|
394
|
+
},
|
|
395
|
+
loadingIcon: {
|
|
396
|
+
'data-testid': customTestId.loadingIcon
|
|
397
|
+
}
|
|
398
|
+
}"
|
|
399
|
+
:data-testid="customTestId.multiselect"
|
|
400
|
+
:virtualScrollerOptions="VIRTUAL_SCROLLER_CONFIG"
|
|
403
401
|
>
|
|
404
|
-
<
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
<
|
|
424
|
-
|
|
402
|
+
<template
|
|
403
|
+
v-if="enableCustomLabel"
|
|
404
|
+
#value="slotProps"
|
|
405
|
+
>
|
|
406
|
+
<span :data-testid="customTestId.value">
|
|
407
|
+
{{ getLabelsForSelectedValues(slotProps.value) }}
|
|
408
|
+
</span>
|
|
409
|
+
</template>
|
|
410
|
+
<template #header>
|
|
411
|
+
<div class="p-2 flex">
|
|
412
|
+
<div class="p-inputgroup">
|
|
413
|
+
<InputText
|
|
414
|
+
type="text"
|
|
415
|
+
v-model="search"
|
|
416
|
+
placeholder="Search"
|
|
417
|
+
class="w-full rounded-r-none"
|
|
418
|
+
ref="focusSearch"
|
|
419
|
+
:data-testid="customTestId.search"
|
|
420
|
+
/>
|
|
421
|
+
<span
|
|
422
|
+
class="p-inputgroup-addon"
|
|
423
|
+
@click="searchFilter"
|
|
424
|
+
>
|
|
425
|
+
<i class="pi pi-search"></i>
|
|
426
|
+
</span>
|
|
427
|
+
</div>
|
|
425
428
|
</div>
|
|
426
|
-
</
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
</
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
</
|
|
447
|
-
</
|
|
429
|
+
</template>
|
|
430
|
+
<template #footer>
|
|
431
|
+
<slot name="footer" />
|
|
432
|
+
</template>
|
|
433
|
+
</MultiSelect>
|
|
434
|
+
<small
|
|
435
|
+
v-if="errorMessage"
|
|
436
|
+
:data-testid="customTestId.error"
|
|
437
|
+
class="p-error text-xs font-normal leading-tight"
|
|
438
|
+
>
|
|
439
|
+
{{ errorMessage }}
|
|
440
|
+
</small>
|
|
441
|
+
<small
|
|
442
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
443
|
+
:data-testid="customTestId.description"
|
|
444
|
+
v-if="props.description || hasDescriptionSlot"
|
|
445
|
+
>
|
|
446
|
+
<slot name="description">
|
|
447
|
+
{{ props.description }}
|
|
448
|
+
</slot>
|
|
449
|
+
</small>
|
|
450
|
+
</InputSlot>
|
|
448
451
|
</template>
|
|
449
452
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-dropdown-multi-select-lazy-loader.vue.d.ts","sourceRoot":"","sources":["field-dropdown-multi-select-lazy-loader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-dropdown-multi-select-lazy-loader.vue.d.ts","sourceRoot":"","sources":["field-dropdown-multi-select-lazy-loader.vue"],"names":[],"mappings":"wBA6mCqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AApEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAiEG"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { toRef, useSlots, computed, useAttrs } from 'vue'
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import InputText from 'primevue/inputtext'
|
|
5
|
-
import
|
|
5
|
+
import InputSlot from '../slots/input-slot'
|
|
6
|
+
import Label from '../label'
|
|
6
7
|
|
|
7
8
|
const props = defineProps({
|
|
8
9
|
value: {
|
|
@@ -67,45 +68,47 @@
|
|
|
67
68
|
</script>
|
|
68
69
|
|
|
69
70
|
<template>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<div class="p-inputgroup">
|
|
78
|
-
<div
|
|
79
|
-
class="p-inputgroup-addon"
|
|
80
|
-
v-if="hasIconSlot"
|
|
81
|
-
>
|
|
82
|
-
<slot name="icon"></slot>
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<InputText
|
|
86
|
-
:id="name"
|
|
87
|
-
v-model="inputValue"
|
|
88
|
-
:name="name"
|
|
89
|
-
:readonly="readonly"
|
|
90
|
-
:disabled="disabled"
|
|
91
|
-
:class="[{ 'p-invalid': errorMessage }, $attrs.class, inputClass]"
|
|
92
|
-
type="text"
|
|
93
|
-
:placeholder="props.placeholder"
|
|
94
|
-
@input="handleChange"
|
|
95
|
-
@blur="handleBlur"
|
|
71
|
+
<InputSlot>
|
|
72
|
+
<Label
|
|
73
|
+
v-if="props.label"
|
|
74
|
+
:for="props.name"
|
|
75
|
+
:data-testid="customTestId.label"
|
|
76
|
+
:label="props.label"
|
|
77
|
+
:isRequired="attrs.required"
|
|
96
78
|
/>
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
79
|
+
<div class="p-inputgroup">
|
|
80
|
+
<div
|
|
81
|
+
class="p-inputgroup-addon"
|
|
82
|
+
v-if="hasIconSlot"
|
|
83
|
+
>
|
|
84
|
+
<slot name="icon"></slot>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<InputText
|
|
88
|
+
:id="name"
|
|
89
|
+
v-model="inputValue"
|
|
90
|
+
:name="name"
|
|
91
|
+
:readonly="readonly"
|
|
92
|
+
:disabled="disabled"
|
|
93
|
+
:class="[{ 'p-invalid': errorMessage }, $attrs.class, inputClass]"
|
|
94
|
+
type="text"
|
|
95
|
+
:placeholder="props.placeholder"
|
|
96
|
+
@input="handleChange"
|
|
97
|
+
@blur="handleBlur"
|
|
98
|
+
/>
|
|
99
|
+
<slot name="button"></slot>
|
|
100
|
+
</div>
|
|
101
|
+
<small
|
|
102
|
+
v-if="errorMessage"
|
|
103
|
+
class="p-error text-xs font-normal leading-tight"
|
|
104
|
+
>
|
|
105
|
+
{{ errorMessage }}
|
|
106
|
+
</small>
|
|
107
|
+
<small
|
|
108
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
109
|
+
v-if="props.description"
|
|
110
|
+
>
|
|
111
|
+
{{ props.description }}
|
|
112
|
+
</small>
|
|
113
|
+
</InputSlot>
|
|
111
114
|
</template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-input-group.vue.d.ts","sourceRoot":"","sources":["field-input-group.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-input-group.vue.d.ts","sourceRoot":"","sources":["field-input-group.vue"],"names":[],"mappings":"wBAuWqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AAtCzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAmCG"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import Checkbox from 'primevue/checkbox'
|
|
3
3
|
import { useField } from 'vee-validate'
|
|
4
4
|
import { computed, toRef, useSlots, useAttrs } from 'vue'
|
|
5
|
-
import
|
|
5
|
+
import Label from '../label'
|
|
6
6
|
|
|
7
7
|
const props = defineProps({
|
|
8
8
|
value: {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
</script>
|
|
96
96
|
|
|
97
97
|
<template>
|
|
98
|
-
<
|
|
98
|
+
<Label
|
|
99
99
|
:for="props.name"
|
|
100
100
|
:label="props.label"
|
|
101
101
|
:isRequired="$attrs.required"
|
|
@@ -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
|
|
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
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-number.vue.d.ts","sourceRoot":"","sources":["field-number.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-number.vue.d.ts","sourceRoot":"","sources":["field-number.vue"],"names":[],"mappings":"wBA8bqB,OAAO,YAAY;;AA3DxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA0DG"}
|