@genesislcap/pbc-reporting-ui 15.15.1 → 15.15.2

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,27 +130,6 @@
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
- },
154
133
  {
155
134
  "kind": "javascript-module",
156
135
  "path": "src/new/main/index.ts",
@@ -1345,6 +1324,27 @@
1345
1324
  "declarations": [],
1346
1325
  "exports": []
1347
1326
  },
1327
+ {
1328
+ "kind": "javascript-module",
1329
+ "path": "src/new/components/components.ts",
1330
+ "declarations": [
1331
+ {
1332
+ "kind": "function",
1333
+ "name": "registerCommonRapidComponents",
1334
+ "privacy": "public"
1335
+ }
1336
+ ],
1337
+ "exports": [
1338
+ {
1339
+ "kind": "js",
1340
+ "name": "registerCommonRapidComponents",
1341
+ "declaration": {
1342
+ "name": "registerCommonRapidComponents",
1343
+ "module": "src/new/components/components.ts"
1344
+ }
1345
+ }
1346
+ ]
1347
+ },
1348
1348
  {
1349
1349
  "kind": "javascript-module",
1350
1350
  "path": "src/new/utils/alias-generator.ts",
@@ -4397,54 +4397,163 @@
4397
4397
  },
4398
4398
  {
4399
4399
  "kind": "javascript-module",
4400
- "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts",
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",
4401
4510
  "declarations": [
4402
4511
  {
4403
4512
  "kind": "variable",
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`"
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`"
4406
4515
  }
4407
4516
  ],
4408
4517
  "exports": [
4409
4518
  {
4410
4519
  "kind": "js",
4411
- "name": "cloneReportConfigModalStyles",
4520
+ "name": "styles",
4412
4521
  "declaration": {
4413
- "name": "cloneReportConfigModalStyles",
4414
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts"
4522
+ "name": "styles",
4523
+ "module": "src/new/main/edit-config/config-journey-orchestrator.styles.ts"
4415
4524
  }
4416
4525
  }
4417
4526
  ]
4418
4527
  },
4419
4528
  {
4420
4529
  "kind": "javascript-module",
4421
- "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts",
4530
+ "path": "src/new/main/edit-config/config-journey-orchestrator.template.ts",
4422
4531
  "declarations": [
4423
4532
  {
4424
4533
  "kind": "variable",
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`"
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`"
4427
4536
  }
4428
4537
  ],
4429
4538
  "exports": [
4430
4539
  {
4431
4540
  "kind": "js",
4432
- "name": "CloneReportConfigModalTemplate",
4541
+ "name": "template",
4433
4542
  "declaration": {
4434
- "name": "CloneReportConfigModalTemplate",
4435
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts"
4543
+ "name": "template",
4544
+ "module": "src/new/main/edit-config/config-journey-orchestrator.template.ts"
4436
4545
  }
4437
4546
  }
4438
4547
  ]
4439
4548
  },
