@coreui/vue-pro 4.3.0-beta.0 → 4.3.0-beta.1
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/README.md +1 -1
- package/dist/components/smart-table/CSmartTable.d.ts +34 -98
- package/dist/components/smart-table/CSmartTableInterface.d.ts +3 -3
- package/dist/index.es.js +21 -53
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +21 -53
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/pagination/CSmartPagination.ts +4 -4
- package/src/components/smart-table/CSmartTable.ts +17 -49
- package/src/components/smart-table/CSmartTableInterface.ts +5 -3
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
Several quick start options are available:
|
|
45
45
|
|
|
46
|
-
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.3.0-beta.
|
|
46
|
+
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.3.0-beta.1.zip)
|
|
47
47
|
- Clone the repo: `git clone https://github.com/coreui/coreui-vue-pro.git`
|
|
48
48
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue-pro`
|
|
49
49
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue-pro`
|
|
@@ -3,8 +3,6 @@ import { Column, ColumnFilter, ColumnFilterValue, Item, ItemsPerPageSelect, Sort
|
|
|
3
3
|
declare const CSmartTable: import("vue").DefineComponent<{
|
|
4
4
|
/**
|
|
5
5
|
* Sets active page. If 'pagination' prop is enabled, activePage is set only initially.
|
|
6
|
-
*
|
|
7
|
-
* @default 1
|
|
8
6
|
*/
|
|
9
7
|
activePage: {
|
|
10
8
|
type: NumberConstructor;
|
|
@@ -13,7 +11,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
13
11
|
};
|
|
14
12
|
/**
|
|
15
13
|
* When set, displays table cleaner above table, next to the table filter (or in place of table filter if `tableFilter` prop is not set)
|
|
16
|
-
* Cleaner resets `tableFilterValue`, `columnFilterValue`, `sorterValue`. If clean is possible it is clickable (`tabIndex="0"` `role="button"`, `color="danger"`), otherwise it is not clickable and transparent. Cleaner can be customized through the `
|
|
14
|
+
* Cleaner resets `tableFilterValue`, `columnFilterValue`, `sorterValue`. If clean is possible it is clickable (`tabIndex="0"` `role="button"`, `color="danger"`), otherwise it is not clickable and transparent. Cleaner can be customized through the `cleanerIcon` slot.
|
|
17
15
|
*
|
|
18
16
|
*/
|
|
19
17
|
cleaner: {
|
|
@@ -22,8 +20,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
22
20
|
};
|
|
23
21
|
/**
|
|
24
22
|
* Style table items as clickable.
|
|
25
|
-
*
|
|
26
|
-
* @type boolean
|
|
27
23
|
*/
|
|
28
24
|
clickableRows: {
|
|
29
25
|
type: BooleanConstructor;
|
|
@@ -34,8 +30,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
34
30
|
* Column filter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
35
31
|
* - external (Boolean) - Disables automatic filtering inside component.
|
|
36
32
|
* - lazy (Boolean) - Set to true to trigger filter updates only on change event.
|
|
37
|
-
*
|
|
38
|
-
* @type boolean | ColumnFilter
|
|
39
33
|
*/
|
|
40
34
|
columnFilter: {
|
|
41
35
|
type: PropType<boolean | ColumnFilter>;
|
|
@@ -44,7 +38,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
44
38
|
/**
|
|
45
39
|
* Value of table filter. To set pass object where keys are column names and values are filter strings e.g.:
|
|
46
40
|
* { user: 'John', age: 12 }
|
|
47
|
-
* You can track state of this prop by setting .sync modifier.
|
|
48
41
|
*/
|
|
49
42
|
columnFilterValue: {
|
|
50
43
|
type: PropType<ColumnFilterValue>;
|
|
@@ -52,17 +45,17 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
52
45
|
required: false;
|
|
53
46
|
};
|
|
54
47
|
/**
|
|
55
|
-
* Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '
|
|
48
|
+
* Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '_props')
|
|
56
49
|
*
|
|
57
50
|
* In columns prop each array item represents one column. Item might be specified in two ways:
|
|
58
51
|
* String: each item define column name equal to item value.
|
|
59
52
|
* Object: item is object with following keys available as column configuration:
|
|
60
53
|
* - key (required)(String) - define column name equal to item key.
|
|
54
|
+
* - filter (Boolean) - removes filter from column when set to false.
|
|
61
55
|
* - label (String) - define visible label of column. If not defined, label will be generated automatically based on column name, by converting kebab-case and snake_case to individual words and capitalization of each word.
|
|
62
|
-
* - _classes (String/Array/Object) - adds classes to all cels in column
|
|
63
|
-
* - _style (String/Array/Object) - adds styles to the column header (useful for defining widths)
|
|
64
56
|
* - sorter (Boolean) - disables sorting of the column when set to false
|
|
65
|
-
* -
|
|
57
|
+
* - [_props](https://coreui.io/vue/docs/components/table.html#ctableheadercell) (String/Array/Object) - add props to `CTableHeaderCell`.
|
|
58
|
+
* - _style (String/Array/Object) - adds styles to the column header (useful for defining widths)
|
|
66
59
|
*/
|
|
67
60
|
columns: {
|
|
68
61
|
type: PropType<string[] | Column[]>;
|
|
@@ -74,8 +67,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
74
67
|
* Sorter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
75
68
|
* - external (Boolean) - Disables automatic sorting inside component.
|
|
76
69
|
* - resetable (Boolean) - If set to true clicking on sorter have three states: ascending, descending and null. That means that third click on sorter will reset sorting, and restore table to original order.
|
|
77
|
-
*
|
|
78
|
-
* @type boolean | Sorter
|
|
79
70
|
*/
|
|
80
71
|
columnSorter: {
|
|
81
72
|
type: PropType<boolean | Sorter>;
|
|
@@ -91,8 +82,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
91
82
|
};
|
|
92
83
|
/**
|
|
93
84
|
* Set to false to remove table header.
|
|
94
|
-
*
|
|
95
|
-
* @default true
|
|
96
85
|
*/
|
|
97
86
|
header: {
|
|
98
87
|
type: BooleanConstructor;
|
|
@@ -100,7 +89,11 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
100
89
|
default: boolean;
|
|
101
90
|
};
|
|
102
91
|
/**
|
|
103
|
-
* Array of objects, where each object represents one item - row in table. Additionally, you can
|
|
92
|
+
* Array of objects, where each object represents one item - row in table. Additionally, you can customize each row by passing them by [_props](http://coreui.io/vue/docs/components/table.html#ctablerow) key and single cell by [_cellProps](http://coreui.io/vue/docs/components/table.html#ctabledatacell).
|
|
93
|
+
*
|
|
94
|
+
* Examples:
|
|
95
|
+
* - `_props: { color: 'primary', align: 'middle'}`
|
|
96
|
+
* - `_cellProps: { all: { class: 'fw-semibold'}, 'name': { color: 'info' }}`
|
|
104
97
|
*/
|
|
105
98
|
items: {
|
|
106
99
|
type: PropType<Item[]>;
|
|
@@ -109,8 +102,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
109
102
|
};
|
|
110
103
|
/**
|
|
111
104
|
* Number of items per site, when pagination is enabled.
|
|
112
|
-
*
|
|
113
|
-
* @default 10
|
|
114
105
|
*/
|
|
115
106
|
itemsPerPage: {
|
|
116
107
|
type: NumberConstructor;
|
|
@@ -118,8 +109,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
118
109
|
};
|
|
119
110
|
/**
|
|
120
111
|
* Label for items per page selector.
|
|
121
|
-
*
|
|
122
|
-
* @default 'Items per page:'
|
|
123
112
|
*/
|
|
124
113
|
itemsPerPageLabel: {
|
|
125
114
|
type: StringConstructor;
|
|
@@ -128,8 +117,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
128
117
|
};
|
|
129
118
|
/**
|
|
130
119
|
* Items per page selector options.
|
|
131
|
-
*
|
|
132
|
-
* @default [5, 10, 20, 50]
|
|
133
120
|
*/
|
|
134
121
|
itemsPerPageOptions: {
|
|
135
122
|
type: PropType<number[]>;
|
|
@@ -156,7 +143,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
156
143
|
};
|
|
157
144
|
/**
|
|
158
145
|
* ReactNode or string for passing custom noItemsLabel texts.
|
|
159
|
-
* @default 'No items found'
|
|
160
146
|
*/
|
|
161
147
|
noItemsLabel: {
|
|
162
148
|
type: StringConstructor;
|
|
@@ -171,9 +157,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
171
157
|
required: false;
|
|
172
158
|
};
|
|
173
159
|
/**
|
|
174
|
-
* Properties to
|
|
175
|
-
*
|
|
176
|
-
* @link https://coreui.io/vue/docs/4.0/components/smart-pagination#csmartpagination
|
|
160
|
+
* Properties to [CSmartPagination](https://coreui.io/vue/docs/components/smart-pagination#csmartpagination) component.
|
|
177
161
|
*/
|
|
178
162
|
paginationProps: {
|
|
179
163
|
type: ObjectConstructor;
|
|
@@ -185,10 +169,8 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
185
169
|
*/
|
|
186
170
|
selectable: BooleanConstructor;
|
|
187
171
|
/**
|
|
188
|
-
* State of the sorter. Name key is column name, direction can be 'asc' or 'desc'.
|
|
172
|
+
* State of the sorter. Name key is column name, direction can be 'asc' or 'desc'. eg.:
|
|
189
173
|
* { column: 'status', state: 'asc' }
|
|
190
|
-
*
|
|
191
|
-
* @type SorterValue
|
|
192
174
|
*/
|
|
193
175
|
sorterValue: {
|
|
194
176
|
type: PropType<SorterValue>;
|
|
@@ -196,9 +178,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
196
178
|
required: false;
|
|
197
179
|
};
|
|
198
180
|
/**
|
|
199
|
-
* Properties to
|
|
200
|
-
*
|
|
201
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablebody
|
|
181
|
+
* Properties to [CTableBody](https://coreui.io/vue/docs/components/table/#ctablebody) component.
|
|
202
182
|
*/
|
|
203
183
|
tableBodyProps: {
|
|
204
184
|
type: ObjectConstructor;
|
|
@@ -206,9 +186,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
206
186
|
required: false;
|
|
207
187
|
};
|
|
208
188
|
/**
|
|
209
|
-
* Properties to
|
|
210
|
-
*
|
|
211
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablefoot
|
|
189
|
+
* Properties to [CTableFoot](https://coreui.io/vue/docs/components/table/#ctablefoot) component.
|
|
212
190
|
*/
|
|
213
191
|
tableFootProps: {
|
|
214
192
|
type: ObjectConstructor;
|
|
@@ -219,8 +197,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
219
197
|
* When set, displays table filter above table, allowing filtering by specific column.
|
|
220
198
|
*
|
|
221
199
|
* Column filter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
222
|
-
* - placeholder (String) - Sets custom table filter placeholder.
|
|
223
|
-
* - label (String) - Sets custom table filter label.
|
|
224
200
|
* - external (Boolean) - Disables automatic filtering inside component.
|
|
225
201
|
* - lazy (Boolean) - Set to true to trigger filter updates only on change event.
|
|
226
202
|
*/
|
|
@@ -238,8 +214,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
238
214
|
};
|
|
239
215
|
/**
|
|
240
216
|
* Specifies a short hint that is visible in the search input.
|
|
241
|
-
*
|
|
242
|
-
* @default 'type string...'
|
|
243
217
|
*/
|
|
244
218
|
tableFilterPlaceholder: {
|
|
245
219
|
type: StringConstructor;
|
|
@@ -247,9 +221,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
247
221
|
required: false;
|
|
248
222
|
};
|
|
249
223
|
/**
|
|
250
|
-
* Value of table filter.
|
|
251
|
-
*
|
|
252
|
-
* @default 'Filter:'
|
|
224
|
+
* Value of table filter.
|
|
253
225
|
*/
|
|
254
226
|
tableFilterValue: {
|
|
255
227
|
type: StringConstructor;
|
|
@@ -257,9 +229,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
257
229
|
required: false;
|
|
258
230
|
};
|
|
259
231
|
/**
|
|
260
|
-
* Properties to
|
|
261
|
-
*
|
|
262
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablehead
|
|
232
|
+
* Properties to [CTableHead](https://coreui.io/vue/docs/components/table/#ctablehead) component.
|
|
263
233
|
*/
|
|
264
234
|
tableHeadProps: {
|
|
265
235
|
type: ObjectConstructor;
|
|
@@ -267,9 +237,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
267
237
|
required: false;
|
|
268
238
|
};
|
|
269
239
|
/**
|
|
270
|
-
* Properties to
|
|
271
|
-
*
|
|
272
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctable
|
|
240
|
+
* Properties to [CTable](https://coreui.io/vue/docs/components/table/#ctable) component.
|
|
273
241
|
*/
|
|
274
242
|
tableProps: {
|
|
275
243
|
type: ObjectConstructor;
|
|
@@ -281,8 +249,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
281
249
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("activePageChange" | "rowClick" | "columnFilterChange" | "filteredItemsChange" | "itemsPerPageChange" | "selectedItemsChange" | "sorterChange" | "tableFilterChange")[], "activePageChange" | "rowClick" | "columnFilterChange" | "filteredItemsChange" | "itemsPerPageChange" | "selectedItemsChange" | "sorterChange" | "tableFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
282
250
|
/**
|
|
283
251
|
* Sets active page. If 'pagination' prop is enabled, activePage is set only initially.
|
|
284
|
-
*
|
|
285
|
-
* @default 1
|
|
286
252
|
*/
|
|
287
253
|
activePage: {
|
|
288
254
|
type: NumberConstructor;
|
|
@@ -291,7 +257,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
291
257
|
};
|
|
292
258
|
/**
|
|
293
259
|
* When set, displays table cleaner above table, next to the table filter (or in place of table filter if `tableFilter` prop is not set)
|
|
294
|
-
* Cleaner resets `tableFilterValue`, `columnFilterValue`, `sorterValue`. If clean is possible it is clickable (`tabIndex="0"` `role="button"`, `color="danger"`), otherwise it is not clickable and transparent. Cleaner can be customized through the `
|
|
260
|
+
* Cleaner resets `tableFilterValue`, `columnFilterValue`, `sorterValue`. If clean is possible it is clickable (`tabIndex="0"` `role="button"`, `color="danger"`), otherwise it is not clickable and transparent. Cleaner can be customized through the `cleanerIcon` slot.
|
|
295
261
|
*
|
|
296
262
|
*/
|
|
297
263
|
cleaner: {
|
|
@@ -300,8 +266,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
300
266
|
};
|
|
301
267
|
/**
|
|
302
268
|
* Style table items as clickable.
|
|
303
|
-
*
|
|
304
|
-
* @type boolean
|
|
305
269
|
*/
|
|
306
270
|
clickableRows: {
|
|
307
271
|
type: BooleanConstructor;
|
|
@@ -312,8 +276,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
312
276
|
* Column filter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
313
277
|
* - external (Boolean) - Disables automatic filtering inside component.
|
|
314
278
|
* - lazy (Boolean) - Set to true to trigger filter updates only on change event.
|
|
315
|
-
*
|
|
316
|
-
* @type boolean | ColumnFilter
|
|
317
279
|
*/
|
|
318
280
|
columnFilter: {
|
|
319
281
|
type: PropType<boolean | ColumnFilter>;
|
|
@@ -322,7 +284,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
322
284
|
/**
|
|
323
285
|
* Value of table filter. To set pass object where keys are column names and values are filter strings e.g.:
|
|
324
286
|
* { user: 'John', age: 12 }
|
|
325
|
-
* You can track state of this prop by setting .sync modifier.
|
|
326
287
|
*/
|
|
327
288
|
columnFilterValue: {
|
|
328
289
|
type: PropType<ColumnFilterValue>;
|
|
@@ -330,17 +291,17 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
330
291
|
required: false;
|
|
331
292
|
};
|
|
332
293
|
/**
|
|
333
|
-
* Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '
|
|
294
|
+
* Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '_props')
|
|
334
295
|
*
|
|
335
296
|
* In columns prop each array item represents one column. Item might be specified in two ways:
|
|
336
297
|
* String: each item define column name equal to item value.
|
|
337
298
|
* Object: item is object with following keys available as column configuration:
|
|
338
299
|
* - key (required)(String) - define column name equal to item key.
|
|
300
|
+
* - filter (Boolean) - removes filter from column when set to false.
|
|
339
301
|
* - label (String) - define visible label of column. If not defined, label will be generated automatically based on column name, by converting kebab-case and snake_case to individual words and capitalization of each word.
|
|
340
|
-
* - _classes (String/Array/Object) - adds classes to all cels in column
|
|
341
|
-
* - _style (String/Array/Object) - adds styles to the column header (useful for defining widths)
|
|
342
302
|
* - sorter (Boolean) - disables sorting of the column when set to false
|
|
343
|
-
* -
|
|
303
|
+
* - [_props](https://coreui.io/vue/docs/components/table.html#ctableheadercell) (String/Array/Object) - add props to `CTableHeaderCell`.
|
|
304
|
+
* - _style (String/Array/Object) - adds styles to the column header (useful for defining widths)
|
|
344
305
|
*/
|
|
345
306
|
columns: {
|
|
346
307
|
type: PropType<string[] | Column[]>;
|
|
@@ -352,8 +313,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
352
313
|
* Sorter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
353
314
|
* - external (Boolean) - Disables automatic sorting inside component.
|
|
354
315
|
* - resetable (Boolean) - If set to true clicking on sorter have three states: ascending, descending and null. That means that third click on sorter will reset sorting, and restore table to original order.
|
|
355
|
-
*
|
|
356
|
-
* @type boolean | Sorter
|
|
357
316
|
*/
|
|
358
317
|
columnSorter: {
|
|
359
318
|
type: PropType<boolean | Sorter>;
|
|
@@ -369,8 +328,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
369
328
|
};
|
|
370
329
|
/**
|
|
371
330
|
* Set to false to remove table header.
|
|
372
|
-
*
|
|
373
|
-
* @default true
|
|
374
331
|
*/
|
|
375
332
|
header: {
|
|
376
333
|
type: BooleanConstructor;
|
|
@@ -378,7 +335,11 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
378
335
|
default: boolean;
|
|
379
336
|
};
|
|
380
337
|
/**
|
|
381
|
-
* Array of objects, where each object represents one item - row in table. Additionally, you can
|
|
338
|
+
* Array of objects, where each object represents one item - row in table. Additionally, you can customize each row by passing them by [_props](http://coreui.io/vue/docs/components/table.html#ctablerow) key and single cell by [_cellProps](http://coreui.io/vue/docs/components/table.html#ctabledatacell).
|
|
339
|
+
*
|
|
340
|
+
* Examples:
|
|
341
|
+
* - `_props: { color: 'primary', align: 'middle'}`
|
|
342
|
+
* - `_cellProps: { all: { class: 'fw-semibold'}, 'name': { color: 'info' }}`
|
|
382
343
|
*/
|
|
383
344
|
items: {
|
|
384
345
|
type: PropType<Item[]>;
|
|
@@ -387,8 +348,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
387
348
|
};
|
|
388
349
|
/**
|
|
389
350
|
* Number of items per site, when pagination is enabled.
|
|
390
|
-
*
|
|
391
|
-
* @default 10
|
|
392
351
|
*/
|
|
393
352
|
itemsPerPage: {
|
|
394
353
|
type: NumberConstructor;
|
|
@@ -396,8 +355,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
396
355
|
};
|
|
397
356
|
/**
|
|
398
357
|
* Label for items per page selector.
|
|
399
|
-
*
|
|
400
|
-
* @default 'Items per page:'
|
|
401
358
|
*/
|
|
402
359
|
itemsPerPageLabel: {
|
|
403
360
|
type: StringConstructor;
|
|
@@ -406,8 +363,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
406
363
|
};
|
|
407
364
|
/**
|
|
408
365
|
* Items per page selector options.
|
|
409
|
-
*
|
|
410
|
-
* @default [5, 10, 20, 50]
|
|
411
366
|
*/
|
|
412
367
|
itemsPerPageOptions: {
|
|
413
368
|
type: PropType<number[]>;
|
|
@@ -434,7 +389,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
434
389
|
};
|
|
435
390
|
/**
|
|
436
391
|
* ReactNode or string for passing custom noItemsLabel texts.
|
|
437
|
-
* @default 'No items found'
|
|
438
392
|
*/
|
|
439
393
|
noItemsLabel: {
|
|
440
394
|
type: StringConstructor;
|
|
@@ -449,9 +403,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
449
403
|
required: false;
|
|
450
404
|
};
|
|
451
405
|
/**
|
|
452
|
-
* Properties to
|
|
453
|
-
*
|
|
454
|
-
* @link https://coreui.io/vue/docs/4.0/components/smart-pagination#csmartpagination
|
|
406
|
+
* Properties to [CSmartPagination](https://coreui.io/vue/docs/components/smart-pagination#csmartpagination) component.
|
|
455
407
|
*/
|
|
456
408
|
paginationProps: {
|
|
457
409
|
type: ObjectConstructor;
|
|
@@ -463,10 +415,8 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
463
415
|
*/
|
|
464
416
|
selectable: BooleanConstructor;
|
|
465
417
|
/**
|
|
466
|
-
* State of the sorter. Name key is column name, direction can be 'asc' or 'desc'.
|
|
418
|
+
* State of the sorter. Name key is column name, direction can be 'asc' or 'desc'. eg.:
|
|
467
419
|
* { column: 'status', state: 'asc' }
|
|
468
|
-
*
|
|
469
|
-
* @type SorterValue
|
|
470
420
|
*/
|
|
471
421
|
sorterValue: {
|
|
472
422
|
type: PropType<SorterValue>;
|
|
@@ -474,9 +424,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
474
424
|
required: false;
|
|
475
425
|
};
|
|
476
426
|
/**
|
|
477
|
-
* Properties to
|
|
478
|
-
*
|
|
479
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablebody
|
|
427
|
+
* Properties to [CTableBody](https://coreui.io/vue/docs/components/table/#ctablebody) component.
|
|
480
428
|
*/
|
|
481
429
|
tableBodyProps: {
|
|
482
430
|
type: ObjectConstructor;
|
|
@@ -484,9 +432,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
484
432
|
required: false;
|
|
485
433
|
};
|
|
486
434
|
/**
|
|
487
|
-
* Properties to
|
|
488
|
-
*
|
|
489
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablefoot
|
|
435
|
+
* Properties to [CTableFoot](https://coreui.io/vue/docs/components/table/#ctablefoot) component.
|
|
490
436
|
*/
|
|
491
437
|
tableFootProps: {
|
|
492
438
|
type: ObjectConstructor;
|
|
@@ -497,8 +443,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
497
443
|
* When set, displays table filter above table, allowing filtering by specific column.
|
|
498
444
|
*
|
|
499
445
|
* Column filter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
500
|
-
* - placeholder (String) - Sets custom table filter placeholder.
|
|
501
|
-
* - label (String) - Sets custom table filter label.
|
|
502
446
|
* - external (Boolean) - Disables automatic filtering inside component.
|
|
503
447
|
* - lazy (Boolean) - Set to true to trigger filter updates only on change event.
|
|
504
448
|
*/
|
|
@@ -516,8 +460,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
516
460
|
};
|
|
517
461
|
/**
|
|
518
462
|
* Specifies a short hint that is visible in the search input.
|
|
519
|
-
*
|
|
520
|
-
* @default 'type string...'
|
|
521
463
|
*/
|
|
522
464
|
tableFilterPlaceholder: {
|
|
523
465
|
type: StringConstructor;
|
|
@@ -525,9 +467,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
525
467
|
required: false;
|
|
526
468
|
};
|
|
527
469
|
/**
|
|
528
|
-
* Value of table filter.
|
|
529
|
-
*
|
|
530
|
-
* @default 'Filter:'
|
|
470
|
+
* Value of table filter.
|
|
531
471
|
*/
|
|
532
472
|
tableFilterValue: {
|
|
533
473
|
type: StringConstructor;
|
|
@@ -535,9 +475,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
535
475
|
required: false;
|
|
536
476
|
};
|
|
537
477
|
/**
|
|
538
|
-
* Properties to
|
|
539
|
-
*
|
|
540
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablehead
|
|
478
|
+
* Properties to [CTableHead](https://coreui.io/vue/docs/components/table/#ctablehead) component.
|
|
541
479
|
*/
|
|
542
480
|
tableHeadProps: {
|
|
543
481
|
type: ObjectConstructor;
|
|
@@ -545,9 +483,7 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
545
483
|
required: false;
|
|
546
484
|
};
|
|
547
485
|
/**
|
|
548
|
-
* Properties to
|
|
549
|
-
*
|
|
550
|
-
* @link https://coreui.io/vue/docs/4.0/components/table/#ctable
|
|
486
|
+
* Properties to [CTable](https://coreui.io/vue/docs/components/table/#ctable) component.
|
|
551
487
|
*/
|
|
552
488
|
tableProps: {
|
|
553
489
|
type: ObjectConstructor;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* @ignore
|
|
3
3
|
*/
|
|
4
4
|
export interface Column {
|
|
5
|
-
|
|
5
|
+
filter?: boolean;
|
|
6
6
|
key: string;
|
|
7
7
|
label?: string;
|
|
8
|
-
|
|
8
|
+
sorter?: boolean;
|
|
9
9
|
_style?: any;
|
|
10
10
|
_props?: any;
|
|
11
11
|
}
|
|
@@ -40,8 +40,8 @@ export interface SorterValue {
|
|
|
40
40
|
state?: number | string;
|
|
41
41
|
}
|
|
42
42
|
export interface TableFilter {
|
|
43
|
-
lazy?: boolean;
|
|
44
43
|
external?: boolean;
|
|
44
|
+
lazy?: boolean;
|
|
45
45
|
label?: string;
|
|
46
46
|
placeholder?: string;
|
|
47
47
|
}
|