import type { PropType } from 'vue'; import type { TablePreferences, TableHeader, SwrvStateData, TableSortPayload, TableStatePayload, EmptyStateIconVariant } from '../../../types'; import { EmptyStateIconVariants } from '../../../types'; declare var __VLS_1: { state: SwrvStateData; }, __VLS_15: {}, __VLS_32: {}, __VLS_49: {}, __VLS_52: `column-${string}`, __VLS_53: { column: any; }, __VLS_68: `tooltip-${string}`, __VLS_69: { column: any; }, __VLS_77: string, __VLS_78: { row: any; rowKey: number; rowValue: any; }; type __VLS_Slots = {} & { [K in NonNullable]?: (props: typeof __VLS_53) => any; } & { [K in NonNullable]?: (props: typeof __VLS_69) => any; } & { [K in NonNullable]?: (props: typeof __VLS_78) => any; } & { toolbar?: (props: typeof __VLS_1) => any; } & { 'error-state'?: (props: typeof __VLS_15) => any; } & { 'empty-state'?: (props: typeof __VLS_32) => any; } & { 'empty-state-action-icon'?: (props: typeof __VLS_49) => any; }; declare const __VLS_base: import("vue").DefineComponent; default: () => {}; }; /** * Enable client side sort - only do this if using a fetcher * that returns static data */ clientSort: { type: BooleanConstructor; default: boolean; }; /** * Enables hover highlighting to table rows */ rowHover: { type: BooleanConstructor; default: boolean; }; sortHandlerFunction: { type: FunctionConstructor; default: () => {}; }; /** * A function that conditionally specifies row attributes on each row */ rowAttrs: { type: FunctionConstructor; default: () => {}; }; /** * A function that conditionally specifies cell attributes */ cellAttrs: { type: FunctionConstructor; default: () => {}; }; /** * A prop that enables a loading skeleton */ loading: { type: BooleanConstructor; default: boolean; }; /** * A prop to pass in a custom empty state title */ emptyStateTitle: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom empty state message */ emptyStateMessage: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom empty state action route */ emptyStateActionRoute: { type: (ObjectConstructor | StringConstructor)[]; default: string; }; /** * A prop to pass in a custom empty state action message */ emptyStateActionMessage: { type: StringConstructor; default: string; }; emptyStateIconVariant: { type: PropType; default: EmptyStateIconVariants; }; /** * A prop that enables the error state */ error: { type: BooleanConstructor; default: boolean; }; /** * A prop to pass in a custom error state title */ errorStateTitle: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom error state message */ errorStateMessage: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom error state action route */ errorStateActionRoute: { type: (ObjectConstructor | StringConstructor)[]; default: string; }; /** * A prop to pass in a custom error state action message */ errorStateActionMessage: { type: StringConstructor; default: string; }; /** * A prop to pass in a fetcher function to enable server-side search, sort * and pagination */ fetcher: { type: FunctionConstructor; default: undefined; required: true; }; /** * A prop to trigger a revalidate of the fetcher function. Modifying this value * will trigger a manual refetch of the table data. */ fetcherCacheKey: { type: StringConstructor; default: string; }; /** * A prop used to uniquely identify this table in the swrv cache */ cacheIdentifier: { type: StringConstructor; default: string; }; /** * A prop to pass in a search string for server-side search */ searchInput: { type: StringConstructor; default: string; }; /** * A prop to pass in an array of headers for the table */ headers: { type: PropType; default: () => never[]; }; /** * A prop to pass in an object of intial params for the initial fetcher function call */ initialFetcherParams: { type: ObjectConstructor; default: null; }; /** * A prop to pass in the number of pagination neighbors used by the pagination component */ paginationNeighbors: { type: NumberConstructor; default: number; }; /** * A prop to pass in an array of page sizes used by the pagination component */ paginationPageSizes: { type: PropType; default: () => number[]; validator: (pageSizes: number[]) => boolean; }; /** * A prop to pass the total number of items in the set for the pagination text */ paginationTotalItems: { type: NumberConstructor; default: null; }; disablePaginationPageJump: { type: BooleanConstructor; default: boolean; }; sortable: { type: BooleanConstructor; default: boolean; }; disablePagination: { type: BooleanConstructor; default: boolean; }; paginationOffset: { type: BooleanConstructor; default: boolean; }; /** * A prop to pass to hide pagination for total table records is less than or equal to pagesize */ hidePaginationWhenOptional: { type: BooleanConstructor; default: boolean; }; maxHeight: { type: StringConstructor; default: string; }; }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { sort: (value: TableSortPayload) => any; "error-action-click": () => any; "empty-state-action-click": () => any; state: (value: TableStatePayload) => any; "cell-click": (value: { data: any; }) => any; "row-click": (value: { data: any; }) => any; "update:table-preferences": (preferences: TablePreferences) => any; }, string, import("vue").PublicProps, Readonly; default: () => {}; }; /** * Enable client side sort - only do this if using a fetcher * that returns static data */ clientSort: { type: BooleanConstructor; default: boolean; }; /** * Enables hover highlighting to table rows */ rowHover: { type: BooleanConstructor; default: boolean; }; sortHandlerFunction: { type: FunctionConstructor; default: () => {}; }; /** * A function that conditionally specifies row attributes on each row */ rowAttrs: { type: FunctionConstructor; default: () => {}; }; /** * A function that conditionally specifies cell attributes */ cellAttrs: { type: FunctionConstructor; default: () => {}; }; /** * A prop that enables a loading skeleton */ loading: { type: BooleanConstructor; default: boolean; }; /** * A prop to pass in a custom empty state title */ emptyStateTitle: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom empty state message */ emptyStateMessage: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom empty state action route */ emptyStateActionRoute: { type: (ObjectConstructor | StringConstructor)[]; default: string; }; /** * A prop to pass in a custom empty state action message */ emptyStateActionMessage: { type: StringConstructor; default: string; }; emptyStateIconVariant: { type: PropType; default: EmptyStateIconVariants; }; /** * A prop that enables the error state */ error: { type: BooleanConstructor; default: boolean; }; /** * A prop to pass in a custom error state title */ errorStateTitle: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom error state message */ errorStateMessage: { type: StringConstructor; default: string; }; /** * A prop to pass in a custom error state action route */ errorStateActionRoute: { type: (ObjectConstructor | StringConstructor)[]; default: string; }; /** * A prop to pass in a custom error state action message */ errorStateActionMessage: { type: StringConstructor; default: string; }; /** * A prop to pass in a fetcher function to enable server-side search, sort * and pagination */ fetcher: { type: FunctionConstructor; default: undefined; required: true; }; /** * A prop to trigger a revalidate of the fetcher function. Modifying this value * will trigger a manual refetch of the table data. */ fetcherCacheKey: { type: StringConstructor; default: string; }; /** * A prop used to uniquely identify this table in the swrv cache */ cacheIdentifier: { type: StringConstructor; default: string; }; /** * A prop to pass in a search string for server-side search */ searchInput: { type: StringConstructor; default: string; }; /** * A prop to pass in an array of headers for the table */ headers: { type: PropType; default: () => never[]; }; /** * A prop to pass in an object of intial params for the initial fetcher function call */ initialFetcherParams: { type: ObjectConstructor; default: null; }; /** * A prop to pass in the number of pagination neighbors used by the pagination component */ paginationNeighbors: { type: NumberConstructor; default: number; }; /** * A prop to pass in an array of page sizes used by the pagination component */ paginationPageSizes: { type: PropType; default: () => number[]; validator: (pageSizes: number[]) => boolean; }; /** * A prop to pass the total number of items in the set for the pagination text */ paginationTotalItems: { type: NumberConstructor; default: null; }; disablePaginationPageJump: { type: BooleanConstructor; default: boolean; }; sortable: { type: BooleanConstructor; default: boolean; }; disablePagination: { type: BooleanConstructor; default: boolean; }; paginationOffset: { type: BooleanConstructor; default: boolean; }; /** * A prop to pass to hide pagination for total table records is less than or equal to pagesize */ hidePaginationWhenOptional: { type: BooleanConstructor; default: boolean; }; maxHeight: { type: StringConstructor; default: string; }; }>> & Readonly<{ onSort?: ((value: TableSortPayload) => any) | undefined; "onError-action-click"?: (() => any) | undefined; "onEmpty-state-action-click"?: (() => any) | undefined; onState?: ((value: TableStatePayload) => any) | undefined; "onCell-click"?: ((value: { data: any; }) => any) | undefined; "onRow-click"?: ((value: { data: any; }) => any) | undefined; "onUpdate:table-preferences"?: ((preferences: TablePreferences) => any) | undefined; }>, { maxHeight: string; error: boolean; loading: boolean; sortable: boolean; headers: TableHeader[]; fetcher: Function; fetcherCacheKey: string; cacheIdentifier: string; searchInput: string; initialFetcherParams: Record; clientSort: boolean; sortHandlerFunction: Function; emptyStateTitle: string; emptyStateMessage: string; emptyStateActionRoute: string | Record; emptyStateActionMessage: string; emptyStateIconVariant: "search" | "default" | "error" | "kong"; errorStateTitle: string; errorStateMessage: string; errorStateActionRoute: string | Record; errorStateActionMessage: string; paginationNeighbors: number; paginationPageSizes: number[]; paginationTotalItems: number; disablePaginationPageJump: boolean; disablePagination: boolean; hidePaginationWhenOptional: boolean; paginationOffset: boolean; resizeColumns: boolean; tablePreferences: TablePreferences; rowHover: boolean; rowAttrs: Function; cellAttrs: Function; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };