@fluxhub/fluxhub-lib 10.0.27 → 10.0.29
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 +65 -8
- 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 +7 -3
- package/esm2015/lib/controls/fhcombobox.js +33 -1
- package/esm2015/lib/controls/fhupload.js +10 -5
- package/esm2015/lib/controls/fhuploadpanel.js +9 -2
- package/esm2015/lib/controls/fhwinpicklist.js +10 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +63 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +4 -2
- package/lib/controls/fhuploadpanel.d.ts +2 -0
- package/lib/controls/fhwinpicklist.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2349,14 +2349,12 @@
|
|
|
2349
2349
|
};
|
|
2350
2350
|
FHPickListComponent.prototype.fill_list_arr = function (k, arrs) {
|
|
2351
2351
|
this.value_sel = [];
|
|
2352
|
-
console.log(k, arrs);
|
|
2353
2352
|
for (var i = 0; i < arrs.length; i++)
|
|
2354
2353
|
for (var y = 0; y < k.length; y++)
|
|
2355
2354
|
if (arrs[i] ==
|
|
2356
2355
|
k[y].valore) {
|
|
2357
2356
|
this.value_sel.push(k[y]);
|
|
2358
2357
|
}
|
|
2359
|
-
console.log('value_sel ', this.value_sel);
|
|
2360
2358
|
this.value_list = k;
|
|
2361
2359
|
for (var y = 0; y < this.value_sel.length; y++)
|
|
2362
2360
|
for (var i = this.value_list.length - 1; i >= 0; i--)
|
|
@@ -2423,6 +2421,15 @@
|
|
|
2423
2421
|
}
|
|
2424
2422
|
return sx;
|
|
2425
2423
|
};
|
|
2424
|
+
FHPickListComponent.prototype.getSelVal = function () {
|
|
2425
|
+
var sx = "";
|
|
2426
|
+
for (var i = 0; i < this.value_sel.length; i++) {
|
|
2427
|
+
if (sx != "")
|
|
2428
|
+
sx = sx + ",";
|
|
2429
|
+
sx = sx + this.value_sel[i].valore;
|
|
2430
|
+
}
|
|
2431
|
+
return sx;
|
|
2432
|
+
};
|
|
2426
2433
|
FHPickListComponent.prototype.getSelArr = function () {
|
|
2427
2434
|
return this.value_sel;
|
|
2428
2435
|
};
|
|
@@ -4024,6 +4031,7 @@
|
|
|
4024
4031
|
this.access_control = false;
|
|
4025
4032
|
this.show_images = true;
|
|
4026
4033
|
this.can_delete_owner = true;
|
|
4034
|
+
this.show_upload = true;
|
|
4027
4035
|
this.b_initt = false;
|
|
4028
4036
|
this.change = new i0.EventEmitter();
|
|
4029
4037
|
this.call_upload = new i0.EventEmitter();
|
|
@@ -4189,6 +4197,11 @@
|
|
|
4189
4197
|
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
4190
4198
|
this.ngAfterViewInit();
|
|
4191
4199
|
};
|
|
4200
|
+
FHUploadPanelComponent.prototype.do_upload = function (App, K, descri_all, m_p_tipo, m_programma_da_eseguire) {
|
|
4201
|
+
this
|
|
4202
|
+
.upc
|
|
4203
|
+
.init(App, K, descri_all, m_p_tipo, m_programma_da_eseguire, false, true, this.show_upload);
|
|
4204
|
+
};
|
|
4192
4205
|
FHUploadPanelComponent.prototype.ref_allegato = function () {
|
|
4193
4206
|
var _this = this;
|
|
4194
4207
|
if (this.App == null)
|
|
@@ -4304,7 +4317,7 @@
|
|
|
4304
4317
|
FHUploadPanelComponent.decorators = [
|
|
4305
4318
|
{ type: i0.Component, args: [{
|
|
4306
4319
|
selector: "FHUploadPanel",
|
|
4307
|
-
template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label != ''\">{{ label }}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload\n [single]=\"b_False\"\n\n [lascia_il_file] = \"force_en ? 'Drop here to confim':'Lascia il file per confermarmare upload'\"\n [trascina_il_file] = \"force_en ? 'Drop a file here o click to upload a file':'Trascina un file qui o Clicca per avviare upload'\"\n\n\n [label_attendere]=\"\n force_en ? 'UPLOADING' : 'ATTENDERE UPLOAD IN CORSO'\n \"\n [fixed_label]=\"\n force_en\n ? 'Attachments description (insert the description here before uploading the file)'\n : ' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)'\n \"\n [allegato_inserito]=\"\n force_en ? 'Attachment Inserted' : 'ALLEGATO INSERITO'\n \"\n [lista_allegati]=\"arr_g\"\n (change)=\"ref_allegato()\"\n (call_upload)=\"call_up($event)\"\n #upc\n ></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">{{ force_en ? \"Name\" : \"Nome\" }}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">\n {{ force_en ? \"Description\" : \"Descrizione\" }}\n </th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">\n {{ force_en ? \"Type\" : \"Tipo\" }}\n </th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\">{{ force_en ? \"User\" : \"Utente\" }}</th>\n <th style=\"width:240px;text-align:center\">\n {{ force_en ? \"Date\" : \"Data\" }}\n </th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n <td>{{ app.Filename }}</td>\n <td style=\"text-align:center\">{{ app.Filesize }}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Descrizione\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_descri(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Descrizione consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div\n [innerHTML]=\"app.descrizione_vis\"\n style=\"width:100%\"\n ></div>\n </div>\n </td>\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Tipo\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_tipo(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Tipologia consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\"></div>\n </div>\n </td>\n\n <td\n style=\"min-width:400px;min-height: 400px\"\n *ngIf=\"app.type == 'IMG'\"\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n <td *ngIf=\"app.type != 'IMG'\"></td>\n <td>{{ app.nc }}</td>\n <td style=\"text-align:center\">\n {{ app.dt_ins | date: \"dd/MM/yyyy HH:mm:ss\" }}\n </td>\n <td style=\"text-align:center\">\n\n <button [hidden]=\"app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1\"\n mat-icon-button\n matTooltip=\"Preview\"\n (click)=\"preview_email(app)\"\n >\n <mat-icon>visibility</mat-icon>\n </button>\n <button\n mat-icon-button\n matTooltip=\"Download File\"\n (click)=\"download_all(app)\"\n >\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a\n mat-icon-button\n matTooltip=\"Elimina File\"\n *ngIf=\"app.can_delete\"\n (click)=\"delete(app)\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Cancellazione consentita solo a: ' + app.can_delete_m\n \"\n *ngIf=\"!app.can_delete\"\n [disabled]=\"true\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">{{ force_en ? \"Name\" : \"Nome\" }}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">\n {{ force_en ? \"Description\" : \"Descrizione\" }}\n </th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">\n {{ force_en ? \"Type\" : \"Tipo\" }}\n </th>\n <th style=\"width:40%\"></th>\n\n <th style=\"width:10%\">{{ force_en ? \"User\" : \"Utente\" }}</th>\n <th style=\"width:240px;text-align:center\">\n {{ force_en ? \"Date\" : \"Data\" }}\n </th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n\n <td>{{ app.Filename }}</td>\n <td style=\"text-align:center\">{{ app.Filesize }}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Descrizione\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_descri(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Descrizione consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div\n [innerHTML]=\"app.descrizione_vis\"\n style=\"width:100%\"\n ></div>\n </div>\n </td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Tipo\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_tipo(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Tipologia consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\"></div>\n </div>\n </td>\n\n <td\n style=\"min-width:400px;min-height: 400px\"\n *ngIf=\"app.type == 'IMG'\"\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n <td *ngIf=\"app.type != 'IMG'\"></td>\n <td>{{ app.nc }}</td>\n <td style=\"text-align:center\">\n {{ app.dt_ins | date: \"dd/MM/yyyy HH:mm:ss\" }}\n </td>\n <td style=\"text-align:center\">\n\n <button [hidden]=\"app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1\"\n mat-icon-button\n matTooltip=\"Preview\"\n (click)=\"preview_email(app)\"\n >\n <mat-icon>visibility</mat-icon>\n </button>\n\n\n <button\n mat-icon-button\n matTooltip=\"Download File\"\n (click)=\"download_all(app)\"\n >\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a\n mat-icon-button\n matTooltip=\"Elimina File\"\n *ngIf=\"app.can_delete\"\n (click)=\"delete(app)\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Cancellazione consentita solo a: ' + app.can_delete_m\n \"\n *ngIf=\"!app.can_delete\"\n [disabled]=\"true\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">\n {{ app.Filename }}<br /><br />\n <button\n style=\"background-color: #F5F5F5\"\n (click)=\"download_all(app)\"\n mat-flat-button\n >\n DOWNLOAD\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\">\n <b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b>\n </div>\n ",
|
|
4320
|
+
template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label != ''\">{{ label }}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled || !show_upload\">\n <FHUpload\n [single]=\"b_False\"\n\n [lascia_il_file] = \"force_en ? 'Drop here to confim':'Lascia il file per confermarmare upload'\"\n [trascina_il_file] = \"force_en ? 'Drop a file here o click to upload a file':'Trascina un file qui o Clicca per avviare upload'\"\n\n\n [label_attendere]=\"\n force_en ? 'UPLOADING' : 'ATTENDERE UPLOAD IN CORSO'\n \"\n [fixed_label]=\"\n force_en\n ? 'Attachments description (insert the description here before uploading the file)'\n : ' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)'\n \"\n [allegato_inserito]=\"\n force_en ? 'Attachment Inserted' : 'ALLEGATO INSERITO'\n \"\n [lista_allegati]=\"arr_g\"\n (change)=\"ref_allegato()\"\n (call_upload)=\"call_up($event)\"\n #upc\n ></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">{{ force_en ? \"Name\" : \"Nome\" }}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">\n {{ force_en ? \"Description\" : \"Descrizione\" }}\n </th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">\n {{ force_en ? \"Type\" : \"Tipo\" }}\n </th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\">{{ force_en ? \"User\" : \"Utente\" }}</th>\n <th style=\"width:240px;text-align:center\">\n {{ force_en ? \"Date\" : \"Data\" }}\n </th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n <td>{{ app.Filename }}</td>\n <td style=\"text-align:center\">{{ app.Filesize }}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Descrizione\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_descri(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Descrizione consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div\n [innerHTML]=\"app.descrizione_vis\"\n style=\"width:100%\"\n ></div>\n </div>\n </td>\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Tipo\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_tipo(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Tipologia consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\"></div>\n </div>\n </td>\n\n <td\n style=\"min-width:400px;min-height: 400px\"\n *ngIf=\"app.type == 'IMG'\"\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n <td *ngIf=\"app.type != 'IMG'\"></td>\n <td>{{ app.nc }}</td>\n <td style=\"text-align:center\">\n {{ app.dt_ins | date: \"dd/MM/yyyy HH:mm:ss\" }}\n </td>\n <td style=\"text-align:center\">\n\n <button [hidden]=\"app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1\"\n mat-icon-button\n matTooltip=\"Preview\"\n (click)=\"preview_email(app)\"\n >\n <mat-icon>visibility</mat-icon>\n </button>\n <button\n mat-icon-button\n matTooltip=\"Download File\"\n (click)=\"download_all(app)\"\n >\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a\n mat-icon-button\n matTooltip=\"Elimina File\"\n *ngIf=\"app.can_delete\"\n (click)=\"delete(app)\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Cancellazione consentita solo a: ' + app.can_delete_m\n \"\n *ngIf=\"!app.can_delete\"\n [disabled]=\"true\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">{{ force_en ? \"Name\" : \"Nome\" }}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">\n {{ force_en ? \"Description\" : \"Descrizione\" }}\n </th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">\n {{ force_en ? \"Type\" : \"Tipo\" }}\n </th>\n <th style=\"width:40%\"></th>\n\n <th style=\"width:10%\">{{ force_en ? \"User\" : \"Utente\" }}</th>\n <th style=\"width:240px;text-align:center\">\n {{ force_en ? \"Date\" : \"Data\" }}\n </th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n\n <td>{{ app.Filename }}</td>\n <td style=\"text-align:center\">{{ app.Filesize }}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Descrizione\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_descri(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Descrizione consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div\n [innerHTML]=\"app.descrizione_vis\"\n style=\"width:100%\"\n ></div>\n </div>\n </td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Tipo\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_tipo(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Tipologia consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\"></div>\n </div>\n </td>\n\n <td\n style=\"min-width:400px;min-height: 400px\"\n *ngIf=\"app.type == 'IMG'\"\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n <td *ngIf=\"app.type != 'IMG'\"></td>\n <td>{{ app.nc }}</td>\n <td style=\"text-align:center\">\n {{ app.dt_ins | date: \"dd/MM/yyyy HH:mm:ss\" }}\n </td>\n <td style=\"text-align:center\">\n\n <button [hidden]=\"app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1\"\n mat-icon-button\n matTooltip=\"Preview\"\n (click)=\"preview_email(app)\"\n >\n <mat-icon>visibility</mat-icon>\n </button>\n\n\n <button\n mat-icon-button\n matTooltip=\"Download File\"\n (click)=\"download_all(app)\"\n >\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a\n mat-icon-button\n matTooltip=\"Elimina File\"\n *ngIf=\"app.can_delete\"\n (click)=\"delete(app)\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Cancellazione consentita solo a: ' + app.can_delete_m\n \"\n *ngIf=\"!app.can_delete\"\n [disabled]=\"true\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">\n {{ app.Filename }}<br /><br />\n <button\n style=\"background-color: #F5F5F5\"\n (click)=\"download_all(app)\"\n mat-flat-button\n >\n DOWNLOAD\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\">\n <b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b>\n </div>\n ",
|
|
4308
4321
|
styles: [""]
|
|
4309
4322
|
},] }
|
|
4310
4323
|
];
|
|
@@ -4325,6 +4338,7 @@
|
|
|
4325
4338
|
access_control: [{ type: i0.Input }],
|
|
4326
4339
|
show_images: [{ type: i0.Input }],
|
|
4327
4340
|
can_delete_owner: [{ type: i0.Input }],
|
|
4341
|
+
show_upload: [{ type: i0.Input }],
|
|
4328
4342
|
change: [{ type: i0.Output }],
|
|
4329
4343
|
call_upload: [{ type: i0.Output }],
|
|
4330
4344
|
upc: [{ type: i0.ViewChild, args: ["upc",] }]
|
|
@@ -4377,6 +4391,7 @@
|
|
|
4377
4391
|
maxFileSize: 500 * 1024 * 1024,
|
|
4378
4392
|
});
|
|
4379
4393
|
this.id = null;
|
|
4394
|
+
this.show_upload = true;
|
|
4380
4395
|
this.id_component = this.uti.newGuid();
|
|
4381
4396
|
this.username = this.app_s.user;
|
|
4382
4397
|
this.uploader.onBeforeUploadItem = function (item) {
|
|
@@ -4550,7 +4565,7 @@
|
|
|
4550
4565
|
form.append("descrizione", _this.descrizione);
|
|
4551
4566
|
form.append("single", _this.single);
|
|
4552
4567
|
form.append("username", _this.username);
|
|
4553
|
-
if (_this.multi_list)
|
|
4568
|
+
if (_this.multi_list && _this.show_upload)
|
|
4554
4569
|
form.append("tipo", _this.cmb_tipo.getDescri().split("-1").join(""));
|
|
4555
4570
|
else
|
|
4556
4571
|
form.append("tipo", _this.tipo);
|
|
@@ -4570,10 +4585,12 @@
|
|
|
4570
4585
|
}
|
|
4571
4586
|
this.uploader.uploadAll();
|
|
4572
4587
|
};
|
|
4573
|
-
FHUploadComponent.prototype.init = function (p_app, p_k, p_label, p_tipo, programma_da_eseguire, allow_delete) {
|
|
4588
|
+
FHUploadComponent.prototype.init = function (p_app, p_k, p_label, p_tipo, programma_da_eseguire, allow_delete, all_g, show_upload) {
|
|
4574
4589
|
if (p_tipo === void 0) { p_tipo = ""; }
|
|
4575
4590
|
if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
|
|
4576
4591
|
if (allow_delete === void 0) { allow_delete = false; }
|
|
4592
|
+
if (all_g === void 0) { all_g = false; }
|
|
4593
|
+
if (show_upload === void 0) { show_upload = true; }
|
|
4577
4594
|
this.App = p_app;
|
|
4578
4595
|
this.K = p_k;
|
|
4579
4596
|
this.label = p_label;
|
|
@@ -4590,6 +4607,9 @@
|
|
|
4590
4607
|
this.load_types();
|
|
4591
4608
|
//console.log('fillCombo');
|
|
4592
4609
|
}
|
|
4610
|
+
this.show_upload = show_upload;
|
|
4611
|
+
if (all_g)
|
|
4612
|
+
this.select_file.nativeElement.click();
|
|
4593
4613
|
};
|
|
4594
4614
|
FHUploadComponent.prototype.ref_allegato = function () {
|
|
4595
4615
|
var _this = this;
|
|
@@ -4628,7 +4648,7 @@
|
|
|
4628
4648
|
FHUploadComponent.decorators = [
|
|
4629
4649
|
{ type: i0.Component, args: [{
|
|
4630
4650
|
selector: "FHUpload",
|
|
4631
|
-
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 }}</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\" 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)\"\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\n [multiple]=\"false\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\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-raised-button\n *ngIf=\"id != null && allow_delete\"\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>{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
4651
|
+
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 }}</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\" 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)\"\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]=\"false\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\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-raised-button\n *ngIf=\"id != null && allow_delete\"\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>{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
4632
4652
|
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",
|
|
4633
4653
|
"\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"]
|
|
4634
4654
|
},] }
|
|
@@ -4658,6 +4678,7 @@
|
|
|
4658
4678
|
change: [{ type: i0.Output }],
|
|
4659
4679
|
upload_ended: [{ type: i0.Output }],
|
|
4660
4680
|
call_upload: [{ type: i0.Output }],
|
|
4681
|
+
select_file: [{ type: i0.ViewChild, args: ['select_file',] }],
|
|
4661
4682
|
cmb_tipo: [{ type: i0.ViewChild, args: ["cmb_tipo",] }]
|
|
4662
4683
|
};
|
|
4663
4684
|
|
|
@@ -6656,6 +6677,22 @@
|
|
|
6656
6677
|
this.update_dis();
|
|
6657
6678
|
return;
|
|
6658
6679
|
}
|
|
6680
|
+
if (desc_val != null)
|
|
6681
|
+
if (desc_val != '')
|
|
6682
|
+
if (desc_val != '-1') {
|
|
6683
|
+
var b_found = false;
|
|
6684
|
+
for (var index = 0; index < this.myData.length; index++) {
|
|
6685
|
+
if (this.myData[index].valore != null)
|
|
6686
|
+
if (this.myData[index].valore == desc_val) {
|
|
6687
|
+
b_found = true;
|
|
6688
|
+
break;
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
if (!b_found)
|
|
6692
|
+
this.myData.push({ valore: desc_val, descrizione_valore: desc_val });
|
|
6693
|
+
this.selval = desc_val;
|
|
6694
|
+
this.descri_val = desc_val;
|
|
6695
|
+
}
|
|
6659
6696
|
this.update_dis();
|
|
6660
6697
|
};
|
|
6661
6698
|
FHComboboxComponent.prototype.setByIndex = function (ind) {
|
|
@@ -6705,6 +6742,22 @@
|
|
|
6705
6742
|
return;
|
|
6706
6743
|
}
|
|
6707
6744
|
}
|
|
6745
|
+
if (desc_val != null)
|
|
6746
|
+
if (desc_val != '')
|
|
6747
|
+
if (desc_val != '-1') {
|
|
6748
|
+
var b_found = false;
|
|
6749
|
+
for (var index = 0; index < this.myData.length; index++) {
|
|
6750
|
+
if (this.myData[index].valore != null)
|
|
6751
|
+
if (this.myData[index].valore == desc_val) {
|
|
6752
|
+
b_found = true;
|
|
6753
|
+
break;
|
|
6754
|
+
}
|
|
6755
|
+
}
|
|
6756
|
+
if (!b_found)
|
|
6757
|
+
this.myData.push({ valore: desc_val, descrizione_valore: desc_val });
|
|
6758
|
+
this.selval = desc_val;
|
|
6759
|
+
this.descri_val = desc_val;
|
|
6760
|
+
}
|
|
6708
6761
|
this.update_dis();
|
|
6709
6762
|
};
|
|
6710
6763
|
FHComboboxComponent.prototype.getDescri = function () {
|
|
@@ -7061,7 +7114,6 @@
|
|
|
7061
7114
|
FHAutoCompleteComponent.prototype.setByValue = function (desc_val) {
|
|
7062
7115
|
var _this = this;
|
|
7063
7116
|
//console.log('setByValue ',desc_val);
|
|
7064
|
-
this.last_v = desc_val;
|
|
7065
7117
|
this.valDef = desc_val;
|
|
7066
7118
|
this.selval = desc_val;
|
|
7067
7119
|
if (this.myData != null) {
|
|
@@ -7080,7 +7132,11 @@
|
|
|
7080
7132
|
this.resetValue(false);
|
|
7081
7133
|
}
|
|
7082
7134
|
else {
|
|
7083
|
-
|
|
7135
|
+
if (!this.only_from_list) {
|
|
7136
|
+
this.sItem = this.selval;
|
|
7137
|
+
}
|
|
7138
|
+
else
|
|
7139
|
+
setTimeout(function () { _this.last_val_rec(); }, 1000);
|
|
7084
7140
|
return;
|
|
7085
7141
|
}
|
|
7086
7142
|
if (!this.only_from_list) {
|
|
@@ -7156,6 +7212,7 @@
|
|
|
7156
7212
|
});
|
|
7157
7213
|
};
|
|
7158
7214
|
FHAutoCompleteComponent.prototype.writeValue = function (value) {
|
|
7215
|
+
this.last_v = value;
|
|
7159
7216
|
this.setValue(value);
|
|
7160
7217
|
};
|
|
7161
7218
|
FHAutoCompleteComponent.prototype.registerOnChange = function (fn) {
|