wave-ui 3.10.1 → 3.12.0

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 (109) hide show
  1. package/dist/types/$waveui.d.ts +221 -0
  2. package/dist/types/$waveui.js +2 -0
  3. package/dist/types/colors.d.ts +503 -0
  4. package/dist/types/colors.js +2 -0
  5. package/dist/types/components/WAccordion.d.ts +226 -0
  6. package/dist/types/components/WAccordion.js +2 -0
  7. package/dist/types/components/WAlert.d.ts +225 -0
  8. package/dist/types/components/WAlert.js +2 -0
  9. package/dist/types/components/WApp.d.ts +84 -0
  10. package/dist/types/components/WApp.js +2 -0
  11. package/dist/types/components/WBadge.d.ts +194 -0
  12. package/dist/types/components/WBadge.js +2 -0
  13. package/dist/types/components/WBreadcrumbs.d.ts +129 -0
  14. package/dist/types/components/WBreadcrumbs.js +2 -0
  15. package/dist/types/components/WButton.d.ts +218 -0
  16. package/dist/types/components/WButton.js +2 -0
  17. package/dist/types/components/WCard.d.ts +140 -0
  18. package/dist/types/components/WCard.js +2 -0
  19. package/dist/types/components/WCheckbox.d.ts +132 -0
  20. package/dist/types/components/WCheckbox.js +2 -0
  21. package/dist/types/components/WCheckboxes.d.ts +141 -0
  22. package/dist/types/components/WCheckboxes.js +2 -0
  23. package/dist/types/components/WConfirm.d.ts +250 -0
  24. package/dist/types/components/WConfirm.js +2 -0
  25. package/dist/types/components/WDialog.d.ts +189 -0
  26. package/dist/types/components/WDialog.js +2 -0
  27. package/dist/types/components/WDivider.d.ts +49 -0
  28. package/dist/types/components/WDivider.js +2 -0
  29. package/dist/types/components/WDrawer.d.ts +249 -0
  30. package/dist/types/components/WDrawer.js +2 -0
  31. package/dist/types/components/WFlex.d.ts +137 -0
  32. package/dist/types/components/WFlex.js +2 -0
  33. package/dist/types/components/WForm.d.ts +165 -0
  34. package/dist/types/components/WForm.js +2 -0
  35. package/dist/types/components/WFormElement.d.ts +112 -0
  36. package/dist/types/components/WFormElement.js +2 -0
  37. package/dist/types/components/WGrid.d.ts +51 -0
  38. package/dist/types/components/WGrid.js +2 -0
  39. package/dist/types/components/WIcon.d.ts +167 -0
  40. package/dist/types/components/WIcon.js +2 -0
  41. package/dist/types/components/WImage.d.ts +172 -0
  42. package/dist/types/components/WImage.js +2 -0
  43. package/dist/types/components/WInput.d.ts +352 -0
  44. package/dist/types/components/WInput.js +2 -0
  45. package/dist/types/components/WList.d.ts +336 -0
  46. package/dist/types/components/WList.js +2 -0
  47. package/dist/types/components/WMenu.d.ts +250 -0
  48. package/dist/types/components/WMenu.js +2 -0
  49. package/dist/types/components/WNotification.d.ts +283 -0
  50. package/dist/types/components/WNotification.js +2 -0
  51. package/dist/types/components/WNotificationManager.d.ts +33 -0
  52. package/dist/types/components/WNotificationManager.js +2 -0
  53. package/dist/types/components/WOverlay.d.ts +118 -0
  54. package/dist/types/components/WOverlay.js +2 -0
  55. package/dist/types/components/WProgress.d.ts +177 -0
  56. package/dist/types/components/WProgress.js +2 -0
  57. package/dist/types/components/WRadio.d.ts +121 -0
  58. package/dist/types/components/WRadio.js +2 -0
  59. package/dist/types/components/WRadios.d.ts +129 -0
  60. package/dist/types/components/WRadios.js +2 -0
  61. package/dist/types/components/WRating.d.ts +176 -0
  62. package/dist/types/components/WRating.js +2 -0
  63. package/dist/types/components/WSelect.d.ts +416 -0
  64. package/dist/types/components/WSelect.js +2 -0
  65. package/dist/types/components/WSlider.d.ts +263 -0
  66. package/dist/types/components/WSlider.js +2 -0
  67. package/dist/types/components/WSpinner.d.ts +101 -0
  68. package/dist/types/components/WSpinner.js +2 -0
  69. package/dist/types/components/WSteps.d.ts +29 -0
  70. package/dist/types/components/WSteps.js +2 -0
  71. package/dist/types/components/WSwitch.d.ts +132 -0
  72. package/dist/types/components/WSwitch.js +2 -0
  73. package/dist/types/components/WTable.d.ts +504 -0
  74. package/dist/types/components/WTable.js +2 -0
  75. package/dist/types/components/WTabs.d.ts +343 -0
  76. package/dist/types/components/WTabs.js +2 -0
  77. package/dist/types/components/WTag.d.ts +160 -0
  78. package/dist/types/components/WTag.js +2 -0
  79. package/dist/types/components/WTextarea.d.ts +257 -0
  80. package/dist/types/components/WTextarea.js +2 -0
  81. package/dist/types/components/WTimeline.d.ts +102 -0
  82. package/dist/types/components/WTimeline.js +2 -0
  83. package/dist/types/components/WToolbar.d.ts +134 -0
  84. package/dist/types/components/WToolbar.js +2 -0
  85. package/dist/types/components/WTooltip.d.ts +170 -0
  86. package/dist/types/components/WTooltip.js +2 -0
  87. package/dist/types/components/WTree.d.ts +359 -0
  88. package/dist/types/components/WTree.js +2 -0
  89. package/dist/types/components/index.d.ts +42 -0
  90. package/dist/types/components/index.js +2 -0
  91. package/dist/types/extra-vue-types.d.ts +8 -0
  92. package/dist/types/extra-vue-types.js +2 -0
  93. package/dist/types/index.d.ts +5 -0
  94. package/dist/types/index.js +4 -0
  95. package/dist/types/plugin.d.ts +19 -0
  96. package/dist/types/plugin.js +2 -0
  97. package/dist/wave-ui.cjs.js +1 -1
  98. package/dist/wave-ui.css +1 -1
  99. package/dist/wave-ui.es.js +359 -333
  100. package/dist/wave-ui.umd.js +1 -1
  101. package/package.json +8 -2
  102. package/src/wave-ui/components/w-autocomplete.vue +1 -8
  103. package/src/wave-ui/components/w-input.vue +1 -0
  104. package/src/wave-ui/components/w-parallax.vue +0 -1
  105. package/src/wave-ui/components/w-select.vue +10 -8
  106. package/src/wave-ui/components/w-switch.vue +1 -1
  107. package/src/wave-ui/components/w-table.vue +18 -1
  108. package/src/wave-ui/components/w-textarea.vue +12 -10
  109. package/src/wave-ui/index.d.ts +21 -0
