@omnia/fx 8.0.248-dev → 8.0.249-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,75 @@
1
- import { ConstructComponentProps, DataTableHeader, DefineEmit, DefineProp, DefinePropTheming, DefineSlot, DefineVModel, IDataTableRowRenderer, SortItem } from "@omnia/fx/ux";
1
+ import { ConstructComponentProps, DataTableHeader, DefineEmit, DefineProp, DefinePropTheming, DefineSlot, DefineVModel, ExtractProps, IDataTableRowRenderer, ItemValueType, SortItem } from "@omnia/fx/ux";
2
2
  import { ComponentPublicInstance, TdHTMLAttributes, VNodeChild } from "vue";
3
3
  import { PublicDataTableRowProps } from "./RowRenderer";
4
- type CellElement = (props: ConstructComponentProps<Pick<TdHTMLAttributes, "colspan" | "rowspan" | "headers">>) => any;
5
- type RowElement = (props: ConstructComponentProps<PublicDataTableRowProps>) => any;
6
4
  export interface IDataTableRow<T = any> {
7
5
  value: T;
8
6
  index: number;
9
7
  Row: RowElement;
10
8
  Cell: CellElement;
11
9
  }
10
+ export type DataTablePropsBase<T> = DefinePropTheming & DefineVModel<"expanded", Array<string>, false, null, false, "Whether the item is expanded or not."> & DefineVModel<"sortBy", SortItem[], false, null, false, "Changes which item property (or properties) should be used for sort order."> & DefineProp<"mustSort", boolean, false, false, "If true then one can not disable sorting, it will always switch between ascending and descending."> & DefineProp<"height", string | number, false, null, "Sets and explicit height of the tablet."> & DefineProp<"noDataText", string, false, null, "Text shown when no items are provided to the component."> & DefineProp<"itemValue", ItemValueType<T>, false, null, "Property on supplied items that contains its value."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"drag", boolean, false, false, "Enable draggable row."> & DefineProp<"hover", boolean, false, false, "Property on supplied items that contains its value."> & DefineProp<"showExpand", boolean, false, false, "Shows the expand toggle in default rows."> & DefineProp<"headers", DataTableHeader[], false, typeof defaultHeaders, "An array of objects that each describe a header column."> & DefineVModel<"items", T[], false, typeof defaultItems, true, "An array of strings or objects used for automatically generating children components."> & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
11
+ item: T;
12
+ }) => void>;
13
+ type DefaultProps = {};
14
+ type ItemsPerPageProp = DefineProp<"itemsPerPage", number, false, -1, "Changes how many items per page should be visible. If set a paging footer is displayed.">;
15
+ type ServerPaginationPageProps = ItemsPerPageProp & DefineProp<"itemsLength", number, true, null, "Number of all items.">;
16
+ type CellElement = (props: ConstructComponentProps<Pick<TdHTMLAttributes, "colspan" | "rowspan" | "headers">>) => any;
17
+ type RowElement = (props: ConstructComponentProps<PublicDataTableRowProps>) => any;
12
18
  declare const defaultHeaders: DataTableHeader[];
13
19
  declare const defaultItems: any[];
