@fluxhub/fluxhub-lib 10.0.14 → 10.0.16
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 +84 -6
- 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 +46 -17
- package/esm2015/lib/controls/fhuploadpanel_s3.js +38 -1
- package/esm2015/lib/controls/win_show_email.js +1 -1
- package/esm2015/lib/controls/win_show_email_s3.js +101 -0
- package/esm2015/lib/fluxhub-lib.module.js +5 -4
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +181 -20
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload_s3.d.ts +6 -0
- package/lib/controls/fhuploadpanel_s3.d.ts +1 -0
- package/lib/controls/win_show_email_s3.d.ts +19 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -1514,6 +1514,50 @@
|
|
|
1514
1514
|
{ type: UtilityService }
|
|
1515
1515
|
]; };
|
|
1516
1516
|
|
|
1517
|
+
var win_show_email_s3 = /** @class */ (function () {
|
|
1518
|
+
function win_show_email_s3(dialogRef, _fileservice, m_appService, data) {
|
|
1519
|
+
var _this = this;
|
|
1520
|
+
this.dialogRef = dialogRef;
|
|
1521
|
+
this._fileservice = _fileservice;
|
|
1522
|
+
this.m_appService = m_appService;
|
|
1523
|
+
this.data = data;
|
|
1524
|
+
this.allegati = [];
|
|
1525
|
+
this.App = "";
|
|
1526
|
+
this.K = "";
|
|
1527
|
+
this.email_obj = {};
|
|
1528
|
+
this.title = "ANTEPRIMA EMAIL";
|
|
1529
|
+
this.web_url = '';
|
|
1530
|
+
this.local_dir = '';
|
|
1531
|
+
this.web_url = data.web_url;
|
|
1532
|
+
this.local_dir = data.local_dir;
|
|
1533
|
+
var fs = new FSInput();
|
|
1534
|
+
fs.command = "exec_app";
|
|
1535
|
+
fs.p1 = "Email_Reader_S3";
|
|
1536
|
+
fs.p2 = this.web_url + '|' + this.local_dir + '|' + data.filename;
|
|
1537
|
+
this._fileservice.doQuery(fs).subscribe(function (data) {
|
|
1538
|
+
_this.email_obj = JSON.parse(data.msg);
|
|
1539
|
+
_this.allegati = _this.email_obj.allegati.split('||');
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
win_show_email_s3.prototype.init_w = function () {
|
|
1543
|
+
};
|
|
1544
|
+
win_show_email_s3.prototype.open_all = function (u) {
|
|
1545
|
+
window.open(this.web_url);
|
|
1546
|
+
};
|
|
1547
|
+
return win_show_email_s3;
|
|
1548
|
+
}());
|
|
1549
|
+
win_show_email_s3.decorators = [
|
|
1550
|
+
{ type: i0.Component, args: [{
|
|
1551
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"dialogRef.close(null)\" /> </div><br>\n <div style=\"width:1000px;overflow:auto;\" [style.height]=\"(m_appService.getState().body_h-240)+'px'\">\n <mat-toolbar color=\"primary\">{{title}}\n <span class=\"fill-remaining-space\"></span>\n\n </mat-toolbar>\n <br>\n\n <div style=\"width:100%;height:500px\">\n <div style=\"width:100%;height:100%\">\n <div fxLayout=\"column\">\n <div fxLayout=\"row\">\n <div style=\"width:100px\">From:</div>\n <div \u00A0[innerHTML]=\"email_obj.from\"\u00A0></div>\n </div>\n <div fxLayout=\"row\">\n <div style=\"width:100px\">To:</div>\n <div \u00A0[innerHTML]=\"email_obj.to\"\u00A0></div>\n </div>\n <div fxLayout=\"row\">\n <div style=\"width:100px\">CC:</div>\n <div \u00A0[innerHTML]=\"email_obj.cc\"\u00A0></div>\n </div>\n <div fxLayout=\"row\">\n <div style=\"width:100px\">Subject:</div>\n <div \u00A0[innerHTML]=\"email_obj.subject\"\u00A0></div>\n </div>\n <div style=\"width:100px\">Body:</div>\n <div style=\"overflow:auto;\" [style.height]=\"(m_appService.getState().body_h-490)+'px'\">\n <div fxLayout=\"row\" [hidden]=\"email_obj.is_html=='NO'\">\n\n <div \u00A0[innerHTML]=\"email_obj.body\"\u00A0></div>\n </div>\n <div fxLayout=\"row\" [hidden]=\"email_obj.is_html=='SI'\">\n\n <div>{{email_obj.body}}</div>\n </div>\n </div>\n <hr style=\"width:100%\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div style=\"width:100px\">Allegati:</div>\n <div *ngFor=\"let u of allegati\" >\n <button mat-raised-button color=\"primary\" (click)=\"open_all(u)\">{{u}}</button>\n </div>\n\n\n\n </div>\n\n\n </div>\n </div>\n </div>\n "
|
|
1552
|
+
},] }
|
|
1553
|
+
];
|
|
1554
|
+
win_show_email_s3.ctorParameters = function () { return [
|
|
1555
|
+
{ type: dialog.MatDialogRef },
|
|
1556
|
+
{ type: FileService },
|
|
1557
|
+
{ type: AppService },
|
|
1558
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
1559
|
+
]; };
|
|
1560
|
+
|
|
1517
1561
|
var FHUploadPanelS3Component = /** @class */ (function () {
|
|
1518
1562
|
function FHUploadPanelS3Component(_appservice, _dataService, toastr, dialog, fileService, uti) {
|
|
1519
1563
|
this._appservice = _appservice;
|
|
@@ -1580,6 +1624,27 @@
|
|
|
1580
1624
|
}
|
|
1581
1625
|
});
|
|
1582
1626
|
};
|
|
1627
|
+
FHUploadPanelS3Component.prototype.preview_email = function (ax) {
|
|
1628
|
+
var _this = this;
|
|
1629
|
+
var p = new FSInput();
|
|
1630
|
+
p.command = "exec_app";
|
|
1631
|
+
p.p1 = "s3_downloader";
|
|
1632
|
+
p.p2 = ax.uiid +
|
|
1633
|
+
"|" +
|
|
1634
|
+
this._appservice.user;
|
|
1635
|
+
this.fileService.doQuery(p).subscribe(function (data) {
|
|
1636
|
+
if (data != null)
|
|
1637
|
+
if (data.result_msg == "OK") {
|
|
1638
|
+
var str_mg = data.msg.split('|');
|
|
1639
|
+
if (str_mg[0] == 'OK') {
|
|
1640
|
+
var dialogRef = _this.dialog.open(win_show_email_s3, { data: { web_url: str_mg[1], local_dir: _this._appservice.LOCAL_PATH + '\\' + _this._appservice.user + '\\',
|
|
1641
|
+
filename: str_mg[1].split('/')[str_mg[1].split('/').length - 1] } });
|
|
1642
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
});
|
|
1647
|
+
};
|
|
1583
1648
|
FHUploadPanelS3Component.prototype.edit_tipo = function (ax) {
|
|
1584
1649
|
var _this = this;
|
|
1585
1650
|
var p = new QParam();
|
|
@@ -1773,7 +1838,7 @@
|
|
|
1773
1838
|
FHUploadPanelS3Component.decorators = [
|
|
1774
1839
|
{ type: i0.Component, args: [{
|
|
1775
1840
|
selector: "FHUploadPanelS3",
|
|
1776
|
-
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 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 ",
|
|
1841
|
+
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\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 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\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=\"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 ",
|
|
1777
1842
|
styles: [""]
|
|
1778
1843
|
},] }
|
|
1779
1844
|
];
|
|
@@ -1859,6 +1924,10 @@
|
|
|
1859
1924
|
this.change = new i0.EventEmitter();
|
|
1860
1925
|
this.upload_ended = new i0.EventEmitter();
|
|
1861
1926
|
this.call_upload = new i0.EventEmitter();
|
|
1927
|
+
this.hasBaseDropZoneOver = false;
|
|
1928
|
+
this.hasAnotherDropZoneOver = false;
|
|
1929
|
+
this.lascia_il_file = 'Lascia il file per confermarmare upload';
|
|
1930
|
+
this.trascina_il_file = 'Trascina un file qui o Clicca per avviare upload';
|
|
1862
1931
|
this.multi_list = false;
|
|
1863
1932
|
this.allow_delete = false;
|
|
1864
1933
|
this.loading = false;
|
|
@@ -1906,6 +1975,12 @@
|
|
|
1906
1975
|
}
|
|
1907
1976
|
};
|
|
1908
1977
|
}
|
|
1978
|
+
FHUploadS3Component.prototype.onFileDrop = function (o) {
|
|
1979
|
+
};
|
|
1980
|
+
FHUploadS3Component.prototype.fileOverBase = function (e) {
|
|
1981
|
+
console.log(e);
|
|
1982
|
+
this.hasBaseDropZoneOver = e;
|
|
1983
|
+
};
|
|
1909
1984
|
FHUploadS3Component.prototype.call_up = function () {
|
|
1910
1985
|
this.call_upload.emit({
|
|
1911
1986
|
App: this.App,
|
|
@@ -2129,7 +2204,7 @@
|
|
|
2129
2204
|
FHUploadS3Component.decorators = [
|
|
2130
2205
|
{ type: i0.Component, args: [{
|
|
2131
2206
|
selector: "FHUploadS3",
|
|
2132
|
-
template: "\n
|
|
2207
|
+
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 ",
|
|
2133
2208
|
styles: [""]
|
|
2134
2209
|
},] }
|
|
2135
2210
|
];
|
|
@@ -2155,7 +2230,9 @@
|
|
|
2155
2230
|
change: [{ type: i0.Output }],
|
|
2156
2231
|
upload_ended: [{ type: i0.Output }],
|
|
2157
2232
|
call_upload: [{ type: i0.Output }],
|
|
2158
|
-
cmb_tipo: [{ type: i0.ViewChild, args: ["cmb_tipo",] }]
|
|
2233
|
+
cmb_tipo: [{ type: i0.ViewChild, args: ["cmb_tipo",] }],
|
|
2234
|
+
lascia_il_file: [{ type: i0.Input }],
|
|
2235
|
+
trascina_il_file: [{ type: i0.Input }]
|
|
2159
2236
|
};
|
|
2160
2237
|
|
|
2161
2238
|
var FHPickListComponent = /** @class */ (function () {
|
|
@@ -13780,7 +13857,7 @@
|
|
|
13780
13857
|
win_salva_annulla,
|
|
13781
13858
|
FormBuilderComponent,
|
|
13782
13859
|
FormExecuterComponent,
|
|
13783
|
-
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email
|
|
13860
|
+
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email, win_show_email_s3
|
|
13784
13861
|
],
|
|
13785
13862
|
declarations: [
|
|
13786
13863
|
win_show_log_dett,
|
|
@@ -13858,7 +13935,7 @@
|
|
|
13858
13935
|
FHTableManager,
|
|
13859
13936
|
win_manage_values,
|
|
13860
13937
|
win_manage_roles,
|
|
13861
|
-
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email
|
|
13938
|
+
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email, win_show_email_s3
|
|
13862
13939
|
],
|
|
13863
13940
|
providers: [HighlightService, ng2Dragula.DragulaService],
|
|
13864
13941
|
entryComponents: [
|
|
@@ -13900,7 +13977,7 @@
|
|
|
13900
13977
|
WinAskTextBigComponent,
|
|
13901
13978
|
WinOutputComponent,
|
|
13902
13979
|
FHListPick, FHPickListComponent,
|
|
13903
|
-
WinWait, win_show_email
|
|
13980
|
+
WinWait, win_show_email, win_show_email_s3
|
|
13904
13981
|
],
|
|
13905
13982
|
},] }
|
|
13906
13983
|
];
|
|
@@ -16689,6 +16766,7 @@
|
|
|
16689
16766
|
exports.win_mappa = win_mappa;
|
|
16690
16767
|
exports.win_salva_annulla = win_salva_annulla;
|
|
16691
16768
|
exports.win_show_email = win_show_email;
|
|
16769
|
+
exports.win_show_email_s3 = win_show_email_s3;
|
|
16692
16770
|
exports.win_show_image = win_show_image;
|
|
16693
16771
|
exports.win_show_log_dett = win_show_log_dett;
|
|
16694
16772
|
exports.win_time_slider = win_time_slider;
|