@formkit/pro 0.120.0 → 0.121.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formkit/pro",
3
- "version": "0.120.0",
3
+ "version": "0.121.1",
4
4
  "description": "FormKit Pro — Form inputs and tools for high quality forms.",
5
5
  "main": "index.cjs",
6
6
  "module": "index.mjs",
@@ -44,9 +44,9 @@
44
44
  "vue"
45
45
  ],
46
46
  "dependencies": {
47
- "@formkit/core": "^1.5.2",
48
- "@formkit/drag-and-drop": "0.0.7",
49
- "@formkit/inputs": "^1.5.2"
47
+ "@formkit/core": "^1.5.3",
48
+ "@formkit/inputs": "^1.5.3",
49
+ "@formkit/drag-and-drop": "0.0.11"
50
50
  },
51
51
  "type": "module"
52
52
  }
@@ -1 +1 @@
1
- import{createSectionFactory as e,createBaseSections as t}from"../index.mjs";const n=e("rp"),{outer:o,inner:l,prefix:i,suffix:r,help:$,messages:d,message:s,icon:a}=t(n),u=n("empty",(()=>({$el:"div"}))),m=n("insertControl",(()=>({$el:"button",attrs:{disabled:"$value.length >= $max",onClick:"$fns.createInsert($index)",type:"button"}}))),f=n("addButton",(()=>({$formkit:"button",bind:"$addAttrs",if:"$addButton",disabled:"$value.length >= $max",onClick:"$fns.createAppend()",type:"button"}))),p=n("removeControl",(()=>({$el:"button",attrs:{disabled:"$value.length <= $min",onClick:"$fns.createRemover($index)",type:"button"}}))),b=n("items",(()=>({$el:"ul",meta:{autoAnimate:!0},attrs:{role:"list"}}))),C=n("item",(()=>({$el:"li",for:["item","index","$items"],attrs:{role:"listitem",key:"$item","data-index":"$index"}}))),c=n("downControl",(()=>({$el:"button",attrs:{disabled:"$index >= $value.length - 1",onClick:"$fns.createShift($index, 1)",type:"button"}}))),x=n("upControl",(()=>({$el:"button",attrs:{disabled:"$index <= 0",onClick:"$fns.createShift($index, -1)",type:"button"}}))),v=n("content","div"),g=n("fieldset",(()=>({$el:"fieldset",attrs:{id:"$id"}}))),k=n("legend",(()=>({$el:"legend",if:"$label"}))),h=n("group",(()=>({$formkit:"group",index:"$index"}))),y=n("controls",(()=>({$el:"ul",if:"$removeControl || $insertControl || $upControl || $downControl"}))),w=n("remove",(()=>({$el:"li",if:"$removeControl"}))),A=n("insert",(()=>({$el:"li",if:"$insertControl"}))),B=n("up",(()=>({$el:"li",if:"$upControl"}))),S=n("down",(()=>({$el:"li",if:"$downControl"}))),I=n("controlLabel","span");export{f as addButton,v as content,I as controlLabel,y as controls,n as createSection,S as down,c as downControl,u as empty,g as fieldset,h as group,$ as help,a as icon,l as inner,A as insert,m as insertControl,C as item,b as items,k as legend,s as message,d as messages,o as outer,i as prefix,w as remove,p as removeControl,r as suffix,B as up,x as upControl};
1
+ import{createSectionFactory as e,createBaseSections as t}from"../index.mjs";const n=e("rp"),{outer:o,inner:l,prefix:i,suffix:r,help:$,messages:d,message:a,icon:s}=t(n),u=n("empty",(()=>({$el:"div"}))),m=n("insertControl",(()=>({$el:"button",attrs:{disabled:"$value.length >= $max",onClick:"$fns.createInsert($index)",type:"button"}}))),f=n("addButton",(()=>({$formkit:"button",bind:"$addAttrs",if:"$addButton",disabled:"$value.length >= $max",onClick:"$fns.createAppend()",type:"button"}))),p=n("removeControl",(()=>({$el:"button",attrs:{disabled:"$value.length <= $min",onClick:"$fns.createRemover($index)",type:"button"}}))),b=n("items",(()=>({$el:"ul",meta:{autoAnimate:!0},attrs:{role:"list",id:'$id + "_items"'}}))),C=n("item",(()=>({$el:"li",for:["item","index","$items"],attrs:{role:"listitem",key:"$item","data-index":"$index"}}))),c=n("downControl",(()=>({$el:"button",attrs:{disabled:"$index >= $value.length - 1",onClick:"$fns.createShift($index, 1)",type:"button"}}))),x=n("upControl",(()=>({$el:"button",attrs:{disabled:"$index <= 0",onClick:"$fns.createShift($index, -1)",type:"button"}}))),g=n("content","div"),v=n("fieldset",(()=>({$el:"fieldset",attrs:{id:"$id"}}))),k=n("legend",(()=>({$el:"legend",if:"$label"}))),h=n("group",(()=>({$formkit:"group",index:"$index"}))),y=n("controls",(()=>({$el:"ul",if:"$removeControl || $insertControl || $upControl || $downControl"}))),w=n("remove",(()=>({$el:"li",if:"$removeControl"}))),A=n("insert",(()=>({$el:"li",if:"$insertControl"}))),B=n("up",(()=>({$el:"li",if:"$upControl"}))),H=n("down",(()=>({$el:"li",if:"$downControl"}))),S=n("controlLabel","span"),I=n("dragHandleWrapper",(()=>({if:"$draggable",$el:"div"}))),L=n("dragHandle",(()=>({$el:"div"})));export{f as addButton,g as content,S as controlLabel,y as controls,n as createSection,H as down,c as downControl,L as dragHandle,I as dragHandleWrapper,u as empty,v as fieldset,h as group,$ as help,s as icon,l as inner,A as insert,m as insertControl,C as item,b as items,k as legend,a as message,d as messages,o as outer,i as prefix,w as remove,p as removeControl,r as suffix,B as up,x as upControl};
@@ -26,6 +26,8 @@ import {
26
26
  messages,
27
27
  message,
28
28
  controlLabel,
29
+ dragHandleWrapper,
30
+ dragHandle,
29
31
  } from '../sections/repeaterSections'
30
32
  import repeats from '../features/repeats'
31
33
  import { localize, defaultIcon } from '@formkit/inputs'
@@ -54,6 +56,7 @@ export const repeater: FormKitProInput = {
54
56
  '$slots.default',
55
57
  items(
56
58
  item(
59
+ dragHandleWrapper(dragHandle(icon('dragHandle'))),
57
60
  content(group('$slots.default')),
58
61
  controls(
59
62
  up(
@@ -103,6 +106,7 @@ export const repeater: FormKitProInput = {
103
106
  'addLabel',
104
107
  'addButton',
105
108
  'addAttrs',
109
+ 'draggable',
106
110
  ],
107
111
  /**
108
112
  * Additional features that make this input work.
@@ -114,6 +118,7 @@ export const repeater: FormKitProInput = {
114
118
  localize('add'),
115
119
  localize('moveUp'),
116
120
  localize('moveDown'),
121
+ defaultIcon('dragHandle', 'dragHandle'),
117
122
  defaultIcon('remove', 'trash'),
118
123
  defaultIcon('add', 'add'),
119
124
  defaultIcon('moveUp', 'arrowUp'),