@genesislcap/pbc-reporting-ui 15.14.2 → 15.15.0-FUI-2603.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +382 -382
  2. package/package.json +22 -22
@@ -7433,49 +7433,28 @@
7433
7433
  },
7434
7434
  {
7435
7435
  "kind": "javascript-module",
7436
- "path": "src/old/components/select-filters/columns.ts",
7436
+ "path": "src/old/components/wizard/debug.ts",
7437
7437
  "declarations": [
7438
7438
  {
7439
7439
  "kind": "variable",
7440
- "name": "AVAILABLE_FIELDS_CONFIG",
7441
- "type": {
7442
- "text": "object"
7443
- },
7444
- "default": "{\n colDefs: [\n {\n cellRenderer: 'row-select',\n checkboxSelection: false,\n filter: false,\n headerCheckboxSelection: true,\n sortable: false,\n width: 60,\n },\n {\n field: 'displayName',\n headerName: 'Field Name',\n },\n ],\n gridOptions: {\n ...defaultRowConfig,\n components: {\n 'row-select': RowSelectRenderer,\n },\n defaultColDef: {\n filter: false,\n floatingFilter: false,\n sortable: false,\n suppressMenu: false,\n resizable: false,\n },\n context: {\n ariaLabelField: 'displayName',\n },\n debug: true,\n },\n}",
7445
- "description": "Field selection grid config"
7446
- },
7447
- {
7448
- "kind": "variable",
7449
- "name": "SELECTED_FILTERS_CONFIG",
7450
- "type": {
7451
- "text": "object"
7452
- },
7453
- "default": "{\n colDefs: [\n {\n cellRenderer: 'row-select',\n checkboxSelection: false,\n headerCheckboxSelection: true,\n width: 60,\n },\n {\n field: 'displayName',\n headerName: 'Field Name',\n },\n ],\n gridOptions: {\n ...defaultRowConfig,\n components: {\n 'row-select': RowSelectRenderer,\n 'filter-value': FilterValueRenderer,\n },\n defaultColDef: {\n ...defaultCellConfig,\n filter: false,\n resizable: false,\n sortable: false,\n suppressMenu: true,\n },\n context: {\n ariaLabelField: 'displayName',\n },\n suppressContextMenu: true,\n suppressRowTransform: true,\n debug: true,\n },\n}",
7454
- "description": "Columns main dummy data"
7440
+ "name": "Debug",
7441
+ "default": "html`\n <div class=\"flex flex-column gap-1 overflow-auto\">\n <div>\n <h5>Report Name</h5>\n <div>${(x) => x.reportName}</div>\n </div>\n\n <div>\n <h5>Report Description</h5>\n <div>${(x) => x.reportDescription}</div>\n </div>\n\n <div>\n <h5>Selected Datasource</h5>\n <div>${(x) => x.selectedDatasource}</div>\n </div>\n\n <div>\n <h5>Selected Fields</h5>\n <div><pre>${(x) => JSON.stringify(x.selectedFields, undefined, 2)}</pre></div>\n </div>\n\n <div>\n <h5>Selected Filters</h5>\n <div><pre>${(x) => JSON.stringify(x.selectedFilters, undefined, 2)}</pre></div>\n </div>\n\n <div>\n <h5>Field Data</h5>\n <div><pre>${(x) => JSON.stringify(x.fieldData, undefined, 2)}</pre></div>\n </div>\n </div>\n`"
7455
7442
  }
7456
7443
  ],
7457
7444
  "exports": [
7458
7445
  {
7459
7446
  "kind": "js",
7460
- "name": "AVAILABLE_FIELDS_CONFIG",
7461
- "declaration": {
7462
- "name": "AVAILABLE_FIELDS_CONFIG",
7463
- "module": "src/old/components/select-filters/columns.ts"
7464
- }
7465
- },
7466
- {
7467
- "kind": "js",
7468
- "name": "SELECTED_FILTERS_CONFIG",
7447
+ "name": "Debug",
7469
7448
  "declaration": {
7470
- "name": "SELECTED_FILTERS_CONFIG",
7471
- "module": "src/old/components/select-filters/columns.ts"
7449
+ "name": "Debug",
7450
+ "module": "src/old/components/wizard/debug.ts"
7472
7451
  }
7473
7452
  }
7474
7453
  ]
7475
7454
  },
7476
7455
  {
7477
7456
  "kind": "javascript-module",
7478
- "path": "src/old/components/select-filters/index.ts",
7457
+ "path": "src/old/components/wizard/index.ts",
7479
7458
  "declarations": [],
7480
7459
  "exports": [
7481
7460
  {
@@ -7483,15 +7462,7 @@
7483
7462
  "name": "*",
7484
7463
  "declaration": {
7485
7464
  "name": "*",
7486
- "package": "./select-filters"
7487
- }
7488
- },
7489
- {
7490
- "kind": "js",
7491
- "name": "*",
7492
- "declaration": {
7493
- "name": "*",
7494
- "package": "./select-filters.template"
7465
+ "package": "./wizard"
7495
7466
  }
7496
7467
  },
7497
7468
  {
@@ -7499,112 +7470,111 @@
7499
7470
  "name": "*",
7500
7471
  "declaration": {
7501
7472
  "name": "*",
7502
- "package": "./select-filters.styles"
7473
+ "package": "./wizard.styles"
7503
7474
  }
7504
7475
  }
7505
7476
  ]
7506
7477
  },
7507
7478
  {
7508
7479
  "kind": "javascript-module",
7509
- "path": "src/old/components/select-filters/select-filters.styles.ts",
7480
+ "path": "src/old/components/wizard/wizard.styles.ts",
7510
7481
  "declarations": [
7511
7482
  {
7512
7483
  "kind": "variable",
7513
- "name": "SelectFiltersStyles",
7514
- "default": "css`\n ${helperStyles}\n ${normalizeStyles}\n :host {\n --select-renderer-max-width: 150px;\n }\n\n .select-filters {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n .all-fields,\n .selected-filters {\n height: 100%;\n }\n`"
7484
+ "name": "WizardStyles",
7485
+ "default": "css`\n ${normalizeStyles}\n ${helperStyles}\n :host {\n width: 100%;\n }\n\n .grid-container {\n display: grid;\n gap: calc(var(--design-unit) * 4px);\n grid-template-columns: minmax(250px, 10%) 1fr;\n grid-auto-rows: 1fr;\n margin: calc(var(--design-unit) * 4px) 0;\n height: 95%;\n }\n\n .nav {\n max-width: 248px;\n background-color: var(--neutral-layer-2);\n overflow-y: auto;\n }\n\n .nav-item h5 {\n position: relative;\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);\n margin-left: calc(var(--design-unit) * -4px);\n margin-right: calc(var(--design-unit) * -4px);\n margin-bottom: 0;\n vertical-align: middle;\n color: var(--neutral-foreground-hint);\n }\n\n .nav-item.active h5,\n .nav-item h5:hover {\n color: var(--neutral-foreground-rest);\n background-color: var(--neutral-fill-stealth-rest);\n }\n\n .nav-item.active h5::after {\n content: ' ';\n width: 5px;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n\n --primary-gradient-angle: -172.6004deg;\n\n background-image: linear-gradient(\n var(--primary-gradient-angle),\n var(--accent-fill-rest) 0%,\n rgb(101 77 249 / 97%) 100%\n );\n box-sizing: border-box;\n }\n\n .nav-item .step-number {\n display: inline-block;\n width: calc(var(--base-height-multiplier) * 2px);\n height: calc(var(--base-height-multiplier) * 2px);\n vertical-align: middle;\n text-align: center;\n font-family: var(--body-font);\n font-size: var(--type-ramp-minus-2-font-size);\n line-height: var(--type-ramp-minus-2-line-height);\n color: var(--neutral-fill-stealth-hover);\n border-radius: 50%;\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-foreground-hint);\n }\n\n .nav-item.active .step-number,\n .nav-item h5:hover .step-number {\n color: var(--neutral-foreground-hint);\n border-color: var(--neutral-foreground-hint);\n }\n\n .nav-item .step-number.completed {\n border-color: var(--success-color);\n background-color: var(--success-color);\n }\n\n .body {\n background-color: var(--neutral-layer-4);\n padding-left: 0;\n padding-top: 0;\n box-shadow: none;\n }\n\n .description {\n color: var(--neutral-foreground-hint);\n font-size: var(--type-ramp-minus-2-font-size);\n font-weight: 700;\n line-height: normal;\n margin-left: calc((var(--design-unit) + 1) * 6px);\n }\n\n .divider {\n margin: calc(var(--design-unit) * 4px) 0;\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n }\n\n .nav-line.completed {\n margin: calc(var(--design-unit) * 1px) 0 calc(var(--design-unit) * 1px)\n calc(var(--design-unit) * 2px);\n border-left: calc(var(--stroke-width) * 2px) solid var(--success-color);\n }\n\n .context-container {\n gap: calc(var(--design-unit) * 3px);\n }\n\n .completed .context-container {\n padding: calc(var(--design-unit) * 2px) 0 calc(var(--design-unit) * 4px);\n }\n\n .context {\n color: var(--neutral-foreground-hint);\n font-size: calc(var(--type-ramp-minus-2-font-size) - 1px);\n font-weight: 700;\n line-height: calc(var(--type-ramp-minus-2-line-height) - calc(var(--design-unit) * 1px));\n max-height: 100px;\n margin: 0 0 0 calc(var(--design-unit) * 5px);\n overflow: auto;\n }\n\n .context b {\n color: var(--neutral-foreground-rest);\n }\n\n .label {\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-hint);\n margin-bottom: calc(var(--design-unit) * 1px);\n }\n\n ${radioGroupTag}::part(positioning-region) {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n width: 100%;\n }\n\n @media screen and (min-width: 1200px) {\n ${radioGroupTag}::part(positioning-region) {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n\n .radio-button {\n background-color: var(--neutral-layer-2);\n border-radius: calc((var(--control-corner-radius) - 2) * 1px);\n cursor: pointer;\n height: 42px;\n margin: 0;\n padding: 0 calc(var(--design-unit) * 2px);\n }\n\n .radio-button::part(label) {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .radio-button.active,\n .radio-button:hover {\n background-color: var(--neutral-layer-1);\n }\n\n ${radioTag}:hover::part(control) {\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-foreground-rest);\n }\n\n .arrow {\n align-self: center;\n justify-self: center;\n }\n\n ${textAreaTag}::part(control) {\n min-height: 170px;\n }\n\n .report-details,\n .data-sources {\n height: 100%;\n }\n\n .radio-buttons {\n max-height: 560px;\n overflow: auto;\n }\n`"
7515
7486
  }
7516
7487
  ],
7517
7488
  "exports": [
7518
7489
  {
7519
7490
  "kind": "js",
7520
- "name": "SelectFiltersStyles",
7491
+ "name": "WizardStyles",
7521
7492
  "declaration": {
7522
- "name": "SelectFiltersStyles",
7523
- "module": "src/old/components/select-filters/select-filters.styles.ts"
7493
+ "name": "WizardStyles",
7494
+ "module": "src/old/components/wizard/wizard.styles.ts"
7524
7495
  }
7525
7496
  }
7526
7497
  ]
7527
7498
  },
7528
7499
  {
7529
7500
  "kind": "javascript-module",
7530
- "path": "src/old/components/select-filters/select-filters.template.ts",
7501
+ "path": "src/old/components/wizard/wizard.template.ts",
7531
7502
  "declarations": [
7532
7503
  {
7533
7504
  "kind": "variable",
7534
- "name": "SelectFiltersTemplate",
7535
- "default": "html<SelectFilters>`\n <layout-two-pane-horizontal splitRatio=\"right-main\">\n ${allFilterFieldsTemplate} ${selectedFilterFieldsTemplate}\n </layout-two-pane-horizontal>\n`"
7505
+ "name": "WizardTemplate",
7506
+ "default": "html<Wizard>`\n <div class=\"wizard grid-container\">\n <${cardTag} class=\"card nav flex flex-column\" data-test-id=\"wizard-navigation-card\">\n <h3 class=\"section-title light-grey\">${(x) => (x.isEdit ? 'Edit' : 'Create')} Report</h3>\n ${repeat(\n (x) => x.content,\n html`\n <div\n class=\"nav-item${(x, c: ExecutionContext) =>\n c.index === c.parent.activeTab ? ' active' : ''}\"\n data-test-id=\"wizard-navigation-item\"\n >\n ${TitleTemplate}\n ${when(\n (x, c: ExecutionContext) => x.description && c.index === c.parent.activeTab,\n html`\n <p class=\"description\" data-test-id=\"wizard-navigation-item-description\">\n ${(x) => x.description}\n </p>\n `,\n )}\n ${TabOneContextTemplate}\n </div>\n `,\n { positioning: true, recycle: false },\n )}\n ${WizardNavigation} ${(x) => (x.debug ? Debug : null)}\n </${cardTag}>\n ${WizardContent}\n </div>\n`"
7536
7507
  }
7537
7508
  ],
7538
7509
  "exports": [
7539
7510
  {
7540
7511
  "kind": "js",
7541
- "name": "SelectFiltersTemplate",
7512
+ "name": "WizardTemplate",
7542
7513
  "declaration": {
7543
- "name": "SelectFiltersTemplate",
7544
- "module": "src/old/components/select-filters/select-filters.template.ts"
7514
+ "name": "WizardTemplate",
7515
+ "module": "src/old/components/wizard/wizard.template.ts"
7545
7516
  }
7546
7517
  }
7547
7518
  ]
7548
7519
  },
