Mercurial > repos > fubar > jbrowse2
comparison x/static/js/8984.1a816123.chunk.js.map @ 125:49f3d3878413 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author | fubar |
---|---|
date | Sat, 05 Oct 2024 23:58:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
124:137e08517410 | 125:49f3d3878413 |
---|---|
1 {"version":3,"file":"static/js/8984.1a816123.chunk.js","mappings":"2MAQA,MAAMA,GAAYC,EAAAA,EAAAA,KAAAA,EAAaC,IAAS,CACtCC,WAAY,CACVC,UAAW,aACXC,UAAW,IACXC,SAAU,GACVC,QAASL,EAAMM,QAAQ,IACvBC,SAAU,YAIC,SAASC,GAAW,MAAEC,IACnC,MAAM,QAAEC,GAAYZ,IACda,EAAS,eAAeC,KAAK,GAAGH,KACtC,OACEI,EAAAA,cAAA,OAAKC,UAAWJ,EAAQT,YACrBY,EAAAA,eAAqBJ,GACpBA,EACEE,EACFE,EAAAA,cAACE,EAAAA,EAAI,CAACC,KAAM,GAAGP,KAAU,GAAGA,KAE5BI,EAAAA,cAACI,EAAAA,cAAa,CACZC,KAAMC,IAASV,GAASW,KAAKC,UAAUZ,GAASa,OAAOb,KAKjE,C,4DC9BA,MAAMX,GAAYC,E,SAAAA,KAAAA,EAAaC,IAAS,CACtCuB,iBAAkB,CAChB,UAAW,CACTC,WAAmC,SAAvBxB,EAAMyB,QAAQC,KAAkB,UAAY,WAG5DC,UAAW,CACTzB,UAAW,YACX0B,SAAU,GACVC,aAAc,kBACdzB,SAAU,GACVoB,WAAYxB,EAAMyB,QAAQK,OAAOC,mBACjCC,YAAahC,EAAMM,QAAQ,GAC3BD,QAASL,EAAMM,QAAQ,SAIZ,SAAS2B,GAAU,YAChCC,EAAW,KACXC,EAAI,MACJC,EAAK,OACLC,EAAS,KAOT,MAAM,QAAE3B,EAAO,GAAE4B,GAAOxC,IAClByC,EAAM,IAAIF,EA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sL,EAAeX,EAAaY,GAC1C,IAAKZ,EAAI7I,OACP,MAAO,GAGT,MAAM+I,EAAWF,EAAIG,GAAG,GAElBC,EAAUJ,EAAIG,IAAI,GAWxB,MAAO,IATU,CAAC,CAAElD,MAAO2D,EAAW3D,MAAOC,IAAKgD,EAASjD,QAAS3G,KAClE4E,IAAO,IAAMA,EAAK7F,KAAM,wBAGR,CAAC,CAAE4H,MAAOmD,EAAQlD,IAAKA,IAAK0D,EAAW1D,MAAO5G,KAAI4E,IAAO,IACtEA,EACH7F,KAAM,sBAIV,CAEO,SAASC,EAASuL,GACvB,OAAOA,EAAK1J,OAAS,GAAK,GAAG0J,EAAK1B,MAAM,EAAG,SAAW0B,CACxD,C","sources":["../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/BasicValue.tsx","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/FieldName.tsx","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/SimpleField.tsx","../../../packages/core/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.tsx","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/util.ts","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.tsx","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.tsx","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/UriField.tsx","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/Attributes.tsx","../../../packages/core/BaseFeatureWidget/BaseFeatureDetail/index.tsx","../../../packages/core/BaseFeatureWidget/util.tsx"],"sourcesContent":["import React from 'react'\nimport { makeStyles } from 'tss-react/mui'\nimport isObject from 'is-object'\nimport { Link } from '@mui/material'\n\n// locals\nimport { SanitizedHTML } from '../../ui'\n\nconst useStyles = makeStyles()(theme => ({\n fieldValue: {\n wordBreak: 'break-word',\n maxHeight: 300,\n fontSize: 12,\n padding: theme.spacing(0.5),\n overflow: 'auto',\n },\n}))\n\nexport default function BasicValue({ value }: { value: unknown }) {\n const { classes } = useStyles()\n const isLink = /^https?:\\/\\//.exec(`${value}`)\n return (\n <div className={classes.fieldValue}>\n {React.isValidElement(value) ? (\n value\n ) : isLink ? (\n <Link href={`${value}`}>{`${value}`}</Link>\n ) : (\n <SanitizedHTML\n html={isObject(value) ? JSON.stringify(value) : String(value)}\n />\n )}\n </div>\n )\n}\n","import React from 'react'\nimport { Tooltip } from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\n\nconst useStyles = makeStyles()(theme => ({\n fieldDescription: {\n '&:hover': {\n background: theme.palette.mode === 'dark' ? '#e65100' : 'yellow',\n },\n },\n fieldName: {\n wordBreak: 'break-all',\n minWidth: 90,\n borderBottom: '1px solid #0003',\n fontSize: 12,\n background: theme.palette.action.disabledBackground,\n marginRight: theme.spacing(1),\n padding: theme.spacing(0.5),\n },\n}))\n\nexport default function FieldName({\n description,\n name,\n width,\n prefix = [],\n}: {\n description?: React.ReactNode\n name: string\n prefix?: string[]\n width?: number\n}) {\n const { classes, cx } = useStyles()\n const val = [...prefix, name].join('.')\n return description ? (\n <Tooltip title={description} placement=\"left\">\n <div className={cx(classes.fieldDescription, classes.fieldName)}>\n {val}\n </div>\n </Tooltip>\n ) : (\n <div className={classes.fieldName} style={{ width: width }}>\n {val}\n </div>\n )\n}\n","import React from 'react'\nimport { makeStyles } from 'tss-react/mui'\nimport FieldName from './FieldName'\nimport BasicValue from './BasicValue'\n\nconst useStyles = makeStyles()({\n field: {\n display: 'flex',\n flexWrap: 'wrap',\n },\n})\n\nexport default function SimpleField({\n name,\n value,\n description,\n prefix,\n width,\n}: {\n description?: React.ReactNode\n name: string\n value: unknown\n prefix?: string[]\n width?: number\n}) {\n const { classes } = useStyles()\n return value !== null && value !== undefined ? (\n <div className={classes.field}>\n <FieldName\n prefix={prefix}\n description={description}\n name={name}\n width={width}\n />\n <BasicValue value={value} />\n </div>\n ) : null\n}\n","import React, { lazy, useState, Suspense } from 'react'\nimport { Button, FormControl, IconButton } from '@mui/material'\nimport { observer } from 'mobx-react'\nimport { makeStyles } from 'tss-react/mui'\n\n// locals\nimport { LoadingEllipses } from '../../ui'\nimport { BaseFeatureWidgetModel } from '../stateModelFactory'\nimport { SimpleFeatureSerialized, getSession } from '../../util'\n\n// icons\nimport Help from '@mui/icons-material/Help'\n\n// lazies\nconst SequenceFeatureDetails = lazy(() => import('./SequenceFeatureDetails'))\nconst HelpDialog = lazy(() => import('./dialogs/HelpDialog'))\n\nconst useStyles = makeStyles()(theme => ({\n formControl: {\n margin: 0,\n },\n\n container: {\n marginTop: theme.spacing(4),\n marginBottom: theme.spacing(4),\n },\n}))\n\n// display the stitched-together sequence of a gene's CDS, cDNA, or protein\n// sequence. this is a best effort and weird genomic phenomena could lead these\n// to not be 100% accurate\nconst SequenceFeaturePanel = observer(function ({\n model,\n feature,\n}: {\n model: BaseFeatureWidgetModel\n feature: SimpleFeatureSerialized\n}) {\n const { classes } = useStyles()\n const [shown, setShown] = useState(false)\n\n return (\n <div className={classes.container}>\n <FormControl className={classes.formControl}>\n <Button\n variant=\"contained\"\n onClick={() => {\n setShown(!shown)\n }}\n >\n {shown ? 'Hide feature sequence' : 'Show feature sequence'}\n </Button>\n </FormControl>\n\n <IconButton\n onClick={() => {\n getSession(model).queueDialog(handleClose => [\n HelpDialog,\n { handleClose },\n ])\n }}\n >\n <Help />\n </IconButton>\n {shown ? (\n <Suspense fallback={<LoadingEllipses />}>\n <SequenceFeatureDetails\n key={feature.uniqueId}\n model={model}\n feature={feature}\n />\n </Suspense>\n ) : null}\n </div>\n )\n})\n\nexport default SequenceFeaturePanel\n","import isObject from 'is-object'\nimport { max, measureText } from '../../util'\nimport { ellipses } from '../util'\n\nexport function isEmpty(obj: Record<string, unknown>) {\n return Object.keys(obj).length === 0\n}\n\nexport function generateTitle(name: unknown, id: unknown, type: unknown) {\n return [ellipses(`${name || id || ''}`), `${type}`]\n .filter(f => !!f)\n .join(' - ')\n}\n\nexport function generateMaxWidth(array: unknown[][], prefix: string[]) {\n return (\n Math.ceil(\n max(array.map(key => measureText([...prefix, key[0]].join('.'), 12))),\n ) + 10\n )\n}\n\n// pick using a path from an object, similar to _.get from lodash with special\n// logic for Descriptions from e.g. VCF headers\n//\n// @param arr example ['a','b'], obj = {a:{b:'hello}}\n// @returns hello (with special addition to grab description also)\nexport function accessNested(arr: string[], obj: Record<string, unknown> = {}) {\n let obj2: unknown = obj\n arr.forEach(elt => {\n if (isObject(obj2)) {\n obj2 = obj2[elt]\n }\n })\n return typeof obj2 === 'string'\n ? obj2\n : isObject(obj2) && typeof obj2.Description === 'string'\n ? obj2.Description\n : undefined\n}\n","import React, { useState } from 'react'\nimport { makeStyles } from 'tss-react/mui'\nimport { DataGrid, GridColDef, GridToolbar } from '@mui/x-data-grid'\nimport { Checkbox, FormControlLabel, Typography } from '@mui/material'\n\n// locals\nimport { measureGridWidth, getStr } from '../../util'\nimport FieldName from './FieldName'\nimport { SanitizedHTML } from '../../ui'\n\nconst useStyles = makeStyles()(theme => ({\n margin: {\n marginBottom: theme.spacing(4),\n },\n\n cell: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n}))\n\ninterface Entry {\n id: string\n [key: string]: string\n}\n\nexport default function DataGridDetails({\n value,\n prefix,\n name,\n}: {\n name: string\n prefix?: string[]\n value: Record<string, unknown>[]\n}) {\n const { classes } = useStyles()\n const [checked, setChecked] = useState(false)\n const keys = Object.keys(value[0]!).sort()\n const unionKeys = new Set(keys)\n\n // avoids key 'id' from being used in row data\n const rows = Object.entries(value).map(([k, val]) => {\n const { id, ...rest } = val\n return {\n id: k, // used by material UI\n identifier: id, // renamed from id to identifier\n ...rest,\n } as Entry\n })\n\n for (const val of value) {\n for (const k of Object.keys(val)) {\n unionKeys.add(k)\n }\n }\n // avoids key 'id' from being used in column names, and tries\n // to make it at the start of the colNames array\n let colNames: string[]\n if (unionKeys.has('id')) {\n unionKeys.delete('id')\n colNames = ['identifier', ...unionKeys]\n } else {\n colNames = [...unionKeys]\n }\n const widths = colNames.map(e => measureGridWidth(rows.map(r => r[e])))\n if (unionKeys.size < keys.length + 5) {\n return (\n <div className={classes.margin}>\n <FieldName prefix={prefix} name={name} />\n <FormControlLabel\n control={\n <Checkbox\n checked={checked}\n onChange={event => {\n setChecked(event.target.checked)\n }}\n />\n }\n label={<Typography variant=\"body2\">Show options</Typography>}\n />\n <DataGrid\n autoHeight\n disableRowSelectionOnClick\n rows={rows}\n rowHeight={20}\n columnHeaderHeight={35}\n hideFooter={rows.length < 25}\n slots={{\n toolbar: checked ? GridToolbar : null,\n }}\n slotProps={{\n toolbar: {\n printOptions: {\n disableToolbarButton: true,\n },\n },\n }}\n columns={colNames.map(\n (val, index) =>\n ({\n field: val,\n renderCell: params => {\n const value = params.value as string\n return (\n <div className={classes.cell}>\n <SanitizedHTML html={getStr(value || '')} />\n </div>\n )\n },\n width: widths[index],\n }) satisfies GridColDef<(typeof rows)[0]>,\n )}\n />\n </div>\n )\n }\n return null\n}\n","import React from 'react'\nimport isObject from 'is-object'\nimport { makeStyles } from 'tss-react/mui'\n\n// locals\nimport Attributes from './Attributes'\nimport FieldName from './FieldName'\nimport BasicValue from './BasicValue'\n\nconst useStyles = makeStyles()(theme => ({\n field: {\n display: 'flex',\n flexWrap: 'wrap',\n },\n\n fieldSubvalue: {\n wordBreak: 'break-word',\n maxHeight: 300,\n padding: theme.spacing(0.5),\n border: `1px solid ${theme.palette.action.selected}`,\n boxSizing: 'border-box',\n overflow: 'auto',\n },\n}))\n\nexport default function ArrayValue({\n name,\n value,\n description,\n prefix = [],\n}: {\n description?: React.ReactNode\n name: string\n value: unknown[]\n prefix?: string[]\n}) {\n const { classes } = useStyles()\n if (value.length === 1) {\n return isObject(value[0]) ? (\n <Attributes attributes={value[0]} prefix={[...prefix, name]} />\n ) : (\n <div className={classes.field}>\n <FieldName prefix={prefix} description={description} name={name} />\n <BasicValue value={value[0]} />\n </div>\n )\n } else if (value.every(val => isObject(val))) {\n return (\n <>\n {value.map((val, i) => (\n <Attributes\n key={`${JSON.stringify(val)}-${i}`}\n attributes={val as Record<string, unknown>}\n prefix={[...prefix, `${name}-${i}`]}\n />\n ))}\n </>\n )\n } else {\n return (\n <div className={classes.field}>\n <FieldName prefix={prefix} description={description} name={name} />\n {value.map((val, i) => (\n <div\n key={`${JSON.stringify(val)}-${i}`}\n className={classes.fieldSubvalue}\n >\n <BasicValue value={val} />\n </div>\n ))}\n </div>\n )\n }\n}\n","import React from 'react'\nimport FieldName from './FieldName'\nimport { makeStyles } from 'tss-react/mui'\nimport BasicValue from './BasicValue'\n\nconst useStyles = makeStyles()({\n field: {\n display: 'flex',\n flexWrap: 'wrap',\n },\n})\n\nexport default function UriField({\n value,\n prefix,\n name,\n}: {\n value: { uri: string; baseUri?: string }\n name: string\n prefix: string[]\n}) {\n const { classes } = useStyles()\n const { uri, baseUri = '' } = value\n let href: string\n try {\n href = new URL(uri, baseUri).href\n } catch (e) {\n href = uri\n }\n return (\n <div className={classes.field}>\n <FieldName prefix={prefix} name={name} />\n <BasicValue value={href} />\n </div>\n )\n}\n","import React from 'react'\nimport isObject from 'is-object'\n\n// locals\nimport { accessNested, generateMaxWidth } from './util'\nimport { isUriLocation } from '../../util'\nimport DataGridDetails from './DataGridDetails'\nimport ArrayValue from './ArrayValue'\nimport UriAttribute from './UriField'\nimport SimpleField from './SimpleField'\n\nconst MAX_FIELD_NAME_WIDTH = 170\n\n// these are always omitted as too detailed\nconst globalOmit = [\n '__jbrowsefmt',\n 'length',\n 'position',\n 'subfeatures',\n 'uniqueId',\n 'exonFrames',\n 'parentId',\n 'thickStart',\n 'thickEnd',\n]\n\nexport default function Attributes(props: {\n attributes: {\n [key: string]: unknown\n __jbrowsefmt?: Record<string, unknown>\n }\n omit?: string[]\n omitSingleLevel?: string[]\n formatter?: (val: unknown, key: string) => React.ReactNode\n descriptions?: Record<string, React.ReactNode>\n prefix?: string[]\n hideUris?: boolean\n}) {\n const {\n attributes,\n omit = [],\n omitSingleLevel = [],\n descriptions,\n formatter = val => val,\n hideUris,\n prefix = [],\n } = props\n\n const omits = new Set([...omit, ...globalOmit, ...omitSingleLevel])\n const { __jbrowsefmt, ...rest } = attributes\n const formattedAttributes = { ...rest, ...__jbrowsefmt }\n\n const maxLabelWidth = generateMaxWidth(\n Object.entries(formattedAttributes).filter(\n ([k, v]) => v !== undefined && !omits.has(k),\n ),\n prefix,\n )\n\n return (\n <>\n {Object.entries(formattedAttributes)\n .filter(([k, v]) => v !== undefined && !omits.has(k))\n .map(([key, value]) => {\n const description = accessNested([...prefix, key], descriptions)\n if (Array.isArray(value)) {\n // check if it looks like an array of objects, which could be used\n // in data grid\n return value.length > 1 && value.every(val => isObject(val)) ? (\n <DataGridDetails\n key={key}\n name={key}\n prefix={prefix}\n value={value}\n />\n ) : (\n <ArrayValue\n key={key}\n name={key}\n value={value}\n description={description}\n prefix={prefix}\n />\n )\n } else if (isObject(value)) {\n const { omitSingleLevel, ...rest } = props\n return isUriLocation(value) ? (\n hideUris ? null : (\n <UriAttribute\n key={key}\n name={key}\n prefix={prefix}\n value={value}\n />\n )\n ) : (\n <Attributes\n key={key}\n {...rest}\n attributes={value}\n descriptions={descriptions}\n prefix={[...prefix, key]}\n />\n )\n } else {\n return (\n <SimpleField\n key={key}\n name={key}\n value={formatter(value, key)}\n description={description}\n prefix={prefix}\n width={Math.min(maxLabelWidth, MAX_FIELD_NAME_WIDTH)}\n />\n )\n }\n })}\n </>\n )\n}\n","import React from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n Divider,\n Typography,\n} from '@mui/material'\nimport { makeStyles } from 'tss-react/mui'\nimport { observer } from 'mobx-react'\nimport { IAnyStateTreeNode } from 'mobx-state-tree'\n\n// icons\nimport ExpandMore from '@mui/icons-material/ExpandMore'\n\n// locals\nimport {\n getEnv,\n getSession,\n assembleLocString,\n toLocale,\n SimpleFeatureSerialized,\n} from '../../util'\nimport { ErrorMessage } from '../../ui'\nimport SequenceFeatureDetails from '../SequenceFeatureDetails'\nimport { BaseCardProps, BaseProps } from '../types'\nimport SimpleField from './SimpleField'\nimport Attributes from './Attributes'\nimport { generateTitle, isEmpty } from './util'\n\n// coreDetails are omitted in some circumstances\nconst coreDetails = [\n 'name',\n 'start',\n 'end',\n 'strand',\n 'refName',\n 'description',\n 'type',\n]\n\nconst useStyles = makeStyles()(theme => ({\n expansionPanelDetails: {\n display: 'block',\n padding: theme.spacing(1),\n },\n icon: {\n color: theme.palette.tertiary.contrastText || '#fff',\n },\n}))\n\nexport function BaseCard({\n children,\n title,\n defaultExpanded = true,\n}: BaseCardProps) {\n const { classes } = useStyles()\n return (\n <Accordion defaultExpanded={defaultExpanded}>\n <AccordionSummary expandIcon={<ExpandMore className={classes.icon} />}>\n <Typography variant=\"button\">{title}</Typography>\n </AccordionSummary>\n <AccordionDetails className={classes.expansionPanelDetails}>\n {children}\n </AccordionDetails>\n </Accordion>\n )\n}\n\nfunction Position(props: BaseProps) {\n const { feature } = props\n const strand = feature.strand as number\n const strandMap: Record<string, string> = {\n '-1': '-',\n '0': '',\n '1': '+',\n }\n const str = strandMap[strand] ? `(${strandMap[strand]})` : ''\n const loc = assembleLocString(feature)\n return <>{`${loc} ${str}`}</>\n}\n\nfunction CoreDetails(props: BaseProps) {\n const { feature } = props\n const obj = feature as SimpleFeatureSerialized & {\n start: number\n end: number\n assemblyName?: string\n strand: number\n refName: string\n __jbrowsefmt: {\n start?: number\n assemblyName?: string\n end?: number\n refName?: string\n name?: string\n }\n }\n\n const formattedFeat = { ...obj, ...obj.__jbrowsefmt }\n const { start, end } = formattedFeat\n\n const displayedDetails: Record<string, any> = {\n ...formattedFeat,\n length: toLocale(end - start),\n }\n\n const coreRenderedDetails = {\n description: 'Description',\n name: 'Name',\n length: 'Length',\n type: 'Type',\n }\n return (\n <>\n <SimpleField\n name=\"Position\"\n value={<Position {...props} feature={formattedFeat} />}\n />\n {Object.entries(coreRenderedDetails)\n .map(([key, name]) => [name, displayedDetails[key]])\n .filter(([, value]) => value != null)\n .map(([name, value]) => (\n <SimpleField key={name} name={name} value={value} />\n ))}\n </>\n )\n}\n\nexport const BaseCoreDetails = (props: BaseProps) => {\n const { title = 'Primary data' } = props\n return (\n <BaseCard {...props} title={title}>\n <CoreDetails {...props} />\n </BaseCard>\n )\n}\n\nexport const BaseAttributes = (props: BaseProps) => {\n const { feature } = props\n return (\n <BaseCard {...props} title=\"Attributes\">\n <Attributes {...props} attributes={feature} />\n </BaseCard>\n )\n}\n\nexport interface BaseInputProps extends BaseCardProps {\n omit?: string[]\n model: any\n descriptions?: Record<string, React.ReactNode>\n formatter?: (val: unknown, key: string) => React.ReactNode\n}\n\ninterface PanelDescriptor {\n name: string\n Component: React.FC<any>\n}\n\nexport function FeatureDetails(props: {\n model: IAnyStateTreeNode\n feature: SimpleFeatureSerialized\n depth?: number\n omit?: string[]\n descriptions?: Record<string, React.ReactNode>\n formatter?: (val: unknown, key: string) => React.ReactNode\n}) {\n const { omit = [], model, feature, depth = 0 } = props\n const { maxDepth } = model\n const { mate, name = '', id = '', type = '', subfeatures, uniqueId } = feature\n const pm = getEnv(model).pluginManager\n const session = getSession(model)\n\n const ExtraPanel = pm.evaluateExtensionPoint('Core-extraFeaturePanel', null, {\n session,\n feature,\n model,\n }) as PanelDescriptor | undefined\n const m = mate as { start: number; end: number; refName: string } | undefined\n return (\n <BaseCard title={generateTitle(name, id, type)}>\n <Typography>Core details</Typography>\n <CoreDetails {...props} />\n {m ? (\n <>\n <Divider />\n <Typography>Mate details</Typography>\n <CoreDetails\n {...props}\n feature={{\n ...m,\n start: m.start,\n end: m.end,\n refName: m.refName,\n uniqueId: `${uniqueId}-mate`,\n }}\n />\n </>\n ) : null}\n\n <Divider />\n <Typography>Attributes</Typography>\n <Attributes\n attributes={feature}\n {...props}\n omit={omit}\n omitSingleLevel={coreDetails}\n />\n\n <ErrorBoundary FallbackComponent={e => <ErrorMessage error={e.error} />}>\n <SequenceFeatureDetails {...props} />\n </ErrorBoundary>\n\n {ExtraPanel ? (\n <>\n <Divider />\n <BaseCard title={ExtraPanel.name}>\n <ExtraPanel.Component {...props} />\n </BaseCard>\n </>\n ) : null}\n\n {depth < maxDepth && subfeatures?.length ? (\n <BaseCard title=\"Subfeatures\" defaultExpanded={depth < 1}>\n {subfeatures.map((sub, idx) => (\n <FeatureDetails\n key={JSON.stringify(sub)}\n feature={{\n ...sub,\n uniqueId: `${uniqueId}_${idx}`,\n }}\n model={model}\n depth={depth + 1}\n />\n ))}\n </BaseCard>\n ) : null}\n </BaseCard>\n )\n}\n\nconst BaseFeatureDetail = observer(function ({ model }: BaseInputProps) {\n const { error, featureData } = model\n\n if (error) {\n return <ErrorMessage error={error} />\n }\n if (!featureData) {\n return null\n }\n\n // replacing undefined with null helps with allowing fields to be hidden,\n // setting null is not allowed by jexl so we set it to undefined to hide. see\n // config guide. this replacement happens both here and when snapshotting the\n // featureData\n const g = JSON.parse(\n JSON.stringify(featureData, (_, v) => (v === undefined ? null : v)),\n )\n return isEmpty(g) ? null : <FeatureDetails model={model} feature={g} />\n})\n\nexport default BaseFeatureDetail\n\nexport { default as Attributes } from './Attributes'\n","export interface Feat {\n start: number\n end: number\n type?: string\n name?: string\n id?: string\n}\nexport interface ParentFeat extends Feat {\n uniqueId: string\n strand?: number\n refName: string\n subfeatures?: Feat[]\n parentId?: string\n}\nexport interface SeqState {\n seq: string\n upstream?: string\n downstream?: string\n}\n\nexport interface ErrorState {\n error: string\n}\n\nexport function stitch(subfeats: Feat[], sequence: string) {\n return subfeats.map(sub => sequence.slice(sub.start, sub.end)).join('')\n}\n\n// filter items if they have the same \"ID\" or location\nfunction getItemId(feat: Feat) {\n return `${feat.start}-${feat.end}`\n}\n\n// filters if successive elements share same start/end\nexport function dedupe(list: Feat[]) {\n return list.filter(\n (item, pos, ary) => !pos || getItemId(item) !== getItemId(ary[pos - 1]!),\n )\n}\n\nexport function revlist(list: Feat[], seqlen: number) {\n return list\n .map(sub => ({\n ...sub,\n start: seqlen - sub.end,\n end: seqlen - sub.start,\n }))\n .sort((a, b) => a.start - b.start)\n}\n\nexport function calculateUTRs(cds: Feat[], exons: Feat[]) {\n // checking length ensures the .at below are valid\n if (!cds.length) {\n return []\n }\n\n const firstCds = cds.at(0)!\n\n const lastCds = cds.at(-1)!\n const firstCdsIdx = exons.findIndex(\n exon => exon.end >= firstCds.start && exon.start <= firstCds.start,\n )\n const lastCdsIdx = exons.findIndex(\n exon => exon.end >= lastCds.end && exon.start <= lastCds.end,\n )\n const lastCdsExon = exons[lastCdsIdx]!\n const firstCdsExon = exons[firstCdsIdx]!\n\n const fiveUTRs = [\n ...exons.slice(0, firstCdsIdx),\n { start: firstCdsExon.start, end: firstCds.start },\n ].map(elt => ({ ...elt, type: 'five_prime_UTR' }))\n\n const threeUTRs = [\n { start: lastCds.end, end: lastCdsExon.end },\n ...exons.slice(lastCdsIdx + 1),\n ].map(elt => ({ ...elt, type: 'three_prime_UTR' }))\n\n return [...fiveUTRs, ...threeUTRs]\n}\n\n// calculates UTRs using impliedUTRs logic, but there are no exon subfeatures\nexport function calculateUTRs2(cds: Feat[], parentFeat: Feat) {\n if (!cds.length) {\n return []\n }\n\n const firstCds = cds.at(0)!\n\n const lastCds = cds.at(-1)!\n\n const fiveUTRs = [{ start: parentFeat.start, end: firstCds.start }].map(\n elt => ({ ...elt, type: 'five_prime_UTR' }),\n )\n\n const threeUTRs = [{ start: lastCds.end, end: parentFeat.end }].map(elt => ({\n ...elt,\n type: 'three_prime_UTR',\n }))\n\n return [...fiveUTRs, ...threeUTRs]\n}\n\nexport function ellipses(slug: string) {\n return slug.length > 20 ? `${slug.slice(0, 20)}...` : slug\n}\n"],"names":["useStyles","makeStyles","theme","fieldValue","wordBreak","maxHeight","fontSize","padding","spacing","overflow","BasicValue","value","classes","isLink","exec","React","className","Link","href","SanitizedHTML","html","isObject","JSON","stringify","String","fieldDescription","background","palette","mode","fieldName","minWidth","borderBottom","action","disabledBackground","marginRight","FieldName","description","name","width","prefix","cx","val","join","Tooltip","title","placement","style","field","display","flexWrap","SimpleField","SequenceFeatureDetails","lazy","HelpDialog","formControl","margin","container","marginTop","marginBottom","observer","model","feature","shown","setShown","useState","FormControl","Button","variant","onClick","IconButton","getSession","queueDialog","handleClose","Help","Suspense","fallback","LoadingEllipses","key","uniqueId","generateTitle","id","type","ellipses","filter","f","cell","whiteSpace","textOverflow","DataGridDetails","checked","setChecked","keys","Object","sort","unionKeys","Set","rows","entries","map","k","rest","identifier","add","colNames","has","delete","widths","e","measureGridWidth","r","size","length","FormControlLabel","control","Checkbox","onChange","event","target","label","Typography","DataGrid","autoHeight","disableRowSelectionOnClick","rowHeight","columnHeaderHeight","hideFooter","slots","toolbar","GridToolbar","slotProps","printOptions","disableToolbarButton","columns","index","renderCell","params","getStr","fieldSubvalue","border","selected","boxSizing","ArrayValue","Attributes","attributes","every","i","UriField","uri","baseUri","URL","MAX_FIELD_NAME_WIDTH","globalOmit","props","omit","omitSingleLevel","descriptions","formatter","hideUris","omits","__jbrowsefmt","formattedAttributes","maxLabelWidth","array","Math","ceil","max","measureText","generateMaxWidth","v","undefined","arr","obj","obj2","forEach","elt","Description","accessNested","Array","isArray","isUriLocation","UriAttribute","_extends","min","coreDetails","expansionPanelDetails","icon","color","tertiary","contrastText","BaseCard","children","defaultExpanded","Accordion","AccordionSummary","expandIcon","ExpandMore","AccordionDetails","Position","strand","strandMap","str","loc","assembleLocString","CoreDetails","formattedFeat","start","end","displayedDetails","toLocale","BaseCoreDetails","BaseAttributes","FeatureDetails","depth","maxDepth","mate","subfeatures","pm","getEnv","pluginManager","session","ExtraPanel","evaluateExtensionPoint","m","Divider","refName","ErrorBoundary","FallbackComponent","ErrorMessage","error","Component","sub","idx","featureData","g","parse","_","stitch","subfeats","sequence","slice","getItemId","feat","dedupe","list","item","pos","ary","revlist","seqlen","a","b","calculateUTRs","cds","exons","firstCds","at","lastCds","firstCdsIdx","findIndex","exon","lastCdsIdx","lastCdsExon","firstCdsExon","calculateUTRs2","parentFeat","slug"],"sourceRoot":""} |