raise-common-lib 0.0.150 → 0.0.152

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.
@@ -5,11 +5,15 @@ export interface DialogConfig {
5
5
  description?: string;
6
6
  saveBtnLabel?: string;
7
7
  cancelBtnLabel?: string;
8
+ discardBtnLabel?: string;
8
9
  showErrorIcon?: boolean;
9
10
  hideCloseIcon?: boolean;
10
11
  size?: string;
11
12
  hideSaveBtn?: boolean;
12
13
  hideCloseBtn?: boolean;
14
+ hideDiscardBtn?: boolean;
15
+ showZoomBtn?: boolean;
16
+ onCloseRequest?: (e: any) => Promise<boolean>;
13
17
  }
14
18
  export declare class CommonDeleteComponent implements OnInit {
15
19
  data: DialogConfig;
@@ -18,9 +22,10 @@ export declare class CommonDeleteComponent implements OnInit {
18
22
  title: string;
19
23
  saveBtnLabel: string;
20
24
  cancelBtnLabel: string;
25
+ discardBtnLabel: string;
21
26
  description: string;
22
27
  size: string;
28
+ showZoomBtn: boolean;
23
29
  constructor(data: DialogConfig, dialogRef: MatDialogRef<CommonDeleteComponent>);
24
30
  ngOnInit(): void;
25
- onSave(e: any): void;
26
31
  }
@@ -7,20 +7,28 @@ export declare class CommonDialogComponent implements OnInit {
7
7
  hideCloseIcon: boolean;
8
8
  hideCloseBtn: boolean;
9
9
  hideSaveBtn: boolean;
10
+ hideDiscardBtn: boolean;
10
11
  saveBtnLabel: string;
11
12
  cancelBtnLabel: string;
13
+ discardBtnLabel: string;
12
14
  showErrorIcon: boolean;
15
+ showZoomBtn: boolean;
16
+ onCloseRequest: Function;
17
+ dialogStyle: {};
13
18
  size: string;
14
19
  title: string;
15
20
  loading: boolean;
16
21
  saveEmit: EventEmitter<Function>;
17
22
  closeEmit: EventEmitter<Function>;
23
+ defaultSize: string;
18
24
  constructor(dialogRef: MatDialogRef<CommonDialogComponent>);
19
25
  footerContent: any;
20
26
  customFooter: boolean;
21
27
  ngAfterContentInit(): void;
22
28
  ngOnInit(): void;
23
- onClose(res?: any): void;
29
+ onClose(): void;
30
+ onZoom(): void;
24
31
  onSave(): void;
32
+ onDiscard(): void;
25
33
  private getInfo;
26
34
  }
@@ -35,6 +35,8 @@ export declare class DialogService {
35
35
  showErrorIcon?: boolean;
36
36
  size?: string;
37
37
  hideSaveBtn?: boolean;
38
+ onCloseRequest?: (e: any) => Promise<boolean>;
39
+ showZoomBtn?: boolean;
38
40
  }): import("@angular/material/dialog").MatDialogRef<CommonDeleteComponent, any>;
39
41
  showUnsavedChanges(data?: {
40
42
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib",
3
- "version": "0.0.150",
3
+ "version": "0.0.152",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^8.2.3 || ^9.0.0",
6
6
  "@angular/core": "^8.2.3 || ^9.0.0"
package/public-api.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from "./lib/form/encrypted-input/index.component";
23
23
  export * from "./lib/form/drawer-form/drawer-form.component";
24
24
  export * from "./lib/form/drawer-form/constants";
25
25
  export * from "./lib/form/toolbar-item/index.component";
26
+ export * from "./lib/dialog/common-dialog/index.component";
26
27
  export * from "./lib/service/common-function.service";
27
28
  export * from "./lib/service/icon-loader.service";
28
29
  export * from "./lib/service/dialog.service";
@@ -2,7 +2,6 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './public-api';
5
- export { CommonDeleteComponent as ɵd } from './lib/dialog/common-delete-dialog/index.component';
6
- export { CommonDialogComponent as ɵc } from './lib/dialog/common-dialog/index.component';
5
+ export { CommonDeleteComponent as ɵc } from './lib/dialog/common-delete-dialog/index.component';
7
6
  export { NewActionNotificationComponent as ɵb } from './lib/dialog/new-action-notification/new-action-notification.component';
8
7
  export { Debounce as ɵa } from './lib/utils/decorator';