synapse-react-client 4.0.35 → 4.0.36

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 (260) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/aridhia-queries/AridhiaKeyFactory.d.ts +24 -0
  3. package/dist/aridhia-queries/AridhiaKeyFactory.d.ts.map +1 -0
  4. package/dist/aridhia-queries/AridhiaKeyFactory.js +49 -0
  5. package/dist/aridhia-queries/AridhiaKeyFactory.js.map +1 -0
  6. package/dist/aridhia-queries/FairFormPayload.d.ts +45 -0
  7. package/dist/aridhia-queries/FairFormPayload.d.ts.map +1 -0
  8. package/dist/aridhia-queries/FairFormPayload.js +0 -0
  9. package/dist/aridhia-queries/TransferType.d.ts +10 -0
  10. package/dist/aridhia-queries/TransferType.d.ts.map +1 -0
  11. package/dist/aridhia-queries/TransferType.js +0 -0
  12. package/dist/aridhia-queries/aridhiaTokenExchange.js +6 -6
  13. package/dist/aridhia-queries/index.d.ts +12 -0
  14. package/dist/aridhia-queries/index.d.ts.map +1 -1
  15. package/dist/aridhia-queries/index.js +12 -2
  16. package/dist/aridhia-queries/useAridhiaQuery.d.ts +37 -0
  17. package/dist/aridhia-queries/useAridhiaQuery.d.ts.map +1 -0
  18. package/dist/aridhia-queries/useAridhiaQuery.js +71 -0
  19. package/dist/aridhia-queries/useAridhiaQuery.js.map +1 -0
  20. package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.d.ts +6 -0
  21. package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.d.ts.map +1 -0
  22. package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.js +13 -0
  23. package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.js.map +1 -0
  24. package/dist/aridhia-queries/useGetAridhiaDatasetSettings.d.ts +6 -0
  25. package/dist/aridhia-queries/useGetAridhiaDatasetSettings.d.ts.map +1 -0
  26. package/dist/aridhia-queries/useGetAridhiaDatasetSettings.js +13 -0
  27. package/dist/aridhia-queries/useGetAridhiaDatasetSettings.js.map +1 -0
  28. package/dist/aridhia-queries/useGetAridhiaDictionaries.d.ts +6 -0
  29. package/dist/aridhia-queries/useGetAridhiaDictionaries.d.ts.map +1 -0
  30. package/dist/aridhia-queries/useGetAridhiaDictionaries.js +13 -0
  31. package/dist/aridhia-queries/useGetAridhiaDictionaries.js.map +1 -0
  32. package/dist/aridhia-queries/useGetAridhiaRequests.d.ts +5 -4
  33. package/dist/aridhia-queries/useGetAridhiaRequests.d.ts.map +1 -1
  34. package/dist/aridhia-queries/useGetAridhiaRequests.js +11 -18
  35. package/dist/aridhia-queries/useGetAridhiaRequests.js.map +1 -1
  36. package/dist/aridhia-queries/useGetAridhiaWorkflow.d.ts +13 -0
  37. package/dist/aridhia-queries/useGetAridhiaWorkflow.d.ts.map +1 -0
  38. package/dist/aridhia-queries/useGetAridhiaWorkflow.js +19 -0
  39. package/dist/aridhia-queries/useGetAridhiaWorkflow.js.map +1 -0
  40. package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.d.ts +6 -0
  41. package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.d.ts.map +1 -0
  42. package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.js +13 -0
  43. package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.js.map +1 -0
  44. package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.d.ts +19 -0
  45. package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.d.ts.map +1 -0
  46. package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.js +17 -0
  47. package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.js.map +1 -0
  48. package/dist/aridhia-queries/useGetAridhiaWorkspaces.d.ts +6 -0
  49. package/dist/aridhia-queries/useGetAridhiaWorkspaces.d.ts.map +1 -0
  50. package/dist/aridhia-queries/useGetAridhiaWorkspaces.js +19 -0
  51. package/dist/aridhia-queries/useGetAridhiaWorkspaces.js.map +1 -0
  52. package/dist/aridhia-queries/useSubmitAridhiaDar.d.ts +27 -0
  53. package/dist/aridhia-queries/useSubmitAridhiaDar.d.ts.map +1 -0
  54. package/dist/aridhia-queries/useSubmitAridhiaDar.js +38 -0
  55. package/dist/aridhia-queries/useSubmitAridhiaDar.js.map +1 -0
  56. package/dist/components/AccessRequirement/EntityActionsRequired.d.ts +0 -1
  57. package/dist/components/AccessRequirement/EntityActionsRequired.d.ts.map +1 -1
  58. package/dist/components/AccessRequirement/EntityActionsRequired.js +3 -6
  59. package/dist/components/AccessRequirement/EntityActionsRequired.js.map +1 -1
  60. package/dist/components/AccessRequirementList/AccessRequirementList.d.ts.map +1 -1
  61. package/dist/components/AccessRequirementList/AccessRequirementList.js +116 -115
  62. package/dist/components/AccessRequirementList/AccessRequirementList.js.map +1 -1
  63. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts.map +1 -1
  64. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js +67 -57
  65. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js.map +1 -1
  66. package/dist/components/Aridhia/aridhiaAccessStatusUtils.d.ts +3 -3
  67. package/dist/components/Aridhia/aridhiaAccessStatusUtils.d.ts.map +1 -1
  68. package/dist/components/Aridhia/aridhiaAccessStatusUtils.js +1 -1
  69. package/dist/components/Aridhia/aridhiaAccessStatusUtils.js.map +1 -1
  70. package/dist/components/CardContainer/CardConfiguration.d.ts +8 -0
  71. package/dist/components/CardContainer/CardConfiguration.d.ts.map +1 -1
  72. package/dist/components/ChangePassword/ChangePasswordWithToken.d.ts.map +1 -1
  73. package/dist/components/ChangePassword/ChangePasswordWithToken.js +58 -23
  74. package/dist/components/ChangePassword/ChangePasswordWithToken.js.map +1 -1
  75. package/dist/components/ChangePassword/useChangePasswordFormState.d.ts.map +1 -1
  76. package/dist/components/ChangePassword/useChangePasswordFormState.js +13 -3
  77. package/dist/components/ChangePassword/useChangePasswordFormState.js.map +1 -1
  78. package/dist/components/CreateTableViewWizard/TableNameForm.d.ts.map +1 -1
  79. package/dist/components/CreateTableViewWizard/TableNameForm.js +11 -14
  80. package/dist/components/CreateTableViewWizard/TableNameForm.js.map +1 -1
  81. package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts +1 -1
  82. package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts.map +1 -1
  83. package/dist/components/DataGrid/SyncGridWithSourceButton.js +55 -61
  84. package/dist/components/DataGrid/SyncGridWithSourceButton.js.map +1 -1
  85. package/dist/components/DataGrid/components/contextMenu.d.ts.map +1 -1
  86. package/dist/components/DataGrid/components/contextMenu.js +15 -15
  87. package/dist/components/DataGrid/components/contextMenu.js.map +1 -1
  88. package/dist/components/DataGrid/useMergeGridWithSource.d.ts +1 -5
  89. package/dist/components/DataGrid/useMergeGridWithSource.d.ts.map +1 -1
  90. package/dist/components/DataGrid/useMergeGridWithSource.js +21 -28
  91. package/dist/components/DataGrid/useMergeGridWithSource.js.map +1 -1
  92. package/dist/components/DatasetHosting/DatasetDownloadButton.d.ts +35 -0
  93. package/dist/components/DatasetHosting/DatasetDownloadButton.d.ts.map +1 -0
  94. package/dist/components/DatasetHosting/DatasetDownloadButton.js +132 -0
  95. package/dist/components/DatasetHosting/DatasetDownloadButton.js.map +1 -0
  96. package/dist/components/DatasetHosting/DatasetHosting.d.ts +91 -0
  97. package/dist/components/DatasetHosting/DatasetHosting.d.ts.map +1 -0
  98. package/dist/components/DatasetHosting/DatasetHosting.js +58 -0
  99. package/dist/components/DatasetHosting/DatasetHosting.js.map +1 -0
  100. package/dist/components/DatasetHosting/index.d.ts +5 -0
  101. package/dist/components/DatasetHosting/index.d.ts.map +1 -0
  102. package/dist/components/DatasetHosting/index.js +3 -0
  103. package/dist/components/DownloadCart/ActionRequiredListItem.d.ts +0 -2
  104. package/dist/components/DownloadCart/ActionRequiredListItem.d.ts.map +1 -1
  105. package/dist/components/DownloadCart/ActionRequiredListItem.js +2 -3
  106. package/dist/components/DownloadCart/ActionRequiredListItem.js.map +1 -1
  107. package/dist/components/DownloadCart/DownloadCartPage.d.ts +1 -2
  108. package/dist/components/DownloadCart/DownloadCartPage.d.ts.map +1 -1
  109. package/dist/components/DownloadCart/DownloadCartPage.js +49 -49
  110. package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
  111. package/dist/components/DownloadCart/DownloadListActionsRequired.d.ts +1 -5
  112. package/dist/components/DownloadCart/DownloadListActionsRequired.d.ts.map +1 -1
  113. package/dist/components/DownloadCart/DownloadListActionsRequired.js +5 -6
  114. package/dist/components/DownloadCart/DownloadListActionsRequired.js.map +1 -1
  115. package/dist/components/DownloadCart/RequestDownloadCard.d.ts +0 -2
  116. package/dist/components/DownloadCart/RequestDownloadCard.d.ts.map +1 -1
  117. package/dist/components/DownloadCart/RequestDownloadCard.js +28 -32
  118. package/dist/components/DownloadCart/RequestDownloadCard.js.map +1 -1
  119. package/dist/components/DownloadCart/TableQueryActionsRequired.d.ts +0 -2
  120. package/dist/components/DownloadCart/TableQueryActionsRequired.d.ts.map +1 -1
  121. package/dist/components/DownloadCart/TableQueryActionsRequired.js +7 -8
  122. package/dist/components/DownloadCart/TableQueryActionsRequired.js.map +1 -1
  123. package/dist/components/DownloadCart/index.d.ts +1 -2
  124. package/dist/components/DownloadCart/index.d.ts.map +1 -1
  125. package/dist/components/GenericCard/CardActionButtonStyleContext.d.ts +10 -0
  126. package/dist/components/GenericCard/CardActionButtonStyleContext.d.ts.map +1 -0
  127. package/dist/components/GenericCard/CardActionButtonStyleContext.js +10 -0
  128. package/dist/components/GenericCard/CardActionButtonStyleContext.js.map +1 -0
  129. package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js +41 -41
  130. package/dist/components/GenericCard/GenericCardActionButton.d.ts +5 -0
  131. package/dist/components/GenericCard/GenericCardActionButton.d.ts.map +1 -1
  132. package/dist/components/GenericCard/GenericCardActionButton.js +28 -11
  133. package/dist/components/GenericCard/GenericCardActionButton.js.map +1 -1
  134. package/dist/components/GenericCard/TableRowGenericCard.d.ts +24 -0
  135. package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
  136. package/dist/components/GenericCard/TableRowGenericCard.js +205 -190
  137. package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
  138. package/dist/components/JSONArrayEditor/JSONArrayEditor.d.ts.map +1 -1
  139. package/dist/components/JSONArrayEditor/JSONArrayEditor.js +42 -42
  140. package/dist/components/JSONArrayEditor/JSONArrayEditor.js.map +1 -1
  141. package/dist/components/JsonSchemaForm/JsonSchemaForm.css +1 -0
  142. package/dist/components/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
  143. package/dist/components/JsonSchemaForm/JsonSchemaForm.js +13 -12
  144. package/dist/components/JsonSchemaForm/JsonSchemaForm.js.map +1 -1
  145. package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js +5 -0
  146. package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js.map +1 -0
  147. package/dist/components/JsonSchemaForm/JsonSchemaForm.module.scss +109 -0
  148. package/dist/components/QueryBuilder/QueryBuilderTypes.d.ts +39 -0
  149. package/dist/components/QueryBuilder/QueryBuilderTypes.d.ts.map +1 -0
  150. package/dist/components/QueryBuilder/QueryBuilderTypes.js +11 -0
  151. package/dist/components/QueryBuilder/QueryBuilderTypes.js.map +1 -0
  152. package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts +48 -0
  153. package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts.map +1 -0
  154. package/dist/components/QueryBuilder/queryBuilderTranslation.js +256 -0
  155. package/dist/components/QueryBuilder/queryBuilderTranslation.js.map +1 -0
  156. package/dist/components/QueryContext/QueryContext.d.ts +0 -1
  157. package/dist/components/QueryContext/QueryContext.d.ts.map +1 -1
  158. package/dist/components/QueryContext/QueryContext.js.map +1 -1
  159. package/dist/components/QueryWrapper/QueryWrapper.d.ts +0 -1
  160. package/dist/components/QueryWrapper/QueryWrapper.d.ts.map +1 -1
  161. package/dist/components/QueryWrapper/QueryWrapper.js +52 -53
  162. package/dist/components/QueryWrapper/QueryWrapper.js.map +1 -1
  163. package/dist/components/QueryWrapperErrorBoundary.d.ts.map +1 -1
  164. package/dist/components/QueryWrapperErrorBoundary.js +4 -11
  165. package/dist/components/QueryWrapperErrorBoundary.js.map +1 -1
  166. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +0 -1
  167. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
  168. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
  169. package/dist/components/SchemaDrivenAnnotationEditor/SchemaDrivenAnnotationEditor.js +123 -123
  170. package/dist/components/SchemaDrivenAnnotationEditor/SchemaDrivenAnnotationEditor.js.map +1 -1
  171. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -1
  172. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +0 -1
  173. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -1
  174. package/dist/components/ShareThisPage/ShareThisPage.js +30 -29
  175. package/dist/components/ShareThisPage/ShareThisPage.js.map +1 -1
  176. package/dist/components/SynapseChat/GridAgentChat.d.ts.map +1 -1
  177. package/dist/components/SynapseChat/GridAgentChat.js +29 -31
  178. package/dist/components/SynapseChat/GridAgentChat.js.map +1 -1
  179. package/dist/components/SynapseTable/SynapseTable.d.ts.map +1 -1
  180. package/dist/components/SynapseTable/SynapseTable.js +2 -1
  181. package/dist/components/SynapseTable/SynapseTable.js.map +1 -1
  182. package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.d.ts.map +1 -1
  183. package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.js +29 -30
  184. package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.js.map +1 -1
  185. package/dist/components/TanStackTable/StyledTanStackTable.d.ts +7 -0
  186. package/dist/components/TanStackTable/StyledTanStackTable.d.ts.map +1 -1
  187. package/dist/components/TanStackTable/StyledTanStackTable.js +68 -48
  188. package/dist/components/TanStackTable/StyledTanStackTable.js.map +1 -1
  189. package/dist/components/TanStackTable/useSyncedTopScrollbar.d.ts +13 -0
  190. package/dist/components/TanStackTable/useSyncedTopScrollbar.d.ts.map +1 -0
  191. package/dist/components/TanStackTable/useSyncedTopScrollbar.js +32 -0
  192. package/dist/components/TanStackTable/useSyncedTopScrollbar.js.map +1 -0
  193. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
  194. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +36 -34
  195. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
  196. package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.js +1 -1
  197. package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.js.map +1 -1
  198. package/dist/components/doi/CreateOrUpdateDoiModal.d.ts.map +1 -1
  199. package/dist/components/doi/CreateOrUpdateDoiModal.js +10 -13
  200. package/dist/components/doi/CreateOrUpdateDoiModal.js.map +1 -1
  201. package/dist/components/index.d.ts +1 -0
  202. package/dist/components/index.d.ts.map +1 -1
  203. package/dist/components/index.js +143 -140
  204. package/dist/components/menu/DropdownMenu.d.ts.map +1 -1
  205. package/dist/components/menu/DropdownMenu.js +6 -6
  206. package/dist/components/menu/DropdownMenu.js.map +1 -1
  207. package/dist/features/entity/metadata-task/components/MetadataTasksPage.js +5 -5
  208. package/dist/index.js +161 -159
  209. package/dist/index.js.map +1 -1
  210. package/dist/mocks/msw/handlers/dataAccessRequestHandlers.d.ts.map +1 -1
  211. package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js +30 -26
  212. package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js.map +1 -1
  213. package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.d.ts +1 -0
  214. package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.d.ts.map +1 -1
  215. package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.js +7 -1
  216. package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.js.map +1 -1
  217. package/dist/mocks/msw/handlers/userProfileHandlers.d.ts.map +1 -1
  218. package/dist/mocks/msw/handlers/userProfileHandlers.js +4 -0
  219. package/dist/mocks/msw/handlers/userProfileHandlers.js.map +1 -1
  220. package/dist/style/components/_all.scss +0 -1
  221. package/dist/style/components/_cards.scss +4 -2
  222. package/dist/style/main.css +1 -1
  223. package/dist/synapse-queries/KeyFactory.d.ts +1 -0
  224. package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
  225. package/dist/synapse-queries/KeyFactory.js +3 -0
  226. package/dist/synapse-queries/KeyFactory.js.map +1 -1
  227. package/dist/synapse-queries/dataaccess/index.js +4 -4
  228. package/dist/synapse-queries/dataaccess/useEDuc.d.ts +7 -0
  229. package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
  230. package/dist/synapse-queries/dataaccess/useEDuc.js +11 -3
  231. package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
  232. package/dist/synapse-queries/index.js +190 -189
  233. package/dist/tsconfig.build.tsbuildinfo +1 -1
  234. package/dist/utils/APIConstants.d.ts +1 -0
  235. package/dist/utils/APIConstants.d.ts.map +1 -1
  236. package/dist/utils/APIConstants.js +2 -2
  237. package/dist/utils/APIConstants.js.map +1 -1
  238. package/dist/utils/featureflag/FeatureFlags.d.ts +1 -4
  239. package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
  240. package/dist/utils/featureflag/FeatureFlags.js +1 -1
  241. package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
  242. package/dist/utils/functions/RegularExpressions.d.ts +10 -0
  243. package/dist/utils/functions/RegularExpressions.d.ts.map +1 -1
  244. package/dist/utils/functions/RegularExpressions.js +7 -1
  245. package/dist/utils/functions/RegularExpressions.js.map +1 -1
  246. package/dist/utils/functions/SqlFunctions.d.ts.map +1 -1
  247. package/dist/utils/functions/SqlFunctions.js +19 -3
  248. package/dist/utils/functions/SqlFunctions.js.map +1 -1
  249. package/dist/utils/index.js +16 -16
  250. package/dist/utils/types/IsType.d.ts +4 -1
  251. package/dist/utils/types/IsType.d.ts.map +1 -1
  252. package/dist/utils/types/IsType.js +4 -4
  253. package/dist/utils/types/IsType.js.map +1 -1
  254. package/dist/utils/types/index.js +2 -2
  255. package/package.json +7 -7
  256. package/dist/components/DataGrid/useMergeGridWithRecordSet.d.ts +0 -12
  257. package/dist/components/DataGrid/useMergeGridWithRecordSet.d.ts.map +0 -1
  258. package/dist/components/DataGrid/useMergeGridWithRecordSet.js +0 -25
  259. package/dist/components/DataGrid/useMergeGridWithRecordSet.js.map +0 -1
  260. package/dist/style/components/_annotations.scss +0 -110
