@gen3/frontend 0.10.73 → 0.10.75

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 (250) hide show
  1. package/dist/cjs/index.js +229 -173
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +1 -0
  4. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
  5. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
  6. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
  7. package/dist/dts/components/Buttons/UploadJSONButton.js +1 -1
  8. package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
  9. package/dist/dts/components/Content/TextContent.d.ts +1 -2
  10. package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
  11. package/dist/dts/components/Content/TextContent.js +5 -8
  12. package/dist/dts/components/Content/TextContent.js.map +1 -1
  13. package/dist/dts/components/CountButton/CountButton.d.ts +19 -0
  14. package/dist/dts/components/CountButton/CountButton.d.ts.map +1 -0
  15. package/dist/dts/components/CountButton/CountButton.js +18 -0
  16. package/dist/dts/components/CountButton/CountButton.js.map +1 -0
  17. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +8 -12
  18. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
  19. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +17 -11
  20. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
  21. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +18 -4
  22. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
  23. package/dist/dts/components/ErrorMessage.d.ts +6 -0
  24. package/dist/dts/components/ErrorMessage.d.ts.map +1 -0
  25. package/dist/dts/components/ErrorMessage.js +8 -0
  26. package/dist/dts/components/ErrorMessage.js.map +1 -0
  27. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  28. package/dist/dts/components/Login/LoginProvidersPanel.js +5 -8
  29. package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
  30. package/dist/dts/components/MessageCards/ErrorCard.js +1 -1
  31. package/dist/dts/components/MessageCards/ErrorCard.js.map +1 -1
  32. package/dist/dts/components/MessageCards/WarningCard.js +1 -1
  33. package/dist/dts/components/MessageCards/WarningCard.js.map +1 -1
  34. package/dist/dts/components/MessagePanel.d.ts.map +1 -1
  35. package/dist/dts/components/MessagePanel.js +1 -1
  36. package/dist/dts/components/MessagePanel.js.map +1 -1
  37. package/dist/dts/components/Providers/Gen3Provider.d.ts +3 -2
  38. package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
  39. package/dist/dts/components/Providers/Gen3Provider.js +8 -4
  40. package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
  41. package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
  42. package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
  43. package/dist/dts/components/Providers/ResourceMonitor.js +48 -131
  44. package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
  45. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  46. package/dist/dts/components/charts/echarts/BarChart.js +28 -4
  47. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  48. package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
  49. package/dist/dts/components/facets/FacetControlsHeader.js +0 -1
  50. package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
  51. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
  52. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  53. package/dist/dts/features/CohortBuilder/CohortBuilder.js +13 -1
  54. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  55. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +10 -0
  56. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
  57. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +53 -0
  58. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
  59. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +7 -0
  60. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
  61. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +38 -0
  62. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
  63. package/dist/dts/features/CohortBuilder/{CohortSelector.d.ts → CohortManager/CohortSelector.d.ts} +4 -1
  64. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
  65. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +56 -0
  66. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
  67. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +4 -0
  68. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +1 -0
  69. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +22 -0
  70. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +1 -0
  71. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +1 -0
  72. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
  73. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +320 -0
  74. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
  75. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +1 -0
  76. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +1 -0
  77. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +2 -0
  78. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +1 -0
  79. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
  80. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
  81. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +85 -0
  82. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
  83. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  84. package/dist/dts/features/CohortBuilder/CohortPanel.js +3 -2
  85. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  86. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +6 -0
  87. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +1 -0
  88. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +55 -0
  89. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +1 -0
  90. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +13 -0
  91. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +1 -0
  92. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +41 -0
  93. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +1 -0
  94. package/dist/dts/features/CohortBuilder/{QueryExpressionSection.d.ts → QueryExpression/QueryExpressionSection.d.ts} +1 -4
  95. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +1 -0
  96. package/dist/dts/features/CohortBuilder/{QueryExpressionSection.js → QueryExpression/QueryExpressionSection.js} +36 -28
  97. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -0
  98. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +1 -0
  99. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +1 -0
  100. package/dist/dts/features/CohortBuilder/{QueryRepresentation.d.ts → QueryExpression/QueryRepresentation.d.ts} +1 -1
  101. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +1 -0
  102. package/dist/dts/features/CohortBuilder/{QueryRepresentation.js → QueryExpression/QueryRepresentation.js} +23 -30
  103. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -0
  104. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +1 -0
  105. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +1 -0
  106. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +4 -0
  107. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +1 -0
  108. package/dist/dts/features/CohortBuilder/cohortUtils.js +23 -0
  109. package/dist/dts/features/CohortBuilder/cohortUtils.js.map +1 -0
  110. package/dist/dts/features/CohortBuilder/hooks.d.ts +1 -0
  111. package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
  112. package/dist/dts/features/CohortBuilder/hooks.js +52 -1
  113. package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
  114. package/dist/dts/features/CohortBuilder/style.d.ts +6 -0
  115. package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
  116. package/dist/dts/features/CohortBuilder/style.js +11 -0
  117. package/dist/dts/features/CohortBuilder/style.js.map +1 -1
  118. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  119. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +6 -4
  120. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  121. package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +1 -0
  122. package/dist/dts/features/CohortDiscovery/CohortManager.js +57 -0
  123. package/dist/dts/features/CohortDiscovery/CohortManager.js.map +1 -0
  124. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +23 -0
  125. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -0
  126. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +35 -0
  127. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -0
  128. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +91 -0
  129. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -0
  130. package/dist/dts/features/CohortDiscovery/CohortSlice.js +93 -0
  131. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -0
  132. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
  133. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  134. package/dist/dts/features/CohortDiscovery/IndexPanel.js +5 -3
  135. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  136. package/dist/dts/features/CohortDiscovery/appApi.d.ts +2 -0
  137. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  138. package/dist/dts/features/CohortDiscovery/appApi.js +2 -0
  139. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  140. package/dist/dts/features/CohortDiscovery/hooks.d.ts +10 -0
  141. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  142. package/dist/dts/features/CohortDiscovery/hooks.js +38 -1
  143. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
  144. package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
  145. package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
  146. package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
  147. package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
  148. package/dist/dts/features/Dictionary/Dictionary.d.ts.map +1 -1
  149. package/dist/dts/features/Dictionary/Dictionary.js +0 -1
  150. package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
  151. package/dist/dts/features/Dictionary/index.d.ts +1 -3
  152. package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
  153. package/dist/dts/features/Dictionary/index.js +1 -3
  154. package/dist/dts/features/Dictionary/index.js.map +1 -1
  155. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
  156. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js +1 -1
  157. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
  158. package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
  159. package/dist/dts/features/Workspace/NotebookCard.js +8 -30
  160. package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
  161. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
  162. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +3 -3
  163. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
  164. package/dist/dts/features/Workspace/StatusAndControls.d.ts.map +1 -1
  165. package/dist/dts/features/Workspace/StatusAndControls.js +2 -2
  166. package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
  167. package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
  168. package/dist/dts/features/Workspace/Workspace.js +1 -0
  169. package/dist/dts/features/Workspace/Workspace.js.map +1 -1
  170. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.d.ts.map +1 -1
  171. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js +1 -3
  172. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js.map +1 -1
  173. package/dist/dts/features/Workspace/WorkspacePanel.d.ts.map +1 -1
  174. package/dist/dts/features/Workspace/WorkspacePanel.js +9 -10
  175. package/dist/dts/features/Workspace/WorkspacePanel.js.map +1 -1
  176. package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
  177. package/dist/dts/features/Workspace/WorkspaceProvider.js +0 -1
  178. package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
  179. package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +1 -2
  180. package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
  181. package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +27 -56
  182. package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
  183. package/dist/dts/features/Workspace/types.d.ts +0 -10
  184. package/dist/dts/features/Workspace/types.d.ts.map +1 -1
  185. package/dist/dts/features/Workspace/types.js +1 -10
  186. package/dist/dts/features/Workspace/types.js.map +1 -1
  187. package/dist/dts/index.d.ts +2 -3
  188. package/dist/dts/index.d.ts.map +1 -1
  189. package/dist/dts/index.js +2 -3
  190. package/dist/dts/index.js.map +1 -1
  191. package/dist/dts/lib/session/session.d.ts.map +1 -1
  192. package/dist/dts/lib/session/session.js +7 -7
  193. package/dist/dts/lib/session/session.js.map +1 -1
  194. package/dist/dts/pages/Theme/index.d.ts.map +1 -1
  195. package/dist/dts/utils/date.d.ts +6 -0
  196. package/dist/dts/utils/date.d.ts.map +1 -1
  197. package/dist/dts/utils/date.js +12 -0
  198. package/dist/dts/utils/date.js.map +1 -1
  199. package/dist/dts/utils/icons.d.ts +18 -0
  200. package/dist/dts/utils/icons.d.ts.map +1 -0
  201. package/dist/dts/utils/icons.js +18 -0
  202. package/dist/dts/utils/icons.js.map +1 -0
  203. package/dist/dts/utils/index.d.ts +0 -1
  204. package/dist/dts/utils/index.d.ts.map +1 -1
  205. package/dist/dts/utils/index.js +0 -1
  206. package/dist/dts/utils/index.js.map +1 -1
  207. package/dist/dts/utils/time.d.ts +0 -15
  208. package/dist/dts/utils/time.d.ts.map +1 -1
  209. package/dist/dts/utils/time.js +0 -105
  210. package/dist/dts/utils/time.js.map +1 -1
  211. package/dist/esm/index.js +231 -175
  212. package/dist/esm/index.js.map +1 -1
  213. package/dist/index.d.ts +15 -45
  214. package/dist/tsconfig.tsbuildinfo +1 -1
  215. package/package.json +3 -3
  216. package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +0 -1
  217. package/dist/dts/features/CohortBuilder/CohortManager.js +0 -17
  218. package/dist/dts/features/CohortBuilder/CohortManager.js.map +0 -1
  219. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +0 -1
  220. package/dist/dts/features/CohortBuilder/CohortSelector.js +0 -20
  221. package/dist/dts/features/CohortBuilder/CohortSelector.js.map +0 -1
  222. package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +0 -1
  223. package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +0 -1
  224. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +0 -1
  225. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +0 -1
  226. package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +0 -1
  227. package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +0 -1
  228. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +0 -1
  229. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +0 -1
  230. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +0 -7
  231. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +0 -1
  232. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +0 -39
  233. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +0 -1
  234. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +0 -9
  235. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +0 -1
  236. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +0 -113
  237. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +0 -1
  238. package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +0 -3
  239. package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +0 -1
  240. package/dist/dts/features/Dictionary/metadata/registerApp.js +0 -13
  241. package/dist/dts/features/Dictionary/metadata/registerApp.js.map +0 -1
  242. package/dist/dts/features/Dictionary/metadata/types.d.ts +0 -17
  243. package/dist/dts/features/Dictionary/metadata/types.d.ts.map +0 -1
  244. package/dist/dts/features/Dictionary/metadata/types.js +0 -2
  245. package/dist/dts/features/Dictionary/metadata/types.js.map +0 -1
  246. /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.d.ts → QueryExpression/QueryExpressionsExpandedContext.d.ts} +0 -0
  247. /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.js → QueryExpression/QueryExpressionsExpandedContext.js} +0 -0
  248. /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.d.ts → QueryExpression/QueryRepresentationLabel.d.ts} +0 -0
  249. /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.js → QueryExpression/QueryRepresentationLabel.js} +0 -0
  250. /package/dist/dts/features/{CohortBuilder → CohortDiscovery}/CohortManager.d.ts +0 -0
