@sfxcode/formkit-primevue 4.1.8 → 4.1.10
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,9 +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
|
-
|
|
81
|
-
dataSaved: (...args: any[]) => void;
|
|
82
|
-
"update:modelValue": (value: any) => void;
|
|
80
|
+
"update:modelValue": (value: any) => any;
|
|
83
81
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
82
|
id: {
|
|
85
83
|
type: StringConstructor;
|
|
@@ -149,8 +147,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
149
147
|
type: PropType<any>;
|
|
150
148
|
};
|
|
151
149
|
}>> & Readonly<{
|
|
152
|
-
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
153
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
154
150
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
155
151
|
}>, {
|
|
156
152
|
data: Record<string, any>;
|
|
@@ -77,9 +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
|
-
|
|
81
|
-
dataSaved: (...args: any[]) => void;
|
|
82
|
-
"update:modelValue": (value: any) => void;
|
|
80
|
+
"update:modelValue": (value: any) => any;
|
|
83
81
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
82
|
id: {
|
|
85
83
|
type: StringConstructor;
|
|
@@ -149,8 +147,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
149
147
|
type: PropType<any>;
|
|
150
148
|
};
|
|
151
149
|
}>> & Readonly<{
|
|
152
|
-
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
153
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
154
150
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
155
151
|
}>, {
|
|
156
152
|
data: Record<string, any>;
|
|
@@ -38,16 +38,14 @@ function addInsertButton(label = "Add Item", icon = "i-lucide-plus", styleClass
|
|
|
38
38
|
class: styleClass
|
|
39
39
|
}, render);
|
|
40
40
|
}
|
|
41
|
-
const primeRepeaterDefinition = exports.primeRepeaterDefinition = (0, _vue.createInput)(
|
|
41
|
+
const primeRepeaterDefinition = exports.primeRepeaterDefinition = (0, _vue.createInput)(addElement("div", [addList("$listName", [addInsertButton("$insertButtonLabel", "pi pi-plus", "$insertButtonClass", "$insertButtonSize", "$node.children.length == 0 || $alwaysDisplayInsertButton"), addListGroup([addElement("div", [{
|
|
42
42
|
children: "$slots.default"
|
|
43
|
-
}], {
|
|
44
|
-
class: "$groupClass"
|
|
45
|
-
}), addButtonGroup("$buttonGroupClass", "$buttonGroupItemClass", "$buttonSize", "$renderButtons")], {
|
|
43
|
+
}, addButtonGroup("$buttonGroupClass", "$buttonGroupItemClass", "$buttonSize", "$renderButtons")], {
|
|
46
44
|
class: "$internalListItemClass"
|
|
47
|
-
})])], true, "true")], {
|
|
45
|
+
})], true, {})], true, "true")], {
|
|
48
46
|
class: "$internalListClass"
|
|
49
|
-
})
|
|
50
|
-
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "
|
|
47
|
+
}, true), {
|
|
48
|
+
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton"],
|
|
51
49
|
features: [addRepeaterHandler]
|
|
52
50
|
});
|
|
53
51
|
function addRepeaterHandler(node) {
|
|
@@ -66,8 +64,8 @@ function addRepeaterHandler(node) {
|
|
|
66
64
|
node.context.insertButtonSize = node.context.insertButtonSize ? node.context.insertButtonSize : "";
|
|
67
65
|
node.context.buttonSize = node.context.buttonSize ? node.context.buttonSize : "";
|
|
68
66
|
node.context.renderMoveButtons = !node.context.hideMoveButtons;
|
|
69
|
-
node.context.internalListClass = node.context.listClass ? `items ${node.context.listClass}` : "items";
|
|
70
|
-
node.context.internalListItemClass = node.context.listItemClass ? `item ${node.context.listItemClass}` : "item";
|
|
67
|
+
node.context.internalListClass = node.context.listClass ? `formkit-items ${node.context.listClass}` : "formkit-items";
|
|
68
|
+
node.context.internalListItemClass = node.context.listItemClass ? `formkit-item ${node.context.listItemClass}` : "formkit-item";
|
|
71
69
|
node.context.insertNode = parentNode => () => {
|
|
72
70
|
if (parentNode && Array.isArray(parentNode._value)) {
|
|
73
71
|
const newArray = [{
|
|
@@ -19,23 +19,16 @@ function addInsertButton(label = "Add Item", icon = "i-lucide-plus", styleClass
|
|
|
19
19
|
], { class: styleClass }, render);
|
|
20
20
|
}
|
|
21
21
|
export const primeRepeaterDefinition = createInput(
|
|
22
|
-
[
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
addButtonGroup("$buttonGroupClass", "$buttonGroupItemClass", "$buttonSize", "$renderButtons")
|
|
31
|
-
], { class: "$internalListItemClass" })
|
|
32
|
-
]
|
|
33
|
-
)
|
|
34
|
-
], true, "true")
|
|
35
|
-
], { class: "$internalListClass" })
|
|
36
|
-
],
|
|
22
|
+
addElement("div", [
|
|
23
|
+
addList("$listName", [
|
|
24
|
+
addInsertButton("$insertButtonLabel", "pi pi-plus", "$insertButtonClass", "$insertButtonSize", "$node.children.length == 0 || $alwaysDisplayInsertButton"),
|
|
25
|
+
addListGroup([
|
|
26
|
+
addElement("div", [{ children: "$slots.default" }, addButtonGroup("$buttonGroupClass", "$buttonGroupItemClass", "$buttonSize", "$renderButtons")], { class: "$internalListItemClass" })
|
|
27
|
+
], true, {})
|
|
28
|
+
], true, "true")
|
|
29
|
+
], { class: "$internalListClass" }, true),
|
|
37
30
|
{
|
|
38
|
-
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "
|
|
31
|
+
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton"],
|
|
39
32
|
features: [addRepeaterHandler]
|
|
40
33
|
}
|
|
41
34
|
);
|
|
@@ -55,8 +48,8 @@ function addRepeaterHandler(node) {
|
|
|
55
48
|
node.context.insertButtonSize = node.context.insertButtonSize ? node.context.insertButtonSize : "";
|
|
56
49
|
node.context.buttonSize = node.context.buttonSize ? node.context.buttonSize : "";
|
|
57
50
|
node.context.renderMoveButtons = !node.context.hideMoveButtons;
|
|
58
|
-
node.context.internalListClass = node.context.listClass ? `items ${node.context.listClass}` : "items";
|
|
59
|
-
node.context.internalListItemClass = node.context.listItemClass ? `item ${node.context.listItemClass}` : "item";
|
|
51
|
+
node.context.internalListClass = node.context.listClass ? `formkit-items ${node.context.listClass}` : "formkit-items";
|
|
52
|
+
node.context.internalListItemClass = node.context.listItemClass ? `formkit-item ${node.context.listItemClass}` : "formkit-item";
|
|
60
53
|
node.context.insertNode = (parentNode) => () => {
|
|
61
54
|
if (parentNode && Array.isArray(parentNode._value)) {
|
|
62
55
|
const newArray = [{ ...newItem }, ...parentNode.value];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.10",
|
|
5
5
|
"packageManager": "pnpm@11.0.9+sha512.34ce82e6780233cf9cad8685029a8f81d2e06196c5a9bad98879f7424940c6817c4e4524fb7d38b8553ceed48b9758b8ebaf1abd3600c232c4c8cf7366086f38",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|
|
@@ -99,23 +99,23 @@
|
|
|
99
99
|
"@formkit/i18n": "^2.0.0",
|
|
100
100
|
"@formkit/inputs": "^2.0.0",
|
|
101
101
|
"@formkit/vue": "^2.0.0",
|
|
102
|
-
"@intlify/core": "^11.4.
|
|
102
|
+
"@intlify/core": "^11.4.4",
|
|
103
103
|
"primeicons": "^7.0.0",
|
|
104
104
|
"primevue": "^4.5.5",
|
|
105
|
-
"vue-i18n": "^11.4.
|
|
105
|
+
"vue-i18n": "^11.4.4"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@antfu/eslint-config": "^
|
|
108
|
+
"@antfu/eslint-config": "^9.0.0",
|
|
109
109
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
110
110
|
"@primeuix/themes": "^2.0.3",
|
|
111
|
-
"@types/node": "^25.
|
|
112
|
-
"@unocss/preset-icons": "66.
|
|
113
|
-
"@unocss/preset-uno": "66.
|
|
114
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
115
|
-
"@vitest/coverage-v8": "^4.1.
|
|
116
|
-
"@vitest/ui": "^4.1.
|
|
117
|
-
"@vue/compiler-sfc": "^3.5.
|
|
118
|
-
"@vue/server-renderer": "^3.5.
|
|
111
|
+
"@types/node": "^25.9.1",
|
|
112
|
+
"@unocss/preset-icons": "66.7.0",
|
|
113
|
+
"@unocss/preset-uno": "66.7.0",
|
|
114
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
115
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
116
|
+
"@vitest/ui": "^4.1.8",
|
|
117
|
+
"@vue/compiler-sfc": "^3.5.35",
|
|
118
|
+
"@vue/server-renderer": "^3.5.35",
|
|
119
119
|
"@vue/test-utils": "^2.4.10",
|
|
120
120
|
"@vue/tsconfig": "^0.9.1",
|
|
121
121
|
"@vueuse/core": "^14.3.0",
|
|
@@ -125,27 +125,26 @@
|
|
|
125
125
|
"consola": "^3.4.2",
|
|
126
126
|
"cookie": "^1.1.1",
|
|
127
127
|
"esbuild": "^0.28.0",
|
|
128
|
-
"eslint": "^10.
|
|
128
|
+
"eslint": "^10.4.1",
|
|
129
129
|
"happy-dom": "^20.9.0",
|
|
130
130
|
"json-editor-vue": "^0.18.1",
|
|
131
131
|
"mkdist": "^2.4.1",
|
|
132
|
-
"sass": "^1.
|
|
132
|
+
"sass": "^1.100.0",
|
|
133
133
|
"tslib": "^2.8.1",
|
|
134
134
|
"typescript": "^6.0.3",
|
|
135
135
|
"unbuild": "^3.6.1",
|
|
136
|
-
"unocss": "66.
|
|
136
|
+
"unocss": "66.7.0",
|
|
137
137
|
"unplugin-auto-import": "^21.0.0",
|
|
138
|
-
"unplugin-vue-components": "^32.
|
|
139
|
-
"vite": "^8.0.
|
|
138
|
+
"unplugin-vue-components": "^32.1.0",
|
|
139
|
+
"vite": "^8.0.16",
|
|
140
140
|
"vite-plugin-dts": "^4.5.4",
|
|
141
|
-
"vite-plugin-eslint": "^1.8.1",
|
|
142
141
|
"vite-plugin-pages": "^0.33.3",
|
|
143
142
|
"vite-ssg": "^28.3.0",
|
|
144
143
|
"vitepress": "2.0.0-alpha.16",
|
|
145
|
-
"vitest": "^4.1.
|
|
146
|
-
"vue": "^3.5.
|
|
144
|
+
"vitest": "^4.1.8",
|
|
145
|
+
"vue": "^3.5.35",
|
|
147
146
|
"vue-demi": "^0.14.10",
|
|
148
|
-
"vue-router": "^5.0
|
|
149
|
-
"vue-tsc": "^3.
|
|
147
|
+
"vue-router": "^5.1.0",
|
|
148
|
+
"vue-tsc": "^3.3.3"
|
|
150
149
|
}
|
|
151
150
|
}
|