@osovitny/anatoly 2.14.55 → 2.14.56

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.
@@ -3372,6 +3372,7 @@ class BaseDialog extends BaseEditComponent {
3372
3372
  constructor() {
3373
3373
  super();
3374
3374
  this._opened = false;
3375
+ this.closed = new EventEmitter();
3375
3376
  }
3376
3377
  get opened() {
3377
3378
  return this._opened;
@@ -3379,18 +3380,25 @@ class BaseDialog extends BaseEditComponent {
3379
3380
  open() {
3380
3381
  this._opened = true;
3381
3382
  }
3382
- close() {
3383
+ close(result = null) {
3383
3384
  this._opened = false;
3385
+ this.closed.emit(result);
3386
+ }
3387
+ cancel() {
3388
+ this._opened = false;
3389
+ this.closed.emit(-1);
3384
3390
  }
3385
3391
  }
3386
3392
  BaseDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
3387
- BaseDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseDialog, selector: "ng-component", inputs: { opened: "opened" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
3393
+ BaseDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseDialog, selector: "ng-component", inputs: { opened: "opened" }, outputs: { closed: "closed" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
3388
3394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, decorators: [{
3389
3395
  type: Component,
3390
3396
  args: [{
3391
3397
  template: ''
3392
3398
  }]
3393
- }], ctorParameters: function () { return []; }, propDecorators: { opened: [{
3399
+ }], ctorParameters: function () { return []; }, propDecorators: { closed: [{
3400
+ type: Output
3401
+ }], opened: [{
3394
3402
  type: Input
3395
3403
  }] } });
3396
3404