@fluxhub/fluxhub-lib 1.0.364 → 1.0.366
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 +11 -7
- 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/fhgrid.js +8 -6
- package/esm2015/lib/controls/fhupload.js +2 -2
- package/esm2015/lib/controls/fhuploadpanel.js +6 -2
- package/esm5/lib/controls/fhgrid.js +8 -6
- package/esm5/lib/controls/fhupload.js +2 -2
- package/esm5/lib/controls/fhuploadpanel.js +6 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +11 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +11 -7
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3330,7 +3330,7 @@
|
|
|
3330
3330
|
FHUploadComponent.decorators = [
|
|
3331
3331
|
{ type: core.Component, args: [{
|
|
3332
3332
|
selector: 'FHUpload',
|
|
3333
|
-
template: "\n \n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div *ngIf=\"enabled && !loading\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-form-field class=\"field_style\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:210px\">\n <input type=\"file\"
|
|
3333
|
+
template: "\n \n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div *ngIf=\"enabled && !loading\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-form-field class=\"field_style\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:210px\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path 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\"/></svg><span> Upload</span></label>\n </div>\n <div>\n <button mat-raised-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\">{{label_b}}</button>\n </div>\n </div>\n <div *ngIf=\"!enabled\">\n <label>{{label}}:</label>{{descrizione}}\n </div>\n <div *ngIf=\"!b_ini\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n ",
|
|
3334
3334
|
styles: ["\n\n "]
|
|
3335
3335
|
}] }
|
|
3336
3336
|
];
|
|
@@ -3826,6 +3826,7 @@
|
|
|
3826
3826
|
this.sovrascrivi_path = '';
|
|
3827
3827
|
this.ruolo_supervisore = '[ZZZ_DIS_CC]';
|
|
3828
3828
|
this.access_control = false;
|
|
3829
|
+
this.show_images = true;
|
|
3829
3830
|
this.change = new core.EventEmitter();
|
|
3830
3831
|
this.App = '';
|
|
3831
3832
|
this.K = '';
|
|
@@ -4044,7 +4045,7 @@
|
|
|
4044
4045
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
4045
4046
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
4046
4047
|
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
4047
|
-
if (_this.arr_g[i].Filename.indexOf(".jpg") != -1 || _this.arr_g[i].Filename.indexOf(".gif") != -1 || _this.arr_g[i].Filename.indexOf(".png") != -1) {
|
|
4048
|
+
if ((_this.arr_g[i].Filename.indexOf(".jpg") != -1 || _this.arr_g[i].Filename.indexOf(".gif") != -1 || _this.arr_g[i].Filename.indexOf(".png") != -1) && _this.show_images) {
|
|
4048
4049
|
_this.arr_g[i].type = "IMG";
|
|
4049
4050
|
_this.arr_g[i].image_original = [_this.arr_g[i].url];
|
|
4050
4051
|
if (_this.arr_g[i].preview != null)
|
|
@@ -4085,6 +4086,7 @@
|
|
|
4085
4086
|
sovrascrivi_path: [{ type: core.Input }],
|
|
4086
4087
|
ruolo_supervisore: [{ type: core.Input }],
|
|
4087
4088
|
access_control: [{ type: core.Input }],
|
|
4089
|
+
show_images: [{ type: core.Input }],
|
|
4088
4090
|
change: [{ type: core.Output }],
|
|
4089
4091
|
upc: [{ type: core.ViewChild, args: ['upc',] }]
|
|
4090
4092
|
};
|
|
@@ -7484,11 +7486,13 @@
|
|
|
7484
7486
|
for (var i = 0; i < this.columnDefs.length; i++)
|
|
7485
7487
|
if (this.columnDefs[i] != null)
|
|
7486
7488
|
if (this.columnDefs[i].field != null)
|
|
7487
|
-
if (this.columnDefs[i].headerName != null)
|
|
7488
|
-
if (
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7489
|
+
if (this.columnDefs[i].headerName != null)
|
|
7490
|
+
if (this.columnDefs[i].field != '')
|
|
7491
|
+
if (this.columnDefs[i].headerName != '') {
|
|
7492
|
+
if (str_fields != '')
|
|
7493
|
+
str_fields += ',';
|
|
7494
|
+
str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
|
|
7495
|
+
}
|
|
7492
7496
|
cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
|
|
7493
7497
|
cmds.push(this.officeService.operation("EXCEL_CREA_TABELLA_FROM_DB_EXP_GRID_NEW", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "", this.xxopx++));
|
|
7494
7498
|
cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
|