4440
4549
  {
4441
4550
  "kind": "javascript-module",
4442
- "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts",
4551
+ "path": "src/new/main/edit-config/config-journey-orchestrator.ts",
4443
4552
  "declarations": [
4444
4553
  {
4445
4554
  "kind": "class",
4446
- "description": "",
4447
- "name": "CloneReportConfigModal",
4555
+ "description": "Orchestrates validate/save/discard for report config editing.",
4556
+ "name": "ConfigJourneyOrchestrator",
4448
4557
  "members": [
4449
4558
  {
4450
4559
  "kind": "field",
@@ -4455,184 +4564,232 @@
4455
4564
  },
4456
4565
  {
4457
4566
  "kind": "field",
4458
- "name": "cloneReportConfigModal",
4459
- "type": {
4460
- "text": "Modal"
4461
- }
4462
- },
4463
- {
4464
- "kind": "field",
4465
- "name": "reportConfigDetails",
4567
+ "name": "user",
4466
4568
  "type": {
4467
- "text": "Genesis.ServerReportConfig"
4569
+ "text": "User"
4468
4570
  }
4469
4571
  },
4470
4572
  {
4471
4573
  "kind": "field",
4472
- "name": "reportName",
4473
- "type": {
4474
- "text": "string"
4475
- },
4476
- "default": "''"
4477
- },
4478
- {
4479
- "kind": "field",
4480
- "name": "fileName",
4481
- "type": {
4482
- "text": "string"
4483
- },
4484
- "default": "''"
4574
+ "name": "validateConfig",
4575
+ "privacy": "private"
4485
4576
  },
4486
4577
  {
4487
- "kind": "field",
4488
- "name": "fileTemplates",
4489
- "type": {
4490
- "text": "Array<Genesis.FileStorageDataRow>"
4491
- },
4492
- "default": "[]"
4578
+ "kind": "method",
4579
+ "name": "showListViewHandler"
4493
4580
  },
4494
4581
  {
4495
- "kind": "field",
4496
- "name": "allowedTemplates",
4497
- "type": {
4498
- "text": "Array<Genesis.FileStorageDataRow>"
4499
- },
4500
- "default": "[]"
4582
+ "kind": "method",
4583
+ "name": "validateProjectSetup"
4501
4584
  },
4502
4585
  {
4503
- "kind": "field",
4504
- "name": "selectedTemplateId",
4505
- "type": {
4506
- "text": "string"
4507
- },
4508
- "default": "''"
4586
+ "kind": "method",
4587
+ "name": "validateDatasource"
4509
4588
  },
4510
4589
  {
4511
- "kind": "field",
4512
- "name": "isImportMode",
4513
- "type": {
4514
- "text": "boolean"
4515
- },
4516
- "default": "false"
4590
+ "kind": "method",
4591
+ "name": "saveConfigHandler"
4517
4592
  },
4518
4593
  {
4519
4594
  "kind": "method",
4520
- "name": "getReportConfigDetails",
4595
+ "name": "displayError",
4596
+ "privacy": "private",
4521
4597
  "parameters": [
4522
4598
  {
4523
- "name": "ID",
4599
+ "name": "e",
4524
4600
  "type": {
4525
- "text": "string"
4601
+ "text": "Error"
4526
4602
  }
4603
+ },
4604
+ {
4605
+ "name": "expose",
4606
+ "default": "false"
4527
4607
  }
4528
4608
  ]
4529
- },
4609
+ }
4610
+ ],
4611
+ "events": [
4530
4612
  {
4531
- "kind": "method",
4532
- "name": "showReportConfigModal",
4533
- "parameters": [
4534
- {
4535
- "name": "ID",
4536
- "type": {
4537
- "text": "string"
4538
- }
4539
- }
4540
- ]
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
+ }
4541
4707
  },
4542
4708
  {
4543
- "kind": "method",
4544
- "name": "showImportModal",
4545
- "parameters": [
4546
- {
4547
- "name": "config",
4548
- "type": {
4549
- "text": "Genesis.ServerReportConfig"
4550
- }
4551
- }
4552
- ]
4709
+ "kind": "field",
4710
+ "name": "generatedReportsDatasource",
4711
+ "type": {
4712
+ "text": "GridProGenesisDatasource"
4713
+ }
4553
4714
  },
4554
4715
  {
4555
- "kind": "method",
4556
- "name": "closeCloneReportConfigModal"
4716
+ "kind": "field",
4717
+ "name": "generatedReportId",
4718
+ "type": {
4719
+ "text": "string | null"
4720
+ }
4557
4721
  },
4558
4722
  {
4559
- "kind": "method",
4560
- "name": "getFileTemplates",
4561
- "return": {
4562
- "type": {
4563
- "text": "Promise<void>"
4564
- }
4723
+ "kind": "field",
4724
+ "name": "gridCriteria",
4725
+ "type": {
4726
+ "text": "string"
4727
+ },
4728
+ "default": "''"
4729
+ },
4730
+ {
4731
+ "kind": "field",
4732
+ "name": "user",
4733
+ "type": {
4734
+ "text": "User"
4565
4735
  }
4566
4736
  },
4567
4737
  {
4568
- "kind": "method",
4569
- "name": "getAllowedTemplates",
4570
- "return": {
4571
- "type": {
4572
- "text": "Array<Genesis.FileStorageDataRow>"
4573
- }
4738
+ "kind": "field",
4739
+ "name": "searchBarConfig",
4740
+ "type": {
4741
+ "text": "array"
4574
4742
  },
4575
- "parameters": [
4576
- {
4577
- "name": "outputFormat",
4578
- "type": {
4579
- "text": "string"
4580
- }
4581
- }
4582
- ]
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"
4583
4753
  },
4584
4754
  {
4585
4755
  "kind": "method",
4586
- "name": "handleTemplateSelectChange",
4587
- "parameters": [
4588
- {
4589
- "name": "selectInput",
4590
- "type": {
4591
- "text": "HTMLSelectElement"
4592
- }
4593
- }
4594
- ]
4756
+ "name": "getColumnDefs"
4595
4757
  },
4596
4758
  {
4597
4759
  "kind": "method",
4598
- "name": "discardChanges"
4760
+ "name": "getGridOptions"
4599
4761
  },
4600
4762
  {
4601
4763
  "kind": "method",
4602
- "name": "filterFields",
4764
+ "name": "downloadReport",
4603
4765
  "privacy": "private",
4604
- "return": {
4605
- "type": {
4606
- "text": "Partial<T>"
4607
- }
4608
- },
4609
4766
  "parameters": [
4610
4767
  {
4611
- "name": "obj",
4612
- "type": {
4613
- "text": "T"
4614
- }
4615
- },
4616
- {
4617
- "name": "excludedFields",
4768
+ "name": "fileStorageId",
4618
4769
  "type": {
4619
- "text": "readonly string[]"
4770
+ "text": "string"
4620
4771
  }
4621
4772
  }
4622
4773
  ]
4623
4774
  },
4624
4775
  {
4625
4776
  "kind": "method",
4626
- "name": "cloneReportConfig"
4777
+ "name": "deleteReport",
4778
+ "privacy": "private",
4779
+ "parameters": [
4780
+ {
4781
+ "name": "generatedReportId"
4782
+ }
4783
+ ]
4627
4784
  },
4628
4785
  {
4629
4786
  "kind": "method",
4630
- "name": "showErrorToast",
4787
+ "name": "searchChanged",
4631
4788
  "parameters": [
4632
4789
  {
4633
- "name": "message",
4790
+ "name": "event",
4634
4791
  "type": {
4635
- "text": "string"
4792
+ "text": "CustomEvent<Array<SelectedOption>>"
4636
4793
  }
4637
4794
  }
4638
4795
  ]
@@ -4642,105 +4799,93 @@
4642
4799
  "name": "GenesisElement",
4643
4800
  "package": "@genesislcap/web-core"
4644
4801
  },
4645
- "tagName": "clone-report-config-modal",
4802
+ "tagName": "generated-reports",
4646
4803
  "customElement": true
4647
4804
  }
4648
4805
  ],
4649
4806
  "exports": [
4650
4807
  {
4651
4808
  "kind": "js",
4652
- "name": "CloneReportConfigModal",
4809
+ "name": "GeneratedReports",
4653
4810
  "declaration": {
4654
- "name": "CloneReportConfigModal",
4655
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
4811
+ "name": "GeneratedReports",
4812
+ "module": "src/new/main/generated-reports/generated-reports.ts"
4656
4813
  }
4657
4814
  },
4658
4815
  {
4659
4816
  "kind": "custom-element-definition",
4660
- "name": "clone-report-config-modal",
4817
+ "name": "generated-reports",
4661
4818
  "declaration": {
4662
- "name": "CloneReportConfigModal",
4663
- "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
4819
+ "name": "GeneratedReports",
4820
+ "module": "src/new/main/generated-reports/generated-reports.ts"
4664
4821
  }
4665
4822
  }
4666
4823
  ]
4667
4824
  },
4668
4825
  {
4669
4826
  "kind": "javascript-module",
4670
- "path": "src/new/components/renderers/data-transform-renderer.ts",
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",
4839
+ "declaration": {
4840
+ "name": "template",
4841
+ "module": "src/new/main/report-destinations/report-destinations.template.ts"
4842
+ }
4843
+ }
4844
+ ]
4845
+ },
4846
+ {
4847
+ "kind": "javascript-module",
4848
+ "path": "src/new/main/report-destinations/report-destinations.ts",
4671
4849
  "declarations": [
4672
4850
  {
4673
4851
  "kind": "class",
4674
4852
  "description": "",
4675
- "name": "DataTransformRenderer",
4853
+ "name": "ReportDestinations",
4676
4854
  "members": [
4677
4855
  {
4678
4856
  "kind": "field",
4679
- "name": "params",
4857
+ "name": "connect",
4680
4858
  "type": {
4681
- "text": "DataTransformRendererParams"
4859
+ "text": "Connect"
4682
4860
  },
4683
- "privacy": "public"
4861
+ "privacy": "private"
4684
4862
  },
4685
4863
  {
4686
4864
  "kind": "field",
4687
- "name": "value",
4865
+ "name": "topics",
4688
4866
  "type": {
4689
- "text": "ExpressionBuilderTypes.ValueConfig"
4867
+ "text": "string[]"
4690
4868
  },
4691
- "privacy": "public"
4869
+ "default": "[]"
4692
4870
  },
4693
4871
  {
4694
4872
  "kind": "field",
4695
- "name": "modal",
4873
+ "name": "user",
4696
4874
  "type": {
4697
- "text": "Modal"
4698
- }
4699
- },
4700
- {
4701
- "kind": "method",
4702
- "name": "init",
4703
- "privacy": "public",
4704
- "parameters": [
4705
- {
4706
- "name": "params",
4707
- "type": {
4708
- "text": "DataTransformRendererParams"
4709
- }
4710
- }
4711
- ]
4712
- },
4713
- {
4714
- "kind": "method",
4715
- "name": "getGui",
4716
- "privacy": "public",
4717
- "return": {
4718
- "type": {
4719
- "text": "HTMLElement"
4720
- }
4875
+ "text": "User"
4721
4876
  }
4722
4877
  },
4723
4878
  {
4724
- "kind": "method",
4725
- "name": "refresh",
4726
- "privacy": "public",
4727
- "return": {
4728
- "type": {
4729
- "text": "boolean"
4730
- }
4879
+ "kind": "field",
4880
+ "name": "getUISchema",
4881
+ "type": {
4882
+ "text": "UiSchema"
4731
4883
  },
4732
- "parameters": [
4733
- {
4734
- "name": "params",
4735
- "type": {
4736
- "text": "DataTransformRendererParams"
4737
- }
4738
- }
4739
- ]
4884
+ "readonly": true
4740
4885
  },
4741
4886
  {
4742
- "kind": "field",
4743
- "name": "changeHandler",
4887
+ "kind": "method",
4888
+ "name": "setNotifyRouteTopics",
4744
4889
  "privacy": "public"
4745
4890
  }
4746
4891
  ],
@@ -4748,486 +4893,254 @@
4748
4893
  "name": "GenesisElement",
4749
4894
  "package": "@genesislcap/web-core"
4750
4895
  },
4751
- "tagName": "data-transform-cell-renderer",
4896
+ "tagName": "report-destinations",
4752
4897
  "customElement": true
4753
4898
  }
4754
4899
  ],
4755
4900
  "exports": [
4756
4901
  {
4757
4902
  "kind": "js",
4758
- "name": "DataTransformRenderer",
4903
+ "name": "ReportDestinations",
4759
4904
  "declaration": {
4760
- "name": "DataTransformRenderer",
4761
- "module": "src/new/components/renderers/data-transform-renderer.ts"
4905
+ "name": "ReportDestinations",
4906
+ "module": "src/new/main/report-destinations/report-destinations.ts"
4762
4907
  }
4763
4908
  },
4764
4909
  {
4765
4910
  "kind": "custom-element-definition",
4766
- "name": "data-transform-cell-renderer",
4911
+ "name": "report-destinations",
4767
4912
  "declaration": {
4768
- "name": "DataTransformRenderer",
4769
- "module": "src/new/components/renderers/data-transform-renderer.ts"
4913
+ "name": "ReportDestinations",
4914
+ "module": "src/new/main/report-destinations/report-destinations.ts"
4770
4915
  }
4771
4916
  }
4772
4917
  ]
4773
4918
  },
