@formkit/pro 0.129.0 → 0.129.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/index.cjs +9 -9
- package/index.d.ts +75 -0
- package/index.mjs +10 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ export declare const currency: FormKitProInput;
|
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* Slot data for currency
|
|
214
|
+
*
|
|
215
|
+
* @public
|
|
214
216
|
*/
|
|
215
217
|
export declare interface CurrencySlotData<Props extends FormKitInputs<Props>> {
|
|
216
218
|
type: 'currency';
|
|
@@ -362,6 +364,11 @@ declare type ExtendableSchema<IsRoot> = IsRoot extends true ? FormKitExtendableS
|
|
|
362
364
|
|
|
363
365
|
export { FormatStyleObj }
|
|
364
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Autocomplete slots.
|
|
369
|
+
*
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
365
372
|
export declare interface FormKitAutocompleteSlots<Props extends FormKitInputs<Props>> {
|
|
366
373
|
outer: FormKitSlotData<Props, AutocompleteSlotData>;
|
|
367
374
|
wrapper: FormKitSlotData<Props, AutocompleteSlotData>;
|
|
@@ -461,6 +468,11 @@ declare interface FormKitColorpickerSlotData {
|
|
|
461
468
|
};
|
|
462
469
|
}
|
|
463
470
|
|
|
471
|
+
/**
|
|
472
|
+
* Colorpicker slots.
|
|
473
|
+
*
|
|
474
|
+
* @public
|
|
475
|
+
*/
|
|
464
476
|
export declare interface FormKitColorpickerSlots<Props extends FormKitInputs<Props>> {
|
|
465
477
|
swatchPreview: FormKitSlotData<Props, FormKitColorpickerSlotData>;
|
|
466
478
|
valueString: FormKitSlotData<Props, FormKitColorpickerSlotData>;
|
|
@@ -599,6 +611,11 @@ export declare interface FormKitDatePickerSlots<Props extends FormKitInputs<Prop
|
|
|
599
611
|
yearsHeader: FormKitSlotData<Props, DatePickerSlotData>;
|
|
600
612
|
}
|
|
601
613
|
|
|
614
|
+
/**
|
|
615
|
+
* Dropdown slots.
|
|
616
|
+
*
|
|
617
|
+
* @public
|
|
618
|
+
*/
|
|
602
619
|
export declare interface FormKitDropdownSlots<Props extends FormKitInputs<Props>> {
|
|
603
620
|
outer: FormKitSlotData<Props, DropdownSlotData>;
|
|
604
621
|
wrapper: FormKitSlotData<Props, DropdownSlotData>;
|
|
@@ -666,6 +683,11 @@ export declare interface FormKitOptionsLoader {
|
|
|
666
683
|
(...args: any[]): Promise<FormKitOptionsProp> | FormKitOptionsProp;
|
|
667
684
|
}
|
|
668
685
|
|
|
686
|
+
/**
|
|
687
|
+
* Overlay slots.
|
|
688
|
+
*
|
|
689
|
+
* @public
|
|
690
|
+
*/
|
|
669
691
|
export declare type FormKitOverlaySlots<Props extends FormKitInputs<Props>> = Props['overlay'] extends Yes ? {
|
|
670
692
|
overlay: FormKitSlotData<Props, DatePickerSlotData>;
|
|
671
693
|
overlayChar: FormKitSlotData<Props, DatePickerSlotData & {
|
|
@@ -726,6 +748,11 @@ declare interface FormKitProSection<IsRoot extends boolean = false> {
|
|
|
726
748
|
(...children: Array<string | FormKitProExtendableSection>): FormKitProExtendableSection<IsRoot>;
|
|
727
749
|
}
|
|
728
750
|
|
|
751
|
+
/**
|
|
752
|
+
* Rating slots.
|
|
753
|
+
*
|
|
754
|
+
* @public
|
|
755
|
+
*/
|
|
729
756
|
export declare interface FormKitRatingSlots<Props extends FormKitInputs<Props>> {
|
|
730
757
|
itemsWrapper: FormKitSlotData<Props, RatingSlotData>;
|
|
731
758
|
onItem: FormKitSlotData<Props, RatingSlotData & {
|
|
@@ -893,6 +920,11 @@ export declare interface FormKitSliderSlots<Props extends FormKitInputs<Props>>
|
|
|
893
920
|
messages: FormKitSlotData<Props, SliderSlotData>;
|
|
894
921
|
}
|
|
895
922
|
|
|
923
|
+
/**
|
|
924
|
+
* Taglist slots.
|
|
925
|
+
*
|
|
926
|
+
* @public
|
|
927
|
+
*/
|
|
896
928
|
export declare interface FormKitTaglistSlots<Props extends FormKitInputs<Props>> {
|
|
897
929
|
outer: FormKitSlotData<Props, TaglistSlotData>;
|
|
898
930
|
wrapper: FormKitSlotData<Props, TaglistSlotData>;
|
|
@@ -1087,6 +1119,11 @@ declare interface Meta {
|
|
|
1087
1119
|
type: 'placeholder' | 'literal' | 'char' | 'enum';
|
|
1088
1120
|
}
|
|
1089
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
* Loads or resolves an option for option-based inputs.
|
|
1124
|
+
*
|
|
1125
|
+
* @public
|
|
1126
|
+
*/
|
|
1090
1127
|
export declare interface OptionLoader {
|
|
1091
1128
|
(value: any, cachedItem: FormKitOptionsItem<any>): FormKitOptionsItem<any> | string | void | Promise<FormKitOptionsItem<any> | string | void>;
|
|
1092
1129
|
}
|
|
@@ -1107,6 +1144,8 @@ export declare type Panels = 'year' | 'month' | 'day' | 'time';
|
|
|
1107
1144
|
|
|
1108
1145
|
/**
|
|
1109
1146
|
* A map of the parts used
|
|
1147
|
+
*
|
|
1148
|
+
* @public
|
|
1110
1149
|
*/
|
|
1111
1150
|
export declare type PartMap<T = MaskPart> = {
|
|
1112
1151
|
[index: string]: T;
|
|
@@ -1186,11 +1225,21 @@ export declare interface SliderChartSlots<Props extends FormKitInputs<Props>> {
|
|
|
1186
1225
|
chartBar: FormKitSlotData<Props, SliderSlotData>;
|
|
1187
1226
|
}
|
|
1188
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* Intervals used by slider inputs.
|
|
1230
|
+
*
|
|
1231
|
+
* @public
|
|
1232
|
+
*/
|
|
1189
1233
|
export declare type SliderIntervals = {
|
|
1190
1234
|
value: number;
|
|
1191
1235
|
step: number;
|
|
1192
1236
|
}[];
|
|
1193
1237
|
|
|
1238
|
+
/**
|
|
1239
|
+
* Scaling function used by slider inputs.
|
|
1240
|
+
*
|
|
1241
|
+
* @public
|
|
1242
|
+
*/
|
|
1194
1243
|
export declare type SliderScalingFunction = {
|
|
1195
1244
|
forward: (value: number, min?: number, max?: number) => number;
|
|
1196
1245
|
reverse: (value: number, min?: number, max?: number) => number;
|
|
@@ -1242,6 +1291,11 @@ export declare interface SliderSlotData {
|
|
|
1242
1291
|
*/
|
|
1243
1292
|
export declare const taglist: FormKitProInput;
|
|
1244
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* Data available to taglist slots.
|
|
1296
|
+
*
|
|
1297
|
+
* @public
|
|
1298
|
+
*/
|
|
1245
1299
|
export declare interface TaglistSlotData {
|
|
1246
1300
|
options: FormKitOptionsItem[];
|
|
1247
1301
|
debounce?: number | string;
|
|
@@ -1303,6 +1357,8 @@ export declare const togglebuttons: FormKitProInput;
|
|
|
1303
1357
|
|
|
1304
1358
|
/**
|
|
1305
1359
|
* Slot data for togglebuttons
|
|
1360
|
+
*
|
|
1361
|
+
* @public
|
|
1306
1362
|
*/
|
|
1307
1363
|
export declare interface TogglebuttonsSlotData<Props extends FormKitInputs<Props>> {
|
|
1308
1364
|
onValue?: any;
|
|
@@ -1324,6 +1380,8 @@ export declare interface TogglebuttonsSlotData<Props extends FormKitInputs<Props
|
|
|
1324
1380
|
|
|
1325
1381
|
/**
|
|
1326
1382
|
* Slot data for toggles
|
|
1383
|
+
*
|
|
1384
|
+
* @public
|
|
1327
1385
|
*/
|
|
1328
1386
|
export declare interface ToggleSlotData<Props extends FormKitInputs<Props>> {
|
|
1329
1387
|
onValue: Props['onValue'] extends AllReals ? Props['onValue'] : true;
|
|
@@ -1407,6 +1465,11 @@ export declare interface TransferlistSlotData {
|
|
|
1407
1465
|
};
|
|
1408
1466
|
}
|
|
1409
1467
|
|
|
1468
|
+
/**
|
|
1469
|
+
* Transferlist slots.
|
|
1470
|
+
*
|
|
1471
|
+
* @public
|
|
1472
|
+
*/
|
|
1410
1473
|
export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
|
|
1411
1474
|
outer: FormKitSlotData<Props, TransferlistSlotData>;
|
|
1412
1475
|
fieldset: FormKitSlotData<Props, TransferlistSlotData>;
|
|
@@ -1466,10 +1529,17 @@ export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
|
|
|
1466
1529
|
*/
|
|
1467
1530
|
export declare const unit: FormKitProInput;
|
|
1468
1531
|
|
|
1532
|
+
/**
|
|
1533
|
+
* Unit types supported by unit conversions.
|
|
1534
|
+
*
|
|
1535
|
+
* @public
|
|
1536
|
+
*/
|
|
1469
1537
|
export declare type Units = DistanceUnits | TemperatureUnits | AreaUnits | WeightUnits | VolumenUnits | TimeUnits;
|
|
1470
1538
|
|
|
1471
1539
|
/**
|
|
1472
1540
|
* Slot data for unit
|
|
1541
|
+
*
|
|
1542
|
+
* @public
|
|
1473
1543
|
*/
|
|
1474
1544
|
export declare interface UnitSlotData<Props extends FormKitInputs<Props>> {
|
|
1475
1545
|
type: 'unit';
|
|
@@ -1512,6 +1582,11 @@ declare module '@formkit/core' {
|
|
|
1512
1582
|
/* </declare> */
|
|
1513
1583
|
/* <declare> */
|
|
1514
1584
|
import type { FormKitBaseSlots } from '@formkit/inputs'
|
|
1585
|
+
/**
|
|
1586
|
+
* Loads or resolves an option for option-based inputs.
|
|
1587
|
+
*
|
|
1588
|
+
* @public
|
|
1589
|
+
*/
|
|
1515
1590
|
export interface OptionLoader {
|
|
1516
1591
|
(value: any, cachedItem: FormKitOptionsItem<any>):
|
|
1517
1592
|
| FormKitOptionsItem<any>
|