7549
7520
  {
7550
7521
  "kind": "javascript-module",
7551
- "path": "src/old/components/select-filters/select-filters.ts",
7522
+ "path": "src/old/components/wizard/wizard.ts",
7552
7523
  "declarations": [
7553
7524
  {
7554
7525
  "kind": "class",
7555
- "description": "Reporting filter selection grids.",
7556
- "name": "SelectFilters",
7526
+ "description": "Multi-step saved-report builder (legacy).",
7527
+ "name": "Wizard",
7557
7528
  "members": [
7558
7529
  {
7559
7530
  "kind": "field",
7560
- "name": "availableFieldsGrid",
7531
+ "name": "connect",
7561
7532
  "type": {
7562
- "text": "GridPro"
7563
- },
7564
- "privacy": "public"
7533
+ "text": "Connect"
7534
+ }
7565
7535
  },
7566
7536
  {
7567
7537
  "kind": "field",
7568
- "name": "selectedFiltersGrid",
7538
+ "name": "config",
7569
7539
  "type": {
7570
- "text": "GridPro"
7571
- },
7572
- "privacy": "public"
7540
+ "text": "ReportingConfig"
7541
+ }
7573
7542
  },
7574
7543
  {
7575
7544
  "kind": "field",
7576
- "name": "connect",
7545
+ "name": "debug",
7577
7546
  "type": {
7578
- "text": "Connect"
7579
- }
7547
+ "text": "boolean"
7548
+ },
7549
+ "default": "false"
7580
7550
  },
7581
7551
  {
7582
7552
  "kind": "field",
7583
- "name": "filtersToRemove",
7553
+ "name": "activeTab",
7584
7554
  "type": {
7585
- "text": "array"
7555
+ "text": "number"
7586
7556
  },
7587
- "default": "[]"
7557
+ "default": "0"
7588
7558
  },
7589
7559
  {
7590
7560
  "kind": "field",
7591
- "name": "selectedFields",
7561
+ "name": "datasourceOptions",
7592
7562
  "type": {
7593
- "text": "array"
7563
+ "text": "DatasourceOptions"
7594
7564
  },
7595
7565
  "default": "[]"
7596
7566
  },
7597
7567
  {
7598
7568
  "kind": "field",
7599
- "name": "selectedFilters",
7569
+ "name": "datasourceFieldOptions",
7600
7570
  "type": {
7601
- "text": "array"
7571
+ "text": "DatasourceFieldOptions"
7602
7572
  },
7603
7573
  "default": "[]"
7604
7574
  },
7605
7575
  {
7606
7576
  "kind": "field",
7607
- "name": "filterGridReady",
7577
+ "name": "isEdit",
7608
7578
  "type": {
7609
7579
  "text": "boolean"
7610
7580
  },
@@ -7612,171 +7582,321 @@
7612
7582
  },
7613
7583
  {
7614
7584
  "kind": "field",
7615
- "name": "config",
7585
+ "name": "fieldData",
7616
7586
  "type": {
7617
- "text": "ReportingConfig"
7618
- }
7587
+ "text": "ReportField[]"
7588
+ },
7589
+ "default": "[]"
7619
7590
  },
7620
7591
  {
7621
7592
  "kind": "field",
7622
- "name": "suppressGridRefresh",
7593
+ "name": "report"
7594
+ },
7595
+ {
7596
+ "kind": "field",
7597
+ "name": "saveReport"
7598
+ },
7599
+ {
7600
+ "kind": "field",
7601
+ "name": "content",
7623
7602
  "type": {
7624
- "text": "boolean"
7603
+ "text": "WizardContent"
7625
7604
  },
7626
- "privacy": "private",
7627
- "default": "false"
7605
+ "default": "[\n {\n title: 'Set up & Datasource',\n description:\n \"Please give your new report a name, brief description and select it's datasource to get started.\",\n },\n {\n title: 'Set fields',\n description: '',\n },\n {\n title: 'Apply filters',\n description: '(Optional)',\n },\n {\n title: 'Run report',\n description: '',\n },\n ]"
7628
7606
  },
7629
7607
  {
7630
7608
  "kind": "field",
7631
- "name": "makeSureFieldValueIsNotLost",
7632
- "privacy": "public"
7609
+ "name": "datasourceSettings"
7633
7610
  },
7634
7611
  {
7635
- "kind": "method",
7636
- "name": "selectedFiltersChanged",
7637
- "return": {
7638
- "type": {
7639
- "text": "void"
7640
- }
7641
- }
7612
+ "kind": "field",
7613
+ "name": "reportName",
7614
+ "type": {
7615
+ "text": "string"
7616
+ },
7617
+ "default": "''"
7642
7618
  },
