@fluxhub/fluxhub-lib 1.0.209 → 1.0.210
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 +44 -7
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/FHUploadComponent.html +72 -3
- package/docs/components/FHUploadPanelComponent.html +33 -3
- package/docs/components/win_uploads.html +70 -6
- package/docs/coverage.html +3 -3
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhupload.js +19 -4
- package/esm2015/lib/controls/fhuploadpanel.js +19 -3
- package/esm2015/lib/wkf_engine/win_uploads.js +35 -6
- package/esm5/lib/controls/fhupload.js +20 -5
- package/esm5/lib/controls/fhuploadpanel.js +10 -2
- package/esm5/lib/wkf_engine/win_uploads.js +23 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +65 -11
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +45 -8
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +3 -2
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/lib/wkf_engine/win_uploads.d.ts +3 -2
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
33
33
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
34
34
|
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
35
35
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
36
|
-
import { Injectable, Component, Input, Output, EventEmitter,
|
|
36
|
+
import { Injectable, Component, Input, Output, EventEmitter, forwardRef, ViewChild, Directive, Inject, PLATFORM_ID, ElementRef, Pipe, ViewContainerRef, defineInjectable, inject, NgModule, HostListener } from '@angular/core';
|
|
37
37
|
import { Http } from '@angular/http';
|
|
38
38
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
39
39
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -2979,6 +2979,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
2979
2979
|
this.b_edit_loaded = false;
|
|
2980
2980
|
this.tipo = '';
|
|
2981
2981
|
this.b_ini = false;
|
|
2982
|
+
this.lista_allegati = [];
|
|
2982
2983
|
this.uploader = new FileUploader({
|
|
2983
2984
|
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
|
|
2984
2985
|
'maxFileSize': 500 * 1024 * 1024
|
|
@@ -3007,6 +3008,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3007
3008
|
*/
|
|
3008
3009
|
function () {
|
|
3009
3010
|
var _this = this;
|
|
3011
|
+
console.log('INIT');
|
|
3010
3012
|
/** @type {?} */
|
|
3011
3013
|
var uo = {};
|
|
3012
3014
|
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
|
|
@@ -3023,8 +3025,9 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3023
3025
|
this.uploader.onErrorItem = function (a, b, c, d) {
|
|
3024
3026
|
_this.toastr.error(b);
|
|
3025
3027
|
};
|
|
3026
|
-
this.uploader.onAfterAddingFile = function () {
|
|
3027
|
-
|
|
3028
|
+
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
3029
|
+
console.log('onAfterAddingFile');
|
|
3030
|
+
_this.ch(fileItem);
|
|
3028
3031
|
};
|
|
3029
3032
|
this.uploader.onProgressItem = function (fileItem, progress) {
|
|
3030
3033
|
// console.log(fileItem);
|
|
@@ -3056,17 +3059,27 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3056
3059
|
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
|
|
3057
3060
|
};
|
|
3058
3061
|
/**
|
|
3062
|
+
* @param {?} fileItem
|
|
3059
3063
|
* @return {?}
|
|
3060
3064
|
*/
|
|
3061
3065
|
FHUploadComponent.prototype.ch = /**
|
|
3066
|
+
* @param {?} fileItem
|
|
3062
3067
|
* @return {?}
|
|
3063
3068
|
*/
|
|
3064
|
-
function () {
|
|
3069
|
+
function (fileItem) {
|
|
3065
3070
|
var _this = this;
|
|
3066
3071
|
if (this.descri_obb && this.descrizione == '') {
|
|
3067
3072
|
this.toastr.error(this.inserire_descrizione);
|
|
3068
3073
|
return;
|
|
3069
3074
|
}
|
|
3075
|
+
console.log('this.lista_allegati ', this.lista_allegati);
|
|
3076
|
+
console.log('fileItem ', fileItem);
|
|
3077
|
+
for (var i = 0; i < this.lista_allegati.length; i++) {
|
|
3078
|
+
if (this.lista_allegati[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
|
|
3079
|
+
this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
|
|
3080
|
+
return;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3070
3083
|
this.uploader.onBuildItemForm = function (item, form) {
|
|
3071
3084
|
form.append('App', _this.App);
|
|
3072
3085
|
form.append('K', _this.K);
|
|
@@ -3152,7 +3165,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3152
3165
|
FHUploadComponent.decorators = [
|
|
3153
3166
|
{ type: Component, args: [{
|
|
3154
3167
|
selector: 'FHUpload',
|
|
3155
|
-
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 ",
|
|
3168
|
+
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 ",
|
|
3156
3169
|
styles: ["\n\n "]
|
|
3157
3170
|
}] }
|
|
3158
3171
|
];
|
|
@@ -3603,6 +3616,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3603
3616
|
this.enabled = true;
|
|
3604
3617
|
this.label = '';
|
|
3605
3618
|
this.sovrascrivi_path = '';
|
|
3619
|
+
this.access_control = false;
|
|
3606
3620
|
this.change = new EventEmitter();
|
|
3607
3621
|
this.App = '';
|
|
3608
3622
|
this.K = '';
|
|
@@ -3679,6 +3693,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3679
3693
|
* @return {?}
|
|
3680
3694
|
*/
|
|
3681
3695
|
function () {
|
|
3696
|
+
console.log('INIT1');
|
|
3682
3697
|
this.upc.single = false;
|
|
3683
3698
|
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
3684
3699
|
this
|
|
@@ -3735,13 +3750,16 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3735
3750
|
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)
|
|
3736
3751
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
3737
3752
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
3753
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user;
|
|
3738
3754
|
}
|
|
3755
|
+
if (_this.upc == null)
|
|
3756
|
+
_this.upc.lista_allegati = _this.arr_g;
|
|
3739
3757
|
}
|
|
3740
3758
|
});
|
|
3741
3759
|
};
|
|
3742
3760
|
FHUploadPanelComponent.decorators = [
|
|
3743
3761
|
{ type: Component, args: [{
|
|
3744
|
-
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=\"
|
|
3762
|
+
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: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 ",
|
|
3745
3763
|
styles: ["\n\n \n\n "]
|
|
3746
3764
|
}] }
|
|
3747
3765
|
];
|
|
@@ -3757,6 +3775,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3757
3775
|
enabled: [{ type: Input }],
|
|
3758
3776
|
label: [{ type: Input }],
|
|
3759
3777
|
sovrascrivi_path: [{ type: Input }],
|
|
3778
|
+
access_control: [{ type: Input }],
|
|
3760
3779
|
change: [{ type: Output }],
|
|
3761
3780
|
upc: [{ type: ViewChild, args: ['upc',] }]
|
|
3762
3781
|
};
|
|
@@ -10970,6 +10989,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
10970
10989
|
this.app_s = app_s;
|
|
10971
10990
|
this.enabled = true;
|
|
10972
10991
|
this.change = new EventEmitter();
|
|
10992
|
+
this.access_control = true;
|
|
10973
10993
|
this.App = '';
|
|
10974
10994
|
this.K = '';
|
|
10975
10995
|
this.b_edit_loaded = false;
|
|
@@ -11061,13 +11081,23 @@ var win_uploads = /** @class */ (function () {
|
|
|
11061
11081
|
});
|
|
11062
11082
|
};
|
|
11063
11083
|
/**
|
|
11084
|
+
* @param {?} fileItem
|
|
11064
11085
|
* @return {?}
|
|
11065
11086
|
*/
|
|
11066
11087
|
win_uploads.prototype.ch = /**
|
|
11088
|
+
* @param {?} fileItem
|
|
11067
11089
|
* @return {?}
|
|
11068
11090
|
*/
|
|
11069
|
-
function () {
|
|
11091
|
+
function (fileItem) {
|
|
11070
11092
|
var _this = this;
|
|
11093
|
+
console.log('this.arr_g ', this.arr_g);
|
|
11094
|
+
console.log('fileItem ', fileItem);
|
|
11095
|
+
for (var i = 0; i < this.arr_g.length; i++) {
|
|
11096
|
+
if (this.arr_g[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
|
|
11097
|
+
this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
|
|
11098
|
+
return;
|
|
11099
|
+
}
|
|
11100
|
+
}
|
|
11071
11101
|
this.uploader.onBuildItemForm = function (item, form) {
|
|
11072
11102
|
form.append('App', _this.App);
|
|
11073
11103
|
form.append('K', _this.K);
|
|
@@ -11117,6 +11147,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
11117
11147
|
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)
|
|
11118
11148
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
11119
11149
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
11150
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this.app_s.user;
|
|
11120
11151
|
}
|
|
11121
11152
|
}
|
|
11122
11153
|
});
|
|
@@ -11128,9 +11159,14 @@ var win_uploads = /** @class */ (function () {
|
|
|
11128
11159
|
* @return {?}
|
|
11129
11160
|
*/
|
|
11130
11161
|
function () {
|
|
11162
|
+
var _this = this;
|
|
11131
11163
|
this.App = this.app_s.getState().wkf_doc_info.uiid_app;
|
|
11132
11164
|
this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
11133
11165
|
this.single = false;
|
|
11166
|
+
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
11167
|
+
console.log('onAfterAddingFile');
|
|
11168
|
+
_this.ch(fileItem);
|
|
11169
|
+
};
|
|
11134
11170
|
this.init(this.App, this.K);
|
|
11135
11171
|
this.ref_allegato();
|
|
11136
11172
|
};
|
|
@@ -11155,7 +11191,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
11155
11191
|
win_uploads.decorators = [
|
|
11156
11192
|
{ type: Component, args: [{
|
|
11157
11193
|
selector: 'wkf_win_upload',
|
|
11158
|
-
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
|
|
11194
|
+
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 ",
|
|
11159
11195
|
styles: ["\n\n \n "]
|
|
11160
11196
|
}] }
|
|
11161
11197
|
];
|
|
@@ -11171,6 +11207,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
11171
11207
|
enabled: [{ type: Input }],
|
|
11172
11208
|
change: [{ type: Output }],
|
|
11173
11209
|
upc: [{ type: ViewChild, args: ['upc',] }],
|
|
11210
|
+
access_control: [{ type: Input }],
|
|
11174
11211
|
single: [{ type: Input }]
|
|
11175
11212
|
};
|
|
11176
11213
|
return win_uploads;
|