package/dist/cjs/index.js CHANGED
@@ -509,6 +509,12 @@ const extractObjectKey = (obj)=>{
509
509
  return keys.length > 0 ? keys[0] : undefined;
510
510
  };
511
511
 
512
+ var NotificationStatus;
513
+ (function(NotificationStatus) {
514
+ NotificationStatus[NotificationStatus["Info"] = 0] = "Info";
515
+ NotificationStatus[NotificationStatus["Warn"] = 1] = "Warn";
516
+ NotificationStatus[NotificationStatus["Error"] = 2] = "Error";
517
+ })(NotificationStatus || (NotificationStatus = {}));
512
518
  const notifyUser = (title, message, status = 0)=>{
513
519
  const NotificationMap = {
514
520
  [0]: 'utility.1',
@@ -853,12 +859,12 @@ const TooltipStyle = {
853
859
  arrow: 'bg-base-darker '
854
860
  };
855
861
 
856
- var LoginButtonVisibility = /*#__PURE__*/ function(LoginButtonVisibility) {
862
+ var LoginButtonVisibility;
863
+ (function(LoginButtonVisibility) {
857
864
  LoginButtonVisibility["Hidden"] = "hide";
858
865
  LoginButtonVisibility["Visible"] = "visible";
859
866
  LoginButtonVisibility["LogoutOnly"] = "logoutOnly";
860
- return LoginButtonVisibility;
861
- }({});
867
+ })(LoginButtonVisibility || (LoginButtonVisibility = {}));
862
868
 
863
869
  /**
864
870
  * Merges default and user values for Tailwind classnames.
@@ -1188,7 +1194,8 @@ function hashCode(str) {
1188
1194
  return hashString(str);
1189
1195
  }
1190
1196
 
1191
- var ContentType = /*#__PURE__*/ function(ContentType) {
1197
+ var ContentType;
1198
+ (function(ContentType) {
1192
1199
  ContentType["Text"] = "text";
1193
1200
  ContentType["TextArray"] = "textArray";
1194
1201
  ContentType["Html"] = "html";
@@ -1196,8 +1203,7 @@ var ContentType = /*#__PURE__*/ function(ContentType) {
1196
1203
  ContentType["TextWithEmail"] = "textWithEmail";
1197
1204
  ContentType["TextWithLink"] = "textWithLink";
1198
1205
  ContentType["Link"] = "link";
1199
- return ContentType;
1200
- }({});
1206
+ })(ContentType || (ContentType = {}));
1201
1207
  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 })=>{
1202
1208
  switch(type){
1203
1209
  case "html":
@@ -2911,7 +2917,7 @@ const LoginAccountButton = ({ className = undefined })=>{
2911
2917
 
2912
2918
  const TopIconButton = ({ name, leftIcon = undefined, rightIcon = undefined, classNames = {}, drawBorder = true })=>{
2913
2919
  const classNamesDefaults = {
2914
- root: `flex items-center align-middle px-2 ${drawBorder && 'border-r-2 border-accent'} my-2`,
2920
+ root: `flex items-center align-middle px-2 my-2`,
2915
2921
  button: 'flex flex-nowrap items-center align-middle border-b-2 hover:border-accent border-transparent',
2916
2922
  leftIcon: 'text-secondary-contrast-lighter pr-1',
2917
2923
  label: 'font-content text-secondary-contrast-lighter block',
@@ -2960,7 +2966,15 @@ const processTopBarItems = (items, showLogin)=>{
2960
2966
  classNames: item.classNames,
2961
2967
  drawBorder: needsBorder
2962
2968
  }),
2963
- ' '
2969
+ ' ',
2970
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Divider, {
2971
+ size: "md",
2972
+ color: "accent.4",
2973
+ orientation: "vertical",
2974
+ classNames: {
2975
+ root: 'my-2'
2976
+ }
2977
+ })
2964
2978
  ]
2965
2979
  }, `${item.href}_${item.name}`));
