@gen3/frontend 0.10.78 → 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.
Files changed (269) hide show
  1. package/LICENSE +201 -0
  2. package/dist/cjs/index.js +130 -98
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/dts/components/Content/TextContent.d.ts +28 -7
  5. package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
  6. package/dist/dts/components/Content/TextContent.js +31 -13
  7. package/dist/dts/components/Content/TextContent.js.map +1 -1
  8. package/dist/dts/components/Login/CredentialsLogin.d.ts.map +1 -1
  9. package/dist/dts/components/Login/CredentialsLogin.js +1 -1
  10. package/dist/dts/components/Login/CredentialsLogin.js.map +1 -1
  11. package/dist/dts/components/Login/LoginButton.d.ts.map +1 -1
  12. package/dist/dts/components/Login/LoginButton.js.map +1 -1
  13. package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
  14. package/dist/dts/components/Login/LoginPanel.js +2 -1
  15. package/dist/dts/components/Login/LoginPanel.js.map +1 -1
  16. package/dist/dts/components/Profile/CredentialsTable.d.ts.map +1 -1
  17. package/dist/dts/components/Profile/CredentialsTable.js +3 -4
  18. package/dist/dts/components/Profile/CredentialsTable.js.map +1 -1
  19. package/dist/dts/components/Profile/ExternalProviderCard.d.ts +2 -0
  20. package/dist/dts/components/Profile/ExternalProviderCard.d.ts.map +1 -1
  21. package/dist/dts/components/Profile/ExternalProviderCard.js +13 -11
  22. package/dist/dts/components/Profile/ExternalProviderCard.js.map +1 -1
  23. package/dist/dts/components/Profile/ExternalProvidersPanel.d.ts.map +1 -1
  24. package/dist/dts/components/Profile/ExternalProvidersPanel.js +2 -2
  25. package/dist/dts/components/Profile/ExternalProvidersPanel.js.map +1 -1
  26. package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
  27. package/dist/dts/components/facets/FacetEnumList.js +43 -53
  28. package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
  29. package/dist/dts/components/facets/MultiSelectValueFacet.d.ts.map +1 -1
  30. package/dist/dts/components/facets/MultiSelectValueFacet.js +14 -31
  31. package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
  32. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  33. package/dist/dts/features/CohortBuilder/CohortPanel.js +3 -3
  34. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  35. package/dist/dts/features/CohortBuilder/FiltersPanel.js +1 -1
  36. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +4 -0
  37. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -0
  38. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +23 -0
  39. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -0
  40. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +4 -0
  41. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -0
  42. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +39 -0
  43. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -0
  44. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts +3 -0
  45. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -0
  46. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +34 -0
  47. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -0
  48. package/dist/dts/features/CohortBuilder/Panels/types.d.ts +11 -0
  49. package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -0
  50. package/dist/dts/features/CohortBuilder/Panels/types.js.map +1 -0
  51. package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts +4 -0
  52. package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts.map +1 -0
  53. package/dist/dts/features/{CohortDiversity/CohortDiversityApp.js → CohortDistance/CohortDistanceApp.js} +9 -9
  54. package/dist/dts/features/CohortDistance/CohortDistanceApp.js.map +1 -0
  55. package/dist/dts/features/{CohortDiversity → CohortDistance}/ComnparisonCard.d.ts +2 -2
  56. package/dist/dts/features/CohortDistance/ComnparisonCard.d.ts.map +1 -0
  57. package/dist/dts/features/CohortDistance/ComnparisonCard.js.map +1 -0
  58. package/dist/dts/features/{CohortDiversity → CohortDistance}/ComparisonCards.d.ts +2 -2
  59. package/dist/dts/features/CohortDistance/ComparisonCards.d.ts.map +1 -0
  60. package/dist/dts/features/CohortDistance/ComparisonCards.js.map +1 -0
  61. package/dist/dts/features/CohortDistance/appApi.d.ts +8 -0
  62. package/dist/dts/features/CohortDistance/appApi.d.ts.map +1 -0
  63. package/dist/dts/features/CohortDistance/appApi.js +4 -0
  64. package/dist/dts/features/CohortDistance/appApi.js.map +1 -0
  65. package/dist/dts/features/CohortDistance/charts/BarComparison.d.ts.map +1 -0
  66. package/dist/dts/features/CohortDistance/charts/BarComparison.js.map +1 -0
  67. package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ChartCard.d.ts +3 -3
  68. package/dist/dts/features/CohortDistance/charts/ChartCard.d.ts.map +1 -0
  69. package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ChartCard.js +3 -3
  70. package/dist/dts/features/CohortDistance/charts/ChartCard.js.map +1 -0
  71. package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ComparisonCharts.d.ts +2 -2
  72. package/dist/dts/features/CohortDistance/charts/ComparisonCharts.d.ts.map +1 -0
  73. package/dist/dts/features/CohortDistance/charts/ComparisonCharts.js.map +1 -0
  74. package/dist/dts/features/CohortDistance/charts/RadarComparison.d.ts.map +1 -0
  75. package/dist/dts/features/CohortDistance/charts/RadarComparison.js.map +1 -0
  76. package/dist/dts/features/{CohortDiversity/charts/diversityChartsFactory.d.ts → CohortDistance/charts/cohortDistanceChartsFactory.d.ts} +3 -3
  77. package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.d.ts.map +1 -0
  78. package/dist/dts/features/{CohortDiversity/charts/diversityChartsFactory.js → CohortDistance/charts/cohortDistanceChartsFactory.js} +3 -3
  79. package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.js.map +1 -0
  80. package/dist/dts/features/CohortDistance/charts/types.d.ts.map +1 -0
  81. package/dist/dts/features/CohortDistance/charts/types.js.map +1 -0
  82. package/dist/dts/features/CohortDistance/charts/utils.d.ts.map +1 -0
  83. package/dist/dts/features/CohortDistance/charts/utils.js.map +1 -0
  84. package/dist/dts/features/{CohortDiversity/diversityApi.d.ts → CohortDistance/cohortDistanceApi.d.ts} +14 -14
  85. package/dist/dts/features/CohortDistance/cohortDistanceApi.d.ts.map +1 -0
  86. package/dist/dts/features/{CohortDiversity/diversityApi.js → CohortDistance/cohortDistanceApi.js} +5 -5
  87. package/dist/dts/features/CohortDistance/cohortDistanceApi.js.map +1 -0
  88. package/dist/dts/features/CohortDistance/registerApp.d.ts +3 -0
  89. package/dist/dts/features/CohortDistance/registerApp.d.ts.map +1 -0
  90. package/dist/dts/features/{CohortDiversity → CohortDistance}/registerApp.js +5 -5
  91. package/dist/dts/features/CohortDistance/registerApp.js.map +1 -0
  92. package/dist/dts/features/CohortDistance/statistics/StatisticsCard.d.ts.map +1 -0
  93. package/dist/dts/features/CohortDistance/statistics/StatisticsCard.js.map +1 -0
  94. package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsPanel.d.ts +2 -2
  95. package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.d.ts.map +1 -0
  96. package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.js.map +1 -0
  97. package/dist/dts/features/CohortDistance/statistics/data/data.d.ts +2 -0
  98. package/dist/dts/features/CohortDistance/statistics/data/data.d.ts.map +1 -0
  99. package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/data.js +1 -1
  100. package/dist/dts/features/CohortDistance/statistics/data/data.js.map +1 -0
  101. package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/tests/processHistogramResponse.unit.test.d.ts.map +1 -1
  102. package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/tests/processHistogramResponse.unit.test.js +6 -6
  103. package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.js.map +1 -0
  104. package/dist/dts/features/CohortDistance/statistics/data/utils.d.ts.map +1 -0
  105. package/dist/dts/features/CohortDistance/statistics/data/utils.js.map +1 -0
  106. package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/queries.d.ts +1 -1
  107. package/dist/dts/features/CohortDistance/statistics/queries.d.ts.map +1 -0
  108. package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/queries.js +1 -1
  109. package/dist/dts/features/CohortDistance/statistics/queries.js.map +1 -0
  110. package/dist/dts/features/{CohortDiversity → CohortDistance}/types.d.ts +6 -6
  111. package/dist/dts/features/CohortDistance/types.d.ts.map +1 -0
  112. package/dist/dts/features/CohortDistance/types.js +2 -0
  113. package/dist/dts/features/CohortDistance/types.js.map +1 -0
  114. package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.d.ts +4 -0
  115. package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.d.ts.map +1 -0
  116. package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.js +54 -0
  117. package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.js.map +1 -0
  118. package/dist/dts/features/CohortSimilarity/ComnparisonCard.d.ts +15 -0
  119. package/dist/dts/features/CohortSimilarity/ComnparisonCard.d.ts.map +1 -0
  120. package/dist/dts/features/CohortSimilarity/ComnparisonCard.js +32 -0
  121. package/dist/dts/features/CohortSimilarity/ComnparisonCard.js.map +1 -0
  122. package/dist/dts/features/CohortSimilarity/ComparisonCards.d.ts +15 -0
  123. package/dist/dts/features/CohortSimilarity/ComparisonCards.d.ts.map +1 -0
  124. package/dist/dts/features/CohortSimilarity/ComparisonCards.js +14 -0
  125. package/dist/dts/features/CohortSimilarity/ComparisonCards.js.map +1 -0
  126. package/dist/dts/features/CohortSimilarity/appApi.d.ts +8 -0
  127. package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -0
  128. package/dist/dts/features/CohortSimilarity/appApi.js +4 -0
  129. package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -0
  130. package/dist/dts/features/CohortSimilarity/charts/BarComparison.d.ts +5 -0
  131. package/dist/dts/features/CohortSimilarity/charts/BarComparison.d.ts.map +1 -0
  132. package/dist/dts/features/CohortSimilarity/charts/BarComparison.js +70 -0
  133. package/dist/dts/features/CohortSimilarity/charts/BarComparison.js.map +1 -0
  134. package/dist/dts/features/CohortSimilarity/charts/ChartCard.d.ts +16 -0
  135. package/dist/dts/features/CohortSimilarity/charts/ChartCard.d.ts.map +1 -0
  136. package/dist/dts/features/CohortSimilarity/charts/ChartCard.js +45 -0
  137. package/dist/dts/features/CohortSimilarity/charts/ChartCard.js.map +1 -0
  138. package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.d.ts +13 -0
  139. package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.d.ts.map +1 -0
  140. package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.js +18 -0
  141. package/dist/dts/features/CohortSimilarity/charts/ComparisonCharts.js.map +1 -0
  142. package/dist/dts/features/CohortSimilarity/charts/RadarComparison.d.ts +5 -0
  143. package/dist/dts/features/CohortSimilarity/charts/RadarComparison.d.ts.map +1 -0
  144. package/dist/dts/features/CohortSimilarity/charts/RadarComparison.js +90 -0
  145. package/dist/dts/features/CohortSimilarity/charts/RadarComparison.js.map +1 -0
  146. package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.d.ts +6 -0
  147. package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.d.ts.map +1 -0
  148. package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.js +24 -0
  149. package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.js.map +1 -0
  150. package/dist/dts/features/CohortSimilarity/charts/types.d.ts +12 -0
  151. package/dist/dts/features/CohortSimilarity/charts/types.d.ts.map +1 -0
  152. package/dist/dts/features/CohortSimilarity/charts/types.js +2 -0
  153. package/dist/dts/features/CohortSimilarity/charts/types.js.map +1 -0
  154. package/dist/dts/features/CohortSimilarity/charts/utils.d.ts +2 -0
  155. package/dist/dts/features/CohortSimilarity/charts/utils.d.ts.map +1 -0
  156. package/dist/dts/features/CohortSimilarity/charts/utils.js +4 -0
  157. package/dist/dts/features/CohortSimilarity/charts/utils.js.map +1 -0
  158. package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.d.ts +141 -0
  159. package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.d.ts.map +1 -0
  160. package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.js +14 -0
  161. package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.js.map +1 -0
  162. package/dist/dts/features/CohortSimilarity/registerApp.d.ts +3 -0
  163. package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -0
  164. package/dist/dts/features/CohortSimilarity/registerApp.js +19 -0
  165. package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -0
  166. package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.d.ts +9 -0
  167. package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.d.ts.map +1 -0
  168. package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.js +68 -0
  169. package/dist/dts/features/CohortSimilarity/statistics/StatisticsCard.js.map +1 -0
  170. package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.d.ts +13 -0
  171. package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.d.ts.map +1 -0
  172. package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.js +16 -0
  173. package/dist/dts/features/CohortSimilarity/statistics/StatisticsPanel.js.map +1 -0
  174. package/dist/dts/features/CohortSimilarity/statistics/data/data.d.ts +2 -0
  175. package/dist/dts/features/CohortSimilarity/statistics/data/data.d.ts.map +1 -0
  176. package/dist/dts/features/CohortSimilarity/statistics/data/data.js +50 -0
  177. package/dist/dts/features/CohortSimilarity/statistics/data/data.js.map +1 -0
  178. package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.d.ts +2 -0
  179. package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.d.ts.map +1 -0
  180. package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.js +365 -0
  181. package/dist/dts/features/CohortSimilarity/statistics/data/tests/processHistogramResponse.unit.test.js.map +1 -0
  182. package/dist/dts/features/CohortSimilarity/statistics/data/tests/similarityResponse.json +228 -0
  183. package/dist/dts/features/CohortSimilarity/statistics/data/utils.d.ts +49 -0
  184. package/dist/dts/features/CohortSimilarity/statistics/data/utils.d.ts.map +1 -0
  185. package/dist/dts/features/CohortSimilarity/statistics/data/utils.js +146 -0
  186. package/dist/dts/features/CohortSimilarity/statistics/data/utils.js.map +1 -0
  187. package/dist/dts/features/CohortSimilarity/statistics/queries.d.ts +6 -0
  188. package/dist/dts/features/CohortSimilarity/statistics/queries.d.ts.map +1 -0
  189. package/dist/dts/features/CohortSimilarity/statistics/queries.js +24 -0
  190. package/dist/dts/features/CohortSimilarity/statistics/queries.js.map +1 -0
  191. package/dist/dts/features/CohortSimilarity/types.d.ts +26 -0
  192. package/dist/dts/features/CohortSimilarity/types.d.ts.map +1 -0
  193. package/dist/dts/features/CohortSimilarity/types.js +2 -0
  194. package/dist/dts/features/CohortSimilarity/types.js.map +1 -0
  195. package/dist/dts/features/DataLibrary/tables/DatasetContentsTable.d.ts.map +1 -1
  196. package/dist/dts/features/DataLibrary/tables/DatasetContentsTable.js +1 -1
  197. package/dist/dts/features/DataLibrary/tables/DatasetContentsTable.js.map +1 -1
  198. package/dist/dts/index.d.ts +2 -2
  199. package/dist/dts/index.d.ts.map +1 -1
  200. package/dist/dts/index.js +2 -2
  201. package/dist/dts/index.js.map +1 -1
  202. package/dist/esm/index.js +131 -99
  203. package/dist/esm/index.js.map +1 -1
  204. package/dist/index.d.ts +16 -9
  205. package/dist/tsconfig.tsbuildinfo +1 -1
  206. package/package.json +6 -6
  207. package/dist/dts/features/CohortDiversity/CohortDiversityApp.d.ts +0 -4
  208. package/dist/dts/features/CohortDiversity/CohortDiversityApp.d.ts.map +0 -1
  209. package/dist/dts/features/CohortDiversity/CohortDiversityApp.js.map +0 -1
  210. package/dist/dts/features/CohortDiversity/ComnparisonCard.d.ts.map +0 -1
  211. package/dist/dts/features/CohortDiversity/ComnparisonCard.js.map +0 -1
  212. package/dist/dts/features/CohortDiversity/ComparisonCards.d.ts.map +0 -1
  213. package/dist/dts/features/CohortDiversity/ComparisonCards.js.map +0 -1
  214. package/dist/dts/features/CohortDiversity/appApi.d.ts +0 -8
  215. package/dist/dts/features/CohortDiversity/appApi.d.ts.map +0 -1
  216. package/dist/dts/features/CohortDiversity/appApi.js +0 -4
  217. package/dist/dts/features/CohortDiversity/appApi.js.map +0 -1
  218. package/dist/dts/features/CohortDiversity/charts/BarComparison.d.ts.map +0 -1
  219. package/dist/dts/features/CohortDiversity/charts/BarComparison.js.map +0 -1
  220. package/dist/dts/features/CohortDiversity/charts/ChartCard.d.ts.map +0 -1
  221. package/dist/dts/features/CohortDiversity/charts/ChartCard.js.map +0 -1
  222. package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.d.ts.map +0 -1
  223. package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.js.map +0 -1
  224. package/dist/dts/features/CohortDiversity/charts/RadarComparison.d.ts.map +0 -1
  225. package/dist/dts/features/CohortDiversity/charts/RadarComparison.js.map +0 -1
  226. package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.d.ts.map +0 -1
  227. package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.js.map +0 -1
  228. package/dist/dts/features/CohortDiversity/charts/types.d.ts.map +0 -1
  229. package/dist/dts/features/CohortDiversity/charts/types.js.map +0 -1
  230. package/dist/dts/features/CohortDiversity/charts/utils.d.ts.map +0 -1
  231. package/dist/dts/features/CohortDiversity/charts/utils.js.map +0 -1
  232. package/dist/dts/features/CohortDiversity/diversityApi.d.ts.map +0 -1
  233. package/dist/dts/features/CohortDiversity/diversityApi.js.map +0 -1
  234. package/dist/dts/features/CohortDiversity/registerApp.d.ts +0 -3
  235. package/dist/dts/features/CohortDiversity/registerApp.d.ts.map +0 -1
  236. package/dist/dts/features/CohortDiversity/registerApp.js.map +0 -1
  237. package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.d.ts.map +0 -1
  238. package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.js.map +0 -1
  239. package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.d.ts.map +0 -1
  240. package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.js.map +0 -1
  241. package/dist/dts/features/CohortDiversity/statistics/data/data.d.ts +0 -2
  242. package/dist/dts/features/CohortDiversity/statistics/data/data.d.ts.map +0 -1
  243. package/dist/dts/features/CohortDiversity/statistics/data/data.js.map +0 -1
  244. package/dist/dts/features/CohortDiversity/statistics/data/tests/processHistogramResponse.unit.test.js.map +0 -1
  245. package/dist/dts/features/CohortDiversity/statistics/data/utils.d.ts.map +0 -1
  246. package/dist/dts/features/CohortDiversity/statistics/data/utils.js.map +0 -1
  247. package/dist/dts/features/CohortDiversity/statistics/queries.d.ts.map +0 -1
  248. package/dist/dts/features/CohortDiversity/statistics/queries.js.map +0 -1
  249. package/dist/dts/features/CohortDiversity/types.d.ts.map +0 -1
  250. package/dist/dts/features/CohortDiversity/types.js.map +0 -1
  251. /package/dist/dts/features/{CohortDiversity/charts → CohortBuilder/Panels}/types.js +0 -0
  252. /package/dist/dts/features/{CohortDiversity → CohortDistance}/ComnparisonCard.js +0 -0
  253. /package/dist/dts/features/{CohortDiversity → CohortDistance}/ComparisonCards.js +0 -0
  254. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/BarComparison.d.ts +0 -0
  255. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/BarComparison.js +0 -0
  256. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/ComparisonCharts.js +0 -0
  257. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/RadarComparison.d.ts +0 -0
  258. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/RadarComparison.js +0 -0
  259. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/types.d.ts +0 -0
  260. /package/dist/dts/features/{CohortDiversity → CohortDistance/charts}/types.js +0 -0
  261. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/utils.d.ts +0 -0
  262. /package/dist/dts/features/{CohortDiversity → CohortDistance}/charts/utils.js +0 -0
  263. /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsCard.d.ts +0 -0
  264. /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsCard.js +0 -0
  265. /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/StatisticsPanel.js +0 -0
  266. /package/dist/dts/features/{CohortDiversity/statistics/data/tests/diversityResponse.json → CohortDistance/statistics/data/tests/distanceResponse.json} +0 -0
  267. /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/tests/processHistogramResponse.unit.test.d.ts +0 -0
  268. /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/utils.d.ts +0 -0
  269. /package/dist/dts/features/{CohortDiversity → CohortDistance}/statistics/data/utils.js +0 -0
