monkey-style-guide 2.0.189 → 2.0.191

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.
@@ -6904,7 +6904,7 @@ MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
6904
6904
  {{ helperMessage }}
6905
6905
  </helper>
6906
6906
  </mecx-form-field-header>
6907
- <mecx-form-field-body>
6907
+ <mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() || _maxSizeErrorMessage">
6908
6908
  <input
6909
6909
  #fileInput
6910
6910
  hidden
@@ -6965,7 +6965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
6965
6965
  {{ helperMessage }}
6966
6966
  </helper>
6967
6967
  </mecx-form-field-header>
6968
- <mecx-form-field-body>
6968
+ <mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() || _maxSizeErrorMessage">
6969
6969
  <input
6970
6970
  #fileInput
6971
6971
  hidden
@@ -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,13 @@ 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">
9943
+ <div class="header">
9941
9944
  <span class="h4">
9942
- {{ config?.title }}
9945
+ <ng-container *ngIf="config?.title">
9946
+ {{ config?.title }}
9947
+ </ng-container>
9943
9948
  </span>
9944
- <span class="close" (click)="onClose()" *ngIf="!config?.hideClose"> x </span>
9949
+ <span class="close" (click)="_actionClose()" *ngIf="!config?.hideClose"> x </span>
9945
9950
  </div>
9946
9951
  <div class="body">
9947
9952
  <ng-content></ng-content>
@@ -10020,11 +10025,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
10020
10025
  config?.size || 'md'
10021
10026
  "
10022
10027
  >
10023
- <div class="header" *ngIf="config?.title">
10028
+ <div class="header">
10024
10029
  <span class="h4">
10025
- {{ config?.title }}
10030
+ <ng-container *ngIf="config?.title">
10031
+ {{ config?.title }}
10032
+ </ng-container>
10026
10033
  </span>
10027
- <span class="close" (click)="onClose()" *ngIf="!config?.hideClose"> x </span>
10034
+ <span class="close" (click)="_actionClose()" *ngIf="!config?.hideClose"> x </span>
10028
10035
  </div>
10029
10036
  <div class="body">
10030
10037
  <ng-content></ng-content>