cps-ui-kit 21.24.0 → 21.26.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "21.24.0",
3
+ "version": "21.26.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.6",
6
6
  "@angular/core": "^21.2.6",
@@ -879,6 +879,11 @@ declare class CpsButtonComponent implements OnInit, OnChanges {
879
879
  * @group Props
880
880
  */
881
881
  type: 'solid' | 'outlined' | 'borderless';
882
+ /**
883
+ * Native HTML button type attribute, it can be 'button', 'submit' or 'reset'.
884
+ * @group Props
885
+ */
886
+ nativeType: 'button' | 'submit' | 'reset';
882
887
  /**
883
888
  * Label or text on the button.
884
889
  * @group Props
@@ -940,14 +945,14 @@ declare class CpsButtonComponent implements OnInit, OnChanges {
940
945
  enterActive: boolean;
941
946
  constructor(document: Document);
942
947
  ngOnInit(): void;
943
- ngOnChanges(): void;
948
+ ngOnChanges(changes: SimpleChanges): void;
944
949
  setClasses(): void;
945
950
  onClick(event: Event): void;
946
951
  onEnterKeydown(): void;
947
952
  onEnterKeyup(): void;
948
953
  onBlur(): void;
949
954
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsButtonComponent, never>;
950
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonComponent, "cps-button", never, { "color": { "alias": "color"; "required": false; }; "contentColor": { "alias": "contentColor"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "size": { "alias": "size"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
955
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonComponent, "cps-button", never, { "color": { "alias": "color"; "required": false; }; "contentColor": { "alias": "contentColor"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "type": { "alias": "type"; "required": false; }; "nativeType": { "alias": "nativeType"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "size": { "alias": "size"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
951
956
  }
952
957
 
953
958
  /**
@@ -957,7 +962,6 @@ declare class CpsButtonComponent implements OnInit, OnChanges {
957
962
  declare class CpsCheckboxComponent implements OnInit, OnChanges, ControlValueAccessor {
958
963
  private _control;
959
964
  private document;
960
- private _elementRef;
961
965
  /**
962
966
  * Label of the checkbox.
963
967
  * @group Props
@@ -1022,7 +1026,8 @@ declare class CpsCheckboxComponent implements OnInit, OnChanges, ControlValueAcc
1022
1026
  */
1023
1027
  valueChanged: EventEmitter<boolean>;
1024
1028
  private _value;
1025
- constructor(_control: NgControl, document: Document, _elementRef: ElementRef<HTMLElement>);
1029
+ checkboxInput?: ElementRef<HTMLInputElement>;
1030
+ constructor(_control: NgControl, document: Document);
1026
1031
  ngOnInit(): void;
1027
1032
  ngOnChanges(): void;
1028
1033
  onChange: (_event: any) => void;
@@ -1034,7 +1039,7 @@ declare class CpsCheckboxComponent implements OnInit, OnChanges, ControlValueAcc
1034
1039
  private _updateValue;
1035
1040
  setDisabledState(_disabled: boolean): void;
1036
1041
  focus(): void;
1037
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsCheckboxComponent, [{ optional: true; self: true; }, null, null]>;
1042
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsCheckboxComponent, [{ optional: true; self: true; }, null]>;
1038
1043
  static ɵcmp: i0.ɵɵComponentDeclaration<CpsCheckboxComponent, "cps-checkbox", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "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; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
1039
1044
  }
1040
1045
 
@@ -1114,6 +1119,26 @@ declare class CpsInputComponent implements ControlValueAccessor, OnInit, OnChang
1114
1119
  * @group Props
1115
1120
  */
1116
1121
  ariaLabel: string;
1122
+ /**
1123
+ * WAI-ARIA role for the native input element.
1124
+ * @group Props
1125
+ */
1126
+ inputRole: string | null;
1127
+ /**
1128
+ * Whether the element controlled by this input is expanded.
1129
+ * @group Props
1130
+ */
1131
+ ariaExpanded: boolean | null;
1132
+ /**
1133
+ * Type of popup element the input controls.
1134
+ * @group Props
1135
+ */
1136
+ ariaHasPopup: string | null;
1137
+ /**
1138
+ * ID of the element controlled by this input.
1139
+ * @group Props
1140
+ */
1141
+ ariaControls: string | null;
1117
1142
  /**
1118
1143
  * Bottom hint text for the input field.
1119
1144
  * @group Props
@@ -1315,7 +1340,7 @@ declare class CpsInputComponent implements ControlValueAccessor, OnInit, OnChang
1315
1340
  onInputMousedown(): void;
1316
1341
  focus(): void;
1317
1342
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsInputComponent, [{ optional: true; self: true; }, null]>;
1318
- 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>;
1343
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsInputComponent, "cps-input", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "inputRole": { "alias": "inputRole"; "required": false; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; }; "ariaControls": { "alias": "ariaControls"; "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>;
1319
1344
  }
1320
1345
 
1321
1346
  /**
@@ -1323,6 +1348,11 @@ declare class CpsInputComponent implements ControlValueAccessor, OnInit, OnChang
1323
1348
  * @group Types
1324
1349
  */
