@sfxcode/formkit-primevue 4.2.2 → 4.2.3
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.
|
@@ -52,7 +52,7 @@ const primeRepeaterDefinition = exports.primeRepeaterDefinition = (0, _vue.creat
|
|
|
52
52
|
}, addButtonGroup("$buttonGroupClass", "$buttonGroupItemClass", "$buttonSize", "$renderButtons")], {
|
|
53
53
|
id: "$getListItemId($index)",
|
|
54
54
|
class: "$getListItemClass($index)",
|
|
55
|
-
draggable: "$
|
|
55
|
+
draggable: "$draggable",
|
|
56
56
|
onDragstart: "$dragNodeStart($node.parent, $index)",
|
|
57
57
|
onDragover: "$dragNodeOver($index)",
|
|
58
58
|
onDragleave: "$dragNodeLeave($index)",
|
|
@@ -62,7 +62,7 @@ const primeRepeaterDefinition = exports.primeRepeaterDefinition = (0, _vue.creat
|
|
|
62
62
|
class: "$internalListClass",
|
|
63
63
|
id: "$internalListId"
|
|
64
64
|
}, true), {
|
|
65
|
-
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton", "minItems", "maxItems", "displayDragHandle", "dragHandleClass", "dragHandleIconClass"],
|
|
65
|
+
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton", "minItems", "maxItems", "displayDragHandle", "draggable", "dragHandleClass", "dragHandleIconClass"],
|
|
66
66
|
features: [addRepeaterHandler]
|
|
67
67
|
});
|
|
68
68
|
function addRepeaterHandler(node) {
|
|
@@ -81,6 +81,7 @@ function addRepeaterHandler(node) {
|
|
|
81
81
|
node.context.insertButtonSize = node.context.insertButtonSize ? node.context.insertButtonSize : "";
|
|
82
82
|
node.context.buttonSize = node.context.buttonSize ? node.context.buttonSize : "";
|
|
83
83
|
node.context.renderMoveButtons = !node.context.hideMoveButtons;
|
|
84
|
+
node.context.draggable = !!node.context.draggable;
|
|
84
85
|
node.context.renderDragHandle = !!node.context.displayDragHandle;
|
|
85
86
|
node.context.dragHandleIconClass = node.context.dragHandleIconClass || "pi pi-bars";
|
|
86
87
|
node.context.internalDragHandleClass = node.context.dragHandleClass ? `formkit-repeater-drag-handle ${node.context.dragHandleClass}` : "formkit-repeater-drag-handle";
|
|
@@ -38,7 +38,7 @@ export const primeRepeaterDefinition = createInput(
|
|
|
38
38
|
], {
|
|
39
39
|
id: "$getListItemId($index)",
|
|
40
40
|
class: "$getListItemClass($index)",
|
|
41
|
-
draggable: "$
|
|
41
|
+
draggable: "$draggable",
|
|
42
42
|
onDragstart: "$dragNodeStart($node.parent, $index)",
|
|
43
43
|
onDragover: "$dragNodeOver($index)",
|
|
44
44
|
onDragleave: "$dragNodeLeave($index)",
|
|
@@ -49,7 +49,7 @@ export const primeRepeaterDefinition = createInput(
|
|
|
49
49
|
], true, "true")
|
|
50
50
|
], { class: "$internalListClass", id: "$internalListId" }, true),
|
|
51
51
|
{
|
|
52
|
-
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton", "minItems", "maxItems", "displayDragHandle", "dragHandleClass", "dragHandleIconClass"],
|
|
52
|
+
props: ["insertButtonLabel", "insertButtonClass", "insertButtonSize", "alwaysDisplayInsertButton", "newItem", "listClass", "listItemClass", "hideButtonGroup", "hideMoveButtons", "buttonGroupClass", "buttonGroupItemClass", "buttonSize", "displayCloneButton", "displayAddButton", "displayDeleteButton", "minItems", "maxItems", "displayDragHandle", "draggable", "dragHandleClass", "dragHandleIconClass"],
|
|
53
53
|
features: [addRepeaterHandler]
|
|
54
54
|
}
|
|
55
55
|
);
|
|
@@ -69,6 +69,7 @@ function addRepeaterHandler(node) {
|
|
|
69
69
|
node.context.insertButtonSize = node.context.insertButtonSize ? node.context.insertButtonSize : "";
|
|
70
70
|
node.context.buttonSize = node.context.buttonSize ? node.context.buttonSize : "";
|
|
71
71
|
node.context.renderMoveButtons = !node.context.hideMoveButtons;
|
|
72
|
+
node.context.draggable = !!node.context.draggable;
|
|
72
73
|
node.context.renderDragHandle = !!node.context.displayDragHandle;
|
|
73
74
|
node.context.dragHandleIconClass = node.context.dragHandleIconClass || "pi pi-bars";
|
|
74
75
|
node.context.internalDragHandleClass = node.context.dragHandleClass ? `formkit-repeater-drag-handle ${node.context.dragHandleClass}` : "formkit-repeater-drag-handle";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.3",
|
|
5
5
|
"packageManager": "pnpm@11.0.9+sha512.34ce82e6780233cf9cad8685029a8f81d2e06196c5a9bad98879f7424940c6817c4e4524fb7d38b8553ceed48b9758b8ebaf1abd3600c232c4c8cf7366086f38",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|