@genesislcap/pbc-reporting-ui 15.7.0 → 15.7.2-FUI-2595.1

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.
@@ -130,6 +130,27 @@
130
130
  }
131
131
  ]
132
132
  },
133
+ {
134
+ "kind": "javascript-module",
135
+ "path": "src/new/components/components.ts",
136
+ "declarations": [
137
+ {
138
+ "kind": "function",
139
+ "name": "registerCommonRapidComponents",
140
+ "privacy": "public"
141
+ }
142
+ ],
143
+ "exports": [
144
+ {
145
+ "kind": "js",
146
+ "name": "registerCommonRapidComponents",
147
+ "declaration": {
148
+ "name": "registerCommonRapidComponents",
149
+ "module": "src/new/components/components.ts"
150
+ }
151
+ }
152
+ ]
153
+ },
133
154
  {
134
155
  "kind": "javascript-module",
135
156
  "path": "src/new/main/index.ts",
@@ -955,27 +976,6 @@
955
976
  }
956
977
  ]
957
978
  },
958
- {
959
- "kind": "javascript-module",
960
- "path": "src/new/components/components.ts",
961
- "declarations": [
962
- {
963
- "kind": "function",
964
- "name": "registerCommonRapidComponents",
965
- "privacy": "public"
966
- }
967
- ],
968
- "exports": [
969
- {
970
- "kind": "js",
971
- "name": "registerCommonRapidComponents",
972
- "declaration": {
973
- "name": "registerCommonRapidComponents",
974
- "module": "src/new/components/components.ts"
975
- }
976
- }
977
- ]
978
- },
979
979
  {
980
980
  "kind": "javascript-module",
981
981
  "path": "src/new/store/index.ts",
@@ -4397,163 +4397,54 @@
4397
4397
  },
4398
4398
  {
4399
4399
  "kind": "javascript-module",
4400
- "path": "src/new/lib/redux-store/index.ts",
4401
- "declarations": [],
4402
- "exports": [
4403
- {
4404
- "kind": "js",
4405
- "name": "*",
4406
- "declaration": {
4407
- "name": "*",
4408
- "package": "./store"
4409
- }
4410
- },
4411
- {
4412
- "kind": "js",
4413
- "name": "*",
4414
- "declaration": {
4415
- "name": "*",
4416
- "package": "./state-utils"
4417
- }
4418
- }
4419
- ]
4420
- },
4421
- {
4422
- "kind": "javascript-module",
4423
- "path": "src/new/lib/redux-store/state-utils.ts",
4424
- "declarations": [],
4425
- "exports": [
4426
- {
4427
- "kind": "js",
4428
- "name": "find",
4429
- "declaration": {
4430
- "name": "find",
4431
- "package": "lodash"
4432
- }
4433
- },
4434
- {
4435
- "kind": "js",
4436
- "name": "get",
4437
- "declaration": {
4438
- "name": "get",
4439
- "package": "lodash"
4440
- }
4441
- },
4442
- {
4443
- "kind": "js",
4444
- "name": "set",
4445
- "declaration": {
4446
- "name": "set",
4447
- "package": "lodash"
4448
- }
4449
- },
4450
- {
4451
- "kind": "js",
4452
- "name": "findIndex",
4453
- "declaration": {
4454
- "name": "findIndex",
4455
- "package": "lodash"
4456
- }
4457
- }
4458
- ]
4459
- },
4460
- {
4461
- "kind": "javascript-module",
4462
- "path": "src/new/lib/redux-store/store.ts",
4463
- "declarations": [
4464
- {
4465
- "kind": "function",
4466
- "name": "createStore",
4467
- "return": {
4468
- "type": {
4469
- "text": "StoreReturn<S>"
4470
- }
4471
- },
4472
- "parameters": [
4473
- {
4474
- "name": "slices",
4475
- "type": {
4476
- "text": "S"
4477
- }
4478
- },
4479
- {
4480
- "name": "preloadedState",
4481
- "type": {
4482
- "text": "RootStateFromSlices<S>"
4483
- }
4484
- }
4485
- ]
4486
- }
4487
- ],
4488
- "exports": [
4489
- {
4490
- "kind": "js",
4491
- "name": "createSlice",
4492
- "declaration": {
4493
- "name": "createSlice",
4494
- "package": "@reduxjs/toolkit"
4495
- }
4496
- },
4497
- {
4498
- "kind": "js",
4499
- "name": "createStore",
4500
- "declaration": {
4501
- "name": "createStore",
4502
- "module": "src/new/lib/redux-store/store.ts"
4503
- }
4504
- }
4505
- ]
4506
- },
4507
- {
4508
- "kind": "javascript-module",
4509
- "path": "src/new/main/edit-config/config-journey-orchestrator.styles.ts",
4400
+ "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts",
4510
4401
  "declarations": [
4511
4402
  {
4512
4403
  "kind": "variable",
4513
- "name": "styles",
4514
- "default": "css`\n :host {\n --stepper-size: 50px;\n ${constrainedDimensions({ navToContentPx: 300 })}\n }\n\n div.pad {\n padding-top: 50px;\n }\n\n .centered {\n max-width: var(--constrained-width);\n max-height: calc(100vh - var(--reporting-header-to-content-height));\n width: 100%;\n margin: auto;\n }\n\n .scheduling-container {\n display: flex;\n height: 100%;\n }\n\n .scheduling-container-margin {\n margin: 0 auto;\n }\n\n .block {\n display: block;\n }\n\n datasource-config-container,\n base-config {\n overflow-y: auto;\n overflow-x: clip;\n min-height: var(--constrained-height);\n }\n\n div.button-container {\n z-index: 1 !important;\n position: absolute;\n top: calc(var(--stepper-size) + calc(var(--design-unit) * 3px));\n right: calc(var(--design-unit) * 3px);\n display: flex;\n align-content: center;\n align-items: center;\n gap: calc(var(--design-unit) * 3px);\n }\n\n tabbed-datasource-container,\n row-filters {\n max-width: var(--constrained-width);\n margin: auto;\n display: block;\n }\n\n rapid-stepper::part(action-buttons-container) {\n border-top: calc(var(--stroke-width) * 1px) solid\n color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);\n padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 4px);\n }\n\n rapid-stepper::part(stepper-tab-panel) {\n background: var(--app-bg-color);\n justify-content: space-between;\n border-bottom: calc(var(--stroke-width) * 1px) solid\n color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);\n }\n\n rapid-stepper::part(stepper-tab) {\n border-bottom: calc(var(--stroke-width) * 1px) solid\n color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);\n height: var(--stepper-size);\n }\n\n rapid-stepper::part(stepper-panel-container) {\n overflow: hidden;\n contain: size;\n }\n\n rapid-stepper.hidden::part(action-buttons-container) {\n display: none;\n }\n\n rapid-stepper::part(stepper-tab-menu) {\n margin: 0;\n gap: 0;\n }\n\n rapid-stepper::part(stepper-tab-progress) {\n background: var(--app-bg-color);\n justify-content: center;\n padding: 0;\n }\n\n /**\n * Hacky way for now - need to adjust it in foundation\n */\n rapid-stepper-tab {\n --neutral-layer-3: var(--app-bg-color);\n }\n\n :host(.readonly) rapid-stepper-tab-panel {\n pointer-events: none;\n }\n\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
4404
+ "name": "cloneReportConfigModalStyles",
4405
+ "default": "css`\n :host {\n display: flex;\n overflow: hidden;\n flex-direction: column;\n max-height: 100%;\n width: 100%;\n }\n\n .clone-report-config-modal::part(dialog) {\n padding: calc(var(--design-unit) * 4px);\n background: var(--neutral-layer-4);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .dialog-top {\n font-size: var(--type-ramp-plus-2-font-size);\n font-weight: 600;\n line-height: var(--type-ramp-plus-2-line-height);\n color: var(--neutral-foreground-rest);\n }\n\n .dialog-content {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n gap: calc(var(--design-unit) * 3px);\n margin: 0;\n padding: calc(var(--design-unit) * 4px) 0;\n }\n\n .help-text {\n margin-bottom: calc(var(--design-unit) * 4px);\n word-break: break-word;\n white-space: normal;\n }\n\n .help-text p {\n margin: 0;\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n }\n`"
4515
4406
  }
4516
4407
  ],
4517
4408
  "exports": [
4518
4409
  {
4519
4410
  "kind": "js",
4520
- "name": "styles",
4411
+ "name": "cloneReportConfigModalStyles",
4521
4412
  "declaration": {
4522
- "name": "styles",
4523
- "module": "src/new/main/edit-config/config-journey-orchestrator.styles.ts"
4413
+ "name": "cloneReportConfigModalStyles",
4414
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts"
4524
4415
  }
4525
4416
  }
4526
4417
  ]
4527
4418
  },
