cps-ui-kit 17.21.0 → 17.22.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.
@@ -1,4 +1,4 @@
1
- import { Type, ComponentRef, ApplicationRef, EnvironmentInjector, Injector } from '@angular/core';
1
+ import { Type, ComponentRef, ApplicationRef, EnvironmentInjector, Injector, OnDestroy } from '@angular/core';
2
2
  import { CpsDialogRef } from './utils/cps-dialog-ref';
3
3
  import { CpsDialogConfig } from './utils/cps-dialog-config';
4
4
  import { CpsDialogComponent } from './internal/components/cps-dialog/cps-dialog.component';
@@ -7,13 +7,16 @@ import * as i0 from "@angular/core";
7
7
  * Service for showing CpsDialog.
8
8
  * @group Services
9
9
  */
10
- export declare class CpsDialogService {
10
+ export declare class CpsDialogService implements OnDestroy {
11
11
  private _appRef;
12
12
  private _environmentInjector;
13
13
  private _injector;
14
14
  private document;
15
+ private _parentDialogService;
16
+ get openDialogs(): CpsDialogRef<any>[];
15
17
  dialogComponentRefMap: Map<CpsDialogRef, ComponentRef<CpsDialogComponent>>;
16
- constructor(_appRef: ApplicationRef, _environmentInjector: EnvironmentInjector, _injector: Injector, document: Document);
18
+ private _openDialogsAtThisLevel;
19
+ constructor(_appRef: ApplicationRef, _environmentInjector: EnvironmentInjector, _injector: Injector, document: Document, _parentDialogService: CpsDialogService);
17
20
  /**
18
21
  * Opens a dialog with a dynamically loaded component.
19
22
  * @param {*} componentType - Dynamic component for content template.
@@ -37,6 +40,8 @@ export declare class CpsDialogService {
37
40
  closeAll(force?: boolean): void;
38
41
  private appendDialogComponentToBody;
39
42
  private removeDialogComponentFromBody;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogService, never>;
43
+ ngOnDestroy(): void;
44
+ private _reverseForEach;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogService, [null, null, null, null, { optional: true; skipSelf: true; }]>;
41
46
  static ɵprov: i0.ɵɵInjectableDeclaration<CpsDialogService>;
42
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "17.21.0",
3
+ "version": "17.22.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",