@fluxhub/fluxhub-lib 10.0.471 → 10.0.472

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.
@@ -8934,14 +8934,28 @@
8934
8934
  ];
8935
8935
 
8936
8936
  var fh_win_ask_number = /** @class */ (function () {
8937
- function fh_win_ask_number(dialogRef, toastr) {
8937
+ function fh_win_ask_number(dialogRef, toastr, data) {
8938
8938
  this.dialogRef = dialogRef;
8939
8939
  this.toastr = toastr;
8940
+ this.data = data;
8940
8941
  this.title = "";
8941
8942
  this.label = "";
8942
- this.valore = "";
8943
- this.valore_min = 1;
8943
+ this.valore = 0;
8944
+ this.valore_min = 0;
8944
8945
  this.valore_max = 1000000;
8946
+ this.decimal = 0;
8947
+ if (data.title != null)
8948
+ this.title = data.title;
8949
+ if (data.label != null)
8950
+ this.label = data.label;
8951
+ if (data.valore != null)
8952
+ this.valore = data.valore;
8953
+ if (data.valore_min != null)
8954
+ this.valore_min = data.valore_min;
8955
+ if (data.valore_max != null)
8956
+ this.valore_max = data.valore_max;
8957
+ if (data.decimal != null)
8958
+ this.decimal = data.decimal;
8945
8959
  }
8946
8960
  fh_win_ask_number.prototype.ngAfterViewInit = function () { };
8947
8961
  fh_win_ask_number.prototype.show = function () { };
@@ -8970,12 +8984,13 @@
8970
8984
  fh_win_ask_number.decorators = [
8971
8985
  { type: i0.Component, args: [{
8972
8986
  selector: "app-win_ask_text",
8973
- template: "\n <div\u00A0 \u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{\u00A0title\u00A0}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <mat-dialog-content style=\"font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input matInput type=\"number\" [(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\n >&nbsp;&nbsp;&nbsp;<button\n mat-flat-button\n color=\"warn\"\n (click)=\"chiudi()\"\n >\n ANNULLA\n </button>\n </mat-dialog-actions>\n</div>\n "
8987
+ template: "\n <div\u00A0 \u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{\u00A0title\u00A0}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <mat-dialog-content>\n <FHNumericField [label]=\"label\" [(ngModel)]=\"valore\"></FHNumericField>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button>\n </mat-dialog-actions>\n</div>\n "
8974
8988
  },] }
8975
8989
  ];
8976
8990
  fh_win_ask_number.ctorParameters = function () { return [
8977
8991
  { type: dialog.MatDialogRef },
8978
- { type: i3.ToastrService }
8992
+ { type: i3.ToastrService },
8993
+ { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
8979
8994
  ]; };
8980
8995
 
8981
8996
  var HighlightService = /** @class */ (function () {