4528
4419
  {
4529
4420
  "kind": "javascript-module",
4530
- "path": "src/new/main/edit-config/config-journey-orchestrator.template.ts",
4421
+ "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts",
4531
4422
  "declarations": [
4532
4423
  {
4533
4424
  "kind": "variable",
4534
- "name": "template",
4535
- "default": "html<ConfigJourneyOrchestrator>`\n <template class=\"${(x) => classNames(['readonly', !permissionGuard(x, editPermission)])}\">\n <div class=\"button-container\">\n ${(ctx) =>\n permissionTemplateGuard(\n ctx,\n editPermission,\n html<ConfigJourneyOrchestrator>`\n <rapid-button appearance=\"primary\" @click=${(x) => x.saveConfigHandler()}>\n Save and Close\n </rapid-button>\n `,\n html`\n <p>You have read-only permissions</p>\n `,\n )}\n <rapid-button @click=${(x) => x.showListViewHandler()}>\n ${(x) => (permissionGuard(x, editPermission) ? 'Discard Changes' : 'Close')}\n </rapid-button>\n </div>\n\n <rapid-stepper\n allow-backward-jumps\n allow-forward-jumps\n orientation=\"horizontal\"\n hide-submit-button\n hide-step-number\n :validation=${(x) => [\n { isValid: () => x.validateProjectSetup() },\n { isValid: () => x.validateDatasource() },\n ]}\n >\n <rapid-stepper-tab>Report Setup</rapid-stepper-tab>\n <rapid-stepper-tab>Add Datasources</rapid-stepper-tab>\n <rapid-stepper-tab>Row Filters</rapid-stepper-tab>\n <rapid-stepper-tab>Column Visibility</rapid-stepper-tab>\n <!--<rapid-stepper-tab>Transform & Derive Data</rapid-stepper-tab>-->\n <rapid-stepper-tab>Formatting</rapid-stepper-tab>\n <!--<rapid-stepper-tab>Sorting</rapid-stepper-tab>-->\n <rapid-stepper-tab>\n Column\n ${(_) => (selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID ? 'Aliases' : 'Renames')}\n </rapid-stepper-tab>\n <rapid-stepper-tab>Delivery</rapid-stepper-tab>\n\n <rapid-stepper-tab-panel>\n <div class=\"pad\">\n <base-config class=\"centered block\"></base-config>\n </div>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <div class=\"pad\">\n <datasource-config-container class=\"centered block\"></datasource-config-container>\n </div>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <row-filters-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></row-filters-tutorial>\n <row-filters></row-filters>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <col-filters-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></col-filters-tutorial>\n <col-filters></col-filters>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <data-transforms-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></data-transforms-tutorial>\n <data-transforms-derived-fields></row-transforms-derived-fields>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <!--\n <rapid-stepper-tab-panel>Transform Data Content Goes Here</rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>Sorting Content Goes Here</rapid-stepper-tab-panel>\n-->\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <col-renames-aliases-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></col-renames-aliases-tutorial>\n <col-rename-alias></col-rename-alias>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <div class=\"scheduling-container pad\">\n <scheduling-config class=\"centered scheduling-container-margin\"></scheduling-config>\n </div>\n </rapid-stepper-tab-panel>\n\n <!--\n\n\n <rapid-stepper-tab-panel>Destinations Content Goes Here</rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>Summary Content Goes Here</rapid-stepper-tab-panel>\n-->\n </rapid-stepper>\n </template>\n`"
4425
+ "name": "CloneReportConfigModalTemplate",
4426
+ "default": "html<CloneReportConfigModal>`\n <rapid-modal\n ${ref('cloneReportConfigModal')}\n class=\"clone-report-config-modal\"\n :onCloseCallback=${(x) => x.closeCloneReportConfigModal()}\n >\n <div slot=\"top\" class=\"dialog-top\">\n ${(x) => (x.isImportMode ? 'Import Report Config' : 'Clone Report Config')}\n </div>\n <rapid-divider></rapid-divider>\n <div class=\"dialog-content\">\n <div class=\"help-text\">\n <p>\n ${(x) =>\n x.isImportMode\n ? 'Here you can import a report configuration from a file. You need to set a new report and filename as they must be unique.'\n : \"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.\"}\n </p>\n </div>\n <label class=\"label\">Report name${requiredTooltip}${tooltip(TOOLTIP.SETUP_NAME)}</label>\n <rapid-text-field\n :value=${sync((x) => x.reportName)}\n placeholder=\"Enter report name\"\n ></rapid-text-field>\n <label class=\"label\">File name${requiredTooltip}${tooltip(TOOLTIP.SETUP_FILENAME)}</label>\n <rapid-text-field\n :value=${sync((x) => x.fileName)}\n placeholder=\"Enter file name\"\n ></rapid-text-field>\n ${when(\n (x) => x.isImportMode && !!x.reportConfigDetails?.DOCUMENT_TEMPLATE_ID,\n html`\n ${fileTemplatePicker}\n <p style=\"max-width: 745px;\">\n Because the exported report requires a selected template you must select a valid\n template to import this configuration. If there isn't a valid template then you must\n upload one via the document manager component.\n </p>\n `,\n )}\n </div>\n <rapid-divider></rapid-divider>\n <div slot=\"bottom\" class=\"dialog-bottom\">\n <rapid-button @click=${(x) => x.discardChanges()}>Cancel</rapid-button>\n <rapid-button appearance=\"primary\" @click=${(x) => x.cloneReportConfig()}>\n ${(x) => (x.isImportMode ? 'Import' : 'Clone')}\n </rapid-button>\n </div>\n </rapid-modal>\n`"
4536
4427
  }
4537
4428
  ],
4538
4429
  "exports": [
4539
4430
  {
4540
4431
  "kind": "js",
4541
- "name": "template",
4432
+ "name": "CloneReportConfigModalTemplate",
4542
4433
  "declaration": {
4543
- "name": "template",
4544
- "module": "src/new/main/edit-config/config-journey-orchestrator.template.ts"
4434
+ "name": "CloneReportConfigModalTemplate",
4435
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts"
4545
4436
  }
4546
4437
  }
4547
4438
  ]
4548
4439
  },
4549
4440
  {
4550
4441
  "kind": "javascript-module",
4551
- "path": "src/new/main/edit-config/config-journey-orchestrator.ts",
4442
+ "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts",
4552
4443
  "declarations": [
4553
4444
  {
4554
4445
  "kind": "class",
4555
- "description": "Orchestrates validate/save/discard for report config editing.",
4556
- "name": "ConfigJourneyOrchestrator",
4446
+ "description": "",
4447
+ "name": "CloneReportConfigModal",
4557
4448
  "members": [
4558
4449
  {
4559
4450
  "kind": "field",
@@ -4564,232 +4455,184 @@
4564
4455
  },
4565
4456
  {
4566
4457
  "kind": "field",
4567
- "name": "user",
4458
+ "name": "cloneReportConfigModal",
4568
4459
  "type": {
4569
- "text": "User"
4460
+ "text": "Modal"
4570
4461
  }
4571
4462
  },
4572
4463
  {
4573
4464
  "kind": "field",
4574
- "name": "validateConfig",
4575
- "privacy": "private"
4465
+ "name": "reportConfigDetails",
4466
+ "type": {
4467
+ "text": "Genesis.ServerReportConfig"
4468
+ }
4576
4469
  },
4577
4470
  {
4578
- "kind": "method",
4579
- "name": "showListViewHandler"
4471
+ "kind": "field",
4472
+ "name": "reportName",
4473
+ "type": {
4474
+ "text": "string"
4475
+ },
4476
+ "default": "''"
4580
4477
  },
4581
4478
  {
4582
- "kind": "method",
4583
- "name": "validateProjectSetup"
4479
+ "kind": "field",
4480
+ "name": "fileName",
4481
+ "type": {
4482
+ "text": "string"
4483
+ },
4484
+ "default": "''"
4584
4485
  },
4585
4486
  {
4586
- "kind": "method",
4587
- "name": "validateDatasource"
4487
+ "kind": "field",
4488
+ "name": "fileTemplates",
4489
+ "type": {
4490
+ "text": "Array<Genesis.FileStorageDataRow>"
4491
+ },
4492
+ "default": "[]"
4588
4493
  },
4589
4494
  {
4590
- "kind": "method",
4591
- "name": "saveConfigHandler"
4495
+ "kind": "field",
4496
+ "name": "allowedTemplates",
4497
+ "type": {
4498
+ "text": "Array<Genesis.FileStorageDataRow>"
4499
+ },
4500
+ "default": "[]"
4501
+ },
4502
+ {
4503
+ "kind": "field",
4504
+ "name": "selectedTemplateId",
4505
+ "type": {
4506
+ "text": "string"
4507
+ },
4508
+ "default": "''"
4509
+ },
4510
+ {
4511
+ "kind": "field",
4512
+ "name": "isImportMode",
4513
+ "type": {
4514
+ "text": "boolean"
4515
+ },
4516
+ "default": "false"
4592
4517
  },
4593
4518
  {
4594
4519
  "kind": "method",
4595
- "name": "displayError",
4596
- "privacy": "private",
4520
+ "name": "getReportConfigDetails",
4597
4521
  "parameters": [
4598
4522
  {
4599
- "name": "e",
4523
+ "name": "ID",
4600
4524
  "type": {
4601
- "text": "Error"
4525
+ "text": "string"
4602
4526
  }
4603
- },
4604
- {
4605
- "name": "expose",
4606
- "default": "false"
4607
4527
  }
4608
4528
  ]
4609
- }
4610
- ],
4611
- "events": [
4529
+ },
4612
4530
  {
4613
- "description": "Fired to switch the report configuration display mode. detail: `'edit' | 'list'`",
4614
- "name": "set-report-config-disp-mode"
4615
- }
4616
- ],
4617
- "mixins": [
4618
- {
4619
- "name": "EventEmitter",
4620
- "package": "@genesislcap/foundation-events"
4621
- }
4622
- ],
4623
- "superclass": {
4624
- "name": "GenesisElement",
4625
- "package": "@genesislcap/web-core"
4626
- },
4627
- "tagName": "config-journey-orchestrator",
4628
- "customElement": true
4629
- }
4630
- ],
4631
- "exports": [
4632
- {
4633
- "kind": "js",
4634
- "name": "ConfigJourneyOrchestrator",
4635
- "declaration": {
4636
- "name": "ConfigJourneyOrchestrator",
4637
- "module": "src/new/main/edit-config/config-journey-orchestrator.ts"
4638
- }
4639
- },
4640
- {
4641
- "kind": "custom-element-definition",
4642
- "name": "config-journey-orchestrator",
4643
- "declaration": {
4644
- "name": "ConfigJourneyOrchestrator",
4645
- "module": "src/new/main/edit-config/config-journey-orchestrator.ts"
4646
- }
4647
- }
4648
- ]
4649
- },
4650
- {
4651
- "kind": "javascript-module",
4652
- "path": "src/new/main/generated-reports/generated-reports.styles.ts",
4653
- "declarations": [
4654
- {
4655
- "kind": "variable",
4656
- "name": "GeneratedReportsStyles",
4657
- "default": "css`\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .container {\n padding: calc(var(--design-unit) * 4px);\n width: 40%;\n }\n`"
4658
- }
4659
- ],
4660
- "exports": [
4661
- {
4662
- "kind": "js",
4663
- "name": "GeneratedReportsStyles",
4664
- "declaration": {
4665
- "name": "GeneratedReportsStyles",
4666
- "module": "src/new/main/generated-reports/generated-reports.styles.ts"
4667
- }
4668
- }
4669
- ]
4670
- },
4671
- {
4672
- "kind": "javascript-module",
4673
- "path": "src/new/main/generated-reports/generated-reports.template.ts",
4674
- "declarations": [
4675
- {
4676
- "kind": "variable",
4677
- "name": "GeneratedReportsTemplate",
4678
- "default": "html<GeneratedReports>`\n ${(x) =>\n permissionTemplateGuard(x, [Permissions.ReportView, Permissions.ReportRun], viewTemplate)}\n`"
4679
- }
4680
- ],
4681
- "exports": [
4682
- {
4683
- "kind": "js",
4684
- "name": "GeneratedReportsTemplate",
4685
- "declaration": {
4686
- "name": "GeneratedReportsTemplate",
4687
- "module": "src/new/main/generated-reports/generated-reports.template.ts"
4688
- }
4689
- }
4690
- ]
4691
- },
4692
- {
4693
- "kind": "javascript-module",
4694
- "path": "src/new/main/generated-reports/generated-reports.ts",
4695
- "declarations": [
4696
- {
4697
- "kind": "class",
4698
- "description": "",
4699
- "name": "GeneratedReports",
4700
- "members": [
4701
- {
4702
- "kind": "field",
4703
- "name": "connect",
4704
- "type": {
4705
- "text": "Connect"
4706
- }
4707
- },
4708
- {
4709
- "kind": "field",
4710
- "name": "generatedReportsDatasource",
4711
- "type": {
4712
- "text": "GridProGenesisDatasource"
4713
- }
4531
+ "kind": "method",
4532
+ "name": "showReportConfigModal",
4533
+ "parameters": [
4534
+ {
4535
+ "name": "ID",
4536
+ "type": {
4537
+ "text": "string"
4538
+ }
4539
+ }
4540
+ ]
4714
4541
  },
4715
4542
  {
4716
- "kind": "field",
4717
- "name": "generatedReportId",
4718
- "type": {
4719
- "text": "string | null"
4720
- }
4543
+ "kind": "method",
4544
+ "name": "showImportModal",
4545
+ "parameters": [
4546
+ {
4547
+ "name": "config",
4548
+ "type": {
4549
+ "text": "Genesis.ServerReportConfig"
4550
+ }
4551
+ }
4552
+ ]
4721
4553
  },
4722
4554
  {
4723
- "kind": "field",
4724
- "name": "gridCriteria",
4725
- "type": {
4726
- "text": "string"
4727
- },
4728
- "default": "''"
4555
+ "kind": "method",
4556
+ "name": "closeCloneReportConfigModal"
4729
4557
  },
4730
4558
  {
4731
- "kind": "field",
4732
- "name": "user",
4733
- "type": {
4734
- "text": "User"
4559
+ "kind": "method",
4560
+ "name": "getFileTemplates",
4561
+ "return": {
4562
+ "type": {
4563
+ "text": "Promise<void>"
4564
+ }
4735
4565
  }
4736
4566
  },
4737
4567
  {
4738
- "kind": "field",
4739
- "name": "searchBarConfig",
4740
- "type": {
4741
- "text": "array"
4568
+ "kind": "method",
4569
+ "name": "getAllowedTemplates",
4570
+ "return": {
4571
+ "type": {
4572
+ "text": "Array<Genesis.FileStorageDataRow>"
4573
+ }
4742
4574
  },
4743
- "privacy": "public",
4744
- "default": "[\n {\n field: 'NAME',\n label: (searchTerm) => `${searchTerm} as NAME`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH && !selectedOption.some((e) => e.field === 'NAME')\n );\n },\n },\n {\n field: 'FILE_NAME',\n label: (searchTerm) => `${searchTerm} as FILE_NAME`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH &&\n !selectedOption.some((e) => e.field === 'FILE_NAME')\n );\n },\n },\n {\n field: 'STATUS',\n label: (searchTerm) => `${searchTerm} as STATUS`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH && !selectedOption.some((e) => e.field === 'STATUS')\n );\n },\n },\n ]"
4745
- },
4746
- {
4747
- "kind": "field",
4748
- "name": "getColor"
4749
- },
4750
- {
4751
- "kind": "field",
4752
- "name": "getStatusRenderer"
4575
+ "parameters": [
4576
+ {
4577
+ "name": "outputFormat",
4578
+ "type": {
4579
+ "text": "string"
4580
+ }
4581
+ }
4582
+ ]
4753
4583
  },
4754
4584
  {
4755
4585
  "kind": "method",
4756
- "name": "getColumnDefs"
4586
+ "name": "handleTemplateSelectChange",
4587
+ "parameters": [
4588
+ {
4589
+ "name": "selectInput",
4590
+ "type": {
4591
+ "text": "HTMLSelectElement"
4592
+ }
4593
+ }
4594
+ ]
4757
4595
  },
4758
4596
  {
4759
4597
  "kind": "method",
4760
- "name": "getGridOptions"
4598
+ "name": "discardChanges"
4761
4599
  },
4762
4600
  {
4763
4601
  "kind": "method",
4764
- "name": "downloadReport",
4602
+ "name": "filterFields",
4765
4603
  "privacy": "private",
4604
+ "return": {
4605
+ "type": {
4606
+ "text": "Partial<T>"
4607
+ }
4608
+ },
4766
4609
  "parameters": [
4767
4610
  {
4768
- "name": "fileStorageId",
4611
+ "name": "obj",
4769
4612
  "type": {
4770
- "text": "string"
4613
+ "text": "T"
4614
+ }
4615
+ },
4616
+ {
4617
+ "name": "excludedFields",
4618
+ "type": {
4619
+ "text": "readonly string[]"
4771
4620
  }
4772
4621
  }
4773
4622
  ]
4774
4623
  },
4775
4624
  {
4776
4625
  "kind": "method",
4777
- "name": "deleteReport",
4778
- "privacy": "private",
4779
- "parameters": [
4780
- {
4781
- "name": "generatedReportId"
4782
- }
4783
- ]
4626
+ "name": "cloneReportConfig"
4784
4627
  },
4785
4628
  {
4786
4629
  "kind": "method",
4787
- "name": "searchChanged",
4630
+ "name": "showErrorToast",
4788
4631
  "parameters": [
4789
4632
  {
4790
- "name": "event",
4633
+ "name": "message",
4791
4634
  "type": {
4792
- "text": "CustomEvent<Array<SelectedOption>>"
4635
+ "text": "string"
4793
4636
  }
4794
4637
  }
4795
4638
  ]
@@ -4799,93 +4642,105 @@
4799
4642
  "name": "GenesisElement",
4800
4643
  "package": "@genesislcap/web-core"
4801
4644
  },
4802
- "tagName": "generated-reports",
4645
+ "tagName": "clone-report-config-modal",
4803
4646
  "customElement": true
4804
4647
  }
4805
4648
  ],
4806
4649
  "exports": [
4807
4650
  {
4808
4651
  "kind": "js",
4809
- "name": "GeneratedReports",
4652
+ "name": "CloneReportConfigModal",
4810
4653
  "declaration": {
4811
- "name": "GeneratedReports",
4812
- "module": "src/new/main/generated-reports/generated-reports.ts"
4654
+ "name": "CloneReportConfigModal",
4655
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
4813
4656
  }
4814
4657
  },
4815
4658
  {
4816
4659
  "kind": "custom-element-definition",
4817
- "name": "generated-reports",
4818
- "declaration": {
4819
- "name": "GeneratedReports",
4820
- "module": "src/new/main/generated-reports/generated-reports.ts"
4821
- }
4822
- }
4823
- ]
4824
- },
4825
- {
4826
- "kind": "javascript-module",
4827
- "path": "src/new/main/report-destinations/report-destinations.template.ts",
4828
- "declarations": [
4829
- {
4830
- "kind": "variable",
4831
- "name": "template",
4832
- "default": "html<ReportDestinations>`\n ${(x) => permissionTemplateGuard(x, Permissions.ReportDestinationView, viewTemplate)}\n`"
4833
- }
4834
- ],
4835
- "exports": [
4836
- {
4837
- "kind": "js",
4838
- "name": "template",
4660
+ "name": "clone-report-config-modal",
4839
4661
  "declaration": {
4840
- "name": "template",
4841
- "module": "src/new/main/report-destinations/report-destinations.template.ts"
4662
+ "name": "CloneReportConfigModal",
4663
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
4842
4664
  }
4843
4665
  }
4844
4666
  ]
4845
4667
  },
4846
4668
  {
4847
4669
  "kind": "javascript-module",
4848
- "path": "src/new/main/report-destinations/report-destinations.ts",
4670
+ "path": "src/new/components/renderers/data-transform-renderer.ts",
4849
4671
  "declarations": [
4850
4672
  {
4851
4673
  "kind": "class",
4852
4674
  "description": "",
4853
- "name": "ReportDestinations",
4675
+ "name": "DataTransformRenderer",
4854
4676
  "members": [
4855
4677
  {
4856
4678
  "kind": "field",
4857
- "name": "connect",
4679
+ "name": "params",
4858
4680
  "type": {
4859
- "text": "Connect"
4681
+ "text": "DataTransformRendererParams"
4860
4682
  },
4861
- "privacy": "private"
4683
+ "privacy": "public"
4862
4684
  },
4863
4685
  {
4864
4686
  "kind": "field",
4865
- "name": "topics",
4687
+ "name": "value",
4866
4688
  "type": {
4867
- "text": "string[]"
4689
+ "text": "ExpressionBuilderTypes.ValueConfig"
4868
4690
  },
4869
- "default": "[]"
4691
+ "privacy": "public"
4870
4692
  },
4871
4693
  {
4872
4694
  "kind": "field",
4873
- "name": "user",
4695
+ "name": "modal",
4874
4696
  "type": {
4875
- "text": "User"
4697
+ "text": "Modal"
4876
4698
  }
4877
4699
  },
4878
4700
  {
4879
- "kind": "field",
4880
- "name": "getUISchema",
4881
- "type": {
4882
- "text": "UiSchema"
4883
- },
4884
- "readonly": true
4701
+ "kind": "method",
4702
+ "name": "init",
4703
+ "privacy": "public",
4704
+ "parameters": [
4705
+ {
4706
+ "name": "params",
4707
+ "type": {
4708
+ "text": "DataTransformRendererParams"
4709
+ }
4710
+ }
4711
+ ]
4885
4712
  },
4886
4713
  {
4887
4714
  "kind": "method",
4888
- "name": "setNotifyRouteTopics",
4715
+ "name": "getGui",
4716
+ "privacy": "public",
4717
+ "return": {
4718
+ "type": {
4719
+ "text": "HTMLElement"
4720
+ }
4721
+ }
4722
+ },
4723
+ {
4724
+ "kind": "method",
4725
+ "name": "refresh",
4726
+ "privacy": "public",
4727
+ "return": {
4728
+ "type": {
4729
+ "text": "boolean"
4730
+ }
4731
+ },
4732
+ "parameters": [
4733
+ {
4734
+ "name": "params",
4735
+ "type": {
4736
+ "text": "DataTransformRendererParams"
4737
+ }
4738
+ }
4739
+ ]
4740
+ },
4741
+ {
4742
+ "kind": "field",
4743
+ "name": "changeHandler",
4889
4744
  "privacy": "public"
4890
4745
  }
4891
4746
  ],
@@ -4893,79 +4748,79 @@
4893
4748
  "name": "GenesisElement",
4894
4749
  "package": "@genesislcap/web-core"
4895
4750
  },
4896
- "tagName": "report-destinations",
4751
+ "tagName": "data-transform-cell-renderer",
4897
4752
  "customElement": true
4898
4753
  }
4899
4754
  ],
4900
4755
  "exports": [
4901
4756
  {
4902
4757
  "kind": "js",
4903
- "name": "ReportDestinations",
4758
+ "name": "DataTransformRenderer",
4904
4759
  "declaration": {
4905
- "name": "ReportDestinations",
4906
- "module": "src/new/main/report-destinations/report-destinations.ts"
4760
+ "name": "DataTransformRenderer",
4761
+ "module": "src/new/components/renderers/data-transform-renderer.ts"
4907
4762
  }
4908
4763
  },
4909
4764
  {
4910
4765
  "kind": "custom-element-definition",
4911
- "name": "report-destinations",
4766
+ "name": "data-transform-cell-renderer",
4912
4767
  "declaration": {
4913
- "name": "ReportDestinations",
4914
- "module": "src/new/main/report-destinations/report-destinations.ts"
4768
+ "name": "DataTransformRenderer",
4769
+ "module": "src/new/components/renderers/data-transform-renderer.ts"
4915
4770
  }
4916
4771
  }
4917
4772
  ]
4918
4773
  },
4919
4774
  {
4920
4775
  "kind": "javascript-module",
4921
- "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts",
4776
+ "path": "src/new/components/reporting-configurations/reporting-configurations.styles.ts",
4922
4777
  "declarations": [
4923
4778
  {
4924
4779
  "kind": "variable",
4925
- "name": "cloneReportConfigModalStyles",
4926
- "default": "css`\n :host {\n display: flex;\n overflow: hidden;\n flex-direction: column;\n max-height: 100%;\n width: 100%;\n }\n\n .clone-report-config-modal::part(dialog) {\n padding: calc(var(--design-unit) * 4px);\n background: var(--neutral-layer-4);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .dialog-top {\n font-size: var(--type-ramp-plus-2-font-size);\n font-weight: 600;\n line-height: var(--type-ramp-plus-2-line-height);\n color: var(--neutral-foreground-rest);\n }\n\n .dialog-content {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n gap: calc(var(--design-unit) * 3px);\n margin: 0;\n padding: calc(var(--design-unit) * 4px) 0;\n }\n\n .help-text {\n margin-bottom: calc(var(--design-unit) * 4px);\n word-break: break-word;\n white-space: normal;\n }\n\n .help-text p {\n margin: 0;\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n }\n`"
4780
+ "name": "ReportingConfigurationStyles",
4781
+ "default": "css`\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .header-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);\n gap: calc(var(--design-unit) * 4px);\n border-bottom: 1px solid var(--neutral-fill-rest);\n }\n\n .header-buttons {\n display: flex;\n align-items: center;\n }\n\n rapid-button.header-btn {\n background: transparent;\n color: var(--neutral-foreground-hint);\n }\n\n rapid-button.header-btn::part(content) {\n color: var(--neutral-foreground-rest);\n }\n\n rapid-button.header-btn:hover {\n background: var(--neutral-fill-stealth-rest);\n color: var(--neutral-foreground-rest);\n }\n\n rapid-search-bar {\n width: 30%;\n }\n`"
4927
4782
  }
4928
4783
  ],
4929
4784
  "exports": [
4930
4785
  {
4931
4786
  "kind": "js",
4932
- "name": "cloneReportConfigModalStyles",
4787
+ "name": "ReportingConfigurationStyles",
4933
4788
  "declaration": {
4934
- "name": "cloneReportConfigModalStyles",
4935
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts"
4789
+ "name": "ReportingConfigurationStyles",
4790
+ "module": "src/new/components/reporting-configurations/reporting-configurations.styles.ts"
4936
4791
  }
4937
4792
  }
4938
4793
  ]
4939
4794
  },
4940
4795
  {
4941
4796
  "kind": "javascript-module",
4942
- "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts",
4797
+ "path": "src/new/components/reporting-configurations/reporting-configurations.template.ts",
4943
4798
  "declarations": [
4944
4799
  {
4945
4800
  "kind": "variable",
4946
- "name": "CloneReportConfigModalTemplate",
4947
- "default": "html<CloneReportConfigModal>`\n <rapid-modal\n ${ref('cloneReportConfigModal')}\n class=\"clone-report-config-modal\"\n :onCloseCallback=${(x) => x.closeCloneReportConfigModal()}\n >\n <div slot=\"top\" class=\"dialog-top\">\n ${(x) => (x.isImportMode ? 'Import Report Config' : 'Clone Report Config')}\n </div>\n <rapid-divider></rapid-divider>\n <div class=\"dialog-content\">\n <div class=\"help-text\">\n <p>\n ${(x) =>\n x.isImportMode\n ? 'Here you can import a report configuration from a file. You need to set a new report and filename as they must be unique.'\n : \"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.\"}\n </p>\n </div>\n <label class=\"label\">Report name${requiredTooltip}${tooltip(TOOLTIP.SETUP_NAME)}</label>\n <rapid-text-field\n :value=${sync((x) => x.reportName)}\n placeholder=\"Enter report name\"\n ></rapid-text-field>\n <label class=\"label\">File name${requiredTooltip}${tooltip(TOOLTIP.SETUP_FILENAME)}</label>\n <rapid-text-field\n :value=${sync((x) => x.fileName)}\n placeholder=\"Enter file name\"\n ></rapid-text-field>\n ${when(\n (x) => x.isImportMode && !!x.reportConfigDetails?.DOCUMENT_TEMPLATE_ID,\n html`\n ${fileTemplatePicker}\n <p style=\"max-width: 745px;\">\n Because the exported report requires a selected template you must select a valid\n template to import this configuration. If there isn't a valid template then you must\n upload one via the document manager component.\n </p>\n `,\n )}\n </div>\n <rapid-divider></rapid-divider>\n <div slot=\"bottom\" class=\"dialog-bottom\">\n <rapid-button @click=${(x) => x.discardChanges()}>Cancel</rapid-button>\n <rapid-button appearance=\"primary\" @click=${(x) => x.cloneReportConfig()}>\n ${(x) => (x.isImportMode ? 'Import' : 'Clone')}\n </rapid-button>\n </div>\n </rapid-modal>\n`"
4801
+ "name": "ReportingConfigurationsTemplate",
4802
+ "default": "html<ReportingConfigurations>`\n ${(x) => permissionTemplateGuard(x, Permissions.ReportConfigurationView, viewTemplate)}\n`"
4948
4803
  }
4949
4804
  ],
4950
4805
  "exports": [
4951
4806
  {
4952
4807
  "kind": "js",
4953
- "name": "CloneReportConfigModalTemplate",
4808
+ "name": "ReportingConfigurationsTemplate",
4954
4809
  "declaration": {
4955
- "name": "CloneReportConfigModalTemplate",
4956
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts"
4810
+ "name": "ReportingConfigurationsTemplate",
4811
+ "module": "src/new/components/reporting-configurations/reporting-configurations.template.ts"
4957
4812
  }
4958
4813
  }
4959
4814
  ]
4960
4815
  },
4961
4816
  {
4962
4817
  "kind": "javascript-module",
4963
- "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts",
4818
+ "path": "src/new/components/reporting-configurations/reporting-configurations.ts",
4964
4819
  "declarations": [
4965
4820
  {
4966
4821
  "kind": "class",
4967
- "description": "",
4968
- "name": "CloneReportConfigModal",
4822
+ "description": "Report configuration grid and toolbar actions.",
4823
+ "name": "ReportingConfigurations",
4969
4824
  "members": [
4970
4825
  {
4971
4826
  "kind": "field",
@@ -4976,21 +4831,14 @@
4976
4831
  },
4977
4832
  {
4978
4833
  "kind": "field",
4979
- "name": "cloneReportConfigModal",
4980
- "type": {
4981
- "text": "Modal"
4982
- }
4983
- },
4984
- {
4985
- "kind": "field",
4986
- "name": "reportConfigDetails",
4834
+ "name": "reportConfigurationsDatasource",
4987
4835
  "type": {
4988
- "text": "Genesis.ServerReportConfig"
4836
+ "text": "GridProGenesisDatasource"
4989
4837
  }
4990
4838
  },
4991
4839
  {
4992
4840
  "kind": "field",
4993
- "name": "reportName",
4841
+ "name": "gridCriteria",
4994
4842
  "type": {
4995
4843
  "text": "string"
4996
4844
  },
@@ -4998,350 +4846,531 @@
4998
4846
  },
4999
4847
  {
5000
4848
  "kind": "field",
5001
- "name": "fileName",
4849
+ "name": "cloneConfigModal",
5002
4850
  "type": {
5003
- "text": "string"
5004
- },
5005
- "default": "''"
4851
+ "text": "CloneReportConfigModal"
4852
+ }
5006
4853
  },
5007
4854
  {
5008
4855
  "kind": "field",
5009
- "name": "fileTemplates",
4856
+ "name": "importFileInput",
5010
4857
  "type": {
5011
- "text": "Array<Genesis.FileStorageDataRow>"
5012
- },
5013
- "default": "[]"
4858
+ "text": "HTMLInputElement"
4859
+ }
5014
4860
  },
5015
4861
  {
5016
4862
  "kind": "field",
5017
- "name": "allowedTemplates",
4863
+ "name": "user",
5018
4864
  "type": {
5019
- "text": "Array<Genesis.FileStorageDataRow>"
5020
- },
5021
- "default": "[]"
4865
+ "text": "User"
4866
+ }
5022
4867
  },
5023
4868
  {
5024
4869
  "kind": "field",
5025
- "name": "selectedTemplateId",
4870
+ "name": "searchBarConfig",
5026
4871
  "type": {
5027
- "text": "string"
4872
+ "text": "array"
5028
4873
  },
5029
- "default": "''"
4874
+ "privacy": "public",
4875
+ "default": "[\n {\n field: 'NAME',\n label: (searchTerm) => `${searchTerm} as NAME`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH && !selectedOption.some((e) => e.field === 'NAME')\n );\n },\n },\n ]"
5030
4876
  },
5031
4877
  {
5032
- "kind": "field",
5033
- "name": "isImportMode",
5034
- "type": {
5035
- "text": "boolean"
5036
- },
5037
- "default": "false"
4878
+ "kind": "method",
4879
+ "name": "createNewReportHandler"
5038
4880
  },
5039
4881
  {
5040
4882
  "kind": "method",
5041
- "name": "getReportConfigDetails",
4883
+ "name": "editReportConfigHandler",
5042
4884
  "parameters": [
5043
4885
  {
5044
- "name": "ID",
4886
+ "name": "{ NAME, ID }",
5045
4887
  "type": {
5046
- "text": "string"
4888
+ "text": "{ NAME: string; ID: string }"
5047
4889
  }
5048
4890
  }
5049
4891
  ]
5050
4892
  },
5051
4893
  {
5052
4894
  "kind": "method",
5053
- "name": "showReportConfigModal",
5054
- "parameters": [
5055
- {
5056
- "name": "ID",
5057
- "type": {
5058
- "text": "string"
5059
- }
5060
- }
5061
- ]
4895
+ "name": "getColumnDefs"
5062
4896
  },
5063
4897
  {
5064
4898
  "kind": "method",
5065
- "name": "showImportModal",
4899
+ "name": "getGridOptions"
4900
+ },
4901
+ {
4902
+ "kind": "method",
4903
+ "name": "deleteReportConfig",
4904
+ "privacy": "private",
5066
4905
  "parameters": [
5067
4906
  {
5068
- "name": "config",
5069
- "type": {
5070
- "text": "Genesis.ServerReportConfig"
5071
- }
4907
+ "name": "reportConfigId"
4908
+ },
4909
+ {
4910
+ "name": "reportName"
5072
4911
  }
5073
4912
  ]
5074
4913
  },
5075
4914
  {
5076
4915
  "kind": "method",
5077
- "name": "closeCloneReportConfigModal"
5078
- },
5079
- {
5080
- "kind": "method",
5081
- "name": "getFileTemplates",
5082
- "return": {
5083
- "type": {
5084
- "text": "Promise<void>"
4916
+ "name": "runReport",
4917
+ "privacy": "private",
4918
+ "parameters": [
4919
+ {
4920
+ "name": "reportConfigId"
4921
+ },
4922
+ {
4923
+ "name": "reportName"
5085
4924
  }
5086
- }
4925
+ ]
5087
4926
  },
5088
4927
  {
5089
4928
  "kind": "method",
5090
- "name": "getAllowedTemplates",
5091
- "return": {
5092
- "type": {
5093
- "text": "Array<Genesis.FileStorageDataRow>"
5094
- }
5095
- },
4929
+ "name": "searchChanged",
5096
4930
  "parameters": [
5097
4931
  {
5098
- "name": "outputFormat",
4932
+ "name": "event",
5099
4933
  "type": {
5100
- "text": "string"
4934
+ "text": "CustomEvent<Array<SelectedOption>>"
5101
4935
  }
5102
4936
  }
5103
4937
  ]
5104
4938
  },
5105
4939
  {
5106
4940
  "kind": "method",
5107
- "name": "handleTemplateSelectChange",
4941
+ "name": "openCloneReportConfigModal",
5108
4942
  "parameters": [
5109
4943
  {
5110
- "name": "selectInput",
5111
- "type": {
5112
- "text": "HTMLSelectElement"
5113
- }
4944
+ "name": "e"
5114
4945
  }
5115
4946
  ]
5116
4947
  },
5117
4948
  {
5118
4949
  "kind": "method",
5119
- "name": "discardChanges"
4950
+ "name": "importConfigHandler"
5120
4951
  },
5121
4952
  {
5122
4953
  "kind": "method",
5123
- "name": "filterFields",
5124
- "privacy": "private",
5125
- "return": {
5126
- "type": {
5127
- "text": "Partial<T>"
5128
- }
5129
- },
4954
+ "name": "handleFileImport",
5130
4955
  "parameters": [
5131
4956
  {
5132
- "name": "obj",
5133
- "type": {
5134
- "text": "T"
5135
- }
5136
- },
5137
- {
5138
- "name": "excludedFields",
4957
+ "name": "event",
5139
4958
  "type": {
5140
- "text": "readonly string[]"
4959
+ "text": "Event"
5141
4960
  }
5142
4961
  }
5143
4962
  ]
5144
4963
  },
5145
4964
  {
5146
4965
  "kind": "method",
5147
- "name": "cloneReportConfig"
5148
- },
5149
- {
5150
- "kind": "method",
5151
- "name": "showErrorToast",
4966
+ "name": "exportConfig",
5152
4967
  "parameters": [
5153
4968
  {
5154
- "name": "message",
4969
+ "name": "{ NAME, ID }",
5155
4970
  "type": {
5156
- "text": "string"
4971
+ "text": "{ NAME: string; ID: string }"
5157
4972
  }
5158
4973
  }
5159
4974
  ]
5160
4975
  }
5161
4976
  ],
5162
- "superclass": {
5163
- "name": "GenesisElement",
5164
- "package": "@genesislcap/web-core"
5165
- },
5166
- "tagName": "clone-report-config-modal",
5167
- "customElement": true
5168
- }
4977
+ "events": [
4978
+ {
4979
+ "description": "Fired to switch the report configuration display mode. detail: `'edit' | 'list'`",
4980
+ "name": "set-report-config-disp-mode"
4981
+ },
4982
+ {
4983
+ "name": "highlight-grid-row"
4984
+ }
4985
+ ],
4986
+ "mixins": [
4987
+ {
4988
+ "name": "EventEmitter",
4989
+ "package": "@genesislcap/foundation-events"
4990
+ }
4991
+ ],
4992
+ "superclass": {
4993
+ "name": "GenesisElement",
4994
+ "package": "@genesislcap/web-core"
4995
+ },
4996
+ "tagName": "reporting-configurations",
4997
+ "customElement": true
4998
+ }
5169
4999
  ],
5170
5000
  "exports": [
5171
5001
  {
5172
5002
  "kind": "js",
5173
- "name": "CloneReportConfigModal",
5003
+ "name": "ReportingConfigurations",
5174
5004
  "declaration": {
5175
- "name": "CloneReportConfigModal",
5176
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
5005
+ "name": "ReportingConfigurations",
5006
+ "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5177
5007
  }
5178
5008
  },
5179
5009
  {
5180
5010
  "kind": "custom-element-definition",
5181
- "name": "clone-report-config-modal",
5011
+ "name": "reporting-configurations",
5182
5012
  "declaration": {
5183
- "name": "CloneReportConfigModal",
5184
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
5013
+ "name": "ReportingConfigurations",
5014
+ "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5185
5015
  }
5186
5016
  }
5187
5017
  ]
5188
5018
  },
5189
5019
  {
5190
5020
  "kind": "javascript-module",
5191
- "path": "src/new/components/renderers/data-transform-renderer.ts",
5021
+ "path": "src/new/components/shared/file-template-picker.template.ts",
5022
+ "declarations": [
5023
+ {
5024
+ "kind": "variable",
5025
+ "name": "NULL_TEMPLATE",
5026
+ "type": {
5027
+ "text": "string"
5028
+ },
5029
+ "default": "'Select a template'"
5030
+ },
5031
+ {
5032
+ "kind": "variable",
5033
+ "name": "allowedTemplateFiletypes",
5034
+ "type": {
5035
+ "text": "Record<ReportOutputTypes, string[]>"
5036
+ },
5037
+ "default": "{\n CSV: ['csv', 'txt'],\n PDF: ['html', 'xhtml'],\n XLSX: ['xls', 'xlsx'],\n}"
5038
+ },
5039
+ {
5040
+ "kind": "variable",
5041
+ "name": "fileTemplatePicker",
5042
+ "default": "html<BaseConfig | CloneReportConfigModal>`\n <label class=\"label\">File template${tooltip(TOOLTIP.SETUP_FILE_TEMPLATE)}</label>\n ${repeat(\n (x) => (x.allowedTemplates?.length > 0 ? [x] : []),\n html<BaseConfig | CloneReportConfigModal>`\n <rapid-select\n data-test-id=\"config-document-template\"\n :value=${(x) => x.selectedTemplateId || NULL_TEMPLATE}\n @change=${(x, ctx) => x.handleTemplateSelectChange(ctx.event.target as HTMLSelectElement)}\n >\n <rapid-option value=${() => NULL_TEMPLATE}>${NULL_TEMPLATE}</rapid-option>\n ${repeat(\n (x) => x.allowedTemplates,\n html<Genesis.FileStorageDataRow>`\n <rapid-option value=\"${(x) => x[Genesis.FileStorageFields.FILE_STORAGE_ID]}\">\n ${(x) => x[Genesis.FileStorageFields.FILE_NAME]}\n </rapid-option>\n `,\n )}\n </rapid-select>\n `,\n { recycle: false },\n )}\n ${when(\n (x) => !x.allowedTemplates || x.allowedTemplates.length === 0,\n html`\n No valid templates available for this output format.\n `,\n )}\n`"
5043
+ }
5044
+ ],
5045
+ "exports": [
5046
+ {
5047
+ "kind": "js",
5048
+ "name": "NULL_TEMPLATE",
5049
+ "declaration": {
5050
+ "name": "NULL_TEMPLATE",
5051
+ "module": "src/new/components/shared/file-template-picker.template.ts"
5052
+ }
5053
+ },
5054
+ {
5055
+ "kind": "js",
5056
+ "name": "allowedTemplateFiletypes",
5057
+ "declaration": {
5058
+ "name": "allowedTemplateFiletypes",
5059
+ "module": "src/new/components/shared/file-template-picker.template.ts"
5060
+ }
5061
+ },
5062
+ {
5063
+ "kind": "js",
5064
+ "name": "fileTemplatePicker",
5065
+ "declaration": {
5066
+ "name": "fileTemplatePicker",
5067
+ "module": "src/new/components/shared/file-template-picker.template.ts"
5068
+ }
5069
+ }
5070
+ ]
5071
+ },
5072
+ {
5073
+ "kind": "javascript-module",
5074
+ "path": "src/new/lib/redux-store/index.ts",
5075
+ "declarations": [],
5076
+ "exports": [
5077
+ {
5078
+ "kind": "js",
5079
+ "name": "*",
5080
+ "declaration": {
5081
+ "name": "*",
5082
+ "package": "./store"
5083
+ }
5084
+ },
5085
+ {
5086
+ "kind": "js",
5087
+ "name": "*",
5088
+ "declaration": {
5089
+ "name": "*",
5090
+ "package": "./state-utils"
5091
+ }
5092
+ }
5093
+ ]
5094
+ },
5095
+ {
5096
+ "kind": "javascript-module",
5097
+ "path": "src/new/lib/redux-store/state-utils.ts",
5098
+ "declarations": [],
5099
+ "exports": [
5100
+ {
5101
+ "kind": "js",
5102
+ "name": "find",
5103
+ "declaration": {
5104
+ "name": "find",
5105
+ "package": "lodash"
5106
+ }
5107
+ },
5108
+ {
5109
+ "kind": "js",
5110
+ "name": "get",
5111
+ "declaration": {
5112
+ "name": "get",
5113
+ "package": "lodash"
5114
+ }
5115
+ },
5116
+ {
5117
+ "kind": "js",
5118
+ "name": "set",
5119
+ "declaration": {
5120
+ "name": "set",
5121
+ "package": "lodash"
5122
+ }
5123
+ },
5124
+ {
5125
+ "kind": "js",
5126
+ "name": "findIndex",
5127
+ "declaration": {
5128
+ "name": "findIndex",
5129
+ "package": "lodash"
5130
+ }
5131
+ }
5132
+ ]
5133
+ },
5134
+ {
5135
+ "kind": "javascript-module",
5136
+ "path": "src/new/lib/redux-store/store.ts",
5137
+ "declarations": [
5138
+ {
5139
+ "kind": "function",
5140
+ "name": "createStore",
5141
+ "return": {
5142
+ "type": {
5143
+ "text": "StoreReturn<S>"
5144
+ }
5145
+ },
5146
+ "parameters": [
5147
+ {
5148
+ "name": "slices",
5149
+ "type": {
5150
+ "text": "S"
5151
+ }
5152
+ },
5153
+ {
5154
+ "name": "preloadedState",
5155
+ "type": {
5156
+ "text": "RootStateFromSlices<S>"
5157
+ }
5158
+ }
5159
+ ]
5160
+ }
5161
+ ],
5162
+ "exports": [
5163
+ {
5164
+ "kind": "js",
5165
+ "name": "createSlice",
5166
+ "declaration": {
5167
+ "name": "createSlice",
5168
+ "package": "@reduxjs/toolkit"
5169
+ }
5170
+ },
5171
+ {
5172
+ "kind": "js",
5173
+ "name": "createStore",
5174
+ "declaration": {
5175
+ "name": "createStore",
5176
+ "module": "src/new/lib/redux-store/store.ts"
5177
+ }
5178
+ }
5179
+ ]
5180
+ },
5181
+ {
5182
+ "kind": "javascript-module",
5183
+ "path": "src/new/main/edit-config/config-journey-orchestrator.styles.ts",
5184
+ "declarations": [
5185
+ {
5186
+ "kind": "variable",
5187
+ "name": "styles",
5188
+ "default": "css`\n :host {\n --stepper-size: 50px;\n ${constrainedDimensions({ navToContentPx: 300 })}\n }\n\n div.pad {\n padding-top: 50px;\n }\n\n .centered {\n max-width: var(--constrained-width);\n max-height: calc(100vh - var(--reporting-header-to-content-height));\n width: 100%;\n margin: auto;\n }\n\n .scheduling-container {\n display: flex;\n height: 100%;\n }\n\n .scheduling-container-margin {\n margin: 0 auto;\n }\n\n .block {\n display: block;\n }\n\n datasource-config-container,\n base-config {\n overflow-y: auto;\n overflow-x: clip;\n min-height: var(--constrained-height);\n }\n\n div.button-container {\n z-index: 1 !important;\n position: absolute;\n top: calc(var(--stepper-size) + calc(var(--design-unit) * 3px));\n right: calc(var(--design-unit) * 3px);\n display: flex;\n align-content: center;\n align-items: center;\n gap: calc(var(--design-unit) * 3px);\n }\n\n tabbed-datasource-container,\n row-filters {\n max-width: var(--constrained-width);\n margin: auto;\n display: block;\n }\n\n rapid-stepper::part(action-buttons-container) {\n border-top: calc(var(--stroke-width) * 1px) solid\n color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);\n padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 4px);\n }\n\n rapid-stepper::part(stepper-tab-panel) {\n background: var(--app-bg-color);\n justify-content: space-between;\n border-bottom: calc(var(--stroke-width) * 1px) solid\n color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);\n }\n\n rapid-stepper::part(stepper-tab) {\n border-bottom: calc(var(--stroke-width) * 1px) solid\n color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);\n height: var(--stepper-size);\n }\n\n rapid-stepper::part(stepper-panel-container) {\n overflow: hidden;\n contain: size;\n }\n\n rapid-stepper.hidden::part(action-buttons-container) {\n display: none;\n }\n\n rapid-stepper::part(stepper-tab-menu) {\n margin: 0;\n gap: 0;\n }\n\n rapid-stepper::part(stepper-tab-progress) {\n background: var(--app-bg-color);\n justify-content: center;\n padding: 0;\n }\n\n /**\n * Hacky way for now - need to adjust it in foundation\n */\n rapid-stepper-tab {\n --neutral-layer-3: var(--app-bg-color);\n }\n\n :host(.readonly) rapid-stepper-tab-panel {\n pointer-events: none;\n }\n\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
5189
+ }
5190
+ ],
5191
+ "exports": [
5192
+ {
5193
+ "kind": "js",
5194
+ "name": "styles",
5195
+ "declaration": {
5196
+ "name": "styles",
5197
+ "module": "src/new/main/edit-config/config-journey-orchestrator.styles.ts"
5198
+ }
5199
+ }
5200
+ ]
5201
+ },
5202
+ {
5203
+ "kind": "javascript-module",
5204
+ "path": "src/new/main/edit-config/config-journey-orchestrator.template.ts",
5205
+ "declarations": [
5206
+ {
5207
+ "kind": "variable",
5208
+ "name": "template",
5209
+ "default": "html<ConfigJourneyOrchestrator>`\n <template class=\"${(x) => classNames(['readonly', !permissionGuard(x, editPermission)])}\">\n <div class=\"button-container\">\n ${(ctx) =>\n permissionTemplateGuard(\n ctx,\n editPermission,\n html<ConfigJourneyOrchestrator>`\n <rapid-button appearance=\"primary\" @click=${(x) => x.saveConfigHandler()}>\n Save and Close\n </rapid-button>\n `,\n html`\n <p>You have read-only permissions</p>\n `,\n )}\n <rapid-button @click=${(x) => x.showListViewHandler()}>\n ${(x) => (permissionGuard(x, editPermission) ? 'Discard Changes' : 'Close')}\n </rapid-button>\n </div>\n\n <rapid-stepper\n allow-backward-jumps\n allow-forward-jumps\n orientation=\"horizontal\"\n hide-submit-button\n hide-step-number\n :validation=${(x) => [\n { isValid: () => x.validateProjectSetup() },\n { isValid: () => x.validateDatasource() },\n ]}\n >\n <rapid-stepper-tab>Report Setup</rapid-stepper-tab>\n <rapid-stepper-tab>Add Datasources</rapid-stepper-tab>\n <rapid-stepper-tab>Row Filters</rapid-stepper-tab>\n <rapid-stepper-tab>Column Visibility</rapid-stepper-tab>\n <!--<rapid-stepper-tab>Transform & Derive Data</rapid-stepper-tab>-->\n <rapid-stepper-tab>Formatting</rapid-stepper-tab>\n <!--<rapid-stepper-tab>Sorting</rapid-stepper-tab>-->\n <rapid-stepper-tab>\n Column\n ${(_) => (selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID ? 'Aliases' : 'Renames')}\n </rapid-stepper-tab>\n <rapid-stepper-tab>Delivery</rapid-stepper-tab>\n\n <rapid-stepper-tab-panel>\n <div class=\"pad\">\n <base-config class=\"centered block\"></base-config>\n </div>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <div class=\"pad\">\n <datasource-config-container class=\"centered block\"></datasource-config-container>\n </div>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <row-filters-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></row-filters-tutorial>\n <row-filters></row-filters>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <col-filters-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></col-filters-tutorial>\n <col-filters></col-filters>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <data-transforms-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></data-transforms-tutorial>\n <data-transforms-derived-fields></row-transforms-derived-fields>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <!--\n <rapid-stepper-tab-panel>Transform Data Content Goes Here</rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>Sorting Content Goes Here</rapid-stepper-tab-panel>\n-->\n\n <rapid-stepper-tab-panel>\n <tabbed-datasource-container>\n <col-renames-aliases-tutorial\n slot=\"${(_) => TABBED_DATASOURCE_HEADER_SLOT}\"\n ></col-renames-aliases-tutorial>\n <col-rename-alias></col-rename-alias>\n </tabbed-datasource-container>\n </rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>\n <div class=\"scheduling-container pad\">\n <scheduling-config class=\"centered scheduling-container-margin\"></scheduling-config>\n </div>\n </rapid-stepper-tab-panel>\n\n <!--\n\n\n <rapid-stepper-tab-panel>Destinations Content Goes Here</rapid-stepper-tab-panel>\n\n <rapid-stepper-tab-panel>Summary Content Goes Here</rapid-stepper-tab-panel>\n-->\n </rapid-stepper>\n </template>\n`"
5210
+ }
5211
+ ],
5212
+ "exports": [
5213
+ {
5214
+ "kind": "js",
5215
+ "name": "template",
5216
+ "declaration": {
5217
+ "name": "template",
5218
+ "module": "src/new/main/edit-config/config-journey-orchestrator.template.ts"
5219
+ }
5220
+ }
5221
+ ]
5222
+ },
5223
+ {
5224
+ "kind": "javascript-module",
5225
+ "path": "src/new/main/edit-config/config-journey-orchestrator.ts",
5192
5226
  "declarations": [
5193
5227
  {
5194
5228
  "kind": "class",
5195
- "description": "",
5196
- "name": "DataTransformRenderer",
5229
+ "description": "Orchestrates validate/save/discard for report config editing.",
5230
+ "name": "ConfigJourneyOrchestrator",
5197
5231
  "members": [
5198
5232
  {
5199
5233
  "kind": "field",
5200
- "name": "params",
5234
+ "name": "connect",
5201
5235
  "type": {
5202
- "text": "DataTransformRendererParams"
5203
- },
5204
- "privacy": "public"
5236
+ "text": "Connect"
5237
+ }
5205
5238
  },
5206
5239
  {
5207
5240
  "kind": "field",
5208
- "name": "value",
5241
+ "name": "user",
5209
5242
  "type": {
5210
- "text": "ExpressionBuilderTypes.ValueConfig"
5211
- },
5212
- "privacy": "public"
5243
+ "text": "User"
5244
+ }
5213
5245
  },
5214
5246
  {
5215
5247
  "kind": "field",
5216
- "name": "modal",
5217
- "type": {
5218
- "text": "Modal"
5219
- }
5248
+ "name": "validateConfig",
5249
+ "privacy": "private"
5220
5250
  },
5221
5251
  {
5222
5252
  "kind": "method",
5223
- "name": "init",
5224
- "privacy": "public",
5225
- "parameters": [
5226
- {
5227
- "name": "params",
5228
- "type": {
5229
- "text": "DataTransformRendererParams"
5230
- }
5231
- }
5232
- ]
5253
+ "name": "showListViewHandler"
5233
5254
  },
5234
5255
  {
5235
5256
  "kind": "method",
5236
- "name": "getGui",
5237
- "privacy": "public",
5238
- "return": {
5239
- "type": {
5240
- "text": "HTMLElement"
5241
- }
5242
- }
5257
+ "name": "validateProjectSetup"
5243
5258
  },
5244
5259
  {
5245
5260
  "kind": "method",
5246
- "name": "refresh",
5247
- "privacy": "public",
5248
- "return": {
5249
- "type": {
5250
- "text": "boolean"
5251
- }
5252
- },
5261
+ "name": "validateDatasource"
5262
+ },
5263
+ {
5264
+ "kind": "method",
5265
+ "name": "saveConfigHandler"
5266
+ },
5267
+ {
5268
+ "kind": "method",
5269
+ "name": "displayError",
5270
+ "privacy": "private",
5253
5271
  "parameters": [
5254
5272
  {
5255
- "name": "params",
5273
+ "name": "e",
5256
5274
  "type": {
5257
- "text": "DataTransformRendererParams"
5275
+ "text": "Error"
5258
5276
  }
5277
+ },
5278
+ {
5279
+ "name": "expose",
5280
+ "default": "false"
5259
5281
  }
5260
5282
  ]
5261
- },
5283
+ }
5284
+ ],
5285
+ "events": [
5262
5286
  {
5263
- "kind": "field",
5264
- "name": "changeHandler",
5265
- "privacy": "public"
5287
+ "description": "Fired to switch the report configuration display mode. detail: `'edit' | 'list'`",
5288
+ "name": "set-report-config-disp-mode"
5289
+ }
5290
+ ],
5291
+ "mixins": [
5292
+ {
5293
+ "name": "EventEmitter",
5294
+ "package": "@genesislcap/foundation-events"
5266
5295
  }
5267
5296
  ],
