@formkit/pro 0.119.9 → 0.119.10
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.d.ts +32 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -561,7 +561,7 @@ export declare interface FormKitDropdownSlots<Props extends FormKitInputs<Props>
|
|
|
561
561
|
prefixIcon: FormKitSlotData<Props, DropdownSlotData>;
|
|
562
562
|
selector: FormKitSlotData<Props, DropdownSlotData>;
|
|
563
563
|
selection: FormKitSlotData<Props, DropdownSlotData & {
|
|
564
|
-
option: FormKitOptionsItem
|
|
564
|
+
option: FormKitOptionsItem<OptionsProValue<Props['options']>>;
|
|
565
565
|
index: number;
|
|
566
566
|
}>;
|
|
567
567
|
closeIcon: FormKitSlotData<Props, DropdownSlotData>;
|
|
@@ -580,29 +580,29 @@ export declare interface FormKitDropdownSlots<Props extends FormKitInputs<Props>
|
|
|
580
580
|
loadMore: FormKitSlotData<Props, DropdownSlotData>;
|
|
581
581
|
emptyMessageInner: FormKitSlotData<Props, DropdownSlotData>;
|
|
582
582
|
selectedIcon: FormKitSlotData<Props, DropdownSlotData & {
|
|
583
|
-
option: FormKitOptionsItem
|
|
583
|
+
option: FormKitOptionsItem<OptionsProValue<Props['options']>>;
|
|
584
584
|
index: number;
|
|
585
585
|
}>;
|
|
586
586
|
option: FormKitSlotData<Props, DropdownSlotData & {
|
|
587
|
-
option: FormKitOptionsItem
|
|
587
|
+
option: FormKitOptionsItem<OptionsProValue<Props['options']>>;
|
|
588
588
|
index: number;
|
|
589
589
|
}>;
|
|
590
590
|
optionLoading: FormKitSlotData<Props, DropdownSlotData & {
|
|
591
|
-
option: FormKitOptionsItem
|
|
591
|
+
option: FormKitOptionsItem<OptionsProValue<Props['options']>>;
|
|
592
592
|
index: number;
|
|
593
593
|
}>;
|
|
594
594
|
removeSelection: FormKitSlotData<Props, DropdownSlotData & {
|
|
595
|
-
option: FormKitOptionsItem
|
|
595
|
+
option: FormKitOptionsItem<OptionsProValue<Props['options']>>;
|
|
596
596
|
index: number;
|
|
597
597
|
}>;
|
|
598
598
|
placeholder: FormKitSlotData<Props, DropdownSlotData>;
|
|
599
599
|
tag: FormKitSlotData<Props, DropdownSlotData & {
|
|
600
|
-
option: FormKitOptionsItem
|
|
600
|
+
option: FormKitOptionsItem<OptionsProValue<Props['options']>>;
|
|
601
601
|
index: number;
|
|
602
602
|
}>;
|
|
603
603
|
tagWrapper: FormKitSlotData<Props, TaglistSlotData>;
|
|
604
604
|
tagLabel: FormKitSlotData<Props, DropdownSlotData & {
|
|
605
|
-
option: FormKitOptionsItem
|
|
605
|
+
option: FormKitOptionsItem<OptionsProValue<Props['options']>>;
|
|
606
606
|
index: number;
|
|
607
607
|
}>;
|
|
608
608
|
}
|
|
@@ -704,72 +704,92 @@ export declare interface FormKitRepeaterSlots<Props extends FormKitInputs<Props>
|
|
|
704
704
|
empty: FormKitSlotData<Props, RepeaterSlotData>;
|
|
705
705
|
help: FormKitSlotData<Props, RepeaterSlotData>;
|
|
706
706
|
prefix: FormKitSlotData<Props, RepeaterSlotData>;
|
|
707
|
-
default: FormKitSlotData<Props, RepeaterSlotData
|
|
707
|
+
default: FormKitSlotData<Props, RepeaterSlotData & {
|
|
708
|
+
item: symbol;
|
|
709
|
+
index: number;
|
|
710
|
+
value: Props['value'][number];
|
|
711
|
+
}>;
|
|
708
712
|
items: FormKitSlotData<Props, RepeaterSlotData>;
|
|
709
713
|
item: FormKitSlotData<Props, RepeaterSlotData>;
|
|
710
714
|
content: FormKitSlotData<Props, RepeaterSlotData & {
|
|
711
715
|
item: symbol;
|
|
712
716
|
index: number;
|
|
717
|
+
value: Props['value'][number];
|
|
713
718
|
}>;
|
|
714
719
|
group: FormKitSlotData<Props, RepeaterSlotData & {
|
|
715
720
|
item: symbol;
|
|
716
721
|
index: number;
|
|
722
|
+
value: Props['value'][number];
|
|
717
723
|
}>;
|
|
718
724
|
controls: FormKitSlotData<Props, RepeaterSlotData & {
|
|
719
725
|
item: symbol;
|
|
720
726
|
index: number;
|
|
727
|
+
value: Props['value'][number];
|
|
721
728
|
}>;
|
|
722
729
|
up: FormKitSlotData<Props, RepeaterSlotData & {
|
|
723
730
|
item: symbol;
|
|
724
731
|
index: number;
|
|
732
|
+
value: Props['value'][number];
|
|
725
733
|
}>;
|
|
726
734
|
upControl: FormKitSlotData<Props, RepeaterSlotData & {
|
|
727
735
|
item: symbol;
|
|
728
736
|
index: number;
|
|
737
|
+
value: Props['value'][number];
|
|
729
738
|
}>;
|
|
730
739
|
controlLabel: FormKitSlotData<Props, RepeaterSlotData & {
|
|
731
740
|
item: symbol;
|
|
732
741
|
index: number;
|
|
742
|
+
value: Props['value'][number];
|
|
733
743
|
}>;
|
|
734
744
|
moveUpIcon: FormKitSlotData<Props, RepeaterSlotData & {
|
|
735
745
|
item: symbol;
|
|
736
746
|
index: number;
|
|
747
|
+
value: Props['value'][number];
|
|
737
748
|
}>;
|
|
738
749
|
remove: FormKitSlotData<Props, RepeaterSlotData & {
|
|
739
750
|
item: symbol;
|
|
740
751
|
index: number;
|
|
752
|
+
value: Props['value'][number];
|
|
741
753
|
}>;
|
|
742
754
|
removeControl: FormKitSlotData<Props, RepeaterSlotData & {
|
|
743
755
|
item: symbol;
|
|
744
756
|
index: number;
|
|
757
|
+
value: Props['value'][number];
|
|
745
758
|
}>;
|
|
746
759
|
removeIcon: FormKitSlotData<Props, RepeaterSlotData & {
|
|
747
760
|
item: symbol;
|
|
748
761
|
index: number;
|
|
762
|
+
value: Props['value'][number];
|
|
749
763
|
}>;
|
|
750
764
|
insert: FormKitSlotData<Props, RepeaterSlotData & {
|
|
751
765
|
item: symbol;
|
|
752
766
|
index: number;
|
|
767
|
+
value: Props['value'][number];
|
|
753
768
|
}>;
|
|
754
769
|
insertControl: FormKitSlotData<Props, RepeaterSlotData & {
|
|
755
770
|
item: symbol;
|
|
756
771
|
index: number;
|
|
772
|
+
value: Props['value'][number];
|
|
757
773
|
}>;
|
|
758
774
|
addIcon: FormKitSlotData<Props, RepeaterSlotData & {
|
|
759
775
|
item: symbol;
|
|
760
776
|
index: number;
|
|
777
|
+
value: Props['value'][number];
|
|
761
778
|
}>;
|
|
762
779
|
down: FormKitSlotData<Props, RepeaterSlotData & {
|
|
763
780
|
item: symbol;
|
|
764
781
|
index: number;
|
|
782
|
+
value: Props['value'][number];
|
|
765
783
|
}>;
|
|
766
784
|
downControl: FormKitSlotData<Props, RepeaterSlotData & {
|
|
767
785
|
item: symbol;
|
|
768
786
|
index: number;
|
|
787
|
+
value: Props['value'][number];
|
|
769
788
|
}>;
|
|
770
789
|
moveDownIcon: FormKitSlotData<Props, RepeaterSlotData & {
|
|
771
790
|
item: symbol;
|
|
772
791
|
index: number;
|
|
792
|
+
value: Props['value'][number];
|
|
773
793
|
}>;
|
|
774
794
|
suffix: FormKitSlotData<Props, RepeaterSlotData>;
|
|
775
795
|
addButton: FormKitSlotData<Props, RepeaterSlotData>;
|
|
@@ -1377,6 +1397,7 @@ declare module '@formkit/core' {
|
|
|
1377
1397
|
}
|
|
1378
1398
|
/* </declare> */
|
|
1379
1399
|
/* <declare> */
|
|
1400
|
+
import type { FormKitBaseSlots } from '@formkit/inputs'
|
|
1380
1401
|
export interface OptionLoader {
|
|
1381
1402
|
(value: any, cachedItem: FormKitOptionsItem<any>):
|
|
1382
1403
|
| FormKitOptionsItem<any>
|
|
@@ -1458,7 +1479,9 @@ declare module '@formkit/inputs' {
|
|
|
1458
1479
|
|
|
1459
1480
|
dropdown: {
|
|
1460
1481
|
type: 'dropdown'
|
|
1461
|
-
value?: Props['multiple'] extends Yes
|
|
1482
|
+
value?: Props['multiple'] extends Yes
|
|
1483
|
+
? OptionsProValue<Props['options']>[]
|
|
1484
|
+
: OptionsProValue<Props['options']>
|
|
1462
1485
|
multiple?: Bool
|
|
1463
1486
|
options?: FormKitProOptionsProp
|
|
1464
1487
|
selectionAppearance?: 'truncate' | 'tags'
|