@sfxcode/formkit-primevue 2.4.16 → 2.4.18

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.
@@ -92,10 +92,10 @@ function handleClearClick() {
92
92
  :select-other-months="context?.selectOtherMonths ?? false"
93
93
  :icon="context?.icon"
94
94
  :show-icon="context.showIcon"
95
- :previous-icon="context?.previousIcon ?? 'pi pi-chevron-left'"
96
- :next-icon="context?.nextIcon ?? 'pi pi-chevron-right'"
97
- :increment-icon="context?.incrementIcon ?? 'pi pi-chevron-up'"
98
- :decrement-icon="context?.decrementIcon ?? 'pi pi-chevron-down'"
95
+ :previous-icon="context?.previousIcon"
96
+ :next-icon="context?.nextIcon"
97
+ :increment-icon="context?.incrementIcon"
98
+ :decrement-icon="context?.decrementIcon"
99
99
  :number-of-months="context?.numberOfMonths ?? 1"
100
100
  :responsive-options="context?.responsiveOptions"
101
101
  :view="context?.view ?? 'date'"
@@ -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>
@@ -54,8 +54,8 @@ const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.c
54
54
  :weak-label="context.weakLabel"
55
55
  :medium-label="context.mediumLabel"
56
56
  :strong-label="context.strongLabel"
57
- :mask-icon="context.maskIcon ?? 'pi pi-eye-slash'"
58
- :unmask-icon="context.unmaskIcon ?? 'pi pi-eye'"
57
+ :mask-icon="context.maskIcon"
58
+ :unmask-icon="context.unmaskIcon"
59
59
  :feedback="context.feedback ?? false"
60
60
  :toggle-mask="context.toggleMask ?? false"
61
61
  :pt="context.pt"
@@ -40,8 +40,8 @@ const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.c
40
40
  :aria-label="context?.attrs.ariaLabel"
41
41
  :aria-labelledby="context?.attrs.ariaLabelledby"
42
42
  :stars="context.stars ?? 5"
43
- :on-icon="context.onIcon ?? 'pi pi-star-fill'"
44
- :off-icon="context.offIcon ?? 'pi pi-star'"
43
+ :on-icon="context.onIcon"
44
+ :off-icon="context.offIcon"
45
45
  :pt="context.pt"
46
46
  :pt-options="context.ptOptions"
47
47
  :unstyled="unstyled"
@@ -43,9 +43,9 @@ const { unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.
43
43
  :aria-labelledby="context?.attrs.ariaLabelledby"
44
44
  :on-label="context.onLabel ?? 'Yes'"
45
45
  :off-label="context.offLabel ?? 'No'"
46
- :on-icon="context.onIcon ?? 'pi pi-check'"
47
- :off-icon="context.offIcon ?? 'pi pi-times'"
48
- :icon-pos="context.iconPos ?? 'left'"
46
+ :on-icon="context.onIcon"
47
+ :off-icon="context.offIcon"
48
+ :icon-pos="context.iconPos"
49
49
  :pt="context.pt"
50
50
  :pt-options="context.ptOptions"
51
51
  :unstyled="unstyled"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
3
  "type": "module",
4
- "version": "2.4.16",
5
- "packageManager": "pnpm@9.9.0+sha256.7a4261e50d9a44d9240baf6c9d6e10089dcf0a79d0007f2a26985a6927324177",
4
+ "version": "2.4.18",
5
+ "packageManager": "pnpm@9.11.0+sha256.1c0e33f70e5df9eede84a357bdfa0b1f9dba6e58194628d48a1055756f553754",
6
6
  "author": {
7
7
  "name": "Tom",
8
8
  "email": "tom@sfxcode.com"
@@ -100,14 +100,14 @@
100
100
  "@antfu/eslint-config": "3.6.2",
101
101
  "@formkit/core": "^1.6.7",
102
102
  "@primevue/themes": "4.0.7",
103
- "@types/node": "^22.7.0",
104
- "@unocss/preset-icons": "0.62.4",
105
- "@unocss/preset-uno": "0.62.4",
103
+ "@types/node": "^22.7.3",
104
+ "@unocss/preset-icons": "^0.62.4",
105
+ "@unocss/preset-uno": "^0.62.4",
106
106
  "@vitejs/plugin-vue": "^5.1.4",
107
107
  "@vitest/coverage-v8": "^2.1.1",
108
108
  "@vitest/ui": "^2.1.1",
109
- "@vue/compiler-sfc": "3.5.6",
110
- "@vue/server-renderer": "^3.5.8",
109
+ "@vue/compiler-sfc": "^3.5.9",
110
+ "@vue/server-renderer": "^3.5.9",
111
111
  "@vue/test-utils": "^2.4.6",
112
112
  "@vue/tsconfig": "^0.5.1",
113
113
  "@vuedx/typecheck": "~0.7.6",
@@ -125,8 +125,8 @@
125
125
  "sass": "1.78.0",
126
126
  "tslib": "^2.7.0",
127
127
  "typescript": "^5.6.2",
128
- "unbuild": "3.0.0-rc.7",
129
- "unocss": "0.62.4",
128
+ "unbuild": "3.0.0-rc.8",
129
+ "unocss": "^0.62.4",
130
130
  "unplugin-auto-import": "^0.18.3",
131
131
  "unplugin-vue-components": "^0.27.4",
132
132
  "vanilla-jsoneditor": "^0.23.8",
@@ -135,9 +135,9 @@
135
135
  "vite-plugin-eslint": "^1.8.1",
136
136
  "vite-plugin-pages": "^0.32.3",
137
137
  "vite-ssg": "^0.23.8",
138
- "vitepress": "1.3.4",
138
+ "vitepress": "^1.3.4",
139
139
  "vitest": "^2.1.1",
140
- "vue": "3.5.6",
140
+ "vue": "^3.5.9",
141
141
  "vue-demi": "^0.14.10",
142
142
  "vue-router": "^4.4.5",
143
143
  "vue-tsc": "^2.1.6"