cps-ui-kit 0.140.0 → 0.141.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 (94) hide show
  1. package/esm2020/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +137 -4
  2. package/esm2020/lib/components/cps-button/cps-button.component.mjs +55 -2
  3. package/esm2020/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +63 -2
  4. package/esm2020/lib/components/cps-checkbox/cps-checkbox.component.mjs +50 -1
  5. package/esm2020/lib/components/cps-chip/cps-chip.component.mjs +34 -1
  6. package/esm2020/lib/components/cps-datepicker/cps-datepicker.component.mjs +78 -1
  7. package/esm2020/lib/components/cps-expansion-panel/cps-expansion-panel.component.mjs +51 -1
  8. package/esm2020/lib/components/cps-icon/cps-icon.component.mjs +17 -1
  9. package/esm2020/lib/components/cps-info-circle/cps-info-circle.component.mjs +29 -1
  10. package/esm2020/lib/components/cps-input/cps-input.component.mjs +131 -1
  11. package/esm2020/lib/components/cps-loader/cps-loader.component.mjs +21 -1
  12. package/esm2020/lib/components/cps-menu/cps-menu.component.mjs +58 -2
  13. package/esm2020/lib/components/cps-paginator/cps-paginator.component.mjs +38 -1
  14. package/esm2020/lib/components/cps-paginator/pipes/cps-paginate.pipe.mjs +5 -1
  15. package/esm2020/lib/components/cps-progress-circular/cps-progress-circular.component.mjs +17 -1
  16. package/esm2020/lib/components/cps-progress-linear/cps-progress-linear.component.mjs +29 -1
  17. package/esm2020/lib/components/cps-radio-group/cps-radio/cps-radio.component.mjs +5 -1
  18. package/esm2020/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.mjs +18 -1
  19. package/esm2020/lib/components/cps-radio-group/cps-radio-group.component.mjs +50 -1
  20. package/esm2020/lib/components/cps-select/cps-select.component.mjs +137 -4
  21. package/esm2020/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.mjs +21 -1
  22. package/esm2020/lib/components/cps-tab-group/cps-tab/cps-tab.component.mjs +41 -1
  23. package/esm2020/lib/components/cps-tab-group/cps-tab-group.component.mjs +32 -2
  24. package/esm2020/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.mjs +67 -3
  25. package/esm2020/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.mjs +31 -3
  26. package/esm2020/lib/components/cps-table/components/internal/table-row-menu/table-row-menu.component.mjs +51 -0
  27. package/esm2020/lib/components/cps-table/cps-table.component.mjs +312 -8
  28. package/esm2020/lib/components/cps-table/directives/cps-table-column-filter.directive.mjs +67 -3
  29. package/esm2020/lib/components/cps-table/directives/cps-table-column-sortable.directive.mjs +9 -1
  30. package/esm2020/lib/components/cps-table/directives/cps-table-header-selectable.directive.mjs +5 -1
  31. package/esm2020/lib/components/cps-table/directives/cps-table-row-selectable.directive.mjs +5 -1
  32. package/esm2020/lib/components/cps-tag/cps-tag.component.mjs +35 -2
  33. package/esm2020/lib/components/cps-textarea/cps-textarea.component.mjs +101 -1
  34. package/esm2020/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +17 -1
  35. package/esm2020/lib/components/cps-tree-select/cps-tree-select.component.mjs +13 -1
  36. package/esm2020/lib/components/cps-tree-table/cps-tree-table.component.mjs +314 -7
  37. package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.mjs +63 -3
  38. package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.mjs +9 -1
  39. package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.mjs +5 -1
  40. package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.mjs +5 -1
  41. package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.mjs +5 -1
  42. package/esm2020/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.mjs +118 -1
  43. package/esm2020/lib/directives/cps-tooltip.directive.mjs +37 -1
  44. package/esm2020/lib/services/cps-dialog/cps-dialog.service.mjs +2 -2
  45. package/fesm2015/cps-ui-kit.mjs +2312 -37
  46. package/fesm2015/cps-ui-kit.mjs.map +1 -1
  47. package/fesm2020/cps-ui-kit.mjs +2312 -37
  48. package/fesm2020/cps-ui-kit.mjs.map +1 -1
  49. package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +133 -0
  50. package/lib/components/cps-button/cps-button.component.d.ts +53 -0
  51. package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +61 -0
  52. package/lib/components/cps-checkbox/cps-checkbox.component.d.ts +49 -0
  53. package/lib/components/cps-chip/cps-chip.component.d.ts +33 -0
  54. package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +85 -0
  55. package/lib/components/cps-expansion-panel/cps-expansion-panel.component.d.ts +50 -0
  56. package/lib/components/cps-icon/cps-icon.component.d.ts +16 -0
  57. package/lib/components/cps-info-circle/cps-info-circle.component.d.ts +28 -0
  58. package/lib/components/cps-input/cps-input.component.d.ts +130 -0
  59. package/lib/components/cps-loader/cps-loader.component.d.ts +20 -0
  60. package/lib/components/cps-menu/cps-menu.component.d.ts +56 -0
  61. package/lib/components/cps-paginator/cps-paginator.component.d.ts +37 -0
  62. package/lib/components/cps-paginator/pipes/cps-paginate.pipe.d.ts +4 -0
  63. package/lib/components/cps-progress-circular/cps-progress-circular.component.d.ts +16 -0
  64. package/lib/components/cps-progress-linear/cps-progress-linear.component.d.ts +28 -0
  65. package/lib/components/cps-radio-group/cps-radio/cps-radio.component.d.ts +8 -0
  66. package/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.d.ts +21 -0
  67. package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +49 -0
  68. package/lib/components/cps-select/cps-select.component.d.ts +133 -0
  69. package/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.d.ts +21 -1
  70. package/lib/components/cps-tab-group/cps-tab/cps-tab.component.d.ts +40 -0
  71. package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +30 -0
  72. package/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.d.ts +68 -0
  73. package/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.d.ts +36 -0
  74. package/lib/components/cps-table/{table-row-menu → components/internal/table-row-menu}/table-row-menu.component.d.ts +15 -1
  75. package/lib/components/cps-table/cps-table.component.d.ts +304 -0
  76. package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +68 -0
  77. package/lib/components/cps-table/directives/cps-table-column-sortable.directive.d.ts +8 -0
  78. package/lib/components/cps-table/directives/cps-table-header-selectable.directive.d.ts +4 -0
  79. package/lib/components/cps-table/directives/cps-table-row-selectable.directive.d.ts +8 -0
  80. package/lib/components/cps-tag/cps-tag.component.d.ts +33 -0
  81. package/lib/components/cps-textarea/cps-textarea.component.d.ts +100 -0
  82. package/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.d.ts +16 -0
  83. package/lib/components/cps-tree-select/cps-tree-select.component.d.ts +12 -0
  84. package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +307 -0
  85. package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts +64 -0
  86. package/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.d.ts +8 -0
  87. package/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.d.ts +4 -0
  88. package/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.d.ts +8 -0
  89. package/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.d.ts +8 -0
  90. package/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.d.ts +117 -0
  91. package/lib/directives/cps-tooltip.directive.d.ts +40 -0
  92. package/lib/services/cps-dialog/cps-dialog.service.d.ts +1 -1
  93. package/package.json +1 -1
  94. package/esm2020/lib/components/cps-table/table-row-menu/table-row-menu.component.mjs +0 -37