14
- export type DataTableProps<T> = DefinePropTheming & DefineVModel<"expanded", Array<string>, false, null, false, "Whether the item is expanded or not."> & DefineVModel<"sortBy", SortItem[], false, null, false, "Changes which item property (or properties) should be used for sort order."> & DefineProp<"mustSort", boolean, false, false, "If true then one can not disable sorting, it will always switch between ascending and descending."> & DefineProp<"height", string | number, false, null, "Sets and explicit height of the tablet."> & DefineProp<"noDataText", string, false, null, "Text shown when no items are provided to the component."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"drag", boolean, false, false, "Enable draggable row."> & DefineProp<"hover", boolean, false, false, "Property on supplied items that contains its value."> & DefineProp<"showExpand", boolean, false, false, "Shows the expand toggle in default rows."> & DefineProp<"showLoadMore", boolean, false, false, "Shows the button to fetch more data."> & DefineProp<"itemsPerPage", number, false, -1, "Changes how many items per page should be visible. If set a paging footer is displayed."> & DefineProp<"headers", DataTableHeader[], false, typeof defaultHeaders, "An array of objects that each describe a header column."> & DefineVModel<"items", T[], false, typeof defaultItems, true, "An array of strings or objects used for automatically generating children components."> & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
20
+ declare const _default: <T extends unknown, TVariant extends "default" | "client-pagination-scroll" | "client-pagination-page" | "server-pagination-scroll" | "server-pagination-page" = "default">(props: ConstructComponentProps<{
21
+ variant?: TVariant;
22
+ } & {
23
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
24
+ } & {
25
+ container?: boolean;
26
+ } & {
27
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
28
+ } & {
29
+ "v-model:expanded"?: string[];
30
+ } & {
31
+ "onUpdate:expanded"?: (value: string[]) => void;
32
+ } & {
33
+ expanded?: string[];
34
+ } & {
35
+ "v-model:sortBy"?: SortItem[];
36
+ } & {
37
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
38
+ } & {
39
+ sortBy?: SortItem[];
40
+ } & {
41
+ mustSort?: boolean;
42
+ } & {
43
+ height?: string | number;
44
+ } & {
45
+ noDataText?: string;
46
+ } & {
47
+ itemValue?: ItemValueType<T>;
48
+ } & {
49
+ loading?: boolean;
50
+ } & {
51
+ drag?: boolean;
52
+ } & {
53
+ hover?: boolean;
54
+ } & {
55
+ showExpand?: boolean;
56
+ } & {
57
+ headers?: DataTableHeader[];
58
+ } & {
59
+ "v-model:items"?: T[];
60
+ } & {
61
+ "onUpdate:items"?: (value: T[]) => void;
62
+ } & {
63
+ items?: T[];
64
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
15
65
  item: T;
16
- }) => void>;
17
- declare const _default: <T extends unknown>(props: ConstructComponentProps<DataTableProps<T>>) => {
66
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
67
+ showLoadMore?: boolean;
68
+ } : TVariant extends "client-pagination-page" ? {
69
+ itemsPerPage?: number;
70
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
71
+ showLoadMore?: boolean;
72
+ } : DefaultProps)>) => {
18
73
  $: import("vue").ComponentInternalInstance;
19
74
  $data: {};
20
75
  $props: {};
@@ -52,22 +107,531 @@ declare const _default: <T extends unknown>(props: ConstructComponentProps<DataT
52
107
  $nextTick: typeof import("vue").nextTick;
53
108
  $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
54
109
  } & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
55
- propsDefinition: import("@omnia/fx/ux").ExtractProps<DataTableProps<T>> & {
56
- "v-slots"?: {
57
- [x: `header.${string}`]: (header: DataTableHeader) => void;
58
- [x: `item.${string}`]: (e: {
59
- item: T;
60
- }) => void;
61
- item?: (row: IDataTableRowRenderer<T>) => void;
62
- row?: (row: IDataTableRow<T>) => VNodeChild;
63
- } & Omit<{
110
+ propsDefinition: ExtractProps<{
111
+ variant?: TVariant;
112
+ } & {
113
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
114
+ } & {
115
+ container?: boolean;
116
+ } & {
117
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
118
+ } & {
119
+ "v-model:expanded"?: string[];
120
+ } & {
121
+ "onUpdate:expanded"?: (value: string[]) => void;
122
+ } & {
123
+ expanded?: string[];
124
+ } & {
125
+ "v-model:sortBy"?: SortItem[];
126
+ } & {
127
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
128
+ } & {
129
+ sortBy?: SortItem[];
130
+ } & {
131
+ mustSort?: boolean;
132
+ } & {
133
+ height?: string | number;
134
+ } & {
135
+ noDataText?: string;
136
+ } & {
137
+ itemValue?: ItemValueType<T>;
138
+ } & {
139
+ loading?: boolean;
140
+ } & {
141
+ drag?: boolean;
142
+ } & {
143
+ hover?: boolean;
144
+ } & {
145
+ showExpand?: boolean;
146
+ } & {
147
+ headers?: DataTableHeader[];
148
+ } & {
149
+ "v-model:items"?: T[];
150
+ } & {
151
+ "onUpdate:items"?: (value: T[]) => void;
152
+ } & {
153
+ items?: T[];
154
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
155
+ item: T;
156
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
157
+ showLoadMore?: boolean;
158
+ } : TVariant extends "client-pagination-page" ? {
159
+ itemsPerPage?: number;
160
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
161
+ showLoadMore?: boolean;
162
+ } : DefaultProps)> & {
163
+ "v-slots"?: ({
164
+ variant?: TVariant;
165
+ } & {
166
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
167
+ } & {
168
+ container?: boolean;
169
+ } & {
170
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
171
+ } & {
172
+ "v-model:expanded"?: string[];
173
+ } & {
174
+ "onUpdate:expanded"?: (value: string[]) => void;
175
+ } & {
176
+ expanded?: string[];
177
+ } & {
178
+ "v-model:sortBy"?: SortItem[];
179
+ } & {
180
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
181
+ } & {
182
+ sortBy?: SortItem[];
183
+ } & {
184
+ mustSort?: boolean;
185
+ } & {
186
+ height?: string | number;
187
+ } & {
188
+ noDataText?: string;
189
+ } & {
190
+ itemValue?: ItemValueType<T>;
191
+ } & {
192
+ loading?: boolean;
193
+ } & {
194
+ drag?: boolean;
195
+ } & {
196
+ hover?: boolean;
197
+ } & {
198
+ showExpand?: boolean;
199
+ } & {
200
+ headers?: DataTableHeader[];
201
+ } & {
202
+ "v-model:items"?: T[];
203
+ } & {
204
+ "onUpdate:items"?: (value: T[]) => void;
205
+ } & {
206
+ items?: T[];
207
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
208
+ item: T;
209
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
210
+ showLoadMore?: boolean;
211
+ } : TVariant extends "client-pagination-page" ? {
212
+ itemsPerPage?: number;
213
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
214
+ showLoadMore?: boolean;
215
+ } : DefaultProps) extends infer T_2 ? { [K in keyof T_2 as K extends `slot:${infer N}` ? N : never]: ({
216
+ variant?: TVariant;
217
+ } & {
218
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
219
+ } & {
220
+ container?: boolean;
221
+ } & {
222
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
223
+ } & {
224
+ "v-model:expanded"?: string[];
225
+ } & {
226
+ "onUpdate:expanded"?: (value: string[]) => void;
227
+ } & {
228
+ expanded?: string[];
229
+ } & {
230
+ "v-model:sortBy"?: SortItem[];
231
+ } & {
232
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
233
+ } & {
234
+ sortBy?: SortItem[];
235
+ } & {
236
+ mustSort?: boolean;
237
+ } & {
238
+ height?: string | number;
239
+ } & {
240
+ noDataText?: string;
241
+ } & {
242
+ itemValue?: ItemValueType<T>;
243
+ } & {
244
+ loading?: boolean;
245
+ } & {
246
+ drag?: boolean;
247
+ } & {
248
+ hover?: boolean;
249
+ } & {
250
+ showExpand?: boolean;
251
+ } & {
252
+ headers?: DataTableHeader[];
253
+ } & {
254
+ "v-model:items"?: T[];
255
+ } & {
256
+ "onUpdate:items"?: (value: T[]) => void;
257
+ } & {
258
+ items?: T[];
259
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
260
+ item: T;
261
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
262
+ showLoadMore?: boolean;
263
+ } : TVariant extends "client-pagination-page" ? {
264
+ itemsPerPage?: number;
265
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
266
+ showLoadMore?: boolean;
267
+ } : DefaultProps))[K]; } : never) & Omit<{
64
268
  default?: import("vue").Slot;
65
- }, "row" | "item" | `header.${string}` | `item.${string}`>;
269
+ }, keyof ExtractProps<{
270
+ variant?: TVariant;
271
+ } & {
272
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
273
+ } & {
274
+ container?: boolean;
275
+ } & {
276
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
277
+ } & {
278
+ "v-model:expanded"?: string[];
279
+ } & {
280
+ "onUpdate:expanded"?: (value: string[]) => void;
281
+ } & {
282
+ expanded?: string[];
283
+ } & {
284
+ "v-model:sortBy"?: SortItem[];
285
+ } & {
286
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
287
+ } & {
288
+ sortBy?: SortItem[];
289
+ } & {
290
+ mustSort?: boolean;
291
+ } & {
292
+ height?: string | number;
293
+ } & {
294
+ noDataText?: string;
295
+ } & {
296
+ itemValue?: ItemValueType<T>;
297
+ } & {
298
+ loading?: boolean;
299
+ } & {
300
+ drag?: boolean;
301
+ } & {
302
+ hover?: boolean;
303
+ } & {
304
+ showExpand?: boolean;
305
+ } & {
306
+ headers?: DataTableHeader[];
307
+ } & {
308
+ "v-model:items"?: T[];
309
+ } & {
310
+ "onUpdate:items"?: (value: T[]) => void;
311
+ } & {
312
+ items?: T[];
313
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
314
+ item: T;
315
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
316
+ showLoadMore?: boolean;
317
+ } : TVariant extends "client-pagination-page" ? {
318
+ itemsPerPage?: number;
319
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
320
+ showLoadMore?: boolean;
321
+ } : DefaultProps) extends infer T_3 ? { [K in keyof T_3 as K extends `slot:${infer N}` ? N : never]: ({
322
+ variant?: TVariant;
323
+ } & {
324
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
325
+ } & {
326
+ container?: boolean;
327
+ } & {
328
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
329
+ } & {
330
+ "v-model:expanded"?: string[];
331
+ } & {
332
+ "onUpdate:expanded"?: (value: string[]) => void;
333
+ } & {
334
+ expanded?: string[];
335
+ } & {
336
+ "v-model:sortBy"?: SortItem[];
337
+ } & {
338
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
339
+ } & {
340
+ sortBy?: SortItem[];
341
+ } & {
342
+ mustSort?: boolean;
343
+ } & {
344
+ height?: string | number;
345
+ } & {
346
+ noDataText?: string;
347
+ } & {
348
+ itemValue?: ItemValueType<T>;
349
+ } & {
350
+ loading?: boolean;
351
+ } & {
352
+ drag?: boolean;
353
+ } & {
354
+ hover?: boolean;
355
+ } & {
356
+ showExpand?: boolean;
357
+ } & {
358
+ headers?: DataTableHeader[];
359
+ } & {
360
+ "v-model:items"?: T[];
361
+ } & {
362
+ "onUpdate:items"?: (value: T[]) => void;
363
+ } & {
364
+ items?: T[];
365
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
366
+ item: T;
367
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
368
+ showLoadMore?: boolean;
369
+ } : TVariant extends "client-pagination-page" ? {
370
+ itemsPerPage?: number;
371
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
372
+ showLoadMore?: boolean;
373
+ } : DefaultProps))[K]; } : never>>;
374
+ } & (({
375
+ variant?: TVariant;
376
+ } & {
377
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
378
+ } & {
379
+ container?: boolean;
380
+ } & {
381
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
382
+ } & {
383
+ "v-model:expanded"?: string[];
384
+ } & {
385
+ "onUpdate:expanded"?: (value: string[]) => void;
386
+ } & {
387
+ expanded?: string[];
388
+ } & {
389
+ "v-model:sortBy"?: SortItem[];
390
+ } & {
391
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
392
+ } & {
393
+ sortBy?: SortItem[];
394
+ } & {
395
+ mustSort?: boolean;
396
+ } & {
397
+ height?: string | number;
398
+ } & {
399
+ noDataText?: string;
400
+ } & {
401
+ itemValue?: ItemValueType<T>;
402
+ } & {
403
+ loading?: boolean;
404
+ } & {
405
+ drag?: boolean;
406
+ } & {
407
+ hover?: boolean;
408
+ } & {
409
+ showExpand?: boolean;
410
+ } & {
411
+ headers?: DataTableHeader[];
412
+ } & {
413
+ "v-model:items"?: T[];
414
+ } & {
415
+ "onUpdate:items"?: (value: T[]) => void;
416
+ } & {
417
+ items?: T[];
418
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
419
+ item: T;
420
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
421
+ showLoadMore?: boolean;
422
+ } : TVariant extends "client-pagination-page" ? {
423
+ itemsPerPage?: number;
424
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
425
+ showLoadMore?: boolean;
426
+ } : DefaultProps) extends infer T_4 ? { [K_1 in keyof T_4 as K_1 extends `emit:${infer N_1}` ? N_1 : never]: ({
427
+ variant?: TVariant;
428
+ } & {
429
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
430
+ } & {
431
+ container?: boolean;
432
+ } & {
433
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
434
+ } & {
435
+ "v-model:expanded"?: string[];
436
+ } & {
437
+ "onUpdate:expanded"?: (value: string[]) => void;
438
+ } & {
439
+ expanded?: string[];
440
+ } & {
441
+ "v-model:sortBy"?: SortItem[];
442
+ } & {
443
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
444
+ } & {
445
+ sortBy?: SortItem[];
446
+ } & {
447
+ mustSort?: boolean;
448
+ } & {
449
+ height?: string | number;
450
+ } & {
451
+ noDataText?: string;
452
+ } & {
453
+ itemValue?: ItemValueType<T>;
454
+ } & {
455
+ loading?: boolean;
456
+ } & {
457
+ drag?: boolean;
458
+ } & {
459
+ hover?: boolean;
460
+ } & {
461
+ showExpand?: boolean;
462
+ } & {
463
+ headers?: DataTableHeader[];
464
+ } & {
465
+ "v-model:items"?: T[];
466
+ } & {
467
+ "onUpdate:items"?: (value: T[]) => void;
468
+ } & {
469
+ items?: T[];
470
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
471
+ item: T;
472
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
473
+ showLoadMore?: boolean;
474
+ } : TVariant extends "client-pagination-page" ? {
475
+ itemsPerPage?: number;
476
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
477
+ showLoadMore?: boolean;
478
+ } : DefaultProps))[K_1]; } : never) extends infer T_5 ? T_5 extends ({
479
+ variant?: TVariant;
480
+ } & {
481
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
482
+ } & {
483
+ container?: boolean;
484
+ } & {
485
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
486
+ } & {
487
+ "v-model:expanded"?: string[];
488
+ } & {
489
+ "onUpdate:expanded"?: (value: string[]) => void;
490
+ } & {
491
+ expanded?: string[];
492
+ } & {
493
+ "v-model:sortBy"?: SortItem[];
494
+ } & {
495
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
496
+ } & {
497
+ sortBy?: SortItem[];
498
+ } & {
499
+ mustSort?: boolean;
500
+ } & {
501
+ height?: string | number;
502
+ } & {
503
+ noDataText?: string;
504
+ } & {
505
+ itemValue?: ItemValueType<T>;
506
+ } & {
507
+ loading?: boolean;
508
+ } & {
509
+ drag?: boolean;
510
+ } & {
511
+ hover?: boolean;
512
+ } & {
513
+ showExpand?: boolean;
514
+ } & {
515
+ headers?: DataTableHeader[];
516
+ } & {
517
+ "v-model:items"?: T[];
518
+ } & {
519
+ "onUpdate:items"?: (value: T[]) => void;
520
+ } & {
521
+ items?: T[];
522
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
523
+ item: T;
524
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
525
+ showLoadMore?: boolean;
526
+ } : TVariant extends "client-pagination-page" ? {
527
+ itemsPerPage?: number;
528
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
529
+ showLoadMore?: boolean;
530
+ } : DefaultProps) extends infer T_6 ? { [K_1 in keyof T_6 as K_1 extends `emit:${infer N_1}` ? N_1 : never]: ({
531
+ variant?: TVariant;
532
+ } & {
533
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
534
+ } & {
535
+ container?: boolean;
536
+ } & {
537
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
538
+ } & {
539
+ "v-model:expanded"?: string[];
540
+ } & {
541
+ "onUpdate:expanded"?: (value: string[]) => void;
542
+ } & {
543
+ expanded?: string[];
544
+ } & {
545
+ "v-model:sortBy"?: SortItem[];
546
+ } & {
547
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
548
+ } & {
549
+ sortBy?: SortItem[];
550
+ } & {
551
+ mustSort?: boolean;
552
+ } & {
553
+ height?: string | number;
554
+ } & {
555
+ noDataText?: string;
556
+ } & {
557
+ itemValue?: ItemValueType<T>;
558
+ } & {
559
+ loading?: boolean;
560
+ } & {
561
+ drag?: boolean;
562
+ } & {
563
+ hover?: boolean;
564
+ } & {
565
+ showExpand?: boolean;
566
+ } & {
567
+ headers?: DataTableHeader[];
568
+ } & {
569
+ "v-model:items"?: T[];
570
+ } & {
571
+ "onUpdate:items"?: (value: T[]) => void;
572
+ } & {
573
+ items?: T[];
574
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
575
+ item: T;
576
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
577
+ showLoadMore?: boolean;
578
+ } : TVariant extends "client-pagination-page" ? {
579
+ itemsPerPage?: number;
580
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
581
+ showLoadMore?: boolean;
582
+ } : DefaultProps))[K_1]; } : never) ? T_5 extends string[] ? { [K_2 in `on${Capitalize<T_5[number]>}`]?: (...args: any[]) => any; } : T_5 extends import("vue").ObjectEmitsOptions ? { [K_3 in `on${Capitalize<string & keyof T_5>}`]?: K_3 extends `on${infer C}` ? T_5[Uncapitalize<C>] extends null ? (...args: any[]) => any : (...args: T_5[Uncapitalize<C>] extends (...args: infer P) => any ? P : never) => any : never; } : {} : never : never) & Omit<import("@omnia/fx/ux").VueComponentBaseProps, keyof ExtractProps<{
583
+ variant?: TVariant;
584
+ } & {
585
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
586
+ } & {
587
+ container?: boolean;
588
+ } & {
589
+ colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
590
+ } & {
591
+ "v-model:expanded"?: string[];
592
+ } & {
593
+ "onUpdate:expanded"?: (value: string[]) => void;
594
+ } & {
595
+ expanded?: string[];
596
+ } & {
597
+ "v-model:sortBy"?: SortItem[];
598
+ } & {
599
+ "onUpdate:sortBy"?: (value: SortItem[]) => void;
600
+ } & {
601
+ sortBy?: SortItem[];
602
+ } & {
603
+ mustSort?: boolean;
604
+ } & {
605
+ height?: string | number;
606
+ } & {
607
+ noDataText?: string;
608
+ } & {
609
+ itemValue?: ItemValueType<T>;
610
+ } & {
611
+ loading?: boolean;
612
+ } & {
613
+ drag?: boolean;
614
+ } & {
615
+ hover?: boolean;
616
+ } & {
617
+ showExpand?: boolean;
618
+ } & {
619
+ headers?: DataTableHeader[];
620
+ } & {
621
+ "v-model:items"?: T[];
622
+ } & {
623
+ "onUpdate:items"?: (value: T[]) => void;
66
624
  } & {
67
- "onUpdate:expanded"?: (expanded: string[]) => any;
68
- "onUpdate:sortBy"?: (item: SortItem[]) => any;
69
- "onClick:loadMore"?: () => any;
70
- } & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "headers" | "container" | "drag" | "height" | "expanded" | "colorSchemaType" | "items" | "colors" | "loading" | "v-model:expanded" | "onUpdate:expanded" | "sortBy" | "v-model:sortBy" | "onUpdate:sortBy" | "mustSort" | "noDataText" | "hover" | "showExpand" | "showLoadMore" | "itemsPerPage" | "v-model:items" | "onUpdate:items">;
625
+ items?: T[];
626
+ } & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
627
+ item: T;
628
+ }) => void> & (TVariant extends "client-pagination-scroll" ? {
629
+ showLoadMore?: boolean;
630
+ } : TVariant extends "client-pagination-page" ? {
631
+ itemsPerPage?: number;
632
+ } : TVariant extends "server-pagination-page" ? ServerPaginationPageProps : TVariant extends "server-pagination-scroll" ? {
633
+ showLoadMore?: boolean;
634
+ } : DefaultProps)>>;
71
635
  } & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
