@sfxcode/nuxt-ui-formkit 1.1.0 → 1.2.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.
- package/README.md +4 -1
- package/dist/module.json +1 -1
- package/dist/runtime/components/FUDataEdit.d.vue.ts +8 -4
- package/dist/runtime/components/FUDataEdit.vue +1 -1
- package/dist/runtime/components/FUDataEdit.vue.d.ts +8 -4
- package/dist/runtime/components/FUDataView.d.vue.ts +8 -4
- package/dist/runtime/components/FUDataView.vue +1 -1
- package/dist/runtime/components/FUDataView.vue.d.ts +8 -4
- package/dist/runtime/components/inputs/FUCalendar.d.vue.ts +38 -0
- package/dist/runtime/components/inputs/FUCalendar.vue +49 -0
- package/dist/runtime/components/inputs/FUCalendar.vue.d.ts +38 -0
- package/dist/runtime/components/inputs/FUEditor.d.vue.ts +60 -0
- package/dist/runtime/components/inputs/FUEditor.vue +121 -0
- package/dist/runtime/components/inputs/FUEditor.vue.d.ts +60 -0
- package/dist/runtime/components/inputs/FUFileUpload.d.vue.ts +39 -0
- package/dist/runtime/components/inputs/FUFileUpload.vue +56 -0
- package/dist/runtime/components/inputs/FUFileUpload.vue.d.ts +39 -0
- package/dist/runtime/components/inputs/FUListbox.d.vue.ts +2 -0
- package/dist/runtime/components/inputs/FUListbox.vue +226 -6
- package/dist/runtime/components/inputs/FUListbox.vue.d.ts +2 -0
- package/dist/runtime/components/output/FUOutputText.vue +3 -8
- package/dist/runtime/formkit/definitions/index.d.ts +27 -24
- package/dist/runtime/formkit/definitions/index.js +4 -1
- package/dist/runtime/formkit/definitions/index.mjs +4 -1
- package/dist/runtime/formkit/definitions/input.d.ts +3 -0
- package/dist/runtime/formkit/definitions/input.js +16 -1
- package/dist/runtime/formkit/definitions/input.mjs +16 -1
- package/dist/runtime/formkit/definitions/repeater.js +8 -1
- package/dist/runtime/formkit/definitions/repeater.mjs +8 -1
- package/dist/runtime/formkit/index.d.ts +13 -1
- package/dist/runtime/utils/useFormKitInput.d.ts +1 -1
- package/package.json +9 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormKitBaseSlots, FormKitInputs } from '@formkit/inputs';
|
|
2
|
-
import type { CheckboxSlots, CheckboxGroupSlots, RadioGroupSlots, InputSlots, TextareaSlots, SelectSlots, SelectMenuSlots, InputDateSlots, InputMenuSlots, InputNumberSlots, InputTagsSlots, InputTimeSlots, ListboxSlots, SwitchSlots } from '@nuxt/ui';
|
|
2
|
+
import type { CalendarSlots, CheckboxSlots, CheckboxGroupSlots, EditorSlots, FileUploadSlots, RadioGroupSlots, InputSlots, TextareaSlots, SelectSlots, SelectMenuSlots, InputDateSlots, InputMenuSlots, InputNumberSlots, InputTagsSlots, InputTimeSlots, ListboxSlots, SwitchSlots } from '@nuxt/ui';
|
|
3
3
|
export * from './definitions/index.js';
|
|
4
4
|
export * from './plugins/index.js';
|
|
5
5
|
/**
|
|
@@ -8,6 +8,9 @@ export * from './plugins/index.js';
|
|
|
8
8
|
type MergeSlots<A, B> = A & Omit<B, keyof A>;
|
|
9
9
|
declare module '@formkit/inputs' {
|
|
10
10
|
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
|
|
11
|
+
nuxtUICalendar: {
|
|
12
|
+
type: 'nuxtUICalendar';
|
|
13
|
+
};
|
|
11
14
|
nuxtUICheckbox: {
|
|
12
15
|
type: 'nuxtUICheckbox';
|
|
13
16
|
};
|
|
@@ -17,6 +20,12 @@ declare module '@formkit/inputs' {
|
|
|
17
20
|
nuxtUIColorPicker: {
|
|
18
21
|
type: 'nuxtUIColorPicker';
|
|
19
22
|
};
|
|
23
|
+
nuxtUIEditor: {
|
|
24
|
+
type: 'nuxtUIEditor';
|
|
25
|
+
};
|
|
26
|
+
nuxtUIFileUpload: {
|
|
27
|
+
type: 'nuxtUIFileUpload';
|
|
28
|
+
};
|
|
20
29
|
nuxtUIInput: {
|
|
21
30
|
type: 'nuxtUIInput';
|
|
22
31
|
};
|
|
@@ -79,8 +88,11 @@ declare module '@formkit/inputs' {
|
|
|
79
88
|
};
|
|
80
89
|
}
|
|
81
90
|
interface FormKitInputSlots<Props extends FormKitInputs<Props>> {
|
|
91
|
+
nuxtUICalendar: MergeSlots<FormKitBaseSlots<Props>, CalendarSlots>;
|
|
82
92
|
nuxtUICheckbox: MergeSlots<FormKitBaseSlots<Props>, CheckboxSlots>;
|
|
83
93
|
nuxtUICheckboxGroup: MergeSlots<FormKitBaseSlots<Props>, CheckboxGroupSlots>;
|
|
94
|
+
nuxtUIEditor: MergeSlots<FormKitBaseSlots<Props>, EditorSlots>;
|
|
95
|
+
nuxtUIFileUpload: MergeSlots<FormKitBaseSlots<Props>, FileUploadSlots>;
|
|
84
96
|
nuxtUIInput: MergeSlots<FormKitBaseSlots<Props>, InputSlots>;
|
|
85
97
|
nuxtUIInputDate: MergeSlots<FormKitBaseSlots<Props>, InputDateSlots>;
|
|
86
98
|
nuxtUIInputMenu: MergeSlots<FormKitBaseSlots<Props>, InputMenuSlots>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
2
|
export declare function useFormKitInput(context: FormKitFrameworkContext): {
|
|
3
|
-
isInvalid: import("vue").ComputedRef<
|
|
3
|
+
isInvalid: import("vue").ComputedRef<boolean>;
|
|
4
4
|
validSlotNames: import("vue").ComputedRef<string[]>;
|
|
5
5
|
styleClass: import("vue").ComputedRef<string>;
|
|
6
6
|
color: import("vue").ComputedRef<"neutral" | "primary" | "secondary" | "success" | "info" | "warning" | "error">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-ui-formkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "FormKit integration for Nuxt UI - Seamlessly connect FormKit form handling with Nuxt UI components",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Tom",
|
|
@@ -92,24 +92,16 @@
|
|
|
92
92
|
"@formkit/nuxt": "^2.1.0",
|
|
93
93
|
"@nuxt/kit": "4.4.8",
|
|
94
94
|
"@nuxt/ui": "^4.9.0",
|
|
95
|
-
"@vue/compiler-dom": "^3.5.
|
|
96
|
-
},
|
|
97
|
-
"peerDependencies": {
|
|
98
|
-
"vue-i18n": "^11.0.0"
|
|
99
|
-
},
|
|
100
|
-
"peerDependenciesMeta": {
|
|
101
|
-
"vue-i18n": {
|
|
102
|
-
"optional": true
|
|
103
|
-
}
|
|
95
|
+
"@vue/compiler-dom": "^3.5.39"
|
|
104
96
|
},
|
|
105
97
|
"devDependencies": {
|
|
106
98
|
"@codemirror/lang-json": "^6.0.2",
|
|
107
|
-
"@codemirror/state": "^6.
|
|
99
|
+
"@codemirror/state": "^6.7.0",
|
|
108
100
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
109
|
-
"@codemirror/view": "^6.43.
|
|
101
|
+
"@codemirror/view": "^6.43.4",
|
|
110
102
|
"@iconify-json/heroicons": "^1.2.3",
|
|
111
|
-
"@iconify-json/lucide": "^1.2.
|
|
112
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
103
|
+
"@iconify-json/lucide": "^1.2.116",
|
|
104
|
+
"@iconify-json/simple-icons": "^1.2.88",
|
|
113
105
|
"@nuxt/devtools": "4.0.0-alpha.7",
|
|
114
106
|
"@nuxt/eslint-config": "^1.16.0",
|
|
115
107
|
"@nuxt/module-builder": "^1.0.2",
|
|
@@ -119,7 +111,7 @@
|
|
|
119
111
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
120
112
|
"changelogen": "^0.6.2",
|
|
121
113
|
"codemirror": "^6.0.2",
|
|
122
|
-
"eslint": "^10.
|
|
114
|
+
"eslint": "^10.6.0",
|
|
123
115
|
"jsdom": "^29.1.1",
|
|
124
116
|
"mkdist": "^2.4.1",
|
|
125
117
|
"nuxt": "4.4.8",
|
|
@@ -128,9 +120,9 @@
|
|
|
128
120
|
"unbuild": "^3.6.1",
|
|
129
121
|
"vitepress": "2.0.0-alpha.17",
|
|
130
122
|
"vitest": "^4.1.9",
|
|
131
|
-
"vue": "^3.5.
|
|
123
|
+
"vue": "^3.5.39",
|
|
132
124
|
"vue-i18n": "^11.4.6",
|
|
133
|
-
"vue-tsc": "^3.3.
|
|
125
|
+
"vue-tsc": "^3.3.6"
|
|
134
126
|
},
|
|
135
127
|
"packageManager": "pnpm@11.1.2+sha512.415a1cc25974731e75455c1468371be74c5aa5fb7621b50d4056d222451609f11412f23fd602e6169f1e060466641f798597e1be961a10688836a67b16569499"
|
|
136
128
|
}
|