@ieeesa-npm/presentation 0.12.9 → 0.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,8 +1,8 @@
1
- import { ComponentRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from "@angular/core";
2
- import { MatDialogRef } from "@angular/material/dialog";
3
- import { ModalType } from "@ieeesa-npm/utility";
4
- import { ToggleButton } from "../../models/toggle-button.model";
5
- import { Subject } from "rxjs";
1
+ import { ComponentRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { ModalType } from '@ieeesa-npm/utility';
4
+ import { ToggleButton } from '../../models/toggle-button.model';
5
+ import { Subject } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * This component encapsulates the functionality of a modal dialog and implements reusable contents part of the modal components such as text content, loading another component into the modal and emitting modal events to consumed component.
@@ -33,6 +33,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
33
33
  modalType: ModalType;
34
34
  isCloseNeeded: boolean;
35
35
  modalConfirm: EventEmitter<any>;
36
+ canCloseModal: boolean;
36
37
  constructor(dialogRef: MatDialogRef<ModalComponent>, modalData: any);
37
38
  /**
38
39
  * Initializes the component.
@@ -53,6 +54,12 @@ export declare class ModalComponent implements OnInit, OnDestroy {
53
54
  * @param {boolean} value - The confirmation value.
54
55
  */
55
56
  onConfirm(value: boolean): void;
57
+ /**
58
+ * Closes modal based on canCloseModal and emits an event.
59
+ * @param {boolean} value
60
+ * @memberof ModalComponent
61
+ */
62
+ onModalClose(value: boolean): void;
56
63
  /**
57
64
  * Returns dialog type
58
65
  * @return {number} value-Dialog type enum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.12.9",
3
+ "version": "0.13.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",