@@ -1 +1 @@
1
- {"version":3,"file":"TableQueryActionsRequired.js","names":[],"sources":["../../../src/components/DownloadCart/TableQueryActionsRequired.tsx"],"sourcesContent":["import { Box, Typography } from '@mui/material'\nimport {\n ColumnModel,\n QueryBundleRequest,\n} from '@sage-bionetworks/synapse-types'\nimport { noop, times } from 'lodash-es'\nimport { useEffect } from 'react'\nimport { useGetActionsRequiredForTableQuery } from '../../synapse-queries/entity/useActionsRequiredForTableQuery'\nimport useTrackTransientListItems from '../../utils/hooks/useTrackTransientListItems'\nimport { LoadingActionRequiredCard } from './ActionRequiredCard/ActionRequiredCard'\nimport { ActionRequiredListItem } from './ActionRequiredListItem'\n\nexport type TableQueryActionsRequiredProps = {\n /** The query request to use to select rows to check if actions are required. */\n queryBundleRequest: QueryBundleRequest\n /** The column models of the table */\n columnModels: ColumnModel[]\n /** Invoked when a user clicks \"View Sharing Settings\" for a set of files that require the Download permission*/\n onViewSharingSettingsClicked?: (benefactorId: string) => void\n /** Invoked when the number of required actions changes. Can be used to set UI state based on if all actions have been fulfilled */\n onNumberOfRequiredActionsChanged?: (actionsRequired: number) => void\n}\n\n/**\n * Displays an interactive list of actions required to take for a user to gain access to Synapse entities referenced in\n * a table query.\n */\nexport function TableQueryActionsRequired(\n props: TableQueryActionsRequiredProps,\n) {\n const {\n queryBundleRequest,\n columnModels,\n onNumberOfRequiredActionsChanged = noop,\n onViewSharingSettingsClicked,\n } = props\n\n // This component will track all completed actions, based on which actions are omitted from the ActionsRequiredResponse\n // as the user performs required tasks\n const { data: currentActionsRequired, isLoading } =\n useGetActionsRequiredForTableQuery(queryBundleRequest, columnModels, {\n throwOnError: true,\n })\n\n // PORTALS-2950 - Keep a record of actions that disappear from the server response - i.e. the 'completed' actions\n const allCompleteAndIncompleteActions = useTrackTransientListItems(\n currentActionsRequired,\n )\n\n useEffect(() => {\n if (currentActionsRequired) {\n onNumberOfRequiredActionsChanged(currentActionsRequired.length)\n }\n }, [currentActionsRequired, onNumberOfRequiredActionsChanged])\n\n return (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n }}\n >\n {/* If no actions were ever required, show a message */}\n {!isLoading && allCompleteAndIncompleteActions.length === 0 && (\n <Typography\n variant={'body1Italic'}\n sx={{ p: 4, textAlign: 'center', color: 'grey.700' }}\n >\n All requirements have been met. No actions are required.\n </Typography>\n )}\n {allCompleteAndIncompleteActions.map((item, index) => (\n <ActionRequiredListItem\n key={index}\n action={item.action}\n count={item.count}\n onViewSharingSettingsClicked={onViewSharingSettingsClicked}\n />\n ))}\n {isLoading && times(3).map(k => <LoadingActionRequiredCard key={k} />)}\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;AA2BA,SAAgB,EACd,GACA;CACA,IAAM,EACJ,uBACA,iBACA,sCAAmC,GACnC,oCACE,GAIE,EAAE,MAAM,GAAwB,iBACpC,EAAmC,GAAoB,GAAc,EACnE,cAAc,GAChB,CAAC,GAGG,IAAkC,EACtC,CACF;CAQA,OANA,QAAgB;EACd,AAAI,KACF,EAAiC,EAAuB,MAAM;CAElE,GAAG,CAAC,GAAwB,CAAgC,CAAC,GAG3D,kBAAC,GAAD;EACE,IAAI;GACF,SAAS;GACT,eAAe;GACf,KAAK;EACP;YALF;GAQG,CAAC,KAAa,EAAgC,WAAW,KACxD,kBAAC,GAAD;IACE,SAAS;IACT,IAAI;KAAE,GAAG;KAAG,WAAW;KAAU,OAAO;IAAW;cACpD;GAEW,CAAA;GAEb,EAAgC,KAAK,GAAM,MAC1C,kBAAC,GAAD;IAEE,QAAQ,EAAK;IACb,OAAO,EAAK;IACkB;GAC/B,GAJM,CAIN,CACF;GACA,KAAa,EAAM,CAAC,EAAE,KAAI,MAAK,kBAAC,GAAD,CAAoC,GAAJ,CAAI,CAAC;EAClE;;AAET"}
1
+ {"version":3,"file":"TableQueryActionsRequired.js","names":[],"sources":["../../../src/components/DownloadCart/TableQueryActionsRequired.tsx"],"sourcesContent":["import { Box, Typography } from '@mui/material'\nimport {\n ColumnModel,\n QueryBundleRequest,\n} from '@sage-bionetworks/synapse-types'\nimport { noop, times } from 'lodash-es'\nimport { useEffect } from 'react'\nimport { useGetActionsRequiredForTableQuery } from '../../synapse-queries/entity/useActionsRequiredForTableQuery'\nimport useTrackTransientListItems from '../../utils/hooks/useTrackTransientListItems'\nimport { LoadingActionRequiredCard } from './ActionRequiredCard/ActionRequiredCard'\nimport { ActionRequiredListItem } from './ActionRequiredListItem'\n\nexport type TableQueryActionsRequiredProps = {\n /** The query request to use to select rows to check if actions are required. */\n queryBundleRequest: QueryBundleRequest\n /** The column models of the table */\n columnModels: ColumnModel[]\n /** Invoked when the number of required actions changes. Can be used to set UI state based on if all actions have been fulfilled */\n onNumberOfRequiredActionsChanged?: (actionsRequired: number) => void\n}\n\n/**\n * Displays an interactive list of actions required to take for a user to gain access to Synapse entities referenced in\n * a table query.\n */\nexport function TableQueryActionsRequired(\n props: TableQueryActionsRequiredProps,\n) {\n const {\n queryBundleRequest,\n columnModels,\n onNumberOfRequiredActionsChanged = noop,\n } = props\n\n // This component will track all completed actions, based on which actions are omitted from the ActionsRequiredResponse\n // as the user performs required tasks\n const { data: currentActionsRequired, isLoading } =\n useGetActionsRequiredForTableQuery(queryBundleRequest, columnModels, {\n throwOnError: true,\n })\n\n // PORTALS-2950 - Keep a record of actions that disappear from the server response - i.e. the 'completed' actions\n const allCompleteAndIncompleteActions = useTrackTransientListItems(\n currentActionsRequired,\n )\n\n useEffect(() => {\n if (currentActionsRequired) {\n onNumberOfRequiredActionsChanged(currentActionsRequired.length)\n }\n }, [currentActionsRequired, onNumberOfRequiredActionsChanged])\n\n return (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n }}\n >\n {/* If no actions were ever required, show a message */}\n {!isLoading && allCompleteAndIncompleteActions.length === 0 && (\n <Typography\n variant={'body1Italic'}\n sx={{ p: 4, textAlign: 'center', color: 'grey.700' }}\n >\n All requirements have been met. No actions are required.\n </Typography>\n )}\n {allCompleteAndIncompleteActions.map((item, index) => (\n <ActionRequiredListItem\n key={index}\n action={item.action}\n count={item.count}\n />\n ))}\n {isLoading && times(3).map(k => <LoadingActionRequiredCard key={k} />)}\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;AAyBA,SAAgB,EACd,GACA;CACA,IAAM,EACJ,uBACA,iBACA,sCAAmC,MACjC,GAIE,EAAE,MAAM,GAAwB,iBACpC,EAAmC,GAAoB,GAAc,EACnE,cAAc,GAChB,CAAC,GAGG,IAAkC,EACtC,CACF;CAQA,OANA,QAAgB;EACd,AAAI,KACF,EAAiC,EAAuB,MAAM;CAElE,GAAG,CAAC,GAAwB,CAAgC,CAAC,GAG3D,kBAAC,GAAD;EACE,IAAI;GACF,SAAS;GACT,eAAe;GACf,KAAK;EACP;YALF;GAQG,CAAC,KAAa,EAAgC,WAAW,KACxD,kBAAC,GAAD;IACE,SAAS;IACT,IAAI;KAAE,GAAG;KAAG,WAAW;KAAU,OAAO;IAAW;cACpD;GAEW,CAAA;GAEb,EAAgC,KAAK,GAAM,MAC1C,kBAAC,GAAD;IAEE,QAAQ,EAAK;IACb,OAAO,EAAK;GACb,GAHM,CAGN,CACF;GACA,KAAa,EAAM,CAAC,EAAE,KAAI,MAAK,kBAAC,GAAD,CAAoC,GAAJ,CAAI,CAAC;EAClE;;AAET"}
@@ -1,8 +1,7 @@
1
- import type { DownloadListActionsRequiredProps as DownloadCartPageProps } from './DownloadListActionsRequired';
2
1
  import { DownloadCartPage } from './DownloadCartPage';
3
2
  import { DownloadIneligibleForPackagingFilesFromListButton } from './DownloadIneligibleForPackagingFilesFromListButton';
4
3
  import type { DownloadIneligibleForPackagingFilesFromListButtonProps } from './DownloadIneligibleForPackagingFilesFromListButton';
5
4
  import ShowDownloadV2 from './ShowDownloadV2';
6
5
  import type { ShowDownloadV2Props } from './ShowDownloadV2';
7
- export { DownloadCartPage, DownloadCartPageProps, DownloadIneligibleForPackagingFilesFromListButton, DownloadIneligibleForPackagingFilesFromListButtonProps, ShowDownloadV2, ShowDownloadV2Props, };
6
+ export { DownloadCartPage, DownloadIneligibleForPackagingFilesFromListButton, DownloadIneligibleForPackagingFilesFromListButtonProps, ShowDownloadV2, ShowDownloadV2Props, };
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DownloadCart/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAA;AACvH,OAAO,KAAK,EAAE,sDAAsD,EAAE,MAAM,qDAAqD,CAAA;AACjI,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,iDAAiD,EACjD,sDAAsD,EACtD,cAAc,EACd,mBAAmB,GACpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DownloadCart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAA;AACvH,OAAO,KAAK,EAAE,sDAAsD,EAAE,MAAM,qDAAqD,CAAA;AACjI,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,OAAO,EACL,gBAAgB,EAChB,iDAAiD,EACjD,sDAAsD,EACtD,cAAc,EACd,mBAAmB,GACpB,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Visual style for a card's action buttons (Download/hosting, Cite As, Croissant,
3
+ * Share). `'button'` (default) renders the compact GenericCardActionButton look;
4
+ * `'chip'` renders pill-shaped chips (the hosting action becomes a colored Chip).
5
+ * Set per card configuration via `actionButtonStyle`.
6
+ */
7
+ export type CardActionButtonStyle = 'button' | 'chip';
8
+ export declare const CardActionButtonStyleContext: import("react").Context<CardActionButtonStyle>;
9
+ export declare function useCardActionButtonStyle(): CardActionButtonStyle;
10
+ //# sourceMappingURL=CardActionButtonStyleContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardActionButtonStyleContext.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/CardActionButtonStyleContext.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,CAAA;AAErD,eAAO,MAAM,4BAA4B,gDACO,CAAA;AAEhD,wBAAgB,wBAAwB,IAAI,qBAAqB,CAEhE"}
@@ -0,0 +1,10 @@
1
+ import { createContext as e, useContext as t } from "react";
2
+ //#region src/components/GenericCard/CardActionButtonStyleContext.tsx
3
+ var n = e("button");
4
+ function r() {
5
+ return t(n);
6
+ }
7
+ //#endregion
8
+ export { n as CardActionButtonStyleContext, r as useCardActionButtonStyle };
9
+
10
+ //# sourceMappingURL=CardActionButtonStyleContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardActionButtonStyleContext.js","names":[],"sources":["../../../src/components/GenericCard/CardActionButtonStyleContext.tsx"],"sourcesContent":["import { createContext, useContext } from 'react'\n\n/**\n * Visual style for a card's action buttons (Download/hosting, Cite As, Croissant,\n * Share). `'button'` (default) renders the compact GenericCardActionButton look;\n * `'chip'` renders pill-shaped chips (the hosting action becomes a colored Chip).\n * Set per card configuration via `actionButtonStyle`.\n */\nexport type CardActionButtonStyle = 'button' | 'chip'\n\nexport const CardActionButtonStyleContext =\n createContext<CardActionButtonStyle>('button')\n\nexport function useCardActionButtonStyle(): CardActionButtonStyle {\n return useContext(CardActionButtonStyleContext)\n}\n"],"mappings":";;AAUA,IAAa,IACX,EAAqC,QAAQ;AAE/C,SAAgB,IAAkD;CAChE,OAAO,EAAW,CAA4B;AAChD"}
@@ -3,52 +3,52 @@ import { duoRegistryUrl as t, resolveDuoTerm as n } from "./duoTerms.js";
3
3
  import r from "../../widgets/facet-nav/FacetValueChip.js";
4
4
  import { Box as i, Link as a } from "@mui/material";
5
5
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
6
- import l from "@mui/icons-material/ScienceOutlined";
7
- import u from "@mui/icons-material/MedicalServicesOutlined";
8
- import d from "@mui/icons-material/CoronavirusOutlined";
9
- import f from "@mui/icons-material/GroupsOutlined";
10
- import p from "@mui/icons-material/HealingOutlined";
11
- import m from "@mui/icons-material/LockOpenOutlined";
12
- import h from "@mui/icons-material/MoneyOffOutlined";
13
- import g from "@mui/icons-material/ArticleOutlined";
14
- import _ from "@mui/icons-material/HandshakeOutlined";
15
- import v from "@mui/icons-material/GavelOutlined";
16
- import y from "@mui/icons-material/ReplayOutlined";
17
- import b from "@mui/icons-material/FormatQuoteOutlined";
18
- import x from "@mui/icons-material/PersonOutlined";
19
- import S from "@mui/icons-material/AssignmentOutlined";
20
- import C from "@mui/icons-material/ApartmentOutlined";
21
- import w from "@mui/icons-material/PublicOutlined";
22
- import T from "@mui/icons-material/ScheduleOutlined";
23
- import E from "@mui/icons-material/HourglassEmptyOutlined";
24
- import D from "@mui/icons-material/BlockOutlined";
6
+ import l from "@mui/icons-material/PublicOutlined";
7
+ import u from "@mui/icons-material/BlockOutlined";
8
+ import d from "@mui/icons-material/ScienceOutlined";
9
+ import f from "@mui/icons-material/MedicalServicesOutlined";
10
+ import p from "@mui/icons-material/CoronavirusOutlined";
11
+ import m from "@mui/icons-material/GroupsOutlined";
12
+ import h from "@mui/icons-material/HealingOutlined";
13
+ import g from "@mui/icons-material/LockOpenOutlined";
14
+ import _ from "@mui/icons-material/MoneyOffOutlined";
15
+ import v from "@mui/icons-material/ArticleOutlined";
16
+ import y from "@mui/icons-material/HandshakeOutlined";
17
+ import b from "@mui/icons-material/GavelOutlined";
18
+ import x from "@mui/icons-material/ReplayOutlined";
19
+ import S from "@mui/icons-material/FormatQuoteOutlined";
20
+ import C from "@mui/icons-material/PersonOutlined";
21
+ import w from "@mui/icons-material/AssignmentOutlined";
22
+ import T from "@mui/icons-material/ApartmentOutlined";
23
+ import E from "@mui/icons-material/ScheduleOutlined";
24
+ import D from "@mui/icons-material/HourglassEmptyOutlined";
25
25
  import O from "@mui/icons-material/RuleOutlined";
26
26
  import k from "@mui/icons-material/HelpOutline";
27
27
  //#region src/components/GenericCard/DuoTermTags/DuoTermTags.tsx
28
28
  var A = {
29
- "DUO:0000042": l,
30
- "DUO:0000006": u,
31
- "DUO:0000007": d,
32
- "DUO:0000011": f,
33
- "DUO:0000043": p,
34
- "DUO:0000004": m,
35
- "DUO:0000046": h,
36
- "DUO:0000018": h,
37
- "DUO:0000045": h,
38
- "DUO:0000019": g,
39
- "DUO:0000020": _,
40
- "DUO:0000021": v,
41
- "DUO:0000029": y,
42
- DUOplus7: b,
43
- "DUO:0000026": x,
44
- "DUO:0000027": S,
45
- "DUO:0000028": C,
46
- "DUO:0000022": w,
47
- "DUO:0000025": T,
48
- "DUO:0000024": E,
29
+ "DUO:0000042": d,
30
+ "DUO:0000006": f,
31
+ "DUO:0000007": p,
32
+ "DUO:0000011": m,
33
+ "DUO:0000043": h,
34
+ "DUO:0000004": g,
35
+ "DUO:0000046": _,
36
+ "DUO:0000018": _,
37
+ "DUO:0000045": _,
38
+ "DUO:0000019": v,
39
+ "DUO:0000020": y,
40
+ "DUO:0000021": b,
41
+ "DUO:0000029": x,
42
+ DUOplus7: S,
43
+ "DUO:0000026": C,
44
+ "DUO:0000027": w,
45
+ "DUO:0000028": T,
46
+ "DUO:0000022": l,
47
+ "DUO:0000025": E,
48
+ "DUO:0000024": D,
49
49
  "DUO:0000016": e,
50
- "DUO:0000015": D,
51
- "DUO:0000044": D,
50
+ "DUO:0000015": u,
51
+ "DUO:0000044": u,
52
52
  "DUO:0000012": O
53
53
  }, j = (e) => {
54
54
  let { term: t } = e;
@@ -1,4 +1,9 @@
1
1
  import { Button } from '@mui/material';
2
+ /**
3
+ * Action button used across a card's action area (Cite As, Croissant, Share,
4
+ * Download). Its shape follows the nearest `CardActionButtonStyleContext`:
5
+ * compact by default, or pill-shaped when the card opts into `'chip'`.
6
+ */
2
7
  declare const GenericCardActionButton: typeof Button;
3
8
  export default GenericCardActionButton;
4
9
  //# sourceMappingURL=GenericCardActionButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericCardActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAGtC,QAAA,MAAM,uBAAuB,EAOvB,OAAO,MAAM,CAAA;AAEnB,eAAe,uBAAuB,CAAA"}
1
+ {"version":3,"file":"GenericCardActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAsCtC;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,EAOvB,OAAO,MAAM,CAAA;AAEnB,eAAe,uBAAuB,CAAA"}
@@ -1,18 +1,35 @@
1
- import { Button as e } from "@mui/material";
2
- import { styled as t } from "@mui/system";
1
+ import { useCardActionButtonStyle as e } from "./CardActionButtonStyleContext.js";
2
+ import { Button as t } from "@mui/material";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { styled as r } from "@mui/system";
3
5
  //#region src/components/GenericCard/GenericCardActionButton.tsx
4
- var n = t(e)({
5
- height: "20px",
6
- padding: "2px 8px",
6
+ var i = { "& .MuiButton-startIcon": {
7
+ marginRight: "4px",
8
+ marginLeft: 0
9
+ } }, a = "28px", o = "32px", s = r(t)({
10
+ height: a,
11
+ minHeight: a,
12
+ padding: "0 8px",
7
13
  borderColor: "grey.400",
8
14
  fontWeight: 700,
9
15
  lineHeight: "20px",
10
- "& .MuiButton-startIcon": {
11
- marginRight: "4px",
12
- marginLeft: 0
13
- }
14
- });
16
+ whiteSpace: "nowrap",
17
+ ...i
18
+ }), c = r(t)({
19
+ height: o,
20
+ minHeight: o,
21
+ borderRadius: "16px",
22
+ padding: "0 12px",
23
+ borderColor: "grey.400",
24
+ fontWeight: 700,
25
+ lineHeight: "20px",
26
+ whiteSpace: "nowrap",
27
+ ...i
28
+ }), l = (({ ref: t, ...r }) => /* @__PURE__ */ n(e() === "chip" ? c : s, {
29
+ ref: t,
30
+ ...r
31
+ }));
15
32
  //#endregion
16
- export { n as default };
33
+ export { l as default };
17
34
 
18
35
  //# sourceMappingURL=GenericCardActionButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericCardActionButton.js","names":[],"sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"sourcesContent":["import { Button } from '@mui/material'\nimport { styled } from '@mui/system'\n\nconst GenericCardActionButton = styled(Button)({\n height: '20px',\n padding: '2px 8px',\n borderColor: 'grey.400',\n fontWeight: 700,\n lineHeight: '20px',\n '& .MuiButton-startIcon': { marginRight: '4px', marginLeft: 0 },\n}) as typeof Button\n\nexport default GenericCardActionButton\n"],"mappings":";;;AAGA,IAAM,IAA0B,EAAO,CAAM,EAAE;CAC7C,QAAQ;CACR,SAAS;CACT,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,0BAA0B;EAAE,aAAa;EAAO,YAAY;CAAE;AAChE,CAAC"}
1
+ {"version":3,"file":"GenericCardActionButton.js","names":[],"sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"sourcesContent":["import { Button } from '@mui/material'\nimport { styled } from '@mui/system'\nimport { useCardActionButtonStyle } from './CardActionButtonStyleContext'\n\nconst startIconStyle = {\n '& .MuiButton-startIcon': { marginRight: '4px', marginLeft: 0 },\n}\n\n// Enforced fixed heights (height + minHeight + border-box) so every action button\n// is the same height regardless of its icon size or label, with content centered.\nconst COMPACT_HEIGHT = '28px'\nconst PILL_HEIGHT = '32px'\n\n/** The default compact style. */\nconst CompactButton = styled(Button)({\n height: COMPACT_HEIGHT,\n minHeight: COMPACT_HEIGHT,\n padding: '0 8px',\n borderColor: 'grey.400',\n fontWeight: 700,\n lineHeight: '20px',\n whiteSpace: 'nowrap',\n ...startIconStyle,\n})\n\n/** Pill style, used when actionButtonStyle === 'chip'. */\nconst PillButton = styled(Button)({\n height: PILL_HEIGHT,\n minHeight: PILL_HEIGHT,\n borderRadius: '16px',\n padding: '0 12px',\n borderColor: 'grey.400',\n fontWeight: 700,\n lineHeight: '20px',\n whiteSpace: 'nowrap',\n ...startIconStyle,\n})\n\n/**\n * Action button used across a card's action area (Cite As, Croissant, Share,\n * Download). Its shape follows the nearest `CardActionButtonStyleContext`:\n * compact by default, or pill-shaped when the card opts into `'chip'`.\n */\nconst GenericCardActionButton = (({\n ref,\n ...props\n}: React.ComponentPropsWithRef<typeof Button>) => {\n const Styled =\n useCardActionButtonStyle() === 'chip' ? PillButton : CompactButton\n return <Styled ref={ref} {...props} />\n}) as typeof Button\n\nexport default GenericCardActionButton\n"],"mappings":";;;;;AAIA,IAAM,IAAiB,EACrB,0BAA0B;CAAE,aAAa;CAAO,YAAY;AAAE,EAChE,GAIM,IAAiB,QACjB,IAAc,QAGd,IAAgB,EAAO,CAAM,EAAE;CACnC,QAAQ;CACR,WAAW;CACX,SAAS;CACT,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,GAAG;AACL,CAAC,GAGK,IAAa,EAAO,CAAM,EAAE;CAChC,QAAQ;CACR,WAAW;CACX,cAAc;CACd,SAAS;CACT,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,GAAG;AACL,CAAC,GAOK,MAA4B,EAChC,QACA,GAAG,QAII,kBADL,EAAyB,MAAM,SAAS,IAAa,GAChD;CAAa;CAAK,GAAI;AAAQ,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { CommonCardProps } from '@/components/CardContainer/CardConfiguration';
2
2
  import { ColumnModel, SelectColumn } from '@sage-bionetworks/synapse-types';
3
3
  import React from 'react';
4
+ import { type DatasetHostingType } from '../DatasetHosting/DatasetHosting';
4
5
  import { HeaderCardVariant } from '../HeaderCard';
5
6
  import { ShareThisPageProps } from '../ShareThisPage/ShareThisPage';
6
7
  import { SustainabilityScorecardProps } from '../SustainabilityScorecard/SustainabilityScorecard';
@@ -93,6 +94,29 @@ export type TableToGenericCardMapping = {
93
94
  synapseEntityConfig?: SynapseEntityConfig;
94
95
  /** The column name whose data contains a synId that can be used to show a button to add the corresponding entity to the download cart. */
95
96
  downloadCartSynId?: string;
97
+ /**
98
+ * Opt-in configuration for hosting-aware download/access. When `hostingColumn`
99
+ * is provided, the card's primary action becomes a `DatasetDownloadButton` driven
100
+ * by the row's hosting value: downloadable hosting types show the standard dataset
101
+ * download options, while non-downloadable types (e.g. external-access) swap to a
102
+ * link to the external repository instead. Other portals that don't set this
103
+ * are unaffected.
104
+ */
105
+ hostingConfig?: {
106
+ /** Column holding the hosting type. Blank/unknown → `synapse`. */
107
+ hostingColumn: string;
108
+ /**
109
+ * Optional map from the column's raw values to hosting types, for columns that
110
+ * use portal-specific labels rather than the canonical vocabulary (e.g. CCKP's
111
+ * `downloadType`: "Synapse Indexed" → `external-download`). Values not in the
112
+ * map fall back to `normalizeHosting` (canonical value, or → `synapse`).
113
+ */
114
+ hostingValueMap?: Record<string, DatasetHostingType>;
115
+ /** Column holding the free-text external repository name (e.g. "GEO", "dbGaP"). */
116
+ repositoryColumn?: string;
117
+ /** Column holding the external URL used for non-downloadable (external-access) datasets. */
118
+ externalUrlColumn?: string;
119
+ };
96
120
  /** Configuration to display a DOI, as well as the ability to create one for users with such permission */
97
121
  portalDoiConfiguration?: PortalDOIConfiguration;
98
122
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"TableRowGenericCard.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/TableRowGenericCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AA2B9E,OAAO,EACL,WAAW,EAGX,YAAY,EAEb,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAyC,MAAM,OAAO,CAAA;AAI7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAIjD,OAAsB,EACpB,kBAAkB,EACnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAA;AAKjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAI3E,KAAK,sBAAsB,GAAG;IAC5B,4DAA4D;IAC5D,EAAE,EAAE;QACF,MAAM,EAAE,OAAO,CAAA;KAChB,CAAA;IACD,2FAA2F;IAC3F,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,kBAAkB,CAAA;KAC3B,CAAA;CACF,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,2DAA2D;IAC3D,EAAE,EAAE;QACF,MAAM,EAAE,QAAQ,CAAA;QAChB,UAAU,EA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;IAC7C,mHAAmH;IACnH,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC9B,IAAI,EAAE,MAAM,EAAE,CAAA;KACf,CAAC,CAAA;CACH,GAAG,eAAe,CAAA;AAmBnB;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CA6dlE;AAED,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"TableRowGenericCard.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/TableRowGenericCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AA8B9E,OAAO,EACL,WAAW,EAGX,YAAY,EAEb,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAiD,MAAM,OAAO,CAAA;AAGrE,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,kCAAkC,CAAA;AAGzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAIjD,OAAsB,EACpB,kBAAkB,EACnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAA;AAMjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAI3E,KAAK,sBAAsB,GAAG;IAC5B,4DAA4D;IAC5D,EAAE,EAAE;QACF,MAAM,EAAE,OAAO,CAAA;KAChB,CAAA;IACD,2FAA2F;IAC3F,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,kBAAkB,CAAA;KAC3B,CAAA;CACF,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,2DAA2D;IAC3D,EAAE,EAAE;QACF,MAAM,EAAE,QAAQ,CAAA;QAChB,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,gEAAgE;IAChE,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,QAAQ,CAAA;QAChB,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