@fluxhub/fluxhub-lib 10.0.177 → 10.0.179
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 +3 -20
- 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/fhcombobox.js +4 -21
- package/esm2015/public_api.js +1 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +3 -20
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcombobox.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6670,6 +6670,7 @@
|
|
|
6670
6670
|
this.label = "";
|
|
6671
6671
|
this.enabled = true;
|
|
6672
6672
|
this.required = false;
|
|
6673
|
+
this.show_empty = true;
|
|
6673
6674
|
this.sel_label = "";
|
|
6674
6675
|
this.tooltip = '';
|
|
6675
6676
|
this.fillend = new i0.EventEmitter();
|
|
@@ -6736,27 +6737,16 @@
|
|
|
6736
6737
|
p.sql = this.sql;
|
|
6737
6738
|
p.types = this.types;
|
|
6738
6739
|
p.values = this.values;
|
|
6739
|
-
var ok_op = false;
|
|
6740
6740
|
// console.log(p);
|
|
6741
6741
|
if (this.db_type == "1")
|
|
6742
6742
|
this._dataService.doQuery(p).subscribe(function (data) {
|
|
6743
|
-
var ok_op = false;
|
|
6744
6743
|
if (data != null)
|
|
6745
6744
|
if (data.result_msg == "OK") {
|
|
6746
6745
|
_this.resetD(data.result_data);
|
|
6747
|
-
ok_op = true;
|
|
6748
6746
|
}
|
|
6749
|
-
if (!ok_op) {
|
|
6750
|
-
}
|
|
6751
|
-
}, function (err) {
|
|
6752
|
-
_this.errorMsg =
|
|
6753
|
-
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
6754
|
-
_this.sql +
|
|
6755
|
-
"]";
|
|
6756
6747
|
});
|
|
6757
6748
|
if (this.db_type == "2")
|
|
6758
6749
|
this._dataService_odbc.doQuery(p).subscribe(function (data) {
|
|
6759
|
-
var ok_op = false;
|
|
6760
6750
|
if (data != null)
|
|
6761
6751
|
if (data.result_msg == "OK") {
|
|
6762
6752
|
for (var i = 0; i < data.result_data.length; i++) {
|
|
@@ -6767,15 +6757,7 @@
|
|
|
6767
6757
|
data.result_data[i].DESCRIZIONE_VALORE;
|
|
6768
6758
|
}
|
|
6769
6759
|
_this.resetD(data.result_data);
|
|
6770
|
-
ok_op = true;
|
|
6771
6760
|
}
|
|
6772
|
-
if (!ok_op) {
|
|
6773
|
-
}
|
|
6774
|
-
}, function (err) {
|
|
6775
|
-
_this.errorMsg =
|
|
6776
|
-
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
6777
|
-
_this.sql +
|
|
6778
|
-
"]";
|
|
6779
6761
|
});
|
|
6780
6762
|
};
|
|
6781
6763
|
FHComboboxComponent.prototype.add_option = function (o) {
|
|
@@ -7008,7 +6990,7 @@
|
|
|
7008
6990
|
{ type: i0.Component, args: [{
|
|
7009
6991
|
selector: "FHComboBox",
|
|
7010
6992
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
|
|
7011
|
-
template: "\n <div style=\"min-height:45px\" *ngIf=\"enabled && !hidden && !is_loaded && myData?.length==0\"><mat-spinner diameter=\"25\" ></mat-spinner></div>\n <mat-form-field\n [hidden]=\"!enabled || hidden || (!is_loaded && myData?.length==0)\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <mat-select\n #cmb\n [(ngModel)]=\"selval\"\n (selectionChange)=\"sc()\"\n [required]=\"required\"\n [matTooltip]=\"tooltip\"\n >\n <mat-option value=\"-1\">{{ sel_label }}</mat-option>\n <mat-option value=\"{{ app.valore }}\" *ngFor=\"let app of myData\">{{\n app.descrizione_valore\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"dis_value\"\n [matTooltip]=\"tooltip\"\n />\n </mat-form-field>\n ",
|
|
6993
|
+
template: "\n <div style=\"min-height:45px\" *ngIf=\"enabled && !hidden && !is_loaded && myData?.length==0\"><mat-spinner diameter=\"25\" ></mat-spinner></div>\n <mat-form-field\n [hidden]=\"!enabled || hidden || (!is_loaded && myData?.length==0)\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <mat-select\n #cmb\n [(ngModel)]=\"selval\"\n (selectionChange)=\"sc()\"\n [required]=\"required\"\n [matTooltip]=\"tooltip\"\n >\n <mat-option value=\"-1\" *ngIf=\"show_empty\">{{ sel_label }}</mat-option>\n <mat-option value=\"{{ app.valore }}\" *ngFor=\"let app of myData\">{{\n app.descrizione_valore\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"dis_value\"\n [matTooltip]=\"tooltip\"\n />\n </mat-form-field>\n ",
|
|
7012
6994
|
styles: [""]
|
|
7013
6995
|
},] }
|
|
7014
6996
|
];
|
|
@@ -7025,6 +7007,7 @@
|
|
|
7025
7007
|
label: [{ type: i0.Input }],
|
|
7026
7008
|
enabled: [{ type: i0.Input }],
|
|
7027
7009
|
required: [{ type: i0.Input }],
|
|
7010
|
+
show_empty: [{ type: i0.Input }],
|
|
7028
7011
|
sel_label: [{ type: i0.Input }],
|
|
7029
7012
|
tooltip: [{ type: i0.Input }],
|
|
7030
7013
|
smtr: [{ type: i0.ViewChild, args: ["cmb",] }],
|