@formkit/pro 0.122.21 → 0.123.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/autocomplete/index.mjs +1 -1
- package/dropdown/index.mjs +1 -1
- package/genesis.css +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +141 -4
- package/index.mjs +1 -1
- package/mask/index.mjs +1 -1
- package/package.json +1 -1
- package/rating/index.mjs +1 -1
- package/rating/rating.ts +23 -7
- package/taglist/index.mjs +1 -1
- package/unit/index.mjs +1 -0
- package/unit/unit.ts +58 -0
package/index.d.ts
CHANGED
|
@@ -201,6 +201,39 @@ export declare function createProPlugin(apiKey: string, inputs?: Record<string,
|
|
|
201
201
|
*/
|
|
202
202
|
export declare function createSectionFactory(inputCode: string): SectionFactory;
|
|
203
203
|
|
|
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
|
+
|
|
204
237
|
/**
|
|
205
238
|
* Input definition for a datepicker input.
|
|
206
239
|
* @public
|
|
@@ -459,6 +492,23 @@ export declare interface FormKitColorpickerSlots<Props extends FormKitInputs<Pro
|
|
|
459
492
|
}>;
|
|
460
493
|
}
|
|
461
494
|
|
|
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
|
+
|
|
462
512
|
/**
|
|
463
513
|
* Slot information that pertains specifically to the datepicker input.
|
|
464
514
|
*
|
|
@@ -633,6 +683,7 @@ export declare type FormKitOverlaySlots<Props extends FormKitInputs<Props>> = Pr
|
|
|
633
683
|
*/
|
|
634
684
|
declare interface FormKitProExtendableSection<IsRoot extends boolean = false> {
|
|
635
685
|
(apiKey: string): ExtendableSchema<IsRoot>;
|
|
686
|
+
_s?: string;
|
|
636
687
|
}
|
|
637
688
|
|
|
638
689
|
/**
|
|
@@ -945,6 +996,23 @@ export declare interface FormKitToggleSlots<Props extends FormKitInputs<Props>>
|
|
|
945
996
|
}>;
|
|
946
997
|
}
|
|
947
998
|
|
|
999
|
+
/**
|
|
1000
|
+
* Unit slots.
|
|
1001
|
+
*
|
|
1002
|
+
* @public
|
|
1003
|
+
*/
|
|
1004
|
+
export declare interface FormKitUnitSlots<Props extends FormKitInputs<Props>> {
|
|
1005
|
+
wrapper: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1006
|
+
input: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1007
|
+
prefix: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1008
|
+
suffix: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1009
|
+
help: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1010
|
+
messages: FormKitSlotData<Props, UnitSlotData<Props>>;
|
|
1011
|
+
message: FormKitSlotData<Props, UnitSlotData<Props> & {
|
|
1012
|
+
message: FormKitMessage;
|
|
1013
|
+
}>;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
948
1016
|
/**
|
|
949
1017
|
* Behavioral group options.
|
|
950
1018
|
*/
|
|
@@ -973,7 +1041,9 @@ declare namespace inputs {
|
|
|
973
1041
|
transferlist,
|
|
974
1042
|
slider,
|
|
975
1043
|
colorpicker,
|
|
976
|
-
togglebuttons
|
|
1044
|
+
togglebuttons,
|
|
1045
|
+
currency,
|
|
1046
|
+
unit
|
|
977
1047
|
}
|
|
978
1048
|
}
|
|
979
1049
|
export { inputs }
|
|
@@ -1374,6 +1444,39 @@ export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
|
|
|
1374
1444
|
}>;
|
|
1375
1445
|
}
|
|
1376
1446
|
|
|
1447
|
+
/**
|
|
1448
|
+
* Input definition for a toggle group input.
|
|
1449
|
+
* @public
|
|
1450
|
+
*/
|
|
1451
|
+
export declare const unit: FormKitProInput;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Slot data for unit
|
|
1455
|
+
*/
|
|
1456
|
+
export declare interface UnitSlotData<Props extends FormKitInputs<Props>> {
|
|
1457
|
+
type: 'unit';
|
|
1458
|
+
value?: string | number;
|
|
1459
|
+
label?: string;
|
|
1460
|
+
disabled?: Bool;
|
|
1461
|
+
unit?: string;
|
|
1462
|
+
decimals?: Bool | number;
|
|
1463
|
+
minDecimals?: Bool | number;
|
|
1464
|
+
min?: number;
|
|
1465
|
+
max?: number;
|
|
1466
|
+
step?: number;
|
|
1467
|
+
displayLocale?: string;
|
|
1468
|
+
valueFormat?: string;
|
|
1469
|
+
handlers: FormKitFrameworkContext['handlers'] & {
|
|
1470
|
+
init(): void;
|
|
1471
|
+
handleInput: (e: InputEvent) => void;
|
|
1472
|
+
handleFocus: (e: InputEvent) => void;
|
|
1473
|
+
handleBlur(): void;
|
|
1474
|
+
handleBeforeInput: (e: InputEvent) => void;
|
|
1475
|
+
handleClick(e: MouseEvent): void;
|
|
1476
|
+
handleKeyDown: (e: InputEvent) => void;
|
|
1477
|
+
};
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1377
1480
|
declare type Yes = 'true' | true | '';
|
|
1378
1481
|
|
|
1379
1482
|
/* <declare> */
|
|
@@ -1410,7 +1513,7 @@ declare module '@formkit/inputs' {
|
|
|
1410
1513
|
debounce?: number | string
|
|
1411
1514
|
multiple?: Bool
|
|
1412
1515
|
popover?: Bool
|
|
1413
|
-
options:
|
|
1516
|
+
options: FormKitOptionsPropWithGroups
|
|
1414
1517
|
selectionAppearance?: 'option' | 'text-input'
|
|
1415
1518
|
filter?: (option: FormKitOptionsItem, search: string) => boolean
|
|
1416
1519
|
optionLoader?: OptionLoader
|
|
@@ -1444,6 +1547,38 @@ declare module '@formkit/inputs' {
|
|
|
1444
1547
|
allowPaste?: Bool
|
|
1445
1548
|
}
|
|
1446
1549
|
|
|
1550
|
+
currency: {
|
|
1551
|
+
type: 'currency'
|
|
1552
|
+
value?: string | number
|
|
1553
|
+
label?: string
|
|
1554
|
+
disabled?: Bool
|
|
1555
|
+
currency?: string
|
|
1556
|
+
displayLocale?: string
|
|
1557
|
+
decimals?: Bool | number
|
|
1558
|
+
minDecimals?: number
|
|
1559
|
+
min?: number
|
|
1560
|
+
max?: number
|
|
1561
|
+
step?: number
|
|
1562
|
+
// valueLocale?: string
|
|
1563
|
+
// valueFormat?: string
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
unit: {
|
|
1567
|
+
type: 'unit'
|
|
1568
|
+
value?: string | number
|
|
1569
|
+
label?: string
|
|
1570
|
+
disabled?: Bool
|
|
1571
|
+
unit?: string
|
|
1572
|
+
displayLocale?: string
|
|
1573
|
+
decimals?: Bool | number
|
|
1574
|
+
minDecimals?: number
|
|
1575
|
+
min?: number
|
|
1576
|
+
max?: number
|
|
1577
|
+
step?: number
|
|
1578
|
+
// valueLocale?: string
|
|
1579
|
+
// valueFormat?: string
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1447
1582
|
datepicker: {
|
|
1448
1583
|
type: 'datepicker'
|
|
1449
1584
|
value?: string | Date
|
|
@@ -1476,7 +1611,7 @@ declare module '@formkit/inputs' {
|
|
|
1476
1611
|
: OptionsProValue<Props['options']>
|
|
1477
1612
|
multiple?: Bool
|
|
1478
1613
|
popover?: Bool
|
|
1479
|
-
options?:
|
|
1614
|
+
options?: FormKitOptionsPropWithGroups
|
|
1480
1615
|
selectionAppearance?: 'truncate' | 'tags'
|
|
1481
1616
|
filter?: (option: FormKitOptionsItem, search: string) => boolean
|
|
1482
1617
|
optionLoader?: OptionLoader
|
|
@@ -1564,7 +1699,7 @@ declare module '@formkit/inputs' {
|
|
|
1564
1699
|
type: 'taglist'
|
|
1565
1700
|
value?: any[]
|
|
1566
1701
|
debounce?: number | string
|
|
1567
|
-
options?:
|
|
1702
|
+
options?: FormKitOptionsPropWithGroups
|
|
1568
1703
|
selectionAppearance?: 'truncate' | 'tags'
|
|
1569
1704
|
popover?: Bool
|
|
1570
1705
|
openOnClick?: Bool
|
|
@@ -1637,6 +1772,7 @@ declare module '@formkit/inputs' {
|
|
|
1637
1772
|
interface FormKitInputSlots<Props extends FormKitInputs<Props>> {
|
|
1638
1773
|
autocomplete: FormKitAutocompleteSlots<Props>
|
|
1639
1774
|
colorpicker: FormKitColorpickerSlots<Props>
|
|
1775
|
+
currency: FormKitCurrencySlots<Props>
|
|
1640
1776
|
datepicker: FormKitDatePickerSlots<Props> & FormKitOverlaySlots<Props>
|
|
1641
1777
|
dropdown: FormKitDropdownSlots<Props>
|
|
1642
1778
|
mask: FormKitBaseSlots<Props> & FormKitOverlaySlots<Props>
|
|
@@ -1650,6 +1786,7 @@ declare module '@formkit/inputs' {
|
|
|
1650
1786
|
toggle: FormKitToggleSlots<Props>
|
|
1651
1787
|
togglebuttons: FormKitTogglebuttonsSlots<Props>
|
|
1652
1788
|
transferlist: TransferlistSlots<Props>
|
|
1789
|
+
unit: FormKitUnitSlots<Props>
|
|
1653
1790
|
}
|
|
1654
1791
|
}
|
|
1655
1792
|
/* </declare> */
|