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

51 lines (50 loc) 1.54 kB
import { jsx as n } from "react/jsx-runtime"; import { PRODUCTION_ENDPOINT_CONFIG as d } from "../../utils/functions/getEndpoint.js"; import { Checkbox as r, Link as s, Typography as c } from "@mui/material"; import { EntityLink as g } from "../EntityLink.js"; function y(t) { const { cell: e } = t, { row: i } = e, { original: l } = i, { id: o, isDummy: a } = l; return a ? /* @__PURE__ */ n(s, { href: `${d.PORTAL}Synapse:${o}`, children: o }) : /* @__PURE__ */ n(g, { entity: l }); } function f(t) { const { cell: e } = t; return /* @__PURE__ */ n(c, { variant: "body1", children: e.getContext().getValue() }); } function S(t) { const { cell: e } = t; return /* @__PURE__ */ n(c, { variant: "body1", sx: { textTransform: "capitalize" }, children: e.getContext().getValue() }); } function h(t) { const { table: e } = t; return /* @__PURE__ */ n( r, { inputProps: { "aria-label": "Select All" }, checked: e.getIsAllRowsSelected(), indeterminate: e.getIsSomeRowsSelected(), onClick: e.getToggleAllRowsSelectedHandler() } ); } function k(t) { const { row: e } = t; return /* @__PURE__ */ n( r, { checked: e.getIsSelected(), disabled: !e.getCanSelect(), indeterminate: e.getIsSomeSelected(), onClick: e.getToggleSelectedHandler() } ); } export { k as CheckBoxCell, h as CheckBoxHeader, f as EntityHeaderIDCell, y as EntityHeaderNameCell, S as EntityHeaderTypeCell }; //# sourceMappingURL=EntityHeaderTableCellRenderers.js.map