4774
4919
  {
4775
4920
  "kind": "javascript-module",
4776
- "path": "src/new/components/reporting-configurations/reporting-configurations.styles.ts",
4921
+ "path": "src/new/store/slices/base-config.ts",
4777
4922
  "declarations": [
4778
4923
  {
4779
4924
  "kind": "variable",
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`"
4925
+ "name": "baseSlice"
4782
4926
  }
4783
4927
  ],
4784
4928
  "exports": [
4785
4929
  {
4786
4930
  "kind": "js",
4787
- "name": "ReportingConfigurationStyles",
4931
+ "name": "baseSlice",
4788
4932
  "declaration": {
4789
- "name": "ReportingConfigurationStyles",
4790
- "module": "src/new/components/reporting-configurations/reporting-configurations.styles.ts"
4933
+ "name": "baseSlice",
4934
+ "module": "src/new/store/slices/base-config.ts"
4791
4935
  }
4792
4936
  }
4793
4937
  ]
4794
4938
  },
4795
4939
  {
4796
4940
  "kind": "javascript-module",
4797
- "path": "src/new/components/reporting-configurations/reporting-configurations.template.ts",
4941
+ "path": "src/new/store/slices/datasources-config.ts",
4798
4942
  "declarations": [
4799
4943
  {
4800
4944
  "kind": "variable",
4801
- "name": "ReportingConfigurationsTemplate",
4802
- "default": "html<ReportingConfigurations>`\n ${(x) => permissionTemplateGuard(x, Permissions.ReportConfigurationView, viewTemplate)}\n`"
4945
+ "name": "initialState",
4946
+ "type": {
4947
+ "text": "DatasourceConfig"
4948
+ },
4949
+ "default": "{}"
4950
+ },
4951
+ {
4952
+ "kind": "variable",
4953
+ "name": "datasourceSlice"
4803
4954
  }
4804
4955
  ],
4805
4956
  "exports": [
4806
4957
  {
4807
4958
  "kind": "js",
4808
- "name": "ReportingConfigurationsTemplate",
4959
+ "name": "initialState",
4809
4960
  "declaration": {
4810
- "name": "ReportingConfigurationsTemplate",
4811
- "module": "src/new/components/reporting-configurations/reporting-configurations.template.ts"
4961
+ "name": "initialState",
4962
+ "module": "src/new/store/slices/datasources-config.ts"
4963
+ }
4964
+ },
4965
+ {
4966
+ "kind": "js",
4967
+ "name": "datasourceSlice",
4968
+ "declaration": {
4969
+ "name": "datasourceSlice",
4970
+ "module": "src/new/store/slices/datasources-config.ts"
4812
4971
  }
4813
4972
  }
4814
4973
  ]
4815
4974
  },
4816
4975
  {
4817
4976
  "kind": "javascript-module",
4818
- "path": "src/new/components/reporting-configurations/reporting-configurations.ts",
4977
+ "path": "src/new/store/slices/index.ts",
4978
+ "declarations": [],
4979
+ "exports": [
4980
+ {
4981
+ "kind": "js",
4982
+ "name": "*",
4983
+ "declaration": {
4984
+ "name": "*",
4985
+ "package": "./base-config"
4986
+ }
4987
+ },
4988
+ {
4989
+ "kind": "js",
4990
+ "name": "*",
4991
+ "declaration": {
4992
+ "name": "*",
4993
+ "package": "./datasources-config"
4994
+ }
4995
+ },
4996
+ {
4997
+ "kind": "js",
4998
+ "name": "*",
4999
+ "declaration": {
5000
+ "name": "*",
5001
+ "package": "./types"
5002
+ }
5003
+ }
5004
+ ]
5005
+ },
5006
+ {
5007
+ "kind": "javascript-module",
5008
+ "path": "src/new/store/slices/types.ts",
4819
5009
  "declarations": [
4820
5010
  {
4821
- "kind": "class",
4822
- "description": "Report configuration grid and toolbar actions.",
4823
- "name": "ReportingConfigurations",
4824
- "members": [
4825
- {
4826
- "kind": "field",
4827
- "name": "connect",
4828
- "type": {
4829
- "text": "Connect"
4830
- }
4831
- },
4832
- {
4833
- "kind": "field",
4834
- "name": "reportConfigurationsDatasource",
4835
- "type": {
4836
- "text": "GridProGenesisDatasource"
4837
- }
4838
- },
4839
- {
4840
- "kind": "field",
4841
- "name": "gridCriteria",
4842
- "type": {
4843
- "text": "string"
4844
- },
4845
- "default": "''"
4846
- },
4847
- {
4848
- "kind": "field",
4849
- "name": "cloneConfigModal",
4850
- "type": {
4851
- "text": "CloneReportConfigModal"
4852
- }
4853
- },
4854
- {
4855
- "kind": "field",
4856
- "name": "importFileInput",
4857
- "type": {
4858
- "text": "HTMLInputElement"
4859
- }
4860
- },
4861
- {
4862
- "kind": "field",
4863
- "name": "user",
4864
- "type": {
4865
- "text": "User"
4866
- }
4867
- },
4868
- {
4869
- "kind": "field",
4870
- "name": "searchBarConfig",
4871
- "type": {
4872
- "text": "array"
4873
- },
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 ]"
4876
- },
4877
- {
4878
- "kind": "method",
4879
- "name": "createNewReportHandler"
4880
- },
4881
- {
4882
- "kind": "method",
4883
- "name": "editReportConfigHandler",
4884
- "parameters": [
4885
- {
4886
- "name": "{ NAME, ID }",
4887
- "type": {
4888
- "text": "{ NAME: string; ID: string }"
4889
- }
4890
- }
4891
- ]
4892
- },
4893
- {
4894
- "kind": "method",
4895
- "name": "getColumnDefs"
4896
- },
4897
- {
4898
- "kind": "method",
4899
- "name": "getGridOptions"
4900
- },
4901
- {
4902
- "kind": "method",
4903
- "name": "deleteReportConfig",
4904
- "privacy": "private",
4905
- "parameters": [
4906
- {
4907
- "name": "reportConfigId"
4908
- },
4909
- {
4910
- "name": "reportName"
4911
- }
4912
- ]
4913
- },
4914
- {
4915
- "kind": "method",
4916
- "name": "runReport",
4917
- "privacy": "private",
4918
- "parameters": [
4919
- {
4920
- "name": "reportConfigId"
4921
- },
4922
- {
4923
- "name": "reportName"
4924
- }
4925
- ]
4926
- },
4927
- {
4928
- "kind": "method",
4929
- "name": "searchChanged",
4930
- "parameters": [
4931
- {
4932
- "name": "event",
4933
- "type": {
4934
- "text": "CustomEvent<Array<SelectedOption>>"
4935
- }
4936
- }
4937
- ]
4938
- },
4939
- {
4940
- "kind": "method",
4941
- "name": "openCloneReportConfigModal",
4942
- "parameters": [
4943
- {
4944
- "name": "e"
4945
- }
4946
- ]
4947
- },
4948
- {
4949
- "kind": "method",
4950
- "name": "importConfigHandler"
4951
- },
4952
- {
4953
- "kind": "method",
4954
- "name": "handleFileImport",
4955
- "parameters": [
4956
- {
4957
- "name": "event",
4958
- "type": {
4959
- "text": "Event"
4960
- }
4961
- }
4962
- ]
4963
- },
4964
- {
4965
- "kind": "method",
4966
- "name": "exportConfig",
4967
- "parameters": [
4968
- {
4969
- "name": "{ NAME, ID }",
4970
- "type": {
4971
- "text": "{ NAME: string; ID: string }"
4972
- }
4973
- }
4974
- ]
4975
- }
4976
- ],
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"
5011
+ "kind": "variable",
5012
+ "name": "deselectedColumns",
5013
+ "type": {
5014
+ "text": "array"
4995
5015
  },
4996
- "tagName": "reporting-configurations",
4997
- "customElement": true
4998
- }
4999
- ],
5000
- "exports": [
5001
- {
5002
- "kind": "js",
5003
- "name": "ReportingConfigurations",
5004
- "declaration": {
5005
- "name": "ReportingConfigurations",
5006
- "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5007
- }
5016
+ "default": "['RECORD_ID', 'TIMESTAMP']"
5008
5017
  },
5009
- {
5010
- "kind": "custom-element-definition",
5011
- "name": "reporting-configurations",
5012
- "declaration": {
5013
- "name": "ReportingConfigurations",
5014
- "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5015
- }
5016
- }
5017
- ]
5018
- },
5019
- {
5020
- "kind": "javascript-module",
5021
- "path": "src/new/components/shared/file-template-picker.template.ts",
5022
- "declarations": [
5023
5018
  {
5024
5019
  "kind": "variable",
5025
- "name": "NULL_TEMPLATE",
5020
+ "name": "datasourceInputs",
5026
5021
  "type": {
5027
- "text": "string"
5022
+ "text": "['REQ_REP', 'DATA_PIPELINE']"
5028
5023
  },
5029
- "default": "'Select a template'"
5024
+ "default": "['REQ_REP', 'DATA_PIPELINE']"
5030
5025
  },
5031
5026
  {
5032
5027
  "kind": "variable",
5033
- "name": "allowedTemplateFiletypes",
5028
+ "name": "datasourceOutputs",
5034
5029
  "type": {
5035
- "text": "Record<ReportOutputTypes, string[]>"
5030
+ "text": "[\n // 'RECORD_STREAM',\n 'TABLE',\n]"
5036
5031
  },
5037
- "default": "{\n CSV: ['csv', 'txt'],\n PDF: ['html', 'xhtml'],\n XLSX: ['xls', 'xlsx'],\n}"
5032
+ "default": "[\n // 'RECORD_STREAM',\n 'TABLE',\n]"
5038
5033
  },
5039
5034
  {
5040
5035
  "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
- }
5036
+ "name": "datasourceGroupingStrategies",
5037
+ "type": {
5038
+ "text": "['NONE', 'MULTI_SHEET', 'LOOKUP_TABLE']"
5039
+ },
5040
+ "default": "['NONE', 'MULTI_SHEET', 'LOOKUP_TABLE']"
5061
5041
  },
5062
5042
  {
5063
- "kind": "js",
5064
- "name": "fileTemplatePicker",
5065
- "declaration": {
5066
- "name": "fileTemplatePicker",
5067
- "module": "src/new/components/shared/file-template-picker.template.ts"
5068
- }
5043
+ "kind": "variable",
5044
+ "name": "reportOutputFormats",
5045
+ "type": {
5046
+ "text": "['CSV', 'PDF', 'XLSX']"
5047
+ },
5048
+ "default": "['CSV', 'PDF', 'XLSX']"
5069
5049
  }
5070
- ]
5071
- },
5072
- {
5073
- "kind": "javascript-module",
5074
- "path": "src/new/lib/redux-store/index.ts",
5075
- "declarations": [],
5050
+ ],
5076
5051
  "exports": [
5077
5052
  {
5078
5053
  "kind": "js",
5079
- "name": "*",
5054
+ "name": "deselectedColumns",
5080
5055
  "declaration": {
5081
- "name": "*",
5082
- "package": "./store"
5056
+ "name": "deselectedColumns",
5057
+ "module": "src/new/store/slices/types.ts"
5083
5058
  }
5084
5059
  },
5085
5060
  {
5086
5061
  "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",
5062
+ "name": "datasourceInputs",
5103
5063
  "declaration": {
5104
- "name": "find",
5105
- "package": "lodash"
5064
+ "name": "datasourceInputs",
5065
+ "module": "src/new/store/slices/types.ts"
5106
5066
  }
5107
5067
  },
5108
5068
  {
5109
5069
  "kind": "js",
5110
- "name": "get",
5070
+ "name": "datasourceOutputs",
5111
5071
  "declaration": {
5112
- "name": "get",
5113
- "package": "lodash"
5072
+ "name": "datasourceOutputs",
5073
+ "module": "src/new/store/slices/types.ts"
5114
5074
  }
5115
5075
  },
5116
5076
  {
5117
5077
  "kind": "js",
5118
- "name": "set",
5078
+ "name": "datasourceGroupingStrategies",
5119
5079
  "declaration": {
5120
- "name": "set",
5121
- "package": "lodash"
5080
+ "name": "datasourceGroupingStrategies",
5081
+ "module": "src/new/store/slices/types.ts"
5122
5082
  }
5123
5083
  },
5124
5084
  {
5125
5085
  "kind": "js",
5126
- "name": "findIndex",
5086
+ "name": "reportOutputFormats",
5127
5087
  "declaration": {
5128
- "name": "findIndex",
5129
- "package": "lodash"
5088
+ "name": "reportOutputFormats",
5089
+ "module": "src/new/store/slices/types.ts"
5130
5090
  }
5131
5091
  }
5132
5092
  ]
5133
5093
  },
5134
5094
  {
5135
5095
  "kind": "javascript-module",
5136
- "path": "src/new/lib/redux-store/store.ts",
5096
+ "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts",
5137
5097
  "declarations": [
5138
5098
  {
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
- ]
5099
+ "kind": "variable",
5100
+ "name": "cloneReportConfigModalStyles",
5101
+ "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`"
5160
5102
  }
5161
5103
  ],
5162
5104
  "exports": [
5163
5105
  {
5164
5106
  "kind": "js",
5165
- "name": "createSlice",
5166
- "declaration": {
5167
- "name": "createSlice",
5168
- "package": "@reduxjs/toolkit"
5169
- }
5170
- },
5171
- {
5172
- "kind": "js",
5173
- "name": "createStore",
5107
+ "name": "cloneReportConfigModalStyles",
5174
5108
  "declaration": {
5175
- "name": "createStore",
5176
- "module": "src/new/lib/redux-store/store.ts"
5109
+ "name": "cloneReportConfigModalStyles",
5110
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts"
5177
5111
  }
5178
5112
  }
5179
5113
  ]
5180
5114
  },
