@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
|
@@ -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, ViewChild, forwardRef, 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';
|
|
@@ -2965,6 +2965,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
2965
2965
|
this.limit_string = 'Il file di <size>MB supera il limite di 500MB';
|
|
2966
2966
|
this.allegato_inserito = 'ALLEGATO INSERITO';
|
|
2967
2967
|
this.inserire_descrizione = 'Descrizione Obbligatoria';
|
|
2968
|
+
this.lista_allegati = [];
|
|
2968
2969
|
this.change = new EventEmitter();
|
|
2969
2970
|
this.upload_ended = new EventEmitter();
|
|
2970
2971
|
this.loading = false;
|
|
@@ -2975,7 +2976,6 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
2975
2976
|
this.file_name = '';
|
|
2976
2977
|
this.label = '';
|
|
2977
2978
|
this.username = '';
|
|
2978
|
-
this.progress_p = 0;
|
|
2979
2979
|
this.b_edit_loaded = false;
|
|
2980
2980
|
this.tipo = '';
|
|
2981
2981
|
this.b_ini = false;
|
|
@@ -3007,6 +3007,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3007
3007
|
*/
|
|
3008
3008
|
function () {
|
|
3009
3009
|
var _this = this;
|
|
3010
|
+
console.log('INIT');
|
|
3010
3011
|
/** @type {?} */
|
|
3011
3012
|
var uo = {};
|
|
3012
3013
|
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
|
|
@@ -3023,8 +3024,9 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3023
3024
|
this.uploader.onErrorItem = function (a, b, c, d) {
|
|
3024
3025
|
_this.toastr.error(b);
|
|
3025
3026
|
};
|
|
3026
|
-
this.uploader.onAfterAddingFile = function () {
|
|
3027
|
-
|
|
3027
|
+
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
3028
|
+
console.log('onAfterAddingFile');
|
|
3029
|
+
_this.ch(fileItem);
|
|
3028
3030
|
};
|
|
3029
3031
|
this.uploader.onProgressItem = function (fileItem, progress) {
|
|
3030
3032
|
// console.log(fileItem);
|
|
@@ -3056,17 +3058,27 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3056
3058
|
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
|
|
3057
3059
|
};
|
|
3058
3060
|
/**
|
|
3061
|
+
* @param {?} fileItem
|
|
3059
3062
|
* @return {?}
|
|
3060
3063
|
*/
|
|
3061
3064
|
FHUploadComponent.prototype.ch = /**
|
|
3065
|
+
* @param {?} fileItem
|
|
3062
3066
|
* @return {?}
|
|
3063
3067
|
*/
|
|
3064
|
-
function () {
|
|
3068
|
+
function (fileItem) {
|
|
3065
3069
|
var _this = this;
|
|
3066
3070
|
if (this.descri_obb && this.descrizione == '') {
|
|
3067
3071
|
this.toastr.error(this.inserire_descrizione);
|
|
3068
3072
|
return;
|
|
3069
3073
|
}
|
|
3074
|
+
console.log('this.lista_allegati ', this.lista_allegati);
|
|
3075
|
+
console.log('fileItem ', fileItem);
|
|
3076
|
+
for (var i = 0; i < this.lista_allegati.length; i++) {
|
|
3077
|
+
if (this.lista_allegati[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
|
|
3078
|
+
this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
|
|
3079
|
+
return;
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3070
3082
|
this.uploader.onBuildItemForm = function (item, form) {
|
|
3071
3083
|
form.append('App', _this.App);
|
|
3072
3084
|
form.append('K', _this.K);
|
|
@@ -3152,7 +3164,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3152
3164
|
FHUploadComponent.decorators = [
|
|
3153
3165
|
{ type: Component, args: [{
|
|
3154
3166
|
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 ",
|
|
3167
|
+
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
3168
|
styles: ["\n\n "]
|
|
3157
3169
|
}] }
|
|
3158
3170
|
];
|
|
@@ -3173,6 +3185,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3173
3185
|
limit_string: [{ type: Input }],
|
|
3174
3186
|
allegato_inserito: [{ type: Input }],
|
|
3175
3187
|
inserire_descrizione: [{ type: Input }],
|
|
3188
|
+
lista_allegati: [{ type: Input }],
|
|
3176
3189
|
change: [{ type: Output }],
|
|
3177
3190
|
upload_ended: [{ type: Output }]
|
|
3178
3191
|
};
|
|
@@ -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,14 @@ 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|CO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|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
|
}
|
|
3739
3755
|
}
|
|
3740
3756
|
});
|
|
3741
3757
|
};
|
|
3742
3758
|
FHUploadPanelComponent.decorators = [
|
|
3743
3759
|
{ 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=\"
|
|
3760
|
+
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 ",
|
|
3745
3761
|
styles: ["\n\n \n\n "]
|
|
3746
3762
|
}] }
|
|
3747
3763
|
];
|
|
@@ -3757,6 +3773,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3757
3773
|
enabled: [{ type: Input }],
|
|
3758
3774
|
label: [{ type: Input }],
|
|
3759
3775
|
sovrascrivi_path: [{ type: Input }],
|
|
3776
|
+
access_control: [{ type: Input }],
|
|
3760
3777
|
change: [{ type: Output }],
|
|
3761
3778
|
upc: [{ type: ViewChild, args: ['upc',] }]
|
|
3762
3779
|
};
|
|
@@ -10970,6 +10987,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
10970
10987
|
this.app_s = app_s;
|
|
10971
10988
|
this.enabled = true;
|
|
10972
10989
|
this.change = new EventEmitter();
|
|
10990
|
+
this.access_control = true;
|
|
10973
10991
|
this.App = '';
|
|
10974
10992
|
this.K = '';
|
|
10975
10993
|
this.b_edit_loaded = false;
|
|
@@ -11061,13 +11079,23 @@ var win_uploads = /** @class */ (function () {
|
|
|
11061
11079
|
});
|
|
11062
11080
|
};
|
|
11063
11081
|
/**
|
|
11082
|
+
* @param {?} fileItem
|
|
11064
11083
|
* @return {?}
|
|
11065
11084
|
*/
|
|
11066
11085
|
win_uploads.prototype.ch = /**
|
|
11086
|
+
* @param {?} fileItem
|
|
11067
11087
|
* @return {?}
|
|
11068
11088
|
*/
|
|
11069
|
-
function () {
|
|
11089
|
+
function (fileItem) {
|
|
11070
11090
|
var _this = this;
|
|
11091
|
+
console.log('this.arr_g ', this.arr_g);
|
|
11092
|
+
console.log('fileItem ', fileItem);
|
|
11093
|
+
for (var i = 0; i < this.arr_g.length; i++) {
|
|
11094
|
+
if (this.arr_g[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
|
|
11095
|
+
this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
|
|
11096
|
+
return;
|
|
11097
|
+
}
|
|
11098
|
+
}
|
|
11071
11099
|
this.uploader.onBuildItemForm = function (item, form) {
|
|
11072
11100
|
form.append('App', _this.App);
|
|
11073
11101
|
form.append('K', _this.K);
|
|
@@ -11117,6 +11145,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
11117
11145
|
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|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F|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
11146
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
11119
11147
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
11148
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this.app_s.user;
|
|
11120
11149
|
}
|
|
11121
11150
|
}
|
|
11122
11151
|
});
|
|
@@ -11128,9 +11157,14 @@ var win_uploads = /** @class */ (function () {
|
|
|
11128
11157
|
* @return {?}
|
|
11129
11158
|
*/
|
|
11130
11159
|
function () {
|
|
11160
|
+
var _this = this;
|
|
11131
11161
|
this.App = this.app_s.getState().wkf_doc_info.uiid_app;
|
|
11132
11162
|
this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
11133
11163
|
this.single = false;
|
|
11164
|
+
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
11165
|
+
console.log('onAfterAddingFile');
|
|
11166
|
+
_this.ch(fileItem);
|
|
11167
|
+
};
|
|
11134
11168
|
this.init(this.App, this.K);
|
|
11135
11169
|
this.ref_allegato();
|
|
11136
11170
|
};
|
|
@@ -11155,7 +11189,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
11155
11189
|
win_uploads.decorators = [
|
|
11156
11190
|
{ type: Component, args: [{
|
|
11157
11191
|
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
|
|
11192
|
+
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
11193
|
styles: ["\n\n \n "]
|
|
11160
11194
|
}] }
|
|
11161
11195
|
];
|
|
@@ -11171,6 +11205,7 @@ var win_uploads = /** @class */ (function () {
|
|
|
11171
11205
|
enabled: [{ type: Input }],
|
|
11172
11206
|
change: [{ type: Output }],
|
|
11173
11207
|
upc: [{ type: ViewChild, args: ['upc',] }],
|
|
11208
|
+
access_control: [{ type: Input }],
|
|
11174
11209
|
single: [{ type: Input }]
|
|
11175
11210
|
};
|
|
11176
11211
|
return win_uploads;
|