@fluxhub/fluxhub-lib 9.0.138 → 9.0.140
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 +28 -23
- 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/fhupload_s3.js +21 -21
- package/esm2015/lib/controls/fhuploadpanel_s3.js +9 -2
- package/esm5/lib/controls/fhupload_s3.js +21 -22
- package/esm5/lib/controls/fhuploadpanel_s3.js +9 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +28 -21
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +28 -23
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel_s3.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1742,18 +1742,18 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1742
1742
|
this.tipo = "";
|
|
1743
1743
|
this.b_ini = false;
|
|
1744
1744
|
this.uploader = new FileUploader({
|
|
1745
|
-
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT +
|
|
1745
|
+
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new",
|
|
1746
1746
|
maxFileSize: 500 * 1024 * 1024,
|
|
1747
1747
|
});
|
|
1748
1748
|
this.id = null;
|
|
1749
|
-
this.p_cod_doc =
|
|
1750
|
-
this.p_section =
|
|
1751
|
-
this.p_system_type =
|
|
1749
|
+
this.p_cod_doc = "";
|
|
1750
|
+
this.p_section = "";
|
|
1751
|
+
this.p_system_type = "";
|
|
1752
1752
|
this.username = this.app_s.user;
|
|
1753
1753
|
this.uploader.onBeforeUploadItem = function (item) {
|
|
1754
1754
|
item.withCredentials = false;
|
|
1755
1755
|
};
|
|
1756
|
-
console.log(
|
|
1756
|
+
console.log("uploader ", this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new");
|
|
1757
1757
|
this.uploader.onCompleteItem = function (item, response, status, header) {
|
|
1758
1758
|
if (status === 200) {
|
|
1759
1759
|
_this.descrizione = "";
|
|
@@ -1908,20 +1908,18 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1908
1908
|
form.append("single", _this.single);
|
|
1909
1909
|
form.append("username", _this.username);
|
|
1910
1910
|
form.append("system_type", _this.p_system_type);
|
|
1911
|
-
form.append(
|
|
1912
|
-
form.append(
|
|
1913
|
-
form.append(
|
|
1914
|
-
form.append(
|
|
1915
|
-
form.append(
|
|
1916
|
-
form.append(
|
|
1917
|
-
|
|
1918
|
-
form.append(
|
|
1919
|
-
form.append(
|
|
1920
|
-
form.append(
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
// else form.append("tipo", this.tipo);
|
|
1924
|
-
form.append("tipo", '');
|
|
1911
|
+
form.append("uiid", _this.uti.newGuid());
|
|
1912
|
+
form.append("doc_number", _this.p_cod_doc);
|
|
1913
|
+
form.append("repo_uiid", "S3");
|
|
1914
|
+
form.append("parent_doc_type", _this.App);
|
|
1915
|
+
form.append("parent_doc_rif", _this.p_cod_doc);
|
|
1916
|
+
form.append("parent_doc_uiid", _this.K);
|
|
1917
|
+
console.log('onBuildItemForm!!!!!!!!!!!!!!!!!!!!!this.p_section ', _this.p_section);
|
|
1918
|
+
form.append("parent_doc_section", _this.p_section);
|
|
1919
|
+
form.append("version", 1);
|
|
1920
|
+
form.append("status", "PUBLISHED");
|
|
1921
|
+
form.append("p_owner", _this.app_s.user);
|
|
1922
|
+
form.append("tipo", "");
|
|
1925
1923
|
form.append("local_path", _this.app_s.LOCAL_PATH);
|
|
1926
1924
|
if (_this.programma_da_eseguire != "")
|
|
1927
1925
|
form.append("p1", _this.programma_da_eseguire);
|
|
@@ -2062,13 +2060,14 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
2062
2060
|
FHUploadS3Component = __decorate([
|
|
2063
2061
|
Component({
|
|
2064
2062
|
selector: "FHUploadS3",
|
|
2065
|
-
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{{ App }}\"\n id=\"file-fh{{ App }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ App }}\" 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\n ><span style=\"font-size: 12px\"> Upload</span></label\n >\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px\"\n >\n {{ label_b }}</button\n > \n <button\n mat-flat-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-flat-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 ",
|
|
2063
|
+
template: "\n\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{{ App }}\"\n id=\"file-fh{{ App }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ App }}\" 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\n ><span style=\"font-size: 12px\"> Upload</span></label\n >\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px\"\n >\n {{ label_b }}</button\n > \n <button\n mat-flat-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-flat-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 ",
|
|
2066
2064
|
styles: [""]
|
|
2067
2065
|
}),
|
|
2068
2066
|
__metadata("design:paramtypes", [QueryService,
|
|
2069
2067
|
ToastrService,
|
|
2070
2068
|
MatDialog,
|
|
2071
|
-
AppService,
|
|
2069
|
+
AppService,
|
|
2070
|
+
UtilityService])
|
|
2072
2071
|
], FHUploadS3Component);
|
|
2073
2072
|
return FHUploadS3Component;
|
|
2074
2073
|
}());
|
|
@@ -2424,7 +2423,13 @@ var FHUploadPanelS3Component = /** @class */ (function () {
|
|
|
2424
2423
|
});
|
|
2425
2424
|
};
|
|
2426
2425
|
FHUploadPanelS3Component.prototype.ngAfterViewInit = function () {
|
|
2426
|
+
};
|
|
2427
|
+
FHUploadPanelS3Component.prototype.init_upload = function () {
|
|
2427
2428
|
var _this = this;
|
|
2429
|
+
if (this.upc == null) {
|
|
2430
|
+
setTimeout(function () { _this.init_upload(); }, 500);
|
|
2431
|
+
return;
|
|
2432
|
+
}
|
|
2428
2433
|
setTimeout(function () {
|
|
2429
2434
|
setTimeout(function () {
|
|
2430
2435
|
_this.b_initt = true;
|
|
@@ -2448,7 +2453,7 @@ var FHUploadPanelS3Component = /** @class */ (function () {
|
|
|
2448
2453
|
this.m_p_section = p_section;
|
|
2449
2454
|
this.m_p_system_type = p_system_type;
|
|
2450
2455
|
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
2451
|
-
this.
|
|
2456
|
+
this.init_upload();
|
|
2452
2457
|
};
|
|
2453
2458
|
FHUploadPanelS3Component.prototype.ref_allegato = function () {
|
|
2454
2459
|
var _this = this;
|
|
@@ -2617,7 +2622,7 @@ var FHUploadPanelS3Component = /** @class */ (function () {
|
|
|
2617
2622
|
FHUploadPanelS3Component = __decorate([
|
|
2618
2623
|
Component({
|
|
2619
2624
|
selector: "FHUploadPanelS3",
|
|
2620
|
-
template: "\n\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label != ''\">{{ label }}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUploadS3\n [single]=\"b_False\"\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 ></FHUploadS3>\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 style=\"width:20%\">\n {{ force_en ? \"Version\" : \"Versione\" }}\n </th>\n\n <th *ngIf=\"image_mode\" 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.file_name_orig }}</td>\n <td style=\"text-align:center\">{{ app.dim }}</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>\n {{app.version}}\n </td>\n\n <td *ngIf=\"image_mode\"\n style=\"min-width:400px;min-height: 400px\"\n\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n\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 <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 ? \"Version\" : \"Versione\" }}\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.file_name_orig }}</td>\n <td style=\"text-align:center\">{{ app.dim }}</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>\n {{app.version}}\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 <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.file_name_orig }}<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\n </div>\n ",
|
|
2625
|
+
template: "\n\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label != ''\">{{ label }}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n\n <FHUploadS3\n [single]=\"b_False\"\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 ></FHUploadS3>\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 style=\"width:20%\">\n {{ force_en ? \"Version\" : \"Versione\" }}\n </th>\n\n <th *ngIf=\"image_mode\" 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.file_name_orig }}</td>\n <td style=\"text-align:center\">{{ app.dim }}</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>\n {{app.version}}\n </td>\n\n <td *ngIf=\"image_mode\"\n style=\"min-width:400px;min-height: 400px\"\n\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n\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 <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 ? \"Version\" : \"Versione\" }}\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.file_name_orig }}</td>\n <td style=\"text-align:center\">{{ app.dim }}</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>\n {{app.version}}\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 <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.file_name_orig }}<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\n </div>\n ",
|
|
2621
2626
|
styles: [""]
|
|
2622
2627
|
}),
|
|
2623
2628
|
__metadata("design:paramtypes", [AppService,
|