package/dist/cjs/index.js CHANGED
@@ -1126,6 +1126,7 @@ const CredentialsLogin = ({ handleLogin })=>{
1126
1126
  className: "w-1/3",
1127
1127
  label: /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
1128
1128
  size: "md",
1129
+ c: "primary.4",
1129
1130
  children: "Authorize with credentials"
1130
1131
  }),
1131
1132
  labelPosition: "center"
@@ -1188,17 +1189,33 @@ function hashCode(str) {
1188
1189
  return hashString(str);
1189
1190
  }
1190
1191
 
1191
- var ContentType = /*#__PURE__*/ function(ContentType) {
1192
+ /**
1193
+ * Enum representing various content types for text-based data.
1194
+ *
1195
+ * Each content type corresponds to a specific format or structure of textual content.
1196
+ */ var ContentType = /*#__PURE__*/ function(ContentType) {
1192
1197
  ContentType["Text"] = "text";
1193
1198
  ContentType["TextArray"] = "textArray";
1194
1199
  ContentType["Html"] = "html";
1195
1200
  ContentType["Markdown"] = "markdown";
1196
1201
  ContentType["TextWithEmail"] = "textWithEmail";
1197
1202
  ContentType["TextWithLink"] = "textWithLink";
1198
- ContentType["Link"] = "link";
1199
1203
  return ContentType;
1200
1204
  }({});
1201
- const TextContent = ({ text, className = 'inline text-base-contrast-min font-medium margin-block-start-1 margin-block-end-1', type = "text", email = undefined, link = undefined, linkText = undefined })=>{
1205
+ /**
1206
+ * Renders textual content dynamically based on the provided type and additional properties.
1207
+ *
1208
+ * The `TextContent` function creates a user interface element conditioned on the type of input content, such as plain text, HTML, Markdown, text arrays, text with email links, or text with hyperlinks. It also provides default styling and customizable CSS class support.
1209
+ *
1210
+ * @param {Object} props - Properties for rendering the TextContent component.
1211
+ * @param {string | string[]} props.text - The content to be displayed. It can be a single string or an array of strings.
1212
+ * @param {string} [props.className='inline text-base-contrast-max font-medium margin-block-start-1 margin-block-end-1'] - Custom CSS classes to apply for styling. Defaults to a predefined inline style.
1213
+ * @param {ContentType} [props.type=ContentType.Text] - Specifies the type of content being passed. Determines how the content will be rendered.
1214
+ * @param {string} [props.email] - Optional email address to be rendered as a clickable "mailto" link when type is `ContentType.TextWithEmail`.
1215
+ * @param {string} [props.link] - Optional URL to be rendered as a clickable hyperlink when type is `ContentType.TextWithLink`.
1216
+ * @param {string} [props.linkText] - Optional link text to display instead of the raw URL when type is `ContentType.TextWithLink`.
1217
+ * @returns {JSX.Element} A JSX element that renders the content dynamically based on the input type and properties.
1218
+ */ const TextContent = ({ text, className = 'inline text-base-contrast-max font-medium margin-block-start-1 margin-block-end-1', type = "text", email = undefined, link = undefined, linkText = undefined })=>{
1202
1219
  switch(type){
1203
1220
  case "html":
1204
1221
  {
@@ -1207,7 +1224,8 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1207
1224
  className: className,
1208
1225
  dangerouslySetInnerHTML: {
1209
1226
  __html: textString
1210
- }
1227
+ },
1228
+ "aria-label": "HTML content" // Provide context for HTML rendered content
1211
1229
  });
1212
1230
  }
1213
1231
  case "textArray":
@@ -1217,8 +1235,11 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1217
1235
  ] : text;
