cps-ui-kit 21.22.0 → 21.24.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 +183 -19
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cps-ui-kit.d.ts +65 -6
package/package.json
CHANGED
package/types/cps-ui-kit.d.ts
CHANGED
|
@@ -748,6 +748,7 @@ declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit,
|
|
|
748
748
|
private _control;
|
|
749
749
|
private document;
|
|
750
750
|
private renderer;
|
|
751
|
+
private _cdr;
|
|
751
752
|
/**
|
|
752
753
|
* Label of the button toggle component.
|
|
753
754
|
* @group Props
|
|
@@ -778,6 +779,12 @@ declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit,
|
|
|
778
779
|
* @group Props
|
|
779
780
|
*/
|
|
780
781
|
mandatory: boolean;
|
|
782
|
+
/**
|
|
783
|
+
* When multiple is false, and mandatory is true, uses native radio group behavior:
|
|
784
|
+
* arrow-key navigation between options. Has no effect when multiple is true or mandatory is false.
|
|
785
|
+
* @group Props
|
|
786
|
+
*/
|
|
787
|
+
radioNavigation: boolean;
|
|
781
788
|
/**
|
|
782
789
|
* Determines whether all buttons should have equal widths.
|
|
783
790
|
* @group Props
|
|
@@ -827,8 +834,9 @@ declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit,
|
|
|
827
834
|
*/
|
|
828
835
|
valueChanged: EventEmitter<any>;
|
|
829
836
|
largestButtonWidthRem: number;
|
|
837
|
+
readonly groupName: string;
|
|
830
838
|
private readonly _cpsRootFontSizeService;
|
|
831
|
-
constructor(_control: NgControl, document: Document, renderer: Renderer2);
|
|
839
|
+
constructor(_control: NgControl, document: Document, renderer: Renderer2, _cdr: ChangeDetectorRef);
|
|
832
840
|
ngOnInit(): void;
|
|
833
841
|
ngOnChanges(changes: SimpleChanges): void;
|
|
834
842
|
onChange: (_event: any) => void;
|
|
@@ -838,10 +846,11 @@ declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit,
|
|
|
838
846
|
registerOnTouched(fn: any): void;
|
|
839
847
|
writeValue(value: any): void;
|
|
840
848
|
updateValueOnClick(val: any): void;
|
|
849
|
+
onRadioChange(val: any): void;
|
|
841
850
|
private _updateValue;
|
|
842
851
|
private _setEqualWidths;
|
|
843
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsButtonToggleComponent, [{ optional: true; self: true; }, null, null]>;
|
|
844
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonToggleComponent, "cps-button-toggle", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mandatory": { "alias": "mandatory"; "required": false; }; "equalWidths": { "alias": "equalWidths"; "required": false; }; "optionTooltipPosition": { "alias": "optionTooltipPosition"; "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"; }, never, never, true, never>;
|
|
852
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsButtonToggleComponent, [{ optional: true; self: true; }, null, null, null]>;
|
|
853
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonToggleComponent, "cps-button-toggle", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mandatory": { "alias": "mandatory"; "required": false; }; "radioNavigation": { "alias": "radioNavigation"; "required": false; }; "equalWidths": { "alias": "equalWidths"; "required": false; }; "optionTooltipPosition": { "alias": "optionTooltipPosition"; "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"; }, never, never, true, never>;
|
|
845
854
|
}
|
|
846
855
|
|
|
847
856
|
/**
|
|
@@ -2255,6 +2264,11 @@ declare class CpsSchedulerComponent implements OnInit, OnChanges {
|
|
|
2255
2264
|
* @group Props
|
|
2256
2265
|
*/
|
|
2257
2266
|
label: string;
|
|
2267
|
+
/**
|
|
2268
|
+
* Aria label for the component, used for accessibility, it takes precedence over label.
|
|
2269
|
+
* @group Props
|
|
2270
|
+
*/
|
|
2271
|
+
ariaLabel: string;
|
|
2258
2272
|
/**
|
|
2259
2273
|
* Cron expression value.
|
|
2260
2274
|
* @group Props
|
|
@@ -2414,7 +2428,7 @@ declare class CpsSchedulerComponent implements OnInit, OnChanges {
|
|
|
2414
2428
|
private _numToString;
|
|
2415
2429
|
private _stringToNum;
|
|
2416
2430
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsSchedulerComponent, never>;
|
|
2417
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsSchedulerComponent, "cps-scheduler", never, { "label": { "alias": "label"; "required": false; }; "cron": { "alias": "cron"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "showNotSet": { "alias": "showNotSet"; "required": false; }; "showAdvanced": { "alias": "showAdvanced"; "required": false; }; "showMinutes": { "alias": "showMinutes"; "required": false; }; "showTimeZone": { "alias": "showTimeZone"; "required": false; }; "defaultTime": { "alias": "defaultTime"; "required": false; }; "use24HourTime": { "alias": "use24HourTime"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; }, { "cronChange": "cronChange"; "timeZoneChange": "timeZoneChange"; }, never, never, true, never>;
|
|
2431
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsSchedulerComponent, "cps-scheduler", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "cron": { "alias": "cron"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "showNotSet": { "alias": "showNotSet"; "required": false; }; "showAdvanced": { "alias": "showAdvanced"; "required": false; }; "showMinutes": { "alias": "showMinutes"; "required": false; }; "showTimeZone": { "alias": "showTimeZone"; "required": false; }; "defaultTime": { "alias": "defaultTime"; "required": false; }; "use24HourTime": { "alias": "use24HourTime"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; }, { "cronChange": "cronChange"; "timeZoneChange": "timeZoneChange"; }, never, never, true, never>;
|
|
2418
2432
|
}
|
|
2419
2433
|
|
|
2420
2434
|
/**
|
|
@@ -4090,7 +4104,7 @@ declare class CpsTagComponent implements ControlValueAccessor, OnChanges {
|
|
|
4090
4104
|
* CpsTextareaComponent is a textarea component.
|
|
4091
4105
|
* @group Components
|
|
4092
4106
|
*/
|
|
4093
|
-
declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
4107
|
+
declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
4094
4108
|
private _control;
|
|
4095
4109
|
private _elementRef;
|
|
4096
4110
|
/**
|
|
@@ -4098,6 +4112,11 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4098
4112
|
* @group Props
|
|
4099
4113
|
*/
|
|
4100
4114
|
label: string;
|
|
4115
|
+
/**
|
|
4116
|
+
* Aria label for the textarea component, used for accessibility, it takes precedence over label.
|
|
4117
|
+
* @group Props
|
|
4118
|
+
*/
|
|
4119
|
+
ariaLabel: string;
|
|
4101
4120
|
/**
|
|
4102
4121
|
* Placeholder text for the textarea.
|
|
4103
4122
|
* @group Props
|
|
@@ -4118,6 +4137,16 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4118
4137
|
* @group Props
|
|
4119
4138
|
*/
|
|
4120
4139
|
autofocus: boolean;
|
|
4140
|
+
/**
|
|
4141
|
+
* Determines whether the value of the textarea may be checked for spelling errors.
|
|
4142
|
+
* @group Props
|
|
4143
|
+
*/
|
|
4144
|
+
spellcheck: boolean;
|
|
4145
|
+
/**
|
|
4146
|
+
* Determines whether the value of the textarea can be automatically completed by the browser.
|
|
4147
|
+
* @group Props
|
|
4148
|
+
*/
|
|
4149
|
+
autocomplete: string;
|
|
4121
4150
|
/**
|
|
4122
4151
|
* Bottom hint text for the textarea.
|
|
4123
4152
|
* @group Props
|
|
@@ -4128,6 +4157,11 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4128
4157
|
* @group Props
|
|
4129
4158
|
*/
|
|
4130
4159
|
disabled: boolean;
|
|
4160
|
+
/**
|
|
4161
|
+
* Determines whether the textarea is readonly.
|
|
4162
|
+
* @group Props
|
|
4163
|
+
*/
|
|
4164
|
+
readonly: boolean;
|
|
4131
4165
|
/**
|
|
4132
4166
|
* Width of the textarea, it can be of type number denoting pixels or string.
|
|
4133
4167
|
* @group Props
|
|
@@ -4158,6 +4192,12 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4158
4192
|
* @group Props
|
|
4159
4193
|
*/
|
|
4160
4194
|
resizable: 'vertical' | 'none';
|
|
4195
|
+
/**
|
|
4196
|
+
* Maximum height of the textarea during resize, of type number denoting pixels or string.
|
|
4197
|
+
* Accepts only units of px, rem and em. When resizable is set to 'none', this prop has no effect.
|
|
4198
|
+
* @group Props
|
|
4199
|
+
*/
|
|
4200
|
+
maxHeight: number | string;
|
|
4161
4201
|
/**
|
|
4162
4202
|
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
4163
4203
|
* @group Props
|
|
@@ -4214,13 +4254,28 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4214
4254
|
* @group Emits
|
|
4215
4255
|
*/
|
|
4216
4256
|
blurred: EventEmitter<any>;
|
|
4257
|
+
private _textareaEl?;
|
|
4217
4258
|
private _statusChangesSubscription?;
|
|
4218
4259
|
private _value;
|
|
4260
|
+
readonly hintId: string;
|
|
4261
|
+
readonly errorId: string;
|
|
4262
|
+
get describedBy(): string | null;
|
|
4219
4263
|
cvtWidth: string;
|
|
4264
|
+
maxHeightPx: number | null;
|
|
4265
|
+
isKeyboardFocused: boolean;
|
|
4266
|
+
private _singleRowHeightPx;
|
|
4267
|
+
private _mouseActivated;
|
|
4268
|
+
private readonly _cpsRootFontSizeService;
|
|
4269
|
+
private readonly _platformId;
|
|
4270
|
+
private readonly _resizeStepPx;
|
|
4220
4271
|
constructor(_control: NgControl, _elementRef: ElementRef<HTMLElement>);
|
|
4221
4272
|
ngOnInit(): void;
|
|
4273
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
4274
|
+
ngAfterViewInit(): void;
|
|
4222
4275
|
ngOnDestroy(): void;
|
|
4276
|
+
private _updateMaxHeight;
|
|
4223
4277
|
private _checkErrors;
|
|
4278
|
+
get isRequired(): boolean;
|
|
4224
4279
|
onChange: (_event: any) => void;
|
|
4225
4280
|
onTouched: () => void;
|
|
4226
4281
|
registerOnChange(fn: any): void;
|
|
@@ -4229,12 +4284,16 @@ declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
4229
4284
|
updateValueEvent(event: any): void;
|
|
4230
4285
|
private _updateValue;
|
|
4231
4286
|
clear(): void;
|
|
4287
|
+
onClear(event: Event): void;
|
|
4288
|
+
get isClearButtonVisible(): boolean;
|
|
4232
4289
|
setDisabledState(_disabled: boolean): void;
|
|
4233
4290
|
onBlur(): void;
|
|
4234
4291
|
onFocus(): void;
|
|
4292
|
+
onTextareaMousedown(): void;
|
|
4235
4293
|
focus(): void;
|
|
4294
|
+
onResizeHandleKeydown(event: KeyboardEvent): void;
|
|
4236
4295
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTextareaComponent, [{ optional: true; self: true; }, null]>;
|
|
4237
|
-
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>;
|
|
4296
|
+
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>;
|
|
4238
4297
|
}
|
|
4239
4298
|
|
|
4240
4299
|
/**
|