UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

120 lines (119 loc) 3.42 kB
import { jsxs as s, jsx as e, Fragment as n } from "react/jsx-runtime"; import { Link as a } from "@mui/material"; import { EntityType as o } from "@sage-bionetworks/synapse-client"; import { ENTITY_VIEW_TYPE_MASK_PROJECT as c } from "@sage-bionetworks/synapse-types"; import r from "../WizardChoiceButton/WizardChoiceButton.js"; import l from "../WizardChoiceButton/WizardChoiceButtonDescription.js"; import p from "../WizardChoiceButton/WizardChoiceButtonGroup.js"; const d = /* @__PURE__ */ s(n, { children: [ /* @__PURE__ */ e(l, { children: "This view lists all files, folders, and/or tables in the selected folders or projects." }), /* @__PURE__ */ e( a, { href: "https://help.synapse.org/docs/Views.2011070739.html#Views-CreatingaFileView", target: "_blank", onClick: (i) => { i.stopPropagation(); }, children: "More about File Views" } ) ] }), h = /* @__PURE__ */ s(n, { children: [ /* @__PURE__ */ e(l, { children: "This view lists all (and only) your selected projects." }), /* @__PURE__ */ e( a, { href: "https://help.synapse.org/docs/Views.2011070739.html#Views-CreatingaProjectView", target: "_blank", onClick: (i) => { i.stopPropagation(); }, children: "More about Project Views" } ) ] }), m = /* @__PURE__ */ s(n, { children: [ /* @__PURE__ */ e(l, { children: "This view lists all submissions within one or more evaluation queues." }), /* @__PURE__ */ e( a, { href: "https://help.synapse.org/docs/Views.2011070739.html#Views-CreatingaSubmissionView", target: "_blank", onClick: (i) => { i.stopPropagation(); }, children: "More about Submission Views" } ) ] }), u = /* @__PURE__ */ s(n, { children: [ /* @__PURE__ */ e(l, { children: "The results of a query across multiple sources, defined by a SQL statement." }), /* @__PURE__ */ e( a, { href: "https://help.synapse.org/docs/Combining-Data-from-Multiple-Table-Sources.2973270158.html", target: "_blank", onClick: (i) => { i.stopPropagation(); }, children: "More about Materialized Views" } ) ] }), w = /* @__PURE__ */ e(l, { children: "A saved query on another table or view where complex filters can be applied to aggregated results." }); function E(i) { const { onTypeSelected: t } = i; return /* @__PURE__ */ s(p, { children: [ /* @__PURE__ */ e( r, { title: "Files, Folders, and Other Objects", description: d, onClick: () => { t(o.entityview); } } ), /* @__PURE__ */ e( r, { title: "Projects", description: h, onClick: () => { t(o.entityview, c); } } ), /* @__PURE__ */ e( r, { title: "Challenge Submissions", description: m, onClick: () => { t(o.submissionview); } } ), /* @__PURE__ */ e( r, { title: "Materialized View", description: u, onClick: () => { t(o.materializedview); } } ), /* @__PURE__ */ e( r, { title: "Virtual Table", description: w, onClick: () => { t(o.virtualtable); } } ) ] }); } export { E as default }; //# sourceMappingURL=ViewTypeSelection.js.map