@formkit/pro 0.122.6-9cf4a5d → 0.122.7-5d2a1fd
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/autocomplete/autocomplete.ts +10 -8
- package/colorpicker/colorpicker.ts +3 -5
- package/datepicker/datepicker.ts +3 -5
- package/dropdown/dropdown.ts +10 -8
- package/genesis.css +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +45 -134
- package/index.mjs +1 -1
- package/mask/index.mjs +1 -1
- package/mask/mask.ts +3 -4
- package/package.json +49 -1
- package/rating/rating.ts +4 -3
- package/repeater/repeater.ts +3 -4
- package/slider/index.mjs +1 -1
- package/slider/slider.ts +3 -4
- package/taglist/taglist.ts +10 -8
- package/toggle/toggle.ts +3 -3
- package/togglebuttons/togglebuttons.ts +15 -19
- package/transferList/transferList.ts +3 -4
- package/unit/index.mjs +0 -1
- package/unit/unit.ts +0 -58
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FormKitExtendableSchemaRoot } from '@formkit/core';
|
|
|
4
4
|
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
5
5
|
import type { FormKitInputs } from '@formkit/inputs';
|
|
6
6
|
import type { FormKitMessage } from '@formkit/core';
|
|
7
|
-
import
|
|
7
|
+
import { FormKitNode } from '@formkit/core';
|
|
8
8
|
import type { FormKitOptionsItem } from '@formkit/inputs';
|
|
9
9
|
import type { FormKitOptionsProp } from '@formkit/inputs';
|
|
10
10
|
import type { FormKitOptionsPropWithGroups } from '@formkit/inputs';
|
|
@@ -31,6 +31,10 @@ export declare function $if(condition: string, then: FormKitProExtendableSection
|
|
|
31
31
|
*/
|
|
32
32
|
export declare const autocomplete: FormKitProInput;
|
|
33
33
|
|
|
34
|
+
export declare function autocompleteFeatures(node: FormKitNode): void;
|
|
35
|
+
|
|
36
|
+
export declare function autocompleteProps(node: FormKitNode): void;
|
|
37
|
+
|
|
34
38
|
/**
|
|
35
39
|
* Data available to autocomplete slots.
|
|
36
40
|
*
|
|
@@ -159,6 +163,8 @@ declare interface CharPart {
|
|
|
159
163
|
pattern: RegExp;
|
|
160
164
|
}
|
|
161
165
|
|
|
166
|
+
export declare function colorFeature(node: FormKitNode): void;
|
|
167
|
+
|
|
162
168
|
/**
|
|
163
169
|
* Input definition for a colorpicker input.
|
|
164
170
|
* @public
|
|
@@ -201,39 +207,6 @@ export declare function createProPlugin(apiKey: string, inputs?: Record<string,
|
|
|
201
207
|
*/
|
|
202
208
|
export declare function createSectionFactory(inputCode: string): SectionFactory;
|
|
203
209
|
|
|
204
|
-
/**
|
|
205
|
-
* Input definition for a toggle group input.
|
|
206
|
-
* @public
|
|
207
|
-
*/
|
|
208
|
-
export declare const currency: FormKitProInput;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Slot data for currency
|
|
212
|
-
*/
|
|
213
|
-
export declare interface CurrencySlotData<Props extends FormKitInputs<Props>> {
|
|
214
|
-
type: 'currency';
|
|
215
|
-
value?: string | number;
|
|
216
|
-
label?: string;
|
|
217
|
-
disabled?: Bool;
|
|
218
|
-
currency?: string;
|
|
219
|
-
decimals?: Bool | number;
|
|
220
|
-
minDecimals?: Bool | number;
|
|
221
|
-
min?: number;
|
|
222
|
-
max?: number;
|
|
223
|
-
step?: number;
|
|
224
|
-
displayLocale?: string;
|
|
225
|
-
valueFormat?: string;
|
|
226
|
-
handlers: FormKitFrameworkContext['handlers'] & {
|
|
227
|
-
init(): void;
|
|
228
|
-
handleInput: (e: InputEvent) => void;
|
|
229
|
-
handleFocus: (e: InputEvent) => void;
|
|
230
|
-
handleBlur(): void;
|
|
231
|
-
handleBeforeInput: (e: InputEvent) => void;
|
|
232
|
-
handleClick(e: MouseEvent): void;
|
|
233
|
-
handleKeyDown: (e: InputEvent) => void;
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
|
|
237
210
|
/**
|
|
238
211
|
* Input definition for a datepicker input.
|
|
239
212
|
* @public
|
|
@@ -291,6 +264,12 @@ export declare type DatePickerSlotData = {
|
|
|
291
264
|
*/
|
|
292
265
|
export declare const dropdown: FormKitProInput;
|
|
293
266
|
|
|
267
|
+
export declare function dropdownFamily(typeProps: (node: FormKitNode) => void, inputFeatures: (node: FormKitNode) => void, typeFeatures: (node: FormKitNode) => void, node: FormKitNode): void;
|
|
268
|
+
|
|
269
|
+
export declare function dropdownFeatures(node: FormKitNode): void;
|
|
270
|
+
|
|
271
|
+
export declare function dropdownProps(node: FormKitNode): void;
|
|
272
|
+
|
|
294
273
|
/**
|
|
295
274
|
* Slot data for dropdown types.
|
|
296
275
|
*
|
|
@@ -492,23 +471,6 @@ export declare interface FormKitColorpickerSlots<Props extends FormKitInputs<Pro
|
|
|
492
471
|
}>;
|
|
493
472
|
}
|
|
494
473
|
|
|
495
|
-
/**
|
|
496
|
-
* Currency slots.
|
|
497
|
-
*
|
|
498
|
-
* @public
|
|
499
|
-
*/
|
|
500
|
-
export declare interface FormKitCurrencySlots<Props extends FormKitInputs<Props>> {
|
|
501
|
-
wrapper: FormKitSlotData<Props, CurrencySlotData<Props>>;
|
|
502
|
-
input: FormKitSlotData<Props, CurrencySlotData<Props>>;
|
|
503
|
-
prefix: FormKitSlotData<Props, CurrencySlotData<Props>>;
|
|
504
|
-
suffix: FormKitSlotData<Props, CurrencySlotData<Props>>;
|
|
505
|
-
help: FormKitSlotData<Props, CurrencySlotData<Props>>;
|
|
506
|
-
messages: FormKitSlotData<Props, CurrencySlotData<Props>>;
|
|
507
|
-
message: FormKitSlotData<Props, CurrencySlotData<Props> & {
|
|
508
|
-
message: FormKitMessage;
|
|
509
|
-
}>;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
474
|
/**
|
|
513
475
|
* Slot information that pertains specifically to the datepicker input.
|
|
514
476
|
*
|
|
@@ -995,23 +957,6 @@ export declare interface FormKitToggleSlots<Props extends FormKitInputs<Props>>
|
|
|
995
957
|
}>;
|
|
996
958
|
}
|
|
997
959
|
|
|
998
|
-
/**
|
|
999
|
-
* Unit slots.
|
|
1000
|
-
*
|
|
1001
|
-
* @public
|
|
1002
|
-
*/
|
|
1003
|
-
export declare interface FormKitUnitSlots<Props extends FormKitInputs<Props>> {
|
|
1004
|
-
wrapper: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1005
|
-
input: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1006
|
-
prefix: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1007
|
-
suffix: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1008
|
-
help: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1009
|
-
messages: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1010
|
-
message: FormKitSlotData<Props, UnitSlotData<Props> & {
|
|
1011
|
-
message: FormKitMessage;
|
|
1012
|
-
}>;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
960
|
/**
|
|
1016
961
|
* Behavioral group options.
|
|
1017
962
|
*/
|
|
@@ -1040,9 +985,7 @@ declare namespace inputs {
|
|
|
1040
985
|
transferlist,
|
|
1041
986
|
slider,
|
|
1042
987
|
colorpicker,
|
|
1043
|
-
togglebuttons
|
|
1044
|
-
currency,
|
|
1045
|
-
unit
|
|
988
|
+
togglebuttons
|
|
1046
989
|
}
|
|
1047
990
|
}
|
|
1048
991
|
export { inputs }
|
|
@@ -1064,6 +1007,12 @@ declare interface LiteralPart<T extends string = string> {
|
|
|
1064
1007
|
*/
|
|
1065
1008
|
export declare const mask: FormKitProInput;
|
|
1066
1009
|
|
|
1010
|
+
/**
|
|
1011
|
+
* Adds a mask overlay to a node.
|
|
1012
|
+
* @param node - node to add a mask overlay to
|
|
1013
|
+
*/
|
|
1014
|
+
export declare function maskOverlay(node: FormKitNode): void;
|
|
1015
|
+
|
|
1067
1016
|
/**
|
|
1068
1017
|
* Defines a specific part of a mask pattern.
|
|
1069
1018
|
*/
|
|
@@ -1099,6 +1048,8 @@ export declare type PartMap<T = MaskPart> = {
|
|
|
1099
1048
|
[index: string]: T;
|
|
1100
1049
|
};
|
|
1101
1050
|
|
|
1051
|
+
export declare function rate(node: FormKitNode): void;
|
|
1052
|
+
|
|
1102
1053
|
/**
|
|
1103
1054
|
* Input definition for a rating input.
|
|
1104
1055
|
* @public
|
|
@@ -1151,12 +1102,18 @@ declare interface RepeaterSlotData {
|
|
|
1151
1102
|
};
|
|
1152
1103
|
}
|
|
1153
1104
|
|
|
1105
|
+
export declare function repeats(node: FormKitNode): void;
|
|
1106
|
+
|
|
1107
|
+
export declare function searchInput(node: FormKitNode): void;
|
|
1108
|
+
|
|
1154
1109
|
/**
|
|
1155
1110
|
* A factory that creates createSection functions that are curried with the
|
|
1156
1111
|
* input code.
|
|
1157
1112
|
*/
|
|
1158
1113
|
declare type SectionFactory = <IsRoot extends boolean = false>(sectionName: string, schema: string | (() => FormKitSchemaNode), root?: IsRoot) => FormKitProSection<IsRoot>;
|
|
1159
1114
|
|
|
1115
|
+
export declare function selectorHandlers(node: FormKitNode): void;
|
|
1116
|
+
|
|
1160
1117
|
/**
|
|
1161
1118
|
* Input definition for a slider input.
|
|
1162
1119
|
* @public
|
|
@@ -1173,6 +1130,8 @@ export declare interface SliderChartSlots<Props extends FormKitInputs<Props>> {
|
|
|
1173
1130
|
chartBar: FormKitSlotData<Props, SliderSlotData>;
|
|
1174
1131
|
}
|
|
1175
1132
|
|
|
1133
|
+
export declare function sliderFeature(node: FormKitNode): void;
|
|
1134
|
+
|
|
1176
1135
|
export declare type SliderIntervals = {
|
|
1177
1136
|
value: number;
|
|
1178
1137
|
step: number;
|
|
@@ -1229,6 +1188,10 @@ export declare interface SliderSlotData {
|
|
|
1229
1188
|
*/
|
|
1230
1189
|
export declare const taglist: FormKitProInput;
|
|
1231
1190
|
|
|
1191
|
+
export declare function taglistFeatures(node: FormKitNode): void;
|
|
1192
|
+
|
|
1193
|
+
export declare function taglistProps(node: FormKitNode): void;
|
|
1194
|
+
|
|
1232
1195
|
export declare interface TaglistSlotData {
|
|
1233
1196
|
options: FormKitOptionsItem[];
|
|
1234
1197
|
debounce?: number | string;
|
|
@@ -1284,6 +1247,8 @@ export declare const toggle: FormKitProInput;
|
|
|
1284
1247
|
*/
|
|
1285
1248
|
export declare const togglebuttons: FormKitProInput;
|
|
1286
1249
|
|
|
1250
|
+
export declare function togglebuttonsFeatures(node: FormKitNode): void;
|
|
1251
|
+
|
|
1287
1252
|
/**
|
|
1288
1253
|
* Slot data for togglebuttons
|
|
1289
1254
|
*/
|
|
@@ -1305,6 +1270,8 @@ export declare interface TogglebuttonsSlotData<Props extends FormKitInputs<Props
|
|
|
1305
1270
|
};
|
|
1306
1271
|
}
|
|
1307
1272
|
|
|
1273
|
+
export declare function toggles(node: FormKitNode): void;
|
|
1274
|
+
|
|
1308
1275
|
/**
|
|
1309
1276
|
* Slot data for toggles
|
|
1310
1277
|
*/
|
|
@@ -1334,6 +1301,8 @@ export declare interface ToggleSlotData<Props extends FormKitInputs<Props>> {
|
|
|
1334
1301
|
*/
|
|
1335
1302
|
export declare const transferlist: FormKitProInput;
|
|
1336
1303
|
|
|
1304
|
+
export declare function transferListFeature(node: FormKitNode): void;
|
|
1305
|
+
|
|
1337
1306
|
/**
|
|
1338
1307
|
* Data available to transfer lists.
|
|
1339
1308
|
*
|
|
@@ -1444,37 +1413,13 @@ export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
|
|
|
1444
1413
|
}
|
|
1445
1414
|
|
|
1446
1415
|
/**
|
|
1447
|
-
*
|
|
1448
|
-
* @public
|
|
1416
|
+
* Adds datepicker functionality.
|
|
1449
1417
|
*/
|
|
1450
|
-
export declare
|
|
1418
|
+
export declare function useCalendar(node: FormKitNode): void;
|
|
1451
1419
|
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
export declare interface UnitSlotData<Props extends FormKitInputs<Props>> {
|
|
1456
|
-
type: 'unit';
|
|
1457
|
-
value?: string | number;
|
|
1458
|
-
label?: string;
|
|
1459
|
-
disabled?: Bool;
|
|
1460
|
-
unit?: string;
|
|
1461
|
-
decimals?: Bool | number;
|
|
1462
|
-
minDecimals?: Bool | number;
|
|
1463
|
-
min?: number;
|
|
1464
|
-
max?: number;
|
|
1465
|
-
step?: number;
|
|
1466
|
-
displayLocale?: string;
|
|
1467
|
-
valueFormat?: string;
|
|
1468
|
-
handlers: FormKitFrameworkContext['handlers'] & {
|
|
1469
|
-
init(): void;
|
|
1470
|
-
handleInput: (e: InputEvent) => void;
|
|
1471
|
-
handleFocus: (e: InputEvent) => void;
|
|
1472
|
-
handleBlur(): void;
|
|
1473
|
-
handleBeforeInput: (e: InputEvent) => void;
|
|
1474
|
-
handleClick(e: MouseEvent): void;
|
|
1475
|
-
handleKeyDown: (e: InputEvent) => void;
|
|
1476
|
-
};
|
|
1477
|
-
}
|
|
1420
|
+
export declare function useMask(node: FormKitNode): void;
|
|
1421
|
+
|
|
1422
|
+
export declare function usePopover(node: FormKitNode): void;
|
|
1478
1423
|
|
|
1479
1424
|
declare type Yes = 'true' | true | '';
|
|
1480
1425
|
|
|
@@ -1546,38 +1491,6 @@ declare module '@formkit/inputs' {
|
|
|
1546
1491
|
allowPaste?: Bool
|
|
1547
1492
|
}
|
|
1548
1493
|
|
|
1549
|
-
currency: {
|
|
1550
|
-
type: 'currency'
|
|
1551
|
-
value?: string | number
|
|
1552
|
-
label?: string
|
|
1553
|
-
disabled?: Bool
|
|
1554
|
-
currency?: string
|
|
1555
|
-
displayLocale?: string
|
|
1556
|
-
decimals?: Bool | number
|
|
1557
|
-
minDecimals?: number
|
|
1558
|
-
min?: number
|
|
1559
|
-
max?: number
|
|
1560
|
-
step?: number
|
|
1561
|
-
// valueLocale?: string
|
|
1562
|
-
// valueFormat?: string
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
unit: {
|
|
1566
|
-
type: 'unit'
|
|
1567
|
-
value?: string | number
|
|
1568
|
-
label?: string
|
|
1569
|
-
disabled?: Bool
|
|
1570
|
-
unit?: string
|
|
1571
|
-
displayLocale?: string
|
|
1572
|
-
decimals?: Bool | number
|
|
1573
|
-
minDecimals?: number
|
|
1574
|
-
min?: number
|
|
1575
|
-
max?: number
|
|
1576
|
-
step?: number
|
|
1577
|
-
// valueLocale?: string
|
|
1578
|
-
// valueFormat?: string
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
1494
|
datepicker: {
|
|
1582
1495
|
type: 'datepicker'
|
|
1583
1496
|
value?: string | Date
|
|
@@ -1771,7 +1684,6 @@ declare module '@formkit/inputs' {
|
|
|
1771
1684
|
interface FormKitInputSlots<Props extends FormKitInputs<Props>> {
|
|
1772
1685
|
autocomplete: FormKitAutocompleteSlots<Props>
|
|
1773
1686
|
colorpicker: FormKitColorpickerSlots<Props>
|
|
1774
|
-
currency: FormKitCurrencySlots<Props>
|
|
1775
1687
|
datepicker: FormKitDatePickerSlots<Props> & FormKitOverlaySlots<Props>
|
|
1776
1688
|
dropdown: FormKitDropdownSlots<Props>
|
|
1777
1689
|
mask: FormKitBaseSlots<Props> & FormKitOverlaySlots<Props>
|
|
@@ -1785,7 +1697,6 @@ declare module '@formkit/inputs' {
|
|
|
1785
1697
|
toggle: FormKitToggleSlots<Props>
|
|
1786
1698
|
togglebuttons: FormKitTogglebuttonsSlots<Props>
|
|
1787
1699
|
transferlist: TransferlistSlots<Props>
|
|
1788
|
-
unit: FormKitUnitSlots<Props>
|
|
1789
1700
|
}
|
|
1790
1701
|
}
|
|
1791
1702
|
/* </declare> */
|