@sfxcode/formkit-primevue 3.1.0 → 3.1.2
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.
- package/dist/components/FormKitDataEdit.d.vue.ts +6 -18
- package/dist/components/FormKitDataEdit.vue +2 -1
- package/dist/components/FormKitDataEdit.vue.d.ts +6 -18
- package/dist/components/FormKitDataView.d.vue.ts +2 -8
- package/dist/components/FormKitDataView.vue.d.ts +2 -8
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/index.mjs +1 -1
- package/package.json +33 -32
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_16: {}, __VLS_19: {}, __VLS_28: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_16) => any;
|
|
6
6
|
} & {
|
|
7
|
-
messages?: (props: typeof
|
|
7
|
+
messages?: (props: typeof __VLS_19) => any;
|
|
8
8
|
} & {
|
|
9
|
-
submit?: (props: typeof
|
|
9
|
+
submit?: (props: typeof __VLS_28) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
12
|
id: {
|
|
@@ -73,13 +73,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
type: PropType<any>;
|
|
78
|
-
};
|
|
79
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
80
|
-
dataSaved: (...args: any[]) => void;
|
|
81
|
-
"update:modelValue": (value: any) => void;
|
|
82
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
77
|
id: {
|
|
84
78
|
type: StringConstructor;
|
|
85
79
|
default: string;
|
|
@@ -144,13 +138,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
144
138
|
type: BooleanConstructor;
|
|
145
139
|
default: boolean;
|
|
146
140
|
};
|
|
147
|
-
|
|
148
|
-
type: PropType<any>;
|
|
149
|
-
};
|
|
150
|
-
}>> & Readonly<{
|
|
151
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
152
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
153
|
-
}>, {
|
|
141
|
+
}>> & Readonly<{}>, {
|
|
154
142
|
data: Record<string, any>;
|
|
155
143
|
id: string;
|
|
156
144
|
schema: FormKitSchemaDefinition;
|
|
@@ -73,7 +73,7 @@ const props = defineProps({
|
|
|
73
73
|
default: false,
|
|
74
74
|
},
|
|
75
75
|
})
|
|
76
|
-
const emit = defineEmits(['dataSaved'])
|
|
76
|
+
const emit = defineEmits(['dataSaved', 'onReset'])
|
|
77
77
|
|
|
78
78
|
const formData = defineModel<any>()
|
|
79
79
|
|
|
@@ -89,6 +89,7 @@ function handleSave() {
|
|
|
89
89
|
|
|
90
90
|
function handleReset() {
|
|
91
91
|
reset(props.id)
|
|
92
|
+
emit('onReset')
|
|
92
93
|
}
|
|
93
94
|
</script>
|
|
94
95
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_16: {}, __VLS_19: {}, __VLS_28: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_16) => any;
|
|
6
6
|
} & {
|
|
7
|
-
messages?: (props: typeof
|
|
7
|
+
messages?: (props: typeof __VLS_19) => any;
|
|
8
8
|
} & {
|
|
9
|
-
submit?: (props: typeof
|
|
9
|
+
submit?: (props: typeof __VLS_28) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
12
|
id: {
|
|
@@ -73,13 +73,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
type: PropType<any>;
|
|
78
|
-
};
|
|
79
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
80
|
-
dataSaved: (...args: any[]) => void;
|
|
81
|
-
"update:modelValue": (value: any) => void;
|
|
82
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
77
|
id: {
|
|
84
78
|
type: StringConstructor;
|
|
85
79
|
default: string;
|
|
@@ -144,13 +138,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
144
138
|
type: BooleanConstructor;
|
|
145
139
|
default: boolean;
|
|
146
140
|
};
|
|
147
|
-
|
|
148
|
-
type: PropType<any>;
|
|
149
|
-
};
|
|
150
|
-
}>> & Readonly<{
|
|
151
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
152
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
153
|
-
}>, {
|
|
141
|
+
}>> & Readonly<{}>, {
|
|
154
142
|
data: Record<string, any>;
|
|
155
143
|
id: string;
|
|
156
144
|
schema: FormKitSchemaDefinition;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_13: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_13) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
data: {
|
|
@@ -25,9 +25,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
25
25
|
type: BooleanConstructor;
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: PropType<any>;
|
|
30
|
-
};
|
|
31
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
29
|
"update:modelValue": (value: any) => any;
|
|
33
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -51,9 +48,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
51
48
|
type: BooleanConstructor;
|
|
52
49
|
default: boolean;
|
|
53
50
|
};
|
|
54
|
-
modelValue: {
|
|
55
|
-
type: PropType<any>;
|
|
56
|
-
};
|
|
57
51
|
}>> & Readonly<{
|
|
58
52
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
59
53
|
}>, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_13: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_13) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
data: {
|
|
@@ -25,9 +25,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
25
25
|
type: BooleanConstructor;
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: PropType<any>;
|
|
30
|
-
};
|
|
31
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
29
|
"update:modelValue": (value: any) => any;
|
|
33
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -51,9 +48,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
51
48
|
type: BooleanConstructor;
|
|
52
49
|
default: boolean;
|
|
53
50
|
};
|
|
54
|
-
modelValue: {
|
|
55
|
-
type: PropType<any>;
|
|
56
|
-
};
|
|
57
51
|
}>> & Readonly<{
|
|
58
52
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
59
53
|
}>, {
|
package/dist/plugins/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.addLabelPlugin = addLabelPlugin;
|
|
7
7
|
exports.addPrimeAsteriskPlugin = addPrimeAsteriskPlugin;
|
|
8
8
|
function addPrimeAsteriskPlugin(node) {
|
|
9
|
-
if (!node.props.type.startsWith("
|
|
9
|
+
if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput")) return;
|
|
10
10
|
node.on("created", () => {
|
|
11
11
|
if (node.props.definition?.schema) {
|
|
12
12
|
const schemaFn = node.props.definition?.schema;
|
package/dist/plugins/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "3.1.2",
|
|
5
|
+
"packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a",
|
|
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 --patch --release && npm publish --access public && git push --follow-tags",
|
|
76
76
|
"lint": "eslint .",
|
|
77
77
|
"lint:fix": "eslint . --fix",
|
|
78
78
|
"prepublishOnly": "pnpm build",
|
|
@@ -88,57 +88,58 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@formkit/addons": "^1.6.9",
|
|
91
|
+
"@formkit/core": "^1.6.9",
|
|
91
92
|
"@formkit/i18n": "^1.6.9",
|
|
92
93
|
"@formkit/inputs": "^1.6.9",
|
|
93
94
|
"@formkit/vue": "^1.6.9",
|
|
94
|
-
"@intlify/core": "^11.
|
|
95
|
+
"@intlify/core": "^11.2.2",
|
|
95
96
|
"primeicons": "^7.0.0",
|
|
96
|
-
"primevue": "^4.
|
|
97
|
-
"vue-i18n": "^11.
|
|
97
|
+
"primevue": "^4.5.1",
|
|
98
|
+
"vue-i18n": "^11.2.2"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
|
-
"@antfu/eslint-config": "^
|
|
101
|
+
"@antfu/eslint-config": "^6.3.0",
|
|
101
102
|
"@formkit/core": "^1.6.9",
|
|
102
103
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
103
|
-
"@primeuix/themes": "^
|
|
104
|
-
"@types/node": "^24.
|
|
105
|
-
"@unocss/preset-icons": "66.5.
|
|
106
|
-
"@unocss/preset-uno": "66.5.
|
|
107
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
108
|
-
"@vitest/coverage-v8": "^
|
|
109
|
-
"@vitest/ui": "^
|
|
110
|
-
"@vue/compiler-sfc": "^3.5.
|
|
111
|
-
"@vue/server-renderer": "^3.5.
|
|
104
|
+
"@primeuix/themes": "^2.0.2",
|
|
105
|
+
"@types/node": "^24.10.1",
|
|
106
|
+
"@unocss/preset-icons": "66.5.10",
|
|
107
|
+
"@unocss/preset-uno": "66.5.10",
|
|
108
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
109
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
110
|
+
"@vitest/ui": "^4.0.15",
|
|
111
|
+
"@vue/compiler-sfc": "^3.5.25",
|
|
112
|
+
"@vue/server-renderer": "^3.5.25",
|
|
112
113
|
"@vue/test-utils": "^2.4.6",
|
|
113
114
|
"@vue/tsconfig": "^0.8.1",
|
|
114
|
-
"@vueuse/core": "^
|
|
115
|
+
"@vueuse/core": "^14.1.0",
|
|
115
116
|
"@vueuse/head": "^2.0.0",
|
|
116
117
|
"changelogen": "^0.6.2",
|
|
117
118
|
"chart.js": "^4.5.1",
|
|
118
119
|
"consola": "^3.4.2",
|
|
119
|
-
"cookie": "^1.
|
|
120
|
-
"esbuild": "^0.
|
|
121
|
-
"eslint": "^9.
|
|
122
|
-
"happy-dom": "^20.0.
|
|
120
|
+
"cookie": "^1.1.1",
|
|
121
|
+
"esbuild": "^0.27.1",
|
|
122
|
+
"eslint": "^9.39.1",
|
|
123
|
+
"happy-dom": "^20.0.11",
|
|
123
124
|
"json-editor-vue": "^0.18.1",
|
|
124
125
|
"mkdist": "^2.4.1",
|
|
125
|
-
"sass": "^1.
|
|
126
|
+
"sass": "^1.94.2",
|
|
126
127
|
"tslib": "^2.8.1",
|
|
127
128
|
"typescript": "^5.9.3",
|
|
128
129
|
"unbuild": "^3.6.1",
|
|
129
|
-
"unocss": "66.5.
|
|
130
|
-
"unplugin-auto-import": "^20.
|
|
131
|
-
"unplugin-vue-components": "^
|
|
132
|
-
"vite": "^7.
|
|
130
|
+
"unocss": "66.5.10",
|
|
131
|
+
"unplugin-auto-import": "^20.3.0",
|
|
132
|
+
"unplugin-vue-components": "^30.0.0",
|
|
133
|
+
"vite": "^7.2.6",
|
|
133
134
|
"vite-plugin-dts": "^4.5.4",
|
|
134
135
|
"vite-plugin-eslint": "^1.8.1",
|
|
135
|
-
"vite-plugin-pages": "^0.33.
|
|
136
|
-
"vite-ssg": "^28.2.
|
|
136
|
+
"vite-plugin-pages": "^0.33.2",
|
|
137
|
+
"vite-ssg": "^28.2.2",
|
|
137
138
|
"vitepress": "2.0.0-alpha.12",
|
|
138
|
-
"vitest": "^
|
|
139
|
-
"vue": "^3.5.
|
|
139
|
+
"vitest": "^4.0.15",
|
|
140
|
+
"vue": "^3.5.25",
|
|
140
141
|
"vue-demi": "^0.14.10",
|
|
141
|
-
"vue-router": "^4.6.
|
|
142
|
-
"vue-tsc": "^3.1.
|
|
142
|
+
"vue-router": "^4.6.3",
|
|
143
|
+
"vue-tsc": "^3.1.5"
|
|
143
144
|
}
|
|
144
145
|
}
|