5268
5297
  "superclass": {
5269
5298
  "name": "GenesisElement",
5270
5299
  "package": "@genesislcap/web-core"
5271
5300
  },
5272
- "tagName": "data-transform-cell-renderer",
5301
+ "tagName": "config-journey-orchestrator",
5273
5302
  "customElement": true
5274
5303
  }
5275
5304
  ],
5276
5305
  "exports": [
5277
5306
  {
5278
5307
  "kind": "js",
5279
- "name": "DataTransformRenderer",
5308
+ "name": "ConfigJourneyOrchestrator",
5280
5309
  "declaration": {
5281
- "name": "DataTransformRenderer",
5282
- "module": "src/new/components/renderers/data-transform-renderer.ts"
5310
+ "name": "ConfigJourneyOrchestrator",
5311
+ "module": "src/new/main/edit-config/config-journey-orchestrator.ts"
5283
5312
  }
5284
5313
  },
5285
5314
  {
5286
5315
  "kind": "custom-element-definition",
5287
- "name": "data-transform-cell-renderer",
5288
- "declaration": {
5289
- "name": "DataTransformRenderer",
5290
- "module": "src/new/components/renderers/data-transform-renderer.ts"
5316
+ "name": "config-journey-orchestrator",
5317
+ "declaration": {
5318
+ "name": "ConfigJourneyOrchestrator",
5319
+ "module": "src/new/main/edit-config/config-journey-orchestrator.ts"
5291
5320
  }
5292
5321
  }
5293
5322
  ]
5294
5323
  },
