@genesislcap/pbc-reporting-ui 2.0.1 → 2.0.3

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.
Files changed (19) hide show
  1. package/dist/dts/new/components/clone-report-config-modal/clone-report-config-modal.d.ts +19 -0
  2. package/dist/dts/new/components/clone-report-config-modal/clone-report-config-modal.d.ts.map +1 -0
  3. package/dist/dts/new/components/clone-report-config-modal/clone-report-config-modal.styles.d.ts +2 -0
  4. package/dist/dts/new/components/clone-report-config-modal/clone-report-config-modal.styles.d.ts.map +1 -0
  5. package/dist/dts/new/components/clone-report-config-modal/clone-report-config-modal.template.d.ts +3 -0
  6. package/dist/dts/new/components/clone-report-config-modal/clone-report-config-modal.template.d.ts.map +1 -0
  7. package/dist/dts/new/components/components.d.ts.map +1 -1
  8. package/dist/dts/new/components/reporting-configurations/reporting-configurations.d.ts +3 -0
  9. package/dist/dts/new/components/reporting-configurations/reporting-configurations.d.ts.map +1 -1
  10. package/dist/dts/new/components/reporting-configurations/reporting-configurations.template.d.ts.map +1 -1
  11. package/dist/dts/new/main/generated-reports/generated-reports.template.d.ts.map +1 -1
  12. package/dist/esm/new/components/clone-report-config-modal/clone-report-config-modal.js +102 -0
  13. package/dist/esm/new/components/clone-report-config-modal/clone-report-config-modal.styles.js +46 -0
  14. package/dist/esm/new/components/clone-report-config-modal/clone-report-config-modal.template.js +22 -0
  15. package/dist/esm/new/components/components.js +2 -0
  16. package/dist/esm/new/components/reporting-configurations/reporting-configurations.js +12 -0
  17. package/dist/esm/new/components/reporting-configurations/reporting-configurations.template.js +1 -0
  18. package/dist/esm/new/main/generated-reports/generated-reports.template.js +1 -0
  19. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import { GenesisElement } from "@genesislcap/web-core";
2
+ import { Modal } from "@genesislcap/foundation-ui";
3
+ import { Connect } from "@genesislcap/foundation-comms";
4
+ import { Genesis } from "../../types";
5
+ export declare class CloneReportConfigModal extends GenesisElement {
6
+ connect: Connect;
7
+ cloneReportConfigModal: Modal;
8
+ reportConfigDetails: Genesis.ServerReportConfig;
9
+ reportName: string;
10
+ fileName: string;
11
+ getReportConfigDetails(ID: string): Promise<any>;
12
+ showReportConfigModal(ID: string): Promise<void>;
13
+ closeCloneReportConfigModal(): void;
14
+ discardChanges(): void;
15
+ private filterFields;
16
+ cloneReportConfig(): Promise<void>;
17
+ showErrorToast(message: string): void;
18
+ }
19
+ //# sourceMappingURL=clone-report-config-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone-report-config-modal.d.ts","sourceRoot":"","sources":["../../../../../src/new/components/clone-report-config-modal/clone-report-config-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAGlF,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAYtC,qBAKa,sBAAuB,SAAQ,cAAc;IAC/C,OAAO,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,KAAK,CAAC;IAClB,mBAAmB,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAChD,UAAU,EAAE,MAAM,CAAM;IACxB,QAAQ,EAAE,MAAM,CAAM;IAE5B,sBAAsB,CAAC,EAAE,EAAE,MAAM;IAOjC,qBAAqB,CAAC,EAAE,EAAE,MAAM;IAKtC,2BAA2B;IAM3B,cAAc;IAKd,OAAO,CAAC,YAAY;IAMd,iBAAiB;IAmCvB,cAAc,CAAC,OAAO,EAAE,MAAM;CAO/B"}
@@ -0,0 +1,2 @@
1
+ export declare const cloneReportConfigModalStyles: import("@microsoft/fast-element").ElementStyles;
2
+ //# sourceMappingURL=clone-report-config-modal.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone-report-config-modal.styles.d.ts","sourceRoot":"","sources":["../../../../../src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,iDA4CxC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CloneReportConfigModal } from "./clone-report-config-modal";
2
+ export declare const CloneReportConfigModalTemplate: import("@microsoft/fast-element").ViewTemplate<CloneReportConfigModal, any>;
3
+ //# sourceMappingURL=clone-report-config-modal.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone-report-config-modal.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,eAAO,MAAM,8BAA8B,6EAmB1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/new/components/components.ts"],"names":[],"mappings":"AAuDA;;GAEG;AACH,eAAO,MAAM,6BAA6B,qBAyDzC,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/new/components/components.ts"],"names":[],"mappings":"AAyDA;;GAEG;AACH,eAAO,MAAM,6BAA6B,qBAyDzC,CAAC"}
@@ -4,6 +4,7 @@ import { SelectedOption } from '@genesislcap/foundation-ui';
4
4
  import { User } from '@genesislcap/foundation-user';
