@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
|
@@ -3309,7 +3309,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3309
3309
|
FHUploadComponent.decorators = [
|
|
3310
3310
|
{ type: Component, args: [{
|
|
3311
3311
|
selector: 'FHUpload',
|
|
3312
|
-
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\"
|
|
3312
|
+
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 ",
|
|
3313
3313
|
styles: ["\n\n "]
|
|
3314
3314
|
}] }
|
|
3315
3315
|
];
|
|
@@ -3805,6 +3805,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3805
3805
|
this.sovrascrivi_path = '';
|
|
3806
3806
|
this.ruolo_supervisore = '[ZZZ_DIS_CC]';
|
|
3807
3807
|
this.access_control = false;
|
|
3808
|
+
this.show_images = true;
|
|
3808
3809
|
this.change = new EventEmitter();
|
|
3809
3810
|
this.App = '';
|
|
3810
3811
|
this.K = '';
|
|
@@ -4023,7 +4024,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
4023
4024
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
4024
4025
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
4025
4026
|
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
4026
|
-
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) {
|
|
4027
|
+
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) {
|
|
4027
4028
|
_this.arr_g[i].type = "IMG";
|
|
4028
4029
|
_this.arr_g[i].image_original = [_this.arr_g[i].url];
|
|
4029
4030
|
if (_this.arr_g[i].preview != null)
|
|
@@ -4064,6 +4065,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
4064
4065
|
sovrascrivi_path: [{ type: Input }],
|
|
4065
4066
|
ruolo_supervisore: [{ type: Input }],
|
|
4066
4067
|
access_control: [{ type: Input }],
|
|
4068
|
+
show_images: [{ type: Input }],
|
|
4067
4069
|
change: [{ type: Output }],
|
|
4068
4070
|
upc: [{ type: ViewChild, args: ['upc',] }]
|
|
4069
4071
|
};
|
|
@@ -7463,11 +7465,13 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7463
7465
|
for (var i = 0; i < this.columnDefs.length; i++)
|
|
7464
7466
|
if (this.columnDefs[i] != null)
|
|
7465
7467
|
if (this.columnDefs[i].field != null)
|
|
7466
|
-
if (this.columnDefs[i].headerName != null)
|
|
7467
|
-
if (
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7468
|
+
if (this.columnDefs[i].headerName != null)
|
|
7469
|
+
if (this.columnDefs[i].field != '')
|
|
7470
|
+
if (this.columnDefs[i].headerName != '') {
|
|
7471
|
+
if (str_fields != '')
|
|
7472
|
+
str_fields += ',';
|
|
7473
|
+
str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
|
|
7474
|
+
}
|
|
7471
7475
|
cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
|
|
7472
7476
|
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++));
|
|
7473
7477
|
cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
|