@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.
@@ -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>&nbsp;&nbsp;&nbsp;\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\">{{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 ",
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\">{{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 ",
3943
4071
  styles: ["\n\n \n\n "]
3944
4072
  }] }
3945
4073
  ];
@@ -5900,6 +6028,15 @@
5900
6028
  */
5901
6029
  function () {
5902
6030
  var _this = this;
6031
+ console.log('run_grid');
6032
+ if (this.get_grid() == null) {
6033
+ setTimeout((/**
6034
+ * @return {?}
6035
+ */
6036
+ function () { _this.run_grid(); }), 500);
6037
+ return;
6038
+ }
6039
+ console.log(this.get_grid().ready);
5903
6040
  if (this.get_grid().ready)
5904
6041
  this.init_grid();
5905
6042
  else
@@ -10820,89 +10957,6 @@
10820
10957
  return FHLogPanelComponent;
10821
10958
  }());
10822
10959
 
10823
- /**
10824
- * @fileoverview added by tsickle
10825
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10826
- */
10827
- var WinAskTextBigComponent = /** @class */ (function () {
10828
- function WinAskTextBigComponent(dialogRef, toastr) {
10829
- this.dialogRef = dialogRef;
10830
- this.toastr = toastr;
10831
- this.title = "";
10832
- this.label = "";
10833
- this.valore = "";
10834
- this.readonly = false;
10835
- this.show_annulla = true;
10836
- this.min_chars = 3;
10837
- }
10838
- /**
10839
- * @return {?}
10840
- */
10841
- WinAskTextBigComponent.prototype.ngOnInit = /**
10842
- * @return {?}
10843
- */
10844
- function () {
10845
- };
10846
- /**
10847
- * @return {?}
10848
- */
10849
- WinAskTextBigComponent.prototype.show = /**
10850
- * @return {?}
10851
- */
10852
- function () {
10853
- };
10854
- /**
10855
- * @return {?}
10856
- */
10857
- WinAskTextBigComponent.prototype.hide = /**
10858
- * @return {?}
10859
- */
10860
- function () {
10861
- this.dialogRef.close(null);
10862
- };
10863
- /**
10864
- * @return {?}
10865
- */
10866
- WinAskTextBigComponent.prototype.do_check = /**
10867
- * @return {?}
10868
- */
10869
- function () {
10870
- if (this.valore.length < this.min_chars) {
10871
- this.toastr.error('Il valore deve contenere almeno ' + this.min_chars + ' caratteri');
10872
- return;
10873
- }
10874
- this.dialogRef.close(this.valore);
10875
- };
10876
- /**
10877
- * @return {?}
10878
- */
10879
- WinAskTextBigComponent.prototype.chiudi = /**
10880
- * @return {?}
10881
- */
10882
- function () {
10883
- this.dialogRef.close(null);
10884
- };
10885
- WinAskTextBigComponent.decorators = [
10886
- { type: core.Component, args: [{
10887
- selector: 'app-win_ask_text',
10888
- 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 "
10889
- }] }
10890
- ];
10891
- /** @nocollapse */
10892
- WinAskTextBigComponent.ctorParameters = function () { return [
10893
- { type: material.MatDialogRef },
10894
- { type: ngxToastr.ToastrService }
10895
- ]; };
10896
- WinAskTextBigComponent.propDecorators = {
10897
- title: [{ type: core.Input }],
10898
- label: [{ type: core.Input }],
10899
- valore: [{ type: core.Input }],
10900
- readonly: [{ type: core.Input }],
10901
- show_annulla: [{ type: core.Input }]
10902
- };
10903
- return WinAskTextBigComponent;
10904
- }());
10905
-
10906
10960
  /**
10907
10961
  * @fileoverview added by tsickle
10908
10962
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc