wave-ui 3.10.1 → 3.11.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.
- package/dist/types/$waveui.d.ts +29 -0
- package/dist/types/$waveui.js +2 -0
- package/dist/types/colors.d.ts +503 -0
- package/dist/types/colors.js +2 -0
- package/dist/types/components/WAccordion.d.ts +226 -0
- package/dist/types/components/WAccordion.js +2 -0
- package/dist/types/components/WAlert.d.ts +225 -0
- package/dist/types/components/WAlert.js +2 -0
- package/dist/types/components/WApp.d.ts +84 -0
- package/dist/types/components/WApp.js +2 -0
- package/dist/types/components/WBadge.d.ts +194 -0
- package/dist/types/components/WBadge.js +2 -0
- package/dist/types/components/WBreadcrumbs.d.ts +129 -0
- package/dist/types/components/WBreadcrumbs.js +2 -0
- package/dist/types/components/WButton.d.ts +218 -0
- package/dist/types/components/WButton.js +2 -0
- package/dist/types/components/WCard.d.ts +140 -0
- package/dist/types/components/WCard.js +2 -0
- package/dist/types/components/WCheckbox.d.ts +132 -0
- package/dist/types/components/WCheckbox.js +2 -0
- package/dist/types/components/WCheckboxes.d.ts +141 -0
- package/dist/types/components/WCheckboxes.js +2 -0
- package/dist/types/components/WConfirm.d.ts +250 -0
- package/dist/types/components/WConfirm.js +2 -0
- package/dist/types/components/WDialog.d.ts +189 -0
- package/dist/types/components/WDialog.js +2 -0
- package/dist/types/components/WDivider.d.ts +49 -0
- package/dist/types/components/WDivider.js +2 -0
- package/dist/types/components/WDrawer.d.ts +249 -0
- package/dist/types/components/WDrawer.js +2 -0
- package/dist/types/components/WFlex.d.ts +137 -0
- package/dist/types/components/WFlex.js +2 -0
- package/dist/types/components/WForm.d.ts +165 -0
- package/dist/types/components/WForm.js +2 -0
- package/dist/types/components/WFormElement.d.ts +112 -0
- package/dist/types/components/WFormElement.js +2 -0
- package/dist/types/components/WGrid.d.ts +51 -0
- package/dist/types/components/WGrid.js +2 -0
- package/dist/types/components/WIcon.d.ts +167 -0
- package/dist/types/components/WIcon.js +2 -0
- package/dist/types/components/WImage.d.ts +172 -0
- package/dist/types/components/WImage.js +2 -0
- package/dist/types/components/WInput.d.ts +338 -0
- package/dist/types/components/WInput.js +2 -0
- package/dist/types/components/WList.d.ts +336 -0
- package/dist/types/components/WList.js +2 -0
- package/dist/types/components/WMenu.d.ts +250 -0
- package/dist/types/components/WMenu.js +2 -0
- package/dist/types/components/WNotification.d.ts +283 -0
- package/dist/types/components/WNotification.js +2 -0
- package/dist/types/components/WNotificationManager.d.ts +33 -0
- package/dist/types/components/WNotificationManager.js +2 -0
- package/dist/types/components/WOverlay.d.ts +118 -0
- package/dist/types/components/WOverlay.js +2 -0
- package/dist/types/components/WProgress.d.ts +177 -0
- package/dist/types/components/WProgress.js +2 -0
- package/dist/types/components/WRadio.d.ts +121 -0
- package/dist/types/components/WRadio.js +2 -0
- package/dist/types/components/WRadios.d.ts +129 -0
- package/dist/types/components/WRadios.js +2 -0
- package/dist/types/components/WRating.d.ts +176 -0
- package/dist/types/components/WRating.js +2 -0
- package/dist/types/components/WSelect.d.ts +371 -0
- package/dist/types/components/WSelect.js +2 -0
- package/dist/types/components/WSlider.d.ts +263 -0
- package/dist/types/components/WSlider.js +2 -0
- package/dist/types/components/WSpinner.d.ts +101 -0
- package/dist/types/components/WSpinner.js +2 -0
- package/dist/types/components/WSteps.d.ts +29 -0
- package/dist/types/components/WSteps.js +2 -0
- package/dist/types/components/WSwitch.d.ts +132 -0
- package/dist/types/components/WSwitch.js +2 -0
- package/dist/types/components/WTable.d.ts +406 -0
- package/dist/types/components/WTable.js +2 -0
- package/dist/types/components/WTabs.d.ts +301 -0
- package/dist/types/components/WTabs.js +2 -0
- package/dist/types/components/WTag.d.ts +160 -0
- package/dist/types/components/WTag.js +2 -0
- package/dist/types/components/WTextarea.d.ts +243 -0
- package/dist/types/components/WTextarea.js +2 -0
- package/dist/types/components/WTimeline.d.ts +102 -0
- package/dist/types/components/WTimeline.js +2 -0
- package/dist/types/components/WToolbar.d.ts +134 -0
- package/dist/types/components/WToolbar.js +2 -0
- package/dist/types/components/WTooltip.d.ts +170 -0
- package/dist/types/components/WTooltip.js +2 -0
- package/dist/types/components/WTree.d.ts +359 -0
- package/dist/types/components/WTree.js +2 -0
- package/dist/types/components/index.d.ts +42 -0
- package/dist/types/components/index.js +2 -0
- package/dist/types/extra-vue-types.d.ts +8 -0
- package/dist/types/extra-vue-types.js +2 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +4 -0
- package/dist/types/plugin.d.ts +19 -0
- package/dist/types/plugin.js +2 -0
- package/package.json +8 -2
- package/src/wave-ui/components/w-parallax.vue +0 -1
- package/src/wave-ui/index.d.ts +21 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveTableProps {
|
|
4
|
+
/**
|
|
5
|
+
* An array of objects that defines the table data.
|
|
6
|
+
* Each item object should have all the same keys as defined in the headers.
|
|
7
|
+
* If needed, you can also add any custom property.</li></ul>
|
|
8
|
+
* @property {Array<any>} [items]
|
|
9
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
10
|
+
*/
|
|
11
|
+
items: Array<any>;
|
|
12
|
+
/**
|
|
13
|
+
* An array of objects that defines the columns of the table. The headers are always required, even when hidden.
|
|
14
|
+
* 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>
|
|
15
|
+
* @property {Array<any>} [headers]
|
|
16
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
17
|
+
*/
|
|
18
|
+
headers: Array<any>;
|
|
19
|
+
/**
|
|
20
|
+
* The table headings will be hidden. Only the table data will be visible.
|
|
21
|
+
* @property {boolean} noHeaders
|
|
22
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
23
|
+
*/
|
|
24
|
+
noHeaders?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 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.
|
|
27
|
+
* This layout is used when there are sticky columns or column resizing enabled.
|
|
28
|
+
* @property {boolean} fixedLayout
|
|
29
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
30
|
+
*/
|
|
31
|
+
fixedLayout?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* When set to `true`, the table headings will be sticky at the top of the table when scrolling down.
|
|
34
|
+
* @property {boolean} fixedHeaders
|
|
35
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
36
|
+
*/
|
|
37
|
+
fixedHeaders?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 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.
|
|
40
|
+
* @property {boolean} fixedFooter
|
|
41
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
42
|
+
*/
|
|
43
|
+
fixedFooter?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* When set to `true`, a progress bar will be displayed and any currently visible rows will be hidden.
|
|
46
|
+
* When set to <code>'header\', the loading bar will be placed in the header leaving any current rows visible while loading.
|
|
47
|
+
* @property {boolean|string} loading
|
|
48
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
49
|
+
*/
|
|
50
|
+
loading?: boolean | string;
|
|
51
|
+
/**
|
|
52
|
+
* 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`.
|
|
53
|
+
* 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.
|
|
54
|
+
* @property {string|Array<any>} sort
|
|
55
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
56
|
+
*/
|
|
57
|
+
sort?: string | Array<any>;
|
|
58
|
+
/**
|
|
59
|
+
* 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.
|
|
60
|
+
* @property {} sortFunction
|
|
61
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
62
|
+
*/
|
|
63
|
+
sortFunction?: (keys: Array<string>) => void;
|
|
64
|
+
/**
|
|
65
|
+
* An external filter function that you can provide to filter the rows of the table.
|
|
66
|
+
* The function receives 2 parameters:
|
|
67
|
+
* `Param 1:` the `item` object being traversed by the filter.
|
|
68
|
+
* `Param 2:` the `index` of the item being traversed by the filter.
|
|
69
|
+
* @property {} filter
|
|
70
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
71
|
+
*/
|
|
72
|
+
filter?: (item: any, index: number) => void;
|
|
73
|
+
/**
|
|
74
|
+
* TODO: Add Description
|
|
75
|
+
* @property {} fetch
|
|
76
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
77
|
+
*/
|
|
78
|
+
fetch?: () => void;
|
|
79
|
+
/**
|
|
80
|
+
* Expand some rows by default, on table load. You can provide the rows to expand in an array of `id`. If you prefer another key than `id`, you can use the `uid-key` prop to set another key.
|
|
81
|
+
* @property {Array<any>} expandedRows
|
|
82
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
83
|
+
*/
|
|
84
|
+
expandedRows?: Array<any>;
|
|
85
|
+
/**
|
|
86
|
+
* Select some rows by default, on table load. You can provide the rows to select in an array of `id`. If you prefer another key than `id`, you can use the `uid-key` prop to set another key.
|
|
87
|
+
* @property {Array<any>} selectedRows
|
|
88
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
89
|
+
*/
|
|
90
|
+
selectedRows?: Array<any>;
|
|
91
|
+
/**
|
|
92
|
+
* Prevent unselecting a row when only one remains selected.
|
|
93
|
+
* @property {boolean} forceSelection
|
|
94
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
95
|
+
*/
|
|
96
|
+
forceSelection?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* In order to keep the same row selected after sorting or filtering, each row is assigned a unique identifier.
|
|
99
|
+
* By default the expanded rows array will use an `id` key, if present in the item object, or will assign an internal unique ID otherwise.
|
|
100
|
+
* If you want, you can override the default unique ID key (when internally needed) with this prop.
|
|
101
|
+
* @property {string} uidKey - Default: 'id'
|
|
102
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
103
|
+
*/
|
|
104
|
+
uidKey?: string;
|
|
105
|
+
/**
|
|
106
|
+
* When a number is given (in pixel), any device screen width under this number will display the table in mobile layout. Leave undefined to disable.
|
|
107
|
+
* @property {number} mobileBreakpoint - Default: 0
|
|
108
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
109
|
+
*/
|
|
110
|
+
mobileBreakpoint?: number;
|
|
111
|
+
/**
|
|
112
|
+
* When this option is on, the columns will be separated by borders that you can drag to resize.
|
|
113
|
+
* @property {boolean} resizableColumns
|
|
114
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
115
|
+
*/
|
|
116
|
+
resizableColumns?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* TODO: Add Description
|
|
119
|
+
* @property {boolean} dark
|
|
120
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
121
|
+
*/
|
|
122
|
+
dark?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* TODO: Add Description
|
|
125
|
+
* @property {boolean} light
|
|
126
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
127
|
+
*/
|
|
128
|
+
light?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* TODO: Add Description
|
|
131
|
+
* @property {any} itemsPerPageOptions
|
|
132
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
133
|
+
*/
|
|
134
|
+
itemsPerPageOptions?: any;
|
|
135
|
+
}
|
|
136
|
+
export interface WaveTableEmits {
|
|
137
|
+
/**
|
|
138
|
+
* <strong>This event fires on both selecting and unselecting a row</strong> (so you need only one listener for both), and a boolean is returned to know the selected state.
|
|
139
|
+
* @param {any} renameMe1 - The associated row item object.
|
|
140
|
+
* @param {any} renameMe2 - The index of the row being selected (starts at 0) in the current filtering state.
|
|
141
|
+
* @param {any} renameMe3 - A boolean representing the selected state of the clicked row.
|
|
142
|
+
* @param {any} renameMe4 - An array containing all the expanded rows objects.
|
|
143
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
144
|
+
*/
|
|
145
|
+
'onRowSelect'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any) => void;
|
|
146
|
+
/**
|
|
147
|
+
* <strong>This event fires on both expanding and collapsing a row</strong> (so you need only one listener for both), and a boolean is returned to know the expanded state.
|
|
148
|
+
* @param {any} renameMe1 - The associated row item object.
|
|
149
|
+
* @param {any} renameMe2 - The index of the row being expanded (starts at 0) in the current filtering state.
|
|
150
|
+
* @param {any} renameMe3 - A boolean representing the expanded state of the clicked row.
|
|
151
|
+
* @param {any} renameMe4 - An array containing all the expanded rows objects.
|
|
152
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
153
|
+
*/
|
|
154
|
+
'onRowExpand'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any) => void;
|
|
155
|
+
/**
|
|
156
|
+
* TODO: Add Description
|
|
157
|
+
* @param {any} renameMe1 - The associated row item object.
|
|
158
|
+
* @param {any} renameMe2 - The index of the row being clicked (starts at 0) in the current filtering state.
|
|
159
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
160
|
+
*/
|
|
161
|
+
'onRowClick'?: (renameMe1: any, renameMe2: any) => void;
|
|
162
|
+
/**
|
|
163
|
+
* Emitted every time the sorting string is updated by a user interaction.
|
|
164
|
+
* @param {any} renameMe1 - The currently applied sorting on the table rows. E.g. <code>+firstName</code>
|
|
165
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
166
|
+
*/
|
|
167
|
+
'onUpdate:sort'?: (renameMe1: any) => void;
|
|
168
|
+
/**
|
|
169
|
+
* 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.
|
|
170
|
+
* @param {any} renameMe1 - The current array of selected rows.
|
|
171
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
172
|
+
*/
|
|
173
|
+
'onUpdate:selectedRows'?: (renameMe1: any) => void;
|
|
174
|
+
/**
|
|
175
|
+
* 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.
|
|
176
|
+
* @param {any} renameMe1 - The current array of expanded rows.
|
|
177
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
178
|
+
*/
|
|
179
|
+
'onUpdate:expandedRows'?: (renameMe1: any) => void;
|
|
180
|
+
/**
|
|
181
|
+
* Emitted on mouseup after a column has been resized.
|
|
182
|
+
* @param {any} renameMe1 - The index (starting from 0) of the resizer that was moved (also the index of the column on the left of the resizer).
|
|
183
|
+
* @param {any} renameMe2 - An array containing all the new widths of the columns after resizing.
|
|
184
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
185
|
+
*/
|
|
186
|
+
'onColumnResize'?: (renameMe1: any, renameMe2: any) => void;
|
|
187
|
+
}
|
|
188
|
+
export interface WaveTableComputeds extends ComputedOptions {
|
|
189
|
+
/**
|
|
190
|
+
* TODO: Add Description
|
|
191
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
192
|
+
*/
|
|
193
|
+
tableItems: ComputedGetter<any>;
|
|
194
|
+
/**
|
|
195
|
+
* TODO: Add Description
|
|
196
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
197
|
+
*/
|
|
198
|
+
filteredItems: ComputedGetter<any>;
|
|
199
|
+
/**
|
|
200
|
+
* TODO: Add Description
|
|
201
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
202
|
+
*/
|
|
203
|
+
sortedItems: ComputedGetter<any>;
|
|
204
|
+
/**
|
|
205
|
+
* TODO: Add Description
|
|
206
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
207
|
+
*/
|
|
208
|
+
paginatedItems: ComputedGetter<any>;
|
|
209
|
+
/**
|
|
210
|
+
* TODO: Add Description
|
|
211
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
212
|
+
*/
|
|
213
|
+
activeSortingKeys: ComputedGetter<any>;
|
|
214
|
+
/**
|
|
215
|
+
* TODO: Add Description
|
|
216
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
217
|
+
*/
|
|
218
|
+
wrapClasses: ComputedGetter<any>;
|
|
219
|
+
/**
|
|
220
|
+
* TODO: Add Description
|
|
221
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
222
|
+
*/
|
|
223
|
+
colClasses: ComputedGetter<any>;
|
|
224
|
+
/**
|
|
225
|
+
* TODO: Add Description
|
|
226
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
227
|
+
*/
|
|
228
|
+
classes: ComputedGetter<any>;
|
|
229
|
+
/**
|
|
230
|
+
* TODO: Add Description
|
|
231
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
232
|
+
*/
|
|
233
|
+
isMobile: ComputedGetter<any>;
|
|
234
|
+
/**
|
|
235
|
+
* TODO: Add Description
|
|
236
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
237
|
+
*/
|
|
238
|
+
hasStickyColumn: ComputedGetter<any>;
|
|
239
|
+
/**
|
|
240
|
+
* TODO: Add Description
|
|
241
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
242
|
+
*/
|
|
243
|
+
selectedRowsByUid: ComputedGetter<any>;
|
|
244
|
+
/**
|
|
245
|
+
* TODO: Add Description
|
|
246
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
247
|
+
*/
|
|
248
|
+
expandedRowsByUid: ComputedGetter<any>;
|
|
249
|
+
}
|
|
250
|
+
export interface WaveTableMethods extends MethodOptions {
|
|
251
|
+
/**
|
|
252
|
+
* TODO: Add Description
|
|
253
|
+
* @param {any} header
|
|
254
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
255
|
+
*/
|
|
256
|
+
headerClasses(header: any): void;
|
|
257
|
+
/**
|
|
258
|
+
* TODO: Add Description
|
|
259
|
+
* @param {any} header
|
|
260
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
261
|
+
*/
|
|
262
|
+
headerSortClasses(header: any): void;
|
|
263
|
+
/**
|
|
264
|
+
* TODO: Add Description
|
|
265
|
+
* @param {any} item
|
|
266
|
+
* @param {any} index
|
|
267
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
268
|
+
*/
|
|
269
|
+
doSelectRow(item: any, index: any): void;
|
|
270
|
+
/**
|
|
271
|
+
* TODO: Add Description
|
|
272
|
+
* @param {any} e
|
|
273
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
274
|
+
*/
|
|
275
|
+
onMouseDown(e: any): void;
|
|
276
|
+
/**
|
|
277
|
+
* TODO: Add Description
|
|
278
|
+
* @param {any} { target }
|
|
279
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
280
|
+
*/
|
|
281
|
+
onMouseOver({ target }: any): void;
|
|
282
|
+
/**
|
|
283
|
+
* TODO: Add Description
|
|
284
|
+
* @param {any} { target }
|
|
285
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
286
|
+
*/
|
|
287
|
+
onMouseOut({ target }: any): void;
|
|
288
|
+
/**
|
|
289
|
+
* TODO: Add Description
|
|
290
|
+
* @param {any} e
|
|
291
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
292
|
+
*/
|
|
293
|
+
onResizerMouseMove(e: any): void;
|
|
294
|
+
/**
|
|
295
|
+
* TODO: Add Description
|
|
296
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
297
|
+
*/
|
|
298
|
+
onResizerMouseUp(): void;
|
|
299
|
+
/**
|
|
300
|
+
* TODO: Add Description
|
|
301
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
302
|
+
*/
|
|
303
|
+
initPagination(): void;
|
|
304
|
+
/**
|
|
305
|
+
* TODO: Add Description
|
|
306
|
+
* @param {any} { itemsPerPage
|
|
307
|
+
* @param {any} page
|
|
308
|
+
* @param {any} total }
|
|
309
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
310
|
+
*/
|
|
311
|
+
updatePaginationConfig(config: {
|
|
312
|
+
itemsPerPage: any;
|
|
313
|
+
page: any;
|
|
314
|
+
total: number;
|
|
315
|
+
}): void;
|
|
316
|
+
}
|
|
317
|
+
export type WaveTableSlots = SlotsType<{
|
|
318
|
+
/**
|
|
319
|
+
* Provide a custom header label template.
|
|
320
|
+
* @param {any} label The label of the header being rendered.
|
|
321
|
+
* @param {any} header The full header object being rendered.
|
|
322
|
+
* @param {any} index The index of the header cell being rendered. Starts at 1.
|
|
323
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
324
|
+
*/
|
|
325
|
+
'header-label': (_: {
|
|
326
|
+
label: any;
|
|
327
|
+
header: any;
|
|
328
|
+
index: any;
|
|
329
|
+
}) => any;
|
|
330
|
+
/**
|
|
331
|
+
* Provide a custom loading template.
|
|
332
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
333
|
+
*/
|
|
334
|
+
'loading': () => any;
|
|
335
|
+
/**
|
|
336
|
+
* Provide a custom template when there is no data.
|
|
337
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
338
|
+
*/
|
|
339
|
+
'no-data': () => any;
|
|
340
|
+
/**
|
|
341
|
+
* Provide a custom item template for each full <tr>.
|
|
342
|
+
* @param {any} item The full item object of the row being rendered.
|
|
343
|
+
* @param {any} index The index of the row being rendered. Starts at 1.
|
|
344
|
+
* @param {any} select When using `selectable-rows`: the select function to call on <tr> click (or on a custom event).
|
|
345
|
+
* @param {any} classes The internally computed CSS classes to apply to this <tr>. Given as an object.
|
|
346
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
347
|
+
*/
|
|
348
|
+
'item': (_: {
|
|
349
|
+
item: any;
|
|
350
|
+
index: any;
|
|
351
|
+
select: any;
|
|
352
|
+
classes: any;
|
|
353
|
+
}) => any;
|
|
354
|
+
/**
|
|
355
|
+
* Provide a custom item cell template (each <td> of each item row).
|
|
356
|
+
* @param {any} item The full item object of the row being rendered.
|
|
357
|
+
* @param {any} header The related header object of the current column of the cell being rendered.
|
|
358
|
+
* @param {any} label The content of the cell being rendered.
|
|
359
|
+
* @param {any} index The index of the cell in the row being rendered. Starts at 1.
|
|
360
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
361
|
+
*/
|
|
362
|
+
'item-cell': (_: {
|
|
363
|
+
item: any;
|
|
364
|
+
header: any;
|
|
365
|
+
label: any;
|
|
366
|
+
index: any;
|
|
367
|
+
}) => any;
|
|
368
|
+
/**
|
|
369
|
+
* Provide a custom template for the row expansions (to display in an expanded row).
|
|
370
|
+
* @param {any} item The full item object of the row being rendered.
|
|
371
|
+
* @param {any} index The index of the row being rendered. Starts at 1.
|
|
372
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
373
|
+
*/
|
|
374
|
+
'row-expansion': (_: {
|
|
375
|
+
item: any;
|
|
376
|
+
index: any;
|
|
377
|
+
}) => any;
|
|
378
|
+
/**
|
|
379
|
+
* TODO: Add Description
|
|
380
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
381
|
+
*/
|
|
382
|
+
'extra-row': () => any;
|
|
383
|
+
/**
|
|
384
|
+
* Provide a custom template for the table footer if you want one.
|
|
385
|
+
* This slot lets you control the whole <tr>. It expects to receive a <tr> element containing <td>s or <th>s.
|
|
386
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
387
|
+
*/
|
|
388
|
+
'footer-row': () => any;
|
|
389
|
+
/**
|
|
390
|
+
* Provide a custom template for the table footer if you want one.
|
|
391
|
+
* All the cells are merged in one for convenience, but if you need all the cells, you can use the `footer-row` slot.
|
|
392
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
393
|
+
*/
|
|
394
|
+
'footer': () => any;
|
|
395
|
+
/**
|
|
396
|
+
* TODO: Add Description
|
|
397
|
+
* @param {any} range TODO: Describe me!
|
|
398
|
+
* @param {any} total TODO: Describe me!
|
|
399
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
400
|
+
*/
|
|
401
|
+
'pagination': (_: {
|
|
402
|
+
range: any;
|
|
403
|
+
total: any;
|
|
404
|
+
}) => any;
|
|
405
|
+
}>;
|
|
406
|
+
export type WTable = DefineComponent<WaveTableProps, {}, {}, WaveTableComputeds, WaveTableMethods, {}, {}, WaveTableEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveTableProps & WaveTableEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveTableProps>, WaveTableSlots>;
|