5295
5324
  {
5296
5325
  "kind": "javascript-module",
5297
- "path": "src/new/components/reporting-configurations/reporting-configurations.styles.ts",
5326
+ "path": "src/new/main/generated-reports/generated-reports.styles.ts",
5298
5327
  "declarations": [
5299
5328
  {
5300
5329
  "kind": "variable",
5301
- "name": "ReportingConfigurationStyles",
5302
- "default": "css`\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .header-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);\n gap: calc(var(--design-unit) * 4px);\n border-bottom: 1px solid var(--neutral-fill-rest);\n }\n\n .header-buttons {\n display: flex;\n align-items: center;\n }\n\n rapid-button.header-btn {\n background: transparent;\n color: var(--neutral-foreground-hint);\n }\n\n rapid-button.header-btn::part(content) {\n color: var(--neutral-foreground-rest);\n }\n\n rapid-button.header-btn:hover {\n background: var(--neutral-fill-stealth-rest);\n color: var(--neutral-foreground-rest);\n }\n\n rapid-search-bar {\n width: 30%;\n }\n`"
5330
+ "name": "GeneratedReportsStyles",
5331
+ "default": "css`\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .container {\n padding: calc(var(--design-unit) * 4px);\n width: 40%;\n }\n`"
5303
5332
  }
5304
5333
  ],
5305
5334
  "exports": [
5306
5335
  {
5307
5336
  "kind": "js",
5308
- "name": "ReportingConfigurationStyles",
5337
+ "name": "GeneratedReportsStyles",
5309
5338
  "declaration": {
5310
- "name": "ReportingConfigurationStyles",
5311
- "module": "src/new/components/reporting-configurations/reporting-configurations.styles.ts"
5339
+ "name": "GeneratedReportsStyles",
5340
+ "module": "src/new/main/generated-reports/generated-reports.styles.ts"
5312
5341
  }
5313
5342
  }
5314
5343
  ]
5315
5344
  },
