synapse-react-client 4.0.6 → 4.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SWC.index.js +1 -1
- package/dist/components/CardDeck/TableQueryCardDeck.js +3 -4
- package/dist/components/CardDeck/TableQueryCardDeck.js.map +1 -1
- package/dist/components/ChangePassword/useChangePasswordFormState.js +2 -3
- package/dist/components/ChangePassword/useChangePasswordFormState.js.map +1 -1
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.css +1 -0
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.d.ts +8 -0
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.d.ts.map +1 -0
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.js +21 -0
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.js.map +1 -0
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.module.scss +32 -0
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.module.scss.js +14 -0
- package/dist/components/ColoredBulletListItem/ColoredBulletListItem.module.scss.js.map +1 -0
- package/dist/components/ColoredBulletListItem/index.d.ts +5 -0
- package/dist/components/ColoredBulletListItem/index.d.ts.map +1 -0
- package/dist/components/ColoredBulletListItem/index.js +6 -0
- package/dist/components/ColoredBulletListItem/index.js.map +1 -0
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +3 -4
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
- package/dist/components/CreateProjectModal/CreateProjectModal.d.ts.map +1 -1
- package/dist/components/CreateProjectModal/CreateProjectModal.js +120 -46
- package/dist/components/CreateProjectModal/CreateProjectModal.js.map +1 -1
- package/dist/components/CreateProjectModal/ProjectVisibilityRadioGroup.d.ts +7 -0
- package/dist/components/CreateProjectModal/ProjectVisibilityRadioGroup.d.ts.map +1 -0
- package/dist/components/CreateProjectModal/ProjectVisibilityRadioGroup.js +132 -0
- package/dist/components/CreateProjectModal/ProjectVisibilityRadioGroup.js.map +1 -0
- package/dist/components/DataGrid/DataGrid.d.ts +2 -0
- package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/DataGrid.js +69 -67
- package/dist/components/DataGrid/DataGrid.js.map +1 -1
- package/dist/components/DataGrid/DataGridTypes.d.ts +8 -2
- package/dist/components/DataGrid/DataGridTypes.d.ts.map +1 -1
- package/dist/components/DataGrid/DataGridTypes.js.map +1 -1
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.js +2 -3
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.js.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +184 -164
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/components/UploadCsvToGridDialog.js +2 -3
- package/dist/components/DataGrid/components/UploadCsvToGridDialog.js.map +1 -1
- package/dist/components/DataGrid/hooks/useGridReplicaUsers.d.ts +15 -0
- package/dist/components/DataGrid/hooks/useGridReplicaUsers.d.ts.map +1 -0
- package/dist/components/DataGrid/hooks/useGridReplicaUsers.js +55 -0
- package/dist/components/DataGrid/hooks/useGridReplicaUsers.js.map +1 -0
- package/dist/components/DataGrid/hooks/useRemoteSelections.d.ts +16 -0
- package/dist/components/DataGrid/hooks/useRemoteSelections.d.ts.map +1 -0
- package/dist/components/DataGrid/hooks/useRemoteSelections.js +30 -0
- package/dist/components/DataGrid/hooks/useRemoteSelections.js.map +1 -0
- package/dist/components/DataGrid/utils/DataGridUtils.js +31 -31
- package/dist/components/DataGrid/utils/DataGridUtils.js.map +1 -1
- package/dist/components/DataGrid/utils/applyModelChange.d.ts +1 -1
- package/dist/components/DataGrid/utils/applyModelChange.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/applyModelChange.js +28 -23
- package/dist/components/DataGrid/utils/applyModelChange.js.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.js +90 -49
- package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
- package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.d.ts +14 -0
- package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.js +24 -0
- package/dist/components/DataGrid/utils/enrichRowsWithChangeInfo.js.map +1 -0
- package/dist/components/DataGrid/utils/getCellAuthorSid.d.ts +7 -0
- package/dist/components/DataGrid/utils/getCellAuthorSid.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/getCellAuthorSid.js +11 -0
- package/dist/components/DataGrid/utils/getCellAuthorSid.js.map +1 -0
- package/dist/components/DataGrid/utils/getCellClassName.d.ts +2 -0
- package/dist/components/DataGrid/utils/getCellClassName.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/getCellClassName.js +23 -12
- package/dist/components/DataGrid/utils/getCellClassName.js.map +1 -1
- package/dist/components/DataGrid/utils/getChangeTooltipText.d.ts +7 -0
- package/dist/components/DataGrid/utils/getChangeTooltipText.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/getChangeTooltipText.js +18 -0
- package/dist/components/DataGrid/utils/getChangeTooltipText.js.map +1 -0
- package/dist/components/DataGrid/utils/getReplicaCategory.d.ts +12 -0
- package/dist/components/DataGrid/utils/getReplicaCategory.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/getReplicaCategory.js +13 -0
- package/dist/components/DataGrid/utils/getReplicaCategory.js.map +1 -0
- package/dist/components/DataGrid/utils/replicaSelectionToGridSelection.d.ts +15 -0
- package/dist/components/DataGrid/utils/replicaSelectionToGridSelection.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/replicaSelectionToGridSelection.js +43 -0
- package/dist/components/DataGrid/utils/replicaSelectionToGridSelection.js.map +1 -0
- package/dist/components/DialogBase.d.ts +3 -1
- package/dist/components/DialogBase.d.ts.map +1 -1
- package/dist/components/DialogBase.js +75 -56
- package/dist/components/DialogBase.js.map +1 -1
- package/dist/components/Ecosystem/EcosystemSkeleton.js +2 -3
- package/dist/components/Ecosystem/EcosystemSkeleton.js.map +1 -1
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.js +2 -3
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.js.map +1 -1
- package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js +2 -3
- package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js.map +1 -1
- package/dist/components/GenericCard/GenericCard.js +3 -4
- package/dist/components/GenericCard/GenericCard.js.map +1 -1
- package/dist/components/HeaderCard.js +2 -3
- package/dist/components/HeaderCard.js.map +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
- package/dist/components/IconSvg/IconSvg.js +168 -165
- package/dist/components/IconSvg/IconSvg.js.map +1 -1
- package/dist/components/StorybookComponentWrapper.js +3 -4
- package/dist/components/StorybookComponentWrapper.js.map +1 -1
- package/dist/components/SynapseForm/SynapseFormSubmissionGrid.d.ts +1 -0
- package/dist/components/SynapseForm/SynapseFormSubmissionGrid.d.ts.map +1 -1
- package/dist/components/SynapseForm/SynapseFormSubmissionGrid.js +23 -16
- package/dist/components/SynapseForm/SynapseFormSubmissionGrid.js.map +1 -1
- package/dist/components/TextField/TextField.css +1 -1
- package/dist/components/TextField/TextField.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/components/TextField/TextField.js +32 -20
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.module.scss +7 -0
- package/dist/components/TextField/TextField.module.scss.js +5 -3
- package/dist/components/TextField/TextField.module.scss.js.map +1 -1
- package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js +2 -3
- package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +242 -240
- package/dist/components/index.js.map +1 -1
- package/dist/components/styled/StyledFormControl.js +1 -1
- package/dist/components/styled/StyledFormControl.js.map +1 -1
- package/dist/components/table/CsvPreview/CsvPreview.js +2 -3
- package/dist/components/table/CsvPreview/CsvPreview.js.map +1 -1
- package/dist/components/table/CsvPreview/CsvPreviewDialog.js +2 -3
- package/dist/components/table/CsvPreview/CsvPreviewDialog.js.map +1 -1
- package/dist/features/curator/GridPage/GridPage.js +2 -3
- package/dist/features/curator/GridPage/GridPage.js.map +1 -1
- package/dist/features/curator/GridPage/components/GridPageTitle.js +2 -3
- package/dist/features/curator/GridPage/components/GridPageTitle.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js +49 -180
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js +2 -3
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.js +4 -8
- package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.js.map +1 -1
- package/dist/index.js +306 -304
- package/dist/index.js.map +1 -1
- package/dist/style/components/_data-grid-extra.css +1 -1
- package/dist/style/components/_data-grid-extra.scss +49 -0
- package/dist/synapse-client/SynapseClient.d.ts +1 -1
- package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
- package/dist/synapse-client/SynapseClient.js +3 -2
- package/dist/synapse-client/SynapseClient.js.map +1 -1
- package/dist/synapse-queries/index.js +42 -41
- package/dist/synapse-queries/user/index.js +17 -16
- package/dist/synapse-queries/user/useUserBundle.d.ts +9 -0
- package/dist/synapse-queries/user/useUserBundle.d.ts.map +1 -1
- package/dist/synapse-queries/user/useUserBundle.js +45 -37
- package/dist/synapse-queries/user/useUserBundle.js.map +1 -1
- package/dist/theme/palette/Palettes.d.ts +2 -0
- package/dist/theme/palette/Palettes.d.ts.map +1 -1
- package/dist/theme/palette/Palettes.js +46 -40
- package/dist/theme/palette/Palettes.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/assets/ArcusBioIcon.svg +0 -1
- package/dist/assets/ArcusBioIcon.svg.js +0 -7
- package/dist/assets/ArcusBioIcon.svg.js.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -13,8 +13,8 @@ import { CardContainer as D } from "./CardContainer/CardContainer.js";
|
|
|
13
13
|
import { CardContainerLogic as w } from "./CardContainerLogic/CardContainerLogic.js";
|
|
14
14
|
import { default as k } from "./CardGridWithLinks/CardGridWithLinks.js";
|
|
15
15
|
import { default as v } from "./RowDataTable/RowDataTable.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
16
|
+
import { default as B } from "./RowDataTable/RowDataTableWithQuery.js";
|
|
17
|
+
import { default as O } from "./CertificationQuiz/CertificationQuiz.js";
|
|
18
18
|
import { ChallengeDetailPage as Q } from "./ChallengeDetailPage/ChallengeDetailPage.js";
|
|
19
19
|
import { ChallengeDataDownload as W } from "./ChallengeDataDownload/ChallengeDataDownload.js";
|
|
20
20
|
import { default as _ } from "./ChallengeSubmission/AvailableEvaluationQueueList.js";
|
|
@@ -24,271 +24,273 @@ import { default as Y } from "./ChangePassword/ChangePasswordWithToken.js";
|
|
|
24
24
|
import { ConfirmationDialog as Z } from "./ConfirmationDialog/ConfirmationDialog.js";
|
|
25
25
|
import { default as $ } from "./CookiesNotification/CookiesNotification.js";
|
|
26
26
|
import { default as ro } from "./CookiesNotification/CookiePreferencesDialog.js";
|
|
27
|
-
import { default as to } from "./
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { default as uo } from "./DynamicForm/
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import { default as hr } from "./
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import { default as de } from "./QueryWrapperPlotNav/
|
|
79
|
-
import { default as ce } from "./
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import { default as $e } from "./
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import { default as ct } from "./
|
|
106
|
-
import { default as Pt } from "./
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import { default as It } from "./
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import { default as Xt } from "./
|
|
124
|
-
import { default as oa } from "./
|
|
125
|
-
import { default as ea } from "./
|
|
126
|
-
import { default as aa } from "./
|
|
127
|
-
import { default as pa } from "./
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import { default as ga } from "./
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
27
|
+
import { default as to } from "./ColoredBulletListItem/ColoredBulletListItem.js";
|
|
28
|
+
import { default as fo } from "./CTASectionWrapper/CTASectionWrapper.js";
|
|
29
|
+
import { DownloadCartPage as mo } from "./DownloadCart/DownloadCartPage.js";
|
|
30
|
+
import { DownloadIneligibleForPackagingFilesFromListButton as no } from "./DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js";
|
|
31
|
+
import { ShowDownloadV2 as xo } from "./DownloadCart/ShowDownloadV2.js";
|
|
32
|
+
import { default as uo } from "./DynamicForm/DynamicForm.js";
|
|
33
|
+
import { default as Co } from "./DynamicForm/DynamicFormModal.js";
|
|
34
|
+
import { EntityBadgeIcons as go } from "./EntityBadgeIcons/EntityBadgeIcons.js";
|
|
35
|
+
import { EntityDownloadConfirmation as yo } from "./EntityDownloadConfirmation/EntityDownloadConfirmation.js";
|
|
36
|
+
import { EntityFinder as To } from "./EntityFinder/EntityFinder.js";
|
|
37
|
+
import { EntityForm as Lo } from "./EntityForm/EntityForm.js";
|
|
38
|
+
import { ClientError as Ao, EmptyFallbackComponent as Do, ErrorBanner as Ro, ErrorFallbackComponent as wo, SignInPrompt as bo, SynapseErrorBoundary as ko, TableRowFallbackComponent as Io, YOU_ARE_NOT_AUTHORIZED_MESSAGE as vo } from "./error/ErrorBanner.js";
|
|
39
|
+
import { EvaluationCard as Bo } from "./Evaluation/EvaluationCard.js";
|
|
40
|
+
import { EvaluationEditorPage as Oo } from "./Evaluation/EvaluationEditorPage.js";
|
|
41
|
+
import { default as Qo } from "./ExperimentalMode/ExperimentalMode.js";
|
|
42
|
+
import { ExternalFileHandleLink as Wo } from "./ExternalFileHandleLink/ExternalFileHandleLink.js";
|
|
43
|
+
import { FileUpload as _o } from "./FileUpload/FileUpload.js";
|
|
44
|
+
import { default as jo } from "./FeaturedDataTabs/FeaturedDataTabs.js";
|
|
45
|
+
import { FeaturedToolsList as zo } from "./FeaturedToolsList/FeaturedToolsList.js";
|
|
46
|
+
import { DiscussionThread as Yo } from "./Forum/DiscussionThread.js";
|
|
47
|
+
import { ForumPage as Zo } from "./Forum/ForumPage.js";
|
|
48
|
+
import { default as $o } from "./FullWidthAlert/FullWidthAlert.js";
|
|
49
|
+
import { SynapseCardLabel as rr } from "./GenericCard/SynapseCardLabel.js";
|
|
50
|
+
import { GenericCard as tr } from "./GenericCard/GenericCard.js";
|
|
51
|
+
import { CARD_SHORT_DESCRIPTION_CSS as fr, LongDescription as pr, ShortDescription as mr } from "./GenericCard/CollapsibleDescription.js";
|
|
52
|
+
import { getFileHandleAssociation as nr, getLinkParams as sr, getValueOrMultiValue as xr } from "./GenericCard/CardUtils.js";
|
|
53
|
+
import { Goals as dr } from "./Goals/Goals.js";
|
|
54
|
+
import { GoalsV2 as cr } from "./GoalsV2/GoalsV2.js";
|
|
55
|
+
import { default as Pr } from "./GoalsV3/GoalsV3.js";
|
|
56
|
+
import { GoogleAnalytics as Sr } from "./GoogleAnalytics/GoogleAnalytics.js";
|
|
57
|
+
import { default as Fr } from "./GoogleMap/GoogleMap.js";
|
|
58
|
+
import { HasAccessV2 as Er } from "./HasAccess/HasAccessV2.js";
|
|
59
|
+
import { default as hr } from "./Icon/Icon.js";
|
|
60
|
+
import { default as Dr } from "./IconSvg/IconSvg.js";
|
|
61
|
+
import { MarkdownCollapse as wr } from "./Markdown/MarkdownCollapse.js";
|
|
62
|
+
import { MarkdownEditor as kr } from "./Markdown/MarkdownEditor.js";
|
|
63
|
+
import { MarkdownGithubLatestTag as vr } from "./Markdown/MarkdownGithub.js";
|
|
64
|
+
import { ModalDownload as Br } from "./ModalDownload/ModalDownload.js";
|
|
65
|
+
import { OAuthManagement as Or } from "./OAuthClientManagement/OAuthManagement.js";
|
|
66
|
+
import { ORIENTATION_BANNER_KEYS as Qr, default as Ur } from "./OrientationBanner/OrientationBanner.js";
|
|
67
|
+
import { ThemesPlot as Nr } from "./Plot/ThemesPlot.js";
|
|
68
|
+
import { UpsetPlot as Vr } from "./Plot/UpsetPlot.js";
|
|
69
|
+
import { SynapsePlot as qr } from "./Plot/SynapsePlot.js";
|
|
70
|
+
import { Programs as Jr } from "./Programs/Programs.js";
|
|
71
|
+
import { ProgrammaticTableDownload as Kr } from "./ProgrammaticTableDownload/ProgrammaticTableDownload.js";
|
|
72
|
+
import { default as Xr } from "./ProvenanceGraph/ProvenanceGraph.js";
|
|
73
|
+
import { ProjectDataAvailability as oe } from "./ProjectStorage/ProjectDataAvailability.js";
|
|
74
|
+
import { QueryContext as ee, QueryContextConsumer as te, QueryContextProvider as ae, useQueryContext as fe } from "./QueryContext/QueryContext.js";
|
|
75
|
+
import { QueryCount as me } from "./QueryCount/QueryCount.js";
|
|
76
|
+
import { generateEncodedPathAndQueryForSelectedFacetURL as ne } from "./QueryWrapper/generateEncodedPathAndQueryForSelectedFacetURL.js";
|
|
77
|
+
import { QueryWrapper as xe } from "./QueryWrapper/QueryWrapper.js";
|
|
78
|
+
import { default as de } from "./QueryWrapperPlotNav/QueryWrapperPlotNav.js";
|
|
79
|
+
import { default as ce } from "./QueryWrapperPlotNav/QueryWrapperSynapsePlot.js";
|
|
80
|
+
import { default as Pe } from "./RegisterPageLogoutPrompt/RegisterPageLogoutPrompt.js";
|
|
81
|
+
import { RenderIfInView as Se } from "./RenderIfInView/RenderIfInView.js";
|
|
82
|
+
import { Resources as Fe } from "./Resources/Resources.js";
|
|
83
|
+
import { AccessRequirementAclEditor as Ee } from "./AccessRequirementAclEditor/AccessRequirementAclEditor.js";
|
|
84
|
+
import { RssFeedCards as he } from "./RssFeedCards/RssFeedCards.js";
|
|
85
|
+
import { default as De } from "./ShowMore/ShowMore.js";
|
|
86
|
+
import { SkeletonButton as we } from "./Skeleton/SkeletonButton.js";
|
|
87
|
+
import { SkeletonInlineBlock as ke } from "./Skeleton/SkeletonInlineBlock.js";
|
|
88
|
+
import { SkeletonTable as ve } from "./Skeleton/SkeletonTable.js";
|
|
89
|
+
import { SkeletonParagraph as Be } from "./Skeleton/SkeletonParagraph.js";
|
|
90
|
+
import { default as Oe } from "./StandaloneQueryWrapper/StandaloneQueryWrapper.js";
|
|
91
|
+
import { LeftRightPanel as Qe, StyledInnerContainer as Ue, StyledOuterContainer as We } from "./styled/LeftRightPanel.js";
|
|
92
|
+
import { LightTooltip as _e } from "./styled/LightTooltip.js";
|
|
93
|
+
import { StyledFormControl as je } from "./styled/StyledFormControl.js";
|
|
94
|
+
import { WideButton as ze } from "./styled/WideButton.js";
|
|
95
|
+
import { InputSizedButton as Ye } from "./styled/InputSizedButton.js";
|
|
96
|
+
import { HoverPopover as Ze } from "./styled/HoverPopover.js";
|
|
97
|
+
import { default as $e } from "./SubscriptionPage/SubscriptionPage.js";
|
|
98
|
+
import { default as rt } from "./SubsectionRowRenderer/SubsectionRowRenderer.js";
|
|
99
|
+
import { SynapseFormWrapper as tt } from "./SynapseForm/SynapseFormWrapper.js";
|
|
100
|
+
import { SynapseFormSubmissionGrid as ft } from "./SynapseForm/SynapseFormSubmissionGrid.js";
|
|
101
|
+
import { SynapseTable as mt } from "./SynapseTable/SynapseTable.js";
|
|
102
|
+
import { SynapseChat as nt } from "./SynapseChat/SynapseChat.js";
|
|
103
|
+
import { SynapsePortalChatDialog as xt } from "./SynapseChat/SynapsePortalChatDialog.js";
|
|
104
|
+
import { SystemUseNotification as dt } from "./SystemUseNotification/SystemUseNotification.js";
|
|
105
|
+
import { default as ct } from "./TableFeedCards/TableFeedCards.js";
|
|
106
|
+
import { default as Pt } from "./TermsAndConditions/TermsAndConditions.js";
|
|
107
|
+
import { default as St } from "./TextField/TextField.js";
|
|
108
|
+
import { TimelinePlot as Ft } from "./TimelinePlot/TimelinePlot.js";
|
|
109
|
+
import { SynapseToastContainer as Et, displayToast as Lt } from "./ToastMessage/ToastMessage.js";
|
|
110
|
+
import { UserCard as At } from "./UserCard/UserCard.js";
|
|
111
|
+
import { UserCardList as Rt } from "./UserCardList/UserCardList.js";
|
|
112
|
+
import { UserCardListRotate as bt } from "./UserCardList/UserCardListRotate.js";
|
|
113
|
+
import { default as It } from "./UserCardList/UserCardListGroups/UserCardListGroups.js";
|
|
114
|
+
import { default as Mt } from "./UserOrTeamBadge/UserOrTeamBadge.js";
|
|
115
|
+
import { UserProfileLinks as Ht } from "./UserProfileLinks/UserProfileLinks.js";
|
|
116
|
+
import { EntityHeaderTable as Gt } from "./EntityHeaderTable/EntityHeaderTable.js";
|
|
117
|
+
import { AccessRequirementRelatedProjectsList as Ut } from "./AccessRequirementRelatedProjectsList/AccessRequirementRelatedProjectsList.js";
|
|
118
|
+
import { HelpPopover as Nt } from "./HelpPopover/HelpPopover.js";
|
|
119
|
+
import { MuiContainer as Vt } from "./MuiContainer.js";
|
|
120
|
+
import { JsonLdScript as qt } from "./JsonLdScript.js";
|
|
121
|
+
import { DatasetJsonLdScript as Jt } from "./DatasetJsonLdScript.js";
|
|
122
|
+
import { SageResourcesPopover as Kt } from "./SageResourcesPopover/SageResourcesPopover.js";
|
|
123
|
+
import { default as Xt } from "./RecentPublicationsGrid/RecentPublicationsGrid.js";
|
|
124
|
+
import { default as oa } from "./ImageCardGridWithLinks/ImageCardGridWithLinks.js";
|
|
125
|
+
import { default as ea } from "./PortalFeatureHighlights/PortalFeatureHighlights.js";
|
|
126
|
+
import { default as aa } from "./FeaturedResearch/FeaturedResearch.js";
|
|
127
|
+
import { default as pa } from "./PortalHomePageHeader/PortalHomePageHeader.js";
|
|
128
|
+
import { default as la } from "./PortalFeaturedPartners/PortalFeaturedPartners.js";
|
|
129
|
+
import { PortalList as sa } from "./PortalList/PortalList.js";
|
|
130
|
+
import { PortalCard as ia } from "./PortalList/PortalCard.js";
|
|
131
|
+
import { CreatePortalModal as ua } from "./PortalList/CreatePortalModal.js";
|
|
132
|
+
import { PortalAclEditor as Ca } from "./PortalAclEditor/PortalAclEditor.js";
|
|
133
|
+
import { default as ga } from "./PortalAclEditor/PortalAclEditorModal.js";
|
|
134
|
+
import { default as ya } from "./PortalSectionHeader/PortalSectionHeader.js";
|
|
135
|
+
import { visuallyHidden as Ta } from "./SynapseHomepageV2/HomepageStyles.js";
|
|
136
|
+
import { Project as La } from "../assets/themed_icons/Project.js";
|
|
136
137
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
Ee as AccessRequirementAclEditor,
|
|
139
|
+
Ut as AccessRequirementRelatedProjectsList,
|
|
139
140
|
m as AccessTokenPage,
|
|
140
141
|
n as AccountLevelBadges,
|
|
141
142
|
_ as AvailableEvaluationQueueList,
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
fr as CARD_SHORT_DESCRIPTION_CSS,
|
|
144
|
+
fo as CTASectionWrapper,
|
|
144
145
|
D as CardContainer,
|
|
145
146
|
w as CardContainerLogic,
|
|
146
147
|
k as CardGridWithLinks,
|
|
147
|
-
|
|
148
|
+
O as CertificationQuiz,
|
|
148
149
|
W as ChallengeDataDownload,
|
|
149
150
|
Q as ChallengeDetailPage,
|
|
150
151
|
j as ChallengeSubmission,
|
|
151
152
|
z as ChangePassword,
|
|
152
153
|
Y as ChangePasswordWithToken,
|
|
153
|
-
|
|
154
|
+
Ao as ClientError,
|
|
155
|
+
to as ColoredBulletListItem,
|
|
154
156
|
Z as ConfirmationDialog,
|
|
155
157
|
ro as CookiePreferencesDialog,
|
|
156
158
|
$ as CookiesNotification,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
159
|
+
ua as CreatePortalModal,
|
|
160
|
+
Jt as DatasetJsonLdScript,
|
|
161
|
+
Yo as DiscussionThread,
|
|
162
|
+
mo as DownloadCartPage,
|
|
163
|
+
no as DownloadIneligibleForPackagingFilesFromListButton,
|
|
164
|
+
uo as DynamicForm,
|
|
165
|
+
Co as DynamicFormModal,
|
|
166
|
+
Do as EmptyFallbackComponent,
|
|
167
|
+
go as EntityBadgeIcons,
|
|
168
|
+
yo as EntityDownloadConfirmation,
|
|
169
|
+
To as EntityFinder,
|
|
170
|
+
Lo as EntityForm,
|
|
171
|
+
Gt as EntityHeaderTable,
|
|
172
|
+
Ro as ErrorBanner,
|
|
173
|
+
wo as ErrorFallbackComponent,
|
|
172
174
|
e as ErrorPage,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
175
|
+
Bo as EvaluationCard,
|
|
176
|
+
Oo as EvaluationEditorPage,
|
|
177
|
+
Qo as ExperimentalMode,
|
|
178
|
+
Wo as ExternalFileHandleLink,
|
|
179
|
+
jo as FeaturedDataTabs,
|
|
180
|
+
aa as FeaturedResearch,
|
|
181
|
+
zo as FeaturedToolsList,
|
|
182
|
+
_o as FileUpload,
|
|
183
|
+
Zo as ForumPage,
|
|
184
|
+
$o as FullWidthAlert,
|
|
185
|
+
tr as GenericCard,
|
|
186
|
+
dr as Goals,
|
|
187
|
+
cr as GoalsV2,
|
|
188
|
+
Pr as GoalsV3,
|
|
189
|
+
Sr as GoogleAnalytics,
|
|
190
|
+
Er as HasAccess,
|
|
191
|
+
Nt as HelpPopover,
|
|
192
|
+
Ze as HoverPopover,
|
|
193
|
+
hr as Icon,
|
|
194
|
+
Dr as IconSvg,
|
|
195
|
+
oa as ImageCardGridWithLinks,
|
|
196
|
+
Ye as InputSizedButton,
|
|
197
|
+
qt as JsonLdScript,
|
|
196
198
|
x as LastLoginInfo,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
Qe as LeftRightPanel,
|
|
200
|
+
_e as LightTooltip,
|
|
201
|
+
pr as LongDescription,
|
|
202
|
+
Fr as Map,
|
|
203
|
+
wr as MarkdownCollapse,
|
|
204
|
+
kr as MarkdownEditor,
|
|
205
|
+
vr as MarkdownGithubLatestTag,
|
|
206
|
+
Br as ModalDownload,
|
|
207
|
+
Vt as MuiContainer,
|
|
206
208
|
f as NoContentAvailable,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
+
Or as OAuthClientManagement,
|
|
210
|
+
Qr as ORIENTATION_BANNER_KEYS,
|
|
209
211
|
h as OneTimePasswordForm,
|
|
210
|
-
|
|
212
|
+
Ur as OrientationBanner,
|
|
211
213
|
c as PasswordField,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
214
|
+
Ca as PortalAclEditor,
|
|
215
|
+
ga as PortalAclEditorModal,
|
|
216
|
+
ia as PortalCard,
|
|
217
|
+
ea as PortalFeatureHighlights,
|
|
218
|
+
la as PortalFeaturedPartners,
|
|
219
|
+
pa as PortalHomePageHeader,
|
|
220
|
+
sa as PortalList,
|
|
221
|
+
ya as PortalSectionHeader,
|
|
222
|
+
Kr as ProgrammaticTableDownload,
|
|
223
|
+
Jr as Programs,
|
|
224
|
+
oe as ProjectDataAvailability,
|
|
225
|
+
La as ProjectIcon,
|
|
226
|
+
Xr as ProvenanceGraph,
|
|
227
|
+
ee as QueryContext,
|
|
228
|
+
te as QueryContextConsumer,
|
|
229
|
+
ae as QueryContextProvider,
|
|
230
|
+
me as QueryCount,
|
|
231
|
+
xe as QueryWrapper,
|
|
232
|
+
de as QueryWrapperPlotNav,
|
|
233
|
+
ce as QueryWrapperSynapsePlot,
|
|
234
|
+
Xt as RecentPublicationsGrid,
|
|
235
|
+
Pe as RegisterPageLogoutPrompt,
|
|
236
|
+
Se as RenderIfInView,
|
|
237
|
+
Fe as Resources,
|
|
236
238
|
v as RowDataTable,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
239
|
+
B as RowDataTableWithQuery,
|
|
240
|
+
he as RssFeedCards,
|
|
241
|
+
Kt as SageResourcesPopover,
|
|
242
|
+
mr as ShortDescription,
|
|
243
|
+
xo as ShowDownloadV2,
|
|
244
|
+
De as ShowMore,
|
|
245
|
+
bo as SignInPrompt,
|
|
246
|
+
we as SkeletonButton,
|
|
247
|
+
ke as SkeletonInlineBlock,
|
|
248
|
+
Be as SkeletonParagraph,
|
|
249
|
+
ve as SkeletonTable,
|
|
248
250
|
P as StandaloneLoginForm,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
251
|
+
Oe as StandaloneQueryWrapper,
|
|
252
|
+
je as StyledFormControl,
|
|
253
|
+
Ue as StyledInnerContainer,
|
|
254
|
+
We as StyledOuterContainer,
|
|
255
|
+
$e as SubscriptionPage,
|
|
256
|
+
rt as SubsectionRowRenderer,
|
|
257
|
+
rr as SynapseCardLabel,
|
|
258
|
+
nt as SynapseChat,
|
|
259
|
+
ko as SynapseErrorBoundary,
|
|
258
260
|
t as SynapseErrorType,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
261
|
+
ft as SynapseFormSubmissionGrid,
|
|
262
|
+
tt as SynapseFormWrapper,
|
|
263
|
+
qr as SynapsePlot,
|
|
264
|
+
xt as SynapsePortalChatDialog,
|
|
265
|
+
mt as SynapseTable,
|
|
266
|
+
Et as SynapseToastContainer,
|
|
267
|
+
dt as SystemUseNotification,
|
|
268
|
+
ct as TableFeedCards,
|
|
269
|
+
Io as TableRowFallbackComponent,
|
|
270
|
+
Pt as TermsAndConditions,
|
|
271
|
+
St as TextField,
|
|
272
|
+
Nr as ThemesPlot,
|
|
273
|
+
Ft as TimelinePlot,
|
|
272
274
|
S as TwoFactorAuthSettingsPanel,
|
|
273
275
|
E as TwoFactorBackupCodes,
|
|
274
276
|
F as TwoFactorEnrollmentForm,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
277
|
+
Vr as UpsetPlot,
|
|
278
|
+
At as UserCard,
|
|
279
|
+
Rt as UserCardList,
|
|
280
|
+
It as UserCardListGroups,
|
|
281
|
+
bt as UserCardListRotate,
|
|
282
|
+
Mt as UserOrTeamBadge,
|
|
283
|
+
Ht as UserProfileLinks,
|
|
284
|
+
ze as WideButton,
|
|
285
|
+
vo as YOU_ARE_NOT_AUTHORIZED_MESSAGE,
|
|
286
|
+
Lt as displayToast,
|
|
287
|
+
ne as generateEncodedPathAndQueryForSelectedFacetURL,
|
|
288
|
+
nr as getFileHandleAssociation,
|
|
289
|
+
sr as getLinkParams,
|
|
290
|
+
xr as getValueOrMultiValue,
|
|
289
291
|
i as useLastLoginInfo,
|
|
290
292
|
d as useLastLoginInfoState,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
+
fe as useQueryContext,
|
|
294
|
+
Ta as visuallyHidden
|
|
293
295
|
};
|
|
294
296
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledFormControl.js","sources":["../../../src/components/styled/StyledFormControl.tsx"],"sourcesContent":["import {\n FormControl,\n FormControlProps,\n formHelperTextClasses,\n inputBaseClasses,\n styled,\n} from '@mui/material'\nimport { StyledComponent } from '@emotion/styled'\n\n/* bootstrap-like label/text inputs\n usage:\n <StyledFormControl fullWidth variant=\"standard\" margin=\"normal\">\n <InputLabel shrink htmlFor=\"someinput\">\n labelText\n </InputLabel>\n <InputBase id=\"someinput\"/>\n </StyledFormControl>\n*/\nexport const StyledFormControl: StyledComponent<FormControlProps> = styled(\n FormControl,\n {\n label: 'StyledFormControl',\n },\n)(({ theme }) => ({\n '& label': {\n fontSize: '14px',\n transform: 'none',\n },\n [`& .${formHelperTextClasses.root}`]: {\n marginLeft: '0',\n [`&.Mui-error`]: {\n color: '#c13415',\n },\n },\n\n [`& .${inputBaseClasses.root}`]: {\n marginTop: theme.spacing(
|
|
1
|
+
{"version":3,"file":"StyledFormControl.js","sources":["../../../src/components/styled/StyledFormControl.tsx"],"sourcesContent":["import {\n FormControl,\n FormControlProps,\n formHelperTextClasses,\n inputBaseClasses,\n styled,\n} from '@mui/material'\nimport { StyledComponent } from '@emotion/styled'\n\n/* bootstrap-like label/text inputs\n usage:\n <StyledFormControl fullWidth variant=\"standard\" margin=\"normal\">\n <InputLabel shrink htmlFor=\"someinput\">\n labelText\n </InputLabel>\n <InputBase id=\"someinput\"/>\n </StyledFormControl>\n*/\nexport const StyledFormControl: StyledComponent<FormControlProps> = styled(\n FormControl,\n {\n label: 'StyledFormControl',\n },\n)(({ theme }) => ({\n '& label': {\n fontSize: '14px',\n transform: 'none',\n },\n [`& .${formHelperTextClasses.root}`]: {\n marginLeft: '0',\n [`&.Mui-error`]: {\n color: '#c13415',\n },\n },\n\n [`& .${inputBaseClasses.root}`]: {\n marginTop: theme.spacing(0.5),\n },\n '& .MuiInputBase-multiline': {\n padding: '0px',\n },\n '& fieldset': {\n border: 'none',\n },\n}))\n\nexport default StyledFormControl\n"],"names":["StyledFormControl","styled","FormControl","theme","formHelperTextClasses","inputBaseClasses"],"mappings":";AAkBO,MAAMA,IAAuDC;AAAA,EAClEC;AAAA,EACA;AAAA,IACE,OAAO;AAAA,EAAA;AAEX,EAAE,CAAC,EAAE,OAAAC,SAAa;AAAA,EAChB,WAAW;AAAA,IACT,UAAU;AAAA,IACV,WAAW;AAAA,EAAA;AAAA,EAEb,CAAC,MAAMC,EAAsB,IAAI,EAAE,GAAG;AAAA,IACpC,YAAY;AAAA,IACX,eAAgB;AAAA,MACf,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAGF,CAAC,MAAMC,EAAiB,IAAI,EAAE,GAAG;AAAA,IAC/B,WAAWF,EAAM,QAAQ,GAAG;AAAA,EAAA;AAAA,EAE9B,6BAA6B;AAAA,IAC3B,SAAS;AAAA,EAAA;AAAA,EAEX,cAAc;AAAA,IACZ,QAAQ;AAAA,EAAA;AAEZ,EAAE;"}
|
|
@@ -49,7 +49,6 @@ import "../../../assets/icons/account-validated.svg.js";
|
|
|
49
49
|
import "../../../utils/functions/DateFormatter.js";
|
|
50
50
|
import "@react-hookz/web";
|
|
51
51
|
import "dayjs";
|
|
52
|
-
import "../../../assets/ArcusBioIcon.svg.js";
|
|
53
52
|
import "@mui/material/SvgIcon";
|
|
54
53
|
import "../../../assets/icons/AccessPending.svg.js";
|
|
55
54
|
import "../../../assets/icons/AccessPendingCloud.svg.js";
|
|
@@ -218,7 +217,7 @@ import b from "../../TanStackTable/ColumnHeader.js";
|
|
|
218
217
|
import T from "../../TanStackTable/StyledTanStackTable.js";
|
|
219
218
|
import { useGetCsvPreview as h } from "../../../synapse-queries/table/useGetCsvPreview.js";
|
|
220
219
|
import { useReactTable as y, getCoreRowModel as P, createColumnHelper as R } from "@tanstack/react-table";
|
|
221
|
-
function
|
|
220
|
+
function Ii(e) {
|
|
222
221
|
const {
|
|
223
222
|
fileHandleId: a,
|
|
224
223
|
csvTableDescriptor: i,
|
|
@@ -277,6 +276,6 @@ function S(e) {
|
|
|
277
276
|
}));
|
|
278
277
|
}
|
|
279
278
|
export {
|
|
280
|
-
|
|
279
|
+
Ii as default
|
|
281
280
|
};
|
|
282
281
|
//# sourceMappingURL=CsvPreview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CsvPreview.js","sources":["../../../../src/components/table/CsvPreview/CsvPreview.tsx"],"sourcesContent":["import { ErrorBanner } from '@/components/index'\nimport ColumnHeader from '@/components/TanStackTable/ColumnHeader'\nimport StyledTanStackTable from '@/components/TanStackTable/StyledTanStackTable'\nimport { useGetCsvPreview } from '@/synapse-queries/table/useGetCsvPreview'\nimport Typography from '@mui/material/Typography'\nimport {\n ColumnModel,\n CsvTableDescriptor,\n TableRow,\n UploadToTablePreviewResult,\n} from '@sage-bionetworks/synapse-client'\nimport {\n createColumnHelper,\n getCoreRowModel,\n useReactTable,\n} from '@tanstack/react-table'\nimport noop from 'lodash-es/noop'\nimport { useEffect, useMemo } from 'react'\n\nexport type CsvPreviewProps = {\n fileHandleId: string\n csvTableDescriptor: CsvTableDescriptor\n onCsvPreviewDataChange?: (data: UploadToTablePreviewResult) => void\n onIsLoadingChange?: (isLoading: boolean) => void\n}\n\n/**\n * Given a file handle ID and CSV Table Descriptor, fetches and displays a preview of the CSV file as it would be parsed into a table.\n */\nexport default function CsvPreview(props: CsvPreviewProps) {\n const {\n fileHandleId,\n csvTableDescriptor,\n onCsvPreviewDataChange = noop,\n onIsLoadingChange = noop,\n } = props\n\n const {\n data: csvPreviewData,\n isLoading,\n error,\n } = useGetCsvPreview({\n concreteType:\n 'org.sagebionetworks.repo.model.table.UploadToTablePreviewRequest',\n uploadFileHandleId: fileHandleId,\n csvTableDescriptor,\n })\n\n useEffect(() => {\n if (csvPreviewData) {\n onCsvPreviewDataChange(csvPreviewData)\n }\n }, [csvPreviewData, onCsvPreviewDataChange])\n\n useEffect(() => {\n onIsLoadingChange(isLoading)\n }, [isLoading, onIsLoadingChange])\n\n const tableData = useMemo(\n () => csvPreviewData?.sampleRows ?? [],\n [csvPreviewData?.sampleRows],\n )\n\n const columns = useMemo(\n () => getPreviewColumns(csvPreviewData?.suggestedColumns ?? []),\n [csvPreviewData?.suggestedColumns],\n )\n\n const table = useReactTable({\n getCoreRowModel: getCoreRowModel(),\n data: tableData,\n columns: columns,\n })\n\n if (error) {\n return <ErrorBanner error={error} />\n }\n\n return (\n <>\n {isLoading && <div>Loading preview...</div>}\n {!isLoading && csvPreviewData && table && (\n <>\n <Typography variant={'body1'}>\n Scanned {csvPreviewData?.rowsScanned?.toLocaleString()} rows to\n generate preview:\n </Typography>\n <StyledTanStackTable table={table} />\n </>\n )}\n </>\n )\n}\n\nfunction getPreviewColumns(columnModels: ColumnModel[]) {\n const columnHelper = createColumnHelper<TableRow>()\n return columnModels.map((columnModel, index) => {\n return columnHelper.accessor(tr => tr.values![index], {\n id: `column-${index}`,\n header: props => (\n <ColumnHeader\n {...props}\n title={`${columnModel.name} (${columnModel.columnType})`}\n />\n ),\n enableColumnFilter: false,\n enableSorting: false,\n })\n })\n}\n"],"names":["CsvPreview","props","fileHandleId","csvTableDescriptor","onCsvPreviewDataChange","noop","onIsLoadingChange","csvPreviewData","isLoading","error","useGetCsvPreview","useEffect","tableData","useMemo","columns","getPreviewColumns","table","useReactTable","getCoreRowModel","jsx","ErrorBanner","jsxs","Fragment","Typography","StyledTanStackTable","columnModels","columnHelper","createColumnHelper","columnModel","index","tr","ColumnHeader"],"mappings":"
|
|
1
|
+
{"version":3,"file":"CsvPreview.js","sources":["../../../../src/components/table/CsvPreview/CsvPreview.tsx"],"sourcesContent":["import { ErrorBanner } from '@/components/index'\nimport ColumnHeader from '@/components/TanStackTable/ColumnHeader'\nimport StyledTanStackTable from '@/components/TanStackTable/StyledTanStackTable'\nimport { useGetCsvPreview } from '@/synapse-queries/table/useGetCsvPreview'\nimport Typography from '@mui/material/Typography'\nimport {\n ColumnModel,\n CsvTableDescriptor,\n TableRow,\n UploadToTablePreviewResult,\n} from '@sage-bionetworks/synapse-client'\nimport {\n createColumnHelper,\n getCoreRowModel,\n useReactTable,\n} from '@tanstack/react-table'\nimport noop from 'lodash-es/noop'\nimport { useEffect, useMemo } from 'react'\n\nexport type CsvPreviewProps = {\n fileHandleId: string\n csvTableDescriptor: CsvTableDescriptor\n onCsvPreviewDataChange?: (data: UploadToTablePreviewResult) => void\n onIsLoadingChange?: (isLoading: boolean) => void\n}\n\n/**\n * Given a file handle ID and CSV Table Descriptor, fetches and displays a preview of the CSV file as it would be parsed into a table.\n */\nexport default function CsvPreview(props: CsvPreviewProps) {\n const {\n fileHandleId,\n csvTableDescriptor,\n onCsvPreviewDataChange = noop,\n onIsLoadingChange = noop,\n } = props\n\n const {\n data: csvPreviewData,\n isLoading,\n error,\n } = useGetCsvPreview({\n concreteType:\n 'org.sagebionetworks.repo.model.table.UploadToTablePreviewRequest',\n uploadFileHandleId: fileHandleId,\n csvTableDescriptor,\n })\n\n useEffect(() => {\n if (csvPreviewData) {\n onCsvPreviewDataChange(csvPreviewData)\n }\n }, [csvPreviewData, onCsvPreviewDataChange])\n\n useEffect(() => {\n onIsLoadingChange(isLoading)\n }, [isLoading, onIsLoadingChange])\n\n const tableData = useMemo(\n () => csvPreviewData?.sampleRows ?? [],\n [csvPreviewData?.sampleRows],\n )\n\n const columns = useMemo(\n () => getPreviewColumns(csvPreviewData?.suggestedColumns ?? []),\n [csvPreviewData?.suggestedColumns],\n )\n\n const table = useReactTable({\n getCoreRowModel: getCoreRowModel(),\n data: tableData,\n columns: columns,\n })\n\n if (error) {\n return <ErrorBanner error={error} />\n }\n\n return (\n <>\n {isLoading && <div>Loading preview...</div>}\n {!isLoading && csvPreviewData && table && (\n <>\n <Typography variant={'body1'}>\n Scanned {csvPreviewData?.rowsScanned?.toLocaleString()} rows to\n generate preview:\n </Typography>\n <StyledTanStackTable table={table} />\n </>\n )}\n </>\n )\n}\n\nfunction getPreviewColumns(columnModels: ColumnModel[]) {\n const columnHelper = createColumnHelper<TableRow>()\n return columnModels.map((columnModel, index) => {\n return columnHelper.accessor(tr => tr.values![index], {\n id: `column-${index}`,\n header: props => (\n <ColumnHeader\n {...props}\n title={`${columnModel.name} (${columnModel.columnType})`}\n />\n ),\n enableColumnFilter: false,\n enableSorting: false,\n })\n })\n}\n"],"names":["CsvPreview","props","fileHandleId","csvTableDescriptor","onCsvPreviewDataChange","noop","onIsLoadingChange","csvPreviewData","isLoading","error","useGetCsvPreview","useEffect","tableData","useMemo","columns","getPreviewColumns","table","useReactTable","getCoreRowModel","jsx","ErrorBanner","jsxs","Fragment","Typography","StyledTanStackTable","columnModels","columnHelper","createColumnHelper","columnModel","index","tr","ColumnHeader"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAwBA,GAAWC,GAAwB;AACzD,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,wBAAAC,IAAyBC;AAAA,IACzB,mBAAAC,IAAoBD;AAAA,EAAA,IAClBJ,GAEE;AAAA,IACJ,MAAMM;AAAA,IACN,WAAAC;AAAA,IACA,OAAAC;AAAA,EAAA,IACEC,EAAiB;AAAA,IACnB,cACE;AAAA,IACF,oBAAoBR;AAAA,IACpB,oBAAAC;AAAA,EAAA,CACD;AAED,EAAAQ,EAAU,MAAM;AACd,IAAIJ,KACFH,EAAuBG,CAAc;AAAA,EAEzC,GAAG,CAACA,GAAgBH,CAAsB,CAAC,GAE3CO,EAAU,MAAM;AACd,IAAAL,EAAkBE,CAAS;AAAA,EAC7B,GAAG,CAACA,GAAWF,CAAiB,CAAC;AAEjC,QAAMM,IAAYC;AAAA,IAChB,MAAMN,GAAgB,cAAc,CAAA;AAAA,IACpC,CAACA,GAAgB,UAAU;AAAA,EAAA,GAGvBO,IAAUD;AAAA,IACd,MAAME,EAAkBR,GAAgB,oBAAoB,EAAE;AAAA,IAC9D,CAACA,GAAgB,gBAAgB;AAAA,EAAA,GAG7BS,IAAQC,EAAc;AAAA,IAC1B,iBAAiBC,EAAA;AAAA,IACjB,MAAMN;AAAA,IACN,SAAAE;AAAA,EAAA,CACD;AAED,SAAIL,IACK,gBAAAU,EAACC,KAAY,OAAAX,GAAc,IAIlC,gBAAAY,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAd,KAAa,gBAAAW,EAAC,SAAI,UAAA,qBAAA,CAAkB;AAAA,IACpC,CAACX,KAAaD,KAAkBS,KAC/B,gBAAAK,EAAAC,GAAA,EACE,UAAA;AAAA,MAAA,gBAAAD,EAACE,GAAA,EAAW,SAAS,SAAS,UAAA;AAAA,QAAA;AAAA,QACnBhB,GAAgB,aAAa,eAAA;AAAA,QAAiB;AAAA,MAAA,GAEzD;AAAA,MACA,gBAAAY,EAACK,KAAoB,OAAAR,EAAA,CAAc;AAAA,IAAA,EAAA,CACrC;AAAA,EAAA,GAEJ;AAEJ;AAEA,SAASD,EAAkBU,GAA6B;AACtD,QAAMC,IAAeC,EAAA;AACrB,SAAOF,EAAa,IAAI,CAACG,GAAaC,MAC7BH,EAAa,SAAS,CAAAI,MAAMA,EAAG,OAAQD,CAAK,GAAG;AAAA,IACpD,IAAI,UAAUA,CAAK;AAAA,IACnB,QAAQ,CAAA5B,MACN,gBAAAkB;AAAA,MAACY;AAAA,MAAA;AAAA,QACE,GAAG9B;AAAA,QACJ,OAAO,GAAG2B,EAAY,IAAI,KAAKA,EAAY,UAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAGzD,oBAAoB;AAAA,IACpB,eAAe;AAAA,EAAA,CAChB,CACF;AACH;"}
|