cps-ui-kit 19.4.0 → 20.0.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 (80) hide show
  1. package/assets/icons.svg +6 -0
  2. package/fesm2022/cps-ui-kit.mjs +736 -740
  3. package/fesm2022/cps-ui-kit.mjs.map +1 -1
  4. package/index.d.ts +5547 -3
  5. package/package.json +8 -6
  6. package/styles/styles.scss +6 -5
  7. package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +0 -332
  8. package/lib/components/cps-button/cps-button.component.d.ts +0 -89
  9. package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +0 -111
  10. package/lib/components/cps-checkbox/cps-checkbox.component.d.ts +0 -86
  11. package/lib/components/cps-chip/cps-chip.component.d.ts +0 -51
  12. package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +0 -158
  13. package/lib/components/cps-divider/cps-divider.component.d.ts +0 -39
  14. package/lib/components/cps-expansion-panel/cps-expansion-panel.component.d.ts +0 -86
  15. package/lib/components/cps-file-upload/cps-file-upload.component.d.ts +0 -79
  16. package/lib/components/cps-icon/cps-icon.component.d.ts +0 -44
  17. package/lib/components/cps-info-circle/cps-info-circle.component.d.ts +0 -41
  18. package/lib/components/cps-input/cps-input.component.d.ts +0 -206
  19. package/lib/components/cps-loader/cps-loader.component.d.ts +0 -34
  20. package/lib/components/cps-menu/cps-menu.component.d.ts +0 -179
  21. package/lib/components/cps-paginator/cps-paginator.component.d.ts +0 -62
  22. package/lib/components/cps-paginator/pipes/cps-paginate.pipe.d.ts +0 -14
  23. package/lib/components/cps-progress-circular/cps-progress-circular.component.d.ts +0 -28
  24. package/lib/components/cps-progress-linear/cps-progress-linear.component.d.ts +0 -43
  25. package/lib/components/cps-radio-group/cps-radio/cps-radio.component.d.ts +0 -21
  26. package/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.d.ts +0 -49
  27. package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +0 -120
  28. package/lib/components/cps-scheduler/cps-scheduler.component.d.ts +0 -151
  29. package/lib/components/cps-scheduler/cps-scheduler.utils.d.ts +0 -1
  30. package/lib/components/cps-select/cps-select.component.d.ts +0 -260
  31. package/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.d.ts +0 -51
  32. package/lib/components/cps-switch/cps-switch.component.d.ts +0 -73
  33. package/lib/components/cps-tab-group/cps-tab/cps-tab.component.d.ts +0 -57
  34. package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +0 -124
  35. package/lib/components/cps-table/components/internal/cps-sort-icon/cps-sort-icon.component.d.ts +0 -24
  36. package/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.d.ts +0 -140
  37. package/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.d.ts +0 -67
  38. package/lib/components/cps-table/components/internal/table-row-menu/table-row-menu.component.d.ts +0 -46
  39. package/lib/components/cps-table/cps-column-filter-types.d.ts +0 -42
  40. package/lib/components/cps-table/cps-table.component.d.ts +0 -561
  41. package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +0 -103
  42. package/lib/components/cps-table/directives/cps-table-column-resizable.directive.d.ts +0 -15
  43. package/lib/components/cps-table/directives/cps-table-column-sortable.directive.d.ts +0 -24
  44. package/lib/components/cps-table/directives/cps-table-header-selectable.directive.d.ts +0 -17
  45. package/lib/components/cps-table/directives/cps-table-row-selectable.directive.d.ts +0 -22
  46. package/lib/components/cps-table/directives/internal/table-unsort.directive.d.ts +0 -13
  47. package/lib/components/cps-table/pipes/cps-table-detect-filter-type.pipe.d.ts +0 -10
  48. package/lib/components/cps-tag/cps-tag.component.d.ts +0 -58
  49. package/lib/components/cps-textarea/cps-textarea.component.d.ts +0 -154
  50. package/lib/components/cps-timepicker/cps-timepicker.component.d.ts +0 -156
  51. package/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.d.ts +0 -65
  52. package/lib/components/cps-tree-select/cps-tree-select.component.d.ts +0 -36
  53. package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +0 -587
  54. package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts +0 -98
  55. package/lib/components/cps-tree-table/directives/cps-tree-table-column-resizable.directive.d.ts +0 -15
  56. package/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.d.ts +0 -24
  57. package/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.d.ts +0 -17
  58. package/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.d.ts +0 -22
  59. package/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.d.ts +0 -23
  60. package/lib/components/cps-tree-table/directives/internal/tree-table-unsort.directive.d.ts +0 -15
  61. package/lib/components/cps-tree-table/pipes/cps-tree-table-detect-filter-type.pipe.d.ts +0 -12
  62. package/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.d.ts +0 -237
  63. package/lib/directives/cps-tooltip/cps-tooltip.directive.d.ts +0 -91
  64. package/lib/pipes/internal/check-option-selected.pipe.d.ts +0 -7
  65. package/lib/pipes/internal/combine-labels.pipe.d.ts +0 -7
  66. package/lib/pipes/internal/label-by-value.pipe.d.ts +0 -7
  67. package/lib/services/cps-dialog/cps-dialog.service.d.ts +0 -47
  68. package/lib/services/cps-dialog/internal/components/cps-confirmation/cps-confirmation.component.d.ts +0 -12
  69. package/lib/services/cps-dialog/internal/components/cps-dialog/cps-dialog.component.d.ts +0 -93
  70. package/lib/services/cps-dialog/internal/directives/cps-dialog-content.directive.d.ts +0 -8
  71. package/lib/services/cps-dialog/utils/cps-dialog-config.d.ts +0 -155
  72. package/lib/services/cps-dialog/utils/cps-dialog-ref.d.ts +0 -101
  73. package/lib/services/cps-notification/cps-notification.service.d.ts +0 -56
  74. package/lib/services/cps-notification/internal/components/cps-notification-container/cps-notification-container.component.d.ts +0 -39
  75. package/lib/services/cps-notification/internal/components/cps-toast/cps-toast.component.d.ts +0 -28
  76. package/lib/services/cps-notification/utils/cps-notification-config.d.ts +0 -60
  77. package/lib/services/cps-notification/utils/internal/cps-notification-data.d.ts +0 -26
  78. package/lib/utils/colors-utils.d.ts +0 -3
  79. package/lib/utils/internal/size-utils.d.ts +0 -5
  80. package/public-api.d.ts +0 -54