72
636
  [key: string]: any;
73
637
  }>;
@@ -809,11 +809,11 @@ declare const _default: {
809
809
  hover?: boolean;
810
810
  showExpand?: boolean;
811
811
  itemsPerPage?: number;
812
+ itemsLength?: number;
812
813
  itemSelectable?: SelectItemKey;
813
814
  showSelect?: boolean;
814
815
  "onUpdate:page"?: (value: number) => any;
815
816
  "v-model:page"?: number;
816
- itemsLength?: number;
817
817
  clickable?: boolean;
818
818
  }>, "onUpdate:modelValue" | "onUpdate:sortBy" | "onUpdate:page" | "onUpdate:options" | "onDoc$"> & {
819
819
  "onUpdate:modelValue"?: (value: any[]) => any;
@@ -1276,9 +1276,6 @@ declare global {
1276
1276
  "o-col": typeof wcd116618a12d0439f8da809535809c260 extends {
1277
1277
  propsDefinition: infer TProp;
1278
1278
  } ? (TProp & Omit<VueComponentBaseProps, keyof TProp>) : typeof wcd116618a12d0439f8da809535809c260 extends (...args: any[]) => any ? ExtractJsxProps<Pick<ReturnType<typeof wcd116618a12d0439f8da809535809c260>, "propsDefinition">> : never;
1279
- "o-data-table": typeof wc27c00720f7fb46bbb39286a2cb94797c extends {
1280
- propsDefinition: infer TProp;
1281
- } ? (TProp & Omit<VueComponentBaseProps, keyof TProp>) : typeof wc27c00720f7fb46bbb39286a2cb94797c extends (...args: any[]) => any ? ExtractJsxProps<Pick<ReturnType<typeof wc27c00720f7fb46bbb39286a2cb94797c>, "propsDefinition">> : never;
1282
1279
  "o-data-table-server": typeof wc810f65f430374ef2a142907a707f650f extends {
1283
1280
  propsDefinition: infer TProp;
1284
1281
  } ? (TProp & Omit<VueComponentBaseProps, keyof TProp>) : typeof wc810f65f430374ef2a142907a707f650f extends (...args: any[]) => any ? ExtractJsxProps<Pick<ReturnType<typeof wc810f65f430374ef2a142907a707f650f>, "propsDefinition">> : never;