@genesislcap/pbc-reporting-ui 15.36.1 → 15.37.0

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