synapse-react-client 4.0.22 → 4.0.24
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/assets/icons/GeneticsIcon.d.ts +3 -0
- package/dist/assets/icons/GeneticsIcon.d.ts.map +1 -0
- package/dist/assets/icons/GeneticsIcon.js +14 -0
- package/dist/assets/icons/GeneticsIcon.js.map +1 -0
- package/dist/components/EntityCitation/EntityCitation.d.ts.map +1 -1
- package/dist/components/EntityCitation/EntityCitation.js +49 -32
- package/dist/components/EntityCitation/EntityCitation.js.map +1 -1
- package/dist/components/GenericCard/DuoTermTags/DuoTermTags.d.ts +18 -0
- package/dist/components/GenericCard/DuoTermTags/DuoTermTags.d.ts.map +1 -0
- package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js +112 -0
- package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js.map +1 -0
- package/dist/components/GenericCard/DuoTermTags/duoTerms.d.ts +31 -0
- package/dist/components/GenericCard/DuoTermTags/duoTerms.d.ts.map +1 -0
- package/dist/components/GenericCard/DuoTermTags/duoTerms.js +198 -0
- package/dist/components/GenericCard/DuoTermTags/duoTerms.js.map +1 -0
- package/dist/components/GenericCard/SynapseCardLabel.d.ts.map +1 -1
- package/dist/components/GenericCard/SynapseCardLabel.js +4 -8
- package/dist/components/GenericCard/SynapseCardLabel.js.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts +6 -0
- package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +168 -153
- package/dist/components/GenericCard/TableRowGenericCard.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 +19 -18
- package/dist/components/IconSvg/IconSvg.js.map +1 -1
- package/dist/components/Plot/SynapsePlot.d.ts +4 -0
- package/dist/components/Plot/SynapsePlot.d.ts.map +1 -1
- package/dist/components/Plot/SynapsePlot.js +57 -44
- package/dist/components/Plot/SynapsePlot.js.map +1 -1
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationContext.d.ts +21 -0
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationContext.d.ts.map +1 -1
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationContext.js.map +1 -1
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.d.ts +10 -0
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.d.ts.map +1 -1
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js +65 -59
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +2 -0
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.js +77 -34
- package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts +33 -6
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +93 -55
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts +3 -0
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +39 -37
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -1
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts +3 -1
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js +5 -0
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js.map +1 -1
- package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts +7 -2
- package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts.map +1 -1
- package/dist/components/entity/page/action_menu/EntityActionMenu.js +87 -51
- package/dist/components/entity/page/action_menu/EntityActionMenu.js.map +1 -1
- package/dist/components/entity/page/breadcrumbs/EntityPageBreadcrumbs.d.ts.map +1 -1
- package/dist/components/entity/page/breadcrumbs/EntityPageBreadcrumbs.js +0 -1
- package/dist/components/entity/page/breadcrumbs/EntityPageBreadcrumbs.js.map +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.d.ts +1 -0
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.d.ts.map +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js +31 -22
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js.map +1 -1
- package/dist/components/entity/page/title_bar/EntityTitleBarVersionInfo.d.ts.map +1 -1
- package/dist/components/entity/page/title_bar/EntityTitleBarVersionInfo.js +34 -20
- package/dist/components/entity/page/title_bar/EntityTitleBarVersionInfo.js.map +1 -1
- package/dist/components/favorites/FavoriteButton.d.ts +1 -0
- package/dist/components/favorites/FavoriteButton.d.ts.map +1 -1
- package/dist/components/favorites/FavoriteButton.js +8 -8
- package/dist/components/favorites/FavoriteButton.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/menu/ComplexMenu.d.ts +8 -1
- package/dist/components/menu/ComplexMenu.d.ts.map +1 -1
- package/dist/components/menu/ComplexMenu.js +50 -20
- package/dist/components/menu/ComplexMenu.js.map +1 -1
- package/dist/components/menu/DropdownMenu.d.ts +1 -0
- package/dist/components/menu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/menu/DropdownMenu.js +24 -24
- package/dist/components/menu/DropdownMenu.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.js +59 -49
- package/dist/components/widgets/facet-nav/FacetNavPanel.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetValueChip.d.ts +25 -0
- package/dist/components/widgets/facet-nav/FacetValueChip.d.ts.map +1 -0
- package/dist/components/widgets/facet-nav/FacetValueChip.js +40 -0
- package/dist/components/widgets/facet-nav/FacetValueChip.js.map +1 -0
- package/dist/components/widgets/facet-nav/PlotsContainer.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/PlotsContainer.js +8 -2
- package/dist/components/widgets/facet-nav/PlotsContainer.js.map +1 -1
- package/dist/components/widgets/facet-nav/SelectionCriteriaPill.d.ts +10 -5
- package/dist/components/widgets/facet-nav/SelectionCriteriaPill.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/SelectionCriteriaPill.js +10 -17
- package/dist/components/widgets/facet-nav/SelectionCriteriaPill.js.map +1 -1
- package/dist/components/widgets/facet-nav/SelectionCriteriaPills.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/SelectionCriteriaPills.js +11 -10
- package/dist/components/widgets/facet-nav/SelectionCriteriaPills.js.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js +70 -54
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.d.ts +2 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.js +17 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.js.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.d.ts +2 -0
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.js +7 -7
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.js.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.d.ts.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.js +99 -45
- package/dist/features/curator/dashboard/components/CurationTaskCard.js.map +1 -1
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js +174 -149
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.d.ts +6 -0
- package/dist/features/entity/metadata-task/utils/constants.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.js +19 -2
- package/dist/features/entity/metadata-task/utils/constants.js.map +1 -1
- package/dist/style/components/_total-query-results.scss +10 -34
- package/dist/style/components/facet_nav/_facet-nav-panel.scss +11 -0
- package/dist/style/main.css +1 -1
- package/dist/synapse-queries/curation/task/useCurationTask.d.ts.map +1 -1
- package/dist/synapse-queries/curation/task/useCurationTask.js +1 -1
- package/dist/synapse-queries/curation/task/useCurationTask.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -7,82 +7,87 @@ import "../../../../components/ConfirmationDialog/index.js";
|
|
|
7
7
|
import "../../../../components/ToastMessage/index.js";
|
|
8
8
|
import i from "../../../../components/TextField/TextField.js";
|
|
9
9
|
import "../../../../components/TextField/index.js";
|
|
10
|
-
import te from "../../../../components/
|
|
10
|
+
import { StyledFormControl as te } from "../../../../components/styled/StyledFormControl.js";
|
|
11
|
+
import ne from "../../../../components/UserOrTeamBadge/UserOrTeamBadge.js";
|
|
11
12
|
import a from "../../../../components/UserSearchBox/UserSearchBox.js";
|
|
12
13
|
import { VersionSelectionType as o } from "../../../../components/EntityFinder/VersionSelectionType.js";
|
|
13
14
|
import { FinderScope as s } from "../../../../components/EntityFinder/tree/EntityTree.js";
|
|
14
15
|
import c from "../../../../components/WizardChoiceButton/WizardChoiceButton.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
16
|
+
import re from "../../../../components/WizardChoiceButton/WizardChoiceButtonGroup.js";
|
|
17
|
+
import "../../../../components/styled/index.js";
|
|
18
|
+
import { useCreateCurationTask as ie, useDeleteCurationTask as ae, useGetCurationTaskStatus as oe, useUpdateCurationTask as se, useUpdateCurationTaskStatus as ce } from "../../../../synapse-queries/curation/task/useCurationTask.js";
|
|
19
|
+
import { ASSIGNEE_TOOLTIP as le, AUTH_MODE_NONE_TITLE as ue, AUTH_MODE_NONE_TOOLTIP as de, AUTH_MODE_SESSION_OWNER_TITLE as fe, AUTH_MODE_SESSION_OWNER_TOOLTIP as pe, AUTH_MODE_SOURCE_BENEFACTOR_TITLE as me, AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP as he, COLLABORATORS_TOOLTIP as ge, CREATE_CURATION_TASK_DIALOG_TITLE as _e, DELETE_CURATION_TASK_CONFIRMATION_PROMPT as ve, DELETE_CURATION_TASK_DIALOG_TITLE as ye, DELETE_CURATION_TASK_ERROR_TOAST_PREFIX as be, DELETE_CURATION_TASK_GRID_SESSION_WARNING as xe, DELETE_CURATION_TASK_SUCCESS_TOAST as Se, EDIT_CURATION_TASK_DIALOG_TITLE as Ce, FILE_BASED_FILE_VIEW_INPUT_DESCRIPTION as we, FILE_BASED_TASK_DESCRIPTION as Te, FILE_BASED_TASK_TITLE as Ee, FILE_BASED_UPLOAD_FOLDER_INPUT_DESCRIPTION as De, FILE_VIEW_FINDER_PROMPT as Oe, FILE_VIEW_FINDER_TITLE as ke, RECORD_BASED_RECORD_SET_INPUT_DESCRIPTION as Ae, RECORD_BASED_TASK_DESCRIPTION as je, RECORD_BASED_TASK_TITLE as Me, RECORD_SET_FINDER_PROMPT as Ne, RECORD_SET_FINDER_TITLE as Pe, SELECT_TASK_TYPE_DESCRIPTION as Fe, TASK_INSTRUCTIONS_INPUT_DESCRIPTION as Ie, TASK_NAME_INPUT_DESCRIPTION as Le, TASK_STATUS_CONFIG as Re, UPLOAD_FOLDER_FINDER_PROMPT as ze, UPLOAD_FOLDER_FINDER_TITLE as Be } from "../utils/constants.js";
|
|
18
20
|
import l from "../../../../components/EntityFinder/EntityIdTextField.js";
|
|
19
21
|
import { useState as u } from "react";
|
|
20
|
-
import { Alert as d, Box as f, Button as p, FormControl as
|
|
22
|
+
import { Alert as d, Box as f, Button as p, FormControl as Ve, FormControlLabel as m, FormLabel as He, Grid as h, IconButton as Ue, InputLabel as g, MenuItem as We, Radio as _, RadioGroup as Ge, Select as Ke, Stack as v, Tooltip as y, Typography as b } from "@mui/material";
|
|
21
23
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
22
|
-
import { TYPE_FILTER as
|
|
23
|
-
import { EntityType as
|
|
24
|
-
import { HelpTwoTone as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
24
|
+
import { TYPE_FILTER as w } from "@sage-bionetworks/synapse-types";
|
|
25
|
+
import { EntityType as T, FileBasedMetadataTaskPropertiesConcreteTypeEnum as E, RecordBasedMetadataTaskPropertiesConcreteTypeEnum as D, TaskStatusStateEnum as qe } from "@sage-bionetworks/synapse-client";
|
|
26
|
+
import { HelpTwoTone as O } from "@mui/icons-material";
|
|
27
|
+
import k from "lodash-es/noop";
|
|
28
|
+
import Je from "@mui/icons-material/Close";
|
|
27
29
|
//#region src/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.tsx
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
+
var A = E.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties, j = D.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties;
|
|
31
|
+
function Ye(e) {
|
|
30
32
|
return e === "SESSION_OWNER" || e === "SOURCE_BENEFACTOR" ? e : "NONE";
|
|
31
33
|
}
|
|
32
|
-
function
|
|
33
|
-
let { open:
|
|
34
|
-
let e =
|
|
35
|
-
return e ===
|
|
36
|
-
}), [
|
|
37
|
-
let e =
|
|
38
|
-
return e?.concreteType ===
|
|
39
|
-
}), [
|
|
40
|
-
let e =
|
|
41
|
-
return e?.concreteType ===
|
|
42
|
-
}), [
|
|
43
|
-
let e =
|
|
44
|
-
return e?.concreteType ===
|
|
45
|
-
}), [
|
|
46
|
-
j(e);
|
|
47
|
-
} }), { mutate: ct, isPending: lt, error: ut } = ae({ onSuccess: (e) => {
|
|
48
|
-
j(e);
|
|
49
|
-
} }), { mutate: dt, isPending: ft } = ie({
|
|
34
|
+
function M(E) {
|
|
35
|
+
let { open: D, onCancel: M, onSuccess: N, onDeleteSuccess: Xe = k, projectId: P, task: F } = E, I = F !== void 0, { data: Ze } = n(P), Qe = Ze?.canDelete && I && F?.taskId != null && E.onDeleteSuccess != null, [$e, L] = u(!1), [R, z] = u(() => F ? "COMMON_MUTABLE_FIELDS" : "SELECT_TYPE"), [B, V] = u(() => {
|
|
36
|
+
let e = F?.taskProperties?.concreteType;
|
|
37
|
+
return e === A || e === j ? e : null;
|
|
38
|
+
}), [et, tt] = u(() => F?.dataType ?? ""), [nt, rt] = u(() => F?.instructions ?? ""), [it, at] = u(() => F?.assigneePrincipalId), ot = Ye(F?.taskProperties?.suggestedAuthorizationMode), [H, st] = u(ot), [ct] = u(ot), [U, lt] = u(() => {
|
|
39
|
+
let e = F?.taskProperties;
|
|
40
|
+
return e?.concreteType === A ? e.uploadFolderId ?? "" : "";
|
|
41
|
+
}), [W, ut] = u(() => {
|
|
42
|
+
let e = F?.taskProperties;
|
|
43
|
+
return e?.concreteType === A ? e.fileViewId ?? "" : "";
|
|
44
|
+
}), [G, dt] = u(() => {
|
|
45
|
+
let e = F?.taskProperties;
|
|
46
|
+
return e?.concreteType === j ? e.recordSetId ?? "" : "";
|
|
47
|
+
}), [K, ft] = u(() => F?.taskProperties?.collaboratorPrincipalIds ?? []), [q, pt] = u(null), { data: J, isFetching: mt } = oe(F?.taskId ?? 0, { enabled: I && F?.taskId != null }), [Y, ht] = u(void 0), gt = Y ?? J?.state, { mutateAsync: _t, isPending: vt, error: yt } = ie(), { mutateAsync: bt, isPending: xt, error: St } = se(), { mutateAsync: Ct, isPending: wt, error: Tt } = ce(), { mutate: Et, isPending: Dt } = ae({
|
|
50
48
|
onSuccess: () => {
|
|
51
|
-
e(
|
|
49
|
+
e(Se, "success"), L(!1), Xe();
|
|
52
50
|
},
|
|
53
51
|
onError: (t) => {
|
|
54
|
-
e(
|
|
52
|
+
e(be + t.message, "danger");
|
|
55
53
|
}
|
|
56
|
-
}), X =
|
|
57
|
-
function
|
|
58
|
-
let e =
|
|
59
|
-
return n = t ===
|
|
60
|
-
concreteType:
|
|
61
|
-
uploadFolderId:
|
|
62
|
-
fileViewId:
|
|
54
|
+
}), X = vt || xt || Dt || wt, Z = yt ?? St ?? Tt, Ot = B === A && U && W || B === j && G;
|
|
55
|
+
function kt() {
|
|
56
|
+
let e = H === "NONE" ? void 0 : H, t = B, n, r = K.length > 0 ? K : void 0;
|
|
57
|
+
return n = t === A ? {
|
|
58
|
+
concreteType: A,
|
|
59
|
+
uploadFolderId: U || void 0,
|
|
60
|
+
fileViewId: W || void 0,
|
|
63
61
|
suggestedAuthorizationMode: e,
|
|
64
62
|
collaboratorPrincipalIds: r
|
|
65
63
|
} : {
|
|
66
|
-
concreteType:
|
|
67
|
-
recordSetId:
|
|
64
|
+
concreteType: j,
|
|
65
|
+
recordSetId: G || void 0,
|
|
68
66
|
suggestedAuthorizationMode: e,
|
|
69
67
|
collaboratorPrincipalIds: r
|
|
70
68
|
}, {
|
|
71
|
-
...
|
|
72
|
-
projectId:
|
|
73
|
-
dataType:
|
|
74
|
-
instructions:
|
|
75
|
-
assigneePrincipalId:
|
|
69
|
+
...I ? F : {},
|
|
70
|
+
projectId: P,
|
|
71
|
+
dataType: et || void 0,
|
|
72
|
+
instructions: nt || void 0,
|
|
73
|
+
assigneePrincipalId: it || void 0,
|
|
76
74
|
taskProperties: n
|
|
77
75
|
};
|
|
78
76
|
}
|
|
79
|
-
function
|
|
80
|
-
let e =
|
|
81
|
-
|
|
77
|
+
async function At() {
|
|
78
|
+
let e = kt();
|
|
79
|
+
if (I) {
|
|
80
|
+
let t = await bt(e);
|
|
81
|
+
Y !== void 0 && Y !== J?.state && J != null && await Ct({
|
|
82
|
+
...J,
|
|
83
|
+
state: Y,
|
|
84
|
+
etag: t.etag
|
|
85
|
+
}), N(t);
|
|
86
|
+
} else N(await _t(e));
|
|
82
87
|
}
|
|
83
|
-
let
|
|
84
|
-
value:
|
|
85
|
-
onChange: (e, t) =>
|
|
88
|
+
let jt = I && H !== ct, Mt = /* @__PURE__ */ C(Ve, { children: [/* @__PURE__ */ S(He, { children: "Authorization Mode" }), /* @__PURE__ */ C(Ge, {
|
|
89
|
+
value: H,
|
|
90
|
+
onChange: (e, t) => st(t),
|
|
86
91
|
children: [
|
|
87
92
|
/* @__PURE__ */ S(m, {
|
|
88
93
|
value: "NONE",
|
|
@@ -95,10 +100,10 @@ function A(T) {
|
|
|
95
100
|
},
|
|
96
101
|
children: [/* @__PURE__ */ S(b, {
|
|
97
102
|
variant: "body1",
|
|
98
|
-
children:
|
|
103
|
+
children: ue
|
|
99
104
|
}), /* @__PURE__ */ S(y, {
|
|
100
|
-
title:
|
|
101
|
-
children: /* @__PURE__ */ S(
|
|
105
|
+
title: de,
|
|
106
|
+
children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } })
|
|
102
107
|
})]
|
|
103
108
|
})
|
|
104
109
|
}),
|
|
@@ -113,10 +118,10 @@ function A(T) {
|
|
|
113
118
|
},
|
|
114
119
|
children: [/* @__PURE__ */ S(b, {
|
|
115
120
|
variant: "body1",
|
|
116
|
-
children:
|
|
121
|
+
children: fe
|
|
117
122
|
}), /* @__PURE__ */ S(y, {
|
|
118
|
-
title:
|
|
119
|
-
children: /* @__PURE__ */ S(
|
|
123
|
+
title: pe,
|
|
124
|
+
children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } })
|
|
120
125
|
})]
|
|
121
126
|
})
|
|
122
127
|
}),
|
|
@@ -131,15 +136,15 @@ function A(T) {
|
|
|
131
136
|
},
|
|
132
137
|
children: [/* @__PURE__ */ S(b, {
|
|
133
138
|
variant: "body1",
|
|
134
|
-
children:
|
|
139
|
+
children: me
|
|
135
140
|
}), /* @__PURE__ */ S(y, {
|
|
136
|
-
title:
|
|
137
|
-
children: /* @__PURE__ */ S(
|
|
141
|
+
title: he,
|
|
142
|
+
children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } })
|
|
138
143
|
})]
|
|
139
144
|
})
|
|
140
145
|
})
|
|
141
146
|
]
|
|
142
|
-
})] }),
|
|
147
|
+
})] }), Nt = /* @__PURE__ */ C(f, { children: [/* @__PURE__ */ C(f, {
|
|
143
148
|
sx: {
|
|
144
149
|
display: "flex",
|
|
145
150
|
alignItems: "center",
|
|
@@ -149,33 +154,33 @@ function A(T) {
|
|
|
149
154
|
htmlFor: "dlg-set-task-assignee",
|
|
150
155
|
children: "Assignee"
|
|
151
156
|
}), /* @__PURE__ */ S(y, {
|
|
152
|
-
title:
|
|
153
|
-
children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(
|
|
157
|
+
title: le,
|
|
158
|
+
children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } }) })
|
|
154
159
|
})]
|
|
155
160
|
}), /* @__PURE__ */ S(a, {
|
|
156
161
|
inputId: "dlg-set-task-assignee",
|
|
157
|
-
defaultValue:
|
|
158
|
-
onChange: (e) =>
|
|
159
|
-
typeFilter:
|
|
160
|
-
},
|
|
162
|
+
defaultValue: it,
|
|
163
|
+
onChange: (e) => at(e ?? void 0),
|
|
164
|
+
typeFilter: w.ALL
|
|
165
|
+
}, D.toString())] }), Pt = /* @__PURE__ */ C(v, {
|
|
161
166
|
gap: 2,
|
|
162
167
|
children: [
|
|
163
168
|
/* @__PURE__ */ S(i, {
|
|
164
169
|
label: "Task Name",
|
|
165
170
|
fullWidth: !0,
|
|
166
|
-
value:
|
|
167
|
-
onChange: (e) =>
|
|
171
|
+
value: et,
|
|
172
|
+
onChange: (e) => tt(e.target.value),
|
|
168
173
|
required: !0,
|
|
169
|
-
description:
|
|
174
|
+
description: Le
|
|
170
175
|
}),
|
|
171
176
|
/* @__PURE__ */ S(i, {
|
|
172
177
|
label: "Instructions",
|
|
173
178
|
fullWidth: !0,
|
|
174
179
|
multiline: !0,
|
|
175
180
|
minRows: 3,
|
|
176
|
-
value:
|
|
177
|
-
onChange: (e) =>
|
|
178
|
-
description:
|
|
181
|
+
value: nt,
|
|
182
|
+
onChange: (e) => rt(e.target.value),
|
|
183
|
+
description: Ie
|
|
179
184
|
}),
|
|
180
185
|
/* @__PURE__ */ C(f, {
|
|
181
186
|
display: "none",
|
|
@@ -186,8 +191,8 @@ function A(T) {
|
|
|
186
191
|
gap: .5
|
|
187
192
|
},
|
|
188
193
|
children: [/* @__PURE__ */ S(g, { children: "Collaborators" }), /* @__PURE__ */ S(y, {
|
|
189
|
-
title:
|
|
190
|
-
children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(
|
|
194
|
+
title: ge,
|
|
195
|
+
children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } }) })
|
|
191
196
|
})]
|
|
192
197
|
}), /* @__PURE__ */ C(v, {
|
|
193
198
|
gap: 1,
|
|
@@ -198,43 +203,43 @@ function A(T) {
|
|
|
198
203
|
children: [/* @__PURE__ */ S(f, {
|
|
199
204
|
flex: 1,
|
|
200
205
|
children: /* @__PURE__ */ S(a, {
|
|
201
|
-
value:
|
|
202
|
-
onChange: (e) =>
|
|
203
|
-
typeFilter:
|
|
206
|
+
value: q,
|
|
207
|
+
onChange: (e) => pt(e),
|
|
208
|
+
typeFilter: w.ALL,
|
|
204
209
|
placeholder: "Search for a user or team"
|
|
205
210
|
})
|
|
206
211
|
}), /* @__PURE__ */ S(p, {
|
|
207
212
|
variant: "outlined",
|
|
208
213
|
onClick: () => {
|
|
209
|
-
|
|
214
|
+
q && !K.includes(q) && ft((e) => [...e, q]), pt(null);
|
|
210
215
|
},
|
|
211
|
-
disabled: !
|
|
216
|
+
disabled: !q,
|
|
212
217
|
children: "Add"
|
|
213
218
|
})]
|
|
214
|
-
}),
|
|
219
|
+
}), K.map((e) => /* @__PURE__ */ C(v, {
|
|
215
220
|
direction: "row",
|
|
216
221
|
alignItems: "center",
|
|
217
222
|
justifyContent: "space-between",
|
|
218
|
-
children: [/* @__PURE__ */ S(
|
|
223
|
+
children: [/* @__PURE__ */ S(ne, { principalId: e }), /* @__PURE__ */ S(Ue, {
|
|
219
224
|
size: "small",
|
|
220
|
-
onClick: () =>
|
|
221
|
-
children: /* @__PURE__ */ S(
|
|
225
|
+
onClick: () => ft((t) => t.filter((t) => t !== e)),
|
|
226
|
+
children: /* @__PURE__ */ S(Je, { fontSize: "small" })
|
|
222
227
|
})]
|
|
223
228
|
}, e))]
|
|
224
229
|
})]
|
|
225
230
|
})
|
|
226
231
|
]
|
|
227
|
-
}),
|
|
232
|
+
}), Ft = /* @__PURE__ */ C(v, {
|
|
228
233
|
gap: 2,
|
|
229
234
|
children: [/* @__PURE__ */ S(l, {
|
|
230
235
|
label: "Upload Folder ID",
|
|
231
|
-
value:
|
|
232
|
-
description:
|
|
233
|
-
onChange:
|
|
234
|
-
disabled:
|
|
236
|
+
value: U,
|
|
237
|
+
description: De,
|
|
238
|
+
onChange: lt,
|
|
239
|
+
disabled: I,
|
|
235
240
|
entityFinderModalProps: {
|
|
236
|
-
title:
|
|
237
|
-
promptCopy:
|
|
241
|
+
title: Be,
|
|
242
|
+
promptCopy: ze,
|
|
238
243
|
confirmButtonCopy: "Select",
|
|
239
244
|
configuration: {
|
|
240
245
|
initialScope: s.ALL_PROJECTS,
|
|
@@ -247,13 +252,13 @@ function A(T) {
|
|
|
247
252
|
}
|
|
248
253
|
}), /* @__PURE__ */ S(l, {
|
|
249
254
|
label: "File View ID",
|
|
250
|
-
value:
|
|
251
|
-
description:
|
|
252
|
-
onChange:
|
|
253
|
-
disabled:
|
|
255
|
+
value: W,
|
|
256
|
+
description: we,
|
|
257
|
+
onChange: ut,
|
|
258
|
+
disabled: I,
|
|
254
259
|
entityFinderModalProps: {
|
|
255
|
-
title:
|
|
256
|
-
promptCopy:
|
|
260
|
+
title: ke,
|
|
261
|
+
promptCopy: Oe,
|
|
257
262
|
confirmButtonCopy: "Select",
|
|
258
263
|
configuration: {
|
|
259
264
|
initialScope: s.ALL_PROJECTS,
|
|
@@ -261,19 +266,19 @@ function A(T) {
|
|
|
261
266
|
selectMultiple: !1,
|
|
262
267
|
treeOnly: !1,
|
|
263
268
|
versionSelection: o.DISALLOWED,
|
|
264
|
-
selectableTypes: [
|
|
269
|
+
selectableTypes: [T.entityview]
|
|
265
270
|
}
|
|
266
271
|
}
|
|
267
272
|
})]
|
|
268
|
-
}),
|
|
273
|
+
}), It = /* @__PURE__ */ S(l, {
|
|
269
274
|
label: "Record Set ID",
|
|
270
|
-
value:
|
|
271
|
-
description:
|
|
272
|
-
onChange:
|
|
273
|
-
disabled:
|
|
275
|
+
value: G,
|
|
276
|
+
description: Ae,
|
|
277
|
+
onChange: dt,
|
|
278
|
+
disabled: I,
|
|
274
279
|
entityFinderModalProps: {
|
|
275
|
-
title:
|
|
276
|
-
promptCopy:
|
|
280
|
+
title: Pe,
|
|
281
|
+
promptCopy: Ne,
|
|
277
282
|
confirmButtonCopy: "Select",
|
|
278
283
|
configuration: {
|
|
279
284
|
initialScope: s.ALL_PROJECTS,
|
|
@@ -281,31 +286,31 @@ function A(T) {
|
|
|
281
286
|
selectMultiple: !1,
|
|
282
287
|
treeOnly: !1,
|
|
283
288
|
versionSelection: o.DISALLOWED,
|
|
284
|
-
selectableTypes: [
|
|
289
|
+
selectableTypes: [T.recordset]
|
|
285
290
|
}
|
|
286
291
|
}
|
|
287
|
-
}),
|
|
292
|
+
}), Lt = /* @__PURE__ */ C(v, {
|
|
288
293
|
gap: 2,
|
|
289
294
|
children: [/* @__PURE__ */ S(b, {
|
|
290
295
|
variant: "body1",
|
|
291
|
-
children:
|
|
292
|
-
}), /* @__PURE__ */ C(
|
|
293
|
-
title:
|
|
294
|
-
description:
|
|
296
|
+
children: Fe
|
|
297
|
+
}), /* @__PURE__ */ C(re, { children: [/* @__PURE__ */ S(c, {
|
|
298
|
+
title: Ee,
|
|
299
|
+
description: Te,
|
|
295
300
|
onClick: () => {
|
|
296
|
-
|
|
301
|
+
V(A), z("TYPE_SPECIFIC_FIELDS");
|
|
297
302
|
}
|
|
298
303
|
}), /* @__PURE__ */ S(c, {
|
|
299
|
-
title:
|
|
300
|
-
description:
|
|
304
|
+
title: Me,
|
|
305
|
+
description: je,
|
|
301
306
|
onClick: () => {
|
|
302
|
-
|
|
307
|
+
V(j), z("TYPE_SPECIFIC_FIELDS");
|
|
303
308
|
}
|
|
304
309
|
})] })]
|
|
305
|
-
}),
|
|
310
|
+
}), Rt = /* @__PURE__ */ C(v, {
|
|
306
311
|
gap: 2,
|
|
307
|
-
children: [
|
|
308
|
-
}),
|
|
312
|
+
children: [B === A && Ft, B === j && It]
|
|
313
|
+
}), zt = /* @__PURE__ */ C(v, {
|
|
309
314
|
gap: 3,
|
|
310
315
|
children: [
|
|
311
316
|
/* @__PURE__ */ C(h, {
|
|
@@ -319,7 +324,7 @@ function A(T) {
|
|
|
319
324
|
},
|
|
320
325
|
children: /* @__PURE__ */ S(v, {
|
|
321
326
|
gap: 2,
|
|
322
|
-
children:
|
|
327
|
+
children: Pt
|
|
323
328
|
})
|
|
324
329
|
}), /* @__PURE__ */ S(h, {
|
|
325
330
|
size: {
|
|
@@ -328,15 +333,35 @@ function A(T) {
|
|
|
328
333
|
},
|
|
329
334
|
children: /* @__PURE__ */ C(v, {
|
|
330
335
|
gap: 3,
|
|
331
|
-
children: [
|
|
336
|
+
children: [
|
|
337
|
+
I && /* @__PURE__ */ C(te, {
|
|
338
|
+
fullWidth: !0,
|
|
339
|
+
children: [/* @__PURE__ */ S(g, {
|
|
340
|
+
id: "dlg-task-status-label",
|
|
341
|
+
children: "Status"
|
|
342
|
+
}), /* @__PURE__ */ S(Ke, {
|
|
343
|
+
labelId: "dlg-task-status-label",
|
|
344
|
+
value: gt ?? "",
|
|
345
|
+
label: "Status",
|
|
346
|
+
disabled: mt || J == null,
|
|
347
|
+
onChange: (e) => ht(e.target.value),
|
|
348
|
+
children: Object.values(qe).map((e) => /* @__PURE__ */ S(We, {
|
|
349
|
+
value: e,
|
|
350
|
+
children: Re[e].label
|
|
351
|
+
}, e))
|
|
352
|
+
})]
|
|
353
|
+
}),
|
|
354
|
+
Nt,
|
|
355
|
+
Mt
|
|
356
|
+
]
|
|
332
357
|
})
|
|
333
358
|
})]
|
|
334
359
|
}),
|
|
335
|
-
|
|
360
|
+
I && B === null && /* @__PURE__ */ S(d, {
|
|
336
361
|
severity: "error",
|
|
337
362
|
children: "This task has an unrecognized task type and cannot be edited here."
|
|
338
363
|
}),
|
|
339
|
-
|
|
364
|
+
jt && /* @__PURE__ */ S(d, {
|
|
340
365
|
severity: "warning",
|
|
341
366
|
children: "Changing the Authorization Mode will clear the active session ID on this task. Any in-progress grid session linked to this task will no longer be associated with it."
|
|
342
367
|
}),
|
|
@@ -345,56 +370,56 @@ function A(T) {
|
|
|
345
370
|
children: Z.reason ?? "An error occurred. Please try again."
|
|
346
371
|
})
|
|
347
372
|
]
|
|
348
|
-
}),
|
|
349
|
-
switch (
|
|
373
|
+
}), Bt = I ? Ce : _e, Q = null;
|
|
374
|
+
switch (R) {
|
|
350
375
|
case "SELECT_TYPE":
|
|
351
|
-
Q =
|
|
376
|
+
Q = Lt;
|
|
352
377
|
break;
|
|
353
378
|
case "TYPE_SPECIFIC_FIELDS":
|
|
354
|
-
Q =
|
|
379
|
+
Q = Rt;
|
|
355
380
|
break;
|
|
356
381
|
case "COMMON_MUTABLE_FIELDS":
|
|
357
|
-
Q =
|
|
382
|
+
Q = zt;
|
|
358
383
|
break;
|
|
359
384
|
}
|
|
360
385
|
let $ = null;
|
|
361
|
-
switch (
|
|
386
|
+
switch (R) {
|
|
362
387
|
case "SELECT_TYPE":
|
|
363
388
|
$ = null;
|
|
364
389
|
break;
|
|
365
390
|
case "TYPE_SPECIFIC_FIELDS":
|
|
366
391
|
$ = /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(p, {
|
|
367
392
|
variant: "outlined",
|
|
368
|
-
onClick: () =>
|
|
393
|
+
onClick: () => z("SELECT_TYPE"),
|
|
369
394
|
disabled: X,
|
|
370
395
|
children: "Back"
|
|
371
396
|
}), /* @__PURE__ */ S(p, {
|
|
372
397
|
variant: "contained",
|
|
373
|
-
onClick: () =>
|
|
374
|
-
disabled: X || !
|
|
398
|
+
onClick: () => z("COMMON_MUTABLE_FIELDS"),
|
|
399
|
+
disabled: X || !Ot,
|
|
375
400
|
children: "Next"
|
|
376
401
|
})] });
|
|
377
402
|
break;
|
|
378
403
|
case "COMMON_MUTABLE_FIELDS":
|
|
379
|
-
$ = /* @__PURE__ */ C(x, { children: [!
|
|
404
|
+
$ = /* @__PURE__ */ C(x, { children: [!I && /* @__PURE__ */ S(p, {
|
|
380
405
|
variant: "outlined",
|
|
381
|
-
onClick: () =>
|
|
406
|
+
onClick: () => z("TYPE_SPECIFIC_FIELDS"),
|
|
382
407
|
disabled: X,
|
|
383
408
|
children: "Back"
|
|
384
409
|
}), /* @__PURE__ */ S(p, {
|
|
385
410
|
variant: "contained",
|
|
386
|
-
onClick:
|
|
387
|
-
disabled: X ||
|
|
411
|
+
onClick: () => void At().catch(k),
|
|
412
|
+
disabled: X || B === null,
|
|
388
413
|
children: "Save"
|
|
389
414
|
})] });
|
|
390
415
|
break;
|
|
391
416
|
}
|
|
392
417
|
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(r, {
|
|
393
|
-
open:
|
|
394
|
-
title:
|
|
418
|
+
open: D,
|
|
419
|
+
title: Bt,
|
|
395
420
|
maxWidth: "md",
|
|
396
421
|
fullWidth: !0,
|
|
397
|
-
onCancel:
|
|
422
|
+
onCancel: M,
|
|
398
423
|
content: Q,
|
|
399
424
|
actions: /* @__PURE__ */ C(v, {
|
|
400
425
|
direction: "row",
|
|
@@ -402,10 +427,10 @@ function A(T) {
|
|
|
402
427
|
justifyContent: "space-between",
|
|
403
428
|
alignItems: "center",
|
|
404
429
|
width: "100%",
|
|
405
|
-
children: [/* @__PURE__ */ S(f, { children:
|
|
430
|
+
children: [/* @__PURE__ */ S(f, { children: Qe && /* @__PURE__ */ S(p, {
|
|
406
431
|
variant: "outlined",
|
|
407
432
|
color: "error",
|
|
408
|
-
onClick: () =>
|
|
433
|
+
onClick: () => L(!0),
|
|
409
434
|
disabled: X,
|
|
410
435
|
children: "Delete"
|
|
411
436
|
}) }), /* @__PURE__ */ S(v, {
|
|
@@ -415,30 +440,30 @@ function A(T) {
|
|
|
415
440
|
})]
|
|
416
441
|
})
|
|
417
442
|
}), /* @__PURE__ */ S(ee, {
|
|
418
|
-
title:
|
|
419
|
-
open:
|
|
443
|
+
title: ye,
|
|
444
|
+
open: $e,
|
|
420
445
|
content: /* @__PURE__ */ C(v, {
|
|
421
446
|
gap: 2,
|
|
422
447
|
children: [/* @__PURE__ */ S(b, {
|
|
423
448
|
variant: "body1",
|
|
424
|
-
children:
|
|
449
|
+
children: ve
|
|
425
450
|
}), /* @__PURE__ */ S(d, {
|
|
426
451
|
severity: "warning",
|
|
427
|
-
children:
|
|
452
|
+
children: xe
|
|
428
453
|
})]
|
|
429
454
|
}),
|
|
430
455
|
confirmButtonProps: {
|
|
431
456
|
children: "Delete",
|
|
432
457
|
color: "error",
|
|
433
|
-
loading:
|
|
458
|
+
loading: Dt
|
|
434
459
|
},
|
|
435
460
|
onConfirm: () => {
|
|
436
|
-
|
|
461
|
+
F?.taskId != null && Et(F.taskId);
|
|
437
462
|
},
|
|
438
|
-
onCancel: () =>
|
|
463
|
+
onCancel: () => L(!1)
|
|
439
464
|
})] });
|
|
440
465
|
}
|
|
441
466
|
//#endregion
|
|
442
|
-
export {
|
|
467
|
+
export { M as default };
|
|
443
468
|
|
|
444
469
|
//# sourceMappingURL=CreateOrUpdateCurationTaskDialog.js.map
|