5181
5115
  {
5182
5116
  "kind": "javascript-module",
5183
- "path": "src/new/main/edit-config/config-journey-orchestrator.styles.ts",
5117
+ "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts",
5184
5118
  "declarations": [
5185
5119
  {
5186
5120
  "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`"
5121
+ "name": "CloneReportConfigModalTemplate",
5122
+ "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`"
5189
5123
  }
5190
5124
  ],
5191
5125
  "exports": [
5192
5126
  {
5193
5127
  "kind": "js",
5194
- "name": "styles",
5128
+ "name": "CloneReportConfigModalTemplate",
5195
5129
  "declaration": {
5196
- "name": "styles",
5197
- "module": "src/new/main/edit-config/config-journey-orchestrator.styles.ts"
5130
+ "name": "CloneReportConfigModalTemplate",
5131
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts"
5198
5132
  }
5199
5133
  }
5200
5134
  ]
5201
5135
  },
5202
5136
  {
5203
5137
  "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",
5138
+ "path": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts",
5226
5139
  "declarations": [
5227
5140
  {
5228
5141
  "kind": "class",
5229
- "description": "Orchestrates validate/save/discard for report config editing.",
5230
- "name": "ConfigJourneyOrchestrator",
5142
+ "description": "",
5143
+ "name": "CloneReportConfigModal",
5231
5144
  "members": [
5232
5145
  {
5233
5146
  "kind": "field",
@@ -5238,164 +5151,29 @@
5238
5151
  },
5239
5152
  {
5240
5153
  "kind": "field",
5241
- "name": "user",
5242
- "type": {
5243
- "text": "User"
5244
- }
5245
- },
5246
- {
5247
- "kind": "field",
5248
- "name": "validateConfig",
5249
- "privacy": "private"
5250
- },
5251
- {
5252
- "kind": "method",
5253
- "name": "showListViewHandler"
5254
- },
5255
- {
5256
- "kind": "method",
5257
- "name": "validateProjectSetup"
5258
- },
5259
- {
5260
- "kind": "method",
5261
- "name": "validateDatasource"
5262
- },
5263
- {
5264
- "kind": "method",
5265
- "name": "saveConfigHandler"
5266
- },
5267
- {
5268
- "kind": "method",
5269
- "name": "displayError",
5270
- "privacy": "private",
5271
- "parameters": [
5272
- {
5273
- "name": "e",
5274
- "type": {
5275
- "text": "Error"
5276
- }
5277
- },
5278
- {
5279
- "name": "expose",
5280
- "default": "false"
5281
- }
5282
- ]
5283
- }
5284
- ],
5285
- "events": [
5286
- {
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"
5295
- }
5296
- ],
5297
- "superclass": {
5298
- "name": "GenesisElement",
5299
- "package": "@genesislcap/web-core"
5300
- },
5301
- "tagName": "config-journey-orchestrator",
5302
- "customElement": true
5303
- }
5304
- ],
5305
- "exports": [
5306
- {
5307
- "kind": "js",
5308
- "name": "ConfigJourneyOrchestrator",
5309
- "declaration": {
5310
- "name": "ConfigJourneyOrchestrator",
5311
- "module": "src/new/main/edit-config/config-journey-orchestrator.ts"
5312
- }
5313
- },
5314
- {
5315
- "kind": "custom-element-definition",
5316
- "name": "config-journey-orchestrator",
5317
- "declaration": {
5318
- "name": "ConfigJourneyOrchestrator",
5319
- "module": "src/new/main/edit-config/config-journey-orchestrator.ts"
5320
- }
5321
- }
5322
- ]
5323
- },
5324
- {
5325
- "kind": "javascript-module",
5326
- "path": "src/new/main/generated-reports/generated-reports.styles.ts",
5327
- "declarations": [
5328
- {
5329
- "kind": "variable",
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`"
5332
- }
5333
- ],
5334
- "exports": [
5335
- {
5336
- "kind": "js",
5337
- "name": "GeneratedReportsStyles",
5338
- "declaration": {
5339
- "name": "GeneratedReportsStyles",
5340
- "module": "src/new/main/generated-reports/generated-reports.styles.ts"
5341
- }
5342
- }
5343
- ]
5344
- },
5345
- {
5346
- "kind": "javascript-module",
5347
- "path": "src/new/main/generated-reports/generated-reports.template.ts",
5348
- "declarations": [
5349
- {
5350
- "kind": "variable",
5351
- "name": "GeneratedReportsTemplate",
5352
- "default": "html<GeneratedReports>`\n ${(x) =>\n permissionTemplateGuard(x, [Permissions.ReportView, Permissions.ReportRun], viewTemplate)}\n`"
5353
- }
5354
- ],
5355
- "exports": [
5356
- {
5357
- "kind": "js",
5358
- "name": "GeneratedReportsTemplate",
5359
- "declaration": {
5360
- "name": "GeneratedReportsTemplate",
5361
- "module": "src/new/main/generated-reports/generated-reports.template.ts"
5362
- }
5363
- }
5364
- ]
5365
- },
5366
- {
5367
- "kind": "javascript-module",
5368
- "path": "src/new/main/generated-reports/generated-reports.ts",
5369
- "declarations": [
5370
- {
5371
- "kind": "class",
5372
- "description": "",
5373
- "name": "GeneratedReports",
5374
- "members": [
5375
- {
5376
- "kind": "field",
5377
- "name": "connect",
5154
+ "name": "cloneReportConfigModal",
5378
5155
  "type": {
5379
- "text": "Connect"
5156
+ "text": "Modal"
5380
5157
  }
5381
5158
  },
5382
5159
  {
5383
5160
  "kind": "field",
5384
- "name": "generatedReportsDatasource",
5161
+ "name": "reportConfigDetails",
5385
5162
  "type": {
5386
- "text": "GridProGenesisDatasource"
5163
+ "text": "Genesis.ServerReportConfig"
5387
5164
  }
5388
5165
  },
5389
5166
  {
5390
5167
  "kind": "field",
5391
- "name": "generatedReportId",
5168
+ "name": "reportName",
5392
5169
  "type": {
5393
- "text": "string | null"
5394
- }
5170
+ "text": "string"
5171
+ },
5172
+ "default": "''"
5395
5173
  },
5396
5174
  {
5397
5175
  "kind": "field",
5398
- "name": "gridCriteria",
5176
+ "name": "fileName",
5399
5177
  "type": {
5400
5178
  "text": "string"
5401
5179
  },
@@ -5403,163 +5181,262 @@
5403
5181
  },
5404
5182
  {
5405
5183
  "kind": "field",
5406
- "name": "user",
5184
+ "name": "fileTemplates",
5407
5185
  "type": {
5408
- "text": "User"
5409
- }
5186
+ "text": "Array<Genesis.FileStorageDataRow>"
5187
+ },
5188
+ "default": "[]"
5410
5189
  },
5411
5190
  {
5412
5191
  "kind": "field",
5413
- "name": "searchBarConfig",
5192
+ "name": "allowedTemplates",
5414
5193
  "type": {
5415
- "text": "array"
5194
+ "text": "Array<Genesis.FileStorageDataRow>"
5416
5195
  },
5417
- "privacy": "public",
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 ]"
5196
+ "default": "[]"
5419
5197
  },
5420
5198
  {
5421
5199
  "kind": "field",
5422
- "name": "getColor"
5200
+ "name": "selectedTemplateId",
5201
+ "type": {
5202
+ "text": "string"
5203
+ },
5204
+ "default": "''"
5423
5205
  },
5424
5206
  {
5425
5207
  "kind": "field",
5426
- "name": "getStatusRenderer"
5208
+ "name": "isImportMode",
5209
+ "type": {
5210
+ "text": "boolean"
5211
+ },
5212
+ "default": "false"
5427
5213
  },
5428
5214
  {
5429
5215
  "kind": "method",
5430
- "name": "getColumnDefs"
5216
+ "name": "getReportConfigDetails",
5217
+ "parameters": [
5218
+ {
5219
+ "name": "ID",
5220
+ "type": {
5221
+ "text": "string"
5222
+ }
5223
+ }
5224
+ ]
5431
5225
  },
5432
5226
  {
5433
5227
  "kind": "method",
5434
- "name": "getGridOptions"
5228
+ "name": "showReportConfigModal",
5229
+ "parameters": [
5230
+ {
5231
+ "name": "ID",
5232
+ "type": {
5233
+ "text": "string"
5234
+ }
5235
+ }
5236
+ ]
5435
5237
  },
5436
5238
  {
5437
5239
  "kind": "method",
5438
- "name": "downloadReport",
5439
- "privacy": "private",
5240
+ "name": "showImportModal",
5440
5241
  "parameters": [
5441
5242
  {
5442
- "name": "fileStorageId",
5243
+ "name": "config",
5443
5244
  "type": {
5444
- "text": "string"
5245
+ "text": "Genesis.ServerReportConfig"
5445
5246
  }
5446
5247
  }
5447
5248
  ]
5448
5249
  },
5449
5250
  {
5450
5251
  "kind": "method",
5451
- "name": "deleteReport",
5452
- "privacy": "private",
5252
+ "name": "closeCloneReportConfigModal"
5253
+ },
5254
+ {
5255
+ "kind": "method",
5256
+ "name": "getFileTemplates",
5257
+ "return": {
5258
+ "type": {
5259
+ "text": "Promise<void>"
5260
+ }
5261
+ }
5262
+ },
5263
+ {
5264
+ "kind": "method",
5265
+ "name": "getAllowedTemplates",
5266
+ "return": {
5267
+ "type": {
5268
+ "text": "Array<Genesis.FileStorageDataRow>"
5269
+ }
5270
+ },
5453
5271
  "parameters": [
5454
5272
  {
5455
- "name": "generatedReportId"
5273
+ "name": "outputFormat",
5274
+ "type": {
5275
+ "text": "string"
5276
+ }
5456
5277
  }
5457
5278
  ]
5458
5279
  },
5459
5280
  {
5460
5281
  "kind": "method",
5461
- "name": "searchChanged",
5282
+ "name": "handleTemplateSelectChange",
5462
5283
  "parameters": [
5463
5284
  {
5464
- "name": "event",
5285
+ "name": "selectInput",
5465
5286
  "type": {
5466
- "text": "CustomEvent<Array<SelectedOption>>"
5287
+ "text": "HTMLSelectElement"
5467
5288
  }
5468
5289
  }
5469
5290
  ]
5470
- }
5291
+ },
5292
+ {
5293
+ "kind": "method",
5294
+ "name": "discardChanges"
5295
+ },
5296
+ {
5297
+ "kind": "method",
5298
+ "name": "filterFields",
5299
+ "privacy": "private",
5300
+ "return": {
5301
+ "type": {
5302
+ "text": "Partial<T>"
5303
+ }
5304
+ },
5305
+ "parameters": [
5306
+ {
5307
+ "name": "obj",
5308
+ "type": {
5309
+ "text": "T"
5310
+ }
5311
+ },
5312
+ {
5313
+ "name": "excludedFields",
5314
+ "type": {
5315
+ "text": "readonly string[]"
5316
+ }
5317
+ }
5318
+ ]
5319
+ },
5320
+ {
5321
+ "kind": "method",
5322
+ "name": "cloneReportConfig"
5323
+ },
5324
+ {
5325
+ "kind": "method",
5326
+ "name": "showErrorToast",
5327
+ "parameters": [
5328
+ {
5329
+ "name": "message",
5330
+ "type": {
5331
+ "text": "string"
5332
+ }
5333
+ }
5334
+ ]
5335
+ }
5471
5336
  ],
5472
5337
  "superclass": {
5473
5338
  "name": "GenesisElement",
5474
5339
  "package": "@genesislcap/web-core"
5475
5340
  },
5476
- "tagName": "generated-reports",
5341
+ "tagName": "clone-report-config-modal",
5477
5342
  "customElement": true
5478
5343
  }
5479
5344
  ],
5480
5345
  "exports": [
5481
5346
  {
5482
5347
  "kind": "js",
5483
- "name": "GeneratedReports",
5348
+ "name": "CloneReportConfigModal",
5484
5349
  "declaration": {
5485
- "name": "GeneratedReports",
5486
- "module": "src/new/main/generated-reports/generated-reports.ts"
5350
+ "name": "CloneReportConfigModal",
5351
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
5487
5352
  }
5488
5353
  },
5489
5354
  {
5490
5355
  "kind": "custom-element-definition",
5491
- "name": "generated-reports",
5492
- "declaration": {
5493
- "name": "GeneratedReports",
5494
- "module": "src/new/main/generated-reports/generated-reports.ts"
5495
- }
5496
- }
5497
- ]
5498
- },
5499
- {
5500
- "kind": "javascript-module",
5501
- "path": "src/new/main/report-destinations/report-destinations.template.ts",
5502
- "declarations": [
5503
- {
5504
- "kind": "variable",
5505
- "name": "template",
5506
- "default": "html<ReportDestinations>`\n ${(x) => permissionTemplateGuard(x, Permissions.ReportDestinationView, viewTemplate)}\n`"
5507
- }
5508
- ],
5509
- "exports": [
5510
- {
5511
- "kind": "js",
5512
- "name": "template",
5356
+ "name": "clone-report-config-modal",
5513
5357
  "declaration": {
5514
- "name": "template",
5515
- "module": "src/new/main/report-destinations/report-destinations.template.ts"
5358
+ "name": "CloneReportConfigModal",
5359
+ "module": "src/new/components/clone-report-config-modal/clone-report-config-modal.ts"
5516
5360
  }
5517
5361
  }
5518
5362
  ]
5519
5363
  },
5520
5364
  {
5521
5365
  "kind": "javascript-module",
5522
- "path": "src/new/main/report-destinations/report-destinations.ts",
5366
+ "path": "src/new/components/renderers/data-transform-renderer.ts",
5523
5367
  "declarations": [
5524
5368
  {
5525
5369
  "kind": "class",
5526
5370
  "description": "",
5527
- "name": "ReportDestinations",
5371
+ "name": "DataTransformRenderer",
5528
5372
  "members": [
5529
5373
  {
5530
5374
  "kind": "field",
5531
- "name": "connect",
5375
+ "name": "params",
5532
5376
  "type": {
5533
- "text": "Connect"
5377
+ "text": "DataTransformRendererParams"
5534
5378
  },
5535
- "privacy": "private"
5379
+ "privacy": "public"
5536
5380
  },
5537
5381
  {
5538
5382
  "kind": "field",
5539
- "name": "topics",
5383
+ "name": "value",
5540
5384
  "type": {
5541
- "text": "string[]"
5385
+ "text": "ExpressionBuilderTypes.ValueConfig"
5542
5386
  },
5543
- "default": "[]"
5387
+ "privacy": "public"
5544
5388
  },
5545
5389
  {
5546
5390
  "kind": "field",
5547
- "name": "user",
5391
+ "name": "modal",
5548
5392
  "type": {
5549
- "text": "User"
5393
+ "text": "Modal"
5550
5394
  }
5551
5395
  },
5552
5396
  {
5553
- "kind": "field",
5554
- "name": "getUISchema",
5555
- "type": {
5556
- "text": "UiSchema"
5557
- },
5558
- "readonly": true
5397
+ "kind": "method",
5398
+ "name": "init",
5399
+ "privacy": "public",
5400
+ "parameters": [
5401
+ {
5402
+ "name": "params",
5403
+ "type": {
5404
+ "text": "DataTransformRendererParams"
5405
+ }
5406
+ }
5407
+ ]
5559
5408
  },
5560
5409
  {
5561
5410
  "kind": "method",
5562
- "name": "setNotifyRouteTopics",
5411
+ "name": "getGui",
5412
+ "privacy": "public",
5413
+ "return": {
5414
+ "type": {
5415
+ "text": "HTMLElement"
5416
+ }
5417
+ }
5418
+ },
5419
+ {
5420
+ "kind": "method",
5421
+ "name": "refresh",
5422
+ "privacy": "public",
5423
+ "return": {
5424
+ "type": {
5425
+ "text": "boolean"
5426
+ }
5427
+ },
5428
+ "parameters": [
5429
+ {
5430
+ "name": "params",
5431
+ "type": {
5432
+ "text": "DataTransformRendererParams"
5433
+ }
5434
+ }
5435
+ ]
5436
+ },
5437
+ {
5438
+ "kind": "field",
5439
+ "name": "changeHandler",
5563
5440
  "privacy": "public"
5564
5441
  }
5565
5442
  ],
@@ -5567,200 +5444,323 @@
5567
5444
  "name": "GenesisElement",
5568
5445
  "package": "@genesislcap/web-core"
5569
5446
  },
5570
- "tagName": "report-destinations",
5447
+ "tagName": "data-transform-cell-renderer",
5571
5448
  "customElement": true
5572
5449
  }
5573
5450
  ],
5574
5451
  "exports": [
5575
5452
  {
5576
5453
  "kind": "js",
5577
- "name": "ReportDestinations",
5454
+ "name": "DataTransformRenderer",
5578
5455
  "declaration": {
5579
- "name": "ReportDestinations",
5580
- "module": "src/new/main/report-destinations/report-destinations.ts"
5456
+ "name": "DataTransformRenderer",
5457
+ "module": "src/new/components/renderers/data-transform-renderer.ts"
5581
5458
  }
5582
5459
  },
5583
5460
  {
5584
5461
  "kind": "custom-element-definition",
5585
- "name": "report-destinations",
5462
+ "name": "data-transform-cell-renderer",
5586
5463
  "declaration": {
5587
- "name": "ReportDestinations",
5588
- "module": "src/new/main/report-destinations/report-destinations.ts"
5464
+ "name": "DataTransformRenderer",
5465
+ "module": "src/new/components/renderers/data-transform-renderer.ts"
5589
5466
  }
5590
5467
  }
5591
5468
  ]
5592
5469
  },
5593
5470
  {
5594
5471
  "kind": "javascript-module",
5595
- "path": "src/new/store/slices/base-config.ts",
5472
+ "path": "src/new/components/reporting-configurations/reporting-configurations.styles.ts",
5596
5473
  "declarations": [
5597
5474
  {
5598
5475
  "kind": "variable",
5599
- "name": "baseSlice"
5476
+ "name": "ReportingConfigurationStyles",
5477
+ "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`"
5600
5478
  }
5601
5479
  ],
5602
5480
  "exports": [
5603
5481
  {
5604
5482
  "kind": "js",
5605
- "name": "baseSlice",
5483
+ "name": "ReportingConfigurationStyles",
5606
5484
  "declaration": {
5607
- "name": "baseSlice",
5608
- "module": "src/new/store/slices/base-config.ts"
5485
+ "name": "ReportingConfigurationStyles",
5486
+ "module": "src/new/components/reporting-configurations/reporting-configurations.styles.ts"
5609
5487
  }
5610
5488
  }
5611
5489
  ]
5612
5490
  },
