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
@@ -8,92 +8,399 @@ export declare function treeTableFactory(tableComponent: CpsTreeTableComponent):
8
8
  export type CpsTreeTableSize = 'small' | 'normal' | 'large';
9
9
  export type CpsTreeTableToolbarSize = 'small' | 'normal';
10
10
  export type CpsTreeTableSortMode = 'single' | 'multiple';
11
+ /**
12
+ * CpsTreeTableComponent is used to display hierarchical data in tabular format.
13
+ * @group Components
14
+ */
11
15
  export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnDestroy, AfterViewChecked, OnChanges {
12
16
  private cdRef;
13
17
  private renderer;
14
18
  private ngZone;
19
+ /**
20
+ * An array of objects to display.
21
+ * @group Props
22
+ */
15
23
  data: any[];
24
+ /**
25
+ * An array of objects to represent dynamic columns.
26
+ * @group Props
27
+ */
16
28
  columns: {
17
29
  [key: string]: any;
18
30
  }[];
31
+ /**
32
+ * A key used to retrieve the header from columns.
33
+ * @group Props
34
+ */
19
35
  colHeaderName: string;
36
+ /**
37
+ * A key used to retrieve the field from columns.
38
+ * @group Props
39
+ */
20
40
  colFieldName: string;
41
+ /**
42
+ * Treetable min width of type number denoting pixels or string.
43
+ * @group Props
44
+ */
21
45
  minWidth: number | string;
46
+ /**
47
+ * Whether minWidth prop is used for treetable body only, excluding toolbar and paginator.
48
+ * @group Props
49
+ */
22
50
  minWidthForBodyOnly: boolean;
23
51
  /**
24
52
  * Whether the cell widths scale according to their content or not.
25
53
  * @group Props
26
54
  */
27
55
  autoLayout: boolean;
56
+ /**
57
+ * Whether the treetable should have alternating stripes.
58
+ * @group Props
59
+ */
28
60
  striped: boolean;
61
+ /**
62
+ * Whether the treetable should have borders.
63
+ * @group Props
64
+ */
29
65
  bordered: boolean;
66
+ /**
67
+ * Size of treetable cells, it can be "small", "normal" or "large".
68
+ * @group Props
69
+ */
30
70
  size: CpsTreeTableSize;
71
+ /**
72
+ * Whether the treetable should have row selection.
73
+ * @group Props
74
+ */
31
75
  selectable: boolean;
76
+ /**
77
+ * Whether the treetable should have rows highlighting on hover.
78
+ * @group Props
79
+ */
32
80
  rowHover: boolean;
81
+ /**
82
+ * Whether the treetable should show row menu.
83
+ * @group Props
84
+ */
33
85
  showRowMenu: boolean;
86
+ /**
87
+ * When enabled, a loader component is displayed.
88
+ * @group Props
89
+ */
34
90
  loading: boolean;
91
+ /**
92
+ * Inline style of the treetable.
93
+ * @group Props
94
+ */
35
95
  tableStyle: undefined;
96
+ /**
97
+ * Style class of the treetable.
98
+ * @group Props
99
+ */
36
100
  tableStyleClass: string;
101
+ /**
102
+ * Makes all columns sortable if columns prop is provided.
103
+ * @group Props
104
+ */
37
105
  sortable: boolean;
106
+ /**
107
+ * Defines whether sorting works on single column or on multiple columns.
108
+ * @group Props
109
+ */
38
110
  sortMode: CpsTreeTableSortMode;
111
+ /**
112
+ * Whether to use the default sorting or a custom one using sortFunction.
113
+ * @group Props
114
+ */
39
115
  customSort: boolean;
116
+ /**
117
+ * Whether the treetable has toolbar.
118
+ * @group Props
119
+ */
40
120
  hasToolbar: boolean;
121
+ /**
122
+ * Toolbar size, it can be "small" or "normal".
123
+ * @group Props
124
+ */
41
125
  toolbarSize: CpsTreeTableToolbarSize;
126
+ /**
127
+ * Toolbar title.
128
+ * @group Props
129
+ */
42
130
  toolbarTitle: string;
131
+ /**
132
+ * Toolbar icon name.
133
+ * @group Props
134
+ */
43
135
  toolbarIcon: string;
136
+ /**
137
+ * Toolbar icon color.
138
+ * @group Props
139
+ */
44
140
  toolbarIconColor: string;
141
+ /**
142
+ * Makes treetable scrollable.
143
+ * @group Props
144
+ */
45
145
  scrollable: boolean;
146
+ /**
147
+ * Height of the scroll viewport in fixed pixels or the "flex" keyword for a dynamic size.
148
+ * @group Props
149
+ */
46
150
  scrollHeight: string;
151
+ /**
152
+ * Whether only the elements within scrollable area should be added into the DOM. Works only if scrollable prop is true.
153
+ * @group Props
154
+ */
47
155
  virtualScroll: boolean;
156
+ /**
157
+ * Height of a virtual scroll item in fixed pixels.
158
+ * @group Props
159
+ */
48
160
  virtualScrollItemHeight: number;
161
+ /**
162
+ * Determines how many additional elements to add to the DOM outside of the view.
163
+ * @group Props
164
+ */
49
165
  numToleratedItems: number;
166
+ /**
167
+ * Whether the treetable should have paginator.
168
+ * @group Props
169
+ */
50
170
  paginator: boolean;
171
+ /**
172
+ * Whether to show paginator even there is only one page.
173
+ * @group Props
174
+ */
51
175
  alwaysShowPaginator: boolean;
176
+ /**
177
+ * Array of integer values to display inside rows per page dropdown of paginator.
178
+ * @group Props
179
+ */
52
180
  rowsPerPageOptions: number[];
181
+ /**
182
+ * Index of the first row to be displayed.
183
+ * @group Props
184
+ */
53
185
  first: number;
186
+ /**
187
+ * Number of rows to display per page.
188
+ * @group Props
189
+ */
54
190
  rows: number;
191
+ /**
192
+ * Whether to reset page on rows change.
193
+ * @group Props
194
+ */
55
195
  resetPageOnRowsChange: boolean;
196
+ /**
197
+ * Whether to reset page on treetable data sorting.
198
+ * @group Props
199
+ */
56
200
  resetPageOnSort: boolean;
201
+ /**
202
+ * Number of total records.
203
+ * @group Props
204
+ */
57
205
  totalRecords: number;
206
+ /**
207
+ * Text to display when there is no data.
208
+ * @group Props
209
+ */
58
210
  emptyMessage: string;
211
+ /**
212
+ * Height of treetable's body when there is no data, of type number denoting pixels or string.
213
+ * @group Props
214
+ */
59
215
  emptyBodyHeight: number | string;
216
+ /**
217
+ * Defines if data is loaded and interacted with in lazy manner.
218
+ * @group Props
219
+ */
60
220
  lazy: boolean;
221
+ /**
222
+ * Whether to call lazy loading on initialization.
223
+ * @group Props
224
+ */
61
225
  lazyLoadOnInit: boolean;
226
+ /**
227
+ * Whether to show global filter in the toolbar.
228
+ * @group Props
229
+ */
62
230
  showGlobalFilter: boolean;
231
+ /**
232
+ * Global filter placeholder.
233
+ * @group Props
234
+ */
63
235
  globalFilterPlaceholder: string;
236
+ /**
237
+ * An array of fields to use in global filtering.
238
+ * @group Props
239
+ */
64
240
  globalFilterFields: string[];
241
+ /**
242
+ * Whether to clear global filter on data loading.
243
+ * @group Props
244
+ */
65
245
  clearGlobalFilterOnLoading: boolean;
246
+ /**
247
+ * Whether to show remove button in the toolbar when rows are selected.
248
+ * @group Props
249
+ */
66
250
  showRemoveBtnOnSelect: boolean;
251
+ /**
252
+ * Whether removeBtnOnSelect is disabled.
253
+ * @group Props
254
+ */
67
255
  removeBtnOnSelectDisabled: boolean;
256
+ /**
257
+ * Whether to show additional button in the toolbar when rows are selected.
258
+ * @group Props
259
+ */
68
260
  showAdditionalBtnOnSelect: boolean;
261
+ /**
262
+ * AdditionalBtnOnSelect title.
263
+ * @group Props
264
+ */
69
265
  additionalBtnOnSelectTitle: string;
266
+ /**
267
+ * Whether additionalBtnOnSelect is disabled.
268
+ * @group Props
269
+ */
70
270
  additionalBtnOnSelectDisabled: boolean;
271
+ /**
272
+ * Whether to show action button in the toolbar.
273
+ * @group Props
274
+ */
71
275
  showActionBtn: boolean;
276
+ /**
277
+ * Action button title.
278
+ * @group Props
279
+ */
72
280
  actionBtnTitle: string;
281
+ /**
282
+ * Whether actionBtn is disabled.
283
+ * @group Props
284
+ */
73
285
  actionBtnDisabled: boolean;
286
+ /**
287
+ * Whether to show data reload button in the toolbar.
288
+ * @group Props
289
+ */
74
290
  showDataReloadBtn: boolean;
291
+ /**
292
+ * Whether dataReloadBtn is disabled.
293
+ * @group Props
294
+ */
75
295
  dataReloadBtnDisabled: boolean;
296
+ /**
297
+ * Whether the treetable should show columnsToggle menu, where you can choose which columns to be displayed. If external body template is provided, use columnsSelected event emitter.
298
+ * @group Props
299
+ */
76
300
  showColumnsToggleBtn: boolean;
301
+ /**
302
+ * Whether columnsToggle button is disabled.
303
+ * @group Props
304
+ */
77
305
  columnsToggleBtnDisabled: boolean;
306
+ /**
307
+ * Array of initial columns to show in the treetable. If not provided, all columns are initially visible.
308
+ * @group Props
309
+ */
78
310
  initialColumns: {
79
311
  [key: string]: any;
80
312
  }[];
313
+ /**
314
+ * Callback to invoke on selected node change.
315
+ * @param {any[]} array - selection changed.
316
+ * @group Emits
317
+ */
81
318
  selectionChanged: EventEmitter<any[]>;
319
+ /**
320
+ * Callback to invoke when action button is clicked.
321
+ * @param {void} void - action button clicked.
322
+ * @group Emits
323
+ */
82
324
  actionBtnClicked: EventEmitter<void>;
325
+ /**
326
+ * Callback to invoke when additional button on select is clicked.
327
+ * @param {any[]} any[] - selected data.
328
+ * @group Emits
329
+ */
83
330
  additionalBtnOnSelectClicked: EventEmitter<any[]>;
331
+ /**
332
+ * Callback to invoke when edit-row button is clicked.
333
+ * @param {any} any - button clicked.
334
+ * @group Emits
335
+ */
84
336
  editRowBtnClicked: EventEmitter<any>;
337
+ /**
338
+ * Callback to invoke when rows are removed.
339
+ * @param {any} any - rows removed.
340
+ * @group Emits
341
+ */
85
342
  rowsRemoved: EventEmitter<any[]>;
343
+ /**
344
+ * Callback to invoke when page is changed.
345
+ * @param {any} any - page changed.
346
+ * @group Emits
347
+ */
86
348
  pageChanged: EventEmitter<any>;
349
+ /**
350
+ * Callback to invoke when data is sorted.
351
+ * @param {any} any - Sort data.
352
+ * @group Emits
353
+ */
87
354
  sorted: EventEmitter<any>;
355
+ /**
356
+ * Callback to invoke when data is filtered.
357
+ * @param {any} any - Custom filter event.
358
+ * @group Emits
359
+ */
88
360
  filtered: EventEmitter<any>;
361
+ /**
362
+ * Callback to invoke on selected columns.
363
+ * @param {any[]} object[] - selection changed.
364
+ * @group Emits
365
+ */
89
366
  columnsSelected: EventEmitter<{
90
367
  [key: string]: any;
91
368
  }[]>;
369
+ /**
370
+ * Callback to invoke when paging, sorting or filtering happens in lazy mode.
371
+ * @param {any} any - Custom lazy load event.
372
+ * @group Emits
373
+ */
92
374
  lazyLoaded: EventEmitter<any>;
375
+ /**
376
+ * Callback to invoke when data reload button is clicked.
377
+ * @param {any} any - data reload button clicked.
378
+ * @group Emits
379
+ */
93
380
  dataReloadBtnClicked: EventEmitter<any>;
381
+ /**
382
+ * Callback to invoke when a node is expanded.
383
+ * @param {any} any - Node instance.
384
+ * @group Emits
385
+ */
94
386
  nodeExpanded: EventEmitter<any>;
387
+ /**
388
+ * Callback to invoke when a node is collapsed.
389
+ * @param {any} any - Node collapse event.
390
+ * @group Emits
391
+ */
95
392
  nodeCollapsed: EventEmitter<any>;
393
+ /**
394
+ * Callback to invoke when a node is selected.
395
+ * @param {any} any - Node instance.
396
+ * @group Emits
397
+ */
96
398
  nodeSelected: EventEmitter<any>;
399
+ /**
400
+ * Callback to invoke when a node is unselected.
401
+ * @param {any} any - Custom node unselect event.
402
+ * @group Emits
403
+ */
97
404
  nodeUnselected: EventEmitter<any>;
98
405
  /**
99
406
  * A function to implement custom sorting. customSort must be true.
@@ -2,23 +2,87 @@ import { ComponentRef, ElementRef, OnDestroy, OnInit, OnChanges, ViewContainerRe
2
2
  import { TableColumnFilterComponent } from '../../cps-table/components/internal/table-column-filter/table-column-filter.component';
3
3
  import { CpsColumnFilterType, CpsColumnFilterMatchMode, CpsColumnFilterCategoryOption } from '../../cps-table/cps-column-filter-types';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * CpsTreeTableColumnFilterDirective is a filtering directive used to filter single or multiple columns in treetable.
7
+ * @group Directives
8
+ */
5
9
  export declare class CpsTreeTableColumnFilterDirective implements OnInit, OnChanges, OnDestroy {
6
10
  private elementRef;
7
11
  private viewContainerRef;
12
+ /**
13
+ * Name of the column to be filtered.
14
+ * @group Props
15
+ */
8
16
  field: string | undefined;
17
+ /**
18
+ * Type of filter in treetable, it can be of type "number", "boolean", "text", "date" or "category".
19
+ * @group Props
20
+ */
9
21
  filterType: CpsColumnFilterType;
22
+ /**
23
+ * Whether the filter menu should be persistent.
24
+ * @group Props
25
+ */
10
26
  filterPersistent: boolean;
27
+ /**
28
+ * Whether the filter should have clear button.
29
+ * @group Props
30
+ */
11
31
  filterShowClearButton: boolean;
32
+ /**
33
+ * Whether the filter should have apply button.
34
+ * @group Props
35
+ */
12
36
  filterShowApplyButton: boolean;
37
+ /**
38
+ * Whether the filter should have close button.
39
+ * @group Props
40
+ */
13
41
  filterShowCloseButton: boolean;
42
+ /**
43
+ * Whether the filter should have match modes.
44
+ * @group Props
45
+ */
14
46
  filterShowMatchModes: boolean;
47
+ /**
48
+ * Match modes for filter.
49
+ * @group Props
50
+ */
15
51
  filterMatchModes: CpsColumnFilterMatchMode[];
52
+ /**
53
+ * Whether the filter should have operator.
54
+ * @group Props
55
+ */
16
56
  filterShowOperator: boolean;
57
+ /**
58
+ * Title of the filter.
59
+ * @group Props
60
+ */
17
61
  filterHeaderTitle: string;
62
+ /**
63
+ * Whether the filter should hide on clear.
64
+ * @group Props
65
+ */
18
66
  filterHideOnClear: boolean;
67
+ /**
68
+ * Options for category filter.
69
+ * @group Props
70
+ */
19
71
  filterCategoryOptions: CpsColumnFilterCategoryOption[] | string[];
72
+ /**
73
+ * Whether to show category filter as button toggles.
74
+ * @group Props
75
+ */
20
76
  filterAsButtonToggle: boolean;
77
+ /**
78
+ * Single selection for category filter.
79
+ * @group Props
80
+ */
21
81
  filterSingleSelection: boolean;
82
+ /**
83
+ * Placeholder for filter constraints.
84
+ * @group Props
85
+ */
22
86
  filterPlaceholder: string;
23
87
  filterCompRef: ComponentRef<TableColumnFilterComponent>;
24
88
  constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef);
@@ -2,10 +2,18 @@ import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@
2
2
  import { TTSortableColumn, TreeTable } from 'primeng/treetable';
3
3
  import { CpsSortIconComponent } from '../../cps-table/components/internal/cps-sort-icon/cps-sort-icon.component';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * CpsTreeTableColumnSortableDirective is a sorting directive used to sort single or multiple columns in treetable.
7
+ * @group Directives
8
+ */
5
9
  export declare class CpsTreeTableColumnSortableDirective extends TTSortableColumn implements OnInit, OnDestroy {
6
10
  private elementRef;
7
11
  private viewContainerRef;
8
12
  tt: TreeTable;
13
+ /**
14
+ * Name of the column to be sorted.
15
+ * @group Props
16
+ */
9
17
  field: string;
10
18
  sortIconRef: ComponentRef<CpsSortIconComponent>;
11
19
  constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, tt: TreeTable);
@@ -1,6 +1,10 @@
1
1
  import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
2
  import { TTHeaderCheckbox } from 'primeng/treetable';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * CpsTreeTableHeaderSelectableDirective is a directive used to apply a checkbox to a header cell.
6
+ * @group Directives
7
+ */
4
8
  export declare class CpsTreeTableHeaderSelectableDirective implements OnInit, OnDestroy {
5
9
  private elementRef;
6
10
  private viewContainerRef;
@@ -1,9 +1,17 @@
1
1
  import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
2
  import { TTCheckbox } from 'primeng/treetable';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * CpsTreeTableRowSelectableDirective is a directive used to apply a checkbox to a body cell.
6
+ * @group Directives
7
+ */
4
8
  export declare class CpsTreeTableRowSelectableDirective implements OnInit, OnDestroy {
5
9
  private elementRef;
6
10
  private viewContainerRef;
11
+ /**
12
+ * Cell value.
13
+ * @group Props
14
+ */
7
15
  value: any;
8
16
  checkboxCompRef: ComponentRef<TTCheckbox>;
9
17
  constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef);
@@ -1,9 +1,17 @@
1
1
  import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
2
  import { TreeTableToggler } from 'primeng/treetable';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * CpsTreetableRowTogglerDirective is a directive used to apply a chevron toggler icon to a body cell.
6
+ * @group Directives
7
+ */
4
8
  export declare class CpsTreetableRowTogglerDirective implements OnInit, OnDestroy {
5
9
  private elementRef;
6
10
  private viewContainerRef;
11
+ /**
12
+ * Cell value.
13
+ * @group Props
14
+ */
7
15
  rowNode: any;
8
16
  togglerCompRef: ComponentRef<TreeTableToggler>;
9
17
  constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef);
@@ -6,39 +6,156 @@ import { IconType, iconSizeType } from '../../cps-icon/cps-icon.component';
6
6
  import { CpsTooltipPosition } from '../../../directives/cps-tooltip.directive';
7
7
  import { CpsMenuComponent } from '../../cps-menu/cps-menu.component';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * BaseTreeDropdownComponent is an internal base component to support hierarchical data dropdown.
11
+ * @group Components
12
+ */
9
13
  export declare class CpsBaseTreeDropdownComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
10
14
  control: NgControl;
11
15
  cdRef: ChangeDetectorRef;
16
+ /**
17
+ * Label of the component.
18
+ * @group Props
19
+ */
12
20
  label: string;
21
+ /**
22
+ * Bottom hint text.
23
+ * @group Props
24
+ */
13
25
  hint: string;
26
+ /**
27
+ * Specifies if multiple values can be selected.
28
+ * @group Props
29
+ */
14
30
  multiple: boolean;
31
+ /**
32
+ * Whether the component is disabled.
33
+ * @group Props
34
+ */
15
35
  disabled: boolean;
36
+ /**
37
+ * Width of the component, of type number denoting pixels or string.
38
+ * @group Props
39
+ */
16
40
  width: number | string;
41
+ /**
42
+ * When selecting an element, it will appear in a form of a chip.
43
+ * @group Props
44
+ */
17
45
  chips: boolean;
46
+ /**
47
+ * Whether the chips can be directly removed.
48
+ * @group Props
49
+ */
18
50
  closableChips: boolean;
51
+ /**
52
+ * When enabled, a clear icon is displayed to clear the value.
53
+ * @group Props
54
+ */
19
55
  clearable: boolean;
56
+ /**
57
+ * Whether the dropdown should open on clear.
58
+ * @group Props
59
+ */
20
60
  openOnClear: boolean;
61
+ /**
62
+ * Name of the label field of an option.
63
+ * @group Props
64
+ */
21
65
  optionLabel: string;
66
+ /**
67
+ * Name of the info field of an option, shows the additional information text.
68
+ * @group Props
69
+ */
22
70
  optionInfo: string;
71
+ /**
72
+ * Options for hiding details.
73
+ * @group Props
74
+ */
23
75
  hideDetails: boolean;
76
+ /**
77
+ * Whether the component should have persistent clear icon.
78
+ * @group Props
79
+ */
24
80
  persistentClear: boolean;
81
+ /**
82
+ * Icon before input value.
83
+ * @group Props
84
+ */
25
85
  prefixIcon: IconType;
86
+ /**
87
+ * Size of icon before input value, of type number, string, 'fill', 'xsmall', 'small', 'normal' or 'large'.
88
+ * @group Props
89
+ */
26
90
  prefixIconSize: iconSizeType;
91
+ /**
92
+ * When enabled, a loading bar is displayed.
93
+ * @group Props
94
+ */
27
95
  loading: boolean;
96
+ /**
97
+ * Whether only the elements within scrollable area should be added into the DOM.
98
+ * @group Props
99
+ */
28
100
  virtualScroll: boolean;
101
+ /**
102
+ * Determines how many additional elements to add to the DOM outside of the view.
103
+ * @group Props
104
+ */
29
105
  numToleratedItems: number;
106
+ /**
107
+ * When it is not an empty string, an info icon is displayed to show text for more info.
108
+ * @group Props
109
+ */
30
110
  infoTooltip: string;
111
+ /**
112
+ * Info tooltip class for styling.
113
+ * @group Props
114
+ */
31
115
  infoTooltipClass: string;
116
+ /**
117
+ * Max width of infoTooltip of type number denoting pixels or string.
118
+ * @group Props
119
+ */
32
120
  infoTooltipMaxWidth: number | string;
121
+ /**
122
+ * Whether the infoTooltip is persistent.
123
+ * @group Props
124
+ */
33
125
  infoTooltipPersistent: boolean;
126
+ /**
127
+ * Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
128
+ * @group Props
129
+ */
34
130
  infoTooltipPosition: CpsTooltipPosition;
131
+ /**
132
+ * When set, it expands all directiories initially.
133
+ * @group Props
134
+ */
35
135
  initialExpandDirectories: boolean;
136
+ /**
137
+ * When set, it expands all options initially.
138
+ * @group Props
139
+ */
36
140
  initialExpandAll: boolean;
141
+ /**
142
+ * An array of objects to display as the available options.
143
+ * @group Props
144
+ */
37
145
  set options(options: any[]);
38
146
  get options(): TreeNode[];
147
+ /**
148
+ * Value of the component.
149
+ * @group Props
150
+ */
39
151
  _value: any;
40
152
  set value(value: any);
41
153
  get value(): any;
154
+ /**
155
+ * Callback to invoke on value change.
156
+ * @param {any} any - value changed.
157
+ * @group Emits
158
+ */
42
159
  valueChanged: EventEmitter<any>;
43
160
  componentContainer: ElementRef;
44
161
  optionsMenu: CpsMenuComponent;