@backtest-kit/ui 11.9.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs +20 -2
- package/build/index.mjs +20 -2
- package/build/modules/frontend/build/assets/{Article-cVpAg67f.js → Article-Doa7LgJz.js} +1 -1
- package/build/modules/frontend/build/assets/{Background-BH--6xAD.js → Background-DChJlq4Y.js} +1 -1
- package/build/modules/frontend/build/assets/{IconPhoto-dhtH47SN.js → IconPhoto-BlmzHaTm.js} +1 -1
- package/build/modules/frontend/build/assets/{KeyboardArrowLeft-Cesmg5AP.js → KeyboardArrowLeft-DWuLOL4a.js} +1 -1
- package/build/modules/frontend/build/assets/{PictureAsPdfOutlined-CrADy_Z6.js → PictureAsPdfOutlined-kC2Vpwnz.js} +1 -1
- package/build/modules/frontend/build/assets/{Refresh-BnizeO5c.js → Refresh-bPeQBhCL.js} +1 -1
- package/build/modules/frontend/build/assets/emitters-DSM8Kmyp.js +1 -0
- package/build/modules/frontend/build/assets/{hasRouteMatch-DHHNIPte.js → hasRouteMatch-COcX1hTR.js} +1 -1
- package/build/modules/frontend/build/assets/{html2canvas-BdzWxETw.js → html2canvas-8QaXH3hX.js} +1 -1
- package/build/modules/frontend/build/assets/index-BQE-pWyA.js +1 -0
- package/build/modules/frontend/build/assets/{index-DnelSt2-.js → index-BYeYy5rP.js} +1 -1
- package/build/modules/frontend/build/assets/index-BZuTUdHt.js +1 -0
- package/build/modules/frontend/build/assets/{index-CvllC0lS.js → index-CELcSINJ.js} +1 -1
- package/build/modules/frontend/build/assets/index-CNDXRrst.js +1 -0
- package/build/modules/frontend/build/assets/index-Cxk9BV--.js +1 -0
- package/build/modules/frontend/build/assets/index-Cyg5Mqxr.js +1 -0
- package/build/modules/frontend/build/assets/index-DOlobFOj.js +1 -0
- package/build/modules/frontend/build/assets/{index-fsQnmonU.js → index-DSNG-Nhb.js} +60 -60
- package/build/modules/frontend/build/assets/index-DzKi5R3K.js +1 -0
- package/build/modules/frontend/build/assets/index-QrnIrM_Z.js +1 -0
- package/build/modules/frontend/build/assets/index-kZWrY1-_.js +1 -0
- package/build/modules/frontend/build/assets/index-lJH4fbnI.js +1 -0
- package/build/modules/frontend/build/assets/{index.es-iaxQIlqX.js → index.es-BxPdoW9B.js} +1 -1
- package/build/modules/frontend/build/assets/{markdownit-C01iqcLq.js → markdownit-Dgsgan9Z.js} +1 -1
- package/build/modules/frontend/build/index.html +1 -1
- package/package.json +3 -3
- package/build/modules/frontend/build/assets/emitters-CncrD_BX.js +0 -1
- package/build/modules/frontend/build/assets/index-B5gb4k3w.js +0 -1
- package/build/modules/frontend/build/assets/index-BtYapa75.js +0 -1
- package/build/modules/frontend/build/assets/index-C3WRde97.js +0 -1
- package/build/modules/frontend/build/assets/index-C7ab2rQi.js +0 -1
- package/build/modules/frontend/build/assets/index-Cq3jOwW6.js +0 -1
- package/build/modules/frontend/build/assets/index-CweIrC8b.js +0 -1
- package/build/modules/frontend/build/assets/index-DRSduTqB.js +0 -1
- package/build/modules/frontend/build/assets/index-DlSjrMHu.js +0 -1
- package/build/modules/frontend/build/assets/index-T0gLwUgt.js +0 -1
- package/build/modules/frontend/build/assets/index-dZ6l1ywQ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e,f as a,r as t,bf as i,bg as o,x as r,i as s,bh as n,bi as c,bj as l,I as d,ad as p,b1 as h,bk as b,p as m,ah as u,bl as f,a1 as y,T as g,b2 as x,an as v,a5 as w,bm as L,ao as S,bn as k,aZ as A,Y as j,X as C,a8 as N,O as z,R,b7 as E,B as H,Z as T,aj as I}from"./index-DSNG-Nhb.js";import{h as M}from"./hasRouteMatch-COcX1hTR.js";import{B as V}from"./Background-DChJlq4Y.js";import{A as B}from"./Article-Doa7LgJz.js";import{C as D,R as F}from"./Refresh-bPeQBhCL.js";import{K}from"./KeyboardArrowLeft-DWuLOL4a.js";const O=e(a("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}),"Image"),P=e(a("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"}),"InsertDriveFile"),W="65px",X=e=>e.mimeType.startsWith("image/")?a(O,{sx:{color:"#f57c00",fontSize:20}}):"application/json"===e.mimeType?a(j,{sx:{color:"#7b1fa2",fontSize:20}}):e.mimeType.startsWith("text/")?a(B,{sx:{color:"#1976d2",fontSize:20}}):a(P,{sx:{color:"#546e7a",fontSize:20}}),Z=m()(e=>({root:{position:"relative",height:"100%",width:"100%",background:"#eee",overflow:"clip"},header:{position:"absolute",top:0,left:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"8px",paddingRight:"4px",height:W},input:{height:W,paddingRight:e.spacing(2),paddingLeft:e.spacing(1),width:"100%"},container:{position:"absolute",top:W,left:0,right:0,bottom:0,height:`calc(100% - ${W})`,width:"100%",background:"white",overflow:"clip",display:"flex",alignItems:"stretch",justifyContent:"stretch"},content:{display:"flex",flex:1},loader:{height:"100%",width:"100%"},accent:{background:u("#00c3ff",.05)}})),Y=({outlinePaper:e,className:m,style:u,sx:j,nodes:C,initialSearch:N=""})=>{const{classes:z,cx:R}=Z(),[E,H]=t.useState(N),T=i(E),[I,{flush:M}]=o(E,2500),[V,{loading:B}]=r(async()=>await(async(e,a)=>{const t=e.trim().toLowerCase(),i=[];let o=0;for(const r of s.explorerHelperService.deepFlat(a))if("file"!==r.type||t&&!r.path.toLowerCase().includes(t)||i.push(r),++o%1e4==0&&await f(0),i.length>25e3)break;return i})(I,C),{onLoadStart:()=>s.layoutService.setAppbarLoader(!0),onLoadEnd:()=>s.layoutService.setAppbarLoader(!1),deps:[I,C]}),{execute:D}=n(async e=>{await s.layoutService.pickDumpContent(e)},{onLoadStart:()=>s.layoutService.setAppbarLoader(!0),onLoadEnd:()=>s.layoutService.setAppbarLoader(!1)});return a(b,{outlinePaper:e,className:R(z.root,m),style:u,sx:j,children:[a("div",{className:z.header,children:a(c,{disabled:B,className:z.input,endAdornment:a(l,{position:"end",children:a(d,{disabled:B||!E,onClick:()=>{T.once(async()=>{await f(500),M()}),H("")},edge:"end",children:a(E?p:h,{})})}),placeholder:"Search",value:E,onBlur:()=>M(),onChange:({target:e})=>H(e.value),onKeyDown:({key:e,currentTarget:a})=>"Enter"===e&&a.blur()})}),a("div",{className:z.container,children:a("div",{className:z.content,children:V?V.length?a(A,{withScrollbar:!0,children:V.map((e,t)=>a(v,{className:R({[z.accent]:t%2==1}),component:w,onClick:()=>(async e=>{await D(e)})(e.id),children:[a(L,{children:X(e)}),a(S,{primary:e.label,secondary:e.path}),a(k,{content:e.path,label:"Copy path"})]},e.id))}):a(x,{sx:{height:"100%",width:"100%"},children:a(g,{variant:"h6",sx:{opacity:.5},children:"Not found"})}):a(y,{className:z.loader})})})]})},$=[{type:R.Link,action:"back-action",label:a(K,{sx:{display:"block"}})},{type:R.Link,action:"back-action",label:"Main"},{type:R.Link,action:"back-action",label:"Dump Explorer"}],q=[{action:"update-now",label:"Refresh",icon:()=>a(T,{icon:F,color:"#4caf50"})}],G=new N,J=({params:e})=>{const[t,{loading:i,execute:o}]=r(async()=>await s.explorerViewService.getFolderTree(),{onLoadStart:()=>s.layoutService.setAppbarLoader(!0),onLoadEnd:()=>s.layoutService.setAppbarLoader(!1)});C(()=>G.subscribe(o));return a(D,{children:[a(z,{items:$,actions:q,onAction:e=>{"back-action"===e&&s.routerService.push("/"),"update-now"===e&&(s.explorerViewService.clear(),G.next())}}),a(E,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"calc(100vh - 150px)"},children:a(H,{pr:2,pl:2,children:i||!t?a(x,{children:a(g,{variant:"h6",sx:{opacity:.5},children:"Loading..."})}):a(Y,{nodes:t,initialSearch:e.search})})}),a(V,{})]})},Q=[{id:"search",element:J,isActive:e=>M(["/dump/:search"],e)},{id:"main",element:J,isActive:e=>M(["/dump"],e)}],U=({search:e=""})=>a(I,{history:s.routerService,onLoadStart:()=>s.layoutService.setAppbarLoader(!0),onLoadEnd:()=>s.layoutService.setAppbarLoader(!1),routes:Q,params:{search:e}});export{U as DumpPage,U as default};
|