@fluxhub/fluxhub-lib 10.0.288 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +80 -3
- 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 +12 -1
- package/esm2015/lib/controls/win_auto_complete.js +100 -0
- package/esm2015/lib/fluxhub-lib.module.js +5 -4
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +111 -4
- 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/lib/controls/win_auto_complete.d.ts +19 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -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;
|
|
@@ -8670,6 +8681,71 @@
|
|
|
8670
8681
|
initend: [{ type: i0.Output }]
|
|
8671
8682
|
};
|
|
8672
8683
|
|
|
8684
|
+
var fh_win_auto_complete = /** @class */ (function () {
|
|
8685
|
+
function fh_win_auto_complete(dialogRef, toastr, data) {
|
|
8686
|
+
this.dialogRef = dialogRef;
|
|
8687
|
+
this.toastr = toastr;
|
|
8688
|
+
this.data = data;
|
|
8689
|
+
this.label = "";
|
|
8690
|
+
this.width = "100%";
|
|
8691
|
+
this.nota = false;
|
|
8692
|
+
this.nota_val = "";
|
|
8693
|
+
if (data == null)
|
|
8694
|
+
return;
|
|
8695
|
+
if (data != null) {
|
|
8696
|
+
var lab = "";
|
|
8697
|
+
var arrd = [];
|
|
8698
|
+
var nota = false;
|
|
8699
|
+
if (data.label != null)
|
|
8700
|
+
lab = data.label;
|
|
8701
|
+
if (data.arr_option != null)
|
|
8702
|
+
arrd = data.arr_option;
|
|
8703
|
+
if (data.nota != null)
|
|
8704
|
+
nota = data.nota;
|
|
8705
|
+
this.set_selection(lab, arrd, nota);
|
|
8706
|
+
}
|
|
8707
|
+
}
|
|
8708
|
+
fh_win_auto_complete.prototype.close = function () {
|
|
8709
|
+
this.dialogRef.close(null);
|
|
8710
|
+
};
|
|
8711
|
+
fh_win_auto_complete.prototype.set_selection = function (lab, myD, nota) {
|
|
8712
|
+
var _this = this;
|
|
8713
|
+
if (nota === void 0) { nota = false; }
|
|
8714
|
+
if (this.cmb_sel == null) {
|
|
8715
|
+
setTimeout(function () { _this.set_selection(lab, myD, nota); }, 500);
|
|
8716
|
+
return;
|
|
8717
|
+
}
|
|
8718
|
+
this.nota = nota;
|
|
8719
|
+
this.label = lab;
|
|
8720
|
+
for (var i = 0; i < myD.length; i++)
|
|
8721
|
+
this.cmb_sel.add_option(myD[i]);
|
|
8722
|
+
};
|
|
8723
|
+
fh_win_auto_complete.prototype.ok = function () {
|
|
8724
|
+
if (this.cmb_sel.getValue() == "-1") {
|
|
8725
|
+
this.toastr.error("Selezionare un valore");
|
|
8726
|
+
return;
|
|
8727
|
+
}
|
|
8728
|
+
this.cmb_sel.getObj().nota = this.nota_val;
|
|
8729
|
+
this.dialogRef.close(this.cmb_sel.getObj());
|
|
8730
|
+
};
|
|
8731
|
+
fh_win_auto_complete.prototype.ngAfterViewInit = function () { };
|
|
8732
|
+
return fh_win_auto_complete;
|
|
8733
|
+
}());
|
|
8734
|
+
fh_win_auto_complete.decorators = [
|
|
8735
|
+
{ type: i0.Component, args: [{
|
|
8736
|
+
selector: "fh_win_auto_complete",
|
|
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 > \n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
|
|
8738
|
+
},] }
|
|
8739
|
+
];
|
|
8740
|
+
fh_win_auto_complete.ctorParameters = function () { return [
|
|
8741
|
+
{ type: dialog.MatDialogRef },
|
|
8742
|
+
{ type: i3.ToastrService },
|
|
8743
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
8744
|
+
]; };
|
|
8745
|
+
fh_win_auto_complete.propDecorators = {
|
|
8746
|
+
cmb_sel: [{ type: i0.ViewChild, args: ["cmb_sel",] }]
|
|
8747
|
+
};
|
|
8748
|
+
|
|
8673
8749
|
var ReplaceLineBreaks = /** @class */ (function () {
|
|
8674
8750
|
function ReplaceLineBreaks() {
|
|
8675
8751
|
}
|
|
@@ -14047,7 +14123,7 @@
|
|
|
14047
14123
|
win_salva_annulla,
|
|
14048
14124
|
FormBuilderComponent,
|
|
14049
14125
|
FormExecuterComponent,
|
|
14050
|
-
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
|
|
14126
|
+
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
14051
14127
|
],
|
|
14052
14128
|
declarations: [
|
|
14053
14129
|
fh_win_show_log_dett,
|
|
@@ -14124,7 +14200,7 @@
|
|
|
14124
14200
|
FHTableManager,
|
|
14125
14201
|
win_manage_values,
|
|
14126
14202
|
win_manage_roles,
|
|
14127
|
-
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
|
|
14203
|
+
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
14128
14204
|
],
|
|
14129
14205
|
providers: [HighlightService, ng2Dragula.DragulaService],
|
|
14130
14206
|
entryComponents: [
|
|
@@ -14166,7 +14242,7 @@
|
|
|
14166
14242
|
fh_win_ask_big_test,
|
|
14167
14243
|
fh_win_output,
|
|
14168
14244
|
fh_win_list, fh_win_picklist,
|
|
14169
|
-
fh_win_wait, fh_win_show_email, fh_win_show_email_s3
|
|
14245
|
+
fh_win_wait, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
14170
14246
|
],
|
|
14171
14247
|
},] }
|
|
14172
14248
|
];
|
|
@@ -16992,6 +17068,7 @@
|
|
|
16992
17068
|
exports.fh_win_ask_buttons = fh_win_ask_buttons;
|
|
16993
17069
|
exports.fh_win_ask_number = fh_win_ask_number;
|
|
16994
17070
|
exports.fh_win_ask_text = fh_win_ask_text;
|
|
17071
|
+
exports.fh_win_auto_complete = fh_win_auto_complete;
|
|
16995
17072
|
exports.fh_win_combo = fh_win_combo;
|
|
16996
17073
|
exports.fh_win_confirm = fh_win_confirm;
|
|
16997
17074
|
exports.fh_win_list = fh_win_list;
|