@fluxhub/fluxhub-lib 1.0.354 → 1.0.356
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 +449 -7
- 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/fluxhub-fluxhub-lib.js +2 -1
- package/esm2015/lib/controls/fhgrid.js +2 -2
- package/esm2015/lib/controls/grid_editors/fhcombobox_filter.js +462 -0
- package/esm2015/lib/controls/win_ask_textbig.js +2 -2
- package/esm2015/lib/fluxhub-lib.module.js +3 -2
- package/esm2015/lib/wkf_engine/win_riassegna_select_level.js +4 -3
- package/esm2015/lib/wkf_engine/win_select_canale.js +4 -3
- package/esm2015/lib/wkf_engine/win_select_level.js +4 -3
- package/esm2015/lib/wkf_engine/win_uploads.js +4 -4
- package/esm5/fluxhub-fluxhub-lib.js +2 -1
- package/esm5/lib/controls/fhgrid.js +2 -2
- package/esm5/lib/controls/grid_editors/fhcombobox_filter.js +510 -0
- package/esm5/lib/controls/win_ask_textbig.js +2 -2
- package/esm5/lib/fluxhub-lib.module.js +3 -2
- package/esm5/lib/wkf_engine/win_riassegna_select_level.js +2 -2
- package/esm5/lib/wkf_engine/win_select_canale.js +2 -2
- package/esm5/lib/wkf_engine/win_select_level.js +2 -2
- package/esm5/lib/wkf_engine/win_uploads.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +410 -13
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +449 -8
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +1 -0
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/grid_editors/fhcombobox_filter.d.ts +46 -0
- package/package.json +1 -1
|
@@ -3408,7 +3408,7 @@ WinAskTextBigComponent.decorators = [
|
|
|
3408
3408
|
required></textarea>
|
|
3409
3409
|
</mat-form-field>
|
|
3410
3410
|
</mat-dialog-content>
|
|
3411
|
-
<mat-dialog-actions style="width:100%;
|
|
3411
|
+
<mat-dialog-actions style="width:100%;text-align: center">
|
|
3412
3412
|
<button mat-raised-button color="primary" (click)="do_check()">OK</button>
|
|
3413
3413
|
<button *ngIf="show_annulla" mat-raised-button color="warn" (click)="chiudi()">ANNULLA</button>
|
|
3414
3414
|
</mat-dialog-actions>
|
|
@@ -4637,11 +4637,12 @@ win_riassegna_select_level.decorators = [
|
|
|
4637
4637
|
|
|
4638
4638
|
</mat-toolbar>
|
|
4639
4639
|
<mat-dialog-content><br><br>
|
|
4640
|
-
<mat-
|
|
4640
|
+
<mat-form-field style="width:100%" appearance="outline" floatLabel="always"><mat-label>Seleziona Step:</mat-label>
|
|
4641
|
+
<mat-select #cmb [(ngModel)]="selval" (change)="sc()">
|
|
4641
4642
|
<mat-option value="-1">Seleziona</mat-option>
|
|
4642
4643
|
<mat-option value="{{app.livello}}" *ngFor="let app of myData">{{app.descri_livello}}</mat-option>
|
|
4643
4644
|
</mat-select>
|
|
4644
|
-
|
|
4645
|
+
</mat-form-field>
|
|
4645
4646
|
|
|
4646
4647
|
<br><br><br><br>
|
|
4647
4648
|
<div style="width:100%;text-align:center;">
|
|
@@ -7682,7 +7683,7 @@ class FHGridComponent {
|
|
|
7682
7683
|
FHGridComponent.decorators = [
|
|
7683
7684
|
{ type: Component, args: [{
|
|
7684
7685
|
selector: 'FHGrid',
|
|
7685
|
-
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 \r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \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> \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
|
|
7686
|
+
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 \r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \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> \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 \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> \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",
|
|
7686
7687
|
styles: [`
|
|
7687
7688
|
|
|
7688
7689
|
`]
|
|
@@ -11630,11 +11631,12 @@ win_select_canale.decorators = [
|
|
|
11630
11631
|
|
|
11631
11632
|
</mat-toolbar>
|
|
11632
11633
|
<div mat-dialog-content><br><br>
|
|
11633
|
-
<mat-
|
|
11634
|
+
<mat-form-field style="width:100%" appearance="outline" floatLabel="always"><mat-label>Seleziona Ambito:</mat-label>
|
|
11635
|
+
<mat-select #cmb [(ngModel)]="selval" >
|
|
11634
11636
|
<mat-option value="-1">Seleziona</mat-option>
|
|
11635
11637
|
<mat-option value="{{app}}" *ngFor="let app of myData">{{app}}</mat-option>
|
|
11636
11638
|
</mat-select>
|
|
11637
|
-
|
|
11639
|
+
</mat-form-field>
|
|
11638
11640
|
|
|
11639
11641
|
</div>
|
|
11640
11642
|
<br>
|
|
@@ -11774,11 +11776,12 @@ win_select_level.decorators = [
|
|
|
11774
11776
|
|
|
11775
11777
|
</mat-toolbar>
|
|
11776
11778
|
<mat-dialog-content style="max-width:500px"><br><br>
|
|
11777
|
-
<mat-
|
|
11779
|
+
<mat-form-field appearance="outline" floatLabel="always" style="width:100%"><mat-label>Seleziona Prossimo Step:</mat-label>
|
|
11780
|
+
<mat-select #cmb [(ngModel)]="selval" (change)="sc()">
|
|
11778
11781
|
<mat-option value="-1">Seleziona</mat-option>
|
|
11779
11782
|
<mat-option value="{{app.livello}}" *ngFor="let app of myData">{{app.descri_livello}}</mat-option>
|
|
11780
11783
|
</mat-select>
|
|
11781
|
-
|
|
11784
|
+
</mat-form-field>
|
|
11782
11785
|
|
|
11783
11786
|
<br><br><br><br>
|
|
11784
11787
|
<div style="width:100%;text-align:center;">
|
|
@@ -12038,9 +12041,9 @@ win_uploads.decorators = [
|
|
|
12038
12041
|
<div mat-dialog-content style="min-width:800px">
|
|
12039
12042
|
<br>
|
|
12040
12043
|
<div *ngIf="enabled">
|
|
12041
|
-
|
|
12042
|
-
<input matInput type="text" name="descrizione" [(ngModel)]="descrizione"
|
|
12043
|
-
|
|
12044
|
+
<mat-form-field appearance="outline" floatLabel="always"><mat-label>{{label}}</mat-label>
|
|
12045
|
+
<input matInput type="text" name="descrizione" [(ngModel)]="descrizione" >
|
|
12046
|
+
</mat-form-field>
|
|
12044
12047
|
|
|
12045
12048
|
<input type="file" ng2FileSelect [uploader]="uploader" multiple />
|
|
12046
12049
|
<!--<button mat-raised-button *ngIf="b_edit_loaded" (click)="download_all()">{{label_b}}</button>-->
|
|
@@ -18414,6 +18417,400 @@ FHRoleManager.propDecorators = {
|
|
|
18414
18417
|
cmb_sel: [{ type: ViewChild, args: ['cmb_sel',] }]
|
|
18415
18418
|
};
|
|
18416
18419
|
|
|
18420
|
+
/**
|
|
18421
|
+
* @fileoverview added by tsickle
|
|
18422
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18423
|
+
*/
|
|
18424
|
+
class FHComboboxComponentFilter {
|
|
18425
|
+
/**
|
|
18426
|
+
* @param {?} _dataService
|
|
18427
|
+
* @param {?} _dataService_odbc
|
|
18428
|
+
*/
|
|
18429
|
+
constructor(_dataService, _dataService_odbc) {
|
|
18430
|
+
this._dataService = _dataService;
|
|
18431
|
+
this._dataService_odbc = _dataService_odbc;
|
|
18432
|
+
this.init_fill = true;
|
|
18433
|
+
this.sql = "";
|
|
18434
|
+
this.types = new Array();
|
|
18435
|
+
this.values = new Array();
|
|
18436
|
+
this.hidden = false;
|
|
18437
|
+
this.label = "";
|
|
18438
|
+
this.enabled = true;
|
|
18439
|
+
this.required = false;
|
|
18440
|
+
this.sel_label = "";
|
|
18441
|
+
this.fillend = new EventEmitter();
|
|
18442
|
+
this.selchange = new EventEmitter();
|
|
18443
|
+
this.initend = new EventEmitter();
|
|
18444
|
+
this.myData = [];
|
|
18445
|
+
this.valDef = "-1";
|
|
18446
|
+
this.selval = "-1";
|
|
18447
|
+
this.errorMsg = "";
|
|
18448
|
+
this.db_type = "1";
|
|
18449
|
+
this.dis_value = '';
|
|
18450
|
+
this.descri_val = "";
|
|
18451
|
+
}
|
|
18452
|
+
/**
|
|
18453
|
+
* @private
|
|
18454
|
+
* @return {?}
|
|
18455
|
+
*/
|
|
18456
|
+
update_dis() {
|
|
18457
|
+
this.dis_value = '';
|
|
18458
|
+
try {
|
|
18459
|
+
if (this.descri_val != null)
|
|
18460
|
+
if (this.descri_val != "") {
|
|
18461
|
+
this.dis_value = this.descri_val;
|
|
18462
|
+
return;
|
|
18463
|
+
}
|
|
18464
|
+
if (this.valDef == null)
|
|
18465
|
+
this.dis_value = '';
|
|
18466
|
+
else
|
|
18467
|
+
this.dis_value = this.valDef.split('-1').join('');
|
|
18468
|
+
}
|
|
18469
|
+
catch (e) {
|
|
18470
|
+
console.log('errore split -> this.valDef ', this.valDef);
|
|
18471
|
+
}
|
|
18472
|
+
}
|
|
18473
|
+
/**
|
|
18474
|
+
* @return {?}
|
|
18475
|
+
*/
|
|
18476
|
+
resetValue() {
|
|
18477
|
+
this.selval = '-1';
|
|
18478
|
+
this.valDef = '-1';
|
|
18479
|
+
this.update_dis();
|
|
18480
|
+
}
|
|
18481
|
+
/**
|
|
18482
|
+
* @return {?}
|
|
18483
|
+
*/
|
|
18484
|
+
focus() {
|
|
18485
|
+
this.smtr.nativeElement.focus();
|
|
18486
|
+
}
|
|
18487
|
+
/**
|
|
18488
|
+
* @return {?}
|
|
18489
|
+
*/
|
|
18490
|
+
reset() {
|
|
18491
|
+
this.selval = '-1';
|
|
18492
|
+
this.valDef = '-1';
|
|
18493
|
+
this.myData = new Array();
|
|
18494
|
+
this.update_dis();
|
|
18495
|
+
}
|
|
18496
|
+
/**
|
|
18497
|
+
* @return {?}
|
|
18498
|
+
*/
|
|
18499
|
+
fillCombo() {
|
|
18500
|
+
// console.log(this.init_fill);
|
|
18501
|
+
// if(!this.init_fill){this.init_fill=true;return;}
|
|
18502
|
+
// console.log("fillcombo "+this.sql);
|
|
18503
|
+
if (this.sql.indexOf('|') != -1 && this.sql.indexOf('$') != -1) {
|
|
18504
|
+
this.set_options(this.sql);
|
|
18505
|
+
return;
|
|
18506
|
+
}
|
|
18507
|
+
/** @type {?} */
|
|
18508
|
+
let p = new QParam();
|
|
18509
|
+
p.sql = this.sql;
|
|
18510
|
+
p.types = this.types;
|
|
18511
|
+
p.values = this.values;
|
|
18512
|
+
// console.log(p);
|
|
18513
|
+
if (this.db_type == "1")
|
|
18514
|
+
this
|
|
18515
|
+
._dataService
|
|
18516
|
+
.doQuery(p)
|
|
18517
|
+
.subscribe((/**
|
|
18518
|
+
* @param {?} data
|
|
18519
|
+
* @return {?}
|
|
18520
|
+
*/
|
|
18521
|
+
data => {
|
|
18522
|
+
if (data != null)
|
|
18523
|
+
if (data.result_msg == "OK") {
|
|
18524
|
+
this.resetD(data.result_data);
|
|
18525
|
+
}
|
|
18526
|
+
}), (/**
|
|
18527
|
+
* @param {?} err
|
|
18528
|
+
* @return {?}
|
|
18529
|
+
*/
|
|
18530
|
+
err => {
|
|
18531
|
+
this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" + this.sql + "]";
|
|
18532
|
+
}));
|
|
18533
|
+
if (this.db_type == "2")
|
|
18534
|
+
this
|
|
18535
|
+
._dataService_odbc
|
|
18536
|
+
.doQuery(p)
|
|
18537
|
+
.subscribe((/**
|
|
18538
|
+
* @param {?} data
|
|
18539
|
+
* @return {?}
|
|
18540
|
+
*/
|
|
18541
|
+
data => {
|
|
18542
|
+
if (data != null)
|
|
18543
|
+
if (data.result_msg == "OK") {
|
|
18544
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
18545
|
+
if (data.result_data[i].VALORE != null)
|
|
18546
|
+
data.result_data[i].valore = data.result_data[i].VALORE;
|
|
18547
|
+
if (data.result_data[i].DESCRIZIONE_VALORE != null)
|
|
18548
|
+
data.result_data[i].descrizione_valore = data.result_data[i].DESCRIZIONE_VALORE;
|
|
18549
|
+
}
|
|
18550
|
+
this.resetD(data.result_data);
|
|
18551
|
+
}
|
|
18552
|
+
}), (/**
|
|
18553
|
+
* @param {?} err
|
|
18554
|
+
* @return {?}
|
|
18555
|
+
*/
|
|
18556
|
+
err => {
|
|
18557
|
+
this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" + this.sql + "]";
|
|
18558
|
+
}));
|
|
18559
|
+
}
|
|
18560
|
+
/**
|
|
18561
|
+
* @param {?} o
|
|
18562
|
+
* @return {?}
|
|
18563
|
+
*/
|
|
18564
|
+
add_option(o) {
|
|
18565
|
+
this.myData.push(o);
|
|
18566
|
+
}
|
|
18567
|
+
/**
|
|
18568
|
+
* @param {?} o
|
|
18569
|
+
* @return {?}
|
|
18570
|
+
*/
|
|
18571
|
+
resetD(o) {
|
|
18572
|
+
this.myData = o;
|
|
18573
|
+
this.selval = '-1';
|
|
18574
|
+
// console.log(this.smtr); console.log(this.smtr.nativeElement);
|
|
18575
|
+
this.setByValue(this.valDef);
|
|
18576
|
+
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
18577
|
+
this.setByDescri(this.valDef);
|
|
18578
|
+
this.fillend.emit();
|
|
18579
|
+
}
|
|
18580
|
+
/**
|
|
18581
|
+
* @param {?} desc_val
|
|
18582
|
+
* @return {?}
|
|
18583
|
+
*/
|
|
18584
|
+
setByDescri(desc_val) {
|
|
18585
|
+
// console.log("setByDescri "+desc_val);
|
|
18586
|
+
this.valDef = desc_val;
|
|
18587
|
+
this.selval = '-1';
|
|
18588
|
+
if (desc_val == "")
|
|
18589
|
+
return;
|
|
18590
|
+
if (this.myData == null)
|
|
18591
|
+
return;
|
|
18592
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
18593
|
+
return;
|
|
18594
|
+
for (let j = 0; j < this.myData.length; j++)
|
|
18595
|
+
if (this.myData[j].descrizione_valore == desc_val) {
|
|
18596
|
+
this.selval = "" + this.myData[j].valore;
|
|
18597
|
+
if (this.myData[j].descrizione_valore != null)
|
|
18598
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
18599
|
+
this.update_dis();
|
|
18600
|
+
return;
|
|
18601
|
+
}
|
|
18602
|
+
this.update_dis();
|
|
18603
|
+
}
|
|
18604
|
+
/**
|
|
18605
|
+
* @param {?} ind
|
|
18606
|
+
* @return {?}
|
|
18607
|
+
*/
|
|
18608
|
+
setByIndex(ind) {
|
|
18609
|
+
this.valDef = "";
|
|
18610
|
+
this.selval = '-1';
|
|
18611
|
+
if (this.myData == null)
|
|
18612
|
+
return;
|
|
18613
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
18614
|
+
return;
|
|
18615
|
+
if (this.myData.length > ind) {
|
|
18616
|
+
this.setByDescri(this.myData[ind].descrizione_valore);
|
|
18617
|
+
}
|
|
18618
|
+
}
|
|
18619
|
+
/**
|
|
18620
|
+
* @return {?}
|
|
18621
|
+
*/
|
|
18622
|
+
getObj() {
|
|
18623
|
+
if (this.selval == null)
|
|
18624
|
+
return null;
|
|
18625
|
+
if (this.selval == "-1")
|
|
18626
|
+
return null;
|
|
18627
|
+
else
|
|
18628
|
+
for (let j = 0; j < this.myData.length; j++)
|
|
18629
|
+
if (this.myData[j].valore == this.selval) {
|
|
18630
|
+
return this.myData[j];
|
|
18631
|
+
}
|
|
18632
|
+
}
|
|
18633
|
+
/**
|
|
18634
|
+
* @param {?} desc_val
|
|
18635
|
+
* @return {?}
|
|
18636
|
+
*/
|
|
18637
|
+
setByValue(desc_val) {
|
|
18638
|
+
this.valDef = desc_val;
|
|
18639
|
+
this.selval = '-1';
|
|
18640
|
+
// console.log(this.myData);
|
|
18641
|
+
if ("" + desc_val == "") {
|
|
18642
|
+
// console.log('qqq1111');
|
|
18643
|
+
return;
|
|
18644
|
+
}
|
|
18645
|
+
// console.log("qui");
|
|
18646
|
+
if (this.myData == null)
|
|
18647
|
+
return;
|
|
18648
|
+
// console.log("qui1");
|
|
18649
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
18650
|
+
return;
|
|
18651
|
+
//console.log("qui2");
|
|
18652
|
+
for (let j = 0; j < this.myData.length; j++) {
|
|
18653
|
+
//console.log(this.myData[j].valore +' '+ desc_val);
|
|
18654
|
+
if (this.myData[j].valore == desc_val) {
|
|
18655
|
+
this.selval = "" + this.myData[j].valore;
|
|
18656
|
+
if (this.myData[j].descrizione_valore != null)
|
|
18657
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
18658
|
+
this.update_dis();
|
|
18659
|
+
return;
|
|
18660
|
+
}
|
|
18661
|
+
}
|
|
18662
|
+
this.update_dis();
|
|
18663
|
+
}
|
|
18664
|
+
/**
|
|
18665
|
+
* @return {?}
|
|
18666
|
+
*/
|
|
18667
|
+
getDescri() {
|
|
18668
|
+
if (!this.enabled) {
|
|
18669
|
+
if (this.selval == null)
|
|
18670
|
+
return this.valDef;
|
|
18671
|
+
if (this.selval == "-1")
|
|
18672
|
+
return this.valDef;
|
|
18673
|
+
}
|
|
18674
|
+
if (this.selval == null)
|
|
18675
|
+
return "-1";
|
|
18676
|
+
if (this.selval == "-1")
|
|
18677
|
+
return "-1";
|
|
18678
|
+
else
|
|
18679
|
+
for (let j = 0; j < this.myData.length; j++)
|
|
18680
|
+
if (this.myData[j].valore == this.selval) {
|
|
18681
|
+
return this.myData[j].descrizione_valore;
|
|
18682
|
+
}
|
|
18683
|
+
}
|
|
18684
|
+
/**
|
|
18685
|
+
* @return {?}
|
|
18686
|
+
*/
|
|
18687
|
+
getValue() {
|
|
18688
|
+
// console.log(this.selval);
|
|
18689
|
+
if (!this.enabled) {
|
|
18690
|
+
if (this.selval == null)
|
|
18691
|
+
return this.valDef;
|
|
18692
|
+
if (this.selval == "-1")
|
|
18693
|
+
return this.valDef;
|
|
18694
|
+
}
|
|
18695
|
+
if (this.selval == null)
|
|
18696
|
+
return "-1";
|
|
18697
|
+
if (this.selval == "")
|
|
18698
|
+
return "-1";
|
|
18699
|
+
else
|
|
18700
|
+
return this.selval;
|
|
18701
|
+
}
|
|
18702
|
+
/**
|
|
18703
|
+
* @param {?} campo
|
|
18704
|
+
* @return {?}
|
|
18705
|
+
*/
|
|
18706
|
+
getData(campo) {
|
|
18707
|
+
for (var x in this.myData) {
|
|
18708
|
+
if (this.myData[x]['valore'] == this.selval) {
|
|
18709
|
+
return (this.myData[x][campo]);
|
|
18710
|
+
}
|
|
18711
|
+
else {
|
|
18712
|
+
continue;
|
|
18713
|
+
}
|
|
18714
|
+
}
|
|
18715
|
+
}
|
|
18716
|
+
/**
|
|
18717
|
+
* @param {?} s
|
|
18718
|
+
* @return {?}
|
|
18719
|
+
*/
|
|
18720
|
+
set_options(s) {
|
|
18721
|
+
this.myData = new Array();
|
|
18722
|
+
/** @type {?} */
|
|
18723
|
+
let a = s.split('$');
|
|
18724
|
+
for (let i = 0; i < a.length; i++) {
|
|
18725
|
+
/** @type {?} */
|
|
18726
|
+
var o = new Object();
|
|
18727
|
+
/** @type {?} */
|
|
18728
|
+
var av = a[i].split('|');
|
|
18729
|
+
o.valore = av[1];
|
|
18730
|
+
o.descrizione_valore = av[0];
|
|
18731
|
+
this
|
|
18732
|
+
.myData
|
|
18733
|
+
.push(o);
|
|
18734
|
+
}
|
|
18735
|
+
this.setByValue(this.valDef);
|
|
18736
|
+
if (this.getValue() == "-1")
|
|
18737
|
+
this.setByDescri(this.valDef);
|
|
18738
|
+
}
|
|
18739
|
+
/**
|
|
18740
|
+
* @return {?}
|
|
18741
|
+
*/
|
|
18742
|
+
ngAfterViewInit() {
|
|
18743
|
+
// console.log("ngAfterViewInit"); console.log(this.init_fill);
|
|
18744
|
+
}
|
|
18745
|
+
/**
|
|
18746
|
+
* @return {?}
|
|
18747
|
+
*/
|
|
18748
|
+
ngOnInit() {
|
|
18749
|
+
if (this.init_fill == true) {
|
|
18750
|
+
if (this.sql == '') {
|
|
18751
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
18752
|
+
return;
|
|
18753
|
+
}
|
|
18754
|
+
this.fillCombo();
|
|
18755
|
+
}
|
|
18756
|
+
else {
|
|
18757
|
+
this.errorMsg = "";
|
|
18758
|
+
}
|
|
18759
|
+
this
|
|
18760
|
+
.initend
|
|
18761
|
+
.emit();
|
|
18762
|
+
}
|
|
18763
|
+
/**
|
|
18764
|
+
* @return {?}
|
|
18765
|
+
*/
|
|
18766
|
+
sc() {
|
|
18767
|
+
this
|
|
18768
|
+
.selchange
|
|
18769
|
+
.emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
|
|
18770
|
+
}
|
|
18771
|
+
}
|
|
18772
|
+
FHComboboxComponentFilter.decorators = [
|
|
18773
|
+
{ type: Component, args: [{
|
|
18774
|
+
selector: 'FHFilterComboBox', template: `
|
|
18775
|
+
<mat-form-field [hidden]="!enabled || hidden" appearance="outline" floatLabel="always"><mat-label>{{label}}</mat-label>
|
|
18776
|
+
<mat-select #cmb [(ngModel)]="selval" (selectionChange)="sc()" [required]="required" >
|
|
18777
|
+
<mat-option value="-1">{{sel_label}}</mat-option>
|
|
18778
|
+
<mat-option value="{{app.valore}}" *ngFor="let app of myData">{{app.descrizione_valore}}</mat-option>
|
|
18779
|
+
</mat-select>
|
|
18780
|
+
</mat-form-field>
|
|
18781
|
+
|
|
18782
|
+
<mat-form-field [hidden]="enabled || hidden" appearance="outline" floatLabel="always"><mat-label>{{label}}</mat-label>
|
|
18783
|
+
<input type="text" #el1 matInput [disabled]="true" [(ngModel)]="dis_value">
|
|
18784
|
+
</mat-form-field>
|
|
18785
|
+
`,
|
|
18786
|
+
styles: [`
|
|
18787
|
+
|
|
18788
|
+
`]
|
|
18789
|
+
}] }
|
|
18790
|
+
];
|
|
18791
|
+
/** @nocollapse */
|
|
18792
|
+
FHComboboxComponentFilter.ctorParameters = () => [
|
|
18793
|
+
{ type: QueryService },
|
|
18794
|
+
{ type: OdbcService }
|
|
18795
|
+
];
|
|
18796
|
+
FHComboboxComponentFilter.propDecorators = {
|
|
18797
|
+
init_fill: [{ type: Input }],
|
|
18798
|
+
sql: [{ type: Input }],
|
|
18799
|
+
types: [{ type: Input }],
|
|
18800
|
+
values: [{ type: Input }],
|
|
18801
|
+
hidden: [{ type: Input }],
|
|
18802
|
+
label: [{ type: Input }],
|
|
18803
|
+
enabled: [{ type: Input }],
|
|
18804
|
+
required: [{ type: Input }],
|
|
18805
|
+
sel_label: [{ type: Input }],
|
|
18806
|
+
smtr: [{ type: ViewChild, args: ['cmb',] }],
|
|
18807
|
+
fillend: [{ type: Output }],
|
|
18808
|
+
selchange: [{ type: Output }],
|
|
18809
|
+
initend: [{ type: Output }],
|
|
18810
|
+
valDef: [{ type: Input }],
|
|
18811
|
+
db_type: [{ type: Input }]
|
|
18812
|
+
};
|
|
18813
|
+
|
|
18417
18814
|
/**
|
|
18418
18815
|
* @fileoverview added by tsickle
|
|
18419
18816
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -18490,7 +18887,7 @@ FluxhubLibModule.decorators = [
|
|
|
18490
18887
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
18491
18888
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
18492
18889
|
win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
|
|
18493
|
-
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles],
|
|
18890
|
+
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
|
|
18494
18891
|
providers: [HighlightService, DragulaService
|
|
18495
18892
|
],
|
|
18496
18893
|
entryComponents: [
|
|
@@ -18717,5 +19114,5 @@ class dt {
|
|
|
18717
19114
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18718
19115
|
*/
|
|
18719
19116
|
|
|
18720
|
-
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 };
|
|
19117
|
+
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 };
|
|
18721
19118
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|