@fluxhub/fluxhub-lib 1.0.340 → 1.0.342
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 +42 -6
- 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/lib/controls/fhgrid.js +24 -6
- package/esm2015/lib/wkf_engine/wkfapp.js +16 -3
- package/esm5/lib/controls/fhgrid.js +23 -5
- package/esm5/lib/wkf_engine/wkfapp.js +21 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +38 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +42 -6
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkfapp.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5869,6 +5869,24 @@ wkfapp = /** @class */ (function () {
|
|
|
5869
5869
|
this.m_cod_documento = cod_documento;
|
|
5870
5870
|
this.do_init();
|
|
5871
5871
|
};
|
|
5872
|
+
/**
|
|
5873
|
+
* @private
|
|
5874
|
+
* @return {?}
|
|
5875
|
+
*/
|
|
5876
|
+
wkfapp.prototype.run_grid = /**
|
|
5877
|
+
* @private
|
|
5878
|
+
* @return {?}
|
|
5879
|
+
*/
|
|
5880
|
+
function () {
|
|
5881
|
+
var _this = this;
|
|
5882
|
+
if (this.get_grid().b_iniended)
|
|
5883
|
+
this.init_grid();
|
|
5884
|
+
else
|
|
5885
|
+
setTimeout((/**
|
|
5886
|
+
* @return {?}
|
|
5887
|
+
*/
|
|
5888
|
+
function () { _this.run_grid(); }), 500);
|
|
5889
|
+
};
|
|
5872
5890
|
/**
|
|
5873
5891
|
* @private
|
|
5874
5892
|
* @return {?}
|
|
@@ -5884,7 +5902,7 @@ wkfapp = /** @class */ (function () {
|
|
|
5884
5902
|
if (this.app_s.getState().wkf_obj != null)
|
|
5885
5903
|
if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
|
|
5886
5904
|
this.restore_state_wkf();
|
|
5887
|
-
this.
|
|
5905
|
+
this.run_grid();
|
|
5888
5906
|
return;
|
|
5889
5907
|
}
|
|
5890
5908
|
this.user_idp = this.app_s.user;
|
|
@@ -5966,7 +5984,7 @@ wkfapp = /** @class */ (function () {
|
|
|
5966
5984
|
function (data) {
|
|
5967
5985
|
if (data != null)
|
|
5968
5986
|
if (data.result_msg == "OK") {
|
|
5969
|
-
_this.
|
|
5987
|
+
_this.run_grid();
|
|
5970
5988
|
_this.ok_conf_s(data.result_data);
|
|
5971
5989
|
/** @type {?} */
|
|
5972
5990
|
var p_3 = new QParam();
|
|
@@ -6773,7 +6791,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6773
6791
|
this.fix_flt = "";
|
|
6774
6792
|
this.fix_flt_temp = "";
|
|
6775
6793
|
if (this.m_appService.getState().grid_obj == null)
|
|
6776
|
-
this.m_appService.getState().grid_obj =
|
|
6794
|
+
this.m_appService.getState().grid_obj = {};
|
|
6777
6795
|
}
|
|
6778
6796
|
/**
|
|
6779
6797
|
* @param {?} o
|
|
@@ -7329,8 +7347,26 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7329
7347
|
*/
|
|
7330
7348
|
function (data) {
|
|
7331
7349
|
if (data != null)
|
|
7332
|
-
if (data.msg == "N")
|
|
7333
|
-
|
|
7350
|
+
if (data.msg == "N") {
|
|
7351
|
+
/** @type {?} */
|
|
7352
|
+
var p_1 = new QParam();
|
|
7353
|
+
p_1.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
|
|
7354
|
+
p_1.types = ['string'];
|
|
7355
|
+
p_1.values = [_this.uiid_stampa];
|
|
7356
|
+
_this._dataService.doQuery(p_1).subscribe((/**
|
|
7357
|
+
* @param {?} data
|
|
7358
|
+
* @return {?}
|
|
7359
|
+
*/
|
|
7360
|
+
function (data) {
|
|
7361
|
+
if (data != null)
|
|
7362
|
+
if (data.result_msg == "OK")
|
|
7363
|
+
if (data.result_data.length > 0) {
|
|
7364
|
+
_this._toast.error(data.result_data[0].result_msg);
|
|
7365
|
+
return;
|
|
7366
|
+
}
|
|
7367
|
+
_this._toast.error('ERRORE DI STAMPA');
|
|
7368
|
+
}));
|
|
7369
|
+
}
|
|
7334
7370
|
else {
|
|
7335
7371
|
window.open(_this.m_appService.COMPANY_SITE_ROOT + "/grid_reports/" +
|
|
7336
7372
|
_this.uiid_stampa + "_" + _this.m_appService.user +
|
|
@@ -8058,7 +8094,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
8058
8094
|
FHGridComponent.decorators = [
|
|
8059
8095
|
{ type: Component, args: [{
|
|
8060
8096
|
selector: 'FHGrid',
|
|
8061
|
-
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 <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 \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
|
|
8097
|
+
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 <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 \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",
|
|
8062
8098
|
styles: ["\n\n "]
|
|
8063
8099
|
}] }
|
|
8064
8100
|
];
|