@@ -10,12 +10,32 @@ export type CpsSidebarMenuItem = {
10
10
  disabled?: boolean;
11
11
  items?: CpsMenuItem[];
12
12
  };
13
+ /**
14
+ * CpsSidebarMenuComponent is a vertical menu panel component displayed at the edge of the screen.
15
+ * @group Components
16
+ */
13
17
  export declare class CpsSidebarMenuComponent implements OnInit {
14
18
  private _router;
19
+ /**
20
+ * An array of menu items.
21
+ * @group Props
22
+ */
15
23
  items: CpsSidebarMenuItem[];
24
+ /**
25
+ * Indicates current expansion state of the sidebar.
26
+ * @group Props
27
+ */
16
28
  isExpanded: boolean;
29
+ /**
30
+ * Whether the menu items should allow activating only exact links.
31
+ * @group Props
32
+ */
17
33
  exactRoutes: boolean;
18
- height: string;
34
+ /**
35
+ * Height of the sidebar, of type number denoting pixels or string.
36
+ * @group Props
37
+ */
38
+ height: number | string;
19
39
  allMenus?: QueryList<CpsMenuComponent>;
20
40
  constructor(_router: Router);
21
41
  ngOnInit(): void;
@@ -1,14 +1,54 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * CpsTabComponent is a tab within a tab-group.
5
+ * @group Components
6
+ */
3
7
  export declare class CpsTabComponent {
8
+ /**
9
+ * Label of the tab.
10
+ * @group Props
11
+ */
4
12
  label: string;
13
+ /**
14
+ * Icon before the label.
15
+ * @group Props
16
+ */
5
17
  icon: string;
18
+ /**
19
+ * Whether tab is disabled.
20
+ * @group Props
21
+ */
6
22
  disabled: boolean;
23
+ /**
24
+ * Whether to show the tooltip on tab hover.
25
+ * @group Props
26
+ */
7
27
  tooltipText: string;
28
+ /**
29
+ * Class for styling the tab tooltip.
30
+ * @group Props
31
+ */
8
32
  tooltipContentClass: string;
33
+ /**
34
+ * Max width of the tooltip, of type number denoting pixels or string.
35
+ * @group Props
36
+ */
9
37
  tooltipMaxWidth: number | string;
38
+ /**
39
+ * Whether the tooltip should have persistent info.
40
+ * @group Props
41
+ */
10
42
  tooltipPersistent: boolean;
43
+ /**
44
+ * Badge value to show on the tab after the label in a form of a circle.
45
+ * @group Props
46
+ */
11
47
  badgeValue: string;
48
+ /**
49
+ * Tooltip text to show on badge hover.
50
+ * @group Props
51
+ */
12
52
  badgeTooltip: string;
13
53
  content: TemplateRef<any>;
14
54
  active: boolean;
@@ -7,13 +7,43 @@ export interface TabChangeEvent {
7
7
  newTabIndex?: number;
8
8
  }
9
9
  export type CpsTabsAnimationType = 'slide' | 'fade';
10
+ /**
11
+ * CpsTabGroupComponent is a navigation component that displays items as tab headers.
12
+ * @group Components
13
+ */
10
14
  export declare class CpsTabGroupComponent implements OnInit, AfterContentInit, AfterViewInit, OnDestroy {
11
15
  private cdRef;
16
+ /**
17
+ * Index of the selected tab.
18
+ * @group Props
19
+ */
12
20
  selectedIndex: number;
21
+ /**
22
+ * Whether to apply an alternative 'subtabs' styling.
23
+ * @group Props
24
+ */
13
25
  isSubTabs: boolean;
26
+ /**
27
+ * Transition options of how content appears, it can be "slide" or "fade".
28
+ * @group Props
29
+ */
14
30
  animationType: CpsTabsAnimationType;
31
+ /**
32
+ * Background styling of tabs.
33
+ * @group Props
34
+ */
15
35
  tabsBackground: string;
36
+ /**
37
+ * Callback to invoke before tab change.
38
+ * @param {TabChangeEvent} any - tab changed.
39
+ * @group Emits
40
+ */
16
41
  beforeTabChanged: EventEmitter<TabChangeEvent>;
42
+ /**
43
+ * Callback to invoke after tab change.
44
+ * @param {TabChangeEvent} any - tab changed.
45
+ * @group Emits
46
+ */
17
47
  afterTabChanged: EventEmitter<TabChangeEvent>;
18
48
  tabsList: ElementRef;
19
49
  backBtn?: ElementRef;
@@ -6,25 +6,93 @@ import { CpsColumnFilterCategoryOption, CpsColumnFilterMatchMode, CpsColumnFilte
6
6
  import { CpsMenuComponent } from '../../../../cps-menu/cps-menu.component';
7
7
  import { TableColumnFilterConstraintComponent } from '../table-column-filter-constraint/table-column-filter-constraint.component';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * TableColumnFilterComponent is an internal filter component in table and treetable.
11
+ * @group Components
12
+ */
9
13
  export declare class TableColumnFilterComponent implements OnInit, OnDestroy {
10
14
  elementRef: ElementRef;
11
15
  dt: Table;
12
16
  tt: TreeTable;
17
+ /**
18
+ * Name of the column to be filtered.
19
+ * @group Props
20
+ */
13
21
  field: string | undefined;
22
+ /**
23
+ * Type of filter in table, it can be of type "number", "boolean", "text", "date" or "category".
24
+ * @group Props
25
+ */
14
26
  type: CpsColumnFilterType;
27
+ /**
28
+ * Whether the filter menu should be persistent.
29
+ * @group Props
30
+ */
15
31
  persistent: boolean;
32
+ /**
33
+ * Whether the filter should have clear button.
34
+ * @group Props
35
+ */
16
36
  showClearButton: boolean;
37
+ /**
38
+ * Whether the filter should have apply button.
39
+ * @group Props
40
+ */
17
41
  showApplyButton: boolean;
42
+ /**
43
+ * Whether the filter should have close button.
44
+ * @group Props
45
+ */
18
46
  showCloseButton: boolean;
47
+ /**
48
+ * Whether the filter should have match modes.
49
+ * @group Props
50
+ */
19
51
  showMatchModes: boolean;
52
+ /**
53
+ * Match modes for filter.
54
+ * @group Props
55
+ */
20
56
  matchModes: CpsColumnFilterMatchMode[];
57
+ /**
58
+ * Whether the filter should have operator.
59
+ * @group Props
60
+ */
21
61
  showOperator: boolean;
62
+ /**
63
+ * Maximum number of constraints.
64
+ * @group Props
65
+ */
22
66
  maxConstraints: number;
67
+ /**
68
+ * Title of the filter.
69
+ * @group Props
70
+ */
23
71
  headerTitle: string;
72
+ /**
73
+ * Whether the filter should hide on clear.
74
+ * @group Props
75
+ */
24
76
  hideOnClear: boolean;
77
+ /**
78
+ * Options for category filter.
79
+ * @group Props
80
+ */
25
81
  categoryOptions: CpsColumnFilterCategoryOption[] | string[];
82
+ /**
83
+ * Whether to show category filter as button toggles.
84
+ * @group Props
85
+ */
26
86
  asButtonToggle: boolean;
87
+ /**
88
+ * Single selection for category filter.
89
+ * @group Props
90
+ */
27
91
  singleSelection: boolean;
92
+ /**
93
+ * Placeholder for filter constraints.
94
+ * @group Props
95
+ */
28
96
  placeholder: string;
29
97
  constraintCompList: QueryList<TableColumnFilterConstraintComponent>;
30
98
  operator: string;
@@ -6,16 +6,52 @@ import { CpsButtonToggleOption } from '../../../../cps-button-toggle/cps-button-
6
6
  import { CpsAutocompleteComponent } from '../../../../cps-autocomplete/cps-autocomplete.component';
7
7
  import { CpsColumnFilterCategoryOption, CpsColumnFilterType } from '../../../cps-column-filter-types';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * TableColumnFilterConstraintComponent is an internal filtering constraint component in table and treetable.
11
+ * @group Components
12
+ */
9
13
  export declare class TableColumnFilterConstraintComponent implements OnChanges {
10
14
  dt: Table;
11
15
  tt: TreeTable;
16
+ /**
17
+ * Type of filter constraint.
18
+ * @group Props
19
+ */
12
20
  type: CpsColumnFilterType;
21
+ /**
22
+ * Column name.
23
+ * @group Props
24
+ */
13
25
  field: string | undefined;
26
+ /**
27
+ * Constraint data.
28
+ * @group Props
29
+ */
14
30
  filterConstraint: FilterMetadata | undefined;
31
+ /**
32
+ * An array of category options.
33
+ * @group Props
34
+ */
15
35
  categoryOptions: CpsColumnFilterCategoryOption[] | string[];
36
+ /**
37
+ * Whether to show category filter as button toggles.
38
+ * @group Props
39
+ */
16
40
  asButtonToggle: boolean;
41
+ /**
42
+ * Single selection for category filter.
43
+ * @group Props
44
+ */
17
45
  singleSelection: boolean;
46
+ /**
47
+ * Placeholder for input field.
48
+ * @group Props
49
+ */
18
50
  placeholder: string;
51
+ /**
52
+ * Whether the filter should have an apply button.
53
+ * @group Props
54
+ */
19
55
  hasApplyButton: boolean;
20
56
  categoryAutocompleteComponent?: CpsAutocompleteComponent;
21
57
  booleanOptions: CpsButtonToggleOption[];
@@ -1,8 +1,22 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { CpsMenuItem } from '../../cps-menu/cps-menu.component';
2
+ import { CpsMenuItem } from '../../../../cps-menu/cps-menu.component';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * TableRowMenuComponent is an internal component which applies the menu to each row.
6
+ * @group Components
7
+ */
4
8
  export declare class TableRowMenuComponent {
9
+ /**
10
+ * Callback to invoke when edit-row button is clicked.
11
+ * @param {any} any - button clicked.
12
+ * @group Emits
13
+ */
5
14
  editRowBtnClicked: EventEmitter<any>;
15
+ /**
16
+ * Callback to invoke when remove-row button is clicked.
17
+ * @param {any} any - button clicked.
18
+ * @group Emits
19
+ */
6
20
  removeRowBtnClicked: EventEmitter<any>;
7
21
  items: CpsMenuItem[];
8
22
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowMenuComponent, never>;
@@ -9,85 +9,389 @@ export type CpsTableExportFormat = 'csv' | 'xlsx';
9
9
  export type CpsTableSize = 'small' | 'normal' | 'large';
10
10
  export type CpsTableToolbarSize = 'small' | 'normal';
11
11
  export type CpsTableSortMode = 'single' | 'multiple';
12
+ /**
13
+ * CpsTableComponent displays data in tabular format.
14
+ * @group Components
15
+ */
12
16
  export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnChanges {
13
17
  private cdRef;
18
+ /**
19
+ * An array of objects to display.
20
+ * @group Props
21
+ */
14
22
  data: any[];
23
+ /**
24
+ * An array of objects to represent dynamic columns.
25
+ * @group Props
26
+ */
15
27
  columns: {
16
28
  [key: string]: any;
17
29
  }[];
30
+ /**
31
+ * A key used to retrieve the header from columns.
32
+ * @group Props
33
+ */
18
34
  colHeaderName: string;
35
+ /**
36
+ * A key used to retrieve the field from columns.
37
+ * @group Props
38
+ */
19
39
  colFieldName: string;
40
+ /**
41
+ * Whether the table should have alternating stripes.
42
+ * @group Props
43
+ */
20
44
  striped: boolean;
45
+ /**
46
+ * Whether the table should have borders.
47
+ * @group Props
48
+ */
21
49
  bordered: boolean;
50
+ /**
51
+ * Size of table cells, it can be "small", "normal" or "large".
52
+ * @group Props
53
+ */
22
54
  size: CpsTableSize;
55
+ /**
56
+ * Whether the table should have row selection.
57
+ * @group Props
58
+ */
23
59
  selectable: boolean;
60
+ /**
61
+ * Whether the table should have rows highlighting on hover.
62
+ * @group Props
63
+ */
24
64
  rowHover: boolean;
65
+ /**
66
+ * Field, that uniquely identifies a record in data (needed for expandable rows).
67
+ * @group Props
68
+ */
25
69
  dataKey: string;
70
+ /**
71
+ * Whether the table should show row menu.
72
+ * @group Props
73
+ */
26
74
  showRowMenu: boolean;
75
+ /**
76
+ * Whether the table should have re-orderable rows.
77
+ * @group Props
78
+ */
27
79
  reorderableRows: boolean;
80
+ /**
81
+ * When enabled, a loader component is displayed.
82
+ * @group Props
83
+ */
28
84
  loading: boolean;
85
+ /**
86
+ * Inline style of the table.
87
+ * @group Props
88
+ */
29
89
  tableStyle: undefined;
90
+ /**
91
+ * Style class of the table.
92
+ * @group Props
93
+ */
30
94
  tableStyleClass: string;
95
+ /**
96
+ * Makes all columns sortable if columns prop is provided.
97
+ * @group Props
98
+ */
31
99
  sortable: boolean;
100
+ /**
101
+ * Defines whether sorting works on single column or on multiple columns.
102
+ * @group Props
103
+ */
32
104
  sortMode: CpsTableSortMode;
105
+ /**
106
+ * Whether to use the default sorting or a custom one using sortFunction.
107
+ * @group Props
108
+ */
33
109
  customSort: boolean;
110
+ /**
111
+ * Whether the table has toolbar.
112
+ * @group Props
113
+ */
34
114
  hasToolbar: boolean;
115
+ /**
116
+ * Toolbar size, it can be "small" or "normal".
117
+ * @group Props
118
+ */
35
119
  toolbarSize: CpsTableToolbarSize;
120
+ /**
121
+ * Toolbar title.
122
+ * @group Props
123
+ */
36
124
  toolbarTitle: string;
125
+ /**
126
+ * Toolbar icon name.
127
+ * @group Props
128
+ */
37
129
  toolbarIcon: string;
130
+ /**
131
+ * Toolbar icon color.
132
+ * @group Props
133
+ */
38
134
  toolbarIconColor: string;
135
+ /**
136
+ * Makes table scrollable.
137
+ * @group Props
138
+ */
39
139
  scrollable: boolean;
140
+ /**
141
+ * Height of the scroll viewport in fixed pixels or the "flex" keyword for a dynamic size.
142
+ * @group Props
143
+ */
40
144
  scrollHeight: string;
145
+ /**
146
+ * Whether only the elements within scrollable area should be added into the DOM. Works only if scrollable prop is true.
147
+ * @group Props
148
+ */
41
149
  virtualScroll: boolean;
150
+ /**
151
+ * Determines how many additional elements to add to the DOM outside of the view.
152
+ * @group Props
153
+ */
42
154
  numToleratedItems: number;
155
+ /**
156
+ * Whether the table should have paginator.
157
+ * @group Props
158
+ */
43
159
  paginator: boolean;
160
+ /**
161
+ * Whether to show paginator even if there is only one page.
162
+ * @group Props
163
+ */
44
164
  alwaysShowPaginator: boolean;
165
+ /**
166
+ * Array of integer values to display inside rows per page dropdown of paginator.
167
+ * @group Props
168
+ */
45
169
  rowsPerPageOptions: number[];
170
+ /**
171
+ * Index of the first row to be displayed.
172
+ * @group Props
173
+ */
46
174
  first: number;
175
+ /**
176
+ * Number of rows to display per page.
177
+ * @group Props
178
+ */
47
179
  rows: number;
180
+ /**
181
+ * Whether to reset page on rows change.
182
+ * @group Props
183
+ */
48
184
  resetPageOnRowsChange: boolean;
185
+ /**
186
+ * Whether to reset page on table data sorting.
187
+ * @group Props
188
+ */
49
189
  resetPageOnSort: boolean;
190
+ /**
191
+ * Number of total records.
192
+ * @group Props
193
+ */
50
194
  totalRecords: number;
195
+ /**
196
+ * Text to display when there is no data.
197
+ * @group Props
198
+ */
51
199
  emptyMessage: string;
200
+ /**
201
+ * Height of table's body when there is no data, of type number denoting pixels or string.
202
+ * @group Props
203
+ */
52
204
  emptyBodyHeight: number | string;
205
+ /**
206
+ * Defines if data is loaded and interacted with in lazy manner.
207
+ * @group Props
208
+ */
53
209
  lazy: boolean;
210
+ /**
211
+ * Whether to call lazy loading on initialization.
212
+ * @group Props
213
+ */
54
214
  lazyLoadOnInit: boolean;
215
+ /**
216
+ * Whether to show global filter in the toolbar.
217
+ * @group Props
218
+ */
55
219
  showGlobalFilter: boolean;
220
+ /**
221
+ * Global filter placeholder.
222
+ * @group Props
223
+ */
56
224
  globalFilterPlaceholder: string;
225
+ /**
226
+ * An array of fields to use in global filtering.
227
+ * @group Props
228
+ */
57
229
  globalFilterFields: string[];
230
+ /**
231
+ * Whether to clear global filter on data loading.
232
+ * @group Props
233
+ */
58
234
  clearGlobalFilterOnLoading: boolean;
235
+ /**
236
+ * Whether to show remove button in the toolbar when rows are selected.
237
+ * @group Props
238
+ */
59
239
  showRemoveBtnOnSelect: boolean;
240
+ /**
241
+ * Whether removeBtnOnSelect is disabled.
242
+ * @group Props
243
+ */
60
244
  removeBtnOnSelectDisabled: boolean;
245
+ /**
246
+ * Whether to show additional button in the toolbar when rows are selected.
247
+ * @group Props
248
+ */
61
249
  showAdditionalBtnOnSelect: boolean;
250
+ /**
251
+ * AdditionalBtnOnSelect title.
252
+ * @group Props
253
+ */
62
254
  additionalBtnOnSelectTitle: string;
255
+ /**
256
+ * Whether additionalBtnOnSelect is disabled.
257
+ * @group Props
258
+ */
63
259
  additionalBtnOnSelectDisabled: boolean;
260
+ /**
261
+ * Whether to show action button in the toolbar.
262
+ * @group Props
263
+ */
64
264
  showActionBtn: boolean;
265
+ /**
266
+ * Action button title.
267
+ * @group Props
268
+ */
65
269
  actionBtnTitle: string;
270
+ /**
271
+ * Whether actionBtn is disabled.
272
+ * @group Props
273
+ */
66
274
  actionBtnDisabled: boolean;
275
+ /**
276
+ * Whether to show export button in the toolbar.
277
+ * @group Props
278
+ */
67
279
  showExportBtn: boolean;
280
+ /**
281
+ * Whether exportBtn is disabled.
282
+ * @group Props
283
+ */
68
284
  exportBtnDisabled: boolean;
285
+ /**
286
+ * Name of the exported file.
287
+ * @group Props
288
+ */
69
289
  exportFilename: string;
290
+ /**
291
+ * Character to use as the csv separator.
292
+ * @group Props
293
+ */
70
294
  csvSeparator: string;
295
+ /**
296
+ * Whether to show data reload button in the toolbar.
297
+ * @group Props
298
+ */
71
299
  showDataReloadBtn: boolean;
300
+ /**
301
+ * Whether dataReloadBtn is disabled.
302
+ * @group Props
303
+ */
72
304
  dataReloadBtnDisabled: boolean;
305
+ /**
306
+ * Whether the table should show columnsToggle menu, where you can choose which columns to be displayed. If external body template is provided, use columnsSelected event emitter.
307
+ * @group Props
308
+ */
73
309
  showColumnsToggleBtn: boolean;
310
+ /**
311
+ * Whether columnsToggle button is disabled.
312
+ * @group Props
313
+ */
74
314
  columnsToggleBtnDisabled: boolean;
315
+ /**
316
+ * Array of initial columns to show in the table. If not provided, all columns are initially visible.
317
+ * @group Props
318
+ */
75
319
  initialColumns: {
76
320
  [key: string]: any;
77
321
  }[];
322
+ /**
323
+ * Callback to invoke on selection changed.
324
+ * @param {any[]} value - selected data.
325
+ * @group Emits
326
+ */
78
327
  selectionChanged: EventEmitter<any[]>;
328
+ /**
329
+ * Callback to invoke when action button is clicked.
330
+ * @param {void} void - button clicked.
331
+ * @group Emits
332
+ */
79
333
  actionBtnClicked: EventEmitter<void>;
334
+ /**
335
+ * Callback to invoke when edit-row button is clicked.
336
+ * @param {any} any - button clicked.
337
+ * @group Emits
338
+ */
80
339
  editRowBtnClicked: EventEmitter<any>;
340
+ /**
341
+ * Callback to invoke on rows removal.
342
+ * @param {any[]} any[] - array of rows removed.
343
+ * @group Emits
344
+ */
81
345
  rowsRemoved: EventEmitter<any[]>;
346
+ /**
347
+ * Callback to invoke on page changed.
348
+ * @param {any} any - page changed.
349
+ * @group Emits
350
+ */
82
351
  pageChanged: EventEmitter<any>;
352
+ /**
353
+ * Callback to invoke when data is sorted.
354
+ * @param {any} any - sort meta.
355
+ * @group Emits
356
+ */
83
357
  sorted: EventEmitter<any>;
358
+ /**
359
+ * Callback to invoke when data is filtered.
360
+ * @param {any} any - custom filtering event.
361
+ * @group Emits
362
+ */
84
363
  filtered: EventEmitter<any>;
364
+ /**
365
+ * Callback to invoke when rows are reordered.
366
+ * @param {any} any - rows reordered.
367
+ * @group Emits
368
+ */
85
369
  rowsReordered: EventEmitter<any>;
370
+ /**
371
+ * Callback to invoke on columns selection.
372
+ * @param {object} object - selected column.
373
+ * @group Emits
374
+ */
86
375
  columnsSelected: EventEmitter<{
87
376
  [key: string]: any;
88
377
  }[]>;
378
+ /**
379
+ * Callback to invoke when paging, sorting or filtering happens in lazy mode.
380
+ * @param {any} any - custom lazy loading event.
381
+ * @group Emits
382
+ */
89
383
  lazyLoaded: EventEmitter<any>;
384
+ /**
385
+ * Callback to invoke when data-reload button is clicked.
386
+ * @param {any} any - button clicked.
387
+ * @group Emits
388
+ */
90
389
  dataReloadBtnClicked: EventEmitter<any>;
390
+ /**
391
+ * Callback to invoke when additional button on select is clicked.
392
+ * @param {any[]} any[] - selected data.
393
+ * @group Emits
394
+ */
91
395
  additionalBtnOnSelectClicked: EventEmitter<any[]>;
92
396
  /**
93
397
  * A function to implement custom sorting. customSort must be true.