1325
1350
  type CpsDatepickerAppearanceType = 'outlined' | 'underlined' | 'borderless';
1351
+ /**
1352
+ * CpsDatepickerDateFormat defines the display and input format of the date string.
1353
+ * @group Types
1354
+ */
1355
+ type CpsDatepickerDateFormat = 'DD/MM/YYYY' | 'MM/DD/YYYY' | 'YYYY/MM/DD';
1326
1356
  /**
1327
1357
  * CpsDatepickerComponent is an input component to provide date input.
1328
1358
  * @group Components
@@ -1350,7 +1380,12 @@ declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, On
1350
1380
  */
1351
1381
  width: number | string;
1352
1382
  /**
1353
- * Placeholder text.
1383
+ * Date format for displaying and parsing the date string.
1384
+ * @group Props
1385
+ */
1386
+ dateFormat: CpsDatepickerDateFormat;
1387
+ /**
1388
+ * Placeholder text. Defaults to the configured dateFormat.
1354
1389
  * @group Props
1355
1390
  */
1356
1391
  placeholder: string;
@@ -1418,12 +1453,12 @@ declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, On
1418
1453
  * Minimal date availalbe for selection.
1419
1454
  * @group Props
1420
1455
  */
1421
- minDate: Date;
1456
+ minDate: Date | undefined;
1422
1457
  /**
1423
1458
  * Maximal date availalbe for selection.
1424
1459
  * @group Props
1425
1460
  */
1426
- maxDate: Date;
1461
+ maxDate: Date | undefined;
1427
1462
  /**
1428
1463
  * Value of the datepicker.
1429
1464
  * @default null
@@ -1439,16 +1474,24 @@ declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, On
1439
1474
  valueChanged: EventEmitter<Date | null>;
1440
1475
  datepickerInput: CpsInputComponent;
1441
1476
  calendarMenu: CpsMenuComponent;
1477
+ private _datepicker;
1478
+ readonly calendarId: string;
1442
1479
  stringDate: string;
1443
1480
  isOpened: boolean;
1444
1481
  error: string;
1445
1482
  cvtWidth: string;
1446
1483
  private _statusChangesSubscription?;
1447
1484
  private _value;
1485
+ private _focusCalendarOnOpen;
1486
+ private _suppressNextContentClick;
1487
+ private _captureKeydown;
1488
+ private _calendarContainer;
1448
1489
  constructor(_control: NgControl);
1449
1490
  ngOnInit(): void;
1450
- ngOnChanges(): void;
1491
+ ngOnChanges(changes: SimpleChanges): void;
1451
1492
  ngOnDestroy(): void;
1493
+ private _removeCalendarListeners;
1494
+ private _onCaptureKeydown;
1452
1495
  onChange: (_event: any) => void;
1453
1496
  onTouched: () => void;
1454
1497
  registerOnChange(fn: any): void;
@@ -1457,24 +1500,31 @@ declare class CpsDatepickerComponent implements ControlValueAccessor, OnInit, On
1457
1500
  writeValue(value: Date | null): void;
1458
1501
  private _updateValue;
1459
1502
  private _updateValueFromInputString;
1503
+ private _parseFormatParts;
1460
1504
  private _checkDateFormat;
1461
1505
  private _checkDateInRange;
1462
1506
  private _dateToString;
1463
1507
  private _stringToDate;
1464
1508
  private _checkErrors;
1465
- onClearCalendarDate(): void;
1466
1509
  onSelectCalendarDate(dateVal: Date | null): void;
1467
1510
  onInputBlur(): void;
1468
1511
  onInputFocus(): void;
1512
+ onInputKeydown(event: KeyboardEvent): void;
1469
1513
  onInputEnterClicked(): void;
1470
1514
  onClickCalendarIcon(): void;
1471
- onBeforeCalendarHidden(): void;
1515
+ onCalendarClick(_event: MouseEvent): void;
1516
+ onYearSelected(): void;
1517
+ private _initFocusableViewCell;
1518
+ onCalendarMenuShown(): void;
1519
+ private _focusActiveCalendarCell;
1520
+ onDatepickerMonthChange(): void;
1521
+ onBeforeCalendarHidden(reason: CpsMenuHideReason): void;
1472
1522
  onInputClear(): void;
1473
1523
  onCalendarContentClick(): void;
1474
1524
  focusInput(): void;
1475
- toggleCalendar(show?: boolean): void;
1525
+ toggleCalendar(show?: boolean, needFocusInput?: boolean): void;
1476
1526
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsDatepickerComponent, [{ optional: true; self: true; }]>;
1477
- 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>;
1527
+ 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; }; "dateFormat": { "alias": "dateFormat"; "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>;
1478
1528
  }
1479
1529
 
1480
1530
  /**
@@ -1487,7 +1537,6 @@ type CpsDividerType = 'solid' | 'dashed' | 'dotted';
1487
1537
  * @group Components
1488
1538
  */
