@fluxhub/fluxhub-lib 1.0.344 → 1.0.346
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 +129 -84
- 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/fhuploadpanel.js +60 -4
- package/esm5/lib/controls/fhuploadpanel.js +48 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +144 -89
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +129 -84
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3340,6 +3340,92 @@ AuthenticationService.ctorParameters = () => [
|
|
|
3340
3340
|
];
|
|
3341
3341
|
/** @nocollapse */ AuthenticationService.ngInjectableDef = defineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(inject(QueryService), inject(ToastrService), inject(HttpClient), inject(Router), inject(ActivatedRoute), inject(FileService), inject(AppService), inject(UtilityService)); }, token: AuthenticationService, providedIn: "root" });
|
|
3342
3342
|
|
|
3343
|
+
/**
|
|
3344
|
+
* @fileoverview added by tsickle
|
|
3345
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3346
|
+
*/
|
|
3347
|
+
class WinAskTextBigComponent {
|
|
3348
|
+
/**
|
|
3349
|
+
* @param {?} dialogRef
|
|
3350
|
+
* @param {?} toastr
|
|
3351
|
+
*/
|
|
3352
|
+
constructor(dialogRef, toastr) {
|
|
3353
|
+
this.dialogRef = dialogRef;
|
|
3354
|
+
this.toastr = toastr;
|
|
3355
|
+
this.title = "";
|
|
3356
|
+
this.label = "";
|
|
3357
|
+
this.valore = "";
|
|
3358
|
+
this.readonly = false;
|
|
3359
|
+
this.show_annulla = true;
|
|
3360
|
+
this.min_chars = 3;
|
|
3361
|
+
}
|
|
3362
|
+
/**
|
|
3363
|
+
* @return {?}
|
|
3364
|
+
*/
|
|
3365
|
+
ngOnInit() {
|
|
3366
|
+
}
|
|
3367
|
+
/**
|
|
3368
|
+
* @return {?}
|
|
3369
|
+
*/
|
|
3370
|
+
show() {
|
|
3371
|
+
}
|
|
3372
|
+
/**
|
|
3373
|
+
* @return {?}
|
|
3374
|
+
*/
|
|
3375
|
+
hide() {
|
|
3376
|
+
this.dialogRef.close(null);
|
|
3377
|
+
}
|
|
3378
|
+
/**
|
|
3379
|
+
* @return {?}
|
|
3380
|
+
*/
|
|
3381
|
+
do_check() {
|
|
3382
|
+
if (this.valore.length < this.min_chars) {
|
|
3383
|
+
this.toastr.error('Il valore deve contenere almeno ' + this.min_chars + ' caratteri');
|
|
3384
|
+
return;
|
|
3385
|
+
}
|
|
3386
|
+
this.dialogRef.close(this.valore);
|
|
3387
|
+
}
|
|
3388
|
+
/**
|
|
3389
|
+
* @return {?}
|
|
3390
|
+
*/
|
|
3391
|
+
chiudi() {
|
|
3392
|
+
this.dialogRef.close(null);
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
WinAskTextBigComponent.decorators = [
|
|
3396
|
+
{ type: Component, args: [{
|
|
3397
|
+
selector: 'app-win_ask_text',
|
|
3398
|
+
template: `
|
|
3399
|
+
|
|
3400
|
+
<h2 mat-dialog-title>{{title}}</h2>
|
|
3401
|
+
<mat-dialog-content style="width:600px">
|
|
3402
|
+
<mat-form-field>
|
|
3403
|
+
<textarea matInput [readonly]="readonly" placeholder="{{label}}" type="text" [(ngModel)]="valore" style="min-width:600px" rows="15"
|
|
3404
|
+
required></textarea>
|
|
3405
|
+
</mat-form-field>
|
|
3406
|
+
</mat-dialog-content>
|
|
3407
|
+
<mat-dialog-actions style="width:100%;horizontal-align: center">
|
|
3408
|
+
<button mat-raised-button color="primary" (click)="do_check()">OK</button>
|
|
3409
|
+
<button *ngIf="show_annulla" mat-raised-button color="warn" (click)="chiudi()">ANNULLA</button>
|
|
3410
|
+
</mat-dialog-actions>
|
|
3411
|
+
|
|
3412
|
+
|
|
3413
|
+
`
|
|
3414
|
+
}] }
|
|
3415
|
+
];
|
|
3416
|
+
/** @nocollapse */
|
|
3417
|
+
WinAskTextBigComponent.ctorParameters = () => [
|
|
3418
|
+
{ type: MatDialogRef },
|
|
3419
|
+
{ type: ToastrService }
|
|
3420
|
+
];
|
|
3421
|
+
WinAskTextBigComponent.propDecorators = {
|
|
3422
|
+
title: [{ type: Input }],
|
|
3423
|
+
label: [{ type: Input }],
|
|
3424
|
+
valore: [{ type: Input }],
|
|
3425
|
+
readonly: [{ type: Input }],
|
|
3426
|
+
show_annulla: [{ type: Input }]
|
|
3427
|
+
};
|
|
3428
|
+
|
|
3343
3429
|
/**
|
|
3344
3430
|
* @fileoverview added by tsickle
|
|
3345
3431
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3388,6 +3474,46 @@ class FHUploadPanelComponent {
|
|
|
3388
3474
|
else
|
|
3389
3475
|
window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
3390
3476
|
}
|
|
3477
|
+
/**
|
|
3478
|
+
* @param {?} ax
|
|
3479
|
+
* @return {?}
|
|
3480
|
+
*/
|
|
3481
|
+
edit_descri(ax) {
|
|
3482
|
+
/** @type {?} */
|
|
3483
|
+
let dialogRef = this
|
|
3484
|
+
.dialog
|
|
3485
|
+
.open(WinAskTextBigComponent);
|
|
3486
|
+
dialogRef.componentInstance.label = "Descrizione Allegato";
|
|
3487
|
+
dialogRef.componentInstance.valore = ax.descrizione;
|
|
3488
|
+
dialogRef
|
|
3489
|
+
.afterClosed()
|
|
3490
|
+
.subscribe((/**
|
|
3491
|
+
* @param {?} result
|
|
3492
|
+
* @return {?}
|
|
3493
|
+
*/
|
|
3494
|
+
result => {
|
|
3495
|
+
if (result != null) {
|
|
3496
|
+
/** @type {?} */
|
|
3497
|
+
let p = new QParam();
|
|
3498
|
+
p.sql = "UPDATE_ALLEGATI_DESCRIZIONE";
|
|
3499
|
+
p.types = ['int', 'string'];
|
|
3500
|
+
p.values = [ax.id, result];
|
|
3501
|
+
this
|
|
3502
|
+
._dataService
|
|
3503
|
+
.doQuery(p)
|
|
3504
|
+
.subscribe((/**
|
|
3505
|
+
* @param {?} data
|
|
3506
|
+
* @return {?}
|
|
3507
|
+
*/
|
|
3508
|
+
data => {
|
|
3509
|
+
if (data != null)
|
|
3510
|
+
if (data.result_msg == "OK") {
|
|
3511
|
+
this.ref_allegato();
|
|
3512
|
+
}
|
|
3513
|
+
}));
|
|
3514
|
+
}
|
|
3515
|
+
}));
|
|
3516
|
+
}
|
|
3391
3517
|
/**
|
|
3392
3518
|
* @param {?} ax
|
|
3393
3519
|
* @return {?}
|
|
@@ -3408,7 +3534,7 @@ class FHUploadPanelComponent {
|
|
|
3408
3534
|
result => {
|
|
3409
3535
|
if (result) {
|
|
3410
3536
|
/** @type {?} */
|
|
3411
|
-
|
|
3537
|
+
let p = new QParam();
|
|
3412
3538
|
p.sql = "DELETE_ALLEGATO";
|
|
3413
3539
|
p.types = ['int', 'string'];
|
|
3414
3540
|
p.values = [ax.id, this.auth_s.username];
|
|
@@ -3552,6 +3678,7 @@ FHUploadPanelComponent.decorators = [
|
|
|
3552
3678
|
|
|
3553
3679
|
|
|
3554
3680
|
<th style="width:50%" *ngIf="!image_type">Descrizione</th>
|
|
3681
|
+
<th *ngIf="enabled" style="width:40px" class="actions"></th>
|
|
3555
3682
|
<th style="width:30%" *ngIf="!image_type">Utente</th>
|
|
3556
3683
|
<th style="width:240px;text-align:center">Data</th>
|
|
3557
3684
|
<th style="width:40px" class="actions"></th>
|
|
@@ -3569,7 +3696,21 @@ FHUploadPanelComponent.decorators = [
|
|
|
3569
3696
|
</td>
|
|
3570
3697
|
<td *ngIf="!b_mobile">{{app.Filename}}</td>
|
|
3571
3698
|
<td *ngIf="!b_mobile" style="text-align:center">{{app.Filesize}}</td>
|
|
3572
|
-
<td *ngIf="!b_mobile">
|
|
3699
|
+
<td *ngIf="!b_mobile">
|
|
3700
|
+
<div fxLayout="row">
|
|
3701
|
+
<a mat-icon-button matTooltip="Modifica Descrizione" *ngIf="app.can_delete" (click)="edit_descri(app)">
|
|
3702
|
+
<mat-icon>edit</mat-icon>
|
|
3703
|
+
</a>
|
|
3704
|
+
|
|
3705
|
+
<a mat-icon-button [matTooltip]="'Modifica Descrizione consentita solo a: '+app.nc" *ngIf="!app.can_delete" [disabled]="true" >
|
|
3706
|
+
<mat-icon>edit</mat-icon>
|
|
3707
|
+
</a>
|
|
3708
|
+
|
|
3709
|
+
<div [innerHTML]="app.descrizione" style="width:100%">
|
|
3710
|
+
</div>
|
|
3711
|
+
</div></td>
|
|
3712
|
+
|
|
3713
|
+
|
|
3573
3714
|
<td style="min-width:400px;min-height: 400px" *ngIf="app.type=='IMG'">
|
|
3574
3715
|
<fh-image-viewer [u]="app"></fh-image-viewer>
|
|
3575
3716
|
|
|
@@ -3578,7 +3719,7 @@ FHUploadPanelComponent.decorators = [
|
|
|
3578
3719
|
<td *ngIf="!b_mobile" style="text-align:center">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>
|
|
3579
3720
|
<td *ngIf="!b_mobile" style="text-align:center">
|
|
3580
3721
|
<button mat-icon-button matTooltip="Download File" (click)="download_all(app)">
|
|
3581
|
-
<mat-icon>
|
|
3722
|
+
<mat-icon>cloud_download</mat-icon>
|
|
3582
3723
|
</button>
|
|
3583
3724
|
</td>
|
|
3584
3725
|
|
|
@@ -10116,92 +10257,6 @@ FHLogPanelComponent.propDecorators = {
|
|
|
10116
10257
|
datagrid: [{ type: ViewChild, args: ['dtm',] }]
|
|
10117
10258
|
};
|
|
10118
10259
|
|
|
10119
|
-
/**
|
|
10120
|
-
* @fileoverview added by tsickle
|
|
10121
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10122
|
-
*/
|
|
10123
|
-
class WinAskTextBigComponent {
|
|
10124
|
-
/**
|
|
10125
|
-
* @param {?} dialogRef
|
|
10126
|
-
* @param {?} toastr
|
|
10127
|
-
*/
|
|
10128
|
-
constructor(dialogRef, toastr) {
|
|
10129
|
-
this.dialogRef = dialogRef;
|
|
10130
|
-
this.toastr = toastr;
|
|
10131
|
-
this.title = "";
|
|
10132
|
-
this.label = "";
|
|
10133
|
-
this.valore = "";
|
|
10134
|
-
this.readonly = false;
|
|
10135
|
-
this.show_annulla = true;
|
|
10136
|
-
this.min_chars = 3;
|
|
10137
|
-
}
|
|
10138
|
-
/**
|
|
10139
|
-
* @return {?}
|
|
10140
|
-
*/
|
|
10141
|
-
ngOnInit() {
|
|
10142
|
-
}
|
|
10143
|
-
/**
|
|
10144
|
-
* @return {?}
|
|
10145
|
-
*/
|
|
10146
|
-
show() {
|
|
10147
|
-
}
|
|
10148
|
-
/**
|
|
10149
|
-
* @return {?}
|
|
10150
|
-
*/
|
|
10151
|
-
hide() {
|
|
10152
|
-
this.dialogRef.close(null);
|
|
10153
|
-
}
|
|
10154
|
-
/**
|
|
10155
|
-
* @return {?}
|
|
10156
|
-
*/
|
|
10157
|
-
do_check() {
|
|
10158
|
-
if (this.valore.length < this.min_chars) {
|
|
10159
|
-
this.toastr.error('Il valore deve contenere almeno ' + this.min_chars + ' caratteri');
|
|
10160
|
-
return;
|
|
10161
|
-
}
|
|
10162
|
-
this.dialogRef.close(this.valore);
|
|
10163
|
-
}
|
|
10164
|
-
/**
|
|
10165
|
-
* @return {?}
|
|
10166
|
-
*/
|
|
10167
|
-
chiudi() {
|
|
10168
|
-
this.dialogRef.close(null);
|
|
10169
|
-
}
|
|
10170
|
-
}
|
|
10171
|
-
WinAskTextBigComponent.decorators = [
|
|
10172
|
-
{ type: Component, args: [{
|
|
10173
|
-
selector: 'app-win_ask_text',
|
|
10174
|
-
template: `
|
|
10175
|
-
|
|
10176
|
-
<h2 mat-dialog-title>{{title}}</h2>
|
|
10177
|
-
<mat-dialog-content style="width:600px">
|
|
10178
|
-
<mat-form-field>
|
|
10179
|
-
<textarea matInput [readonly]="readonly" placeholder="{{label}}" type="text" [(ngModel)]="valore" style="min-width:600px" rows="15"
|
|
10180
|
-
required></textarea>
|
|
10181
|
-
</mat-form-field>
|
|
10182
|
-
</mat-dialog-content>
|
|
10183
|
-
<mat-dialog-actions style="width:100%;horizontal-align: center">
|
|
10184
|
-
<button mat-raised-button color="primary" (click)="do_check()">OK</button>
|
|
10185
|
-
<button *ngIf="show_annulla" mat-raised-button color="warn" (click)="chiudi()">ANNULLA</button>
|
|
10186
|
-
</mat-dialog-actions>
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
`
|
|
10190
|
-
}] }
|
|
10191
|
-
];
|
|
10192
|
-
/** @nocollapse */
|
|
10193
|
-
WinAskTextBigComponent.ctorParameters = () => [
|
|
10194
|
-
{ type: MatDialogRef },
|
|
10195
|
-
{ type: ToastrService }
|
|
10196
|
-
];
|
|
10197
|
-
WinAskTextBigComponent.propDecorators = {
|
|
10198
|
-
title: [{ type: Input }],
|
|
10199
|
-
label: [{ type: Input }],
|
|
10200
|
-
valore: [{ type: Input }],
|
|
10201
|
-
readonly: [{ type: Input }],
|
|
10202
|
-
show_annulla: [{ type: Input }]
|
|
10203
|
-
};
|
|
10204
|
-
|
|
10205
10260
|
/**
|
|
10206
10261
|
* @fileoverview added by tsickle
|
|
10207
10262
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|