@fluxhub/fluxhub-lib 10.0.43 → 10.0.45
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 +8 -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 +6 -4
- package/esm2015/lib/controls/fhcombobox.js +6 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +10 -5
- 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
|
@@ -6552,6 +6552,7 @@
|
|
|
6552
6552
|
this.errorMsg = "";
|
|
6553
6553
|
this.db_type = "1";
|
|
6554
6554
|
this.dis_value = "";
|
|
6555
|
+
this.is_loaded = false;
|
|
6555
6556
|
this.descri_val = "";
|
|
6556
6557
|
this.onChange = function (_) { };
|
|
6557
6558
|
this.onTouched = function () { };
|
|
@@ -6666,6 +6667,7 @@
|
|
|
6666
6667
|
this.setByValue(this.valDef);
|
|
6667
6668
|
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
6668
6669
|
this.setByDescri(this.valDef);
|
|
6670
|
+
this.is_loaded = true;
|
|
6669
6671
|
this.fillend.emit();
|
|
6670
6672
|
};
|
|
6671
6673
|
FHComboboxComponent.prototype.setByDescri = function (desc_val) {
|
|
@@ -6824,6 +6826,7 @@
|
|
|
6824
6826
|
this.add_option(o);
|
|
6825
6827
|
}
|
|
6826
6828
|
this.setByValue(this.valDef);
|
|
6829
|
+
this.is_loaded = true;
|
|
6827
6830
|
if (this.getValue() == "-1")
|
|
6828
6831
|
this.setByDescri(this.valDef);
|
|
6829
6832
|
};
|
|
@@ -6874,7 +6877,7 @@
|
|
|
6874
6877
|
{ type: i0.Component, args: [{
|
|
6875
6878
|
selector: "FHComboBox",
|
|
6876
6879
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
|
|
6877
|
-
template: "\n <div style=\"min-height:
|
|
6880
|
+
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 ",
|
|
6878
6881
|
styles: [""]
|
|
6879
6882
|
},] }
|
|
6880
6883
|
];
|
|
@@ -7048,6 +7051,7 @@
|
|
|
7048
7051
|
if (data != null) {
|
|
7049
7052
|
if (data.result_msg == "OK") {
|
|
7050
7053
|
_this.resetD(data.result_data);
|
|
7054
|
+
_this.is_loaded = true;
|
|
7051
7055
|
_this.fillend.emit();
|
|
7052
7056
|
}
|
|
7053
7057
|
}
|
|
@@ -7068,6 +7072,7 @@
|
|
|
7068
7072
|
}
|
|
7069
7073
|
}
|
|
7070
7074
|
_this.resetD(data.result_data);
|
|
7075
|
+
_this.is_loaded = true;
|
|
7071
7076
|
_this.fillend.emit();
|
|
7072
7077
|
ok_op = true;
|
|
7073
7078
|
}
|
|
@@ -7088,7 +7093,6 @@
|
|
|
7088
7093
|
return;
|
|
7089
7094
|
}
|
|
7090
7095
|
this.setByValue(this.valDef);
|
|
7091
|
-
this.is_loaded = true;
|
|
7092
7096
|
if ((this.getValue() == null || this.getValue() == "") &&
|
|
7093
7097
|
this.valDef != "") {
|
|
7094
7098
|
this.setByDescri(this.valDef);
|
|
@@ -7204,6 +7208,7 @@
|
|
|
7204
7208
|
this.myData.push(o);
|
|
7205
7209
|
}
|
|
7206
7210
|
this.table_hidden = false;
|
|
7211
|
+
this.is_loaded = true;
|
|
7207
7212
|
this.setByValue(this.valDef);
|
|
7208
7213
|
if (this.getValue() == "") {
|
|
7209
7214
|
this.setByDescri(this.valDef);
|
|
@@ -7240,7 +7245,7 @@
|
|
|
7240
7245
|
{ type: i0.Component, args: [{
|
|
7241
7246
|
selector: "FHAutoComplete",
|
|
7242
7247
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4],
|
|
7243
|
-
template: "\n <div style=\"min-height:
|
|
7248
|
+
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 <input\n matInput\n [disabled]=\"!enabled || hidden\"\n [matAutocomplete]=\"auto\"\n [required]=\"required\"\n (keyup)=\"onChange_up($event)\"\n [(ngModel)]=\"sItem\"\n (focus)=\"fi_search()\"\n (focusout)=\"fo_search($event)\"\n #searchp\n />\n </mat-form-field>\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"selectedSearchItem($event)\"\n autoActiveFirstOption\n >\n <mat-option\n *ngFor=\"let objx of searchItemsFiltered\"\n [value]=\"objx.descrizione_valore\"\n >\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\n <div class=\"ui negative message\" *ngIf=\"errorMsg != ''\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n {{ errorMsg }}\n </div>\n </div>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input type=\"text\" #el1 matInput [disabled]=\"true\" [required]=\"required\" [(ngModel)]=\"sItem\" />\n </mat-form-field>\n ",
|
|
7244
7249
|
styles: [""]
|
|
7245
7250
|
},] }
|
|
7246
7251
|
];
|