5316
5345
  {
5317
5346
  "kind": "javascript-module",
5318
- "path": "src/new/components/reporting-configurations/reporting-configurations.template.ts",
5347
+ "path": "src/new/main/generated-reports/generated-reports.template.ts",
5319
5348
  "declarations": [
5320
5349
  {
5321
5350
  "kind": "variable",
5322
- "name": "ReportingConfigurationsTemplate",
5323
- "default": "html<ReportingConfigurations>`\n ${(x) => permissionTemplateGuard(x, Permissions.ReportConfigurationView, viewTemplate)}\n`"
5351
+ "name": "GeneratedReportsTemplate",
5352
+ "default": "html<GeneratedReports>`\n ${(x) =>\n permissionTemplateGuard(x, [Permissions.ReportView, Permissions.ReportRun], viewTemplate)}\n`"
5324
5353
  }
5325
5354
  ],
5326
5355
  "exports": [
5327
5356
  {
5328
5357
  "kind": "js",
5329
- "name": "ReportingConfigurationsTemplate",
5358
+ "name": "GeneratedReportsTemplate",
5330
5359
  "declaration": {
5331
- "name": "ReportingConfigurationsTemplate",
5332
- "module": "src/new/components/reporting-configurations/reporting-configurations.template.ts"
5360
+ "name": "GeneratedReportsTemplate",
5361
+ "module": "src/new/main/generated-reports/generated-reports.template.ts"
5333
5362
  }
5334
5363
  }
5335
5364
  ]
5336
5365
  },
5337
5366
  {
5338
5367
  "kind": "javascript-module",
5339
- "path": "src/new/components/reporting-configurations/reporting-configurations.ts",
5368
+ "path": "src/new/main/generated-reports/generated-reports.ts",
5340
5369
  "declarations": [
5341
5370
  {
5342
5371
  "kind": "class",
5343
- "description": "Report configuration grid and toolbar actions.",
5344
- "name": "ReportingConfigurations",
5372
+ "description": "",
5373
+ "name": "GeneratedReports",
5345
5374
  "members": [
5346
5375
  {
5347
5376
  "kind": "field",
@@ -5352,32 +5381,25 @@
5352
5381
  },
5353
5382
  {
5354
5383
  "kind": "field",
5355
- "name": "reportConfigurationsDatasource",
5384
+ "name": "generatedReportsDatasource",
5356
5385
  "type": {
5357
5386
  "text": "GridProGenesisDatasource"
5358
5387
  }
5359
5388
  },
5360
5389
  {
5361
5390
  "kind": "field",
5362
- "name": "gridCriteria",
5363
- "type": {
5364
- "text": "string"
5365
- },
5366
- "default": "''"
5367
- },
5368
- {
5369
- "kind": "field",
5370
- "name": "cloneConfigModal",
5391
+ "name": "generatedReportId",
5371
5392
  "type": {
5372
- "text": "CloneReportConfigModal"
5393
+ "text": "string | null"
5373
5394
  }
5374
5395
  },
5375
5396
  {
5376
5397
  "kind": "field",
5377
- "name": "importFileInput",
5398
+ "name": "gridCriteria",
5378
5399
  "type": {
5379
- "text": "HTMLInputElement"
5380
- }
5400
+ "text": "string"
5401
+ },
5402
+ "default": "''"
5381
5403
  },
5382
5404
  {
5383
5405
  "kind": "field",
@@ -5393,23 +5415,15 @@
5393
5415
  "text": "array"
5394
5416
  },
5395
5417
  "privacy": "public",
5396
- "default": "[\n {\n field: 'NAME',\n label: (searchTerm) => `${searchTerm} as NAME`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH && !selectedOption.some((e) => e.field === 'NAME')\n );\n },\n },\n ]"
5418
+ "default": "[\n {\n field: 'NAME',\n label: (searchTerm) => `${searchTerm} as NAME`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH && !selectedOption.some((e) => e.field === 'NAME')\n );\n },\n },\n {\n field: 'FILE_NAME',\n label: (searchTerm) => `${searchTerm} as FILE_NAME`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH &&\n !selectedOption.some((e) => e.field === 'FILE_NAME')\n );\n },\n },\n {\n field: 'STATUS',\n label: (searchTerm) => `${searchTerm} as STATUS`,\n createCriteria: getCriteriaBuilder,\n isEnabled: (searchTerm, selectedOption) => {\n return (\n searchTerm.length >= INPUT_MIN_LENGTH && !selectedOption.some((e) => e.field === 'STATUS')\n );\n },\n },\n ]"
5397
5419
  },
5398
5420
  {
5399
- "kind": "method",
5400
- "name": "createNewReportHandler"
5421
+ "kind": "field",
5422
+ "name": "getColor"
5401
5423
  },
5402
5424
  {
5403
- "kind": "method",
5404
- "name": "editReportConfigHandler",
5405
- "parameters": [
5406
- {
5407
- "name": "{ NAME, ID }",
5408
- "type": {
5409
- "text": "{ NAME: string; ID: string }"
5410
- }
5411
- }
5412
- ]
5425
+ "kind": "field",
5426
+ "name": "getStatusRenderer"
5413
5427
  },
5414
5428
  {
5415
5429
  "kind": "method",
@@ -5421,27 +5435,24 @@
5421
5435
  },
5422
5436
  {
5423
5437
  "kind": "method",
5424
- "name": "deleteReportConfig",
5438
+ "name": "downloadReport",
5425
5439
  "privacy": "private",
5426
5440
  "parameters": [
5427
5441
  {
5428
- "name": "reportConfigId"
5429
- },
5430
- {
5431
- "name": "reportName"
5442
+ "name": "fileStorageId",
5443
+ "type": {
5444
+ "text": "string"
5445
+ }
5432
5446
  }
5433
5447
  ]
5434
5448
  },
5435
5449
  {
5436
5450
  "kind": "method",
5437
- "name": "runReport",
5451
+ "name": "deleteReport",
5438
5452
  "privacy": "private",
5439
5453
  "parameters": [
5440
5454
  {
5441
- "name": "reportConfigId"
5442
- },
5443
- {
5444
- "name": "reportName"
5455
+ "name": "generatedReportId"
5445
5456
  }
5446
5457
  ]
5447
5458
  },
@@ -5456,136 +5467,125 @@
5456
5467
  }
5457
5468
  }
