@fluxhub/fluxhub-lib 10.0.289 → 10.0.290

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.
@@ -7212,6 +7212,17 @@
7212
7212
  }
7213
7213
  }
7214
7214
  };
7215
+ FHAutoCompleteComponent.prototype.add_option = function (o) {
7216
+ var b_found = false;
7217
+ this.myData.map(function (v) {
7218
+ if (v.descrizione_valore == o.descrizione_valore || v.valore == o.valore)
7219
+ b_found = true;
7220
+ });
7221
+ if (!b_found) {
7222
+ // console.log('Inserisco ',o);
7223
+ this.myData.push(o);
7224
+ } //else console.log('Esiste già ',o);
7225
+ };
7215
7226
  FHAutoCompleteComponent.prototype.selectedSearchItem = function (event) {
7216
7227
  this.setByDescri(event.option.value);
7217
7228
  this.sItem = event.option.value;
@@ -8723,7 +8734,7 @@
8723
8734
  fh_win_auto_complete.decorators = [
8724
8735
  { type: i0.Component, args: [{
8725
8736
  selector: "fh_win_auto_complete",
8726
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div fxLayout=\"column\">\n <mat-dialog-content style=\"font-size: 15px;\">\n <div fxLayout=\"column\">\n <h3>\n {{ label | uppercase }}\n </h3>\n <FHAutoComplete #cmb_sel [init_fill]=\"false\"></FHAutoComplete>\n <mat-form-field *ngIf=\"nota\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Nota</mat-label>\n <textarea matInput [(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n </div>\n </mat-dialog-content>\n\n <mat-dialog-actions\n fxFlex=\"100\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
8737
+ template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div fxLayout=\"column\">\n <mat-dialog-content style=\"font-size: 15px;\">\n <div fxLayout=\"column\">\n <h3>\n {{ label | uppercase }}\n </h3>\n <FHAutoComplete #cmb_sel [init_fill]=\"false\" [only_from_list]=\"true\"></FHAutoComplete>\n <mat-form-field *ngIf=\"nota\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Nota</mat-label>\n <textarea matInput [(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n </div>\n </mat-dialog-content>\n\n <mat-dialog-actions\n fxFlex=\"100\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n >&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
8727
8738
  },] }
8728
8739
  ];
8729
8740
  fh_win_auto_complete.ctorParameters = function () { return [