Mercurial > repos > fubar > jbrowse2
annotate x/static/js/6157.96f40683.chunk.js @ 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 |
rev | line source |
---|---|
125
49f3d3878413
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
fubar
parents:
diff
changeset
|
1 "use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6157],{24959:(e,t,o)=>{o.d(t,{A:()=>r});const r=(0,o(15543).Ay)()},61977:(e,t,o)=>{o.d(t,{b:()=>x});var r=o(6614),l=o(83673),s=o(7552),n=o(93878),a=o(24959),i=o(88519),c=o(76959),u=o(64565),d=o(69500);const p=["className","children"],b=(0,a.A)("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})((({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)}))),x=s.forwardRef((function(e,t){const{className:o,children:s}=e,a=(0,l.A)(e,p),x=(0,u.A)(),m=(e=>{const{classes:t}=e;return(0,i.A)({root:["toolbarContainer"]},c.B,t)})(x);return s?(0,d.jsx)(b,(0,r.A)({ref:t,className:(0,n.A)(o,m.root),ownerState:x},a,{children:s})):null}))},76157:(e,t,o)=>{o.d(t,{O:()=>f});var r=o(6614),l=o(83673),s=o(7552),n=o(17776),a=o(61977),i=o(85262),c=o(44784),u=o(19271),d=o(38175),p=o(64565),b=o(26524),x=o(69500);const m=["className","csvOptions","printOptions","excelOptions","showQuickFilter","quickFilterProps"],f=s.forwardRef((function(e,t){const{csvOptions:o,printOptions:s,excelOptions:f,showQuickFilter:h=!1,quickFilterProps:A={}}=e,v=(0,l.A)(e,m),g=(0,p.A)();return g.disableColumnFilter&&g.disableColumnSelector&&g.disableDensitySelector&&!h?null:(0,x.jsxs)(a.b,(0,r.A)({ref:t},v,{children:[(0,x.jsx)(i.j,{}),(0,x.jsx)(u.Q,{}),(0,x.jsx)(c.z,{}),(0,x.jsx)(d.qn,{csvOptions:o,printOptions:s,excelOptions:f}),(0,x.jsx)(n.A,{sx:{flex:1}}),h&&(0,x.jsx)(b.b,(0,r.A)({},A))]}))}))},85262:(e,t,o)=>{o.d(t,{j:()=>p});var r=o(6614),l=o(7552),s=o(89456),n=o(12274),a=o(38577),i=o(48534),c=o(76404),u=o(64565),d=o(69500);const p=l.forwardRef((function(e,t){const{slotProps:o={}}=e,l=o.button||{},p=o.tooltip||{},b=(0,s.A)(),x=(0,s.A)(),m=(0,c.h)(),f=(0,u.A)(),h=(0,n.Nc)(m,a._);if(f.disableColumnSelector)return null;const A=h.open&&h.panelId===x;return(0,d.jsx)(f.slots.baseTooltip,(0,r.A)({title:m.current.getLocaleText("toolbarColumnsLabel"),enterDelay:1e3},p,f.slotProps?.baseTooltip,{children:(0,d.jsx)(f.slots.baseButton,(0,r.A)({ref:t,id:b,size:"small","aria-label":m.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":A,"aria-controls":A?x:void 0,startIcon:(0,d.jsx)(f.slots.columnSelectorIcon,{})},l,{onClick:e=>{h.open&&h.openedPanelValue===i.y.columns?m.current.hidePreferences():m.current.showPreferences(i.y.columns,x,b),l.onClick?.(e)}},f.slotProps?.baseButton,{children:m.current.getLocaleText("toolbarColumns")}))}))}))},44784:(e,t,o)=>{o.d(t,{z:()=>A});var r=o(6614),l=o(7552),s=o(57377),n=o(92325),a=o(6679),i=o(29629),c=o(66765),u=o(33658),d=o(67129),p=o(76404),b=o(12274),x=o(83749),m=o(64565),f=o(76959),h=o(69500);const A=l.forwardRef((function(e,t){const{slotProps:o={}}=e,A=o.button||{},v=o.tooltip||{},g=(0,p.h)(),j=(0,m.A)(),y=(0,b.Nc)(g,u._v),k=(0,s.A)(),F=(0,s.A)(),[T,C]=l.useState(!1),L=l.useRef(null),w=(0,n.A)(t,L),P=[{icon:(0,h.jsx)(j.slots.densityCompactIcon,{}),label:g.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:(0,h.jsx)(j.slots.densityStandardIcon,{}),label:g.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:(0,h.jsx)(j.slots.densityComfortableIcon,{}),label:g.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],I=l.useMemo((()=>{switch(y){case"compact":return(0,h.jsx)(j.slots.densityCompactIcon,{});case"comfortable":return(0,h.jsx)(j.slots.densityComfortableIcon,{});default:return(0,h.jsx)(j.slots.densityStandardIcon,{})}}),[y,j]);if(j.disableDensitySelector)return null;const D=P.map(((e,t)=>(0,h.jsxs)(i.A,{onClick:()=>{return t=e.value,g.current.setDensity(t),void C(!1);var t},selected:e.value===y,children:[(0,h.jsx)(c.A,{children:e.icon}),e.label]},t)));return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)(j.slots.baseTooltip,(0,r.A)({title:g.current.getLocaleText("toolbarDensityLabel"),enterDelay:1e3},v,j.slotProps?.baseTooltip,{children:(0,h.jsx)(j.slots.baseButton,(0,r.A)({ref:w,size:"small",startIcon:I,"aria-label":g.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":T,"aria-controls":T?F:void 0,id:k},A,{onClick:e=>{C((e=>!e)),A.onClick?.(e)}},j.slotProps?.baseButton,{children:g.current.getLocaleText("toolbarDensity")}))})),(0,h.jsx)(x.U,{open:T,target:L.current,onClose:()=>{C(!1)},position:"bottom-start",children:(0,h.jsx)(a.A,{id:F,className:f.x.menuList,"aria-labelledby":k,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),(0,d.HF)(e.key)&&C(!1)},autoFocusItem:T,children:D})})]})}))},19271:(e,t,o)=>{o.d(t,{Q:()=>g});var r=o(6614),l=o(7552),s=o(51148),n=o(88519),a=o(57377),i=o(17505),c=o(84885),u=o(80163),d=o(12274),p=o(2220),b=o(38577),x=o(48534),m=o(76404),f=o(64565),h=o(76959),A=o(69500);const v=(0,s.Ay)("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,t)=>t.toolbarFilterList})((({theme:e})=>({margin:e.spacing(1,1,.5),padding:e.spacing(0,1)}))),g=l.forwardRef((function(e,t){const{slotProps:o={}}=e,s=o.button||{},g=o.tooltip||{},j=(0,m.h)(),y=(0,f.A)(),k=(0,d.Nc)(j,p.Ai),F=(0,d.Nc)(j,u.gv),T=(0,d.Nc)(j,b._),C=(e=>{const{classes:t}=e;return(0,n.A)({root:["toolbarFilterList"]},h.B,t)})(y),L=(0,a.A)(),w=(0,a.A)(),P=l.useMemo((()=>{if(T.open)return j.current.getLocaleText("toolbarFiltersTooltipHide");if(0===k.length)return j.current.getLocaleText("toolbarFiltersTooltipShow");const e=e=>F[e.field].filterOperators.find((t=>t.value===e.operator)).label||j.current.getLocaleText(`filterOperator${(0,i.A)(e.operator)}`).toString(),t=e=>{const{getValueAsString:t}=F[e.field].filterOperators.find((t=>t.value===e.operator));return t?t(e.value):e.value};return(0,A.jsxs)("div",{children:[j.current.getLocaleText("toolbarFiltersTooltipActive")(k.length),(0,A.jsx)(v,{className:C.root,ownerState:y,children:k.map(((o,l)=>(0,r.A)({},F[o.field]&&(0,A.jsx)("li",{children:`${F[o.field].headerName||o.field}\n ${e(o)}\n ${null!=o.value?t(o):""}`},l))))})]})}),[j,y,T.open,k,F,C]);if(y.disableColumnFilter)return null;const I=T.open&&T.panelId===w;return(0,A.jsx)(y.slots.baseTooltip,(0,r.A)({title:P,enterDelay:1e3},g,y.slotProps?.baseTooltip,{children:(0,A.jsx)(y.slots.baseButton,(0,r.A)({ref:t,id:L,size:"small","aria-label":j.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":I?w:void 0,"aria-expanded":I,"aria-haspopup":!0,startIcon:(0,A.jsx)(c.A,{badgeContent:k.length,color:"primary",children:(0,A.jsx)(y.slots.openFilterButtonIcon,{})})},s,{onClick:e=>{const{open:t,openedPanelValue:o}=T;t&&o===x.y.filters?j.current.hidePreferences():j.current.showPreferences(x.y.filters,w,L),s.onClick?.(e)}},y.slotProps?.baseButton,{children:j.current.getLocaleText("toolbarFilters")}))}))}))},26524:(e,t,o)=>{o.d(t,{b:()=>k});var r=o(6614),l=o(83673),s=o(7552),n=o(93878),a=o(1343),i=o(51148),c=o(33693),u=o(88519),d=o(76959),p=o(76404),b=o(64565),x=o(12274),m=o(2220),f=o(58766),h=o(69500);const A=["quickFilterParser","quickFilterFormatter","debounceMs","className"],v=e=>{const{classes:t}=e;return(0,u.A)({root:["toolbarQuickFilter"]},d.B,t)},g=(0,i.Ay)(a.A,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,t)=>t.toolbarQuickFilter})((({theme:e})=>({width:"auto",paddingBottom:e.spacing(.5),"& input":{marginLeft:e.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},'& input[type="search"]::-webkit-search-decoration,\n & input[type="search"]::-webkit-search-cancel-button,\n & input[type="search"]::-webkit-search-results-button,\n & input[type="search"]::-webkit-search-results-decoration':{display:"none"}}))),j=e=>e.split(" ").filter((e=>""!==e)),y=e=>e.join(" ");function k(e){const t=(0,p.h)(),o=(0,b.A)(),a=v(o),i=(0,x.Nc)(t,m.q6),{quickFilterParser:u=j,quickFilterFormatter:d=y,debounceMs:k=o.filterDebounceMs,className:F}=e,T=(0,l.A)(e,A),[C,L]=s.useState((()=>d(i??[]))),w=s.useRef(i);s.useEffect((()=>{(0,f.Hv)(w.current,i)||(w.current=i,L((e=>(0,f.Hv)(u(e),i)?e:d(i??[]))))}),[i,d,u]);const P=s.useCallback((e=>{const o=u(e);w.current=o,t.current.setQuickFilterValues(o)}),[t,u]),I=s.useMemo((()=>(0,c.A)(P,k)),[P,k]),D=s.useCallback((e=>{const t=e.target.value;L(t),I(t)}),[I]),S=s.useCallback((()=>{L(""),P("")}),[P]);return(0,h.jsx)(g,(0,r.A)({as:o.slots.baseTextField,ownerState:o,variant:"standard",value:C,onChange:D,className:(0,n.A)(F,a.root),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},T,{InputProps:(0,r.A)({startAdornment:(0,h.jsx)(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:(0,h.jsx)(o.slots.baseIconButton,(0,r.A)({"aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:[C?{visibility:"visible"}:{visibility:"hidden"}],onClick:S},o.slotProps?.baseIconButton,{children:(0,h.jsx)(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},T.InputProps)},o.slotProps?.baseTextField))}}}]); |
49f3d3878413
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
fubar
parents:
diff
changeset
|
2 //# sourceMappingURL=6157.96f40683.chunk.js.map |