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,
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, JSXComponent, PropType } from 'vue';
|
|
3
3
|
// @ts-ignore
|
|
4
4
|
import * as vue_router from 'vue-router';
|
|
5
5
|
|
|
@@ -7,9 +7,6 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
|
7
7
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
|
|
11
|
-
declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T, (...args: T) => any>>;
|
|
12
|
-
|
|
13
10
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
|
14
11
|
|
|
15
12
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
|
@@ -69,8 +66,8 @@ declare const VChip: {
|
|
|
69
66
|
value?: any;
|
|
70
67
|
text?: string | undefined;
|
|
71
68
|
class?: any;
|
|
72
|
-
onClick?: (
|
|
73
|
-
onClickOnce?:
|
|
69
|
+
onClick?: (((args_0: MouseEvent) => void) & ((e: MouseEvent | KeyboardEvent) => any)) | undefined;
|
|
70
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
74
71
|
href?: string | undefined;
|
|
75
72
|
elevation?: string | number | undefined;
|
|
76
73
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -165,8 +162,8 @@ declare const VChip: {
|
|
|
165
162
|
value?: any;
|
|
166
163
|
text?: string | undefined;
|
|
167
164
|
class?: any;
|
|
168
|
-
onClick?:
|
|
169
|
-
onClickOnce?:
|
|
165
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
166
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
170
167
|
href?: string | undefined;
|
|
171
168
|
elevation?: string | number | undefined;
|
|
172
169
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -305,8 +302,8 @@ declare const VChip: {
|
|
|
305
302
|
value?: any;
|
|
306
303
|
text?: string | undefined;
|
|
307
304
|
class?: any;
|
|
308
|
-
onClick?:
|
|
309
|
-
onClickOnce?:
|
|
305
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
306
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
310
307
|
href?: string | undefined;
|
|
311
308
|
elevation?: string | number | undefined;
|
|
312
309
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -481,8 +478,8 @@ declare const VChip: {
|
|
|
481
478
|
value?: any;
|
|
482
479
|
text?: string | undefined;
|
|
483
480
|
class?: any;
|
|
484
|
-
onClick?:
|
|
485
|
-
onClickOnce?:
|
|
481
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
482
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
486
483
|
href?: string | undefined;
|
|
487
484
|
elevation?: string | number | undefined;
|
|
488
485
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -585,8 +582,8 @@ declare const VChip: {
|
|
|
585
582
|
value?: any;
|
|
586
583
|
text?: string | undefined;
|
|
587
584
|
class?: any;
|
|
588
|
-
onClick?:
|
|
589
|
-
onClickOnce?:
|
|
585
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
586
|
+
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
590
587
|
href?: string | undefined;
|
|
591
588
|
elevation?: string | number | undefined;
|
|
592
589
|
to?: vue_router.RouteLocationRaw | undefined;
|
|
@@ -798,8 +795,8 @@ declare const VChip: {
|
|
|
798
795
|
type: BooleanConstructor;
|
|
799
796
|
default: boolean;
|
|
800
797
|
};
|
|
801
|
-
onClick: PropType<
|
|
802
|
-
onClickOnce: PropType<
|
|
798
|
+
onClick: PropType<(args_0: MouseEvent) => void>;
|
|
799
|
+
onClickOnce: PropType<(args_0: MouseEvent) => void>;
|
|
803
800
|
}, vue.ExtractPropTypes<{
|
|
804
801
|
color: StringConstructor;
|
|
805
802
|
variant: Omit<{
|
|
@@ -885,8 +882,8 @@ declare const VChip: {
|
|
|
885
882
|
type: BooleanConstructor;
|
|
886
883
|
default: boolean;
|
|
887
884
|
};
|
|
888
|
-
onClick: PropType<
|
|
889
|
-
onClickOnce: PropType<
|
|
885
|
+
onClick: PropType<(args_0: MouseEvent) => void>;
|
|
886
|
+
onClickOnce: PropType<(args_0: MouseEvent) => void>;
|
|
890
887
|
}>>;
|
|
891
888
|
type VChip = InstanceType<typeof VChip>;
|
|
892
889
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VChipGroup.mjs","names":["makeComponentProps","provideDefaults","makeGroupProps","useGroup","makeTagProps","makeThemeProps","provideTheme","makeVariantProps","toRef","deepEqual","genericComponent","propsFactory","useRender","VChipGroupSymbol","Symbol","for","makeVChipGroupProps","column","Boolean","filter","valueComparator","type","Function","default","selectedClass","variant","VChipGroup","name","props","emits","value","setup","_ref","slots","themeClasses","isSelected","select","next","prev","selected","VChip","color","disabled","_createVNode","tag","class","style"],"sources":["../../../src/components/VChipGroup/VChipGroup.tsx"],"sourcesContent":["// Styles\nimport './VChipGroup.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeGroupProps, useGroup } from '@/composables/group'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { makeVariantProps } from '@/composables/variant'\n\n// Utilities\nimport { toRef } from 'vue'\nimport { deepEqual, genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport const VChipGroupSymbol = Symbol.for('vuetify:v-chip-group')\n\nexport const makeVChipGroupProps = propsFactory({\n column: Boolean,\n filter: Boolean,\n valueComparator: {\n type: Function as PropType<typeof deepEqual>,\n default: deepEqual,\n },\n\n ...makeComponentProps(),\n ...makeGroupProps({ selectedClass: 'v-chip--selected' }),\n ...makeTagProps(),\n ...makeThemeProps(),\n ...makeVariantProps({ variant: 'tonal' } as const),\n}, 'VChipGroup')\n\ntype VChipGroupSlots = {\n default: {\n isSelected: (id: number) => boolean\n select: (id: number, value: boolean) => void\n next: () => void\n prev: () => void\n selected: readonly number[]\n }\n}\n\nexport const VChipGroup = genericComponent<
|
|
1
|
+
{"version":3,"file":"VChipGroup.mjs","names":["makeComponentProps","provideDefaults","makeGroupProps","useGroup","makeTagProps","makeThemeProps","provideTheme","makeVariantProps","toRef","deepEqual","genericComponent","propsFactory","useRender","VChipGroupSymbol","Symbol","for","makeVChipGroupProps","column","Boolean","filter","valueComparator","type","Function","default","selectedClass","variant","VChipGroup","name","props","emits","value","setup","_ref","slots","themeClasses","isSelected","select","next","prev","selected","VChip","color","disabled","_createVNode","tag","class","style"],"sources":["../../../src/components/VChipGroup/VChipGroup.tsx"],"sourcesContent":["// Styles\nimport './VChipGroup.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeGroupProps, useGroup } from '@/composables/group'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { makeVariantProps } from '@/composables/variant'\n\n// Utilities\nimport { toRef } from 'vue'\nimport { deepEqual, genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { GenericProps } from '@/util'\n\nexport const VChipGroupSymbol = Symbol.for('vuetify:v-chip-group')\n\nexport const makeVChipGroupProps = propsFactory({\n column: Boolean,\n filter: Boolean,\n valueComparator: {\n type: Function as PropType<typeof deepEqual>,\n default: deepEqual,\n },\n\n ...makeComponentProps(),\n ...makeGroupProps({ selectedClass: 'v-chip--selected' }),\n ...makeTagProps(),\n ...makeThemeProps(),\n ...makeVariantProps({ variant: 'tonal' } as const),\n}, 'VChipGroup')\n\ntype VChipGroupSlots = {\n default: {\n isSelected: (id: number) => boolean\n select: (id: number, value: boolean) => void\n next: () => void\n prev: () => void\n selected: readonly number[]\n }\n}\n\nexport const VChipGroup = genericComponent<new <T>(\n props: {\n modelValue?: T\n 'onUpdate:modelValue'?: (value: T) => void\n },\n slots: VChipGroupSlots,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VChipGroup',\n\n props: makeVChipGroupProps(),\n\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { isSelected, select, next, prev, selected } = useGroup(props, VChipGroupSymbol)\n\n provideDefaults({\n VChip: {\n color: toRef(props, 'color'),\n disabled: toRef(props, 'disabled'),\n filter: toRef(props, 'filter'),\n variant: toRef(props, 'variant'),\n },\n })\n\n useRender(() => (\n <props.tag\n class={[\n 'v-chip-group',\n {\n 'v-chip-group--column': props.column,\n },\n themeClasses.value,\n props.class,\n ]}\n style={ props.style }\n >\n { slots.default?.({\n isSelected,\n select,\n next,\n prev,\n selected: selected.value,\n })}\n </props.tag>\n ))\n\n return {}\n },\n})\n\nexport type VChipGroup = InstanceType<typeof VChipGroup>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,eAAe;AAAA,SACfC,cAAc,EAAEC,QAAQ;AAAA,SACxBC,YAAY;AAAA,SACZC,cAAc,EAAEC,YAAY;AAAA,SAC5BC,gBAAgB,yCAEzB;AACA,SAASC,KAAK,QAAQ,KAAK;AAAA,SAClBC,SAAS,EAAEC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAE7D;AAIA,OAAO,MAAMC,gBAAgB,GAAGC,MAAM,CAACC,GAAG,CAAC,sBAAsB,CAAC;AAElE,OAAO,MAAMC,mBAAmB,GAAGL,YAAY,CAAC;EAC9CM,MAAM,EAAEC,OAAO;EACfC,MAAM,EAAED,OAAO;EACfE,eAAe,EAAE;IACfC,IAAI,EAAEC,QAAsC;IAC5CC,OAAO,EAAEd;EACX,CAAC;EAED,GAAGT,kBAAkB,EAAE;EACvB,GAAGE,cAAc,CAAC;IAAEsB,aAAa,EAAE;EAAmB,CAAC,CAAC;EACxD,GAAGpB,YAAY,EAAE;EACjB,GAAGC,cAAc,EAAE;EACnB,GAAGE,gBAAgB,CAAC;IAAEkB,OAAO,EAAE;EAAQ,CAAC;AAC1C,CAAC,EAAE,YAAY,CAAC;AAYhB,OAAO,MAAMC,UAAU,GAAGhB,gBAAgB,EAMM,CAAC;EAC/CiB,IAAI,EAAE,YAAY;EAElBC,KAAK,EAAEZ,mBAAmB,EAAE;EAE5Ba,KAAK,EAAE;IACL,mBAAmB,EAAGC,KAAU,IAAK;EACvC,CAAC;EAEDC,KAAKA,CAAEH,KAAK,EAAAI,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrB,MAAM;MAAEE;IAAa,CAAC,GAAG5B,YAAY,CAACsB,KAAK,CAAC;IAC5C,MAAM;MAAEO,UAAU;MAAEC,MAAM;MAAEC,IAAI;MAAEC,IAAI;MAAEC;IAAS,CAAC,GAAGpC,QAAQ,CAACyB,KAAK,EAAEf,gBAAgB,CAAC;IAEtFZ,eAAe,CAAC;MACduC,KAAK,EAAE;QACLC,KAAK,EAAEjC,KAAK,CAACoB,KAAK,EAAE,OAAO,CAAC;QAC5Bc,QAAQ,EAAElC,KAAK,CAACoB,KAAK,EAAE,UAAU,CAAC;QAClCT,MAAM,EAAEX,KAAK,CAACoB,KAAK,EAAE,QAAQ,CAAC;QAC9BH,OAAO,EAAEjB,KAAK,CAACoB,KAAK,EAAE,SAAS;MACjC;IACF,CAAC,CAAC;IAEFhB,SAAS,CAAC,MAAA+B,YAAA,CAAAf,KAAA,CAAAgB,GAAA;MAAA,SAEC,CACL,cAAc,EACd;QACE,sBAAsB,EAAEhB,KAAK,CAACX;MAChC,CAAC,EACDiB,YAAY,CAACJ,KAAK,EAClBF,KAAK,CAACiB,KAAK,CACZ;MAAA,SACOjB,KAAK,CAACkB;IAAK;MAAAvB,OAAA,EAAAA,CAAA,MAEjBU,KAAK,CAACV,OAAO,GAAG;QAChBY,UAAU;QACVC,MAAM;QACNC,IAAI;QACJC,IAAI;QACJC,QAAQ,EAAEA,QAAQ,CAACT;MACrB,CAAC,CAAC;IAAA,EAEL,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
@@ -1,12 +1,46 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { ComponentPropsOptions, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, PropType } from 'vue';
|
|
3
3
|
|
|
4
|
+
type SlotsToProps<U extends RawSlots, T = MakeInternalSlots<U>> = {
|
|
5
|
+
$children?: (VNodeChild | (T extends {
|
|
6
|
+
default: infer V;
|
|
7
|
+
} ? V : {}) | {
|
|
8
|
+
[K in keyof T]?: T[K];
|
|
9
|
+
});
|
|
10
|
+
'v-slots'?: {
|
|
11
|
+
[K in keyof T]?: T[K] | false;
|
|
12
|
+
};
|
|
13
|
+
} & {
|
|
14
|
+
[K in keyof T as `v-slot:${K & string}`]?: T[K] | false;
|
|
15
|
+
};
|
|
16
|
+
type RawSlots = Record<string, unknown>;
|
|
17
|
+
type Slot<T> = [T] extends [never] ? () => VNodeChild : (arg: T) => VNodeChild;
|
|
18
|
+
type VueSlot<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];
|
|
19
|
+
type MakeInternalSlots<T extends RawSlots> = {
|
|
20
|
+
[K in keyof T]: Slot<T[K]>;
|
|
21
|
+
};
|
|
22
|
+
type MakeSlots<T extends RawSlots> = {
|
|
23
|
+
[K in keyof T]: VueSlot<T[K]>;
|
|
24
|
+
};
|
|
25
|
+
type GenericProps<Props, Slots extends Record<string, unknown>> = {
|
|
26
|
+
$props: Props & SlotsToProps<Slots>;
|
|
27
|
+
$slots: MakeSlots<Slots>;
|
|
28
|
+
};
|
|
4
29
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
30
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
6
31
|
}
|
|
7
32
|
|
|
8
33
|
declare function deepEqual(a: any, b: any): boolean;
|
|
9
34
|
|
|
35
|
+
type VChipGroupSlots = {
|
|
36
|
+
default: {
|
|
37
|
+
isSelected: (id: number) => boolean;
|
|
38
|
+
select: (id: number, value: boolean) => void;
|
|
39
|
+
next: () => void;
|
|
40
|
+
prev: () => void;
|
|
41
|
+
selected: readonly number[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
10
44
|
declare const VChipGroup: {
|
|
11
45
|
new (...args: any[]): {
|
|
12
46
|
$: vue.ComponentInternalInstance;
|
|
@@ -19,7 +53,6 @@ declare const VChipGroup: {
|
|
|
19
53
|
tag: string;
|
|
20
54
|
column: boolean;
|
|
21
55
|
variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
22
|
-
modelValue: any;
|
|
23
56
|
selectedClass: string;
|
|
24
57
|
valueComparator: typeof deepEqual;
|
|
25
58
|
}> & Omit<{
|
|
@@ -37,39 +70,6 @@ declare const VChipGroup: {
|
|
|
37
70
|
class?: any;
|
|
38
71
|
mandatory?: boolean | "force" | undefined;
|
|
39
72
|
theme?: string | undefined;
|
|
40
|
-
modelValue?: any;
|
|
41
|
-
$children?: vue.VNodeChild | {
|
|
42
|
-
default?: ((arg: {
|
|
43
|
-
isSelected: (id: number) => boolean;
|
|
44
|
-
select: (id: number, value: boolean) => void;
|
|
45
|
-
next: () => void;
|
|
46
|
-
prev: () => void;
|
|
47
|
-
selected: readonly number[];
|
|
48
|
-
}) => vue.VNodeChild) | undefined;
|
|
49
|
-
} | ((arg: {
|
|
50
|
-
isSelected: (id: number) => boolean;
|
|
51
|
-
select: (id: number, value: boolean) => void;
|
|
52
|
-
next: () => void;
|
|
53
|
-
prev: () => void;
|
|
54
|
-
selected: readonly number[];
|
|
55
|
-
}) => vue.VNodeChild);
|
|
56
|
-
'v-slots'?: {
|
|
57
|
-
default?: false | ((arg: {
|
|
58
|
-
isSelected: (id: number) => boolean;
|
|
59
|
-
select: (id: number, value: boolean) => void;
|
|
60
|
-
next: () => void;
|
|
61
|
-
prev: () => void;
|
|
62
|
-
selected: readonly number[];
|
|
63
|
-
}) => vue.VNodeChild) | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
"v-slot:default"?: false | ((arg: {
|
|
66
|
-
isSelected: (id: number) => boolean;
|
|
67
|
-
select: (id: number, value: boolean) => void;
|
|
68
|
-
next: () => void;
|
|
69
|
-
prev: () => void;
|
|
70
|
-
selected: readonly number[];
|
|
71
|
-
}) => vue.VNodeChild) | undefined;
|
|
72
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
73
73
|
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
74
74
|
filter: boolean;
|
|
75
75
|
style: vue.StyleValue;
|
|
@@ -86,43 +86,7 @@ declare const VChipGroup: {
|
|
|
86
86
|
class?: any;
|
|
87
87
|
mandatory?: boolean | "force" | undefined;
|
|
88
88
|
theme?: string | undefined;
|
|
89
|
-
|
|
90
|
-
} & {
|
|
91
|
-
$children?: vue.VNodeChild | {
|
|
92
|
-
default?: ((arg: {
|
|
93
|
-
isSelected: (id: number) => boolean;
|
|
94
|
-
select: (id: number, value: boolean) => void;
|
|
95
|
-
next: () => void;
|
|
96
|
-
prev: () => void;
|
|
97
|
-
selected: readonly number[];
|
|
98
|
-
}) => vue.VNodeChild) | undefined;
|
|
99
|
-
} | ((arg: {
|
|
100
|
-
isSelected: (id: number) => boolean;
|
|
101
|
-
select: (id: number, value: boolean) => void;
|
|
102
|
-
next: () => void;
|
|
103
|
-
prev: () => void;
|
|
104
|
-
selected: readonly number[];
|
|
105
|
-
}) => vue.VNodeChild);
|
|
106
|
-
'v-slots'?: {
|
|
107
|
-
default?: false | ((arg: {
|
|
108
|
-
isSelected: (id: number) => boolean;
|
|
109
|
-
select: (id: number, value: boolean) => void;
|
|
110
|
-
next: () => void;
|
|
111
|
-
prev: () => void;
|
|
112
|
-
selected: readonly number[];
|
|
113
|
-
}) => vue.VNodeChild) | undefined;
|
|
114
|
-
} | undefined;
|
|
115
|
-
} & {
|
|
116
|
-
"v-slot:default"?: false | ((arg: {
|
|
117
|
-
isSelected: (id: number) => boolean;
|
|
118
|
-
select: (id: number, value: boolean) => void;
|
|
119
|
-
next: () => void;
|
|
120
|
-
prev: () => void;
|
|
121
|
-
selected: readonly number[];
|
|
122
|
-
}) => vue.VNodeChild) | undefined;
|
|
123
|
-
} & {
|
|
124
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
125
|
-
}, "filter" | "style" | "disabled" | "multiple" | "tag" | "column" | "variant" | "modelValue" | "selectedClass" | "valueComparator">;
|
|
89
|
+
} & {}, "filter" | "style" | "disabled" | "multiple" | "tag" | "column" | "variant" | "selectedClass" | "valueComparator">;
|
|
126
90
|
$attrs: {
|
|
127
91
|
[x: string]: unknown;
|
|
128
92
|
};
|
|
@@ -142,7 +106,7 @@ declare const VChipGroup: {
|
|
|
142
106
|
}>;
|
|
143
107
|
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
144
108
|
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
145
|
-
$emit: (event:
|
|
109
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
146
110
|
$el: any;
|
|
147
111
|
$options: vue.ComponentOptionsBase<{
|
|
148
112
|
filter: boolean;
|
|
@@ -160,45 +124,9 @@ declare const VChipGroup: {
|
|
|
160
124
|
class?: any;
|
|
161
125
|
mandatory?: boolean | "force" | undefined;
|
|
162
126
|
theme?: string | undefined;
|
|
163
|
-
|
|
164
|
-
} & {
|
|
165
|
-
$children?: vue.VNodeChild | {
|
|
166
|
-
default?: ((arg: {
|
|
167
|
-
isSelected: (id: number) => boolean;
|
|
168
|
-
select: (id: number, value: boolean) => void;
|
|
169
|
-
next: () => void;
|
|
170
|
-
prev: () => void;
|
|
171
|
-
selected: readonly number[];
|
|
172
|
-
}) => vue.VNodeChild) | undefined;
|
|
173
|
-
} | ((arg: {
|
|
174
|
-
isSelected: (id: number) => boolean;
|
|
175
|
-
select: (id: number, value: boolean) => void;
|
|
176
|
-
next: () => void;
|
|
177
|
-
prev: () => void;
|
|
178
|
-
selected: readonly number[];
|
|
179
|
-
}) => vue.VNodeChild);
|
|
180
|
-
'v-slots'?: {
|
|
181
|
-
default?: false | ((arg: {
|
|
182
|
-
isSelected: (id: number) => boolean;
|
|
183
|
-
select: (id: number, value: boolean) => void;
|
|
184
|
-
next: () => void;
|
|
185
|
-
prev: () => void;
|
|
186
|
-
selected: readonly number[];
|
|
187
|
-
}) => vue.VNodeChild) | undefined;
|
|
188
|
-
} | undefined;
|
|
189
|
-
} & {
|
|
190
|
-
"v-slot:default"?: false | ((arg: {
|
|
191
|
-
isSelected: (id: number) => boolean;
|
|
192
|
-
select: (id: number, value: boolean) => void;
|
|
193
|
-
next: () => void;
|
|
194
|
-
prev: () => void;
|
|
195
|
-
selected: readonly number[];
|
|
196
|
-
}) => vue.VNodeChild) | undefined;
|
|
197
|
-
} & {
|
|
198
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
199
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
127
|
+
} & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
200
128
|
'update:modelValue': (value: any) => boolean;
|
|
201
|
-
}, string, {
|
|
129
|
+
}, "$children" | "v-slot:default" | "v-slots" | "modelValue" | "update:modelValue">, string, {
|
|
202
130
|
filter: boolean;
|
|
203
131
|
style: vue.StyleValue;
|
|
204
132
|
disabled: boolean;
|
|
@@ -206,7 +134,6 @@ declare const VChipGroup: {
|
|
|
206
134
|
tag: string;
|
|
207
135
|
column: boolean;
|
|
208
136
|
variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
209
|
-
modelValue: any;
|
|
210
137
|
selectedClass: string;
|
|
211
138
|
valueComparator: typeof deepEqual;
|
|
212
139
|
}, {}, string, vue.SlotsType<Partial<{
|
|
@@ -255,43 +182,7 @@ declare const VChipGroup: {
|
|
|
255
182
|
class?: any;
|
|
256
183
|
mandatory?: boolean | "force" | undefined;
|
|
257
184
|
theme?: string | undefined;
|
|
258
|
-
|
|
259
|
-
} & {
|
|
260
|
-
$children?: vue.VNodeChild | {
|
|
261
|
-
default?: ((arg: {
|
|
262
|
-
isSelected: (id: number) => boolean;
|
|
263
|
-
select: (id: number, value: boolean) => void;
|
|
264
|
-
next: () => void;
|
|
265
|
-
prev: () => void;
|
|
266
|
-
selected: readonly number[];
|
|
267
|
-
}) => vue.VNodeChild) | undefined;
|
|
268
|
-
} | ((arg: {
|
|
269
|
-
isSelected: (id: number) => boolean;
|
|
270
|
-
select: (id: number, value: boolean) => void;
|
|
271
|
-
next: () => void;
|
|
272
|
-
prev: () => void;
|
|
273
|
-
selected: readonly number[];
|
|
274
|
-
}) => vue.VNodeChild);
|
|
275
|
-
'v-slots'?: {
|
|
276
|
-
default?: false | ((arg: {
|
|
277
|
-
isSelected: (id: number) => boolean;
|
|
278
|
-
select: (id: number, value: boolean) => void;
|
|
279
|
-
next: () => void;
|
|
280
|
-
prev: () => void;
|
|
281
|
-
selected: readonly number[];
|
|
282
|
-
}) => vue.VNodeChild) | undefined;
|
|
283
|
-
} | undefined;
|
|
284
|
-
} & {
|
|
285
|
-
"v-slot:default"?: false | ((arg: {
|
|
286
|
-
isSelected: (id: number) => boolean;
|
|
287
|
-
select: (id: number, value: boolean) => void;
|
|
288
|
-
next: () => void;
|
|
289
|
-
prev: () => void;
|
|
290
|
-
selected: readonly number[];
|
|
291
|
-
}) => vue.VNodeChild) | undefined;
|
|
292
|
-
} & {
|
|
293
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
294
|
-
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
185
|
+
} & {} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
295
186
|
__isFragment?: undefined;
|
|
296
187
|
__isTeleport?: undefined;
|
|
297
188
|
__isSuspense?: undefined;
|
|
@@ -311,45 +202,9 @@ declare const VChipGroup: {
|
|
|
311
202
|
class?: any;
|
|
312
203
|
mandatory?: boolean | "force" | undefined;
|
|
313
204
|
theme?: string | undefined;
|
|
314
|
-
|
|
315
|
-
} & {
|
|
316
|
-
$children?: vue.VNodeChild | {
|
|
317
|
-
default?: ((arg: {
|
|
318
|
-
isSelected: (id: number) => boolean;
|
|
319
|
-
select: (id: number, value: boolean) => void;
|
|
320
|
-
next: () => void;
|
|
321
|
-
prev: () => void;
|
|
322
|
-
selected: readonly number[];
|
|
323
|
-
}) => vue.VNodeChild) | undefined;
|
|
324
|
-
} | ((arg: {
|
|
325
|
-
isSelected: (id: number) => boolean;
|
|
326
|
-
select: (id: number, value: boolean) => void;
|
|
327
|
-
next: () => void;
|
|
328
|
-
prev: () => void;
|
|
329
|
-
selected: readonly number[];
|
|
330
|
-
}) => vue.VNodeChild);
|
|
331
|
-
'v-slots'?: {
|
|
332
|
-
default?: false | ((arg: {
|
|
333
|
-
isSelected: (id: number) => boolean;
|
|
334
|
-
select: (id: number, value: boolean) => void;
|
|
335
|
-
next: () => void;
|
|
336
|
-
prev: () => void;
|
|
337
|
-
selected: readonly number[];
|
|
338
|
-
}) => vue.VNodeChild) | undefined;
|
|
339
|
-
} | undefined;
|
|
340
|
-
} & {
|
|
341
|
-
"v-slot:default"?: false | ((arg: {
|
|
342
|
-
isSelected: (id: number) => boolean;
|
|
343
|
-
select: (id: number, value: boolean) => void;
|
|
344
|
-
next: () => void;
|
|
345
|
-
prev: () => void;
|
|
346
|
-
selected: readonly number[];
|
|
347
|
-
}) => vue.VNodeChild) | undefined;
|
|
348
|
-
} & {
|
|
349
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
350
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
205
|
+
} & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
351
206
|
'update:modelValue': (value: any) => boolean;
|
|
352
|
-
}, string, {
|
|
207
|
+
}, "$children" | "v-slot:default" | "v-slots" | "modelValue" | "update:modelValue">, string, {
|
|
353
208
|
filter: boolean;
|
|
354
209
|
style: vue.StyleValue;
|
|
355
210
|
disabled: boolean;
|
|
@@ -357,7 +212,6 @@ declare const VChipGroup: {
|
|
|
357
212
|
tag: string;
|
|
358
213
|
column: boolean;
|
|
359
214
|
variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
360
|
-
modelValue: any;
|
|
361
215
|
selectedClass: string;
|
|
362
216
|
valueComparator: typeof deepEqual;
|
|
363
217
|
}, {}, string, vue.SlotsType<Partial<{
|
|
@@ -370,7 +224,13 @@ declare const VChipGroup: {
|
|
|
370
224
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
371
225
|
[key: string]: any;
|
|
372
226
|
}>[];
|
|
373
|
-
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps &
|
|
227
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T_1>(props: {
|
|
228
|
+
modelValue?: T_1 | undefined;
|
|
229
|
+
'onUpdate:modelValue'?: ((value: T_1) => void) | undefined;
|
|
230
|
+
}, slots: VChipGroupSlots) => GenericProps<{
|
|
231
|
+
modelValue?: T_1 | undefined;
|
|
232
|
+
'onUpdate:modelValue'?: ((value: T_1) => void) | undefined;
|
|
233
|
+
}, VChipGroupSlots>) & FilterPropsOptions<{
|
|
374
234
|
color: StringConstructor;
|
|
375
235
|
variant: Omit<{
|
|
376
236
|
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
@@ -60,9 +60,9 @@ export const VCombobox = genericComponent()({
|
|
|
60
60
|
props: makeVComboboxProps(),
|
|
61
61
|
emits: {
|
|
62
62
|
'update:focused': focused => true,
|
|
63
|
-
'update:modelValue':
|
|
64
|
-
'update:search':
|
|
65
|
-
'update:menu':
|
|
63
|
+
'update:modelValue': value => true,
|
|
64
|
+
'update:search': value => true,
|
|
65
|
+
'update:menu': value => true
|
|
66
66
|
},
|
|
67
67
|
setup(props, _ref) {
|
|
68
68
|
let {
|