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.
- package/esm2022/lib/services/cps-dialog/cps-dialog.service.mjs +33 -15
- package/esm2022/lib/services/cps-dialog/internal/components/cps-confirmation/cps-confirmation.component.mjs +2 -2
- package/fesm2022/cps-ui-kit.mjs +33 -15
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/lib/services/cps-dialog/cps-dialog.service.d.ts +10 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
12
|
-
private
|
|
11
|
+
private _appRef;
|
|
12
|
+
private _environmentInjector;
|
|
13
13
|
private document;
|
|
14
14
|
dialogComponentRefMap: Map<CpsDialogRef, ComponentRef<CpsDialogComponent>>;
|
|
15
|
-
constructor(
|
|
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>;
|