7643
7619
  {
7644
- "kind": "method",
7645
- "name": "setSelectedFilters",
7646
- "privacy": "public",
7647
- "return": {
7648
- "type": {
7649
- "text": "void"
7650
- }
7620
+ "kind": "field",
7621
+ "name": "reportDescription",
7622
+ "type": {
7623
+ "text": "string"
7651
7624
  },
7652
- "parameters": [
7653
- {
7654
- "name": "filters",
7655
- "type": {
7656
- "text": "Array<Record<string, unknown>>"
7657
- }
7658
- }
7659
- ],
7660
- "description": "Update selected filters on parent component"
7625
+ "default": "''"
7661
7626
  },
7662
7627
  {
7663
- "kind": "method",
7664
- "name": "getNormalizedFilters",
7665
- "privacy": "public",
7666
- "return": {
7667
- "type": {
7668
- "text": ""
7669
- }
7628
+ "kind": "field",
7629
+ "name": "selectedDatasource",
7630
+ "type": {
7631
+ "text": "string"
7670
7632
  },
7671
- "description": "Get a simplified / normalized version of the filters\ne.g. ['REPORT_ID', 'REPORT_NAME']"
7633
+ "default": "null"
7672
7634
  },
7673
7635
  {
7674
- "kind": "method",
7675
- "name": "loadAvailableFieldsGrid",
7676
- "privacy": "public",
7677
- "return": {
7678
- "type": {
7679
- "text": "Promise<void>"
7680
- }
7636
+ "kind": "field",
7637
+ "name": "selectedFields",
7638
+ "type": {
7639
+ "text": "ReportField[]"
7681
7640
  },
7682
- "description": "Loads availableFieldsGrid with data from the field selection step"
7641
+ "default": "[]"
7683
7642
  },
7684
7643
  {
7685
- "kind": "method",
7686
- "name": "loadSelectedFiltersGrid",
7687
- "privacy": "public",
7688
- "return": {
7689
- "type": {
7690
- "text": "void"
7691
- }
7644
+ "kind": "field",
7645
+ "name": "selectedFilters",
7646
+ "type": {
7647
+ "text": "array"
7692
7648
  },
7693
- "description": "Loads the selectedFiltersGrid"
7649
+ "default": "[]"
7694
7650
  },
7695
7651
  {
7696
7652
  "kind": "field",
7697
- "name": "onFilterSelect",
7698
- "privacy": "public"
7653
+ "name": "previewData",
7654
+ "type": {
7655
+ "text": "any[]"
7656
+ },
7657
+ "default": "[]"
7699
7658
  },
7700
7659
  {
7701
7660
  "kind": "field",
7702
- "name": "onFilterValueChange",
7703
- "privacy": "public"
7661
+ "name": "previewGridColumns",
7662
+ "type": {
7663
+ "text": "array"
7664
+ },
7665
+ "default": "[]"
7704
7666
  },
7705
7667
  {
7706
7668
  "kind": "field",
7707
- "name": "removeSelectedFilters",
7708
- "privacy": "public",
7709
- "description": "Remove fields from selected filters grid and deselect them from the available fields grid"
7669
+ "name": "isFormValid",
7670
+ "readonly": true
7671
+ },
7672
+ {
7673
+ "kind": "field",
7674
+ "name": "viewTemplate",
7675
+ "readonly": true
7676
+ },
7677
+ {
7678
+ "kind": "field",
7679
+ "name": "nextButton",
7680
+ "type": {
7681
+ "text": "Button"
7682
+ }
7710
7683
  },
7711
7684
  {
7712
7685
  "kind": "method",
7713
- "name": "selectDefaultFilters",
7714
- "privacy": "public",
7715
- "return": {
7716
- "type": {
7717
- "text": "void"
7686
+ "name": "reportChanged",
7687
+ "parameters": [
7688
+ {
7689
+ "name": "old"
7690
+ },
7691
+ {
7692
+ "name": "newValue"
7718
7693
  }
7719
- },
7720
- "description": "Select default filters"
7694
+ ],
7695
+ "description": "When report variable changes handle"
7696
+ },
7697
+ {
7698
+ "kind": "method",
7699
+ "name": "setFields",
7700
+ "privacy": "public",
7701
+ "parameters": [
7702
+ {
7703
+ "name": "fields",
7704
+ "description": "array"
7705
+ }
7706
+ ],
7707
+ "description": "Set selected fields"
7708
+ },
7709
+ {
7710
+ "kind": "method",
7711
+ "name": "selectedDatasourceChanged",
7712
+ "parameters": [
7713
+ {
7714
+ "name": "old"
7715
+ },
7716
+ {
7717
+ "name": "newValue"
7718
+ }
7719
+ ],
7720
+ "description": "When report variable changes handle"
7721
+ },
7722
+ {
7723
+ "kind": "method",
7724
+ "name": "fieldDataChanged",
7725
+ "description": "Make sure to update selected fields when field data changes"
7726
+ },
7727
+ {
7728
+ "kind": "field",
7729
+ "name": "getNormalizedSelectedFields",
7730
+ "privacy": "public",
7731
+ "description": "Get a simplified / normalized version of the fields\ne.g. ['REPORT_ID', 'REPORT_NAME']",
7732
+ "return": {
7733
+ "type": {
7734
+ "text": ""
7735
+ }
7736
+ }
7737
+ },
7738
+ {
7739
+ "kind": "field",
7740
+ "name": "getNormalizedSelectedFilters",
7741
+ "privacy": "public",
7742
+ "description": "Get normalized selected filters context",
7743
+ "return": {
7744
+ "type": {
7745
+ "text": ""
7746
+ }
7747
+ }
7748
+ },
7749
+ {
7750
+ "kind": "method",
7751
+ "name": "getDatasources",
7752
+ "privacy": "private",
7753
+ "description": "Fetch a list of datasources"
7754
+ },
7755
+ {
7756
+ "kind": "method",
7757
+ "name": "fetchFieldsFromDatasource",
7758
+ "privacy": "private",
7759
+ "return": {
7760
+ "type": {
7761
+ "text": "Promise<any>"
7762
+ }
7763
+ },
7764
+ "description": "Fetch data from the provided datasource"
7765
+ },
7766
+ {
7767
+ "kind": "field",
7768
+ "name": "onDatasourceChange",
7769
+ "privacy": "public",
7770
+ "description": "On datasource radio group change event handler",
7771
+ "parameters": [
7772
+ {
7773
+ "description": "Number",
7774
+ "name": "selection"
7775
+ }
7776
+ ]
7777
+ },
7778
+ {
7779
+ "kind": "field",
7780
+ "name": "getData",
7781
+ "privacy": "public",
7782
+ "description": "Get report context data",
7783
+ "return": {
7784
+ "type": {
7785
+ "text": ""
7786
+ }
7787
+ }
7788
+ },
7789
+ {
7790
+ "kind": "field",
7791
+ "name": "setActiveTab",
7792
+ "privacy": "public",
7793
+ "description": "Set the current active tab",
7794
+ "parameters": [
7795
+ {
7796
+ "description": "Number",
7797
+ "name": "tab"
7798
+ }
7799
+ ]
7800
+ },
7801
+ {
7802
+ "kind": "field",
7803
+ "name": "selectedGridId",
7804
+ "privacy": "private"
7805
+ },
7806
+ {
7807
+ "kind": "method",
7808
+ "name": "wizardStepKeydownHandler",
7809
+ "parameters": [
7810
+ {
7811
+ "name": "event",
7812
+ "type": {
7813
+ "text": "KeyboardEvent"
7814
+ }
7815
+ }
7816
+ ]
7721
7817
  }
7722
7818
  ],
7723
7819
  "events": [
7724
7820
  {
7725
- "description": "Fired when selected filters change. detail: `SelectedFiltersEventDetail`",
7726
- "name": "setSelectedFilters"
7821
+ "description": "Fired when a user notification should be shown. detail: `ReportNotification`",
7822
+ "name": "notify"
7727
7823
  }
7728
7824
  ],
7729
7825
  "superclass": {
7730
7826
  "name": "GenesisElement",
7731
7827
  "package": "@genesislcap/web-core"
7732
- },
7733
- "tagName": "reporting-select-filters",
7734
- "customElement": true
7828
+ }
7735
7829
  }
7736
7830
  ],
7737
7831
  "exports": [
7738
7832
  {
7739
7833
  "kind": "js",
7740
- "name": "SelectFilters",
7834
+ "name": "Wizard",
7741
7835
  "declaration": {
7742
- "name": "SelectFilters",
7743
- "module": "src/old/components/select-filters/select-filters.ts"
7836
+ "name": "Wizard",
7837
+ "module": "src/old/components/wizard/wizard.ts"
7744
7838
  }
7745
7839
  },
7746
7840
  {
7747
7841
  "kind": "custom-element-definition",
7748
- "name": "reporting-select-filters",
7749
7842
  "declaration": {
7750
- "name": "SelectFilters",
7751
- "module": "src/old/components/select-filters/select-filters.ts"
7843
+ "name": "Wizard",
7844
+ "module": "src/old/components/wizard/wizard.ts"
7752
7845
  }
7753
7846
  }
7754
7847
  ]
7755
7848
  },
