@fluxhub/fluxhub-lib 1.0.343 → 1.0.345

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.
@@ -3711,6 +3711,89 @@ var AuthenticationService = /** @class */ (function () {
3711
3711
  return AuthenticationService;
3712
3712
  }());
3713
3713
 
3714
+ /**
3715
+ * @fileoverview added by tsickle
3716
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3717
+ */
3718
+ var WinAskTextBigComponent = /** @class */ (function () {
3719
+ function WinAskTextBigComponent(dialogRef, toastr) {
3720
+ this.dialogRef = dialogRef;
3721
+ this.toastr = toastr;
3722
+ this.title = "";
3723
+ this.label = "";
3724
+ this.valore = "";
3725
+ this.readonly = false;
3726
+ this.show_annulla = true;
3727
+ this.min_chars = 3;
3728
+ }
3729
+ /**
3730
+ * @return {?}
3731
+ */
3732
+ WinAskTextBigComponent.prototype.ngOnInit = /**
3733
+ * @return {?}
3734
+ */
3735
+ function () {
3736
+ };
3737
+ /**
3738
+ * @return {?}
3739
+ */
3740
+ WinAskTextBigComponent.prototype.show = /**
3741
+ * @return {?}
3742
+ */
3743
+ function () {
3744
+ };
3745
+ /**
3746
+ * @return {?}
3747
+ */
3748
+ WinAskTextBigComponent.prototype.hide = /**
3749
+ * @return {?}
3750
+ */
3751
+ function () {
3752
+ this.dialogRef.close(null);
3753
+ };
3754
+ /**
3755
+ * @return {?}
3756
+ */
3757
+ WinAskTextBigComponent.prototype.do_check = /**
3758
+ * @return {?}
3759
+ */
3760
+ function () {
3761
+ if (this.valore.length < this.min_chars) {
3762
+ this.toastr.error('Il valore deve contenere almeno ' + this.min_chars + ' caratteri');
3763
+ return;
3764
+ }
3765
+ this.dialogRef.close(this.valore);
3766
+ };
3767
+ /**
3768
+ * @return {?}
3769
+ */
3770
+ WinAskTextBigComponent.prototype.chiudi = /**
3771
+ * @return {?}
3772
+ */
3773
+ function () {
3774
+ this.dialogRef.close(null);
3775
+ };
3776
+ WinAskTextBigComponent.decorators = [
3777
+ { type: Component, args: [{
3778
+ selector: 'app-win_ask_text',
3779
+ 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>&nbsp;&nbsp;&nbsp;\n <button *ngIf=\"show_annulla\" mat-raised-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </mat-dialog-actions>\n\n\n "
3780
+ }] }
3781
+ ];
3782
+ /** @nocollapse */
3783
+ WinAskTextBigComponent.ctorParameters = function () { return [
3784
+ { type: MatDialogRef },
3785
+ { type: ToastrService }
3786
+ ]; };
3787
+ WinAskTextBigComponent.propDecorators = {
3788
+ title: [{ type: Input }],
3789
+ label: [{ type: Input }],
3790
+ valore: [{ type: Input }],
3791
+ readonly: [{ type: Input }],
3792
+ show_annulla: [{ type: Input }]
3793
+ };
3794
+ return WinAskTextBigComponent;
3795
+ }());
3796
+
3714
3797
  /**
3715
3798
  * @fileoverview added by tsickle
3716
3799
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -3755,6 +3838,51 @@ var FHUploadPanelComponent = /** @class */ (function () {
3755
3838
  else
3756
3839
  window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3757
3840
  };
3841
+ /**
3842
+ * @param {?} ax
3843
+ * @return {?}
3844
+ */
3845
+ FHUploadPanelComponent.prototype.edit_descri = /**
3846
+ * @param {?} ax
3847
+ * @return {?}
3848
+ */
3849
+ function (ax) {
3850
+ var _this = this;
3851
+ /** @type {?} */
3852
+ var dialogRef = this
3853
+ .dialog
3854
+ .open(WinAskTextBigComponent);
3855
+ dialogRef.componentInstance.label = "Descrizione Allegato";
3856
+ dialogRef.componentInstance.valore = ax.descrizione;
3857
+ dialogRef
3858
+ .afterClosed()
3859
+ .subscribe((/**
3860
+ * @param {?} result
3861
+ * @return {?}
3862
+ */
3863
+ function (result) {
3864
+ if (result != null) {
3865
+ /** @type {?} */
3866
+ var p = new QParam();
3867
+ p.sql = "UPDATE_ALLEGATI_DESCRIZIONE";
3868
+ p.types = ['int', 'string'];
3869
+ p.values = [ax.id, result];
3870
+ _this
3871
+ ._dataService
3872
+ .doQuery(p)
3873
+ .subscribe((/**
3874
+ * @param {?} data
3875
+ * @return {?}
3876
+ */
3877
+ function (data) {
3878
+ if (data != null)
3879
+ if (data.result_msg == "OK") {
3880
+ _this.ref_allegato();
3881
+ }
3882
+ }));
3883
+ }
3884
+ }));
3885
+ };
3758
3886
  /**
3759
3887
  * @param {?} ax
3760
3888
  * @return {?}
@@ -3918,7 +4046,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
3918
4046
  };
3919
4047
  FHUploadPanelComponent.decorators = [
3920
4048
  { type: Component, args: [{
3921
- 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\">{{app.descrizione}}</td>\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>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 ",
4049
+ 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\">{{app.descrizione}}</td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\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 </td>\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 ",
3922
4050
  styles: ["\n\n \n\n "]
3923
4051
  }] }
3924
4052
  ];
@@ -5879,6 +6007,15 @@ wkfapp = /** @class */ (function () {
5879
6007
  */
5880
6008
  function () {
5881
6009
  var _this = this;
6010
+ console.log('run_grid');
6011
+ if (this.get_grid() == null) {
6012
+ setTimeout((/**
6013
+ * @return {?}
6014
+ */
6015
+ function () { _this.run_grid(); }), 500);
6016
+ return;
6017
+ }
6018
+ console.log(this.get_grid().ready);
5882
6019
  if (this.get_grid().ready)
5883
6020
  this.init_grid();
5884
6021
  else
@@ -10799,89 +10936,6 @@ var FHLogPanelComponent = /** @class */ (function () {
10799
10936
  return FHLogPanelComponent;
10800
10937
  }());
10801
10938
 
10802
- /**
10803
- * @fileoverview added by tsickle
10804
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10805
- */
10806
- var WinAskTextBigComponent = /** @class */ (function () {
10807
- function WinAskTextBigComponent(dialogRef, toastr) {
10808
- this.dialogRef = dialogRef;
10809
- this.toastr = toastr;
10810
- this.title = "";
10811
- this.label = "";
10812
- this.valore = "";
10813
- this.readonly = false;
10814
- this.show_annulla = true;
10815
- this.min_chars = 3;
10816
- }
10817
- /**
10818
- * @return {?}
10819
- */
10820
- WinAskTextBigComponent.prototype.ngOnInit = /**
10821
- * @return {?}
10822
- */
10823
- function () {
10824
- };
10825
- /**
10826
- * @return {?}
10827
- */
10828
- WinAskTextBigComponent.prototype.show = /**
10829
- * @return {?}
10830
- */
10831
- function () {
10832
- };
10833
- /**
10834
- * @return {?}
10835
- */
10836
- WinAskTextBigComponent.prototype.hide = /**
10837
- * @return {?}
10838
- */
10839
- function () {
10840
- this.dialogRef.close(null);
10841
- };
10842
- /**
10843
- * @return {?}
10844
- */
10845
- WinAskTextBigComponent.prototype.do_check = /**
10846
- * @return {?}
10847
- */
10848
- function () {
10849
- if (this.valore.length < this.min_chars) {
10850
- this.toastr.error('Il valore deve contenere almeno ' + this.min_chars + ' caratteri');
10851
- return;
10852
- }
10853
- this.dialogRef.close(this.valore);
10854
- };
10855
- /**
10856
- * @return {?}
10857
- */
10858
- WinAskTextBigComponent.prototype.chiudi = /**
10859
- * @return {?}
10860
- */
10861
- function () {
10862
- this.dialogRef.close(null);
10863
- };
10864
- WinAskTextBigComponent.decorators = [
10865
- { type: Component, args: [{
10866
- selector: 'app-win_ask_text',
10867
- 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>&nbsp;&nbsp;&nbsp;\n <button *ngIf=\"show_annulla\" mat-raised-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </mat-dialog-actions>\n\n\n "
10868
- }] }
10869
- ];
10870
- /** @nocollapse */
10871
- WinAskTextBigComponent.ctorParameters = function () { return [
10872
- { type: MatDialogRef },
10873
- { type: ToastrService }
10874
- ]; };
10875
- WinAskTextBigComponent.propDecorators = {
10876
- title: [{ type: Input }],
10877
- label: [{ type: Input }],
10878
- valore: [{ type: Input }],
10879
- readonly: [{ type: Input }],
10880
- show_annulla: [{ type: Input }]
10881
- };
10882
- return WinAskTextBigComponent;
10883
- }());
10884
-
10885
10939
  /**
10886
10940
  * @fileoverview added by tsickle
10887
10941
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc