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
@@ -7,42 +7,175 @@ 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
9
  export type CpsAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderless';
10
+ /**
11
+ * CpsAutocompleteComponent is an input component that provides real-time suggestions when being typed.
12
+ * @group Components
13
+ */
10
14
  export declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
11
15
  private _control;
12
16
  private _labelByValue;
17
+ /**
18
+ * Label of the input element.
19
+ * @group Props
20
+ */
13
21
  label: string;
22
+ /**
23
+ * Placeholder text.
24
+ * @group Props
25
+ */
14
26
  placeholder: string;
27
+ /**
28
+ * Bottom hint text.
29
+ * @group Props
30
+ */
15
31
  hint: string;
32
+ /**
33
+ * Returns the object directly rather than the value specified with optionValue.
34
+ * @group Props
35
+ */
16
36
  returnObject: boolean;
37
+ /**
38
+ * Specifies if multiple values can be selected.
39
+ * @group Props
40
+ */
17
41
  multiple: boolean;
42
+ /**
43
+ * Whether autocomplete is disabled.
44
+ * @group Props
45
+ */
18
46
  disabled: boolean;
47
+ /**
48
+ * Width of the input field, a number denoting pixels or a string.
49
+ * @group Props
50
+ */
19
51
  width: number | string;
52
+ /**
53
+ * Option for selecting all elements. Doesn't work with virtual scroll.
54
+ * @group Props
55
+ */
20
56
  selectAll: boolean;
57
+ /**
58
+ * When selecting elements, they will appear in a form of a chip.
59
+ * @group Props
60
+ */
21
61
  chips: boolean;
62
+ /**
63
+ * Whether the chips can be directly removed.
64
+ * @group Props
65
+ */
22
66
  closableChips: boolean;
67
+ /**
68
+ * When enabled, a clear icon is displayed to clear the value.
69
+ * @group Props
70
+ */
23
71
  clearable: boolean;
72
+ /**
73
+ * Whether the dropdown list should open on clear.
74
+ * @group Props
75
+ */
24
76
  openOnClear: boolean;
77
+ /**
78
+ * An array of options.
79
+ * @group Props
80
+ */
25
81
  options: any[];
82
+ /**
83
+ * Name of the label field of an option.
84
+ * @group Props
85
+ */
26
86
  optionLabel: string;
87
+ /**
88
+ * Name of the value field of an option. Needed only if returnObject prop is false.
89
+ * @group Props
90
+ */
27
91
  optionValue: string;
92
+ /**
93
+ * Name of the info field of an option, shows the additional information text.
94
+ * @group Props
95
+ */
28
96
  optionInfo: string;
97
+ /**
98
+ * Hides hint and validation errors.
99
+ * @group Props
100
+ */
29
101
  hideDetails: boolean;
102
+ /**
103
+ * Whether the component should have persistent clear icon.
104
+ * @group Props
105
+ */
30
106
  persistentClear: boolean;
107
+ /**
108
+ * Icon before input value.
109
+ * @group Props
110
+ */
31
111
  prefixIcon: IconType;
112
+ /**
113
+ * Size of icon before input value, of type number or string or 'fill' or 'xsmall' or 'small' or 'normal' or 'large'.
114
+ * @group Props
115
+ */
32
116
  prefixIconSize: iconSizeType;
117
+ /**
118
+ * When enabled, a loading bar is displayed.
119
+ * @group Props
120
+ */
33
121
  loading: boolean;
122
+ /**
123
+ * Text to display when there is no data. Defaults to 'No results found'.
124
+ * @group Props
125
+ */
34
126
  emptyMessage: string;
127
+ /**
128
+ * Whether only the elements within scrollable area should be added into the DOM.
129
+ * @group Props
130
+ */
35
131
  virtualScroll: boolean;
132
+ /**
133
+ * Determines how many additional elements to add to the DOM outside of the view.
134
+ * @group Props
135
+ */
36
136
  numToleratedItems: number;
137
+ /**
138
+ * When it is not an empty string, an info icon is displayed to show text for more info.
139
+ * @group Props
140
+ */
37
141
  infoTooltip: string;
142
+ /**
143
+ * Info tooltip class for styling.
144
+ * @group Props
145
+ */
38
146
  infoTooltipClass: string;
147
+ /**
148
+ * Max width of infoTooltip of type number denoting pixels or string.
149
+ * @group Props
150
+ */
39
151
  infoTooltipMaxWidth: number | string;
152
+ /**
153
+ * Whether the infoTooltip is persistent.
154
+ * @group Props
155
+ */
40
156
  infoTooltipPersistent: boolean;
