@sfxcode/formkit-primevue 3.1.1 → 3.1.4

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.
@@ -77,6 +77,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
77
77
  type: PropType<any>;
78
78
  };
79
79
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
80
+ onReset: (...args: any[]) => void;
80
81
  dataSaved: (...args: any[]) => void;
81
82
  "update:modelValue": (value: any) => void;
82
83
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -148,6 +149,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
148
149
  type: PropType<any>;
149
150
  };
150
151
  }>> & Readonly<{
152
+ onOnReset?: ((...args: any[]) => any) | undefined;
151
153
  onDataSaved?: ((...args: any[]) => any) | undefined;
152
154
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
153
155
  }>, {
@@ -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
 
@@ -77,6 +77,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
77
77
  type: PropType<any>;
78
78
  };
79
79
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
80
+ onReset: (...args: any[]) => void;
80
81
  dataSaved: (...args: any[]) => void;
81
82
  "update:modelValue": (value: any) => void;
82
83
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -148,6 +149,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
148
149
  type: PropType<any>;
149
150
  };
150
151
  }>> & Readonly<{
152
+ onOnReset?: ((...args: any[]) => any) | undefined;
151
153
  onDataSaved?: ((...args: any[]) => any) | undefined;
152
154
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
153
155
  }>, {
@@ -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_12: {};
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_11) => any;
5
+ default?: (props: typeof __VLS_12) => any;
6
6
  };
7
7
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
8
  data: {
@@ -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_12: {};
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_11) => any;
5
+ default?: (props: typeof __VLS_12) => any;
6
6
  };
7
7
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
8
  data: {
@@ -14,7 +14,11 @@ $grid-breakpoints: (
14
14
 
15
15
  @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
16
16
  $min: map.get($breakpoints, $name);
17
- @return if($min != 0, $min, null);
17
+ @if $min != 0 {
18
+ @return $min;
19
+ } @else {
20
+ @return null;
21
+ }
18
22
  }
19
23
 
20
24
  @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
3
  "type": "module",
4
- "version": "3.1.1",
5
- "packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8",
4
+ "version": "3.1.4",
5
+ "packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501",
6
6
  "author": {
7
7
  "name": "Tom",
8
8
  "email": "tom@sfxcode.com"
@@ -92,54 +92,54 @@
92
92
  "@formkit/i18n": "^1.6.9",
93
93
  "@formkit/inputs": "^1.6.9",
94
94
  "@formkit/vue": "^1.6.9",
95
- "@intlify/core": "^11.1.12",
95
+ "@intlify/core": "^11.2.2",
96
96
  "primeicons": "^7.0.0",
97
- "primevue": "^4.4.1",
98
- "vue-i18n": "^11.1.12"
97
+ "primevue": "^4.5.3",
98
+ "vue-i18n": "^11.2.2"
99
99
  },
100
100
  "devDependencies": {
101
- "@antfu/eslint-config": "^6.0.0",
101
+ "@antfu/eslint-config": "^6.6.1",
102
102
  "@formkit/core": "^1.6.9",
103
103
  "@formkit/drag-and-drop": "^0.5.3",
104
- "@primeuix/themes": "^1.2.5",
105
- "@types/node": "^24.9.1",
106
- "@unocss/preset-icons": "66.5.4",
107
- "@unocss/preset-uno": "66.5.4",
108
- "@vitejs/plugin-vue": "^6.0.1",
109
- "@vitest/coverage-v8": "^4.0.3",
110
- "@vitest/ui": "^4.0.3",
111
- "@vue/compiler-sfc": "^3.5.22",
112
- "@vue/server-renderer": "^3.5.22",
104
+ "@primeuix/themes": "^2.0.2",
105
+ "@types/node": "^24.10.3",
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",
113
113
  "@vue/test-utils": "^2.4.6",
114
114
  "@vue/tsconfig": "^0.8.1",
115
- "@vueuse/core": "^14.0.0",
115
+ "@vueuse/core": "^14.1.0",
116
116
  "@vueuse/head": "^2.0.0",
117
117
  "changelogen": "^0.6.2",
118
118
  "chart.js": "^4.5.1",
119
119
  "consola": "^3.4.2",
120
- "cookie": "^1.0.2",
121
- "esbuild": "^0.25.11",
122
- "eslint": "^9.38.0",
123
- "happy-dom": "^20.0.8",
120
+ "cookie": "^1.1.1",
121
+ "esbuild": "^0.27.1",
122
+ "eslint": "^9.39.1",
123
+ "happy-dom": "^20.0.11",
124
124
  "json-editor-vue": "^0.18.1",
125
125
  "mkdist": "^2.4.1",
126
- "sass": "^1.93.2",
126
+ "sass": "^1.96.0",
127
127
  "tslib": "^2.8.1",
128
128
  "typescript": "^5.9.3",
129
129
  "unbuild": "^3.6.1",
130
- "unocss": "66.5.4",
131
- "unplugin-auto-import": "^20.2.0",
130
+ "unocss": "66.5.10",
131
+ "unplugin-auto-import": "^20.3.0",
132
132
  "unplugin-vue-components": "^30.0.0",
133
- "vite": "^7.1.12",
133
+ "vite": "^7.2.7",
134
134
  "vite-plugin-dts": "^4.5.4",
135
135
  "vite-plugin-eslint": "^1.8.1",
136
- "vite-plugin-pages": "^0.33.1",
136
+ "vite-plugin-pages": "^0.33.2",
137
137
  "vite-ssg": "^28.2.2",
138
138
  "vitepress": "2.0.0-alpha.12",
139
- "vitest": "^4.0.3",
140
- "vue": "^3.5.22",
139
+ "vitest": "^4.0.15",
140
+ "vue": "^3.5.25",
141
141
  "vue-demi": "^0.14.10",
142
142
  "vue-router": "^4.6.3",
143
- "vue-tsc": "^3.1.1"
143
+ "vue-tsc": "^3.1.8"
144
144
  }
145
145
  }