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
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as t, jsxs as n, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as n, Fragment as U } from "react/jsx-runtime";
|
|
2
|
+
import st from "./components/GridMenuButton/GridMenuButton.js";
|
|
3
|
+
import ct from "./components/UploadCsvToGridButton.js";
|
|
4
|
+
import lt from "./components/ExportCsvFromGridButton.js";
|
|
5
|
+
import dt from "./hooks/useGetSchemaForGrid.js";
|
|
6
|
+
import at from "./MergeGridWithSourceTableButton.js";
|
|
7
|
+
import ut from "./utils/computeReplicaSelectionModel.js";
|
|
8
|
+
import ht from "./utils/modelRowsToGrid.js";
|
|
9
9
|
import "../../assets/icons/error_page/maintenance.svg.js";
|
|
10
10
|
import "../../assets/icons/error_page/no-access.svg.js";
|
|
11
11
|
import "../../assets/icons/error_page/unavailable.svg.js";
|
|
12
12
|
import "../../utils/PermissionLevelToAccessType.js";
|
|
13
13
|
import "../../utils/SynapseConstants.js";
|
|
14
|
-
import { forwardRef as
|
|
14
|
+
import { forwardRef as ft, useState as I, useRef as S, useCallback as a, useImperativeHandle as gt, useEffect as E, useMemo as N } from "react";
|
|
15
15
|
import "../../synapse-client/SynapseClient.js";
|
|
16
16
|
import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
|
|
17
17
|
import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
|
|
@@ -27,11 +27,11 @@ import "@tanstack/query-core";
|
|
|
27
27
|
import "lodash-es/isEmpty";
|
|
28
28
|
import "lodash-es/isEqual";
|
|
29
29
|
import "lodash-es/xorWith";
|
|
30
|
-
import { Tooltip as
|
|
30
|
+
import { Tooltip as It, Stack as St } from "@mui/material";
|
|
31
31
|
import "@sage-bionetworks/synapse-client";
|
|
32
|
-
import { useGetEntity as
|
|
32
|
+
import { useGetEntity as Ct } from "../../synapse-queries/entity/useEntity.js";
|
|
33
33
|
import "../../utils/types/IsType.js";
|
|
34
|
-
import { useGetCurrentUserBundle as
|
|
34
|
+
import { useGetCurrentUserBundle as Rt } from "../../synapse-queries/user/useUserBundle.js";
|
|
35
35
|
import "../../utils/hooks/useCookiePreferences.js";
|
|
36
36
|
import "../../utils/hooks/useSourceAppConfigs.js";
|
|
37
37
|
import "universal-cookie";
|
|
@@ -43,7 +43,7 @@ import "react-router";
|
|
|
43
43
|
import "@mui/icons-material/Close";
|
|
44
44
|
import "../styled/StyledPopover.js";
|
|
45
45
|
import "../Markdown/MarkdownSynapse.js";
|
|
46
|
-
import { SmartToyTwoTone as
|
|
46
|
+
import { SmartToyTwoTone as yt } from "@mui/icons-material";
|
|
47
47
|
import "react-hot-toast";
|
|
48
48
|
import "react-transition-group";
|
|
49
49
|
/* empty css */
|
|
@@ -58,7 +58,6 @@ import "../../assets/icons/account-validated.svg.js";
|
|
|
58
58
|
import "../../utils/functions/DateFormatter.js";
|
|
59
59
|
import "@react-hookz/web";
|
|
60
60
|
import "dayjs";
|
|
61
|
-
import "../../assets/ArcusBioIcon.svg.js";
|
|
62
61
|
import "@mui/material/SvgIcon";
|
|
63
62
|
import "../../assets/icons/AccessPending.svg.js";
|
|
64
63
|
import "../../assets/icons/AccessPendingCloud.svg.js";
|
|
@@ -115,7 +114,7 @@ import "../QueryContext/QueryContext.js";
|
|
|
115
114
|
import "../QueryVisualizationWrapper/QueryVisualizationContext.js";
|
|
116
115
|
import "react-share";
|
|
117
116
|
import "../GenericCard/GenericCard.js";
|
|
118
|
-
import { SkeletonTable as
|
|
117
|
+
import { SkeletonTable as Et } from "../Skeleton/SkeletonTable.js";
|
|
119
118
|
import "@mui/system";
|
|
120
119
|
import "../GenericCard/Linkify.js";
|
|
121
120
|
import "jotai";
|
|
@@ -219,158 +218,178 @@ import "react-draggable";
|
|
|
219
218
|
import "../TimelinePlot/phasesQueryResponseData.js";
|
|
220
219
|
import "../EntityHeaderTable/EntityHeaderTable.js";
|
|
221
220
|
import "../MuiContainer.js";
|
|
222
|
-
import
|
|
221
|
+
import c from "@mui/material/Grid";
|
|
223
222
|
import "@mui/icons-material/ArrowForwardIos";
|
|
224
223
|
import "../PortalAclEditor/PortalAclEditor.js";
|
|
225
224
|
import "../SynapseHomepageV2/HomepageStyles.js";
|
|
226
|
-
import { getSchemaPropertiesInfo as
|
|
227
|
-
import { ClickableJsonCrdt as
|
|
228
|
-
import { GridAgentChat as
|
|
229
|
-
import
|
|
230
|
-
import { useGridUndoRedo as
|
|
231
|
-
import { StartGridSession as
|
|
232
|
-
import { useDataGridWebSocket as
|
|
233
|
-
import { applyModelChange as
|
|
234
|
-
import { removeNoOpOperations as
|
|
235
|
-
import { mapOperationsToModelChanges as
|
|
236
|
-
import { useListGridReplicas as
|
|
237
|
-
import
|
|
238
|
-
import {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
225
|
+
import { getSchemaPropertiesInfo as xt } from "../../utils/jsonschema/getSchemaPropertyInfo.js";
|
|
226
|
+
import { ClickableJsonCrdt as Gt } from "clickable-json";
|
|
227
|
+
import { GridAgentChat as vt } from "../SynapseChat/GridAgentChat.js";
|
|
228
|
+
import bt from "./DataGrid.js";
|
|
229
|
+
import { useGridUndoRedo as wt } from "./hooks/useGridUndoRedo.js";
|
|
230
|
+
import { StartGridSession as Tt } from "./StartGridSession.js";
|
|
231
|
+
import { useDataGridWebSocket as Ut } from "./useDataGridWebsocket.js";
|
|
232
|
+
import { applyModelChange as Nt } from "./utils/applyModelChange.js";
|
|
233
|
+
import { removeNoOpOperations as kt } from "./utils/DataGridUtils.js";
|
|
234
|
+
import { mapOperationsToModelChanges as Mt } from "./utils/mapOperationsToModelChanges.js";
|
|
235
|
+
import { useListGridReplicas as Ot } from "../../synapse-queries/grid/useGridSession.js";
|
|
236
|
+
import { useGridReplicaUsers as zt } from "./hooks/useGridReplicaUsers.js";
|
|
237
|
+
import { useRemoteSelections as Dt } from "./hooks/useRemoteSelections.js";
|
|
238
|
+
import { enrichRowsWithChangeInfo as Lt } from "./utils/enrichRowsWithChangeInfo.js";
|
|
239
|
+
import Bt from "../AccessRequirementList/RequirementItem/CertificationRequirement.js";
|
|
240
|
+
import { ValidationAlert as Pt } from "./components/ValidationAlert.js";
|
|
241
|
+
const dn = ft(
|
|
242
|
+
({ agentRegistrationId: F, showDebugInfo: x = !1 }, J) => {
|
|
243
|
+
const [o, V] = I(null), [p, W] = I(null), [H, k] = I(!1), [_, M] = I(
|
|
242
244
|
null
|
|
243
|
-
),
|
|
245
|
+
), f = S(null), g = S(null), { data: G, isLoading: $ } = Rt(), { data: C = [], refetch: O } = Ot(o?.sessionId), v = a(() => {
|
|
244
246
|
O();
|
|
245
|
-
}, [O])
|
|
246
|
-
|
|
247
|
-
|
|
247
|
+
}, [O]), q = G?.userId != null ? String(G.userId) : void 0, z = zt(
|
|
248
|
+
C,
|
|
249
|
+
p,
|
|
250
|
+
q
|
|
251
|
+
);
|
|
252
|
+
gt(
|
|
253
|
+
J,
|
|
248
254
|
() => ({
|
|
249
|
-
initializeGrid: (
|
|
250
|
-
|
|
255
|
+
initializeGrid: (r) => {
|
|
256
|
+
f.current && f.current.handleStartSession(r);
|
|
251
257
|
},
|
|
252
|
-
loadExistingSession: (
|
|
253
|
-
|
|
258
|
+
loadExistingSession: (r) => {
|
|
259
|
+
f.current && f.current.handleLoadSession(r);
|
|
254
260
|
}
|
|
255
261
|
}),
|
|
256
262
|
[]
|
|
257
263
|
);
|
|
258
264
|
const {
|
|
259
265
|
isConnected: m,
|
|
260
|
-
websocketInstance:
|
|
261
|
-
hasCompletedInitialSync:
|
|
266
|
+
websocketInstance: D,
|
|
267
|
+
hasCompletedInitialSync: Y,
|
|
262
268
|
model: e,
|
|
263
|
-
modelSnapshot:
|
|
264
|
-
connect:
|
|
265
|
-
presignedUrl:
|
|
266
|
-
hasSufficientData:
|
|
267
|
-
} =
|
|
268
|
-
onGridReady:
|
|
269
|
-
onReplicaConnected:
|
|
270
|
-
onReplicaDisconnected:
|
|
271
|
-
}),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}, [
|
|
275
|
-
const
|
|
276
|
-
|
|
269
|
+
modelSnapshot: s,
|
|
270
|
+
connect: L,
|
|
271
|
+
presignedUrl: l,
|
|
272
|
+
hasSufficientData: B
|
|
273
|
+
} = Ut({
|
|
274
|
+
onGridReady: v,
|
|
275
|
+
onReplicaConnected: v,
|
|
276
|
+
onReplicaDisconnected: v
|
|
277
|
+
}), R = S(null);
|
|
278
|
+
E(() => {
|
|
279
|
+
R.current = D;
|
|
280
|
+
}, [D]);
|
|
281
|
+
const b = S(null);
|
|
282
|
+
E(() => {
|
|
277
283
|
if (p == null || !o?.sessionId) {
|
|
278
|
-
|
|
284
|
+
b.current = null;
|
|
279
285
|
return;
|
|
280
286
|
}
|
|
281
|
-
const
|
|
287
|
+
const r = {
|
|
282
288
|
replicaId: p,
|
|
283
289
|
sessionId: o.sessionId
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
}, [p, o?.sessionId,
|
|
287
|
-
e === null && (
|
|
290
|
+
}, i = b.current;
|
|
291
|
+
i && i.replicaId === r.replicaId && i.sessionId === r.sessionId || (b.current = r, L(p, o.sessionId));
|
|
292
|
+
}, [p, o?.sessionId, L]), E(() => {
|
|
293
|
+
e === null && (M(null), g.current && g.current.setActiveCell(null));
|
|
288
294
|
}, [e]);
|
|
289
|
-
const
|
|
295
|
+
const w = dt(o), { data: K } = Ct(
|
|
290
296
|
o?.sourceEntityId,
|
|
291
297
|
void 0,
|
|
292
298
|
{
|
|
293
299
|
enabled: !!o?.sourceEntityId
|
|
294
300
|
}
|
|
295
|
-
),
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
), Q = K?.concreteType === "org.sagebionetworks.repo.model.table.EntityView", T = N(() => xt(w ?? null), [w]), X = m ? "Connected" : "Disconnected", Z = Dt(
|
|
302
|
+
s,
|
|
303
|
+
e,
|
|
304
|
+
C,
|
|
305
|
+
p
|
|
306
|
+
), u = N(
|
|
307
|
+
() => s ? ht(e, s) : [],
|
|
308
|
+
[e, s]
|
|
309
|
+
), tt = N(
|
|
310
|
+
() => Lt(
|
|
311
|
+
u,
|
|
312
|
+
e,
|
|
313
|
+
s,
|
|
314
|
+
z
|
|
315
|
+
),
|
|
316
|
+
[u, e, s, z]
|
|
317
|
+
), y = a(() => {
|
|
318
|
+
!m || !R.current || R.current.sendPatch();
|
|
319
|
+
}, [m, R]);
|
|
320
|
+
E(() => {
|
|
302
321
|
m && y();
|
|
303
322
|
}, [m, y]);
|
|
304
|
-
const
|
|
305
|
-
(
|
|
306
|
-
|
|
307
|
-
|
|
323
|
+
const h = a(
|
|
324
|
+
(r, i) => {
|
|
325
|
+
i.forEach((d) => {
|
|
326
|
+
Nt(r, d, T);
|
|
308
327
|
}), y();
|
|
309
328
|
},
|
|
310
|
-
[y,
|
|
311
|
-
),
|
|
312
|
-
(
|
|
329
|
+
[y, T]
|
|
330
|
+
), ot = a(
|
|
331
|
+
(r) => {
|
|
313
332
|
if (!e) {
|
|
314
333
|
console.error("Model is not initialized");
|
|
315
334
|
return;
|
|
316
335
|
}
|
|
317
|
-
|
|
336
|
+
r.type === "DELETE" && g.current && g.current.setActiveCell(null), h(e, [r]);
|
|
318
337
|
},
|
|
319
|
-
[e,
|
|
320
|
-
), { undoUI:
|
|
321
|
-
(
|
|
338
|
+
[e, h]
|
|
339
|
+
), { undoUI: rt, redoUI: it, addOperationsToUndoStack: P, clearRedoStack: A } = wt(ot), et = a(
|
|
340
|
+
(r, i) => {
|
|
322
341
|
if (!e) {
|
|
323
342
|
console.error("Model is not initialized");
|
|
324
343
|
return;
|
|
325
344
|
}
|
|
326
|
-
if (
|
|
327
|
-
|
|
328
|
-
const
|
|
329
|
-
|
|
345
|
+
if (i = kt(r, u, i), i.length > 0) {
|
|
346
|
+
A(), P(i, u, r);
|
|
347
|
+
const d = Mt(i, r);
|
|
348
|
+
h(e, d);
|
|
330
349
|
}
|
|
331
350
|
},
|
|
332
351
|
[
|
|
333
352
|
e,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
353
|
+
u,
|
|
354
|
+
A,
|
|
355
|
+
P,
|
|
356
|
+
h
|
|
338
357
|
]
|
|
339
|
-
),
|
|
340
|
-
(
|
|
341
|
-
const { selection:
|
|
342
|
-
if (
|
|
343
|
-
const
|
|
344
|
-
|
|
358
|
+
), nt = a(
|
|
359
|
+
(r) => {
|
|
360
|
+
const { selection: i } = r;
|
|
361
|
+
if (i != null && (M(i), e != null && p != null)) {
|
|
362
|
+
const d = ut(
|
|
363
|
+
i,
|
|
345
364
|
e
|
|
346
365
|
);
|
|
347
|
-
|
|
366
|
+
h(e, [
|
|
348
367
|
{
|
|
349
368
|
type: "SET_SELECTION",
|
|
350
369
|
replicaId: p.toString(),
|
|
351
|
-
selection:
|
|
370
|
+
selection: d
|
|
352
371
|
}
|
|
353
372
|
]);
|
|
354
373
|
}
|
|
355
374
|
},
|
|
356
|
-
[
|
|
357
|
-
),
|
|
358
|
-
(
|
|
359
|
-
|
|
375
|
+
[h, e, p]
|
|
376
|
+
), j = S(null), [, pt] = I({}), mt = a(
|
|
377
|
+
(r, i) => {
|
|
378
|
+
r !== null && (j.current = r, pt({}));
|
|
360
379
|
},
|
|
361
380
|
[]
|
|
362
381
|
);
|
|
363
|
-
return
|
|
364
|
-
/* @__PURE__ */ t(
|
|
365
|
-
|
|
382
|
+
return !$ && !G?.isCertified ? /* @__PURE__ */ t(Bt, {}) : /* @__PURE__ */ t("div", { children: /* @__PURE__ */ n(c, { container: !0, spacing: 2, children: [
|
|
383
|
+
/* @__PURE__ */ t(c, { size: { xs: 12, xl: 8 }, children: /* @__PURE__ */ t(
|
|
384
|
+
Tt,
|
|
366
385
|
{
|
|
367
|
-
ref:
|
|
368
|
-
onSessionChange:
|
|
369
|
-
onReplicaChange:
|
|
370
|
-
show:
|
|
386
|
+
ref: f,
|
|
387
|
+
onSessionChange: V,
|
|
388
|
+
onReplicaChange: W,
|
|
389
|
+
show: x
|
|
371
390
|
}
|
|
372
391
|
) }),
|
|
373
|
-
/* @__PURE__ */ t(
|
|
392
|
+
/* @__PURE__ */ t(c, { size: { xs: 12, xl: 4 }, children: x && /* @__PURE__ */ n("div", { children: [
|
|
374
393
|
/* @__PURE__ */ n("p", { children: [
|
|
375
394
|
"Session ID: ",
|
|
376
395
|
o?.sessionId || "No session created"
|
|
@@ -392,29 +411,29 @@ const on = dt(
|
|
|
392
411
|
/* @__PURE__ */ n("p", { children: [
|
|
393
412
|
"Presigned URL:",
|
|
394
413
|
" ",
|
|
395
|
-
|
|
414
|
+
l ? l.substring(0, 30) + (l.length > 30 ? " ... " + l.substring(l.length - 10) : "") : "No URL generated"
|
|
396
415
|
] }),
|
|
397
416
|
/* @__PURE__ */ n("p", { children: [
|
|
398
417
|
"WebSocket Status:",
|
|
399
418
|
" ",
|
|
400
|
-
/* @__PURE__ */ t("span", { style: { color: m ? "green" : "red" }, children:
|
|
419
|
+
/* @__PURE__ */ t("span", { style: { color: m ? "green" : "red" }, children: X })
|
|
401
420
|
] }),
|
|
402
421
|
/* @__PURE__ */ t("p", { children: (() => {
|
|
403
|
-
const
|
|
404
|
-
(
|
|
422
|
+
const r = C.filter(
|
|
423
|
+
(i) => i.isConnected
|
|
405
424
|
);
|
|
406
|
-
return /* @__PURE__ */ n(
|
|
425
|
+
return /* @__PURE__ */ n(U, { children: [
|
|
407
426
|
"Connected Replicas (",
|
|
408
|
-
|
|
427
|
+
r.length,
|
|
409
428
|
" /",
|
|
410
429
|
" ",
|
|
411
|
-
|
|
430
|
+
C.length,
|
|
412
431
|
" total):",
|
|
413
432
|
" ",
|
|
414
|
-
|
|
415
|
-
|
|
433
|
+
r.length === 0 ? "none" : r.map((i, d) => /* @__PURE__ */ t(
|
|
434
|
+
It,
|
|
416
435
|
{
|
|
417
|
-
title: /* @__PURE__ */ t("pre", { style: { margin: 0, fontSize: "11px" }, children: JSON.stringify(
|
|
436
|
+
title: /* @__PURE__ */ t("pre", { style: { margin: 0, fontSize: "11px" }, children: JSON.stringify(i, null, 2) }),
|
|
418
437
|
children: /* @__PURE__ */ n(
|
|
419
438
|
"span",
|
|
420
439
|
{
|
|
@@ -423,75 +442,75 @@ const on = dt(
|
|
|
423
442
|
textDecoration: "underline dotted"
|
|
424
443
|
},
|
|
425
444
|
children: [
|
|
426
|
-
|
|
427
|
-
|
|
445
|
+
i.replicaId,
|
|
446
|
+
d < r.length - 1 ? ", " : ""
|
|
428
447
|
]
|
|
429
448
|
}
|
|
430
449
|
)
|
|
431
450
|
},
|
|
432
|
-
|
|
451
|
+
i.replicaId
|
|
433
452
|
))
|
|
434
453
|
] });
|
|
435
454
|
})() })
|
|
436
455
|
] }) }),
|
|
437
|
-
o && /* @__PURE__ */ n(
|
|
438
|
-
!
|
|
456
|
+
o && /* @__PURE__ */ n(U, { children: [
|
|
457
|
+
!B && /* @__PURE__ */ n(c, { size: 12, children: [
|
|
439
458
|
/* @__PURE__ */ t("h3", { children: "Setting up grid..." }),
|
|
440
459
|
/* @__PURE__ */ n("div", { style: { marginBottom: "10px" }, children: [
|
|
441
460
|
!o && /* @__PURE__ */ t("p", { children: "Creating grid session..." }),
|
|
442
461
|
o && !p && /* @__PURE__ */ t("p", { children: "Setting up real-time sync..." }),
|
|
443
|
-
o && p && !
|
|
444
|
-
o && p &&
|
|
445
|
-
m &&
|
|
446
|
-
/* @__PURE__ */ t(
|
|
462
|
+
o && p && !l && /* @__PURE__ */ t("p", { children: "Establishing secure connection..." }),
|
|
463
|
+
o && p && l && !m && /* @__PURE__ */ t("p", { children: "Connecting to server..." }),
|
|
464
|
+
m && !Y && /* @__PURE__ */ t("p", { children: "Loading table data..." }),
|
|
465
|
+
/* @__PURE__ */ t(Et, { numRows: 4, numCols: 1 })
|
|
447
466
|
] })
|
|
448
467
|
] }),
|
|
449
|
-
|
|
450
|
-
/* @__PURE__ */ t(
|
|
451
|
-
|
|
468
|
+
B && /* @__PURE__ */ n(U, { children: [
|
|
469
|
+
/* @__PURE__ */ t(c, { size: 12, children: /* @__PURE__ */ n(
|
|
470
|
+
St,
|
|
452
471
|
{
|
|
453
472
|
direction: "row",
|
|
454
473
|
spacing: 1,
|
|
455
474
|
sx: { justifyContent: "flex-end" },
|
|
456
475
|
children: [
|
|
457
|
-
|
|
458
|
-
|
|
476
|
+
rt,
|
|
477
|
+
it,
|
|
459
478
|
/* @__PURE__ */ t(
|
|
460
|
-
|
|
479
|
+
st,
|
|
461
480
|
{
|
|
462
481
|
variant: "outlined",
|
|
463
|
-
onClick: () =>
|
|
464
|
-
startIcon: /* @__PURE__ */ t(
|
|
482
|
+
onClick: () => k(!0),
|
|
483
|
+
startIcon: /* @__PURE__ */ t(yt, {}),
|
|
465
484
|
children: "Open chat"
|
|
466
485
|
}
|
|
467
486
|
),
|
|
468
487
|
/* @__PURE__ */ t(
|
|
469
|
-
|
|
488
|
+
vt,
|
|
470
489
|
{
|
|
471
|
-
agentRegistrationId:
|
|
472
|
-
open:
|
|
473
|
-
onClose: () =>
|
|
490
|
+
agentRegistrationId: F,
|
|
491
|
+
open: H,
|
|
492
|
+
onClose: () => k(!1),
|
|
474
493
|
gridSessionId: o.sessionId,
|
|
475
494
|
usersReplicaId: p,
|
|
476
495
|
chatbotName: "Grid Assistant"
|
|
477
496
|
}
|
|
478
497
|
),
|
|
479
498
|
o.sourceEntityId && /* @__PURE__ */ t(
|
|
480
|
-
|
|
499
|
+
ct,
|
|
481
500
|
{
|
|
482
501
|
sourceEntityId: o.sourceEntityId,
|
|
483
502
|
gridSessionId: o.sessionId
|
|
484
503
|
}
|
|
485
504
|
),
|
|
486
505
|
o.sessionId && /* @__PURE__ */ t(
|
|
487
|
-
|
|
506
|
+
lt,
|
|
488
507
|
{
|
|
489
508
|
gridSessionId: o.sessionId,
|
|
490
509
|
filename: "grid-" + (o.sourceEntityId || "export")
|
|
491
510
|
}
|
|
492
511
|
),
|
|
493
512
|
o.sourceEntityId && /* @__PURE__ */ t(
|
|
494
|
-
|
|
513
|
+
at,
|
|
495
514
|
{
|
|
496
515
|
sourceEntityId: o.sourceEntityId,
|
|
497
516
|
gridSessionId: o.sessionId
|
|
@@ -500,32 +519,33 @@ const on = dt(
|
|
|
500
519
|
]
|
|
501
520
|
}
|
|
502
521
|
) }),
|
|
503
|
-
/* @__PURE__ */ t(
|
|
504
|
-
|
|
522
|
+
/* @__PURE__ */ t(c, { size: 12, children: /* @__PURE__ */ t(
|
|
523
|
+
bt,
|
|
505
524
|
{
|
|
506
|
-
gridRef:
|
|
507
|
-
rowValues:
|
|
508
|
-
columnNames:
|
|
509
|
-
columnOrder:
|
|
510
|
-
schemaPropertiesInfo:
|
|
511
|
-
entityIsView:
|
|
512
|
-
jsonSchema:
|
|
513
|
-
lastSelection:
|
|
514
|
-
handleChange:
|
|
515
|
-
handleSelectionChange:
|
|
516
|
-
onSelectedRowChange:
|
|
525
|
+
gridRef: g,
|
|
526
|
+
rowValues: tt,
|
|
527
|
+
columnNames: s?.columnNames ?? [],
|
|
528
|
+
columnOrder: s?.columnOrder ?? [],
|
|
529
|
+
schemaPropertiesInfo: T,
|
|
530
|
+
entityIsView: Q,
|
|
531
|
+
jsonSchema: w,
|
|
532
|
+
lastSelection: _,
|
|
533
|
+
handleChange: et,
|
|
534
|
+
handleSelectionChange: nt,
|
|
535
|
+
onSelectedRowChange: mt,
|
|
536
|
+
remoteSelections: Z
|
|
517
537
|
}
|
|
518
538
|
) }),
|
|
519
|
-
/* @__PURE__ */ t(
|
|
520
|
-
|
|
539
|
+
/* @__PURE__ */ t(c, { size: 12, children: /* @__PURE__ */ t(
|
|
540
|
+
Pt,
|
|
521
541
|
{
|
|
522
|
-
selectedRowIndex:
|
|
523
|
-
rowValues:
|
|
542
|
+
selectedRowIndex: j.current,
|
|
543
|
+
rowValues: u
|
|
524
544
|
}
|
|
525
545
|
) })
|
|
526
546
|
] }),
|
|
527
|
-
|
|
528
|
-
|
|
547
|
+
x && /* @__PURE__ */ n(
|
|
548
|
+
c,
|
|
529
549
|
{
|
|
530
550
|
size: 12,
|
|
531
551
|
style: {
|
|
@@ -537,7 +557,7 @@ const on = dt(
|
|
|
537
557
|
},
|
|
538
558
|
children: [
|
|
539
559
|
/* @__PURE__ */ t("h3", { children: "Model" }),
|
|
540
|
-
e ? /* @__PURE__ */ t(
|
|
560
|
+
e ? /* @__PURE__ */ t(Gt, { model: e }) : "No model available"
|
|
541
561
|
]
|
|
542
562
|
}
|
|
543
563
|
)
|
|
@@ -546,6 +566,6 @@ const on = dt(
|
|
|
546
566
|
}
|
|
547
567
|
);
|
|
548
568
|
export {
|
|
549
|
-
|
|
569
|
+
dn as default
|
|
550
570
|
};
|
|
551
571
|
//# sourceMappingURL=SynapseGrid.js.map
|