@fluxhub/fluxhub-lib 10.0.105 → 10.0.107

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.
@@ -5224,8 +5224,6 @@
5224
5224
  floatingFilter: true,
5225
5225
  enableRangeSelection: true,
5226
5226
  defaultColDef: { resizable: true, sortable: true },
5227
- rowDeselection: false,
5228
- // getContextMenuItems: () => this.getContextMenuItems(),
5229
5227
  allowContextMenuWithControlKey: true,
5230
5228
  rowModelType: "infinite",
5231
5229
  localeText: {
@@ -5375,16 +5373,16 @@
5375
5373
  if (this.curr_config == "-1")
5376
5374
  return;
5377
5375
  localStorage.removeItem(this.grid_key + "_COLS");
5378
- localStorage.removeItem(this.grid_key + "_SORT");
5376
+ // localStorage.removeItem(this.grid_key + "_SORT");
5379
5377
  localStorage.removeItem(this.grid_key + "_FILTER");
5380
5378
  localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
5381
5379
  localStorage.removeItem(this.grid_key + "_FILTER_UP");
5382
5380
  if (this.gf.getObj().COL != null)
5383
5381
  if (this.gf.getObj().COL != "")
5384
5382
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
5385
- if (this.gf.getObj().SORT != null)
5386
- if (this.gf.getObj().SORT != "")
5387
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
5383
+ // if (this.gf.getObj().SORT != null)
5384
+ // if (this.gf.getObj().SORT != "")
5385
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
5388
5386
  if (this.gf.getObj().FILTER != null)
5389
5387
  if (this.gf.getObj().FILTER != "")
5390
5388
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
@@ -5448,12 +5446,12 @@
5448
5446
  var p = new QParam();
5449
5447
  p.sql = "INSERT_UPDATE_CFG_GRID";
5450
5448
  var p_col = "";
5451
- var p_sort = "";
5449
+ // let p_sort: string = "";
5452
5450
  var p_filter = "";
5453
5451
  if (localStorage.getItem(_this.grid_key + "_COLS") != null)
5454
5452
  p_col = localStorage.getItem(_this.grid_key + "_COLS");
5455
- if (localStorage.getItem(_this.grid_key + "_SORT") != null)
5456
- p_sort = localStorage.getItem(_this.grid_key + "_SORT");
5453
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
5454
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
5457
5455
  if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
5458
5456
  p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
5459
5457
  p.types = ["string", "string", "string", "string", "string", "string"];
@@ -5461,7 +5459,7 @@
5461
5459
  _this.gf.getDescri(),
5462
5460
  _this.grid_key,
5463
5461
  p_col,
5464
- p_sort,
5462
+ '',
5465
5463
  p_filter,
5466
5464
  _this.m_appService.user,
5467
5465
  ];
@@ -5506,12 +5504,12 @@
5506
5504
  var p = new QParam();
5507
5505
  p.sql = "INSERT_UPDATE_CFG_GRID";
5508
5506
  var p_col = "";
5509
- var p_sort = "";
5507
+ // let p_sort: string = "";
5510
5508
  var p_filter = "";
5511
5509
  if (localStorage.getItem(_this.grid_key + "_COLS") != null)
5512
5510
  p_col = localStorage.getItem(_this.grid_key + "_COLS");
5513
- if (localStorage.getItem(_this.grid_key + "_SORT") != null)
5514
- p_sort = localStorage.getItem(_this.grid_key + "_SORT");
5511
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
5512
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
5515
5513
  if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
5516
5514
  p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
5517
5515
  p.types = [
@@ -5526,7 +5524,7 @@
5526
5524
  result,
5527
5525
  _this.grid_key,
5528
5526
  p_col,
5529
- p_sort,
5527
+ '',
5530
5528
  p_filter,
5531
5529
  _this.m_appService.user,
5532
5530
  ];
@@ -6179,30 +6177,31 @@
6179
6177
  console.log(eer);