@@ -0,0 +1,504 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WTableHeader {
4
+ /**
5
+ * The label to display as the column header.
6
+ * @property {string} [label] - Default: ''
7
+ */
8
+ label?: string;
9
+ /**
10
+ * A unique identifier that should be found in each row object, and that will be used for sorting.
11
+ * @property {string} key
12
+ */
13
+ key: string;
14
+ /**
15
+ * Whether this column is sortable or not.
16
+ * @property {boolean} [sortable] - Default: true
17
+ */
18
+ sortable?: boolean;
19
+ /**
20
+ * Defines the width of the column in pixel if no unit is given, or in the unit you want (E.g. 30, 30px, 2em, 20%, etc.)
21
+ * @property {number | string} [width] - Default: ''
22
+ */
23
+ width?: number | string;
24
+ /**
25
+ * A unique identifier that should be found in each row object, and that will be used for sorting.
26
+ * @property {string} [align] - Default: left
27
+ */
28
+ align?: 'left' | 'center' | 'right';
29
+ /** If needed, you can also add any custom property. */
30
+ [key: string]: any;
31
+ }
32
+ export interface WTablePagination {
33
+ /**
34
+ * Number of rows to show per page
35
+ * @property {number} [itemsPerPage] - Default: 20
36
+ */
37
+ itemsPerPage?: number;
38
+ /**
39
+ * An array of the options to list in the items per page select.
40
+ * @property {Array<number | { value: number, label: string }>} [itemsPerPageOptions] - Default: [20, 100, { label: 'All', value: 0 }]
41
+ */
42
+ itemsPerPageOptions?: Array<number | {
43
+ value: number;
44
+ label: string;
45
+ }>;
46
+ /**
47
+ * The start of the results range
48
+ * @property {number} [start] - Default: 1
49
+ */
50
+ start?: number;
51
+ /**
52
+ * The end of the results range
53
+ * @property {number} [end] - Default: start - 1 + total
54
+ */
55
+ end?: number;
56
+ /**
57
+ * The current page to display [itemsPerPage] number of rows
58
+ * @property {number} [page]
59
+ */
60
+ page?: number;
61
+ /**
62
+ * The total number of items available in the table
63
+ * @property {number} [total]
64
+ */
65
+ total?: number;
66
+ }
67
+ export interface WaveTableProps {
68
+ /**
69
+ * An array of objects that defines the table data.
70
+ * Each item object should have all the same keys as defined in the headers.
71
+ * If needed, you can also add any custom property.</li></ul>
72
+ * @property {Array<any>} [items]
73
+ * @see https://antoniandre.github.io/wave-ui/w-table
74
+ */
75
+ items: Array<any>;
76
+ /**
77
+ * An array of objects that defines the columns of the table. The headers are always required, even when hidden.
78
+ * Each header object can have these properties:<ul><li>`label:` `[String]` The label to display as the column header.</li><li>`key:` `required` `[String]` A unique identifier that should be found in each row object, and that will be used for sorting.</li><li>`align:` `[String]` align the text to the left, right or center for the whole column.</li><li>`width:` `[String, Integer]` Defines the width of the column in pixel if no unit is given, or in the unit you want (E.g. `30`, `30px`, `2em`, `20%`, etc.)</li><li>`sortable:` `[Boolean]` Whether this column is sortable or not. If omitted, defaults to `true`.</li><li>If needed, you can also add any custom property.</li></ul>
79
+ * @property {Array<any>} [headers]
80
+ * @see https://antoniandre.github.io/wave-ui/w-table
81
+ */
82
+ headers: Array<WTableHeader>;
83
+ /**
84
+ * The table headings will be hidden. Only the table data will be visible.
85
+ * @property {boolean} noHeaders
86
+ * @see https://antoniandre.github.io/wave-ui/w-table
87
+ */
88
+ noHeaders?: boolean;
89
+ /**
90
+ * When set to `true`, the table layout is set to fixed (`table-layout: fixed`), which means the table cells won't try to adapt their width to the available space and wrap the content when it does not fit.
91
+ * This layout is used when there are sticky columns or column resizing enabled.
92
+ * @property {boolean} fixedLayout
93
+ * @see https://antoniandre.github.io/wave-ui/w-table
94
+ */
95
+ fixedLayout?: boolean;
96
+ /**
97
+ * When set to `true`, the table headings will be sticky at the top of the table when scrolling down.
98
+ * @property {boolean} fixedHeaders
99
+ * @see https://antoniandre.github.io/wave-ui/w-table
100
+ */
101
+ fixedHeaders?: boolean;
102
+ /**
103
+ * When set to `true`, the table footer will be sticky at the bottom of the table when scrolling up or when the content is taller than the table container.
104
+ * @property {boolean} fixedFooter
105
+ * @see https://antoniandre.github.io/wave-ui/w-table
106
+ */
107
+ fixedFooter?: boolean;
108
+ /**
109
+ * When set to `true`, a progress bar will be displayed and any currently visible rows will be hidden.
110
+ * When set to <code>'header\', the loading bar will be placed in the header leaving any current rows visible while loading.
111
+ * @property {boolean|string} loading
112
+ * @see https://antoniandre.github.io/wave-ui/w-table
113
+ */
114
+ loading?: boolean | string;
115
+ /**
116
+ * Sort the rows of the array by the given key. You can prefix the key with a `+` or a `-` to apply an ascending or descending sorting. E.g. `+id`.
117
+ * You can also use a 2-way binding to keep the `sort` variable updated in your app (outside of Wave UI): use `:sort.sync="sort"` in Vue 2,or the `v-model:sort="sort"` in Vue 3.
118
+ * @property {string|Array<any>} sort
119
+ * @see https://antoniandre.github.io/wave-ui/w-table
120
+ */
121
+ sort?: string | Array<any>;
122
+ /**
123
+ * Optionally provide an asynchronous sorting function (usually for server-side sorting). This function receives an array of sorting keys as parameter. If the array is empty, the sorting is reset.
124
+ * @property {} sortFunction
125
+ * @see https://antoniandre.github.io/wave-ui/w-table
126
+ */
127
+ sortFunction?: (keys: Array<string>) => void;
128
+ /**
129
+ * An external filter function that you can provide to filter the rows of the table.
130
+ * The function receives 2 parameters:
131
+ * `Param 1:` the `item` object being traversed by the filter.
132
+ * `Param 2:` the `index` of the item being traversed by the filter.
133
+ * @property {} filter
134
+ * @see https://antoniandre.github.io/wave-ui/w-table
135
+ */
136
+ filter?: (item: any, index: number) => void;
137
+ /**
138
+ * Called to fetch data from the server for pagination
139
+ * The function receives 1 parameters:
140
+ * `Param 1:` the `iinfo` object for the current page, start, end, total, itemsPerPage, sorting.
141
+ * @property {} fetch
142
+ * @see https://antoniandre.github.io/wave-ui/w-table
143
+ */
144
+ fetch?: (info: {
145
+ page: number;
146
+ start: number;
147
+ end: number;
148
+ total: number;
149
+ itemsPerPage: number;
150
+ sorting: Array<string>;
151
+ }) => void;
152
+ /**
153
+ * Expand some rows by default, on table load. You can provide the rows to expand in an array of `id`.
154
+ * If you prefer another key than `id`, you can use the `uid-key` prop to set another key.
155
+ * @property {Array<any>} expandedRows
156
+ * @see https://antoniandre.github.io/wave-ui/w-table
157
+ */
158
+ expandedRows?: Array<any>;
159
+ /**
160
+ * Select some rows by default, on table load. You can provide the rows to select in an array of `id`.
161
+ * If you prefer another key than `id`, you can use the `uid-key` prop to set another key.
162
+ * @property {Array<any>} selectedRows
163
+ * @see https://antoniandre.github.io/wave-ui/w-table
164
+ */
165
+ selectedRows?: Array<any>;
166
+ /**
167
+ * Prevent unselecting a row when only one remains selected.
168
+ * @property {boolean} forceSelection
169
+ * @see https://antoniandre.github.io/wave-ui/w-table
170
+ */
171
+ forceSelection?: boolean;
172
+ /**
173
+ * In order to keep the same row selected after sorting or filtering, each row is assigned a unique identifier.
174
+ * By default the expanded rows array will use an `id` key, if present in the item object, or will assign an
175
+ * internal unique ID otherwise.
176
+ * If you want, you can override the default unique ID key (when internally needed) with this prop.
177
+ * @property {string} uidKey - Default: 'id'
178
+ * @see https://antoniandre.github.io/wave-ui/w-table
179
+ */
180
+ uidKey?: string;
181
+ /**
182
+ * When a number is given (in pixel), any device screen width under this number will display the table in mobile layout.
183
+ * Leave undefined to disable.
184
+ * @property {number} mobileBreakpoint - Default: 0
185
+ * @see https://antoniandre.github.io/wave-ui/w-table
186
+ */
187
+ mobileBreakpoint?: number;
188
+ /**
189
+ * When this option is on, the columns will be separated by borders that you can drag to resize.
190
+ * @property {boolean} resizableColumns
191
+ * @see https://antoniandre.github.io/wave-ui/w-table
192
+ */
193
+ resizableColumns?: boolean;
194
+ /**
195
+ * TODO: Add Description
196
+ * @property {boolean} dark
197
+ * @see https://antoniandre.github.io/wave-ui/w-table
198
+ */
199
+ dark?: boolean;
200
+ /**
201
+ * TODO: Add Description
202
+ * @property {boolean} light
203
+ * @see https://antoniandre.github.io/wave-ui/w-table
204
+ */
205
+ light?: boolean;
206
+ /**
207
+ * TODO: Add Description
208
+ * @property {any} itemsPerPageOptions
209
+ * @see https://antoniandre.github.io/wave-ui/w-table
210
+ */
211
+ itemsPerPageOptions?: any;
212
+ /**
213
+ * Pagination options and configuration
214
+ * @property {WTablePagination} itemsPerPageOptions
215
+ * @see https://antoniandre.github.io/wave-ui/w-table
216
+ * @see https://antoniandre.github.io/wave-ui/w-table#pagination-prop
217
+ */
218
+ pagination?: WTablePagination;
219
+ }
220
+ export interface WaveTableEmits {
221
+ /**
222
+ * This event fires on both selecting and unselecting a row (so you need only one listener for both), and a boolean is returned to know the selected state.
223
+ * @param {any} item - The associated row item object.
224
+ * @param {number} index - The index of the row being selected (starts at 0) in the current filtering state.
225
+ * @param {boolean} selected - A boolean representing the selected state of the clicked row.
226
+ * @param {Array} selectedRows - An array containing all the expanded rows objects.
227
+ * @see https://antoniandre.github.io/wave-ui/w-table
228
+ */
229
+ 'onRowSelect'?: (item: any, index: number, selected: boolean, selectedRows: Array<any>) => void;
230
+ /**
231
+ * This event fires on both expanding and collapsing a row (so you need only one listener for both), and a boolean is returned to know the expanded state.
232
+ * @param {any} item - The associated row item object.
233
+ * @param {number} index - The index of the row being expanded (starts at 0) in the current filtering state.
234
+ * @param {boolean} expanded - A boolean representing the expanded state of the clicked row.
235
+ * @param {Array} expandedRows - An array containing all the expanded rows objects.
236
+ * @see https://antoniandre.github.io/wave-ui/w-table
237
+ */
238
+ 'onRowExpand'?: (item: any, index: number, expanded: boolean, expandedRows: Array<any>) => void;
239
+ /**
240
+ * This event fires when a row is clicked.
241
+ * @param {any} item - The associated row item object.
242
+ * @param {number} index - The index of the row being clicked (starts at 0) in the current filtering state.
243
+ * @see https://antoniandre.github.io/wave-ui/w-table
244
+ */
245
+ 'onRowClick'?: (item: any, index: number) => void;
246
+ /**
247
+ * Emitted every time the sorting string is updated by a user interaction.
248
+ * @param {string} sortingString - The currently applied sorting on the table rows. E.g. <code>+firstName</code>
249
+ * @see https://antoniandre.github.io/wave-ui/w-table
250
+ */
251
+ 'onUpdate:sort'?: (sortingString: string) => void;
252
+ /**
253
+ * Emitted every time the selected-rows array changes. To be used with <code>:selected-rows.sync</code> in Vue 2 or <code>v-model:selected-rows</code> in Vue 3.
254
+ * @param {Array} selectedRows - The current array of selected rows.
255
+ * @see https://antoniandre.github.io/wave-ui/w-table
256
+ */
257
+ 'onUpdate:selectedRows'?: (selectedRows: Array<any>) => void;
258
+ /**
259
+ * Emitted every time the expanded-rows array changes. To be used with <code>:expanded-rows.sync</code> in Vue 2 or <code>v-model:expanded-rows</code> in Vue 3.
260
+ * @param {Array} expandedRows - The current array of expanded rows.
261
+ * @see https://antoniandre.github.io/wave-ui/w-table
262
+ */
263
+ 'onUpdate:expandedRows'?: (expandedRows: Array<any>) => void;
264
+ /**
265
+ * Emitted on mouseup after a column has been resized.
266
+ * @param {number} index - The index (starting from 0) of the resizer that was moved (also the index of the column on the left of the resizer).
267
+ * @param {Array} widths - An array containing all the new widths of the columns after resizing.
268
+ * @see https://antoniandre.github.io/wave-ui/w-table
269
+ */
270
+ 'onColumnResize'?: (index: number, widths: Array<any>) => void;
271
+ }
272
+ export interface WaveTableComputeds extends ComputedOptions {
273
+ /**
274
+ * TODO: Add Description
275
+ * @see https://antoniandre.github.io/wave-ui/w-table
276
+ */
277
+ tableItems: ComputedGetter<any>;
278
+ /**
279
+ * TODO: Add Description
280
+ * @see https://antoniandre.github.io/wave-ui/w-table
281
+ */
282
+ filteredItems: ComputedGetter<any>;
283
+ /**
284
+ * TODO: Add Description
285
+ * @see https://antoniandre.github.io/wave-ui/w-table
286
+ */
287
+ sortedItems: ComputedGetter<any>;
288
+ /**
289
+ * TODO: Add Description
290
+ * @see https://antoniandre.github.io/wave-ui/w-table
291
+ */
292
+ paginatedItems: ComputedGetter<any>;
293
+ /**
294
+ * TODO: Add Description
295
+ * @see https://antoniandre.github.io/wave-ui/w-table
296
+ */
297
+ activeSortingKeys: ComputedGetter<any>;
298
+ /**
299
+ * TODO: Add Description
300
+ * @see https://antoniandre.github.io/wave-ui/w-table
301
+ */
302
+ wrapClasses: ComputedGetter<any>;
303
+ /**
304
+ * TODO: Add Description
305
+ * @see https://antoniandre.github.io/wave-ui/w-table
306
+ */
307
+ colClasses: ComputedGetter<any>;
308
+ /**
309
+ * TODO: Add Description
310
+ * @see https://antoniandre.github.io/wave-ui/w-table
311
+ */
312
+ classes: ComputedGetter<any>;
313
+ /**
314
+ * TODO: Add Description
315
+ * @see https://antoniandre.github.io/wave-ui/w-table
316
+ */
317
+ isMobile: ComputedGetter<any>;
318
+ /**
319
+ * TODO: Add Description
320
+ * @see https://antoniandre.github.io/wave-ui/w-table
321
+ */
322
+ hasStickyColumn: ComputedGetter<any>;
323
+ /**
324
+ * TODO: Add Description
325
+ * @see https://antoniandre.github.io/wave-ui/w-table
326
+ */
327
+ selectedRowsByUid: ComputedGetter<any>;
328
+ /**
329
+ * TODO: Add Description
330
+ * @see https://antoniandre.github.io/wave-ui/w-table
331
+ */
332
+ expandedRowsByUid: ComputedGetter<any>;
333
+ }
334
+ export interface WaveTableMethods extends MethodOptions {
335
+ /**
336
+ * TODO: Add Description
337
+ * @param {any} header
338
+ * @see https://antoniandre.github.io/wave-ui/w-table
339
+ */
340
+ headerClasses(header: any): void;
341
+ /**
342
+ * TODO: Add Description
343
+ * @param {any} header
344
+ * @see https://antoniandre.github.io/wave-ui/w-table
345
+ */
346
+ headerSortClasses(header: any): void;
347
+ /**
348
+ * TODO: Add Description
349
+ * @param {any} item
350
+ * @param {any} index
351
+ * @see https://antoniandre.github.io/wave-ui/w-table
352
+ */
353
+ doSelectRow(item: any, index: any): void;
354
+ /**
355
+ * TODO: Add Description
356
+ * @param {any} e
357
+ * @see https://antoniandre.github.io/wave-ui/w-table
358
+ */
359
+ onMouseDown(e: any): void;
360
+ /**
361
+ * TODO: Add Description
362
+ * @param {any} { target }
363
+ * @see https://antoniandre.github.io/wave-ui/w-table
364
+ */
365
+ onMouseOver({ target }: any): void;
366
+ /**
367
+ * TODO: Add Description
368
+ * @param {any} { target }
369
+ * @see https://antoniandre.github.io/wave-ui/w-table
370
+ */
371
+ onMouseOut({ target }: any): void;
372
+ /**
373
+ * TODO: Add Description
374
+ * @param {any} e
375
+ * @see https://antoniandre.github.io/wave-ui/w-table
376
+ */
377
+ onResizerMouseMove(e: any): void;
378
+ /**
379
+ * TODO: Add Description
380
+ * @see https://antoniandre.github.io/wave-ui/w-table
381
+ */
382
+ onResizerMouseUp(): void;
383
+ /**
384
+ * TODO: Add Description
385
+ * @see https://antoniandre.github.io/wave-ui/w-table
386
+ */
387
+ initPagination(): void;
388
+ /**
389
+ * TODO: Add Description
390
+ * @param {any} { itemsPerPage
391
+ * @param {any} page
392
+ * @param {any} total }
393
+ * @see https://antoniandre.github.io/wave-ui/w-table
394
+ */
395
+ updatePaginationConfig(config: {
396
+ itemsPerPage: any;
397
+ page: any;
398
+ total: number;
399
+ }): void;
400
+ }
401
+ export type WaveTableSlots = SlotsType<{
402
+ /**
403
+ * Provide a custom header label template.
404
+ * @param {any} label The label of the header being rendered.
405
+ * @param {any} header The full header object being rendered.
406
+ * @param {any} index The index of the header cell being rendered. Starts at 1.
407
+ * @see https://antoniandre.github.io/wave-ui/w-table
408
+ */
409
+ 'header-label': (_: {
410
+ label: any;
411
+ header: any;
412
+ index: any;
413
+ }) => any;
414
+ /**
415
+ * Provide a custom loading template.
416
+ * @see https://antoniandre.github.io/wave-ui/w-table
417
+ */
418
+ 'loading': () => any;
419
+ /**
420
+ * Provide a custom template when there is no data.
421
+ * @see https://antoniandre.github.io/wave-ui/w-table
422
+ */
423
+ 'no-data': () => any;
424
+ /**
425
+ * Provide a custom item template for each full <tr>.
426
+ * @param {any} item The full item object of the row being rendered.
427
+ * @param {any} index The index of the row being rendered. Starts at 1.
428
+ * @param {any} select When using `selectable-rows`: the select function to call on <tr> click (or on a custom event).
429
+ * @param {any} classes The internally computed CSS classes to apply to this <tr>. Given as an object.
430
+ * @see https://antoniandre.github.io/wave-ui/w-table
431
+ */
432
+ 'item': (_: {
433
+ item: any;
434
+ index: any;
435
+ select: any;
436
+ classes: any;
437
+ }) => any;
438
+ /**
439
+ * Provide a custom item cell template (each <td> of each item row).
440
+ * @param {any} item The full item object of the row being rendered.
441
+ * @param {any} header The related header object of the current column of the cell being rendered.
442
+ * @param {any} label The content of the cell being rendered.
443
+ * @param {any} index The index of the cell in the row being rendered. Starts at 1.
444
+ * @see https://antoniandre.github.io/wave-ui/w-table
445
+ */
446
+ 'item-cell': (_: {
447
+ item: any;
448
+ header: any;
449
+ label: any;
450
+ index: any;
451
+ }) => any;
452
+ /**
453
+ * Provide a custom item cell template for a given index or table header (each <td> of each item row).
454
+ * @param {any} item The full item object of the row being rendered.
455
+ * @param {any} header The related header object of the current column of the cell being rendered.
456
+ * @param {any} label The content of the cell being rendered.
457
+ * @param {any} index The index of the cell in the row being rendered. Starts at 1.
458
+ * @see https://antoniandre.github.io/wave-ui/w-table
459
+ */
460
+ [key: `item-cell.${string | number}`]: (_: {
461
+ item: any;
462
+ header: any;
463
+ label: any;
464
+ index: any;
465
+ }) => any;
466
+ /**
467
+ * Provide a custom template for the row expansions (to display in an expanded row).
468
+ * @param {any} item The full item object of the row being rendered.
469
+ * @param {any} index The index of the row being rendered. Starts at 1.
470
+ * @see https://antoniandre.github.io/wave-ui/w-table
471
+ */
472
+ 'row-expansion': (_: {
473
+ item: any;
474
+ index: any;
475
+ }) => any;
476
+ /**
477
+ * TODO: Add Description
478
+ * @see https://antoniandre.github.io/wave-ui/w-table
479
+ */
480
+ 'extra-row': () => any;
481
+ /**
482
+ * Provide a custom template for the table footer if you want one.
483
+ * This slot lets you control the whole <tr>. It expects to receive a &lt;tr&gt; element containing &lt;td&gt;s or &lt;th&gt;s.
484
+ * @see https://antoniandre.github.io/wave-ui/w-table
485
+ */
486
+ 'footer-row': () => any;
487
+ /**
488
+ * Provide a custom template for the table footer if you want one.
489
+ * All the cells are merged in one for convenience, but if you need all the cells, you can use the `footer-row` slot.
490
+ * @see https://antoniandre.github.io/wave-ui/w-table
491
+ */
492
+ 'footer': () => any;
493
+ /**
494
+ * TODO: Add Description
495
+ * @param {any} range TODO: Describe me!
496
+ * @param {any} total TODO: Describe me!
497
+ * @see https://antoniandre.github.io/wave-ui/w-table
498
+ */
499
+ 'pagination': (_: {
500
+ range: any;
501
+ total: any;
502
+ }) => any;
503
+ }>;
504
+ export type WTable = DefineComponent<WaveTableProps, {}, {}, WaveTableComputeds, WaveTableMethods, {}, {}, WaveTableEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveTableProps & WaveTableEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveTableProps>, WaveTableSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });