@sfxcode/formkit-primevue 2.5.12 → 2.6.1
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,25 +1,25 @@
|
|
|
1
1
|
export declare function useFormKitSchema(): {
|
|
2
|
-
addComponent: (component?: string, props?: object, render?: string, formKitAttrs?: object) => object;
|
|
3
|
-
addElement: (element?: string, children?: any[] | string, attrs?: object, render?: string, formKitAttrs?: object) => {
|
|
2
|
+
addComponent: (component?: string, props?: object, render?: string | boolean, formKitAttrs?: object) => object;
|
|
3
|
+
addElement: (element?: string, children?: any[] | string, attrs?: object, render?: string | boolean, formKitAttrs?: object) => {
|
|
4
4
|
$el: string;
|
|
5
5
|
if: string;
|
|
6
6
|
attrs: object;
|
|
7
7
|
children: string | any[];
|
|
8
8
|
};
|
|
9
|
-
addGroup: (name: string, children?: object[], render?: string, formKitAttrs?: object) => {
|
|
9
|
+
addGroup: (name: string, children?: object[], render?: string | boolean, formKitAttrs?: object) => {
|
|
10
10
|
$formkit: string;
|
|
11
11
|
if: string;
|
|
12
12
|
name: string;
|
|
13
13
|
children: object[];
|
|
14
14
|
};
|
|
15
|
-
addList: (name: string, children
|
|
15
|
+
addList: (name: string, children?: object[], dynamic?: boolean, render?: string | boolean, formKitAttrs?: object) => {
|
|
16
16
|
$formkit: string;
|
|
17
17
|
if: string;
|
|
18
18
|
name: string;
|
|
19
19
|
dynamic: boolean;
|
|
20
20
|
children: object[];
|
|
21
21
|
};
|
|
22
|
-
addListGroup: (children?: object[], render?: string, formKitAttrs?: object) => {
|
|
22
|
+
addListGroup: (children?: object[], render?: string | boolean, formKitAttrs?: object) => {
|
|
23
23
|
$formkit: string;
|
|
24
24
|
if: string;
|
|
25
25
|
for: string[];
|
|
@@ -27,7 +27,7 @@ export declare function useFormKitSchema(): {
|
|
|
27
27
|
index: string;
|
|
28
28
|
children: object[];
|
|
29
29
|
};
|
|
30
|
-
addElementsInOuterDiv: (children?: object[], innerClass?: string, outerClass?: string, label?: string, help?: string, render?: string) => {
|
|
30
|
+
addElementsInOuterDiv: (children?: object[], innerClass?: string, outerClass?: string, label?: string, help?: string, render?: string | boolean) => {
|
|
31
31
|
$el: string;
|
|
32
32
|
if: string;
|
|
33
33
|
attrs: object;
|
|
@@ -5,46 +5,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useFormKitSchema = useFormKitSchema;
|
|
7
7
|
function useFormKitSchema() {
|
|
8
|
-
const addComponent = (component = "Button", props = {}, render =
|
|
8
|
+
const addComponent = (component = "Button", props = {}, render = true, formKitAttrs = {}) => {
|
|
9
9
|
return {
|
|
10
10
|
$cmp: component,
|
|
11
|
-
if: render,
|
|
11
|
+
if: render.toString(),
|
|
12
12
|
props,
|
|
13
13
|
...formKitAttrs
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
const addElement = (element = "div", children = [], attrs = {}, render =
|
|
16
|
+
const addElement = (element = "div", children = [], attrs = {}, render = true, formKitAttrs = {}) => {
|
|
17
17
|
return {
|
|
18
18
|
$el: element,
|
|
19
|
-
if: render,
|
|
19
|
+
if: render.toString(),
|
|
20
20
|
attrs,
|
|
21
21
|
children,
|
|
22
22
|
...formKitAttrs
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
const addGroup = (name, children = [], render =
|
|
25
|
+
const addGroup = (name, children = [], render = true, formKitAttrs = {}) => {
|
|
26
26
|
return {
|
|
27
27
|
$formkit: "group",
|
|
28
|
-
if: render,
|
|
28
|
+
if: render.toString(),
|
|
29
29
|
name,
|
|
30
30
|
children,
|
|
31
31
|
...formKitAttrs
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
const addList = (name, children, dynamic = true, render =
|
|
34
|
+
const addList = (name, children = [], dynamic = true, render = true, formKitAttrs = {}) => {
|
|
35
35
|
return {
|
|
36
36
|
$formkit: "list",
|
|
37
|
-
if: render,
|
|
37
|
+
if: render.toString(),
|
|
38
38
|
name,
|
|
39
39
|
dynamic,
|
|
40
40
|
children,
|
|
41
41
|
...formKitAttrs
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
const addListGroup = (children = [], render =
|
|
44
|
+
const addListGroup = (children = [], render = true, formKitAttrs = {}) => {
|
|
45
45
|
return {
|
|
46
46
|
$formkit: "group",
|
|
47
|
-
if: render,
|
|
47
|
+
if: render.toString(),
|
|
48
48
|
for: ["item", "index", "$items"],
|
|
49
49
|
// 👈 $items is in the slot’s scope
|
|
50
50
|
key: "$item",
|
|
@@ -53,7 +53,7 @@ function useFormKitSchema() {
|
|
|
53
53
|
...formKitAttrs
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
const addElementsInOuterDiv = (children = [], innerClass = "", outerClass = "", label = "", help = "", render =
|
|
56
|
+
const addElementsInOuterDiv = (children = [], innerClass = "", outerClass = "", label = "", help = "", render = true) => {
|
|
57
57
|
const inner = addElement("div", children, {
|
|
58
58
|
class: `formkit-inner ${innerClass}`,
|
|
59
59
|
style: "position: relative;"
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
export function useFormKitSchema() {
|
|
2
|
-
const addComponent = (component = "Button", props = {}, render =
|
|
2
|
+
const addComponent = (component = "Button", props = {}, render = true, formKitAttrs = {}) => {
|
|
3
3
|
return {
|
|
4
4
|
$cmp: component,
|
|
5
|
-
if: render,
|
|
5
|
+
if: render.toString(),
|
|
6
6
|
props,
|
|
7
7
|
...formKitAttrs
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
const addElement = (element = "div", children = [], attrs = {}, render =
|
|
10
|
+
const addElement = (element = "div", children = [], attrs = {}, render = true, formKitAttrs = {}) => {
|
|
11
11
|
return {
|
|
12
12
|
$el: element,
|
|
13
|
-
if: render,
|
|
13
|
+
if: render.toString(),
|
|
14
14
|
attrs,
|
|
15
15
|
children,
|
|
16
16
|
...formKitAttrs
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
const addGroup = (name, children = [], render =
|
|
19
|
+
const addGroup = (name, children = [], render = true, formKitAttrs = {}) => {
|
|
20
20
|
return {
|
|
21
21
|
$formkit: "group",
|
|
22
|
-
if: render,
|
|
22
|
+
if: render.toString(),
|
|
23
23
|
name,
|
|
24
24
|
children,
|
|
25
25
|
...formKitAttrs
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
const addList = (name, children, dynamic = true, render =
|
|
28
|
+
const addList = (name, children = [], dynamic = true, render = true, formKitAttrs = {}) => {
|
|
29
29
|
return {
|
|
30
30
|
$formkit: "list",
|
|
31
|
-
if: render,
|
|
31
|
+
if: render.toString(),
|
|
32
32
|
name,
|
|
33
33
|
dynamic,
|
|
34
34
|
children,
|
|
35
35
|
...formKitAttrs
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
const addListGroup = (children = [], render =
|
|
38
|
+
const addListGroup = (children = [], render = true, formKitAttrs = {}) => {
|
|
39
39
|
return {
|
|
40
40
|
$formkit: "group",
|
|
41
|
-
if: render,
|
|
41
|
+
if: render.toString(),
|
|
42
42
|
for: ["item", "index", "$items"],
|
|
43
43
|
// 👈 $items is in the slot’s scope
|
|
44
44
|
key: "$item",
|
|
@@ -47,7 +47,7 @@ export function useFormKitSchema() {
|
|
|
47
47
|
...formKitAttrs
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
const addElementsInOuterDiv = (children = [], innerClass = "", outerClass = "", label = "", help = "", render =
|
|
50
|
+
const addElementsInOuterDiv = (children = [], innerClass = "", outerClass = "", label = "", help = "", render = true) => {
|
|
51
51
|
const inner = addElement("div", children, { class: `formkit-inner ${innerClass}`, style: "position: relative;" });
|
|
52
52
|
const labelDiv = addElement("label", [label], { class: "formkit-label" });
|
|
53
53
|
const wrapperDiv = addElement("div", [labelDiv, inner], { class: "formkit-wrapper" });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.6.1",
|
|
5
5
|
"packageManager": "pnpm@9.12.1+sha256.91452fdfa46234ae447d46d5c4fc4e7e0a7058f90495c4b6f77f8beebbb154e3",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|
|
@@ -93,57 +93,56 @@
|
|
|
93
93
|
"@formkit/vue": "^1.6.7",
|
|
94
94
|
"@intlify/core": "9.14.1",
|
|
95
95
|
"primeicons": "^7.0.0",
|
|
96
|
-
"primevue": "^4.
|
|
96
|
+
"primevue": "^4.2.0",
|
|
97
97
|
"quill": "^2.0.2",
|
|
98
|
-
"uuid": "^
|
|
98
|
+
"uuid": "^11.0.2",
|
|
99
99
|
"vue-i18n": "9.14.1"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@antfu/eslint-config": "^3.8.0",
|
|
103
103
|
"@formkit/core": "^1.6.7",
|
|
104
|
-
"@primevue/themes": "^4.
|
|
105
|
-
"@types/node": "^22.8.
|
|
104
|
+
"@primevue/themes": "^4.2.0",
|
|
105
|
+
"@types/node": "^22.8.6",
|
|
106
106
|
"@types/uuid": "^10.0.0",
|
|
107
107
|
"@unocss/preset-icons": "^0.63.6",
|
|
108
108
|
"@unocss/preset-uno": "^0.63.6",
|
|
109
109
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
110
|
-
"@vitest/coverage-v8": "^2.1.
|
|
111
|
-
"@vitest/ui": "^2.1.
|
|
110
|
+
"@vitest/coverage-v8": "^2.1.4",
|
|
111
|
+
"@vitest/ui": "^2.1.4",
|
|
112
112
|
"@vue/compiler-sfc": "^3.5.12",
|
|
113
113
|
"@vue/server-renderer": "^3.5.12",
|
|
114
114
|
"@vue/test-utils": "^2.4.6",
|
|
115
115
|
"@vue/tsconfig": "^0.5.1",
|
|
116
116
|
"@vuedx/typecheck": "~0.7.6",
|
|
117
117
|
"@vuedx/typescript-plugin-vue": "~0.7.6",
|
|
118
|
-
"@vueuse/core": "^11.
|
|
118
|
+
"@vueuse/core": "^11.2.0",
|
|
119
119
|
"@vueuse/head": "^2.0.0",
|
|
120
120
|
"changelogen": "^0.5.7",
|
|
121
|
-
"chart.js": "^4.4.
|
|
121
|
+
"chart.js": "^4.4.6",
|
|
122
122
|
"consola": "^3.2.3",
|
|
123
123
|
"cookie": "^1.0.1",
|
|
124
124
|
"eslint": "^9.13.0",
|
|
125
125
|
"happy-dom": "^15.7.4",
|
|
126
|
-
"json-editor-vue": "^0.17.
|
|
126
|
+
"json-editor-vue": "^0.17.3",
|
|
127
127
|
"mkdist": "^1.6.0",
|
|
128
128
|
"quill": "^2.0.2",
|
|
129
129
|
"sass": "1.78.0",
|
|
130
|
-
"tslib": "^2.8.
|
|
130
|
+
"tslib": "^2.8.1",
|
|
131
131
|
"typescript": "^5.6.3",
|
|
132
132
|
"unbuild": "2.0.0",
|
|
133
133
|
"unocss": "^0.63.6",
|
|
134
134
|
"unplugin-auto-import": "^0.18.3",
|
|
135
135
|
"unplugin-vue-components": "^0.27.4",
|
|
136
|
-
"vanilla-jsoneditor": "^1.1.2",
|
|
137
136
|
"vite": "^5.4.10",
|
|
138
137
|
"vite-plugin-dts": "^4.3.0",
|
|
139
138
|
"vite-plugin-eslint": "^1.8.1",
|
|
140
139
|
"vite-plugin-pages": "^0.32.3",
|
|
141
|
-
"vite-ssg": "^0.
|
|
142
|
-
"vitepress": "^1.4.
|
|
143
|
-
"vitest": "^2.1.
|
|
140
|
+
"vite-ssg": "^0.24.1",
|
|
141
|
+
"vitepress": "^1.4.3",
|
|
142
|
+
"vitest": "^2.1.4",
|
|
144
143
|
"vue": "^3.5.12",
|
|
145
144
|
"vue-demi": "^0.14.10",
|
|
146
145
|
"vue-router": "^4.4.5",
|
|
147
|
-
"vue-tsc": "^2.1.
|
|
146
|
+
"vue-tsc": "^2.1.10"
|
|
148
147
|
}
|
|
149
148
|
}
|