5458
5469
  ]
5459
- },
5460
- {
5461
- "kind": "method",
5462
- "name": "openCloneReportConfigModal",
5463
- "parameters": [
5464
- {
5465
- "name": "e"
5466
- }
5467
- ]
5468
- },
5469
- {
5470
- "kind": "method",
5471
- "name": "importConfigHandler"
5472
- },
5473
- {
5474
- "kind": "method",
5475
- "name": "handleFileImport",
5476
- "parameters": [
5477
- {
5478
- "name": "event",
5479
- "type": {
5480
- "text": "Event"
5481
- }
5482
- }
5483
- ]
5484
- },
5485
- {
5486
- "kind": "method",
5487
- "name": "exportConfig",
5488
- "parameters": [
5489
- {
5490
- "name": "{ NAME, ID }",
5491
- "type": {
5492
- "text": "{ NAME: string; ID: string }"
5493
- }
5494
- }
5495
- ]
5496
- }
5497
- ],
5498
- "events": [
5499
- {
5500
- "description": "Fired to switch the report configuration display mode. detail: `'edit' | 'list'`",
5501
- "name": "set-report-config-disp-mode"
5502
- },
5503
- {
5504
- "name": "highlight-grid-row"
5505
- }
5506
- ],
5507
- "mixins": [
5508
- {
5509
- "name": "EventEmitter",
5510
- "package": "@genesislcap/foundation-events"
5511
5470
  }
5512
5471
  ],
5513
5472
  "superclass": {
5514
5473
  "name": "GenesisElement",
5515
5474
  "package": "@genesislcap/web-core"
5516
5475
  },
5517
- "tagName": "reporting-configurations",
5476
+ "tagName": "generated-reports",
5518
5477
  "customElement": true
5519
5478
  }
5520
5479
  ],
5521
5480
  "exports": [
5522
5481
  {
5523
5482
  "kind": "js",
5524
- "name": "ReportingConfigurations",
5483
+ "name": "GeneratedReports",
5525
5484
  "declaration": {
5526
- "name": "ReportingConfigurations",
5527
- "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5485
+ "name": "GeneratedReports",
5486
+ "module": "src/new/main/generated-reports/generated-reports.ts"
5528
5487
  }
5529
5488
  },
5530
5489
  {
5531
5490
  "kind": "custom-element-definition",
5532
- "name": "reporting-configurations",
5491
+ "name": "generated-reports",
5533
5492
  "declaration": {
5534
- "name": "ReportingConfigurations",
5535
- "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5493
+ "name": "GeneratedReports",
5494
+ "module": "src/new/main/generated-reports/generated-reports.ts"
5536
5495
  }
5537
5496
  }
5538
5497
  ]
5539
5498
  },
5540
5499
  {
5541
5500
  "kind": "javascript-module",
5542
- "path": "src/new/components/shared/file-template-picker.template.ts",
5501
+ "path": "src/new/main/report-destinations/report-destinations.template.ts",
5543
5502
  "declarations": [
5544
5503
  {
5545
5504
  "kind": "variable",
5546
- "name": "NULL_TEMPLATE",
5547
- "type": {
5548
- "text": "string"
5549
- },
5550
- "default": "'Select a template'"
5551
- },
5552
- {
5553
- "kind": "variable",
5554
- "name": "allowedTemplateFiletypes",
5555
- "type": {
5556
- "text": "Record<ReportOutputTypes, string[]>"
5557
- },
5558
- "default": "{\n CSV: ['csv', 'txt'],\n PDF: ['html', 'xhtml'],\n XLSX: ['xls', 'xlsx'],\n}"
5559
- },
5560
- {
5561
- "kind": "variable",
5562
- "name": "fileTemplatePicker",
5563
- "default": "html<BaseConfig | CloneReportConfigModal>`\n <label class=\"label\">File template${tooltip(TOOLTIP.SETUP_FILE_TEMPLATE)}</label>\n ${repeat(\n (x) => (x.allowedTemplates?.length > 0 ? [x] : []),\n html<BaseConfig | CloneReportConfigModal>`\n <rapid-select\n data-test-id=\"config-document-template\"\n :value=${(x) => x.selectedTemplateId || NULL_TEMPLATE}\n @change=${(x, ctx) => x.handleTemplateSelectChange(ctx.event.target as HTMLSelectElement)}\n >\n <rapid-option value=${() => NULL_TEMPLATE}>${NULL_TEMPLATE}</rapid-option>\n ${repeat(\n (x) => x.allowedTemplates,\n html<Genesis.FileStorageDataRow>`\n <rapid-option value=\"${(x) => x[Genesis.FileStorageFields.FILE_STORAGE_ID]}\">\n ${(x) => x[Genesis.FileStorageFields.FILE_NAME]}\n </rapid-option>\n `,\n )}\n </rapid-select>\n `,\n { recycle: false },\n )}\n ${when(\n (x) => !x.allowedTemplates || x.allowedTemplates.length === 0,\n html`\n No valid templates available for this output format.\n `,\n )}\n`"
5505
+ "name": "template",
5506
+ "default": "html<ReportDestinations>`\n ${(x) => permissionTemplateGuard(x, Permissions.ReportDestinationView, viewTemplate)}\n`"
5564
5507
  }
5565
5508
  ],
5566
5509
  "exports": [
5567
5510
  {
5568
5511
  "kind": "js",
5569
- "name": "NULL_TEMPLATE",
5512
+ "name": "template",
5570
5513
  "declaration": {
5571
- "name": "NULL_TEMPLATE",
5572
- "module": "src/new/components/shared/file-template-picker.template.ts"
5514
+ "name": "template",
5515
+ "module": "src/new/main/report-destinations/report-destinations.template.ts"
5573
5516
  }
5574
- },
5517
+ }
5518
+ ]
5519
+ },
5520
+ {
5521
+ "kind": "javascript-module",
5522
+ "path": "src/new/main/report-destinations/report-destinations.ts",
5523
+ "declarations": [
5524
+ {
5525
+ "kind": "class",
5526
+ "description": "",
5527
+ "name": "ReportDestinations",
5528
+ "members": [
5529
+ {
5530
+ "kind": "field",
5531
+ "name": "connect",
5532
+ "type": {
5533
+ "text": "Connect"
5534
+ },
5535
+ "privacy": "private"
5536
+ },
5537
+ {
5538
+ "kind": "field",
5539
+ "name": "topics",
5540
+ "type": {
5541
+ "text": "string[]"
5542
+ },
5543
+ "default": "[]"
5544
+ },
5545
+ {
5546
+ "kind": "field",
5547
+ "name": "user",
5548
+ "type": {
5549
+ "text": "User"
5550
+ }
5551
+ },
5552
+ {
5553
+ "kind": "field",
5554
+ "name": "getUISchema",
5555
+ "type": {
5556
+ "text": "UiSchema"
5557
+ },
5558
+ "readonly": true
5559
+ },
5560
+ {
5561
+ "kind": "method",
5562
+ "name": "setNotifyRouteTopics",
5563
+ "privacy": "public"
5564
+ }
5565
+ ],
5566
+ "superclass": {
5567
+ "name": "GenesisElement",
5568
+ "package": "@genesislcap/web-core"
5569
+ },
5570
+ "tagName": "report-destinations",
5571
+ "customElement": true
5572
+ }
5573
+ ],
5574
+ "exports": [
5575
5575
  {
5576
5576
  "kind": "js",
5577
- "name": "allowedTemplateFiletypes",
5577
+ "name": "ReportDestinations",
5578
5578
  "declaration": {
5579
- "name": "allowedTemplateFiletypes",
5580
- "module": "src/new/components/shared/file-template-picker.template.ts"
5579
+ "name": "ReportDestinations",
5580
+ "module": "src/new/main/report-destinations/report-destinations.ts"
5581
5581
  }
5582
5582
  },
5583
5583
  {
5584
- "kind": "js",
5585
- "name": "fileTemplatePicker",
5584
+ "kind": "custom-element-definition",
5585
+ "name": "report-destinations",
5586
5586
  "declaration": {
5587
- "name": "fileTemplatePicker",
5588
- "module": "src/new/components/shared/file-template-picker.template.ts"
5587
+ "name": "ReportDestinations",
5588
+ "module": "src/new/main/report-destinations/report-destinations.ts"
5589
5589
  }
5590
5590
  }
5591
5591
  ]