7756
7849
  {
7757
7850
  "kind": "javascript-module",
7758
- "path": "src/old/components/wizard/debug.ts",
7851
+ "path": "src/old/components/wizard/wizard.types.ts",
7852
+ "declarations": [],
7853
+ "exports": []
7854
+ },
7855
+ {
7856
+ "kind": "javascript-module",
7857
+ "path": "src/old/components/select-filters/columns.ts",
7759
7858
  "declarations": [
7760
7859
  {
7761
7860
  "kind": "variable",
7762
- "name": "Debug",
7763
- "default": "html`\n <div class=\"flex flex-column gap-1 overflow-auto\">\n <div>\n <h5>Report Name</h5>\n <div>${(x) => x.reportName}</div>\n </div>\n\n <div>\n <h5>Report Description</h5>\n <div>${(x) => x.reportDescription}</div>\n </div>\n\n <div>\n <h5>Selected Datasource</h5>\n <div>${(x) => x.selectedDatasource}</div>\n </div>\n\n <div>\n <h5>Selected Fields</h5>\n <div><pre>${(x) => JSON.stringify(x.selectedFields, undefined, 2)}</pre></div>\n </div>\n\n <div>\n <h5>Selected Filters</h5>\n <div><pre>${(x) => JSON.stringify(x.selectedFilters, undefined, 2)}</pre></div>\n </div>\n\n <div>\n <h5>Field Data</h5>\n <div><pre>${(x) => JSON.stringify(x.fieldData, undefined, 2)}</pre></div>\n </div>\n </div>\n`"
7861
+ "name": "AVAILABLE_FIELDS_CONFIG",
7862
+ "type": {
7863
+ "text": "object"
7864
+ },
7865
+ "default": "{\n colDefs: [\n {\n cellRenderer: 'row-select',\n checkboxSelection: false,\n filter: false,\n headerCheckboxSelection: true,\n sortable: false,\n width: 60,\n },\n {\n field: 'displayName',\n headerName: 'Field Name',\n },\n ],\n gridOptions: {\n ...defaultRowConfig,\n components: {\n 'row-select': RowSelectRenderer,\n },\n defaultColDef: {\n filter: false,\n floatingFilter: false,\n sortable: false,\n suppressMenu: false,\n resizable: false,\n },\n context: {\n ariaLabelField: 'displayName',\n },\n debug: true,\n },\n}",
7866
+ "description": "Field selection grid config"
7867
+ },
7868
+ {
7869
+ "kind": "variable",
7870
+ "name": "SELECTED_FILTERS_CONFIG",
7871
+ "type": {
7872
+ "text": "object"
7873
+ },
7874
+ "default": "{\n colDefs: [\n {\n cellRenderer: 'row-select',\n checkboxSelection: false,\n headerCheckboxSelection: true,\n width: 60,\n },\n {\n field: 'displayName',\n headerName: 'Field Name',\n },\n ],\n gridOptions: {\n ...defaultRowConfig,\n components: {\n 'row-select': RowSelectRenderer,\n 'filter-value': FilterValueRenderer,\n },\n defaultColDef: {\n ...defaultCellConfig,\n filter: false,\n resizable: false,\n sortable: false,\n suppressMenu: true,\n },\n context: {\n ariaLabelField: 'displayName',\n },\n suppressContextMenu: true,\n suppressRowTransform: true,\n debug: true,\n },\n}",
7875
+ "description": "Columns main dummy data"
7764
7876
  }
7765
7877
  ],
7766
7878
  "exports": [
7767
7879
  {
7768
7880
  "kind": "js",
7769
- "name": "Debug",
7881
+ "name": "AVAILABLE_FIELDS_CONFIG",
7770
7882
  "declaration": {
7771
- "name": "Debug",
7772
- "module": "src/old/components/wizard/debug.ts"
7883
+ "name": "AVAILABLE_FIELDS_CONFIG",
7884
+ "module": "src/old/components/select-filters/columns.ts"
7885
+ }
7886
+ },
7887
+ {
7888
+ "kind": "js",
7889
+ "name": "SELECTED_FILTERS_CONFIG",
7890
+ "declaration": {
7891
+ "name": "SELECTED_FILTERS_CONFIG",
7892
+ "module": "src/old/components/select-filters/columns.ts"
7773
7893
  }
7774
7894
  }
7775
7895
  ]
7776
7896
  },
7777
7897
  {
7778
7898
  "kind": "javascript-module",
7779
- "path": "src/old/components/wizard/index.ts",
7899
+ "path": "src/old/components/select-filters/index.ts",
7780
7900
  "declarations": [],
7781
7901
  "exports": [
7782
7902
  {
@@ -7784,7 +7904,7 @@
7784
7904
  "name": "*",
7785
7905
  "declaration": {
7786
7906
  "name": "*",
7787
- "package": "./wizard"
7907
+ "package": "./select-filters"
7788
7908
  }
7789
7909
  },
7790
7910
  {
@@ -7792,173 +7912,106 @@
7792
7912
  "name": "*",
7793
7913
  "declaration": {
7794
7914
  "name": "*",
7795
- "package": "./wizard.styles"
7915
+ "package": "./select-filters.template"
7916
+ }
7917
+ },
7918
+ {
7919
+ "kind": "js",
7920
+ "name": "*",
7921
+ "declaration": {
7922
+ "name": "*",
7923
+ "package": "./select-filters.styles"
7796
7924
  }
7797
7925
  }
7798
7926
  ]
7799
7927
  },
7800
7928
  {
7801
7929
  "kind": "javascript-module",
7802
- "path": "src/old/components/wizard/wizard.styles.ts",
7930
+ "path": "src/old/components/select-filters/select-filters.styles.ts",
7803
7931
  "declarations": [
7804
7932
  {
7805
7933
  "kind": "variable",
7806
- "name": "WizardStyles",
7807
- "default": "css`\n ${normalizeStyles}\n ${helperStyles}\n :host {\n width: 100%;\n }\n\n .grid-container {\n display: grid;\n gap: calc(var(--design-unit) * 4px);\n grid-template-columns: minmax(250px, 10%) 1fr;\n grid-auto-rows: 1fr;\n margin: calc(var(--design-unit) * 4px) 0;\n height: 95%;\n }\n\n .nav {\n max-width: 248px;\n background-color: var(--neutral-layer-2);\n overflow-y: auto;\n }\n\n .nav-item h5 {\n position: relative;\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);\n margin-left: calc(var(--design-unit) * -4px);\n margin-right: calc(var(--design-unit) * -4px);\n margin-bottom: 0;\n vertical-align: middle;\n color: var(--neutral-foreground-hint);\n }\n\n .nav-item.active h5,\n .nav-item h5:hover {\n color: var(--neutral-foreground-rest);\n background-color: var(--neutral-fill-stealth-rest);\n }\n\n .nav-item.active h5::after {\n content: ' ';\n width: 5px;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n\n --primary-gradient-angle: -172.6004deg;\n\n background-image: linear-gradient(\n var(--primary-gradient-angle),\n var(--accent-fill-rest) 0%,\n rgb(101 77 249 / 97%) 100%\n );\n box-sizing: border-box;\n }\n\n .nav-item .step-number {\n display: inline-block;\n width: calc(var(--base-height-multiplier) * 2px);\n height: calc(var(--base-height-multiplier) * 2px);\n vertical-align: middle;\n text-align: center;\n font-family: var(--body-font);\n font-size: var(--type-ramp-minus-2-font-size);\n line-height: var(--type-ramp-minus-2-line-height);\n color: var(--neutral-fill-stealth-hover);\n border-radius: 50%;\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-foreground-hint);\n }\n\n .nav-item.active .step-number,\n .nav-item h5:hover .step-number {\n color: var(--neutral-foreground-hint);\n border-color: var(--neutral-foreground-hint);\n }\n\n .nav-item .step-number.completed {\n border-color: var(--success-color);\n background-color: var(--success-color);\n }\n\n .body {\n background-color: var(--neutral-layer-4);\n padding-left: 0;\n padding-top: 0;\n box-shadow: none;\n }\n\n .description {\n color: var(--neutral-foreground-hint);\n font-size: var(--type-ramp-minus-2-font-size);\n font-weight: 700;\n line-height: normal;\n margin-left: calc((var(--design-unit) + 1) * 6px);\n }\n\n .divider {\n margin: calc(var(--design-unit) * 4px) 0;\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n }\n\n .nav-line.completed {\n margin: calc(var(--design-unit) * 1px) 0 calc(var(--design-unit) * 1px)\n calc(var(--design-unit) * 2px);\n border-left: calc(var(--stroke-width) * 2px) solid var(--success-color);\n }\n\n .context-container {\n gap: calc(var(--design-unit) * 3px);\n }\n\n .completed .context-container {\n padding: calc(var(--design-unit) * 2px) 0 calc(var(--design-unit) * 4px);\n }\n\n .context {\n color: var(--neutral-foreground-hint);\n font-size: calc(var(--type-ramp-minus-2-font-size) - 1px);\n font-weight: 700;\n line-height: calc(var(--type-ramp-minus-2-line-height) - calc(var(--design-unit) * 1px));\n max-height: 100px;\n margin: 0 0 0 calc(var(--design-unit) * 5px);\n overflow: auto;\n }\n\n .context b {\n color: var(--neutral-foreground-rest);\n }\n\n .label {\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-hint);\n margin-bottom: calc(var(--design-unit) * 1px);\n }\n\n ${radioGroupTag}::part(positioning-region) {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n width: 100%;\n }\n\n @media screen and (min-width: 1200px) {\n ${radioGroupTag}::part(positioning-region) {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n\n .radio-button {\n background-color: var(--neutral-layer-2);\n border-radius: calc((var(--control-corner-radius) - 2) * 1px);\n cursor: pointer;\n height: 42px;\n margin: 0;\n padding: 0 calc(var(--design-unit) * 2px);\n }\n\n .radio-button::part(label) {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .radio-button.active,\n .radio-button:hover {\n background-color: var(--neutral-layer-1);\n }\n\n ${radioTag}:hover::part(control) {\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-foreground-rest);\n }\n\n .arrow {\n align-self: center;\n justify-self: center;\n }\n\n ${textAreaTag}::part(control) {\n min-height: 170px;\n }\n\n .report-details,\n .data-sources {\n height: 100%;\n }\n\n .radio-buttons {\n max-height: 560px;\n overflow: auto;\n }\n`"
7934
+ "name": "SelectFiltersStyles",
7935
+ "default": "css`\n ${helperStyles}\n ${normalizeStyles}\n :host {\n --select-renderer-max-width: 150px;\n }\n\n .select-filters {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n .all-fields,\n .selected-filters {\n height: 100%;\n }\n`"
7808
7936
  }
7809
7937
  ],
7810
7938
  "exports": [
7811
7939
  {
7812
7940
  "kind": "js",
7813
- "name": "WizardStyles",
7941
+ "name": "SelectFiltersStyles",
7814
7942
  "declaration": {
7815
- "name": "WizardStyles",
7816
- "module": "src/old/components/wizard/wizard.styles.ts"
7943
+ "name": "SelectFiltersStyles",
7944
+ "module": "src/old/components/select-filters/select-filters.styles.ts"
7817
7945
  }
7818
7946
  }
7819
7947
  ]
7820
7948
  },
