@fluxhub/fluxhub-lib 1.0.354 → 1.0.355

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.
@@ -3776,7 +3776,7 @@ var WinAskTextBigComponent = /** @class */ (function () {
3776
3776
  WinAskTextBigComponent.decorators = [
3777
3777
  { type: Component, args: [{
3778
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 appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <textarea matInput [readonly]=\"readonly\" [(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 "
3779
+ template: "\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:600px\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <textarea matInput [readonly]=\"readonly\" [(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%;text-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
3780
  }] }
3781
3781
  ];
3782
3782
  /** @nocollapse */
@@ -8236,7 +8236,7 @@ var FHGridComponent = /** @class */ (function () {
8236
8236
  FHGridComponent.decorators = [
8237
8237
  { type: Component, args: [{
8238
8238
  selector: 'FHGrid',
8239
- template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div>\r\n\t\t \t\t<h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon>&nbsp;\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n<!--\r\n <FHComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n-->\r\n\r\n \t&nbsp;\t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div *ngIf=\"abilita_export\" matTooltip=\"EXPORT EXCEL\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/xlsx.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"export_excel()\" alt=\"Export Excel\">\r\n </div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" fxFlex=\"95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\r\n\t\t\t\t\t\t\t\t (afterFilterChanged)=\"onAfterFilterChanged()\"\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
8239
+ template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div>\r\n\t\t \t\t<h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon>&nbsp;\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n\r\n <FHFilterComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHFilterComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t&nbsp;\t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div *ngIf=\"abilita_export\" matTooltip=\"EXPORT EXCEL\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/xlsx.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"export_excel()\" alt=\"Export Excel\">\r\n </div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" fxFlex=\"95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\r\n\t\t\t\t\t\t\t\t (afterFilterChanged)=\"onAfterFilterChanged()\"\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
8240
8240
  styles: ["\n\n "]
8241
8241
  }] }
8242
8242
  ];
@@ -19129,6 +19129,447 @@ var FHRoleManager = /** @class */ (function () {
19129
19129
  return FHRoleManager;
19130
19130
  }());
19131
19131
 
19132
+ /**
19133
+ * @fileoverview added by tsickle
19134
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19135
+ */
19136
+ var FHComboboxComponentFilter = /** @class */ (function () {
19137
+ function FHComboboxComponentFilter(_dataService, _dataService_odbc) {
19138
+ this._dataService = _dataService;
19139
+ this._dataService_odbc = _dataService_odbc;
19140
+ this.init_fill = true;
19141
+ this.sql = "";
19142
+ this.types = new Array();
19143
+ this.values = new Array();
19144
+ this.hidden = false;
19145
+ this.label = "";
19146
+ this.enabled = true;
19147
+ this.required = false;
19148
+ this.sel_label = "";
19149
+ this.fillend = new EventEmitter();
19150
+ this.selchange = new EventEmitter();
19151
+ this.initend = new EventEmitter();
19152
+ this.myData = [];
19153
+ this.valDef = "-1";
19154
+ this.selval = "-1";
19155
+ this.errorMsg = "";
19156
+ this.db_type = "1";
19157
+ this.dis_value = '';
19158
+ this.descri_val = "";
19159
+ }
19160
+ /**
19161
+ * @private
19162
+ * @return {?}
19163
+ */
19164
+ FHComboboxComponentFilter.prototype.update_dis = /**
19165
+ * @private
19166
+ * @return {?}
19167
+ */
19168
+ function () {
19169
+ this.dis_value = '';
19170
+ try {
19171
+ if (this.descri_val != null)
19172
+ if (this.descri_val != "") {
19173
+ this.dis_value = this.descri_val;
19174
+ return;
19175
+ }
19176
+ if (this.valDef == null)
19177
+ this.dis_value = '';
19178
+ else
19179
+ this.dis_value = this.valDef.split('-1').join('');
19180
+ }
19181
+ catch (e) {
19182
+ console.log('errore split -> this.valDef ', this.valDef);
19183
+ }
19184
+ };
19185
+ /**
19186
+ * @return {?}
19187
+ */
19188
+ FHComboboxComponentFilter.prototype.resetValue = /**
19189
+ * @return {?}
19190
+ */
19191
+ function () {
19192
+ this.selval = '-1';
19193
+ this.valDef = '-1';
19194
+ this.update_dis();
19195
+ };
19196
+ /**
19197
+ * @return {?}
19198
+ */
19199
+ FHComboboxComponentFilter.prototype.focus = /**
19200
+ * @return {?}
19201
+ */
19202
+ function () {
19203
+ this.smtr.nativeElement.focus();
19204
+ };
19205
+ /**
19206
+ * @return {?}
19207
+ */
19208
+ FHComboboxComponentFilter.prototype.reset = /**
19209
+ * @return {?}
19210
+ */
19211
+ function () {
19212
+ this.selval = '-1';
19213
+ this.valDef = '-1';
19214
+ this.myData = new Array();
19215
+ this.update_dis();
19216
+ };
19217
+ /**
19218
+ * @return {?}
19219
+ */
19220
+ FHComboboxComponentFilter.prototype.fillCombo = /**
19221
+ * @return {?}
19222
+ */
19223
+ function () {
19224
+ var _this = this;
19225
+ // console.log(this.init_fill);
19226
+ // if(!this.init_fill){this.init_fill=true;return;}
19227
+ // console.log("fillcombo "+this.sql);
19228
+ if (this.sql.indexOf('|') != -1 && this.sql.indexOf('$') != -1) {
19229
+ this.set_options(this.sql);
19230
+ return;
19231
+ }
19232
+ /** @type {?} */
19233
+ var p = new QParam();
19234
+ p.sql = this.sql;
19235
+ p.types = this.types;
19236
+ p.values = this.values;
19237
+ // console.log(p);
19238
+ if (this.db_type == "1")
19239
+ this
19240
+ ._dataService
19241
+ .doQuery(p)
19242
+ .subscribe((/**
19243
+ * @param {?} data
19244
+ * @return {?}
19245
+ */
19246
+ function (data) {
19247
+ if (data != null)
19248
+ if (data.result_msg == "OK") {
19249
+ _this.resetD(data.result_data);
19250
+ }
19251
+ }), (/**
19252
+ * @param {?} err
19253
+ * @return {?}
19254
+ */
19255
+ function (err) {
19256
+ _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" + _this.sql + "]";
19257
+ }));
19258
+ if (this.db_type == "2")
19259
+ this
19260
+ ._dataService_odbc
19261
+ .doQuery(p)
19262
+ .subscribe((/**
19263
+ * @param {?} data
19264
+ * @return {?}
19265
+ */
19266
+ function (data) {
19267
+ if (data != null)
19268
+ if (data.result_msg == "OK") {
19269
+ for (var i = 0; i < data.result_data.length; i++) {
19270
+ if (data.result_data[i].VALORE != null)
19271
+ data.result_data[i].valore = data.result_data[i].VALORE;
19272
+ if (data.result_data[i].DESCRIZIONE_VALORE != null)
19273
+ data.result_data[i].descrizione_valore = data.result_data[i].DESCRIZIONE_VALORE;
19274
+ }
19275
+ _this.resetD(data.result_data);
19276
+ }
19277
+ }), (/**
19278
+ * @param {?} err
19279
+ * @return {?}
19280
+ */
19281
+ function (err) {
19282
+ _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" + _this.sql + "]";
19283
+ }));
19284
+ };
19285
+ /**
19286
+ * @param {?} o
19287
+ * @return {?}
19288
+ */
19289
+ FHComboboxComponentFilter.prototype.add_option = /**
19290
+ * @param {?} o
19291
+ * @return {?}
19292
+ */
19293
+ function (o) {
19294
+ this.myData.push(o);
19295
+ };
19296
+ /**
19297
+ * @param {?} o
19298
+ * @return {?}
19299
+ */
19300
+ FHComboboxComponentFilter.prototype.resetD = /**
19301
+ * @param {?} o
19302
+ * @return {?}
19303
+ */
19304
+ function (o) {
19305
+ this.myData = o;
19306
+ this.selval = '-1';
19307
+ // console.log(this.smtr); console.log(this.smtr.nativeElement);
19308
+ this.setByValue(this.valDef);
19309
+ if (this.getValue() == "-1" && this.valDef != "-1")
19310
+ this.setByDescri(this.valDef);
19311
+ this.fillend.emit();
19312
+ };
19313
+ /**
19314
+ * @param {?} desc_val
19315
+ * @return {?}
19316
+ */
19317
+ FHComboboxComponentFilter.prototype.setByDescri = /**
19318
+ * @param {?} desc_val
19319
+ * @return {?}
19320
+ */
19321
+ function (desc_val) {
19322
+ // console.log("setByDescri "+desc_val);
19323
+ this.valDef = desc_val;
19324
+ this.selval = '-1';
19325
+ if (desc_val == "")
19326
+ return;
19327
+ if (this.myData == null)
19328
+ return;
19329
+ if (this.myData.length == 0 || this.myData[0] == null)
19330
+ return;
19331
+ for (var j = 0; j < this.myData.length; j++)
19332
+ if (this.myData[j].descrizione_valore == desc_val) {
19333
+ this.selval = "" + this.myData[j].valore;
19334
+ if (this.myData[j].descrizione_valore != null)
19335
+ this.descri_val = this.myData[j].descrizione_valore;
19336
+ this.update_dis();
19337
+ return;
19338
+ }
19339
+ this.update_dis();
19340
+ };
19341
+ /**
19342
+ * @param {?} ind
19343
+ * @return {?}
19344
+ */
19345
+ FHComboboxComponentFilter.prototype.setByIndex = /**
19346
+ * @param {?} ind
19347
+ * @return {?}
19348
+ */
19349
+ function (ind) {
19350
+ this.valDef = "";
19351
+ this.selval = '-1';
19352
+ if (this.myData == null)
19353
+ return;
19354
+ if (this.myData.length == 0 || this.myData[0] == null)
19355
+ return;
19356
+ if (this.myData.length > ind) {
19357
+ this.setByDescri(this.myData[ind].descrizione_valore);
19358
+ }
19359
+ };
19360
+ /**
19361
+ * @return {?}
19362
+ */
19363
+ FHComboboxComponentFilter.prototype.getObj = /**
19364
+ * @return {?}
19365
+ */
19366
+ function () {
19367
+ if (this.selval == null)
19368
+ return null;
19369
+ if (this.selval == "-1")
19370
+ return null;
19371
+ else
19372
+ for (var j = 0; j < this.myData.length; j++)
19373
+ if (this.myData[j].valore == this.selval) {
19374
+ return this.myData[j];
19375
+ }
19376
+ };
19377
+ /**
19378
+ * @param {?} desc_val
19379
+ * @return {?}
19380
+ */
19381
+ FHComboboxComponentFilter.prototype.setByValue = /**
19382
+ * @param {?} desc_val
19383
+ * @return {?}
19384
+ */
19385
+ function (desc_val) {
19386
+ this.valDef = desc_val;
19387
+ this.selval = '-1';
19388
+ // console.log(this.myData);
19389
+ if ("" + desc_val == "") {
19390
+ // console.log('qqq1111');
19391
+ return;
19392
+ }
19393
+ // console.log("qui");
19394
+ if (this.myData == null)
19395
+ return;
19396
+ // console.log("qui1");
19397
+ if (this.myData.length == 0 || this.myData[0] == null)
19398
+ return;
19399
+ //console.log("qui2");
19400
+ for (var j = 0; j < this.myData.length; j++) {
19401
+ //console.log(this.myData[j].valore +' '+ desc_val);
19402
+ if (this.myData[j].valore == desc_val) {
19403
+ this.selval = "" + this.myData[j].valore;
19404
+ if (this.myData[j].descrizione_valore != null)
19405
+ this.descri_val = this.myData[j].descrizione_valore;
19406
+ this.update_dis();
19407
+ return;
19408
+ }
19409
+ }
19410
+ this.update_dis();
19411
+ };
19412
+ /**
19413
+ * @return {?}
19414
+ */
19415
+ FHComboboxComponentFilter.prototype.getDescri = /**
19416
+ * @return {?}
19417
+ */
19418
+ function () {
19419
+ if (!this.enabled) {
19420
+ if (this.selval == null)
19421
+ return this.valDef;
19422
+ if (this.selval == "-1")
19423
+ return this.valDef;
19424
+ }
19425
+ if (this.selval == null)
19426
+ return "-1";
19427
+ if (this.selval == "-1")
19428
+ return "-1";
19429
+ else
19430
+ for (var j = 0; j < this.myData.length; j++)
19431
+ if (this.myData[j].valore == this.selval) {
19432
+ return this.myData[j].descrizione_valore;
19433
+ }
19434
+ };
19435
+ /**
19436
+ * @return {?}
19437
+ */
19438
+ FHComboboxComponentFilter.prototype.getValue = /**
19439
+ * @return {?}
19440
+ */
19441
+ function () {
19442
+ // console.log(this.selval);
19443
+ if (!this.enabled) {
19444
+ if (this.selval == null)
19445
+ return this.valDef;
19446
+ if (this.selval == "-1")
19447
+ return this.valDef;
19448
+ }
19449
+ if (this.selval == null)
19450
+ return "-1";
19451
+ if (this.selval == "")
19452
+ return "-1";
19453
+ else
19454
+ return this.selval;
19455
+ };
19456
+ /**
19457
+ * @param {?} campo
19458
+ * @return {?}
19459
+ */
19460
+ FHComboboxComponentFilter.prototype.getData = /**
19461
+ * @param {?} campo
19462
+ * @return {?}
19463
+ */
19464
+ function (campo) {
19465
+ for (var x in this.myData) {
19466
+ if (this.myData[x]['valore'] == this.selval) {
19467
+ return (this.myData[x][campo]);
19468
+ }
19469
+ else {
19470
+ continue;
19471
+ }
19472
+ }
19473
+ };
19474
+ /**
19475
+ * @param {?} s
19476
+ * @return {?}
19477
+ */
19478
+ FHComboboxComponentFilter.prototype.set_options = /**
19479
+ * @param {?} s
19480
+ * @return {?}
19481
+ */
19482
+ function (s) {
19483
+ this.myData = new Array();
19484
+ /** @type {?} */
19485
+ var a = s.split('$');
19486
+ for (var i = 0; i < a.length; i++) {
19487
+ /** @type {?} */
19488
+ var o = new Object();
19489
+ /** @type {?} */
19490
+ var av = a[i].split('|');
19491
+ o.valore = av[1];
19492
+ o.descrizione_valore = av[0];
19493
+ this
19494
+ .myData
19495
+ .push(o);
19496
+ }
19497
+ this.setByValue(this.valDef);
19498
+ if (this.getValue() == "-1")
19499
+ this.setByDescri(this.valDef);
19500
+ };
19501
+ /**
19502
+ * @return {?}
19503
+ */
19504
+ FHComboboxComponentFilter.prototype.ngAfterViewInit = /**
19505
+ * @return {?}
19506
+ */
19507
+ function () {
19508
+ // console.log("ngAfterViewInit"); console.log(this.init_fill);
19509
+ };
19510
+ /**
19511
+ * @return {?}
19512
+ */
19513
+ FHComboboxComponentFilter.prototype.ngOnInit = /**
19514
+ * @return {?}
19515
+ */
19516
+ function () {
19517
+ if (this.init_fill == true) {
19518
+ if (this.sql == '') {
19519
+ //this.errorMsg="QUERY NON CONFIGURATA";
19520
+ return;
19521
+ }
19522
+ this.fillCombo();
19523
+ }
19524
+ else {
19525
+ this.errorMsg = "";
19526
+ }
19527
+ this
19528
+ .initend
19529
+ .emit();
19530
+ };
19531
+ /**
19532
+ * @return {?}
19533
+ */
19534
+ FHComboboxComponentFilter.prototype.sc = /**
19535
+ * @return {?}
19536
+ */
19537
+ function () {
19538
+ this
19539
+ .selchange
19540
+ .emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
19541
+ };
19542
+ FHComboboxComponentFilter.decorators = [
19543
+ { type: Component, args: [{
19544
+ selector: 'FHFilterComboBox', template: "\n <mat-form-field [hidden]=\"!enabled || hidden\" >\n <mat-select #cmb [(ngModel)]=\"selval\" (selectionChange)=\"sc()\" [required]=\"required\" [placeholder]=\"label\">\n <mat-option value=\"-1\">{{sel_label}}</mat-option>\n <mat-option value=\"{{app.valore}}\" *ngFor=\"let app of myData\">{{app.descrizione_valore}}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field [hidden]=\"enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" #el1 matInput [disabled]=\"true\" [(ngModel)]=\"dis_value\">\n </mat-form-field>\n ",
19545
+ styles: ["\n\n "]
19546
+ }] }
19547
+ ];
19548
+ /** @nocollapse */
19549
+ FHComboboxComponentFilter.ctorParameters = function () { return [
19550
+ { type: QueryService },
19551
+ { type: OdbcService }
19552
+ ]; };
19553
+ FHComboboxComponentFilter.propDecorators = {
19554
+ init_fill: [{ type: Input }],
19555
+ sql: [{ type: Input }],
19556
+ types: [{ type: Input }],
19557
+ values: [{ type: Input }],
19558
+ hidden: [{ type: Input }],
19559
+ label: [{ type: Input }],
19560
+ enabled: [{ type: Input }],
19561
+ required: [{ type: Input }],
19562
+ sel_label: [{ type: Input }],
19563
+ smtr: [{ type: ViewChild, args: ['cmb',] }],
19564
+ fillend: [{ type: Output }],
19565
+ selchange: [{ type: Output }],
19566
+ initend: [{ type: Output }],
19567
+ valDef: [{ type: Input }],
19568
+ db_type: [{ type: Input }]
19569
+ };
19570
+ return FHComboboxComponentFilter;
19571
+ }());
19572
+
19132
19573
  /**
19133
19574
  * @fileoverview added by tsickle
19134
19575
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -19212,7 +19653,7 @@ var FluxhubLibModule = /** @class */ (function () {
19212
19653
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
19213
19654
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
19214
19655
  win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
19215
- win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles],
19656
+ win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
19216
19657
  providers: [HighlightService, DragulaService
19217
19658
  ],
19218
19659
  entryComponents: [
@@ -19435,5 +19876,5 @@ var dt = /** @class */ (function () {
19435
19876
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19436
19877
  */
19437
19878
 
19438
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, DateComponent, DtPick, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_mappa, win_salva_annulla, win_show_image, win_time_slider, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, win_commento_sel_notif as ɵba, win_manage_values as ɵbb, win_manage_roles as ɵbc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, SafePipe as ɵf, DecimalMask as ɵg, FHValueAccessor as ɵh, MOMENT_DATE_FORMATS as ɵi, MomentDateAdapter as ɵj, win_grid_help as ɵk, HighlightService as ɵl, FHViewerComponent as ɵm, FHGridToolBarComponent as ɵo, win_assegna as ɵp, win_conferma as ɵq, win_select_canale as ɵr, win_select_level as ɵs, win_uploads as ɵt, win_commenti as ɵu, win_info_doc as ɵv, win_log as ɵw, win_recupera_doc as ɵx, win_riassegna_select_level as ɵy, win_riassegna_select_user as ɵz };
19879
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, DateComponent, DtPick, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_mappa, win_salva_annulla, win_show_image, win_time_slider, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, win_commento_sel_notif as ɵba, win_manage_values as ɵbb, win_manage_roles as ɵbc, FHComboboxComponentFilter as ɵbd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, SafePipe as ɵf, DecimalMask as ɵg, FHValueAccessor as ɵh, MOMENT_DATE_FORMATS as ɵi, MomentDateAdapter as ɵj, win_grid_help as ɵk, HighlightService as ɵl, FHViewerComponent as ɵm, FHGridToolBarComponent as ɵo, win_assegna as ɵp, win_conferma as ɵq, win_select_canale as ɵr, win_select_level as ɵs, win_uploads as ɵt, win_commenti as ɵu, win_info_doc as ɵv, win_log as ɵw, win_recupera_doc as ɵx, win_riassegna_select_level as ɵy, win_riassegna_select_user as ɵz };
19439
19880
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map