123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602 |
- import * as vue from 'vue';
- import { ComponentPropsOptions, ExtractPropTypes, PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
- interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
- filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
- }
- type ClassValue = any;
- type Density = null | 'default' | 'comfortable' | 'compact';
- declare const allowedVariants: readonly ["elevated", "flat", "tonal", "outlined", "text", "plain"];
- type Variant = typeof allowedVariants[number];
- type JSXComponent<Props = any> = {
- new (): ComponentPublicInstance<Props>;
- } | FunctionalComponent<Props>;
- type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
- declare const IconValue: PropType<IconValue>;
- type ItemSlot = {
- isActive: boolean;
- key: string | number;
- page: string;
- props: Record<string, any>;
- };
- type ControlSlot = {
- icon: IconValue;
- onClick: (e: Event) => void;
- disabled: boolean;
- 'aria-label': string;
- 'aria-disabled': boolean;
- };
- declare const VPagination: {
- new (...args: any[]): vue.CreateComponentPublicInstance<{
- length: string | number;
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- start: string | number;
- style: vue.StyleValue;
- ariaLabel: string;
- disabled: boolean;
- size: string | number;
- tag: string;
- ellipsis: string;
- modelValue: number;
- tile: boolean;
- density: Density;
- nextIcon: IconValue;
- prevIcon: IconValue;
- firstIcon: IconValue;
- lastIcon: IconValue;
- pageAriaLabel: string;
- currentPageAriaLabel: string;
- firstAriaLabel: string;
- previousAriaLabel: string;
- nextAriaLabel: string;
- lastAriaLabel: string;
- showFirstLastPage: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- activeColor?: string | undefined;
- totalVisible?: string | number | undefined;
- } & {
- $children?: {} | vue.VNodeChild | {
- item?: ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- };
- 'v-slots'?: {
- item?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:item"?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- "v-slot:first"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:prev"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:next"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:last"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } & {
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
- onNext?: ((value: number) => any) | undefined;
- onPrev?: ((value: number) => any) | undefined;
- onFirst?: ((value: number) => any) | undefined;
- onLast?: ((value: number) => any) | undefined;
- }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
- 'update:modelValue': (value: number) => true;
- first: (value: number) => true;
- prev: (value: number) => true;
- next: (value: number) => true;
- last: (value: number) => true;
- }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
- length: string | number;
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- start: string | number;
- style: vue.StyleValue;
- ariaLabel: string;
- disabled: boolean;
- size: string | number;
- tag: string;
- ellipsis: string;
- modelValue: number;
- tile: boolean;
- density: Density;
- nextIcon: IconValue;
- prevIcon: IconValue;
- firstIcon: IconValue;
- lastIcon: IconValue;
- pageAriaLabel: string;
- currentPageAriaLabel: string;
- firstAriaLabel: string;
- previousAriaLabel: string;
- nextAriaLabel: string;
- lastAriaLabel: string;
- showFirstLastPage: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- activeColor?: string | undefined;
- totalVisible?: string | number | undefined;
- } & {
- $children?: {} | vue.VNodeChild | {
- item?: ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- };
- 'v-slots'?: {
- item?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:item"?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- "v-slot:first"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:prev"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:next"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:last"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } & {
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
- onNext?: ((value: number) => any) | undefined;
- onPrev?: ((value: number) => any) | undefined;
- onFirst?: ((value: number) => any) | undefined;
- onLast?: ((value: number) => any) | undefined;
- }, {
- length: string | number;
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- start: string | number;
- style: vue.StyleValue;
- ariaLabel: string;
- disabled: boolean;
- size: string | number;
- tag: string;
- ellipsis: string;
- modelValue: number;
- rounded: string | number | boolean;
- tile: boolean;
- density: Density;
- nextIcon: IconValue;
- prevIcon: IconValue;
- firstIcon: IconValue;
- lastIcon: IconValue;
- pageAriaLabel: string;
- currentPageAriaLabel: string;
- firstAriaLabel: string;
- previousAriaLabel: string;
- nextAriaLabel: string;
- lastAriaLabel: string;
- showFirstLastPage: boolean;
- }, true, {}, vue.SlotsType<Partial<{
- item: (arg: ItemSlot) => vue.VNode[];
- first: (arg: ControlSlot) => vue.VNode[];
- prev: (arg: ControlSlot) => vue.VNode[];
- next: (arg: ControlSlot) => vue.VNode[];
- last: (arg: ControlSlot) => vue.VNode[];
- }>>, {
- P: {};
- B: {};
- D: {};
- C: {};
- M: {};
- Defaults: {};
- }, {
- length: string | number;
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- start: string | number;
- style: vue.StyleValue;
- ariaLabel: string;
- disabled: boolean;
- size: string | number;
- tag: string;
- ellipsis: string;
- modelValue: number;
- tile: boolean;
- density: Density;
- nextIcon: IconValue;
- prevIcon: IconValue;
- firstIcon: IconValue;
- lastIcon: IconValue;
- pageAriaLabel: string;
- currentPageAriaLabel: string;
- firstAriaLabel: string;
- previousAriaLabel: string;
- nextAriaLabel: string;
- lastAriaLabel: string;
- showFirstLastPage: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- activeColor?: string | undefined;
- totalVisible?: string | number | undefined;
- } & {
- $children?: {} | vue.VNodeChild | {
- item?: ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- };
- 'v-slots'?: {
- item?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:item"?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- "v-slot:first"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:prev"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:next"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:last"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } & {
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
- onNext?: ((value: number) => any) | undefined;
- onPrev?: ((value: number) => any) | undefined;
- onFirst?: ((value: number) => any) | undefined;
- onLast?: ((value: number) => any) | undefined;
- }, {}, {}, {}, {}, {
- length: string | number;
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- start: string | number;
- style: vue.StyleValue;
- ariaLabel: string;
- disabled: boolean;
- size: string | number;
- tag: string;
- ellipsis: string;
- modelValue: number;
- rounded: string | number | boolean;
- tile: boolean;
- density: Density;
- nextIcon: IconValue;
- prevIcon: IconValue;
- firstIcon: IconValue;
- lastIcon: IconValue;
- pageAriaLabel: string;
- currentPageAriaLabel: string;
- firstAriaLabel: string;
- previousAriaLabel: string;
- nextAriaLabel: string;
- lastAriaLabel: string;
- showFirstLastPage: boolean;
- }>;
- __isFragment?: never;
- __isTeleport?: never;
- __isSuspense?: never;
- } & vue.ComponentOptionsBase<{
- length: string | number;
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- start: string | number;
- style: vue.StyleValue;
- ariaLabel: string;
- disabled: boolean;
- size: string | number;
- tag: string;
- ellipsis: string;
- modelValue: number;
- tile: boolean;
- density: Density;
- nextIcon: IconValue;
- prevIcon: IconValue;
- firstIcon: IconValue;
- lastIcon: IconValue;
- pageAriaLabel: string;
- currentPageAriaLabel: string;
- firstAriaLabel: string;
- previousAriaLabel: string;
- nextAriaLabel: string;
- lastAriaLabel: string;
- showFirstLastPage: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- activeColor?: string | undefined;
- totalVisible?: string | number | undefined;
- } & {
- $children?: {} | vue.VNodeChild | {
- item?: ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- };
- 'v-slots'?: {
- item?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- first?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- prev?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- next?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- last?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:item"?: false | ((arg: ItemSlot) => vue.VNodeChild) | undefined;
- "v-slot:first"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:prev"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:next"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- "v-slot:last"?: false | ((arg: ControlSlot) => vue.VNodeChild) | undefined;
- } & {
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
- onNext?: ((value: number) => any) | undefined;
- onPrev?: ((value: number) => any) | undefined;
- onFirst?: ((value: number) => any) | undefined;
- onLast?: ((value: number) => any) | undefined;
- }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
- 'update:modelValue': (value: number) => true;
- first: (value: number) => true;
- prev: (value: number) => true;
- next: (value: number) => true;
- last: (value: number) => true;
- }, string, {
- length: string | number;
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- start: string | number;
- style: vue.StyleValue;
- ariaLabel: string;
- disabled: boolean;
- size: string | number;
- tag: string;
- ellipsis: string;
- modelValue: number;
- rounded: string | number | boolean;
- tile: boolean;
- density: Density;
- nextIcon: IconValue;
- prevIcon: IconValue;
- firstIcon: IconValue;
- lastIcon: IconValue;
- pageAriaLabel: string;
- currentPageAriaLabel: string;
- firstAriaLabel: string;
- previousAriaLabel: string;
- nextAriaLabel: string;
- lastAriaLabel: string;
- showFirstLastPage: boolean;
- }, {}, string, vue.SlotsType<Partial<{
- item: (arg: ItemSlot) => vue.VNode[];
- first: (arg: ControlSlot) => vue.VNode[];
- prev: (arg: ControlSlot) => vue.VNode[];
- next: (arg: ControlSlot) => vue.VNode[];
- last: (arg: ControlSlot) => vue.VNode[];
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
- color: StringConstructor;
- variant: Omit<{
- type: vue.PropType<Variant>;
- default: string;
- validator: (v: any) => boolean;
- }, "type" | "default"> & {
- type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
- default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
- };
- theme: StringConstructor;
- tag: Omit<{
- type: StringConstructor;
- default: string;
- }, "type" | "default"> & {
- type: vue.PropType<string>;
- default: string;
- };
- size: {
- type: (StringConstructor | NumberConstructor)[];
- default: string;
- };
- rounded: {
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- default: undefined;
- };
- tile: BooleanConstructor;
- elevation: {
- type: (StringConstructor | NumberConstructor)[];
- validator(v: any): boolean;
- };
- density: {
- type: vue.PropType<Density>;
- default: string;
- validator: (v: any) => boolean;
- };
- class: vue.PropType<ClassValue>;
- style: {
- type: vue.PropType<vue.StyleValue>;
- default: null;
- };
- border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- activeColor: StringConstructor;
- start: {
- type: (StringConstructor | NumberConstructor)[];
- default: number;
- };
- modelValue: {
- type: NumberConstructor;
- default: (props: any) => number;
- };
- disabled: BooleanConstructor;
- length: {
- type: (StringConstructor | NumberConstructor)[];
- default: number;
- validator: (val: number) => boolean;
- };
- totalVisible: (StringConstructor | NumberConstructor)[];
- firstIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- prevIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- nextIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- lastIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- ariaLabel: {
- type: StringConstructor;
- default: string;
- };
- pageAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- currentPageAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- firstAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- previousAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- nextAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- lastAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- ellipsis: {
- type: StringConstructor;
- default: string;
- };
- showFirstLastPage: BooleanConstructor;
- }, vue.ExtractPropTypes<{
- color: StringConstructor;
- variant: Omit<{
- type: vue.PropType<Variant>;
- default: string;
- validator: (v: any) => boolean;
- }, "type" | "default"> & {
- type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
- default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
- };
- theme: StringConstructor;
- tag: Omit<{
- type: StringConstructor;
- default: string;
- }, "type" | "default"> & {
- type: vue.PropType<string>;
- default: string;
- };
- size: {
- type: (StringConstructor | NumberConstructor)[];
- default: string;
- };
- rounded: {
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- default: undefined;
- };
- tile: BooleanConstructor;
- elevation: {
- type: (StringConstructor | NumberConstructor)[];
- validator(v: any): boolean;
- };
- density: {
- type: vue.PropType<Density>;
- default: string;
- validator: (v: any) => boolean;
- };
- class: vue.PropType<ClassValue>;
- style: {
- type: vue.PropType<vue.StyleValue>;
- default: null;
- };
- border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- activeColor: StringConstructor;
- start: {
- type: (StringConstructor | NumberConstructor)[];
- default: number;
- };
- modelValue: {
- type: NumberConstructor;
- default: (props: any) => number;
- };
- disabled: BooleanConstructor;
- length: {
- type: (StringConstructor | NumberConstructor)[];
- default: number;
- validator: (val: number) => boolean;
- };
- totalVisible: (StringConstructor | NumberConstructor)[];
- firstIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- prevIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- nextIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- lastIcon: {
- type: vue.PropType<IconValue>;
- default: string;
- };
- ariaLabel: {
- type: StringConstructor;
- default: string;
- };
- pageAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- currentPageAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- firstAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- previousAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- nextAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- lastAriaLabel: {
- type: StringConstructor;
- default: string;
- };
- ellipsis: {
- type: StringConstructor;
- default: string;
- };
- showFirstLastPage: BooleanConstructor;
- }>>;
- type VPagination = InstanceType<typeof VPagination>;
- export { VPagination };
|