2966
2980
  return acc;
@@ -2981,12 +2995,25 @@ const TopBar = ({ items, loginButtonVisibility = LoginButtonVisibility.Hidden, c
2981
2995
  className: "flex items-center align-middle",
2982
2996
  children: [
2983
2997
  processTopBarItems(items, loginButtonVisibility === LoginButtonVisibility.Visible),
2984
- loginButtonVisibility != LoginButtonVisibility.Hidden ? /*#__PURE__*/ jsxRuntime.jsx(LoginAccountButton, {
2985
- className: extractClassName('login', mergedClassnames)
2998
+ loginButtonVisibility != LoginButtonVisibility.Hidden ? /*#__PURE__*/ jsxRuntime.jsxs("div", {
2999
+ className: "flex items-center",
3000
+ children: [
3001
+ /*#__PURE__*/ jsxRuntime.jsx(LoginAccountButton, {
3002
+ className: extractClassName('login', mergedClassnames)
3003
+ }),
3004
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Divider, {
3005
+ size: "md",
3006
+ color: "accent.4",
3007
+ orientation: "vertical"
3008
+ })
3009
+ ]
2986
3010
  }) : null,
2987
- loginButtonVisibility != LoginButtonVisibility.Hidden ? /*#__PURE__*/ jsxRuntime.jsx(LoginButton, {
2988
- visibility: loginButtonVisibility,
2989
- className: extractClassName('login', mergedClassnames)
3011
+ loginButtonVisibility != LoginButtonVisibility.Hidden ? /*#__PURE__*/ jsxRuntime.jsx("div", {
3012
+ className: "flex items-center",
3013
+ children: /*#__PURE__*/ jsxRuntime.jsx(LoginButton, {
3014
+ visibility: loginButtonVisibility,
3015
+ className: extractClassName('login', mergedClassnames)
3016
+ })
2990
3017
  }) : null
2991
3018
  ]
2992
3019
  })
@@ -3678,14 +3705,14 @@ const isSearchKVArray = (obj)=>{
3678
3705
  return obj && Array.isArray(obj) && obj.every(isSearchKV);
3679
3706
  };
3680
3707
  const accessibleFieldName = '__accessible';
3681
- var AccessLevel = /*#__PURE__*/ function(AccessLevel) {
3708
+ var AccessLevel;
3709
+ (function(AccessLevel) {
3682
3710
  AccessLevel[AccessLevel["ACCESSIBLE"] = 1] = "ACCESSIBLE";
3683
3711
  AccessLevel[AccessLevel["UNACCESSIBLE"] = 2] = "UNACCESSIBLE";
3684
3712
  AccessLevel[AccessLevel["PENDING"] = 3] = "PENDING";
3685
3713
  AccessLevel[AccessLevel["NOT_AVAILABLE"] = 4] = "NOT_AVAILABLE";
3686
3714
  AccessLevel[AccessLevel["OTHER"] = 5] = "OTHER";
3687
- return AccessLevel;
3688
- }({});
3715
+ })(AccessLevel || (AccessLevel = {}));
3689
3716
 
3690
3717
  const DataAccessCellRenderer = ({ value })=>{
3691
3718
  if (value === AccessLevel.PENDING) {
@@ -5051,11 +5078,17 @@ const SearchFilters = ({ values, filter, filterState, setFilterState })=>{
5051
5078
  });
5052
5079
  };
5053
5080
 
5054
- var SearchCombination = /*#__PURE__*/ function(SearchCombination) {
5081
+ var SearchCombination;
5082
+ (function(SearchCombination) {
5055
5083
  SearchCombination["and"] = "AND";
5056
5084
  SearchCombination["or"] = "OR";
5057
- return SearchCombination;
5058
- }({});
5085
+ })(SearchCombination || (SearchCombination = {}));
5086
+ var AccessSortDirection;
5087
+ (function(AccessSortDirection) {
5088
+ AccessSortDirection["ASCENDING"] = "sort ascending";
5089
+ AccessSortDirection["DESCENDING"] = "sort descending";
5090
+ AccessSortDirection["NONE"] = "cancel sorting";
5091
+ })(AccessSortDirection || (AccessSortDirection = {}));
5059
5092
 
5060
5093
  const AdvancedSearch = ({ advSearchFilters, setAdvancedSearchFilters })=>{
5061
5094
  const [searchCombination, setSearchCombination] = React.useState(SearchCombination.and);
@@ -8597,10 +8630,11 @@ const UploadJSONButton = ({ handleFileChange, tooltip, icon = 'gen3:upload' })=>
8597
8630
  }
8598
8631
  },
8599
8632
  accept: "application/json",
8600
- children: ()=>/*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
8633
+ children: (props)=>/*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
8601
8634
  label: tooltip,
8602
8635
  disabled: !tooltip,
8603
8636
  children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
8637
+ ...props,
8604
8638
  loading: processingFile,
8605
8639
  variant: "outline",
8606
8640
  classNames: {
@@ -8615,21 +8649,16 @@ const UploadJSONButton = ({ handleFileChange, tooltip, icon = 'gen3:upload' })=>
8615
8649
  });
8616
8650
  };
8617
8651
 
8618
- const CohortSelector = ({ index, filters })=>{
8652
+ const CohortSelector = ()=>{
8619
8653
  const dispatch = core.useCoreDispatch();
8620
- const getData = useDeepCompare.useDeepCompareCallback(()=>{
8621
- return filters;
8622
- }, [
8623
- filters
8624
- ]);
8654
+ const cohortFilters = core.useCoreSelector(core.selectCohortFilters);
8655
+ const getData = ()=>cohortFilters;
8625
8656
  const setCohort = useDeepCompare.useDeepCompareCallback((data)=>{
8626
8657
  const jsonForm = JSON.parse(data);
8627
- dispatch(core.setCohortFilter({
8628
- index,
8658
+ dispatch(core.setCohortIndexFilters({
8629
8659
  filters: jsonForm
8630
8660
  }));
8631
8661
  }, [
8632
- index,
8633
8662
  dispatch
8634
8663
  ]);
8635
8664
  return /*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
@@ -8799,10 +8828,7 @@ const QueryExpressionSection = ({ index, filters, currentCohortName, currentCoho
8799
8828
  /*#__PURE__*/ jsxRuntime.jsxs("div", {
8800
8829
  className: "display flex gap-2 ml-auto mr-3",
8801
8830
  children: [
8802
- /*#__PURE__*/ jsxRuntime.jsx(CohortSelector, {
8803
- index: index,
8804
- filters: filters
8805
- }),
8831
+ /*#__PURE__*/ jsxRuntime.jsx(CohortSelector, {}),
8806
8832
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
8807
8833
  label: noFilters ? 'No values to expand/collapse' : allQueryExpressionsCollapsed ? 'Expand all values' : 'Collapse all values',
8808
8834
  children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
@@ -10397,7 +10423,8 @@ const WorkspaceProvider = ({ children, config })=>{
10397
10423
  });
10398
10424
  };
10399
10425
 
10400
- var PayModelStatus = /*#__PURE__*/ function(PayModelStatus) {
10426
+ var PayModelStatus;
10427
+ (function(PayModelStatus) {
10401
10428
  PayModelStatus["GETTING"] = "GETTING";
10402
10429
  PayModelStatus["INVALID"] = "INVALID";
10403
10430
  PayModelStatus["ERROR"] = "ERROR";
@@ -10405,8 +10432,7 @@ var PayModelStatus = /*#__PURE__*/ function(PayModelStatus) {
10405
10432
  PayModelStatus["OVER_LIMIT"] = "OVER_LIMIT";
10406
10433
  PayModelStatus["NOT_REQUIRED"] = "NOT_REQUIRED";
10407
10434
  PayModelStatus["VALID"] = "VALID";
10408
- return PayModelStatus;
10409
- }({});
10435
+ })(PayModelStatus || (PayModelStatus = {}));
10410
10436
 
10411
10437
  const getWorkspaceErrorMessage = (error, defaultMessage)=>{
10412
10438
  if (core.isFetchBaseQueryError(error)) {
@@ -10764,94 +10790,21 @@ const PaymentNumberToString = (x, undefinedValue = 'N/A', precision = 2)=>{
10764
10790
  return x.toFixed(precision);
10765
10791
  };
10766
10792
 
10767
- const StatusAndControls = ()=>{
10768
- const { stopWorkspace, toggleFullscreen, isFullscreen } = useWorkspaceStatusContext();
10769
- const openModal = ()=>modals.modals.openConfirmModal({
10770
- title: 'Workspace',
10771
- children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
10772
- size: "sm",
10773
- children: "Please confirm workspace shutdown"
10774
- }),
10775
- labels: {
10776
- confirm: 'Confirm',
10777
- cancel: 'Cancel'
10778
- },
10779
- onConfirm: ()=>stopWorkspace()
10780
- });
10781
- const workspaceStatus = core.useCoreSelector(core.selectActiveWorkspaceStatus);
10782
- const requestedStatus = core.useCoreSelector(core.selectRequestedWorkspaceStatus);
10783
- return /*#__PURE__*/ jsxRuntime.jsx(core$1.Transition, {
10784
- mounted: core.isWorkspaceRunningOrStopping(workspaceStatus),
10785
- transition: "fade",
10786
- duration: 1200,
10787
- timingFunction: "ease",
10788
- children: (styles)=>/*#__PURE__*/ jsxRuntime.jsx("div", {
10789
- style: styles,
10790
- children: /*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
10791
- children: [
10792
- /*#__PURE__*/ jsxRuntime.jsx(react.Icon, {
10793
- height: '2.0rem',
10794
- icon: 'workspace:jupyter'
10795
- }),
10796
- /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
10797
- label: "Stop Workspace",
10798
- children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
10799
- loading: requestedStatus === 'Terminate',
10800
- size: "md",
10801
- color: "accent.5",
10802
- variant: "default",
10803
- onClick: ()=>{
10804
- openModal();
10805
- },
10806
- "aria-label": "Stop Workspace",
10807
- leftSection: /*#__PURE__*/ jsxRuntime.jsx(fa.FaRegStopCircle, {
10808
- color: "utility.2",
10809
- size: "1rem",
10810
- className: "text-accent-warm"
10811
- }),
10812
- children: "Stop Workspace"
10813
- })
10814
- }),
10815
- /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
10816
- label: "Toggle fullscreen mode",
10817
- children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
10818
- color: "utility.2",
10819
- size: "md",
10820
- variant: "default",
10821
- onClick: ()=>{
10822
- toggleFullscreen();
10823
- },
10824
- "aria-label": isFullscreen ? 'Exit Fullscreen' : 'Make Fullscreen',
10825
- leftSection: /*#__PURE__*/ jsxRuntime.jsx(bs.BsArrowsFullscreen, {
10826
- className: "text-accent-warm"
10827
- }),
10828
- children: isFullscreen ? 'Exit Fullscreen' : 'Make Fullscreen'
10829
- })
10830
- })
10831
- ]
10832
- })
10833
- })
10834
- });
10835
- };
10836
-
10837
10793
  const isNoPayModelError = (error)=>{
10838
10794
  return 'status' in error && error.status === 'PARSING_ERROR' && error.originalStatus === 404;
10839
10795
  };