1218
1236
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
1219
1237
  className: className,
1238
+ role: "list",
1239
+ "aria-label": "Text array",
1220
1240
  children: textArray.map((item)=>/*#__PURE__*/ jsxRuntime.jsx("p", {
1221
1241
  className: "my-2",
1242
+ role: "listitem",
1222
1243
  children: item
1223
1244
  }, hashCode(item)))
1224
1245
  });
@@ -1227,16 +1248,16 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1227
1248
  {
1228
1249
  const textString = Array.isArray(text) ? text.join('') : text;
1229
1250
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
1251
+ "aria-label": "Markdown content",
1230
1252
  children: /*#__PURE__*/ jsxRuntime.jsx(Markdown, {
1231
1253
  remarkPlugins: [
1232
1254
  remarkGfm
1233
1255
  ],
1234
1256
  components: {
1235
- // define some formatting for the ai response
1236
1257
  p (props) {
1237
1258
  const { node, ...rest } = props;
1238
1259
  return /*#__PURE__*/ jsxRuntime.jsx("p", {
1239
- className: "text-lg text-primary-contrast my-1",
1260
+ className: "text-lg my-1",
1240
1261
  ...rest
1241
1262
  });
1242
1263
  },
@@ -1268,7 +1289,7 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1268
1289
  }
1269
1290
  case "textWithEmail":
1270
1291
  {
1271
- const DEFAULT_STYLE = 'inline text-base-contrast-min font-medium margin-block-start-1 margin-block-end-1';
1292
+ const DEFAULT_STYLE = 'inline text-base-contrast-max font-medium margin-block-start-1 margin-block-end-1';
1272
1293
  const mergedClassname = className ? tailwindMerge.twMerge(DEFAULT_STYLE, className) : DEFAULT_STYLE;
1273
1294
  const textString = Array.isArray(text) ? text.join('') : text;
1274
1295
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
@@ -1281,6 +1302,7 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1281
1302
  root: mergedClassname
1282
1303
  },
1283
1304
  href: `mailto:${email}`,
1305
+ "aria-label": `Send an email to ${email}`,
1284
1306
  children: ` ${email}.`
1285
1307
  })
1286
1308
  ]
