@sfxcode/formkit-primevue 2.5.7 → 2.5.8
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.
|
@@ -59,7 +59,7 @@ const props = defineProps({
|
|
|
59
59
|
},
|
|
60
60
|
})
|
|
61
61
|
|
|
62
|
-
const { validSlotNames, unstyled, isInvalid, handleInput
|
|
62
|
+
const { validSlotNames, unstyled, isInvalid, handleInput } = useFormKitInput(props.context)
|
|
63
63
|
|
|
64
64
|
function handleBlur(e: DatePickerBlurEvent) {
|
|
65
65
|
props.context?.handlers.blur(e.originalEvent)
|
|
@@ -68,6 +68,15 @@ function handleBlur(e: DatePickerBlurEvent) {
|
|
|
68
68
|
function handleClearClick() {
|
|
69
69
|
props.context?.node.input(null)
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
function handleSelect(e: any) {
|
|
73
|
+
if (props.context?.selectionMode === 'range' || props.context?.selectionMode === 'multiple') {
|
|
74
|
+
props.context?.node.input(props.context._value)
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
props.context?.node.input(e)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
71
80
|
</script>
|
|
72
81
|
|
|
73
82
|
<template>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.8",
|
|
5
5
|
"packageManager": "pnpm@9.12.1+sha256.91452fdfa46234ae447d46d5c4fc4e7e0a7058f90495c4b6f77f8beebbb154e3",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
109
109
|
"@vitest/coverage-v8": "^2.1.2",
|
|
110
110
|
"@vitest/ui": "^2.1.2",
|
|
111
|
-
"@vue/compiler-sfc": "^3.5.
|
|
112
|
-
"@vue/server-renderer": "^3.5.
|
|
111
|
+
"@vue/compiler-sfc": "^3.5.12",
|
|
112
|
+
"@vue/server-renderer": "^3.5.12",
|
|
113
113
|
"@vue/test-utils": "^2.4.6",
|
|
114
114
|
"@vue/tsconfig": "^0.5.1",
|
|
115
115
|
"@vuedx/typecheck": "~0.7.6",
|
|
@@ -121,25 +121,25 @@
|
|
|
121
121
|
"consola": "^3.2.3",
|
|
122
122
|
"eslint": "^9.12.0",
|
|
123
123
|
"happy-dom": "^15.7.4",
|
|
124
|
-
"json-editor-vue": "^0.17.
|
|
124
|
+
"json-editor-vue": "^0.17.2",
|
|
125
125
|
"mkdist": "^1.6.0",
|
|
126
126
|
"quill": "^2.0.2",
|
|
127
127
|
"sass": "1.78.0",
|
|
128
128
|
"tslib": "^2.7.0",
|
|
129
|
-
"typescript": "^5.6.
|
|
129
|
+
"typescript": "^5.6.3",
|
|
130
130
|
"unbuild": "2.0.0",
|
|
131
131
|
"unocss": "^0.63.4",
|
|
132
132
|
"unplugin-auto-import": "^0.18.3",
|
|
133
133
|
"unplugin-vue-components": "^0.27.4",
|
|
134
|
-
"vanilla-jsoneditor": "^1.0.
|
|
134
|
+
"vanilla-jsoneditor": "^1.0.7",
|
|
135
135
|
"vite": "^5.4.8",
|
|
136
136
|
"vite-plugin-dts": "4.2.2",
|
|
137
137
|
"vite-plugin-eslint": "^1.8.1",
|
|
138
138
|
"vite-plugin-pages": "^0.32.3",
|
|
139
139
|
"vite-ssg": "^0.23.8",
|
|
140
|
-
"vitepress": "^1.4.
|
|
140
|
+
"vitepress": "^1.4.1",
|
|
141
141
|
"vitest": "^2.1.2",
|
|
142
|
-
"vue": "^3.5.
|
|
142
|
+
"vue": "^3.5.12",
|
|
143
143
|
"vue-demi": "^0.14.10",
|
|
144
144
|
"vue-router": "^4.4.5",
|
|
145
145
|
"vue-tsc": "^2.1.6"
|