cps-ui-kit 17.12.0 → 17.13.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 { Injector, Type, ComponentRef, ViewContainerRef } from '@angular/core';
1
+ import { Type, ComponentRef, ApplicationRef, EnvironmentInjector } 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';
@@ -8,11 +8,11 @@ import * as i0 from "@angular/core";
8
8
  * @group Services
9
9
  */
10
10
  export declare class CpsDialogService {
11
- private viewContainerRef;
12
- private injector;
11
+ private _appRef;
12
+ private _environmentInjector;
13
13
  private document;
14
14
  dialogComponentRefMap: Map<CpsDialogRef, ComponentRef<CpsDialogComponent>>;
15
- constructor(viewContainerRef: ViewContainerRef, injector: Injector, document: Document);
15
+ constructor(_appRef: ApplicationRef, _environmentInjector: EnvironmentInjector, document: Document);
16
16
  /**
17
17
  * Opens a dialog with a dynamically loaded component.
18
18
  * @param {*} componentType - Dynamic component for content template.
@@ -28,6 +28,12 @@ export declare class CpsDialogService {
28
28
  * @group Method
29
29
  */
30
30
  openConfirmationDialog(config: CpsDialogConfig): CpsDialogRef;
31
+ /**
32
+ * Closes all dialogs.
33
+ * @param {boolean} [force=false] - If true closes all dialogs even if they have disableClose set to true.
34
+ * @group Method
35
+ */
36
+ closeAll(force?: boolean): void;
31
37
  private appendDialogComponentToBody;
32
38
  private removeDialogComponentFromBody;
33
39
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "17.12.0",
3
+ "version": "17.13.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.1.2",
6
6
  "@angular/core": "^17.1.2",