@gen3/frontend 0.10.97 → 0.10.99
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.
- package/dist/cjs/index.js +9307 -8667
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/api/staticNotebook/index.d.ts +4 -0
- package/dist/dts/api/staticNotebook/index.d.ts.map +1 -0
- package/dist/dts/api/staticNotebook/index.js +118 -0
- package/dist/dts/api/staticNotebook/index.js.map +1 -0
- package/dist/dts/api/staticNotebooks/index.d.ts +4 -0
- package/dist/dts/api/staticNotebooks/index.d.ts.map +1 -0
- package/dist/dts/api/staticNotebooks/index.js +118 -0
- package/dist/dts/api/staticNotebooks/index.js.map +1 -0
- package/dist/dts/components/Login/LoginPanel.js +0 -1
- package/dist/dts/components/Login/LoginPanel.js.map +1 -1
- package/dist/dts/components/Protected/ProtectedContent.d.ts.map +1 -1
- package/dist/dts/components/Protected/ProtectedContent.js +9 -4
- package/dist/dts/components/Protected/ProtectedContent.js.map +1 -1
- package/dist/dts/components/SegmentedControl.d.ts +8 -0
- package/dist/dts/components/SegmentedControl.d.ts.map +1 -0
- package/dist/dts/components/SegmentedControl.js +23 -0
- package/dist/dts/components/SegmentedControl.js.map +1 -0
- package/dist/dts/components/charts/CollapsableCharts.d.ts +12 -0
- package/dist/dts/components/charts/CollapsableCharts.d.ts.map +1 -0
- package/dist/dts/components/charts/CollapsableCharts.js +24 -0
- package/dist/dts/components/charts/CollapsableCharts.js.map +1 -0
- package/dist/dts/components/charts/index.d.ts +2 -1
- package/dist/dts/components/charts/index.d.ts.map +1 -1
- package/dist/dts/components/charts/index.js +2 -1
- package/dist/dts/components/charts/index.js.map +1 -1
- package/dist/dts/components/charts/types.d.ts +9 -0
- package/dist/dts/components/charts/types.d.ts.map +1 -1
- package/dist/dts/components/facets/EnumFacet.js +2 -2
- package/dist/dts/components/facets/EnumFacet.js.map +1 -1
- package/dist/dts/components/facets/ExactValueFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/ExactValueFacet.js +3 -3
- package/dist/dts/components/facets/ExactValueFacet.js.map +1 -1
- package/dist/dts/components/facets/FacetSelectionModal.d.ts +22 -0
- package/dist/dts/components/facets/FacetSelectionModal.d.ts.map +1 -0
- package/dist/dts/components/facets/FacetSelectionModal.js +77 -0
- package/dist/dts/components/facets/FacetSelectionModal.js.map +1 -0
- package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetSelector.js +7 -4
- package/dist/dts/components/facets/FacetSelector.js.map +1 -1
- package/dist/dts/components/facets/FacetTabs.d.ts +38 -0
- package/dist/dts/components/facets/FacetTabs.d.ts.map +1 -0
- package/dist/dts/components/facets/FacetTabs.js +166 -0
- package/dist/dts/components/facets/FacetTabs.js.map +1 -0
- package/dist/dts/components/facets/MultiSelectValueFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/MultiSelectValueFacet.js +3 -3
- package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.js +29 -0
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.d.ts +32 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.js +168 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.js +30 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.js +11 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.d.ts +12 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.js +113 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.d.ts +26 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.js +63 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.js +23 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.js +24 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.d.ts +19 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.js +65 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.d.ts +27 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.js +2 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.d.ts +52 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.js +288 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.js.map +1 -0
- package/dist/dts/components/facets/RangeFacet.d.ts +1 -6
- package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/RangeFacet.js +3 -3
- package/dist/dts/components/facets/RangeFacet.js.map +1 -1
- package/dist/dts/components/facets/constants.d.ts +1 -0
- package/dist/dts/components/facets/constants.d.ts.map +1 -1
- package/dist/dts/components/facets/constants.js +1 -0
- package/dist/dts/components/facets/constants.js.map +1 -1
- package/dist/dts/components/facets/createFacetCard.d.ts +16 -2
- package/dist/dts/components/facets/createFacetCard.d.ts.map +1 -1
- package/dist/dts/components/facets/createFacetCard.js +13 -10
- package/dist/dts/components/facets/createFacetCard.js.map +1 -1
- package/dist/dts/components/facets/createFacetCards.d.ts +10 -0
- package/dist/dts/components/facets/createFacetCards.d.ts.map +1 -0
- package/dist/dts/components/facets/createFacetCards.js +19 -0
- package/dist/dts/components/facets/createFacetCards.js.map +1 -0
- package/dist/dts/components/facets/hooks.d.ts +1 -0
- package/dist/dts/components/facets/hooks.d.ts.map +1 -1
- package/dist/dts/components/facets/hooks.js +10 -1
- package/dist/dts/components/facets/hooks.js.map +1 -1
- package/dist/dts/components/facets/index.d.ts +11 -1
- package/dist/dts/components/facets/index.d.ts.map +1 -1
- package/dist/dts/components/facets/index.js +11 -1
- package/dist/dts/components/facets/index.js.map +1 -1
- package/dist/dts/components/facets/types.d.ts +97 -3
- package/dist/dts/components/facets/types.d.ts.map +1 -1
- package/dist/dts/components/facets/types.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.d.ts +11 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.js +20 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.d.ts +3 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.js +78 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCard.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCard.js +6 -4
- package/dist/dts/features/Analysis/AnalysisCard.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts +34 -0
- package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCard.stories.js +25 -0
- package/dist/dts/features/Analysis/AnalysisCard.stories.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +22 -10
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenter.js +2 -2
- package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisPanel.stories.d.ts +22 -0
- package/dist/dts/features/Analysis/AnalysisPanel.stories.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisPanel.stories.js +28 -0
- package/dist/dts/features/Analysis/AnalysisPanel.stories.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts +29 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.js +37 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.js.map +1 -0
- package/dist/dts/features/Analysis/TextDescription.js +1 -1
- package/dist/dts/features/Analysis/context.d.ts +29 -0
- package/dist/dts/features/Analysis/context.d.ts.map +1 -0
- package/dist/dts/features/Analysis/context.js +34 -0
- package/dist/dts/features/Analysis/context.js.map +1 -0
- package/dist/dts/features/Analysis/types.d.ts +6 -0
- package/dist/dts/features/Analysis/types.d.ts.map +1 -1
- package/dist/dts/features/Analysis/types.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +22 -3
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +53 -19
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +0 -4
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.js +9 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts +16 -0
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js +185 -0
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js.map +1 -0
- package/dist/dts/features/CohortBuilder/index.d.ts +3 -2
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +3 -2
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +2 -1
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +5 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +10 -9
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +5 -4
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +1 -2
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +1 -0
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.js +0 -380
- package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
- package/dist/dts/features/Dictionary/types.d.ts +3 -3
- package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.d.ts +9 -0
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.d.ts.map +1 -0
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.js +24 -0
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.js.map +1 -0
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +2 -2
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +4 -16
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Navigation/Header.js +1 -1
- package/dist/dts/features/Navigation/Header.js.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.d.ts +3 -3
- package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
- package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar/TopBar.js +3 -2
- package/dist/dts/features/Navigation/TopBar/TopBar.js.map +1 -1
- package/dist/dts/features/Navigation/index.d.ts +2 -2
- package/dist/dts/features/Navigation/index.d.ts.map +1 -1
- package/dist/dts/features/Navigation/index.js +2 -1
- package/dist/dts/features/Navigation/index.js.map +1 -1
- package/dist/dts/features/Navigation/types.d.ts +7 -1
- package/dist/dts/features/Navigation/types.d.ts.map +1 -1
- package/dist/dts/features/Navigation/types.js +19 -1
- package/dist/dts/features/Navigation/types.js.map +1 -1
- package/dist/dts/features/StaticNotebook/StaticNotebook.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/StaticNotebook.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebook.js +79 -0
- package/dist/dts/features/StaticNotebook/StaticNotebook.js.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.d.ts +6 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.js +10 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.js.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.d.ts +6 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.js +91 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.js.map +1 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.js +129 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.js.map +1 -0
- package/dist/dts/features/StaticNotebook/constants.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/constants.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/constants.js +5 -0
- package/dist/dts/features/StaticNotebook/constants.js.map +1 -0
- package/dist/dts/features/StaticNotebook/index.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/index.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/index.js +4 -0
- package/dist/dts/features/StaticNotebook/index.js.map +1 -0
- package/dist/dts/index.d.ts +8 -3
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +8 -3
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/common/staticProps.d.ts.map +1 -1
- package/dist/dts/lib/common/staticProps.js +28 -8
- package/dist/dts/lib/common/staticProps.js.map +1 -1
- package/dist/dts/lib/content/types.d.ts +2 -2
- package/dist/dts/lib/content/types.d.ts.map +1 -1
- package/dist/dts/lib/notebooks/index.d.ts +3 -0
- package/dist/dts/lib/notebooks/index.d.ts.map +1 -0
- package/dist/dts/lib/notebooks/index.js +96 -0
- package/dist/dts/lib/notebooks/index.js.map +1 -0
- package/dist/dts/pages/AiSearch/AiSearch.js +1 -1
- package/dist/dts/pages/AiSearch/AiSearch.js.map +1 -1
- package/dist/dts/pages/AiSearch/data.js +1 -1
- package/dist/dts/pages/AiSearch/data.js.map +1 -1
- package/dist/dts/pages/Analysis/Analysis.js +1 -1
- package/dist/dts/pages/Analysis/Analysis.js.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
- package/dist/dts/pages/DataLibrary/DataLibrary.js +1 -1
- package/dist/dts/pages/DataLibrary/DataLibrary.js.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.js +1 -1
- package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.js +1 -1
- package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +17 -4
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/Landing/Landing.js +1 -1
- package/dist/dts/pages/Landing/Landing.js.map +1 -1
- package/dist/dts/pages/Landing/about-us.js +1 -1
- package/dist/dts/pages/Landing/about-us.js.map +1 -1
- package/dist/dts/pages/Landing/contact.js +1 -1
- package/dist/dts/pages/Landing/contact.js.map +1 -1
- package/dist/dts/pages/Landing/resource.js +1 -1
- package/dist/dts/pages/Landing/resource.js.map +1 -1
- package/dist/dts/pages/Login/Login.js +1 -1
- package/dist/dts/pages/Login/Login.js.map +1 -1
- package/dist/dts/pages/NotebookLite/NotebookLite.js +1 -1
- package/dist/dts/pages/NotebookLite/NotebookLite.js.map +1 -1
- package/dist/dts/pages/Profile/Profile.js +1 -1
- package/dist/dts/pages/Profile/Profile.js.map +1 -1
- package/dist/dts/pages/Query/Query.js +1 -1
- package/dist/dts/pages/Query/Query.js.map +1 -1
- package/dist/dts/pages/Submission/Submission.js +1 -1
- package/dist/dts/pages/Submission/Submission.js.map +1 -1
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts +4 -0
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js +24 -0
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.d.ts +4 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.js +81 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.js.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.d.ts +3 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.js +3 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.js.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.d.ts +6 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.js +2 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.js.map +1 -0
- package/dist/dts/pages/Theme/Colors.js +1 -1
- package/dist/dts/pages/Theme/Colors.js.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.js +1 -1
- package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
- package/dist/dts/pages/Workspace/WorkspaceNoAccess.js +1 -1
- package/dist/dts/pages/Workspace/WorkspaceNoAccess.js.map +1 -1
- package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.js +1 -1
- package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.js.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
- package/dist/dts/pages/admin/analysis/data.d.ts +1 -1
- package/dist/dts/pages/admin/authz/Authz.js +1 -1
- package/dist/dts/pages/admin/authz/Authz.js.map +1 -1
- package/dist/dts/pages/admin/authz/data.d.ts +1 -1
- package/dist/dts/types/icons.d.ts +5 -3
- package/dist/dts/types/icons.d.ts.map +1 -1
- package/dist/dts/types/icons.js +5 -3
- package/dist/dts/types/icons.js.map +1 -1
- package/dist/dts/utils/useScrollToHash.d.ts +8 -0
- package/dist/dts/utils/useScrollToHash.d.ts.map +1 -0
- package/dist/dts/utils/useScrollToHash.js +25 -0
- package/dist/dts/utils/useScrollToHash.js.map +1 -0
- package/dist/esm/index.js +9267 -8671
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +738 -254
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import AnalysisCard from './AnalysisCard';
|
|
3
|
+
var meta = {
|
|
4
|
+
component: AnalysisCard,
|
|
5
|
+
parameters: {
|
|
6
|
+
deepControls: { enabled: true },
|
|
7
|
+
},
|
|
8
|
+
decorators: [
|
|
9
|
+
function (Story) { return (_jsx("div", { className: "bg-primary-lighter p-4", children: _jsx(Story, {}) })); },
|
|
10
|
+
],
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
export var Default = {
|
|
14
|
+
args: {
|
|
15
|
+
title: "Proteome Data Commons (PDC) Clustergram",
|
|
16
|
+
type: "notebook",
|
|
17
|
+
icon: "/images/apps/icons/jupyter.png",
|
|
18
|
+
image: "/images/apps/PDC_clustergram.png",
|
|
19
|
+
description: "Use the Proteome Data Commons (PDC) API to retrieve protein relative expression data for a CPTAC study. The PDC uses values produced by the Common Data Analysis Pipeline (CDAP). The results are intended to help identify clusters of samples (tumors) displaying similar patterns of protein expression.",
|
|
20
|
+
loginRequired: false,
|
|
21
|
+
href: "notebook",
|
|
22
|
+
btnText: "Show Analysis"
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=AnalysisCard.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnalysisCard.stories.js","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisCard.stories.tsx"],"names":[],"mappings":";AAGA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,IAAM,IAAI,GAAG;IACX,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAChC;IACD,UAAU,EAAE;QACV,UAAC,KAAK,IAAK,OAAA,CACT,cAAK,SAAS,EAAC,wBAAwB,YAErC,KAAC,KAAK,KAAG,GACL,CACP,EALU,CAKV;KACF;CACkC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,IAAI,EACA;QACE,KAAK,EAAE,yCAAyC;QAChD,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,gCAAgC;QACtC,KAAK,EAAE,kCAAkC;QACzC,WAAW,EAAE,6SAA6S;QAC1T,aAAa,EAAE,KAAK;QACpB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,eAAe;KAC7B;CACF,CAAC"}
|
|
@@ -2,30 +2,42 @@ import React from 'react';
|
|
|
2
2
|
import type { StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
component: React.FC<{
|
|
5
|
-
title: string;
|
|
6
5
|
description: string;
|
|
7
|
-
count?: number | undefined;
|
|
8
6
|
type: string;
|
|
9
|
-
icon: string | React.ReactElement;
|
|
10
7
|
href: string;
|
|
11
|
-
|
|
8
|
+
title: string;
|
|
9
|
+
count?: number | undefined;
|
|
10
|
+
icon: string | React.ReactElement;
|
|
11
|
+
readonly rightComponent?: React.FC | undefined;
|
|
12
|
+
readonly selectionScreen?: React.FC | undefined;
|
|
12
13
|
hasDemo?: boolean | undefined;
|
|
13
|
-
|
|
14
|
+
loginRequired: boolean;
|
|
15
|
+
appId?: string | undefined;
|
|
16
|
+
countIndex?: string | undefined;
|
|
14
17
|
countUnits?: string | undefined;
|
|
18
|
+
noDataTooltip?: string | undefined;
|
|
15
19
|
cardType?: "regular" | "compact" | undefined;
|
|
20
|
+
btnText?: string | undefined;
|
|
21
|
+
tags?: Array<string> | undefined;
|
|
16
22
|
}>;
|
|
17
23
|
decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
18
|
-
title: string;
|
|
19
24
|
description: string;
|
|
20
|
-
count?: number | undefined;
|
|
21
25
|
type: string;
|
|
22
|
-
icon: string | React.ReactElement;
|
|
23
26
|
href: string;
|
|
24
|
-
|
|
27
|
+
title: string;
|
|
28
|
+
count?: number | undefined;
|
|
29
|
+
icon: string | React.ReactElement;
|
|
30
|
+
readonly rightComponent?: React.FC | undefined;
|
|
31
|
+
readonly selectionScreen?: React.FC | undefined;
|
|
25
32
|
hasDemo?: boolean | undefined;
|
|
26
|
-
|
|
33
|
+
loginRequired: boolean;
|
|
34
|
+
appId?: string | undefined;
|
|
35
|
+
countIndex?: string | undefined;
|
|
27
36
|
countUnits?: string | undefined;
|
|
37
|
+
noDataTooltip?: string | undefined;
|
|
28
38
|
cardType?: "regular" | "compact" | undefined;
|
|
39
|
+
btnText?: string | undefined;
|
|
40
|
+
tags?: Array<string> | undefined;
|
|
29
41
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
30
42
|
};
|
|
31
43
|
export default meta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalysisCardCompact.stories.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisCardCompact.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"AnalysisCardCompact.stories.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisCardCompact.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,IAAI;;;;;;;;kCAmBC,MAAO,EAAE;mCAEf,MAAO,EAAE;;;;;;;;;;;;;;;;;;kCAFH,MAAO,EAAE;mCAEf,MAAO,EAAE;;;;;;;;;;;CAX8B,CAAC;AAE7C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC"}
|
|
@@ -32,7 +32,7 @@ var AnalysisCenter = function (_a) {
|
|
|
32
32
|
if (!keyword.length)
|
|
33
33
|
return;
|
|
34
34
|
};
|
|
35
|
-
return (_jsxs("div", { className: "w-full bg-base-
|
|
35
|
+
return (_jsxs("div", { className: "w-full bg-base-light p-4", children: [showFilterAndSort ? (_jsxs("div", { className: "flex justify-between items-center w-7/8 mt-2 mx-2", children: [_jsxs("div", { className: "flex space-x-4", children: [_jsx(Select
|
|
36
36
|
// todo: data opts
|
|
37
37
|
, {
|
|
38
38
|
// todo: data opts
|
|
@@ -52,7 +52,7 @@ var AnalysisCenter = function (_a) {
|
|
|
52
52
|
duration: 50,
|
|
53
53
|
timingFunction: 'ease',
|
|
54
54
|
},
|
|
55
|
-
}, placeholder: "Filter by access", onChange: function (value) { return handleCardsFilter('access', value); } })] }), _jsx("div", { children: _jsx(TextInput, { placeholder: "Search in Analysis Center", value: cards.search, size: "md", onChange: function (event) { return handleCardsSearch(event.currentTarget.value); } }) })] })) : null, _jsx("div", { children: _jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 p-1 mx-4 overflow-y-
|
|
55
|
+
}, placeholder: "Filter by access", onChange: function (value) { return handleCardsFilter('access', value); } })] }), _jsx("div", { children: _jsx(TextInput, { placeholder: "Search in Analysis Center", value: cards.search, size: "md", onChange: function (event) { return handleCardsSearch(event.currentTarget.value); } }) })] })) : null, _jsx("div", { children: _jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 p-1 mx-4 overflow-y-auto", children: tools.map(function (_a, key) {
|
|
56
56
|
var title = _a.title, description = _a.description, type = _a.type, icon = _a.icon, image = _a.image, hasDemo = _a.hasDemo, loginRequired = _a.loginRequired, href = _a.href, btnText = _a.btnText;
|
|
57
57
|
return (_jsx(AnalysisCard, { title: title, description: description, type: type, icon: icon, image: image, hasDemo: hasDemo, loginRequired: loginRequired, href: href, cardType: 'regular', btnText: btnText }, title));
|
|
58
58
|
}) }) })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalysisCenter.js","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisCenter.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAgB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,IAAM,cAAc,GAAG,UAAC,EAGM;QAF5B,KAAK,WAAA,EACL,yBAAyB,EAAzB,iBAAiB,mBAAG,KAAK,KAAA;IAEnB,IAAA,KAAoB,QAAQ,CAAC;QACjC,IAAI,EAAE,EAAY;QAClB,MAAM,EAAE,EAAY;QACpB,MAAM,EAAE,EAAE;KACX,CAAC,EAJK,KAAK,QAAA,EAAE,QAAQ,QAIpB,CAAC;IAEH,IAAM,iBAAiB,GAAG,UACxB,UAA6B,EAC7B,QAAuB;QAEvB,IAAI,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAA;YAAE,OAAO;QAC9B,QAAQ,CAAC,UAAC,CAAC;;YAAK,OAAA,uBACX,CAAC,gBACH,UAAU,IAAG,QAAQ,OACtB;QAHc,CAGd,CAAC,CAAC;IACN,CAAC,CAAC;IAEF,IAAM,iBAAiB,GAAG,UAAC,OAAe;QACxC,IAAI,CAAC,OAAO,CAAC,MAAM;YAAE,OAAO;IAC9B,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"AnalysisCenter.js","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisCenter.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAgB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,IAAM,cAAc,GAAG,UAAC,EAGM;QAF5B,KAAK,WAAA,EACL,yBAAyB,EAAzB,iBAAiB,mBAAG,KAAK,KAAA;IAEnB,IAAA,KAAoB,QAAQ,CAAC;QACjC,IAAI,EAAE,EAAY;QAClB,MAAM,EAAE,EAAY;QACpB,MAAM,EAAE,EAAE;KACX,CAAC,EAJK,KAAK,QAAA,EAAE,QAAQ,QAIpB,CAAC;IAEH,IAAM,iBAAiB,GAAG,UACxB,UAA6B,EAC7B,QAAuB;QAEvB,IAAI,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAA;YAAE,OAAO;QAC9B,QAAQ,CAAC,UAAC,CAAC;;YAAK,OAAA,uBACX,CAAC,gBACH,UAAU,IAAG,QAAQ,OACtB;QAHc,CAGd,CAAC,CAAC;IACN,CAAC,CAAC;IAEF,IAAM,iBAAiB,GAAG,UAAC,OAAe;QACxC,IAAI,CAAC,OAAO,CAAC,MAAM;YAAE,OAAO;IAC9B,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,0BAA0B,aACtC,iBAAiB,CAAC,CAAC,CAAC,CACnB,eAAK,SAAS,EAAC,mDAAmD,aAEhE,eAAK,SAAS,EAAC,gBAAgB,aAC7B,KAAC,MAAM;4BACL,kBAAkB;;gCAAlB,kBAAkB;gCAClB,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,KAAK,CAAC,IAAI,EACjB,aAAa,EAAE;oCACb,eAAe,EAAE;wCACf,UAAU,EAAE,cAAc;wCAC1B,QAAQ,EAAE,EAAE;wCACZ,cAAc,EAAE,MAAM;qCACvB;iCACF,EACD,WAAW,EAAC,gBAAgB,EAC5B,QAAQ,EAAE,UAAC,KAAK,IAAK,OAAA,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,EAAhC,CAAgC,GACrD,EACF,KAAC,MAAM;4BACL,kBAAkB;;gCAAlB,kBAAkB;gCAClB,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,KAAK,CAAC,MAAM,EACnB,aAAa,EAAE;oCACb,eAAe,EAAE;wCACf,UAAU,EAAE,cAAc;wCAC1B,QAAQ,EAAE,EAAE;wCACZ,cAAc,EAAE,MAAM;qCACvB;iCACF,EACD,WAAW,EAAC,kBAAkB,EAC9B,QAAQ,EAAE,UAAC,KAAK,IAAK,OAAA,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAlC,CAAkC,GACvD,IACE,EACN,wBAEE,KAAC,SAAS,IACR,WAAW,EAAC,2BAA2B,EACvC,KAAK,EAAE,KAAK,CAAC,MAAM,EACnB,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,UAAC,KAAK,IAAK,OAAA,iBAAiB,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,EAA5C,CAA4C,GACjE,GACE,IACF,CACP,CAAC,CAAC,CAAC,IAAI,EACR,wBACE,cAAK,SAAS,EAAC,+EAA+E,YAC3F,KAAK,CAAC,GAAG,CACR,UACE,EAUC,EACD,GAAG;4BAVD,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,OAAO,aAAA,EACP,aAAa,mBAAA,EACb,IAAI,UAAA,EACJ,OAAO,aAAA;wBAIT,OAAO,CACL,KAAC,YAAY,IAGT,KAAK,OAAA,EACL,WAAW,aAAA,EACX,IAAI,MAAA,EACJ,IAAI,MAAA,EACJ,KAAK,OAAA,EACL,OAAO,SAAA,EACP,aAAa,eAAA,EACb,IAAI,MAAA,EACJ,QAAQ,EAAE,SAAS,EACnB,OAAO,SAAA,IAXJ,KAAK,CAaV,CACH,CAAC;oBACJ,CAAC,CACF,GACG,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: React.FC<import("./types").AnalysisCenterConfiguration>;
|
|
5
|
+
parameters: {
|
|
6
|
+
deepControls: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
11
|
+
tools: Array<import("./types").AnalysisToolConfiguration>;
|
|
12
|
+
showFilterAndSort?: boolean | undefined;
|
|
13
|
+
version?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
schema?: import("@gen3/core").JSONObject | undefined;
|
|
16
|
+
headerMetadata?: import("../Navigation").HeaderMetadata | undefined;
|
|
17
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
22
|
+
//# sourceMappingURL=AnalysisPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnalysisPanel.stories.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;CAa4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import AnalysisPanel from './AnalysisPanel';
|
|
3
|
+
var meta = {
|
|
4
|
+
component: AnalysisPanel,
|
|
5
|
+
parameters: {
|
|
6
|
+
deepControls: { enabled: true },
|
|
7
|
+
},
|
|
8
|
+
decorators: [
|
|
9
|
+
function (Story) { return (_jsx("div", { className: "bg-primary-lighter p-4", children: _jsx(Story, {}) })); },
|
|
10
|
+
],
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
export var Default = {
|
|
14
|
+
args: {
|
|
15
|
+
tools: [{
|
|
16
|
+
title: "Proteome Data Commons (PDC) Clustergram",
|
|
17
|
+
type: "notebook",
|
|
18
|
+
icon: "/images/apps/icons/jupyter.png",
|
|
19
|
+
image: "/images/apps/PDC_clustergram.png",
|
|
20
|
+
description: "Use the Proteome Data Commons (PDC) API to retrieve protein relative expression data for a CPTAC study. The PDC uses values produced by the Common Data Analysis Pipeline (CDAP). The results are intended to help identify clusters of samples (tumors) displaying similar patterns of protein expression.",
|
|
21
|
+
loginRequired: false,
|
|
22
|
+
href: "notebook",
|
|
23
|
+
btnText: "Show Analysis"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=AnalysisPanel.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnalysisPanel.stories.js","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisPanel.stories.tsx"],"names":[],"mappings":";AACA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,IAAM,IAAI,GAAG;IACX,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAChC;IACD,UAAU,EAAE;QACV,UAAC,KAAK,IAAK,OAAA,CACT,cAAK,SAAS,EAAC,wBAAwB,YAErC,KAAC,KAAK,KAAG,GACL,CACP,EALU,CAKV;KACF;CACmC,CAAC;AAEvC,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,IAAI,EACF;QACE,KAAK,EAAE,CAAE;gBACT,KAAK,EAAE,yCAAyC;gBAChD,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,gCAAgC;gBACtC,KAAK,EAAE,kCAAkC;gBACzC,WAAW,EAAE,6SAA6S;gBAC1T,aAAa,EAAE,KAAK;gBACpB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,eAAe;aACzB;SACA;KACJ;CAEA,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnalysisToolConfiguration } from "./types";
|
|
3
|
+
interface AnalysisWorkspaceProps {
|
|
4
|
+
readonly app: string | undefined;
|
|
5
|
+
readonly registeredApps: AnalysisToolConfiguration[];
|
|
6
|
+
readonly recommendedApps: string[];
|
|
7
|
+
readonly CountHookRegistry: any;
|
|
8
|
+
readonly handleAppSelected: (app?: string, demoMode?: boolean) => void;
|
|
9
|
+
readonly isDemoMode: boolean;
|
|
10
|
+
readonly skipSelectionScreen: boolean;
|
|
11
|
+
readonly ActiveAnalysisTool: React.ComponentType<{
|
|
12
|
+
appId: string;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Component to handle the navigation and selecting of apps from the Analysis Tools grid. Routing
|
|
17
|
+
* should be handled by the application.
|
|
18
|
+
* @param app - appId of the current app
|
|
19
|
+
* @param registeredApps - list of available apps
|
|
20
|
+
* @param recommendedApps - apps to display more prominently in the Core Tools section
|
|
21
|
+
* @param CountHookRegistry - collection of hooks used for fetching count data
|
|
22
|
+
* @param handleAppSelected - callback to handle routing when an app is selected from the tools grid
|
|
23
|
+
* @param isDemoMode - whether the app is in demo mode
|
|
24
|
+
* @param skipSelectionScreen - whether the selection screen component should be displayed on selecting the app
|
|
25
|
+
* @param ActiveAnalysisTool - component wrapper to handle displaying the active analysis tool
|
|
26
|
+
*/
|
|
27
|
+
declare const AnalysisWorkspace: React.FC<AnalysisWorkspaceProps>;
|
|
28
|
+
export default AnalysisWorkspace;
|
|
29
|
+
//# sourceMappingURL=AnalysisWorkspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnalysisWorkspace.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisWorkspace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,yBAAyB,EAAE,CAAC;IACrD,QAAQ,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,CAAC;IAChC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrE;AAED;;;;;;;;;;;GAWG;AAEH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAwDvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState, useReducer } from "react";
|
|
3
|
+
import AnalysisBreadcrumbs from "./AnalysisBreadcrumbs";
|
|
4
|
+
import AnalysisCenter from "./AnalysisCenter";
|
|
5
|
+
import { chartDownloadReducer, DashboardDownloadContext, SelectionScreenContext, } from "./context";
|
|
6
|
+
/**
|
|
7
|
+
* Component to handle the navigation and selecting of apps from the Analysis Tools grid. Routing
|
|
8
|
+
* should be handled by the application.
|
|
9
|
+
* @param app - appId of the current app
|
|
10
|
+
* @param registeredApps - list of available apps
|
|
11
|
+
* @param recommendedApps - apps to display more prominently in the Core Tools section
|
|
12
|
+
* @param CountHookRegistry - collection of hooks used for fetching count data
|
|
13
|
+
* @param handleAppSelected - callback to handle routing when an app is selected from the tools grid
|
|
14
|
+
* @param isDemoMode - whether the app is in demo mode
|
|
15
|
+
* @param skipSelectionScreen - whether the selection screen component should be displayed on selecting the app
|
|
16
|
+
* @param ActiveAnalysisTool - component wrapper to handle displaying the active analysis tool
|
|
17
|
+
*/
|
|
18
|
+
var AnalysisWorkspace = function (_a) {
|
|
19
|
+
var app = _a.app, registeredApps = _a.registeredApps, handleAppSelected = _a.handleAppSelected, isDemoMode = _a.isDemoMode, skipSelectionScreen = _a.skipSelectionScreen, ActiveAnalysisTool = _a.ActiveAnalysisTool;
|
|
20
|
+
var _b = useState(false), cohortSelectionOpen = _b[0], setCohortSelectionOpen = _b[1];
|
|
21
|
+
var appInfo = registeredApps.find(function (a) { return (a === null || a === void 0 ? void 0 : a.appId) === app; });
|
|
22
|
+
useEffect(function () {
|
|
23
|
+
setCohortSelectionOpen(!skipSelectionScreen && (appInfo === null || appInfo === void 0 ? void 0 : appInfo.selectionScreen) !== undefined);
|
|
24
|
+
}, [app, appInfo, skipSelectionScreen]);
|
|
25
|
+
var _c = useReducer(chartDownloadReducer, []), chartDownloadState = _c[0], dispatch = _c[1];
|
|
26
|
+
if (app !== undefined && appInfo === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
return (_jsxs("div", { children: [app && (_jsx(SelectionScreenContext.Provider, { value: {
|
|
30
|
+
selectionScreenOpen: cohortSelectionOpen,
|
|
31
|
+
setSelectionScreenOpen: setCohortSelectionOpen,
|
|
32
|
+
app: app,
|
|
33
|
+
setActiveApp: handleAppSelected,
|
|
34
|
+
}, children: _jsxs(DashboardDownloadContext.Provider, { value: { state: chartDownloadState, dispatch: dispatch }, children: [_jsx(AnalysisBreadcrumbs, { onDemoApp: isDemoMode, skipSelectionScreen: skipSelectionScreen, rightComponent: (appInfo === null || appInfo === void 0 ? void 0 : appInfo.rightComponent) && _jsx(appInfo.rightComponent, {}), registeredApps: registeredApps }), _jsx(ActiveAnalysisTool, { appId: app })] }) })), !app && (_jsx(AnalysisCenter, { tools: registeredApps }))] }));
|
|
35
|
+
};
|
|
36
|
+
export default AnalysisWorkspace;
|
|
37
|
+
//# sourceMappingURL=AnalysisWorkspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnalysisWorkspace.js","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisWorkspace.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,WAAW,CAAC;AAcnB;;;;;;;;;;;GAWG;AAEH,IAAM,iBAAiB,GAAqC,UAAC,EAOpC;QANvB,GAAG,SAAA,EAC0D,cAAc,oBAAA,EAC3E,iBAAiB,uBAAA,EACjB,UAAU,gBAAA,EACV,mBAAmB,yBAAA,EACnB,kBAAkB,wBAAA;IAEZ,IAAA,KAAgD,QAAQ,CAAC,KAAK,CAAC,EAA9D,mBAAmB,QAAA,EAAE,sBAAsB,QAAmB,CAAC;IACtE,IAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,KAAK,MAAK,GAAG,EAAhB,CAAgB,CAAC,CAAC;IAE7D,SAAS,CAAC;QACR,sBAAsB,CACpB,CAAC,mBAAmB,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,MAAK,SAAS,CAC/D,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAElC,IAAA,KAAiC,UAAU,CAAC,oBAAoB,EAAE,EAAE,CAAC,EAApE,kBAAkB,QAAA,EAAE,QAAQ,QAAwC,CAAC;IAE5E,IAAI,GAAG,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,CACL,0BACG,GAAG,IAAI,CACN,KAAC,sBAAsB,CAAC,QAAQ,IAC9B,KAAK,EAAE;oBACL,mBAAmB,EAAE,mBAAmB;oBACxC,sBAAsB,EAAE,sBAAsB;oBAC9C,GAAG,KAAA;oBACH,YAAY,EAAE,iBAAiB;iBAChC,YAED,MAAC,wBAAwB,CAAC,QAAQ,IAChC,KAAK,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,UAAA,EAAE,aAE9C,KAAC,mBAAmB,IAClB,SAAS,EAAE,UAAU,EACrB,mBAAmB,EAAE,mBAAmB,EACxC,cAAc,EACZ,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,KAAI,KAAC,OAAO,CAAC,cAAc,KAAG,EAEvD,cAAc,EAAE,cAAc,GAC9B,EACF,KAAC,kBAAkB,IAAC,KAAK,EAAE,GAAG,GAAI,IACA,GACJ,CACnC,EACA,CAAC,GAAG,IAAI,CACP,KAAC,cAAc,IACb,KAAK,EAAE,cAAc,GACrB,CACH,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -19,7 +19,7 @@ var TextDescription = function (_a) {
|
|
|
19
19
|
// Remove event listener on cleanup
|
|
20
20
|
return function () { return window.removeEventListener('resize', handleResize); };
|
|
21
21
|
}, []); // Empty array ensures that it would only run on mount
|
|
22
|
-
return (_jsxs(_Fragment, { children: [!extend ? (_jsx(Text, { ref: textRef, size: "
|
|
22
|
+
return (_jsxs(_Fragment, { children: [!extend ? (_jsx(Text, { ref: textRef, size: "sm", lineClamp: 4, children: description })) : (_jsx(Text, { size: "sm", children: description })), isClamped && (_jsx("button", { onClick: function () { return setExtend(function (extend) { return !extend; }); }, children: _jsxs("div", { className: "flex text-xs font-semibold text-base-contrast-light", children: [!extend ? 'Extend Text' : 'Collapse Text', ' ', _jsx("div", { className: "my-auto", children: !extend ? _jsx(DownArrowIcon, {}) : _jsx(UpArrowIcon, {}) })] }) }))] }));
|
|
23
23
|
};
|
|
24
24
|
export default TextDescription;
|
|
25
25
|
//# sourceMappingURL=TextDescription.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Dispatch } from "react";
|
|
2
|
+
interface ChartDownloadInfo {
|
|
3
|
+
readonly chartRef: React.MutableRefObject<HTMLElement>;
|
|
4
|
+
readonly filename: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const chartDownloadReducer: (state: ChartDownloadInfo[], action: {
|
|
7
|
+
type: "add" | "remove";
|
|
8
|
+
payload: ChartDownloadInfo[];
|
|
9
|
+
}) => ChartDownloadInfo[];
|
|
10
|
+
export declare const DashboardDownloadContext: import("react").Context<{
|
|
11
|
+
state: ChartDownloadInfo[];
|
|
12
|
+
dispatch: Dispatch<{
|
|
13
|
+
type: "add" | "remove";
|
|
14
|
+
payload: ChartDownloadInfo[];
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const DownloadProgressContext: import("react").Context<{
|
|
18
|
+
downloadInProgress: boolean;
|
|
19
|
+
setDownloadInProgress: ((inProgress: boolean) => void) | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
interface SelectionScreenContextProps {
|
|
22
|
+
readonly selectionScreenOpen: boolean;
|
|
23
|
+
readonly setSelectionScreenOpen?: (open: boolean) => void;
|
|
24
|
+
readonly app?: string;
|
|
25
|
+
readonly setActiveApp?: (app?: string, demoMode?: boolean) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const SelectionScreenContext: import("react").Context<SelectionScreenContextProps>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIhD,UAAU,iBAAiB;IACzB,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACvD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,oBAAoB,GAC/B,OAAO,iBAAiB,EAAE,EAC1B,QAAQ;IAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;IAAC,OAAO,EAAE,iBAAiB,EAAE,CAAA;CAAE,KAC/D,iBAAiB,EAYnB,CAAC;AAEF,eAAO,MAAM,wBAAwB;WAC5B,iBAAiB,EAAE;cAChB,QAAQ,CAAC;QAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;QAAC,OAAO,EAAE,iBAAiB,EAAE,CAAA;KAAE,CAAC;EACzC,CAAC;AAEtC,eAAO,MAAM,uBAAuB;wBACd,OAAO;2BACJ,CAAC,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS;EAIlE,CAAC;AAIH,UAAU,2BAA2B;IACnC,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1D,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACpE;AAED,eAAO,MAAM,sBAAsB,sDAM/B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
import { createContext } from "react";
|
|
11
|
+
export var chartDownloadReducer = function (state, action) {
|
|
12
|
+
switch (action.type) {
|
|
13
|
+
case "add":
|
|
14
|
+
return __spreadArray(__spreadArray([], state, true), action.payload, true);
|
|
15
|
+
case "remove":
|
|
16
|
+
return state.filter(function (d) {
|
|
17
|
+
return !action.payload.map(function (chart) { return chart.filename; }).includes(d.filename);
|
|
18
|
+
});
|
|
19
|
+
default:
|
|
20
|
+
return state;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export var DashboardDownloadContext = createContext({ state: [], dispatch: function () { } });
|
|
24
|
+
export var DownloadProgressContext = createContext({
|
|
25
|
+
downloadInProgress: false,
|
|
26
|
+
setDownloadInProgress: undefined,
|
|
27
|
+
});
|
|
28
|
+
export var SelectionScreenContext = createContext({
|
|
29
|
+
selectionScreenOpen: false,
|
|
30
|
+
setSelectionScreenOpen: undefined,
|
|
31
|
+
app: undefined,
|
|
32
|
+
setActiveApp: undefined,
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/features/Analysis/context.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAShD,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAClC,KAA0B,EAC1B,MAAgE;IAEhE,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,KAAK;YACR,uCAAW,KAAK,SAAK,MAAM,CAAC,OAAO,QAAE;QACvC,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC,MAAM,CACjB,UAAC,CAAC;gBACA,OAAA,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,QAAQ,EAAd,CAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;YAAnE,CAAmE,CACtE,CAAC;QACJ;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,wBAAwB,GAAG,aAAa,CAGlD,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,cAAO,CAAC,EAAE,CAAC,CAAC;AAEtC,MAAM,CAAC,IAAM,uBAAuB,GAAG,aAAa,CAGjD;IACD,kBAAkB,EAAE,KAAK;IACzB,qBAAqB,EAAE,SAAS;CACjC,CAAC,CAAC;AAWH,MAAM,CAAC,IAAM,sBAAsB,GACjC,aAAa,CAA8B;IACzC,mBAAmB,EAAE,KAAK;IAC1B,sBAAsB,EAAE,SAAS;IACjC,GAAG,EAAE,SAAS;IACd,YAAY,EAAE,SAAS;CACxB,CAAC,CAAC"}
|
|
@@ -9,10 +9,16 @@ export interface AnalysisToolConfiguration {
|
|
|
9
9
|
hasDemo?: boolean;
|
|
10
10
|
loginRequired: boolean;
|
|
11
11
|
href: string;
|
|
12
|
+
appId?: string;
|
|
12
13
|
count?: number;
|
|
14
|
+
countIndex?: string;
|
|
13
15
|
countUnits?: string;
|
|
16
|
+
noDataTooltip?: string;
|
|
14
17
|
cardType?: 'regular' | 'compact';
|
|
15
18
|
btnText?: string;
|
|
19
|
+
tags?: Array<string>;
|
|
20
|
+
readonly rightComponent?: React.FC;
|
|
21
|
+
readonly selectionScreen?: React.FC;
|
|
16
22
|
}
|
|
17
23
|
export interface AnalysisCenterConfiguration extends Gen3AppConfigData {
|
|
18
24
|
tools: Array<AnalysisToolConfiguration>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"AAAA,OAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,QAAQ,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,QAAQ,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,2BAA4B,SAAQ,iBAAiB;IACpE,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,yCAAyC,GACpD,OAAO,OAAO,KACb,KAAK,IAAI,uCAuBX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"AAyCA,MAAM,CAAC,IAAM,yCAAyC,GAAG,UACvD,KAAc;IAEd,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAM,SAAS,GAAG,KAAgC,CAAC;IAEnD,6CAA6C;IAC7C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAsB,UAAkB,EAAlB,KAAA,SAAS,CAAC,QAAQ,EAAlB,cAAkB,EAAlB,IAAkB,EAAE,CAAC;QAAtC,IAAM,OAAO,SAAA;QAChB,IACE,CAAC,OAAO;YACR,OAAO,OAAO,KAAK,QAAQ;YAC3B,OAAQ,OAAiC,CAAC,KAAK,KAAK,QAAQ;YAC5D,CAAC,KAAK,CAAC,OAAO,CAAE,OAAiC,CAAC,KAAK,CAAC,EACxD,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1,15 +1,34 @@
|
|
|
1
1
|
import { type CohortPanelConfiguration } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* The main component that houses the charts, tabs,
|
|
3
|
+
* The main component that houses the charts, tabs, modal
|
|
4
4
|
* filters, tables, buttons of the exploration page.
|
|
5
5
|
*
|
|
6
6
|
* All of these params come directly from the top level exploration page configuration file or
|
|
7
|
-
* explorer config in legacy gitops.json file.
|
|
7
|
+
* explorer config in a legacy gitops.json file.
|
|
8
8
|
* @example see packages/sampleCommons/config/gen3/explorer.json
|
|
9
9
|
*/
|
|
10
10
|
interface CohortPanelConfigurationWithAccessLevel extends CohortPanelConfiguration {
|
|
11
11
|
showAccessLevel?: boolean;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* CohortPanel is a React component that provides an interactive interface for cohort exploration and filtering.
|
|
15
|
+
* It integrates with data services and facilitates visualization, filtering, and analysis tasks.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} props The properties required to configure the CohortPanel component.
|
|
18
|
+
* @param {Object} props.guppyConfig Configuration object for Guppy, including field mappings and data type information.
|
|
19
|
+
* @param {Object} props.filters Configuration for filter tabs, including filter fields and layout.
|
|
20
|
+
* @param {Object} [props.charts={}] Optional set of chart configuration objects for rendering summaries.
|
|
21
|
+
* @param {Object} [props.chartsSection] Optional configuration for an additional section of charts.
|
|
22
|
+
* @param {Object} props.table Reference to the table configuration or component for displaying data.
|
|
23
|
+
* @param {string} props.tabTitle Title for the filter tab section.
|
|
24
|
+
* @param {Object[]|undefined} props.dropdowns Dropdown menu configuration, allowing for additional filter options or actions.
|
|
25
|
+
* @param {Object[]|undefined} props.buttons List of button configurations for actions such as downloads.
|
|
26
|
+
* @param {boolean} props.loginForDownload Determines whether login is required to enable download functionality.
|
|
27
|
+
* @param {boolean} [props.showAccessLevel=false] Indicates if the user access level should be displayed on the panel.
|
|
28
|
+
*
|
|
29
|
+
* @returns {JSX.Element} Returns a JSX element rendering the CohortPanel. This includes filter options,
|
|
30
|
+
* summary charts, cohort manager, and data display components.
|
|
31
|
+
*/
|
|
32
|
+
export declare const CohortPanel: ({ guppyConfig, filters, charts, chartsSection, table, tabTitle, dropdowns, buttons, loginForDownload, showAccessLevel, }: CohortPanelConfigurationWithAccessLevel) => JSX.Element;
|
|
14
33
|
export {};
|
|
15
34
|
//# sourceMappingURL=CohortPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CohortPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA4CxD;;;;;;;GAOG;AAEH,UAAU,uCACR,SAAQ,wBAAwB;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,GAAI,0HAWzB,uCAAuC,KAAG,GAAG,CAAC,OA4ShD,CAAC"}
|
|
@@ -9,16 +9,25 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
12
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
22
|
import { useMemo, useState } from 'react';
|
|
14
23
|
import { partial } from 'lodash';
|
|
15
|
-
import { extractEnumFilterValue, isIntersection, selectIndexFilters,
|
|
24
|
+
import { Accessibility, extractEnumFilterValue, isIntersection, selectIndexFilters, selectSharedFilters, useCoreSelector, useGetAggsNoFilterSelfQuery, useGetAggsQuery, useGetCountsQuery, } from '@gen3/core';
|
|
16
25
|
import { ErrorCard } from '../../components/MessageCards';
|
|
17
26
|
import { useMediaQuery } from '@mantine/hooks';
|
|
18
27
|
import { classifyFacets, extractRangeValues, getAllFieldsFromFilterConfigs, processBucketData, processRangeData, removeIntersectionFromEnum, useGetFacetFilters, useUpdateFilters, } from '../../components/facets/utils';
|
|
19
|
-
import { useClearFilters } from '../../components/facets/hooks';
|
|
28
|
+
import { useClearFilters, useFieldNameToTitle, } from '../../components/facets/hooks';
|
|
20
29
|
import CohortManager from './CohortManager';
|
|
21
|
-
import { Charts } from '../../components/charts';
|
|
30
|
+
import { Charts, CollapsableCharts } from '../../components/charts';
|
|
22
31
|
import ExplorerTable from './ExplorerTable/ExplorerTable';
|
|
23
32
|
import CountsValue from '../../components/counts/CountsValue';
|
|
24
33
|
import DownloadsPanel from './DownloadsPanel';
|
|
@@ -27,13 +36,32 @@ import { toDisplayName } from '../../utils';
|
|
|
27
36
|
import { useCohortFilterCombineState, useFilterExpandedState, useSetCohortFilterCombineState, useToggleExpandFilter, } from './hooks';
|
|
28
37
|
import DropdownPanel from './Panels/DropdownPanel';
|
|
29
38
|
var EmptyData = {};
|
|
39
|
+
/**
|
|
40
|
+
* CohortPanel is a React component that provides an interactive interface for cohort exploration and filtering.
|
|
41
|
+
* It integrates with data services and facilitates visualization, filtering, and analysis tasks.
|
|
42
|
+
*
|
|
43
|
+
* @param {Object} props The properties required to configure the CohortPanel component.
|
|
44
|
+
* @param {Object} props.guppyConfig Configuration object for Guppy, including field mappings and data type information.
|
|
45
|
+
* @param {Object} props.filters Configuration for filter tabs, including filter fields and layout.
|
|
46
|
+
* @param {Object} [props.charts={}] Optional set of chart configuration objects for rendering summaries.
|
|
47
|
+
* @param {Object} [props.chartsSection] Optional configuration for an additional section of charts.
|
|
48
|
+
* @param {Object} props.table Reference to the table configuration or component for displaying data.
|
|
49
|
+
* @param {string} props.tabTitle Title for the filter tab section.
|
|
50
|
+
* @param {Object[]|undefined} props.dropdowns Dropdown menu configuration, allowing for additional filter options or actions.
|
|
51
|
+
* @param {Object[]|undefined} props.buttons List of button configurations for actions such as downloads.
|
|
52
|
+
* @param {boolean} props.loginForDownload Determines whether login is required to enable download functionality.
|
|
53
|
+
* @param {boolean} [props.showAccessLevel=false] Indicates if the user access level should be displayed on the panel.
|
|
54
|
+
*
|
|
55
|
+
* @returns {JSX.Element} Returns a JSX element rendering the CohortPanel. This includes filter options,
|
|
56
|
+
* summary charts, cohort manager, and data display components.
|
|
57
|
+
*/
|
|
30
58
|
export var CohortPanel = function (_a) {
|
|
31
|
-
var _b;
|
|
32
|
-
var guppyConfig = _a.guppyConfig, filters = _a.filters,
|
|
59
|
+
var _b, _c;
|
|
60
|
+
var guppyConfig = _a.guppyConfig, filters = _a.filters, _d = _a.charts, charts = _d === void 0 ? {} : _d, _e = _a.chartsSection, chartsSection = _e === void 0 ? undefined : _e, table = _a.table, tabTitle = _a.tabTitle, dropdowns = _a.dropdowns, buttons = _a.buttons, loginForDownload = _a.loginForDownload, _f = _a.showAccessLevel, showAccessLevel = _f === void 0 ? false : _f;
|
|
33
61
|
var isSm = useMediaQuery('(min-width: 639px)');
|
|
34
62
|
var isMd = useMediaQuery('(min-width: 1373px)');
|
|
35
63
|
var isXl = useMediaQuery('(min-width: 1600px)');
|
|
36
|
-
var
|
|
64
|
+
var _g = useState(Accessibility.ALL), accessLevel = _g[0], setAccessLevel = _g[1];
|
|
37
65
|
var sharedFiltersMap = useCoreSelector(function (state) {
|
|
38
66
|
return selectSharedFilters(state);
|
|
39
67
|
});
|
|
@@ -46,23 +74,23 @@ export var CohortPanel = function (_a) {
|
|
|
46
74
|
numCols = 4;
|
|
47
75
|
var index = guppyConfig.dataType;
|
|
48
76
|
var fields = useMemo(function () { var _a; return getAllFieldsFromFilterConfigs((_a = filters === null || filters === void 0 ? void 0 : filters.tabs) !== null && _a !== void 0 ? _a : []); }, [filters === null || filters === void 0 ? void 0 : filters.tabs]);
|
|
49
|
-
var
|
|
50
|
-
var
|
|
77
|
+
var _h = useState({}), facetDefinitions = _h[0], setFacetDefinitions = _h[1];
|
|
78
|
+
var _j = useState({}), summaryCharts = _j[0], setSummaryCharts = _j[1];
|
|
51
79
|
var cohortFilters = useCoreSelector(function (state) {
|
|
52
80
|
return selectIndexFilters(state, index);
|
|
53
81
|
});
|
|
54
|
-
var
|
|
82
|
+
var _k = useGetAggsQuery({
|
|
55
83
|
type: index,
|
|
56
84
|
fields: fields,
|
|
57
85
|
filters: cohortFilters,
|
|
58
86
|
accessibility: accessLevel,
|
|
59
|
-
}), data =
|
|
60
|
-
var
|
|
87
|
+
}), data = _k.data, isSuccess = _k.isSuccess, isAggsQueryFetching = _k.isFetching, isAggsQueryError = _k.isError;
|
|
88
|
+
var _l = useGetAggsNoFilterSelfQuery({
|
|
61
89
|
type: index,
|
|
62
|
-
fields: Object.keys(charts),
|
|
90
|
+
fields: __spreadArray(__spreadArray([], Object.keys((_b = chartsSection === null || chartsSection === void 0 ? void 0 : chartsSection.charts) !== null && _b !== void 0 ? _b : {}), true), Object.keys(charts), true),
|
|
63
91
|
filters: cohortFilters,
|
|
64
92
|
accessibility: accessLevel,
|
|
65
|
-
}), chartData =
|
|
93
|
+
}), chartData = _l.data, isChartSuccess = _l.isSuccess, isChartFetching = _l.isFetching, isChartError = _l.isError;
|
|
66
94
|
var getEnumFacetData = useDeepCompareCallback(function (field) {
|
|
67
95
|
var filters = undefined;
|
|
68
96
|
var combineMode = 'or';
|
|
@@ -107,6 +135,7 @@ export var CohortPanel = function (_a) {
|
|
|
107
135
|
useToggleExpandFilter: partial(useToggleExpandFilter, index),
|
|
108
136
|
useGetCombineMode: partial(useCohortFilterCombineState, index),
|
|
109
137
|
useSetCombineMode: partial(useSetCohortFilterCombineState, index),
|
|
138
|
+
useFieldNameToTitle: useFieldNameToTitle,
|
|
110
139
|
useTotalCounts: undefined,
|
|
111
140
|
},
|
|
112
141
|
exact: {
|
|
@@ -116,6 +145,7 @@ export var CohortPanel = function (_a) {
|
|
|
116
145
|
useClearFilter: partial(useClearFilters, index),
|
|
117
146
|
useFilterExpanded: partial(useFilterExpandedState, index),
|
|
118
147
|
useToggleExpandFilter: partial(useToggleExpandFilter, index),
|
|
148
|
+
useFieldNameToTitle: useFieldNameToTitle,
|
|
119
149
|
useTotalCounts: undefined,
|
|
120
150
|
},
|
|
121
151
|
multiselect: {
|
|
@@ -125,6 +155,7 @@ export var CohortPanel = function (_a) {
|
|
|
125
155
|
useClearFilter: partial(useClearFilters, index),
|
|
126
156
|
useFilterExpanded: partial(useFilterExpandedState, index),
|
|
127
157
|
useToggleExpandFilter: partial(useToggleExpandFilter, index),
|
|
158
|
+
useFieldNameToTitle: useFieldNameToTitle,
|
|
128
159
|
useTotalCounts: undefined,
|
|
129
160
|
},
|
|
130
161
|
range: {
|
|
@@ -134,13 +165,14 @@ export var CohortPanel = function (_a) {
|
|
|
134
165
|
useClearFilter: partial(useClearFilters, index),
|
|
135
166
|
useFilterExpanded: partial(useFilterExpandedState, index),
|
|
136
167
|
useToggleExpandFilter: partial(useToggleExpandFilter, index),
|
|
168
|
+
useFieldNameToTitle: useFieldNameToTitle,
|
|
137
169
|
useTotalCounts: undefined,
|
|
138
170
|
},
|
|
139
171
|
};
|
|
140
172
|
}, [getEnumFacetData, getRangeFacetData, index]);
|
|
141
173
|
// Set the facet definitions based on the data only the first time the data is loaded
|
|
142
174
|
useDeepCompareEffect(function () {
|
|
143
|
-
var _a;
|
|
175
|
+
var _a, _b;
|
|
144
176
|
if (isSuccess && Object.keys(facetDefinitions).length === 0) {
|
|
145
177
|
var configFacetDefs = filters === null || filters === void 0 ? void 0 : filters.tabs.reduce(function (acc, tab) {
|
|
146
178
|
return __assign(__assign({}, tab.fieldsConfig), acc);
|
|
@@ -148,7 +180,8 @@ export var CohortPanel = function (_a) {
|
|
|
148
180
|
var facetDefs_1 = classifyFacets(data, index, (_a = guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.fieldMapping) !== null && _a !== void 0 ? _a : [], configFacetDefs !== null && configFacetDefs !== void 0 ? configFacetDefs : {}, sharedFiltersMap);
|
|
149
181
|
setFacetDefinitions(facetDefs_1);
|
|
150
182
|
// setup summary charts since nested fields can be listed by the split field name
|
|
151
|
-
var
|
|
183
|
+
var chartDefinitions_1 = (_b = chartsSection === null || chartsSection === void 0 ? void 0 : chartsSection.charts) !== null && _b !== void 0 ? _b : charts;
|
|
184
|
+
var summaryCharts_1 = Object.keys(chartDefinitions_1).reduce(function (acc, field) {
|
|
152
185
|
var _a;
|
|
153
186
|
var chartField = field;
|
|
154
187
|
if ((facetDefs_1 === null || facetDefs_1 === void 0 ? void 0 : facetDefs_1[field]) === undefined) {
|
|
@@ -159,7 +192,7 @@ export var CohortPanel = function (_a) {
|
|
|
159
192
|
chartField = res[0].field;
|
|
160
193
|
}
|
|
161
194
|
}
|
|
162
|
-
return __assign(__assign({}, acc), (_a = {}, _a[chartField] =
|
|
195
|
+
return __assign(__assign({}, acc), (_a = {}, _a[chartField] = chartDefinitions_1[field], _a));
|
|
163
196
|
}, {});
|
|
164
197
|
setSummaryCharts(summaryCharts_1);
|
|
165
198
|
}
|
|
@@ -170,15 +203,16 @@ export var CohortPanel = function (_a) {
|
|
|
170
203
|
index,
|
|
171
204
|
guppyConfig.fieldMapping,
|
|
172
205
|
charts,
|
|
206
|
+
chartsSection,
|
|
173
207
|
]);
|
|
174
|
-
var
|
|
208
|
+
var _m = useGetCountsQuery({
|
|
175
209
|
type: index,
|
|
176
210
|
filters: cohortFilters,
|
|
177
211
|
accessibility: accessLevel,
|
|
178
|
-
}), counts =
|
|
212
|
+
}), counts = _m.data, isCountSuccess = _m.isSuccess, isError = _m.isError;
|
|
179
213
|
if (isError || isAggsQueryError) {
|
|
180
214
|
return _jsx(ErrorCard, { message: "Unable to fetch data from server" }); // TODO: replace with configurable message
|
|
181
215
|
}
|
|
182
|
-
return (_jsxs("div", { className: "flex flex-col mt-3 relative px-4 bg-base-light w-full", children: [_jsx(CohortManager, { index: index }), _jsxs("div", { className: "flex w-full", children: [_jsx("div", { id: "cohort-builder-filters", className: "flex-shrink-0 md:w-1/4 lg:w-1/5", children: (filters === null || filters === void 0 ? void 0 : filters.tabs) && (_jsx(DropdownPanel, { index: index, filters: filters, tabTitle: tabTitle, facetDefinitions: facetDefinitions, facetDataHooks: facetDataHooks, onAccessChange: setAccessLevel, accessLevel: accessLevel, showAccessLevel: showAccessLevel })) }), _jsxs("div", { id: "cohort-builder-content", className: "flex flex-col md:w-3/4 lg:w-4/5 pl-4", children: [_jsxs("div", { className: "flex justify-between mb-2 ml-2", children: [_jsx(DownloadsPanel, { dropdowns: dropdowns !== null && dropdowns !== void 0 ? dropdowns : {}, buttons: buttons !== null && buttons !== void 0 ? buttons : [], loginForDownload: loginForDownload, index: index, totalCount: counts !== null && counts !== void 0 ? counts : 0, fields: (
|
|
216
|
+
return (_jsxs("div", { className: "flex flex-col mt-3 relative px-4 bg-base-light w-full", children: [_jsx(CohortManager, { index: index }), _jsxs("div", { className: "flex w-full", children: [_jsx("div", { id: "cohort-builder-filters", className: "flex-shrink-0 md:w-1/4 lg:w-1/5", children: (filters === null || filters === void 0 ? void 0 : filters.tabs) && (_jsx(DropdownPanel, { index: index, filters: filters, tabTitle: tabTitle, facetDefinitions: facetDefinitions, facetDataHooks: facetDataHooks, onAccessChange: setAccessLevel, accessLevel: accessLevel, showAccessLevel: showAccessLevel })) }), _jsxs("div", { id: "cohort-builder-content", className: "flex flex-col md:w-3/4 lg:w-4/5 pl-4", children: [_jsxs("div", { className: "flex justify-between mb-2 ml-2", children: [_jsx(DownloadsPanel, { dropdowns: dropdowns !== null && dropdowns !== void 0 ? dropdowns : {}, buttons: buttons !== null && buttons !== void 0 ? buttons : [], loginForDownload: loginForDownload, index: index, totalCount: counts !== null && counts !== void 0 ? counts : 0, fields: (_c = table === null || table === void 0 ? void 0 : table.fields) !== null && _c !== void 0 ? _c : [], filter: cohortFilters }), _jsx(CountsValue, { label: (guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.nodeCountTitle) || toDisplayName(index), counts: counts, isSuccess: isCountSuccess })] }), (chartsSection === null || chartsSection === void 0 ? void 0 : chartsSection.enabled) ? (_jsx(CollapsableCharts, { config: __assign(__assign({}, chartsSection), { charts: summaryCharts }), data: chartData !== null && chartData !== void 0 ? chartData : EmptyData })) : (_jsx(Charts, { charts: summaryCharts, data: chartData !== null && chartData !== void 0 ? chartData : EmptyData, counts: counts, isSuccess: isChartSuccess, numCols: numCols })), (table === null || table === void 0 ? void 0 : table.enabled) && (_jsx("div", { className: "mt-2 flex flex-col", children: _jsx("div", { className: "grid", children: _jsx(ExplorerTable, { index: index, tableConfig: table, accessibility: accessLevel }) }) }))] })] })] }));
|
|
183
217
|
};
|
|
184
218
|
//# sourceMappingURL=CohortPanel.js.map
|