Mercurial > repos > fubar > jbrowse2
view x/static/js/6043.e402bf73.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 |
line wrap: on
line source
{"version":3,"file":"static/js/6043.e402bf73.chunk.js","mappings":"+OAWA,MAqDA,GArDyBA,EAAAA,EAAAA,WAAS,UAAU,MAC1CC,EAAK,YACLC,IAOA,MAAOC,EAAKC,IAAUC,EAAAA,EAAAA,UAAS,IACzBC,EAAW,wBAAwBC,KAAKJ,GAE9C,OACEK,EAAAA,cAACC,EAAAA,OAAM,CAACC,MAAI,EAACC,QAAST,EAAaU,MAAM,gBACvCJ,EAAAA,cAACK,EAAAA,EAAa,CAACC,MAAO,CAAEC,UAAW,WACjCP,EAAAA,cAACQ,EAAAA,EAAU,KAAC,2BACZR,EAAAA,cAACQ,EAAAA,EAAU,CAACC,MAAM,iBAAgB,4IAKlCT,EAAAA,cAACU,EAAAA,EAAS,CACRC,MAAOhB,EACPiB,SAAUC,IACRjB,EAAOiB,EAAMC,OAAOH,MAAM,EAE5BI,YAAY,iBACZC,WAAY,CAAEC,UAAW,GACzBC,MAAsB,IAAfvB,EAAIwB,SAAiBrB,EAC5BsB,WAA2B,IAAfzB,EAAIwB,QAAiBrB,EAA+B,GAApB,kBAC5CuB,aAAa,QAEfrB,EAAAA,cAACsB,EAAAA,EAAa,KACZtB,EAAAA,cAACuB,EAAAA,EAAM,CACLC,QAAQ,YACRf,MAAM,UACNgB,QAASA,KACPhC,EAAMiC,eAAe,CAAEC,KAAM,MAAOhC,QACpCD,GAAa,EAEfkC,UAAW9B,GACZ,UAGDE,EAAAA,cAACuB,EAAAA,EAAM,CAACC,QAAQ,YAAYf,MAAM,YAAYgB,QAAS/B,GAAa,YAO9E,G","sources":["../../../plugins/alignments/src/LinearPileupDisplay/components/ColorByTagDialog.tsx"],"sourcesContent":["import React, { useState } from 'react'\nimport { observer } from 'mobx-react'\nimport {\n Button,\n DialogContent,\n DialogActions,\n TextField,\n Typography,\n} from '@mui/material'\nimport { Dialog } from '@jbrowse/core/ui'\n\nconst ColorByTagDialog = observer(function ({\n model,\n handleClose,\n}: {\n model: {\n setColorScheme: (arg: { type: string; tag: string }) => void\n }\n handleClose: () => void\n}) {\n const [tag, setTag] = useState('')\n const validTag = /^[A-Za-z][A-Za-z0-9]$/.exec(tag)\n\n return (\n <Dialog open onClose={handleClose} title=\"Color by tag\">\n <DialogContent style={{ overflowX: 'hidden' }}>\n <Typography>Enter tag to color by: </Typography>\n <Typography color=\"textSecondary\">\n Examples: XS or TS for RNA-seq inferred read strand, ts (lower-case)\n for minimap2 read strand, HP for haplotype, RG for read group, etc.\n </Typography>\n\n <TextField\n value={tag}\n onChange={event => {\n setTag(event.target.value)\n }}\n placeholder=\"Enter tag name\"\n inputProps={{ maxLength: 2 }}\n error={tag.length === 2 && !validTag}\n helperText={tag.length === 2 && !validTag ? 'Not a valid tag' : ''}\n autoComplete=\"off\"\n />\n <DialogActions>\n <Button\n variant=\"contained\"\n color=\"primary\"\n onClick={() => {\n model.setColorScheme({ type: 'tag', tag })\n handleClose()\n }}\n disabled={!validTag}\n >\n Submit\n </Button>\n <Button variant=\"contained\" color=\"secondary\" onClick={handleClose}>\n Cancel\n </Button>\n </DialogActions>\n </DialogContent>\n </Dialog>\n )\n})\n\nexport default ColorByTagDialog\n"],"names":["observer","model","handleClose","tag","setTag","useState","validTag","exec","React","Dialog","open","onClose","title","DialogContent","style","overflowX","Typography","color","TextField","value","onChange","event","target","placeholder","inputProps","maxLength","error","length","helperText","autoComplete","DialogActions","Button","variant","onClick","setColorScheme","type","disabled"],"sourceRoot":""}