@sfxcode/formkit-primevue 3.0.11 → 3.1.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.
|
@@ -41,7 +41,8 @@ function handleBlur(e: InputNumberBlurEvent) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function handleInput(_: any) {
|
|
44
|
-
|
|
44
|
+
if (typeof _.value === 'number' || _.value === null)
|
|
45
|
+
props.context?.node.input(_.value)
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
function roundToDecimals(value: any, decimals: number) {
|
|
@@ -52,13 +53,13 @@ function roundToDecimals(value: any, decimals: number) {
|
|
|
52
53
|
watch(
|
|
53
54
|
() => props.context._value,
|
|
54
55
|
(newValue) => {
|
|
55
|
-
if
|
|
56
|
-
|
|
56
|
+
// Only update if the value is different
|
|
57
|
+
if (newValue !== props.context.node.value && typeof newValue === 'number') {
|
|
58
|
+
if (props.context.maxFractionDigits && props.context.maxFractionDigits > 0) {
|
|
57
59
|
// fix floating-point precision issues
|
|
58
60
|
props.context?.node.input(roundToDecimals(newValue, props.context.maxFractionDigits))
|
|
59
61
|
}
|
|
60
62
|
else {
|
|
61
|
-
// Only update if the value is different
|
|
62
63
|
props.context?.node.input(newValue)
|
|
63
64
|
}
|
|
64
65
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0
|
|
5
|
-
"packageManager": "pnpm@10.18.
|
|
4
|
+
"version": "3.1.0",
|
|
5
|
+
"packageManager": "pnpm@10.18.3+sha512.bbd16e6d7286fd7e01f6b3c0b3c932cda2965c06a908328f74663f10a9aea51f1129eea615134bf992831b009eabe167ecb7008b597f40ff9bc75946aadfb08d",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|
|
8
8
|
"email": "tom@sfxcode.com"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"dev": "vite serve dev",
|
|
73
73
|
"dev:build": "vite build dev",
|
|
74
74
|
"dev:preview": "vite preview dev",
|
|
75
|
-
"release": "npm run lint && npm run build && changelogen --
|
|
75
|
+
"release": "npm run lint && npm run build && changelogen --minor --release && npm publish --access public && git push --follow-tags",
|
|
76
76
|
"lint": "eslint .",
|
|
77
77
|
"lint:fix": "eslint . --fix",
|
|
78
78
|
"prepublishOnly": "pnpm build",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@vueuse/core": "^13.9.0",
|
|
115
115
|
"@vueuse/head": "^2.0.0",
|
|
116
116
|
"changelogen": "^0.6.2",
|
|
117
|
-
"chart.js": "^4.5.
|
|
117
|
+
"chart.js": "^4.5.1",
|
|
118
118
|
"consola": "^3.4.2",
|
|
119
119
|
"cookie": "^1.0.2",
|
|
120
120
|
"esbuild": "^0.25.10",
|
|
@@ -129,16 +129,16 @@
|
|
|
129
129
|
"unocss": "66.5.3",
|
|
130
130
|
"unplugin-auto-import": "^20.2.0",
|
|
131
131
|
"unplugin-vue-components": "^29.1.0",
|
|
132
|
-
"vite": "^7.1.
|
|
132
|
+
"vite": "^7.1.10",
|
|
133
133
|
"vite-plugin-dts": "^4.5.4",
|
|
134
134
|
"vite-plugin-eslint": "^1.8.1",
|
|
135
135
|
"vite-plugin-pages": "^0.33.1",
|
|
136
136
|
"vite-ssg": "^28.2.1",
|
|
137
|
-
"vitepress": "
|
|
137
|
+
"vitepress": "2.0.0-alpha.12",
|
|
138
138
|
"vitest": "^3.2.4",
|
|
139
139
|
"vue": "^3.5.22",
|
|
140
140
|
"vue-demi": "^0.14.10",
|
|
141
|
-
"vue-router": "^4.
|
|
141
|
+
"vue-router": "^4.6.0",
|
|
142
142
|
"vue-tsc": "^3.1.1"
|
|
143
143
|
}
|
|
144
144
|
}
|