cps-ui-kit 22.0.0 → 22.1.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": "22.0.0",
3
+ "version": "22.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.3",
6
6
  "@angular/core": "^22.1.3",
@@ -160,6 +160,7 @@ declare class CpsTooltipDirective implements OnDestroy {
160
160
  private _document;
161
161
  private _platformId;
162
162
  private _domSanitizer;
163
+ private _liveAnnouncer;
163
164
  constructor();
164
165
  ngOnDestroy(): void;
165
166
  onMouseEnter(): void;
@@ -184,7 +185,6 @@ declare class CpsTooltipDirective implements OnDestroy {
184
185
  private _getCoordsForPosition;
185
186
  private _focusableIn;
186
187
  private _resolveAriaTarget;
187
- private _announce;
188
188
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsTooltipDirective, never>;
189
189
  static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTooltipDirective, "[cpsTooltip]", never, { "tooltip": { "alias": "cpsTooltip"; "required": true; "isSignal": true; }; "tooltipOpenDelay": { "alias": "tooltipOpenDelay"; "required": false; "isSignal": true; }; "tooltipCloseDelay": { "alias": "tooltipCloseDelay"; "required": false; "isSignal": true; }; "tooltipOpenOn": { "alias": "tooltipOpenOn"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltipPersistent": { "alias": "tooltipPersistent"; "required": false; "isSignal": true; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; "isSignal": true; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; "isSignal": true; }; "tooltipContentClass": { "alias": "tooltipContentClass"; "required": false; "isSignal": true; }; "tooltipOffset": { "alias": "tooltipOffset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
190
190
  }
@@ -242,7 +242,7 @@ declare class FilterService {
242
242
  };
243
243
  register(rule: string, fn: Function): void;
244
244
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterService, never>;
245
- static ɵprov: i0.ɵɵInjectableDeclaration<FilterService>;
245
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
246
246
  }
247
247
 
248
248
  /**
@@ -717,7 +717,7 @@ declare class OverlayService {
717
717
  add(event: any): void;
718
718
  emitParentDrag(container: Element): void;
719
719
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayService, never>;
720
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayService>;
720
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
721
721
  }
722
722
 
723
723
  /**
@@ -1324,7 +1324,7 @@ declare class TreeDragDropService {
1324
1324
  startDrag(event: TreeNodeDragEvent): void;
1325
1325
  stopDrag(event: TreeNodeDragEvent): void;
1326
1326
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeDragDropService, never>;
1327
- static ɵprov: i0.ɵɵInjectableDeclaration<TreeDragDropService>;
1327
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1328
1328
  }
1329
1329
 
1330
1330
  /**
@@ -7897,7 +7897,7 @@ declare class UseStyle {
7897
7897
  css: any;
7898
7898
  } | undefined;
7899
7899
  static ɵfac: i0.ɵɵFactoryDeclaration<UseStyle, never>;
7900
- static ɵprov: i0.ɵɵInjectableDeclaration<UseStyle>;
7900
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
7901
7901
  }
7902
7902
 
7903
7903
  declare class BaseStyle {
@@ -7942,7 +7942,7 @@ declare class BaseStyle {
7942
7942
  getCommonThemeStyleSheet: (params: any, props?: {}) => any;
7943
7943
  getThemeStyleSheet: (params: any, props?: {}) => string;
7944
7944
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseStyle, never>;
7945
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseStyle>;
7945
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
7946
7946
  }
7947
7947
 
7948
7948
  declare class ThemeProvider {
@@ -7959,7 +7959,7 @@ declare class ThemeProvider {
7959
7959
  loadCommonTheme(): void;
7960
7960
  setThemeConfig(config: ThemeConfigType): void;
7961
7961
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeProvider, never>;
7962
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeProvider>;
7962
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
7963
7963
  }
7964
7964
 
7965
7965
  declare class PrimeNG extends ThemeProvider {
@@ -7991,7 +7991,7 @@ declare class PrimeNG extends ThemeProvider {
7991
7991
  setTranslation(value: Translation): void;
7992
7992
  setConfig(config: PrimeNGConfigType): void;
7993
7993
  static ɵfac: i0.ɵɵFactoryDeclaration<PrimeNG, never>;
7994
- static ɵprov: i0.ɵɵInjectableDeclaration<PrimeNG>;
7994
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
7995
7995
  }
7996
7996
 
7997
7997
  type Nullable$2<T = void> = T | null | undefined;
@@ -8203,7 +8203,7 @@ declare function cn(...args: any[]): string | undefined;
8203
8203
  declare class BaseComponentStyle extends BaseStyle {
8204
8204
  name: string;
8205
8205
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentStyle, never>;
8206
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseComponentStyle>;
8206
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
8207
8207
  }
8208
8208
 
8209
8209
  declare class BaseComponent<PT = any> implements Lifecycle {
@@ -8419,7 +8419,7 @@ declare class ScrollerStyle extends BaseStyle {
8419
8419
  loadingIcon: string;
8420
8420
  };
8421
8421
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollerStyle, never>;
8422
- static ɵprov: i0.ɵɵInjectableDeclaration<ScrollerStyle>;
8422
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
8423
8423
  }
8424
8424
  interface ScrollerStyle extends BaseStyle {
8425
8425
  }
@@ -10356,7 +10356,7 @@ declare class PaginatorStyle extends BaseStyle {
10356
10356
  pcJumpToPageInput: string;
10357
10357
  };
10358
10358
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorStyle, never>;
10359
- static ɵprov: i0.ɵɵInjectableDeclaration<PaginatorStyle>;
10359
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
10360
10360
  }
10361
10361
  interface PaginatorStyle extends BaseStyle {
10362
10362
  }
@@ -12095,7 +12095,7 @@ declare class TableStyle extends BaseStyle {
12095
12095
  };
12096
12096
  };
12097
12097
  static ɵfac: i0.ɵɵFactoryDeclaration<TableStyle, never>;
12098
- static ɵprov: i0.ɵɵInjectableDeclaration<TableStyle>;
12098
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
12099
12099
  }
12100
12100
 
12101
12101
  declare class TableService {
@@ -12115,7 +12115,7 @@ declare class TableService {
12115
12115
  onValueChange(value: any): void;
12116
12116
  onColumnsChange(columns: any[]): void;
12117
12117
  static ɵfac: i0.ɵɵFactoryDeclaration<TableService, never>;
12118
- static ɵprov: i0.ɵɵInjectableDeclaration<TableService>;
12118
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
12119
12119
  }
12120
12120
  /**
12121
12121
  * Table displays data in tabular format.
@@ -13725,7 +13725,7 @@ declare class TreeTableStyle extends BaseStyle {
13725
13725
  scrollableFooterTable: string;
13726
13726
  };
13727
13727
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableStyle, never>;
13728
- static ɵprov: i0.ɵɵInjectableDeclaration<TreeTableStyle>;
13728
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
13729
13729
  }
13730
13730
  interface TreeTableStyle extends BaseStyle {
13731
13731
  }
@@ -13747,7 +13747,7 @@ declare class TreeTableService {
13747
13747
  onUIUpdate(value: any): void;
13748
13748
  onTotalRecordsChange(value: number): void;
13749
13749
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableService, never>;
13750
- static ɵprov: i0.ɵɵInjectableDeclaration<TreeTableService>;
13750
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
13751
13751
  }
13752
13752
  /**
13753
13753
  * TreeTable is used to display hierarchical data in tabular format.
@@ -15183,7 +15183,7 @@ declare class TreeStyle extends BaseStyle {
15183
15183
  dropPoint: string;
15184
15184
  };
15185
15185
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeStyle, never>;
15186
- static ɵprov: i0.ɵɵInjectableDeclaration<TreeStyle>;
15186
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
15187
15187
  }
15188
15188
  interface TreeStyle extends BaseStyle {
15189
15189
  }
@@ -17288,7 +17288,7 @@ declare class CpsDialogService implements OnDestroy {
17288
17288
  ngOnDestroy(): void;
17289
17289
  private _reverseForEach;
17290
17290
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogService, [null, null, null, null, { optional: true; skipSelf: true; }]>;
17291
- static ɵprov: i0.ɵɵInjectableDeclaration<CpsDialogService>;
17291
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
17292
17292
  }
17293
17293
 
17294
17294
  /**
@@ -17414,7 +17414,7 @@ declare class CpsNotificationService {
17414
17414
  private _createContainerComponent;
17415
17415
  private _tryRemoveContainer;
17416
17416
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsNotificationService, never>;
17417
- static ɵprov: i0.ɵɵInjectableDeclaration<CpsNotificationService>;
17417
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
17418
17418
  }
17419
17419
 
17420
17420
  /**
@@ -17465,7 +17465,7 @@ declare class CpsRootFontSizeService implements OnDestroy {
17465
17465
  private _refresh;
17466
17466
  private _readRootFontSize;
17467
17467
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsRootFontSizeService, never>;
17468
- static ɵprov: i0.ɵɵInjectableDeclaration<CpsRootFontSizeService>;
17468
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
17469
17469
  }
17470
17470
  /**
17471
17471
  * Injection token for the root font size service.
@@ -17524,13 +17524,21 @@ declare class CpsFocusService {
17524
17524
  */
17525
17525
  suppressNextFocusRing(el: HTMLElement): void;
17526
17526
  /**
17527
- * Focuses `el`, conditionally suppressing the focus-visible ring.
17527
+ * Focuses `el`, optionally suppressing its focus ring and passing native
17528
+ * focus options through to `HTMLElement.focus`.
17528
17529
  *
17529
- * When `showFocusRing` is `false`, adds the `suppress-focus-visible` CSS
17530
- * class to the element before focusing and removes it on the next `blur`
17531
- * event. This keeps the UI clean for pointer-initiated closes.
17530
+ * @param el - The element to focus.
17531
+ * @param showFocusRing - Whether the focus ring should be shown. When false, adds
17532
+ * the suppress-focus-visible CSS class to the element before focusing and removes
17533
+ * it on the next blur event to keep the UI clean for pointer-initiated closes.
17534
+ * @param options - Native focus options, e.g. `{ preventScroll: true }`.
17535
+ *
17536
+ * @example
17537
+ * ```ts
17538
+ * focusService.focusElement(button, true, { preventScroll: true });
17539
+ * ```
17532
17540
  */
17533
- focusElement(el: HTMLElement, showFocusRing: boolean): void;
17541
+ focusElement(el: HTMLElement, showFocusRing: boolean, options?: Parameters<HTMLElement['focus']>[0]): void;
17534
17542
  /**
17535
17543
  * Installs a Tab key focus trap on `container`.
17536
17544
  *
@@ -17545,7 +17553,7 @@ declare class CpsFocusService {
17545
17553
  private readonly _navigationKeys;
17546
17554
  constructor();
17547
17555
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsFocusService, never>;
17548
- static ɵprov: i0.ɵɵInjectableDeclaration<CpsFocusService>;
17556
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
17549
17557
  }
17550
17558
  /**
17551
17559
  * Injection token for the focus managing service.
@@ -17678,7 +17686,7 @@ declare class CpsThemeService {
17678
17686
  private saveBaseThemePreference;
17679
17687
  private saveRadiusThemePreference;
17680
17688
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsThemeService, never>;
17681
- static ɵprov: i0.ɵɵInjectableDeclaration<CpsThemeService>;
17689
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
17682
17690
  }
17683
17691
 
17684
17692
  /**
@@ -17859,7 +17867,7 @@ declare class CpsCronValidationService {
17859
17867
  */
17860
17868
  private _isValidMonthName;
17861
17869
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsCronValidationService, never>;
17862
- static ɵprov: i0.ɵɵInjectableDeclaration<CpsCronValidationService>;
17870
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
17863
17871
  }
17864
17872
  /**
17865
17873
  * Injection token for `CpsCronValidationService`.
@@ -17900,11 +17908,11 @@ declare class CpsLiveAnnouncerService implements OnDestroy {
17900
17908
  /**
17901
17909
  * Announces a message through the appropriate live region. Clears any
17902
17910
  * existing text first so the same message can be re-announced, then writes
17903
- * the new text on the next tick so screen readers observe the content change.
17904
- * After `duration` ms the region is cleared automatically; pass `0` to keep
17905
- * the message indefinitely. Defaults to 5000ms.
17911
+ * the new text after `delayMs` so screen readers observe the content change.
17912
+ * After `durationMs` the region is cleared automatically; pass `0` to keep
17913
+ * the message indefinitely. Defaults to a next-tick write and 5000ms duration.
17906
17914
  */
17907
- announce(message: string, politeness?: CpsLiveAnnouncerPoliteness, durationMs?: number): void;
17915
+ announce(message: string, politeness?: CpsLiveAnnouncerPoliteness, durationMs?: number, delayMs?: number): void;
17908
17916
  /**
17909
17917
  * Clears the live region without making a new announcement.
17910
17918
  */
@@ -17912,7 +17920,7 @@ declare class CpsLiveAnnouncerService implements OnDestroy {
17912
17920
  ngOnDestroy(): void;
17913
17921
  private _createElement;
17914
17922
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsLiveAnnouncerService, never>;
17915
- static ɵprov: i0.ɵɵInjectableDeclaration<CpsLiveAnnouncerService>;
17923
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
17916
17924
  }
17917
17925
  /**
17918
17926
  * Injection token for the live-announcer service.