@gen3/frontend 0.10.79 → 0.10.80
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 +87 -84
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Profile/CredentialsTable.d.ts.map +1 -1
- package/dist/dts/components/Profile/CredentialsTable.js +3 -4
- package/dist/dts/components/Profile/CredentialsTable.js.map +1 -1
- package/dist/dts/components/Profile/ExternalProviderCard.d.ts +2 -0
- package/dist/dts/components/Profile/ExternalProviderCard.d.ts.map +1 -1
- package/dist/dts/components/Profile/ExternalProviderCard.js +13 -11
- package/dist/dts/components/Profile/ExternalProviderCard.js.map +1 -1
- package/dist/dts/components/Profile/ExternalProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Profile/ExternalProvidersPanel.js +2 -2
- package/dist/dts/components/Profile/ExternalProvidersPanel.js.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.js +43 -53
- package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
- package/dist/dts/components/facets/MultiSelectValueFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/MultiSelectValueFacet.js +14 -31
- package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +3 -3
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.js +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +23 -0
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +39 -0
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts +3 -0
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +34 -0
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts +11 -0
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/Panels/types.js.map +1 -0
- package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts +4 -0
- package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts.map +1 -0
- package/dist/dts/features/{CohortDiversity/CohortDiversityApp.js → CohortDistance/CohortDistanceApp.js} +9 -9
- package/dist/dts/features/CohortDistance/CohortDistanceApp.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/ComnparisonCard.d.ts +2 -2
- package/dist/dts/features/CohortDistance/ComnparisonCard.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/ComnparisonCard.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/ComparisonCards.d.ts +2 -2
- package/dist/dts/features/CohortDistance/ComparisonCards.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/ComparisonCards.js.map +1 -0
- package/dist/dts/features/CohortDistance/appApi.d.ts +8 -0
- package/dist/dts/features/CohortDistance/appApi.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/appApi.js +4 -0
- package/dist/dts/features/CohortDistance/appApi.js.map +1 -0
- package/dist/dts/features/CohortDistance/charts/BarComparison.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/charts/BarComparison.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ChartCard.d.ts +3 -3
- package/dist/dts/features/CohortDistance/charts/ChartCard.d.ts.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ChartCard.js +3 -3
- package/dist/dts/features/CohortDistance/charts/ChartCard.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ComparisonCharts.d.ts +2 -2
- package/dist/dts/features/CohortDistance/charts/ComparisonCharts.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/charts/ComparisonCharts.js.map +1 -0
- package/dist/dts/features/CohortDistance/charts/RadarComparison.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/charts/RadarComparison.js.map +1 -0
- package/dist/dts/features/{CohortDiversity/charts/diversityChartsFactory.d.ts → CohortDistance/charts/cohortDistanceChartsFactory.d.ts} +3 -3
- package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.d.ts.map +1 -0
- package/dist/dts/features/{CohortDiversity/charts/diversityChartsFactory.js → CohortDistance/charts/cohortDistanceChartsFactory.js} +3 -3
- package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.js.map +1 -0
- package/dist/dts/features/CohortDistance/charts/types.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/charts/types.js.map +1 -0
- package/dist/dts/features/CohortDistance/charts/utils.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/charts/utils.js.map +1 -0
- package/dist/dts/features/{CohortDiversity/diversityApi.d.ts → CohortDistance/cohortDistanceApi.d.ts} +14 -14
- package/dist/dts/features/CohortDistance/cohortDistanceApi.d.ts.map +1 -0
- package/dist/dts/features/{CohortDiversity/diversityApi.js → CohortDistance/cohortDistanceApi.js} +5 -5
- package/dist/dts/features/CohortDistance/cohortDistanceApi.js.map +1 -0
- package/dist/dts/features/CohortDistance/registerApp.d.ts +3 -0
- package/dist/dts/features/CohortDistance/registerApp.d.ts.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/registerApp.js +5 -5
- package/dist/dts/features/CohortDistance/registerApp.js.map +1 -0
- package/dist/dts/features/CohortDistance/statistics/StatisticsCard.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/statistics/StatisticsCard.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsPanel.d.ts +2 -2
- package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.js.map +1 -0
- package/dist/dts/features/CohortDistance/statistics/data/data.d.ts +2 -0
- package/dist/dts/features/CohortDistance/statistics/data/data.d.ts.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/data.js +1 -1
- package/dist/dts/features/CohortDistance/statistics/data/data.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/tests/processHistogramResponse.unit.test.d.ts.map +1 -1
- package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/tests/processHistogramResponse.unit.test.js +6 -6
- package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.js.map +1 -0
- package/dist/dts/features/CohortDistance/statistics/data/utils.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/statistics/data/utils.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/queries.d.ts +1 -1
- package/dist/dts/features/CohortDistance/statistics/queries.d.ts.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/queries.js +1 -1
- package/dist/dts/features/CohortDistance/statistics/queries.js.map +1 -0
- package/dist/dts/features/{CohortDiversity → CohortDistance}/types.d.ts +6 -6
- package/dist/dts/features/CohortDistance/types.d.ts.map +1 -0
- package/dist/dts/features/CohortDistance/types.js +2 -0
- package/dist/dts/features/CohortDistance/types.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.d.ts +4 -0
- package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.js +54 -0
- package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/ComnparisonCard.d.ts +15 -0
- package/dist/dts/features/CohortSimilarity/ComnparisonCard.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/ComnparisonCard.js +32 -0
- package/dist/dts/features/CohortSimilarity/ComnparisonCard.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/ComparisonCards.d.ts +15 -0
- package/dist/dts/features/CohortSimilarity/ComparisonCards.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/ComparisonCards.js +14 -0
- package/dist/dts/features/CohortSimilarity/ComparisonCards.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/appApi.d.ts +8 -0
- package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/appApi.js +4 -0
- package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/BarComparison.d.ts +5 -0
- package/dist/dts/features/CohortSimilarity/charts/BarComparison.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/BarComparison.js +70 -0
- package/dist/dts/features/CohortSimilarity/charts/BarComparison.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/ChartCard.d.ts +16 -0
- package/dist/dts/features/CohortSimilarity/charts/ChartCard.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/ChartCard.js +45 -0
- package/dist/dts/features/CohortSimilarity/charts/ChartCard.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.d.ts +13 -0
- package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.js +18 -0
- package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/RadarComparison.d.ts +5 -0
- package/dist/dts/features/CohortSimilarity/charts/RadarComparison.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/RadarComparison.js +90 -0
- package/dist/dts/features/CohortSimilarity/charts/RadarComparison.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.d.ts +6 -0
- package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.js +24 -0
- package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/types.d.ts +12 -0
- package/dist/dts/features/CohortSimilarity/charts/types.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/types.js +2 -0
- package/dist/dts/features/CohortSimilarity/charts/types.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/utils.d.ts +2 -0
- package/dist/dts/features/CohortSimilarity/charts/utils.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/charts/utils.js +4 -0
- package/dist/dts/features/CohortSimilarity/charts/utils.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.d.ts +141 -0
- package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.js +14 -0
- package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/registerApp.d.ts +3 -0
- package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/registerApp.js +19 -0
- package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.d.ts +9 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.js +68 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.d.ts +13 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.js +16 -0
- package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/data.d.ts +2 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/data.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/data.js +50 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/data.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.d.ts +2 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.js +365 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/tests/similarityResponse.json +228 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/utils.d.ts +49 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/utils.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/utils.js +146 -0
- package/dist/dts/features/CohortSimilarity/statistics/data/utils.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/queries.d.ts +6 -0
- package/dist/dts/features/CohortSimilarity/statistics/queries.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/statistics/queries.js +24 -0
- package/dist/dts/features/CohortSimilarity/statistics/queries.js.map +1 -0
- package/dist/dts/features/CohortSimilarity/types.d.ts +26 -0
- package/dist/dts/features/CohortSimilarity/types.d.ts.map +1 -0
- package/dist/dts/features/CohortSimilarity/types.js +2 -0
- package/dist/dts/features/CohortSimilarity/types.js.map +1 -0
- package/dist/dts/index.d.ts +2 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +2 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/esm/index.js +88 -85
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -6
- package/dist/dts/features/CohortDiversity/CohortDiversityApp.d.ts +0 -4
- package/dist/dts/features/CohortDiversity/CohortDiversityApp.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/CohortDiversityApp.js.map +0 -1
- package/dist/dts/features/CohortDiversity/ComnparisonCard.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/ComnparisonCard.js.map +0 -1
- package/dist/dts/features/CohortDiversity/ComparisonCards.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/ComparisonCards.js.map +0 -1
- package/dist/dts/features/CohortDiversity/appApi.d.ts +0 -8
- package/dist/dts/features/CohortDiversity/appApi.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/appApi.js +0 -4
- package/dist/dts/features/CohortDiversity/appApi.js.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/BarComparison.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/BarComparison.js.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/ChartCard.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/ChartCard.js.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.js.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/RadarComparison.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/RadarComparison.js.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.js.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/types.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/types.js.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/utils.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/charts/utils.js.map +0 -1
- package/dist/dts/features/CohortDiversity/diversityApi.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/diversityApi.js.map +0 -1
- package/dist/dts/features/CohortDiversity/registerApp.d.ts +0 -3
- package/dist/dts/features/CohortDiversity/registerApp.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/registerApp.js.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.js.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.js.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/data/data.d.ts +0 -2
- package/dist/dts/features/CohortDiversity/statistics/data/data.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/data/data.js.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/data/tests/processHistogramResponse.unit.test.js.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/data/utils.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/data/utils.js.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/queries.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/statistics/queries.js.map +0 -1
- package/dist/dts/features/CohortDiversity/types.d.ts.map +0 -1
- package/dist/dts/features/CohortDiversity/types.js.map +0 -1
- /package/dist/dts/features/{CohortDiversity/charts → CohortBuilder/Panels}/types.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/ComnparisonCard.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/ComparisonCards.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/BarComparison.d.ts +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/BarComparison.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ComparisonCharts.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/RadarComparison.d.ts +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/RadarComparison.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/types.d.ts +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance/charts}/types.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/utils.d.ts +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/utils.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsCard.d.ts +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsCard.js +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsPanel.js +0 -0
- /package/dist/dts/features/{CohortDiversity/statistics/data/tests/diversityResponse.json → CohortDistance/statistics/data/tests/distanceResponse.json} +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/tests/processHistogramResponse.unit.test.d.ts +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/utils.d.ts +0 -0
- /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/utils.js +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import { PiDotsThreeCircleThin, PiTrash, PiSparkleFill, PiCaretUpFill, PiCaretDo
|
|
|
32
32
|
import Head from 'next/head';
|
|
33
33
|
import { useMantineReactTable, MantineReactTable } from 'mantine-react-table';
|
|
34
34
|
import { JSONPath } from 'jsonpath-plus';
|
|
35
|
-
import { LuClock, LuCircleSlash, LuUnlock, LuLock
|
|
35
|
+
import { LuClock, LuCircleSlash, LuUnlock, LuLock } from 'react-icons/lu';
|
|
36
36
|
import { FiDownload, FiMoreVertical } from 'react-icons/fi';
|
|
37
37
|
import { TiArrowUnsorted, TiArrowSortedUp, TiArrowSortedDown } from 'react-icons/ti';
|
|
38
38
|
import { flushSync } from 'react-dom';
|
|
@@ -7205,6 +7205,28 @@ font-content
|
|
|
7205
7205
|
});
|
|
7206
7206
|
};
|
|
7207
7207
|
|
|
7208
|
+
const compareKeysAscending = (a, b)=>{
|
|
7209
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
7210
|
+
return a - b;
|
|
7211
|
+
}
|
|
7212
|
+
// If only one value is a number, move numbers to one end
|
|
7213
|
+
// (in this case, numbers will come before strings)
|
|
7214
|
+
if (typeof a === 'number') return -1;
|
|
7215
|
+
if (typeof b === 'number') return 1;
|
|
7216
|
+
// If both are strings, sort alphabetically
|
|
7217
|
+
return a.localeCompare(b);
|
|
7218
|
+
};
|
|
7219
|
+
const compareKeysDescending = (a, b)=>{
|
|
7220
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
7221
|
+
return b - a;
|
|
7222
|
+
}
|
|
7223
|
+
// If only one value is a number, move numbers to one end
|
|
7224
|
+
// (in this case, numbers will come before strings)
|
|
7225
|
+
if (typeof a === 'number') return 1;
|
|
7226
|
+
if (typeof b === 'number') return -1;
|
|
7227
|
+
// If both are strings, sort alphabetically
|
|
7228
|
+
return b.localeCompare(a);
|
|
7229
|
+
};
|
|
7208
7230
|
const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true, isSearching = false, showPercent = false, hideIfEmpty = false, showSorting = true })=>{
|
|
7209
7231
|
const [isGroupExpanded, setIsGroupExpanded] = useState(false);
|
|
7210
7232
|
const cardRef = useRef(null);
|
|
@@ -7217,7 +7239,7 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7217
7239
|
const updateFacetFilters = hooks.useUpdateFacetFilters();
|
|
7218
7240
|
const isFilterExpanded = hooks?.useFilterExpanded && hooks.useFilterExpanded(field);
|
|
7219
7241
|
const showFilters = isFilterExpanded === undefined || isFilterExpanded;
|
|
7220
|
-
const [sortedData, setSortedData] = useState(
|
|
7242
|
+
const [sortedData, setSortedData] = useState([]);
|
|
7221
7243
|
const [sortType, setSortType] = useState({
|
|
7222
7244
|
type: 'alpha',
|
|
7223
7245
|
direction: 'asc'
|
|
@@ -7336,25 +7358,9 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7336
7358
|
]);
|
|
7337
7359
|
useDeepCompareEffect(()=>{
|
|
7338
7360
|
if (facetChartData.filteredData && facetChartData.filteredData.length > 0) {
|
|
7339
|
-
const compareValuesAscending = ([, a], [, b])=>a - b;
|
|
7340
|
-
const compareValuesDescending = ([, a], [, b])=>b - a;
|
|
7341
|
-
const compareKeysAscending = ([a], [b])=>typeof a === 'string' && typeof b === 'string' ? a.localeCompare(b) : typeof a === 'number' && typeof b === 'number' ? a - b : 0;
|
|
7342
|
-
const compareKeysDescending = ([a], [b])=>typeof a === 'string' && typeof b === 'string' ? b.localeCompare(a) : typeof a === 'number' && typeof b === 'number' ? b - a : 0;
|
|
7343
|
-
let comparisonFn;
|
|
7344
|
-
if (sortType.type === 'value') {
|
|
7345
|
-
comparisonFn = sortType.direction === 'dsc' ? compareValuesDescending : compareValuesAscending;
|
|
7346
|
-
} else {
|
|
7347
|
-
comparisonFn = sortType.direction === 'dsc' ? compareKeysDescending : compareKeysAscending;
|
|
7348
|
-
}
|
|
7349
7361
|
const obj = [
|
|
7350
7362
|
...facetChartData.filteredData
|
|
7351
|
-
].sort(
|
|
7352
|
-
acc[key] = value;
|
|
7353
|
-
return acc;
|
|
7354
|
-
}, {});
|
|
7355
|
-
Object.fromEntries([
|
|
7356
|
-
...facetChartData.filteredData
|
|
7357
|
-
].sort(comparisonFn).slice(0, !isGroupExpanded ? maxValuesToDisplay : undefined));
|
|
7363
|
+
].sort(sortType.type === 'value' ? ([, a], [, b])=>sortType.direction === 'dsc' ? b - a : a - b : ([a], [b])=>sortType.direction === 'dsc' ? compareKeysDescending(a, b) : compareKeysAscending(a, b)).slice(0, !isGroupExpanded ? maxValuesToDisplay : undefined);
|
|
7358
7364
|
setSortedData(obj);
|
|
7359
7365
|
}
|
|
7360
7366
|
}, [
|
|
@@ -7418,10 +7424,10 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7418
7424
|
facetChartData.filteredData.length == 0 ? /*#__PURE__*/ jsx("div", {
|
|
7419
7425
|
className: "mx-4 font-content text-sm",
|
|
7420
7426
|
children: BAD_DATA_MESSAGE
|
|
7421
|
-
}) : isSuccess ? !sortedData ||
|
|
7427
|
+
}) : isSuccess ? !sortedData || sortedData.length === 0 ? /*#__PURE__*/ jsx("div", {
|
|
7422
7428
|
className: "mx-4",
|
|
7423
7429
|
children: "No results found"
|
|
7424
|
-
}) :
|
|
7430
|
+
}) : sortedData.map(([value, count])=>{
|
|
7425
7431
|
return /*#__PURE__*/ jsxs("div", {
|
|
7426
7432
|
className: "flex flex-row items-center gap-x-1",
|
|
7427
7433
|
children: [
|
|
@@ -7442,7 +7448,7 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7442
7448
|
})
|
|
7443
7449
|
}),
|
|
7444
7450
|
/*#__PURE__*/ jsx(OverflowTooltippedLabel, {
|
|
7445
|
-
label: value,
|
|
7451
|
+
label: value.toString(),
|
|
7446
7452
|
children: /*#__PURE__*/ jsx("span", {
|
|
7447
7453
|
className: "text-xs font-normal font-content",
|
|
7448
7454
|
children: value
|
|
@@ -7726,6 +7732,13 @@ const RangeFacet = ({ field, hooks, valueLabel, description, facetName, minimum
|
|
|
7726
7732
|
const instanceOfIncludesExcludes$1 = (op)=>[
|
|
7727
7733
|
'in'
|
|
7728
7734
|
].includes(op.operator); // TODO: Guppy does not support excludes
|
|
7735
|
+
const isOperandsObject = (obj)=>{
|
|
7736
|
+
return !!obj && // Ensure obj is not null or undefined
|
|
7737
|
+
typeof obj === 'object' && 'operands' in obj && Array.isArray(obj.operands);
|
|
7738
|
+
};
|
|
7739
|
+
const isFacetEmpty = (op)=>{
|
|
7740
|
+
return isOperandsObject(op) && op.operands.length === 0;
|
|
7741
|
+
};
|
|
7729
7742
|
/**
|
|
7730
7743
|
* Exact value facet component
|
|
7731
7744
|
* @param field - field to facet on
|
|
@@ -7756,7 +7769,7 @@ const instanceOfIncludesExcludes$1 = (op)=>[
|
|
|
7756
7769
|
facetDataValues?.data
|
|
7757
7770
|
]);
|
|
7758
7771
|
useDeepCompareEffect(()=>{
|
|
7759
|
-
if (!facetValue) {
|
|
7772
|
+
if (!facetValue || isFacetEmpty(facetValue)) {
|
|
7760
7773
|
setSelectedValues([]);
|
|
7761
7774
|
} else if (instanceOfIncludesExcludes$1(facetValue)) {
|
|
7762
7775
|
const filters = facetValue.operands.map((x)=>x.toString());
|
|
@@ -7767,26 +7780,9 @@ const instanceOfIncludesExcludes$1 = (op)=>[
|
|
|
7767
7780
|
]);
|
|
7768
7781
|
useDeepCompareEffect(()=>{
|
|
7769
7782
|
const setValues = (values)=>{
|
|
7770
|
-
|
|
7771
|
-
if (facetValue && instanceOfIncludesExcludes$1(facetValue)) {
|
|
7772
|
-
// updating facet value
|
|
7773
|
-
updateFacetFilters(field, {
|
|
7774
|
-
...facetValue,
|
|
7775
|
-
operands: values
|
|
7776
|
-
});
|
|
7777
|
-
}
|
|
7778
|
-
if (facetValue === undefined) {
|
|
7779
|
-
// TODO: Assuming Includes by default but this might change to Include|Excludes
|
|
7780
|
-
updateFacetFilters(field, {
|
|
7781
|
-
operator: 'in',
|
|
7782
|
-
field: field,
|
|
7783
|
-
operands: values
|
|
7784
|
-
});
|
|
7785
|
-
}
|
|
7786
|
-
} else {
|
|
7787
|
-
clearFilters(field);
|
|
7788
|
-
}
|
|
7783
|
+
updateFacetEnum(field, values, updateFacetFilters, clearFilters);
|
|
7789
7784
|
};
|
|
7785
|
+
console.log('selectedValues: ', selectedValues);
|
|
7790
7786
|
setValues(selectedValues);
|
|
7791
7787
|
}, [
|
|
7792
7788
|
selectedValues
|
|
@@ -7847,17 +7843,25 @@ const instanceOfIncludesExcludes$1 = (op)=>[
|
|
|
7847
7843
|
children: /*#__PURE__*/ jsx(MultiSelect, {
|
|
7848
7844
|
"data-testid": "multiselect-add-filter-value",
|
|
7849
7845
|
size: "sm",
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
root: 'grow',
|
|
7853
|
-
input: 'border-r-0 rounded-r-none py-1'
|
|
7846
|
+
comboboxProps: {
|
|
7847
|
+
shadow: 'md'
|
|
7854
7848
|
},
|
|
7849
|
+
placeholder: `Enter ${facetTitle}`,
|
|
7855
7850
|
"aria-label": "enter value to add filter",
|
|
7856
7851
|
value: selectedValues,
|
|
7857
7852
|
onChange: setSelectedValues,
|
|
7858
7853
|
data: dataValues,
|
|
7854
|
+
limit: 10,
|
|
7859
7855
|
searchable: true,
|
|
7860
|
-
|
|
7856
|
+
hidePickedOptions: true,
|
|
7857
|
+
withScrollArea: false,
|
|
7858
|
+
styles: {
|
|
7859
|
+
dropdown: {
|
|
7860
|
+
maxHeight: 200,
|
|
7861
|
+
overflowY: 'auto'
|
|
7862
|
+
}
|
|
7863
|
+
},
|
|
7864
|
+
mt: "md"
|
|
7861
7865
|
})
|
|
7862
7866
|
})
|
|
7863
7867
|
]
|
|
@@ -8081,7 +8085,7 @@ const FiltersPanel = ({ fields, dataFunctions, valueLabel })=>{
|
|
|
8081
8085
|
"data-testid": "filters-facets",
|
|
8082
8086
|
className: "flex flex-col gap-y-4 h-full overflow-y-scroll px-4 w-full",
|
|
8083
8087
|
children: fields.map((facetDefinition)=>{
|
|
8084
|
-
return createFacetCard(facetDefinition, valueLabel, dataFunctions[facetDefinition.type], 'filters-panel', undefined, false, facetDefinition.label, 'w-
|
|
8088
|
+
return createFacetCard(facetDefinition, valueLabel, dataFunctions[facetDefinition.type], 'filters-panel', undefined, false, facetDefinition.label, 'w-80');
|
|
8085
8089
|
})
|
|
8086
8090
|
});
|
|
8087
8091
|
};
|
|
@@ -10102,7 +10106,7 @@ const SinglePanel = ({ filters, tabTitle, facetDefinitions, facetDataHooks })=>{
|
|
|
10102
10106
|
const [facetDefinitions, setFacetDefinitions] = useState({});
|
|
10103
10107
|
const [summaryCharts, setSummaryCharts] = useState({});
|
|
10104
10108
|
const cohortFilters = useCoreSelector((state)=>selectIndexFilters(state, index));
|
|
10105
|
-
const { data, isSuccess, isError: isAggsQueryError } = useGetAggsQuery({
|
|
10109
|
+
const { data, isSuccess, isFetching: isAggsQueryFetching, isError: isAggsQueryError } = useGetAggsQuery({
|
|
10106
10110
|
type: index,
|
|
10107
10111
|
fields: fields,
|
|
10108
10112
|
filters: cohortFilters
|
|
@@ -10218,6 +10222,9 @@ const SinglePanel = ({ filters, tabTitle, facetDefinitions, facetDataHooks })=>{
|
|
|
10218
10222
|
return /*#__PURE__*/ jsxs("div", {
|
|
10219
10223
|
className: "flex mt-3 relative",
|
|
10220
10224
|
children: [
|
|
10225
|
+
/*#__PURE__*/ jsx(LoadingOverlay, {
|
|
10226
|
+
visible: isAggsQueryFetching
|
|
10227
|
+
}),
|
|
10221
10228
|
/*#__PURE__*/ jsx("div", {
|
|
10222
10229
|
children: filters?.tabs === undefined ? null : filters?.tabs.length > 1 ? /*#__PURE__*/ jsx(TabbedPanel, {
|
|
10223
10230
|
filters: filters,
|
|
@@ -12297,7 +12304,7 @@ const DefaultRendererCatalog = {
|
|
|
12297
12304
|
radarComparison: RadarComparison
|
|
12298
12305
|
}
|
|
12299
12306
|
};
|
|
12300
|
-
const
|
|
12307
|
+
const CohortSimilarityChartsFactory = ()=>{
|
|
12301
12308
|
if (!instance) {
|
|
12302
12309
|
instance = new RenderFactoryTypedInstance();
|
|
12303
12310
|
instance.registerRendererCatalog(DefaultRendererCatalog);
|
|
@@ -12305,7 +12312,7 @@ const DiversityChartsFactory = ()=>{
|
|
|
12305
12312
|
return instance;
|
|
12306
12313
|
};
|
|
12307
12314
|
|
|
12308
|
-
|
|
12315
|
+
CohortSimilarityChartsFactory();
|
|
12309
12316
|
const generateChart = (groundData, groundLabel, comparisonData, comparisonLabel, field, config, showTitle = true)=>{
|
|
12310
12317
|
// Check if the field exists in the datasets
|
|
12311
12318
|
if (!(field in groundData) || !(field in comparisonData)) {
|
|
@@ -12314,7 +12321,7 @@ const generateChart = (groundData, groundLabel, comparisonData, comparisonLabel,
|
|
|
12314
12321
|
children: "Error: Data field missing"
|
|
12315
12322
|
});
|
|
12316
12323
|
}
|
|
12317
|
-
const chartRenderer =
|
|
12324
|
+
const chartRenderer = CohortSimilarityChartsFactory().getRenderer('comparison', config.chartType);
|
|
12318
12325
|
// Check if renderer is the DefaultItemRenderer to log a warning
|
|
12319
12326
|
if (chartRenderer === DefaultComparisonChart) {
|
|
12320
12327
|
console.warn(`No specific renderer found for ${config.chartType}. Using default renderer.`);
|
|
@@ -12681,7 +12688,7 @@ const ComparisonCharts = ({ ground, groundLabel, comparison, comparisonLabel, co
|
|
|
12681
12688
|
return result;
|
|
12682
12689
|
};
|
|
12683
12690
|
|
|
12684
|
-
const
|
|
12691
|
+
const getStaticSimilarityData = (dataset)=>{
|
|
12685
12692
|
return convertToAggregateData({
|
|
12686
12693
|
census: {
|
|
12687
12694
|
age_at_index: {
|
|
@@ -12739,7 +12746,7 @@ const convertToValidJSON = (inputString)=>{
|
|
|
12739
12746
|
cleanedString = cleanedString.replace(/'/g, '"');
|
|
12740
12747
|
return cleanedString;
|
|
12741
12748
|
};
|
|
12742
|
-
const
|
|
12749
|
+
const createSimilarityQuery = (fields = {
|
|
12743
12750
|
age_at_index: 'age_at_index',
|
|
12744
12751
|
sex: 'sex',
|
|
12745
12752
|
ethnicity: 'ethnicity',
|
|
@@ -13014,9 +13021,9 @@ const createDiversityQuery = (fields = {
|
|
|
13014
13021
|
};
|
|
13015
13022
|
};
|
|
13016
13023
|
|
|
13017
|
-
const
|
|
13018
|
-
const groundDataset =
|
|
13019
|
-
const gqlQuery =
|
|
13024
|
+
const CohortSimilarityApp = (config)=>{
|
|
13025
|
+
const groundDataset = getStaticSimilarityData(config.datasets.ground.dataset);
|
|
13026
|
+
const gqlQuery = createSimilarityQuery(); // TODO: add field mapping
|
|
13020
13027
|
const { data: rawComparisonDataset, isLoading: isComparisonLoading, isError: isComparisonError } = useGeneralGQLQuery({
|
|
13021
13028
|
query: gqlQuery.query,
|
|
13022
13029
|
variables: JSON.parse(gqlQuery.variables)
|
|
@@ -13033,7 +13040,7 @@ const CohortDiversityApp = (config)=>{
|
|
|
13033
13040
|
]);
|
|
13034
13041
|
if (isComparisonError) {
|
|
13035
13042
|
return /*#__PURE__*/ jsx(ErrorCard, {
|
|
13036
|
-
message: 'Unable to get data need for Cohort
|
|
13043
|
+
message: 'Unable to get data need for Cohort Similarity'
|
|
13037
13044
|
});
|
|
13038
13045
|
}
|
|
13039
13046
|
if (isComparisonLoading) {
|
|
@@ -13045,12 +13052,12 @@ const CohortDiversityApp = (config)=>{
|
|
|
13045
13052
|
classNames: {
|
|
13046
13053
|
root: 'w-full m-4 mb-2'
|
|
13047
13054
|
},
|
|
13048
|
-
"aria-label": "Main Content of Cohort
|
|
13055
|
+
"aria-label": "Main Content of Cohort Similarity App",
|
|
13049
13056
|
children: [
|
|
13050
13057
|
/*#__PURE__*/ jsx(Title, {
|
|
13051
13058
|
order: 1,
|
|
13052
13059
|
size: "h3",
|
|
13053
|
-
children: "Cohort
|
|
13060
|
+
children: "Cohort Similarity Visualization"
|
|
13054
13061
|
}),
|
|
13055
13062
|
/*#__PURE__*/ jsx(Accordion, {
|
|
13056
13063
|
variant: "filled",
|
|
@@ -13100,13 +13107,13 @@ const CohortDiversityApp = (config)=>{
|
|
|
13100
13107
|
});
|
|
13101
13108
|
};
|
|
13102
13109
|
|
|
13103
|
-
const { appApi:
|
|
13110
|
+
const { appApi: cohortSimilarityApi, appStore, appContext } = createAppApiForRTKQ('cohortSimilarity');
|
|
13104
13111
|
|
|
13105
|
-
const _APP_NAME$1 = '
|
|
13112
|
+
const _APP_NAME$1 = 'CohortSimilarity'; // This wil be the route name of the app
|
|
13106
13113
|
const _APP_VERSION = '1.0.0';
|
|
13107
13114
|
const AppId = getGen3AppId(_APP_NAME$1, _APP_VERSION);
|
|
13108
|
-
const
|
|
13109
|
-
App:
|
|
13115
|
+
const registerCohortSimilarityApp = ()=>createGen3AppWithOwnStore({
|
|
13116
|
+
App: CohortSimilarityApp,
|
|
13110
13117
|
name: _APP_NAME$1,
|
|
13111
13118
|
version: 'v1.0.0',
|
|
13112
13119
|
id: AppId,
|
|
@@ -15167,19 +15174,12 @@ const getStatus = (expiration, now)=>{
|
|
|
15167
15174
|
header: 'Actions',
|
|
15168
15175
|
Cell: ({ row })=>/*#__PURE__*/ jsx("div", {
|
|
15169
15176
|
className: "flex items-center",
|
|
15170
|
-
children:
|
|
15177
|
+
children: /*#__PURE__*/ jsx(ActionIcon, {
|
|
15171
15178
|
onClick: ()=>removeCredential({
|
|
15172
15179
|
csrfToken: csrfToken?.csrfToken,
|
|
15173
15180
|
id: row.original.key
|
|
15174
15181
|
}),
|
|
15175
15182
|
children: /*#__PURE__*/ jsx(MdDelete, {})
|
|
15176
|
-
}) : /*#__PURE__*/ jsxs("span", {
|
|
15177
|
-
children: [
|
|
15178
|
-
' ',
|
|
15179
|
-
/*#__PURE__*/ jsx(LuRefreshCw, {}),
|
|
15180
|
-
" ",
|
|
15181
|
-
/*#__PURE__*/ jsx(MdDelete, {})
|
|
15182
|
-
]
|
|
15183
15183
|
})
|
|
15184
15184
|
})
|
|
15185
15185
|
}
|
|
@@ -15422,18 +15422,18 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
|
|
|
15422
15422
|
* Open a new window for authentication.
|
|
15423
15423
|
* @param url - URL to open
|
|
15424
15424
|
* @param title - Title of the window
|
|
15425
|
-
|
|
15425
|
+
* @param refetch - refetch the external status if successful
|
|
15426
|
+
*/ const openAuthWindow = (url, title, refetch)=>{
|
|
15426
15427
|
const pollInterval = 500;
|
|
15427
15428
|
return new Promise((resolve, reject)=>{
|
|
15428
15429
|
if (window.navigator.cookieEnabled) {
|
|
15430
|
+
const width = Math.max(1024, window.innerWidth / 2);
|
|
15431
|
+
const height = Math.max(1024, window.innerHeight / 2);
|
|
15429
15432
|
const dualScreenLeft = window.screenLeft ?? window.screenX;
|
|
15430
15433
|
const dualScreenTop = window.screenTop ?? window.screenY;
|
|
15431
|
-
const
|
|
15432
|
-
const
|
|
15433
|
-
const
|
|
15434
|
-
const left = (width - 500) / 2 / systemZoom + dualScreenLeft;
|
|
15435
|
-
const top = (height - 550) / 2 / systemZoom + dualScreenTop;
|
|
15436
|
-
const win = window.open(url, title, `width=${500 / systemZoom},height=${550 / systemZoom},top=${top},left=${left}`);
|
|
15434
|
+
const left = dualScreenLeft + (window.innerWidth - width) / 2;
|
|
15435
|
+
const top = dualScreenTop + (window.innerHeight - height) / 2;
|
|
15436
|
+
const win = window.open(url, title, `width=${width},height=${height},left=${left},top=${top}`);
|
|
15437
15437
|
if (!win) {
|
|
15438
15438
|
reject('Popup blocked');
|
|
15439
15439
|
return;
|
|
@@ -15452,9 +15452,11 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
|
|
|
15452
15452
|
reject('login_error');
|
|
15453
15453
|
return;
|
|
15454
15454
|
}
|
|
15455
|
+
refetch();
|
|
15455
15456
|
resolve('success');
|
|
15456
15457
|
}
|
|
15457
|
-
|
|
15458
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15459
|
+
} catch (_err) {
|
|
15458
15460
|
// We just want to catch it and not reject it. Rejecting the promise leads to unexpected behavior
|
|
15459
15461
|
// where the logged-in status isn't reflected immediately as the program moves ahead w/o users
|
|
15460
15462
|
// having a chance to log in, requiring a manual screen refresh to update. By catching errors
|
|
@@ -15469,7 +15471,7 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
|
|
|
15469
15471
|
}
|
|
15470
15472
|
});
|
|
15471
15473
|
};
|
|
15472
|
-
const ExternalProviderCard = ({ provider })=>{
|
|
15474
|
+
const ExternalProviderCard = ({ provider, refetch })=>{
|
|
15473
15475
|
const [loading, handler] = useDisclosure();
|
|
15474
15476
|
return /*#__PURE__*/ jsxs(Card, {
|
|
15475
15477
|
withBorder: true,
|
|
@@ -15563,7 +15565,7 @@ const ExternalProviderCard = ({ provider })=>{
|
|
|
15563
15565
|
onClick: async ()=>{
|
|
15564
15566
|
const queryChar = providerUrl.url.includes('?') ? '&' : '?';
|
|
15565
15567
|
handler.open();
|
|
15566
|
-
openAuthWindow(`${providerUrl.url}${queryChar}redirect=${window.location.pathname}`, provider.name).finally(()=>{
|
|
15568
|
+
openAuthWindow(`${providerUrl.url}${queryChar}redirect=${window.location.pathname}`, provider.name, refetch).finally(()=>{
|
|
15567
15569
|
handler.close();
|
|
15568
15570
|
});
|
|
15569
15571
|
},
|
|
@@ -15586,9 +15588,10 @@ const ExternalProviderCard = ({ provider })=>{
|
|
|
15586
15588
|
};
|
|
15587
15589
|
|
|
15588
15590
|
const ExternalProvidersPanel = ()=>{
|
|
15589
|
-
const { data: externalProviders, isLoading, isError, isSuccess } = useGetExternalLoginsQuery();
|
|
15591
|
+
const { data: externalProviders, isLoading, isError, isSuccess, refetch } = useGetExternalLoginsQuery();
|
|
15590
15592
|
const providerCards = useMemo(()=>externalProviders ? externalProviders.providers.map((provider)=>/*#__PURE__*/ jsx(ExternalProviderCard, {
|
|
15591
|
-
provider: provider
|
|
15593
|
+
provider: provider,
|
|
15594
|
+
refetch: refetch
|
|
15592
15595
|
}, provider.base_url)) : null, [
|
|
15593
15596
|
externalProviders
|
|
15594
15597
|
]);
|
|
@@ -20102,5 +20105,5 @@ async function credentialsLogout(req, res) {
|
|
|
20102
20105
|
res.redirect(307, '/');
|
|
20103
20106
|
}
|
|
20104
20107
|
|
|
20105
|
-
export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, AuthzPage, BaseModal, Charts, CohortBuilder, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, Footer, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor$1 as GqlQueryEditor, Header, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, MinutesToMilliseconds, NavPageLayout, NavigationBar, NavigationButton, NoAccessModal, NotebookLitePage, NotebookLitePageGetStaticProps, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryPage, QueryPageGetServerSideProps, ReactECharts, ResourcesFilters, SPECIAL_CASE_FIELDS, SessionExpiredModal, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, TagCloud, TailwindConfig, User, Workspace, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, capitalize, computeRowSpan, convertMinutesToMilliseconds, convertSecondsToMilliseconds, create10ColorAccessibleContrast, create10ColorPallet, createMantineTheme, credentialsLogin, credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform$1 as isTextTransform, processLabel$1 as processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp,
|
|
20108
|
+
export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, AuthzPage, BaseModal, Charts, CohortBuilder, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, Footer, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor$1 as GqlQueryEditor, Header, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, MinutesToMilliseconds, NavPageLayout, NavigationBar, NavigationButton, NoAccessModal, NotebookLitePage, NotebookLitePageGetStaticProps, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryPage, QueryPageGetServerSideProps, ReactECharts, ResourcesFilters, SPECIAL_CASE_FIELDS, SessionExpiredModal, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, TagCloud, TailwindConfig, User, Workspace, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, capitalize, computeRowSpan, convertMinutesToMilliseconds, convertSecondsToMilliseconds, create10ColorAccessibleContrast, create10ColorPallet, createMantineTheme, credentialsLogin, credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform$1 as isTextTransform, processLabel$1 as processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp, registerCohortSimilarityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, registerMetadataSchemaApp, removeKey$1 as removeKey, resourcePathFromProjectID, sessionLogout, sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource$1 as userHasMethodForServiceOnResource };
|
|
20106
20109
|
//# sourceMappingURL=index.js.map
|