10840
10796
  const NoPayModel = ()=>{
10841
- return /*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
10797
+ return /*#__PURE__*/ jsxRuntime.jsx(core$1.Group, {
10842
10798
  className: "p-2 border-1 border-l-0 border-r-0 border-base-lighter w-full h-16",
10843
10799
  justify: "space-between",
10844
- children: [
10845
- /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
10846
- className: "pl-4",
10847
- size: "md",
10848
- classNames: {
10849
- root: 'font-heading text-utility-warning'
10850
- },
10851
- children: "No pay model defined"
10852
- }),
10853
- /*#__PURE__*/ jsxRuntime.jsx(StatusAndControls, {})
10854
- ]
10800
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
10801
+ className: "pl-4",
10802
+ size: "md",
10803
+ classNames: {
10804
+ root: 'font-heading text-utility-warning'
10805
+ },
10806
+ children: "No pay model defined"
10807
+ })
10855
10808
  });
10856
10809
  };
10857
10810
  const PaymentPanel = ()=>{
@@ -11179,6 +11132,72 @@ const WorkspaceLaunchProgress = ()=>{
11179
11132
  });
11180
11133
  };
11181
11134
 
11135
+ const StatusAndControls = ()=>{
11136
+ const { stopWorkspace, toggleFullscreen, isFullscreen } = useWorkspaceStatusContext();
11137
+ const openModal = ()=>modals.modals.openConfirmModal({
11138
+ title: 'Workspace',
11139
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
11140
+ size: "sm",
11141
+ children: "Please confirm workspace shutdown"
11142
+ }),
11143
+ labels: {
11144
+ confirm: 'Confirm',
11145
+ cancel: 'Cancel'
11146
+ },
11147
+ onConfirm: ()=>stopWorkspace()
11148
+ });
11149
+ const workspaceStatus = core.useCoreSelector(core.selectActiveWorkspaceStatus);
11150
+ const requestedStatus = core.useCoreSelector(core.selectRequestedWorkspaceStatus);
11151
+ return /*#__PURE__*/ jsxRuntime.jsx(core$1.Transition, {
11152
+ mounted: core.isWorkspaceRunningOrStopping(workspaceStatus),
11153
+ transition: "fade",
11154
+ duration: 1200,
11155
+ timingFunction: "ease",
11156
+ children: (styles)=>/*#__PURE__*/ jsxRuntime.jsx("div", {
11157
+ style: styles,
11158
+ children: /*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
11159
+ children: [
11160
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
11161
+ label: "Stop Workspace",
11162
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
11163
+ loading: requestedStatus === core.RequestedWorkspaceStatus.Terminate,
11164
+ size: "md",
11165
+ color: "accent.5",
11166
+ variant: "default",
11167
+ onClick: ()=>{
11168
+ openModal();
11169
+ },
11170
+ "aria-label": "Stop Workspace",
11171
+ leftSection: /*#__PURE__*/ jsxRuntime.jsx(fa.FaRegStopCircle, {
11172
+ color: "utility.2",
11173
+ size: "1rem",
11174
+ className: "text-accent-warm"
11175
+ }),
11176
+ children: "Stop Workspace"
11177
+ })
11178
+ }),
11179
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
11180
+ label: "Toggle fullscreen mode",
11181
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
11182
+ color: "utility.2",
11183
+ size: "md",
11184
+ variant: "default",
11185
+ onClick: ()=>{
11186
+ toggleFullscreen();
11187
+ },
11188
+ "aria-label": isFullscreen ? 'Exit Fullscreen' : 'Make Fullscreen',
11189
+ leftSection: /*#__PURE__*/ jsxRuntime.jsx(bs.BsArrowsFullscreen, {
11190
+ className: "text-accent-warm"
11191
+ }),
11192
+ children: isFullscreen ? 'Exit Fullscreen' : 'Make Fullscreen'
11193
+ })
11194
+ })
11195
+ ]
11196
+ })
11197
+ })
11198
+ });
11199
+ };
11200
+
11182
11201
  const FULLSCREEN_STYLE = 'fixed top-0 left-0 w-full h-full flex flex-col flex-grow content-center items-center bg-base-lightest';