@@ -1289,13 +1311,14 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1289
1311
  }
1290
1312
  case "textWithLink":
1291
1313
  {
1292
- const DEFAULT_STYLE = 'inline text-base-contrast-min font-medium margin-block-start-1 margin-block-end-1';
1314
+ const DEFAULT_STYLE = 'inline text-base-contrast-max font-medium margin-block-start-1 margin-block-end-1';
1293
1315
  const mergedClassname = className ? tailwindMerge.twMerge(DEFAULT_STYLE, className) : DEFAULT_STYLE;
1294
1316
  const textString = Array.isArray(text) ? text.join('') : text;
1295
1317
  if (!link) {
1296
1318
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
1297
1319
  className: mergedClassname,
1298
- children: " Link is not defined."
1320
+ "aria-label": "No link defined",
1321
+ children: "Link is not defined."
1299
1322
  });
1300
1323
  }
1301
1324
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
@@ -1308,6 +1331,7 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1308
1331
  root: mergedClassname
1309
1332
  },
1310
1333
  href: link,
1334
+ "aria-label": `Visit the link: ${linkText || link}`,
1311
1335
  children: ` ${linkText ?? link}.`
1312
1336
  })
1313
1337
  ]
@@ -1318,6 +1342,7 @@ const TextContent = ({ text, className = 'inline text-base-contrast-min font-med
1318
1342
  default:
1319
1343
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
1320
1344
  className: className,
1345
+ "aria-label": "Plain text content",
1321
1346
  children: /*#__PURE__*/ jsxRuntime.jsx("p", {
1322
1347
  children: text.toString()
1323
1348
  })
@@ -1380,10 +1405,14 @@ const LoginPanel = (loginConfig)=>{
1380
1405
  loginConfig?.showCredentialsLogin && process.env.NODE_ENV === 'development' && /*#__PURE__*/ jsxRuntime.jsx(CredentialsLogin, {
1381
1406
  handleLogin: handleCredentialsLogin
1382
1407
  }),
1383
- bottomContent?.map((content, index)=>/*#__PURE__*/ React.createElement(TextContent, {
1384
- ...content,
1385
- key: `bottomContent-${index}`
1386
- }))
1408
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Center, {
1409
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Stack, {
1410
+ children: bottomContent?.map((content, index)=>/*#__PURE__*/ React.createElement(TextContent, {
1411
+ ...content,
1412
+ key: `bottomContent-${index}`
1413
+ }))
1414
+ })
1415
+ })
1387
1416
  ]