7821
7949
  {
7822
7950
  "kind": "javascript-module",
7823
- "path": "src/old/components/wizard/wizard.template.ts",
7951
+ "path": "src/old/components/select-filters/select-filters.template.ts",
7824
7952
  "declarations": [
7825
7953
  {
7826
7954
  "kind": "variable",
7827
- "name": "WizardTemplate",
7828
- "default": "html<Wizard>`\n <div class=\"wizard grid-container\">\n <${cardTag} class=\"card nav flex flex-column\" data-test-id=\"wizard-navigation-card\">\n <h3 class=\"section-title light-grey\">${(x) => (x.isEdit ? 'Edit' : 'Create')} Report</h3>\n ${repeat(\n (x) => x.content,\n html`\n <div\n class=\"nav-item${(x, c: ExecutionContext) =>\n c.index === c.parent.activeTab ? ' active' : ''}\"\n data-test-id=\"wizard-navigation-item\"\n >\n ${TitleTemplate}\n ${when(\n (x, c: ExecutionContext) => x.description && c.index === c.parent.activeTab,\n html`\n <p class=\"description\" data-test-id=\"wizard-navigation-item-description\">\n ${(x) => x.description}\n </p>\n `,\n )}\n ${TabOneContextTemplate}\n </div>\n `,\n { positioning: true, recycle: false },\n )}\n ${WizardNavigation} ${(x) => (x.debug ? Debug : null)}\n </${cardTag}>\n ${WizardContent}\n </div>\n`"
7955
+ "name": "SelectFiltersTemplate",
7956
+ "default": "html<SelectFilters>`\n <layout-two-pane-horizontal splitRatio=\"right-main\">\n ${allFilterFieldsTemplate} ${selectedFilterFieldsTemplate}\n </layout-two-pane-horizontal>\n`"
7829
7957
  }
7830
7958
  ],
7831
7959
  "exports": [
7832
7960
  {
7833
7961
  "kind": "js",
7834
- "name": "WizardTemplate",
7962
+ "name": "SelectFiltersTemplate",
7835
7963
  "declaration": {
7836
- "name": "WizardTemplate",
7837
- "module": "src/old/components/wizard/wizard.template.ts"
7964
+ "name": "SelectFiltersTemplate",
7965
+ "module": "src/old/components/select-filters/select-filters.template.ts"
7838
7966
  }
7839
7967
  }
7840
7968
  ]
7841
7969
  },
