@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
|
@@ -3732,6 +3732,89 @@
|
|
|
3732
3732
|
return AuthenticationService;
|
|
3733
3733
|
}());
|
|
3734
3734
|
|
|
3735
|
+
/**
|
|
3736
|
+
* @fileoverview added by tsickle
|
|
3737
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3738
|
+
*/
|
|
3739
|
+
var WinAskTextBigComponent = /** @class */ (function () {
|
|
3740
|
+
function WinAskTextBigComponent(dialogRef, toastr) {
|
|
3741
|
+
this.dialogRef = dialogRef;
|
|
3742
|
+
this.toastr = toastr;
|
|
3743
|
+
this.title = "";
|
|
3744
|
+
this.label = "";
|
|
3745
|
+
this.valore = "";
|
|
3746
|
+
this.readonly = false;
|
|
3747
|
+
this.show_annulla = true;
|
|
3748
|
+
this.min_chars = 3;
|
|
3749
|
+
}
|
|
3750
|
+
/**
|
|
3751
|
+
* @return {?}
|
|
3752
|
+
*/
|
|
3753
|
+
WinAskTextBigComponent.prototype.ngOnInit = /**
|
|
3754
|
+
* @return {?}
|
|
3755
|
+
*/
|
|
3756
|
+
function () {
|
|
3757
|
+
};
|
|
3758
|
+
/**
|
|
3759
|
+
* @return {?}
|
|
3760
|
+
*/
|
|
3761
|
+
WinAskTextBigComponent.prototype.show = /**
|
|
3762
|
+
* @return {?}
|
|
3763
|
+
*/
|
|
3764
|
+
function () {
|
|
3765
|
+
};
|
|
3766
|
+
/**
|
|
3767
|
+
* @return {?}
|
|
3768
|
+
*/
|
|
3769
|
+
WinAskTextBigComponent.prototype.hide = /**
|
|
3770
|
+
* @return {?}
|
|
3771
|
+
*/
|
|
3772
|
+
function () {
|
|
3773
|
+
this.dialogRef.close(null);
|
|
3774
|
+
};
|
|
3775
|
+
/**
|
|
3776
|
+
* @return {?}
|
|
3777
|
+
*/
|
|
3778
|
+
WinAskTextBigComponent.prototype.do_check = /**
|
|
3779
|
+
* @return {?}
|
|
3780
|
+
*/
|
|
3781
|
+
function () {
|
|
3782
|
+
if (this.valore.length < this.min_chars) {
|
|
3783
|
+
this.toastr.error('Il valore deve contenere almeno ' + this.min_chars + ' caratteri');
|
|
3784
|
+
return;
|
|
3785
|
+
}
|
|
3786
|
+
this.dialogRef.close(this.valore);
|
|
3787
|
+
};
|
|
3788
|
+
/**
|
|
3789
|
+
* @return {?}
|
|
3790
|
+
*/
|
|
3791
|
+
WinAskTextBigComponent.prototype.chiudi = /**
|
|
3792
|
+
* @return {?}
|
|
3793
|
+
*/
|
|
3794
|
+
function () {
|
|
3795
|
+
this.dialogRef.close(null);
|
|
3796
|
+
};
|
|
3797
|
+
WinAskTextBigComponent.decorators = [
|
|
3798
|
+
{ type: core.Component, args: [{
|
|
3799
|
+
selector: 'app-win_ask_text',
|
|
3800
|
+
template: "\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:600px\">\n <mat-form-field>\n <textarea matInput [readonly]=\"readonly\" placeholder=\"{{label}}\" type=\"text\" [(ngModel)]=\"valore\" style=\"min-width:600px\" rows=\"15\"\n required></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions style=\"width:100%;horizontal-align: center\">\n <button mat-raised-button color=\"primary\" (click)=\"do_check()\">OK</button> \n <button *ngIf=\"show_annulla\" mat-raised-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </mat-dialog-actions>\n\n\n "
|
|
3801
|
+
}] }
|
|
3802
|
+
];
|
|
3803
|
+
/** @nocollapse */
|
|
3804
|
+
WinAskTextBigComponent.ctorParameters = function () { return [
|
|
3805
|
+
{ type: material.MatDialogRef },
|
|
3806
|
+
{ type: ngxToastr.ToastrService }
|
|
3807
|
+
]; };
|
|
3808
|
+
WinAskTextBigComponent.propDecorators = {
|
|
3809
|
+
title: [{ type: core.Input }],
|
|
3810
|
+
label: [{ type: core.Input }],
|
|
3811
|
+
valore: [{ type: core.Input }],
|
|
3812
|
+
readonly: [{ type: core.Input }],
|
|
3813
|
+
show_annulla: [{ type: core.Input }]
|
|
3814
|
+
};
|
|
3815
|
+
return WinAskTextBigComponent;
|
|
3816
|
+
}());
|
|
3817
|
+
|
|
3735
3818
|
/**
|
|
3736
3819
|
* @fileoverview added by tsickle
|
|
3737
3820
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3776,6 +3859,51 @@
|
|
|
3776
3859
|
else
|
|
3777
3860
|
window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
3778
3861
|
};
|
|
3862
|
+
/**
|
|
3863
|
+
* @param {?} ax
|
|
3864
|
+
* @return {?}
|
|
3865
|
+
*/
|
|
3866
|
+
FHUploadPanelComponent.prototype.edit_descri = /**
|
|
3867
|
+
* @param {?} ax
|
|
3868
|
+
* @return {?}
|
|
3869
|
+
*/
|
|
3870
|
+
function (ax) {
|
|
3871
|
+
var _this = this;
|
|
3872
|
+
/** @type {?} */
|
|
3873
|
+
var dialogRef = this
|
|
3874
|
+
.dialog
|
|
3875
|
+
.open(WinAskTextBigComponent);
|
|
3876
|
+
dialogRef.componentInstance.label = "Descrizione Allegato";
|
|
3877
|
+
dialogRef.componentInstance.valore = ax.descrizione;
|
|
3878
|
+
dialogRef
|
|
3879
|
+
.afterClosed()
|
|
3880
|
+
.subscribe((/**
|
|
3881
|
+
* @param {?} result
|
|
3882
|
+
* @return {?}
|
|
3883
|
+
*/
|
|
3884
|
+
function (result) {
|
|
3885
|
+
if (result != null) {
|
|
3886
|
+
/** @type {?} */
|
|
3887
|
+
var p = new QParam();
|
|
3888
|
+
p.sql = "UPDATE_ALLEGATI_DESCRIZIONE";
|
|
3889
|
+
p.types = ['int', 'string'];
|
|
3890
|
+
p.values = [ax.id, result];
|
|
3891
|
+
_this
|
|
3892
|
+
._dataService
|
|
3893
|
+
.doQuery(p)
|
|
3894
|
+
.subscribe((/**
|
|
3895
|
+
* @param {?} data
|
|
3896
|
+
* @return {?}
|
|
3897
|
+
*/
|
|
3898
|
+
function (data) {
|
|
3899
|
+
if (data != null)
|
|
3900
|
+
if (data.result_msg == "OK") {
|
|
3901
|
+
_this.ref_allegato();
|
|
3902
|
+
}
|
|
3903
|
+
}));
|
|
3904
|
+
}
|
|
3905
|
+
}));
|
|
3906
|
+
};
|
|
3779
3907
|
/**
|
|
3780
3908
|
* @param {?} ax
|
|
3781
3909
|
* @return {?}
|
|
@@ -3939,7 +4067,7 @@
|
|
|
3939
4067
|
};
|
|
3940
4068
|
FHUploadPanelComponent.decorators = [
|
|
3941
4069
|
{ type: core.Component, args: [{
|
|
3942
|
-
selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3>{{label}}</h3>\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 <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\n <th style=\"width:20%\" *ngIf=\"image_type\">Descrizione</th>\n <th style=\"width:10%\" *ngIf=\"image_type\">Utente</th>\n <th style=\"width:40%\" *ngIf=\"image_type\"></th>\n\n\n\n <th style=\"width:50%\" *ngIf=\"!image_type\">Descrizione</th>\n <th style=\"width:30%\" *ngIf=\"!image_type\">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\">
|
|
4070
|
+
selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3>{{label}}</h3>\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 <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\n <th style=\"width:20%\" *ngIf=\"image_type\">Descrizione</th>\n <th style=\"width:10%\" *ngIf=\"image_type\">Utente</th>\n <th style=\"width:40%\" *ngIf=\"image_type\"></th>\n\n\n\n <th style=\"width:50%\" *ngIf=\"!image_type\">Descrizione</th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" *ngIf=\"!image_type\">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\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.descrizione\" style=\"width:100%\">\n </div>\n </div></td>\n\n \n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </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>cloud_download</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 ",
|
|
3943
4071
|
styles: ["\n\n \n\n "]
|
|
3944
4072
|
}] }
|
|
3945
4073
|
];
|
|
@@ -10829,89 +10957,6 @@
|
|
|
10829
10957
|
return FHLogPanelComponent;
|
|
10830
10958
|
}());
|
|
10831
10959
|
|
|
10832
|
-
/**
|
|
10833
|
-
* @fileoverview added by tsickle
|
|
10834
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10835
|
-
*/
|
|
10836
|
-
var WinAskTextBigComponent = /** @class */ (function () {
|
|
10837
|
-
function WinAskTextBigComponent(dialogRef, toastr) {
|
|
10838
|
-
this.dialogRef = dialogRef;
|
|
10839
|
-
this.toastr = toastr;
|
|
10840
|
-
this.title = "";
|
|
10841
|
-
this.label = "";
|
|
10842
|
-
this.valore = "";
|
|
10843
|
-
this.readonly = false;
|
|
10844
|
-
this.show_annulla = true;
|
|
10845
|
-
this.min_chars = 3;
|
|
10846
|
-
}
|
|
10847
|
-
/**
|
|
10848
|
-
* @return {?}
|
|
10849
|
-
*/
|
|
10850
|
-
WinAskTextBigComponent.prototype.ngOnInit = /**
|
|
10851
|
-
* @return {?}
|
|
10852
|
-
*/
|
|
10853
|
-
function () {
|
|
10854
|
-
};
|
|
10855
|
-
/**
|
|
10856
|
-
* @return {?}
|
|
10857
|
-
*/
|
|
10858
|
-
WinAskTextBigComponent.prototype.show = /**
|
|
10859
|
-
* @return {?}
|
|
10860
|
-
*/
|
|
10861
|
-
function () {
|
|
10862
|
-
};
|
|
10863
|
-
/**
|
|
10864
|
-
* @return {?}
|
|
10865
|
-
*/
|
|
10866
|
-
WinAskTextBigComponent.prototype.hide = /**
|
|
10867
|
-
* @return {?}
|
|
10868
|
-
*/
|
|
10869
|
-
function () {
|
|
10870
|
-
this.dialogRef.close(null);
|
|
10871
|
-
};
|
|
10872
|
-
/**
|
|
10873
|
-
* @return {?}
|
|
10874
|
-
*/
|
|
10875
|
-
WinAskTextBigComponent.prototype.do_check = /**
|
|
10876
|
-
* @return {?}
|
|
10877
|
-
*/
|
|
10878
|
-
function () {
|
|
10879
|
-
if (this.valore.length < this.min_chars) {
|
|
10880
|
-
this.toastr.error('Il valore deve contenere almeno ' + this.min_chars + ' caratteri');
|
|
10881
|
-
return;
|
|
10882
|
-
}
|
|
10883
|
-
this.dialogRef.close(this.valore);
|
|
10884
|
-
};
|
|
10885
|
-
/**
|
|
10886
|
-
* @return {?}
|
|
10887
|
-
*/
|
|
10888
|
-
WinAskTextBigComponent.prototype.chiudi = /**
|
|
10889
|
-
* @return {?}
|
|
10890
|
-
*/
|
|
10891
|
-
function () {
|
|
10892
|
-
this.dialogRef.close(null);
|
|
10893
|
-
};
|
|
10894
|
-
WinAskTextBigComponent.decorators = [
|
|
10895
|
-
{ type: core.Component, args: [{
|
|
10896
|
-
selector: 'app-win_ask_text',
|
|
10897
|
-
template: "\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:600px\">\n <mat-form-field>\n <textarea matInput [readonly]=\"readonly\" placeholder=\"{{label}}\" type=\"text\" [(ngModel)]=\"valore\" style=\"min-width:600px\" rows=\"15\"\n required></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions style=\"width:100%;horizontal-align: center\">\n <button mat-raised-button color=\"primary\" (click)=\"do_check()\">OK</button> \n <button *ngIf=\"show_annulla\" mat-raised-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </mat-dialog-actions>\n\n\n "
|
|
10898
|
-
}] }
|
|
10899
|
-
];
|
|
10900
|
-
/** @nocollapse */
|
|
10901
|
-
WinAskTextBigComponent.ctorParameters = function () { return [
|
|
10902
|
-
{ type: material.MatDialogRef },
|
|
10903
|
-
{ type: ngxToastr.ToastrService }
|
|
10904
|
-
]; };
|
|
10905
|
-
WinAskTextBigComponent.propDecorators = {
|
|
10906
|
-
title: [{ type: core.Input }],
|
|
10907
|
-
label: [{ type: core.Input }],
|
|
10908
|
-
valore: [{ type: core.Input }],
|
|
10909
|
-
readonly: [{ type: core.Input }],
|
|
10910
|
-
show_annulla: [{ type: core.Input }]
|
|
10911
|
-
};
|
|
10912
|
-
return WinAskTextBigComponent;
|
|
10913
|
-
}());
|
|
10914
|
-
|
|
10915
10960
|
/**
|
|
10916
10961
|
* @fileoverview added by tsickle
|
|
10917
10962
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|