@sfxcode/formkit-primevue 4.0.0 → 4.1.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.
- package/dist/composables/useFormKitRepeater.d.ts +3 -0
- package/dist/composables/useFormKitSchema.js +2 -2
- package/dist/composables/useFormKitSchema.mjs +2 -2
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.js +3 -1
- package/dist/definitions/index.mjs +3 -1
- package/dist/definitions/input.d.ts +1 -0
- package/dist/definitions/input.js +3 -1
- package/dist/definitions/input.mjs +3 -1
- package/dist/definitions/repeater.d.ts +2 -0
- package/dist/definitions/repeater.js +113 -0
- package/dist/definitions/repeater.mjs +98 -0
- package/package.json +26 -22
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated This function is deprecated. Use primeRepeater instead. It will be removed in a future version.
|
|
3
|
+
*/
|
|
1
4
|
export declare function useFormKitRepeater(): {
|
|
2
5
|
addInsertButton: (label?: string, innerClass?: string, outerClass?: string, buttonClass?: string, iconClass?: string) => {
|
|
3
6
|
$el: string;
|
|
@@ -55,7 +55,7 @@ function useFormKitSchema() {
|
|
|
55
55
|
};
|
|
56
56
|
const addElementsInOuterDiv = (children = [], innerClass = "", outerClass = "", label = "", help = "", render = true) => {
|
|
57
57
|
const inner = addElement("div", children, {
|
|
58
|
-
class:
|
|
58
|
+
class: innerClass,
|
|
59
59
|
style: "position: relative;"
|
|
60
60
|
});
|
|
61
61
|
const labelDiv = addElement("label", [label], {
|
|
@@ -68,7 +68,7 @@ function useFormKitSchema() {
|
|
|
68
68
|
class: "formkit-help"
|
|
69
69
|
});
|
|
70
70
|
return addElement("div", [wrapperDiv, helpDiv], {
|
|
71
|
-
class:
|
|
71
|
+
class: outerClass,
|
|
72
72
|
style: "position: relative;"
|
|
73
73
|
}, render);
|
|
74
74
|
};
|
|
@@ -48,11 +48,11 @@ export function useFormKitSchema() {
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
const addElementsInOuterDiv = (children = [], innerClass = "", outerClass = "", label = "", help = "", render = true) => {
|
|
51
|
-
const inner = addElement("div", children, { class:
|
|
51
|
+
const inner = addElement("div", children, { class: 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" });
|
|
54
54
|
const helpDiv = addElement("div", [help], { class: "formkit-help" });
|
|
55
|
-
return addElement("div", [wrapperDiv, helpDiv], { class:
|
|
55
|
+
return addElement("div", [wrapperDiv, helpDiv], { class: outerClass, style: "position: relative;" }, render);
|
|
56
56
|
};
|
|
57
57
|
return { addComponent, addElement, addGroup, addList, addListGroup, addElementsInOuterDiv };
|
|
58
58
|
}
|
|
@@ -21,6 +21,7 @@ export declare const primeInputs: {
|
|
|
21
21
|
primeCascadeSelect: import("@formkit/core").FormKitTypeDefinition;
|
|
22
22
|
primeTreeSelect: import("@formkit/core").FormKitTypeDefinition;
|
|
23
23
|
primeInputOtp: import("@formkit/core").FormKitTypeDefinition;
|
|
24
|
+
primeRepeater: import("@formkit/core").FormKitTypeDefinition;
|
|
24
25
|
};
|
|
25
26
|
export declare const primeOutputs: {
|
|
26
27
|
primeOutputText: import("@formkit/core").FormKitTypeDefinition;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.primeOutputs = exports.primeInputs = void 0;
|
|
7
7
|
var _input = require("./input");
|
|
8
8
|
var _output = require("./output");
|
|
9
|
+
var _repeater = require("./repeater.ts");
|
|
9
10
|
const primeInputs = exports.primeInputs = {
|
|
10
11
|
primeAutoComplete: _input.primeAutoCompleteDefinition,
|
|
11
12
|
primeInputText: _input.primeInputTextDefinition,
|
|
@@ -28,7 +29,8 @@ const primeInputs = exports.primeInputs = {
|
|
|
28
29
|
primeSelectButton: _input.primeSelectButtonDefinition,
|
|
29
30
|
primeCascadeSelect: _input.primeCascadeSelectDefinition,
|
|
30
31
|
primeTreeSelect: _input.primeTreeSelectDefinition,
|
|
31
|
-
primeInputOtp: _input.primeInputOtpDefinition
|
|
32
|
+
primeInputOtp: _input.primeInputOtpDefinition,
|
|
33
|
+
primeRepeater: _repeater.primeRepeaterDefinition
|
|
32
34
|
};
|
|
33
35
|
const primeOutputs = exports.primeOutputs = {
|
|
34
36
|
primeOutputText: _output.primeOutputTextDefinition,
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
primeOutputReferenceDefinition,
|
|
33
33
|
primeOutputTextDefinition
|
|
34
34
|
} from "./output.mjs";
|
|
35
|
+
import { primeRepeaterDefinition } from "./repeater.ts";
|
|
35
36
|
export const primeInputs = {
|
|
36
37
|
primeAutoComplete: primeAutoCompleteDefinition,
|
|
37
38
|
primeInputText: primeInputTextDefinition,
|
|
@@ -54,7 +55,8 @@ export const primeInputs = {
|
|
|
54
55
|
primeSelectButton: primeSelectButtonDefinition,
|
|
55
56
|
primeCascadeSelect: primeCascadeSelectDefinition,
|
|
56
57
|
primeTreeSelect: primeTreeSelectDefinition,
|
|
57
|
-
primeInputOtp: primeInputOtpDefinition
|
|
58
|
+
primeInputOtp: primeInputOtpDefinition,
|
|
59
|
+
primeRepeater: primeRepeaterDefinition
|
|
58
60
|
};
|
|
59
61
|
export const primeOutputs = {
|
|
60
62
|
primeOutputText: primeOutputTextDefinition,
|
|
@@ -27,6 +27,7 @@ var _PrimeTextarea = _interopRequireDefault(require("../components/PrimeTextarea
|
|
|
27
27
|
var _PrimeToggleButton = _interopRequireDefault(require("../components/PrimeToggleButton.vue"));
|
|
28
28
|
var _PrimeToggleSwitch = _interopRequireDefault(require("../components/PrimeToggleSwitch.vue"));
|
|
29
29
|
var _PrimeTreeSelect = _interopRequireDefault(require("../components/PrimeTreeSelect.vue"));
|
|
30
|
+
var _repeater = require("./repeater.ts");
|
|
30
31
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
31
32
|
const primeAutoCompleteDefinition = exports.primeAutoCompleteDefinition = (0, _vue.createInput)(_PrimeAutoComplete.default, {
|
|
32
33
|
props: ["pt", "ptOptions", "unstyled", "Select", "multiple", "typeahead", "optionLabel", "options", "size", "minLength", "placeholder", "fluid", "separators"],
|
|
@@ -138,5 +139,6 @@ const primeInputs = exports.primeInputs = {
|
|
|
138
139
|
primeSelectButton: primeSelectButtonDefinition,
|
|
139
140
|
primeCascadeSelect: primeCascadeSelectDefinition,
|
|
140
141
|
primeTreeSelect: primeTreeSelectDefinition,
|
|
141
|
-
primeInputOtp: primeInputOtpDefinition
|
|
142
|
+
primeInputOtp: primeInputOtpDefinition,
|
|
143
|
+
primeRepeater: _repeater.primeRepeaterDefinition
|
|
142
144
|
};
|
|
@@ -21,6 +21,7 @@ import PrimeTextarea from "../components/PrimeTextarea.vue";
|
|
|
21
21
|
import PrimeToggleButton from "../components/PrimeToggleButton.vue";
|
|
22
22
|
import PrimeToggleSwitch from "../components/PrimeToggleSwitch.vue";
|
|
23
23
|
import PrimeTreeSelect from "../components/PrimeTreeSelect.vue";
|
|
24
|
+
import { primeRepeaterDefinition } from "./repeater.ts";
|
|
24
25
|
export const primeAutoCompleteDefinition = createInput(PrimeAutoComplete, {
|
|
25
26
|
props: ["pt", "ptOptions", "unstyled", "Select", "multiple", "typeahead", "optionLabel", "options", "size", "minLength", "placeholder", "fluid", "separators"],
|
|
26
27
|
family: "PrimeInput"
|
|
@@ -131,5 +132,6 @@ export const primeInputs = {
|
|
|
131
132
|
primeSelectButton: primeSelectButtonDefinition,
|
|
132
133
|
primeCascadeSelect: primeCascadeSelectDefinition,
|
|
133
134
|
primeTreeSelect: primeTreeSelectDefinition,
|
|
134
|
-
primeInputOtp: primeInputOtpDefinition
|
|
135
|
+
primeInputOtp: primeInputOtpDefinition,
|
|
136
|
+
primeRepeater: primeRepeaterDefinition
|
|
135
137
|
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.primeRepeaterDefinition = void 0;
|
|
7
|
+
var _vue = require("@formkit/vue");
|
|
8
|
+
var _useFormKitSchema = require("../composables/useFormKitSchema");
|
|
9
|
+
const {
|
|
10
|
+
addList,
|
|
11
|
+
addElement,
|
|
12
|
+
addListGroup,
|
|
13
|
+
addComponent
|
|
14
|
+
} = (0, _useFormKitSchema.useFormKitSchema)();
|
|
15
|
+
function addButtonGroup(buttonGroupClass = "", buttonGroupItemClass = "", buttonSize, render = "true") {
|
|
16
|
+
const addActionButtonComponent = (onClick = "", icon = "", severity = "", render2 = "true", disabled = "false") => {
|
|
17
|
+
return addElement("div", [addComponent("Button", {
|
|
18
|
+
onClick,
|
|
19
|
+
icon,
|
|
20
|
+
severity,
|
|
21
|
+
disabled,
|
|
22
|
+
size: buttonSize
|
|
23
|
+
})], {
|
|
24
|
+
class: buttonGroupItemClass
|
|
25
|
+
}, render2);
|
|
26
|
+
};
|
|
27
|
+
return addElement("div", [addActionButtonComponent("$moveNodeUp($node.parent, $index)", "pi pi-arrow-up", "secondary", "$renderMoveButtons", "$index === 0"), addActionButtonComponent("$removeNode($node.parent, $index)", "pi pi-trash", "danger", "$displayDeleteButton", "$false"), addActionButtonComponent("$cloneNode($node.parent, $index)", "pi pi-clone", "", "$displayCloneButton", "$false"), addActionButtonComponent("$addNode($node.parent, $index)", "pi pi-plus", "", "$displayAddButton", "$false"), addActionButtonComponent("$moveNodeDown($node.parent, $index)", "pi pi-arrow-down", "secondary", "$renderMoveButtons", "$index === $node.parent.value.length -1")], {
|
|
28
|
+
class: buttonGroupClass
|
|
29
|
+
}, render);
|
|
30
|
+
}
|
|
31
|
+
function addInsertButton(label = "Add Item", icon = "i-lucide-plus", styleClass = "", buttonSize, render = "true") {
|
|
32
|
+
return addElement("div", [addComponent("Button", {
|
|
33
|
+
onClick: "$insertNode($node)",
|
|
34
|
+
label,
|
|
35
|
+
icon,
|
|
36
|
+
size: buttonSize
|
|
37
|
+
})], {
|
|
38
|
+
class: styleClass
|
|
39
|
+
}, render);
|
|
40
|
+
}
|
|
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", [addElement("div", [{
|
|
42
|
+
children: "$slots.default"
|
|
43
|
+
}], {
|
|
44
|
+
class: "$groupClass"
|
|
45
|
+
}), addButtonGroup("$buttonGroupClass", "$buttonGroupItemClass", "$buttonSize", "$renderButtons")], {
|
|
46
|
+
class: "$listItemClass"
|
|
47
|
+
})])], true, "true")], {
|
|
48
|
+
class: "$listClass"
|
|
49
|
+
})], {
|
|
50
|
+
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "groupClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton"],
|
|
51
|
+
features: [addRepeaterHandler]
|
|
52
|
+
});
|
|
53
|
+
function addRepeaterHandler(node) {
|
|
54
|
+
const swapElements = (array, index1, index2) => {
|
|
55
|
+
const newArray = [...array];
|
|
56
|
+
const temp = newArray[index1];
|
|
57
|
+
newArray[index1] = newArray[index2];
|
|
58
|
+
newArray[index2] = temp;
|
|
59
|
+
return newArray;
|
|
60
|
+
};
|
|
61
|
+
node.on("created", () => {
|
|
62
|
+
if (node.context) {
|
|
63
|
+
const newItem = node.context.newItem || {};
|
|
64
|
+
node.context.listName = node.name;
|
|
65
|
+
node.context.renderButtons = !node.context.hideButtonGroup;
|
|
66
|
+
node.context.insertButtonSize = node.context.insertButtonSize ? node.context.insertButtonSize : "";
|
|
67
|
+
node.context.buttonSize = node.context.buttonSize ? node.context.buttonSize : "";
|
|
68
|
+
node.context.renderMoveButtons = !node.context.hideMoveButtons;
|
|
69
|
+
node.context.insertNode = parentNode => () => {
|
|
70
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
71
|
+
const newArray = [{
|
|
72
|
+
...newItem
|
|
73
|
+
}, ...parentNode.value];
|
|
74
|
+
parentNode.input(newArray, false);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
node.context.removeNode = (parentNode, index) => () => {
|
|
78
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
79
|
+
parentNode.input(parentNode._value.filter((_, i) => i !== index), false);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
node.context.addNode = (parentNode, index) => () => {
|
|
83
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
84
|
+
const newArray = [...parentNode.value.slice(0, index + 1), {
|
|
85
|
+
...newItem
|
|
86
|
+
}, ...parentNode.value.slice(index + 1)];
|
|
87
|
+
parentNode.input([...newArray], false);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
node.context.cloneNode = (parentNode, index) => () => {
|
|
91
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
92
|
+
const item = parentNode.value[index];
|
|
93
|
+
const newArray = [...parentNode.value.slice(0, index + 1), {
|
|
94
|
+
...item
|
|
95
|
+
}, ...parentNode.value.slice(index + 1)];
|
|
96
|
+
parentNode.input([...newArray], false);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
node.context.moveNodeUp = (parentNode, index) => () => {
|
|
100
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
101
|
+
const array = [...parentNode.value];
|
|
102
|
+
if (index > 0) parentNode.input(swapElements(array, index - 1, index), false);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
node.context.moveNodeDown = (parentNode, index) => () => {
|
|
106
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
107
|
+
const array = [...parentNode.value];
|
|
108
|
+
if (index < array.length - 1) parentNode.input(swapElements(array, index, index + 1), false);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createInput } from "@formkit/vue";
|
|
2
|
+
import { useFormKitSchema } from "../composables/useFormKitSchema.mjs";
|
|
3
|
+
const { addList, addElement, addListGroup, addComponent } = useFormKitSchema();
|
|
4
|
+
function addButtonGroup(buttonGroupClass = "", buttonGroupItemClass = "", buttonSize, render = "true") {
|
|
5
|
+
const addActionButtonComponent = (onClick = "", icon = "", severity = "", render2 = "true", disabled = "false") => {
|
|
6
|
+
return addElement("div", [addComponent("Button", { onClick, icon, severity, disabled, size: buttonSize })], { class: buttonGroupItemClass }, render2);
|
|
7
|
+
};
|
|
8
|
+
return addElement("div", [
|
|
9
|
+
addActionButtonComponent("$moveNodeUp($node.parent, $index)", "pi pi-arrow-up", "secondary", "$renderMoveButtons", "$index === 0"),
|
|
10
|
+
addActionButtonComponent("$removeNode($node.parent, $index)", "pi pi-trash", "danger", "$displayDeleteButton", "$false"),
|
|
11
|
+
addActionButtonComponent("$cloneNode($node.parent, $index)", "pi pi-clone", "", "$displayCloneButton", "$false"),
|
|
12
|
+
addActionButtonComponent("$addNode($node.parent, $index)", "pi pi-plus", "", "$displayAddButton", "$false"),
|
|
13
|
+
addActionButtonComponent("$moveNodeDown($node.parent, $index)", "pi pi-arrow-down", "secondary", "$renderMoveButtons", "$index === $node.parent.value.length -1")
|
|
14
|
+
], { class: buttonGroupClass }, render);
|
|
15
|
+
}
|
|
16
|
+
function addInsertButton(label = "Add Item", icon = "i-lucide-plus", styleClass = "", buttonSize, render = "true") {
|
|
17
|
+
return addElement("div", [
|
|
18
|
+
addComponent("Button", { onClick: "$insertNode($node)", label, icon, size: buttonSize })
|
|
19
|
+
], { class: styleClass }, render);
|
|
20
|
+
}
|
|
21
|
+
export const primeRepeaterDefinition = createInput(
|
|
22
|
+
[
|
|
23
|
+
addElement("div", [
|
|
24
|
+
addList("$listName", [
|
|
25
|
+
addInsertButton("$insertButtonLabel", "pi pi-plus", "$insertButtonClass", "$insertButtonSize", "$node.children.length == 0 || $alwaysDisplayInsertButton"),
|
|
26
|
+
addListGroup(
|
|
27
|
+
[
|
|
28
|
+
addElement("div", [
|
|
29
|
+
addElement("div", [{ children: "$slots.default" }], { class: "$groupClass" }),
|
|
30
|
+
addButtonGroup("$buttonGroupClass", "$buttonGroupItemClass", "$buttonSize", "$renderButtons")
|
|
31
|
+
], { class: "$listItemClass" })
|
|
32
|
+
]
|
|
33
|
+
)
|
|
34
|
+
], true, "true")
|
|
35
|
+
], { class: "$listClass" })
|
|
36
|
+
],
|
|
37
|
+
{
|
|
38
|
+
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "groupClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton"],
|
|
39
|
+
features: [addRepeaterHandler]
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
function addRepeaterHandler(node) {
|
|
43
|
+
const swapElements = (array, index1, index2) => {
|
|
44
|
+
const newArray = [...array];
|
|
45
|
+
const temp = newArray[index1];
|
|
46
|
+
newArray[index1] = newArray[index2];
|
|
47
|
+
newArray[index2] = temp;
|
|
48
|
+
return newArray;
|
|
49
|
+
};
|
|
50
|
+
node.on("created", () => {
|
|
51
|
+
if (node.context) {
|
|
52
|
+
const newItem = node.context.newItem || {};
|
|
53
|
+
node.context.listName = node.name;
|
|
54
|
+
node.context.renderButtons = !node.context.hideButtonGroup;
|
|
55
|
+
node.context.insertButtonSize = node.context.insertButtonSize ? node.context.insertButtonSize : "";
|
|
56
|
+
node.context.buttonSize = node.context.buttonSize ? node.context.buttonSize : "";
|
|
57
|
+
node.context.renderMoveButtons = !node.context.hideMoveButtons;
|
|
58
|
+
node.context.insertNode = (parentNode) => () => {
|
|
59
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
60
|
+
const newArray = [{ ...newItem }, ...parentNode.value];
|
|
61
|
+
parentNode.input(newArray, false);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
node.context.removeNode = (parentNode, index) => () => {
|
|
65
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
66
|
+
parentNode.input(parentNode._value.filter((_, i) => i !== index), false);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
node.context.addNode = (parentNode, index) => () => {
|
|
70
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
71
|
+
const newArray = [...parentNode.value.slice(0, index + 1), { ...newItem }, ...parentNode.value.slice(index + 1)];
|
|
72
|
+
parentNode.input([...newArray], false);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
node.context.cloneNode = (parentNode, index) => () => {
|
|
76
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
77
|
+
const item = parentNode.value[index];
|
|
78
|
+
const newArray = [...parentNode.value.slice(0, index + 1), { ...item }, ...parentNode.value.slice(index + 1)];
|
|
79
|
+
parentNode.input([...newArray], false);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
node.context.moveNodeUp = (parentNode, index) => () => {
|
|
83
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
84
|
+
const array = [...parentNode.value];
|
|
85
|
+
if (index > 0)
|
|
86
|
+
parentNode.input(swapElements(array, index - 1, index), false);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
node.context.moveNodeDown = (parentNode, index) => () => {
|
|
90
|
+
if (parentNode && Array.isArray(parentNode._value)) {
|
|
91
|
+
const array = [...parentNode.value];
|
|
92
|
+
if (index < array.length - 1)
|
|
93
|
+
parentNode.input(swapElements(array, index, index + 1), false);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "4.1.1",
|
|
5
|
+
"packageManager": "pnpm@11.0.9+sha512.34ce82e6780233cf9cad8685029a8f81d2e06196c5a9bad98879f7424940c6817c4e4524fb7d38b8553ceed48b9758b8ebaf1abd3600c232c4c8cf7366086f38",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|
|
8
8
|
"email": "tom@sfxcode.com"
|
|
@@ -70,12 +70,16 @@
|
|
|
70
70
|
"components.d.ts",
|
|
71
71
|
"dist"
|
|
72
72
|
],
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=24.0.0",
|
|
75
|
+
"pnpm": ">=11.0.0"
|
|
76
|
+
},
|
|
73
77
|
"scripts": {
|
|
74
78
|
"build": "vue-tsc --build --force && unbuild",
|
|
75
79
|
"dev": "vite serve dev",
|
|
76
80
|
"dev:build": "vite build dev",
|
|
77
81
|
"dev:preview": "vite preview dev",
|
|
78
|
-
"release": "npm run lint && npm run build && changelogen --
|
|
82
|
+
"release": "npm run lint && npm run build && changelogen --patch --release && npm publish --access public && git push --follow-tags",
|
|
79
83
|
"lint": "eslint .",
|
|
80
84
|
"lint:fix": "eslint . --fix",
|
|
81
85
|
"prepublishOnly": "pnpm build",
|
|
@@ -95,53 +99,53 @@
|
|
|
95
99
|
"@formkit/i18n": "^2.0.0",
|
|
96
100
|
"@formkit/inputs": "^2.0.0",
|
|
97
101
|
"@formkit/vue": "^2.0.0",
|
|
98
|
-
"@intlify/core": "^11.
|
|
102
|
+
"@intlify/core": "^11.4.2",
|
|
99
103
|
"primeicons": "^7.0.0",
|
|
100
104
|
"primevue": "^4.5.5",
|
|
101
|
-
"vue-i18n": "^11.
|
|
105
|
+
"vue-i18n": "^11.4.2"
|
|
102
106
|
},
|
|
103
107
|
"devDependencies": {
|
|
104
|
-
"@antfu/eslint-config": "^8.
|
|
108
|
+
"@antfu/eslint-config": "^8.2.0",
|
|
105
109
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
106
110
|
"@primeuix/themes": "^2.0.3",
|
|
107
|
-
"@types/node": "^25.
|
|
111
|
+
"@types/node": "^25.6.2",
|
|
108
112
|
"@unocss/preset-icons": "66.6.8",
|
|
109
113
|
"@unocss/preset-uno": "66.6.8",
|
|
110
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
111
|
-
"@vitest/coverage-v8": "^4.1.
|
|
112
|
-
"@vitest/ui": "^4.1.
|
|
113
|
-
"@vue/compiler-sfc": "^3.5.
|
|
114
|
-
"@vue/server-renderer": "^3.5.
|
|
115
|
-
"@vue/test-utils": "^2.4.
|
|
114
|
+
"@vitejs/plugin-vue": "^6.0.6",
|
|
115
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
116
|
+
"@vitest/ui": "^4.1.5",
|
|
117
|
+
"@vue/compiler-sfc": "^3.5.34",
|
|
118
|
+
"@vue/server-renderer": "^3.5.34",
|
|
119
|
+
"@vue/test-utils": "^2.4.10",
|
|
116
120
|
"@vue/tsconfig": "^0.9.1",
|
|
117
|
-
"@vueuse/core": "^14.
|
|
121
|
+
"@vueuse/core": "^14.3.0",
|
|
118
122
|
"@vueuse/head": "^2.0.0",
|
|
119
123
|
"changelogen": "^0.6.2",
|
|
120
124
|
"chart.js": "^4.5.1",
|
|
121
125
|
"consola": "^3.4.2",
|
|
122
126
|
"cookie": "^1.1.1",
|
|
123
127
|
"esbuild": "^0.28.0",
|
|
124
|
-
"eslint": "^10.
|
|
125
|
-
"happy-dom": "^20.
|
|
128
|
+
"eslint": "^10.3.0",
|
|
129
|
+
"happy-dom": "^20.9.0",
|
|
126
130
|
"json-editor-vue": "^0.18.1",
|
|
127
131
|
"mkdist": "^2.4.1",
|
|
128
132
|
"sass": "^1.99.0",
|
|
129
133
|
"tslib": "^2.8.1",
|
|
130
|
-
"typescript": "^6.0.
|
|
134
|
+
"typescript": "^6.0.3",
|
|
131
135
|
"unbuild": "^3.6.1",
|
|
132
136
|
"unocss": "66.6.8",
|
|
133
137
|
"unplugin-auto-import": "^21.0.0",
|
|
134
138
|
"unplugin-vue-components": "^32.0.0",
|
|
135
|
-
"vite": "^8.0.
|
|
139
|
+
"vite": "^8.0.11",
|
|
136
140
|
"vite-plugin-dts": "^4.5.4",
|
|
137
141
|
"vite-plugin-eslint": "^1.8.1",
|
|
138
142
|
"vite-plugin-pages": "^0.33.3",
|
|
139
143
|
"vite-ssg": "^28.3.0",
|
|
140
144
|
"vitepress": "2.0.0-alpha.16",
|
|
141
|
-
"vitest": "^4.1.
|
|
142
|
-
"vue": "^3.5.
|
|
145
|
+
"vitest": "^4.1.5",
|
|
146
|
+
"vue": "^3.5.34",
|
|
143
147
|
"vue-demi": "^0.14.10",
|
|
144
|
-
"vue-router": "^5.0.
|
|
145
|
-
"vue-tsc": "^3.2.
|
|
148
|
+
"vue-router": "^5.0.6",
|
|
149
|
+
"vue-tsc": "^3.2.8"
|
|
146
150
|
}
|
|
147
151
|
}
|