@@ -1,24 +0,0 @@
1
- import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { SortableColumn, Table } from 'primeng/table';
3
- import { CpsSortIconComponent } from '../components/internal/cps-sort-icon/cps-sort-icon.component';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * CpsTableColumnSortableDirective is a sorting directive used to sort single or multiple columns in table.
7
- * @group Directives
8
- */
9
- export declare class CpsTableColumnSortableDirective extends SortableColumn implements OnInit, OnDestroy {
10
- private elementRef;
11
- private viewContainerRef;
12
- dt: Table;
13
- /**
14
- * Name of the column to be sorted.
15
- * @group Props
16
- */
17
- field: string;
18
- sortIconRef: ComponentRef<CpsSortIconComponent>;
19
- constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, dt: Table);
20
- ngOnInit(): void;
21
- ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableColumnSortableDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableColumnSortableDirective, "[cpsTColSortable]", never, { "field": { "alias": "cpsTColSortable"; "required": false; }; }, {}, never, never, true, never>;
24
- }
@@ -1,17 +0,0 @@
1
- import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { TableHeaderCheckbox } from 'primeng/table';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * CpsTableHeaderSelectableDirective is a directive used to apply a checkbox to a header cell.
6
- * @group Directives
7
- */
8
- export declare class CpsTableHeaderSelectableDirective implements OnInit, OnDestroy {
9
- private elementRef;
10
- private viewContainerRef;
11
- checkboxCompRef: ComponentRef<TableHeaderCheckbox>;
12
- constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef);
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableHeaderSelectableDirective, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableHeaderSelectableDirective, "[cpsTHdrSelectable]", never, {}, {}, never, never, true, never>;
17
- }
@@ -1,22 +0,0 @@
1
- import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { TableCheckbox } from 'primeng/table';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * CpsTableRowSelectableDirective is a directive used to apply a checkbox to a body cell.
6
- * @group Directives
7
- */
8
- export declare class CpsTableRowSelectableDirective implements OnInit, OnDestroy {
9
- private elementRef;
10
- private viewContainerRef;
11
- /**
12
- * Cell value.
13
- * @group Props
14
- */
15
- value: any;
16
- checkboxCompRef: ComponentRef<TableCheckbox>;
17
- constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef);
18
- ngOnInit(): void;
19
- ngOnDestroy(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableRowSelectableDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableRowSelectableDirective, "[cpsTRowSelectable]", never, { "value": { "alias": "cpsTRowSelectable"; "required": false; }; }, {}, never, never, true, never>;
22
- }
@@ -1,13 +0,0 @@
1
- import { Table } from 'primeng/table';
2
- import * as i0 from "@angular/core";
3
- export declare class TableUnsortDirective {
4
- pTable: Table;
5
- resetSorting: boolean;
6
- sortIndices: number[];
7
- constructor(pTable: Table);
8
- resetDefaultSortOrder(): void;
9
- private _sortData;
10
- private _multisortField;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TableUnsortDirective, [{ optional: true; host: true; self: true; }]>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<TableUnsortDirective, "[tWithUnsort]", ["tWithUnsort"], {}, {}, never, never, true, never>;
13
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { CpsColumnFilterType } from '../cps-column-filter-types';
3
- import * as i0 from "@angular/core";
4
- export declare class CpsTableDetectFilterTypePipe implements PipeTransform {
5
- transform(data: {
6
- [key: string]: unknown;
7
- }[], column: string): CpsColumnFilterType;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableDetectFilterTypePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<CpsTableDetectFilterTypePipe, "cpsTableDetectFilterType", true>;
10
- }
@@ -1,58 +0,0 @@
1
- import { EventEmitter, OnChanges } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * CpsTagComponent is used to categorize content.
6
- * @group Components
7
- */
8
- export declare class CpsTagComponent implements ControlValueAccessor, OnChanges {
9
- private _control;
10
- private document;
11
- /**
12
- * Label of the tag.
13
- * @group Props
14
- */
15
- label: string;
16
- /**
17
- * Color of the tag.
18
- * @group Props
19
- */
20
- color: string;
21
- /**
22
- * Determines whether the tag should be disabled.
23
- * @group Props
24
- */
25
- disabled: boolean;
26
- /**
27
- * Determines whether the tag should be selectable.
28
- * @group Props
29
- */
30
- selectable: boolean;
31
- /**
32
- * Tag value.
33
- * @default false
34
- * @group Props
35
- */
36
- set value(value: boolean);
37
- get value(): boolean;
38
- /**
39
- * Callback to invoke on value change.
40
- * @param {boolean} boolean - value change.
41
- * @group Emits
42
- */
43
- valueChanged: EventEmitter<boolean>;
44
- classesList: string[];
45
- private _value;
46
- constructor(_control: NgControl, document: Document);
47
- ngOnChanges(): void;
48
- setClasses(): void;
49
- onChange: (event: any) => void;
50
- onTouched: () => void;
51
- registerOnChange(fn: any): void;
52
- registerOnTouched(fn: any): void;
53
- writeValue(value: boolean): void;
54
- toggleSelected(): void;
55
- private _updateValue;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTagComponent, [{ optional: true; self: true; }, null]>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTagComponent, "cps-tag", never, { "label": { "alias": "label"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
58
- }
@@ -1,154 +0,0 @@
1
- import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * CpsTextareaComponent is a textarea component.
7
- * @group Components
8
- */
9
- export declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDestroy {
10
- private _control;
11
- private _elementRef;
12
- /**
13
- * Label of the textarea.
14
- * @group Props
15
- */
16
- label: string;
17
- /**
18
- * Placeholder text for the textarea.
19
- * @group Props
20
- */
21
- placeholder: string;
22
- /**
23
- * Number of rows in the textarea.
24
- * @group Props
25
- */
26
- rows: number;
27
- /**
28
- * The cols attribute specifies the visible width of a textarea.
29
- * @group Props
30
- */
31
- cols: number;
32
- /**
33
- * Determines whether the textarea can auto focus.
34
- * @group Props
35
- */
36
- autofocus: boolean;
37
- /**
38
- * Bottom hint text for the textarea.
39
- * @group Props
40
- */
41
- hint: string;
42
- /**
43
- * Determines whether the textarea is disabled.
44
- * @group Props
45
- */
46
- disabled: boolean;
47
- /**
48
- * Width of the textarea, it can be of type number denoting pixels or string.
49
- * @group Props
50
- */
51
- width: number | string;
52
- /**
53
- * When enabled, a clear icon is displayed to clear the value.
54
- * @group Props
55
- */
56
- clearable: boolean;
57
- /**
58
- * Hides hint and validation errors.
59
- * @group Props
60
- */
61
- hideDetails: boolean;
62
- /**
63
- * Determines whether the textarea should have persistent clear icon.
64
- * @group Props
65
- */
66
- persistentClear: boolean;
67
- /**
68
- * Error message.
69
- * @group Props
70
- */
71
- error: string;
72
- /**
73
- * Determines whether the component can be resized vertically or not.
74
- * @group Props
75
- */
76
- resizable: 'vertical' | 'none';
77
- /**
78
- * When it is not an empty string, an info icon is displayed to show text for more info.
79
- * @group Props
80
- */
81
- infoTooltip: string;
82
- /**
83
- * Info tooltip class for styling.
84
- * @group Props
85
- */
86
- infoTooltipClass: string;
87
- /**
88
- * Max width of infoTooltip, of type number denoting pixels or string.
89
- * @group Props
90
- */
91
- infoTooltipMaxWidth: number | string;
92
- /**
93
- * Determines whether the infoTooltip is persistent.
94
- * @group Props
95
- */
96
- infoTooltipPersistent: boolean;
97
- /**
98
- * Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
99
- * @group Props
100
- */
101
- infoTooltipPosition: CpsTooltipPosition;
102
- /**
103
- * Value of the textarea.
104
- * @default ''
105
- * @group Props
106
- */
107
- set value(value: string);
108
- get value(): string;
109
- /**
110
- * Callback to invoke on value change.
111
- * @param {string} string - value changed.
112
- * @group Emits
113
- */
114
- valueChanged: EventEmitter<string>;
115
- /**
116
- * Callback to invoke when the component receives focus.
117
- * @param {any}
118
- * @group Emits
119
- */
120
- focused: EventEmitter<any>;
121
- /**
122
- * Callback to invoke when the prefixIcon is clicked.
123
- * @param {any}
124
- * @group Emits
125
- */
126
- prefixIconClicked: EventEmitter<any>;
127
- /**
128
- * Callback to invoke when the component loses focus.
129
- * @param {any}
130
- * @group Emits
131
- */
132
- blurred: EventEmitter<any>;
133
- private _statusChangesSubscription?;
134
- private _value;
135
- cvtWidth: string;
136
- constructor(_control: NgControl, _elementRef: ElementRef<HTMLElement>);
137
- ngOnInit(): void;
138
- ngOnDestroy(): void;
139
- private _checkErrors;
140
- onChange: (event: any) => void;
141
- onTouched: () => void;
142
- registerOnChange(fn: any): void;
143
- registerOnTouched(fn: any): void;
144
- writeValue(value: string): void;
145
- updateValueEvent(event: any): void;
146
- private _updateValue;
147
- clear(): void;
148
- setDisabledState(disabled: boolean): void;
149
- onBlur(): void;
150
- onFocus(): void;
151
- focus(): void;
152
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTextareaComponent, [{ optional: true; self: true; }, null]>;
153
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTextareaComponent, "cps-textarea", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "persistentClear": { "alias": "persistentClear"; "required": false; }; "error": { "alias": "error"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; "focused": "focused"; "prefixIconClicked": "prefixIconClicked"; "blurred": "blurred"; }, never, never, true, never>;
154
- }
@@ -1,156 +0,0 @@
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/cps-tooltip.directive';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * CpsTime is used to define the time format.
9
- * @group Interface
10
- */
11
- export interface CpsTime {
12
- hours: string;
13
- minutes: string;
14
- seconds?: string;
15
- dayPeriod?: 'AM' | 'PM';
16
- }
17
- /**
18
- * CpsTimepickerComponent allows to pick a specific time from a set of available options or input it manually.
19
- * @group Components
20
- */
21
- export declare class CpsTimepickerComponent implements OnInit, AfterViewInit, OnDestroy {
22
- private _control;
23
- /**
24
- * Label of the timepicker.
25
- * @group Props
26
- */
27
- label: string;
28
- /**
29
- * Determines whether the timepicker is disabled.
30
- * @group Props
31
- */
32
- disabled: boolean;
33
- /**
34
- * Determines whether the timepicker uses 24-hour format.
35
- * @group Props
36
- */
37
- use24HourTime: boolean;
38
- /**
39
- * Determines whether the timepicker has seconds.
40
- * @group Props
41
- */
42
- withSeconds: boolean;
43
- /**
44
- * Bottom hint text for the timepicker.
45
- * @group Props
46
- */
47
- hint: string;
48
- /**
49
- * Hides hint and validation errors.
50
- * @group Props
51
- */
52
- hideDetails: boolean;
53
- /**
54
- * When it is not an empty string, an info icon is displayed to show text for more info.
55
- * @group Props
56
- */
57
- infoTooltip: string;
58
- /**
59
- * InfoTooltip class for styling.
60
- * @group Props
61
- */
62
- infoTooltipClass: string;
63
- /**
64
- * Max width of infoTooltip, of type number denoting pixels or string.
65
- * @group Props
66
- */
67
- infoTooltipMaxWidth: number | string;
68
- /**
69
- * Determines whether the infoTooltip is persistent.
70
- * @group Props
71
- */
72
- infoTooltipPersistent: boolean;
73
- /**
74
- * Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
75
- * @group Props
76
- */
77
- infoTooltipPosition: CpsTooltipPosition;
78
- /**
79
- * Determines whether the timepicker input fields can be cleared.
80
- * @group Props
81
- */
82
- mandatoryValue: boolean;
83
- /**
84
- * Value of the timepicker.
85
- * @group Props
86
- */
87
- set value(value: CpsTime | undefined);
88
- get value(): CpsTime | undefined;
89
- /**
90
- * Callback to invoke on value change.
91
- * @param {string} string - value changed.
92
- * @group Emits
93
- */
94
- valueChanged: EventEmitter<CpsTime>;
95
- /**
96
- * Callback to invoke when the component receives focus.
97
- * @param {any}
98
- * @group Emits
99
- */
100
- focused: EventEmitter<any>;
101
- /**
102
- * Callback to invoke when the component loses focus.
103
- * @param {any}
104
- * @group Emits
105
- */
106
- blurred: EventEmitter<any>;
107
- hoursField: CpsAutocompleteComponent;
108
- minutesField: CpsAutocompleteComponent;
109
- secondsField?: CpsAutocompleteComponent;
110
- dayPeriodOptions: CpsButtonToggleOption[];
111
- hoursOptions: {
112
- label: string;
113
- value: string;
114
- }[];
115
- minutesOptions: {
116
- value: string;
117
- label: string;
118
- }[];
119
- secondsOptions: {
120
- label: string;
121
- value: string;
122
- }[];
123
- private _statusChangesSubscription?;
124
- error: string;
125
- hoursError: string;
126
- minutesError: string;
127
- secondsError: string;
128
- private _value;
129
- constructor(_control: NgControl);
130
- ngOnInit(): void;
131
- ngAfterViewInit(): void;
132
- ngOnDestroy(): void;
133
- onChange: (event: any) => void;
134
- onTouched: () => void;
135
- registerOnChange(fn: any): void;
136
- registerOnTouched(fn: any): void;
137
- setDisabledState(disabled: boolean): void;
138
- writeValue(value: CpsTime | undefined): void;
139
- onFieldBlur(): void;
140
- onFieldFocus(): void;
141
- updateHours(hours: string): void;
142
- updateMinutes(minutes: string): void;
143
- updateSeconds(seconds: string): void;
144
- updateDayPeriod(dayPeriod: 'AM' | 'PM'): void;
145
- numberOnly(event: any): boolean;
146
- private _initValue;
147
- private _isValueValid;
148
- private _updateErrors;
149
- private _setErrors;
150
- private _checkErrors;
151
- private _initHoursOptions;
152
- private _updateValue;
153
- private _getRange;
154
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTimepickerComponent, [{ optional: true; self: true; }]>;
155
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTimepickerComponent, "cps-timepicker", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "use24HourTime": { "alias": "use24HourTime"; "required": false; }; "withSeconds": { "alias": "withSeconds"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "mandatoryValue": { "alias": "mandatoryValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; "focused": "focused"; "blurred": "blurred"; }, never, never, true, never>;
156
- }
@@ -1,65 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { TreeNode } from 'primeng/api';
4
- import { CpsMenuHideReason } from '../cps-menu/cps-menu.component';
5
- import { CpsBaseTreeDropdownComponent } from '../internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * CpsTreeAutocompleteAppearanceType is used to define the border of the tree autocomplete input field.
9
- * @group Types
10
- */
11
- export type CpsTreeAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderless';
12
- /**
13
- * CpsTreeAutocompleteComponent allows to choose items from hierarchical data dropdown and provides real-time suggestions when being typed.
14
- * @group Components
15
- */
16
- export declare class CpsTreeAutocompleteComponent extends CpsBaseTreeDropdownComponent implements OnInit, AfterViewInit, OnDestroy {
17
- control: NgControl;
18
- private document;
19
- cdRef: ChangeDetectorRef;
20
- /**
21
- * Message if array of items is empty.
22
- * @group Props
23
- */
24
- emptyMessage: string;
25
- /**
26
- * Styling appearance of tree autocomplete, it can be 'outlined', 'underlined' or 'borderless'.
27
- * @group Props
28
- */
29
- appearance: CpsTreeAutocompleteAppearanceType;
30
- /**
31
- * Placeholder text.
32
- * @group Props
33
- */
34
- placeholder: string;
35
- treeAutocompleteInput: ElementRef;
36
- inputText: string;
37
- backspaceClickedOnce: boolean;
38
- activeSingle: boolean;
39
- constructor(control: NgControl, document: Document, cdRef: ChangeDetectorRef);
40
- ngOnInit(): void;
41
- ngAfterViewInit(): void;
42
- ngOnDestroy(): void;
43
- onSelectNode(): void;
44
- onBlur(): void;
45
- onBeforeOptionsHidden(reason: CpsMenuHideReason): void;
46
- onBoxClick(): void;
47
- onContainerKeyDown(event: any): void;
48
- onInputKeyDown(event: any): void;
49
- onChevronClick(event: any): void;
50
- isActive(): boolean;
51
- remove(option: TreeNode): void;
52
- clear(event?: any): void;
53
- focusInput(): void;
54
- focus(): void;
55
- onFilterOptions(): void;
56
- filterOptions(event: any): void;
57
- private _select;
58
- private _getValueLabel;
59
- private _clearInput;
60
- private _closeAndClear;
61
- private _confirmInput;
62
- private _removeLastValue;
63
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeAutocompleteComponent, [{ optional: true; }, null, null]>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeAutocompleteComponent, "cps-tree-autocomplete", never, { "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
65
- }
@@ -1,36 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { CpsBaseTreeDropdownComponent } from '../internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * CpsTreeSelectAppearanceType is used to define the border of the tree select input field.
7
- * @group Types
8
- */
9
- export type CpsTreeSelectAppearanceType = 'outlined' | 'underlined' | 'borderless';
10
- /**
11
- * CpsTreeSelectComponent allows to select items from hierarchical data dropdown.
12
- * @group Components
13
- */
14
- export declare class CpsTreeSelectComponent extends CpsBaseTreeDropdownComponent implements OnInit, AfterViewInit, OnDestroy {
15
- control: NgControl;
16
- cdRef: ChangeDetectorRef;
17
- /**
18
- * Styling appearance of tree select, it can be "outlined", "underlined" or "borderless".
19
- * @group Props
20
- */
21
- appearance: CpsTreeSelectAppearanceType;
22
- /**
23
- * Placeholder text.
24
- * @group Props
25
- */
26
- placeholder: string;
27
- constructor(control: NgControl, cdRef: ChangeDetectorRef);
28
- ngOnInit(): void;
29
- ngAfterViewInit(): void;
30
- ngOnDestroy(): void;
31
- onBeforeOptionsHidden(): void;
32
- onBoxClick(): void;
33
- onKeyDown(event: any): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeSelectComponent, [{ optional: true; }, null]>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeSelectComponent, "cps-tree-select", never, { "appearance": { "alias": "appearance"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
36
- }