7842
7970
  {
7843
7971
  "kind": "javascript-module",
7844
- "path": "src/old/components/wizard/wizard.ts",
7972
+ "path": "src/old/components/select-filters/select-filters.ts",
7845
7973
  "declarations": [
7846
7974
  {
7847
7975
  "kind": "class",
7848
- "description": "Multi-step saved-report builder (legacy).",
7849
- "name": "Wizard",
7976
+ "description": "Reporting filter selection grids.",
7977
+ "name": "SelectFilters",
7850
7978
  "members": [
7851
7979
  {
7852
7980
  "kind": "field",
7853
- "name": "connect",
7854
- "type": {
7855
- "text": "Connect"
7856
- }
7857
- },
7858
- {
7859
- "kind": "field",
7860
- "name": "config",
7861
- "type": {
7862
- "text": "ReportingConfig"
7863
- }
7864
- },
7865
- {
7866
- "kind": "field",
7867
- "name": "debug",
7868
- "type": {
7869
- "text": "boolean"
7870
- },
7871
- "default": "false"
7872
- },
7873
- {
7874
- "kind": "field",
7875
- "name": "activeTab",
7876
- "type": {
7877
- "text": "number"
7878
- },
7879
- "default": "0"
7880
- },
7881
- {
7882
- "kind": "field",
7883
- "name": "datasourceOptions",
7981
+ "name": "availableFieldsGrid",
7884
7982
  "type": {
7885
- "text": "DatasourceOptions"
7983
+ "text": "GridPro"
7886
7984
  },
7887
- "default": "[]"
7985
+ "privacy": "public"
7888
7986
  },
7889
7987
  {
7890
7988
  "kind": "field",
7891
- "name": "datasourceFieldOptions",
7989
+ "name": "selectedFiltersGrid",
7892
7990
  "type": {
7893
- "text": "DatasourceFieldOptions"
7991
+ "text": "GridPro"
7894
7992
  },
7895
- "default": "[]"
7993
+ "privacy": "public"
7896
7994
  },
7897
7995
  {
7898
7996
  "kind": "field",
7899
- "name": "isEdit",
7997
+ "name": "connect",
7900
7998
  "type": {
7901
- "text": "boolean"
7902
- },
7903
- "default": "false"
7999
+ "text": "Connect"
8000
+ }
7904
8001
  },
7905
8002
  {
7906
8003
  "kind": "field",
7907
- "name": "fieldData",
8004
+ "name": "filtersToRemove",
7908
8005
  "type": {
7909
- "text": "ReportField[]"
8006
+ "text": "array"
7910
8007
  },
7911
8008
  "default": "[]"
7912
8009
  },
7913
- {
7914
- "kind": "field",
7915
- "name": "report"
7916
- },
7917
- {
7918
- "kind": "field",
7919
- "name": "saveReport"
7920
- },
7921
- {
7922
- "kind": "field",
7923
- "name": "content",
7924
- "type": {
7925
- "text": "WizardContent"
7926
- },
7927
- "default": "[\n {\n title: 'Set up & Datasource',\n description:\n \"Please give your new report a name, brief description and select it's datasource to get started.\",\n },\n {\n title: 'Set fields',\n description: '',\n },\n {\n title: 'Apply filters',\n description: '(Optional)',\n },\n {\n title: 'Run report',\n description: '',\n },\n ]"
7928
- },
7929
- {
7930
- "kind": "field",
7931
- "name": "datasourceSettings"
7932
- },
7933
- {
7934
- "kind": "field",
7935
- "name": "reportName",
7936
- "type": {
7937
- "text": "string"
7938
- },
7939
- "default": "''"
7940
- },
7941
- {
7942
- "kind": "field",
7943
- "name": "reportDescription",
7944
- "type": {
7945
- "text": "string"
7946
- },
7947
- "default": "''"
7948
- },
7949
- {
7950
- "kind": "field",
7951
- "name": "selectedDatasource",
7952
- "type": {
7953
- "text": "string"
7954
- },
7955
- "default": "null"
7956
- },
7957
8010
  {
7958
8011
  "kind": "field",
7959
8012
  "name": "selectedFields",
7960
8013
  "type": {
7961
- "text": "ReportField[]"
8014
+ "text": "array"
7962
8015
  },
7963
8016
  "default": "[]"
7964
8017
  },
@@ -7972,208 +8025,155 @@
7972
8025
  },
7973
8026
  {
7974
8027
  "kind": "field",
7975
- "name": "previewData",
8028
+ "name": "filterGridReady",
7976
8029
  "type": {
7977
- "text": "any[]"
8030
+ "text": "boolean"
7978
8031
  },
7979
- "default": "[]"
8032
+ "default": "false"
7980
8033
  },
7981
8034
  {
7982
8035
  "kind": "field",
7983
- "name": "previewGridColumns",
8036
+ "name": "config",
7984
8037
  "type": {
7985
- "text": "array"
7986
- },
7987
- "default": "[]"
7988
- },
7989
- {
7990
- "kind": "field",
7991
- "name": "isFormValid",
7992
- "readonly": true
8038
+ "text": "ReportingConfig"
8039
+ }
7993
8040
  },
7994
8041
  {
7995
8042
  "kind": "field",
7996
- "name": "viewTemplate",
7997
- "readonly": true
8043
+ "name": "suppressGridRefresh",
8044
+ "type": {
8045
+ "text": "boolean"
8046
+ },
8047
+ "privacy": "private",
8048
+ "default": "false"
7998
8049
  },
7999
8050
  {
8000
8051
  "kind": "field",
8001
- "name": "nextButton",
8002
- "type": {
8003
- "text": "Button"
8004
- }
8052
+ "name": "makeSureFieldValueIsNotLost",
8053
+ "privacy": "public"
8005
8054
  },
8006
8055
  {
8007
8056
  "kind": "method",
8008
- "name": "reportChanged",
8009
- "parameters": [
8010
- {
8011
- "name": "old"
8012
- },
8013
- {
8014
- "name": "newValue"
8057
+ "name": "selectedFiltersChanged",
8058
+ "return": {
8059
+ "type": {
8060
+ "text": "void"
8015
8061
  }
8016
- ],
8017
- "description": "When report variable changes handle"
8062
+ }
8018
8063
  },
8019
8064
  {
8020
8065
  "kind": "method",
8021
- "name": "setFields",
8066
+ "name": "setSelectedFilters",
8022
8067
  "privacy": "public",
8023
- "parameters": [
8024
- {
8025
- "name": "fields",
8026
- "description": "array"
8068
+ "return": {
8069
+ "type": {
8070
+ "text": "void"
8027
8071
  }
8028
- ],
8029
- "description": "Set selected fields"
8030
- },
8031
- {
8032
- "kind": "method",
8033
- "name": "selectedDatasourceChanged",
8072
+ },
8034
8073
  "parameters": [
8035
8074
  {
8036
- "name": "old"
8037
- },
8038
- {
8039
- "name": "newValue"
8075
+ "name": "filters",
8076
+ "type": {
8077
+ "text": "Array<Record<string, unknown>>"
8078
+ }
8040
8079
  }
8041
8080
  ],
8042
- "description": "When report variable changes handle"
8081
+ "description": "Update selected filters on parent component"
8043
8082
  },
8044
8083
  {
8045
8084
  "kind": "method",
8046
- "name": "fieldDataChanged",
8047
- "description": "Make sure to update selected fields when field data changes"
8048
- },
8049
- {
8050
- "kind": "field",
8051
- "name": "getNormalizedSelectedFields",
8085
+ "name": "getNormalizedFilters",
8052
8086
  "privacy": "public",
8053
- "description": "Get a simplified / normalized version of the fields\ne.g. ['REPORT_ID', 'REPORT_NAME']",
8054
8087
  "return": {
8055
8088
  "type": {
8056
8089
  "text": ""
8057
8090
  }
8058
- }
8091
+ },
8092
+ "description": "Get a simplified / normalized version of the filters\ne.g. ['REPORT_ID', 'REPORT_NAME']"
8059
8093
  },
8060
8094
  {
8061
- "kind": "field",
8062
- "name": "getNormalizedSelectedFilters",
8095
+ "kind": "method",
8096
+ "name": "loadAvailableFieldsGrid",
8063
8097
  "privacy": "public",
8064
- "description": "Get normalized selected filters context",
8065
8098
  "return": {
8066
8099
  "type": {
8067
- "text": ""
8100
+ "text": "Promise<void>"
8068
8101
  }
8069
- }
8070
- },
8071
- {
8072
- "kind": "method",
8073
- "name": "getDatasources",
8074
- "privacy": "private",
8075
- "description": "Fetch a list of datasources"
8102
+ },
8103
+ "description": "Loads availableFieldsGrid with data from the field selection step"
8076
8104
  },
8077
8105
  {
8078
8106
  "kind": "method",
8079
- "name": "fetchFieldsFromDatasource",
8080
- "privacy": "private",
8107
+ "name": "loadSelectedFiltersGrid",
8108
+ "privacy": "public",
8081
8109
  "return": {
8082
8110
  "type": {
8083
- "text": "Promise<any>"
8111
+ "text": "void"
8084
8112
  }
8085
8113
  },
8086
- "description": "Fetch data from the provided datasource"
8114
+ "description": "Loads the selectedFiltersGrid"
8087
8115
  },
8088
8116
  {
8089
8117
  "kind": "field",
8090
- "name": "onDatasourceChange",
8091
- "privacy": "public",
8092
- "description": "On datasource radio group change event handler",
8093
- "parameters": [
8094
- {
8095
- "description": "Number",
8096
- "name": "selection"
8097
- }
8098
- ]
8118
+ "name": "onFilterSelect",
8119
+ "privacy": "public"
8099
8120
  },
8100
8121
  {
8101
8122
  "kind": "field",
8102
- "name": "getData",
8103
- "privacy": "public",
8104
- "description": "Get report context data",
8105
- "return": {
8106
- "type": {
8107
- "text": ""
8108
- }
8109
- }
8123
+ "name": "onFilterValueChange",
8124
+ "privacy": "public"
8110
8125
  },
8111
8126
  {
8112
8127
  "kind": "field",
8113
- "name": "setActiveTab",
8128
+ "name": "removeSelectedFilters",
8114
8129
  "privacy": "public",
8115
- "description": "Set the current active tab",
8116
- "parameters": [
8117
- {
8118
- "description": "Number",
8119
- "name": "tab"
8120
- }
8121
- ]
8122
- },
8123
- {
8124
- "kind": "field",
8125
- "name": "selectedGridId",
8126
- "privacy": "private"
8130
+ "description": "Remove fields from selected filters grid and deselect them from the available fields grid"
8127
8131
  },
8128
8132
  {
8129
8133
  "kind": "method",
8130
- "name": "wizardStepKeydownHandler",
8131
- "parameters": [
8132
- {
8133
- "name": "event",
8134
- "type": {
8135
- "text": "KeyboardEvent"
8136
- }
8134
+ "name": "selectDefaultFilters",
8135
+ "privacy": "public",
8136
+ "return": {
8137
+ "type": {
8138
+ "text": "void"
8137
8139
  }
8138
- ]
8140
+ },
8141
+ "description": "Select default filters"
8139
8142
  }
8140
8143
  ],
8141
8144
  "events": [
8142
8145
  {
8143
- "description": "Fired when a user notification should be shown. detail: `ReportNotification`",
8144
- "name": "notify"
8146
+ "description": "Fired when selected filters change. detail: `SelectedFiltersEventDetail`",
8147
+ "name": "setSelectedFilters"
8145
8148
  }
8146
8149
  ],
8147
8150
  "superclass": {
8148
8151
  "name": "GenesisElement",
8149
8152
  "package": "@genesislcap/web-core"
8150
- }
8153
+ },
8154
+ "tagName": "reporting-select-filters",
8155
+ "customElement": true
8151
8156
  }
