cps-ui-kit 21.21.0 → 21.23.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/fesm2022/cps-ui-kit.mjs +288 -76
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cps-ui-kit.d.ts +99 -15
package/package.json
CHANGED
package/types/cps-ui-kit.d.ts
CHANGED
|
@@ -661,6 +661,9 @@ declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit,
|
|
|
661
661
|
isTimePickerField: boolean;
|
|
662
662
|
readonly optionsListId: string;
|
|
663
663
|
readonly selectAllOptionId: string;
|
|
664
|
+
readonly hintId: string;
|
|
665
|
+
readonly errorId: string;
|
|
666
|
+
get describedBy(): string | null;
|
|
664
667
|
private readonly _optionIdPrefix;
|
|
665
668
|
private readonly _cpsRootFontSizeService;
|
|
666
669
|
private _inputChangeSubject$;
|
|
@@ -697,7 +700,6 @@ declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit,
|
|
|
697
700
|
hasSelectedValue(): boolean;
|
|
698
701
|
clearInput(): void;
|
|
699
702
|
get isRequired(): boolean;
|
|
700
|
-
get computedLabel(): string | null;
|
|
701
703
|
get isSelectAllVisible(): boolean;
|
|
702
704
|
get optionsAriaSetSize(): number;
|
|
703
705
|
get activeDescendantId(): string | null;
|
|
@@ -1090,15 +1092,19 @@ type CpsInputAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
|
1090
1092
|
* CpsInputComponent is used to enter values in a certain formats such as numeric, text or password.
|
|
1091
1093
|
* @group Components
|
|
1092
1094
|
*/
|
|
1093
|
-
declare class CpsInputComponent implements ControlValueAccessor, OnInit,
|
|
1095
|
+
declare class CpsInputComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {
|
|
1094
1096
|
private _control;
|
|
1095
1097
|
elementRef: ElementRef<HTMLElement>;
|
|
1096
|
-
private cdRef;
|
|
1097
1098
|
/**
|
|
1098
1099
|
* Label of the input element.
|
|
1099
1100
|
* @group Props
|
|
1100
1101
|
*/
|
|
1101
1102
|
label: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* Aria label for the input component, used for accessibility, it takes precedence over label.
|
|
1105
|
+
* @group Props
|
|
1106
|
+
*/
|
|
1107
|
+
ariaLabel: string;
|
|
1102
1108
|
/**
|
|
1103
1109
|
* Bottom hint text for the input field.
|
|
1104
1110
|
* @group Props
|
|
@@ -1119,6 +1125,16 @@ declare class CpsInputComponent implements ControlValueAccessor, OnInit, AfterVi
|
|
|
1119
1125
|
* @group Props
|
|
1120
1126
|
*/
|
|
1121
1127
|
readonly: boolean;
|
|
1128
|
+
/**
|
|
1129
|
+
* Determines whether the value of the input can be automatically completed by the browser.
|
|
1130
|
+
* @group Props
|
|
1131
|
+
*/
|
|
1132
|
+
autocomplete: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* Determines whether the value of the input may be checked for spelling errors.
|
|
1135
|
+
* @group Props
|
|
1136
|
+
*/
|
|
1137
|
+
spellcheck: boolean;
|
|
1122
1138
|
/**
|
|
1123
1139
|
* Width of the input field, of type number denoting pixels or string.
|
|
1124
1140
|
* @group Props
|
|
@@ -1154,6 +1170,11 @@ declare class CpsInputComponent implements ControlValueAccessor, OnInit, AfterVi
|
|
|
1154
1170
|
* @group Props
|
|
1155
1171
|
*/
|
|
1156
1172
|
prefixIconSize: iconSizeType;
|
|
1173
|
+
/**
|
|
1174
|
+
* Aria label for the clickable prefix icon, required when prefixIconClickable is true.
|
|
1175
|
+
* @group Props
|
|
1176
|
+
*/
|
|
1177
|
+
prefixIconAriaLabel: string;
|
|
1157
1178
|
/**
|
|
1158
1179
|
* Text before input value.
|
|
1159
1180
|
* @group Props
|
|
@@ -1252,15 +1273,18 @@ declare class CpsInputComponent implements ControlValueAccessor, OnInit, AfterVi
|
|
|
1252
1273
|
* @group Emits
|
|
1253
1274
|
*/
|
|
1254
1275
|
enterClicked: EventEmitter<any>;
|
|
1255
|
-
prefixTextSpan: ElementRef | undefined;
|
|
1256
1276
|
currentType: string;
|
|
1257
|
-
prefixWidth: string;
|
|
1258
1277
|
cvtWidth: string;
|
|
1278
|
+
isKeyboardFocused: boolean;
|
|
1279
|
+
readonly hintId: string;
|
|
1280
|
+
readonly errorId: string;
|
|
1281
|
+
get describedBy(): string | null;
|
|
1282
|
+
private _mouseActivated;
|
|
1259
1283
|
private _statusChangesSubscription?;
|
|
1260
1284
|
private _value;
|
|
1261
|
-
constructor(_control: NgControl, elementRef: ElementRef<HTMLElement
|
|
1285
|
+
constructor(_control: NgControl, elementRef: ElementRef<HTMLElement>);
|
|
1262
1286
|
ngOnInit(): void;
|
|
1263
|
-
|
|
1287
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1264
1288
|
ngOnDestroy(): void;
|
|
1265
1289
|
private _checkErrors;
|
|
1266
1290
|
onChange: (_event: any) => void;
|
|
@@ -1275,12 +1299,14 @@ declare class CpsInputComponent implements ControlValueAccessor, OnInit, AfterVi
|
|
|
1275
1299
|
clear(): void;
|
|
1276
1300
|
togglePassword(): void;
|
|
1277
1301
|
setDisabledState(_disabled: boolean): void;
|
|
1302
|
+
get isRequired(): boolean;
|
|
1278
1303
|
onClickPrefixIcon(): void;
|
|
1279
1304
|
onBlur(): void;
|
|
1280
1305
|
onFocus(): void;
|
|
1306
|
+
onInputMousedown(): void;
|
|
1281
1307
|
focus(): void;
|
|
1282
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsInputComponent, [{ optional: true; self: true; }, null
|
|
1283
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsInputComponent, "cps-input", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "width": { "alias": "width"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "prefixIconClickable": { "alias": "prefixIconClickable"; "required": false; }; "prefixIconSize": { "alias": "prefixIconSize"; "required": false; }; "prefixText": { "alias": "prefixText"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "persistentClear": { "alias": "persistentClear"; "required": false; }; "error": { "alias": "error"; "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; }; "appearance": { "alias": "appearance"; "required": false; }; "valueToDisplay": { "alias": "valueToDisplay"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; "focused": "focused"; "prefixIconClicked": "prefixIconClicked"; "blurred": "blurred"; "cleared": "cleared"; "enterClicked": "enterClicked"; }, never, never, true, never>;
|
|
1308
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsInputComponent, [{ optional: true; self: true; }, null]>;
|
|
1309
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsInputComponent, "cps-input", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "width": { "alias": "width"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "prefixIconClickable": { "alias": "prefixIconClickable"; "required": false; }; "prefixIconSize": { "alias": "prefixIconSize"; "required": false; }; "prefixIconAriaLabel": { "alias": "prefixIconAriaLabel"; "required": false; }; "prefixText": { "alias": "prefixText"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "persistentClear": { "alias": "persistentClear"; "required": false; }; "error": { "alias": "error"; "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; }; "appearance": { "alias": "appearance"; "required": false; }; "valueToDisplay": { "alias": "valueToDisplay"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; "focused": "focused"; "prefixIconClicked": "prefixIconClicked"; "blurred": "blurred"; "cleared": "cleared"; "enterClicked": "enterClicked"; }, never, never, true, never>;
|
|
1284
1310
|
}
|
|
1285
1311
|
|
|
1286
1312
|
/**
|
|
@@ -1292,13 +1318,18 @@ type CpsDatepickerAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
|
1292
1318
|
* CpsDatepickerComponent is an input component to provide date input.
|
|
1293
1319
|
* @group Components
|
|
1294
1320
|
*/
|
|
1295
|
-
declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
1321
|
+
declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {
|
|
1296
1322
|
private _control;
|
|
1297
1323
|
/**
|
|
1298
1324
|
* Label of the datepicker element.
|
|
1299
1325
|
* @group Props
|
|
1300
1326
|
*/
|
|
1301
1327
|
label: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Aria label for the datepicker component, used for accessibility, it takes precedence over label.
|
|
1330
|
+
* @group Props
|
|
1331
|
+
*/
|
|
1332
|
+
ariaLabel: string;
|
|
1302
1333
|
/**
|
|
1303
1334
|
* Determines whether datepicker is disabled.
|
|
1304
1335
|
* @group Props
|
|
@@ -1407,6 +1438,7 @@ declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, On
|
|
|
1407
1438
|
private _value;
|
|
1408
1439
|
constructor(_control: NgControl);
|
|
1409
1440
|
ngOnInit(): void;
|
|
1441
|
+
ngOnChanges(): void;
|
|
1410
1442
|
ngOnDestroy(): void;
|
|
1411
1443
|
onChange: (_event: any) => void;
|
|
1412
1444
|
onTouched: () => void;
|
|
@@ -1433,7 +1465,7 @@ declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, On
|
|
|
1433
1465
|
focusInput(): void;
|
|
1434
1466
|
toggleCalendar(show?: boolean): void;
|
|
1435
1467
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsDatepickerComponent, [{ optional: true; self: true; }]>;
|
|
1436
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsDatepickerComponent, "cps-datepicker", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "persistentClear": { "alias": "persistentClear"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "openOnInputFocus": { "alias": "openOnInputFocus"; "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; }; "appearance": { "alias": "appearance"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
1468
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsDatepickerComponent, "cps-datepicker", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "persistentClear": { "alias": "persistentClear"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "openOnInputFocus": { "alias": "openOnInputFocus"; "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; }; "appearance": { "alias": "appearance"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
1437
1469
|
}
|
|
1438
1470
|
|
|
1439
1471
|
/**
|
|
@@ -2008,6 +2040,9 @@ declare class CpsRadioGroupComponent implements ControlValueAccessor, OnInit, On
|
|
|
2008
2040
|
*/
|
|
2009
2041
|
focused: EventEmitter<any>;
|
|
2010
2042
|
readonly groupName: string;
|
|
2043
|
+
readonly hintId: string;
|
|
2044
|
+
readonly errorId: string;
|
|
2045
|
+
get describedBy(): string | null;
|
|
2011
2046
|
private _statusChangesSubscription?;
|
|
2012
2047
|
private _value;
|
|
2013
2048
|
error: string;
|
|
@@ -2026,7 +2061,6 @@ declare class CpsRadioGroupComponent implements ControlValueAccessor, OnInit, On
|
|
|
2026
2061
|
onBlur(): void;
|
|
2027
2062
|
onFocus(): void;
|
|
2028
2063
|
get isRequired(): boolean;
|
|
2029
|
-
get computedLabel(): string | null;
|
|
2030
2064
|
private _checkErrors;
|
|
2031
2065
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsRadioGroupComponent, [{ optional: true; self: true; }]>;
|
|
2032
2066
|
static ɵcmp: i0.ɵɵComponentDeclaration<CpsRadioGroupComponent, "cps-radio-group", never, { "options": { "alias": "options"; "required": false; }; "groupLabel": { "alias": "groupLabel"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "disabled": { "alias": "disabled"; "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; }; "hint": { "alias": "hint"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; "blurred": "blurred"; "focused": "focused"; }, never, ["*"], true, never>;
|
|
@@ -2173,6 +2207,9 @@ declare class CpsTimepickerComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
2173
2207
|
value: string;
|
|
2174
2208
|
}[];
|
|
2175
2209
|
private _statusChangesSubscription?;
|
|
2210
|
+
readonly hintId: string;
|
|
2211
|
+
readonly errorId: string;
|
|
2212
|
+
get describedBy(): string | null;
|
|
2176
2213
|
error: string;
|
|
2177
2214
|
hoursError: string;
|
|
2178
2215
|
minutesError: string;
|
|
@@ -2610,6 +2647,9 @@ declare class CpsSelectComponent implements ControlValueAccessor, OnInit, OnChan
|
|
|
2610
2647
|
private readonly _cpsRootFontSizeService;
|
|
2611
2648
|
readonly optionsListId: string;
|
|
2612
2649
|
readonly selectAllOptionId: string;
|
|
2650
|
+
readonly hintId: string;
|
|
2651
|
+
readonly errorId: string;
|
|
2652
|
+
get describedBy(): string | null;
|
|
2613
2653
|
private readonly _optionIdPrefix;
|
|
2614
2654
|
private _optionIds;
|
|
2615
2655
|
constructor(_control: NgControl);
|
|
@@ -2644,7 +2684,6 @@ declare class CpsSelectComponent implements ControlValueAccessor, OnInit, OnChan
|
|
|
2644
2684
|
onFocus(): void;
|
|
2645
2685
|
focus(): void;
|
|
2646
2686
|
get isRequired(): boolean;
|
|
2647
|
-
get computedLabel(): string | null;
|
|
2648
2687
|
get isSelectAllVisible(): boolean;
|
|
2649
2688
|
get optionsAriaSetSize(): number;
|
|
2650
2689
|
get activeDescendantId(): string | null;
|
|
@@ -4051,7 +4090,7 @@ declare class CpsTagComponent implements ControlValueAccessor, OnChanges {
|
|
|
4051
4090
|
* CpsTextareaComponent is a textarea component.
|
|
4052
4091
|
* @group Components
|
|
4053
4092
|
*/
|
|
4054
|
-
declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
4093
|
+
declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
4055
4094
|
private _control;
|
|
4056
4095
|
private _elementRef;
|
|
4057
4096
|
/**
|
|
@@ -4059,6 +4098,11 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4059
4098
|
* @group Props
|
|
4060
4099
|
*/
|
|
4061
4100
|
label: string;
|
|
4101
|
+
/**
|
|
4102
|
+
* Aria label for the textarea component, used for accessibility, it takes precedence over label.
|
|
4103
|
+
* @group Props
|
|
4104
|
+
*/
|
|
4105
|
+
ariaLabel: string;
|
|
4062
4106
|
/**
|
|
4063
4107
|
* Placeholder text for the textarea.
|
|
4064
4108
|
* @group Props
|
|
@@ -4079,6 +4123,16 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4079
4123
|
* @group Props
|
|
4080
4124
|
*/
|
|
4081
4125
|
autofocus: boolean;
|
|
4126
|
+
/**
|
|
4127
|
+
* Determines whether the value of the textarea may be checked for spelling errors.
|
|
4128
|
+
* @group Props
|
|
4129
|
+
*/
|
|
4130
|
+
spellcheck: boolean;
|
|
4131
|
+
/**
|
|
4132
|
+
* Determines whether the value of the textarea can be automatically completed by the browser.
|
|
4133
|
+
* @group Props
|
|
4134
|
+
*/
|
|
4135
|
+
autocomplete: string;
|
|
4082
4136
|
/**
|
|
4083
4137
|
* Bottom hint text for the textarea.
|
|
4084
4138
|
* @group Props
|
|
@@ -4089,6 +4143,11 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4089
4143
|
* @group Props
|
|
4090
4144
|
*/
|
|
4091
4145
|
disabled: boolean;
|
|
4146
|
+
/**
|
|
4147
|
+
* Determines whether the textarea is readonly.
|
|
4148
|
+
* @group Props
|
|
4149
|
+
*/
|
|
4150
|
+
readonly: boolean;
|
|
4092
4151
|
/**
|
|
4093
4152
|
* Width of the textarea, it can be of type number denoting pixels or string.
|
|
4094
4153
|
* @group Props
|
|
@@ -4119,6 +4178,12 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4119
4178
|
* @group Props
|
|
4120
4179
|
*/
|
|
4121
4180
|
resizable: 'vertical' | 'none';
|
|
4181
|
+
/**
|
|
4182
|
+
* Maximum height of the textarea during resize, of type number denoting pixels or string.
|
|
4183
|
+
* Accepts only units of px, rem and em. When resizable is set to 'none', this prop has no effect.
|
|
4184
|
+
* @group Props
|
|
4185
|
+
*/
|
|
4186
|
+
maxHeight: number | string;
|
|
4122
4187
|
/**
|
|
4123
4188
|
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
4124
4189
|
* @group Props
|
|
@@ -4175,13 +4240,28 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4175
4240
|
* @group Emits
|
|
4176
4241
|
*/
|
|
4177
4242
|
blurred: EventEmitter<any>;
|
|
4243
|
+
private _textareaEl?;
|
|
4178
4244
|
private _statusChangesSubscription?;
|
|
4179
4245
|
private _value;
|
|
4246
|
+
readonly hintId: string;
|
|
4247
|
+
readonly errorId: string;
|
|
4248
|
+
get describedBy(): string | null;
|
|
4180
4249
|
cvtWidth: string;
|
|
4250
|
+
maxHeightPx: number | null;
|
|
4251
|
+
isKeyboardFocused: boolean;
|
|
4252
|
+
private _singleRowHeightPx;
|
|
4253
|
+
private _mouseActivated;
|
|
4254
|
+
private readonly _cpsRootFontSizeService;
|
|
4255
|
+
private readonly _platformId;
|
|
4256
|
+
private readonly _resizeStepPx;
|
|
4181
4257
|
constructor(_control: NgControl, _elementRef: ElementRef<HTMLElement>);
|
|
4182
4258
|
ngOnInit(): void;
|
|
4259
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
4260
|
+
ngAfterViewInit(): void;
|
|
4183
4261
|
ngOnDestroy(): void;
|
|
4262
|
+
private _updateMaxHeight;
|
|
4184
4263
|
private _checkErrors;
|
|
4264
|
+
get isRequired(): boolean;
|
|
4185
4265
|
onChange: (_event: any) => void;
|
|
4186
4266
|
onTouched: () => void;
|
|
4187
4267
|
registerOnChange(fn: any): void;
|
|
@@ -4190,12 +4270,16 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4190
4270
|
updateValueEvent(event: any): void;
|
|
4191
4271
|
private _updateValue;
|
|
4192
4272
|
clear(): void;
|
|
4273
|
+
onClear(event: Event): void;
|
|
4274
|
+
get isClearButtonVisible(): boolean;
|
|
4193
4275
|
setDisabledState(_disabled: boolean): void;
|
|
4194
4276
|
onBlur(): void;
|
|
4195
4277
|
onFocus(): void;
|
|
4278
|
+
onTextareaMousedown(): void;
|
|
4196
4279
|
focus(): void;
|
|
4280
|
+
onResizeHandleKeydown(event: KeyboardEvent): void;
|
|
4197
4281
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTextareaComponent, [{ optional: true; self: true; }, null]>;
|
|
4198
|
-
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>;
|
|
4282
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTextareaComponent, "cps-textarea", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "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; }; "maxHeight": { "alias": "maxHeight"; "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>;
|
|
4199
4283
|
}
|
|
4200
4284
|
|
|
4201
4285
|
/**
|