monkey-style-guide 2.0.190 → 2.0.192

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.
@@ -9888,6 +9888,12 @@ class MonkeyModalComponent {
9888
9888
  this.modalService.close(this.modalRef);
9889
9889
  }
9890
9890
  };
9891
+ this._actionClose = () => {
9892
+ if (this.config?.action?.close?.action) {
9893
+ this.config?.action?.close?.action();
9894
+ }
9895
+ this.modalService.close(this.modalRef);
9896
+ };
9891
9897
  this._actionConfirm = () => {
9892
9898
  if (this.config?.action?.confirm?.action) {
9893
9899
  this.config?.action?.confirm?.action();
@@ -9923,9 +9929,6 @@ class MonkeyModalComponent {
9923
9929
  }
9924
9930
  };
9925
9931
  }
9926
- onClose() {
9927
- this.modalService.close(this.modalRef);
9928
- }
9929
9932
  }
9930
9933
  MonkeyModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyModalComponent, deps: [{ token: MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Component });
9931
9934
  MonkeyModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyModalComponent, selector: "monkey-modal", inputs: { config: "config", modalRef: "modalRef", onHandleConfirm: "onHandleConfirm" }, ngImport: i0, template: `
@@ -9937,11 +9940,11 @@ MonkeyModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
9937
9940
  config?.size || 'md'
9938
9941
  "
9939
9942
  >
9940
- <div class="header" *ngIf="config?.title">
9941
- <span class="h4">
9942
- {{ config?.title }}
9943
+ <div class="header">
9944
+ <span class="h4" *ngIf="config?.title">
9945
+ {{ config?.title }}
9943
9946
  </span>
9944
- <span class="close" (click)="onClose()" *ngIf="!config?.hideClose"> x </span>
9947
+ <span class="close" (click)="_actionClose()" *ngIf="!config?.hideClose"> x </span>
9945
9948
  </div>
9946
9949
  <div class="body">
9947
9950
  <ng-content></ng-content>
@@ -10020,11 +10023,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
10020
10023
  config?.size || 'md'
10021
10024
  "
10022
10025
  >
10023
- <div class="header" *ngIf="config?.title">
10024
- <span class="h4">
10025
- {{ config?.title }}
10026
+ <div class="header">
10027
+ <span class="h4" *ngIf="config?.title">
10028
+ {{ config?.title }}
10026
10029
  </span>
10027
- <span class="close" (click)="onClose()" *ngIf="!config?.hideClose"> x </span>
10030
+ <span class="close" (click)="_actionClose()" *ngIf="!config?.hideClose"> x </span>
10028
10031
  </div>
10029
10032
  <div class="body">
10030
10033
  <ng-content></ng-content>