@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
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import Dropdown from 'primevue/dropdown'
|
|
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: {
|
|
@@ -525,124 +526,126 @@
|
|
|
525
526
|
</script>
|
|
526
527
|
|
|
527
528
|
<template>
|
|
528
|
-
<
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
<template
|
|
573
|
-
v-if="enableCustomLabel"
|
|
574
|
-
#value="slotProps"
|
|
529
|
+
<InputSlot>
|
|
530
|
+
<Label
|
|
531
|
+
v-if="props.label"
|
|
532
|
+
:for="props.name"
|
|
533
|
+
:label="props.label"
|
|
534
|
+
:isRequired="$attrs.required"
|
|
535
|
+
:data-testid="customTestId.label"
|
|
536
|
+
/>
|
|
537
|
+
<Dropdown
|
|
538
|
+
appendTo="self"
|
|
539
|
+
:id="name"
|
|
540
|
+
:name="props.name"
|
|
541
|
+
:loading="loading"
|
|
542
|
+
v-model="inputValue"
|
|
543
|
+
:options="data"
|
|
544
|
+
:optionLabel="props.optionLabel"
|
|
545
|
+
:optionDisabled="props.optionDisabled"
|
|
546
|
+
:optionValue="props.optionValue"
|
|
547
|
+
:optionGroupLabel="props.optionGroupLabel"
|
|
548
|
+
:optionGroupChildren="props.optionGroupChildren"
|
|
549
|
+
:placeholder="props.placeholder"
|
|
550
|
+
:showClear="props.enableClearOption"
|
|
551
|
+
@change="emitChange"
|
|
552
|
+
@blur="emitBlur"
|
|
553
|
+
:class="errorMessage ? 'p-invalid' : ''"
|
|
554
|
+
v-bind="$attrs"
|
|
555
|
+
class="w-full"
|
|
556
|
+
:pt="{
|
|
557
|
+
clearIcon: {
|
|
558
|
+
'data-testid': customTestId.clearIcon
|
|
559
|
+
},
|
|
560
|
+
filterInput: {
|
|
561
|
+
class: 'w-full',
|
|
562
|
+
'data-testid': customTestId.filterInput
|
|
563
|
+
},
|
|
564
|
+
trigger: {
|
|
565
|
+
'data-testid': customTestId.trigger
|
|
566
|
+
},
|
|
567
|
+
loadingIcon: {
|
|
568
|
+
'data-testid': customTestId.loadingIcon
|
|
569
|
+
}
|
|
570
|
+
}"
|
|
571
|
+
:data-testid="customTestId.dropdown"
|
|
572
|
+
:virtualScrollerOptions="VIRTUAL_SCROLLER_CONFIG"
|
|
575
573
|
>
|
|
576
|
-
<
|
|
577
|
-
|
|
578
|
-
|
|
574
|
+
<template
|
|
575
|
+
v-if="enableCustomLabel"
|
|
576
|
+
#value="slotProps"
|
|
579
577
|
>
|
|
580
|
-
<i
|
|
581
|
-
v-if="showIcon"
|
|
582
|
-
:class="`pi ${iconSelected} ${applyIconColor(iconSelected)}`"
|
|
583
|
-
></i>
|
|
584
578
|
<span
|
|
585
|
-
class="
|
|
586
|
-
:
|
|
579
|
+
class="flex align-items-center gap-2 max-w-full"
|
|
580
|
+
:data-testid="customTestId.value"
|
|
587
581
|
>
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
<template #option="slotProps">
|
|
593
|
-
<div class="flex align-items-center gap-2">
|
|
594
|
-
<i
|
|
595
|
-
v-if="slotProps.option.icon"
|
|
596
|
-
:class="`pi ${slotProps.option.icon} ${applyIconColor(slotProps.option.icon)}`"
|
|
597
|
-
></i>
|
|
598
|
-
<span
|
|
599
|
-
v-else-if="!slotProps.option.icon && showIcon"
|
|
600
|
-
class="w-4"
|
|
601
|
-
></span>
|
|
602
|
-
<div>{{ slotProps.option.name }}</div>
|
|
603
|
-
</div>
|
|
604
|
-
</template>
|
|
605
|
-
|
|
606
|
-
<template #header>
|
|
607
|
-
<div class="p-2 flex">
|
|
608
|
-
<div class="p-inputgroup">
|
|
609
|
-
<InputText
|
|
610
|
-
type="text"
|
|
611
|
-
v-model="search"
|
|
612
|
-
placeholder="Search"
|
|
613
|
-
class="w-full rounded-r-none"
|
|
614
|
-
ref="focusSearch"
|
|
615
|
-
:data-testid="customTestId.search"
|
|
616
|
-
/>
|
|
582
|
+
<i
|
|
583
|
+
v-if="showIcon"
|
|
584
|
+
:class="`pi ${iconSelected} ${applyIconColor(iconSelected)}`"
|
|
585
|
+
></i>
|
|
617
586
|
<span
|
|
618
|
-
class="
|
|
619
|
-
|
|
587
|
+
class="truncate max-w-full"
|
|
588
|
+
:title="getLabelBySelectedValue(slotProps.value)"
|
|
620
589
|
>
|
|
621
|
-
|
|
590
|
+
{{ getLabelBySelectedValue(slotProps.value) }}
|
|
622
591
|
</span>
|
|
592
|
+
</span>
|
|
593
|
+
</template>
|
|
594
|
+
<template #option="slotProps">
|
|
595
|
+
<div class="flex align-items-center gap-2">
|
|
596
|
+
<i
|
|
597
|
+
v-if="slotProps.option.icon"
|
|
598
|
+
:class="`pi ${slotProps.option.icon} ${applyIconColor(slotProps.option.icon)}`"
|
|
599
|
+
></i>
|
|
600
|
+
<span
|
|
601
|
+
v-else-if="!slotProps.option.icon && showIcon"
|
|
602
|
+
class="w-4"
|
|
603
|
+
></span>
|
|
604
|
+
<div>{{ slotProps.option.name }}</div>
|
|
623
605
|
</div>
|
|
624
|
-
</
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
606
|
+
</template>
|
|
607
|
+
|
|
608
|
+
<template #header>
|
|
609
|
+
<div class="p-2 flex">
|
|
610
|
+
<div class="p-inputgroup">
|
|
611
|
+
<InputText
|
|
612
|
+
type="text"
|
|
613
|
+
v-model="search"
|
|
614
|
+
placeholder="Search"
|
|
615
|
+
class="w-full rounded-r-none"
|
|
616
|
+
ref="focusSearch"
|
|
617
|
+
:data-testid="customTestId.search"
|
|
618
|
+
/>
|
|
619
|
+
<span
|
|
620
|
+
class="p-inputgroup-addon"
|
|
621
|
+
@click="searchFilter"
|
|
622
|
+
>
|
|
623
|
+
<i class="pi pi-search"></i>
|
|
624
|
+
</span>
|
|
625
|
+
</div>
|
|
626
|
+
</div>
|
|
627
|
+
</template>
|
|
628
|
+
|
|
629
|
+
<template #footer>
|
|
630
|
+
<slot name="footer" />
|
|
631
|
+
</template>
|
|
632
|
+
</Dropdown>
|
|
633
|
+
|
|
634
|
+
<small
|
|
635
|
+
v-if="errorMessage"
|
|
636
|
+
:data-testid="customTestId.error"
|
|
637
|
+
class="p-error text-xs font-normal leading-tight"
|
|
638
|
+
>
|
|
639
|
+
{{ errorMessage }}
|
|
640
|
+
</small>
|
|
641
|
+
<small
|
|
642
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
643
|
+
:data-testid="customTestId.description"
|
|
644
|
+
v-if="props.description || hasDescriptionSlot"
|
|
645
|
+
>
|
|
646
|
+
<slot name="description">
|
|
647
|
+
{{ props.description }}
|
|
648
|
+
</slot>
|
|
649
|
+
</small>
|
|
650
|
+
</InputSlot>
|
|
648
651
|
</template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-dropdown-lazy-loader.vue.d.ts","sourceRoot":"","sources":["field-dropdown-lazy-loader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-dropdown-lazy-loader.vue.d.ts","sourceRoot":"","sources":["field-dropdown-lazy-loader.vue"],"names":[],"mappings":"wBA4hDqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AApFzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAiFG"}
|
package/src/core/form/field-dropdown-lazy-loader-dynamic/field-dropdown-lazy-loader-dynamic.vue
CHANGED
|
@@ -1,95 +1,97 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<template
|
|
42
|
-
v-if="enableCustomLabel"
|
|
43
|
-
#value="slotProps"
|
|
2
|
+
<InputSlot>
|
|
3
|
+
<Label
|
|
4
|
+
v-if="props.label"
|
|
5
|
+
:for="props.name"
|
|
6
|
+
:label="props.label"
|
|
7
|
+
:isRequired="$attrs.required"
|
|
8
|
+
:data-testid="customTestId.label"
|
|
9
|
+
/>
|
|
10
|
+
<Dropdown
|
|
11
|
+
appendTo="self"
|
|
12
|
+
:id="name"
|
|
13
|
+
:name="props.name"
|
|
14
|
+
:loading="loading"
|
|
15
|
+
v-model="inputValue"
|
|
16
|
+
:options="data"
|
|
17
|
+
:optionLabel="props.optionLabel"
|
|
18
|
+
:optionDisabled="props.optionDisabled"
|
|
19
|
+
:optionValue="props.optionValue"
|
|
20
|
+
:placeholder="props.placeholder"
|
|
21
|
+
:showClear="props.enableClearOption"
|
|
22
|
+
@change="emitChange"
|
|
23
|
+
@blur="emitBlur"
|
|
24
|
+
:class="errorMessage ? 'p-invalid' : ''"
|
|
25
|
+
v-bind="$attrs"
|
|
26
|
+
class="w-full"
|
|
27
|
+
:pt="{
|
|
28
|
+
filterInput: {
|
|
29
|
+
class: 'w-full',
|
|
30
|
+
'data-testid': customTestId.filterInput
|
|
31
|
+
},
|
|
32
|
+
trigger: {
|
|
33
|
+
'data-testid': customTestId.trigger
|
|
34
|
+
},
|
|
35
|
+
loadingIcon: {
|
|
36
|
+
'data-testid': customTestId.loadingIcon
|
|
37
|
+
}
|
|
38
|
+
}"
|
|
39
|
+
:data-testid="customTestId.dropdown"
|
|
40
|
+
:virtualScrollerOptions="VIRTUAL_SCROLLER_CONFIG"
|
|
44
41
|
>
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<
|
|
67
|
-
|
|
42
|
+
<template
|
|
43
|
+
v-if="enableCustomLabel"
|
|
44
|
+
#value="slotProps"
|
|
45
|
+
>
|
|
46
|
+
<span :data-testid="customTestId.value">
|
|
47
|
+
{{ getLabelBySelectedValue(slotProps.value) }}
|
|
48
|
+
</span>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<template #header>
|
|
52
|
+
<div class="p-2 flex">
|
|
53
|
+
<div class="p-inputgroup">
|
|
54
|
+
<InputText
|
|
55
|
+
type="text"
|
|
56
|
+
v-model="search"
|
|
57
|
+
placeholder="Search"
|
|
58
|
+
class="w-full rounded-r-none"
|
|
59
|
+
:disabled="!hasServiceAccess"
|
|
60
|
+
ref="focusSearch"
|
|
61
|
+
:data-testid="customTestId.search"
|
|
62
|
+
/>
|
|
63
|
+
<span
|
|
64
|
+
class="p-inputgroup-addon"
|
|
65
|
+
@click="searchFilter"
|
|
66
|
+
>
|
|
67
|
+
<i class="pi pi-search"></i>
|
|
68
|
+
</span>
|
|
69
|
+
</div>
|
|
68
70
|
</div>
|
|
69
|
-
</
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</
|
|
92
|
-
</
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<template #footer>
|
|
74
|
+
<slot name="footer" />
|
|
75
|
+
</template>
|
|
76
|
+
</Dropdown>
|
|
77
|
+
|
|
78
|
+
<small
|
|
79
|
+
v-if="errorMessage"
|
|
80
|
+
:data-testid="customTestId.error"
|
|
81
|
+
class="p-error text-xs font-normal leading-tight"
|
|
82
|
+
>
|
|
83
|
+
{{ errorMessage }}
|
|
84
|
+
</small>
|
|
85
|
+
<small
|
|
86
|
+
class="text-xs text-color-secondary font-normal leading-5"
|
|
87
|
+
:data-testid="customTestId.description"
|
|
88
|
+
v-if="props.description || hasDescriptionSlot"
|
|
89
|
+
>
|
|
90
|
+
<slot name="description">
|
|
91
|
+
{{ props.description }}
|
|
92
|
+
</slot>
|
|
93
|
+
</small>
|
|
94
|
+
</InputSlot>
|
|
93
95
|
</template>
|
|
94
96
|
|
|
95
97
|
<script setup>
|
|
@@ -98,7 +100,8 @@
|
|
|
98
100
|
import { useField } from 'vee-validate'
|
|
99
101
|
import { computed, toRef, useSlots, useAttrs, ref, onMounted, watchEffect, watch } from 'vue'
|
|
100
102
|
import { watchDebounced } from '@vueuse/core'
|
|
101
|
-
import
|
|
103
|
+
import Label from '../label'
|
|
104
|
+
import InputSlot from '../slots/input-slot'
|
|
102
105
|
|
|
103
106
|
const props = defineProps({
|
|
104
107
|
value: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-dropdown-lazy-loader-dynamic.vue.d.ts","sourceRoot":"","sources":["field-dropdown-lazy-loader-dynamic.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-dropdown-lazy-loader-dynamic.vue.d.ts","sourceRoot":"","sources":["field-dropdown-lazy-loader-dynamic.vue"],"names":[],"mappings":"wBA0jCqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AApEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAiEG"}
|