@fluxhub/fluxhub-lib 1.0.210 → 1.0.212
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 +4 -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/docs/components/FHUploadComponent.html +24 -76
- package/docs/components/FHUploadPanelComponent.html +2 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhupload.js +6 -8
- package/esm2015/lib/controls/fhuploadpanel.js +2 -4
- package/esm5/lib/controls/fhupload.js +6 -8
- package/esm5/lib/controls/fhuploadpanel.js +2 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +5 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +5 -7
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +1 -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, forwardRef, ViewChild,
|
|
36
|
+
import { Injectable, Component, Input, Output, EventEmitter, forwardRef, ViewChild, Inject, PLATFORM_ID, Directive, 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,11 +2976,9 @@ 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;
|
|
2982
|
-
this.lista_allegati = [];
|
|
2983
2982
|
this.uploader = new FileUploader({
|
|
2984
2983
|
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
|
|
2985
2984
|
'maxFileSize': 500 * 1024 * 1024
|
|
@@ -3165,7 +3164,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3165
3164
|
FHUploadComponent.decorators = [
|
|
3166
3165
|
{ type: Component, args: [{
|
|
3167
3166
|
selector: 'FHUpload',
|
|
3168
|
-
template: "\n
|
|
3167
|
+
template: "\n \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 ",
|
|
3169
3168
|
styles: ["\n\n "]
|
|
3170
3169
|
}] }
|
|
3171
3170
|
];
|
|
@@ -3186,6 +3185,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3186
3185
|
limit_string: [{ type: Input }],
|
|
3187
3186
|
allegato_inserito: [{ type: Input }],
|
|
3188
3187
|
inserire_descrizione: [{ type: Input }],
|
|
3188
|
+
lista_allegati: [{ type: Input }],
|
|
3189
3189
|
change: [{ type: Output }],
|
|
3190
3190
|
upload_ended: [{ type: Output }]
|
|
3191
3191
|
};
|
|
@@ -3752,14 +3752,12 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3752
3752
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
3753
3753
|
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user;
|
|
3754
3754
|
}
|
|
3755
|
-
if (_this.upc == null)
|
|
3756
|
-
_this.upc.lista_allegati = _this.arr_g;
|
|
3757
3755
|
}
|
|
3758
3756
|
});
|
|
3759
3757
|
};
|
|
3760
3758
|
FHUploadPanelComponent.decorators = [
|
|
3761
3759
|
{ type: Component, args: [{
|
|
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 ",
|
|
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 ",
|
|
3763
3761
|
styles: ["\n\n \n\n "]
|
|
3764
3762
|
}] }
|
|
3765
3763
|
];
|