@fluxhub/fluxhub-lib 10.0.288 → 10.0.289
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 +69 -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/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 +100 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_auto_complete.d.ts +19 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -8670,6 +8670,71 @@
|
|
|
8670
8670
|
initend: [{ type: i0.Output }]
|
|
8671
8671
|
};
|
|
8672
8672
|
|
|
8673
|
+
var fh_win_auto_complete = /** @class */ (function () {
|
|
8674
|
+
function fh_win_auto_complete(dialogRef, toastr, data) {
|
|
8675
|
+
this.dialogRef = dialogRef;
|
|
8676
|
+
this.toastr = toastr;
|
|
8677
|
+
this.data = data;
|
|
8678
|
+
this.label = "";
|
|
8679
|
+
this.width = "100%";
|
|
8680
|
+
this.nota = false;
|
|
8681
|
+
this.nota_val = "";
|
|
8682
|
+
if (data == null)
|
|
8683
|
+
return;
|
|
8684
|
+
if (data != null) {
|
|
8685
|
+
var lab = "";
|
|
8686
|
+
var arrd = [];
|
|
8687
|
+
var nota = false;
|
|
8688
|
+
if (data.label != null)
|
|
8689
|
+
lab = data.label;
|
|
8690
|
+
if (data.arr_option != null)
|
|
8691
|
+
arrd = data.arr_option;
|
|
8692
|
+
if (data.nota != null)
|
|
8693
|
+
nota = data.nota;
|
|
8694
|
+
this.set_selection(lab, arrd, nota);
|
|
8695
|
+
}
|
|
8696
|
+
}
|
|
8697
|
+
fh_win_auto_complete.prototype.close = function () {
|
|
8698
|
+
this.dialogRef.close(null);
|
|
8699
|
+
};
|
|
8700
|
+
fh_win_auto_complete.prototype.set_selection = function (lab, myD, nota) {
|
|
8701
|
+
var _this = this;
|
|
8702
|
+
if (nota === void 0) { nota = false; }
|
|
8703
|
+
if (this.cmb_sel == null) {
|
|
8704
|
+
setTimeout(function () { _this.set_selection(lab, myD, nota); }, 500);
|
|
8705
|
+
return;
|
|
8706
|
+
}
|
|
8707
|
+
this.nota = nota;
|
|
8708
|
+
this.label = lab;
|
|
8709
|
+
for (var i = 0; i < myD.length; i++)
|
|
8710
|
+
this.cmb_sel.add_option(myD[i]);
|
|
8711
|
+
};
|
|
8712
|
+
fh_win_auto_complete.prototype.ok = function () {
|
|
8713
|
+
if (this.cmb_sel.getValue() == "-1") {
|
|
8714
|
+
this.toastr.error("Selezionare un valore");
|
|
8715
|
+
return;
|
|
8716
|
+
}
|
|
8717
|
+
this.cmb_sel.getObj().nota = this.nota_val;
|
|
8718
|
+
this.dialogRef.close(this.cmb_sel.getObj());
|
|
8719
|
+
};
|
|
8720
|
+
fh_win_auto_complete.prototype.ngAfterViewInit = function () { };
|
|
8721
|
+
return fh_win_auto_complete;
|
|
8722
|
+
}());
|
|
8723
|
+
fh_win_auto_complete.decorators = [
|
|
8724
|
+
{ type: i0.Component, args: [{
|
|
8725
|
+
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 "
|
|
8727
|
+
},] }
|
|
8728
|
+
];
|
|
8729
|
+
fh_win_auto_complete.ctorParameters = function () { return [
|
|
8730
|
+
{ type: dialog.MatDialogRef },
|
|
8731
|
+
{ type: i3.ToastrService },
|
|
8732
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
8733
|
+
]; };
|
|
8734
|
+
fh_win_auto_complete.propDecorators = {
|
|
8735
|
+
cmb_sel: [{ type: i0.ViewChild, args: ["cmb_sel",] }]
|
|
8736
|
+
};
|
|
8737
|
+
|
|
8673
8738
|
var ReplaceLineBreaks = /** @class */ (function () {
|
|
8674
8739
|
function ReplaceLineBreaks() {
|
|
8675
8740
|
}
|
|
@@ -14047,7 +14112,7 @@
|
|
|
14047
14112
|
win_salva_annulla,
|
|
14048
14113
|
FormBuilderComponent,
|
|
14049
14114
|
FormExecuterComponent,
|
|
14050
|
-
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
|
|
14115
|
+
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
14051
14116
|
],
|
|
14052
14117
|
declarations: [
|
|
14053
14118
|
fh_win_show_log_dett,
|
|
@@ -14124,7 +14189,7 @@
|
|
|
14124
14189
|
FHTableManager,
|
|
14125
14190
|
win_manage_values,
|
|
14126
14191
|
win_manage_roles,
|
|
14127
|
-
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
|
|
14192
|
+
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
14128
14193
|
],
|
|
14129
14194
|
providers: [HighlightService, ng2Dragula.DragulaService],
|
|
14130
14195
|
entryComponents: [
|
|
@@ -14166,7 +14231,7 @@
|
|
|
14166
14231
|
fh_win_ask_big_test,
|
|
14167
14232
|
fh_win_output,
|
|
14168
14233
|
fh_win_list, fh_win_picklist,
|
|
14169
|
-
fh_win_wait, fh_win_show_email, fh_win_show_email_s3
|
|
14234
|
+
fh_win_wait, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
14170
14235
|
],
|
|
14171
14236
|
},] }
|
|
14172
14237
|
];
|
|
@@ -16992,6 +17057,7 @@
|
|
|
16992
17057
|
exports.fh_win_ask_buttons = fh_win_ask_buttons;
|
|
16993
17058
|
exports.fh_win_ask_number = fh_win_ask_number;
|
|
16994
17059
|
exports.fh_win_ask_text = fh_win_ask_text;
|
|
17060
|
+
exports.fh_win_auto_complete = fh_win_auto_complete;
|
|
16995
17061
|
exports.fh_win_combo = fh_win_combo;
|
|
16996
17062
|
exports.fh_win_confirm = fh_win_confirm;
|
|
16997
17063
|
exports.fh_win_list = fh_win_list;
|