@osovitny/anatoly 2.14.60 → 2.14.61

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.
@@ -3371,17 +3371,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3371
3371
  class BaseDialog extends BaseEditComponent {
3372
3372
  constructor() {
3373
3373
  super();
3374
- this.isOpen = false;
3374
+ this._isOpen = false;
3375
3375
  //Events
3376
3376
  this.opened = new EventEmitter();
3377
3377
  this.closed = new EventEmitter();
3378
3378
  }
3379
- open() {
3380
- if (this.beforeOpen) {
3381
- this.beforeOpen();
3379
+ get isOpen() {
3380
+ return this._isOpen;
3381
+ }
3382
+ set isOpen(value) {
3383
+ this._isOpen = value;
3384
+ if (value) {
3385
+ if (this.beforeOpen) {
3386
+ this.beforeOpen();
3387
+ }
3388
+ this.opened.emit();
3382
3389
  }
3390
+ }
3391
+ open() {
3383
3392
  this.isOpen = true;
3384
- this.opened.emit();
3385
3393
  }
3386
3394
  close(returnValue = null) {
3387
3395
  this.isOpen = false;