vueye-table 2.0.0-alpha.9 → 3.0.0-alpha.2

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.
Files changed (42) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +146 -65
  3. package/dist/index.d.ts +671 -1
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +490 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/style.css +1 -1
  8. package/package.json +48 -73
  9. package/dist/components/core/VueyeTable/VueyeTable.vue.d.ts +0 -65
  10. package/dist/components/core/VueyeTable/api.d.ts +0 -14
  11. package/dist/components/core/VueyeTable/components/VueyeBody/VueyeBody.vue.d.ts +0 -49
  12. package/dist/components/core/VueyeTable/components/VueyeBody/api.d.ts +0 -7
  13. package/dist/components/core/VueyeTable/components/VueyeBody/index.d.ts +0 -2
  14. package/dist/components/core/VueyeTable/components/VueyeDropdown/api.d.ts +0 -20
  15. package/dist/components/core/VueyeTable/components/VueyeDropdown/index.d.ts +0 -4
  16. package/dist/components/core/VueyeTable/components/VueyeHead/VueyeHead.vue.d.ts +0 -22
  17. package/dist/components/core/VueyeTable/components/VueyeHead/index.d.ts +0 -2
  18. package/dist/components/core/VueyeTable/components/VueyePagination/VueyePagination.vue.d.ts +0 -56
  19. package/dist/components/core/VueyeTable/components/VueyePagination/api.d.ts +0 -12
  20. package/dist/components/core/VueyeTable/components/VueyePagination/index.d.ts +0 -2
  21. package/dist/components/core/VueyeTable/components/index.d.ts +0 -4
  22. package/dist/components/core/VueyeTable/composables/index.d.ts +0 -4
  23. package/dist/components/core/VueyeTable/composables/useHeaderKeys.d.ts +0 -4
  24. package/dist/components/core/VueyeTable/composables/usePagination.d.ts +0 -11
  25. package/dist/components/core/VueyeTable/index.d.ts +0 -5
  26. package/dist/components/core/VueyeTable/types/Column.d.ts +0 -55
  27. package/dist/components/core/VueyeTable/types/Row.d.ts +0 -3
  28. package/dist/components/core/VueyeTable/types/Utils.d.ts +0 -19
  29. package/dist/components/core/VueyeTable/types/index.d.ts +0 -3
  30. package/dist/components/core/VueyeTable/utils/body.d.ts +0 -4
  31. package/dist/components/core/VueyeTable/utils/header.d.ts +0 -7
  32. package/dist/components/core/VueyeTable/utils/humanize.d.ts +0 -1
  33. package/dist/components/core/VueyeTable/utils/index.d.ts +0 -3
  34. package/dist/components/index.d.ts +0 -1
  35. package/dist/composables/dark.d.ts +0 -2
  36. package/dist/composables/index.d.ts +0 -1
  37. package/dist/favicon.ico +0 -0
  38. package/dist/histoire-setup.d.ts +0 -0
  39. package/dist/main.d.ts +0 -1
  40. package/dist/vueye-table.js +0 -429
  41. package/dist/vueye-table.umd.cjs +0 -1
  42. package/dist/white-logo.ico +0 -0