1489
1539
  declare class CpsDividerComponent {
1490
- private document;
1491
1540
  /**
1492
1541
  * Determines whether the divider is vertically aligned.
1493
1542
  * @group Props
@@ -1509,10 +1558,10 @@ declare class CpsDividerComponent {
1509
1558
  /**
1510
1559
  * Thickness of the divider, a number denoting pixels or a string.
1511
1560
  * @group Props
1512
- * @default 1px
1561
+ * @default 0.0625rem
1513
1562
  */
1514
1563
  thickness: i0.InputSignal<string | number>;
1515
- constructor(document: Document);
1564
+ private document;
1516
1565
  borderTop: i0.Signal<string>;
1517
1566
  borderRight: i0.Signal<string>;
1518
1567
  private _constructBorder;
@@ -1524,7 +1573,7 @@ declare class CpsDividerComponent {
1524
1573
  * CpsExpansionPanelComponent is a component that provides content on expansion.
1525
1574
  * @group Components
1526
1575
  */
1527
- declare class CpsExpansionPanelComponent implements OnInit, AfterViewInit {
1576
+ declare class CpsExpansionPanelComponent implements OnInit, OnChanges, AfterViewInit {
1528
1577
  private _animationBuilder;
1529
1578
  private document;
1530
1579
  private _renderer;
@@ -1559,7 +1608,7 @@ declare class CpsExpansionPanelComponent implements OnInit, AfterViewInit {
1559
1608
  */
1560
1609
  bordered: boolean;
1561
1610
  /**
1562
- * The border radius of the component.
1611
+ * The border radius of the component of type number denoting pixels or string.
1563
1612
  * @group Props
1564
1613
  */
1565
1614
  borderRadius: number | string;
@@ -1594,11 +1643,21 @@ declare class CpsExpansionPanelComponent implements OnInit, AfterViewInit {
1594
1643
  private _contentExpandAnimation;
1595
1644
  private _contentCollapseAnimation;
1596
1645
  private _contentAnimationPlayer;
1646
+ readonly contentPanelId: string;
1647
+ isKeyboardActive: boolean;
1648
+ cvtWidth: string;
1649
+ cvtBorderColor: string;
1650
+ cvtBackgroundColor: string;
1651
+ cvtBorderRadius: string;
1597
1652
  constructor(_animationBuilder: AnimationBuilder, document: Document, _renderer: Renderer2);
1598
1653
  ngOnInit(): void;
1654
+ ngOnChanges(changes: SimpleChanges): void;
1599
1655
  ngAfterViewInit(): void;
1656
+ onHeaderKeydown(event: KeyboardEvent): void;
1657
+ onHeaderKeyup(event: KeyboardEvent): void;
1600
1658
  toggleExpansion(): void;
1601
1659
  private _updateContentVisibilityStyles;
1660
+ private _logHeaderTitleError;
1602
1661
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsExpansionPanelComponent, never>;
1603
1662
  static ɵcmp: i0.ɵɵComponentDeclaration<CpsExpansionPanelComponent, "cps-expansion-panel", never, { "headerTitle": { "alias": "headerTitle"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "showChevron": { "alias": "showChevron"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "width": { "alias": "width"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; }, { "afterCollapse": "afterCollapse"; "afterExpand": "afterExpand"; }, never, ["*"], true, never>;
1604
1663
  }
@@ -2774,16 +2833,20 @@ declare class CpsSidebarMenuComponent {
2774
2833
  * CpsSwitchComponent is a component used to toggle a boolean value.
2775
2834
  * @group Components
2776
2835
  */
2777
- declare class CpsSwitchComponent implements ControlValueAccessor {
2836
+ declare class CpsSwitchComponent implements OnInit, OnChanges, ControlValueAccessor {
2778
2837
  private _control;
2779
- private _elementRef;
2780
2838
  /**
2781
- * Label of the component.
2839
+ * Label of the switch component.
2782
2840
  * @group Props
2783
2841
  */
2784
2842
  label: string;
2785
2843
  /**
2786
- * Determines whether the component is disabled.
2844
+ * Aria label for the switch component, used for accessibility, it takes precedence over label.
2845
+ * @group Props
2846
+ */
2847
+ ariaLabel: string;
2848
+ /**
2849
+ * Determines whether the switch component is disabled.
2787
2850
  * @group Props
2788
2851
  */
2789
2852
  disabled: boolean;
@@ -2826,7 +2889,10 @@ declare class CpsSwitchComponent implements ControlValueAccessor {
2826
2889
  */
2827
2890
  valueChanged: EventEmitter<boolean>;
2828
2891
  private _value;
2829
- constructor(_control: NgControl, _elementRef: ElementRef<HTMLElement>);
2892
+ switchInput?: ElementRef<HTMLInputElement>;
2893
+ constructor(_control: NgControl);
2894
+ ngOnInit(): void;
2895
+ ngOnChanges(): void;
2830
2896
  onChange: (_event: any) => void;
2831
2897
  onTouched: () => void;
2832
2898
  registerOnChange(fn: any): void;
@@ -2836,8 +2902,8 @@ declare class CpsSwitchComponent implements ControlValueAccessor {
2836
2902
  private _updateValue;
2837
2903
  setDisabledState(_disabled: boolean): void;
2838
2904
  focus(): void;
2839
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsSwitchComponent, [{ optional: true; self: true; }, null]>;
2840
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsSwitchComponent, "cps-switch", never, { "label": { "alias": "label"; "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; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
2905
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsSwitchComponent, [{ optional: true; self: true; }]>;
2906
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsSwitchComponent, "cps-switch", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "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; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
2841
2907
  }
2842
2908
 
2843
2909
  /**
@@ -4048,7 +4114,7 @@ declare class CpsTableDetectFilterTypePipe implements PipeTransform {
4048
4114
  * CpsTagComponent is used to categorize content.
4049
4115
  * @group Components
4050
4116
  */
4051
- declare class CpsTagComponent implements ControlValueAccessor, OnChanges {
4117
+ declare class CpsTagComponent implements ControlValueAccessor, OnInit, OnChanges {
4052
4118
  private _control;
4053
4119
  private document;
4054
4120
  /**
@@ -4085,17 +4151,23 @@ declare class CpsTagComponent implements ControlValueAccessor, OnChanges {
4085
4151
  */
4086
4152
  valueChanged: EventEmitter<boolean>;
4087
4153
  classesList: string[];
4154
+ pressing: boolean;
4155
+ cvtColor: string;
4088
4156
  private _value;
4089
4157
  constructor(_control: NgControl, document: Document);
4090
- ngOnChanges(): void;
4158
+ ngOnInit(): void;
4159
+ ngOnChanges(changes: SimpleChanges): void;
4091
4160
  setClasses(): void;
4092
4161
  onChange: (_event: any) => void;
4093
4162
  onTouched: () => void;
4094
4163
  registerOnChange(fn: any): void;
4095
4164
  registerOnTouched(fn: any): void;
4096
4165
  writeValue(value: boolean): void;
4166
+ handleEnterKeydown(event: Event): void;
4167
+ handleSpaceKeydown(event: Event): void;
4097
4168
  toggleSelected(): void;
4098
4169
  private _updateValue;
4170
+ private _logMissingLabelError;
4099
4171
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsTagComponent, [{ optional: true; self: true; }, null]>;
4100
4172
  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>;
4101
4173
  }
@@ -5910,6 +5982,16 @@ interface CpsNotificationConfig {
5910
5982
  * @default undefined
5911
5983
  */
5912
5984
  maxWidth?: string;
5985
+ /**
5986
+ * Whether to announce error notifications politely instead of assertively.
5987
+ * @default false
5988
+ */
5989
+ politeError?: boolean;
5990
+ /**
5991
+ * Whether to announce warning notifications politely instead of assertively.
5992
+ * @default false
5993
+ */
5994
+ politeWarning?: boolean;
5913
5995
  }
5914
5996
 
5915
5997
  /**
@@ -5961,6 +6043,7 @@ declare class CpsNotificationService {
5961
6043
  private _createNotification;
5962
6044
  private _initConfig;
5963
6045
  private _appendNotificationToContainer;
6046
+ private _createContainerComponent;
5964
6047
  private _tryRemoveContainer;
5965
6048
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsNotificationService, never>;
5966
6049
  static ɵprov: i0.ɵɵInjectableDeclaration<CpsNotificationService>;
@@ -6443,4 +6526,4 @@ declare const getCSSColor: (val: string, _document: Document) => string;
6443
6526
  declare const getTextColor: (backgroundColor: string) => string;
6444
6527
 
6445
6528
  export { CPS_CRON_VALIDATION_SERVICE, CPS_FOCUS_SERVICE, CPS_RADIO_GROUP, CPS_ROOT_FONT_SIZE_SERVICE, CpsAutocompleteComponent, CpsButtonComponent, CpsButtonToggleComponent, CpsCheckboxComponent, CpsChipComponent, CpsColumnFilterMatchMode, CpsCronValidationService, CpsDatepickerComponent, CpsDialogConfig, CpsDialogRef, CpsDialogService, CpsDividerComponent, CpsExpansionPanelComponent, CpsFileUploadComponent, CpsFocusService, CpsIconComponent, CpsInfoCircleComponent, CpsInputComponent, CpsLoaderComponent, CpsMenuComponent, CpsMenuHideReason, CpsNotificationAppearance, CpsNotificationPosition, CpsNotificationService, CpsPaginatePipe, CpsPaginatorComponent, CpsProgressCircularComponent, CpsProgressLinearComponent, CpsRadioComponent, CpsRadioGroupComponent, CpsRootFontSizeService, CpsSchedulerComponent, CpsSelectComponent, CpsSidebarMenuComponent, CpsSwitchComponent, CpsTabComponent, CpsTabGroupComponent, CpsTableColumnFilterDirective, CpsTableColumnResizableDirective, CpsTableColumnSortableDirective, CpsTableComponent, CpsTableDetectFilterTypePipe, CpsTableHeaderSelectableDirective, CpsTableRowSelectableDirective, CpsTagComponent, CpsTextareaComponent, CpsThemeService, CpsTimepickerComponent, CpsTooltipDirective, CpsTreeAutocompleteComponent, CpsTreeSelectComponent, CpsTreeTableColumnFilterDirective, CpsTreeTableColumnResizableDirective, CpsTreeTableColumnSortableDirective, CpsTreeTableComponent, CpsTreeTableDetectFilterTypePipe, CpsTreeTableHeaderSelectableDirective, CpsTreeTableRowSelectableDirective, CpsTreetableRowTogglerDirective, ICONS_PATH, getCSSColor, getCpsColors, getTextColor, iconNames, tableFactory, treeTableFactory };
6446
- export type { CpsAutocompleteAppearanceType, CpsBaseTheme, CpsButtonToggleOption, CpsColorTheme, CpsColumnFilterCategoryOption, CpsColumnFilterType, CpsDatepickerAppearanceType, CpsDialogAutoFocusTarget, CpsDividerType, CpsInputAppearanceType, CpsMenuAttachPosition, CpsMenuItem, CpsNotificationConfig, CpsRadioOption, CpsRadiusTheme, CpsSelectAppearanceType, CpsSidebarMenuItem, CpsTabChangeEvent, CpsTableExportFormat, CpsTableSize, CpsTableSortMode, CpsTableToolbarSize, CpsTabsAlignmentType, CpsTabsAnimationType, CpsTheme, CpsTime, CpsTooltipOpenOn, CpsTooltipPosition, CpsTreeAutocompleteAppearanceType, CpsTreeSelectAppearanceType, CpsTreeTableSize, CpsTreeTableSortMode, CpsTreeTableToolbarSize, IconType, iconSizeType };
6529
+ export type { CpsAutocompleteAppearanceType, CpsBaseTheme, CpsButtonToggleOption, CpsColorTheme, CpsColumnFilterCategoryOption, CpsColumnFilterType, CpsDatepickerAppearanceType, CpsDatepickerDateFormat, CpsDialogAutoFocusTarget, CpsDividerType, CpsInputAppearanceType, CpsMenuAttachPosition, CpsMenuItem, CpsNotificationConfig, CpsRadioOption, CpsRadiusTheme, CpsSelectAppearanceType, CpsSidebarMenuItem, CpsTabChangeEvent, CpsTableExportFormat, CpsTableSize, CpsTableSortMode, CpsTableToolbarSize, CpsTabsAlignmentType, CpsTabsAnimationType, CpsTheme, CpsTime, CpsTooltipOpenOn, CpsTooltipPosition, CpsTreeAutocompleteAppearanceType, CpsTreeSelectAppearanceType, CpsTreeTableSize, CpsTreeTableSortMode, CpsTreeTableToolbarSize, IconType, iconSizeType };