@fluxhub/fluxhub-lib 1.0.352 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +447 -5
- 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/fhupload.js +5 -5
- package/esm2015/lib/controls/fhuploadpanel.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/esm5/fluxhub-fluxhub-lib.js +2 -1
- package/esm5/lib/controls/fhgrid.js +2 -2
- package/esm5/lib/controls/fhupload.js +2 -2
- package/esm5/lib/controls/fhuploadpanel.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/fesm2015/fluxhub-fluxhub-lib.js +403 -9
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +447 -6
- 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
|
@@ -3337,7 +3337,7 @@
|
|
|
3337
3337
|
FHUploadComponent.decorators = [
|
|
3338
3338
|
{ type: core.Component, args: [{
|
|
3339
3339
|
selector: 'FHUpload',
|
|
3340
|
-
template: "\n \n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div *ngIf=\"enabled && !loading\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-form-field class=\"field_style\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n
|
|
3340
|
+
template: "\n \n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div *ngIf=\"enabled && !loading\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-form-field class=\"field_style\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:210px\">\n <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" name=\"file-fh\" id=\"file-fh\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"/></svg><span> Upload</span></label>\n </div>\n <div>\n <button mat-raised-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\">{{label_b}}</button>\n </div>\n </div>\n <div *ngIf=\"!enabled\">\n <label>{{label}}:</label>{{descrizione}}\n </div>\n <div *ngIf=\"!b_ini\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n ",
|
|
3341
3341
|
styles: ["\n\n "]
|
|
3342
3342
|
}] }
|
|
3343
3343
|
];
|
|
@@ -3797,7 +3797,7 @@
|
|
|
3797
3797
|
WinAskTextBigComponent.decorators = [
|
|
3798
3798
|
{ type: core.Component, args: [{
|
|
3799
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 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%;
|
|
3800
|
+
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> \n <button *ngIf=\"show_annulla\" mat-raised-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </mat-dialog-actions>\n\n\n "
|
|
3801
3801
|
}] }
|
|
3802
3802
|
];
|
|
3803
3803
|
/** @nocollapse */
|
|
@@ -4072,7 +4072,7 @@
|
|
|
4072
4072
|
};
|
|
4073
4073
|
FHUploadPanelComponent.decorators = [
|
|
4074
4074
|
{ type: core.Component, args: [{
|
|
4075
|
-
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 </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
|
|
4075
|
+
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 </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;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\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_vis\" 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 ",
|
|
4076
4076
|
styles: ["\n\n \n\n "]
|
|
4077
4077
|
}] }
|
|
4078
4078
|
];
|
|
@@ -8257,7 +8257,7 @@
|
|
|
8257
8257
|
FHGridComponent.decorators = [
|
|
8258
8258
|
{ type: core.Component, args: [{
|
|
8259
8259
|
selector: 'FHGrid',
|
|
8260
|
-
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 <
|
|
8260
|
+
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",
|
|
8261
8261
|
styles: ["\n\n "]
|
|
8262
8262
|
}] }
|
|
8263
8263
|
];
|
|
@@ -19150,6 +19150,447 @@
|
|
|
19150
19150
|
return FHRoleManager;
|
|
19151
19151
|
}());
|
|
19152
19152
|
|
|
19153
|
+
/**
|
|
19154
|
+
* @fileoverview added by tsickle
|
|
19155
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19156
|
+
*/
|
|
19157
|
+
var FHComboboxComponentFilter = /** @class */ (function () {
|
|
19158
|
+
function FHComboboxComponentFilter(_dataService, _dataService_odbc) {
|
|
19159
|
+
this._dataService = _dataService;
|
|
19160
|
+
this._dataService_odbc = _dataService_odbc;
|
|
19161
|
+
this.init_fill = true;
|
|
19162
|
+
this.sql = "";
|
|
19163
|
+
this.types = new Array();
|
|
19164
|
+
this.values = new Array();
|
|
19165
|
+
this.hidden = false;
|
|
19166
|
+
this.label = "";
|
|
19167
|
+
this.enabled = true;
|
|
19168
|
+
this.required = false;
|
|
19169
|
+
this.sel_label = "";
|
|
19170
|
+
this.fillend = new core.EventEmitter();
|
|
19171
|
+
this.selchange = new core.EventEmitter();
|
|
19172
|
+
this.initend = new core.EventEmitter();
|
|
19173
|
+
this.myData = [];
|
|
19174
|
+
this.valDef = "-1";
|
|
19175
|
+
this.selval = "-1";
|
|
19176
|
+
this.errorMsg = "";
|
|
19177
|
+
this.db_type = "1";
|
|
19178
|
+
this.dis_value = '';
|
|
19179
|
+
this.descri_val = "";
|
|
19180
|
+
}
|
|
19181
|
+
/**
|
|
19182
|
+
* @private
|
|
19183
|
+
* @return {?}
|
|
19184
|
+
*/
|
|
19185
|
+
FHComboboxComponentFilter.prototype.update_dis = /**
|
|
19186
|
+
* @private
|
|
19187
|
+
* @return {?}
|
|
19188
|
+
*/
|
|
19189
|
+
function () {
|
|
19190
|
+
this.dis_value = '';
|
|
19191
|
+
try {
|
|
19192
|
+
if (this.descri_val != null)
|
|
19193
|
+
if (this.descri_val != "") {
|
|
19194
|
+
this.dis_value = this.descri_val;
|
|
19195
|
+
return;
|
|
19196
|
+
}
|
|
19197
|
+
if (this.valDef == null)
|
|
19198
|
+
this.dis_value = '';
|
|
19199
|
+
else
|
|
19200
|
+
this.dis_value = this.valDef.split('-1').join('');
|
|
19201
|
+
}
|
|
19202
|
+
catch (e) {
|
|
19203
|
+
console.log('errore split -> this.valDef ', this.valDef);
|
|
19204
|
+
}
|
|
19205
|
+
};
|
|
19206
|
+
/**
|
|
19207
|
+
* @return {?}
|
|
19208
|
+
*/
|
|
19209
|
+
FHComboboxComponentFilter.prototype.resetValue = /**
|
|
19210
|
+
* @return {?}
|
|
19211
|
+
*/
|
|
19212
|
+
function () {
|
|
19213
|
+
this.selval = '-1';
|
|
19214
|
+
this.valDef = '-1';
|
|
19215
|
+
this.update_dis();
|
|
19216
|
+
};
|
|
19217
|
+
/**
|
|
19218
|
+
* @return {?}
|
|
19219
|
+
*/
|
|
19220
|
+
FHComboboxComponentFilter.prototype.focus = /**
|
|
19221
|
+
* @return {?}
|
|
19222
|
+
*/
|
|
19223
|
+
function () {
|
|
19224
|
+
this.smtr.nativeElement.focus();
|
|
19225
|
+
};
|
|
19226
|
+
/**
|
|
19227
|
+
* @return {?}
|
|
19228
|
+
*/
|
|
19229
|
+
FHComboboxComponentFilter.prototype.reset = /**
|
|
19230
|
+
* @return {?}
|
|
19231
|
+
*/
|
|
19232
|
+
function () {
|
|
19233
|
+
this.selval = '-1';
|
|
19234
|
+
this.valDef = '-1';
|
|
19235
|
+
this.myData = new Array();
|
|
19236
|
+
this.update_dis();
|
|
19237
|
+
};
|
|
19238
|
+
/**
|
|
19239
|
+
* @return {?}
|
|
19240
|
+
*/
|
|
19241
|
+
FHComboboxComponentFilter.prototype.fillCombo = /**
|
|
19242
|
+
* @return {?}
|
|
19243
|
+
*/
|
|
19244
|
+
function () {
|
|
19245
|
+
var _this = this;
|
|
19246
|
+
// console.log(this.init_fill);
|
|
19247
|
+
// if(!this.init_fill){this.init_fill=true;return;}
|
|
19248
|
+
// console.log("fillcombo "+this.sql);
|
|
19249
|
+
if (this.sql.indexOf('|') != -1 && this.sql.indexOf('$') != -1) {
|
|
19250
|
+
this.set_options(this.sql);
|
|
19251
|
+
return;
|
|
19252
|
+
}
|
|
19253
|
+
/** @type {?} */
|
|
19254
|
+
var p = new QParam();
|
|
19255
|
+
p.sql = this.sql;
|
|
19256
|
+
p.types = this.types;
|
|
19257
|
+
p.values = this.values;
|
|
19258
|
+
// console.log(p);
|
|
19259
|
+
if (this.db_type == "1")
|
|
19260
|
+
this
|
|
19261
|
+
._dataService
|
|
19262
|
+
.doQuery(p)
|
|
19263
|
+
.subscribe((/**
|
|
19264
|
+
* @param {?} data
|
|
19265
|
+
* @return {?}
|
|
19266
|
+
*/
|
|
19267
|
+
function (data) {
|
|
19268
|
+
if (data != null)
|
|
19269
|
+
if (data.result_msg == "OK") {
|
|
19270
|
+
_this.resetD(data.result_data);
|
|
19271
|
+
}
|
|
19272
|
+
}), (/**
|
|
19273
|
+
* @param {?} err
|
|
19274
|
+
* @return {?}
|
|
19275
|
+
*/
|
|
19276
|
+
function (err) {
|
|
19277
|
+
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" + _this.sql + "]";
|
|
19278
|
+
}));
|
|
19279
|
+
if (this.db_type == "2")
|
|
19280
|
+
this
|
|
19281
|
+
._dataService_odbc
|
|
19282
|
+
.doQuery(p)
|
|
19283
|
+
.subscribe((/**
|
|
19284
|
+
* @param {?} data
|
|
19285
|
+
* @return {?}
|
|
19286
|
+
*/
|
|
19287
|
+
function (data) {
|
|
19288
|
+
if (data != null)
|
|
19289
|
+
if (data.result_msg == "OK") {
|
|
19290
|
+
for (var i = 0; i < data.result_data.length; i++) {
|
|
19291
|
+
if (data.result_data[i].VALORE != null)
|
|
19292
|
+
data.result_data[i].valore = data.result_data[i].VALORE;
|
|
19293
|
+
if (data.result_data[i].DESCRIZIONE_VALORE != null)
|
|
19294
|
+
data.result_data[i].descrizione_valore = data.result_data[i].DESCRIZIONE_VALORE;
|
|
19295
|
+
}
|
|
19296
|
+
_this.resetD(data.result_data);
|
|
19297
|
+
}
|
|
19298
|
+
}), (/**
|
|
19299
|
+
* @param {?} err
|
|
19300
|
+
* @return {?}
|
|
19301
|
+
*/
|
|
19302
|
+
function (err) {
|
|
19303
|
+
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" + _this.sql + "]";
|
|
19304
|
+
}));
|
|
19305
|
+
};
|
|
19306
|
+
/**
|
|
19307
|
+
* @param {?} o
|
|
19308
|
+
* @return {?}
|
|
19309
|
+
*/
|
|
19310
|
+
FHComboboxComponentFilter.prototype.add_option = /**
|
|
19311
|
+
* @param {?} o
|
|
19312
|
+
* @return {?}
|
|
19313
|
+
*/
|
|
19314
|
+
function (o) {
|
|
19315
|
+
this.myData.push(o);
|
|
19316
|
+
};
|
|
19317
|
+
/**
|
|
19318
|
+
* @param {?} o
|
|
19319
|
+
* @return {?}
|
|
19320
|
+
*/
|
|
19321
|
+
FHComboboxComponentFilter.prototype.resetD = /**
|
|
19322
|
+
* @param {?} o
|
|
19323
|
+
* @return {?}
|
|
19324
|
+
*/
|
|
19325
|
+
function (o) {
|
|
19326
|
+
this.myData = o;
|
|
19327
|
+
this.selval = '-1';
|
|
19328
|
+
// console.log(this.smtr); console.log(this.smtr.nativeElement);
|
|
19329
|
+
this.setByValue(this.valDef);
|
|
19330
|
+
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
19331
|
+
this.setByDescri(this.valDef);
|
|
19332
|
+
this.fillend.emit();
|
|
19333
|
+
};
|
|
19334
|
+
/**
|
|
19335
|
+
* @param {?} desc_val
|
|
19336
|
+
* @return {?}
|
|
19337
|
+
*/
|
|
19338
|
+
FHComboboxComponentFilter.prototype.setByDescri = /**
|
|
19339
|
+
* @param {?} desc_val
|
|
19340
|
+
* @return {?}
|
|
19341
|
+
*/
|
|
19342
|
+
function (desc_val) {
|
|
19343
|
+
// console.log("setByDescri "+desc_val);
|
|
19344
|
+
this.valDef = desc_val;
|
|
19345
|
+
this.selval = '-1';
|
|
19346
|
+
if (desc_val == "")
|
|
19347
|
+
return;
|
|
19348
|
+
if (this.myData == null)
|
|
19349
|
+
return;
|
|
19350
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
19351
|
+
return;
|
|
19352
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
19353
|
+
if (this.myData[j].descrizione_valore == desc_val) {
|
|
19354
|
+
this.selval = "" + this.myData[j].valore;
|
|
19355
|
+
if (this.myData[j].descrizione_valore != null)
|
|
19356
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
19357
|
+
this.update_dis();
|
|
19358
|
+
return;
|
|
19359
|
+
}
|
|
19360
|
+
this.update_dis();
|
|
19361
|
+
};
|
|
19362
|
+
/**
|
|
19363
|
+
* @param {?} ind
|
|
19364
|
+
* @return {?}
|
|
19365
|
+
*/
|
|
19366
|
+
FHComboboxComponentFilter.prototype.setByIndex = /**
|
|
19367
|
+
* @param {?} ind
|
|
19368
|
+
* @return {?}
|
|
19369
|
+
*/
|
|
19370
|
+
function (ind) {
|
|
19371
|
+
this.valDef = "";
|
|
19372
|
+
this.selval = '-1';
|
|
19373
|
+
if (this.myData == null)
|
|
19374
|
+
return;
|
|
19375
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
19376
|
+
return;
|
|
19377
|
+
if (this.myData.length > ind) {
|
|
19378
|
+
this.setByDescri(this.myData[ind].descrizione_valore);
|
|
19379
|
+
}
|
|
19380
|
+
};
|
|
19381
|
+
/**
|
|
19382
|
+
* @return {?}
|
|
19383
|
+
*/
|
|
19384
|
+
FHComboboxComponentFilter.prototype.getObj = /**
|
|
19385
|
+
* @return {?}
|
|
19386
|
+
*/
|
|
19387
|
+
function () {
|
|
19388
|
+
if (this.selval == null)
|
|
19389
|
+
return null;
|
|
19390
|
+
if (this.selval == "-1")
|
|
19391
|
+
return null;
|
|
19392
|
+
else
|
|
19393
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
19394
|
+
if (this.myData[j].valore == this.selval) {
|
|
19395
|
+
return this.myData[j];
|
|
19396
|
+
}
|
|
19397
|
+
};
|
|
19398
|
+
/**
|
|
19399
|
+
* @param {?} desc_val
|
|
19400
|
+
* @return {?}
|
|
19401
|
+
*/
|
|
19402
|
+
FHComboboxComponentFilter.prototype.setByValue = /**
|
|
19403
|
+
* @param {?} desc_val
|
|
19404
|
+
* @return {?}
|
|
19405
|
+
*/
|
|
19406
|
+
function (desc_val) {
|
|
19407
|
+
this.valDef = desc_val;
|
|
19408
|
+
this.selval = '-1';
|
|
19409
|
+
// console.log(this.myData);
|
|
19410
|
+
if ("" + desc_val == "") {
|
|
19411
|
+
// console.log('qqq1111');
|
|
19412
|
+
return;
|
|
19413
|
+
}
|
|
19414
|
+
// console.log("qui");
|
|
19415
|
+
if (this.myData == null)
|
|
19416
|
+
return;
|
|
19417
|
+
// console.log("qui1");
|
|
19418
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
19419
|
+
return;
|
|
19420
|
+
//console.log("qui2");
|
|
19421
|
+
for (var j = 0; j < this.myData.length; j++) {
|
|
19422
|
+
//console.log(this.myData[j].valore +' '+ desc_val);
|
|
19423
|
+
if (this.myData[j].valore == desc_val) {
|
|
19424
|
+
this.selval = "" + this.myData[j].valore;
|
|
19425
|
+
if (this.myData[j].descrizione_valore != null)
|
|
19426
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
19427
|
+
this.update_dis();
|
|
19428
|
+
return;
|
|
19429
|
+
}
|
|
19430
|
+
}
|
|
19431
|
+
this.update_dis();
|
|
19432
|
+
};
|
|
19433
|
+
/**
|
|
19434
|
+
* @return {?}
|
|
19435
|
+
*/
|
|
19436
|
+
FHComboboxComponentFilter.prototype.getDescri = /**
|
|
19437
|
+
* @return {?}
|
|
19438
|
+
*/
|
|
19439
|
+
function () {
|
|
19440
|
+
if (!this.enabled) {
|
|
19441
|
+
if (this.selval == null)
|
|
19442
|
+
return this.valDef;
|
|
19443
|
+
if (this.selval == "-1")
|
|
19444
|
+
return this.valDef;
|
|
19445
|
+
}
|
|
19446
|
+
if (this.selval == null)
|
|
19447
|
+
return "-1";
|
|
19448
|
+
if (this.selval == "-1")
|
|
19449
|
+
return "-1";
|
|
19450
|
+
else
|
|
19451
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
19452
|
+
if (this.myData[j].valore == this.selval) {
|
|
19453
|
+
return this.myData[j].descrizione_valore;
|
|
19454
|
+
}
|
|
19455
|
+
};
|
|
19456
|
+
/**
|
|
19457
|
+
* @return {?}
|
|
19458
|
+
*/
|
|
19459
|
+
FHComboboxComponentFilter.prototype.getValue = /**
|
|
19460
|
+
* @return {?}
|
|
19461
|
+
*/
|
|
19462
|
+
function () {
|
|
19463
|
+
// console.log(this.selval);
|
|
19464
|
+
if (!this.enabled) {
|
|
19465
|
+
if (this.selval == null)
|
|
19466
|
+
return this.valDef;
|
|
19467
|
+
if (this.selval == "-1")
|
|
19468
|
+
return this.valDef;
|
|
19469
|
+
}
|
|
19470
|
+
if (this.selval == null)
|
|
19471
|
+
return "-1";
|
|
19472
|
+
if (this.selval == "")
|
|
19473
|
+
return "-1";
|
|
19474
|
+
else
|
|
19475
|
+
return this.selval;
|
|
19476
|
+
};
|
|
19477
|
+
/**
|
|
19478
|
+
* @param {?} campo
|
|
19479
|
+
* @return {?}
|
|
19480
|
+
*/
|
|
19481
|
+
FHComboboxComponentFilter.prototype.getData = /**
|
|
19482
|
+
* @param {?} campo
|
|
19483
|
+
* @return {?}
|
|
19484
|
+
*/
|
|
19485
|
+
function (campo) {
|
|
19486
|
+
for (var x in this.myData) {
|
|
19487
|
+
if (this.myData[x]['valore'] == this.selval) {
|
|
19488
|
+
return (this.myData[x][campo]);
|
|
19489
|
+
}
|
|
19490
|
+
else {
|
|
19491
|
+
continue;
|
|
19492
|
+
}
|
|
19493
|
+
}
|
|
19494
|
+
};
|
|
19495
|
+
/**
|
|
19496
|
+
* @param {?} s
|
|
19497
|
+
* @return {?}
|
|
19498
|
+
*/
|
|
19499
|
+
FHComboboxComponentFilter.prototype.set_options = /**
|
|
19500
|
+
* @param {?} s
|
|
19501
|
+
* @return {?}
|
|
19502
|
+
*/
|
|
19503
|
+
function (s) {
|
|
19504
|
+
this.myData = new Array();
|
|
19505
|
+
/** @type {?} */
|
|
19506
|
+
var a = s.split('$');
|
|
19507
|
+
for (var i = 0; i < a.length; i++) {
|
|
19508
|
+
/** @type {?} */
|
|
19509
|
+
var o = new Object();
|
|
19510
|
+
/** @type {?} */
|
|
19511
|
+
var av = a[i].split('|');
|
|
19512
|
+
o.valore = av[1];
|
|
19513
|
+
o.descrizione_valore = av[0];
|
|
19514
|
+
this
|
|
19515
|
+
.myData
|
|
19516
|
+
.push(o);
|
|
19517
|
+
}
|
|
19518
|
+
this.setByValue(this.valDef);
|
|
19519
|
+
if (this.getValue() == "-1")
|
|
19520
|
+
this.setByDescri(this.valDef);
|
|
19521
|
+
};
|
|
19522
|
+
/**
|
|
19523
|
+
* @return {?}
|
|
19524
|
+
*/
|
|
19525
|
+
FHComboboxComponentFilter.prototype.ngAfterViewInit = /**
|
|
19526
|
+
* @return {?}
|
|
19527
|
+
*/
|
|
19528
|
+
function () {
|
|
19529
|
+
// console.log("ngAfterViewInit"); console.log(this.init_fill);
|
|
19530
|
+
};
|
|
19531
|
+
/**
|
|
19532
|
+
* @return {?}
|
|
19533
|
+
*/
|
|
19534
|
+
FHComboboxComponentFilter.prototype.ngOnInit = /**
|
|
19535
|
+
* @return {?}
|
|
19536
|
+
*/
|
|
19537
|
+
function () {
|
|
19538
|
+
if (this.init_fill == true) {
|
|
19539
|
+
if (this.sql == '') {
|
|
19540
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
19541
|
+
return;
|
|
19542
|
+
}
|
|
19543
|
+
this.fillCombo();
|
|
19544
|
+
}
|
|
19545
|
+
else {
|
|
19546
|
+
this.errorMsg = "";
|
|
19547
|
+
}
|
|
19548
|
+
this
|
|
19549
|
+
.initend
|
|
19550
|
+
.emit();
|
|
19551
|
+
};
|
|
19552
|
+
/**
|
|
19553
|
+
* @return {?}
|
|
19554
|
+
*/
|
|
19555
|
+
FHComboboxComponentFilter.prototype.sc = /**
|
|
19556
|
+
* @return {?}
|
|
19557
|
+
*/
|
|
19558
|
+
function () {
|
|
19559
|
+
this
|
|
19560
|
+
.selchange
|
|
19561
|
+
.emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
|
|
19562
|
+
};
|
|
19563
|
+
FHComboboxComponentFilter.decorators = [
|
|
19564
|
+
{ type: core.Component, args: [{
|
|
19565
|
+
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 ",
|
|
19566
|
+
styles: ["\n\n "]
|
|
19567
|
+
}] }
|
|
19568
|
+
];
|
|
19569
|
+
/** @nocollapse */
|
|
19570
|
+
FHComboboxComponentFilter.ctorParameters = function () { return [
|
|
19571
|
+
{ type: QueryService },
|
|
19572
|
+
{ type: OdbcService }
|
|
19573
|
+
]; };
|
|
19574
|
+
FHComboboxComponentFilter.propDecorators = {
|
|
19575
|
+
init_fill: [{ type: core.Input }],
|
|
19576
|
+
sql: [{ type: core.Input }],
|
|
19577
|
+
types: [{ type: core.Input }],
|
|
19578
|
+
values: [{ type: core.Input }],
|
|
19579
|
+
hidden: [{ type: core.Input }],
|
|
19580
|
+
label: [{ type: core.Input }],
|
|
19581
|
+
enabled: [{ type: core.Input }],
|
|
19582
|
+
required: [{ type: core.Input }],
|
|
19583
|
+
sel_label: [{ type: core.Input }],
|
|
19584
|
+
smtr: [{ type: core.ViewChild, args: ['cmb',] }],
|
|
19585
|
+
fillend: [{ type: core.Output }],
|
|
19586
|
+
selchange: [{ type: core.Output }],
|
|
19587
|
+
initend: [{ type: core.Output }],
|
|
19588
|
+
valDef: [{ type: core.Input }],
|
|
19589
|
+
db_type: [{ type: core.Input }]
|
|
19590
|
+
};
|
|
19591
|
+
return FHComboboxComponentFilter;
|
|
19592
|
+
}());
|
|
19593
|
+
|
|
19153
19594
|
/**
|
|
19154
19595
|
* @fileoverview added by tsickle
|
|
19155
19596
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -19233,7 +19674,7 @@
|
|
|
19233
19674
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
19234
19675
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
19235
19676
|
win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
|
|
19236
|
-
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles],
|
|
19677
|
+
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
|
|
19237
19678
|
providers: [HighlightService, ng2Dragula.DragulaService
|
|
19238
19679
|
],
|
|
19239
19680
|
entryComponents: [
|
|
@@ -19520,6 +19961,7 @@
|
|
|
19520
19961
|
exports.ɵba = win_commento_sel_notif;
|
|
19521
19962
|
exports.ɵbb = win_manage_values;
|
|
19522
19963
|
exports.ɵbc = win_manage_roles;
|
|
19964
|
+
exports.ɵbd = FHComboboxComponentFilter;
|
|
19523
19965
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
19524
19966
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
19525
19967
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|