1388
1417
  }),
1389
1418
  /*#__PURE__*/ jsxRuntime.jsx(TexturedSidePanel, {
@@ -7196,6 +7225,28 @@ font-content
7196
7225
  });
7197
7226
  };
7198
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
+ };
7199
7250
  const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true, isSearching = false, showPercent = false, hideIfEmpty = false, showSorting = true })=>{
7200
7251
  const [isGroupExpanded, setIsGroupExpanded] = React.useState(false);
7201
7252
  const cardRef = React.useRef(null);
@@ -7208,7 +7259,7 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
7208
7259
  const updateFacetFilters = hooks.useUpdateFacetFilters();
7209
7260
  const isFilterExpanded = hooks?.useFilterExpanded && hooks.useFilterExpanded(field);
7210
7261
  const showFilters = isFilterExpanded === undefined || isFilterExpanded;
7211
- const [sortedData, setSortedData] = React.useState({});
7262
+ const [sortedData, setSortedData] = React.useState([]);
7212
7263
  const [sortType, setSortType] = React.useState({
7213
7264
  type: 'alpha',
7214
7265
  direction: 'asc'
@@ -7327,25 +7378,9 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
7327
7378
  ]);
7328
7379
  useDeepCompare.useDeepCompareEffect(()=>{
7329
7380
  if (facetChartData.filteredData && facetChartData.filteredData.length > 0) {
7330
- const compareValuesAscending = ([, a], [, b])=>a - b;
7331
- const compareValuesDescending = ([, a], [, b])=>b - a;
7332
- const compareKeysAscending = ([a], [b])=>typeof a === 'string' && typeof b === 'string' ? a.localeCompare(b) : typeof a === 'number' && typeof b === 'number' ? a - b : 0;
7333
- const compareKeysDescending = ([a], [b])=>typeof a === 'string' && typeof b === 'string' ? b.localeCompare(a) : typeof a === 'number' && typeof b === 'number' ? b - a : 0;
7334
- let comparisonFn;
7335
- if (sortType.type === 'value') {
7336
- comparisonFn = sortType.direction === 'dsc' ? compareValuesDescending : compareValuesAscending;
7337
- } else {
7338
- comparisonFn = sortType.direction === 'dsc' ? compareKeysDescending : compareKeysAscending;
7339
- }
7340
7381
  const obj = [
7341
7382
  ...facetChartData.filteredData
7342
- ].sort(comparisonFn).slice(0, !isGroupExpanded ? maxValuesToDisplay : undefined).reduce((acc, [key, value])=>{
7343
- acc[key] = value;
7344
- return acc;
7345
- }, {});
7346
- Object.fromEntries([
7347
- ...facetChartData.filteredData
7348
- ].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);
7349
7384
  setSortedData(obj);
7350
7385
  }
7351
7386
  }, [
@@ -7409,10 +7444,10 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
7409
7444
  facetChartData.filteredData.length == 0 ? /*#__PURE__*/ jsxRuntime.jsx("div", {
7410
7445
  className: "mx-4 font-content text-sm",
7411
7446
  children: BAD_DATA_MESSAGE
7412
- }) : isSuccess ? !sortedData || Object.entries(sortedData).length === 0 ? /*#__PURE__*/ jsxRuntime.jsx("div", {
7447
+ }) : isSuccess ? !sortedData || sortedData.length === 0 ? /*#__PURE__*/ jsxRuntime.jsx("div", {
7413
7448
  className: "mx-4",
7414
7449
  children: "No results found"
7415
- }) : Object.entries(sortedData ?? {}).map(([value, count])=>{
7450
+ }) : sortedData.map(([value, count])=>{
7416
7451
  return /*#__PURE__*/ jsxRuntime.jsxs("div", {
7417
7452
  className: "flex flex-row items-center gap-x-1",
7418
7453
  children: [
@@ -7433,7 +7468,7 @@ const FacetEnumList = ({ field, facetName, hooks, valueLabel, isFacetView = true
7433
7468
  })
7434
7469
  }),
7435
7470
  /*#__PURE__*/ jsxRuntime.jsx(OverflowTooltippedLabel, {
7436
- label: value,
7471
+ label: value.toString(),
7437
7472
  children: /*#__PURE__*/ jsxRuntime.jsx("span", {
7438
7473
  className: "text-xs font-normal font-content",
7439
7474
  children: value
@@ -7717,6 +7752,13 @@ const RangeFacet = ({ field, hooks, valueLabel, description, facetName, minimum
7717
7752
  const instanceOfIncludesExcludes$1 = (op)=>[
7718
7753
  'in'
7719
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
+ };
7720
7762
  /**
7721
7763
  * Exact value facet component
7722
7764
  * @param field - field to facet on
@@ -7747,7 +7789,7 @@ const instanceOfIncludesExcludes$1 = (op)=>[
7747
7789
  facetDataValues?.data
7748
7790
  ]);
7749
7791
  useDeepCompare.useDeepCompareEffect(()=>{
7750
- if (!facetValue) {
7792
+ if (!facetValue || isFacetEmpty(facetValue)) {
7751
7793
  setSelectedValues([]);
7752
7794
  } else if (instanceOfIncludesExcludes$1(facetValue)) {
7753
7795
  const filters = facetValue.operands.map((x)=>x.toString());
@@ -7758,26 +7800,9 @@ const instanceOfIncludesExcludes$1 = (op)=>[
7758
7800
  ]);
7759
7801
  useDeepCompare.useDeepCompareEffect(()=>{
7760
7802
  const setValues = (values)=>{
7761
- if (values.length > 0) {
7762
- if (facetValue && instanceOfIncludesExcludes$1(facetValue)) {
7763
- // updating facet value
7764
- updateFacetFilters(field, {
7765
- ...facetValue,
7766
- operands: values
7767
- });
7768
- }
7769
- if (facetValue === undefined) {
7770
- // TODO: Assuming Includes by default but this might change to Include|Excludes
7771
- updateFacetFilters(field, {
7772
- operator: 'in',
7773
- field: field,
7774
- operands: values
7775
- });
7776
- }
7777
- } else {
7778
- clearFilters(field);
7779
- }
7803
+ updateFacetEnum(field, values, updateFacetFilters, clearFilters);
7780
7804
  };
7805
+ console.log('selectedValues: ', selectedValues);
7781
7806
  setValues(selectedValues);
7782
7807
  }, [
7783
7808
  selectedValues
@@ -7838,17 +7863,25 @@ const instanceOfIncludesExcludes$1 = (op)=>[
7838
7863
  children: /*#__PURE__*/ jsxRuntime.jsx(core$1.MultiSelect, {
7839
7864
  "data-testid": "multiselect-add-filter-value",
7840
7865
  size: "sm",
7841
- placeholder: `Enter ${facetTitle}`,
7842
- classNames: {
7843
- root: 'grow',
7844
- input: 'border-r-0 rounded-r-none py-1'
7866
+ comboboxProps: {
7867
+ shadow: 'md'
7845
7868
  },
7869
+ placeholder: `Enter ${facetTitle}`,
7846
7870
  "aria-label": "enter value to add filter",
7847
7871
  value: selectedValues,
7848
7872
  onChange: setSelectedValues,
7849
7873
  data: dataValues,
7874
+ limit: 10,
7850
7875
  searchable: true,
7851
- maxDropdownHeight: 200
7876
+ hidePickedOptions: true,
7877
+ withScrollArea: false,
7878
+ styles: {
7879
+ dropdown: {
7880
+ maxHeight: 200,
7881
+ overflowY: 'auto'
7882
+ }
7883
+ },
7884
+ mt: "md"
7852
7885
  })
7853
7886
  })
7854
7887
  ]
@@ -8072,7 +8105,7 @@ const FiltersPanel = ({ fields, dataFunctions, valueLabel })=>{
8072
8105
  "data-testid": "filters-facets",
8073
8106
  className: "flex flex-col gap-y-4 h-full overflow-y-scroll px-4 w-full",
8074
8107
  children: fields.map((facetDefinition)=>{
8075
- return createFacetCard(facetDefinition, valueLabel, dataFunctions[facetDefinition.type], 'filters-panel', undefined, false, facetDefinition.label, 'w-64');
8108
+ return createFacetCard(facetDefinition, valueLabel, dataFunctions[facetDefinition.type], 'filters-panel', undefined, false, facetDefinition.label, 'w-80');
8076
8109
  })
8077
8110
  });
8078
8111
  };
@@ -10093,7 +10126,7 @@ const SinglePanel = ({ filters, tabTitle, facetDefinitions, facetDataHooks })=>{
10093
10126
  const [facetDefinitions, setFacetDefinitions] = React.useState({});
10094
10127
  const [summaryCharts, setSummaryCharts] = React.useState({});
10095
10128
  const cohortFilters = core.useCoreSelector((state)=>core.selectIndexFilters(state, index));
10096
- const { data, isSuccess, isError: isAggsQueryError } = core.useGetAggsQuery({
10129
+ const { data, isSuccess, isFetching: isAggsQueryFetching, isError: isAggsQueryError } = core.useGetAggsQuery({
10097
10130
  type: index,
10098
10131
  fields: fields,
10099
10132
  filters: cohortFilters
@@ -10209,6 +10242,9 @@ const SinglePanel = ({ filters, tabTitle, facetDefinitions, facetDataHooks })=>{
10209
10242
  return /*#__PURE__*/ jsxRuntime.jsxs("div", {
10210
10243
  className: "flex mt-3 relative",
10211
10244
  children: [
10245
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.LoadingOverlay, {
10246
+ visible: isAggsQueryFetching
10247
+ }),
10212
10248
  /*#__PURE__*/ jsxRuntime.jsx("div", {
10213
10249
  children: filters?.tabs === undefined ? null : filters?.tabs.length > 1 ? /*#__PURE__*/ jsxRuntime.jsx(TabbedPanel, {
10214
10250
  filters: filters,
@@ -12288,7 +12324,7 @@ const DefaultRendererCatalog = {
12288
12324
  radarComparison: RadarComparison
12289
12325
  }
12290
12326
  };
12291
- const DiversityChartsFactory = ()=>{
12327
+ const CohortSimilarityChartsFactory = ()=>{
12292
12328
  if (!instance) {
12293
12329
  instance = new RenderFactoryTypedInstance();
12294
12330
  instance.registerRendererCatalog(DefaultRendererCatalog);
@@ -12296,7 +12332,7 @@ const DiversityChartsFactory = ()=>{
12296
12332
  return instance;
12297
12333
  };
12298
12334
 
12299
- DiversityChartsFactory();
12335
+ CohortSimilarityChartsFactory();
12300
12336
  const generateChart = (groundData, groundLabel, comparisonData, comparisonLabel, field, config, showTitle = true)=>{
12301
12337
  // Check if the field exists in the datasets
12302
12338
  if (!(field in groundData) || !(field in comparisonData)) {
@@ -12305,7 +12341,7 @@ const generateChart = (groundData, groundLabel, comparisonData, comparisonLabel,
12305
12341
  children: "Error: Data field missing"
12306
12342
  });
12307
12343
  }
12308
- const chartRenderer = DiversityChartsFactory().getRenderer('comparison', config.chartType);
12344
+ const chartRenderer = CohortSimilarityChartsFactory().getRenderer('comparison', config.chartType);
12309
12345
  // Check if renderer is the DefaultItemRenderer to log a warning
12310
12346
  if (chartRenderer === DefaultComparisonChart) {
12311
12347
  console.warn(`No specific renderer found for ${config.chartType}. Using default renderer.`);
@@ -12672,7 +12708,7 @@ const ComparisonCharts = ({ ground, groundLabel, comparison, comparisonLabel, co
12672
12708
  return result;
12673
12709
  };
12674
12710
 
12675
- const getStaticDiversityData = (dataset)=>{
12711
+ const getStaticSimilarityData = (dataset)=>{
12676
12712
  return convertToAggregateData({
12677
12713
  census: {
12678
12714
  age_at_index: {
@@ -12730,7 +12766,7 @@ const convertToValidJSON = (inputString)=>{
12730
12766
  cleanedString = cleanedString.replace(/'/g, '"');
12731
12767
  return cleanedString;
12732
12768
  };
12733
- const createDiversityQuery = (fields = {
12769
+ const createSimilarityQuery = (fields = {
12734
12770
  age_at_index: 'age_at_index',
12735
12771
  sex: 'sex',
12736
12772
  ethnicity: 'ethnicity',
@@ -13005,9 +13041,9 @@ const createDiversityQuery = (fields = {
13005
13041
  };
13006
13042
  };
13007
13043
 
13008
- const CohortDiversityApp = (config)=>{
13009
- const groundDataset = getStaticDiversityData(config.datasets.ground.dataset);
13010
- const gqlQuery = createDiversityQuery(); // TODO: add field mapping
13044
+ const CohortSimilarityApp = (config)=>{
13045
+ const groundDataset = getStaticSimilarityData(config.datasets.ground.dataset);
13046
+ const gqlQuery = createSimilarityQuery(); // TODO: add field mapping
13011
13047
  const { data: rawComparisonDataset, isLoading: isComparisonLoading, isError: isComparisonError } = core.useGeneralGQLQuery({
13012
13048
  query: gqlQuery.query,
13013
13049
  variables: JSON.parse(gqlQuery.variables)
@@ -13024,7 +13060,7 @@ const CohortDiversityApp = (config)=>{
13024
13060
  ]);
13025
13061
  if (isComparisonError) {
13026
13062
  return /*#__PURE__*/ jsxRuntime.jsx(ErrorCard, {
13027
- message: 'Unable to get data need for Cohort Diversity'
13063
+ message: 'Unable to get data need for Cohort Similarity'
13028
13064
  });
13029
13065
  }
13030
13066
  if (isComparisonLoading) {
@@ -13036,12 +13072,12 @@ const CohortDiversityApp = (config)=>{
13036
13072
  classNames: {
13037
13073
  root: 'w-full m-4 mb-2'
13038
13074
  },
13039
- "aria-label": "Main Content of Cohort Diversity App",
13075
+ "aria-label": "Main Content of Cohort Similarity App",
13040
13076
  children: [
13041
13077
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Title, {
13042
13078
  order: 1,
13043
13079
  size: "h3",
13044
- children: "Cohort Diversity Visualization"
13080
+ children: "Cohort Similarity Visualization"
13045
13081
  }),
13046
13082
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Accordion, {
13047
13083
  variant: "filled",
@@ -13091,13 +13127,13 @@ const CohortDiversityApp = (config)=>{
13091
13127
  });
13092
13128
  };
13093
13129
 
13094
- const { appApi: diversityApi, appStore, appContext } = core.createAppApiForRTKQ('cohortDiversity');
13130
+ const { appApi: cohortSimilarityApi, appStore, appContext } = core.createAppApiForRTKQ('cohortSimilarity');
13095
13131
 
13096
- const _APP_NAME$1 = 'CohortDiversity'; // This wil be the route name of the app
13132
+ const _APP_NAME$1 = 'CohortSimilarity'; // This wil be the route name of the app
13097
13133
  const _APP_VERSION = '1.0.0';
13098
13134
  const AppId = core.getGen3AppId(_APP_NAME$1, _APP_VERSION);
13099
- const registerCohortDiversityApp = ()=>core.createGen3AppWithOwnStore({
13100
- App: CohortDiversityApp,
13135
+ const registerCohortSimilarityApp = ()=>core.createGen3AppWithOwnStore({
13136
+ App: CohortSimilarityApp,
13101
13137
  name: _APP_NAME$1,
13102
13138
  version: 'v1.0.0',
13103
13139
  id: AppId,
@@ -15158,19 +15194,12 @@ const getStatus = (expiration, now)=>{
15158
15194
  header: 'Actions',
15159
15195
  Cell: ({ row })=>/*#__PURE__*/ jsxRuntime.jsx("div", {
15160
15196
  className: "flex items-center",
15161
- children: row.original.actions === 'delete' ? /*#__PURE__*/ jsxRuntime.jsx(core$1.ActionIcon, {
15197
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.ActionIcon, {
15162
15198
  onClick: ()=>removeCredential({
15163
15199
  csrfToken: csrfToken?.csrfToken,
15164
15200
  id: row.original.key
15165
15201
  }),
15166
15202
  children: /*#__PURE__*/ jsxRuntime.jsx(md.MdDelete, {})
15167
- }) : /*#__PURE__*/ jsxRuntime.jsxs("span", {
15168
- children: [
15169
- ' ',
15170
- /*#__PURE__*/ jsxRuntime.jsx(lu.LuRefreshCw, {}),
15171
- " ",
15172
- /*#__PURE__*/ jsxRuntime.jsx(md.MdDelete, {})
15173
- ]
15174
15203
  })
15175
15204
  })
15176
15205
  }
@@ -15413,18 +15442,18 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
15413
15442
  * Open a new window for authentication.
15414
15443
  * @param url - URL to open
15415
15444
  * @param title - Title of the window
15416
- */ const openAuthWindow = (url, title)=>{
15445
+ * @param refetch - refetch the external status if successful
15446
+ */ const openAuthWindow = (url, title, refetch)=>{
15417
15447
  const pollInterval = 500;
15418
15448
  return new Promise((resolve, reject)=>{
15419
15449
  if (window.navigator.cookieEnabled) {
15450
+ const width = Math.max(1024, window.innerWidth / 2);
15451
+ const height = Math.max(1024, window.innerHeight / 2);
15420
15452
  const dualScreenLeft = window.screenLeft ?? window.screenX;
15421
15453
  const dualScreenTop = window.screenTop ?? window.screenY;
15422
- const width = window.innerWidth ?? document.documentElement.clientWidth ?? screen.width;
15423
- const height = window.innerHeight ?? document.documentElement.clientHeight ?? screen.height;
15424
- const systemZoom = width / window.screen.availWidth;
15425
- const left = (width - 500) / 2 / systemZoom + dualScreenLeft;
15426
- const top = (height - 550) / 2 / systemZoom + dualScreenTop;
15427
- 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}`);
15428
15457
  if (!win) {
15429
15458
  reject('Popup blocked');
15430
15459
  return;
@@ -15443,9 +15472,11 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
15443
15472
  reject('login_error');
15444
15473
  return;
15445
15474
  }
15475
+ refetch();
15446
15476
  resolve('success');
15447
15477
  }
15448
- } catch (err) {
15478
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
15479
+ } catch (_err) {
15449
15480
  // We just want to catch it and not reject it. Rejecting the promise leads to unexpected behavior
15450
15481
  // where the logged-in status isn't reflected immediately as the program moves ahead w/o users
15451
15482
  // having a chance to log in, requiring a manual screen refresh to update. By catching errors
@@ -15460,7 +15491,7 @@ const ResourceBadge = ({ resource, serviceBadgeStyle, defaultColor = 'primary' }
15460
15491
  }
15461
15492
  });
15462
15493
  };
15463
- const ExternalProviderCard = ({ provider })=>{
15494
+ const ExternalProviderCard = ({ provider, refetch })=>{
15464
15495
  const [loading, handler] = hooks.useDisclosure();
15465
15496
  return /*#__PURE__*/ jsxRuntime.jsxs(core$1.Card, {
15466
15497
  withBorder: true,
@@ -15554,7 +15585,7 @@ const ExternalProviderCard = ({ provider })=>{
15554
15585
  onClick: async ()=>{
15555
15586
  const queryChar = providerUrl.url.includes('?') ? '&' : '?';
15556
15587
  handler.open();
15557
- openAuthWindow(`${providerUrl.url}${queryChar}redirect=${window.location.pathname}`, provider.name).finally(()=>{
15588
+ openAuthWindow(`${providerUrl.url}${queryChar}redirect=${window.location.pathname}`, provider.name, refetch).finally(()=>{
15558
15589
  handler.close();
15559
15590
  });
15560
15591
  },
@@ -15577,9 +15608,10 @@ const ExternalProviderCard = ({ provider })=>{
15577
15608
  };
15578
15609
 
15579
15610
  const ExternalProvidersPanel = ()=>{
15580
- const { data: externalProviders, isLoading, isError, isSuccess } = core.useGetExternalLoginsQuery();
15611
+ const { data: externalProviders, isLoading, isError, isSuccess, refetch } = core.useGetExternalLoginsQuery();
15581
15612
  const providerCards = React.useMemo(()=>externalProviders ? externalProviders.providers.map((provider)=>/*#__PURE__*/ jsxRuntime.jsx(ExternalProviderCard, {
15582
- provider: provider
15613
+ provider: provider,
15614
+ refetch: refetch
15583
15615
  }, provider.base_url)) : null, [
15584
15616
  externalProviders
15585
15617
  ]);
@@ -19233,7 +19265,7 @@ const DataSetContentsTable = ({ listId, data, removeList, size = 'sm' })=>{
19233
19265
  listId: listId,
19234
19266
  data: rowData?.files
19235
19267
  }),
19236
- rowData.additionalData.length > 0 && /*#__PURE__*/ jsxRuntime.jsx(AdditionalDataTableTable, {
19268
+ rowData?.additionalData.length > 0 && /*#__PURE__*/ jsxRuntime.jsx(AdditionalDataTableTable, {
19237
19269
  header: 'Additional Data',
19238
19270
  data: rowData?.additionalData
19239
19271
  }),
@@ -20195,7 +20227,7 @@ exports.processLabel = processLabel$1;
20195
20227
  exports.processRangeKeyLabel = processRangeKeyLabel;
20196
20228
  exports.registerCohortBuilderDefaultPreviewRenderers = registerCohortBuilderDefaultPreviewRenderers;
20197
20229
  exports.registerCohortDiscoveryApp = registerCohortDiscoveryApp;
20198
- exports.registerCohortDiversityApp = registerCohortDiversityApp;
20230
+ exports.registerCohortSimilarityApp = registerCohortSimilarityApp;
20199
20231
  exports.registerDefaultDiscoveryDataLoaders = registerDefaultDiscoveryDataLoaders;
20200
20232
  exports.registerDiscoveryDefaultCellRenderers = registerDiscoveryDefaultCellRenderers;
20201
20233
  exports.registerDiscoveryDefaultStudyPreviewRenderers = registerDiscoveryDefaultStudyPreviewRenderers;