6180
6178
  }
6181
6179
  }
6182
- try {
6180
+ /* try {
6183
6181
  this.gridOptions.api.setSortModel(null);
6184
- }
6185
- catch (eer) {
6182
+ } catch (eer) {
6186
6183
  console.log(eer);
6187
- }
6188
- if (localStorage.getItem(this.grid_key + "_SORT") != null &&
6189
- (b_mantieni_ck || forza))
6184
+ }
6185
+ if (
6186
+ localStorage.getItem(this.grid_key + "_SORT") != null &&
6187
+ (b_mantieni_ck || forza)
6188
+ )
6190
6189
  if (localStorage.getItem(this.grid_key + "_SORT") != "") {
6191
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
6192
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
6193
- try {
6194
- this.gridOptions.api.setSortModel(JSON.parse(localStorage.getItem(this.grid_key + "_SORT")));
6195
- }
6196
- catch (eer) {
6197
- console.log(eer);
6198
- }
6190
+ // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
6191
+ // console.log(localStorage.getItem(this.grid_key+'_SORT'));
6192
+ try {
6193
+ this.gridOptions.api.setSortModel(
6194
+ JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
6195
+ );
6196
+ } catch (eer) {
6197
+ console.log(eer);
6198
+ }
6199
6199
  }
6200
- try {
6200
+ try {
6201
6201
  this.gridOptions.api.setFilterModel(null);
6202
- }
6203
- catch (eer) {
6202
+ } catch (eer) {
6204
6203
  console.log(eer);
6205
- }
6204
+ }*/
6206
6205
  if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
6207
6206
  (b_mantieni_ck || forza))
6208
6207
  if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
@@ -6274,7 +6273,7 @@
6274
6273
  if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
6275
6274
  this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
6276
6275
  localStorage.setItem(this.grid_key + "_COL", this.gf.getObj().COLS);
6277
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
6276
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
6278
6277
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
6279
6278
  this.curr_config = this.gf.getValue();
6280
6279
  }
@@ -6391,8 +6390,14 @@
6391
6390
  if (this.no_pref)
6392
6391
  return;
6393
6392
  if (this.b_init) {
6393
+ localStorage.setItem(this.grid_key + "_COL", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
6394
6394
  // console.log('salvo s: '+this.gridOptions.api.getSortModel());
6395
- localStorage.setItem(this.grid_key + "_SORT", JSON.stringify(this.gridOptions.api.getSortModel()));
6395
+ /*
6396
+
6397
+ localStorage.setItem(
6398
+ this.grid_key + "_SORT",
6399
+ JSON.stringify(this.gridOptions.api.getSortModel())
6400
+ );*/
6396
6401
  }
6397
6402
  };
6398
6403
  FHGridComponent.prototype.onVirtualRowRemoved = function ($event) {
@@ -6484,7 +6489,7 @@
6484
6489
  FHGridComponent.decorators = [
6485
6490
  { type: i0.Component, args: [{
6486
6491
  selector: "FHGrid",
6487
- template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n min-width: 100px;\n max-width: 180px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon>&nbsp;\n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>compare_arrows</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n &nbsp;\n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n\n <img\n *ngIf=\"abilita_export\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"abilita_export\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n style=\"width: 100%;\"\n *ngIf=\"enabled\"\n >\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n ></FHGridToolBar>\n </div>\n </div>\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
6492
+ template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n min-width: 100px;\n max-width: 180px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon>&nbsp;\n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>compare_arrows</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n &nbsp;\n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n\n <img\n *ngIf=\"abilita_export\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"abilita_export\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n style=\"width: 100%;\"\n *ngIf=\"enabled\"\n >\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n ></FHGridToolBar>\n </div>\n </div>\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [rowSelection]=\"selection_mode\"\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
6488
6493
  styles: [""]
6489
6494
  },] }
6490
6495
  ];