cps-ui-kit 0.151.0 → 0.153.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/esm2020/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +85 -23
- package/esm2020/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +6 -6
- package/esm2020/lib/components/cps-checkbox/cps-checkbox.component.mjs +3 -3
- package/esm2020/lib/components/cps-chip/cps-chip.component.mjs +2 -2
- package/esm2020/lib/components/cps-datepicker/cps-datepicker.component.mjs +6 -6
- package/esm2020/lib/components/cps-expansion-panel/cps-expansion-panel.component.mjs +3 -3
- package/esm2020/lib/components/cps-info-circle/cps-info-circle.component.mjs +2 -2
- package/esm2020/lib/components/cps-input/cps-input.component.mjs +7 -7
- package/esm2020/lib/components/cps-loader/cps-loader.component.mjs +2 -2
- package/esm2020/lib/components/cps-menu/cps-menu.component.mjs +4 -4
- package/esm2020/lib/components/cps-paginator/cps-paginator.component.mjs +3 -3
- package/esm2020/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.mjs +3 -3
- package/esm2020/lib/components/cps-radio-group/cps-radio-group.component.mjs +4 -4
- package/esm2020/lib/components/cps-select/cps-select.component.mjs +9 -9
- package/esm2020/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.mjs +2 -2
- package/esm2020/lib/components/cps-tab-group/cps-tab/cps-tab.component.mjs +4 -4
- package/esm2020/lib/components/cps-tab-group/cps-tab-group.component.mjs +2 -2
- package/esm2020/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.mjs +9 -9
- package/esm2020/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.mjs +4 -4
- package/esm2020/lib/components/cps-table/cps-table.component.mjs +30 -30
- package/esm2020/lib/components/cps-table/directives/cps-table-column-filter.directive.mjs +9 -9
- package/esm2020/lib/components/cps-tag/cps-tag.component.mjs +3 -3
- package/esm2020/lib/components/cps-textarea/cps-textarea.component.mjs +8 -8
- package/esm2020/lib/components/cps-timepicker/cps-timepicker.component.mjs +351 -0
- package/esm2020/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +3 -3
- package/esm2020/lib/components/cps-tree-select/cps-tree-select.component.mjs +3 -3
- package/esm2020/lib/components/cps-tree-table/cps-tree-table.component.mjs +29 -31
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.mjs +9 -9
- package/esm2020/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.mjs +7 -7
- package/esm2020/lib/directives/cps-tooltip.directive.mjs +3 -3
- package/esm2020/lib/pipes/internal/combine-labels.pipe.mjs +2 -2
- package/esm2020/lib/pipes/internal/label-by-value.pipe.mjs +2 -2
- package/esm2020/lib/services/cps-dialog/cps-dialog.service.mjs +3 -4
- package/esm2020/lib/services/cps-dialog/utils/cps-dialog-config.mjs +1 -1
- package/esm2020/lib/services/cps-notification/cps-notification.service.mjs +94 -0
- package/esm2020/lib/services/cps-notification/internal/components/cps-notification-container/cps-notification-container.component.mjs +91 -0
- package/esm2020/lib/services/cps-notification/internal/components/cps-toast/cps-toast.component.mjs +106 -0
- package/esm2020/lib/services/cps-notification/utils/cps-notification-config.mjs +25 -0
- package/esm2020/lib/services/cps-notification/utils/internal/cps-notification-data.mjs +12 -0
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/cps-ui-kit.mjs +927 -208
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +906 -207
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +38 -11
- package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +3 -3
- package/lib/components/cps-checkbox/cps-checkbox.component.d.ts +2 -2
- package/lib/components/cps-chip/cps-chip.component.d.ts +1 -1
- package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +5 -5
- package/lib/components/cps-expansion-panel/cps-expansion-panel.component.d.ts +2 -2
- package/lib/components/cps-info-circle/cps-info-circle.component.d.ts +1 -1
- package/lib/components/cps-input/cps-input.component.d.ts +4 -4
- package/lib/components/cps-loader/cps-loader.component.d.ts +1 -1
- package/lib/components/cps-menu/cps-menu.component.d.ts +3 -3
- package/lib/components/cps-paginator/cps-paginator.component.d.ts +2 -2
- package/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.d.ts +2 -2
- package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +3 -3
- package/lib/components/cps-select/cps-select.component.d.ts +6 -6
- package/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.d.ts +1 -1
- package/lib/components/cps-tab-group/cps-tab/cps-tab.component.d.ts +3 -3
- package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +1 -1
- package/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.d.ts +8 -8
- package/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.d.ts +2 -2
- package/lib/components/cps-table/cps-table.component.d.ts +29 -29
- package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +8 -8
- package/lib/components/cps-tag/cps-tag.component.d.ts +2 -2
- package/lib/components/cps-textarea/cps-textarea.component.d.ts +5 -5
- package/lib/components/cps-timepicker/cps-timepicker.component.d.ts +135 -0
- package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +28 -30
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts +8 -8
- package/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.d.ts +6 -6
- package/lib/directives/cps-tooltip.directive.d.ts +2 -2
- package/lib/services/cps-dialog/utils/cps-dialog-config.d.ts +7 -7
- package/lib/services/cps-notification/cps-notification.service.d.ts +24 -0
- package/lib/services/cps-notification/internal/components/cps-notification-container/cps-notification-container.component.d.ts +44 -0
- package/lib/services/cps-notification/internal/components/cps-toast/cps-toast.component.d.ts +28 -0
- package/lib/services/cps-notification/utils/cps-notification-config.d.ts +49 -0
- package/lib/services/cps-notification/utils/internal/cps-notification-data.d.ts +23 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/styles/_colors.scss +10 -10
|
@@ -38,12 +38,12 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
38
38
|
*/
|
|
39
39
|
colFieldName: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Determines whether the table should have alternating stripes.
|
|
42
42
|
* @group Props
|
|
43
43
|
*/
|
|
44
44
|
striped: boolean;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Determines whether the table should have borders.
|
|
47
47
|
* @group Props
|
|
48
48
|
*/
|
|
49
49
|
bordered: boolean;
|
|
@@ -53,12 +53,12 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
53
53
|
*/
|
|
54
54
|
size: CpsTableSize;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Determines whether the table should have row selection.
|
|
57
57
|
* @group Props
|
|
58
58
|
*/
|
|
59
59
|
selectable: boolean;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Determines whether the table should have rows highlighting on hover.
|
|
62
62
|
* @group Props
|
|
63
63
|
*/
|
|
64
64
|
rowHover: boolean;
|
|
@@ -68,7 +68,7 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
68
68
|
*/
|
|
69
69
|
dataKey: string;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Determines whether the table should show row menus.
|
|
72
72
|
* @group Props
|
|
73
73
|
*/
|
|
74
74
|
showRowMenu: boolean;
|
|
@@ -80,7 +80,7 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
80
80
|
*/
|
|
81
81
|
showRowRemoveButton: boolean;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Determines whether the table should have re-orderable rows.
|
|
84
84
|
* @group Props
|
|
85
85
|
*/
|
|
86
86
|
reorderableRows: boolean;
|
|
@@ -105,17 +105,17 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
105
105
|
*/
|
|
106
106
|
sortable: boolean;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Determines whether sorting works on single column or on multiple columns.
|
|
109
109
|
* @group Props
|
|
110
110
|
*/
|
|
111
111
|
sortMode: CpsTableSortMode;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* Determines whether to use the default sorting or a custom one using sortFunction.
|
|
114
114
|
* @group Props
|
|
115
115
|
*/
|
|
116
116
|
customSort: boolean;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Determines whether the table has a toolbar.
|
|
119
119
|
* @group Props
|
|
120
120
|
*/
|
|
121
121
|
hasToolbar: boolean;
|
|
@@ -150,7 +150,7 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
150
150
|
*/
|
|
151
151
|
scrollHeight: string;
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* Determines whether only the elements within scrollable area should be added into the DOM. Works only if scrollable prop is true.
|
|
154
154
|
* @group Props
|
|
155
155
|
*/
|
|
156
156
|
virtualScroll: boolean;
|
|
@@ -160,12 +160,12 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
160
160
|
*/
|
|
161
161
|
numToleratedItems: number;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
163
|
+
* Determines whether the table should have paginator.
|
|
164
164
|
* @group Props
|
|
165
165
|
*/
|
|
166
166
|
paginator: boolean;
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* Determines whether to show paginator even if there is only one page.
|
|
169
169
|
* @group Props
|
|
170
170
|
*/
|
|
171
171
|
alwaysShowPaginator: boolean;
|
|
@@ -185,12 +185,12 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
185
185
|
*/
|
|
186
186
|
rows: number;
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
* Determines whether to reset page on rows change.
|
|
189
189
|
* @group Props
|
|
190
190
|
*/
|
|
191
191
|
resetPageOnRowsChange: boolean;
|
|
192
192
|
/**
|
|
193
|
-
*
|
|
193
|
+
* Determines whether to reset page on table data sorting.
|
|
194
194
|
* @group Props
|
|
195
195
|
*/
|
|
196
196
|
resetPageOnSort: boolean;
|
|
@@ -215,12 +215,12 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
215
215
|
*/
|
|
216
216
|
lazy: boolean;
|
|
217
217
|
/**
|
|
218
|
-
*
|
|
218
|
+
* Determines whether to call lazy loading on initialization.
|
|
219
219
|
* @group Props
|
|
220
220
|
*/
|
|
221
221
|
lazyLoadOnInit: boolean;
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
223
|
+
* Determines whether to show global filter in the toolbar.
|
|
224
224
|
* @group Props
|
|
225
225
|
*/
|
|
226
226
|
showGlobalFilter: boolean;
|
|
@@ -235,22 +235,22 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
235
235
|
*/
|
|
236
236
|
globalFilterFields: string[];
|
|
237
237
|
/**
|
|
238
|
-
*
|
|
238
|
+
* Determines whether to clear global filter on data loading.
|
|
239
239
|
* @group Props
|
|
240
240
|
*/
|
|
241
241
|
clearGlobalFilterOnLoading: boolean;
|
|
242
242
|
/**
|
|
243
|
-
*
|
|
243
|
+
* Determines whether to show remove button in the toolbar when rows are selected.
|
|
244
244
|
* @group Props
|
|
245
245
|
*/
|
|
246
246
|
showRemoveBtnOnSelect: boolean;
|
|
247
247
|
/**
|
|
248
|
-
*
|
|
248
|
+
* Determines whether removeBtnOnSelect is disabled.
|
|
249
249
|
* @group Props
|
|
250
250
|
*/
|
|
251
251
|
removeBtnOnSelectDisabled: boolean;
|
|
252
252
|
/**
|
|
253
|
-
*
|
|
253
|
+
* Determines whether to show additional button in the toolbar when rows are selected.
|
|
254
254
|
* @group Props
|
|
255
255
|
*/
|
|
256
256
|
showAdditionalBtnOnSelect: boolean;
|
|
@@ -260,12 +260,12 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
260
260
|
*/
|
|
261
261
|
additionalBtnOnSelectTitle: string;
|
|
262
262
|
/**
|
|
263
|
-
*
|
|
263
|
+
* Determines whether additionalBtnOnSelect is disabled.
|
|
264
264
|
* @group Props
|
|
265
265
|
*/
|
|
266
266
|
additionalBtnOnSelectDisabled: boolean;
|
|
267
267
|
/**
|
|
268
|
-
*
|
|
268
|
+
* Determines whether to show action button in the toolbar.
|
|
269
269
|
* @group Props
|
|
270
270
|
*/
|
|
271
271
|
showActionBtn: boolean;
|
|
@@ -275,17 +275,17 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
275
275
|
*/
|
|
276
276
|
actionBtnTitle: string;
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
* Determines whether actionBtn is disabled.
|
|
279
279
|
* @group Props
|
|
280
280
|
*/
|
|
281
281
|
actionBtnDisabled: boolean;
|
|
282
282
|
/**
|
|
283
|
-
*
|
|
283
|
+
* Determines whether to show export button in the toolbar.
|
|
284
284
|
* @group Props
|
|
285
285
|
*/
|
|
286
286
|
showExportBtn: boolean;
|
|
287
287
|
/**
|
|
288
|
-
*
|
|
288
|
+
* Determines whether exportBtn is disabled.
|
|
289
289
|
* @group Props
|
|
290
290
|
*/
|
|
291
291
|
exportBtnDisabled: boolean;
|
|
@@ -300,22 +300,22 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
300
300
|
*/
|
|
301
301
|
csvSeparator: string;
|
|
302
302
|
/**
|
|
303
|
-
*
|
|
303
|
+
* Determines whether to show data reload button in the toolbar.
|
|
304
304
|
* @group Props
|
|
305
305
|
*/
|
|
306
306
|
showDataReloadBtn: boolean;
|
|
307
307
|
/**
|
|
308
|
-
*
|
|
308
|
+
* Determines whether dataReloadBtn is disabled.
|
|
309
309
|
* @group Props
|
|
310
310
|
*/
|
|
311
311
|
dataReloadBtnDisabled: boolean;
|
|
312
312
|
/**
|
|
313
|
-
*
|
|
313
|
+
* Determines 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.
|
|
314
314
|
* @group Props
|
|
315
315
|
*/
|
|
316
316
|
showColumnsToggleBtn: boolean;
|
|
317
317
|
/**
|
|
318
|
-
*
|
|
318
|
+
* Determines whether columnsToggle button is disabled.
|
|
319
319
|
* @group Props
|
|
320
320
|
*/
|
|
321
321
|
columnsToggleBtnDisabled: boolean;
|
|
@@ -20,27 +20,27 @@ export declare class CpsTableColumnFilterDirective implements OnInit, OnChanges,
|
|
|
20
20
|
*/
|
|
21
21
|
filterType: CpsColumnFilterType;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Determines whether the filter menu should be persistent.
|
|
24
24
|
* @group Props
|
|
25
25
|
*/
|
|
26
26
|
filterPersistent: boolean;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Determines whether the filter should have clear button.
|
|
29
29
|
* @group Props
|
|
30
30
|
*/
|
|
31
31
|
filterShowClearButton: boolean;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Determines whether the filter should have apply button.
|
|
34
34
|
* @group Props
|
|
35
35
|
*/
|
|
36
36
|
filterShowApplyButton: boolean;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Determines whether the filter should have close button.
|
|
39
39
|
* @group Props
|
|
40
40
|
*/
|
|
41
41
|
filterShowCloseButton: boolean;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Determines whether the filter should have match modes.
|
|
44
44
|
* @group Props
|
|
45
45
|
*/
|
|
46
46
|
filterShowMatchModes: boolean;
|
|
@@ -50,7 +50,7 @@ export declare class CpsTableColumnFilterDirective implements OnInit, OnChanges,
|
|
|
50
50
|
*/
|
|
51
51
|
filterMatchModes: CpsColumnFilterMatchMode[];
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Determines whether the filter should have operator.
|
|
54
54
|
* @group Props
|
|
55
55
|
*/
|
|
56
56
|
filterShowOperator: boolean;
|
|
@@ -65,7 +65,7 @@ export declare class CpsTableColumnFilterDirective implements OnInit, OnChanges,
|
|
|
65
65
|
*/
|
|
66
66
|
filterHeaderTitle: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Determines whether the filter should hide on clear.
|
|
69
69
|
* @group Props
|
|
70
70
|
*/
|
|
71
71
|
filterHideOnClear: boolean;
|
|
@@ -75,7 +75,7 @@ export declare class CpsTableColumnFilterDirective implements OnInit, OnChanges,
|
|
|
75
75
|
*/
|
|
76
76
|
filterCategoryOptions: CpsColumnFilterCategoryOption[] | string[];
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Determines whether to show category filter as button toggles.
|
|
79
79
|
* @group Props
|
|
80
80
|
*/
|
|
81
81
|
filterAsButtonToggle: boolean;
|
|
@@ -23,12 +23,12 @@ export declare class CpsTagComponent implements ControlValueAccessor, OnChanges
|
|
|
23
23
|
*/
|
|
24
24
|
color: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Determines whether the tag should be disabled.
|
|
27
27
|
* @group Props
|
|
28
28
|
*/
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Determines whether the tag should be selectable.
|
|
32
32
|
* @group Props
|
|
33
33
|
*/
|
|
34
34
|
selectable: boolean;
|
|
@@ -30,7 +30,7 @@ export declare class CpsTextareaComponent implements ControlValueAccessor, OnIni
|
|
|
30
30
|
*/
|
|
31
31
|
cols: number;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Determines whether the textarea can auto focus.
|
|
34
34
|
* @group Props
|
|
35
35
|
*/
|
|
36
36
|
autofocus: boolean;
|
|
@@ -40,7 +40,7 @@ export declare class CpsTextareaComponent implements ControlValueAccessor, OnIni
|
|
|
40
40
|
*/
|
|
41
41
|
hint: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Determines whether the textarea is disabled.
|
|
44
44
|
* @group Props
|
|
45
45
|
*/
|
|
46
46
|
disabled: boolean;
|
|
@@ -60,7 +60,7 @@ export declare class CpsTextareaComponent implements ControlValueAccessor, OnIni
|
|
|
60
60
|
*/
|
|
61
61
|
hideDetails: boolean;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Determines whether the textarea should have persistent clear icon.
|
|
64
64
|
* @group Props
|
|
65
65
|
*/
|
|
66
66
|
persistentClear: boolean;
|
|
@@ -70,7 +70,7 @@ export declare class CpsTextareaComponent implements ControlValueAccessor, OnIni
|
|
|
70
70
|
*/
|
|
71
71
|
error: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Determines whether the component can be resized vertically or not.
|
|
74
74
|
* @group Props
|
|
75
75
|
*/
|
|
76
76
|
resizable: 'vertical' | 'none';
|
|
@@ -90,7 +90,7 @@ export declare class CpsTextareaComponent implements ControlValueAccessor, OnIni
|
|
|
90
90
|
*/
|
|
91
91
|
infoTooltipMaxWidth: number | string;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Determines whether the infoTooltip is persistent.
|
|
94
94
|
* @group Props
|
|
95
95
|
*/
|
|
96
96
|
infoTooltipPersistent: boolean;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
import { CpsButtonToggleOption } from '../cps-button-toggle/cps-button-toggle.component';
|
|
4
|
+
import { CpsAutocompleteComponent } from '../cps-autocomplete/cps-autocomplete.component';
|
|
5
|
+
import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface CpsTime {
|
|
8
|
+
hours: string;
|
|
9
|
+
minutes: string;
|
|
10
|
+
seconds?: string;
|
|
11
|
+
dayPeriod?: 'AM' | 'PM';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* CpsTimepickerComponent allows to pick a specific time from a set of available options or input it manually.
|
|
15
|
+
* @group Components
|
|
16
|
+
*/
|
|
17
|
+
export declare class CpsTimepickerComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
18
|
+
private _control;
|
|
19
|
+
dayPeriodOptions: CpsButtonToggleOption[];
|
|
20
|
+
hoursOptions: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
24
|
+
minutesOptions: {
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
}[];
|
|
28
|
+
secondsOptions: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}[];
|
|
32
|
+
private _statusChangesSubscription;
|
|
33
|
+
/**
|
|
34
|
+
* Label of the timepicker.
|
|
35
|
+
* @group Props
|
|
36
|
+
*/
|
|
37
|
+
label: string;
|
|
38
|
+
/**
|
|
39
|
+
* Determines whether the timepicker is disabled.
|
|
40
|
+
* @group Props
|
|
41
|
+
*/
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Determines whether the timepicker uses 24-hour format.
|
|
45
|
+
* @group Props
|
|
46
|
+
*/
|
|
47
|
+
use24HourTime: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Determines whether the timepicker has seconds.
|
|
50
|
+
* @group Props
|
|
51
|
+
*/
|
|
52
|
+
withSeconds: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Bottom hint text for the timepicker.
|
|
55
|
+
* @group Props
|
|
56
|
+
*/
|
|
57
|
+
hint: string;
|
|
58
|
+
/**
|
|
59
|
+
* Hides hint and validation errors.
|
|
60
|
+
* @group Props
|
|
61
|
+
*/
|
|
62
|
+
hideDetails: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
65
|
+
* @group Props
|
|
66
|
+
*/
|
|
67
|
+
infoTooltip: string;
|
|
68
|
+
/**
|
|
69
|
+
* InfoTooltip class for styling.
|
|
70
|
+
* @group Props
|
|
71
|
+
*/
|
|
72
|
+
infoTooltipClass: string;
|
|
73
|
+
/**
|
|
74
|
+
* Max width of infoTooltip, of type number denoting pixels or string.
|
|
75
|
+
* @group Props
|
|
76
|
+
*/
|
|
77
|
+
infoTooltipMaxWidth: number | string;
|
|
78
|
+
/**
|
|
79
|
+
* Determines whether the infoTooltip is persistent.
|
|
80
|
+
* @group Props
|
|
81
|
+
*/
|
|
82
|
+
infoTooltipPersistent: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
|
|
85
|
+
* @group Props
|
|
86
|
+
*/
|
|
87
|
+
infoTooltipPosition: CpsTooltipPosition;
|
|
88
|
+
/**
|
|
89
|
+
* Value of the timepicker.
|
|
90
|
+
* @group Props
|
|
91
|
+
*/
|
|
92
|
+
set value(value: CpsTime | undefined);
|
|
93
|
+
get value(): CpsTime | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Callback to invoke on value change.
|
|
96
|
+
* @param {string} string - value changed.
|
|
97
|
+
* @group Emits
|
|
98
|
+
*/
|
|
99
|
+
valueChanged: EventEmitter<CpsTime>;
|
|
100
|
+
hoursField: CpsAutocompleteComponent;
|
|
101
|
+
minutesField: CpsAutocompleteComponent;
|
|
102
|
+
secondsField?: CpsAutocompleteComponent;
|
|
103
|
+
error: string;
|
|
104
|
+
hoursError: string;
|
|
105
|
+
minutesError: string;
|
|
106
|
+
secondsError: string;
|
|
107
|
+
private _value;
|
|
108
|
+
constructor(_control: NgControl);
|
|
109
|
+
ngOnInit(): void;
|
|
110
|
+
ngAfterViewInit(): void;
|
|
111
|
+
ngOnDestroy(): void;
|
|
112
|
+
onChange: (event: any) => void;
|
|
113
|
+
onTouched: () => void;
|
|
114
|
+
registerOnChange(fn: any): void;
|
|
115
|
+
registerOnTouched(fn: any): void;
|
|
116
|
+
setDisabledState(disabled: boolean): void;
|
|
117
|
+
writeValue(value: CpsTime): void;
|
|
118
|
+
onFieldBlur(): void;
|
|
119
|
+
updateHours(hours: string): void;
|
|
120
|
+
updateMinutes(minutes: string): void;
|
|
121
|
+
updateSeconds(seconds: string): void;
|
|
122
|
+
updateDayPeriod(dayPeriod: 'AM' | 'PM'): void;
|
|
123
|
+
numberOnly(event: any): boolean;
|
|
124
|
+
private _initValue;
|
|
125
|
+
private _isValueValid;
|
|
126
|
+
private _updateErrors;
|
|
127
|
+
private _setErrors;
|
|
128
|
+
private _checkErrors;
|
|
129
|
+
private _initHoursOptions;
|
|
130
|
+
private _updateValue;
|
|
131
|
+
private _tryUpdateValue;
|
|
132
|
+
private _getRange;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTimepickerComponent, [{ optional: true; self: true; }]>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTimepickerComponent, "cps-timepicker", never, { "label": "label"; "disabled": "disabled"; "use24HourTime": "use24HourTime"; "withSeconds": "withSeconds"; "hint": "hint"; "hideDetails": "hideDetails"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
135
|
+
}
|
|
@@ -44,22 +44,22 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
44
44
|
*/
|
|
45
45
|
minWidth: number | string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Determines whether minWidth prop is used for treetable body only, excluding toolbar and paginator.
|
|
48
48
|
* @group Props
|
|
49
49
|
*/
|
|
50
50
|
minWidthForBodyOnly: boolean;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Determines whether the cell widths scale according to their content or not.
|
|
53
53
|
* @group Props
|
|
54
54
|
*/
|
|
55
55
|
autoLayout: boolean;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Determines whether the treetable should have alternating stripes.
|
|
58
58
|
* @group Props
|
|
59
59
|
*/
|
|
60
60
|
striped: boolean;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Determines whether the treetable should have borders.
|
|
63
63
|
* @group Props
|
|
64
64
|
*/
|
|
65
65
|
bordered: boolean;
|
|
@@ -69,19 +69,17 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
69
69
|
*/
|
|
70
70
|
size: CpsTreeTableSize;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Determines whether the treetable should have row selection.
|
|
73
73
|
* @group Props
|
|
74
74
|
*/
|
|
75
75
|
selectable: boolean;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Determines whether the treetable should have rows highlighting on hover.
|
|
78
78
|
* @group Props
|
|
79
79
|
*/
|
|
80
80
|
rowHover: boolean;
|
|
81
81
|
/**
|
|
82
|
-
* Determines whether the treetable should
|
|
83
|
-
* If true, the row menu is shown. If false, it's hidden.
|
|
84
|
-
* Note: The 'Remove' button (controlled by 'showRowRemoveButton') is part of this menu.
|
|
82
|
+
* Determines whether the treetable should show row menus.
|
|
85
83
|
* @group Props
|
|
86
84
|
*/
|
|
87
85
|
showRowMenu: boolean;
|
|
@@ -113,17 +111,17 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
113
111
|
*/
|
|
114
112
|
sortable: boolean;
|
|
115
113
|
/**
|
|
116
|
-
*
|
|
114
|
+
* Determines whether sorting works on single column or on multiple columns.
|
|
117
115
|
* @group Props
|
|
118
116
|
*/
|
|
119
117
|
sortMode: CpsTreeTableSortMode;
|
|
120
118
|
/**
|
|
121
|
-
*
|
|
119
|
+
* Determines whether to use the default sorting or a custom one using sortFunction.
|
|
122
120
|
* @group Props
|
|
123
121
|
*/
|
|
124
122
|
customSort: boolean;
|
|
125
123
|
/**
|
|
126
|
-
*
|
|
124
|
+
* Determines whether the treetable has a toolbar.
|
|
127
125
|
* @group Props
|
|
128
126
|
*/
|
|
129
127
|
hasToolbar: boolean;
|
|
@@ -158,7 +156,7 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
158
156
|
*/
|
|
159
157
|
scrollHeight: string;
|
|
160
158
|
/**
|
|
161
|
-
*
|
|
159
|
+
* Determines whether only the elements within scrollable area should be added into the DOM. Works only if scrollable prop is true.
|
|
162
160
|
* @group Props
|
|
163
161
|
*/
|
|
164
162
|
virtualScroll: boolean;
|
|
@@ -173,12 +171,12 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
173
171
|
*/
|
|
174
172
|
numToleratedItems: number;
|
|
175
173
|
/**
|
|
176
|
-
*
|
|
174
|
+
* Determines whether the treetable should have paginator.
|
|
177
175
|
* @group Props
|
|
178
176
|
*/
|
|
179
177
|
paginator: boolean;
|
|
180
178
|
/**
|
|
181
|
-
*
|
|
179
|
+
* Determines whether to show paginator even there is only one page.
|
|
182
180
|
* @group Props
|
|
183
181
|
*/
|
|
184
182
|
alwaysShowPaginator: boolean;
|
|
@@ -198,12 +196,12 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
198
196
|
*/
|
|
199
197
|
rows: number;
|
|
200
198
|
/**
|
|
201
|
-
*
|
|
199
|
+
* Determines whether to reset page on rows change.
|
|
202
200
|
* @group Props
|
|
203
201
|
*/
|
|
204
202
|
resetPageOnRowsChange: boolean;
|
|
205
203
|
/**
|
|
206
|
-
*
|
|
204
|
+
* Determines whether to reset page on treetable data sorting.
|
|
207
205
|
* @group Props
|
|
208
206
|
*/
|
|
209
207
|
resetPageOnSort: boolean;
|
|
@@ -228,12 +226,12 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
228
226
|
*/
|
|
229
227
|
lazy: boolean;
|
|
230
228
|
/**
|
|
231
|
-
*
|
|
229
|
+
* Determines whether to call lazy loading on initialization.
|
|
232
230
|
* @group Props
|
|
233
231
|
*/
|
|
234
232
|
lazyLoadOnInit: boolean;
|
|
235
233
|
/**
|
|
236
|
-
*
|
|
234
|
+
* Determines whether to show global filter in the toolbar.
|
|
237
235
|
* @group Props
|
|
238
236
|
*/
|
|
239
237
|
showGlobalFilter: boolean;
|
|
@@ -248,22 +246,22 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
248
246
|
*/
|
|
249
247
|
globalFilterFields: string[];
|
|
250
248
|
/**
|
|
251
|
-
*
|
|
249
|
+
* Determines whether to clear global filter on data loading.
|
|
252
250
|
* @group Props
|
|
253
251
|
*/
|
|
254
252
|
clearGlobalFilterOnLoading: boolean;
|
|
255
253
|
/**
|
|
256
|
-
*
|
|
254
|
+
* Determines whether to show remove button in the toolbar when rows are selected.
|
|
257
255
|
* @group Props
|
|
258
256
|
*/
|
|
259
257
|
showRemoveBtnOnSelect: boolean;
|
|
260
258
|
/**
|
|
261
|
-
*
|
|
259
|
+
* Determines whether removeBtnOnSelect is disabled.
|
|
262
260
|
* @group Props
|
|
263
261
|
*/
|
|
264
262
|
removeBtnOnSelectDisabled: boolean;
|
|
265
263
|
/**
|
|
266
|
-
*
|
|
264
|
+
* Determines whether to show additional button in the toolbar when rows are selected.
|
|
267
265
|
* @group Props
|
|
268
266
|
*/
|
|
269
267
|
showAdditionalBtnOnSelect: boolean;
|
|
@@ -273,12 +271,12 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
273
271
|
*/
|
|
274
272
|
additionalBtnOnSelectTitle: string;
|
|
275
273
|
/**
|
|
276
|
-
*
|
|
274
|
+
* Determines whether additionalBtnOnSelect is disabled.
|
|
277
275
|
* @group Props
|
|
278
276
|
*/
|
|
279
277
|
additionalBtnOnSelectDisabled: boolean;
|
|
280
278
|
/**
|
|
281
|
-
*
|
|
279
|
+
* Determines whether to show action button in the toolbar.
|
|
282
280
|
* @group Props
|
|
283
281
|
*/
|
|
284
282
|
showActionBtn: boolean;
|
|
@@ -288,27 +286,27 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
288
286
|
*/
|
|
289
287
|
actionBtnTitle: string;
|
|
290
288
|
/**
|
|
291
|
-
*
|
|
289
|
+
* Determines whether actionBtn is disabled.
|
|
292
290
|
* @group Props
|
|
293
291
|
*/
|
|
294
292
|
actionBtnDisabled: boolean;
|
|
295
293
|
/**
|
|
296
|
-
*
|
|
294
|
+
* Determines whether to show data reload button in the toolbar.
|
|
297
295
|
* @group Props
|
|
298
296
|
*/
|
|
299
297
|
showDataReloadBtn: boolean;
|
|
300
298
|
/**
|
|
301
|
-
*
|
|
299
|
+
* Determines whether dataReloadBtn is disabled.
|
|
302
300
|
* @group Props
|
|
303
301
|
*/
|
|
304
302
|
dataReloadBtnDisabled: boolean;
|
|
305
303
|
/**
|
|
306
|
-
*
|
|
304
|
+
* Determines 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.
|
|
307
305
|
* @group Props
|
|
308
306
|
*/
|
|
309
307
|
showColumnsToggleBtn: boolean;
|
|
310
308
|
/**
|
|
311
|
-
*
|
|
309
|
+
* Determines whether columnsToggle button is disabled.
|
|
312
310
|
* @group Props
|
|
313
311
|
*/
|
|
314
312
|
columnsToggleBtnDisabled: boolean;
|