@fluxhub/fluxhub-lib 1.0.209 → 1.0.211
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 +43 -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/docs/components/FHUploadComponent.html +57 -40
- package/docs/components/FHUploadPanelComponent.html +34 -4
- package/docs/components/win_uploads.html +70 -6
- package/docs/coverage.html +2 -2
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhupload.js +20 -7
- package/esm2015/lib/controls/fhuploadpanel.js +18 -4
- package/esm2015/lib/wkf_engine/win_uploads.js +35 -6
- package/esm5/lib/controls/fhupload.js +21 -8
- package/esm5/lib/controls/fhuploadpanel.js +8 -2
- package/esm5/lib/wkf_engine/win_uploads.js +23 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +65 -13
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +44 -9
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +3 -3
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/lib/wkf_engine/win_uploads.d.ts +3 -2
- package/package.json +1 -1
|
@@ -3031,6 +3031,7 @@
|
|
|
3031
3031
|
this.enabled = true;
|
|
3032
3032
|
this.label = '';
|
|
3033
3033
|
this.sovrascrivi_path = '';
|
|
3034
|
+
this.access_control = false;
|
|
3034
3035
|
this.change = new i0.EventEmitter();
|
|
3035
3036
|
this.App = '';
|
|
3036
3037
|
this.K = '';
|
|
@@ -3107,6 +3108,7 @@
|
|
|
3107
3108
|
* @return {?}
|
|
3108
3109
|
*/
|
|
3109
3110
|
function () {
|
|
3111
|
+
console.log('INIT1');
|
|
3110
3112
|
this.upc.single = false;
|
|
3111
3113
|
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
3112
3114
|
this
|
|
@@ -3163,13 +3165,14 @@
|
|
|
3163
3165
|
if ('3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|DS_STORE|DTD|DWG|DXF|EDITORCONFIG|EL|ENC|EOT|EPS|EPUB|ESLINTIGNORE|EXE|F4V|FAX|FB2|FLA|FLAC|FLV|FOLDER|GADGET|GDP|GEM|GIF|GITATTRIBUTES|GITIGNORE|GO|GPG|GZ|H|HANDLEBARS|HBS|HEIC|HS|HSL|HTM|HTML|IBOOKS|ICNS|ICO|ICS|IDX|IFF|IFO|IMAGE|IMG|IN|INDD|INF|INI|ISO|J2|JAR|JAVA|JPE|JPEG|JPG|JS|JSON|JSP|JSX|KEY|KF8|KMK|KSH|KUP|LESS|LEX|LICX|LISP|LIT|LNK|LOCK|LOG|LUA|M|M2V|M3U|M3U8|M4|M4A|M4R|M4V|MAP|MASTER|MC|MD|MDB|MDF|ME|MI|MID|MIDI|MK|MKV|MM|MO|MOBI|MOD|MOV|MP2|MP3|MP4|MPA|MPD|MPE|MPEG|MPG|MPGA|MPP|MPT|MSI|MSU|NEF|NES|NFO|NIX|NPMIGNORE|ODB|ODS|ODT|OGG|OGV|OST|OTF|OTT|OVA|OVF|P12|P7B|PAGES|PART|PCD|PDB|PDF|PEM|PFX|PGP|PH|PHAR|PHP|PKG|PL|PLIST|PM|PNG|PO|POM|POT|POTX|PPS|PPSX|PPT|PPTM|PPTX|PROP|PS|PS1|PSD|PSP|PST|PUB|PY|PYC|QT|RA|RAM|RAR|RAW|RB|RDF|RESX|RETRY|RM|ROM|RPM|RSA|RSS|RTF|RU|RUB|SASS|SCSS|SDF|SED|SH|SITEMAP|SKIN|SLDM|SLDX|SLN|SOL|SQL|SQLITE|STEP|STL|SVG|SWD|SWF|SWIFT|SYS|TAR|TCSH|TEX|TFIGNORE|TGA|TGZ|TIF|TIFF|TMP|TORRENT|TS|TSV|TTF|TWIG|TXT|UDF|VB|VBPROJ|VBS|VCD|VCS|VDI|VDX|VMDK|VOB|VSCODEIGNORE|VSD|VSS|VST|VSX|VTX|WAR|WAV|WBK|WEBINFO|WEBM|WEBP|WMA|WMF|WMV|WOFF|WOFF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH'.indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
|
|
3164
3166
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
3165
3167
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
3168
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user;
|
|
3166
3169
|
}
|
|
3167
3170
|
}
|
|
3168
3171
|
});
|
|
3169
3172
|
};
|
|
3170
3173
|
FHUploadPanelComponent.decorators = [
|
|
3171
3174
|
{ type: i0.Component, args: [{
|
|
3172
|
-
selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n\n <h3>{{label}}</h3>\n\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" (change)=\"ref_allegato()\" #upc></FHUpload>\n <br></div>\n\n <table width=\"98%\" class=\"fh_table\">\n <thead *ngIf=\"!b_mobile\">\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:50%\">Descrizione</th>\n <th style=\"width:240px;text-align:center\">Data</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\n <tr *ngFor=\"let app of arr_g\" style=\"font-size: 12px;\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button (click)=\"download_all(app)\" mat-raised-button>DOWNLOAD</button>\n </td>\n <td *ngIf=\"!b_mobile\">{{app.Filename}}</td>\n <td *ngIf=\"!b_mobile\" style=\"text-align:center\">{{app.Filesize}}</td>\n <td *ngIf=\"!b_mobile\">{{app.descrizione}}</td>\n <td *ngIf=\"!b_mobile\" style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td *ngIf=\"!b_mobile\" style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>save_alt</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"
|
|
3175
|
+
selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n\n <h3>{{label}}</h3>\n\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" [lista_allegati]=\"arr_g\" (change)=\"ref_allegato()\" #upc></FHUpload>\n <br></div>\n\n <table width=\"98%\" class=\"fh_table\">\n <thead *ngIf=\"!b_mobile\">\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:50%\">Descrizione</th>\n <th style=\"width:30%\">Utente</th>\n <th style=\"width:240px;text-align:center\">Data</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\n <tr *ngFor=\"let app of arr_g\" style=\"font-size: 12px;\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button (click)=\"download_all(app)\" mat-raised-button>DOWNLOAD</button>\n </td>\n <td *ngIf=\"!b_mobile\">{{app.Filename}}</td>\n <td *ngIf=\"!b_mobile\" style=\"text-align:center\">{{app.Filesize}}</td>\n <td *ngIf=\"!b_mobile\">{{app.descrizione}}</td>\n <td *ngIf=\"!b_mobile\">{{app.nc}}</td>\n <td *ngIf=\"!b_mobile\" style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td *ngIf=\"!b_mobile\" style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>save_alt</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n \n </td>\n\n </tr>\n </table>\n\n </div>\n </div>\n <div *ngIf=\"!b_ini\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
|
|
3173
3176
|
styles: ["\n\n \n\n "]
|
|
3174
3177
|
}] }
|
|
3175
3178
|
];
|
|
@@ -3187,6 +3190,7 @@
|
|
|
3187
3190
|
enabled: [{ type: i0.Input }],
|
|
3188
3191
|
label: [{ type: i0.Input }],
|
|
3189
3192
|
sovrascrivi_path: [{ type: i0.Input }],
|
|
3193
|
+
access_control: [{ type: i0.Input }],
|
|
3190
3194
|
change: [{ type: i0.Output }],
|
|
3191
3195
|
upc: [{ type: i0.ViewChild, args: ['upc',] }]
|
|
3192
3196
|
};
|
|
@@ -3266,6 +3270,7 @@
|
|
|
3266
3270
|
this.limit_string = 'Il file di <size>MB supera il limite di 500MB';
|
|
3267
3271
|
this.allegato_inserito = 'ALLEGATO INSERITO';
|
|
3268
3272
|
this.inserire_descrizione = 'Descrizione Obbligatoria';
|
|
3273
|
+
this.lista_allegati = [];
|
|
3269
3274
|
this.change = new i0.EventEmitter();
|
|
3270
3275
|
this.upload_ended = new i0.EventEmitter();
|
|
3271
3276
|
this.loading = false;
|
|
@@ -3276,7 +3281,6 @@
|
|
|
3276
3281
|
this.file_name = '';
|
|
3277
3282
|
this.label = '';
|
|
3278
3283
|
this.username = '';
|
|
3279
|
-
this.progress_p = 0;
|
|
3280
3284
|
this.b_edit_loaded = false;
|
|
3281
3285
|
this.tipo = '';
|
|
3282
3286
|
this.b_ini = false;
|
|
@@ -3308,6 +3312,7 @@
|
|
|
3308
3312
|
*/
|
|
3309
3313
|
function () {
|
|
3310
3314
|
var _this = this;
|
|
3315
|
+
console.log('INIT');
|
|
3311
3316
|
/** @type {?} */
|
|
3312
3317
|
var uo = {};
|
|
3313
3318
|
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
|
|
@@ -3324,8 +3329,9 @@
|
|
|
3324
3329
|
this.uploader.onErrorItem = function (a, b, c, d) {
|
|
3325
3330
|
_this.toastr.error(b);
|
|
3326
3331
|
};
|
|
3327
|
-
this.uploader.onAfterAddingFile = function () {
|
|
3328
|
-
|
|
3332
|
+
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
3333
|
+
console.log('onAfterAddingFile');
|
|
3334
|
+
_this.ch(fileItem);
|
|
3329
3335
|
};
|
|
3330
3336
|
this.uploader.onProgressItem = function (fileItem, progress) {
|
|
3331
3337
|
// console.log(fileItem);
|
|
@@ -3357,17 +3363,27 @@
|
|
|
3357
3363
|
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
|
|
3358
3364
|
};
|
|
3359
3365
|
/**
|
|
3366
|
+
* @param {?} fileItem
|
|
3360
3367
|
* @return {?}
|
|
3361
3368
|
*/
|
|
3362
3369
|
FHUploadComponent.prototype.ch = /**
|
|
3370
|
+
* @param {?} fileItem
|
|
3363
3371
|
* @return {?}
|
|
3364
3372
|
*/
|
|
3365
|
-
function () {
|
|
3373
|
+
function (fileItem) {
|
|
3366
3374
|
var _this = this;
|
|
3367
3375
|
if (this.descri_obb && this.descrizione == '') {
|
|
3368
3376
|
this.toastr.error(this.inserire_descrizione);
|
|
3369
3377
|
return;
|
|
3370
3378
|
}
|
|
3379
|
+
console.log('this.lista_allegati ', this.lista_allegati);
|
|
3380
|
+
console.log('fileItem ', fileItem);
|
|
3381
|
+
for (var i = 0; i < this.lista_allegati.length; i++) {
|
|
3382
|
+
if (this.lista_allegati[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
|
|
3383
|
+
this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
|
|
3384
|
+
return;
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3371
3387
|
this.uploader.onBuildItemForm = function (item, form) {
|
|
3372
3388
|
form.append('App', _this.App);
|
|
3373
3389
|
form.append('K', _this.K);
|
|
@@ -3457,7 +3473,7 @@
|
|
|
3457
3473
|
FHUploadComponent.decorators = [
|
|
3458
3474
|
{ type: i0.Component, args: [{
|
|
3459
3475
|
selector: 'FHUpload',
|
|
3460
|
-
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div *ngIf=\"enabled && !loading\" fxLayout=\"row\">\n <mat-form-field class=\"field_style\">\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n placeholder=\"{{label}} {{fixed_label}}\">\n </mat-form-field>\n <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/>\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 ",
|
|
3476
|
+
template: "\n aaaazzz\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div *ngIf=\"enabled && !loading\" fxLayout=\"row\">\n <mat-form-field class=\"field_style\">\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n placeholder=\"{{label}} {{fixed_label}}\">\n </mat-form-field>\n <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/>\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 ",
|
|
3461
3477
|
styles: ["\n\n "]
|
|
3462
3478
|
}] }
|
|
3463
3479
|
];
|
|
@@ -3480,6 +3496,7 @@
|
|
|
3480
3496
|
limit_string: [{ type: i0.Input }],
|
|
3481
3497
|
allegato_inserito: [{ type: i0.Input }],
|
|
3482
3498
|
inserire_descrizione: [{ type: i0.Input }],
|
|
3499
|
+
lista_allegati: [{ type: i0.Input }],
|
|
3483
3500
|
change: [{ type: i0.Output }],
|
|
3484
3501
|
upload_ended: [{ type: i0.Output }]
|
|
3485
3502
|
};
|
|
@@ -10004,6 +10021,7 @@
|
|
|
10004
10021
|
this.app_s = app_s;
|
|
10005
10022
|
this.enabled = true;
|
|
10006
10023
|
this.change = new i0.EventEmitter();
|
|
10024
|
+
this.access_control = true;
|
|
10007
10025
|
this.App = '';
|
|
10008
10026
|
this.K = '';
|
|
10009
10027
|
this.b_edit_loaded = false;
|
|
@@ -10095,13 +10113,23 @@
|
|
|
10095
10113
|
});
|
|
10096
10114
|
};
|
|
10097
10115
|
/**
|
|
10116
|
+
* @param {?} fileItem
|
|
10098
10117
|
* @return {?}
|
|
10099
10118
|
*/
|
|
10100
10119
|
win_uploads.prototype.ch = /**
|
|
10120
|
+
* @param {?} fileItem
|
|
10101
10121
|
* @return {?}
|
|
10102
10122
|
*/
|
|
10103
|
-
function () {
|
|
10123
|
+
function (fileItem) {
|
|
10104
10124
|
var _this = this;
|
|
10125
|
+
console.log('this.arr_g ', this.arr_g);
|
|
10126
|
+
console.log('fileItem ', fileItem);
|
|
10127
|
+
for (var i = 0; i < this.arr_g.length; i++) {
|
|
10128
|
+
if (this.arr_g[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
|
|
10129
|
+
this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
|
|
10130
|
+
return;
|
|
10131
|
+
}
|
|
10132
|
+
}
|
|
10105
10133
|
this.uploader.onBuildItemForm = function (item, form) {
|
|
10106
10134
|
form.append('App', _this.App);
|
|
10107
10135
|
form.append('K', _this.K);
|
|
@@ -10151,6 +10179,7 @@
|
|
|
10151
10179
|
if ('3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|DS_STORE|DTD|DWG|DXF|EDITORCONFIG|EL|ENC|EOT|EPS|EPUB|ESLINTIGNORE|EXE|F4V|FAX|FB2|FLA|FLAC|FLV|FOLDER|GADGET|GDP|GEM|GIF|GITATTRIBUTES|GITIGNORE|GO|GPG|GZ|H|HANDLEBARS|HBS|HEIC|HS|HSL|HTM|HTML|IBOOKS|ICNS|ICO|ICS|IDX|IFF|IFO|IMAGE|IMG|IN|INDD|INF|INI|ISO|J2|JAR|JAVA|JPE|JPEG|JPG|JS|JSON|JSP|JSX|KEY|KF8|KMK|KSH|KUP|LESS|LEX|LICX|LISP|LIT|LNK|LOCK|LOG|LUA|M|M2V|M3U|M3U8|M4|M4A|M4R|M4V|MAP|MASTER|MC|MD|MDB|MDF|ME|MI|MID|MIDI|MK|MKV|MM|MO|MOBI|MOD|MOV|MP2|MP3|MP4|MPA|MPD|MPE|MPEG|MPG|MPGA|MPP|MPT|MSI|MSU|NEF|NES|NFO|NIX|NPMIGNORE|ODB|ODS|ODT|OGG|OGV|OST|OTF|OTT|OVA|OVF|P12|P7B|PAGES|PART|PCD|PDB|PDF|PEM|PFX|PGP|PH|PHAR|PHP|PKG|PL|PLIST|PM|PNG|PO|POM|POT|POTX|PPS|PPSX|PPT|PPTM|PPTX|PROP|PS|PS1|PSD|PSP|PST|PUB|PY|PYC|QT|RA|RAM|RAR|RAW|RB|RDF|RESX|RETRY|RM|ROM|RPM|RSA|RSS|RTF|RU|RUB|SASS|SCSS|SDF|SED|SH|SITEMAP|SKIN|SLDM|SLDX|SLN|SOL|SQL|SQLITE|STEP|STL|SVG|SWD|SWF|SWIFT|SYS|TAR|TCSH|TEX|TFIGNORE|TGA|TGZ|TIF|TIFF|TMP|TORRENT|TS|TSV|TTF|TWIG|TXT|UDF|VB|VBPROJ|VBS|VCD|VCS|VDI|VDX|VMDK|VOB|VSCODEIGNORE|VSD|VSS|VST|VSX|VTX|WAR|WAV|WBK|WEBINFO|WEBM|WEBP|WMA|WMF|WMV|WOFF|WOFF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH'.indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
|
|
10152
10180
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
10153
10181
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
10182
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this.app_s.user;
|
|
10154
10183
|
}
|
|
10155
10184
|
}
|
|
10156
10185
|
});
|
|
@@ -10162,9 +10191,14 @@
|
|
|
10162
10191
|
* @return {?}
|
|
10163
10192
|
*/
|
|
10164
10193
|
function () {
|
|
10194
|
+
var _this = this;
|
|
10165
10195
|
this.App = this.app_s.getState().wkf_doc_info.uiid_app;
|
|
10166
10196
|
this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
10167
10197
|
this.single = false;
|
|
10198
|
+
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
10199
|
+
console.log('onAfterAddingFile');
|
|
10200
|
+
_this.ch(fileItem);
|
|
10201
|
+
};
|
|
10168
10202
|
this.init(this.App, this.K);
|
|
10169
10203
|
this.ref_allegato();
|
|
10170
10204
|
};
|
|
@@ -10189,7 +10223,7 @@
|
|
|
10189
10223
|
win_uploads.decorators = [
|
|
10190
10224
|
{ type: i0.Component, args: [{
|
|
10191
10225
|
selector: 'wkf_win_upload',
|
|
10192
|
-
template: "\n <mat-toolbar color=\"primary\">{{title}}\n <div style=\"width:100%;text-align: right;\">\n </div>\n\n </mat-toolbar>\n <div mat-dialog-content style=\"min-width:800px\">\n <br>\n <div *ngIf=\"enabled\">\n\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\" placeholder=\"{{label}}\">\n\n\n <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple
|
|
10226
|
+
template: "\n <mat-toolbar color=\"primary\">{{title}}\n <div style=\"width:100%;text-align: right;\">\n </div>\n\n </mat-toolbar>\n <div mat-dialog-content style=\"min-width:800px\">\n <br>\n <div *ngIf=\"enabled\">\n\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\" placeholder=\"{{label}}\">\n\n\n <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple />\n <!--<button mat-raised-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\">{{label_b}}</button>-->\n </div>\n <br>\n\n\n <br>\n\n <table style=\"width: 100%;\" class=\"fh_table\">\n <thead>\n <tr>\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:50%\">Descrizione</th>\n \n <th style=\"width:30%\">Utente</th>\n <th style=\"width:240px;text-align:center\">Data</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\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\" >\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>{{app.descrizione}}</td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>save_alt</mat-icon>\n </button>\n </td>\n\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n </tr>\n </table>\n\n\n </div>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button (click)=\"dialogRef.close('Option 1')\">CHIUDI</button>\n </div>\n <div *ngIf=\"!b_ini\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
|
|
10193
10227
|
styles: ["\n\n \n "]
|
|
10194
10228
|
}] }
|
|
10195
10229
|
];
|
|
@@ -10207,6 +10241,7 @@
|
|
|
10207
10241
|
enabled: [{ type: i0.Input }],
|
|
10208
10242
|
change: [{ type: i0.Output }],
|
|
10209
10243
|
upc: [{ type: i0.ViewChild, args: ['upc',] }],
|
|
10244
|
+
access_control: [{ type: i0.Input }],
|
|
10210
10245
|
single: [{ type: i0.Input }]
|
|
10211
10246
|
};
|
|
10212
10247
|
return win_uploads;
|