@fluxhub/fluxhub-lib 10.0.289 → 10.0.291
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +13 -1
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhautocomplete.js +13 -1
- package/esm2015/lib/controls/win_auto_complete.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -1
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhautocomplete.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7153,6 +7153,7 @@
|
|
|
7153
7153
|
this.descri_val = "";
|
|
7154
7154
|
this.sItem = "";
|
|
7155
7155
|
this.searchItemsFiltered = [];
|
|
7156
|
+
this.myData = [];
|
|
7156
7157
|
this.is_loaded = false;
|
|
7157
7158
|
this.selval = null;
|
|
7158
7159
|
this.errorMsg = "";
|
|
@@ -7212,6 +7213,17 @@
|
|
|
7212
7213
|
}
|
|
7213
7214
|
}
|
|
7214
7215
|
};
|
|
7216
|
+
FHAutoCompleteComponent.prototype.add_option = function (o) {
|
|
7217
|
+
var b_found = false;
|
|
7218
|
+
this.myData.map(function (v) {
|
|
7219
|
+
if (v.descrizione_valore == o.descrizione_valore || v.valore == o.valore)
|
|
7220
|
+
b_found = true;
|
|
7221
|
+
});
|
|
7222
|
+
if (!b_found) {
|
|
7223
|
+
// console.log('Inserisco ',o);
|
|
7224
|
+
this.myData.push(o);
|
|
7225
|
+
} //else console.log('Esiste già ',o);
|
|
7226
|
+
};
|
|
7215
7227
|
FHAutoCompleteComponent.prototype.selectedSearchItem = function (event) {
|
|
7216
7228
|
this.setByDescri(event.option.value);
|
|
7217
7229
|
this.sItem = event.option.value;
|
|
@@ -8723,7 +8735,7 @@
|
|
|
8723
8735
|
fh_win_auto_complete.decorators = [
|
|
8724
8736
|
{ type: i0.Component, args: [{
|
|
8725
8737
|
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 > \n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
|
|
8738
|
+
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 > \n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
|
|
8727
8739
|
},] }
|
|
8728
8740
|
];
|
|
8729
8741
|
fh_win_auto_complete.ctorParameters = function () { return [
|