@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/cjs/index.js
CHANGED
|
@@ -7225,6 +7225,28 @@ font-content
|
|
|
7225
7225
|
});
|
|
7226
7226
|
};
|
|
7227
7227
|
|
|
7228
|
+
const compareKeysAscending = (a, b)=>{
|
|
7229
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
7230
|
+
return a - b;
|
|
7231
|
+
}
|
|
7232
|
+
// If only one value is a number, move numbers to one end
|
|
7233
|
+
// (in this case, numbers will come before strings)
|
|
7234
|
+
if (typeof a === 'number') return -1;
|
|
7235
|
+
if (typeof b === 'number') return 1;
|
|
7236
|
+
// If both are strings, sort alphabetically
|
|
7237
|
+
return a.localeCompare(b);
|
|
7238
|
+
};
|
|
7239
|
+
const compareKeysDescending = (a, b)=>{
|
|
7240
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
7241
|
+
return b - a;
|
|
7242
|
+
}
|
|
7243
|
+
// If only one value is a number, move numbers to one end
|
|
7244
|
+
// (in this case, numbers will come before strings)
|
|
7245
|
+
if (typeof a === 'number') return 1;
|
|
7246
|
+
if (typeof b === 'number') return -1;
|
|
7247
|
+
// If both are strings, sort alphabetically
|
|
7248
|
+
return b.localeCompare(a);
|
|
7249
|
+
};
|
|
7228
7250
|
const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true, isSearching = false, showPercent = false, hideIfEmpty = false, showSorting = true })=>{
|
|
7229
7251
|
const [isGroupExpanded, setIsGroupExpanded] = React.useState(false);
|
|
7230
7252
|
const cardRef = React.useRef(null);
|
|
@@ -7237,7 +7259,7 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7237
7259
|
const updateFacetFilters = hooks.useUpdateFacetFilters();
|
|
7238
7260
|
const isFilterExpanded = hooks?.useFilterExpanded && hooks.useFilterExpanded(field);
|
|
7239
7261
|
const showFilters = isFilterExpanded === undefined || isFilterExpanded;
|
|
7240
|
-
const [sortedData, setSortedData] = React.useState(
|
|
7262
|
+
const [sortedData, setSortedData] = React.useState([]);
|
|
7241
7263
|
const [sortType, setSortType] = React.useState({
|
|
7242
7264
|
type: 'alpha',
|
|
7243
7265
|
direction: 'asc'
|
|
@@ -7356,25 +7378,9 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7356
7378
|
]);
|
|
7357
7379
|
useDeepCompare.useDeepCompareEffect(()=>{
|
|
7358
7380
|
if (facetChartData.filteredData && facetChartData.filteredData.length > 0) {
|
|
7359
|
-
const compareValuesAscending = ([, a], [, b])=>a - b;
|
|
7360
|
-
const compareValuesDescending = ([, a], [, b])=>b - a;
|
|
7361
|
-
const compareKeysAscending = ([a], [b])=>typeof a === 'string' && typeof b === 'string' ? a.localeCompare(b) : typeof a === 'number' && typeof b === 'number' ? a - b : 0;
|
|
7362
|
-
const compareKeysDescending = ([a], [b])=>typeof a === 'string' && typeof b === 'string' ? b.localeCompare(a) : typeof a === 'number' && typeof b === 'number' ? b - a : 0;
|
|
7363
|
-
let comparisonFn;
|
|
7364
|
-
if (sortType.type === 'value') {
|
|
7365
|
-
comparisonFn = sortType.direction === 'dsc' ? compareValuesDescending : compareValuesAscending;
|
|
7366
|
-
} else {
|
|
7367
|
-
comparisonFn = sortType.direction === 'dsc' ? compareKeysDescending : compareKeysAscending;
|
|
7368
|
-
}
|
|
7369
7381
|
const obj = [
|
|
7370
7382
|
...facetChartData.filteredData
|
|
7371
|
-
].sort(
|
|
7372
|
-
acc[key] = value;
|
|
7373
|
-
return acc;
|
|
7374
|
-
}, {});
|
|
7375
|
-
Object.fromEntries([
|
|
7376
|
-
...facetChartData.filteredData
|
|
7377
|
-
].sort(comparisonFn).slice(0, !isGroupExpanded ? maxValuesToDisplay : undefined));
|
|
7383
|
+
].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);
|
|
7378
7384
|
setSortedData(obj);
|
|
7379
7385
|
}
|
|
7380
7386
|
}, [
|
|
@@ -7438,10 +7444,10 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7438
7444
|
facetChartData.filteredData.length == 0 ? /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
7439
7445
|
className: "mx-4 font-content text-sm",
|
|
7440
7446
|
children: BAD_DATA_MESSAGE
|
|
7441
|
-
}) : isSuccess ? !sortedData ||
|
|
7447
|
+
}) : isSuccess ? !sortedData || sortedData.length === 0 ? /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
7442
7448
|
className: "mx-4",
|
|
7443
7449
|
children: "No results found"
|
|
7444
|
-
}) :
|
|
7450
|
+
}) : sortedData.map(([value, count])=>{
|
|
7445
7451
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
7446
7452
|
className: "flex flex-row items-center gap-x-1",
|
|
7447
7453
|
children: [
|
|
@@ -7462,7 +7468,7 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
|
|
|
7462
7468
|
})
|
|
7463
7469
|
}),
|
|
7464
7470
|
/*#__PURE__*/ jsxRuntime.jsx(OverflowTooltippedLabel, {
|
|
7465
|
-
label: value,
|
|
7471
|
+
label: value.toString(),
|
|
7466
7472
|
children: /*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
7467
7473
|
className: "text-xs font-normal font-content",
|
|
7468
7474
|
children: value
|
|
@@ -7746,6 +7752,13 @@ const RangeFacet = ({ field, hooks, valueLabel, description, facetName, minimum
|
|
|
7746
7752
|
const instanceOfIncludesExcludes$1 = (op)=>[
|
|
7747
7753
|
'in'
|
|
7748
7754
|
].includes(op.operator); // TODO: Guppy does not support excludes
|
|
7755
|
+
const isOperandsObject = (obj)=>{
|
|
7756
|
+
return !!obj && // Ensure obj is not null or undefined
|
|
7757
|
+
typeof obj === 'object' && 'operands' in obj && Array.isArray(obj.operands);
|
|
7758
|
+
};
|
|
7759
|
+
const isFacetEmpty = (op)=>{
|
|
7760
|
+
return isOperandsObject(op) && op.operands.length === 0;
|
|
7761
|
+
};
|
|
7749
7762
|
/**
|
|
7750
7763
|
* Exact value facet component
|
|
7751
7764
|
* @param field - field to facet on
|
|
@@ -7776,7 +7789,7 @@ const instanceOfIncludesExcludes$1 = (op)=>[
|
|
|
7776
7789
|
facetDataValues?.data
|
|
7777
7790
|
]);
|
|
7778
7791
|
useDeepCompare.useDeepCompareEffect(()=>{
|
|
7779
|
-
if (!facetValue) {
|
|
7792
|
+
if (!facetValue || isFacetEmpty(facetValue)) {
|
|
7780
7793
|
setSelectedValues([]);
|
|
7781
7794
|
} else if (instanceOfIncludesExcludes$1(facetValue)) {
|
|
7782
7795
|
const filters = facetValue.operands.map((x)=>x.toString());
|
|
@@ -7787,26 +7800,9 @@ const instanceOfIncludesExcludes$1 = (op)=>[
|
|
|
7787
7800
|
]);
|
|
7788
7801
|
useDeepCompare.useDeepCompareEffect(()=>{
|
|
7789
7802
|
const setValues = (values)=>{
|
|
7790
|
-
|
|
7791
|
-
if (facetValue && instanceOfIncludesExcludes$1(facetValue)) {
|
|
7792
|
-
// updating facet value
|
|
7793
|
-
updateFacetFilters(field, {
|
|
7794
|
-
...facetValue,
|
|
7795
|
-
operands: values
|
|
7796
|
-
});
|
|
7797
|
-
}
|
|
7798
|
-
if (facetValue === undefined) {
|
|
7799
|
-
// TODO: Assuming Includes by default but this might change to Include|Excludes
|
|
7800
|
-
updateFacetFilters(field, {
|
|
7801
|
-
operator: 'in',
|
|
7802
|
-
field: field,
|
|
7803
|
-
operands: values
|
|
7804
|
-
});
|
|
7805
|
-
}
|
|
7806
|
-
} else {
|
|
7807
|
-
clearFilters(field);
|
|
7808
|
-
}
|
|
7803
|
+
updateFacetEnum(field, values, updateFacetFilters, clearFilters);
|
|
7809
7804
|
};
|
|
7805
|
+
console.log('selectedValues: ', selectedValues);
|
|
7810
7806
|
setValues(selectedValues);
|
|
7811
7807
|
}, [
|
|
7812
7808
|
selectedValues
|
|
@@ -7867,17 +7863,25 @@ const instanceOfIncludesExcludes$1 = (op)=>[
|
|
|
7867
7863
|
children: /*#__PURE__*/ jsxRuntime.jsx(core$1.MultiSelect, {
|
|
7868
7864
|
"data-testid": "multiselect-add-filter-value",
|
|
7869
7865
|
size: "sm",
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
root: 'grow',
|
|
7873
|
-
input: 'border-r-0 rounded-r-none py-1'
|
|
7866
|
+
comboboxProps: {
|
|
7867
|
+
shadow: 'md'
|
|
7874
7868
|
},
|
|
7869
|
+
placeholder: `Enter ${facetTitle}`,
|
|
7875
7870
|
"aria-label": "enter value to add filter",
|
|
7876
7871
|
value: selectedValues,
|
|
7877
7872
|
onChange: setSelectedValues,
|
|
7878
7873
|
data: dataValues,
|
|
7874
|
+
limit: 10,
|
|
7879
7875
|
searchable: true,
|
|
7880
|
-
|
|
7876
|
+
hidePickedOptions: true,
|
|
7877
|
+
withScrollArea: false,
|
|
7878
|
+
styles: {
|
|
7879
|
+
dropdown: {
|
|
7880
|
+
maxHeight: 200,
|
|
7881
|
+
overflowY: 'auto'
|
|
7882
|
+
}
|
|
7883
|
+
},
|
|
7884
|
+
mt: "md"
|
|
7881
7885
|
})
|
|
7882
7886
|
})
|
|
7883
7887
|
]
|
|
@@ -8101,7 +8105,7 @@ const FiltersPanel = ({ fields, dataFunctions, valueLabel })=>{
|
|
|
8101
8105
|
"data-testid": "filters-facets",
|
|
8102
8106
|
className: "flex flex-col gap-y-4 h-full overflow-y-scroll px-4 w-full",
|
|
8103
8107
|
children: fields.map((facetDefinition)=>{
|
|
8104
|
-
return createFacetCard(facetDefinition, valueLabel, dataFunctions[facetDefinition.type], 'filters-panel', undefined, false, facetDefinition.label, 'w-
|
|
8108
|
+
return createFacetCard(facetDefinition, valueLabel, dataFunctions[facetDefinition.type], 'filters-panel', undefined, false, facetDefinition.label, 'w-80');
|
|
8105
8109
|
})
|
|
8106
8110
|
});
|
|
8107
8111
|
};
|
|
@@ -10122,7 +10126,7 @@ const SinglePanel = ({ filters, tabTitle, facetDefinitions, facetDataHooks })=>{
|
|
|
10122
10126
|
const [facetDefinitions, setFacetDefinitions] = React.useState({});
|
|
10123
10127
|
const [summaryCharts, setSummaryCharts] = React.useState({});
|
|
10124
10128
|
const cohortFilters = core.useCoreSelector((state)=>core.selectIndexFilters(state, index));
|
|
10125
|
-
const { data, isSuccess, isError: isAggsQueryError } = core.useGetAggsQuery({
|
|
10129
|
+
const { data, isSuccess, isFetching: isAggsQueryFetching, isError: isAggsQueryError } = core.useGetAggsQuery({
|
|
10126
10130
|
type: index,
|
|
10127
10131
|
fields: fields,
|
|
10128
10132
|
filters: cohortFilters
|
|
@@ -10238,6 +10242,9 @@ const SinglePanel = ({ filters, tabTitle, facetDefinitions, facetDataHooks })=>{
|
|
|
10238
10242
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
10239
10243
|
className: "flex mt-3 relative",
|
|
10240
10244
|
children: [
|
|
10245
|
+
/*#__PURE__*/ jsxRuntime.jsx(core$1.LoadingOverlay, {
|
|
10246
|
+
visible: isAggsQueryFetching
|
|
10247
|
+
}),
|
|
10241
10248
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
10242
10249
|
children: filters?.tabs === undefined ? null : filters?.tabs.length > 1 ? /*#__PURE__*/ jsxRuntime.jsx(TabbedPanel, {
|
|
10243
10250
|
filters: filters,
|
|
@@ -12317,7 +12324,7 @@ const DefaultRendererCatalog = {
|
|
|
12317
12324
|
radarComparison: RadarComparison
|
|
12318
12325
|
}
|
|
12319
12326
|
};
|
|
12320
|
-
const
|
|
12327
|
+
const CohortSimilarityChartsFactory = ()=>{
|
|
12321
12328
|
if (!instance) {
|
|
12322
12329
|
instance = new RenderFactoryTypedInstance();
|
|
12323
12330
|
instance.registerRendererCatalog(DefaultRendererCatalog);
|
|
@@ -12325,7 +12332,7 @@ const DiversityChartsFactory = ()=>{
|
|
|
12325
12332
|
return instance;
|
|
12326
12333
|
};
|
|
12327
12334
|
|
|
12328
|
-
|
|
12335
|
+
CohortSimilarityChartsFactory();
|
|
12329
12336
|
const generateChart = (groundData, groundLabel, comparisonData, comparisonLabel, field, config, showTitle = true)=>{
|
|
12330
12337
|
// Check if the field exists in the datasets
|
|
12331
12338
|
if (!(field in groundData) || !(field in comparisonData)) {
|
|
@@ -12334,7 +12341,7 @@ const generateChart = (groundData, groundLabel, comparisonData, comparisonLabel,
|
|
|
12334
12341
|
children: "Error: Data field missing"
|
|
12335
12342
|
});
|
|
12336
12343
|
}
|
|
12337
|
-
const chartRenderer =
|
|
12344
|
+
const chartRenderer = CohortSimilarityChartsFactory().getRenderer('comparison', config.chartType);
|
|
12338
12345
|
// Check if renderer is the DefaultItemRenderer to log a warning
|
|
12339
12346
|
if (chartRenderer === DefaultComparisonChart) {
|
|
12340
12347
|
console.warn(`No specific renderer found for ${config.chartType}. Using default renderer.`);
|
|
@@ -12701,7 +12708,7 @@ const ComparisonCharts = ({ ground, groundLabel, comparison, comparisonLabel, co
|
|
|
12701
12708
|
return result;
|
|
12702
12709
|
};
|
|
12703
12710
|
|
|
12704
|
-
const
|
|
12711
|
+
const getStaticSimilarityData = (dataset)=>{
|
|
12705
12712
|
return convertToAggregateData({
|
|
12706
12713
|
census: {
|
|
12707
12714
|
age_at_index: {
|
|
@@ -12759,7 +12766,7 @@ const convertToValidJSON = (inputString)=>{
|
|
|
12759
12766
|
cleanedString = cleanedString.replace(/'/g, '"');
|
|
12760
12767
|
return cleanedString;
|
|
12761
12768
|
};
|
|
12762
|
-
const
|
|
12769
|
+
const createSimilarityQuery = (fields = {
|
|
12763
12770
|
age_at_index: 'age_at_index',
|
|
12764
12771
|
sex: 'sex',
|
|
12765
12772
|
ethnicity: 'ethnicity',
|
|
@@ -13034,9 +13041,9 @@ const createDiversityQuery = (fields = {
|
|
|
13034
13041
|
};
|
|
13035
13042
|
};
|
|
13036
13043
|
|
|
13037
|
-
const
|
|
13038
|
-
const groundDataset =
|
|
13039
|
-
const gqlQuery =
|
|
13044
|
+
const CohortSimilarityApp = (config)=>{
|
|
13045
|
+
const groundDataset = getStaticSimilarityData(config.datasets.ground.dataset);
|
|
13046
|
+
const gqlQuery = createSimilarityQuery(); // TODO: add field mapping
|
|
13040
13047
|
const { data: rawComparisonDataset, isLoading: isComparisonLoading, isError: isComparisonError } = core.useGeneralGQLQuery({
|
|
13041
13048
|
query: gqlQuery.query,
|
|
13042
13049
|
variables: JSON.parse(gqlQuery.variables)
|
|
@@ -13053,7 +13060,7 @@ const CohortDiversityApp = (config)=>{
|
|
|
13053
13060
|
]);
|
|
13054
13061
|
if (isComparisonError) {
|
|
13055
13062
|
return /*#__PURE__*/ jsxRuntime.jsx(ErrorCard, {
|
|
13056
|
-
message: 'Unable to get data need for Cohort
|
|
13063
|
+
message: 'Unable to get data need for Cohort Similarity'
|
|
13057
13064
|
});
|
|
13058
13065
|
}
|
|
13059
13066
|
if (isComparisonLoading) {
|
|
@@ -13065,12 +13072,12 @@ const CohortDiversityApp = (config)=>{
|
|
|
13065
13072
|
classNames: {
|
|
13066
13073
|
root: 'w-full m-4 mb-2'
|
|
13067
13074
|
},
|
|
13068
|
-
"aria-label": "Main Content of Cohort
|
|
13075
|
+
"aria-label": "Main Content of Cohort Similarity App",
|
|
13069
13076
|
children: [
|
|
13070
13077
|
/*#__PURE__*/ jsxRuntime.jsx(core$1.Title, {
|
|
13071
13078
|
order: 1,
|
|
13072
13079
|
size: "h3",
|
|
13073
|
-
children: "Cohort
|
|
13080
|
+
children: "Cohort Similarity Visualization"
|
|
13074
13081
|
}),
|
|
13075
13082
|
/*#__PURE__*/ jsxRuntime.jsx(core$1.Accordion, {
|
|
13076
13083
|
variant: "filled",
|
|
@@ -13120,13 +13127,13 @@ const CohortDiversityApp = (config)=>{
|
|
|
13120
13127
|
});
|
|
13121
13128
|
};
|
|
13122
13129
|
|
|
13123
|
-
const { appApi:
|
|
13130
|
+
const { appApi: cohortSimilarityApi, appStore, appContext } = core.createAppApiForRTKQ('cohortSimilarity');
|
|
13124
13131
|
|
|
13125
|
-
const _APP_NAME$1 = '
|
|
13132
|
+
const _APP_NAME$1 = 'CohortSimilarity'; // This wil be the route name of the app
|
|
13126
13133
|
const _APP_VERSION = '1.0.0';
|
|
13127
13134
|
const AppId = core.getGen3AppId(_APP_NAME$1, _APP_VERSION);
|
|
13128
|
-
const
|
|
13129
|
-
App:
|
|
13135
|
+
const registerCohortSimilarityApp = ()=>core.createGen3AppWithOwnStore({
|
|
13136
|
+
App: CohortSimilarityApp,
|
|
13130
13137
|
name: _APP_NAME$1,
|
|
13131
13138
|
version: 'v1.0.0',
|
|
13132
13139
|
id: AppId,
|
|
@@ -15187,19 +15194,12 @@ const getStatus = (expiration, now)=>{
|
|
|
15187
15194
|
header: 'Actions',
|
|
15188
15195
|
Cell: ({ row })=>/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
15189
15196
|
className: "flex items-center",
|
|
15190
|
-
children:
|
|
15197
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(core$1.ActionIcon, {
|
|
15191
15198
|
onClick: ()=>removeCredential({
|
|
15192
15199
|
csrfToken: csrfToken?.csrfToken,
|
|
15193
15200
|
id: row.original.key
|
|
15194
15201
|
}),
|
|
15195
15202
|
children: /*#__PURE__*/ jsxRuntime.jsx(md.MdDelete, {})
|
|
15196
|
-
}) : /*#__PURE__*/ jsxRuntime.jsxs("span", {
|
|
15197
|
-
children: [
|
|
15198
|
-
' ',
|
|
15199
|
-
/*#__PURE__*/ jsxRuntime.jsx(lu.LuRefreshCw, {}),
|
|
15200
|
-
" ",
|
|
15201
|
-
/*#__PURE__*/ jsxRuntime.jsx(md.MdDelete, {})
|
|
15202
|
-
]
|
|
15203
15203
|
})
|
|
15204
15204
|
})
|
|
15205
15205
|
}
|
|
@@ -15442,18 +15442,18 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
|
|
|
15442
15442
|
* Open a new window for authentication.
|
|
15443
15443
|
* @param url - URL to open
|
|
15444
15444
|
* @param title - Title of the window
|
|
15445
|
-
|
|
15445
|
+
* @param refetch - refetch the external status if successful
|
|
15446
|
+
*/ const openAuthWindow = (url, title, refetch)=>{
|
|
15446
15447
|
const pollInterval = 500;
|
|
15447
15448
|
return new Promise((resolve, reject)=>{
|
|
15448
15449
|
if (window.navigator.cookieEnabled) {
|
|
15450
|
+
const width = Math.max(1024, window.innerWidth / 2);
|
|
15451
|
+
const height = Math.max(1024, window.innerHeight / 2);
|
|
15449
15452
|
const dualScreenLeft = window.screenLeft ?? window.screenX;
|
|
15450
15453
|
const dualScreenTop = window.screenTop ?? window.screenY;
|
|
15451
|
-
const
|
|
15452
|
-
const
|
|
15453
|
-
const
|
|
15454
|
-
const left = (width - 500) / 2 / systemZoom + dualScreenLeft;
|
|
15455
|
-
const top = (height - 550) / 2 / systemZoom + dualScreenTop;
|
|
15456
|
-
const win = window.open(url, title, `width=${500 / systemZoom},height=${550 / systemZoom},top=${top},left=${left}`);
|
|
15454
|
+
const left = dualScreenLeft + (window.innerWidth - width) / 2;
|
|
15455
|
+
const top = dualScreenTop + (window.innerHeight - height) / 2;
|
|
15456
|
+
const win = window.open(url, title, `width=${width},height=${height},left=${left},top=${top}`);
|
|
15457
15457
|
if (!win) {
|
|
15458
15458
|
reject('Popup blocked');
|
|
15459
15459
|
return;
|
|
@@ -15472,9 +15472,11 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
|
|
|
15472
15472
|
reject('login_error');
|
|
15473
15473
|
return;
|
|
15474
15474
|
}
|
|
15475
|
+
refetch();
|
|
15475
15476
|
resolve('success');
|
|
15476
15477
|
}
|
|
15477
|
-
|
|
15478
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15479
|
+
} catch (_err) {
|
|
15478
15480
|
// We just want to catch it and not reject it. Rejecting the promise leads to unexpected behavior
|
|
15479
15481
|
// where the logged-in status isn't reflected immediately as the program moves ahead w/o users
|
|
15480
15482
|
// having a chance to log in, requiring a manual screen refresh to update. By catching errors
|
|
@@ -15489,7 +15491,7 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
|
|
|
15489
15491
|
}
|
|
15490
15492
|
});
|
|
15491
15493
|
};
|
|
15492
|
-
const ExternalProviderCard = ({ provider })=>{
|
|
15494
|
+
const ExternalProviderCard = ({ provider, refetch })=>{
|
|
15493
15495
|
const [loading, handler] = hooks.useDisclosure();
|
|
15494
15496
|
return /*#__PURE__*/ jsxRuntime.jsxs(core$1.Card, {
|
|
15495
15497
|
withBorder: true,
|
|
@@ -15583,7 +15585,7 @@ const ExternalProviderCard = ({ provider })=>{
|
|
|
15583
15585
|
onClick: async ()=>{
|
|
15584
15586
|
const queryChar = providerUrl.url.includes('?') ? '&' : '?';
|
|
15585
15587
|
handler.open();
|
|
15586
|
-
openAuthWindow(`${providerUrl.url}${queryChar}redirect=${window.location.pathname}`, provider.name).finally(()=>{
|
|
15588
|
+
openAuthWindow(`${providerUrl.url}${queryChar}redirect=${window.location.pathname}`, provider.name, refetch).finally(()=>{
|
|
15587
15589
|
handler.close();
|
|
15588
15590
|
});
|
|
15589
15591
|
},
|
|
@@ -15606,9 +15608,10 @@ const ExternalProviderCard = ({ provider })=>{
|
|
|
15606
15608
|
};
|
|
15607
15609
|
|
|
15608
15610
|
const ExternalProvidersPanel = ()=>{
|
|
15609
|
-
const { data: externalProviders, isLoading, isError, isSuccess } = core.useGetExternalLoginsQuery();
|
|
15611
|
+
const { data: externalProviders, isLoading, isError, isSuccess, refetch } = core.useGetExternalLoginsQuery();
|
|
15610
15612
|
const providerCards = React.useMemo(()=>externalProviders ? externalProviders.providers.map((provider)=>/*#__PURE__*/ jsxRuntime.jsx(ExternalProviderCard, {
|
|
15611
|
-
provider: provider
|
|
15613
|
+
provider: provider,
|
|
15614
|
+
refetch: refetch
|
|
15612
15615
|
}, provider.base_url)) : null, [
|
|
15613
15616
|
externalProviders
|
|
15614
15617
|
]);
|
|
@@ -20224,7 +20227,7 @@ exports.processLabel = processLabel$1;
|
|
|
20224
20227
|
exports.processRangeKeyLabel = processRangeKeyLabel;
|
|
20225
20228
|
exports.registerCohortBuilderDefaultPreviewRenderers = registerCohortBuilderDefaultPreviewRenderers;
|
|
20226
20229
|
exports.registerCohortDiscoveryApp = registerCohortDiscoveryApp;
|
|
20227
|
-
exports.
|
|
20230
|
+
exports.registerCohortSimilarityApp = registerCohortSimilarityApp;
|
|
20228
20231
|
exports.registerDefaultDiscoveryDataLoaders = registerDefaultDiscoveryDataLoaders;
|
|
20229
20232
|
exports.registerDiscoveryDefaultCellRenderers = registerDiscoveryDefaultCellRenderers;
|
|
20230
20233
|
exports.registerDiscoveryDefaultStudyPreviewRenderers = registerDiscoveryDefaultStudyPreviewRenderers;
|