5613
5491
  {
5614
5492
  "kind": "javascript-module",
5615
- "path": "src/new/store/slices/datasources-config.ts",
5493
+ "path": "src/new/components/reporting-configurations/reporting-configurations.template.ts",
5616
5494
  "declarations": [
5617
5495
  {
5618
5496
  "kind": "variable",
5619
- "name": "initialState",
5620
- "type": {
5621
- "text": "DatasourceConfig"
5622
- },
5623
- "default": "{}"
5624
- },
5625
- {
5626
- "kind": "variable",
5627
- "name": "datasourceSlice"
5497
+ "name": "ReportingConfigurationsTemplate",
5498
+ "default": "html<ReportingConfigurations>`\n ${(x) => permissionTemplateGuard(x, Permissions.ReportConfigurationView, viewTemplate)}\n`"
5628
5499
  }
5629
5500
  ],
5630
5501
  "exports": [
5631
5502
  {
5632
5503
  "kind": "js",
5633
- "name": "initialState",
5634
- "declaration": {
5635
- "name": "initialState",
5636
- "module": "src/new/store/slices/datasources-config.ts"
5637
- }
5638
- },
5639
- {
5640
- "kind": "js",
5641
- "name": "datasourceSlice",
5504
+ "name": "ReportingConfigurationsTemplate",
5642
5505
  "declaration": {
5643
- "name": "datasourceSlice",
5644
- "module": "src/new/store/slices/datasources-config.ts"
5506
+ "name": "ReportingConfigurationsTemplate",
5507
+ "module": "src/new/components/reporting-configurations/reporting-configurations.template.ts"
5645
5508
  }
5646
5509
  }
5647
5510
  ]
5648
5511
  },
