@zeedhi/common 1.52.0 → 1.53.0

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.
@@ -12635,7 +12635,7 @@ class Report {
12635
12635
  const { route } = reportType;
12636
12636
  const { name, columns, datasource } = this.iterable;
12637
12637
  const { groupedData } = Object.assign({}, this.iterable);
12638
- const formattedColumns = this.removeActionColumns(columns);
12638
+ const formattedColumns = this.removeColumns(columns);
12639
12639
  const metadataObj = yield reportType.buildMetadata(name, this.title, formattedColumns, datasource.filter, portrait);
12640
12640
  let dataset;
12641
12641
  if ((reportType instanceof XLS2Report || reportType instanceof XLS3Report) && groupedData) {
@@ -12677,8 +12677,8 @@ class Report {
12677
12677
  return new URL(reportFile, this.fileEndPoint).href;
12678
12678
  });
12679
12679
  }
12680
- removeActionColumns(columns) {
12681
- return columns.filter((item) => item.type !== 'action');
12680
+ removeColumns(columns) {
12681
+ return columns.filter((item) => (item.type !== 'action' && item.isVisible));
12682
12682
  }
12683
12683
  }
12684
12684
 
@@ -12642,7 +12642,7 @@
12642
12642
  const { route } = reportType;
12643
12643
  const { name, columns, datasource } = this.iterable;
12644
12644
  const { groupedData } = Object.assign({}, this.iterable);
12645
- const formattedColumns = this.removeActionColumns(columns);
12645
+ const formattedColumns = this.removeColumns(columns);
12646
12646
  const metadataObj = yield reportType.buildMetadata(name, this.title, formattedColumns, datasource.filter, portrait);
12647
12647
  let dataset;
12648
12648
  if ((reportType instanceof XLS2Report || reportType instanceof XLS3Report) && groupedData) {
@@ -12684,8 +12684,8 @@
12684
12684
  return new URL(reportFile, this.fileEndPoint).href;
12685
12685
  });
12686
12686
  }
12687
- removeActionColumns(columns) {
12688
- return columns.filter((item) => item.type !== 'action');
12687
+ removeColumns(columns) {
12688
+ return columns.filter((item) => (item.type !== 'action' && item.isVisible));
12689
12689
  }
12690
12690
  }
12691
12691
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -37,5 +37,5 @@
37
37
  "lodash.times": "^4.3.2",
38
38
  "mockdate": "^3.0.2"
39
39
  },
40
- "gitHead": "7831436c706ebc6f781d756f5f80f393bf053b9b"
40
+ "gitHead": "ec0c81b4691fc0b6bc813f8ff7c49512a319f9e4"
41
41
  }
@@ -11,5 +11,5 @@ export declare class Report implements IReport {
11
11
  private getData;
12
12
  private getReportType;
13
13
  getReport(type: string, portrait?: boolean, rowObj?: any): Promise<string>;
14
- private removeActionColumns;
14
+ private removeColumns;
15
15
  }