@sfxcode/formkit-primevue 2.5.7 → 2.5.9

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, handleSelect } = useFormKitInput(props.context)
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.7",
4
+ "version": "2.5.9",
5
5
  "packageManager": "pnpm@9.12.1+sha256.91452fdfa46234ae447d46d5c4fc4e7e0a7058f90495c4b6f77f8beebbb154e3",
6
6
  "author": {
7
7
  "name": "Tom",
@@ -88,28 +88,28 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@formkit/addons": "^1.6.7",
91
- "@formkit/drag-and-drop": "^0.1.6",
91
+ "@formkit/drag-and-drop": "^0.2.4",
92
92
  "@formkit/i18n": "^1.6.7",
93
93
  "@formkit/vue": "^1.6.7",
94
94
  "@intlify/core": "9.14.1",
95
95
  "primeicons": "^7.0.0",
96
- "primevue": "^4.1.0",
96
+ "primevue": "^4.1.1",
97
97
  "quill": "^2.0.2",
98
98
  "uuid": "^10.0.0",
99
99
  "vue-i18n": "9.14.1"
100
100
  },
101
101
  "devDependencies": {
102
- "@antfu/eslint-config": "3.7.3",
102
+ "@antfu/eslint-config": "^3.8.0",
103
103
  "@formkit/core": "^1.6.7",
104
- "@primevue/themes": "^4.1.0",
105
- "@types/node": "^22.7.5",
104
+ "@primevue/themes": "^4.1.1",
105
+ "@types/node": "^22.7.7",
106
106
  "@unocss/preset-icons": "^0.63.4",
107
107
  "@unocss/preset-uno": "^0.63.4",
108
108
  "@vitejs/plugin-vue": "^5.1.4",
109
- "@vitest/coverage-v8": "^2.1.2",
110
- "@vitest/ui": "^2.1.2",
111
- "@vue/compiler-sfc": "^3.5.11",
112
- "@vue/server-renderer": "^3.5.11",
109
+ "@vitest/coverage-v8": "^2.1.3",
110
+ "@vitest/ui": "^2.1.3",
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",
@@ -117,29 +117,29 @@
117
117
  "@vueuse/core": "^11.1.0",
118
118
  "@vueuse/head": "^2.0.0",
119
119
  "changelogen": "^0.5.7",
120
- "chart.js": "^4.4.4",
120
+ "chart.js": "^4.4.5",
121
121
  "consola": "^3.2.3",
122
- "eslint": "^9.12.0",
122
+ "eslint": "^9.13.0",
123
123
  "happy-dom": "^15.7.4",
124
- "json-editor-vue": "^0.17.1",
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
- "tslib": "^2.7.0",
129
- "typescript": "^5.6.2",
128
+ "tslib": "^2.8.0",
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.6",
135
- "vite": "^5.4.8",
136
- "vite-plugin-dts": "4.2.2",
134
+ "vanilla-jsoneditor": "^1.0.8",
135
+ "vite": "^5.4.9",
136
+ "vite-plugin-dts": "^4.2.4",
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.0",
141
- "vitest": "^2.1.2",
142
- "vue": "^3.5.11",
140
+ "vitepress": "^1.4.1",
141
+ "vitest": "^2.1.3",
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"