5649
5512
  {
5650
5513
  "kind": "javascript-module",
5651
- "path": "src/new/store/slices/index.ts",
5652
- "declarations": [],
5653
- "exports": [
5514
+ "path": "src/new/components/reporting-configurations/reporting-configurations.ts",
5515
+ "declarations": [
5654
5516
  {
5655
- "kind": "js",
5656
- "name": "*",
5657
- "declaration": {
5658
- "name": "*",
5659
- "package": "./base-config"
5660
- }
5661
- },
5517
+ "kind": "class",
5518
+ "description": "Report configuration grid and toolbar actions.",
5519
+ "name": "ReportingConfigurations",
5520
+ "members": [
5521
+ {
5522
+ "kind": "field",
5523
+ "name": "connect",
5524
+ "type": {
5525
+ "text": "Connect"
5526
+ }
5527
+ },
5528
+ {
5529
+ "kind": "field",
5530
+ "name": "reportConfigurationsDatasource",
5531
+ "type": {
5532
+ "text": "GridProGenesisDatasource"
5533
+ }
5534
+ },
5535
+ {
5536
+ "kind": "field",
5537
+ "name": "gridCriteria",
5538
+ "type": {
5539
+ "text": "string"
5540
+ },
5541
+ "default": "''"
5542
+ },
5543
+ {
5544
+ "kind": "field",
5545
+ "name": "cloneConfigModal",
5546
+ "type": {
5547
+ "text": "CloneReportConfigModal"
5548
+ }
5549
+ },
5550
+ {
5551
+ "kind": "field",
5552
+ "name": "importFileInput",
5553
+ "type": {
5554
+ "text": "HTMLInputElement"
5555
+ }
5556
+ },
5557
+ {
5558
+ "kind": "field",
5559
+ "name": "user",
5560
+ "type": {
5561
+ "text": "User"
5562
+ }
5563
+ },
5564
+ {
5565
+ "kind": "field",
5566
+ "name": "searchBarConfig",
5567
+ "type": {
5568
+ "text": "array"
5569
+ },
5570
+ "privacy": "public",
5571
+ "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 ]"
5572
+ },
5573
+ {
5574
+ "kind": "method",
5575
+ "name": "createNewReportHandler"
5576
+ },
5577
+ {
5578
+ "kind": "method",
5579
+ "name": "editReportConfigHandler",
5580
+ "parameters": [
5581
+ {
5582
+ "name": "{ NAME, ID }",
5583
+ "type": {
5584
+ "text": "{ NAME: string; ID: string }"
5585
+ }
5586
+ }
5587
+ ]
5588
+ },
5589
+ {
5590
+ "kind": "method",
5591
+ "name": "getColumnDefs"
5592
+ },
5593
+ {
5594
+ "kind": "method",
5595
+ "name": "getGridOptions"
5596
+ },
5597
+ {
5598
+ "kind": "method",
5599
+ "name": "deleteReportConfig",
5600
+ "privacy": "private",
5601
+ "parameters": [
5602
+ {
5603
+ "name": "reportConfigId"
5604
+ },
5605
+ {
5606
+ "name": "reportName"
5607
+ }
5608
+ ]
5609
+ },
5610
+ {
5611
+ "kind": "method",
5612
+ "name": "runReport",
5613
+ "privacy": "private",
5614
+ "parameters": [
5615
+ {
5616
+ "name": "reportConfigId"
5617
+ },
5618
+ {
5619
+ "name": "reportName"
5620
+ }
5621
+ ]
5622
+ },
5623
+ {
5624
+ "kind": "method",
5625
+ "name": "searchChanged",
5626
+ "parameters": [
5627
+ {
5628
+ "name": "event",
5629
+ "type": {
5630
+ "text": "CustomEvent<Array<SelectedOption>>"
5631
+ }
5632
+ }
5633
+ ]
5634
+ },
5635
+ {
5636
+ "kind": "method",
5637
+ "name": "openCloneReportConfigModal",
5638
+ "parameters": [
5639
+ {
5640
+ "name": "e"
5641
+ }
5642
+ ]
5643
+ },
5644
+ {
5645
+ "kind": "method",
5646
+ "name": "importConfigHandler"
5647
+ },
5648
+ {
5649
+ "kind": "method",
5650
+ "name": "handleFileImport",
5651
+ "parameters": [
5652
+ {
5653
+ "name": "event",
5654
+ "type": {
5655
+ "text": "Event"
5656
+ }
5657
+ }
5658
+ ]
5659
+ },
5660
+ {
5661
+ "kind": "method",
5662
+ "name": "exportConfig",
5663
+ "parameters": [
5664
+ {
5665
+ "name": "{ NAME, ID }",
5666
+ "type": {
5667
+ "text": "{ NAME: string; ID: string }"
5668
+ }
5669
+ }
5670
+ ]
5671
+ }
5672
+ ],
5673
+ "events": [
5674
+ {
5675
+ "description": "Fired to switch the report configuration display mode. detail: `'edit' | 'list'`",
5676
+ "name": "set-report-config-disp-mode"
5677
+ },
5678
+ {
5679
+ "name": "highlight-grid-row"
5680
+ }
5681
+ ],
5682
+ "mixins": [
5683
+ {
5684
+ "name": "EventEmitter",
5685
+ "package": "@genesislcap/foundation-events"
5686
+ }
5687
+ ],
5688
+ "superclass": {
5689
+ "name": "GenesisElement",
5690
+ "package": "@genesislcap/web-core"
5691
+ },
5692
+ "tagName": "reporting-configurations",
5693
+ "customElement": true
5694
+ }
5695
+ ],
5696
+ "exports": [
5662
5697
  {
5663
5698
  "kind": "js",
5664
- "name": "*",
5699
+ "name": "ReportingConfigurations",
5665
5700
  "declaration": {
5666
- "name": "*",
5667
- "package": "./datasources-config"
5701
+ "name": "ReportingConfigurations",
5702
+ "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5668
5703
  }
5669
5704
  },
5670
5705
  {
5671
- "kind": "js",
5672
- "name": "*",
5706
+ "kind": "custom-element-definition",
5707
+ "name": "reporting-configurations",
5673
5708
  "declaration": {
5674
- "name": "*",
5675
- "package": "./types"
5709
+ "name": "ReportingConfigurations",
5710
+ "module": "src/new/components/reporting-configurations/reporting-configurations.ts"
5676
5711
  }
5677
5712
  }
5678
5713
  ]
5679
5714
  },
