@zeedhi/common 1.59.0 → 1.61.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.
@@ -3106,34 +3106,38 @@ class Dashboard extends ComponentRender {
3106
3106
  };
3107
3107
  /* ----- end modal functions ----- */
3108
3108
  /* Edit header */
3109
- this.headerLeftSlot = [
3110
- {
3111
- name: `addDashboard${this.name}`,
3112
- component: 'ZdButton',
3113
- label: 'ADD',
3114
- iconName: 'plus',
3115
- color: 'white',
3116
- small: true,
3117
- cssClass: 'zd-my-2',
3118
- outline: true,
3119
- events: {
3120
- click: this.openModalAddCard.bind(this),
3109
+ this.editHeader = {
3110
+ component: 'ZdHeader',
3111
+ name: `edit-header-${this.name}`,
3112
+ leftSlot: [
3113
+ {
3114
+ name: `addDashboard${this.name}`,
3115
+ component: 'ZdButton',
3116
+ label: 'ADD',
3117
+ iconName: 'plus',
3118
+ color: 'white',
3119
+ small: true,
3120
+ cssClass: 'zd-my-2',
3121
+ outline: true,
3122
+ events: {
3123
+ click: this.openModalAddCard.bind(this),
3124
+ },
3121
3125
  },
3122
- },
3123
- {
3124
- name: `saveDashboard${this.name}`,
3125
- component: 'ZdButton',
3126
- label: 'SAVE',
3127
- iconName: 'complete',
3128
- color: 'white',
3129
- small: true,
3130
- cssClass: 'zd-my-2',
3131
- outline: true,
3132
- events: {
3133
- click: this.onSave.bind(this),
3126
+ {
3127
+ name: `saveDashboard${this.name}`,
3128
+ component: 'ZdButton',
3129
+ label: 'SAVE',
3130
+ iconName: 'complete',
3131
+ color: 'white',
3132
+ small: true,
3133
+ cssClass: 'zd-my-2',
3134
+ outline: true,
3135
+ events: {
3136
+ click: this.onSave.bind(this),
3137
+ },
3134
3138
  },
3135
- },
3136
- ];
3139
+ ],
3140
+ };
3137
3141
  this.editingMode = this.getInitValue('editingMode', props.editingMode, this.editingMode);
3138
3142
  this.moveMode = this.getInitValue('moveMode', props.moveMode, this.moveMode);
3139
3143
  this.cards = this.getInitValue('cards', props.cards, this.cards);
@@ -3142,6 +3146,7 @@ class Dashboard extends ComponentRender {
3142
3146
  this.height = this.getInitValue('height', props.height, this.height);
3143
3147
  this.heightAdjust = this.getInitValue('heightAdjust', props.heightAdjust, this.heightAdjust);
3144
3148
  this.cardFooterSlot = this.getInitValue('cardFooterSlot', props.cardFooterSlot, this.cardFooterSlot);
3149
+ this.editHeader = this.getInitValue('editHeader', props.editHeader, this.editHeader);
3145
3150
  this.createAccessors();
3146
3151
  }
3147
3152
  onMounted(element) {
@@ -3320,7 +3325,7 @@ class Dashboard extends ComponentRender {
3320
3325
  }
3321
3326
  /* Generate unique ids */
3322
3327
  getCardId() {
3323
- return Math.random().toString(36).substr(2, 9);
3328
+ return Math.random().toString(36).substring(2, 9);
3324
3329
  }
3325
3330
  selectCard(cardId) {
3326
3331
  this.currentCardId = cardId;
@@ -4434,6 +4439,8 @@ class Footer extends ComponentRender {
4434
4439
  }
4435
4440
  }
4436
4441
 
4442
+ class ResponseClass extends Response {
4443
+ }
4437
4444
  /**
4438
4445
  * Base class for Frame component.
4439
4446
  */
@@ -4566,7 +4573,7 @@ class Frame extends ComponentRender {
4566
4573
  [this.headerName]: time,
4567
4574
  });
4568
4575
  const stringData = JSON.stringify(metadata);
4569
- const responseObj = new Response(stringData, { headers });
4576
+ const responseObj = new ResponseClass(stringData, { headers });
4570
4577
  cache.put(url, responseObj);
4571
4578
  }
4572
4579
  /**
@@ -5118,7 +5125,7 @@ FormatterParserProvider.registerFormatter('column_ZdSelect', ({ column, value, r
5118
5125
  return value;
5119
5126
  });
5120
5127
  FormatterParserProvider.registerFormatter('column_ZdSelectMultiple', ({ column, value, row, componentProps, }) => {
5121
- if (!value || value.length === 0)
5128
+ if (!value || !Array.isArray(value) || value.length === 0)
5122
5129
  return '';
5123
5130
  const { formatterDataText } = componentProps;
5124
5131
  const formatterFn = FormatterParserProvider.getFormatter('column_ZdSelect');
@@ -5434,6 +5441,28 @@ class Grid extends Iterable {
5434
5441
  });
5435
5442
  }
5436
5443
  }
5444
+ selectAll(isSelected) {
5445
+ if (this.selectable) {
5446
+ if (isSelected) {
5447
+ this.datasource.data.forEach((row) => {
5448
+ if (!this.callDisableSelection(row)) {
5449
+ const key = row[this.datasource.uniqueKey];
5450
+ if (key && this.selectedRows.indexOf(row) === -1) {
5451
+ this.selectedRows.push(row);
5452
+ }
5453
+ }
5454
+ });
5455
+ }
5456
+ else {
5457
+ this.datasource.data.forEach((row) => {
5458
+ const index = this.selectedRows.indexOf(row);
5459
+ if (index > -1) {
5460
+ this.selectedRows.splice(index, 1);
5461
+ }
5462
+ });
5463
+ }
5464
+ }
5465
+ }
5437
5466
  navigateUp() {
5438
5467
  const { uniqueKey, currentRow } = this.datasource;
5439
5468
  const rowIndex = this.datasource.data.findIndex((row) => row[uniqueKey] === currentRow[uniqueKey]);
@@ -7530,6 +7559,10 @@ class Login extends ComponentRender {
7530
7559
  * Image displayed in the card.
7531
7560
  */
7532
7561
  this.poweredByImageCard = '';
7562
+ /**
7563
+ * If form is flat
7564
+ */
7565
+ this.flatForm = false;
7533
7566
  /**
7534
7567
  * Buttons displayed in the bottom of the card.
7535
7568
  */
@@ -7543,6 +7576,7 @@ class Login extends ComponentRender {
7543
7576
  this.logoMessage = this.getInitValue('logoMessage', props.logoMessage, this.logoMessage);
7544
7577
  this.poweredByImage = this.getInitValue('poweredByImage', props.poweredByImage, this.poweredByImage);
7545
7578
  this.poweredByImageCard = this.getInitValue('poweredByImageCard', props.poweredByImageCard, this.poweredByImageCard);
7579
+ this.flatForm = this.getInitValue('flatForm', props.flatForm, this.flatForm);
7546
7580
  this.socialLogin = props.socialLogin || this.socialLogin;
7547
7581
  this.createAccessors();
7548
7582
  }
@@ -10978,6 +11012,8 @@ class Tree extends ComponentRender {
10978
11012
  this.checkedField = this.getInitValue('checkedField', props.checkedField, this.checkedField);
10979
11013
  this.openLevelOnLoad = this.getInitValue('openLevelOnLoad', props.openLevelOnLoad, this.openLevelOnLoad);
10980
11014
  this.checkbox = this.getInitValue('checkbox', props.checkbox, this.checkbox);
11015
+ this.height = this.getInitValue('height', props.height, this.height);
11016
+ this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
10981
11017
  this.disableCheckbox = this.getInitValue('disableCheckbox', props.disableCheckbox, this.disableCheckbox);
10982
11018
  this.afterTitleSlot = props.afterTitleSlot || this.afterTitleSlot;
10983
11019
  this.toolbarSlot = props.toolbarSlot || this.toolbarSlot;
@@ -13119,7 +13155,7 @@ class Report {
13119
13155
  }
13120
13156
  throw new Error(`Invalid report type: ${type}`);
13121
13157
  }
13122
- getReport(type, portrait = true, rowObj) {
13158
+ getReport(type, portrait = true, rowObj, beforeReportEvent) {
13123
13159
  var _a;
13124
13160
  return __awaiter(this, void 0, void 0, function* () {
13125
13161
  const data = (_a = this.data) !== null && _a !== void 0 ? _a : yield this.getData();
@@ -13143,26 +13179,22 @@ class Report {
13143
13179
  dataset = reportType.buildDataset(data, formattedColumns);
13144
13180
  }
13145
13181
  const filter = '[]';
13146
- let row = {};
13182
+ let row = {
13183
+ dataSet: JSON.parse(dataset),
13184
+ filter: JSON.parse(filter),
13185
+ metaData: JSON.parse(metadataObj),
13186
+ };
13147
13187
  if (rowObj) {
13148
- row = merge({
13149
- dataSet: JSON.parse(dataset),
13150
- filter: JSON.parse(filter),
13151
- metaData: JSON.parse(metadataObj),
13152
- }, rowObj);
13153
- row = {
13154
- dataSet: JSON.stringify(row.dataSet),
13155
- filter: JSON.stringify(row.filter),
13156
- metaData: JSON.stringify(row.metaData),
13157
- };
13188
+ row = merge(row, rowObj);
13158
13189
  }
13159
- else {
13160
- row = {
13161
- dataSet: dataset,
13162
- filter,
13163
- metaData: metadataObj,
13164
- };
13190
+ if (beforeReportEvent) {
13191
+ row = yield beforeReportEvent(row);
13165
13192
  }
13193
+ row = {
13194
+ dataSet: JSON.stringify(row.dataSet),
13195
+ filter: JSON.stringify(row.filter),
13196
+ metaData: JSON.stringify(row.metaData),
13197
+ };
13166
13198
  const url = new URL(route, this.endPoint).href;
13167
13199
  const response = yield Http.post(url, {
13168
13200
  origin,
@@ -3113,34 +3113,38 @@
3113
3113
  };
3114
3114
  /* ----- end modal functions ----- */
3115
3115
  /* Edit header */
3116
- this.headerLeftSlot = [
3117
- {
3118
- name: `addDashboard${this.name}`,
3119
- component: 'ZdButton',
3120
- label: 'ADD',
3121
- iconName: 'plus',
3122
- color: 'white',
3123
- small: true,
3124
- cssClass: 'zd-my-2',
3125
- outline: true,
3126
- events: {
3127
- click: this.openModalAddCard.bind(this),
3116
+ this.editHeader = {
3117
+ component: 'ZdHeader',
3118
+ name: `edit-header-${this.name}`,
3119
+ leftSlot: [
3120
+ {
3121
+ name: `addDashboard${this.name}`,
3122
+ component: 'ZdButton',
3123
+ label: 'ADD',
3124
+ iconName: 'plus',
3125
+ color: 'white',
3126
+ small: true,
3127
+ cssClass: 'zd-my-2',
3128
+ outline: true,
3129
+ events: {
3130
+ click: this.openModalAddCard.bind(this),
3131
+ },
3128
3132
  },
3129
- },
3130
- {
3131
- name: `saveDashboard${this.name}`,
3132
- component: 'ZdButton',
3133
- label: 'SAVE',
3134
- iconName: 'complete',
3135
- color: 'white',
3136
- small: true,
3137
- cssClass: 'zd-my-2',
3138
- outline: true,
3139
- events: {
3140
- click: this.onSave.bind(this),
3133
+ {
3134
+ name: `saveDashboard${this.name}`,
3135
+ component: 'ZdButton',
3136
+ label: 'SAVE',
3137
+ iconName: 'complete',
3138
+ color: 'white',
3139
+ small: true,
3140
+ cssClass: 'zd-my-2',
3141
+ outline: true,
3142
+ events: {
3143
+ click: this.onSave.bind(this),
3144
+ },
3141
3145
  },
3142
- },
3143
- ];
3146
+ ],
3147
+ };
3144
3148
  this.editingMode = this.getInitValue('editingMode', props.editingMode, this.editingMode);
3145
3149
  this.moveMode = this.getInitValue('moveMode', props.moveMode, this.moveMode);
3146
3150
  this.cards = this.getInitValue('cards', props.cards, this.cards);
@@ -3149,6 +3153,7 @@
3149
3153
  this.height = this.getInitValue('height', props.height, this.height);
3150
3154
  this.heightAdjust = this.getInitValue('heightAdjust', props.heightAdjust, this.heightAdjust);
3151
3155
  this.cardFooterSlot = this.getInitValue('cardFooterSlot', props.cardFooterSlot, this.cardFooterSlot);
3156
+ this.editHeader = this.getInitValue('editHeader', props.editHeader, this.editHeader);
3152
3157
  this.createAccessors();
3153
3158
  }
3154
3159
  onMounted(element) {
@@ -3327,7 +3332,7 @@
3327
3332
  }
3328
3333
  /* Generate unique ids */
3329
3334
  getCardId() {
3330
- return Math.random().toString(36).substr(2, 9);
3335
+ return Math.random().toString(36).substring(2, 9);
3331
3336
  }
3332
3337
  selectCard(cardId) {
3333
3338
  this.currentCardId = cardId;
@@ -4441,6 +4446,8 @@
4441
4446
  }
4442
4447
  }
4443
4448
 
4449
+ class ResponseClass extends Response {
4450
+ }
4444
4451
  /**
4445
4452
  * Base class for Frame component.
4446
4453
  */
@@ -4573,7 +4580,7 @@
4573
4580
  [this.headerName]: time,
4574
4581
  });
4575
4582
  const stringData = JSON.stringify(metadata);
4576
- const responseObj = new Response(stringData, { headers });
4583
+ const responseObj = new ResponseClass(stringData, { headers });
4577
4584
  cache.put(url, responseObj);
4578
4585
  }
4579
4586
  /**
@@ -5125,7 +5132,7 @@
5125
5132
  return value;
5126
5133
  });
5127
5134
  core.FormatterParserProvider.registerFormatter('column_ZdSelectMultiple', ({ column, value, row, componentProps, }) => {
5128
- if (!value || value.length === 0)
5135
+ if (!value || !Array.isArray(value) || value.length === 0)
5129
5136
  return '';
5130
5137
  const { formatterDataText } = componentProps;
5131
5138
  const formatterFn = core.FormatterParserProvider.getFormatter('column_ZdSelect');
@@ -5441,6 +5448,28 @@
5441
5448
  });
5442
5449
  }
5443
5450
  }
5451
+ selectAll(isSelected) {
5452
+ if (this.selectable) {
5453
+ if (isSelected) {
5454
+ this.datasource.data.forEach((row) => {
5455
+ if (!this.callDisableSelection(row)) {
5456
+ const key = row[this.datasource.uniqueKey];
5457
+ if (key && this.selectedRows.indexOf(row) === -1) {
5458
+ this.selectedRows.push(row);
5459
+ }
5460
+ }
5461
+ });
5462
+ }
5463
+ else {
5464
+ this.datasource.data.forEach((row) => {
5465
+ const index = this.selectedRows.indexOf(row);
5466
+ if (index > -1) {
5467
+ this.selectedRows.splice(index, 1);
5468
+ }
5469
+ });
5470
+ }
5471
+ }
5472
+ }
5444
5473
  navigateUp() {
5445
5474
  const { uniqueKey, currentRow } = this.datasource;
5446
5475
  const rowIndex = this.datasource.data.findIndex((row) => row[uniqueKey] === currentRow[uniqueKey]);
@@ -7537,6 +7566,10 @@
7537
7566
  * Image displayed in the card.
7538
7567
  */
7539
7568
  this.poweredByImageCard = '';
7569
+ /**
7570
+ * If form is flat
7571
+ */
7572
+ this.flatForm = false;
7540
7573
  /**
7541
7574
  * Buttons displayed in the bottom of the card.
7542
7575
  */
@@ -7550,6 +7583,7 @@
7550
7583
  this.logoMessage = this.getInitValue('logoMessage', props.logoMessage, this.logoMessage);
7551
7584
  this.poweredByImage = this.getInitValue('poweredByImage', props.poweredByImage, this.poweredByImage);
7552
7585
  this.poweredByImageCard = this.getInitValue('poweredByImageCard', props.poweredByImageCard, this.poweredByImageCard);
7586
+ this.flatForm = this.getInitValue('flatForm', props.flatForm, this.flatForm);
7553
7587
  this.socialLogin = props.socialLogin || this.socialLogin;
7554
7588
  this.createAccessors();
7555
7589
  }
@@ -10985,6 +11019,8 @@
10985
11019
  this.checkedField = this.getInitValue('checkedField', props.checkedField, this.checkedField);
10986
11020
  this.openLevelOnLoad = this.getInitValue('openLevelOnLoad', props.openLevelOnLoad, this.openLevelOnLoad);
10987
11021
  this.checkbox = this.getInitValue('checkbox', props.checkbox, this.checkbox);
11022
+ this.height = this.getInitValue('height', props.height, this.height);
11023
+ this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
10988
11024
  this.disableCheckbox = this.getInitValue('disableCheckbox', props.disableCheckbox, this.disableCheckbox);
10989
11025
  this.afterTitleSlot = props.afterTitleSlot || this.afterTitleSlot;
10990
11026
  this.toolbarSlot = props.toolbarSlot || this.toolbarSlot;
@@ -13126,7 +13162,7 @@
13126
13162
  }
13127
13163
  throw new Error(`Invalid report type: ${type}`);
13128
13164
  }
13129
- getReport(type, portrait = true, rowObj) {
13165
+ getReport(type, portrait = true, rowObj, beforeReportEvent) {
13130
13166
  var _a;
13131
13167
  return __awaiter(this, void 0, void 0, function* () {
13132
13168
  const data = (_a = this.data) !== null && _a !== void 0 ? _a : yield this.getData();
@@ -13150,26 +13186,22 @@
13150
13186
  dataset = reportType.buildDataset(data, formattedColumns);
13151
13187
  }
13152
13188
  const filter = '[]';
13153
- let row = {};
13189
+ let row = {
13190
+ dataSet: JSON.parse(dataset),
13191
+ filter: JSON.parse(filter),
13192
+ metaData: JSON.parse(metadataObj),
13193
+ };
13154
13194
  if (rowObj) {
13155
- row = merge__default["default"]({
13156
- dataSet: JSON.parse(dataset),
13157
- filter: JSON.parse(filter),
13158
- metaData: JSON.parse(metadataObj),
13159
- }, rowObj);
13160
- row = {
13161
- dataSet: JSON.stringify(row.dataSet),
13162
- filter: JSON.stringify(row.filter),
13163
- metaData: JSON.stringify(row.metaData),
13164
- };
13195
+ row = merge__default["default"](row, rowObj);
13165
13196
  }
13166
- else {
13167
- row = {
13168
- dataSet: dataset,
13169
- filter,
13170
- metaData: metadataObj,
13171
- };
13197
+ if (beforeReportEvent) {
13198
+ row = yield beforeReportEvent(row);
13172
13199
  }
13200
+ row = {
13201
+ dataSet: JSON.stringify(row.dataSet),
13202
+ filter: JSON.stringify(row.filter),
13203
+ metaData: JSON.stringify(row.metaData),
13204
+ };
13173
13205
  const url = new URL(route, this.endPoint).href;
13174
13206
  const response = yield core.Http.post(url, {
13175
13207
  origin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.59.0",
3
+ "version": "1.61.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -39,5 +39,5 @@
39
39
  "lodash.times": "^4.3.2",
40
40
  "mockdate": "^3.0.2"
41
41
  },
42
- "gitHead": "1994ad253bafc3190adf1dd0db028b2825a2f16e"
42
+ "gitHead": "3c489e30aa19bf11a9b9393a4b0bd90c970b714a"
43
43
  }
@@ -1,9 +1,9 @@
1
1
  import { IDashboard, IDashboardEvents, IDashboardCard } from './interfaces';
2
2
  import { ComponentRender } from '../zd-component/component-render';
3
- import { IButton } from '../zd-button/interfaces';
4
3
  import { Modal } from '../zd-modal/modal';
5
4
  import { IModal } from '../zd-modal/interfaces';
6
5
  import { IComponentRender } from '../zd-component/interfaces';
6
+ import { IHeader } from '../zd-header/interfaces';
7
7
  /**
8
8
  * Base class for Dashboard component.
9
9
  */
@@ -38,7 +38,7 @@ export declare class Dashboard extends ComponentRender implements IDashboard {
38
38
  openModalAddCard(): void;
39
39
  modalCancelClick(): void;
40
40
  openModalEditCard(cardId: string): void;
41
- headerLeftSlot: IButton[];
41
+ editHeader: IHeader;
42
42
  onSave(): void;
43
43
  getFrameProps(cardId: string): {
44
44
  name?: undefined;
@@ -1,8 +1,8 @@
1
1
  import { IEventParam } from '@zeedhi/core';
2
2
  import { Dashboard } from './dashboard';
3
3
  import { IComponentRender, IComponentEvents } from '../zd-component/interfaces';
4
- import { IButton } from '../zd-button/interfaces';
5
4
  import { ICard } from '../zd-card/interfaces';
5
+ import { IHeader } from '../zd-header/interfaces';
6
6
  export declare type IDashboardEventParam = IEventParam<Dashboard>;
7
7
  export declare type IDashboardLoadEvent<T> = (event: T) => Promise<any>;
8
8
  export interface IDashboardEvents<T = IEventParam<any>> extends IComponentEvents<T> {
@@ -14,7 +14,7 @@ export interface IDashboard extends IComponentRender {
14
14
  cards?: IDashboardCard[];
15
15
  editingMode?: boolean;
16
16
  moveMode?: boolean;
17
- headerLeftSlot?: IButton[];
17
+ editHeader?: IHeader;
18
18
  removePadding?: boolean;
19
19
  height?: string | number;
20
20
  heightAdjust?: string | number;
@@ -169,6 +169,7 @@ export declare class Grid extends Iterable implements IGrid {
169
169
  * @param element DOM Element
170
170
  */
171
171
  selectAllClick(isSelected: boolean, event: Event, element: any): void;
172
+ selectAll(isSelected: boolean): void;
172
173
  protected navigateUp(): void;
173
174
  protected navigateDown(): void;
174
175
  protected navigatePageUp(): void;
@@ -16,6 +16,7 @@ export interface ILogin extends IComponentRender {
16
16
  poweredByImage?: string;
17
17
  poweredByImageCard?: string;
18
18
  socialLogin?: IComponentRender[];
19
+ flatForm?: boolean;
19
20
  }
20
21
  export interface ILoginButton extends IButton {
21
22
  authUrl?: string;
@@ -42,6 +42,10 @@ export declare class Login extends ComponentRender implements ILogin {
42
42
  * Image displayed in the card.
43
43
  */
44
44
  poweredByImageCard: string;
45
+ /**
46
+ * If form is flat
47
+ */
48
+ flatForm: boolean;
45
49
  /**
46
50
  * Buttons displayed in the bottom of the card.
47
51
  */
@@ -57,6 +57,8 @@ export interface ITree extends IComponentRender {
57
57
  toolbarSlot?: IComponentRender[];
58
58
  titleSlot?: ITreeConditionComponent[];
59
59
  events?: ITreeEvents;
60
+ height?: string | number;
61
+ maxHeight?: string | number;
60
62
  datasource?: IDatasource;
61
63
  parentField?: string;
62
64
  titleField?: string;
@@ -25,6 +25,14 @@ export declare class Tree extends ComponentRender implements ITree {
25
25
  * Components that will be rendered on toolbar slot
26
26
  */
27
27
  toolbarSlot: IComponentRender[];
28
+ /**
29
+ * Tree fixed height
30
+ */
31
+ height: string | number;
32
+ /**
33
+ * Tree max height
34
+ */
35
+ maxHeight: string | number;
28
36
  /**
29
37
  * Components that will be rendered on title slot
30
38
  */
@@ -6,3 +6,10 @@ export interface IReport {
6
6
  fileEndPoint: string;
7
7
  getReport(type: string, portrait: boolean): Promise<string>;
8
8
  }
9
+ export interface IBeforeReportParam {
10
+ dataSet: any;
11
+ filter: any;
12
+ metaData: any;
13
+ [key: string]: any;
14
+ }
15
+ export declare type IBeforeReportEvent = (param: IBeforeReportParam) => Promise<IBeforeReportParam>;
@@ -1,6 +1,6 @@
1
1
  import { IDictionary } from '@zeedhi/core';
2
2
  import { Iterable } from '../../components';
3
- import { IReport } from './interfaces';
3
+ import { IBeforeReportEvent, IReport } from './interfaces';
4
4
  export declare class Report implements IReport {
5
5
  iterable: Iterable;
6
6
  title: string;
@@ -10,6 +10,6 @@ export declare class Report implements IReport {
10
10
  constructor(iterable: Iterable, title: string);
11
11
  private getData;
12
12
  private getReportType;
13
- getReport(type: string, portrait?: boolean, rowObj?: any): Promise<string>;
13
+ getReport(type: string, portrait?: boolean, rowObj?: any, beforeReportEvent?: IBeforeReportEvent): Promise<string>;
14
14
  private removeColumns;
15
15
  }