index.d.mts 146 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872
  1. import * as vue from 'vue';
  2. import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, ComponentPublicInstance, PropType, FunctionalComponent, Ref, UnwrapRef, DeepReadonly } from 'vue';
  3. type ClassValue = any;
  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. };
  29. interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
  30. filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
  31. }
  32. declare function deepEqual(a: any, b: any): boolean;
  33. type SelectItemKey<T = Record<string, any>> = boolean | null | undefined | string | readonly (string | number)[] | ((item: T, fallback?: any) => any);
  34. type EventProp<T extends any[] = any[], F = (...args: T) => void> = F;
  35. declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T>>;
  36. type TemplateRef = {
  37. (target: Element | ComponentPublicInstance | null): void;
  38. value: HTMLElement | ComponentPublicInstance | null | undefined;
  39. readonly el: HTMLElement | undefined;
  40. };
  41. interface LoaderSlotProps {
  42. color: string | undefined;
  43. isActive: boolean;
  44. }
  45. declare const breakpoints: readonly ["sm", "md", "lg", "xl", "xxl"];
  46. type Breakpoint = typeof breakpoints[number];
  47. type DisplayBreakpoint = 'xs' | Breakpoint;
  48. type JSXComponent<Props = any> = {
  49. new (): ComponentPublicInstance<Props>;
  50. } | FunctionalComponent<Props>;
  51. type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
  52. declare const IconValue: PropType<IconValue>;
  53. type ExpandProps = {
  54. expandOnClick: boolean;
  55. expanded: readonly string[];
  56. 'onUpdate:expanded': ((value: any[]) => void) | undefined;
  57. };
  58. declare function provideExpanded(props: ExpandProps): {
  59. expand: (item: DataTableItem, value: boolean) => void;
  60. expanded: Ref<Set<string>> & {
  61. readonly externalValue: readonly string[];
  62. };
  63. expandOnClick: Ref<boolean>;
  64. isExpanded: (item: DataTableItem) => boolean;
  65. toggleExpand: (item: DataTableItem) => void;
  66. };
  67. /**
  68. * - match without highlight
  69. * - single match (index), length already known
  70. * - single match (start, end)
  71. * - multiple matches (start, end), probably shouldn't overlap
  72. */
  73. type FilterMatch = boolean | number | [number, number] | [number, number][];
  74. type FilterFunction = (value: string, query: string, item?: InternalItem) => FilterMatch;
  75. type FilterKeyFunctions = Record<string, FilterFunction>;
  76. type FilterKeys = string | string[];
  77. type FilterMode = 'some' | 'every' | 'union' | 'intersection';
  78. interface InternalItem<T = any> {
  79. value: any;
  80. raw: T;
  81. }
  82. type SortItem = {
  83. key: string;
  84. order?: boolean | 'asc' | 'desc';
  85. };
  86. declare function provideSort(options: {
  87. sortBy: Ref<readonly SortItem[]>;
  88. mustSort: Ref<boolean>;
  89. multiSort: Ref<boolean>;
  90. page?: Ref<number>;
  91. }): {
  92. sortBy: Ref<readonly SortItem[]>;
  93. toggleSort: (column: InternalDataTableHeader) => void;
  94. isSorted: (column: InternalDataTableHeader) => boolean;
  95. };
  96. interface GroupableItem<T = any> {
  97. type: 'item';
  98. raw: T;
  99. }
  100. interface Group<T = any> {
  101. type: 'group';
  102. depth: number;
  103. id: string;
  104. key: string;
  105. value: any;
  106. items: readonly (T | Group<T>)[];
  107. }
  108. declare function provideGroupBy(options: {
  109. groupBy: Ref<readonly SortItem[]>;
  110. sortBy: Ref<readonly SortItem[]>;
  111. disableSort?: Ref<boolean>;
  112. }): {
  113. sortByWithGroups: vue.ComputedRef<SortItem[]>;
  114. toggleGroup: (group: Group) => void;
  115. opened: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>>;
  116. groupBy: Ref<readonly SortItem[]>;
  117. extractRows: <T extends GroupableItem>(items: readonly (T | Group<T>)[]) => T[];
  118. isGroupOpen: (group: Group) => boolean;
  119. };
  120. type DataTableCompareFunction<T = any> = (a: T, b: T) => number | null;
  121. type DataTableHeader<T = Record<string, any>> = {
  122. key?: 'data-table-group' | 'data-table-select' | 'data-table-expand' | (string & {});
  123. value?: SelectItemKey<T>;
  124. title?: string;
  125. fixed?: boolean;
  126. align?: 'start' | 'end' | 'center';
  127. width?: number | string;
  128. minWidth?: string;
  129. maxWidth?: string;
  130. nowrap?: boolean;
  131. headerProps?: Record<string, any>;
  132. cellProps?: HeaderCellProps;
  133. sortable?: boolean;
  134. sort?: DataTableCompareFunction;
  135. sortRaw?: DataTableCompareFunction;
  136. filter?: FilterFunction;
  137. mobile?: boolean;
  138. children?: DataTableHeader<T>[];
  139. };
  140. type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {
  141. key: string | null;
  142. value: SelectItemKey | null;
  143. sortable: boolean;
  144. fixedOffset?: number;
  145. lastFixed?: boolean;
  146. nowrap?: boolean;
  147. colspan?: number;
  148. rowspan?: number;
  149. children?: InternalDataTableHeader[];
  150. };
  151. interface DataTableItem<T = any> extends InternalItem<T>, GroupableItem<T>, SelectableItem {
  152. key: any;
  153. index: number;
  154. columns: {
  155. [key: string]: any;
  156. };
  157. }
  158. type GroupHeaderSlot = {
  159. index: number;
  160. item: Group;
  161. columns: InternalDataTableHeader[];
  162. isExpanded: ReturnType<typeof provideExpanded>['isExpanded'];
  163. toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand'];
  164. isSelected: ReturnType<typeof provideSelection>['isSelected'];
  165. toggleSelect: ReturnType<typeof provideSelection>['toggleSelect'];
  166. toggleGroup: ReturnType<typeof provideGroupBy>['toggleGroup'];
  167. isGroupOpen: ReturnType<typeof provideGroupBy>['isGroupOpen'];
  168. };
  169. type ItemSlotBase<T> = {
  170. index: number;
  171. item: T;
  172. internalItem: DataTableItem<T>;
  173. isExpanded: ReturnType<typeof provideExpanded>['isExpanded'];
  174. toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand'];
  175. isSelected: ReturnType<typeof provideSelection>['isSelected'];
  176. toggleSelect: ReturnType<typeof provideSelection>['toggleSelect'];
  177. };
  178. type ItemSlot<T> = ItemSlotBase<T> & {
  179. columns: InternalDataTableHeader[];
  180. };
  181. type ItemKeySlot<T> = ItemSlotBase<T> & {
  182. value: any;
  183. column: InternalDataTableHeader;
  184. };
  185. type RowProps<T> = Record<string, any> | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem'>) => Record<string, any>);
  186. type CellProps<T> = Record<string, any> | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>) => Record<string, any>);
  187. type HeaderCellProps = Record<string, any> | ((data: Pick<ItemKeySlot<any>, 'index' | 'item' | 'internalItem' | 'value'>) => Record<string, any>);
  188. interface DataTableItemProps {
  189. items: any[];
  190. itemValue: SelectItemKey;
  191. itemSelectable: SelectItemKey;
  192. returnObject: boolean;
  193. }
  194. interface SelectableItem {
  195. value: any;
  196. selectable: boolean;
  197. }
  198. type SelectionProps = Pick<DataTableItemProps, 'itemValue'> & {
  199. modelValue: readonly any[];
  200. selectStrategy: 'single' | 'page' | 'all';
  201. valueComparator: typeof deepEqual;
  202. 'onUpdate:modelValue': EventProp<[any[]]> | undefined;
  203. };
  204. declare function provideSelection(props: SelectionProps, { allItems, currentPage }: {
  205. allItems: Ref<SelectableItem[]>;
  206. currentPage: Ref<SelectableItem[]>;
  207. }): {
  208. toggleSelect: (item: SelectableItem) => void;
  209. select: (items: SelectableItem[], value: boolean) => void;
  210. selectAll: (value: boolean) => void;
  211. isSelected: (items: SelectableItem | SelectableItem[]) => boolean;
  212. isSomeSelected: (items: SelectableItem | SelectableItem[]) => boolean;
  213. someSelected: vue.ComputedRef<boolean>;
  214. allSelected: vue.ComputedRef<boolean>;
  215. showSelectAll: vue.ComputedRef<boolean>;
  216. };
  217. type HeadersSlotProps = {
  218. headers: InternalDataTableHeader[][];
  219. columns: InternalDataTableHeader[];
  220. sortBy: UnwrapRef<ReturnType<typeof provideSort>['sortBy']>;
  221. someSelected: UnwrapRef<ReturnType<typeof provideSelection>['someSelected']>;
  222. allSelected: UnwrapRef<ReturnType<typeof provideSelection>['allSelected']>;
  223. toggleSort: ReturnType<typeof provideSort>['toggleSort'];
  224. selectAll: ReturnType<typeof provideSelection>['selectAll'];
  225. getSortIcon: (column: InternalDataTableHeader) => IconValue;
  226. isSorted: ReturnType<typeof provideSort>['isSorted'];
  227. };
  228. type VDataTableHeaderCellColumnSlotProps = {
  229. column: InternalDataTableHeader;
  230. selectAll: ReturnType<typeof provideSelection>['selectAll'];
  231. isSorted: ReturnType<typeof provideSort>['isSorted'];
  232. toggleSort: ReturnType<typeof provideSort>['toggleSort'];
  233. sortBy: UnwrapRef<ReturnType<typeof provideSort>['sortBy']>;
  234. someSelected: UnwrapRef<ReturnType<typeof provideSelection>['someSelected']>;
  235. allSelected: UnwrapRef<ReturnType<typeof provideSelection>['allSelected']>;
  236. getSortIcon: (column: InternalDataTableHeader) => IconValue;
  237. };
  238. type VDataTableHeadersSlots = {
  239. headers: HeadersSlotProps;
  240. loader: LoaderSlotProps;
  241. 'header.data-table-select': VDataTableHeaderCellColumnSlotProps;
  242. 'header.data-table-expand': VDataTableHeaderCellColumnSlotProps;
  243. } & {
  244. [key: `header.${string}`]: VDataTableHeaderCellColumnSlotProps;
  245. };
  246. declare const VDataTableHeaders: {
  247. new (...args: any[]): vue.CreateComponentPublicInstance<{
  248. mobile: boolean | null;
  249. sticky: boolean;
  250. multiSort: boolean;
  251. disableSort: boolean;
  252. sortAscIcon: IconValue;
  253. sortDescIcon: IconValue;
  254. } & {
  255. color?: string | undefined;
  256. loading?: string | boolean | undefined;
  257. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  258. headerProps?: Record<string, any> | undefined;
  259. } & {
  260. $children?: {} | vue.VNodeChild | {
  261. [x: `header.${string}`]: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  262. headers?: ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  263. loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  264. 'header.data-table-select'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  265. 'header.data-table-expand'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  266. };
  267. 'v-slots'?: {
  268. [x: `header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  269. headers?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  270. loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  271. 'header.data-table-select'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  272. 'header.data-table-expand'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  273. } | undefined;
  274. } & {
  275. [x: `v-slot:header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  276. "v-slot:headers"?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  277. "v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  278. "v-slot:header.data-table-select"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  279. "v-slot:header.data-table-expand"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  280. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  281. mobile: boolean | null;
  282. sticky: boolean;
  283. multiSort: boolean;
  284. disableSort: boolean;
  285. sortAscIcon: IconValue;
  286. sortDescIcon: IconValue;
  287. } & {
  288. color?: string | undefined;
  289. loading?: string | boolean | undefined;
  290. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  291. headerProps?: Record<string, any> | undefined;
  292. } & {
  293. $children?: {} | vue.VNodeChild | {
  294. [x: `header.${string}`]: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  295. headers?: ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  296. loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  297. 'header.data-table-select'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  298. 'header.data-table-expand'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  299. };
  300. 'v-slots'?: {
  301. [x: `header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  302. headers?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  303. loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  304. 'header.data-table-select'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  305. 'header.data-table-expand'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  306. } | undefined;
  307. } & {
  308. [x: `v-slot:header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  309. "v-slot:headers"?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  310. "v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  311. "v-slot:header.data-table-select"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  312. "v-slot:header.data-table-expand"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  313. }, {
  314. mobile: boolean | null;
  315. sticky: boolean;
  316. multiSort: boolean;
  317. disableSort: boolean;
  318. sortAscIcon: IconValue;
  319. sortDescIcon: IconValue;
  320. }, true, {}, vue.SlotsType<Partial<{
  321. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  322. headers: (arg: HeadersSlotProps) => vue.VNode[];
  323. loader: (arg: LoaderSlotProps) => vue.VNode[];
  324. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  325. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  326. }>>, {
  327. P: {};
  328. B: {};
  329. D: {};
  330. C: {};
  331. M: {};
  332. Defaults: {};
  333. }, {
  334. mobile: boolean | null;
  335. sticky: boolean;
  336. multiSort: boolean;
  337. disableSort: boolean;
  338. sortAscIcon: IconValue;
  339. sortDescIcon: IconValue;
  340. } & {
  341. color?: string | undefined;
  342. loading?: string | boolean | undefined;
  343. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  344. headerProps?: Record<string, any> | undefined;
  345. } & {
  346. $children?: {} | vue.VNodeChild | {
  347. [x: `header.${string}`]: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  348. headers?: ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  349. loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  350. 'header.data-table-select'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  351. 'header.data-table-expand'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  352. };
  353. 'v-slots'?: {
  354. [x: `header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  355. headers?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  356. loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  357. 'header.data-table-select'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  358. 'header.data-table-expand'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  359. } | undefined;
  360. } & {
  361. [x: `v-slot:header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  362. "v-slot:headers"?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  363. "v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  364. "v-slot:header.data-table-select"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  365. "v-slot:header.data-table-expand"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  366. }, {}, {}, {}, {}, {
  367. mobile: boolean | null;
  368. sticky: boolean;
  369. multiSort: boolean;
  370. disableSort: boolean;
  371. sortAscIcon: IconValue;
  372. sortDescIcon: IconValue;
  373. }>;
  374. __isFragment?: never;
  375. __isTeleport?: never;
  376. __isSuspense?: never;
  377. } & vue.ComponentOptionsBase<{
  378. mobile: boolean | null;
  379. sticky: boolean;
  380. multiSort: boolean;
  381. disableSort: boolean;
  382. sortAscIcon: IconValue;
  383. sortDescIcon: IconValue;
  384. } & {
  385. color?: string | undefined;
  386. loading?: string | boolean | undefined;
  387. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  388. headerProps?: Record<string, any> | undefined;
  389. } & {
  390. $children?: {} | vue.VNodeChild | {
  391. [x: `header.${string}`]: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  392. headers?: ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  393. loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  394. 'header.data-table-select'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  395. 'header.data-table-expand'?: ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  396. };
  397. 'v-slots'?: {
  398. [x: `header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  399. headers?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  400. loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  401. 'header.data-table-select'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  402. 'header.data-table-expand'?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  403. } | undefined;
  404. } & {
  405. [x: `v-slot:header.${string}`]: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  406. "v-slot:headers"?: false | ((arg: HeadersSlotProps) => vue.VNodeChild) | undefined;
  407. "v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
  408. "v-slot:header.data-table-select"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  409. "v-slot:header.data-table-expand"?: false | ((arg: VDataTableHeaderCellColumnSlotProps) => vue.VNodeChild) | undefined;
  410. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
  411. mobile: boolean | null;
  412. sticky: boolean;
  413. multiSort: boolean;
  414. disableSort: boolean;
  415. sortAscIcon: IconValue;
  416. sortDescIcon: IconValue;
  417. }, {}, string, vue.SlotsType<Partial<{
  418. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  419. headers: (arg: HeadersSlotProps) => vue.VNode[];
  420. loader: (arg: LoaderSlotProps) => vue.VNode[];
  421. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  422. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  423. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  424. loading: (StringConstructor | BooleanConstructor)[];
  425. mobile: {
  426. type: PropType<boolean | null>;
  427. default: boolean;
  428. };
  429. mobileBreakpoint: PropType<number | DisplayBreakpoint>;
  430. color: StringConstructor;
  431. sticky: BooleanConstructor;
  432. disableSort: BooleanConstructor;
  433. multiSort: BooleanConstructor;
  434. sortAscIcon: {
  435. type: PropType<IconValue>;
  436. default: string;
  437. };
  438. sortDescIcon: {
  439. type: PropType<IconValue>;
  440. default: string;
  441. };
  442. headerProps: {
  443. type: PropType<Record<string, any>>;
  444. };
  445. }, vue.ExtractPropTypes<{
  446. loading: (StringConstructor | BooleanConstructor)[];
  447. mobile: {
  448. type: PropType<boolean | null>;
  449. default: boolean;
  450. };
  451. mobileBreakpoint: PropType<number | DisplayBreakpoint>;
  452. color: StringConstructor;
  453. sticky: BooleanConstructor;
  454. disableSort: BooleanConstructor;
  455. multiSort: BooleanConstructor;
  456. sortAscIcon: {
  457. type: PropType<IconValue>;
  458. default: string;
  459. };
  460. sortDescIcon: {
  461. type: PropType<IconValue>;
  462. default: string;
  463. };
  464. headerProps: {
  465. type: PropType<Record<string, any>>;
  466. };
  467. }>>;
  468. type VDataTableHeaders = InstanceType<typeof VDataTableHeaders>;
  469. type Density = null | 'default' | 'comfortable' | 'compact';
  470. declare function providePagination(options: {
  471. page: Ref<number>;
  472. itemsPerPage: Ref<number>;
  473. itemsLength: Ref<number>;
  474. }): {
  475. page: Ref<number>;
  476. itemsPerPage: Ref<number>;
  477. startIndex: vue.ComputedRef<number>;
  478. stopIndex: vue.ComputedRef<number>;
  479. pageCount: vue.ComputedRef<number>;
  480. itemsLength: Ref<number>;
  481. nextPage: () => void;
  482. prevPage: () => void;
  483. setPage: (value: number) => void;
  484. setItemsPerPage: (value: number) => void;
  485. };
  486. type VDataTableGroupHeaderRowSlots = {
  487. 'data-table-group': {
  488. item: Group;
  489. count: number;
  490. props: Record<string, unknown>;
  491. };
  492. 'data-table-select': {
  493. props: Record<string, unknown>;
  494. };
  495. };
  496. type VDataTableRowSlots<T> = {
  497. 'item.data-table-select': Omit<ItemKeySlot<T>, 'value'>;
  498. 'item.data-table-expand': Omit<ItemKeySlot<T>, 'value'>;
  499. 'header.data-table-select': VDataTableHeaderCellColumnSlotProps;
  500. 'header.data-table-expand': VDataTableHeaderCellColumnSlotProps;
  501. } & {
  502. [key: `item.${string}`]: ItemKeySlot<T>;
  503. [key: `header.${string}`]: VDataTableHeaderCellColumnSlotProps;
  504. };
  505. declare const VDataTableRow: {
  506. new (...args: any[]): vue.CreateComponentPublicInstance<{
  507. mobile: boolean | null;
  508. } & {
  509. index?: number | undefined;
  510. onClick?: ((args_0: MouseEvent) => void) | undefined;
  511. onContextmenu?: ((args_0: MouseEvent) => void) | undefined;
  512. onDblclick?: ((args_0: MouseEvent) => void) | undefined;
  513. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  514. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "item" | "$children" | "v-slots" | "cellProps" | `v-slot:header.${string}` | `v-slot:item.${string}`>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  515. mobile: boolean | null;
  516. } & {
  517. index?: number | undefined;
  518. onClick?: ((args_0: MouseEvent) => void) | undefined;
  519. onContextmenu?: ((args_0: MouseEvent) => void) | undefined;
  520. onDblclick?: ((args_0: MouseEvent) => void) | undefined;
  521. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  522. }, {
  523. mobile: boolean | null;
  524. }, true, {}, vue.SlotsType<Partial<{
  525. [x: `item.${string}`]: (arg: ItemKeySlot<unknown>) => vue.VNode[];
  526. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  527. 'item.data-table-select': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  528. 'item.data-table-expand': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  529. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  530. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  531. }>>, {
  532. P: {};
  533. B: {};
  534. D: {};
  535. C: {};
  536. M: {};
  537. Defaults: {};
  538. }, {
  539. mobile: boolean | null;
  540. } & {
  541. index?: number | undefined;
  542. onClick?: ((args_0: MouseEvent) => void) | undefined;
  543. onContextmenu?: ((args_0: MouseEvent) => void) | undefined;
  544. onDblclick?: ((args_0: MouseEvent) => void) | undefined;
  545. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  546. }, {}, {}, {}, {}, {
  547. mobile: boolean | null;
  548. }>;
  549. __isFragment?: never;
  550. __isTeleport?: never;
  551. __isSuspense?: never;
  552. } & vue.ComponentOptionsBase<{
  553. mobile: boolean | null;
  554. } & {
  555. index?: number | undefined;
  556. onClick?: ((args_0: MouseEvent) => void) | undefined;
  557. onContextmenu?: ((args_0: MouseEvent) => void) | undefined;
  558. onDblclick?: ((args_0: MouseEvent) => void) | undefined;
  559. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  560. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "item" | "$children" | "v-slots" | "cellProps" | `v-slot:header.${string}` | `v-slot:item.${string}`>, string, {
  561. mobile: boolean | null;
  562. }, {}, string, vue.SlotsType<Partial<{
  563. [x: `item.${string}`]: (arg: ItemKeySlot<unknown>) => vue.VNode[];
  564. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  565. 'item.data-table-select': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  566. 'item.data-table-expand': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  567. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  568. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  569. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
  570. item?: DataTableItem<T>;
  571. cellProps?: CellProps<T>;
  572. }, slots: VDataTableRowSlots<T>) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
  573. mobile: {
  574. type: PropType<boolean | null>;
  575. default: boolean;
  576. };
  577. mobileBreakpoint: PropType<number | DisplayBreakpoint>;
  578. index: NumberConstructor;
  579. item: PropType<DataTableItem>;
  580. cellProps: PropType<CellProps<any>>;
  581. onClick: PropType<(args_0: MouseEvent) => void>;
  582. onContextmenu: PropType<(args_0: MouseEvent) => void>;
  583. onDblclick: PropType<(args_0: MouseEvent) => void>;
  584. }, vue.ExtractPropTypes<{
  585. mobile: {
  586. type: PropType<boolean | null>;
  587. default: boolean;
  588. };
  589. mobileBreakpoint: PropType<number | DisplayBreakpoint>;
  590. index: NumberConstructor;
  591. item: PropType<DataTableItem>;
  592. cellProps: PropType<CellProps<any>>;
  593. onClick: PropType<(args_0: MouseEvent) => void>;
  594. onContextmenu: PropType<(args_0: MouseEvent) => void>;
  595. onDblclick: PropType<(args_0: MouseEvent) => void>;
  596. }>>;
  597. type VDataTableRow = InstanceType<typeof VDataTableRow>;
  598. type VDataTableRowsSlots<T> = VDataTableGroupHeaderRowSlots & VDataTableRowSlots<T> & {
  599. item: ItemSlot<T> & {
  600. props: Record<string, any>;
  601. };
  602. loading: never;
  603. 'group-header': GroupHeaderSlot;
  604. 'no-data': never;
  605. 'expanded-row': ItemSlot<T>;
  606. };
  607. declare const VDataTableRows: {
  608. new (...args: any[]): vue.CreateComponentPublicInstance<{
  609. mobile: boolean | null;
  610. noDataText: string;
  611. loadingText: string;
  612. hideNoData: boolean;
  613. } & {
  614. loading?: string | boolean | undefined;
  615. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  616. cellProps?: CellProps<any> | undefined;
  617. rowProps?: RowProps<any> | undefined;
  618. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "$children" | "v-slots" | "items" | "v-slot:item" | "v-slot:no-data" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  619. mobile: boolean | null;
  620. noDataText: string;
  621. loadingText: string;
  622. hideNoData: boolean;
  623. } & {
  624. loading?: string | boolean | undefined;
  625. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  626. cellProps?: CellProps<any> | undefined;
  627. rowProps?: RowProps<any> | undefined;
  628. }, {
  629. mobile: boolean | null;
  630. noDataText: string;
  631. loadingText: string;
  632. hideNoData: boolean;
  633. }, true, {}, vue.SlotsType<Partial<{
  634. [x: `item.${string}`]: (arg: ItemKeySlot<unknown>) => vue.VNode[];
  635. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  636. 'data-table-group': (arg: {
  637. item: Group;
  638. count: number;
  639. props: Record<string, unknown>;
  640. }) => vue.VNode[];
  641. 'data-table-select': (arg: {
  642. props: Record<string, unknown>;
  643. }) => vue.VNode[];
  644. 'item.data-table-select': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  645. 'item.data-table-expand': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  646. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  647. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  648. item: (arg: {
  649. index: number;
  650. item: unknown;
  651. internalItem: DataTableItem<unknown>;
  652. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  653. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  654. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  655. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  656. } & {
  657. columns: InternalDataTableHeader[];
  658. } & {
  659. props: Record<string, any>;
  660. }) => vue.VNode[];
  661. loading: () => vue.VNode[];
  662. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  663. 'no-data': () => vue.VNode[];
  664. 'expanded-row': (arg: ItemSlot<unknown>) => vue.VNode[];
  665. }>>, {
  666. P: {};
  667. B: {};
  668. D: {};
  669. C: {};
  670. M: {};
  671. Defaults: {};
  672. }, {
  673. mobile: boolean | null;
  674. noDataText: string;
  675. loadingText: string;
  676. hideNoData: boolean;
  677. } & {
  678. loading?: string | boolean | undefined;
  679. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  680. cellProps?: CellProps<any> | undefined;
  681. rowProps?: RowProps<any> | undefined;
  682. }, {}, {}, {}, {}, {
  683. mobile: boolean | null;
  684. noDataText: string;
  685. loadingText: string;
  686. hideNoData: boolean;
  687. }>;
  688. __isFragment?: never;
  689. __isTeleport?: never;
  690. __isSuspense?: never;
  691. } & vue.ComponentOptionsBase<{
  692. mobile: boolean | null;
  693. noDataText: string;
  694. loadingText: string;
  695. hideNoData: boolean;
  696. } & {
  697. loading?: string | boolean | undefined;
  698. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  699. cellProps?: CellProps<any> | undefined;
  700. rowProps?: RowProps<any> | undefined;
  701. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "$children" | "v-slots" | "items" | "v-slot:item" | "v-slot:no-data" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row">, string, {
  702. mobile: boolean | null;
  703. noDataText: string;
  704. loadingText: string;
  705. hideNoData: boolean;
  706. }, {}, string, vue.SlotsType<Partial<{
  707. [x: `item.${string}`]: (arg: ItemKeySlot<unknown>) => vue.VNode[];
  708. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  709. 'data-table-group': (arg: {
  710. item: Group;
  711. count: number;
  712. props: Record<string, unknown>;
  713. }) => vue.VNode[];
  714. 'data-table-select': (arg: {
  715. props: Record<string, unknown>;
  716. }) => vue.VNode[];
  717. 'item.data-table-select': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  718. 'item.data-table-expand': (arg: Omit<ItemKeySlot<unknown>, "value">) => vue.VNode[];
  719. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  720. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  721. item: (arg: {
  722. index: number;
  723. item: unknown;
  724. internalItem: DataTableItem<unknown>;
  725. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  726. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  727. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  728. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  729. } & {
  730. columns: InternalDataTableHeader[];
  731. } & {
  732. props: Record<string, any>;
  733. }) => vue.VNode[];
  734. loading: () => vue.VNode[];
  735. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  736. 'no-data': () => vue.VNode[];
  737. 'expanded-row': (arg: ItemSlot<unknown>) => vue.VNode[];
  738. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
  739. items?: readonly (DataTableItem<T> | Group<T>)[];
  740. }, slots: VDataTableRowsSlots<T>) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
  741. mobile: {
  742. type: PropType<boolean | null>;
  743. default: boolean;
  744. };
  745. mobileBreakpoint: PropType<number | DisplayBreakpoint>;
  746. loading: (StringConstructor | BooleanConstructor)[];
  747. loadingText: {
  748. type: StringConstructor;
  749. default: string;
  750. };
  751. hideNoData: BooleanConstructor;
  752. items: {
  753. type: PropType<readonly (DataTableItem | Group)[]>;
  754. default: () => never[];
  755. };
  756. noDataText: {
  757. type: StringConstructor;
  758. default: string;
  759. };
  760. rowProps: PropType<RowProps<any>>;
  761. cellProps: PropType<CellProps<any>>;
  762. }, vue.ExtractPropTypes<{
  763. mobile: {
  764. type: PropType<boolean | null>;
  765. default: boolean;
  766. };
  767. mobileBreakpoint: PropType<number | DisplayBreakpoint>;
  768. loading: (StringConstructor | BooleanConstructor)[];
  769. loadingText: {
  770. type: StringConstructor;
  771. default: string;
  772. };
  773. hideNoData: BooleanConstructor;
  774. items: {
  775. type: PropType<readonly (DataTableItem | Group)[]>;
  776. default: () => never[];
  777. };
  778. noDataText: {
  779. type: StringConstructor;
  780. default: string;
  781. };
  782. rowProps: PropType<RowProps<any>>;
  783. cellProps: PropType<CellProps<any>>;
  784. }>>;
  785. type VDataTableRows = InstanceType<typeof VDataTableRows>;
  786. type VDataTableSlotProps<T> = {
  787. page: number;
  788. itemsPerPage: number;
  789. sortBy: UnwrapRef<ReturnType<typeof provideSort>['sortBy']>;
  790. pageCount: number;
  791. toggleSort: ReturnType<typeof provideSort>['toggleSort'];
  792. setItemsPerPage: ReturnType<typeof providePagination>['setItemsPerPage'];
  793. someSelected: boolean;
  794. allSelected: boolean;
  795. isSelected: ReturnType<typeof provideSelection>['isSelected'];
  796. select: ReturnType<typeof provideSelection>['select'];
  797. selectAll: ReturnType<typeof provideSelection>['selectAll'];
  798. toggleSelect: ReturnType<typeof provideSelection>['toggleSelect'];
  799. isExpanded: ReturnType<typeof provideExpanded>['isExpanded'];
  800. toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand'];
  801. isGroupOpen: ReturnType<typeof provideGroupBy>['isGroupOpen'];
  802. toggleGroup: ReturnType<typeof provideGroupBy>['toggleGroup'];
  803. items: readonly T[];
  804. internalItems: readonly DataTableItem[];
  805. groupedItems: readonly (DataTableItem<T> | Group<DataTableItem<T>>)[];
  806. columns: InternalDataTableHeader[];
  807. headers: InternalDataTableHeader[][];
  808. };
  809. type VDataTableSlots<T> = VDataTableRowsSlots<T> & VDataTableHeadersSlots & {
  810. default: VDataTableSlotProps<T>;
  811. colgroup: VDataTableSlotProps<T>;
  812. top: VDataTableSlotProps<T>;
  813. body: VDataTableSlotProps<T>;
  814. tbody: VDataTableSlotProps<T>;
  815. thead: VDataTableSlotProps<T>;
  816. tfoot: VDataTableSlotProps<T>;
  817. bottom: VDataTableSlotProps<T>;
  818. 'body.prepend': VDataTableSlotProps<T>;
  819. 'body.append': VDataTableSlotProps<T>;
  820. 'footer.prepend': never;
  821. };
  822. type ItemType$2<T> = T extends readonly (infer U)[] ? U : never;
  823. declare const VDataTable: {
  824. new (...args: any[]): vue.CreateComponentPublicInstance<{
  825. page: string | number;
  826. expanded: readonly string[];
  827. style: vue.StyleValue;
  828. mobile: boolean | null;
  829. tag: string;
  830. sticky: boolean;
  831. noDataText: string;
  832. loadingText: string;
  833. itemsPerPageText: string;
  834. sortBy: readonly SortItem[];
  835. pageText: string;
  836. density: Density;
  837. valueComparator: typeof deepEqual;
  838. nextIcon: IconValue;
  839. prevIcon: IconValue;
  840. selectStrategy: "all" | "page" | "single";
  841. returnObject: boolean;
  842. filterMode: FilterMode;
  843. noFilter: boolean;
  844. hideNoData: boolean;
  845. hover: boolean;
  846. multiSort: boolean;
  847. mustSort: boolean;
  848. groupBy: readonly SortItem[];
  849. disableSort: boolean;
  850. showSelect: boolean;
  851. expandOnClick: boolean;
  852. showExpand: boolean;
  853. itemsPerPage: string | number;
  854. firstIcon: IconValue;
  855. lastIcon: IconValue;
  856. firstPageLabel: string;
  857. prevPageLabel: string;
  858. nextPageLabel: string;
  859. lastPageLabel: string;
  860. itemsPerPageOptions: readonly (number | {
  861. title: string;
  862. value: number;
  863. })[];
  864. showCurrentPage: boolean;
  865. sortAscIcon: IconValue;
  866. sortDescIcon: IconValue;
  867. fixedHeader: boolean;
  868. fixedFooter: boolean;
  869. hideDefaultBody: boolean;
  870. hideDefaultFooter: boolean;
  871. hideDefaultHeader: boolean;
  872. } & {
  873. search?: string | undefined;
  874. height?: string | number | undefined;
  875. width?: string | number | undefined;
  876. color?: string | undefined;
  877. loading?: string | boolean | undefined;
  878. class?: any;
  879. theme?: string | undefined;
  880. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  881. customFilter?: FilterFunction | undefined;
  882. customKeyFilter?: FilterKeyFunctions | undefined;
  883. filterKeys?: FilterKeys | undefined;
  884. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  885. headerProps?: Record<string, any> | undefined;
  886. } & {
  887. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  888. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  889. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  890. "onUpdate:page"?: ((value: number) => any) | undefined;
  891. "onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
  892. "onUpdate:options"?: ((value: any) => any) | undefined;
  893. "onUpdate:currentItems"?: ((value: any) => any) | undefined;
  894. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
  895. 'update:modelValue': (value: any[]) => true;
  896. 'update:page': (value: number) => true;
  897. 'update:itemsPerPage': (value: number) => true;
  898. 'update:sortBy': (value: any) => true;
  899. 'update:options': (value: any) => true;
  900. 'update:groupBy': (value: any) => true;
  901. 'update:expanded': (value: any) => true;
  902. 'update:currentItems': (value: any) => true;
  903. }, "headers" | "$children" | "v-slots" | "v-slot:default" | "modelValue" | "items" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "itemValue" | "v-slot:no-data" | "cellProps" | "itemSelectable" | "rowProps" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:body" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append" | "v-slot:footer.prepend">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  904. page: string | number;
  905. expanded: readonly string[];
  906. style: vue.StyleValue;
  907. mobile: boolean | null;
  908. tag: string;
  909. sticky: boolean;
  910. noDataText: string;
  911. loadingText: string;
  912. itemsPerPageText: string;
  913. sortBy: readonly SortItem[];
  914. pageText: string;
  915. density: Density;
  916. valueComparator: typeof deepEqual;
  917. nextIcon: IconValue;
  918. prevIcon: IconValue;
  919. selectStrategy: "all" | "page" | "single";
  920. returnObject: boolean;
  921. filterMode: FilterMode;
  922. noFilter: boolean;
  923. hideNoData: boolean;
  924. hover: boolean;
  925. multiSort: boolean;
  926. mustSort: boolean;
  927. groupBy: readonly SortItem[];
  928. disableSort: boolean;
  929. showSelect: boolean;
  930. expandOnClick: boolean;
  931. showExpand: boolean;
  932. itemsPerPage: string | number;
  933. firstIcon: IconValue;
  934. lastIcon: IconValue;
  935. firstPageLabel: string;
  936. prevPageLabel: string;
  937. nextPageLabel: string;
  938. lastPageLabel: string;
  939. itemsPerPageOptions: readonly (number | {
  940. title: string;
  941. value: number;
  942. })[];
  943. showCurrentPage: boolean;
  944. sortAscIcon: IconValue;
  945. sortDescIcon: IconValue;
  946. fixedHeader: boolean;
  947. fixedFooter: boolean;
  948. hideDefaultBody: boolean;
  949. hideDefaultFooter: boolean;
  950. hideDefaultHeader: boolean;
  951. } & {
  952. search?: string | undefined;
  953. height?: string | number | undefined;
  954. width?: string | number | undefined;
  955. color?: string | undefined;
  956. loading?: string | boolean | undefined;
  957. class?: any;
  958. theme?: string | undefined;
  959. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  960. customFilter?: FilterFunction | undefined;
  961. customKeyFilter?: FilterKeyFunctions | undefined;
  962. filterKeys?: FilterKeys | undefined;
  963. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  964. headerProps?: Record<string, any> | undefined;
  965. } & {
  966. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  967. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  968. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  969. "onUpdate:page"?: ((value: number) => any) | undefined;
  970. "onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
  971. "onUpdate:options"?: ((value: any) => any) | undefined;
  972. "onUpdate:currentItems"?: ((value: any) => any) | undefined;
  973. }, {
  974. page: string | number;
  975. expanded: readonly string[];
  976. style: vue.StyleValue;
  977. mobile: boolean | null;
  978. tag: string;
  979. sticky: boolean;
  980. noDataText: string;
  981. loadingText: string;
  982. itemsPerPageText: string;
  983. sortBy: readonly SortItem[];
  984. pageText: string;
  985. density: Density;
  986. valueComparator: typeof deepEqual;
  987. nextIcon: IconValue;
  988. prevIcon: IconValue;
  989. selectStrategy: "all" | "page" | "single";
  990. returnObject: boolean;
  991. filterMode: FilterMode;
  992. noFilter: boolean;
  993. hideNoData: boolean;
  994. hover: boolean;
  995. multiSort: boolean;
  996. mustSort: boolean;
  997. groupBy: readonly SortItem[];
  998. disableSort: boolean;
  999. showSelect: boolean;
  1000. expandOnClick: boolean;
  1001. showExpand: boolean;
  1002. itemsPerPage: string | number;
  1003. firstIcon: IconValue;
  1004. lastIcon: IconValue;
  1005. firstPageLabel: string;
  1006. prevPageLabel: string;
  1007. nextPageLabel: string;
  1008. lastPageLabel: string;
  1009. itemsPerPageOptions: readonly (number | {
  1010. title: string;
  1011. value: number;
  1012. })[];
  1013. showCurrentPage: boolean;
  1014. sortAscIcon: IconValue;
  1015. sortDescIcon: IconValue;
  1016. fixedHeader: boolean;
  1017. fixedFooter: boolean;
  1018. hideDefaultBody: boolean;
  1019. hideDefaultFooter: boolean;
  1020. hideDefaultHeader: boolean;
  1021. }, true, {}, vue.SlotsType<Partial<{
  1022. [x: `item.${string}`]: (arg: ItemKeySlot<any>) => vue.VNode[];
  1023. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  1024. 'data-table-group': (arg: {
  1025. item: Group;
  1026. count: number;
  1027. props: Record<string, unknown>;
  1028. }) => vue.VNode[];
  1029. 'data-table-select': (arg: {
  1030. props: Record<string, unknown>;
  1031. }) => vue.VNode[];
  1032. 'item.data-table-select': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  1033. 'item.data-table-expand': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  1034. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  1035. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  1036. item: (arg: {
  1037. index: number;
  1038. item: any;
  1039. internalItem: DataTableItem<any>;
  1040. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  1041. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  1042. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  1043. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  1044. } & {
  1045. columns: InternalDataTableHeader[];
  1046. } & {
  1047. props: Record<string, any>;
  1048. }) => vue.VNode[];
  1049. loading: () => vue.VNode[];
  1050. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  1051. 'no-data': () => vue.VNode[];
  1052. 'expanded-row': (arg: ItemSlot<any>) => vue.VNode[];
  1053. headers: (arg: HeadersSlotProps) => vue.VNode[];
  1054. loader: (arg: LoaderSlotProps) => vue.VNode[];
  1055. default: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1056. colgroup: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1057. top: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1058. body: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1059. tbody: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1060. thead: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1061. tfoot: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1062. bottom: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1063. 'body.prepend': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1064. 'body.append': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1065. 'footer.prepend': () => vue.VNode[];
  1066. }>>, {
  1067. P: {};
  1068. B: {};
  1069. D: {};
  1070. C: {};
  1071. M: {};
  1072. Defaults: {};
  1073. }, {
  1074. page: string | number;
  1075. expanded: readonly string[];
  1076. style: vue.StyleValue;
  1077. mobile: boolean | null;
  1078. tag: string;
  1079. sticky: boolean;
  1080. noDataText: string;
  1081. loadingText: string;
  1082. itemsPerPageText: string;
  1083. sortBy: readonly SortItem[];
  1084. pageText: string;
  1085. density: Density;
  1086. valueComparator: typeof deepEqual;
  1087. nextIcon: IconValue;
  1088. prevIcon: IconValue;
  1089. selectStrategy: "all" | "page" | "single";
  1090. returnObject: boolean;
  1091. filterMode: FilterMode;
  1092. noFilter: boolean;
  1093. hideNoData: boolean;
  1094. hover: boolean;
  1095. multiSort: boolean;
  1096. mustSort: boolean;
  1097. groupBy: readonly SortItem[];
  1098. disableSort: boolean;
  1099. showSelect: boolean;
  1100. expandOnClick: boolean;
  1101. showExpand: boolean;
  1102. itemsPerPage: string | number;
  1103. firstIcon: IconValue;
  1104. lastIcon: IconValue;
  1105. firstPageLabel: string;
  1106. prevPageLabel: string;
  1107. nextPageLabel: string;
  1108. lastPageLabel: string;
  1109. itemsPerPageOptions: readonly (number | {
  1110. title: string;
  1111. value: number;
  1112. })[];
  1113. showCurrentPage: boolean;
  1114. sortAscIcon: IconValue;
  1115. sortDescIcon: IconValue;
  1116. fixedHeader: boolean;
  1117. fixedFooter: boolean;
  1118. hideDefaultBody: boolean;
  1119. hideDefaultFooter: boolean;
  1120. hideDefaultHeader: boolean;
  1121. } & {
  1122. search?: string | undefined;
  1123. height?: string | number | undefined;
  1124. width?: string | number | undefined;
  1125. color?: string | undefined;
  1126. loading?: string | boolean | undefined;
  1127. class?: any;
  1128. theme?: string | undefined;
  1129. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  1130. customFilter?: FilterFunction | undefined;
  1131. customKeyFilter?: FilterKeyFunctions | undefined;
  1132. filterKeys?: FilterKeys | undefined;
  1133. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  1134. headerProps?: Record<string, any> | undefined;
  1135. } & {
  1136. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  1137. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  1138. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  1139. "onUpdate:page"?: ((value: number) => any) | undefined;
  1140. "onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
  1141. "onUpdate:options"?: ((value: any) => any) | undefined;
  1142. "onUpdate:currentItems"?: ((value: any) => any) | undefined;
  1143. }, {}, {}, {}, {}, {
  1144. page: string | number;
  1145. expanded: readonly string[];
  1146. style: vue.StyleValue;
  1147. mobile: boolean | null;
  1148. tag: string;
  1149. sticky: boolean;
  1150. noDataText: string;
  1151. loadingText: string;
  1152. itemsPerPageText: string;
  1153. sortBy: readonly SortItem[];
  1154. pageText: string;
  1155. density: Density;
  1156. valueComparator: typeof deepEqual;
  1157. nextIcon: IconValue;
  1158. prevIcon: IconValue;
  1159. selectStrategy: "all" | "page" | "single";
  1160. returnObject: boolean;
  1161. filterMode: FilterMode;
  1162. noFilter: boolean;
  1163. hideNoData: boolean;
  1164. hover: boolean;
  1165. multiSort: boolean;
  1166. mustSort: boolean;
  1167. groupBy: readonly SortItem[];
  1168. disableSort: boolean;
  1169. showSelect: boolean;
  1170. expandOnClick: boolean;
  1171. showExpand: boolean;
  1172. itemsPerPage: string | number;
  1173. firstIcon: IconValue;
  1174. lastIcon: IconValue;
  1175. firstPageLabel: string;
  1176. prevPageLabel: string;
  1177. nextPageLabel: string;
  1178. lastPageLabel: string;
  1179. itemsPerPageOptions: readonly (number | {
  1180. title: string;
  1181. value: number;
  1182. })[];
  1183. showCurrentPage: boolean;
  1184. sortAscIcon: IconValue;
  1185. sortDescIcon: IconValue;
  1186. fixedHeader: boolean;
  1187. fixedFooter: boolean;
  1188. hideDefaultBody: boolean;
  1189. hideDefaultFooter: boolean;
  1190. hideDefaultHeader: boolean;
  1191. }>;
  1192. __isFragment?: never;
  1193. __isTeleport?: never;
  1194. __isSuspense?: never;
  1195. } & vue.ComponentOptionsBase<{
  1196. page: string | number;
  1197. expanded: readonly string[];
  1198. style: vue.StyleValue;
  1199. mobile: boolean | null;
  1200. tag: string;
  1201. sticky: boolean;
  1202. noDataText: string;
  1203. loadingText: string;
  1204. itemsPerPageText: string;
  1205. sortBy: readonly SortItem[];
  1206. pageText: string;
  1207. density: Density;
  1208. valueComparator: typeof deepEqual;
  1209. nextIcon: IconValue;
  1210. prevIcon: IconValue;
  1211. selectStrategy: "all" | "page" | "single";
  1212. returnObject: boolean;
  1213. filterMode: FilterMode;
  1214. noFilter: boolean;
  1215. hideNoData: boolean;
  1216. hover: boolean;
  1217. multiSort: boolean;
  1218. mustSort: boolean;
  1219. groupBy: readonly SortItem[];
  1220. disableSort: boolean;
  1221. showSelect: boolean;
  1222. expandOnClick: boolean;
  1223. showExpand: boolean;
  1224. itemsPerPage: string | number;
  1225. firstIcon: IconValue;
  1226. lastIcon: IconValue;
  1227. firstPageLabel: string;
  1228. prevPageLabel: string;
  1229. nextPageLabel: string;
  1230. lastPageLabel: string;
  1231. itemsPerPageOptions: readonly (number | {
  1232. title: string;
  1233. value: number;
  1234. })[];
  1235. showCurrentPage: boolean;
  1236. sortAscIcon: IconValue;
  1237. sortDescIcon: IconValue;
  1238. fixedHeader: boolean;
  1239. fixedFooter: boolean;
  1240. hideDefaultBody: boolean;
  1241. hideDefaultFooter: boolean;
  1242. hideDefaultHeader: boolean;
  1243. } & {
  1244. search?: string | undefined;
  1245. height?: string | number | undefined;
  1246. width?: string | number | undefined;
  1247. color?: string | undefined;
  1248. loading?: string | boolean | undefined;
  1249. class?: any;
  1250. theme?: string | undefined;
  1251. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  1252. customFilter?: FilterFunction | undefined;
  1253. customKeyFilter?: FilterKeyFunctions | undefined;
  1254. filterKeys?: FilterKeys | undefined;
  1255. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  1256. headerProps?: Record<string, any> | undefined;
  1257. } & {
  1258. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  1259. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  1260. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  1261. "onUpdate:page"?: ((value: number) => any) | undefined;
  1262. "onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
  1263. "onUpdate:options"?: ((value: any) => any) | undefined;
  1264. "onUpdate:currentItems"?: ((value: any) => any) | undefined;
  1265. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
  1266. 'update:modelValue': (value: any[]) => true;
  1267. 'update:page': (value: number) => true;
  1268. 'update:itemsPerPage': (value: number) => true;
  1269. 'update:sortBy': (value: any) => true;
  1270. 'update:options': (value: any) => true;
  1271. 'update:groupBy': (value: any) => true;
  1272. 'update:expanded': (value: any) => true;
  1273. 'update:currentItems': (value: any) => true;
  1274. }, "headers" | "$children" | "v-slots" | "v-slot:default" | "modelValue" | "items" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "itemValue" | "v-slot:no-data" | "cellProps" | "itemSelectable" | "rowProps" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:body" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append" | "v-slot:footer.prepend">, string, {
  1275. page: string | number;
  1276. expanded: readonly string[];
  1277. style: vue.StyleValue;
  1278. mobile: boolean | null;
  1279. tag: string;
  1280. sticky: boolean;
  1281. noDataText: string;
  1282. loadingText: string;
  1283. itemsPerPageText: string;
  1284. sortBy: readonly SortItem[];
  1285. pageText: string;
  1286. density: Density;
  1287. valueComparator: typeof deepEqual;
  1288. nextIcon: IconValue;
  1289. prevIcon: IconValue;
  1290. selectStrategy: "all" | "page" | "single";
  1291. returnObject: boolean;
  1292. filterMode: FilterMode;
  1293. noFilter: boolean;
  1294. hideNoData: boolean;
  1295. hover: boolean;
  1296. multiSort: boolean;
  1297. mustSort: boolean;
  1298. groupBy: readonly SortItem[];
  1299. disableSort: boolean;
  1300. showSelect: boolean;
  1301. expandOnClick: boolean;
  1302. showExpand: boolean;
  1303. itemsPerPage: string | number;
  1304. firstIcon: IconValue;
  1305. lastIcon: IconValue;
  1306. firstPageLabel: string;
  1307. prevPageLabel: string;
  1308. nextPageLabel: string;
  1309. lastPageLabel: string;
  1310. itemsPerPageOptions: readonly (number | {
  1311. title: string;
  1312. value: number;
  1313. })[];
  1314. showCurrentPage: boolean;
  1315. sortAscIcon: IconValue;
  1316. sortDescIcon: IconValue;
  1317. fixedHeader: boolean;
  1318. fixedFooter: boolean;
  1319. hideDefaultBody: boolean;
  1320. hideDefaultFooter: boolean;
  1321. hideDefaultHeader: boolean;
  1322. }, {}, string, vue.SlotsType<Partial<{
  1323. [x: `item.${string}`]: (arg: ItemKeySlot<any>) => vue.VNode[];
  1324. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  1325. 'data-table-group': (arg: {
  1326. item: Group;
  1327. count: number;
  1328. props: Record<string, unknown>;
  1329. }) => vue.VNode[];
  1330. 'data-table-select': (arg: {
  1331. props: Record<string, unknown>;
  1332. }) => vue.VNode[];
  1333. 'item.data-table-select': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  1334. 'item.data-table-expand': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  1335. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  1336. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  1337. item: (arg: {
  1338. index: number;
  1339. item: any;
  1340. internalItem: DataTableItem<any>;
  1341. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  1342. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  1343. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  1344. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  1345. } & {
  1346. columns: InternalDataTableHeader[];
  1347. } & {
  1348. props: Record<string, any>;
  1349. }) => vue.VNode[];
  1350. loading: () => vue.VNode[];
  1351. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  1352. 'no-data': () => vue.VNode[];
  1353. 'expanded-row': (arg: ItemSlot<any>) => vue.VNode[];
  1354. headers: (arg: HeadersSlotProps) => vue.VNode[];
  1355. loader: (arg: LoaderSlotProps) => vue.VNode[];
  1356. default: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1357. colgroup: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1358. top: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1359. body: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1360. tbody: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1361. thead: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1362. tfoot: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1363. bottom: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1364. 'body.prepend': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1365. 'body.append': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  1366. 'footer.prepend': () => vue.VNode[];
  1367. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T extends readonly any[], V>(props: {
  1368. items?: T;
  1369. itemValue?: SelectItemKey<ItemType$2<T>>;
  1370. rowProps?: RowProps<ItemType$2<T>>;
  1371. cellProps?: CellProps<ItemType$2<T>>;
  1372. itemSelectable?: SelectItemKey<ItemType$2<T>>;
  1373. headers?: DeepReadonly<DataTableHeader<ItemType$2<T>>[]>;
  1374. modelValue?: V;
  1375. "onUpdate:modelValue"?: (value: V) => void;
  1376. }, slots: VDataTableSlots<ItemType$2<T>>) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
  1377. prevIcon: {
  1378. type: vue.PropType<IconValue>;
  1379. default: string;
  1380. };
  1381. nextIcon: {
  1382. type: vue.PropType<IconValue>;
  1383. default: string;
  1384. };
  1385. firstIcon: {
  1386. type: vue.PropType<IconValue>;
  1387. default: string;
  1388. };
  1389. lastIcon: {
  1390. type: vue.PropType<IconValue>;
  1391. default: string;
  1392. };
  1393. itemsPerPageText: {
  1394. type: StringConstructor;
  1395. default: string;
  1396. };
  1397. pageText: {
  1398. type: StringConstructor;
  1399. default: string;
  1400. };
  1401. firstPageLabel: {
  1402. type: StringConstructor;
  1403. default: string;
  1404. };
  1405. prevPageLabel: {
  1406. type: StringConstructor;
  1407. default: string;
  1408. };
  1409. nextPageLabel: {
  1410. type: StringConstructor;
  1411. default: string;
  1412. };
  1413. lastPageLabel: {
  1414. type: StringConstructor;
  1415. default: string;
  1416. };
  1417. itemsPerPageOptions: {
  1418. type: vue.PropType<readonly (number | {
  1419. title: string;
  1420. value: number;
  1421. })[]>;
  1422. default: () => {
  1423. value: number;
  1424. title: string;
  1425. }[];
  1426. };
  1427. showCurrentPage: BooleanConstructor;
  1428. customFilter: vue.PropType<FilterFunction>;
  1429. customKeyFilter: vue.PropType<FilterKeyFunctions>;
  1430. filterKeys: vue.PropType<FilterKeys>;
  1431. filterMode: {
  1432. type: vue.PropType<FilterMode>;
  1433. default: string;
  1434. };
  1435. noFilter: BooleanConstructor;
  1436. theme: StringConstructor;
  1437. tag: {
  1438. type: StringConstructor;
  1439. default: string;
  1440. };
  1441. density: {
  1442. type: vue.PropType<Density>;
  1443. default: string;
  1444. validator: (v: any) => boolean;
  1445. };
  1446. class: vue.PropType<ClassValue>;
  1447. style: {
  1448. type: vue.PropType<vue.StyleValue>;
  1449. default: null;
  1450. };
  1451. fixedHeader: BooleanConstructor;
  1452. fixedFooter: BooleanConstructor;
  1453. height: (StringConstructor | NumberConstructor)[];
  1454. hover: BooleanConstructor;
  1455. loading: (StringConstructor | BooleanConstructor)[];
  1456. mobile: {
  1457. type: vue.PropType<boolean | null>;
  1458. default: boolean;
  1459. };
  1460. mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
  1461. color: StringConstructor;
  1462. sticky: BooleanConstructor;
  1463. disableSort: BooleanConstructor;
  1464. multiSort: BooleanConstructor;
  1465. sortAscIcon: {
  1466. type: vue.PropType<IconValue>;
  1467. default: string;
  1468. };
  1469. sortDescIcon: {
  1470. type: vue.PropType<IconValue>;
  1471. default: string;
  1472. };
  1473. headerProps: {
  1474. type: vue.PropType<Record<string, any>>;
  1475. };
  1476. sortBy: {
  1477. type: vue.PropType<readonly SortItem[]>;
  1478. default: () => never[];
  1479. };
  1480. customKeySort: vue.PropType<Record<string, DataTableCompareFunction>>;
  1481. mustSort: BooleanConstructor;
  1482. showSelect: BooleanConstructor;
  1483. selectStrategy: {
  1484. type: vue.PropType<"single" | "page" | "all">;
  1485. default: string;
  1486. };
  1487. modelValue: {
  1488. type: vue.PropType<readonly any[]>;
  1489. default: () => never[];
  1490. };
  1491. valueComparator: {
  1492. type: vue.PropType<typeof deepEqual>;
  1493. default: typeof deepEqual;
  1494. };
  1495. items: {
  1496. type: vue.PropType<DataTableItemProps["items"]>;
  1497. default: () => never[];
  1498. };
  1499. itemValue: {
  1500. type: vue.PropType<SelectItemKey>;
  1501. default: string;
  1502. };
  1503. itemSelectable: {
  1504. type: vue.PropType<SelectItemKey>;
  1505. default: null;
  1506. };
  1507. rowProps: vue.PropType<RowProps<any>>;
  1508. cellProps: vue.PropType<CellProps<any>>;
  1509. returnObject: BooleanConstructor;
  1510. headers: vue.PropType<DeepReadonly<DataTableHeader[]>>;
  1511. groupBy: {
  1512. type: vue.PropType<readonly SortItem[]>;
  1513. default: () => never[];
  1514. };
  1515. expandOnClick: BooleanConstructor;
  1516. showExpand: BooleanConstructor;
  1517. expanded: {
  1518. type: vue.PropType<readonly string[]>;
  1519. default: () => never[];
  1520. };
  1521. hideDefaultBody: BooleanConstructor;
  1522. hideDefaultFooter: BooleanConstructor;
  1523. hideDefaultHeader: BooleanConstructor;
  1524. width: (StringConstructor | NumberConstructor)[];
  1525. search: StringConstructor;
  1526. loadingText: {
  1527. type: StringConstructor;
  1528. default: string;
  1529. };
  1530. hideNoData: BooleanConstructor;
  1531. noDataText: {
  1532. type: StringConstructor;
  1533. default: string;
  1534. };
  1535. page: {
  1536. type: (StringConstructor | NumberConstructor)[];
  1537. default: number;
  1538. };
  1539. itemsPerPage: {
  1540. type: (StringConstructor | NumberConstructor)[];
  1541. default: number;
  1542. };
  1543. }, vue.ExtractPropTypes<{
  1544. prevIcon: {
  1545. type: vue.PropType<IconValue>;
  1546. default: string;
  1547. };
  1548. nextIcon: {
  1549. type: vue.PropType<IconValue>;
  1550. default: string;
  1551. };
  1552. firstIcon: {
  1553. type: vue.PropType<IconValue>;
  1554. default: string;
  1555. };
  1556. lastIcon: {
  1557. type: vue.PropType<IconValue>;
  1558. default: string;
  1559. };
  1560. itemsPerPageText: {
  1561. type: StringConstructor;
  1562. default: string;
  1563. };
  1564. pageText: {
  1565. type: StringConstructor;
  1566. default: string;
  1567. };
  1568. firstPageLabel: {
  1569. type: StringConstructor;
  1570. default: string;
  1571. };
  1572. prevPageLabel: {
  1573. type: StringConstructor;
  1574. default: string;
  1575. };
  1576. nextPageLabel: {
  1577. type: StringConstructor;
  1578. default: string;
  1579. };
  1580. lastPageLabel: {
  1581. type: StringConstructor;
  1582. default: string;
  1583. };
  1584. itemsPerPageOptions: {
  1585. type: vue.PropType<readonly (number | {
  1586. title: string;
  1587. value: number;
  1588. })[]>;
  1589. default: () => {
  1590. value: number;
  1591. title: string;
  1592. }[];
  1593. };
  1594. showCurrentPage: BooleanConstructor;
  1595. customFilter: vue.PropType<FilterFunction>;
  1596. customKeyFilter: vue.PropType<FilterKeyFunctions>;
  1597. filterKeys: vue.PropType<FilterKeys>;
  1598. filterMode: {
  1599. type: vue.PropType<FilterMode>;
  1600. default: string;
  1601. };
  1602. noFilter: BooleanConstructor;
  1603. theme: StringConstructor;
  1604. tag: {
  1605. type: StringConstructor;
  1606. default: string;
  1607. };
  1608. density: {
  1609. type: vue.PropType<Density>;
  1610. default: string;
  1611. validator: (v: any) => boolean;
  1612. };
  1613. class: vue.PropType<ClassValue>;
  1614. style: {
  1615. type: vue.PropType<vue.StyleValue>;
  1616. default: null;
  1617. };
  1618. fixedHeader: BooleanConstructor;
  1619. fixedFooter: BooleanConstructor;
  1620. height: (StringConstructor | NumberConstructor)[];
  1621. hover: BooleanConstructor;
  1622. loading: (StringConstructor | BooleanConstructor)[];
  1623. mobile: {
  1624. type: vue.PropType<boolean | null>;
  1625. default: boolean;
  1626. };
  1627. mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
  1628. color: StringConstructor;
  1629. sticky: BooleanConstructor;
  1630. disableSort: BooleanConstructor;
  1631. multiSort: BooleanConstructor;
  1632. sortAscIcon: {
  1633. type: vue.PropType<IconValue>;
  1634. default: string;
  1635. };
  1636. sortDescIcon: {
  1637. type: vue.PropType<IconValue>;
  1638. default: string;
  1639. };
  1640. headerProps: {
  1641. type: vue.PropType<Record<string, any>>;
  1642. };
  1643. sortBy: {
  1644. type: vue.PropType<readonly SortItem[]>;
  1645. default: () => never[];
  1646. };
  1647. customKeySort: vue.PropType<Record<string, DataTableCompareFunction>>;
  1648. mustSort: BooleanConstructor;
  1649. showSelect: BooleanConstructor;
  1650. selectStrategy: {
  1651. type: vue.PropType<"single" | "page" | "all">;
  1652. default: string;
  1653. };
  1654. modelValue: {
  1655. type: vue.PropType<readonly any[]>;
  1656. default: () => never[];
  1657. };
  1658. valueComparator: {
  1659. type: vue.PropType<typeof deepEqual>;
  1660. default: typeof deepEqual;
  1661. };
  1662. items: {
  1663. type: vue.PropType<DataTableItemProps["items"]>;
  1664. default: () => never[];
  1665. };
  1666. itemValue: {
  1667. type: vue.PropType<SelectItemKey>;
  1668. default: string;
  1669. };
  1670. itemSelectable: {
  1671. type: vue.PropType<SelectItemKey>;
  1672. default: null;
  1673. };
  1674. rowProps: vue.PropType<RowProps<any>>;
  1675. cellProps: vue.PropType<CellProps<any>>;
  1676. returnObject: BooleanConstructor;
  1677. headers: vue.PropType<DeepReadonly<DataTableHeader[]>>;
  1678. groupBy: {
  1679. type: vue.PropType<readonly SortItem[]>;
  1680. default: () => never[];
  1681. };
  1682. expandOnClick: BooleanConstructor;
  1683. showExpand: BooleanConstructor;
  1684. expanded: {
  1685. type: vue.PropType<readonly string[]>;
  1686. default: () => never[];
  1687. };
  1688. hideDefaultBody: BooleanConstructor;
  1689. hideDefaultFooter: BooleanConstructor;
  1690. hideDefaultHeader: BooleanConstructor;
  1691. width: (StringConstructor | NumberConstructor)[];
  1692. search: StringConstructor;
  1693. loadingText: {
  1694. type: StringConstructor;
  1695. default: string;
  1696. };
  1697. hideNoData: BooleanConstructor;
  1698. noDataText: {
  1699. type: StringConstructor;
  1700. default: string;
  1701. };
  1702. page: {
  1703. type: (StringConstructor | NumberConstructor)[];
  1704. default: number;
  1705. };
  1706. itemsPerPage: {
  1707. type: (StringConstructor | NumberConstructor)[];
  1708. default: number;
  1709. };
  1710. }>>;
  1711. type VDataTable = InstanceType<typeof VDataTable>;
  1712. declare const VDataTableFooter: {
  1713. new (...args: any[]): vue.CreateComponentPublicInstance<{
  1714. itemsPerPageText: string;
  1715. pageText: string;
  1716. nextIcon: IconValue;
  1717. prevIcon: IconValue;
  1718. firstIcon: IconValue;
  1719. lastIcon: IconValue;
  1720. firstPageLabel: string;
  1721. prevPageLabel: string;
  1722. nextPageLabel: string;
  1723. lastPageLabel: string;
  1724. itemsPerPageOptions: readonly (number | {
  1725. title: string;
  1726. value: number;
  1727. })[];
  1728. showCurrentPage: boolean;
  1729. } & {} & {
  1730. $children?: {} | vue.VNodeChild | {
  1731. prepend?: (() => vue.VNodeChild) | undefined;
  1732. };
  1733. 'v-slots'?: {
  1734. prepend?: false | (() => vue.VNodeChild) | undefined;
  1735. } | undefined;
  1736. } & {
  1737. "v-slot:prepend"?: false | (() => vue.VNodeChild) | undefined;
  1738. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  1739. itemsPerPageText: string;
  1740. pageText: string;
  1741. nextIcon: IconValue;
  1742. prevIcon: IconValue;
  1743. firstIcon: IconValue;
  1744. lastIcon: IconValue;
  1745. firstPageLabel: string;
  1746. prevPageLabel: string;
  1747. nextPageLabel: string;
  1748. lastPageLabel: string;
  1749. itemsPerPageOptions: readonly (number | {
  1750. title: string;
  1751. value: number;
  1752. })[];
  1753. showCurrentPage: boolean;
  1754. } & {} & {
  1755. $children?: {} | vue.VNodeChild | {
  1756. prepend?: (() => vue.VNodeChild) | undefined;
  1757. };
  1758. 'v-slots'?: {
  1759. prepend?: false | (() => vue.VNodeChild) | undefined;
  1760. } | undefined;
  1761. } & {
  1762. "v-slot:prepend"?: false | (() => vue.VNodeChild) | undefined;
  1763. }, {
  1764. itemsPerPageText: string;
  1765. pageText: string;
  1766. nextIcon: IconValue;
  1767. prevIcon: IconValue;
  1768. firstIcon: IconValue;
  1769. lastIcon: IconValue;
  1770. firstPageLabel: string;
  1771. prevPageLabel: string;
  1772. nextPageLabel: string;
  1773. lastPageLabel: string;
  1774. itemsPerPageOptions: readonly (number | {
  1775. title: string;
  1776. value: number;
  1777. })[];
  1778. showCurrentPage: boolean;
  1779. }, true, {}, vue.SlotsType<Partial<{
  1780. prepend: () => vue.VNode[];
  1781. }>>, {
  1782. P: {};
  1783. B: {};
  1784. D: {};
  1785. C: {};
  1786. M: {};
  1787. Defaults: {};
  1788. }, {
  1789. itemsPerPageText: string;
  1790. pageText: string;
  1791. nextIcon: IconValue;
  1792. prevIcon: IconValue;
  1793. firstIcon: IconValue;
  1794. lastIcon: IconValue;
  1795. firstPageLabel: string;
  1796. prevPageLabel: string;
  1797. nextPageLabel: string;
  1798. lastPageLabel: string;
  1799. itemsPerPageOptions: readonly (number | {
  1800. title: string;
  1801. value: number;
  1802. })[];
  1803. showCurrentPage: boolean;
  1804. } & {} & {
  1805. $children?: {} | vue.VNodeChild | {
  1806. prepend?: (() => vue.VNodeChild) | undefined;
  1807. };
  1808. 'v-slots'?: {
  1809. prepend?: false | (() => vue.VNodeChild) | undefined;
  1810. } | undefined;
  1811. } & {
  1812. "v-slot:prepend"?: false | (() => vue.VNodeChild) | undefined;
  1813. }, {}, {}, {}, {}, {
  1814. itemsPerPageText: string;
  1815. pageText: string;
  1816. nextIcon: IconValue;
  1817. prevIcon: IconValue;
  1818. firstIcon: IconValue;
  1819. lastIcon: IconValue;
  1820. firstPageLabel: string;
  1821. prevPageLabel: string;
  1822. nextPageLabel: string;
  1823. lastPageLabel: string;
  1824. itemsPerPageOptions: readonly (number | {
  1825. title: string;
  1826. value: number;
  1827. })[];
  1828. showCurrentPage: boolean;
  1829. }>;
  1830. __isFragment?: never;
  1831. __isTeleport?: never;
  1832. __isSuspense?: never;
  1833. } & vue.ComponentOptionsBase<{
  1834. itemsPerPageText: string;
  1835. pageText: string;
  1836. nextIcon: IconValue;
  1837. prevIcon: IconValue;
  1838. firstIcon: IconValue;
  1839. lastIcon: IconValue;
  1840. firstPageLabel: string;
  1841. prevPageLabel: string;
  1842. nextPageLabel: string;
  1843. lastPageLabel: string;
  1844. itemsPerPageOptions: readonly (number | {
  1845. title: string;
  1846. value: number;
  1847. })[];
  1848. showCurrentPage: boolean;
  1849. } & {} & {
  1850. $children?: {} | vue.VNodeChild | {
  1851. prepend?: (() => vue.VNodeChild) | undefined;
  1852. };
  1853. 'v-slots'?: {
  1854. prepend?: false | (() => vue.VNodeChild) | undefined;
  1855. } | undefined;
  1856. } & {
  1857. "v-slot:prepend"?: false | (() => vue.VNodeChild) | undefined;
  1858. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
  1859. itemsPerPageText: string;
  1860. pageText: string;
  1861. nextIcon: IconValue;
  1862. prevIcon: IconValue;
  1863. firstIcon: IconValue;
  1864. lastIcon: IconValue;
  1865. firstPageLabel: string;
  1866. prevPageLabel: string;
  1867. nextPageLabel: string;
  1868. lastPageLabel: string;
  1869. itemsPerPageOptions: readonly (number | {
  1870. title: string;
  1871. value: number;
  1872. })[];
  1873. showCurrentPage: boolean;
  1874. }, {}, string, vue.SlotsType<Partial<{
  1875. prepend: () => vue.VNode[];
  1876. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  1877. prevIcon: {
  1878. type: PropType<IconValue>;
  1879. default: string;
  1880. };
  1881. nextIcon: {
  1882. type: PropType<IconValue>;
  1883. default: string;
  1884. };
  1885. firstIcon: {
  1886. type: PropType<IconValue>;
  1887. default: string;
  1888. };
  1889. lastIcon: {
  1890. type: PropType<IconValue>;
  1891. default: string;
  1892. };
  1893. itemsPerPageText: {
  1894. type: StringConstructor;
  1895. default: string;
  1896. };
  1897. pageText: {
  1898. type: StringConstructor;
  1899. default: string;
  1900. };
  1901. firstPageLabel: {
  1902. type: StringConstructor;
  1903. default: string;
  1904. };
  1905. prevPageLabel: {
  1906. type: StringConstructor;
  1907. default: string;
  1908. };
  1909. nextPageLabel: {
  1910. type: StringConstructor;
  1911. default: string;
  1912. };
  1913. lastPageLabel: {
  1914. type: StringConstructor;
  1915. default: string;
  1916. };
  1917. itemsPerPageOptions: {
  1918. type: PropType<readonly (number | {
  1919. title: string;
  1920. value: number;
  1921. })[]>;
  1922. default: () => {
  1923. value: number;
  1924. title: string;
  1925. }[];
  1926. };
  1927. showCurrentPage: BooleanConstructor;
  1928. }, vue.ExtractPropTypes<{
  1929. prevIcon: {
  1930. type: PropType<IconValue>;
  1931. default: string;
  1932. };
  1933. nextIcon: {
  1934. type: PropType<IconValue>;
  1935. default: string;
  1936. };
  1937. firstIcon: {
  1938. type: PropType<IconValue>;
  1939. default: string;
  1940. };
  1941. lastIcon: {
  1942. type: PropType<IconValue>;
  1943. default: string;
  1944. };
  1945. itemsPerPageText: {
  1946. type: StringConstructor;
  1947. default: string;
  1948. };
  1949. pageText: {
  1950. type: StringConstructor;
  1951. default: string;
  1952. };
  1953. firstPageLabel: {
  1954. type: StringConstructor;
  1955. default: string;
  1956. };
  1957. prevPageLabel: {
  1958. type: StringConstructor;
  1959. default: string;
  1960. };
  1961. nextPageLabel: {
  1962. type: StringConstructor;
  1963. default: string;
  1964. };
  1965. lastPageLabel: {
  1966. type: StringConstructor;
  1967. default: string;
  1968. };
  1969. itemsPerPageOptions: {
  1970. type: PropType<readonly (number | {
  1971. title: string;
  1972. value: number;
  1973. })[]>;
  1974. default: () => {
  1975. value: number;
  1976. title: string;
  1977. }[];
  1978. };
  1979. showCurrentPage: BooleanConstructor;
  1980. }>>;
  1981. type VDataTableFooter = InstanceType<typeof VDataTableFooter>;
  1982. type VDataTableVirtualSlotProps<T> = Omit<VDataTableSlotProps<T>, 'setItemsPerPage' | 'page' | 'pageCount' | 'itemsPerPage'>;
  1983. type VDataTableVirtualSlots<T> = VDataTableRowsSlots<T> & VDataTableHeadersSlots & {
  1984. colgroup: VDataTableVirtualSlotProps<T>;
  1985. top: VDataTableVirtualSlotProps<T>;
  1986. headers: VDataTableHeadersSlots['headers'];
  1987. bottom: VDataTableVirtualSlotProps<T>;
  1988. 'body.prepend': VDataTableVirtualSlotProps<T>;
  1989. 'body.append': VDataTableVirtualSlotProps<T>;
  1990. item: {
  1991. itemRef: TemplateRef;
  1992. };
  1993. };
  1994. type ItemType$1<T> = T extends readonly (infer U)[] ? U : never;
  1995. declare const VDataTableVirtual: {
  1996. new (...args: any[]): vue.CreateComponentPublicInstance<{
  1997. expanded: readonly string[];
  1998. style: vue.StyleValue;
  1999. mobile: boolean | null;
  2000. tag: string;
  2001. sticky: boolean;
  2002. noDataText: string;
  2003. loadingText: string;
  2004. sortBy: readonly SortItem[];
  2005. density: Density;
  2006. valueComparator: typeof deepEqual;
  2007. selectStrategy: "all" | "page" | "single";
  2008. returnObject: boolean;
  2009. filterMode: FilterMode;
  2010. noFilter: boolean;
  2011. itemHeight: string | number;
  2012. hideNoData: boolean;
  2013. hover: boolean;
  2014. multiSort: boolean;
  2015. mustSort: boolean;
  2016. groupBy: readonly SortItem[];
  2017. disableSort: boolean;
  2018. showSelect: boolean;
  2019. expandOnClick: boolean;
  2020. showExpand: boolean;
  2021. sortAscIcon: IconValue;
  2022. sortDescIcon: IconValue;
  2023. fixedHeader: boolean;
  2024. fixedFooter: boolean;
  2025. hideDefaultBody: boolean;
  2026. hideDefaultFooter: boolean;
  2027. hideDefaultHeader: boolean;
  2028. } & {
  2029. search?: string | undefined;
  2030. height?: string | number | undefined;
  2031. width?: string | number | undefined;
  2032. color?: string | undefined;
  2033. loading?: string | boolean | undefined;
  2034. class?: any;
  2035. theme?: string | undefined;
  2036. headers?: readonly {
  2037. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2038. readonly value?: SelectItemKey<Record<string, any>>;
  2039. readonly title?: string | undefined;
  2040. readonly fixed?: boolean | undefined;
  2041. readonly align?: ("start" | "end" | "center") | undefined;
  2042. readonly width?: (number | string) | undefined;
  2043. readonly minWidth?: string | undefined;
  2044. readonly maxWidth?: string | undefined;
  2045. readonly nowrap?: boolean | undefined;
  2046. readonly headerProps?: {
  2047. readonly [x: string]: any;
  2048. } | undefined;
  2049. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2050. readonly [x: string]: any;
  2051. } | undefined;
  2052. readonly sortable?: boolean | undefined;
  2053. readonly sort?: DataTableCompareFunction | undefined;
  2054. readonly sortRaw?: DataTableCompareFunction | undefined;
  2055. readonly filter?: FilterFunction | undefined;
  2056. readonly mobile?: boolean | undefined;
  2057. readonly children?: readonly {
  2058. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2059. readonly value?: SelectItemKey<Record<string, any>>;
  2060. readonly title?: string | undefined;
  2061. readonly fixed?: boolean | undefined;
  2062. readonly align?: ("start" | "end" | "center") | undefined;
  2063. readonly width?: (number | string) | undefined;
  2064. readonly minWidth?: string | undefined;
  2065. readonly maxWidth?: string | undefined;
  2066. readonly nowrap?: boolean | undefined;
  2067. readonly headerProps?: {
  2068. readonly [x: string]: any;
  2069. } | undefined;
  2070. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2071. readonly [x: string]: any;
  2072. } | undefined;
  2073. readonly sortable?: boolean | undefined;
  2074. readonly sort?: DataTableCompareFunction | undefined;
  2075. readonly sortRaw?: DataTableCompareFunction | undefined;
  2076. readonly filter?: FilterFunction | undefined;
  2077. readonly mobile?: boolean | undefined;
  2078. readonly children?: readonly any[] | undefined;
  2079. }[] | undefined;
  2080. }[] | undefined;
  2081. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  2082. customFilter?: FilterFunction | undefined;
  2083. customKeyFilter?: FilterKeyFunctions | undefined;
  2084. filterKeys?: FilterKeys | undefined;
  2085. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  2086. headerProps?: Record<string, any> | undefined;
  2087. } & {
  2088. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  2089. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  2090. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  2091. "onUpdate:options"?: ((value: any) => any) | undefined;
  2092. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
  2093. 'update:modelValue': (value: any[]) => true;
  2094. 'update:sortBy': (value: any) => true;
  2095. 'update:options': (value: any) => true;
  2096. 'update:groupBy': (value: any) => true;
  2097. 'update:expanded': (value: any) => true;
  2098. }, "$children" | "v-slots" | "modelValue" | "items" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "itemValue" | "v-slot:no-data" | "cellProps" | "itemSelectable" | "rowProps" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:body.prepend" | "v-slot:body.append">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  2099. expanded: readonly string[];
  2100. style: vue.StyleValue;
  2101. mobile: boolean | null;
  2102. tag: string;
  2103. sticky: boolean;
  2104. noDataText: string;
  2105. loadingText: string;
  2106. sortBy: readonly SortItem[];
  2107. density: Density;
  2108. valueComparator: typeof deepEqual;
  2109. selectStrategy: "all" | "page" | "single";
  2110. returnObject: boolean;
  2111. filterMode: FilterMode;
  2112. noFilter: boolean;
  2113. itemHeight: string | number;
  2114. hideNoData: boolean;
  2115. hover: boolean;
  2116. multiSort: boolean;
  2117. mustSort: boolean;
  2118. groupBy: readonly SortItem[];
  2119. disableSort: boolean;
  2120. showSelect: boolean;
  2121. expandOnClick: boolean;
  2122. showExpand: boolean;
  2123. sortAscIcon: IconValue;
  2124. sortDescIcon: IconValue;
  2125. fixedHeader: boolean;
  2126. fixedFooter: boolean;
  2127. hideDefaultBody: boolean;
  2128. hideDefaultFooter: boolean;
  2129. hideDefaultHeader: boolean;
  2130. } & {
  2131. search?: string | undefined;
  2132. height?: string | number | undefined;
  2133. width?: string | number | undefined;
  2134. color?: string | undefined;
  2135. loading?: string | boolean | undefined;
  2136. class?: any;
  2137. theme?: string | undefined;
  2138. headers?: readonly {
  2139. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2140. readonly value?: SelectItemKey<Record<string, any>>;
  2141. readonly title?: string | undefined;
  2142. readonly fixed?: boolean | undefined;
  2143. readonly align?: ("start" | "end" | "center") | undefined;
  2144. readonly width?: (number | string) | undefined;
  2145. readonly minWidth?: string | undefined;
  2146. readonly maxWidth?: string | undefined;
  2147. readonly nowrap?: boolean | undefined;
  2148. readonly headerProps?: {
  2149. readonly [x: string]: any;
  2150. } | undefined;
  2151. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2152. readonly [x: string]: any;
  2153. } | undefined;
  2154. readonly sortable?: boolean | undefined;
  2155. readonly sort?: DataTableCompareFunction | undefined;
  2156. readonly sortRaw?: DataTableCompareFunction | undefined;
  2157. readonly filter?: FilterFunction | undefined;
  2158. readonly mobile?: boolean | undefined;
  2159. readonly children?: readonly {
  2160. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2161. readonly value?: SelectItemKey<Record<string, any>>;
  2162. readonly title?: string | undefined;
  2163. readonly fixed?: boolean | undefined;
  2164. readonly align?: ("start" | "end" | "center") | undefined;
  2165. readonly width?: (number | string) | undefined;
  2166. readonly minWidth?: string | undefined;
  2167. readonly maxWidth?: string | undefined;
  2168. readonly nowrap?: boolean | undefined;
  2169. readonly headerProps?: {
  2170. readonly [x: string]: any;
  2171. } | undefined;
  2172. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2173. readonly [x: string]: any;
  2174. } | undefined;
  2175. readonly sortable?: boolean | undefined;
  2176. readonly sort?: DataTableCompareFunction | undefined;
  2177. readonly sortRaw?: DataTableCompareFunction | undefined;
  2178. readonly filter?: FilterFunction | undefined;
  2179. readonly mobile?: boolean | undefined;
  2180. readonly children?: readonly any[] | undefined;
  2181. }[] | undefined;
  2182. }[] | undefined;
  2183. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  2184. customFilter?: FilterFunction | undefined;
  2185. customKeyFilter?: FilterKeyFunctions | undefined;
  2186. filterKeys?: FilterKeys | undefined;
  2187. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  2188. headerProps?: Record<string, any> | undefined;
  2189. } & {
  2190. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  2191. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  2192. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  2193. "onUpdate:options"?: ((value: any) => any) | undefined;
  2194. }, {
  2195. expanded: readonly string[];
  2196. style: vue.StyleValue;
  2197. mobile: boolean | null;
  2198. tag: string;
  2199. sticky: boolean;
  2200. noDataText: string;
  2201. loadingText: string;
  2202. sortBy: readonly SortItem[];
  2203. density: Density;
  2204. valueComparator: typeof deepEqual;
  2205. selectStrategy: "all" | "page" | "single";
  2206. returnObject: boolean;
  2207. filterMode: FilterMode;
  2208. noFilter: boolean;
  2209. itemHeight: string | number;
  2210. hideNoData: boolean;
  2211. hover: boolean;
  2212. multiSort: boolean;
  2213. mustSort: boolean;
  2214. groupBy: readonly SortItem[];
  2215. disableSort: boolean;
  2216. showSelect: boolean;
  2217. expandOnClick: boolean;
  2218. showExpand: boolean;
  2219. sortAscIcon: IconValue;
  2220. sortDescIcon: IconValue;
  2221. fixedHeader: boolean;
  2222. fixedFooter: boolean;
  2223. hideDefaultBody: boolean;
  2224. hideDefaultFooter: boolean;
  2225. hideDefaultHeader: boolean;
  2226. }, true, {}, vue.SlotsType<Partial<{
  2227. [x: `item.${string}`]: (arg: ItemKeySlot<any>) => vue.VNode[];
  2228. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  2229. 'data-table-group': (arg: {
  2230. item: Group;
  2231. count: number;
  2232. props: Record<string, unknown>;
  2233. }) => vue.VNode[];
  2234. 'data-table-select': (arg: {
  2235. props: Record<string, unknown>;
  2236. }) => vue.VNode[];
  2237. 'item.data-table-select': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  2238. 'item.data-table-expand': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  2239. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  2240. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  2241. item: (arg: {
  2242. index: number;
  2243. item: any;
  2244. internalItem: DataTableItem<any>;
  2245. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  2246. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  2247. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  2248. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  2249. } & {
  2250. columns: InternalDataTableHeader[];
  2251. } & {
  2252. props: Record<string, any>;
  2253. } & {
  2254. itemRef: TemplateRef;
  2255. }) => vue.VNode[];
  2256. loading: () => vue.VNode[];
  2257. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  2258. 'no-data': () => vue.VNode[];
  2259. 'expanded-row': (arg: ItemSlot<any>) => vue.VNode[];
  2260. headers: (arg: HeadersSlotProps) => vue.VNode[];
  2261. loader: (arg: LoaderSlotProps) => vue.VNode[];
  2262. colgroup: (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2263. top: (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2264. bottom: (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2265. 'body.prepend': (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2266. 'body.append': (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2267. }>>, {
  2268. P: {};
  2269. B: {};
  2270. D: {};
  2271. C: {};
  2272. M: {};
  2273. Defaults: {};
  2274. }, {
  2275. expanded: readonly string[];
  2276. style: vue.StyleValue;
  2277. mobile: boolean | null;
  2278. tag: string;
  2279. sticky: boolean;
  2280. noDataText: string;
  2281. loadingText: string;
  2282. sortBy: readonly SortItem[];
  2283. density: Density;
  2284. valueComparator: typeof deepEqual;
  2285. selectStrategy: "all" | "page" | "single";
  2286. returnObject: boolean;
  2287. filterMode: FilterMode;
  2288. noFilter: boolean;
  2289. itemHeight: string | number;
  2290. hideNoData: boolean;
  2291. hover: boolean;
  2292. multiSort: boolean;
  2293. mustSort: boolean;
  2294. groupBy: readonly SortItem[];
  2295. disableSort: boolean;
  2296. showSelect: boolean;
  2297. expandOnClick: boolean;
  2298. showExpand: boolean;
  2299. sortAscIcon: IconValue;
  2300. sortDescIcon: IconValue;
  2301. fixedHeader: boolean;
  2302. fixedFooter: boolean;
  2303. hideDefaultBody: boolean;
  2304. hideDefaultFooter: boolean;
  2305. hideDefaultHeader: boolean;
  2306. } & {
  2307. search?: string | undefined;
  2308. height?: string | number | undefined;
  2309. width?: string | number | undefined;
  2310. color?: string | undefined;
  2311. loading?: string | boolean | undefined;
  2312. class?: any;
  2313. theme?: string | undefined;
  2314. headers?: readonly {
  2315. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2316. readonly value?: SelectItemKey<Record<string, any>>;
  2317. readonly title?: string | undefined;
  2318. readonly fixed?: boolean | undefined;
  2319. readonly align?: ("start" | "end" | "center") | undefined;
  2320. readonly width?: (number | string) | undefined;
  2321. readonly minWidth?: string | undefined;
  2322. readonly maxWidth?: string | undefined;
  2323. readonly nowrap?: boolean | undefined;
  2324. readonly headerProps?: {
  2325. readonly [x: string]: any;
  2326. } | undefined;
  2327. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2328. readonly [x: string]: any;
  2329. } | undefined;
  2330. readonly sortable?: boolean | undefined;
  2331. readonly sort?: DataTableCompareFunction | undefined;
  2332. readonly sortRaw?: DataTableCompareFunction | undefined;
  2333. readonly filter?: FilterFunction | undefined;
  2334. readonly mobile?: boolean | undefined;
  2335. readonly children?: readonly {
  2336. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2337. readonly value?: SelectItemKey<Record<string, any>>;
  2338. readonly title?: string | undefined;
  2339. readonly fixed?: boolean | undefined;
  2340. readonly align?: ("start" | "end" | "center") | undefined;
  2341. readonly width?: (number | string) | undefined;
  2342. readonly minWidth?: string | undefined;
  2343. readonly maxWidth?: string | undefined;
  2344. readonly nowrap?: boolean | undefined;
  2345. readonly headerProps?: {
  2346. readonly [x: string]: any;
  2347. } | undefined;
  2348. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2349. readonly [x: string]: any;
  2350. } | undefined;
  2351. readonly sortable?: boolean | undefined;
  2352. readonly sort?: DataTableCompareFunction | undefined;
  2353. readonly sortRaw?: DataTableCompareFunction | undefined;
  2354. readonly filter?: FilterFunction | undefined;
  2355. readonly mobile?: boolean | undefined;
  2356. readonly children?: readonly any[] | undefined;
  2357. }[] | undefined;
  2358. }[] | undefined;
  2359. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  2360. customFilter?: FilterFunction | undefined;
  2361. customKeyFilter?: FilterKeyFunctions | undefined;
  2362. filterKeys?: FilterKeys | undefined;
  2363. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  2364. headerProps?: Record<string, any> | undefined;
  2365. } & {
  2366. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  2367. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  2368. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  2369. "onUpdate:options"?: ((value: any) => any) | undefined;
  2370. }, {}, {}, {}, {}, {
  2371. expanded: readonly string[];
  2372. style: vue.StyleValue;
  2373. mobile: boolean | null;
  2374. tag: string;
  2375. sticky: boolean;
  2376. noDataText: string;
  2377. loadingText: string;
  2378. sortBy: readonly SortItem[];
  2379. density: Density;
  2380. valueComparator: typeof deepEqual;
  2381. selectStrategy: "all" | "page" | "single";
  2382. returnObject: boolean;
  2383. filterMode: FilterMode;
  2384. noFilter: boolean;
  2385. itemHeight: string | number;
  2386. hideNoData: boolean;
  2387. hover: boolean;
  2388. multiSort: boolean;
  2389. mustSort: boolean;
  2390. groupBy: readonly SortItem[];
  2391. disableSort: boolean;
  2392. showSelect: boolean;
  2393. expandOnClick: boolean;
  2394. showExpand: boolean;
  2395. sortAscIcon: IconValue;
  2396. sortDescIcon: IconValue;
  2397. fixedHeader: boolean;
  2398. fixedFooter: boolean;
  2399. hideDefaultBody: boolean;
  2400. hideDefaultFooter: boolean;
  2401. hideDefaultHeader: boolean;
  2402. }>;
  2403. __isFragment?: never;
  2404. __isTeleport?: never;
  2405. __isSuspense?: never;
  2406. } & vue.ComponentOptionsBase<{
  2407. expanded: readonly string[];
  2408. style: vue.StyleValue;
  2409. mobile: boolean | null;
  2410. tag: string;
  2411. sticky: boolean;
  2412. noDataText: string;
  2413. loadingText: string;
  2414. sortBy: readonly SortItem[];
  2415. density: Density;
  2416. valueComparator: typeof deepEqual;
  2417. selectStrategy: "all" | "page" | "single";
  2418. returnObject: boolean;
  2419. filterMode: FilterMode;
  2420. noFilter: boolean;
  2421. itemHeight: string | number;
  2422. hideNoData: boolean;
  2423. hover: boolean;
  2424. multiSort: boolean;
  2425. mustSort: boolean;
  2426. groupBy: readonly SortItem[];
  2427. disableSort: boolean;
  2428. showSelect: boolean;
  2429. expandOnClick: boolean;
  2430. showExpand: boolean;
  2431. sortAscIcon: IconValue;
  2432. sortDescIcon: IconValue;
  2433. fixedHeader: boolean;
  2434. fixedFooter: boolean;
  2435. hideDefaultBody: boolean;
  2436. hideDefaultFooter: boolean;
  2437. hideDefaultHeader: boolean;
  2438. } & {
  2439. search?: string | undefined;
  2440. height?: string | number | undefined;
  2441. width?: string | number | undefined;
  2442. color?: string | undefined;
  2443. loading?: string | boolean | undefined;
  2444. class?: any;
  2445. theme?: string | undefined;
  2446. headers?: readonly {
  2447. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2448. readonly value?: SelectItemKey<Record<string, any>>;
  2449. readonly title?: string | undefined;
  2450. readonly fixed?: boolean | undefined;
  2451. readonly align?: ("start" | "end" | "center") | undefined;
  2452. readonly width?: (number | string) | undefined;
  2453. readonly minWidth?: string | undefined;
  2454. readonly maxWidth?: string | undefined;
  2455. readonly nowrap?: boolean | undefined;
  2456. readonly headerProps?: {
  2457. readonly [x: string]: any;
  2458. } | undefined;
  2459. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2460. readonly [x: string]: any;
  2461. } | undefined;
  2462. readonly sortable?: boolean | undefined;
  2463. readonly sort?: DataTableCompareFunction | undefined;
  2464. readonly sortRaw?: DataTableCompareFunction | undefined;
  2465. readonly filter?: FilterFunction | undefined;
  2466. readonly mobile?: boolean | undefined;
  2467. readonly children?: readonly {
  2468. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2469. readonly value?: SelectItemKey<Record<string, any>>;
  2470. readonly title?: string | undefined;
  2471. readonly fixed?: boolean | undefined;
  2472. readonly align?: ("start" | "end" | "center") | undefined;
  2473. readonly width?: (number | string) | undefined;
  2474. readonly minWidth?: string | undefined;
  2475. readonly maxWidth?: string | undefined;
  2476. readonly nowrap?: boolean | undefined;
  2477. readonly headerProps?: {
  2478. readonly [x: string]: any;
  2479. } | undefined;
  2480. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2481. readonly [x: string]: any;
  2482. } | undefined;
  2483. readonly sortable?: boolean | undefined;
  2484. readonly sort?: DataTableCompareFunction | undefined;
  2485. readonly sortRaw?: DataTableCompareFunction | undefined;
  2486. readonly filter?: FilterFunction | undefined;
  2487. readonly mobile?: boolean | undefined;
  2488. readonly children?: readonly any[] | undefined;
  2489. }[] | undefined;
  2490. }[] | undefined;
  2491. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  2492. customFilter?: FilterFunction | undefined;
  2493. customKeyFilter?: FilterKeyFunctions | undefined;
  2494. filterKeys?: FilterKeys | undefined;
  2495. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  2496. headerProps?: Record<string, any> | undefined;
  2497. } & {
  2498. "onUpdate:sortBy"?: ((value: any) => any) | undefined;
  2499. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  2500. "onUpdate:expanded"?: ((value: any) => any) | undefined;
  2501. "onUpdate:options"?: ((value: any) => any) | undefined;
  2502. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
  2503. 'update:modelValue': (value: any[]) => true;
  2504. 'update:sortBy': (value: any) => true;
  2505. 'update:options': (value: any) => true;
  2506. 'update:groupBy': (value: any) => true;
  2507. 'update:expanded': (value: any) => true;
  2508. }, "$children" | "v-slots" | "modelValue" | "items" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "itemValue" | "v-slot:no-data" | "cellProps" | "itemSelectable" | "rowProps" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:body.prepend" | "v-slot:body.append">, string, {
  2509. expanded: readonly string[];
  2510. style: vue.StyleValue;
  2511. mobile: boolean | null;
  2512. tag: string;
  2513. sticky: boolean;
  2514. noDataText: string;
  2515. loadingText: string;
  2516. sortBy: readonly SortItem[];
  2517. density: Density;
  2518. valueComparator: typeof deepEqual;
  2519. selectStrategy: "all" | "page" | "single";
  2520. returnObject: boolean;
  2521. filterMode: FilterMode;
  2522. noFilter: boolean;
  2523. itemHeight: string | number;
  2524. hideNoData: boolean;
  2525. hover: boolean;
  2526. multiSort: boolean;
  2527. mustSort: boolean;
  2528. groupBy: readonly SortItem[];
  2529. disableSort: boolean;
  2530. showSelect: boolean;
  2531. expandOnClick: boolean;
  2532. showExpand: boolean;
  2533. sortAscIcon: IconValue;
  2534. sortDescIcon: IconValue;
  2535. fixedHeader: boolean;
  2536. fixedFooter: boolean;
  2537. hideDefaultBody: boolean;
  2538. hideDefaultFooter: boolean;
  2539. hideDefaultHeader: boolean;
  2540. }, {}, string, vue.SlotsType<Partial<{
  2541. [x: `item.${string}`]: (arg: ItemKeySlot<any>) => vue.VNode[];
  2542. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  2543. 'data-table-group': (arg: {
  2544. item: Group;
  2545. count: number;
  2546. props: Record<string, unknown>;
  2547. }) => vue.VNode[];
  2548. 'data-table-select': (arg: {
  2549. props: Record<string, unknown>;
  2550. }) => vue.VNode[];
  2551. 'item.data-table-select': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  2552. 'item.data-table-expand': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  2553. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  2554. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  2555. item: (arg: {
  2556. index: number;
  2557. item: any;
  2558. internalItem: DataTableItem<any>;
  2559. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  2560. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  2561. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  2562. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  2563. } & {
  2564. columns: InternalDataTableHeader[];
  2565. } & {
  2566. props: Record<string, any>;
  2567. } & {
  2568. itemRef: TemplateRef;
  2569. }) => vue.VNode[];
  2570. loading: () => vue.VNode[];
  2571. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  2572. 'no-data': () => vue.VNode[];
  2573. 'expanded-row': (arg: ItemSlot<any>) => vue.VNode[];
  2574. headers: (arg: HeadersSlotProps) => vue.VNode[];
  2575. loader: (arg: LoaderSlotProps) => vue.VNode[];
  2576. colgroup: (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2577. top: (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2578. bottom: (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2579. 'body.prepend': (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2580. 'body.append': (arg: VDataTableVirtualSlotProps<any>) => vue.VNode[];
  2581. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T extends readonly any[], V>(props: {
  2582. items?: T;
  2583. itemValue?: SelectItemKey<ItemType$1<T>>;
  2584. rowProps?: RowProps<ItemType$1<T>>;
  2585. cellProps?: CellProps<ItemType$1<T>>;
  2586. itemSelectable?: SelectItemKey<ItemType$1<T>>;
  2587. modelValue?: V;
  2588. "onUpdate:modelValue"?: (value: V) => void;
  2589. }, slots: VDataTableVirtualSlots<ItemType$1<T>>) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
  2590. customFilter: vue.PropType<FilterFunction>;
  2591. customKeyFilter: vue.PropType<FilterKeyFunctions>;
  2592. filterKeys: vue.PropType<FilterKeys>;
  2593. filterMode: {
  2594. type: vue.PropType<FilterMode>;
  2595. default: string;
  2596. };
  2597. noFilter: BooleanConstructor;
  2598. itemHeight: {
  2599. type: (StringConstructor | NumberConstructor)[];
  2600. default: null;
  2601. };
  2602. height: (StringConstructor | NumberConstructor)[];
  2603. groupBy: {
  2604. type: vue.PropType<readonly SortItem[]>;
  2605. default: () => never[];
  2606. };
  2607. theme: StringConstructor;
  2608. tag: {
  2609. type: StringConstructor;
  2610. default: string;
  2611. };
  2612. density: {
  2613. type: vue.PropType<Density>;
  2614. default: string;
  2615. validator: (v: any) => boolean;
  2616. };
  2617. class: vue.PropType<ClassValue>;
  2618. style: {
  2619. type: vue.PropType<vue.StyleValue>;
  2620. default: null;
  2621. };
  2622. fixedHeader: BooleanConstructor;
  2623. fixedFooter: BooleanConstructor;
  2624. hover: BooleanConstructor;
  2625. loading: (StringConstructor | BooleanConstructor)[];
  2626. mobile: {
  2627. type: vue.PropType<boolean | null>;
  2628. default: boolean;
  2629. };
  2630. mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
  2631. color: StringConstructor;
  2632. sticky: BooleanConstructor;
  2633. disableSort: BooleanConstructor;
  2634. multiSort: BooleanConstructor;
  2635. sortAscIcon: {
  2636. type: vue.PropType<IconValue>;
  2637. default: string;
  2638. };
  2639. sortDescIcon: {
  2640. type: vue.PropType<IconValue>;
  2641. default: string;
  2642. };
  2643. headerProps: {
  2644. type: vue.PropType<Record<string, any>>;
  2645. };
  2646. sortBy: {
  2647. type: vue.PropType<readonly SortItem[]>;
  2648. default: () => never[];
  2649. };
  2650. customKeySort: vue.PropType<Record<string, DataTableCompareFunction>>;
  2651. mustSort: BooleanConstructor;
  2652. showSelect: BooleanConstructor;
  2653. selectStrategy: {
  2654. type: vue.PropType<"single" | "page" | "all">;
  2655. default: string;
  2656. };
  2657. modelValue: {
  2658. type: vue.PropType<readonly any[]>;
  2659. default: () => never[];
  2660. };
  2661. valueComparator: {
  2662. type: vue.PropType<typeof deepEqual>;
  2663. default: typeof deepEqual;
  2664. };
  2665. items: {
  2666. type: vue.PropType<DataTableItemProps["items"]>;
  2667. default: () => never[];
  2668. };
  2669. itemValue: {
  2670. type: vue.PropType<SelectItemKey>;
  2671. default: string;
  2672. };
  2673. itemSelectable: {
  2674. type: vue.PropType<SelectItemKey>;
  2675. default: null;
  2676. };
  2677. rowProps: vue.PropType<RowProps<any>>;
  2678. cellProps: vue.PropType<CellProps<any>>;
  2679. returnObject: BooleanConstructor;
  2680. headers: vue.PropType<vue.DeepReadonly<DataTableHeader[]>>;
  2681. expandOnClick: BooleanConstructor;
  2682. showExpand: BooleanConstructor;
  2683. expanded: {
  2684. type: vue.PropType<readonly string[]>;
  2685. default: () => never[];
  2686. };
  2687. hideDefaultBody: BooleanConstructor;
  2688. hideDefaultFooter: BooleanConstructor;
  2689. hideDefaultHeader: BooleanConstructor;
  2690. width: (StringConstructor | NumberConstructor)[];
  2691. search: StringConstructor;
  2692. loadingText: {
  2693. type: StringConstructor;
  2694. default: string;
  2695. };
  2696. hideNoData: BooleanConstructor;
  2697. noDataText: {
  2698. type: StringConstructor;
  2699. default: string;
  2700. };
  2701. }, vue.ExtractPropTypes<{
  2702. customFilter: vue.PropType<FilterFunction>;
  2703. customKeyFilter: vue.PropType<FilterKeyFunctions>;
  2704. filterKeys: vue.PropType<FilterKeys>;
  2705. filterMode: {
  2706. type: vue.PropType<FilterMode>;
  2707. default: string;
  2708. };
  2709. noFilter: BooleanConstructor;
  2710. itemHeight: {
  2711. type: (StringConstructor | NumberConstructor)[];
  2712. default: null;
  2713. };
  2714. height: (StringConstructor | NumberConstructor)[];
  2715. groupBy: {
  2716. type: vue.PropType<readonly SortItem[]>;
  2717. default: () => never[];
  2718. };
  2719. theme: StringConstructor;
  2720. tag: {
  2721. type: StringConstructor;
  2722. default: string;
  2723. };
  2724. density: {
  2725. type: vue.PropType<Density>;
  2726. default: string;
  2727. validator: (v: any) => boolean;
  2728. };
  2729. class: vue.PropType<ClassValue>;
  2730. style: {
  2731. type: vue.PropType<vue.StyleValue>;
  2732. default: null;
  2733. };
  2734. fixedHeader: BooleanConstructor;
  2735. fixedFooter: BooleanConstructor;
  2736. hover: BooleanConstructor;
  2737. loading: (StringConstructor | BooleanConstructor)[];
  2738. mobile: {
  2739. type: vue.PropType<boolean | null>;
  2740. default: boolean;
  2741. };
  2742. mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
  2743. color: StringConstructor;
  2744. sticky: BooleanConstructor;
  2745. disableSort: BooleanConstructor;
  2746. multiSort: BooleanConstructor;
  2747. sortAscIcon: {
  2748. type: vue.PropType<IconValue>;
  2749. default: string;
  2750. };
  2751. sortDescIcon: {
  2752. type: vue.PropType<IconValue>;
  2753. default: string;
  2754. };
  2755. headerProps: {
  2756. type: vue.PropType<Record<string, any>>;
  2757. };
  2758. sortBy: {
  2759. type: vue.PropType<readonly SortItem[]>;
  2760. default: () => never[];
  2761. };
  2762. customKeySort: vue.PropType<Record<string, DataTableCompareFunction>>;
  2763. mustSort: BooleanConstructor;
  2764. showSelect: BooleanConstructor;
  2765. selectStrategy: {
  2766. type: vue.PropType<"single" | "page" | "all">;
  2767. default: string;
  2768. };
  2769. modelValue: {
  2770. type: vue.PropType<readonly any[]>;
  2771. default: () => never[];
  2772. };
  2773. valueComparator: {
  2774. type: vue.PropType<typeof deepEqual>;
  2775. default: typeof deepEqual;
  2776. };
  2777. items: {
  2778. type: vue.PropType<DataTableItemProps["items"]>;
  2779. default: () => never[];
  2780. };
  2781. itemValue: {
  2782. type: vue.PropType<SelectItemKey>;
  2783. default: string;
  2784. };
  2785. itemSelectable: {
  2786. type: vue.PropType<SelectItemKey>;
  2787. default: null;
  2788. };
  2789. rowProps: vue.PropType<RowProps<any>>;
  2790. cellProps: vue.PropType<CellProps<any>>;
  2791. returnObject: BooleanConstructor;
  2792. headers: vue.PropType<vue.DeepReadonly<DataTableHeader[]>>;
  2793. expandOnClick: BooleanConstructor;
  2794. showExpand: BooleanConstructor;
  2795. expanded: {
  2796. type: vue.PropType<readonly string[]>;
  2797. default: () => never[];
  2798. };
  2799. hideDefaultBody: BooleanConstructor;
  2800. hideDefaultFooter: BooleanConstructor;
  2801. hideDefaultHeader: BooleanConstructor;
  2802. width: (StringConstructor | NumberConstructor)[];
  2803. search: StringConstructor;
  2804. loadingText: {
  2805. type: StringConstructor;
  2806. default: string;
  2807. };
  2808. hideNoData: BooleanConstructor;
  2809. noDataText: {
  2810. type: StringConstructor;
  2811. default: string;
  2812. };
  2813. }>>;
  2814. type VDataTableVirtual = InstanceType<typeof VDataTableVirtual>;
  2815. type ItemType<T> = T extends readonly (infer U)[] ? U : never;
  2816. declare const VDataTableServer: {
  2817. new (...args: any[]): vue.CreateComponentPublicInstance<{
  2818. page: string | number;
  2819. expanded: readonly string[];
  2820. style: vue.StyleValue;
  2821. mobile: boolean | null;
  2822. tag: string;
  2823. sticky: boolean;
  2824. noDataText: string;
  2825. loadingText: string;
  2826. itemsPerPageText: string;
  2827. sortBy: readonly SortItem[];
  2828. pageText: string;
  2829. density: Density;
  2830. valueComparator: typeof deepEqual;
  2831. nextIcon: IconValue;
  2832. prevIcon: IconValue;
  2833. selectStrategy: "all" | "page" | "single";
  2834. returnObject: boolean;
  2835. hideNoData: boolean;
  2836. hover: boolean;
  2837. multiSort: boolean;
  2838. mustSort: boolean;
  2839. groupBy: readonly SortItem[];
  2840. disableSort: boolean;
  2841. showSelect: boolean;
  2842. expandOnClick: boolean;
  2843. showExpand: boolean;
  2844. itemsPerPage: string | number;
  2845. itemsLength: string | number;
  2846. firstIcon: IconValue;
  2847. lastIcon: IconValue;
  2848. firstPageLabel: string;
  2849. prevPageLabel: string;
  2850. nextPageLabel: string;
  2851. lastPageLabel: string;
  2852. itemsPerPageOptions: readonly (number | {
  2853. title: string;
  2854. value: number;
  2855. })[];
  2856. showCurrentPage: boolean;
  2857. sortAscIcon: IconValue;
  2858. sortDescIcon: IconValue;
  2859. fixedHeader: boolean;
  2860. fixedFooter: boolean;
  2861. hideDefaultBody: boolean;
  2862. hideDefaultFooter: boolean;
  2863. hideDefaultHeader: boolean;
  2864. } & {
  2865. search?: string | undefined;
  2866. height?: string | number | undefined;
  2867. width?: string | number | undefined;
  2868. color?: string | undefined;
  2869. loading?: string | boolean | undefined;
  2870. class?: any;
  2871. theme?: string | undefined;
  2872. headers?: readonly {
  2873. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2874. readonly value?: SelectItemKey<Record<string, any>>;
  2875. readonly title?: string | undefined;
  2876. readonly fixed?: boolean | undefined;
  2877. readonly align?: ("start" | "end" | "center") | undefined;
  2878. readonly width?: (number | string) | undefined;
  2879. readonly minWidth?: string | undefined;
  2880. readonly maxWidth?: string | undefined;
  2881. readonly nowrap?: boolean | undefined;
  2882. readonly headerProps?: {
  2883. readonly [x: string]: any;
  2884. } | undefined;
  2885. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2886. readonly [x: string]: any;
  2887. } | undefined;
  2888. readonly sortable?: boolean | undefined;
  2889. readonly sort?: DataTableCompareFunction | undefined;
  2890. readonly sortRaw?: DataTableCompareFunction | undefined;
  2891. readonly filter?: FilterFunction | undefined;
  2892. readonly mobile?: boolean | undefined;
  2893. readonly children?: readonly {
  2894. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2895. readonly value?: SelectItemKey<Record<string, any>>;
  2896. readonly title?: string | undefined;
  2897. readonly fixed?: boolean | undefined;
  2898. readonly align?: ("start" | "end" | "center") | undefined;
  2899. readonly width?: (number | string) | undefined;
  2900. readonly minWidth?: string | undefined;
  2901. readonly maxWidth?: string | undefined;
  2902. readonly nowrap?: boolean | undefined;
  2903. readonly headerProps?: {
  2904. readonly [x: string]: any;
  2905. } | undefined;
  2906. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  2907. readonly [x: string]: any;
  2908. } | undefined;
  2909. readonly sortable?: boolean | undefined;
  2910. readonly sort?: DataTableCompareFunction | undefined;
  2911. readonly sortRaw?: DataTableCompareFunction | undefined;
  2912. readonly filter?: FilterFunction | undefined;
  2913. readonly mobile?: boolean | undefined;
  2914. readonly children?: readonly any[] | undefined;
  2915. }[] | undefined;
  2916. }[] | undefined;
  2917. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  2918. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  2919. headerProps?: Record<string, any> | undefined;
  2920. } & {
  2921. "onUpdate:sortBy"?: ((sortBy: any) => any) | undefined;
  2922. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  2923. "onUpdate:expanded"?: ((options: any) => any) | undefined;
  2924. "onUpdate:page"?: ((page: number) => any) | undefined;
  2925. "onUpdate:itemsPerPage"?: ((page: number) => any) | undefined;
  2926. "onUpdate:options"?: ((options: any) => any) | undefined;
  2927. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
  2928. 'update:modelValue': (value: any[]) => true;
  2929. 'update:page': (page: number) => true;
  2930. 'update:itemsPerPage': (page: number) => true;
  2931. 'update:sortBy': (sortBy: any) => true;
  2932. 'update:options': (options: any) => true;
  2933. 'update:expanded': (options: any) => true;
  2934. 'update:groupBy': (value: any) => true;
  2935. }, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "items" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "itemValue" | "v-slot:no-data" | "cellProps" | "itemSelectable" | "rowProps" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:body" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append" | "v-slot:footer.prepend">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  2936. page: string | number;
  2937. expanded: readonly string[];
  2938. style: vue.StyleValue;
  2939. mobile: boolean | null;
  2940. tag: string;
  2941. sticky: boolean;
  2942. noDataText: string;
  2943. loadingText: string;
  2944. itemsPerPageText: string;
  2945. sortBy: readonly SortItem[];
  2946. pageText: string;
  2947. density: Density;
  2948. valueComparator: typeof deepEqual;
  2949. nextIcon: IconValue;
  2950. prevIcon: IconValue;
  2951. selectStrategy: "all" | "page" | "single";
  2952. returnObject: boolean;
  2953. hideNoData: boolean;
  2954. hover: boolean;
  2955. multiSort: boolean;
  2956. mustSort: boolean;
  2957. groupBy: readonly SortItem[];
  2958. disableSort: boolean;
  2959. showSelect: boolean;
  2960. expandOnClick: boolean;
  2961. showExpand: boolean;
  2962. itemsPerPage: string | number;
  2963. itemsLength: string | number;
  2964. firstIcon: IconValue;
  2965. lastIcon: IconValue;
  2966. firstPageLabel: string;
  2967. prevPageLabel: string;
  2968. nextPageLabel: string;
  2969. lastPageLabel: string;
  2970. itemsPerPageOptions: readonly (number | {
  2971. title: string;
  2972. value: number;
  2973. })[];
  2974. showCurrentPage: boolean;
  2975. sortAscIcon: IconValue;
  2976. sortDescIcon: IconValue;
  2977. fixedHeader: boolean;
  2978. fixedFooter: boolean;
  2979. hideDefaultBody: boolean;
  2980. hideDefaultFooter: boolean;
  2981. hideDefaultHeader: boolean;
  2982. } & {
  2983. search?: string | undefined;
  2984. height?: string | number | undefined;
  2985. width?: string | number | undefined;
  2986. color?: string | undefined;
  2987. loading?: string | boolean | undefined;
  2988. class?: any;
  2989. theme?: string | undefined;
  2990. headers?: readonly {
  2991. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  2992. readonly value?: SelectItemKey<Record<string, any>>;
  2993. readonly title?: string | undefined;
  2994. readonly fixed?: boolean | undefined;
  2995. readonly align?: ("start" | "end" | "center") | undefined;
  2996. readonly width?: (number | string) | undefined;
  2997. readonly minWidth?: string | undefined;
  2998. readonly maxWidth?: string | undefined;
  2999. readonly nowrap?: boolean | undefined;
  3000. readonly headerProps?: {
  3001. readonly [x: string]: any;
  3002. } | undefined;
  3003. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  3004. readonly [x: string]: any;
  3005. } | undefined;
  3006. readonly sortable?: boolean | undefined;
  3007. readonly sort?: DataTableCompareFunction | undefined;
  3008. readonly sortRaw?: DataTableCompareFunction | undefined;
  3009. readonly filter?: FilterFunction | undefined;
  3010. readonly mobile?: boolean | undefined;
  3011. readonly children?: readonly {
  3012. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  3013. readonly value?: SelectItemKey<Record<string, any>>;
  3014. readonly title?: string | undefined;
  3015. readonly fixed?: boolean | undefined;
  3016. readonly align?: ("start" | "end" | "center") | undefined;
  3017. readonly width?: (number | string) | undefined;
  3018. readonly minWidth?: string | undefined;
  3019. readonly maxWidth?: string | undefined;
  3020. readonly nowrap?: boolean | undefined;
  3021. readonly headerProps?: {
  3022. readonly [x: string]: any;
  3023. } | undefined;
  3024. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  3025. readonly [x: string]: any;
  3026. } | undefined;
  3027. readonly sortable?: boolean | undefined;
  3028. readonly sort?: DataTableCompareFunction | undefined;
  3029. readonly sortRaw?: DataTableCompareFunction | undefined;
  3030. readonly filter?: FilterFunction | undefined;
  3031. readonly mobile?: boolean | undefined;
  3032. readonly children?: readonly any[] | undefined;
  3033. }[] | undefined;
  3034. }[] | undefined;
  3035. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  3036. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  3037. headerProps?: Record<string, any> | undefined;
  3038. } & {
  3039. "onUpdate:sortBy"?: ((sortBy: any) => any) | undefined;
  3040. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  3041. "onUpdate:expanded"?: ((options: any) => any) | undefined;
  3042. "onUpdate:page"?: ((page: number) => any) | undefined;
  3043. "onUpdate:itemsPerPage"?: ((page: number) => any) | undefined;
  3044. "onUpdate:options"?: ((options: any) => any) | undefined;
  3045. }, {
  3046. page: string | number;
  3047. expanded: readonly string[];
  3048. style: vue.StyleValue;
  3049. mobile: boolean | null;
  3050. tag: string;
  3051. sticky: boolean;
  3052. noDataText: string;
  3053. loadingText: string;
  3054. itemsPerPageText: string;
  3055. sortBy: readonly SortItem[];
  3056. pageText: string;
  3057. density: Density;
  3058. valueComparator: typeof deepEqual;
  3059. nextIcon: IconValue;
  3060. prevIcon: IconValue;
  3061. selectStrategy: "all" | "page" | "single";
  3062. returnObject: boolean;
  3063. hideNoData: boolean;
  3064. hover: boolean;
  3065. multiSort: boolean;
  3066. mustSort: boolean;
  3067. groupBy: readonly SortItem[];
  3068. disableSort: boolean;
  3069. showSelect: boolean;
  3070. expandOnClick: boolean;
  3071. showExpand: boolean;
  3072. itemsPerPage: string | number;
  3073. firstIcon: IconValue;
  3074. lastIcon: IconValue;
  3075. firstPageLabel: string;
  3076. prevPageLabel: string;
  3077. nextPageLabel: string;
  3078. lastPageLabel: string;
  3079. itemsPerPageOptions: readonly (number | {
  3080. title: string;
  3081. value: number;
  3082. })[];
  3083. showCurrentPage: boolean;
  3084. sortAscIcon: IconValue;
  3085. sortDescIcon: IconValue;
  3086. fixedHeader: boolean;
  3087. fixedFooter: boolean;
  3088. hideDefaultBody: boolean;
  3089. hideDefaultFooter: boolean;
  3090. hideDefaultHeader: boolean;
  3091. }, true, {}, vue.SlotsType<Partial<{
  3092. [x: `item.${string}`]: (arg: ItemKeySlot<any>) => vue.VNode[];
  3093. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  3094. 'data-table-group': (arg: {
  3095. item: Group;
  3096. count: number;
  3097. props: Record<string, unknown>;
  3098. }) => vue.VNode[];
  3099. 'data-table-select': (arg: {
  3100. props: Record<string, unknown>;
  3101. }) => vue.VNode[];
  3102. 'item.data-table-select': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  3103. 'item.data-table-expand': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  3104. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  3105. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  3106. item: (arg: {
  3107. index: number;
  3108. item: any;
  3109. internalItem: DataTableItem<any>;
  3110. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  3111. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  3112. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  3113. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  3114. } & {
  3115. columns: InternalDataTableHeader[];
  3116. } & {
  3117. props: Record<string, any>;
  3118. }) => vue.VNode[];
  3119. loading: () => vue.VNode[];
  3120. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  3121. 'no-data': () => vue.VNode[];
  3122. 'expanded-row': (arg: ItemSlot<any>) => vue.VNode[];
  3123. headers: (arg: HeadersSlotProps) => vue.VNode[];
  3124. loader: (arg: LoaderSlotProps) => vue.VNode[];
  3125. default: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3126. colgroup: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3127. top: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3128. body: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3129. tbody: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3130. thead: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3131. tfoot: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3132. bottom: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3133. 'body.prepend': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3134. 'body.append': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3135. 'footer.prepend': () => vue.VNode[];
  3136. }>>, {
  3137. P: {};
  3138. B: {};
  3139. D: {};
  3140. C: {};
  3141. M: {};
  3142. Defaults: {};
  3143. }, {
  3144. page: string | number;
  3145. expanded: readonly string[];
  3146. style: vue.StyleValue;
  3147. mobile: boolean | null;
  3148. tag: string;
  3149. sticky: boolean;
  3150. noDataText: string;
  3151. loadingText: string;
  3152. itemsPerPageText: string;
  3153. sortBy: readonly SortItem[];
  3154. pageText: string;
  3155. density: Density;
  3156. valueComparator: typeof deepEqual;
  3157. nextIcon: IconValue;
  3158. prevIcon: IconValue;
  3159. selectStrategy: "all" | "page" | "single";
  3160. returnObject: boolean;
  3161. hideNoData: boolean;
  3162. hover: boolean;
  3163. multiSort: boolean;
  3164. mustSort: boolean;
  3165. groupBy: readonly SortItem[];
  3166. disableSort: boolean;
  3167. showSelect: boolean;
  3168. expandOnClick: boolean;
  3169. showExpand: boolean;
  3170. itemsPerPage: string | number;
  3171. itemsLength: string | number;
  3172. firstIcon: IconValue;
  3173. lastIcon: IconValue;
  3174. firstPageLabel: string;
  3175. prevPageLabel: string;
  3176. nextPageLabel: string;
  3177. lastPageLabel: string;
  3178. itemsPerPageOptions: readonly (number | {
  3179. title: string;
  3180. value: number;
  3181. })[];
  3182. showCurrentPage: boolean;
  3183. sortAscIcon: IconValue;
  3184. sortDescIcon: IconValue;
  3185. fixedHeader: boolean;
  3186. fixedFooter: boolean;
  3187. hideDefaultBody: boolean;
  3188. hideDefaultFooter: boolean;
  3189. hideDefaultHeader: boolean;
  3190. } & {
  3191. search?: string | undefined;
  3192. height?: string | number | undefined;
  3193. width?: string | number | undefined;
  3194. color?: string | undefined;
  3195. loading?: string | boolean | undefined;
  3196. class?: any;
  3197. theme?: string | undefined;
  3198. headers?: readonly {
  3199. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  3200. readonly value?: SelectItemKey<Record<string, any>>;
  3201. readonly title?: string | undefined;
  3202. readonly fixed?: boolean | undefined;
  3203. readonly align?: ("start" | "end" | "center") | undefined;
  3204. readonly width?: (number | string) | undefined;
  3205. readonly minWidth?: string | undefined;
  3206. readonly maxWidth?: string | undefined;
  3207. readonly nowrap?: boolean | undefined;
  3208. readonly headerProps?: {
  3209. readonly [x: string]: any;
  3210. } | undefined;
  3211. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  3212. readonly [x: string]: any;
  3213. } | undefined;
  3214. readonly sortable?: boolean | undefined;
  3215. readonly sort?: DataTableCompareFunction | undefined;
  3216. readonly sortRaw?: DataTableCompareFunction | undefined;
  3217. readonly filter?: FilterFunction | undefined;
  3218. readonly mobile?: boolean | undefined;
  3219. readonly children?: readonly {
  3220. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  3221. readonly value?: SelectItemKey<Record<string, any>>;
  3222. readonly title?: string | undefined;
  3223. readonly fixed?: boolean | undefined;
  3224. readonly align?: ("start" | "end" | "center") | undefined;
  3225. readonly width?: (number | string) | undefined;
  3226. readonly minWidth?: string | undefined;
  3227. readonly maxWidth?: string | undefined;
  3228. readonly nowrap?: boolean | undefined;
  3229. readonly headerProps?: {
  3230. readonly [x: string]: any;
  3231. } | undefined;
  3232. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  3233. readonly [x: string]: any;
  3234. } | undefined;
  3235. readonly sortable?: boolean | undefined;
  3236. readonly sort?: DataTableCompareFunction | undefined;
  3237. readonly sortRaw?: DataTableCompareFunction | undefined;
  3238. readonly filter?: FilterFunction | undefined;
  3239. readonly mobile?: boolean | undefined;
  3240. readonly children?: readonly any[] | undefined;
  3241. }[] | undefined;
  3242. }[] | undefined;
  3243. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  3244. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  3245. headerProps?: Record<string, any> | undefined;
  3246. } & {
  3247. "onUpdate:sortBy"?: ((sortBy: any) => any) | undefined;
  3248. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  3249. "onUpdate:expanded"?: ((options: any) => any) | undefined;
  3250. "onUpdate:page"?: ((page: number) => any) | undefined;
  3251. "onUpdate:itemsPerPage"?: ((page: number) => any) | undefined;
  3252. "onUpdate:options"?: ((options: any) => any) | undefined;
  3253. }, {}, {}, {}, {}, {
  3254. page: string | number;
  3255. expanded: readonly string[];
  3256. style: vue.StyleValue;
  3257. mobile: boolean | null;
  3258. tag: string;
  3259. sticky: boolean;
  3260. noDataText: string;
  3261. loadingText: string;
  3262. itemsPerPageText: string;
  3263. sortBy: readonly SortItem[];
  3264. pageText: string;
  3265. density: Density;
  3266. valueComparator: typeof deepEqual;
  3267. nextIcon: IconValue;
  3268. prevIcon: IconValue;
  3269. selectStrategy: "all" | "page" | "single";
  3270. returnObject: boolean;
  3271. hideNoData: boolean;
  3272. hover: boolean;
  3273. multiSort: boolean;
  3274. mustSort: boolean;
  3275. groupBy: readonly SortItem[];
  3276. disableSort: boolean;
  3277. showSelect: boolean;
  3278. expandOnClick: boolean;
  3279. showExpand: boolean;
  3280. itemsPerPage: string | number;
  3281. firstIcon: IconValue;
  3282. lastIcon: IconValue;
  3283. firstPageLabel: string;
  3284. prevPageLabel: string;
  3285. nextPageLabel: string;
  3286. lastPageLabel: string;
  3287. itemsPerPageOptions: readonly (number | {
  3288. title: string;
  3289. value: number;
  3290. })[];
  3291. showCurrentPage: boolean;
  3292. sortAscIcon: IconValue;
  3293. sortDescIcon: IconValue;
  3294. fixedHeader: boolean;
  3295. fixedFooter: boolean;
  3296. hideDefaultBody: boolean;
  3297. hideDefaultFooter: boolean;
  3298. hideDefaultHeader: boolean;
  3299. }>;
  3300. __isFragment?: never;
  3301. __isTeleport?: never;
  3302. __isSuspense?: never;
  3303. } & vue.ComponentOptionsBase<{
  3304. page: string | number;
  3305. expanded: readonly string[];
  3306. style: vue.StyleValue;
  3307. mobile: boolean | null;
  3308. tag: string;
  3309. sticky: boolean;
  3310. noDataText: string;
  3311. loadingText: string;
  3312. itemsPerPageText: string;
  3313. sortBy: readonly SortItem[];
  3314. pageText: string;
  3315. density: Density;
  3316. valueComparator: typeof deepEqual;
  3317. nextIcon: IconValue;
  3318. prevIcon: IconValue;
  3319. selectStrategy: "all" | "page" | "single";
  3320. returnObject: boolean;
  3321. hideNoData: boolean;
  3322. hover: boolean;
  3323. multiSort: boolean;
  3324. mustSort: boolean;
  3325. groupBy: readonly SortItem[];
  3326. disableSort: boolean;
  3327. showSelect: boolean;
  3328. expandOnClick: boolean;
  3329. showExpand: boolean;
  3330. itemsPerPage: string | number;
  3331. itemsLength: string | number;
  3332. firstIcon: IconValue;
  3333. lastIcon: IconValue;
  3334. firstPageLabel: string;
  3335. prevPageLabel: string;
  3336. nextPageLabel: string;
  3337. lastPageLabel: string;
  3338. itemsPerPageOptions: readonly (number | {
  3339. title: string;
  3340. value: number;
  3341. })[];
  3342. showCurrentPage: boolean;
  3343. sortAscIcon: IconValue;
  3344. sortDescIcon: IconValue;
  3345. fixedHeader: boolean;
  3346. fixedFooter: boolean;
  3347. hideDefaultBody: boolean;
  3348. hideDefaultFooter: boolean;
  3349. hideDefaultHeader: boolean;
  3350. } & {
  3351. search?: string | undefined;
  3352. height?: string | number | undefined;
  3353. width?: string | number | undefined;
  3354. color?: string | undefined;
  3355. loading?: string | boolean | undefined;
  3356. class?: any;
  3357. theme?: string | undefined;
  3358. headers?: readonly {
  3359. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  3360. readonly value?: SelectItemKey<Record<string, any>>;
  3361. readonly title?: string | undefined;
  3362. readonly fixed?: boolean | undefined;
  3363. readonly align?: ("start" | "end" | "center") | undefined;
  3364. readonly width?: (number | string) | undefined;
  3365. readonly minWidth?: string | undefined;
  3366. readonly maxWidth?: string | undefined;
  3367. readonly nowrap?: boolean | undefined;
  3368. readonly headerProps?: {
  3369. readonly [x: string]: any;
  3370. } | undefined;
  3371. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  3372. readonly [x: string]: any;
  3373. } | undefined;
  3374. readonly sortable?: boolean | undefined;
  3375. readonly sort?: DataTableCompareFunction | undefined;
  3376. readonly sortRaw?: DataTableCompareFunction | undefined;
  3377. readonly filter?: FilterFunction | undefined;
  3378. readonly mobile?: boolean | undefined;
  3379. readonly children?: readonly {
  3380. readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
  3381. readonly value?: SelectItemKey<Record<string, any>>;
  3382. readonly title?: string | undefined;
  3383. readonly fixed?: boolean | undefined;
  3384. readonly align?: ("start" | "end" | "center") | undefined;
  3385. readonly width?: (number | string) | undefined;
  3386. readonly minWidth?: string | undefined;
  3387. readonly maxWidth?: string | undefined;
  3388. readonly nowrap?: boolean | undefined;
  3389. readonly headerProps?: {
  3390. readonly [x: string]: any;
  3391. } | undefined;
  3392. readonly cellProps?: ((data: Pick<ItemKeySlot<any>, "index" | "item" | "internalItem" | "value">) => Record<string, any>) | {
  3393. readonly [x: string]: any;
  3394. } | undefined;
  3395. readonly sortable?: boolean | undefined;
  3396. readonly sort?: DataTableCompareFunction | undefined;
  3397. readonly sortRaw?: DataTableCompareFunction | undefined;
  3398. readonly filter?: FilterFunction | undefined;
  3399. readonly mobile?: boolean | undefined;
  3400. readonly children?: readonly any[] | undefined;
  3401. }[] | undefined;
  3402. }[] | undefined;
  3403. mobileBreakpoint?: number | DisplayBreakpoint | undefined;
  3404. customKeySort?: Record<string, DataTableCompareFunction> | undefined;
  3405. headerProps?: Record<string, any> | undefined;
  3406. } & {
  3407. "onUpdate:sortBy"?: ((sortBy: any) => any) | undefined;
  3408. "onUpdate:groupBy"?: ((value: any) => any) | undefined;
  3409. "onUpdate:expanded"?: ((options: any) => any) | undefined;
  3410. "onUpdate:page"?: ((page: number) => any) | undefined;
  3411. "onUpdate:itemsPerPage"?: ((page: number) => any) | undefined;
  3412. "onUpdate:options"?: ((options: any) => any) | undefined;
  3413. }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
  3414. 'update:modelValue': (value: any[]) => true;
  3415. 'update:page': (page: number) => true;
  3416. 'update:itemsPerPage': (page: number) => true;
  3417. 'update:sortBy': (sortBy: any) => true;
  3418. 'update:options': (options: any) => true;
  3419. 'update:expanded': (options: any) => true;
  3420. 'update:groupBy': (value: any) => true;
  3421. }, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "items" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "itemValue" | "v-slot:no-data" | "cellProps" | "itemSelectable" | "rowProps" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:body" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append" | "v-slot:footer.prepend">, string, {
  3422. page: string | number;
  3423. expanded: readonly string[];
  3424. style: vue.StyleValue;
  3425. mobile: boolean | null;
  3426. tag: string;
  3427. sticky: boolean;
  3428. noDataText: string;
  3429. loadingText: string;
  3430. itemsPerPageText: string;
  3431. sortBy: readonly SortItem[];
  3432. pageText: string;
  3433. density: Density;
  3434. valueComparator: typeof deepEqual;
  3435. nextIcon: IconValue;
  3436. prevIcon: IconValue;
  3437. selectStrategy: "all" | "page" | "single";
  3438. returnObject: boolean;
  3439. hideNoData: boolean;
  3440. hover: boolean;
  3441. multiSort: boolean;
  3442. mustSort: boolean;
  3443. groupBy: readonly SortItem[];
  3444. disableSort: boolean;
  3445. showSelect: boolean;
  3446. expandOnClick: boolean;
  3447. showExpand: boolean;
  3448. itemsPerPage: string | number;
  3449. firstIcon: IconValue;
  3450. lastIcon: IconValue;
  3451. firstPageLabel: string;
  3452. prevPageLabel: string;
  3453. nextPageLabel: string;
  3454. lastPageLabel: string;
  3455. itemsPerPageOptions: readonly (number | {
  3456. title: string;
  3457. value: number;
  3458. })[];
  3459. showCurrentPage: boolean;
  3460. sortAscIcon: IconValue;
  3461. sortDescIcon: IconValue;
  3462. fixedHeader: boolean;
  3463. fixedFooter: boolean;
  3464. hideDefaultBody: boolean;
  3465. hideDefaultFooter: boolean;
  3466. hideDefaultHeader: boolean;
  3467. }, {}, string, vue.SlotsType<Partial<{
  3468. [x: `item.${string}`]: (arg: ItemKeySlot<any>) => vue.VNode[];
  3469. [x: `header.${string}`]: (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  3470. 'data-table-group': (arg: {
  3471. item: Group;
  3472. count: number;
  3473. props: Record<string, unknown>;
  3474. }) => vue.VNode[];
  3475. 'data-table-select': (arg: {
  3476. props: Record<string, unknown>;
  3477. }) => vue.VNode[];
  3478. 'item.data-table-select': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  3479. 'item.data-table-expand': (arg: Omit<ItemKeySlot<any>, "value">) => vue.VNode[];
  3480. 'header.data-table-select': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  3481. 'header.data-table-expand': (arg: VDataTableHeaderCellColumnSlotProps) => vue.VNode[];
  3482. item: (arg: {
  3483. index: number;
  3484. item: any;
  3485. internalItem: DataTableItem<any>;
  3486. isExpanded: ReturnType<typeof provideExpanded>["isExpanded"];
  3487. toggleExpand: ReturnType<typeof provideExpanded>["toggleExpand"];
  3488. isSelected: ReturnType<typeof provideSelection>["isSelected"];
  3489. toggleSelect: ReturnType<typeof provideSelection>["toggleSelect"];
  3490. } & {
  3491. columns: InternalDataTableHeader[];
  3492. } & {
  3493. props: Record<string, any>;
  3494. }) => vue.VNode[];
  3495. loading: () => vue.VNode[];
  3496. 'group-header': (arg: GroupHeaderSlot) => vue.VNode[];
  3497. 'no-data': () => vue.VNode[];
  3498. 'expanded-row': (arg: ItemSlot<any>) => vue.VNode[];
  3499. headers: (arg: HeadersSlotProps) => vue.VNode[];
  3500. loader: (arg: LoaderSlotProps) => vue.VNode[];
  3501. default: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3502. colgroup: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3503. top: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3504. body: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3505. tbody: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3506. thead: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3507. tfoot: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3508. bottom: (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3509. 'body.prepend': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3510. 'body.append': (arg: VDataTableSlotProps<any>) => vue.VNode[];
  3511. 'footer.prepend': () => vue.VNode[];
  3512. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T extends readonly any[], V>(props: {
  3513. items?: T;
  3514. itemValue?: SelectItemKey<ItemType<T>>;
  3515. rowProps?: RowProps<ItemType<T>>;
  3516. cellProps?: CellProps<ItemType<T>>;
  3517. itemSelectable?: SelectItemKey<ItemType<T>>;
  3518. modelValue?: V;
  3519. "onUpdate:modelValue"?: (value: V) => void;
  3520. }, slots: VDataTableSlots<ItemType<T>>) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
  3521. prevIcon: {
  3522. type: vue.PropType<IconValue>;
  3523. default: string;
  3524. };
  3525. nextIcon: {
  3526. type: vue.PropType<IconValue>;
  3527. default: string;
  3528. };
  3529. firstIcon: {
  3530. type: vue.PropType<IconValue>;
  3531. default: string;
  3532. };
  3533. lastIcon: {
  3534. type: vue.PropType<IconValue>;
  3535. default: string;
  3536. };
  3537. itemsPerPageText: {
  3538. type: StringConstructor;
  3539. default: string;
  3540. };
  3541. pageText: {
  3542. type: StringConstructor;
  3543. default: string;
  3544. };
  3545. firstPageLabel: {
  3546. type: StringConstructor;
  3547. default: string;
  3548. };
  3549. prevPageLabel: {
  3550. type: StringConstructor;
  3551. default: string;
  3552. };
  3553. nextPageLabel: {
  3554. type: StringConstructor;
  3555. default: string;
  3556. };
  3557. lastPageLabel: {
  3558. type: StringConstructor;
  3559. default: string;
  3560. };
  3561. itemsPerPageOptions: {
  3562. type: vue.PropType<readonly (number | {
  3563. title: string;
  3564. value: number;
  3565. })[]>;
  3566. default: () => {
  3567. value: number;
  3568. title: string;
  3569. }[];
  3570. };
  3571. showCurrentPage: BooleanConstructor;
  3572. theme: StringConstructor;
  3573. tag: {
  3574. type: StringConstructor;
  3575. default: string;
  3576. };
  3577. density: {
  3578. type: vue.PropType<Density>;
  3579. default: string;
  3580. validator: (v: any) => boolean;
  3581. };
  3582. class: vue.PropType<ClassValue>;
  3583. style: {
  3584. type: vue.PropType<vue.StyleValue>;
  3585. default: null;
  3586. };
  3587. fixedHeader: BooleanConstructor;
  3588. fixedFooter: BooleanConstructor;
  3589. height: (StringConstructor | NumberConstructor)[];
  3590. hover: BooleanConstructor;
  3591. loading: (StringConstructor | BooleanConstructor)[];
  3592. mobile: {
  3593. type: vue.PropType<boolean | null>;
  3594. default: boolean;
  3595. };
  3596. mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
  3597. color: StringConstructor;
  3598. sticky: BooleanConstructor;
  3599. disableSort: BooleanConstructor;
  3600. multiSort: BooleanConstructor;
  3601. sortAscIcon: {
  3602. type: vue.PropType<IconValue>;
  3603. default: string;
  3604. };
  3605. sortDescIcon: {
  3606. type: vue.PropType<IconValue>;
  3607. default: string;
  3608. };
  3609. headerProps: {
  3610. type: vue.PropType<Record<string, any>>;
  3611. };
  3612. sortBy: {
  3613. type: vue.PropType<readonly SortItem[]>;
  3614. default: () => never[];
  3615. };
  3616. customKeySort: vue.PropType<Record<string, DataTableCompareFunction>>;
  3617. mustSort: BooleanConstructor;
  3618. showSelect: BooleanConstructor;
  3619. selectStrategy: {
  3620. type: vue.PropType<"single" | "page" | "all">;
  3621. default: string;
  3622. };
  3623. modelValue: {
  3624. type: vue.PropType<readonly any[]>;
  3625. default: () => never[];
  3626. };
  3627. valueComparator: {
  3628. type: vue.PropType<typeof deepEqual>;
  3629. default: typeof deepEqual;
  3630. };
  3631. items: {
  3632. type: vue.PropType<DataTableItemProps["items"]>;
  3633. default: () => never[];
  3634. };
  3635. itemValue: {
  3636. type: vue.PropType<SelectItemKey>;
  3637. default: string;
  3638. };
  3639. itemSelectable: {
  3640. type: vue.PropType<SelectItemKey>;
  3641. default: null;
  3642. };
  3643. rowProps: vue.PropType<RowProps<any>>;
  3644. cellProps: vue.PropType<CellProps<any>>;
  3645. returnObject: BooleanConstructor;
  3646. headers: vue.PropType<vue.DeepReadonly<DataTableHeader[]>>;
  3647. groupBy: {
  3648. type: vue.PropType<readonly SortItem[]>;
  3649. default: () => never[];
  3650. };
  3651. expandOnClick: BooleanConstructor;
  3652. showExpand: BooleanConstructor;
  3653. expanded: {
  3654. type: vue.PropType<readonly string[]>;
  3655. default: () => never[];
  3656. };
  3657. hideDefaultBody: BooleanConstructor;
  3658. hideDefaultFooter: BooleanConstructor;
  3659. hideDefaultHeader: BooleanConstructor;
  3660. width: (StringConstructor | NumberConstructor)[];
  3661. search: StringConstructor;
  3662. loadingText: {
  3663. type: StringConstructor;
  3664. default: string;
  3665. };
  3666. hideNoData: BooleanConstructor;
  3667. noDataText: {
  3668. type: StringConstructor;
  3669. default: string;
  3670. };
  3671. page: {
  3672. type: (StringConstructor | NumberConstructor)[];
  3673. default: number;
  3674. };
  3675. itemsPerPage: {
  3676. type: (StringConstructor | NumberConstructor)[];
  3677. default: number;
  3678. };
  3679. itemsLength: {
  3680. type: (StringConstructor | NumberConstructor)[];
  3681. required: true;
  3682. };
  3683. }, vue.ExtractPropTypes<{
  3684. prevIcon: {
  3685. type: vue.PropType<IconValue>;
  3686. default: string;
  3687. };
  3688. nextIcon: {
  3689. type: vue.PropType<IconValue>;
  3690. default: string;
  3691. };
  3692. firstIcon: {
  3693. type: vue.PropType<IconValue>;
  3694. default: string;
  3695. };
  3696. lastIcon: {
  3697. type: vue.PropType<IconValue>;
  3698. default: string;
  3699. };
  3700. itemsPerPageText: {
  3701. type: StringConstructor;
  3702. default: string;
  3703. };
  3704. pageText: {
  3705. type: StringConstructor;
  3706. default: string;
  3707. };
  3708. firstPageLabel: {
  3709. type: StringConstructor;
  3710. default: string;
  3711. };
  3712. prevPageLabel: {
  3713. type: StringConstructor;
  3714. default: string;
  3715. };
  3716. nextPageLabel: {
  3717. type: StringConstructor;
  3718. default: string;
  3719. };
  3720. lastPageLabel: {
  3721. type: StringConstructor;
  3722. default: string;
  3723. };
  3724. itemsPerPageOptions: {
  3725. type: vue.PropType<readonly (number | {
  3726. title: string;
  3727. value: number;
  3728. })[]>;
  3729. default: () => {
  3730. value: number;
  3731. title: string;
  3732. }[];
  3733. };
  3734. showCurrentPage: BooleanConstructor;
  3735. theme: StringConstructor;
  3736. tag: {
  3737. type: StringConstructor;
  3738. default: string;
  3739. };
  3740. density: {
  3741. type: vue.PropType<Density>;
  3742. default: string;
  3743. validator: (v: any) => boolean;
  3744. };
  3745. class: vue.PropType<ClassValue>;
  3746. style: {
  3747. type: vue.PropType<vue.StyleValue>;
  3748. default: null;
  3749. };
  3750. fixedHeader: BooleanConstructor;
  3751. fixedFooter: BooleanConstructor;
  3752. height: (StringConstructor | NumberConstructor)[];
  3753. hover: BooleanConstructor;
  3754. loading: (StringConstructor | BooleanConstructor)[];
  3755. mobile: {
  3756. type: vue.PropType<boolean | null>;
  3757. default: boolean;
  3758. };
  3759. mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
  3760. color: StringConstructor;
  3761. sticky: BooleanConstructor;
  3762. disableSort: BooleanConstructor;
  3763. multiSort: BooleanConstructor;
  3764. sortAscIcon: {
  3765. type: vue.PropType<IconValue>;
  3766. default: string;
  3767. };
  3768. sortDescIcon: {
  3769. type: vue.PropType<IconValue>;
  3770. default: string;
  3771. };
  3772. headerProps: {
  3773. type: vue.PropType<Record<string, any>>;
  3774. };
  3775. sortBy: {
  3776. type: vue.PropType<readonly SortItem[]>;
  3777. default: () => never[];
  3778. };
  3779. customKeySort: vue.PropType<Record<string, DataTableCompareFunction>>;
  3780. mustSort: BooleanConstructor;
  3781. showSelect: BooleanConstructor;
  3782. selectStrategy: {
  3783. type: vue.PropType<"single" | "page" | "all">;
  3784. default: string;
  3785. };
  3786. modelValue: {
  3787. type: vue.PropType<readonly any[]>;
  3788. default: () => never[];
  3789. };
  3790. valueComparator: {
  3791. type: vue.PropType<typeof deepEqual>;
  3792. default: typeof deepEqual;
  3793. };
  3794. items: {
  3795. type: vue.PropType<DataTableItemProps["items"]>;
  3796. default: () => never[];
  3797. };
  3798. itemValue: {
  3799. type: vue.PropType<SelectItemKey>;
  3800. default: string;
  3801. };
  3802. itemSelectable: {
  3803. type: vue.PropType<SelectItemKey>;
  3804. default: null;
  3805. };
  3806. rowProps: vue.PropType<RowProps<any>>;
  3807. cellProps: vue.PropType<CellProps<any>>;
  3808. returnObject: BooleanConstructor;
  3809. headers: vue.PropType<vue.DeepReadonly<DataTableHeader[]>>;
  3810. groupBy: {
  3811. type: vue.PropType<readonly SortItem[]>;
  3812. default: () => never[];
  3813. };
  3814. expandOnClick: BooleanConstructor;
  3815. showExpand: BooleanConstructor;
  3816. expanded: {
  3817. type: vue.PropType<readonly string[]>;
  3818. default: () => never[];
  3819. };
  3820. hideDefaultBody: BooleanConstructor;
  3821. hideDefaultFooter: BooleanConstructor;
  3822. hideDefaultHeader: BooleanConstructor;
  3823. width: (StringConstructor | NumberConstructor)[];
  3824. search: StringConstructor;
  3825. loadingText: {
  3826. type: StringConstructor;
  3827. default: string;
  3828. };
  3829. hideNoData: BooleanConstructor;
  3830. noDataText: {
  3831. type: StringConstructor;
  3832. default: string;
  3833. };
  3834. page: {
  3835. type: (StringConstructor | NumberConstructor)[];
  3836. default: number;
  3837. };
  3838. itemsPerPage: {
  3839. type: (StringConstructor | NumberConstructor)[];
  3840. default: number;
  3841. };
  3842. itemsLength: {
  3843. type: (StringConstructor | NumberConstructor)[];
  3844. required: true;
  3845. };
  3846. }>>;
  3847. type VDataTableServer = InstanceType<typeof VDataTableServer>;
  3848. export { VDataTable, VDataTableFooter, VDataTableHeaders, VDataTableRow, VDataTableRows, VDataTableServer, VDataTableVirtual };