@coreui/vue-pro 4.1.0 → 4.1.4
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/accordion/CAccordion.d.ts +18 -10
- package/dist/components/accordion/CAccordionBody.d.ts +1 -1
- package/dist/components/accordion/CAccordionButton.d.ts +1 -1
- package/dist/components/accordion/CAccordionCollapse.d.ts +9 -5
- package/dist/components/accordion/CAccordionHeader.d.ts +1 -1
- package/dist/components/accordion/CAccordionItem.d.ts +10 -5
- package/dist/components/alert/CAlert.d.ts +38 -12
- package/dist/components/alert/CAlertHeading.d.ts +10 -5
- package/dist/components/alert/CAlertLink.d.ts +1 -1
- package/dist/components/avatar/CAvatar.d.ts +59 -15
- package/dist/components/backdrop/CBackdrop.d.ts +10 -5
- package/dist/components/badge/CBadge.d.ts +59 -16
- package/dist/components/breadcrumb/CBreadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/CBreadcrumbItem.d.ts +17 -8
- package/dist/components/button/CButton.d.ts +73 -20
- package/dist/components/button-group/CButtonGroup.d.ts +20 -8
- package/dist/components/button-group/CButtonToolbar.d.ts +1 -1
- package/dist/components/callout/CCallout.d.ts +11 -5
- package/dist/components/card/CCard.d.ts +20 -7
- package/dist/components/card/CCardBody.d.ts +1 -1
- package/dist/components/card/CCardFooter.d.ts +1 -1
- package/dist/components/card/CCardGroup.d.ts +1 -1
- package/dist/components/card/CCardHeader.d.ts +10 -5
- package/dist/components/card/CCardImage.d.ts +21 -8
- package/dist/components/card/CCardImageOverlay.d.ts +1 -1
- package/dist/components/card/CCardLink.d.ts +10 -5
- package/dist/components/card/CCardSubtitle.d.ts +10 -5
- package/dist/components/card/CCardText.d.ts +10 -5
- package/dist/components/card/CCardTitle.d.ts +10 -5
- package/dist/components/carousel/CCarousel.d.ts +58 -19
- package/dist/components/carousel/CCarouselCaption.d.ts +1 -1
- package/dist/components/carousel/CCarouselItem.d.ts +25 -9
- package/dist/components/close-button/CCloseButton.d.ts +16 -7
- package/dist/components/collapse/CCollapse.d.ts +16 -7
- package/dist/components/dropdown/CDropdown.d.ts +82 -22
- package/dist/components/dropdown/CDropdownDivider.d.ts +1 -1
- package/dist/components/dropdown/CDropdownHeader.d.ts +10 -5
- package/dist/components/dropdown/CDropdownItem.d.ts +32 -12
- package/dist/components/dropdown/CDropdownMenu.d.ts +12 -5
- package/dist/components/dropdown/CDropdownToggle.d.ts +78 -22
- package/dist/components/element-cover/CElementCover.d.ts +22 -7
- package/dist/components/footer/CFooter.d.ts +13 -5
- package/dist/components/form/CForm.d.ts +9 -5
- package/dist/components/form/CFormCheck.d.ts +66 -23
- package/dist/components/form/CFormControl.d.ts +61 -20
- package/dist/components/form/CFormFeedback.d.ts +22 -11
- package/dist/components/form/CFormFloating.d.ts +1 -1
- package/dist/components/form/CFormInput.d.ts +66 -20
- package/dist/components/form/CFormLabel.d.ts +10 -5
- package/dist/components/form/CFormRange.d.ts +59 -18
- package/dist/components/form/CFormSelect.d.ts +66 -18
- package/dist/components/form/CFormSwitch.d.ts +61 -18
- package/dist/components/form/CFormText.d.ts +10 -5
- package/dist/components/form/CFormTextarea.d.ts +45 -16
- package/dist/components/form/CInputGroup.d.ts +13 -5
- package/dist/components/form/CInputGroupText.d.ts +10 -5
- package/dist/components/grid/CCol.d.ts +62 -15
- package/dist/components/grid/CContainer.d.ts +44 -15
- package/dist/components/grid/CRow.d.ts +57 -15
- package/dist/components/header/CHeader.d.ts +24 -7
- package/dist/components/header/CHeaderBrand.d.ts +10 -5
- package/dist/components/header/CHeaderDivider.d.ts +1 -1
- package/dist/components/header/CHeaderNav.d.ts +10 -5
- package/dist/components/header/CHeaderText.d.ts +1 -1
- package/dist/components/header/CHeaderToggler.d.ts +1 -1
- package/dist/components/image/CImage.d.ts +34 -12
- package/dist/components/link/CLink.d.ts +32 -12
- package/dist/components/list-group/CListGroup.d.ts +28 -10
- package/dist/components/list-group/CListGroupItem.d.ts +33 -12
- package/dist/components/modal/CModal.d.ts +96 -22
- package/dist/components/modal/CModalBody.d.ts +1 -1
- package/dist/components/modal/CModalFooter.d.ts +1 -1
- package/dist/components/modal/CModalHeader.d.ts +10 -5
- package/dist/components/modal/CModalTitle.d.ts +10 -5
- package/dist/components/multi-select/CMultiSelect.d.ts +131 -30
- package/dist/components/multi-select/CMultiSelectNativeSelect.d.ts +26 -11
- package/dist/components/multi-select/CMultiSelectOptions.d.ts +40 -11
- package/dist/components/multi-select/CMultiSelectSelection.d.ts +47 -13
- package/dist/components/nav/CNav.d.ts +32 -10
- package/dist/components/nav/CNavGroup.d.ts +10 -7
- package/dist/components/nav/CNavGroupItems.d.ts +1 -1
- package/dist/components/nav/CNavLink.d.ts +32 -12
- package/dist/components/nav/CNavTitle.d.ts +1 -1
- package/dist/components/navbar/CNavbar.d.ts +63 -16
- package/dist/components/navbar/CNavbarBrand.d.ts +19 -8
- package/dist/components/navbar/CNavbarNav.d.ts +10 -5
- package/dist/components/navbar/CNavbarText.d.ts +1 -1
- package/dist/components/navbar/CNavbarToggler.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvas.d.ts +44 -14
- package/dist/components/offcanvas/COffcanvasBody.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvasHeader.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvasTitle.d.ts +10 -5
- package/dist/components/pagination/CPagination.d.ts +24 -7
- package/dist/components/pagination/CPaginationItem.d.ts +32 -12
- package/dist/components/pagination/CSmartPagination.d.ts +120 -28
- package/dist/components/placeholder/CPlaceholder.d.ts +89 -24
- package/dist/components/popover/CPopover.d.ts +50 -16
- package/dist/components/progress/CProgressBar.d.ts +37 -12
- package/dist/components/sidebar/CSidebar.d.ts +59 -20
- package/dist/components/sidebar/CSidebarBrand.d.ts +1 -1
- package/dist/components/sidebar/CSidebarFooter.d.ts +1 -1
- package/dist/components/sidebar/CSidebarHeader.d.ts +1 -1
- package/dist/components/sidebar/CSidebarNav.d.ts +1 -1
- package/dist/components/sidebar/CSidebarToggler.d.ts +1 -1
- package/dist/components/smart-table/CSmartTable.d.ts +280 -68
- package/dist/components/smart-table/CSmartTableBody.d.ts +31 -25
- package/dist/components/smart-table/CSmartTableCleaner.d.ts +7 -5
- package/dist/components/smart-table/CSmartTableFilter.d.ts +17 -9
- package/dist/components/smart-table/CSmartTableHead.d.ts +43 -24
- package/dist/components/smart-table/CSmartTableItemsPerPageSelector.d.ts +17 -10
- package/dist/components/spinner/CSpinner.d.ts +51 -14
- package/dist/components/table/CTable.d.ts +88 -24
- package/dist/components/table/CTableBody.d.ts +11 -5
- package/dist/components/table/CTableCaption.d.ts +2 -4
- package/dist/components/table/CTableDataCell.d.ts +29 -10
- package/dist/components/table/CTableFoot.d.ts +11 -5
- package/dist/components/table/CTableHead.d.ts +11 -5
- package/dist/components/table/CTableHeaderCell.d.ts +11 -5
- package/dist/components/table/CTableRow.d.ts +29 -10
- package/dist/components/tabs/CTabContent.d.ts +1 -1
- package/dist/components/tabs/CTabPane.d.ts +10 -5
- package/dist/components/toast/CToast.d.ts +59 -18
- package/dist/components/toast/CToastBody.d.ts +1 -1
- package/dist/components/toast/CToastHeader.d.ts +9 -5
- package/dist/components/toast/CToaster.d.ts +13 -5
- package/dist/components/tooltip/CTooltip.d.ts +42 -14
- package/dist/components/widgets/CWidgetStatsA.d.ts +23 -10
- package/dist/components/widgets/CWidgetStatsB.d.ts +45 -17
- package/dist/components/widgets/CWidgetStatsC.d.ts +37 -15
- package/dist/components/widgets/CWidgetStatsD.d.ts +19 -8
- package/dist/components/widgets/CWidgetStatsE.d.ts +18 -8
- package/dist/components/widgets/CWidgetStatsF.d.ts +42 -14
- package/dist/index.es.js +118 -71
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +117 -70
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/components/form/CFormSelect.ts +19 -6
- package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +8 -2
- package/src/components/form/__tests__/__snapshots__/CFormSelect.spec.ts.snap +1 -1
- package/src/components/modal/CModal.ts +68 -40
- package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +1 -2
- package/src/components/offcanvas/COffcanvas.ts +11 -4
- package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +2 -8
- package/src/components/smart-table/CSmartTable.ts +25 -20
- package/src/components/smart-table/CSmartTableBody.ts +0 -5
- package/src/components/smart-table/CSmartTableHead.ts +14 -5
|
@@ -39,7 +39,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
39
39
|
*/
|
|
40
40
|
columnFilter: {
|
|
41
41
|
type: PropType<boolean | ColumnFilter>;
|
|
42
|
-
default: undefined;
|
|
43
42
|
required: false;
|
|
44
43
|
};
|
|
45
44
|
/**
|
|
@@ -67,7 +66,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
67
66
|
*/
|
|
68
67
|
columns: {
|
|
69
68
|
type: PropType<string[] | Column[]>;
|
|
70
|
-
default: () => never[];
|
|
71
69
|
required: false;
|
|
72
70
|
};
|
|
73
71
|
/**
|
|
@@ -116,7 +114,6 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
116
114
|
*/
|
|
117
115
|
itemsPerPage: {
|
|
118
116
|
type: NumberConstructor;
|
|
119
|
-
default: number;
|
|
120
117
|
required: false;
|
|
121
118
|
};
|
|
122
119
|
/**
|
|
@@ -188,7 +185,8 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
188
185
|
*/
|
|
189
186
|
selectable: BooleanConstructor;
|
|
190
187
|
/**
|
|
191
|
-
* State of the sorter. Name key is column name, direction can be 'asc' or 'desc'. Set .sync modifier to track changes.
|
|
188
|
+
* State of the sorter. Name key is column name, direction can be 'asc' or 'desc'. Set .sync modifier to track changes. eg.:
|
|
189
|
+
* { column: 'status', state: 'asc' }
|
|
192
190
|
*
|
|
193
191
|
* @type SorterValue
|
|
194
192
|
*/
|
|
@@ -280,66 +278,283 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
280
278
|
};
|
|
281
279
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
282
280
|
[key: string]: any;
|
|
283
|
-
}>, 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<{
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
281
|
+
}>, 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
|
+
/**
|
|
283
|
+
* Sets active page. If 'pagination' prop is enabled, activePage is set only initially.
|
|
284
|
+
*
|
|
285
|
+
* @default 1
|
|
286
|
+
*/
|
|
287
|
+
activePage: {
|
|
288
|
+
type: NumberConstructor;
|
|
289
|
+
default: number;
|
|
290
|
+
required: false;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* 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 `cleaner` slot.
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
cleaner: {
|
|
298
|
+
type: BooleanConstructor;
|
|
299
|
+
required: false;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Style table items as clickable.
|
|
303
|
+
*
|
|
304
|
+
* @type boolean
|
|
305
|
+
*/
|
|
306
|
+
clickableRows: {
|
|
307
|
+
type: BooleanConstructor;
|
|
308
|
+
required: false;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* When set, displays additional filter row between table header and items, allowing filtering by specific column.
|
|
312
|
+
* Column filter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
313
|
+
* - external (Boolean) - Disables automatic filtering inside component.
|
|
314
|
+
* - lazy (Boolean) - Set to true to trigger filter updates only on change event.
|
|
315
|
+
*
|
|
316
|
+
* @type boolean | ColumnFilter
|
|
317
|
+
*/
|
|
318
|
+
columnFilter: {
|
|
319
|
+
type: PropType<boolean | ColumnFilter>;
|
|
320
|
+
required: false;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Value of table filter. To set pass object where keys are column names and values are filter strings e.g.:
|
|
324
|
+
* { user: 'John', age: 12 }
|
|
325
|
+
* You can track state of this prop by setting .sync modifier.
|
|
326
|
+
*/
|
|
327
|
+
columnFilterValue: {
|
|
328
|
+
type: PropType<ColumnFilterValue>;
|
|
329
|
+
default: undefined;
|
|
330
|
+
required: false;
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
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. '_classes')
|
|
334
|
+
*
|
|
335
|
+
* In columns prop each array item represents one column. Item might be specified in two ways:
|
|
336
|
+
* String: each item define column name equal to item value.
|
|
337
|
+
* Object: item is object with following keys available as column configuration:
|
|
338
|
+
* - key (required)(String) - define column name equal to item key.
|
|
339
|
+
* - 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
|
+
* - sorter (Boolean) - disables sorting of the column when set to false
|
|
343
|
+
* - filter (Boolean) - removes filter from column when set to false.
|
|
344
|
+
*/
|
|
345
|
+
columns: {
|
|
346
|
+
type: PropType<string[] | Column[]>;
|
|
347
|
+
required: false;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Enables table sorting by column value. Sorting will be performed corectly only if values in column are of one type: string (case insensitive) or number.
|
|
351
|
+
*
|
|
352
|
+
* Sorter can be customized, by passing prop as object with additional options as keys. Available options:
|
|
353
|
+
* - external (Boolean) - Disables automatic sorting inside component.
|
|
354
|
+
* - 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
|
+
*/
|
|
358
|
+
columnSorter: {
|
|
359
|
+
type: PropType<boolean | Sorter>;
|
|
360
|
+
default: undefined;
|
|
361
|
+
required: false;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Displays table footer, which mirrors table header. (without column filter).
|
|
365
|
+
*/
|
|
366
|
+
footer: {
|
|
367
|
+
type: BooleanConstructor;
|
|
368
|
+
required: false;
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Set to false to remove table header.
|
|
372
|
+
*
|
|
373
|
+
* @default true
|
|
374
|
+
*/
|
|
375
|
+
header: {
|
|
376
|
+
type: BooleanConstructor;
|
|
377
|
+
required: false;
|
|
378
|
+
default: boolean;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Array of objects, where each object represents one item - row in table. Additionally, you can add style classes to each row by passing them by '_classes' key and to single cell by '_cellClasses'.
|
|
382
|
+
*/
|
|
383
|
+
items: {
|
|
384
|
+
type: PropType<Item[]>;
|
|
385
|
+
default: () => never[];
|
|
386
|
+
required: false;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Number of items per site, when pagination is enabled.
|
|
390
|
+
*
|
|
391
|
+
* @default 10
|
|
392
|
+
*/
|
|
393
|
+
itemsPerPage: {
|
|
394
|
+
type: NumberConstructor;
|
|
395
|
+
required: false;
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* Label for items per page selector.
|
|
399
|
+
*
|
|
400
|
+
* @default 'Items per page:'
|
|
401
|
+
*/
|
|
402
|
+
itemsPerPageLabel: {
|
|
403
|
+
type: StringConstructor;
|
|
404
|
+
required: false;
|
|
405
|
+
default: string;
|
|
406
|
+
};
|
|
407
|
+
/**
|
|
408
|
+
* Items per page selector options.
|
|
409
|
+
*
|
|
410
|
+
* @default [5, 10, 20, 50]
|
|
411
|
+
*/
|
|
412
|
+
itemsPerPageOptions: {
|
|
413
|
+
type: PropType<number[]>;
|
|
414
|
+
default: () => number[];
|
|
415
|
+
required: false;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Adds select element over table, which is used for control items per page in pagination. If you want to customize this element, pass object with optional values:
|
|
419
|
+
* - label (String) - replaces default label text
|
|
420
|
+
* - values (Array) - custom array of pagination values
|
|
421
|
+
* - external (Boolean) - disables automatic 'itemsPerPage' change (use to change pages externaly by 'pagination-change' event).
|
|
422
|
+
*/
|
|
423
|
+
itemsPerPageSelect: {
|
|
424
|
+
type: PropType<boolean | ItemsPerPageSelect>;
|
|
425
|
+
default: undefined;
|
|
426
|
+
required: false;
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* When set, table will have loading style: loading spinner and reduced opacity. When 'small' prop is enabled spinner will be also smaller.
|
|
430
|
+
*/
|
|
431
|
+
loading: {
|
|
432
|
+
type: BooleanConstructor;
|
|
433
|
+
required: false;
|
|
434
|
+
};
|
|
435
|
+
/**
|
|
436
|
+
* ReactNode or string for passing custom noItemsLabel texts.
|
|
437
|
+
* @default 'No items found'
|
|
438
|
+
*/
|
|
439
|
+
noItemsLabel: {
|
|
440
|
+
type: StringConstructor;
|
|
441
|
+
default: string;
|
|
442
|
+
required: false;
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* Enables default pagination. Set to true for default setup or pass an object with additional CPagination props. Default pagination will always have the computed number of pages that cannot be changed. The number of pages is generated based on the number of passed items and 'itemsPerPage' prop. If this restriction is an obstacle, you can make external CPagination instead.
|
|
446
|
+
*/
|
|
447
|
+
pagination: {
|
|
448
|
+
type: BooleanConstructor;
|
|
449
|
+
required: false;
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Properties to `CSmartPagination` component.
|
|
453
|
+
*
|
|
454
|
+
* @link https://coreui.io/vue/docs/4.0/components/smart-pagination#csmartpagination
|
|
455
|
+
*/
|
|
456
|
+
paginationProps: {
|
|
457
|
+
type: ObjectConstructor;
|
|
458
|
+
default: undefined;
|
|
459
|
+
required: false;
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Add checkboxes to make table rows selectable.
|
|
463
|
+
*/
|
|
464
|
+
selectable: BooleanConstructor;
|
|
465
|
+
/**
|
|
466
|
+
* State of the sorter. Name key is column name, direction can be 'asc' or 'desc'. Set .sync modifier to track changes. eg.:
|
|
467
|
+
* { column: 'status', state: 'asc' }
|
|
468
|
+
*
|
|
469
|
+
* @type SorterValue
|
|
470
|
+
*/
|
|
471
|
+
sorterValue: {
|
|
472
|
+
type: PropType<SorterValue>;
|
|
473
|
+
default: undefined;
|
|
474
|
+
required: false;
|
|
475
|
+
};
|
|
476
|
+
/**
|
|
477
|
+
* Properties to `CTableBody` component.
|
|
478
|
+
*
|
|
479
|
+
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablebody
|
|
480
|
+
*/
|
|
481
|
+
tableBodyProps: {
|
|
482
|
+
type: ObjectConstructor;
|
|
483
|
+
default: undefined;
|
|
484
|
+
required: false;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Properties to `CTableFoot` component.
|
|
488
|
+
*
|
|
489
|
+
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablefoot
|
|
490
|
+
*/
|
|
491
|
+
tableFootProps: {
|
|
492
|
+
type: ObjectConstructor;
|
|
493
|
+
default: undefined;
|
|
494
|
+
required: false;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* When set, displays table filter above table, allowing filtering by specific column.
|
|
498
|
+
*
|
|
499
|
+
* 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
|
+
* - external (Boolean) - Disables automatic filtering inside component.
|
|
503
|
+
* - lazy (Boolean) - Set to true to trigger filter updates only on change event.
|
|
504
|
+
*/
|
|
505
|
+
tableFilter: {
|
|
506
|
+
type: PropType<boolean | TableFilter>;
|
|
507
|
+
required: false;
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* The element represents a caption for a component.
|
|
511
|
+
*/
|
|
512
|
+
tableFilterLabel: {
|
|
513
|
+
type: StringConstructor;
|
|
514
|
+
default: string;
|
|
515
|
+
required: false;
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* Specifies a short hint that is visible in the search input.
|
|
519
|
+
*
|
|
520
|
+
* @default 'type string...'
|
|
521
|
+
*/
|
|
522
|
+
tableFilterPlaceholder: {
|
|
523
|
+
type: StringConstructor;
|
|
524
|
+
default: string;
|
|
525
|
+
required: false;
|
|
526
|
+
};
|
|
527
|
+
/**
|
|
528
|
+
* Value of table filter. Set .sync modifier to track changes.
|
|
529
|
+
*
|
|
530
|
+
* @default 'Filter:'
|
|
531
|
+
*/
|
|
532
|
+
tableFilterValue: {
|
|
533
|
+
type: StringConstructor;
|
|
534
|
+
default: undefined;
|
|
535
|
+
required: false;
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Properties to `CTableHead` component.
|
|
539
|
+
*
|
|
540
|
+
* @link https://coreui.io/vue/docs/4.0/components/table/#ctablehead
|
|
541
|
+
*/
|
|
542
|
+
tableHeadProps: {
|
|
543
|
+
type: ObjectConstructor;
|
|
544
|
+
default: undefined;
|
|
545
|
+
required: false;
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* Properties to `CTable` component.
|
|
549
|
+
*
|
|
550
|
+
* @link https://coreui.io/vue/docs/4.0/components/table/#ctable
|
|
551
|
+
*/
|
|
552
|
+
tableProps: {
|
|
553
|
+
type: ObjectConstructor;
|
|
554
|
+
default: undefined;
|
|
555
|
+
required: false;
|
|
556
|
+
};
|
|
557
|
+
}>> & {
|
|
343
558
|
onActivePageChange?: ((...args: any[]) => any) | undefined;
|
|
344
559
|
onRowClick?: ((...args: any[]) => any) | undefined;
|
|
345
560
|
onColumnFilterChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -357,14 +572,11 @@ declare const CSmartTable: import("vue").DefineComponent<{
|
|
|
357
572
|
pagination: boolean;
|
|
358
573
|
activePage: number;
|
|
359
574
|
clickableRows: boolean;
|
|
360
|
-
columns: string[] | Column[];
|
|
361
575
|
selectable: boolean;
|
|
362
|
-
|
|
576
|
+
columnFilterValue: ColumnFilterValue;
|
|
363
577
|
columnSorter: boolean | Sorter;
|
|
364
|
-
itemsPerPage: number;
|
|
365
578
|
itemsPerPageLabel: string;
|
|
366
579
|
itemsPerPageOptions: number[];
|
|
367
|
-
columnFilterValue: ColumnFilterValue;
|
|
368
580
|
itemsPerPageSelect: boolean | ItemsPerPageSelect;
|
|
369
581
|
noItemsLabel: string;
|
|
370
582
|
paginationProps: Record<string, any>;
|
|
@@ -20,9 +20,37 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
20
20
|
default: undefined;
|
|
21
21
|
require: boolean;
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
type:
|
|
23
|
+
rawColumnNames: {
|
|
24
|
+
type: PropType<string[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
require: boolean;
|
|
27
|
+
};
|
|
28
|
+
scopedSlots: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
require: boolean;
|
|
32
|
+
};
|
|
33
|
+
selectable: BooleanConstructor;
|
|
34
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("rowChecked" | "rowClick")[], "rowChecked" | "rowClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
clickableRows: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
require: boolean;
|
|
40
|
+
};
|
|
41
|
+
currentItems: {
|
|
42
|
+
type: PropType<Item[]>;
|
|
25
43
|
default: () => never[];
|
|
44
|
+
required: false;
|
|
45
|
+
};
|
|
46
|
+
firstItemOnActivePageIndex: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
require: boolean;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
noItemLabel: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: undefined;
|
|
26
54
|
require: boolean;
|
|
27
55
|
};
|
|
28
56
|
rawColumnNames: {
|
|
@@ -36,28 +64,7 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
36
64
|
require: boolean;
|
|
37
65
|
};
|
|
38
66
|
selectable: BooleanConstructor;
|
|
39
|
-
}
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("rowChecked" | "rowClick")[], "rowChecked" | "rowClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
42
|
-
clickableRows?: unknown;
|
|
43
|
-
currentItems?: unknown;
|
|
44
|
-
firstItemOnActivePageIndex?: unknown;
|
|
45
|
-
noItemLabel?: unknown;
|
|
46
|
-
columns?: unknown;
|
|
47
|
-
rawColumnNames?: unknown;
|
|
48
|
-
scopedSlots?: unknown;
|
|
49
|
-
selectable?: unknown;
|
|
50
|
-
} & {
|
|
51
|
-
clickableRows: boolean;
|
|
52
|
-
currentItems: Item[];
|
|
53
|
-
firstItemOnActivePageIndex: number;
|
|
54
|
-
columns: unknown[];
|
|
55
|
-
rawColumnNames: string[];
|
|
56
|
-
selectable: boolean;
|
|
57
|
-
} & {
|
|
58
|
-
noItemLabel?: string | undefined;
|
|
59
|
-
scopedSlots?: Record<string, any> | undefined;
|
|
60
|
-
}> & {
|
|
67
|
+
}>> & {
|
|
61
68
|
onRowChecked?: ((...args: any[]) => any) | undefined;
|
|
62
69
|
onRowClick?: ((...args: any[]) => any) | undefined;
|
|
63
70
|
}, {
|
|
@@ -65,7 +72,6 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
65
72
|
currentItems: Item[];
|
|
66
73
|
firstItemOnActivePageIndex: number;
|
|
67
74
|
noItemLabel: string;
|
|
68
|
-
columns: unknown[];
|
|
69
75
|
rawColumnNames: string[];
|
|
70
76
|
scopedSlots: Record<string, any>;
|
|
71
77
|
selectable: boolean;
|
|
@@ -6,11 +6,13 @@ declare const CSmartTableCleaner: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
8
|
[key: string]: any;
|
|
9
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "tableCleanerClick"[], "tableCleanerClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
10
|
-
isFiltered
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "tableCleanerClick"[], "tableCleanerClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
isFiltered: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
}>> & {
|
|
14
16
|
onTableCleanerClick?: ((...args: any[]) => any) | undefined;
|
|
15
17
|
}, {
|
|
16
18
|
isFiltered: string;
|
|
@@ -16,15 +16,23 @@ declare const CSmartTableFilter: import("vue").DefineComponent<{
|
|
|
16
16
|
};
|
|
17
17
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
18
|
[key: string]: any;
|
|
19
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("filterInput" | "filterChange")[], "filterInput" | "filterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
20
|
-
filterLabel
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("filterInput" | "filterChange")[], "filterInput" | "filterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
filterLabel: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
require: boolean;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
filterPlaceholder: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
require: boolean;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
value: {
|
|
31
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
32
|
+
require: boolean;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>> & {
|
|
28
36
|
onFilterInput?: ((...args: any[]) => any) | undefined;
|
|
29
37
|
onFilterChange?: ((...args: any[]) => any) | undefined;
|
|
30
38
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { Column, ColumnFilter, Sorter, SorterValue } from './CSmartTableInterface';
|
|
2
|
+
import { Column, ColumnFilter, ColumnFilterValue, Sorter, SorterValue } from './CSmartTableInterface';
|
|
3
3
|
declare const CSmartTableHead: import("vue").DefineComponent<{
|
|
4
4
|
clearSorterAndFilter: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -8,9 +8,12 @@ declare const CSmartTableHead: import("vue").DefineComponent<{
|
|
|
8
8
|
};
|
|
9
9
|
columnFilter: {
|
|
10
10
|
type: PropType<boolean | ColumnFilter>;
|
|
11
|
-
default: undefined;
|
|
12
11
|
require: boolean;
|
|
13
12
|
};
|
|
13
|
+
columnFilterValue: {
|
|
14
|
+
type: PropType<ColumnFilterValue>;
|
|
15
|
+
required: false;
|
|
16
|
+
};
|
|
14
17
|
columnSorter: {
|
|
15
18
|
type: PropType<boolean | Sorter>;
|
|
16
19
|
default: undefined;
|
|
@@ -35,37 +38,53 @@ declare const CSmartTableHead: import("vue").DefineComponent<{
|
|
|
35
38
|
};
|
|
36
39
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
40
|
[key: string]: any;
|
|
38
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("filterInput" | "filterChange" | "selectAllChecked" | "sortClick")[], "filterInput" | "filterChange" | "selectAllChecked" | "sortClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
39
|
-
clearSorterAndFilter
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("filterInput" | "filterChange" | "selectAllChecked" | "sortClick")[], "filterInput" | "filterChange" | "selectAllChecked" | "sortClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
clearSorterAndFilter: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
require: boolean;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
columnFilter: {
|
|
48
|
+
type: PropType<boolean | ColumnFilter>;
|
|
49
|
+
require: boolean;
|
|
50
|
+
};
|
|
51
|
+
columnFilterValue: {
|
|
52
|
+
type: PropType<ColumnFilterValue>;
|
|
53
|
+
required: false;
|
|
54
|
+
};
|
|
55
|
+
columnSorter: {
|
|
56
|
+
type: PropType<boolean | Sorter>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
require: boolean;
|
|
59
|
+
};
|
|
60
|
+
component: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
require: boolean;
|
|
64
|
+
};
|
|
65
|
+
columns: {
|
|
66
|
+
type: PropType<string[] | Column[]>;
|
|
67
|
+
default: () => never[];
|
|
68
|
+
required: false;
|
|
69
|
+
};
|
|
70
|
+
selectable: BooleanConstructor;
|
|
71
|
+
selectAll: (StringConstructor | BooleanConstructor)[];
|
|
72
|
+
sorterState: {
|
|
73
|
+
type: PropType<SorterValue>;
|
|
74
|
+
default: undefined;
|
|
75
|
+
require: boolean;
|
|
76
|
+
};
|
|
77
|
+
}>> & {
|
|
58
78
|
onFilterInput?: ((...args: any[]) => any) | undefined;
|
|
59
79
|
onFilterChange?: ((...args: any[]) => any) | undefined;
|
|
60
80
|
onSelectAllChecked?: ((...args: any[]) => any) | undefined;
|
|
61
81
|
onSortClick?: ((...args: any[]) => any) | undefined;
|
|
62
82
|
}, {
|
|
63
83
|
component: string;
|
|
64
|
-
columns: string[] | Column[];
|
|
65
84
|
selectable: boolean;
|
|
66
85
|
clearSorterAndFilter: string;
|
|
67
|
-
columnFilter: boolean | ColumnFilter;
|
|
68
86
|
columnSorter: boolean | Sorter;
|
|
87
|
+
columns: string[] | Column[];
|
|
69
88
|
sorterState: SorterValue;
|
|
70
89
|
}>;
|
|
71
90
|
export { CSmartTableHead };
|
|
@@ -17,16 +17,23 @@ declare const CSmartTableItemsPerPageSelector: import("vue").DefineComponent<{
|
|
|
17
17
|
};
|
|
18
18
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
19
|
[key: string]: any;
|
|
20
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeItemsPerPage"[], "changeItemsPerPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
21
|
-
itemsPerPage
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeItemsPerPage"[], "changeItemsPerPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
itemsPerPage: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
require: boolean;
|
|
25
|
+
};
|
|
26
|
+
itemsPerPageLabel: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
require: boolean;
|
|
30
|
+
};
|
|
31
|
+
itemsPerPageOptions: {
|
|
32
|
+
type: PropType<number[]>;
|
|
33
|
+
default: () => never[];
|
|
34
|
+
require: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
30
37
|
onChangeItemsPerPage?: ((...args: any[]) => any) | undefined;
|
|
31
38
|
}, {
|
|
32
39
|
itemsPerPage: number;
|