@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
@@ -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 LabelBlock from '../label'
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":"wBAixCqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AAvFzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAoFG"}
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 LabelBlock from '../label'
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
- <LabelBlock
359
- v-if="props.label"
360
- :for="props.name"
361
- :label="props.label"
362
- :isRequired="$attrs.required"
363
- :data-testid="customTestId.label"
364
- />
365
- <MultiSelect
366
- :id="name"
367
- :name="props.name"
368
- :loading="loading"
369
- v-model="inputValue"
370
- :options="data"
371
- :optionLabel="props.optionLabel"
372
- :optionDisabled="props.optionDisabled"
373
- :optionValue="props.optionValue"
374
- :placeholder="props.placeholder"
375
- :showClear="props.enableClearOption"
376
- @change="emitChange"
377
- @blur="emitBlur"
378
- :class="errorMessage ? 'p-invalid' : ''"
379
- v-bind="$attrs"
380
- class="w-full md:w-80"
381
- display="chip"
382
- :pt="{
383
- clearIcon: {
384
- 'data-testid': customTestId.clearIcon
385
- },
386
- filterInput: {
387
- class: 'w-full',
388
- 'data-testid': customTestId.filterInput
389
- },
390
- trigger: {
391
- 'data-testid': customTestId.trigger
392
- },
393
- loadingIcon: {
394
- 'data-testid': customTestId.loadingIcon
395
- }
396
- }"
397
- :data-testid="customTestId.multiselect"
398
- :virtualScrollerOptions="VIRTUAL_SCROLLER_CONFIG"
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
- <span :data-testid="customTestId.value">
405
- {{ getLabelsForSelectedValues(slotProps.value) }}
406
- </span>
407
- </template>
408
- <template #header>
409
- <div class="p-2 flex">
410
- <div class="p-inputgroup">
411
- <InputText
412
- type="text"
413
- v-model="search"
414
- placeholder="Search"
415
- class="w-full rounded-r-none"
416
- ref="focusSearch"
417
- :data-testid="customTestId.search"
418
- />
419
- <span
420
- class="p-inputgroup-addon"
421
- @click="searchFilter"
422
- >
423
- <i class="pi pi-search"></i>
424
- </span>
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
- </div>
427
- </template>
428
- <template #footer>
429
- <slot name="footer" />
430
- </template>
431
- </MultiSelect>
432
- <small
433
- v-if="errorMessage"
434
- :data-testid="customTestId.error"
435
- class="p-error text-xs font-normal leading-tight"
436
- >
437
- {{ errorMessage }}
438
- </small>
439
- <small
440
- class="text-xs text-color-secondary font-normal leading-5"
441
- :data-testid="customTestId.description"
442
- v-if="props.description || hasDescriptionSlot"
443
- >
444
- <slot name="description">
445
- {{ props.description }}
446
- </slot>
447
- </small>
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":"wBAylCqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AApEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAiEG"}
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 LabelBlock from '../label'
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
- <LabelBlock
71
- v-if="props.label"
72
- :for="props.name"
73
- :data-testid="customTestId.label"
74
- :label="props.label"
75
- :isRequired="attrs.required"
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
- <slot name="button"></slot>
98
- </div>
99
- <small
100
- v-if="errorMessage"
101
- class="p-error text-xs font-normal leading-tight"
102
- >
103
- {{ errorMessage }}
104
- </small>
105
- <small
106
- class="text-xs text-color-secondary font-normal leading-5"
107
- v-if="props.description"
108
- >
109
- {{ props.description }}
110
- </small>
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":"wBAmVqB,OAAO,YAAY;;AADxC,4BAA2B,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;qBAEtD,CAAC,EAAE,CAAC;;;AAtCzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAmCG"}
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 LabelBlock from '../label'
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
- <LabelBlock
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 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>
@@ -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"}