157
+ /**
158
+ * Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
159
+ * @group Props
160
+ */
41
161
  infoTooltipPosition: CpsTooltipPosition;
162
+ /**
163
+ * Styling appearance of autocomplete input, it could be 'outlined', 'underlined' or 'borderless'.
164
+ * @group Props
165
+ */
42
166
  appearance: CpsAutocompleteAppearanceType;
167
+ /**
168
+ * Value of the autocomplete.
169
+ * @group Props
170
+ */
43
171
  _value: any;
44
172
  get value(): any;
45
173
  set value(value: any);
174
+ /**
175
+ * Callback to invoke on value change.
176
+ * @param {any} any - value changed.
177
+ * @group Emits
178
+ */
46
179
  valueChanged: EventEmitter<any>;
47
180
  autocompleteBox: ElementRef;
48
181
  autocompleteContainer: ElementRef;
@@ -1,18 +1,71 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { IconType } from '../cps-icon/cps-icon.component';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * CpsButtonComponent is a button element.
6
+ * @group Components
7
+ */
4
8
  export declare class CpsButtonComponent implements OnInit {
9
+ /**
10
+ * Color of the button.
11
+ * @group Props
12
+ */
5
13
  color: string;
14
+ /**
15
+ * Color of content on the button. Works only with 'solid' type.
16
+ * @group Props
17
+ */
6
18
  contentColor: string;
19
+ /**
20
+ * Type of the button in terms of appearance, it can be 'solid' or 'outlined' or 'borderless'.
21
+ * @group Props
22
+ */
7
23
  type: 'solid' | 'outlined' | 'borderless';
24
+ /**
25
+ * Label or text on the button.
26
+ * @group Props
27
+ */
8
28
  label: string;
29
+ /**
30
+ * Name of the icon on the button.
31
+ * @group Props
32
+ */
9
33
  icon: IconType;
34
+ /**
35
+ * Position of the icon on the button, it can be 'before' or 'after'.
36
+ * @group Props
37
+ */
10
38
  iconPosition: 'before' | 'after';
39
+ /**
40
+ * Size on the button, it can be 'xsmall', 'small', 'normal' or 'large'.
41
+ * @group Props
42
+ */
11
43
  size: 'xsmall' | 'small' | 'normal' | 'large';
44
+ /**
45
+ * Width on the button, of type number denoting pixels or string.
46
+ * @group Props
47
+ */
12
48
  width: number | string;
49
+ /**
50
+ * Height on the button, of type number denoting pixels or string.
51
+ * @group Props
52
+ */
13
53
  height: number | string;
54
+ /**
55
+ * When present, it specifies that the component should be disabled.
56
+ * @group Props
57
+ */
14
58
  disabled: boolean;
59
+ /**
60
+ * When enabled, a cps-progress-circular bar is displayed.
61
+ * @group Props
62
+ */
15
63
  loading: boolean;
64
+ /**
65
+ * Callback to execute when button is clicked.
66
+ * @param {any} any - button clicked.
67
+ * @group Emits
68
+ */
16
69
  clicked: EventEmitter<any>;
17
70
  buttonColor: string;
18
71
  textColor: string;
@@ -9,24 +9,85 @@ export type CpsButtonToggleOption = {
9
9
  disabled?: boolean;
10
10
  tooltip?: string;
11
11
  };
12
+ /**
13
+ * CpsButtonToggleComponent is used to select values using buttons.
14
+ * @group Components
15
+ */
12
16
  export declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit {
13
17
  private _control;
14
18
  private renderer;
19
+ /**
20
+ * Label of the toggle buttons.
21
+ * @group Props
22
+ */
15
23
  label: string;
24
+ /**
25
+ * An array of options.
26
+ * @group Props
27
+ */
16
28
  options: CpsButtonToggleOption[];
29
+ /**
30
+ * Specifies if multiple values can be selected.
31
+ * @group Props
32
+ */
17
33
  multiple: boolean;
34
+ /**
35
+ * Specifies that the component should be disabled.
36
+ * @group Props
37
+ */
18
38
  disabled: boolean;
39
+ /**
40
+ * Whether at least one of the options is mandatory.
41
+ * @group Props
42
+ */
19
43
  mandatory: boolean;
44
+ /**
45
+ * Whether all buttons should have equal widths.
46
+ * @group Props
47
+ */
20
48
  equalWidths: boolean;
49
+ /**
50
+ * Position of the option tooltip, can be 'top', 'bottom', 'left' or 'right'.
51
+ * @group Props
52
+ */
21
53
  optionTooltipPosition: CpsTooltipPosition;
54
+ /**
55
+ * When it is not an empty string, an info icon is displayed to show text for more info.
56
+ * @group Props
57
+ */
22
58
  infoTooltip: string;
59
+ /**
60
+ * Info tooltip class for styling.
61
+ * @group Props
62
+ */
23
63
  infoTooltipClass: string;
64
+ /**
65
+ * Size of infoTooltip, of type number or string.
66
+ * @group Props
67
+ */
24
68
  infoTooltipMaxWidth: number | string;
69
+ /**
70
+ * Whether the infoTooltip is persistent.
71
+ * @group Props
72
+ */
25
73
  infoTooltipPersistent: boolean;
74
+ /**
75
+ * Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
76
+ * @group Props
77
+ */
26
78
  infoTooltipPosition: CpsTooltipPosition;
79
+ /**
80
+ * Value of the component.
81
+ * @group Props
82
+ */
27
83
  _value: any;
28
84
  set value(value: any);
29
85
  get value(): any;
86
+ /**
87
+ * Callback to invoke on value change.
88
+ * @param {any} any - value changed.
89
+ * @group Emits
90
+ */
30
91
  valueChanged: EventEmitter<any>;
31
92
  largestButtonWidth: number;
32
93
  constructor(_control: NgControl, renderer: Renderer2);
@@ -3,20 +3,69 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
4
4
  import { IconType } from '../cps-icon/cps-icon.component';
5
5
  import * as i0 from "@angular/core";
6
+ /**
7
+ * CpsCheckboxComponent is a checkbox element.
8
+ * @group Components
9
+ */
6
10
  export declare class CpsCheckboxComponent implements OnInit, ControlValueAccessor {
7
11
  private _control;
8
12
  private _elementRef;
13
+ /**
14
+ * Label of the checkbox.
15
+ * @group Props
16
+ */
9
17
  label: string;
18
+ /**
19
+ * Whether checkbox is disabled.
20
+ * @group Props
21
+ */
10
22
  disabled: boolean;
23
+ /**
24
+ * When it is not an empty string, an info icon is displayed to show text for more info.
25
+ * @group Props
26
+ */
11
27
  infoTooltip: string;
28
+ /**
29
+ * InfoTooltip class for styling.
30
+ * @group Props
31
+ */
12
32
  infoTooltipClass: string;
33
+ /**
34
+ * Size of infoTooltip, of type number denoting pixels or string.
35
+ * @group Props
36
+ */
13
37
  infoTooltipMaxWidth: number | string;
38
+ /**
39
+ * Whether the infoTooltip is persistent.
40
+ * @group Props
41
+ */
14
42
  infoTooltipPersistent: boolean;
43
+ /**
44
+ * Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
45
+ * @group Props
46
+ */
15
47
  infoTooltipPosition: CpsTooltipPosition;
48
+ /**
49
+ * Name of the icon.
50
+ * @group Props
51
+ */
16
52
  icon: IconType;
53
+ /**
54
+ * Color of the icon.
55
+ * @group Props
56
+ */
17
57
  iconColor: string;
58
+ /**
59
+ * Value of the checkbox.
60
+ * @group Props
61
+ */
18
62
  set value(value: boolean);
19
63
  get value(): boolean;
64
+ /**
65
+ * Callback to invoke on value change.
66
+ * @param {boolean} boolean - value changed.
67
+ * @group Emits
68
+ */
20
69
  valueChanged: EventEmitter<boolean>;
21
70
  private _value;
22
71
  constructor(_control: NgControl, _elementRef: ElementRef<HTMLElement>);
@@ -1,13 +1,46 @@
1
1
  import { EventEmitter, OnChanges } from '@angular/core';
2
2
  import { IconType } from '../cps-icon/cps-icon.component';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * CpsChipComponent represents a chip element.
6
+ * @group Components
7
+ */
4
8
  export declare class CpsChipComponent implements OnChanges {
9
+ /**
10
+ * Label of the chip element.
11
+ * @group Props
12
+ */
5
13
  label: string;
14
+ /**
15
+ * Name of the icon.
16
+ * @group Props
17
+ */
6
18
  icon: IconType;
19
+ /**
20
+ * Color of the icon.
21
+ * @group Props
22
+ */
7
23
  iconColor: string;
24
+ /**
25
+ * Position of the icon, it can be 'before' or 'after'. Defaults to 'before'.
26
+ * @group Props
27
+ */
8
28
  iconPosition: 'before' | 'after';
29
+ /**
30
+ * Option for closing a chip element.
31
+ * @group Props
32
+ */
9
33
  closable: boolean;
34
+ /**
35
+ * Whether chip is disabled.
36
+ * @group Props
37
+ */
10
38
  disabled: boolean;
39
+ /**
40
+ * Callback to invoke on chip close.
41
+ * @param {string} string - Chip closed.
42
+ * @group Emits
43
+ */
11
44
  closed: EventEmitter<string>;
12
45
  classesList: string[];
13
46
  ngOnChanges(): void;
@@ -5,28 +5,113 @@ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
5
5
  import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
6
6
  import * as i0 from "@angular/core";
7
7
  export type CpsDatepickerAppearanceType = 'outlined' | 'underlined' | 'borderless';
8
+ /**
9
+ * CpsDatepickerComponent is an input component to provide date input.
10
+ * @group Components
11
+ */
8
12
  export declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, OnDestroy {
9
13
  private _control;
14
+ /**
15
+ * Label of the datepicker element.
16
+ * @group Props
17
+ */
10
18
  label: string;
19
+ /**
20
+ * Whether datepicker is disabled.
21
+ * @group Props
22
+ */
11
23
  disabled: boolean;
24
+ /**
25
+ * Width of the datepicker of type number denoting pixels or string.
26
+ * @group Props
27
+ */
12
28
  width: number | string;
29
+ /**
30
+ * Placeholder text.
31
+ * @group Props
32
+ */
13
33
  placeholder: string;
34
+ /**
35
+ * Bottom hint text for the input field.
36
+ * @group Props
37
+ */
14
38
  hint: string;
39
+ /**
40
+ * When enabled, a clear icon is displayed to clear the value.
41
+ * @group Props
42
+ */
15
43
  clearable: boolean;
44
+ /**
45
+ * Hides hint and validation errors.
46
+ * @group Props
47
+ */
16
48
  hideDetails: boolean;
49
+ /**
50
+ * Whether the component should have persistent clear icon.
51
+ * @group Props
52
+ */
17
53
  persistentClear: boolean;
54
+ /**
55
+ * Whether to show button to be able to select today's date.
56
+ * @group Props
57
+ */
18
58
  showTodayButton: boolean;
59
+ /**
60
+ * Whether the datepicker dropdown should open on input focus.
61
+ * @group Props
62
+ */
19
63
  openOnInputFocus: boolean;
64
+ /**
65
+ * When it is not an empty string, an info icon is displayed to show text for more info.
66
+ * @group Props
67
+ */
20
68
  infoTooltip: string;
69
+ /**
70
+ * InfoTooltip class for styling.
71
+ * @group Props
72
+ */
21
73
  infoTooltipClass: string;
74
+ /**
75
+ * Size of infoTooltip, of type number denoting pixels or string.
76
+ * @group Props
77
+ */
22
78
  infoTooltipMaxWidth: number | string;
79
+ /**
80
+ * Whether the infoTooltip is persistent.
81
+ * @group Props
82
+ */
23
83
  infoTooltipPersistent: boolean;
84
+ /**
85
+ * Position of infoTooltip, it can be "top", "bottom", "left" or "right".
86
+ * @group Props
87
+ */
24
88
  infoTooltipPosition: CpsTooltipPosition;
89
+ /**
90
+ * Styling appearance of datepicker input, it can be 'outlined', 'underlined' or 'borderless.
91
+ * @group Props
92
+ */
25
93
  appearance: CpsDatepickerAppearanceType;
94
+ /**
95
+ * Minimal date availalbe for selection.
96
+ * @group Props
97
+ */
26
98
  minDate: Date;
99
+ /**
100
+ * Maximal date availalbe for selection.
101
+ * @group Props
102
+ */
27
103
  maxDate: Date;
104
+ /**
105
+ * Value of the datepicker.
106
+ * @group Props
107
+ */
28
108
  set value(value: Date | null);
29
109
  get value(): Date | null;
110
+ /**
111
+ * Callback to invoke on value change.
112
+ * @param {Date | null} value - value change.
113
+ * @group Emits
114
+ */
30
115
  valueChanged: EventEmitter<Date | null>;
31
116
  datepickerInput: CpsInputComponent;
32
117
  calendarMenu: CpsMenuComponent;
@@ -1,17 +1,67 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { IconType } from '../cps-icon/cps-icon.component';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * CpsExpansionPanelComponent is a component that provides content on expansion.
6
+ * @group Components
7
+ */
4
8
  export declare class CpsExpansionPanelComponent implements OnInit {
9
+ /**
10
+ * Title of the expansionPanel element.
11
+ * @group Props
12
+ */
5
13
  headerTitle: string;
14
+ /**
15
+ * Background color of the expansion panel element.
16
+ * @group Props
17
+ */
6
18
  backgroundColor: string;
19
+ /**
20
+ * Whether to show the chevron icon.
21
+ * @group Props
22
+ */
7
23
  showChevron: boolean;
24
+ /**
25
+ * Indicates current expansion state.
26
+ * @group Props
27
+ */
8
28
  isExpanded: boolean;
29
+ /**
30
+ * Whether expansion panel is disabled.
31
+ * @group Props
32
+ */
9
33
  disabled: boolean;
34
+ /**
35
+ * If true, expansion panel element will have borders.
36
+ * @group Props
37
+ */
10
38
  bordered: boolean;
39
+ /**
40
+ * The border radius of the component.
41
+ * @group Props
42
+ */
11
43
  borderRadius: number | string;
44
+ /**
45
+ * The width of the expansion panel of type number denoting pixels or string.
46
+ * @group Props
47
+ */
12
48
  width: number | string;
49
+ /**
50
+ * Name of the icon in front of the title.
51
+ * @group Props
52
+ */
13
53
  prefixIcon: IconType;
54
+ /**
55
+ * Callback to invoke after a tab gets collapsed.
56
+ * @param {void}
57
+ * @group Emits
58
+ */
14
59
  afterCollapse: EventEmitter<void>;
60
+ /**
61
+ * Callback to invoke after a tab gets expanded.
62
+ * @param {void}
63
+ * @group Emits
64
+ */
15
65
  afterExpand: EventEmitter<void>;
16
66
  ngOnInit(): void;
17
67
  toggleExpansion(): void;
@@ -3,9 +3,25 @@ import * as i0 from "@angular/core";
3
3
  export declare const iconNames: string[];
4
4
  export type IconType = (typeof iconNames)[number];
5
5
  export type iconSizeType = number | string | 'fill' | 'xsmall' | 'small' | 'normal' | 'large';
6
+ /**
7
+ * CpsIconComponent is a component that is used for icons.
8
+ * @group Components
9
+ */
6
10
  export declare class CpsIconComponent implements OnChanges {
11
+ /**
12
+ * Name of the icon.
13
+ * @group Props
14
+ */
7
15
  icon: IconType;
16
+ /**
17
+ * Size of the icon, it can be of type number denoting pixels, string or 'fill', 'xsmall', 'small', 'normal' or 'large'.
18
+ * @group Props
19
+ */
8
20
  size: iconSizeType;
21
+ /**
22
+ * Color of the icon.
23
+ * @group Props
24
+ */
9
25
  color: string;
10
26
  iconColor: string;
11
27
  url: string;
@@ -1,12 +1,40 @@
1
1
  import { iconSizeType } from '../cps-icon/cps-icon.component';
2
2
  import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * CpsInfoCircleComponent is a component that provides information by means of the info icon with the tooltip on hover.
6
+ * @group Components
7
+ */
4
8
  export declare class CpsInfoCircleComponent {
9
+ /**
10
+ * Size of the icon, it can be of type number denoting pixels, string or 'fill', 'xsmall', 'small', 'normal' or 'large'.
11
+ * @group Props
12
+ */
5
13
  size: iconSizeType;
14
+ /**
15
+ * Tooltip text to provide more info.
16
+ * @group Props
17
+ */
6
18
  tooltipText: string;
19
+ /**
20
+ * Position of the tooltip, it can be 'top', 'bottom', 'left' or 'right'.
21
+ * @group Props
22
+ */
7
23
  tooltipPosition: CpsTooltipPosition;
24
+ /**
25
+ * Info tooltip class for styling.
26
+ * @group Props
27
+ */
8
28
  tooltipContentClass: string;
29
+ /**
30
+ * Max width of the tooltip of type number denoting pixels or string.
31
+ * @group Props
32
+ */
9
33
  tooltipMaxWidth: number | string;
34
+ /**
35
+ * Whether the tooltip is persistent.
36
+ * @group Props
37
+ */
10
38
  tooltipPersistent: boolean;
11
39
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsInfoCircleComponent, never>;
12
40
  static ɵcmp: i0.ɵɵComponentDeclaration<CpsInfoCircleComponent, "cps-info-circle", never, { "size": "size"; "tooltipText": "tooltipText"; "tooltipPosition": "tooltipPosition"; "tooltipContentClass": "tooltipContentClass"; "tooltipMaxWidth": "tooltipMaxWidth"; "tooltipPersistent": "tooltipPersistent"; }, {}, never, never, true, never>;