8152
8157
  ],
8153
8158
  "exports": [
8154
8159
  {
8155
8160
  "kind": "js",
8156
- "name": "Wizard",
8161
+ "name": "SelectFilters",
8157
8162
  "declaration": {
8158
- "name": "Wizard",
8159
- "module": "src/old/components/wizard/wizard.ts"
8163
+ "name": "SelectFilters",
8164
+ "module": "src/old/components/select-filters/select-filters.ts"
8160
8165
  }
8161
8166
  },
8162
8167
  {
8163
8168
  "kind": "custom-element-definition",
8169
+ "name": "reporting-select-filters",
8164
8170
  "declaration": {
8165
- "name": "Wizard",
8166
- "module": "src/old/components/wizard/wizard.ts"
8171
+ "name": "SelectFilters",
8172
+ "module": "src/old/components/select-filters/select-filters.ts"
8167
8173
  }
8168
8174
  }
8169
8175
  ]
8170
8176
  },
8171
- {
8172
- "kind": "javascript-module",
8173
- "path": "src/old/components/wizard/wizard.types.ts",
8174
- "declarations": [],
8175
- "exports": []
8176
- },
8177
8177
  {
8178
8178
  "kind": "javascript-module",
8179
8179
  "path": "src/new/main/edit-config/base-config/base-config.styles.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-reporting-ui",
3
3
  "description": "Genesis PBC Reporting UI",
4
- "version": "15.14.2",
4
+ "version": "15.15.0-FUI-2603.4",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",
@@ -86,32 +86,32 @@
86
86
  "@ag-grid-community/core": "29.2.0"
87
87
  },
88
88
  "dependencies": {
89
- "@genesislcap/foundation-comms": "15.14.2",
90
- "@genesislcap/foundation-entity-management": "15.14.2",
91
- "@genesislcap/foundation-events": "15.14.2",
92
- "@genesislcap/foundation-forms": "15.14.2",
93
- "@genesislcap/foundation-logger": "15.14.2",
94
- "@genesislcap/foundation-notifications": "15.14.2",
95
- "@genesislcap/foundation-ui": "15.14.2",
96
- "@genesislcap/foundation-user": "15.14.2",
97
- "@genesislcap/foundation-utils": "15.14.2",
98
- "@genesislcap/foundation-zero": "15.14.2",
99
- "@genesislcap/foundation-zero-grid-pro": "15.14.2",
100
- "@genesislcap/grid-pro": "15.14.2",
101
- "@genesislcap/rapid-design-system": "15.14.2",
102
- "@genesislcap/rapid-grid-pro": "15.14.2",
103
- "@genesislcap/web-core": "15.14.2",
89
+ "@genesislcap/foundation-comms": "15.15.0-FUI-2603.4",
90
+ "@genesislcap/foundation-entity-management": "15.15.0-FUI-2603.4",
91
+ "@genesislcap/foundation-events": "15.15.0-FUI-2603.4",
92
+ "@genesislcap/foundation-forms": "15.15.0-FUI-2603.4",
93
+ "@genesislcap/foundation-logger": "15.15.0-FUI-2603.4",
94
+ "@genesislcap/foundation-notifications": "15.15.0-FUI-2603.4",
95
+ "@genesislcap/foundation-ui": "15.15.0-FUI-2603.4",
96
+ "@genesislcap/foundation-user": "15.15.0-FUI-2603.4",
97
+ "@genesislcap/foundation-utils": "15.15.0-FUI-2603.4",
98
+ "@genesislcap/foundation-zero": "15.15.0-FUI-2603.4",
99
+ "@genesislcap/foundation-zero-grid-pro": "15.15.0-FUI-2603.4",
100
+ "@genesislcap/grid-pro": "15.15.0-FUI-2603.4",
101
+ "@genesislcap/rapid-design-system": "15.15.0-FUI-2603.4",
102
+ "@genesislcap/rapid-grid-pro": "15.15.0-FUI-2603.4",
103
+ "@genesislcap/web-core": "15.15.0-FUI-2603.4",
104
104
  "@reduxjs/toolkit": "^2.2.5",
105
105
  "@types/node": "^22.10.2",
106
106
  "change-case": "^5.4.3",
107
107
  "lodash": "^4.17.21"
108
108
  },
109
109
  "devDependencies": {
110
- "@genesislcap/eslint-config": "15.14.2",
111
- "@genesislcap/foundation-testing": "15.14.2",
112
- "@genesislcap/genx": "15.14.2",
113
- "@genesislcap/prettier-config": "15.14.2",
114
- "@genesislcap/stylelint-config": "15.14.2",
110
+ "@genesislcap/eslint-config": "15.15.0-FUI-2603.4",
111
+ "@genesislcap/foundation-testing": "15.15.0-FUI-2603.4",
112
+ "@genesislcap/genx": "15.15.0-FUI-2603.4",
113
+ "@genesislcap/prettier-config": "15.15.0-FUI-2603.4",
114
+ "@genesislcap/stylelint-config": "15.15.0-FUI-2603.4",
115
115
  "@types/json-schema": "^7.0.11",
116
116
  "playwright-lighthouse": "^4.0.0",
117
117
  "rimraf": "^5.0.0"
@@ -120,5 +120,5 @@
120
120
  "access": "public"
121
121
  },
122
122
  "customElements": "dist/custom-elements.json",
123
- "gitHead": "bd1cb4a789548d9c7c6777f8adb7bce3f43c3317"
123
+ "gitHead": "80e69858d158cefadb6cddc6bcb7cf8b37b76808"
124
124
  }