123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523 |
- import * as vue from 'vue';
- import { Ref, DeepReadonly, JSXComponent, PropType, CSSProperties, App } from 'vue';
- interface LocaleMessages {
- [key: string]: LocaleMessages | string;
- }
- interface LocaleOptions {
- messages?: LocaleMessages;
- locale?: string;
- fallback?: string;
- adapter?: LocaleInstance;
- }
- interface LocaleInstance {
- name: string;
- messages: Ref<LocaleMessages>;
- current: Ref<string>;
- fallback: Ref<string>;
- t: (key: string, ...params: unknown[]) => string;
- n: (value: number) => string;
- provide: (props: LocaleOptions) => LocaleInstance;
- }
- declare function useLocale(): LocaleInstance & RtlInstance;
- interface RtlOptions {
- rtl?: Record<string, boolean>;
- }
- interface RtlInstance {
- isRtl: Ref<boolean>;
- rtl: Ref<Record<string, boolean>>;
- rtlClasses: Ref<string>;
- }
- declare function useRtl(): {
- isRtl: Ref<boolean>;
- rtlClasses: Ref<string>;
- };
- type DeepPartial<T> = T extends object ? {
- [P in keyof T]?: DeepPartial<T[P]>;
- } : T;
- type ThemeOptions = false | {
- cspNonce?: string;
- defaultTheme?: string;
- variations?: false | VariationsOptions;
- themes?: Record<string, ThemeDefinition>;
- };
- type ThemeDefinition = DeepPartial<InternalThemeDefinition>;
- interface VariationsOptions {
- colors: string[];
- lighten: number;
- darken: number;
- }
- interface InternalThemeDefinition {
- dark: boolean;
- colors: Colors;
- variables: Record<string, string | number>;
- }
- interface Colors extends BaseColors, OnColors {
- [key: string]: string;
- }
- interface BaseColors {
- background: string;
- surface: string;
- primary: string;
- secondary: string;
- success: string;
- warning: string;
- error: string;
- info: string;
- }
- interface OnColors {
- 'on-background': string;
- 'on-surface': string;
- 'on-primary': string;
- 'on-secondary': string;
- 'on-success': string;
- 'on-warning': string;
- 'on-error': string;
- 'on-info': string;
- }
- interface ThemeInstance {
- readonly isDisabled: boolean;
- readonly themes: Ref<Record<string, InternalThemeDefinition>>;
- readonly name: Readonly<Ref<string>>;
- readonly current: DeepReadonly<Ref<InternalThemeDefinition>>;
- readonly computedThemes: DeepReadonly<Ref<Record<string, InternalThemeDefinition>>>;
- readonly themeClasses: Readonly<Ref<string | undefined>>;
- readonly styles: Readonly<Ref<string>>;
- readonly global: {
- readonly name: Ref<string>;
- readonly current: DeepReadonly<Ref<InternalThemeDefinition>>;
- };
- }
- declare function useTheme(): ThemeInstance;
- declare const breakpoints: readonly ["sm", "md", "lg", "xl", "xxl"];
- type Breakpoint = typeof breakpoints[number];
- type DisplayBreakpoint = 'xs' | Breakpoint;
- type DisplayThresholds = {
- [key in DisplayBreakpoint]: number;
- };
- interface DisplayOptions {
- mobileBreakpoint?: number | DisplayBreakpoint;
- thresholds?: Partial<DisplayThresholds>;
- }
- type SSROptions = boolean | {
- clientWidth: number;
- clientHeight?: number;
- };
- interface DisplayPlatform {
- android: boolean;
- ios: boolean;
- cordova: boolean;
- electron: boolean;
- chrome: boolean;
- edge: boolean;
- firefox: boolean;
- opera: boolean;
- win: boolean;
- mac: boolean;
- linux: boolean;
- touch: boolean;
- ssr: boolean;
- }
- interface DisplayInstance {
- xs: Ref<boolean>;
- sm: Ref<boolean>;
- md: Ref<boolean>;
- lg: Ref<boolean>;
- xl: Ref<boolean>;
- xxl: Ref<boolean>;
- smAndUp: Ref<boolean>;
- mdAndUp: Ref<boolean>;
- lgAndUp: Ref<boolean>;
- xlAndUp: Ref<boolean>;
- smAndDown: Ref<boolean>;
- mdAndDown: Ref<boolean>;
- lgAndDown: Ref<boolean>;
- xlAndDown: Ref<boolean>;
- name: Ref<DisplayBreakpoint>;
- height: Ref<number>;
- width: Ref<number>;
- mobile: Ref<boolean>;
- mobileBreakpoint: Ref<number | DisplayBreakpoint>;
- platform: Ref<DisplayPlatform>;
- thresholds: Ref<DisplayThresholds>;
- update(): void;
- }
- declare function useDisplay(): DisplayInstance;
- type DefaultsInstance = undefined | {
- [key: string]: undefined | Record<string, unknown>;
- global?: Record<string, unknown>;
- };
- type DefaultsOptions = Partial<DefaultsInstance>;
- declare function useDefaults<T extends Record<string, any>>(props: T, name?: string): T;
- declare function useDefaults(props?: undefined, name?: string): Record<string, any>;
- type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
- declare const IconValue: PropType<IconValue>;
- interface IconAliases {
- [name: string]: IconValue;
- complete: IconValue;
- cancel: IconValue;
- close: IconValue;
- delete: IconValue;
- clear: IconValue;
- success: IconValue;
- info: IconValue;
- warning: IconValue;
- error: IconValue;
- prev: IconValue;
- next: IconValue;
- checkboxOn: IconValue;
- checkboxOff: IconValue;
- checkboxIndeterminate: IconValue;
- delimiter: IconValue;
- sortAsc: IconValue;
- sortDesc: IconValue;
- expand: IconValue;
- menu: IconValue;
- subgroup: IconValue;
- dropdown: IconValue;
- radioOn: IconValue;
- radioOff: IconValue;
- edit: IconValue;
- ratingEmpty: IconValue;
- ratingFull: IconValue;
- ratingHalf: IconValue;
- loading: IconValue;
- first: IconValue;
- last: IconValue;
- unfold: IconValue;
- file: IconValue;
- plus: IconValue;
- minus: IconValue;
- calendar: IconValue;
- }
- interface IconProps {
- tag: string;
- icon?: IconValue;
- disabled?: Boolean;
- }
- type IconComponent = JSXComponent<IconProps>;
- interface IconSet {
- component: IconComponent;
- }
- type IconOptions = {
- defaultSet?: string;
- aliases?: Partial<IconAliases>;
- sets?: Record<string, IconSet>;
- };
- interface DateAdapter<T> {
- date(value?: any): T | null;
- format(date: T, formatString: string): string;
- toJsDate(value: T): Date;
- startOfMonth(date: T): T;
- endOfMonth(date: T): T;
- startOfYear(date: T): T;
- endOfYear(date: T): T;
- isBefore(date: T, comparing: T): boolean;
- isAfter(date: T, comparing: T): boolean;
- isEqual(date: T, comparing: T): boolean;
- isSameDay(date: T, comparing: T): boolean;
- isSameMonth(date: T, comparing: T): boolean;
- isValid(date: any): boolean;
- isWithinRange(date: T, range: [T, T]): boolean;
- addDays(date: T, amount: number): T;
- addMonths(date: T, amount: number): T;
- getYear(date: T): number;
- setYear(date: T, year: number): T;
- getDiff(date: T, comparing: T | string, unit?: string): number;
- getWeekArray(date: T): T[][];
- getWeekdays(): string[];
- getMonth(date: T): number;
- }
- interface DateInstance<T> extends DateAdapter<T> {
- locale?: any;
- }
- type InternalDateOptions<T = any> = {
- adapter: (new (options: {
- locale: any;
- }) => DateInstance<T>) | DateInstance<T>;
- formats?: Record<string, string>;
- locale: Record<string, any>;
- };
- type DateOptions<T = any> = Partial<InternalDateOptions<T>>;
- type Position = 'top' | 'left' | 'right' | 'bottom';
- interface Layer {
- top: number;
- bottom: number;
- left: number;
- right: number;
- }
- interface LayoutItem extends Layer {
- id: string;
- size: number;
- position: Position;
- }
- declare function useLayout(): {
- getLayoutItem: (id: string) => LayoutItem | undefined;
- mainRect: Ref<Layer>;
- mainStyles: Ref<CSSProperties>;
- };
- interface FieldValidationResult {
- id: number | string;
- errorMessages: string[];
- }
- interface FormValidationResult {
- valid: boolean;
- errors: FieldValidationResult[];
- }
- interface SubmitEventPromise extends SubmitEvent, Promise<FormValidationResult> {
- }
- interface VuetifyOptions {
- aliases?: Record<string, any>;
- blueprint?: Blueprint;
- components?: Record<string, any>;
- date?: DateOptions;
- directives?: Record<string, any>;
- defaults?: DefaultsOptions;
- display?: DisplayOptions;
- theme?: ThemeOptions;
- icons?: IconOptions;
- locale?: LocaleOptions & RtlOptions;
- ssr?: SSROptions;
- }
- interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {
- }
- declare function createVuetify(vuetify?: VuetifyOptions): {
- install: (app: App) => void;
- defaults: vue.Ref<DefaultsInstance>;
- display: DisplayInstance;
- theme: ThemeInstance & {
- install: (app: App<any>) => void;
- };
- icons: Record<string, any>;
- locale: {
- isRtl: vue.Ref<boolean>;
- rtl: vue.Ref<Record<string, boolean>>;
- rtlClasses: vue.Ref<string>;
- name: string;
- messages: vue.Ref<LocaleMessages>;
- current: vue.Ref<string>;
- fallback: vue.Ref<string>;
- t: (key: string, ...params: unknown[]) => string;
- n: (value: number) => string;
- provide: (props: LocaleOptions) => LocaleInstance;
- };
- date: Record<string, any>;
- };
- declare namespace createVuetify {
- var version: string;
- }
- declare const version: string;
- export { Blueprint, DateInstance, DateOptions, DefaultsInstance, DisplayBreakpoint, DisplayInstance, DisplayThresholds, IconAliases, IconOptions, IconProps, IconSet, LocaleInstance, LocaleMessages, LocaleOptions, RtlInstance, RtlOptions, SubmitEventPromise, ThemeDefinition, ThemeInstance, VuetifyOptions, createVuetify, useDefaults, useDisplay, useLayout, useLocale, useRtl, useTheme, version };
- /* eslint-disable local-rules/sort-imports */
- import type { ComponentPublicInstance, FunctionalComponent, UnwrapNestedRefs, VNodeChild } from 'vue'
- declare global {
- namespace JSX {
- interface ElementChildrenAttribute {
- $children: {}
- }
- }
- }
- declare module 'vue' {
- export type JSXComponent<Props = any> = { new (): ComponentPublicInstance<Props> } | FunctionalComponent<Props>
- }
- declare module '@vue/runtime-dom' {
- export interface HTMLAttributes {
- $children?: VNodeChild
- }
- export interface SVGAttributes {
- $children?: VNodeChild
- }
- }
- declare module '@vue/runtime-core' {
- interface Vuetify {
- defaults: DefaultsInstance
- display: UnwrapNestedRefs<DisplayInstance>
- theme: UnwrapNestedRefs<ThemeInstance>
- icons: IconOptions
- locale: UnwrapNestedRefs<LocaleInstance & RtlInstance>
- date: DateOptions
- }
- export interface ComponentCustomProperties {
- $vuetify: Vuetify
- }
- export interface GlobalComponents {
- VApp: typeof import('vuetify/components')['VApp']
- VAppBar: typeof import('vuetify/components')['VAppBar']
- VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
- VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
- VAlert: typeof import('vuetify/components')['VAlert']
- VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
- VAvatar: typeof import('vuetify/components')['VAvatar']
- VBadge: typeof import('vuetify/components')['VBadge']
- VBanner: typeof import('vuetify/components')['VBanner']
- VBannerActions: typeof import('vuetify/components')['VBannerActions']
- VBannerText: typeof import('vuetify/components')['VBannerText']
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
- VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
- VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
- VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
- VBtn: typeof import('vuetify/components')['VBtn']
- VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
- VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
- VCard: typeof import('vuetify/components')['VCard']
- VCardActions: typeof import('vuetify/components')['VCardActions']
- VCardItem: typeof import('vuetify/components')['VCardItem']
- VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
- VCardText: typeof import('vuetify/components')['VCardText']
- VCardTitle: typeof import('vuetify/components')['VCardTitle']
- VCarousel: typeof import('vuetify/components')['VCarousel']
- VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
- VCheckbox: typeof import('vuetify/components')['VCheckbox']
- VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
- VChip: typeof import('vuetify/components')['VChip']
- VChipGroup: typeof import('vuetify/components')['VChipGroup']
- VCode: typeof import('vuetify/components')['VCode']
- VColorPicker: typeof import('vuetify/components')['VColorPicker']
- VCombobox: typeof import('vuetify/components')['VCombobox']
- VCounter: typeof import('vuetify/components')['VCounter']
- VDialog: typeof import('vuetify/components')['VDialog']
- VDivider: typeof import('vuetify/components')['VDivider']
- VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
- VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
- VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
- VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
- VField: typeof import('vuetify/components')['VField']
- VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
- VFileInput: typeof import('vuetify/components')['VFileInput']
- VFooter: typeof import('vuetify/components')['VFooter']
- VIcon: typeof import('vuetify/components')['VIcon']
- VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
- VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
- VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
- VClassIcon: typeof import('vuetify/components')['VClassIcon']
- VImg: typeof import('vuetify/components')['VImg']
- VInput: typeof import('vuetify/components')['VInput']
- VItemGroup: typeof import('vuetify/components')['VItemGroup']
- VItem: typeof import('vuetify/components')['VItem']
- VKbd: typeof import('vuetify/components')['VKbd']
- VLabel: typeof import('vuetify/components')['VLabel']
- VList: typeof import('vuetify/components')['VList']
- VListGroup: typeof import('vuetify/components')['VListGroup']
- VListImg: typeof import('vuetify/components')['VListImg']
- VListItem: typeof import('vuetify/components')['VListItem']
- VListItemAction: typeof import('vuetify/components')['VListItemAction']
- VListItemMedia: typeof import('vuetify/components')['VListItemMedia']
- VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
- VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
- VListSubheader: typeof import('vuetify/components')['VListSubheader']
- VMain: typeof import('vuetify/components')['VMain']
- VMenu: typeof import('vuetify/components')['VMenu']
- VMessages: typeof import('vuetify/components')['VMessages']
- VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
- VOverlay: typeof import('vuetify/components')['VOverlay']
- VPagination: typeof import('vuetify/components')['VPagination']
- VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
- VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
- VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
- VRating: typeof import('vuetify/components')['VRating']
- VSelect: typeof import('vuetify/components')['VSelect']
- VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
- VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
- VSheet: typeof import('vuetify/components')['VSheet']
- VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
- VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
- VSlider: typeof import('vuetify/components')['VSlider']
- VSnackbar: typeof import('vuetify/components')['VSnackbar']
- VSwitch: typeof import('vuetify/components')['VSwitch']
- VSystemBar: typeof import('vuetify/components')['VSystemBar']
- VTabs: typeof import('vuetify/components')['VTabs']
- VTab: typeof import('vuetify/components')['VTab']
- VTable: typeof import('vuetify/components')['VTable']
- VTextarea: typeof import('vuetify/components')['VTextarea']
- VTextField: typeof import('vuetify/components')['VTextField']
- VTimeline: typeof import('vuetify/components')['VTimeline']
- VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
- VToolbar: typeof import('vuetify/components')['VToolbar']
- VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
- VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
- VTooltip: typeof import('vuetify/components')['VTooltip']
- VWindow: typeof import('vuetify/components')['VWindow']
- VWindowItem: typeof import('vuetify/components')['VWindowItem']
- VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
- VForm: typeof import('vuetify/components')['VForm']
- VContainer: typeof import('vuetify/components')['VContainer']
- VCol: typeof import('vuetify/components')['VCol']
- VRow: typeof import('vuetify/components')['VRow']
- VSpacer: typeof import('vuetify/components')['VSpacer']
- VHover: typeof import('vuetify/components')['VHover']
- VLayout: typeof import('vuetify/components')['VLayout']
- VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
- VLazy: typeof import('vuetify/components')['VLazy']
- VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
- VNoSsr: typeof import('vuetify/components')['VNoSsr']
- VParallax: typeof import('vuetify/components')['VParallax']
- VRadio: typeof import('vuetify/components')['VRadio']
- VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
- VResponsive: typeof import('vuetify/components')['VResponsive']
- VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
- VValidation: typeof import('vuetify/components')['VValidation']
- VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
- VFabTransition: typeof import('vuetify/components')['VFabTransition']
- VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
- VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
- VFadeTransition: typeof import('vuetify/components')['VFadeTransition']
- VScaleTransition: typeof import('vuetify/components')['VScaleTransition']
- VScrollXTransition: typeof import('vuetify/components')['VScrollXTransition']
- VScrollXReverseTransition: typeof import('vuetify/components')['VScrollXReverseTransition']
- VScrollYTransition: typeof import('vuetify/components')['VScrollYTransition']
- VScrollYReverseTransition: typeof import('vuetify/components')['VScrollYReverseTransition']
- VSlideXTransition: typeof import('vuetify/components')['VSlideXTransition']
- VSlideXReverseTransition: typeof import('vuetify/components')['VSlideXReverseTransition']
- VSlideYTransition: typeof import('vuetify/components')['VSlideYTransition']
- VSlideYReverseTransition: typeof import('vuetify/components')['VSlideYReverseTransition']
- VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
- VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
- VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
- VBottomSheet: typeof import('vuetify/labs/components')['VBottomSheet']
- VDataTable: typeof import('vuetify/labs/components')['VDataTable']
- VDataTableFooter: typeof import('vuetify/labs/components')['VDataTableFooter']
- VDataTableRows: typeof import('vuetify/labs/components')['VDataTableRows']
- VDataTableRow: typeof import('vuetify/labs/components')['VDataTableRow']
- VDataTableVirtual: typeof import('vuetify/labs/components')['VDataTableVirtual']
- VDataTableServer: typeof import('vuetify/labs/components')['VDataTableServer']
- VDateCard: typeof import('vuetify/labs/components')['VDateCard']
- VDatePicker: typeof import('vuetify/labs/components')['VDatePicker']
- VDatePickerControls: typeof import('vuetify/labs/components')['VDatePickerControls']
- VDatePickerHeader: typeof import('vuetify/labs/components')['VDatePickerHeader']
- VDatePickerMonth: typeof import('vuetify/labs/components')['VDatePickerMonth']
- VDatePickerYears: typeof import('vuetify/labs/components')['VDatePickerYears']
- VInfiniteScroll: typeof import('vuetify/labs/components')['VInfiniteScroll']
- VOtpInput: typeof import('vuetify/labs/components')['VOtpInput']
- VPicker: typeof import('vuetify/labs/components')['VPicker']
- VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
- VSkeletonLoader: typeof import('vuetify/labs/components')['VSkeletonLoader']
- VStepper: typeof import('vuetify/labs/components')['VStepper']
- VStepperActions: typeof import('vuetify/labs/components')['VStepperActions']
- VStepperHeader: typeof import('vuetify/labs/components')['VStepperHeader']
- VStepperItem: typeof import('vuetify/labs/components')['VStepperItem']
- VStepperWindow: typeof import('vuetify/labs/components')['VStepperWindow']
- VStepperWindowItem: typeof import('vuetify/labs/components')['VStepperWindowItem']
- VDataIterator: typeof import('vuetify/labs/components')['VDataIterator']
- }
- }
|