@fluxhub/fluxhub-lib 10.0.336 → 10.0.338
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 -5
- 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/fhfieldpicklist.js +7 -2
- package/esm2015/lib/controls/fhupload.js +3 -2
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +1 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +8 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhfieldpicklist.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4767,7 +4767,7 @@
|
|
|
4767
4767
|
FHUploadComponent.decorators = [
|
|
4768
4768
|
{ type: i0.Component, args: [{
|
|
4769
4769
|
selector: "FHUpload",
|
|
4770
|
-
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:380px\"\n fxLayoutAlign=\"start center\"\n >\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n > \n </div>\n <mat-form-field\n [hidden]=\"!show_descri\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }} {{ fixed_label }} {{ descri_obb ? '*':''}}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n \n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n -->\n <div class=\"my-drop-zone\"
|
|
4770
|
+
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:380px\"\n fxLayoutAlign=\"start center\"\n >\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n > \n </div>\n <mat-form-field\n [hidden]=\"!show_descri\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }} {{ fixed_label }} {{ descri_obb ? '*':''}}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n \n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n -->\n <div [hidden]=\"!(this.descri_obb && this.descrizione == '')\"><b>Compilare la descrizione</b></div>\n <div class=\"my-drop-zone\" [hidden]=\"this.descri_obb && this.descrizione == ''\" style=\"width:130px\" fxLayout=\"row\" [matTooltip]=\"hasBaseDropZoneOver ? lascia_il_file : trascina_il_file\" fxLayoutAlign=\"center start\">\n <label for=\"uploader-input\" ng2FileDrop style=\"font-weight:bold\"\n [ngClass]=\"{'over-drop-zone': hasBaseDropZoneOver}\" for=\"file-fh{{ id_component }}\"\n (onFileDrop)=\"onFileDrop($event)\" (click)=\"call_up()\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>\n\n <span style=\"font-size: 14px\"> Upload</span></div></label></div>\n <input type=\"file\"\n ng2FileSelect #select_file\n [multiple]=\"true\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\" (click)=\"call_up()\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;font-weight:bold\" color=\"accent\"\n\n >\n {{ label_b }}</button\n > \n <button\n mat-flat-button\n *ngIf=\"id != null && allow_delete && show_download_button\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label [hidden]=\"label==null || label==''\">{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
4771
4771
|
styles: ["\n .fileLabel{\n display: inline-block;\n padding: .7em .4em;\n font-size: 13px;\n color: #525252;\n background-color: #e6e6e6;\n margin: 0 .2em;\n border-radius: 5px;\n }\n",
|
|
4772
4772
|
"\n .my-drop-zone { border: dotted 3px lightgray;height:35px }\n\n", "\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\n ", "\n .another-file-over-class { border: dotted 3px green; }\n"]
|
|
4773
4773
|
},] }
|
|
@@ -12972,6 +12972,12 @@
|
|
|
12972
12972
|
this.onChange = function (_) { };
|
|
12973
12973
|
this.onTouched = function () { };
|
|
12974
12974
|
}
|
|
12975
|
+
FHFieldPickListComponent.prototype.setv = function () {
|
|
12976
|
+
var _this = this;
|
|
12977
|
+
setTimeout(function () {
|
|
12978
|
+
_this.writeValue(_this.value);
|
|
12979
|
+
}, 70);
|
|
12980
|
+
};
|
|
12975
12981
|
FHFieldPickListComponent.prototype.resetValue = function () {
|
|
12976
12982
|
this.value = "";
|
|
12977
12983
|
this.writeValue(this.value);
|
|
@@ -13023,7 +13029,7 @@
|
|
|
13023
13029
|
{ type: i0.Component, args: [{
|
|
13024
13030
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
|
|
13025
13031
|
selector: "FHFieldPickList",
|
|
13026
|
-
template: "\n <div\n fxLayout=\"row\" [hidden]=\"!enabled || hidden\"\n fxFlex=\"100\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"10px\"\n >\n <div fxFlex fxLayout=\"row\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [readonly]=\"only_in_list\"\n [(ngModel)]=\"value\"\n [required]=\"required\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"3px\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"open_pick_list()\"\n\n >\n SELEZIONA\n </button>\n <button\n mat-flat-button\n color=\"warn\"\n (click)=\"resetValue()\"\n\n >\n RESET\n </button>\n </div>\n </div>\n <mat-form-field appearance=\"outline\" [hidden]=\"enabled || hidden\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\" [matTooltip]=\"value\"\n\n matInput [disabled]=\"true\"\n\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n ",
|
|
13032
|
+
template: "\n <div\n fxLayout=\"row\" [hidden]=\"!enabled || hidden\"\n fxFlex=\"100\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"10px\"\n >\n <div fxFlex fxLayout=\"row\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [readonly]=\"only_in_list\"\n [(ngModel)]=\"value\"\n [required]=\"required\" (ngModelChange)=\"setv()\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"3px\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"open_pick_list()\"\n\n >\n SELEZIONA\n </button>\n <button\n mat-flat-button\n color=\"warn\"\n (click)=\"resetValue()\"\n\n >\n RESET\n </button>\n </div>\n </div>\n <mat-form-field appearance=\"outline\" [hidden]=\"enabled || hidden\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\" [matTooltip]=\"value\"\n\n matInput [disabled]=\"true\"\n\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n ",
|
|
13027
13033
|
styles: [""]
|
|
13028
13034
|
},] }
|
|
13029
13035
|
];
|
|
@@ -20418,7 +20424,6 @@
|
|
|
20418
20424
|
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
20419
20425
|
if (data != null)
|
|
20420
20426
|
if (data.result_msg == "OK") {
|
|
20421
|
-
console.log('data.result_data ', data.result_data);
|
|
20422
20427
|
if (_this.override_livs != null)
|
|
20423
20428
|
if (data.result_data != null)
|
|
20424
20429
|
for (var y = 0; y < _this.override_livs.length; y++)
|
|
@@ -20967,7 +20972,6 @@
|
|
|
20967
20972
|
dati_aggiuntivi_v2.prototype.onResize = function (event) { };
|
|
20968
20973
|
dati_aggiuntivi_v2.prototype.init_engine = function () {
|
|
20969
20974
|
var _this = this;
|
|
20970
|
-
console.log('init_engine ', this.m_route);
|
|
20971
20975
|
if (this.user_idp == null || this.m_route.params == null) {
|
|
20972
20976
|
setTimeout(function () {
|
|
20973
20977
|
_this.init_user_i();
|
|
@@ -20975,7 +20979,6 @@
|
|
|
20975
20979
|
}, 500);
|
|
20976
20980
|
return;
|
|
20977
20981
|
}
|
|
20978
|
-
console.log('this.m_route ', this.m_route.params);
|
|
20979
20982
|
this.m_route.params.subscribe(function (params) {
|
|
20980
20983
|
_this.onResize();
|
|
20981
20984
|
var id = params["op"];
|