11183
11202
  const WorkspaceNotebookPanelWithControls = ()=>{
11184
11203
  const { isFullscreen } = useWorkspaceStatusContext();
@@ -11187,7 +11206,13 @@ const WorkspaceNotebookPanelWithControls = ()=>{
11187
11206
  className: isFullscreen ? FULLSCREEN_STYLE : 'flex flex-col grow w-full h-full relative',
11188
11207
  children: [
11189
11208
  /*#__PURE__*/ jsxRuntime.jsx(ExternalLoginsStatus, {}),
11190
- requirePayModel && /*#__PURE__*/ jsxRuntime.jsx(PaymentPanel, {}),
11209
+ /*#__PURE__*/ jsxRuntime.jsxs("div", {
11210
+ className: `flex w-full p-2 ${requirePayModel ? 'justify-between' : 'justify-end'}`,
11211
+ children: [
11212
+ requirePayModel && /*#__PURE__*/ jsxRuntime.jsx(PaymentPanel, {}),
11213
+ /*#__PURE__*/ jsxRuntime.jsx(StatusAndControls, {})
11214
+ ]
11215
+ }),
11191
11216
  /*#__PURE__*/ jsxRuntime.jsx(WorkspaceLaunchProgress, {}),
11192
11217
  /*#__PURE__*/ jsxRuntime.jsx(WorkspacePanel, {}),
11193
11218
  /*#__PURE__*/ jsxRuntime.jsx(WorkspaceNotebook, {})
@@ -16056,6 +16081,12 @@ const UserDetailsPanel = ({ user, closePanel })=>{
16056
16081
  });
16057
16082
  };
16058
16083
 
16084
+ var UserPanelMode;
16085
+ (function(UserPanelMode) {
16086
+ UserPanelMode[UserPanelMode["UserTable"] = 0] = "UserTable";
16087
+ UserPanelMode[UserPanelMode["NewUserPanel"] = 1] = "NewUserPanel";
16088
+ UserPanelMode[UserPanelMode["UserDetailPanel"] = 2] = "UserDetailPanel";
16089
+ })(UserPanelMode || (UserPanelMode = {}));
16059
16090
  const NullUser = {
16060
16091
  id: '',
16061
16092
  tags: {
@@ -16932,6 +16963,7 @@ const ALLOWED_IMAGE_TYPES = [
16932
16963
  'image/png',
16933
16964
  'image/svg+xml'
16934
16965
  ];
16966
+ const MAX_HISTORY = 50;
16935
16967
  const AnalysisCardEditor = ()=>{
16936
16968
  // Enhanced state management with history
16937
16969
  const [history, setHistory] = React.useState({
@@ -16962,7 +16994,7 @@ const AnalysisCardEditor = ()=>{
16962
16994
  past: [
16963
16995
  ...prev.past,
16964
16996
  prev.present
16965
- ].slice(-50),
16997
+ ].slice(-MAX_HISTORY),
16966
16998
  present: newPresent,
16967
16999
  future: []
16968
17000
  }));
@@ -19562,7 +19594,7 @@ const CrosswalkTable = ({ mapping, data, isFetching, isError, tableMessage, show
19562
19594
  });
19563
19595
  };
19564
19596
 
19565
- const MIN_ROWS = 18;
19597
+ const MIN_ROWS = 22;
19566
19598
  /**
19567
19599
  *
19568
19600
  */ const buildCSVData = (data, mapping, includeSourceId)=>{
@@ -19586,7 +19618,7 @@ const downloadData = (data)=>{
19586
19618
  link.click();
19587
19619
  document.body.removeChild(link);
19588
19620
  };
19589
- const CrosswalkPanel = ({ mapping, showSubmittedIdInTable })=>{
19621
+ const CrosswalkPanel = ({ mapping, showSubmittedIdInTable, idEntryPlaceholderText })=>{
19590
19622
  const [query, setQuery] = React.useState('');
19591
19623
  const [sourceIds, setSourceIds] = React.useState('');
19592
19624
  const clipboard = hooks.useClipboard({
@@ -19643,29 +19675,35 @@ const CrosswalkPanel = ({ mapping, showSubmittedIdInTable })=>{
19643
19675
  /*#__PURE__*/ jsxRuntime.jsxs(core$1.Stack, {
19644
19676
  align: "stretch",
19645
19677
  justify: "flex-start",
19646
- className: "p-2 w-1/4",
19678
+ className: "p-2 w-1/4 h-full",
19647
19679
  children: [
19648
19680
  /*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
19649
19681
  wrap: "nowrap",
19650
19682
  children: [
19651
- /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19652
- size: "md",
19653
- color: "secondary.4",
19654
- disabled: sourceIds.length == 0,
19655
- onClick: ()=>onSubmit(),
19656
- children: "Submit"
19683
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
19684
+ label: "Submit IDs to crosswalk service",
19685
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19686
+ size: "md",
19687
+ color: "secondary.4",
19688
+ disabled: sourceIds.length == 0,
19689
+ onClick: ()=>onSubmit(),
19690
+ children: "Submit"
19691
+ })
19657
19692
  }),
19658
- /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19659
- size: "md",
19660
- color: "secondary.4",
19661
- disabled: sourceIds.length == 0,
19662
- onClick: ()=>clear(),
19663
- children: "Clear"
19693
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
19694
+ label: "Clear all Ids",
19695
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19696
+ size: "md",
19697
+ color: "secondary.4",
19698
+ disabled: sourceIds.length == 0,
19699
+ onClick: ()=>clear(),
19700
+ children: "Clear"
19701
+ })
19664
19702
  })
19665
19703
  ]
19666
19704
  }),
19667
19705
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Textarea, {
19668
- placeholder: "IDs...",
19706
+ placeholder: idEntryPlaceholderText,
19669
19707
  radius: "md",
19670
19708
  size: "md",
19671
19709
  required: true,
@@ -19692,24 +19730,30 @@ const CrosswalkPanel = ({ mapping, showSubmittedIdInTable })=>{
19692
19730
  /*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
19693
19731
  justify: "flex-end",
19694
19732
  children: [
19695
- /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19696
- variant: "outline",
19697
- size: "md",
19698
- color: clipboard.copied ? 'accent.4' : 'accent-warm.4',
19699
- onClick: ()=>{
19700
- if (data) clipboard.copy(buildCSVData(data, mapping, showSubmittedIdInTable));
19701
- },
19702
- disabled: !data || data.length == 0,
19703
- children: "Copy"
19733
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
19734
+ label: "Copy mapping to clipboard",
19735
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19736
+ variant: "outline",
19737
+ size: "md",
19738
+ color: clipboard.copied ? 'accent.4' : 'accent-warm.4',
19739
+ onClick: ()=>{
19740
+ if (data) clipboard.copy(buildCSVData(data, mapping, showSubmittedIdInTable));
19741
+ },
19742
+ disabled: !data || data.length == 0,
19743
+ children: "Copy"
19744
+ })
19704
19745
  }),
19705
- /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19706
- variant: "outline",
19707
- size: "md",
19708
- onClick: ()=>{
19709
- if (data) downloadData(buildCSVData(data, mapping, showSubmittedIdInTable));
19710
- },
19711
- disabled: !data || data.length == 0,
19712
- children: "Download"
19746
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Tooltip, {
19747
+ label: "Download mapping",
19748
+ children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
19749
+ variant: "outline",
19750
+ size: "md",
19751
+ onClick: ()=>{
19752
+ if (data) downloadData(buildCSVData(data, mapping, showSubmittedIdInTable));
19753
+ },
19754
+ disabled: !data || data.length == 0,
19755
+ children: "Download"
19756
+ })
19713
19757
  })
19714
19758
  ]
19715
19759
  }),
@@ -19744,26 +19788,38 @@ const CrosswalkPage = ({ headerProps, footerProps, config })=>{
19744
19788
  };
19745
19789
 
19746
19790
  const CrosswalkPageGetServerSideProps = async ()=>{
19747
- const initialConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/crosswalk.json`);
19748
- const regex = /->/g;
19749
- const processedConfig = {
19750
- showSubmittedIdInTable: initialConfig.showSubmittedIdInTable,
19751
- mapping: {
19752
- source: initialConfig.mapping.source,
19753
- external: initialConfig.mapping.external.map((entry)=>({
19754
- ...entry,
19755
- dataPath: entry.dataPath.split(regex).map((x)=>JSON.stringify([
19756
- x
19757
- ])).join('.')
19758
- }))
19759
- }
19760
- };
19761
- return {
19762
- props: {
19763
- ...await getNavPageLayoutPropsFromConfig(),
19764
- config: processedConfig
19765
- }
19766
- };
19791
+ try {
19792
+ const initialConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/crosswalk.json`);
19793
+ const regex = /->/g;
19794
+ const processedConfig = {
19795
+ showSubmittedIdInTable: initialConfig.showSubmittedIdInTable,
19796
+ idEntryPlaceholderText: initialConfig?.idEntryPlaceholderText || 'Enter IDs, one per line.\nExample:\nD334343\nC343433',
19797
+ mapping: {
19798
+ source: initialConfig.mapping.source,
19799
+ external: initialConfig.mapping.external.map((entry)=>({
19800
+ ...entry,
19801
+ dataPath: entry.dataPath.split(regex).map((x)=>JSON.stringify([
19802
+ x
19803
+ ])).join('.')
19804
+ }))
19805
+ }
19806
+ };
19807
+ return {
19808
+ props: {
19809
+ ...await getNavPageLayoutPropsFromConfig(),
19810
+ config: processedConfig
19811
+ }
19812
+ };
19813
+ } catch (error) {
19814
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error in crosswalk config';
19815
+ console.error(errorMessage);
19816
+ return {
19817
+ props: {
19818
+ ...await getNavPageLayoutPropsFromConfig(),
19819
+ config: undefined
19820
+ }
19821
+ };
19822
+ }
19767
19823
  };
19768
19824
 
19769
19825
  const TailwindConfig = (themer)=>{