Mercurial > repos > fubar > jbrowse2
view x/static/js/4773.6cd74b80.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/4773.6cd74b80.chunk.js","mappings":"0PAcA,MA+CA,GA/CgCA,EAAAA,EAAAA,WAAS,UAAU,MACjDC,EAAK,QACLC,EAAO,UACPC,IAMA,MAAOC,EAAUC,IAAeC,EAAAA,EAAAA,UAASH,EAAUI,OAAS,IAC5D,OACEC,EAAAA,cAACC,EAAAA,OAAM,CAACC,MAAI,EAACR,QAASA,EAASS,MAAM,uBACnCH,EAAAA,cAACI,EAAAA,EAAa,KACZJ,EAAAA,cAACK,EAAAA,EAAK,KAAC,6BACsB,IAC3BL,EAAAA,cAAA,eAASM,EAAAA,EAAAA,mBAAkBX,EAAUY,mBAA2B,KAElEP,EAAAA,cAACQ,EAAAA,EAAS,CACRC,WAAS,EACTC,WAAY,CAAE,cAAe,6BAC7BC,QAAQ,WACRC,MAAOhB,EACPiB,SAAUC,IACRjB,EAAYiB,EAAEC,OAAOH,MAAM,EAE7BI,WAAS,KAGbhB,EAAAA,cAACiB,EAAAA,EAAa,KACZjB,EAAAA,cAACkB,EAAAA,EAAM,CACLP,QAAQ,YACRQ,MAAM,UACNC,QAASA,KACHxB,GACFH,EAAM4B,oBAAoB1B,EAAWC,GAEvCC,EAAY,IACZH,GAAS,GAEZ,YAMT,G","sources":["../../../plugins/grid-bookmark/src/GridBookmarkWidget/components/dialogs/EditBookmarkLabelDialog.tsx"],"sourcesContent":["import React, { useState } from 'react'\nimport {\n Alert,\n DialogContent,\n DialogActions,\n Button,\n TextField,\n} from '@mui/material'\nimport { Dialog } from '@jbrowse/core/ui'\nimport { observer } from 'mobx-react'\nimport { assembleLocString } from '@jbrowse/core/util'\n\nimport { GridBookmarkModel, IExtendedLabeledRegionModel } from '../../model'\n\nconst EditBookmarkLabelDialog = observer(function ({\n model,\n onClose,\n dialogRow,\n}: {\n model: GridBookmarkModel\n dialogRow: IExtendedLabeledRegionModel\n onClose: () => void\n}) {\n const [newLabel, setNewLabel] = useState(dialogRow.label || '')\n return (\n <Dialog open onClose={onClose} title=\"Edit bookmark label\">\n <DialogContent>\n <Alert>\n Editing label for bookmark{' '}\n <strong>{assembleLocString(dialogRow.correspondingObj)}</strong>:\n </Alert>\n <TextField\n fullWidth\n inputProps={{ 'data-testid': 'edit-bookmark-label-field' }}\n variant=\"outlined\"\n value={newLabel}\n onChange={e => {\n setNewLabel(e.target.value)\n }}\n autoFocus\n />\n </DialogContent>\n <DialogActions>\n <Button\n variant=\"contained\"\n color=\"primary\"\n onClick={() => {\n if (newLabel) {\n model.updateBookmarkLabel(dialogRow, newLabel)\n }\n setNewLabel('')\n onClose()\n }}\n >\n Confirm\n </Button>\n </DialogActions>\n </Dialog>\n )\n})\n\nexport default EditBookmarkLabelDialog\n"],"names":["observer","model","onClose","dialogRow","newLabel","setNewLabel","useState","label","React","Dialog","open","title","DialogContent","Alert","assembleLocString","correspondingObj","TextField","fullWidth","inputProps","variant","value","onChange","e","target","autoFocus","DialogActions","Button","color","onClick","updateBookmarkLabel"],"sourceRoot":""}