5680
5715
  {
5681
5716
  "kind": "javascript-module",
5682
- "path": "src/new/store/slices/types.ts",
5717
+ "path": "src/new/components/shared/file-template-picker.template.ts",
5683
5718
  "declarations": [
5684
5719
  {
5685
5720
  "kind": "variable",
5686
- "name": "deselectedColumns",
5687
- "type": {
5688
- "text": "array"
5689
- },
5690
- "default": "['RECORD_ID', 'TIMESTAMP']"
5691
- },
5692
- {
5693
- "kind": "variable",
5694
- "name": "datasourceInputs",
5695
- "type": {
5696
- "text": "['REQ_REP', 'DATA_PIPELINE']"
5697
- },
5698
- "default": "['REQ_REP', 'DATA_PIPELINE']"
5699
- },
5700
- {
5701
- "kind": "variable",
5702
- "name": "datasourceOutputs",
5721
+ "name": "NULL_TEMPLATE",
5703
5722
  "type": {
5704
- "text": "[\n // 'RECORD_STREAM',\n 'TABLE',\n]"
5723
+ "text": "string"
5705
5724
  },
5706
- "default": "[\n // 'RECORD_STREAM',\n 'TABLE',\n]"
5725
+ "default": "'Select a template'"
5707
5726
  },
5708
5727
  {
5709
5728
  "kind": "variable",
5710
- "name": "datasourceGroupingStrategies",
5729
+ "name": "allowedTemplateFiletypes",
5711
5730
  "type": {
5712
- "text": "['NONE', 'MULTI_SHEET', 'LOOKUP_TABLE']"
5731
+ "text": "Record<ReportOutputTypes, string[]>"
5713
5732
  },
5714
- "default": "['NONE', 'MULTI_SHEET', 'LOOKUP_TABLE']"
5733
+ "default": "{\n CSV: ['csv', 'txt'],\n PDF: ['html', 'xhtml'],\n XLSX: ['xls', 'xlsx'],\n}"
5715
5734
  },
5716
5735
  {
5717
5736
  "kind": "variable",
5718
- "name": "reportOutputFormats",
5719
- "type": {
5720
- "text": "['CSV', 'PDF', 'XLSX']"
5721
- },
5722
- "default": "['CSV', 'PDF', 'XLSX']"
5737
+ "name": "fileTemplatePicker",
5738
+ "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`"
5723
5739
  }
5724
5740
  ],
5725
5741
  "exports": [
5726
5742
  {
5727
5743
  "kind": "js",
5728
- "name": "deselectedColumns",
5729
- "declaration": {
5730
- "name": "deselectedColumns",
5731
- "module": "src/new/store/slices/types.ts"
5732
- }
5733
- },
5734
- {
5735
- "kind": "js",
5736
- "name": "datasourceInputs",
5737
- "declaration": {
5738
- "name": "datasourceInputs",
5739
- "module": "src/new/store/slices/types.ts"
5740
- }
5741
- },
5742
- {
5743
- "kind": "js",
5744
- "name": "datasourceOutputs",
5744
+ "name": "NULL_TEMPLATE",
5745
5745
  "declaration": {
5746
- "name": "datasourceOutputs",
5747
- "module": "src/new/store/slices/types.ts"
5746
+ "name": "NULL_TEMPLATE",
5747
+ "module": "src/new/components/shared/file-template-picker.template.ts"
5748
5748
  }
5749
5749
  },
5750
5750
  {
5751
5751
  "kind": "js",
5752
- "name": "datasourceGroupingStrategies",
5752
+ "name": "allowedTemplateFiletypes",
5753
5753
  "declaration": {
5754
- "name": "datasourceGroupingStrategies",
5755
- "module": "src/new/store/slices/types.ts"
5754
+ "name": "allowedTemplateFiletypes",
5755
+ "module": "src/new/components/shared/file-template-picker.template.ts"
5756
5756
  }
5757
5757
  },
5758
5758
  {
5759
5759
  "kind": "js",
5760
- "name": "reportOutputFormats",
5760
+ "name": "fileTemplatePicker",
5761
5761
  "declaration": {
5762
- "name": "reportOutputFormats",
5763
- "module": "src/new/store/slices/types.ts"
5762
+ "name": "fileTemplatePicker",
5763
+ "module": "src/new/components/shared/file-template-picker.template.ts"
5764
5764
  }
5765
5765
  }
5766
5766
  ]