@formkit/pro 0.126.14 → 0.126.16-17d9277
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/currency/index.mjs +1 -1
- package/index.cjs +10 -10
- package/index.d.ts +19 -3
- package/index.mjs +65 -65
- package/mask/index.mjs +1 -1
- package/package.json +1 -1
- package/repeater/repeater.ts +19 -24
- package/unit/index.mjs +1 -1
- package/unit/unit.ts +3 -17
package/mask/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSectionFactory as e,createBaseSections as r,createMaskOverlaySections as a}from"../index.mjs";const l=/* #__PURE__ */e("mk"),{outer:o,wrapper:n,inner:s,label:d,prefix:
|
|
1
|
+
import{createSectionFactory as e,createBaseSections as r,createMaskOverlaySections as a}from"../index.mjs";const l=/* #__PURE__ */e("mk"),{outer:o,wrapper:n,inner:s,label:d,prefix:t,suffix:i,help:p,messages:u,message:m,icon:y}=/* #__PURE__ */r(l),{overlayPlaceholder:$,overlayLiteral:b,overlayChar:c,overlayEnum:v,overlay:h,overlayParts:f,overlayInner:x}=/* #__PURE__ */a(l),I=l("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"text",disabled:"$disabled",name:"$node.name",onBlur:"$handlers.blur",onInput:"$handlers.DOMInput",value:"$_maskValue",placeholder:"$placeholder",id:"$id","aria-describedby":"$describedBy"}})));export{l as createSection,p as help,y as icon,s as inner,d as label,I as maskInput,m as message,u as messages,o as outer,h as overlay,c as overlayChar,v as overlayEnum,x as overlayInner,b as overlayLiteral,f as overlayParts,$ as overlayPlaceholder,t as prefix,i as suffix,n as wrapper};
|
package/package.json
CHANGED
package/repeater/repeater.ts
CHANGED
|
@@ -52,30 +52,25 @@ export const repeater: FormKitProInput = {
|
|
|
52
52
|
$if(
|
|
53
53
|
'$value.length === 0',
|
|
54
54
|
$if('$slots.empty', empty()),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
down(
|
|
75
|
-
downControl(
|
|
76
|
-
controlLabel('$ui.moveDown.value'),
|
|
77
|
-
icon('moveDown')
|
|
78
|
-
)
|
|
55
|
+
items(
|
|
56
|
+
item(
|
|
57
|
+
dragHandleWrapper(dragHandle(icon('dragHandle'))),
|
|
58
|
+
content(group('$slots.default')),
|
|
59
|
+
controls(
|
|
60
|
+
up(upControl(controlLabel('$ui.moveUp.value'), icon('moveUp'))),
|
|
61
|
+
remove(
|
|
62
|
+
removeControl(
|
|
63
|
+
controlLabel('$ui.remove.value'),
|
|
64
|
+
icon('remove')
|
|
65
|
+
)
|
|
66
|
+
),
|
|
67
|
+
insert(
|
|
68
|
+
insertControl(controlLabel('$ui.add.value'), icon('add'))
|
|
69
|
+
),
|
|
70
|
+
down(
|
|
71
|
+
downControl(
|
|
72
|
+
controlLabel('$ui.moveDown.value'),
|
|
73
|
+
icon('moveDown')
|
|
79
74
|
)
|
|
80
75
|
)
|
|
81
76
|
)
|
package/unit/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSectionFactory as
|
|
1
|
+
import{createSectionFactory as e,createBaseSections as a}from"../index.mjs";const n=/* #__PURE__ */e("ut"),{outer:l,inner:t,wrapper:d,label:o,prefix:r,suffix:i,help:u,messages:s,message:$,icon:p}=/* #__PURE__ */a(n),c=n("input",(()=>({$el:"input",bind:"$attrs",attrs:{name:"$node.name",autocomplete:"$attrs.autocomplete || off",id:"$id",onChange:"$handlers.handleInput",onBlur:"$handlers.unitBlur",onInput:"$handlers.handleInput",onKeydown:"$handlers.handleKeyDown",onBeforeinput:"$handlers.handleBeforeInput",readonly:"$readonly",inputmode:"decimal",placeholder:"$placeholder || $unitParts.unit",disabled:"$disabled","data-unit":"$unit","data-currency":"$currency","data-display-locale":"$displayLocale","data-value-locale":"$valueLocale","data-decimals":"$decimals","data-trailing":"$trailingZeros","data-numeric-value":"$_numericValue","data-align":"$_valueAlignAuto"}})));export{n as createSection,u as help,p as icon,t as inner,c as input,o as label,$ as message,s as messages,l as outer,r as prefix,i as suffix,d as wrapper};
|
package/unit/unit.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FormKitProInput } from '@formkit/pro'
|
|
2
|
-
import { options as optionsCore } from '@formkit/inputs'
|
|
3
2
|
import {
|
|
4
3
|
outer,
|
|
5
4
|
inner,
|
|
@@ -9,7 +8,7 @@ import {
|
|
|
9
8
|
help,
|
|
10
9
|
messages,
|
|
11
10
|
message,
|
|
12
|
-
prefix,
|
|
11
|
+
prefix,
|
|
13
12
|
suffix,
|
|
14
13
|
icon,
|
|
15
14
|
} from '../sections/unitSections'
|
|
@@ -26,13 +25,7 @@ export const unit: FormKitProInput = {
|
|
|
26
25
|
schema: outer(
|
|
27
26
|
wrapper(
|
|
28
27
|
label('$label'),
|
|
29
|
-
inner(
|
|
30
|
-
icon('prefix'),
|
|
31
|
-
prefix(),
|
|
32
|
-
input(),
|
|
33
|
-
suffix(),
|
|
34
|
-
icon('suffix')
|
|
35
|
-
)
|
|
28
|
+
inner(icon('prefix'), prefix(), input(), suffix(), icon('suffix'))
|
|
36
29
|
),
|
|
37
30
|
help('$help'),
|
|
38
31
|
messages(message('$message.value'))
|
|
@@ -44,15 +37,8 @@ export const unit: FormKitProInput = {
|
|
|
44
37
|
|
|
45
38
|
family: 'text',
|
|
46
39
|
|
|
47
|
-
/**
|
|
48
|
-
* An array of extra props to accept for this input.
|
|
49
|
-
*/
|
|
50
|
-
props: [
|
|
51
|
-
'options'
|
|
52
|
-
],
|
|
53
|
-
|
|
54
40
|
/**
|
|
55
41
|
* Additional features that make this input work.
|
|
56
42
|
*/
|
|
57
|
-
features: [unitFeatures
|
|
43
|
+
features: [unitFeatures],
|
|
58
44
|
}
|