@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.
@@ -1,12 +1,12 @@
1
1
  import type { FormKitSchemaDefinition } from '@formkit/core';
2
2
  import type { PropType } from 'vue';
3
- declare var __VLS_15: {}, __VLS_18: {}, __VLS_26: {};
3
+ declare var __VLS_16: {}, __VLS_19: {}, __VLS_28: {};
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_15) => any;
5
+ default?: (props: typeof __VLS_16) => any;
6
6
  } & {
7
- messages?: (props: typeof __VLS_18) => any;
7
+ messages?: (props: typeof __VLS_19) => any;
8
8
  } & {
9
- submit?: (props: typeof __VLS_26) => any;
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
- modelValue: {
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
- modelValue: {
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 __VLS_15: {}, __VLS_18: {}, __VLS_26: {};
3
+ declare var __VLS_16: {}, __VLS_19: {}, __VLS_28: {};
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_15) => any;
5
+ default?: (props: typeof __VLS_16) => any;
6
6
  } & {
7
- messages?: (props: typeof __VLS_18) => any;
7
+ messages?: (props: typeof __VLS_19) => any;
8
8
  } & {
9
- submit?: (props: typeof __VLS_26) => any;
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
- modelValue: {
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
- modelValue: {
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 __VLS_11: {};
3
+ declare var __VLS_13: {};
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_11) => any;
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 __VLS_11: {};
3
+ declare var __VLS_13: {};
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_11) => any;
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
  }>, {
@@ -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("primeInput")) return;
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;
@@ -1,5 +1,5 @@
1
1
  export function addPrimeAsteriskPlugin(node) {
2
- if (!node.props.type.startsWith("primeInput"))
2
+ if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput"))
3
3
  return;
4
4
  node.on("created", () => {
5
5
  if (node.props.definition?.schema) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
3
  "type": "module",
4
- "version": "3.1.0",
5
- "packageManager": "pnpm@10.18.3+sha512.bbd16e6d7286fd7e01f6b3c0b3c932cda2965c06a908328f74663f10a9aea51f1129eea615134bf992831b009eabe167ecb7008b597f40ff9bc75946aadfb08d",
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 --minor --release && npm publish --access public && git push --follow-tags",
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.1.12",
95
+ "@intlify/core": "^11.2.2",
95
96
  "primeicons": "^7.0.0",
96
- "primevue": "^4.4.1",
97
- "vue-i18n": "^11.1.12"
97
+ "primevue": "^4.5.1",
98
+ "vue-i18n": "^11.2.2"
98
99
  },
99
100
  "devDependencies": {
100
- "@antfu/eslint-config": "^5.4.1",
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": "^1.2.5",
104
- "@types/node": "^24.7.2",
105
- "@unocss/preset-icons": "66.5.3",
106
- "@unocss/preset-uno": "66.5.3",
107
- "@vitejs/plugin-vue": "^6.0.1",
108
- "@vitest/coverage-v8": "^3.2.4",
109
- "@vitest/ui": "^3.2.4",
110
- "@vue/compiler-sfc": "^3.5.22",
111
- "@vue/server-renderer": "^3.5.22",
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": "^13.9.0",
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.0.2",
120
- "esbuild": "^0.25.10",
121
- "eslint": "^9.37.0",
122
- "happy-dom": "^20.0.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.93.2",
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.3",
130
- "unplugin-auto-import": "^20.2.0",
131
- "unplugin-vue-components": "^29.1.0",
132
- "vite": "^7.1.10",
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.1",
136
- "vite-ssg": "^28.2.1",
136
+ "vite-plugin-pages": "^0.33.2",
137
+ "vite-ssg": "^28.2.2",
137
138
  "vitepress": "2.0.0-alpha.12",
138
- "vitest": "^3.2.4",
139
- "vue": "^3.5.22",
139
+ "vitest": "^4.0.15",
140
+ "vue": "^3.5.25",
140
141
  "vue-demi": "^0.14.10",
141
- "vue-router": "^4.6.0",
142
- "vue-tsc": "^3.1.1"
142
+ "vue-router": "^4.6.3",
143
+ "vue-tsc": "^3.1.5"
143
144
  }
144
145
  }