@fluxhub/fluxhub-lib 9.0.25 → 9.0.27

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.
@@ -2928,9 +2928,10 @@
2928
2928
  }());
2929
2929
 
2930
2930
  var WinAskTextBigComponent = /** @class */ (function () {
2931
- function WinAskTextBigComponent(dialogRef, toastr) {
2931
+ function WinAskTextBigComponent(dialogRef, toastr, data) {
2932
2932
  this.dialogRef = dialogRef;
2933
2933
  this.toastr = toastr;
2934
+ this.data = data;
2934
2935
  this.title = "";
2935
2936
  this.label = "";
2936
2937
  this.valore = "";
@@ -2938,6 +2939,22 @@
2938
2939
  this.show_annulla = true;
2939
2940
  this.show_ok = true;
2940
2941
  this.min_chars = 3;
2942
+ if (data != null) {
2943
+ if (data.title != null)
2944
+ this.title = data.title;
2945
+ if (data.label != null)
2946
+ this.label = data.label;
2947
+ if (data.valore != null)
2948
+ this.valore = data.valore;
2949
+ if (data.readonly != null)
2950
+ this.readonly = data.readonly;
2951
+ if (data.show_annulla != null)
2952
+ this.show_annulla = data.show_annulla;
2953
+ if (data.show_ok != null)
2954
+ this.show_ok = data.show_ok;
2955
+ if (data.min_chars != null)
2956
+ this.min_chars = data.min_chars;
2957
+ }
2941
2958
  }
2942
2959
  WinAskTextBigComponent.prototype.ngAfterViewInit = function () {
2943
2960
  };
@@ -2959,38 +2976,16 @@
2959
2976
  };
2960
2977
  WinAskTextBigComponent.ctorParameters = function () { return [
2961
2978
  { type: dialog.MatDialogRef },
2962
- { type: ngxToastr.ToastrService }
2979
+ { type: ngxToastr.ToastrService },
2980
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
2963
2981
  ]; };
2964
- __decorate([
2965
- core.Input(),
2966
- __metadata("design:type", String)
2967
- ], WinAskTextBigComponent.prototype, "title", void 0);
2968
- __decorate([
2969
- core.Input(),
2970
- __metadata("design:type", String)
2971
- ], WinAskTextBigComponent.prototype, "label", void 0);
2972
- __decorate([
2973
- core.Input(),
2974
- __metadata("design:type", String)
2975
- ], WinAskTextBigComponent.prototype, "valore", void 0);
2976
- __decorate([
2977
- core.Input(),
2978
- __metadata("design:type", Boolean)
2979
- ], WinAskTextBigComponent.prototype, "readonly", void 0);
2980
- __decorate([
2981
- core.Input(),
2982
- __metadata("design:type", Boolean)
2983
- ], WinAskTextBigComponent.prototype, "show_annulla", void 0);
2984
- __decorate([
2985
- core.Input(),
2986
- __metadata("design:type", Boolean)
2987
- ], WinAskTextBigComponent.prototype, "show_ok", void 0);
2988
2982
  WinAskTextBigComponent = __decorate([
2989
2983
  core.Component({
2990
2984
  selector: 'app-win_ask_text',
2991
2985
  template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:630px;font-size: 12px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <textarea matInput [readonly]=\"readonly\" [(ngModel)]=\"valore\" style=\"min-width:600px\" rows=\"15\"\n required></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n\n <button *ngIf=\"show_ok\" mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button>&nbsp;&nbsp;&nbsp;\n <button *ngIf=\"show_annulla\" mat-flat-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </div>\n\n\n "
2992
2986
  }),
2993
- __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService])
2987
+ __param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
2988
+ __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, Object])
2994
2989
  ], WinAskTextBigComponent);
2995
2990
  return WinAskTextBigComponent;
2996
2991
  }());
@@ -3443,14 +3438,27 @@
3443
3438
  }());
3444
3439
 
3445
3440
  var WinAskTextComponent = /** @class */ (function () {
3446
- function WinAskTextComponent(dialogRef, toastr) {
3441
+ function WinAskTextComponent(dialogRef, toastr, data) {
3447
3442
  this.dialogRef = dialogRef;
3448
3443
  this.toastr = toastr;
3444
+ this.data = data;
3449
3445
  this.title = "";
3450
3446
  this.label = "";
3451
3447
  this.valore = "";
3452
3448
  this.min_chars = 3;
3453
3449
  this.max_chars = 50;
3450
+ if (data != null) {
3451
+ if (data.title != null)
3452
+ this.title = data.title;
3453
+ if (data.label != null)
3454
+ this.label = data.label;
3455
+ if (data.valore != null)
3456
+ this.valore = data.valore;
3457
+ if (data.min_chars != null)
3458
+ this.min_chars = data.min_chars;
3459
+ if (data.max_chars != null)
3460
+ this.max_chars = data.max_chars;
3461
+ }
3454
3462
  }
3455
3463
  WinAskTextComponent.prototype.ngAfterViewInit = function () {
3456
3464
  };
@@ -3472,26 +3480,16 @@
3472
3480
  };
3473
3481
  WinAskTextComponent.ctorParameters = function () { return [
3474
3482
  { type: dialog.MatDialogRef },
3475
- { type: ngxToastr.ToastrService }
3483
+ { type: ngxToastr.ToastrService },
3484
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
3476
3485
  ]; };
3477
- __decorate([
3478
- core.Input(),
3479
- __metadata("design:type", String)
3480
- ], WinAskTextComponent.prototype, "title", void 0);
3481
- __decorate([
3482
- core.Input(),
3483
- __metadata("design:type", String)
3484
- ], WinAskTextComponent.prototype, "label", void 0);
3485
- __decorate([
3486
- core.Input(),
3487
- __metadata("design:type", String)
3488
- ], WinAskTextComponent.prototype, "valore", void 0);
3489
3486
  WinAskTextComponent = __decorate([
3490
3487
  core.Component({
3491
3488
  selector: 'app-win_ask_text',
3492
3489
  template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"font-size: 12px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} (min {{min_chars}} - max {{max_chars}} caratteri)</mat-label>\n <input matInput type=\"text\"\n [(ngModel)]=\"valore\" required>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button>&nbsp;&nbsp;&nbsp;<button\n mat-flat-button color=\"warn\" (click)=\"chiudi()\">ANNULLA\n </button>\n </mat-dialog-actions>\n\n\n "
3493
3490
  }),
3494
- __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService])
3491
+ __param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
3492
+ __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, Object])
3495
3493
  ], WinAskTextComponent);
3496
3494
  return WinAskTextComponent;
3497
3495
  }());