vuetify 3.4.0 → 3.4.2
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/dist/json/attributes.json +1860 -1856
- package/dist/json/importMap.json +140 -140
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +3641 -3631
- package/dist/vuetify-labs.css +1393 -1386
- package/dist/vuetify-labs.d.ts +1936 -9147
- package/dist/vuetify-labs.esm.js +91 -79
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +91 -79
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +940 -933
- package/dist/vuetify.d.ts +2081 -9282
- package/dist/vuetify.esm.js +91 -79
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +91 -79
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +67 -66
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.mts +0 -2
- package/lib/blueprints/md1.d.mts +0 -2
- package/lib/blueprints/md2.d.mts +0 -2
- package/lib/blueprints/md3.d.mts +0 -2
- package/lib/components/VAutocomplete/VAutocomplete.mjs +3 -3
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +74 -98
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBottomNavigation/index.d.mts +44 -69
- package/lib/components/VBtn/VBtn.mjs +1 -1
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/index.d.mts +11 -11
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.mts +45 -71
- package/lib/components/VCarousel/VCarousel.mjs +1 -1
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.mts +73 -513
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/index.d.mts +100 -482
- package/lib/components/VChip/index.d.mts +15 -18
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.mts +49 -189
- package/lib/components/VCombobox/VCombobox.mjs +3 -3
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +74 -98
- package/lib/components/VDataIterator/index.d.mts +8 -6
- package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +2 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/components/VDataTable/composables/items.mjs.map +1 -1
- package/lib/components/VDataTable/composables/paginate.mjs.map +1 -1
- package/lib/components/VDataTable/composables/select.mjs.map +1 -1
- package/lib/components/VDataTable/index.d.mts +411 -4142
- package/lib/components/VDataTable/types.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.css +4 -0
- package/lib/components/VDatePicker/VDatePicker.mjs +29 -22
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.sass +4 -0
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +3 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +32 -36
- package/lib/components/VDialog/VDialog.css +4 -1
- package/lib/components/VDialog/VDialog.sass +4 -3
- package/lib/components/VField/VField.mjs +1 -1
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/index.d.mts +33 -41
- package/lib/components/VFileInput/index.d.mts +144 -385
- package/lib/components/VImg/VImg.mjs +10 -2
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VInput/VInput.mjs +1 -1
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/index.d.mts +72 -154
- package/lib/components/VItemGroup/VItemGroup.mjs +1 -1
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VItemGroup/index.d.mts +49 -189
- package/lib/components/VList/VList.mjs +2 -2
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +58 -95
- package/lib/components/VOtpInput/index.d.mts +8 -11
- package/lib/components/VRadio/index.d.mts +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.mjs +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.mts +77 -211
- package/lib/components/VRangeSlider/index.d.mts +22 -25
- package/lib/components/VSelect/VSelect.mjs +2 -2
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +67 -91
- package/lib/components/VSelectionControl/VSelectionControl.mjs +2 -2
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.mts +9 -18
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +1 -1
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
- package/lib/components/VSelectionControlGroup/index.d.mts +46 -68
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.mts +47 -101
- package/lib/components/VSlider/index.d.mts +22 -25
- package/lib/components/VSwitch/VSwitch.mjs +7 -5
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.mts +90 -303
- package/lib/components/VTextField/index.d.mts +173 -451
- package/lib/components/VTextarea/index.d.mts +144 -385
- package/lib/components/VValidation/VValidation.mjs +2 -2
- package/lib/components/VValidation/VValidation.mjs.map +1 -1
- package/lib/components/VValidation/index.d.mts +88 -359
- package/lib/components/VWindow/VWindow.mjs +1 -1
- package/lib/components/VWindow/VWindow.mjs.map +1 -1
- package/lib/components/VWindow/index.d.mts +58 -245
- package/lib/components/index.d.mts +1933 -9130
- package/lib/composables/date/DateAdapter.mjs.map +1 -1
- package/lib/composables/date/adapters/vuetify.mjs +1 -13
- package/lib/composables/date/adapters/vuetify.mjs.map +1 -1
- package/lib/composables/date/date.mjs +1 -1
- package/lib/composables/date/date.mjs.map +1 -1
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/composables/virtual.mjs +11 -13
- package/lib/composables/virtual.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +40 -44
- package/lib/labs/VConfirmEdit/index.d.mts +0 -10
- package/lib/labs/components.d.mts +0 -10
- package/lib/util/defineComponent.mjs.map +1 -1
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode,
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, JSXComponent, PropType } from 'vue';
|
|
3
3
|
// @ts-ignore
|
|
4
4
|
import * as vue_router from 'vue-router';
|
|
5
5
|
|
|
@@ -33,9 +33,7 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare function deepEqual(a: any, b: any): boolean;
|
|
36
|
-
type SelectItemKey = boolean | null | undefined | string | readonly (string | number)[] | ((item:
|
|
37
|
-
type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
|
|
38
|
-
declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T, (...args: T) => any>>;
|
|
36
|
+
type SelectItemKey<T = Record<string, any>> = boolean | null | undefined | string | readonly (string | number)[] | ((item: T, fallback?: any) => any);
|
|
39
37
|
|
|
40
38
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
|
41
39
|
|
|
@@ -107,8 +105,8 @@ declare const VListItem: {
|
|
|
107
105
|
value?: any;
|
|
108
106
|
title?: string | number | boolean | undefined;
|
|
109
107
|
class?: any;
|
|
110
|
-
onClick?: (
|
|
111
|
-
onClickOnce?:
|
|
108
|
+
onClick?: (((args_0: MouseEvent) => void) & ((e: MouseEvent | KeyboardEvent) => any)) | undefined;
|
|
109
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
112
110
|
href?: string | undefined;
|
|
113
111
|
elevation?: string | number | undefined;
|
|
114
112
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -169,8 +167,8 @@ declare const VListItem: {
|
|
|
169
167
|
value?: any;
|
|
170
168
|
title?: string | number | boolean | undefined;
|
|
171
169
|
class?: any;
|
|
172
|
-
onClick?:
|
|
173
|
-
onClickOnce?:
|
|
170
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
171
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
174
172
|
href?: string | undefined;
|
|
175
173
|
elevation?: string | number | undefined;
|
|
176
174
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -263,8 +261,8 @@ declare const VListItem: {
|
|
|
263
261
|
value?: any;
|
|
264
262
|
title?: string | number | boolean | undefined;
|
|
265
263
|
class?: any;
|
|
266
|
-
onClick?:
|
|
267
|
-
onClickOnce?:
|
|
264
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
265
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
268
266
|
href?: string | undefined;
|
|
269
267
|
elevation?: string | number | undefined;
|
|
270
268
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -383,8 +381,8 @@ declare const VListItem: {
|
|
|
383
381
|
value?: any;
|
|
384
382
|
title?: string | number | boolean | undefined;
|
|
385
383
|
class?: any;
|
|
386
|
-
onClick?:
|
|
387
|
-
onClickOnce?:
|
|
384
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
385
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
388
386
|
href?: string | undefined;
|
|
389
387
|
elevation?: string | number | undefined;
|
|
390
388
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -453,8 +451,8 @@ declare const VListItem: {
|
|
|
453
451
|
value?: any;
|
|
454
452
|
title?: string | number | boolean | undefined;
|
|
455
453
|
class?: any;
|
|
456
|
-
onClick?:
|
|
457
|
-
onClickOnce?:
|
|
454
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
455
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
458
456
|
href?: string | undefined;
|
|
459
457
|
elevation?: string | number | undefined;
|
|
460
458
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -598,8 +596,8 @@ declare const VListItem: {
|
|
|
598
596
|
subtitle: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
599
597
|
title: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
600
598
|
value: null;
|
|
601
|
-
onClick: PropType<
|
|
602
|
-
onClickOnce: PropType<
|
|
599
|
+
onClick: PropType<(args_0: MouseEvent) => void>;
|
|
600
|
+
onClickOnce: PropType<(args_0: MouseEvent) => void>;
|
|
603
601
|
}, vue.ExtractPropTypes<{
|
|
604
602
|
color: StringConstructor;
|
|
605
603
|
variant: Omit<{
|
|
@@ -672,8 +670,8 @@ declare const VListItem: {
|
|
|
672
670
|
subtitle: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
673
671
|
title: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
674
672
|
value: null;
|
|
675
|
-
onClick: PropType<
|
|
676
|
-
onClickOnce: PropType<
|
|
673
|
+
onClick: PropType<(args_0: MouseEvent) => void>;
|
|
674
|
+
onClickOnce: PropType<(args_0: MouseEvent) => void>;
|
|
677
675
|
}>>;
|
|
678
676
|
type VListItem = InstanceType<typeof VListItem>;
|
|
679
677
|
|
|
@@ -749,6 +747,7 @@ interface ListItem<T = any> extends InternalItem<T> {
|
|
|
749
747
|
interface InternalListItem<T = any> extends ListItem<T> {
|
|
750
748
|
type?: 'item' | 'subheader' | 'divider';
|
|
751
749
|
}
|
|
750
|
+
type ItemType<T> = T extends readonly (infer U)[] ? U : never;
|
|
752
751
|
declare const VList: {
|
|
753
752
|
new (...args: any[]): {
|
|
754
753
|
$: vue.ComponentInternalInstance;
|
|
@@ -768,10 +767,6 @@ declare const VList: {
|
|
|
768
767
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
769
768
|
lines: false | "one" | "two" | "three";
|
|
770
769
|
returnObject: boolean;
|
|
771
|
-
itemTitle: SelectItemKey;
|
|
772
|
-
itemValue: SelectItemKey;
|
|
773
|
-
itemChildren: SelectItemKey;
|
|
774
|
-
itemProps: SelectItemKey;
|
|
775
770
|
itemType: string;
|
|
776
771
|
}> & Omit<{
|
|
777
772
|
nav: boolean;
|
|
@@ -787,10 +782,6 @@ declare const VList: {
|
|
|
787
782
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
788
783
|
lines: false | "one" | "two" | "three";
|
|
789
784
|
returnObject: boolean;
|
|
790
|
-
itemTitle: SelectItemKey;
|
|
791
|
-
itemValue: SelectItemKey;
|
|
792
|
-
itemChildren: SelectItemKey;
|
|
793
|
-
itemProps: SelectItemKey;
|
|
794
785
|
itemType: string;
|
|
795
786
|
height?: string | number | undefined;
|
|
796
787
|
width?: string | number | undefined;
|
|
@@ -801,17 +792,13 @@ declare const VList: {
|
|
|
801
792
|
minHeight?: string | number | undefined;
|
|
802
793
|
minWidth?: string | number | undefined;
|
|
803
794
|
class?: any;
|
|
804
|
-
selected?: readonly unknown[] | undefined;
|
|
805
795
|
elevation?: string | number | undefined;
|
|
806
796
|
theme?: string | undefined;
|
|
807
797
|
rounded?: string | number | boolean | undefined;
|
|
808
798
|
bgColor?: string | undefined;
|
|
809
799
|
baseColor?: string | undefined;
|
|
810
800
|
activeClass?: string | undefined;
|
|
811
|
-
opened?: readonly unknown[] | undefined;
|
|
812
801
|
activeColor?: string | undefined;
|
|
813
|
-
"onUpdate:selected"?: ((val: unknown[]) => any) | undefined;
|
|
814
|
-
"onUpdate:opened"?: ((val: unknown[]) => any) | undefined;
|
|
815
802
|
"onClick:open"?: ((value: {
|
|
816
803
|
id: unknown;
|
|
817
804
|
value: boolean;
|
|
@@ -836,10 +823,6 @@ declare const VList: {
|
|
|
836
823
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
837
824
|
lines: false | "one" | "two" | "three";
|
|
838
825
|
returnObject: boolean;
|
|
839
|
-
itemTitle: SelectItemKey;
|
|
840
|
-
itemValue: SelectItemKey;
|
|
841
|
-
itemChildren: SelectItemKey;
|
|
842
|
-
itemProps: SelectItemKey;
|
|
843
826
|
itemType: string;
|
|
844
827
|
} & {
|
|
845
828
|
height?: string | number | undefined;
|
|
@@ -851,18 +834,14 @@ declare const VList: {
|
|
|
851
834
|
minHeight?: string | number | undefined;
|
|
852
835
|
minWidth?: string | number | undefined;
|
|
853
836
|
class?: any;
|
|
854
|
-
selected?: readonly unknown[] | undefined;
|
|
855
837
|
elevation?: string | number | undefined;
|
|
856
838
|
theme?: string | undefined;
|
|
857
839
|
rounded?: string | number | boolean | undefined;
|
|
858
840
|
bgColor?: string | undefined;
|
|
859
841
|
baseColor?: string | undefined;
|
|
860
842
|
activeClass?: string | undefined;
|
|
861
|
-
opened?: readonly unknown[] | undefined;
|
|
862
843
|
activeColor?: string | undefined;
|
|
863
844
|
} & {
|
|
864
|
-
"onUpdate:selected"?: ((val: unknown[]) => any) | undefined;
|
|
865
|
-
"onUpdate:opened"?: ((val: unknown[]) => any) | undefined;
|
|
866
845
|
"onClick:open"?: ((value: {
|
|
867
846
|
id: unknown;
|
|
868
847
|
value: boolean;
|
|
@@ -873,7 +852,7 @@ declare const VList: {
|
|
|
873
852
|
value: boolean;
|
|
874
853
|
path: unknown[];
|
|
875
854
|
}) => any) | undefined;
|
|
876
|
-
}, "nav" | "style" | "disabled" | "tag" | "mandatory" | "rounded" | "density" | "variant" | "slim" | "valueComparator" | "selectStrategy" | "openStrategy" | "lines" | "returnObject" | "
|
|
855
|
+
}, "nav" | "style" | "disabled" | "tag" | "mandatory" | "rounded" | "density" | "variant" | "slim" | "valueComparator" | "selectStrategy" | "openStrategy" | "lines" | "returnObject" | "itemType">;
|
|
877
856
|
$attrs: {
|
|
878
857
|
[x: string]: unknown;
|
|
879
858
|
};
|
|
@@ -882,7 +861,7 @@ declare const VList: {
|
|
|
882
861
|
};
|
|
883
862
|
$slots: Readonly<{
|
|
884
863
|
title?: ((arg: ListItemTitleSlot & {
|
|
885
|
-
item:
|
|
864
|
+
item: any;
|
|
886
865
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
887
866
|
[key: string]: any;
|
|
888
867
|
}>[]) | undefined;
|
|
@@ -892,7 +871,7 @@ declare const VList: {
|
|
|
892
871
|
isIndeterminate: boolean;
|
|
893
872
|
select: (value: boolean) => void;
|
|
894
873
|
} & {
|
|
895
|
-
item:
|
|
874
|
+
item: any;
|
|
896
875
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
897
876
|
[key: string]: any;
|
|
898
877
|
}>[]) | undefined;
|
|
@@ -902,12 +881,12 @@ declare const VList: {
|
|
|
902
881
|
isIndeterminate: boolean;
|
|
903
882
|
select: (value: boolean) => void;
|
|
904
883
|
} & {
|
|
905
|
-
item:
|
|
884
|
+
item: any;
|
|
906
885
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
907
886
|
[key: string]: any;
|
|
908
887
|
}>[]) | undefined;
|
|
909
888
|
subtitle?: ((arg: ListItemSubtitleSlot & {
|
|
910
|
-
item:
|
|
889
|
+
item: any;
|
|
911
890
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
912
891
|
[key: string]: any;
|
|
913
892
|
}>[]) | undefined;
|
|
@@ -961,7 +940,7 @@ declare const VList: {
|
|
|
961
940
|
id: unknown;
|
|
962
941
|
value: boolean;
|
|
963
942
|
path: unknown[];
|
|
964
|
-
}) => void)
|
|
943
|
+
}) => void);
|
|
965
944
|
$el: any;
|
|
966
945
|
$options: vue.ComponentOptionsBase<{
|
|
967
946
|
nav: boolean;
|
|
@@ -977,10 +956,6 @@ declare const VList: {
|
|
|
977
956
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
978
957
|
lines: false | "one" | "two" | "three";
|
|
979
958
|
returnObject: boolean;
|
|
980
|
-
itemTitle: SelectItemKey;
|
|
981
|
-
itemValue: SelectItemKey;
|
|
982
|
-
itemChildren: SelectItemKey;
|
|
983
|
-
itemProps: SelectItemKey;
|
|
984
959
|
itemType: string;
|
|
985
960
|
} & {
|
|
986
961
|
height?: string | number | undefined;
|
|
@@ -992,18 +967,14 @@ declare const VList: {
|
|
|
992
967
|
minHeight?: string | number | undefined;
|
|
993
968
|
minWidth?: string | number | undefined;
|
|
994
969
|
class?: any;
|
|
995
|
-
selected?: readonly unknown[] | undefined;
|
|
996
970
|
elevation?: string | number | undefined;
|
|
997
971
|
theme?: string | undefined;
|
|
998
972
|
rounded?: string | number | boolean | undefined;
|
|
999
973
|
bgColor?: string | undefined;
|
|
1000
974
|
baseColor?: string | undefined;
|
|
1001
975
|
activeClass?: string | undefined;
|
|
1002
|
-
opened?: readonly unknown[] | undefined;
|
|
1003
976
|
activeColor?: string | undefined;
|
|
1004
977
|
} & {
|
|
1005
|
-
"onUpdate:selected"?: ((val: unknown[]) => any) | undefined;
|
|
1006
|
-
"onUpdate:opened"?: ((val: unknown[]) => any) | undefined;
|
|
1007
978
|
"onClick:open"?: ((value: {
|
|
1008
979
|
id: unknown;
|
|
1009
980
|
value: boolean;
|
|
@@ -1019,8 +990,8 @@ declare const VList: {
|
|
|
1019
990
|
select: (id: unknown, value: boolean, event?: Event | undefined) => void;
|
|
1020
991
|
focus: (location?: 'next' | 'prev' | 'first' | 'last') => void;
|
|
1021
992
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
1022
|
-
'update:selected': (
|
|
1023
|
-
'update:opened': (
|
|
993
|
+
'update:selected': (value: unknown[]) => boolean;
|
|
994
|
+
'update:opened': (value: unknown[]) => boolean;
|
|
1024
995
|
'click:open': (value: {
|
|
1025
996
|
id: unknown;
|
|
1026
997
|
value: boolean;
|
|
@@ -1031,7 +1002,7 @@ declare const VList: {
|
|
|
1031
1002
|
value: boolean;
|
|
1032
1003
|
path: unknown[];
|
|
1033
1004
|
}) => boolean;
|
|
1034
|
-
}, "$children" | "v-slot:default" | "items" | "v-slots" | "v-slot:title" | "v-slot:append" | "v-slot:prepend" | "v-slot:subtitle" | "v-slot:item" | "v-slot:header" | "v-slot:divider" | "v-slot:subheader">, string, {
|
|
1005
|
+
}, "$children" | "selected" | "v-slot:default" | "items" | "v-slots" | "v-slot:title" | "v-slot:append" | "v-slot:prepend" | "opened" | "v-slot:subtitle" | "v-slot:item" | "v-slot:header" | "v-slot:divider" | "v-slot:subheader" | "itemTitle" | "itemValue" | "itemChildren" | "itemProps" | "update:selected" | "update:opened">, string, {
|
|
1035
1006
|
nav: boolean;
|
|
1036
1007
|
style: vue.StyleValue;
|
|
1037
1008
|
disabled: boolean;
|
|
@@ -1046,14 +1017,10 @@ declare const VList: {
|
|
|
1046
1017
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
1047
1018
|
lines: false | "one" | "two" | "three";
|
|
1048
1019
|
returnObject: boolean;
|
|
1049
|
-
itemTitle: SelectItemKey;
|
|
1050
|
-
itemValue: SelectItemKey;
|
|
1051
|
-
itemChildren: SelectItemKey;
|
|
1052
|
-
itemProps: SelectItemKey;
|
|
1053
1020
|
itemType: string;
|
|
1054
1021
|
}, {}, string, vue.SlotsType<Partial<{
|
|
1055
1022
|
title: (arg: ListItemTitleSlot & {
|
|
1056
|
-
item:
|
|
1023
|
+
item: any;
|
|
1057
1024
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1058
1025
|
[key: string]: any;
|
|
1059
1026
|
}>[];
|
|
@@ -1063,7 +1030,7 @@ declare const VList: {
|
|
|
1063
1030
|
isIndeterminate: boolean;
|
|
1064
1031
|
select: (value: boolean) => void;
|
|
1065
1032
|
} & {
|
|
1066
|
-
item:
|
|
1033
|
+
item: any;
|
|
1067
1034
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1068
1035
|
[key: string]: any;
|
|
1069
1036
|
}>[];
|
|
@@ -1073,12 +1040,12 @@ declare const VList: {
|
|
|
1073
1040
|
isIndeterminate: boolean;
|
|
1074
1041
|
select: (value: boolean) => void;
|
|
1075
1042
|
} & {
|
|
1076
|
-
item:
|
|
1043
|
+
item: any;
|
|
1077
1044
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1078
1045
|
[key: string]: any;
|
|
1079
1046
|
}>[];
|
|
1080
1047
|
subtitle: (arg: ListItemSubtitleSlot & {
|
|
1081
|
-
item:
|
|
1048
|
+
item: any;
|
|
1082
1049
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1083
1050
|
[key: string]: any;
|
|
1084
1051
|
}>[];
|
|
@@ -1155,10 +1122,6 @@ declare const VList: {
|
|
|
1155
1122
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
1156
1123
|
lines: false | "one" | "two" | "three";
|
|
1157
1124
|
returnObject: boolean;
|
|
1158
|
-
itemTitle: SelectItemKey;
|
|
1159
|
-
itemValue: SelectItemKey;
|
|
1160
|
-
itemChildren: SelectItemKey;
|
|
1161
|
-
itemProps: SelectItemKey;
|
|
1162
1125
|
itemType: string;
|
|
1163
1126
|
} & {
|
|
1164
1127
|
height?: string | number | undefined;
|
|
@@ -1170,18 +1133,14 @@ declare const VList: {
|
|
|
1170
1133
|
minHeight?: string | number | undefined;
|
|
1171
1134
|
minWidth?: string | number | undefined;
|
|
1172
1135
|
class?: any;
|
|
1173
|
-
selected?: readonly unknown[] | undefined;
|
|
1174
1136
|
elevation?: string | number | undefined;
|
|
1175
1137
|
theme?: string | undefined;
|
|
1176
1138
|
rounded?: string | number | boolean | undefined;
|
|
1177
1139
|
bgColor?: string | undefined;
|
|
1178
1140
|
baseColor?: string | undefined;
|
|
1179
1141
|
activeClass?: string | undefined;
|
|
1180
|
-
opened?: readonly unknown[] | undefined;
|
|
1181
1142
|
activeColor?: string | undefined;
|
|
1182
1143
|
} & {
|
|
1183
|
-
"onUpdate:selected"?: ((val: unknown[]) => any) | undefined;
|
|
1184
|
-
"onUpdate:opened"?: ((val: unknown[]) => any) | undefined;
|
|
1185
1144
|
"onClick:open"?: ((value: {
|
|
1186
1145
|
id: unknown;
|
|
1187
1146
|
value: boolean;
|
|
@@ -1214,10 +1173,6 @@ declare const VList: {
|
|
|
1214
1173
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
1215
1174
|
lines: false | "one" | "two" | "three";
|
|
1216
1175
|
returnObject: boolean;
|
|
1217
|
-
itemTitle: SelectItemKey;
|
|
1218
|
-
itemValue: SelectItemKey;
|
|
1219
|
-
itemChildren: SelectItemKey;
|
|
1220
|
-
itemProps: SelectItemKey;
|
|
1221
1176
|
itemType: string;
|
|
1222
1177
|
} & {
|
|
1223
1178
|
height?: string | number | undefined;
|
|
@@ -1229,18 +1184,14 @@ declare const VList: {
|
|
|
1229
1184
|
minHeight?: string | number | undefined;
|
|
1230
1185
|
minWidth?: string | number | undefined;
|
|
1231
1186
|
class?: any;
|
|
1232
|
-
selected?: readonly unknown[] | undefined;
|
|
1233
1187
|
elevation?: string | number | undefined;
|
|
1234
1188
|
theme?: string | undefined;
|
|
1235
1189
|
rounded?: string | number | boolean | undefined;
|
|
1236
1190
|
bgColor?: string | undefined;
|
|
1237
1191
|
baseColor?: string | undefined;
|
|
1238
1192
|
activeClass?: string | undefined;
|
|
1239
|
-
opened?: readonly unknown[] | undefined;
|
|
1240
1193
|
activeColor?: string | undefined;
|
|
1241
1194
|
} & {
|
|
1242
|
-
"onUpdate:selected"?: ((val: unknown[]) => any) | undefined;
|
|
1243
|
-
"onUpdate:opened"?: ((val: unknown[]) => any) | undefined;
|
|
1244
1195
|
"onClick:open"?: ((value: {
|
|
1245
1196
|
id: unknown;
|
|
1246
1197
|
value: boolean;
|
|
@@ -1256,8 +1207,8 @@ declare const VList: {
|
|
|
1256
1207
|
select: (id: unknown, value: boolean, event?: Event | undefined) => void;
|
|
1257
1208
|
focus: (location?: 'next' | 'prev' | 'first' | 'last') => void;
|
|
1258
1209
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
1259
|
-
'update:selected': (
|
|
1260
|
-
'update:opened': (
|
|
1210
|
+
'update:selected': (value: unknown[]) => boolean;
|
|
1211
|
+
'update:opened': (value: unknown[]) => boolean;
|
|
1261
1212
|
'click:open': (value: {
|
|
1262
1213
|
id: unknown;
|
|
1263
1214
|
value: boolean;
|
|
@@ -1268,7 +1219,7 @@ declare const VList: {
|
|
|
1268
1219
|
value: boolean;
|
|
1269
1220
|
path: unknown[];
|
|
1270
1221
|
}) => boolean;
|
|
1271
|
-
}, "$children" | "v-slot:default" | "items" | "v-slots" | "v-slot:title" | "v-slot:append" | "v-slot:prepend" | "v-slot:subtitle" | "v-slot:item" | "v-slot:header" | "v-slot:divider" | "v-slot:subheader">, string, {
|
|
1222
|
+
}, "$children" | "selected" | "v-slot:default" | "items" | "v-slots" | "v-slot:title" | "v-slot:append" | "v-slot:prepend" | "opened" | "v-slot:subtitle" | "v-slot:item" | "v-slot:header" | "v-slot:divider" | "v-slot:subheader" | "itemTitle" | "itemValue" | "itemChildren" | "itemProps" | "update:selected" | "update:opened">, string, {
|
|
1272
1223
|
nav: boolean;
|
|
1273
1224
|
style: vue.StyleValue;
|
|
1274
1225
|
disabled: boolean;
|
|
@@ -1283,14 +1234,10 @@ declare const VList: {
|
|
|
1283
1234
|
openStrategy: NonNullable<OpenStrategyProp>;
|
|
1284
1235
|
lines: false | "one" | "two" | "three";
|
|
1285
1236
|
returnObject: boolean;
|
|
1286
|
-
itemTitle: SelectItemKey;
|
|
1287
|
-
itemValue: SelectItemKey;
|
|
1288
|
-
itemChildren: SelectItemKey;
|
|
1289
|
-
itemProps: SelectItemKey;
|
|
1290
1237
|
itemType: string;
|
|
1291
1238
|
}, {}, string, vue.SlotsType<Partial<{
|
|
1292
1239
|
title: (arg: ListItemTitleSlot & {
|
|
1293
|
-
item:
|
|
1240
|
+
item: any;
|
|
1294
1241
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1295
1242
|
[key: string]: any;
|
|
1296
1243
|
}>[];
|
|
@@ -1300,7 +1247,7 @@ declare const VList: {
|
|
|
1300
1247
|
isIndeterminate: boolean;
|
|
1301
1248
|
select: (value: boolean) => void;
|
|
1302
1249
|
} & {
|
|
1303
|
-
item:
|
|
1250
|
+
item: any;
|
|
1304
1251
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1305
1252
|
[key: string]: any;
|
|
1306
1253
|
}>[];
|
|
@@ -1310,12 +1257,12 @@ declare const VList: {
|
|
|
1310
1257
|
isIndeterminate: boolean;
|
|
1311
1258
|
select: (value: boolean) => void;
|
|
1312
1259
|
} & {
|
|
1313
|
-
item:
|
|
1260
|
+
item: any;
|
|
1314
1261
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1315
1262
|
[key: string]: any;
|
|
1316
1263
|
}>[];
|
|
1317
1264
|
subtitle: (arg: ListItemSubtitleSlot & {
|
|
1318
|
-
item:
|
|
1265
|
+
item: any;
|
|
1319
1266
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1320
1267
|
[key: string]: any;
|
|
1321
1268
|
}>[];
|
|
@@ -1358,11 +1305,27 @@ declare const VList: {
|
|
|
1358
1305
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1359
1306
|
[key: string]: any;
|
|
1360
1307
|
}>[];
|
|
1361
|
-
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T_1>(props: {
|
|
1362
|
-
items?: T_1
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1308
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T_1 extends readonly any[], S = unknown, O = unknown>(props: {
|
|
1309
|
+
items?: T_1 | undefined;
|
|
1310
|
+
itemTitle?: SelectItemKey<ItemType<T_1>>;
|
|
1311
|
+
itemValue?: SelectItemKey<ItemType<T_1>>;
|
|
1312
|
+
itemChildren?: SelectItemKey<ItemType<T_1>>;
|
|
1313
|
+
itemProps?: SelectItemKey<ItemType<T_1>>;
|
|
1314
|
+
selected?: readonly S[] | undefined;
|
|
1315
|
+
'onUpdate:selected'?: ((value: S[]) => void) | undefined;
|
|
1316
|
+
opened?: readonly O[] | undefined;
|
|
1317
|
+
'onUpdate:opened'?: ((value: O[]) => void) | undefined;
|
|
1318
|
+
}, slots: VListChildrenSlots<ItemType<T_1>>) => GenericProps<{
|
|
1319
|
+
items?: T_1 | undefined;
|
|
1320
|
+
itemTitle?: SelectItemKey<ItemType<T_1>>;
|
|
1321
|
+
itemValue?: SelectItemKey<ItemType<T_1>>;
|
|
1322
|
+
itemChildren?: SelectItemKey<ItemType<T_1>>;
|
|
1323
|
+
itemProps?: SelectItemKey<ItemType<T_1>>;
|
|
1324
|
+
selected?: readonly S[] | undefined;
|
|
1325
|
+
'onUpdate:selected'?: ((value: S[]) => void) | undefined;
|
|
1326
|
+
opened?: readonly O[] | undefined;
|
|
1327
|
+
'onUpdate:opened'?: ((value: O[]) => void) | undefined;
|
|
1328
|
+
}, VListChildrenSlots<ItemType<T_1>>>) & FilterPropsOptions<{
|
|
1366
1329
|
color: StringConstructor;
|
|
1367
1330
|
variant: Omit<{
|
|
1368
1331
|
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { ComponentPropsOptions, ExtractPropTypes,
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, nextTick, PropType } from 'vue';
|
|
3
3
|
|
|
4
4
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
5
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
|
|
9
|
-
declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T, (...args: T) => any>>;
|
|
10
|
-
|
|
11
8
|
declare const VOtpInput: {
|
|
12
9
|
new (...args: any[]): {
|
|
13
10
|
$: vue.ComponentInternalInstance;
|
|
@@ -52,7 +49,7 @@ declare const VOtpInput: {
|
|
|
52
49
|
modelValue?: string | number | undefined;
|
|
53
50
|
bgColor?: string | undefined;
|
|
54
51
|
baseColor?: string | undefined;
|
|
55
|
-
'onUpdate:focused'?: (
|
|
52
|
+
'onUpdate:focused'?: (((args_0: boolean) => void) & ((val: boolean) => any)) | undefined;
|
|
56
53
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
57
54
|
default?: (() => vue.VNodeChild) | undefined;
|
|
58
55
|
loader?: (() => vue.VNodeChild) | undefined;
|
|
@@ -93,7 +90,7 @@ declare const VOtpInput: {
|
|
|
93
90
|
modelValue?: string | number | undefined;
|
|
94
91
|
bgColor?: string | undefined;
|
|
95
92
|
baseColor?: string | undefined;
|
|
96
|
-
'onUpdate:focused'?:
|
|
93
|
+
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
|
97
94
|
} & {
|
|
98
95
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
99
96
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -157,7 +154,7 @@ declare const VOtpInput: {
|
|
|
157
154
|
modelValue?: string | number | undefined;
|
|
158
155
|
bgColor?: string | undefined;
|
|
159
156
|
baseColor?: string | undefined;
|
|
160
|
-
'onUpdate:focused'?:
|
|
157
|
+
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
|
161
158
|
} & {
|
|
162
159
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
163
160
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -253,7 +250,7 @@ declare const VOtpInput: {
|
|
|
253
250
|
modelValue?: string | number | undefined;
|
|
254
251
|
bgColor?: string | undefined;
|
|
255
252
|
baseColor?: string | undefined;
|
|
256
|
-
'onUpdate:focused'?:
|
|
253
|
+
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
|
257
254
|
} & {
|
|
258
255
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
259
256
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -309,7 +306,7 @@ declare const VOtpInput: {
|
|
|
309
306
|
modelValue?: string | number | undefined;
|
|
310
307
|
bgColor?: string | undefined;
|
|
311
308
|
baseColor?: string | undefined;
|
|
312
|
-
'onUpdate:focused'?:
|
|
309
|
+
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
|
313
310
|
} & {
|
|
314
311
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
315
312
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -386,7 +383,7 @@ declare const VOtpInput: {
|
|
|
386
383
|
bgColor: StringConstructor;
|
|
387
384
|
baseColor: StringConstructor;
|
|
388
385
|
focused: BooleanConstructor;
|
|
389
|
-
'onUpdate:focused': PropType<
|
|
386
|
+
'onUpdate:focused': PropType<(args_0: boolean) => void>;
|
|
390
387
|
height: (StringConstructor | NumberConstructor)[];
|
|
391
388
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
392
389
|
maxWidth: (StringConstructor | NumberConstructor)[];
|
|
@@ -442,7 +439,7 @@ declare const VOtpInput: {
|
|
|
442
439
|
bgColor: StringConstructor;
|
|
443
440
|
baseColor: StringConstructor;
|
|
444
441
|
focused: BooleanConstructor;
|
|
445
|
-
'onUpdate:focused': PropType<
|
|
442
|
+
'onUpdate:focused': PropType<(args_0: boolean) => void>;
|
|
446
443
|
height: (StringConstructor | NumberConstructor)[];
|
|
447
444
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
448
445
|
maxWidth: (StringConstructor | NumberConstructor)[];
|
|
@@ -13,7 +13,7 @@ type IconValue = string | (string | [path: string, opacity: number])[] | JSXComp
|
|
|
13
13
|
declare const IconValue: PropType<IconValue>;
|
|
14
14
|
|
|
15
15
|
type SelectionControlSlot = {
|
|
16
|
-
model: WritableComputedRef<
|
|
16
|
+
model: WritableComputedRef<boolean>;
|
|
17
17
|
textColorClasses: Ref<string[]>;
|
|
18
18
|
textColorStyles: Ref<CSSProperties>;
|
|
19
19
|
backgroundColorClasses: Ref<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VRadioGroup.mjs","names":["makeVInputProps","VInput","VLabel","VSelectionControl","makeSelectionControlGroupProps","VSelectionControlGroup","IconValue","useProxiedModel","computed","filterInputAttrs","genericComponent","getUid","omit","propsFactory","useRender","makeVRadioGroupProps","height","type","Number","String","default","trueIcon","falseIcon","VRadioGroup","name","inheritAttrs","props","emits","
|
|
1
|
+
{"version":3,"file":"VRadioGroup.mjs","names":["makeVInputProps","VInput","VLabel","VSelectionControl","makeSelectionControlGroupProps","VSelectionControlGroup","IconValue","useProxiedModel","computed","filterInputAttrs","genericComponent","getUid","omit","propsFactory","useRender","makeVRadioGroupProps","height","type","Number","String","default","trueIcon","falseIcon","VRadioGroup","name","inheritAttrs","props","emits","value","setup","_ref","attrs","slots","uid","id","model","rootAttrs","controlAttrs","inputProps","filterProps","controlProps","label","for","_createVNode","_mergeProps","class","style","$event","_ref2","messagesId","isDisabled","isReadonly","_Fragment","undefined"],"sources":["../../../src/components/VRadioGroup/VRadioGroup.tsx"],"sourcesContent":["// Styles\nimport './VRadioGroup.sass'\n\n// Components\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VLabel } from '@/components/VLabel'\nimport { VSelectionControl } from '@/components/VSelectionControl'\nimport { makeSelectionControlGroupProps, VSelectionControlGroup } from '@/components/VSelectionControlGroup/VSelectionControlGroup'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed } from 'vue'\nimport { filterInputAttrs, genericComponent, getUid, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VInputSlots } from '@/components/VInput/VInput'\nimport type { GenericProps } from '@/util'\n\nexport type VRadioGroupSlots = Omit<VInputSlots, 'default'> & {\n default: never\n label: {\n label: string | undefined\n props: Record<string, any>\n }\n}\n\nexport const makeVRadioGroupProps = propsFactory({\n height: {\n type: [Number, String],\n default: 'auto',\n },\n\n ...makeVInputProps(),\n ...omit(makeSelectionControlGroupProps(), ['multiple']),\n\n trueIcon: {\n type: IconValue,\n default: '$radioOn',\n },\n falseIcon: {\n type: IconValue,\n default: '$radioOff',\n },\n type: {\n type: String,\n default: 'radio',\n },\n}, 'VRadioGroup')\n\nexport const VRadioGroup = genericComponent<new <T>(\n props: {\n modelValue?: T | null\n 'onUpdate:modelValue'?: (value: T | null) => void\n },\n slots: VRadioGroupSlots,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VRadioGroup',\n\n inheritAttrs: false,\n\n props: makeVRadioGroupProps(),\n\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n\n setup (props, { attrs, slots }) {\n const uid = getUid()\n const id = computed(() => props.id || `radio-group-${uid}`)\n const model = useProxiedModel(props, 'modelValue')\n\n useRender(() => {\n const [rootAttrs, controlAttrs] = filterInputAttrs(attrs)\n const inputProps = VInput.filterProps(props)\n const controlProps = VSelectionControl.filterProps(props)\n const label = slots.label\n ? slots.label({\n label: props.label,\n props: { for: id.value },\n })\n : props.label\n\n return (\n <VInput\n class={[\n 'v-radio-group',\n props.class,\n ]}\n style={ props.style }\n { ...rootAttrs }\n { ...inputProps }\n v-model={ model.value }\n id={ id.value }\n >\n {{\n ...slots,\n default: ({\n id,\n messagesId,\n isDisabled,\n isReadonly,\n }) => (\n <>\n { label && (\n <VLabel id={ id.value }>\n { label }\n </VLabel>\n )}\n\n <VSelectionControlGroup\n { ...controlProps }\n id={ id.value }\n aria-describedby={ messagesId.value }\n defaultsTarget=\"VRadio\"\n trueIcon={ props.trueIcon }\n falseIcon={ props.falseIcon }\n type={ props.type }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n aria-labelledby={ label ? id.value : undefined }\n multiple={ false }\n { ...controlAttrs }\n v-model={ model.value }\n v-slots={ slots }\n />\n </>\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VRadioGroup = InstanceType<typeof VRadioGroup>\n"],"mappings":"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"}
|