5
5
  import { GridOptionsConfig, GridProGenesisDatasource } from '@genesislcap/rapid-grid-pro';
6
6
  import { ReportingEventDetailMap, ReportingEvents } from '../../utils/event-map';
7
+ import { CloneReportConfigModal } from '../clone-report-config-modal/clone-report-config-modal';
7
8
  declare const ReportingConfigurations_base: abstract new (...args: any[]) => {
8
9
  $emit<K extends ReportingEvents>(...args: ReportingEventDetailMap[K] extends void ? [type: K, options?: import("@genesislcap/foundation-events").EmitOptions] : [type: K, detail: ReportingEventDetailMap[K], options?: import("@genesislcap/foundation-events").EmitOptions]): import("@genesislcap/foundation-events").EmitReturn;
9
10
  accessKey: string;
@@ -323,6 +324,7 @@ export declare class ReportingConfigurations extends ReportingConfigurations_bas
323
324
  connect: Connect;
324
325
  reportConfigurationsDatasource: GridProGenesisDatasource;
325
326
  gridCriteria: string;
327
+ cloneConfigModal: CloneReportConfigModal;
326
328
  user: User;
327
329
  searchBarConfig: {
328
330
  field: string;
@@ -340,6 +342,7 @@ export declare class ReportingConfigurations extends ReportingConfigurations_bas
340
342
  private deleteReportConfig;
341
343
  private runReport;
342
344
  searchChanged(event: CustomEvent<Array<SelectedOption>>): void;
345
+ openCloneReportConfigModal(e: any): Promise<void>;
343
346
  }
344
347
  export {};
345
348
  //# sourceMappingURL=reporting-configurations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reporting-configurations.d.ts","sourceRoot":"","sources":["../../../../../src/new/components/reporting-configurations/reporting-configurations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAwC,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,OAAO,EAEL,iBAAiB,EACjB,wBAAwB,EAEzB,MAAM,6BAA6B,CAAC;AAYrC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjF,qBAKa,uBAAwB,SAAQ,4BAAqD;IACvF,OAAO,EAAE,OAAO,CAAC;IAC1B,8BAA8B,EAAE,wBAAwB,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAM;IAEhC,IAAI,EAAG,IAAI,CAAC;IAEX,eAAe;;;;;QAWpB;IAEF,sBAAsB;IAMhB,uBAAuB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE;IAoBxE,aAAa;IA6Gb,cAAc;YAmBA,kBAAkB;YA8BlB,SAAS;IA6BvB,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;CAgBxD"}
1
+ {"version":3,"file":"reporting-configurations.d.ts","sourceRoot":"","sources":["../../../../../src/new/components/reporting-configurations/reporting-configurations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAwC,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,OAAO,EAEL,iBAAiB,EACjB,wBAAwB,EAEzB,MAAM,6BAA6B,CAAC;AAYrC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wDAAwD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhG,qBAKa,uBAAwB,SAAQ,4BAAqD;IACvF,OAAO,EAAE,OAAO,CAAC;IAC1B,8BAA8B,EAAE,wBAAwB,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAM;IAC1B,gBAAgB,EAAE,sBAAsB,CAAC;IAC/C,IAAI,EAAG,IAAI,CAAC;IAEX,eAAe;;;;;QAWpB;IAEF,sBAAsB;IAMhB,uBAAuB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE;IAoBxE,aAAa;IAmHb,cAAc;YAmBA,kBAAkB;YA8BlB,SAAS;IA6BvB,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAiBjD,0BAA0B,CAAC,CAAC,KAAA;CAIlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"reporting-configurations.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/components/reporting-configurations/reporting-configurations.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AA4BrE,eAAO,MAAM,+BAA+B,8EAE3C,CAAC"}
1
+ {"version":3,"file":"reporting-configurations.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/components/reporting-configurations/reporting-configurations.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AA6BrE,eAAO,MAAM,+BAA+B,8EAE3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"generated-reports.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/generated-reports/generated-reports.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAoBvD,eAAO,MAAM,wBAAwB,uEAGpC,CAAC"}
1
+ {"version":3,"file":"generated-reports.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/generated-reports/generated-reports.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAqBvD,eAAO,MAAM,wBAAwB,uEAGpC,CAAC"}
@@ -0,0 +1,102 @@
1
+ import { __decorate } from "tslib";
2
+ import { customElement, GenesisElement, observable } from "@genesislcap/web-core";
3
+ import { cloneReportConfigModalStyles as styles } from "./clone-report-config-modal.styles";
4
+ import { CloneReportConfigModalTemplate as template } from "./clone-report-config-modal.template";
5
+ import { showNotificationToast, transformFromServerPaylaod, validateReportingConfig } from "../../utils";
6
+ import { Connect } from "@genesislcap/foundation-comms";
7
+ const EXCLUDED_FIELDS = [
8
+ 'CREATED_ON',
9
+ 'CREATED_BY',
10
+ 'LAST_UPDATED_AT',
11
+ 'LAST_UPDATED_BY',
12
+ 'RECORD_ID',
13
+ 'TIMESTAMP',
14
+ 'ID'
15
+ ];
16
+ let CloneReportConfigModal = class CloneReportConfigModal extends GenesisElement {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.reportName = '';
20
+ this.fileName = '';
21
+ }
22
+ async getReportConfigDetails(ID) {
23
+ var _a;
24
+ const response = await this.connect.request('REPORT_CONFIG_DETAILS', { REQUEST: { ID } });
25
+ const data = (_a = response.REPLY) === null || _a === void 0 ? void 0 : _a[0];
26
+ if (!data)
27
+ throw new Error(`No data returned for edit report with ID ${ID}`);
28
+ return data;
29
+ }
30
+ async showReportConfigModal(ID) {
31
+ this.reportConfigDetails = await this.getReportConfigDetails(ID);
32
+ this.cloneReportConfigModal.show();
33
+ }
34
+ closeCloneReportConfigModal() {
35
+ this.reportConfigDetails = null;
36
+ this.reportName = '';
37
+ this.fileName = '';
38
+ }
39
+ discardChanges() {
40
+ this.closeCloneReportConfigModal();
41
+ this.cloneReportConfigModal.close();
42
+ }
43
+ filterFields(obj, excludedFields) {
44
+ return Object.fromEntries(Object.entries(obj).filter(([key]) => !excludedFields.includes(key)));
45
+ }
46
+ async cloneReportConfig() {
47
+ var _a, _b;
48
+ try {
49
+ const DETAILS = Object.assign(Object.assign({}, this.filterFields(this.reportConfigDetails, EXCLUDED_FIELDS)), { NAME: this.reportName, FILE_NAME: this.fileName });
50
+ const result = await validateReportingConfig(this.connect)(transformFromServerPaylaod(DETAILS));
51
+ if (result.k === 'err') {
52
+ this.showErrorToast((_a = result.info) === null || _a === void 0 ? void 0 : _a.join('\n\n'));
53
+ return;
54
+ }
55
+ const response = await this.connect.commitEvent(`EVENT_REPORT_CONFIG_INSERT`, {
56
+ DETAILS
57
+ });
58
+ if (response.MESSAGE_TYPE === 'EVENT_ACK') {
59
+ showNotificationToast({
60
+ title: 'Clone Report Config',
61
+ body: `'${this.reportName}' was cloned successfully`,
62
+ toast: { type: 'success' },
63
+ });
64
+ this.discardChanges();
65
+ }
66
+ if (response.MESSAGE_TYPE === 'EVENT_NACK') {
67
+ const error = ((_b = response === null || response === void 0 ? void 0 : response.ERROR) === null || _b === void 0 ? void 0 : _b.length) ? response.ERROR[0].TEXT : '';
68
+ this.showErrorToast(error);
69
+ }
70
+ }
71
+ catch (e) {
72
+ this.showErrorToast(e.message);
73
+ }
74
+ }
75
+ showErrorToast(message) {
76
+ showNotificationToast({
77
+ title: 'Clone Report Config',
78
+ body: `'${this.reportName}' was not cloned due to following error "${message}"`,
79
+ toast: { type: 'critical' },
80
+ });
81
+ }
82
+ };
83
+ __decorate([
84
+ Connect
85
+ ], CloneReportConfigModal.prototype, "connect", void 0);
86
+ __decorate([
87
+ observable
88
+ ], CloneReportConfigModal.prototype, "reportConfigDetails", void 0);
89
+ __decorate([
90
+ observable
91
+ ], CloneReportConfigModal.prototype, "reportName", void 0);
92
+ __decorate([
93
+ observable
94
+ ], CloneReportConfigModal.prototype, "fileName", void 0);
95
+ CloneReportConfigModal = __decorate([
96
+ customElement({
97
+ name: 'clone-report-config-modal',
98
+ template,
99
+ styles,
100
+ })
101
+ ], CloneReportConfigModal);
102
+ export { CloneReportConfigModal };
@@ -0,0 +1,46 @@
1
+ import { css } from '@genesislcap/web-core';
2
+ export const cloneReportConfigModalStyles = css `
3
+ :host {
4
+ display: flex;
5
+ overflow: hidden;
6
+ flex-direction: column;
7
+ max-height: 100%;
8
+ width: 100%;
9
+ }
10
+
11
+ .clone-report-config-modal::part(dialog) {
12
+ padding: calc(var(--design-unit) * 4px);
13
+ background: var(--neutral-layer-4);
14
+ border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
15
+ }
16
+
17
+ .dialog-top {
18
+ font-size: var(--type-ramp-plus-2-font-size);
19
+ font-weight: 600;
20
+ line-height: var(--type-ramp-plus-2-line-height);
21
+ color: var(--neutral-foreground-rest);
22
+ }
23
+
24
+ .dialog-content {
25
+ display: flex;
26
+ flex-direction: column;
27
+ width: 100%;
28
+ height: 100%;
29
+ gap: calc(var(--design-unit) * 3px);
30
+ margin: 0;
31
+ padding: calc(var(--design-unit) * 4px) 0;
32
+ }
33
+
34
+ .help-text {
35
+ margin-bottom: calc(var(--design-unit) * 4px);
36
+ word-break: break-word;
37
+ white-space: normal;
38
+ }
39
+
40
+ .help-text p {
41
+ margin: 0;
42
+ color: var(--neutral-foreground-rest);
43
+ font-size: var(--type-ramp-base-font-size);
44
+ line-height: var(--type-ramp-base-line-height);
45
+ }
46
+ `;
@@ -0,0 +1,22 @@
1
+ import { html, ref, sync } from "@genesislcap/web-core";
2
+ import { requiredTooltip, TOOLTIP, tooltip } from "../../utils";
3
+ export const CloneReportConfigModalTemplate = html `
4
+ <rapid-modal ${ref('cloneReportConfigModal')} class="clone-report-config-modal" :onCloseCallback=${(x) => x.closeCloneReportConfigModal()}>
5
+ <div slot="top" class="dialog-top">Clone Report Config</div>
6
+ <rapid-divider></rapid-divider>
7
+ <div class="dialog-content">
8
+ <div class="help-text">
9
+ <p>Here you can clone a report configuration you've already made. You need to set a new report and filename as they must be unique.</p>
10
+ </div>
11
+ <label class="label">Report name${requiredTooltip}${tooltip(TOOLTIP.SETUP_NAME)}</label>
12
+ <rapid-text-field :value=${sync((x) => x.reportName)} placeholder="Enter report name"></rapid-text-field>
13
+ <label class="label">File name${requiredTooltip}${tooltip(TOOLTIP.SETUP_FILENAME)}</label>
14
+ <rapid-text-field :value=${sync((x) => x.fileName)} placeholder="Enter file name"></rapid-text-field>
15
+ </div>
16
+ <rapid-divider></rapid-divider>
17
+ <div slot="bottom" class="dialog-bottom">
18
+ <rapid-button @click=${(x) => x.discardChanges()}>Cancel</rapid-button>
19
+ <rapid-button appearance="primary" @click=${(x) => x.cloneReportConfig()}>Clone</rapid-button>
20
+ </div>
21
+ </rapid-modal>
22
+ `;
@@ -4,10 +4,12 @@ import { rapidGridComponents, rapidAgActionsMenuRenderer, rapidAgSelectRenderer,
4
4
  import { css } from '@genesislcap/web-core';
5
5
  import { foundationAgRowSelectRenderer } from '../../old/components/renderers/row-select.renderer';
6
6
  import { DataTransformRenderer } from './renderers/data-transform-renderer';
7
+ import { CloneReportConfigModal } from './clone-report-config-modal/clone-report-config-modal';
7
8
  EntityManagement;
8
9
  RapidRuleExpressionBuilder;
9
10
  RapidValueExpressionBuilder;
10
11
  DataTransformRenderer;
12
+ CloneReportConfigModal;
11
13
  /**
12
14
  * @public
13
15
  */
@@ -60,6 +60,12 @@ let ReportingConfigurations = class ReportingConfigurations extends EventEmitter
60
60
  name: permissionGuard(this, Permissions.ReportConfigurationUpdate) ? 'Edit' : 'View',
61
61
  callback: (rowData) => this.editReportConfigHandler(rowData),
62
62
  },
63
+ permissionGuard(this, Permissions.ReportConfigurationUpdate)
64
+ ? {
65
+ name: 'Clone',
66
+ callback: (rowData) => this.openCloneReportConfigModal(rowData),
67
+ }
68
+ : null,
63
69
  permissionGuard(this, Permissions.ReportRun)
64
70
  ? {
65
71
  name: 'Run',
@@ -252,6 +258,9 @@ let ReportingConfigurations = class ReportingConfigurations extends EventEmitter
252
258
  .join(' && ');
253
259
  this.gridCriteria = criteriaBuilder;
254
260
  }
261
+ async openCloneReportConfigModal(e) {
262
+ this.cloneConfigModal.showReportConfigModal(e.ID);
263
+ }
255
264
  };
256
265
  __decorate([
257
266
  Connect
@@ -259,6 +268,9 @@ __decorate([
259
268
  __decorate([
260
269
  observable
261
270
  ], ReportingConfigurations.prototype, "gridCriteria", void 0);
271
+ __decorate([
272
+ observable
273
+ ], ReportingConfigurations.prototype, "cloneConfigModal", void 0);
262
274
  __decorate([
263
275
  User
264
276
  ], ReportingConfigurations.prototype, "user", void 0);
@@ -3,6 +3,7 @@ import { html, ref } from '@genesislcap/web-core';
3
3
  import { Permissions } from '../../types';
4
4
  import { permissionTemplateGuard } from '../../utils';
5
5
  const viewTemplate = html `
6
+ <clone-report-config-modal ${ref('cloneConfigModal')}></clone-report-config-modal>
6
7
  <div class="header-container">
7
8
  <rapid-button
8
9
  class="header-btn"
@@ -16,6 +16,7 @@ const viewTemplate = html `
16
16
  reverse="true"
17
17
  criteria="${(x) => x.gridCriteria}"
18
18
  :deferredGridOptions=${(x) => x.getGridOptions()}
19
+ max-rows="500"
19
20
  ></grid-pro-genesis-datasource>
20
21
  </rapid-grid-pro>
21
22
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-reporting-ui",
3
3
  "description": "Genesis PBC Reporting UI",
4
- "version": "2.0.1",
4
+ "version": "2.0.3",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",