package/dist/index.d.ts CHANGED
@@ -1 +1,671 @@
1
- export * from './components/index'
1
+ import { CellChange, RowKey, TableIssue, TableRow, TableState } from "@vueye-table/core";
2
+ import { GridCellSlotProps } from "@vueye-table/headless";
3
+ import { Plugin, PropType, SlotsType, VNode } from "vue";
4
+ export * from "@vueye-table/core";
5
+ export * from "@vueye-table/headless";
6
+ export * from "@vueye-table/styled";
7
+ export * from "@vueye-table/vue";
8
+ //#region src/plugin.d.ts
9
+ /** Register `<VueyeTable>` and `<VueyeGrid>` globally. */
10
+ declare const VueyeTablePlugin: Plugin;
11
+ //#endregion
12
+ //#region src/vueye-grid.d.ts
13
+ /**
14
+ * An editable spreadsheet over an array. Cells are edited in place with the keyboard or a double
15
+ * click, ranges are selected with Shift or by dragging, and copy, cut, paste, clear, undo, and
16
+ * redo work like a spreadsheet application. Every edit produces a new array through
17
+ * `update:data`; the array passed in is never mutated.
18
+ */
19
+ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
20
+ searchable: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ columnToggle: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ /** Page the grid. By default every row is on one page. */
29
+ pagination: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ /** Columns are editable unless their definition says otherwise. Set `false` to lock all. */
34
+ editable: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ rowNumbers: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ columnLetters: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ label: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ /** Show undo, redo, and CSV export buttons. */
51
+ toolbar: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ columns: {
56
+ readonly type: PropType<readonly import("@vueye-table/core").AnyColumnDef[]>;
57
+ readonly default: undefined;
58
+ };
59
+ rowKey: {
60
+ readonly type: PropType<string | ((row: any, index: number) => import("@vueye-table/core").RowKey)>;
61
+ readonly default: undefined;
62
+ };
63
+ caption: {
64
+ readonly type: StringConstructor;
65
+ readonly default: undefined;
66
+ };
67
+ loading: {
68
+ readonly type: BooleanConstructor;
69
+ readonly default: false;
70
+ };
71
+ density: {
72
+ readonly type: PropType<import("@vueye-table/styled").Density>;
73
+ readonly default: "comfortable";
74
+ };
75
+ striped: {
76
+ readonly type: BooleanConstructor;
77
+ readonly default: false;
78
+ };
79
+ bordered: {
80
+ readonly type: BooleanConstructor;
81
+ readonly default: false;
82
+ };
83
+ hover: {
84
+ readonly type: BooleanConstructor;
85
+ readonly default: true;
86
+ };
87
+ stickyHeader: {
88
+ readonly type: BooleanConstructor;
89
+ readonly default: false;
90
+ };
91
+ theme: {
92
+ readonly type: PropType<"light" | "dark">;
93
+ readonly default: undefined;
94
+ };
95
+ maxHeight: {
96
+ readonly type: StringConstructor;
97
+ readonly default: undefined;
98
+ };
99
+ searchPlaceholder: {
100
+ readonly type: StringConstructor;
101
+ readonly default: "Search…";
102
+ };
103
+ pageSizeOptions: {
104
+ readonly type: PropType<readonly number[]>;
105
+ readonly default: () => number[];
106
+ };
107
+ page: {
108
+ readonly type: NumberConstructor;
109
+ readonly default: undefined;
110
+ };
111
+ pageSize: {
112
+ readonly type: NumberConstructor;
113
+ readonly default: undefined;
114
+ };
115
+ sorting: {
116
+ readonly type: PropType<readonly import("@vueye-table/core").SortRule[]>;
117
+ readonly default: undefined;
118
+ };
119
+ search: {
120
+ readonly type: StringConstructor;
121
+ readonly default: undefined;
122
+ };
123
+ filters: {
124
+ readonly type: PropType<Readonly<Record<string, unknown>>>;
125
+ readonly default: undefined;
126
+ };
127
+ hiddenColumns: {
128
+ readonly type: PropType<readonly string[]>;
129
+ readonly default: undefined;
130
+ };
131
+ selectScope: {
132
+ readonly type: PropType<import("@vueye-table/core").SelectScope>;
133
+ readonly default: "all";
134
+ };
135
+ data: {
136
+ type: PropType<readonly unknown[]>;
137
+ required: true;
138
+ };
139
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
140
+ [key: string]: any;
141
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
142
+ "update:page": null;
143
+ "update:pageSize": null;
144
+ "update:sorting": null;
145
+ "update:search": null;
146
+ "update:filters": null;
147
+ "update:hiddenColumns": null;
148
+ "update:selected": null;
149
+ } & {
150
+ "state-change": (state: TableState) => boolean;
151
+ "update:data": (data: readonly unknown[]) => boolean;
152
+ edit: (changes: readonly CellChange<unknown>[]) => boolean;
153
+ "edit-error": (issues: readonly TableIssue[]) => boolean;
154
+ export: (csv: string) => boolean;
155
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
156
+ searchable: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ columnToggle: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
164
+ /** Page the grid. By default every row is on one page. */
165
+ pagination: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
169
+ /** Columns are editable unless their definition says otherwise. Set `false` to lock all. */
170
+ editable: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ rowNumbers: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ columnLetters: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ label: {
183
+ type: StringConstructor;
184
+ default: string;
185
+ };
186
+ /** Show undo, redo, and CSV export buttons. */
187
+ toolbar: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ columns: {
192
+ readonly type: PropType<readonly import("@vueye-table/core").AnyColumnDef[]>;
193
+ readonly default: undefined;
194
+ };
195
+ rowKey: {
196
+ readonly type: PropType<string | ((row: any, index: number) => import("@vueye-table/core").RowKey)>;
197
+ readonly default: undefined;
198
+ };
199
+ caption: {
200
+ readonly type: StringConstructor;
201
+ readonly default: undefined;
202
+ };
203
+ loading: {
204
+ readonly type: BooleanConstructor;
205
+ readonly default: false;
206
+ };
207
+ density: {
208
+ readonly type: PropType<import("@vueye-table/styled").Density>;
209
+ readonly default: "comfortable";
210
+ };
211
+ striped: {
212
+ readonly type: BooleanConstructor;
213
+ readonly default: false;
214
+ };
215
+ bordered: {
216
+ readonly type: BooleanConstructor;
217
+ readonly default: false;
218
+ };
219
+ hover: {
220
+ readonly type: BooleanConstructor;
221
+ readonly default: true;
222
+ };
223
+ stickyHeader: {
224
+ readonly type: BooleanConstructor;
225
+ readonly default: false;
226
+ };
227
+ theme: {
228
+ readonly type: PropType<"light" | "dark">;
229
+ readonly default: undefined;
230
+ };
231
+ maxHeight: {
232
+ readonly type: StringConstructor;
233
+ readonly default: undefined;
234
+ };
235
+ searchPlaceholder: {
236
+ readonly type: StringConstructor;
237
+ readonly default: "Search…";
238
+ };
239
+ pageSizeOptions: {
240
+ readonly type: PropType<readonly number[]>;
241
+ readonly default: () => number[];
242
+ };
243
+ page: {
244
+ readonly type: NumberConstructor;
245
+ readonly default: undefined;
246
+ };
247
+ pageSize: {
248
+ readonly type: NumberConstructor;
249
+ readonly default: undefined;
250
+ };
251
+ sorting: {
252
+ readonly type: PropType<readonly import("@vueye-table/core").SortRule[]>;
253
+ readonly default: undefined;
254
+ };
255
+ search: {
256
+ readonly type: StringConstructor;
257
+ readonly default: undefined;
258
+ };
259
+ filters: {
260
+ readonly type: PropType<Readonly<Record<string, unknown>>>;
261
+ readonly default: undefined;
262
+ };
263
+ hiddenColumns: {
264
+ readonly type: PropType<readonly string[]>;
265
+ readonly default: undefined;
266
+ };
267
+ selectScope: {
268
+ readonly type: PropType<import("@vueye-table/core").SelectScope>;
269
+ readonly default: "all";
270
+ };
271
+ data: {
272
+ type: PropType<readonly unknown[]>;
273
+ required: true;
274
+ };
275
+ }>> & Readonly<{
276
+ "onUpdate:page"?: (...args: any[]) => any;
277
+ "onUpdate:pageSize"?: (...args: any[]) => any;
278
+ "onUpdate:sorting"?: (...args: any[]) => any;
279
+ "onUpdate:search"?: (...args: any[]) => any;
280
+ "onUpdate:filters"?: (...args: any[]) => any;
281
+ "onUpdate:hiddenColumns"?: (...args: any[]) => any;
282
+ "onUpdate:selected"?: (...args: any[]) => any;
283
+ "onState-change"?: (state: TableState) => any;
284
+ onEdit?: (changes: readonly CellChange<unknown>[]) => any;
285
+ "onUpdate:data"?: (data: readonly unknown[]) => any;
286
+ "onEdit-error"?: (issues: readonly TableIssue[]) => any;
287
+ onExport?: (csv: string) => any;
288
+ }>, {
289
+ page: number;
290
+ columns: readonly import("@vueye-table/core").AnyColumnDef[];
291
+ rowKey: string | ((row: any, index: number) => import("@vueye-table/core").RowKey);
292
+ caption: string;
293
+ loading: boolean;
294
+ density: import("@vueye-table/styled").Density;
295
+ striped: boolean;
296
+ bordered: boolean;
297
+ hover: boolean;
298
+ stickyHeader: boolean;
299
+ theme: "light" | "dark";
300
+ maxHeight: string;
301
+ searchable: boolean;
302
+ searchPlaceholder: string;
303
+ columnToggle: boolean;
304
+ pagination: boolean;
305
+ pageSizeOptions: readonly number[];
306
+ pageSize: number;
307
+ sorting: readonly import("@vueye-table/core").SortRule[];
308
+ search: string;
309
+ filters: Readonly<Record<string, unknown>>;
310
+ hiddenColumns: readonly string[];
311
+ selectScope: import("@vueye-table/core").SelectScope;
312
+ label: string;
313
+ toolbar: boolean;
314
+ editable: boolean;
315
+ rowNumbers: boolean;
316
+ columnLetters: boolean;
317
+ }, SlotsType<{
318
+ [key: `cell.${string}`]: GridCellSlotProps & {
319
+ readonly item: unknown;
320
+ };
321
+ } & {
322
+ default?: (props: Record<string, unknown>) => VNode[];
323
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
324
+ //#endregion
325
+ //#region src/vueye-table.d.ts
326
+ /** Slot props of `cell.<column id>` and `cell`. */
327
+ interface CellSlotProps {
328
+ readonly item: unknown;
329
+ readonly row: TableRow<unknown>;
330
+ readonly value: unknown;
331
+ readonly display: string;
332
+ readonly column: {
333
+ readonly id: string;
334
+ readonly header: string;
335
+ };
336
+ }
337
+ /** Slot props of `status`, the "1–10 of 57 rows" line. */
338
+ interface StatusSlotProps {
339
+ readonly start: number;
340
+ readonly end: number;
341
+ readonly rowCount: number;
342
+ readonly totalRowCount: number;
343
+ readonly selectedCount: number;
344
+ }
345
+ /**
346
+ * A complete data table: search, column visibility, sorting, selection, pagination, a live
347
+ * status line, loading and empty states, and theming. Every piece of state is available as a
348
+ * `v-model`, and `manual` hands searching, sorting, and paging to a server.
349
+ */
350
+ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
351
+ /** `true` or `"multiple"` for checkboxes, `"single"` for one row at a time. */
352
+ selectable: {
353
+ type: PropType<boolean | "single" | "multiple">;
354
+ default: boolean;
355
+ };
356
+ selected: {
357
+ type: PropType<readonly RowKey[]>;
358
+ default: undefined;
359
+ };
360
+ /** The data is one page from a server; `rowCount` is the total. */
361
+ manual: {
362
+ type: BooleanConstructor;
363
+ default: boolean;
364
+ };
365
+ rowCount: {
366
+ type: PropType<number | undefined>;
367
+ default: undefined;
368
+ };
369
+ /** Shown instead of the empty state while `loading` and there are no rows yet. */
370
+ loadingText: {
371
+ type: StringConstructor;
372
+ default: string;
373
+ };
374
+ columns: {
375
+ readonly type: PropType<readonly import("@vueye-table/core").AnyColumnDef[]>;
376
+ readonly default: undefined;
377
+ };
378
+ rowKey: {
379
+ readonly type: PropType<string | ((row: any, index: number) => RowKey)>;
380
+ readonly default: undefined;
381
+ };
382
+ caption: {
383
+ readonly type: StringConstructor;
384
+ readonly default: undefined;
385
+ };
386
+ loading: {
387
+ readonly type: BooleanConstructor;
388
+ readonly default: false;
389
+ };
390
+ density: {
391
+ readonly type: PropType<import("@vueye-table/styled").Density>;
392
+ readonly default: "comfortable";
393
+ };
394
+ striped: {
395
+ readonly type: BooleanConstructor;
396
+ readonly default: false;
397
+ };
398
+ bordered: {
399
+ readonly type: BooleanConstructor;
400
+ readonly default: false;
401
+ };
402
+ hover: {
403
+ readonly type: BooleanConstructor;
404
+ readonly default: true;
405
+ };
406
+ stickyHeader: {
407
+ readonly type: BooleanConstructor;
408
+ readonly default: false;
409
+ };
410
+ theme: {
411
+ readonly type: PropType<"light" | "dark">;
412
+ readonly default: undefined;
413
+ };
414
+ maxHeight: {
415
+ readonly type: StringConstructor;
416
+ readonly default: undefined;
417
+ };
418
+ searchable: {
419
+ readonly type: BooleanConstructor;
420
+ readonly default: true;
421
+ };
422
+ searchPlaceholder: {
423
+ readonly type: StringConstructor;
424
+ readonly default: "Search…";
425
+ };
426
+ columnToggle: {
427
+ readonly type: BooleanConstructor;
428
+ readonly default: true;
429
+ };
430
+ pagination: {
431
+ readonly type: BooleanConstructor;
432
+ readonly default: true;
433
+ };
434
+ pageSizeOptions: {
435
+ readonly type: PropType<readonly number[]>;
436
+ readonly default: () => number[];
437
+ };
438
+ page: {
439
+ readonly type: NumberConstructor;
440
+ readonly default: undefined;
441
+ };
442
+ pageSize: {
443
+ readonly type: NumberConstructor;
444
+ readonly default: undefined;
445
+ };
446
+ sorting: {
447
+ readonly type: PropType<readonly import("@vueye-table/core").SortRule[]>;
448
+ readonly default: undefined;
449
+ };
450
+ search: {
451
+ readonly type: StringConstructor;
452
+ readonly default: undefined;
453
+ };
454
+ filters: {
455
+ readonly type: PropType<Readonly<Record<string, unknown>>>;
456
+ readonly default: undefined;
457
+ };
458
+ hiddenColumns: {
459
+ readonly type: PropType<readonly string[]>;
460
+ readonly default: undefined;
461
+ };
462
+ selectScope: {
463
+ readonly type: PropType<import("@vueye-table/core").SelectScope>;
464
+ readonly default: "all";
465
+ };
466
+ data: {
467
+ type: PropType<readonly unknown[]>;
468
+ required: true;
469
+ };
470
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
471
+ [key: string]: any;
472
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
473
+ "update:page": null;
474
+ "update:pageSize": null;
475
+ "update:sorting": null;
476
+ "update:search": null;
477
+ "update:filters": null;
478
+ "update:hiddenColumns": null;
479
+ "update:selected": null;
480
+ } & {
481
+ "state-change": (state: TableState) => boolean;
482
+ "row-click": (item: unknown, row: TableRow<unknown>) => boolean;
483
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
484
+ /** `true` or `"multiple"` for checkboxes, `"single"` for one row at a time. */
485
+ selectable: {
486
+ type: PropType<boolean | "single" | "multiple">;
487
+ default: boolean;
488
+ };
489
+ selected: {
490
+ type: PropType<readonly RowKey[]>;
491
+ default: undefined;
492
+ };
493
+ /** The data is one page from a server; `rowCount` is the total. */
494
+ manual: {
495
+ type: BooleanConstructor;
496
+ default: boolean;
497
+ };
498
+ rowCount: {
499
+ type: PropType<number | undefined>;
500
+ default: undefined;
501
+ };
502
+ /** Shown instead of the empty state while `loading` and there are no rows yet. */
503
+ loadingText: {
504
+ type: StringConstructor;
505
+ default: string;
506
+ };
507
+ columns: {
508
+ readonly type: PropType<readonly import("@vueye-table/core").AnyColumnDef[]>;
509
+ readonly default: undefined;
510
+ };
511
+ rowKey: {
512
+ readonly type: PropType<string | ((row: any, index: number) => RowKey)>;
513
+ readonly default: undefined;
514
+ };
515
+ caption: {
516
+ readonly type: StringConstructor;
517
+ readonly default: undefined;
518
+ };
519
+ loading: {
520
+ readonly type: BooleanConstructor;
521
+ readonly default: false;
522
+ };
523
+ density: {
524
+ readonly type: PropType<import("@vueye-table/styled").Density>;
525
+ readonly default: "comfortable";
526
+ };
527
+ striped: {
528
+ readonly type: BooleanConstructor;
529
+ readonly default: false;
530
+ };
531
+ bordered: {
532
+ readonly type: BooleanConstructor;
533
+ readonly default: false;
534
+ };
535
+ hover: {
536
+ readonly type: BooleanConstructor;
537
+ readonly default: true;
538
+ };
539
+ stickyHeader: {
540
+ readonly type: BooleanConstructor;
541
+ readonly default: false;
542
+ };
543
+ theme: {
544
+ readonly type: PropType<"light" | "dark">;
545
+ readonly default: undefined;
546
+ };
547
+ maxHeight: {
548
+ readonly type: StringConstructor;
549
+ readonly default: undefined;
550
+ };
551
+ searchable: {
552
+ readonly type: BooleanConstructor;
553
+ readonly default: true;
554
+ };
555
+ searchPlaceholder: {
556
+ readonly type: StringConstructor;
557
+ readonly default: "Search…";
558
+ };
559
+ columnToggle: {
560
+ readonly type: BooleanConstructor;
561
+ readonly default: true;
562
+ };
563
+ pagination: {
564
+ readonly type: BooleanConstructor;
565
+ readonly default: true;
566
+ };
567
+ pageSizeOptions: {
568
+ readonly type: PropType<readonly number[]>;
569
+ readonly default: () => number[];
570
+ };
571
+ page: {
572
+ readonly type: NumberConstructor;
573
+ readonly default: undefined;
574
+ };
575
+ pageSize: {
576
+ readonly type: NumberConstructor;
577
+ readonly default: undefined;
578
+ };
579
+ sorting: {
580
+ readonly type: PropType<readonly import("@vueye-table/core").SortRule[]>;
581
+ readonly default: undefined;
582
+ };
583
+ search: {
584
+ readonly type: StringConstructor;
585
+ readonly default: undefined;
586
+ };
587
+ filters: {
588
+ readonly type: PropType<Readonly<Record<string, unknown>>>;
589
+ readonly default: undefined;
590
+ };
591
+ hiddenColumns: {
592
+ readonly type: PropType<readonly string[]>;
593
+ readonly default: undefined;
594
+ };
595
+ selectScope: {
596
+ readonly type: PropType<import("@vueye-table/core").SelectScope>;
597
+ readonly default: "all";
598
+ };
599
+ data: {
600
+ type: PropType<readonly unknown[]>;
601
+ required: true;
602
+ };
603
+ }>> & Readonly<{
604
+ "onUpdate:page"?: (...args: any[]) => any;
605
+ "onUpdate:pageSize"?: (...args: any[]) => any;
606
+ "onUpdate:sorting"?: (...args: any[]) => any;
607
+ "onUpdate:search"?: (...args: any[]) => any;
608
+ "onUpdate:filters"?: (...args: any[]) => any;
609
+ "onUpdate:hiddenColumns"?: (...args: any[]) => any;
610
+ "onUpdate:selected"?: (...args: any[]) => any;
611
+ "onState-change"?: (state: TableState) => any;
612
+ "onRow-click"?: (item: unknown, row: TableRow<unknown>) => any;
613
+ }>, {
614
+ page: number;
615
+ selectable: boolean | "single" | "multiple";
616
+ selected: readonly RowKey[];
617
+ manual: boolean;
618
+ rowCount: number | undefined;
619
+ loadingText: string;
620
+ columns: readonly import("@vueye-table/core").AnyColumnDef[];
621
+ rowKey: string | ((row: any, index: number) => RowKey);
622
+ caption: string;
623
+ loading: boolean;
624
+ density: import("@vueye-table/styled").Density;
625
+ striped: boolean;
626
+ bordered: boolean;
627
+ hover: boolean;
628
+ stickyHeader: boolean;
629
+ theme: "light" | "dark";
630
+ maxHeight: string;
631
+ searchable: boolean;
632
+ searchPlaceholder: string;
633
+ columnToggle: boolean;
634
+ pagination: boolean;
635
+ pageSizeOptions: readonly number[];
636
+ pageSize: number;
637
+ sorting: readonly import("@vueye-table/core").SortRule[];
638
+ search: string;
639
+ filters: Readonly<Record<string, unknown>>;
640
+ hiddenColumns: readonly string[];
641
+ selectScope: import("@vueye-table/core").SelectScope;
642
+ }, SlotsType<{
643
+ [key: `cell.${string}`]: CellSlotProps;
644
+ [key: `header.${string}`]: {
645
+ column: {
646
+ id: string;
647
+ header: string;
648
+ };
649
+ };
650
+ } & {
651
+ toolbar: {
652
+ table: unknown;
653
+ };
654
+ empty: Record<string, never>;
655
+ loading: Record<string, never>;
656
+ footer: {
657
+ table: unknown;
658
+ };
659
+ status: StatusSlotProps;
660
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
661
+ //#endregion
662
+ //#region src/index.d.ts
663
+ declare module "vue" {
664
+ interface GlobalComponents {
665
+ VueyeTable: typeof VueyeTable;
666
+ VueyeGrid: typeof VueyeGrid;
667
+ }
668
+ }
669
+ //#endregion
670
+ export { type CellSlotProps, type StatusSlotProps, VueyeGrid, VueyeTable, VueyeTablePlugin };
671
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/plugin.ts","../src/vueye-grid.ts","../src/vueye-table.ts","../src/index.ts"],"mappings":";;;;;;;;;cAMa,kBAAkB;;;;;;;;;cCqBlB,yBAAS,8BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQK,MAAA;;;;;;;;;;;;;;EAsBP,iBAAC,OAAO;EACT,gBAAC;EACV,OAAC,kBAAkB;EACX,eAAC,iBAAiB;EACxB,SAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA1Bc,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aALyC;;;EACpD,WAAC,OAAO,4BAA4B;kCA+IlD;;;;UC/Ie;WACN;WACA,KAAK;WACL;WACA;WACA;aAAmB;aAAqB;;;;UAIlC;WACN;WACA;WACA;WACA;WACA;;;;;;;cAQE,0BAAU,8BAAA;;;IAOU,MAAA;;;;IAGF,MAAA,kBAAkB;;;;;;;;;IAGjB,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAVL,MAAA;;;;;;;;;;;;;;EAqBP,iBAAC,OAAO;EACX,cAAC,eAAe,KAAK;;;;IAlBL,MAAA;;;;IAGF,MAAA,kBAAkB;;;;;;;;;IAGjB,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAVL,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BgB;MAAE;MAAY;;;;EAE1C;IAAE;;EACJ,OAAA;EACE,SAAA;EACD;IAAE;;EACF,QAAA;kCAqKZ;;;;YClPiB;IACf,mBAAmB;IACnB,kBAAkB"}