@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.
- package/esm2020/lib/ui/components/base/base.dialog.mjs +14 -6
- package/fesm2015/osovitny-anatoly.mjs +13 -5
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +13 -5
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/base/base.dialog.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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.
|
|
3374
|
+
this._isOpen = false;
|
|
3375
3375
|
//Events
|
|
3376
3376
|
this.opened = new EventEmitter();
|
|
3377
3377
|
this.closed = new EventEmitter();
|
|
3378
3378
|
}
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
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;
|