@sfxcode/formkit-primevue 2.4.16 → 2.4.17

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.
@@ -32,7 +32,7 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
32
32
 
33
33
  <template>
34
34
  <div class="p-formkit">
35
- <IconField>
35
+ <IconField v-if="hasPrefixIcon || hasSuffixIcon">
36
36
  <InputIcon v-if="hasPrefixIcon" :class="context?.iconPrefix" />
37
37
  <InputMask
38
38
  :id="context.id"
@@ -58,5 +58,28 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
58
58
  />
59
59
  <InputIcon v-if="hasSuffixIcon" :class="context?.iconSuffix" />
60
60
  </IconField>
61
+ <InputMask
62
+ v-if="!hasPrefixIcon && !hasSuffixIcon"
63
+ :id="context.id"
64
+ v-model="context._value"
65
+ v-bind="context?.attrs"
66
+ :disabled="!!context?.disabled"
67
+ :readonly="context?.attrs.readonly ?? false"
68
+ :class="context?.attrs?.class"
69
+ :invalid="isInvalid"
70
+ :tabindex="context?.attrs.tabindex"
71
+ :aria-label="context?.attrs.ariaLabel"
72
+ :aria-labelledby="context?.attrs.ariaLabelledby"
73
+ :mask="context.mask ?? undefined"
74
+ :slot-char="context.slotChar ?? '_'"
75
+ :auto-clear="context.autoClear ?? true"
76
+ :unmask="context.unmask ?? false"
77
+ :pt="context.pt"
78
+ :variant="context.variant"
79
+ :pt-options="context.ptOptions"
80
+ :unstyled="unstyled"
81
+ @update:model-value="handleInput"
82
+ @blur="handleBlur"
83
+ />
61
84
  </div>
62
85
  </template>
@@ -27,7 +27,7 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
27
27
 
28
28
  <template>
29
29
  <div class="p-formkit">
30
- <IconField>
30
+ <IconField v-if="hasPrefixIcon || hasSuffixIcon">
31
31
  <InputIcon v-if="hasPrefixIcon" :class="context?.iconPrefix" />
32
32
  <InputText
33
33
  :id="context.id"
@@ -50,5 +50,25 @@ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context)
50
50
  />
51
51
  <InputIcon v-if="hasSuffixIcon" :class="context?.iconSuffix" />
52
52
  </IconField>
53
+ <InputText
54
+ v-if="!hasPrefixIcon && !hasSuffixIcon"
55
+ :id="context.id"
56
+ v-model="context._value"
57
+ v-bind="context?.attrs"
58
+ :disabled="!!context?.disabled"
59
+ :readonly="context?.attrs.readonly ?? false"
60
+ :style="context?.attrs.style"
61
+ :class="context?.attrs?.class"
62
+ :invalid="isInvalid"
63
+ :tabindex="context?.attrs.tabindex"
64
+ :aria-label="context?.attrs.ariaLabel"
65
+ :aria-labelledby="context?.attrs.ariaLabelledby"
66
+ :placeholder="context.placeholder"
67
+ :pt="context.pt"
68
+ :pt-options="context.ptOptions"
69
+ :unstyled="unstyled"
70
+ @input="handleInput"
71
+ @blur="handleBlur"
72
+ />
53
73
  </div>
54
74
  </template>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
3
  "type": "module",
4
- "version": "2.4.16",
4
+ "version": "2.4.17",
5
5
  "packageManager": "pnpm@9.9.0+sha256.7a4261e50d9a44d9240baf6c9d6e10089dcf0a79d0007f2a26985a6927324177",
6
6
  "author": {
7
7
  "name": "Tom",