efficient-shell 4.151.0 → 4.155.1
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/README.md +34 -1
- package/dist/{Browser-4KP2EJ6P.js → Browser-HNSQP7PK.js} +14 -14
- package/dist/Calculator-PWWTNCT7.js +29 -0
- package/dist/ConfirmDialog-UVIZK7EY.js +1 -0
- package/dist/{CurrencyConverter-QYYYKDMG.js → CurrencyConverter-OH4WAA74.js} +6 -6
- package/dist/{Documents-OKKZEZXI.js → Documents-HG6NJCIB.js} +14 -14
- package/dist/{Files-KYP3GPFG.js → Files-22E36TVC.js} +82 -82
- package/dist/{Notepad-PFP4FBTH.js → Notepad-YHSWKS4C.js} +11 -11
- package/dist/PdfViewer-W65LHKXZ.js +1 -0
- package/dist/{PomodoroTimer-UITFAFW5.js → PomodoroTimer-BXJZKA4W.js} +37 -37
- package/dist/{Preview-QEUH2XB5.js → Preview-6X5QAHHR.js} +8 -8
- package/dist/{Sidebar-RHD3UIDL.js → Sidebar-44I3DD2U.js} +27 -27
- package/dist/{Spreadsheet-3XQFNZBQ.js → Spreadsheet-K6QSHFVS.js} +14 -14
- package/dist/{Stock-7XHWH3QY.js → Stock-HGSIZXAT.js} +3 -3
- package/dist/{Weather-H4UP3B3H.js → Weather-3VS65TQO.js} +13 -13
- package/dist/{WorldClock-L544XDSO.js → WorldClock-NI5OTEBV.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-E3F2TEYY.js → chunk-4DT7B7GZ.js} +1 -1
- package/dist/{chunk-BBKISBOG.js → chunk-AC54EYVA.js} +1 -1
- package/dist/{chunk-QOT7I3G2.js → chunk-C47EJ4MB.js} +1 -1
- package/dist/chunk-DRRIYS3R.js +113 -0
- package/dist/chunk-FEWQDVQJ.js +1 -0
- package/dist/{chunk-2OLPYYXJ.js → chunk-JHXGBYJO.js} +6 -6
- package/dist/{chunk-M5A7HUXG.js → chunk-JLSOLX5J.js} +1 -1
- package/dist/{chunk-6JM25HQ2.js → chunk-MXLPLKRG.js} +4 -4
- package/dist/{chunk-F7R2KC4G.js → chunk-NSXQF4YC.js} +1 -1
- package/dist/{chunk-VJGGZVVY.js → chunk-O35K6ZWH.js} +3 -3
- package/dist/{chunk-EJVQF6CM.js → chunk-RGFEKAPC.js} +2 -2
- package/dist/{chunk-7ADDECUS.js → chunk-TULPGC2I.js} +10 -10
- package/dist/chunk-V73HRX73.js +937 -0
- package/dist/{chunk-4DFRGAYO.js → chunk-VGTI3BJ4.js} +1 -1
- package/dist/chunk-YIXQGB75.js +1 -0
- package/dist/{chunk-KR5QH7M4.js → chunk-ZP2V72LB.js} +8 -8
- package/dist/{chunk-CCL2BIIV.js → chunk-ZTXFXS6V.js} +6 -6
- package/dist/{chunk-XCMMHOSW.js → chunk-ZVAQKPRB.js} +1 -1
- package/dist/{chunk-ERGOI2JO.js → chunk-ZYUWLZUG.js} +17 -17
- package/dist/file-intake/index.js +1 -1
- package/dist/{index-BZVLC4rC.d.ts → index-ak9Cps7c.d.ts} +52 -6
- package/dist/index.d.ts +21 -4
- package/dist/index.js +247 -247
- package/dist/map/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/themes.css +35 -0
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +61 -0
- package/package.json +2 -2
- package/dist/Calculator-7DABIXU2.js +0 -29
- package/dist/ConfirmDialog-RT2NZKCU.js +0 -1
- package/dist/PdfViewer-TO5NCBES.js +0 -1
- package/dist/chunk-2GQ6QERX.js +0 -933
- package/dist/chunk-M23KUZFK.js +0 -1
- package/dist/chunk-T63C3VVZ.js +0 -1
- package/dist/chunk-Z2MLREMC.js +0 -113
|
@@ -1 +1 @@
|
|
|
1
|
-
import{currentShellStrings as t}from"./chunk-
|
|
1
|
+
import{currentShellStrings as t}from"./chunk-FEWQDVQJ.js";var e="http://www.w3.org/2000/svg",n={},o=/* @__PURE__ */new Map;function s(t,e){let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className=e,document.body.appendChild(n)),n}var r={success:"M5 13l4 4L19 7",error:"M6 18L18 6M6 6l12 12",warning:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",loading:"M12 3a9 9 0 019 9",bell:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"};function i(t,n){const o=document.createElementNS(e,"svg");o.setAttribute("class",n),o.setAttribute("fill","none"),o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("stroke","currentColor"),o.setAttribute("stroke-width","2");const s=document.createElementNS(e,"path");return s.setAttribute("stroke-linecap","round"),"loading"!==t&&s.setAttribute("stroke-linejoin","round"),s.setAttribute("d",r[t]),o.appendChild(s),o}function a(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.textContent=e),n}function c(t,e,r){const c={...n,...r},l=c.placement??"top",d=c.sticky??!1,u=`${l}|${t}|${e}`;if(c.dedupe){const t=o.get(u);if(t)return t.restart(),{dismiss:t.dismiss}}"loading"!==t&&!1!==c.sound&&import("./sounds-OMHXVVQ4.js").then(e=>{"success"===t?e.playSuccess():"error"===t?e.playError():e.playNotification()}).catch(()=>{});const m="bottom"===l?s("toast-container-bottom","fixed bottom-4 left-1/2 -translate-x-1/2 z-[9999] flex flex-col-reverse gap-2 items-center pointer-events-none"):s("toast-container","fixed top-4 left-1/2 -translate-x-1/2 z-[9999] flex flex-col gap-2 items-center pointer-events-none"),p="bottom"===l?"translateY(10px)":"translateY(-10px)",f=a("pointer-events-auto cursor-pointer rosh-toast");f.style.opacity="0",f.style.transform=`${p} scale(0.95)`,f.setAttribute("role","error"===t?"alert":"status"),f.setAttribute("aria-atomic","true"),f.appendChild(i(t,`h-4 w-4 rosh-tone-${t}${"loading"===t?" animate-spin":""}`));const h=document.createElement("span");let y;h.textContent=e,f.appendChild(h),m.appendChild(f),requestAnimationFrame(()=>{f.style.opacity="1",f.style.transform="translateY(0) scale(1)"});let v=!1;const g=()=>{v||(v=!0,y&&clearTimeout(y),o.delete(u),f.style.opacity="0",f.style.transform=`${p} scale(0.95)`,setTimeout(()=>f.remove(),300))},b=c.duration??("info"===t?4500:3e3),x=()=>{y&&clearTimeout(y),d||(y=setTimeout(g,b))};return x(),f.addEventListener("mouseenter",()=>{y&&clearTimeout(y)}),f.addEventListener("mouseleave",()=>{v||x()}),f.addEventListener("click",g),o.set(u,{el:f,restart:x,dismiss:g}),{dismiss:g}}var l={success:(t,e)=>c("success",t,e),error:(t,e)=>c("error",t,e),warning:(t,e)=>c("warning",t,e),info:(t,e)=>c("info",t,e),notify:(e,o)=>function(e,o){!1!==(o?.sound??n.sound)&&import("./sounds-OMHXVVQ4.js").then(t=>t.playNotification()).catch(()=>{});const r=s("notif-container","fixed top-4 right-4 z-[9999] flex flex-col gap-3 items-end pointer-events-none"),c=a("pointer-events-auto cursor-pointer rosh-notif");c.style.opacity="0",c.style.transform="translateX(30px) scale(0.95)";const l=a("rosh-notif-badge");l.appendChild(i("bell","h-5 w-5"));const d=a("rosh-notif-body");d.append(a("rosh-notif-title",t().toast.notification),a("notif-msg rosh-notif-msg",e));const u=document.createElement("button");u.className="rosh-notif-close",u.textContent="×",c.append(l,d,u);const m=()=>{c.style.opacity="0",c.style.transform="translateX(30px) scale(0.95)",setTimeout(()=>c.remove(),300)};u.addEventListener("click",t=>{t.stopPropagation(),m()}),c.addEventListener("click",m),r.appendChild(c),requestAnimationFrame(()=>{c.style.opacity="1",c.style.transform="translateX(0) scale(1)"}),setTimeout(m,o?.duration??1e4)}(e,o),promise:(t,e,n)=>{const o=c("loading",e.loading,{...n,sticky:!0});return t.then(t=>{o.dismiss(),c("success","function"==typeof e.success?e.success(t):e.success,n)},t=>{o.dismiss(),c("error","function"==typeof e.error?e.error(t):e.error,n)}),t},configure:t=>{n={...t}}};export{l as toast_default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="4.155.1",a=r;export{a as APP_VERSION,r as VERSION};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import{escapeHtml as e}from"./chunk-BR22X7E5.js";import{
|
|
2
|
-
return u("div",{...n,dangerouslySetInnerHTML:r})}function g({columns:e,data:g,onChange:m,onColumnsChange:f,fixedRows:p=!1,minRows:y=15,maxHeight:b="260px",cellStyles:v,onFocusChange:x,onSelectionChange:M}){const D=r(null),k=
|
|
1
|
+
import{escapeHtml as e}from"./chunk-BR22X7E5.js";import{useBrowserLayoutEffect as t}from"./chunk-D65T4H6J.js";import{useShellStrings as n}from"./chunk-FEWQDVQJ.js";import{useRef as r,useState as o,useEffect as l,useCallback as c,useMemo as a}from"react";import{createPortal as s}from"react-dom";import{jsxs as i,jsx as u,Fragment as d}from"react/jsx-runtime";function h(e,t){const n=e[e.length-1];return n&&!n.some(e=>e.trim())?e:[...e,Array(t).fill("")]}function w({text:t,...n}){const r=a(()=>({__html:e(t)}),[t]);/* @__PURE__ */
|
|
2
|
+
return u("div",{...n,dangerouslySetInnerHTML:r})}function g({columns:e,data:g,onChange:m,onColumnsChange:f,fixedRows:p=!1,minRows:y=15,maxHeight:b="260px",cellStyles:v,onFocusChange:x,onSelectionChange:M}){const D=r(null),k=n().grid,[C,E]=o(null);l(()=>{x?.(C)},[C,x]);const[L,S]=o({}),$=r(null),[N,A]=o({}),z=r(null),[O,T]=o(null),[R,K]=o(null),[F,P]=o(null),[I,X]=o(null),[H,Y]=o(null),j=r(null);t(()=>{const e=j.current;if(!e||e.row!==H?.row||e.col!==H?.col)return;j.current=null;const t=D.current?.querySelector(`[data-row="${e.row}"][data-col="${e.col}"]`);if(!t)return;t.focus();const n=document.createRange();n.selectNodeContents(t),n.collapse(!1);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(n)},[H]);const[W,q]=o(null),[B,J]=o(null);l(()=>{M?.(W&&B?{anchor:W,end:B}:null)},[W,B,M]);const Q=r(!1),[V,_]=o(null),U=r(!1),G=r({a:null,e:null});G.current={a:W,e:B};const Z=W&&B&&(W.row!==B.row||W.col!==B.col),ee=[...g];if(!p)for(;ee.length<y;)ee.push(Array(e.length).fill(""));const te=c((t,n,r)=>{const o=ee.map(e=>[...e]);for(;o.length<=t;)o.push(Array(e.length).fill(""));for(;o[t].length<e.length;)o[t].push("");o[t][n]=r,m(o)},[ee,e.length,m]),ne=c((e,t,n)=>{if(0!==e.button)return;const r=document.activeElement;if(r?.dataset?.row&&r?.dataset?.col){const e=parseInt(r.dataset.row),t=parseInt(r.dataset.col),n=r.textContent||"";if(n!==(ee[e]?.[t]||"")){const r=ee.map(e=>[...e]);r[e]&&(r[e][t]=n,m(r))}}Q.current=!0,e.shiftKey&&W||q({row:t,col:n}),J({row:t,col:n})},[ee,m,W]),re=c((e,t)=>{Q.current&&J({row:e,col:t})},[]);l(()=>{const e=()=>{Q.current=!1};return window.addEventListener("mouseup",e),()=>window.removeEventListener("mouseup",e)},[]),l(()=>{const e=e=>{if(!e.ctrlKey&&!e.metaKey||"c"!==e.key)return;if(!W||!B)return;const t=window.getSelection();if(t&&t.toString().length>0&&!Z)return;const n=Math.min(W.row,B.row),r=Math.max(W.row,B.row),o=Math.min(W.col,B.col),l=Math.max(W.col,B.col),c=[];for(let e=n;e<=r;e++){const t=[];for(let n=o;n<=l;n++)t.push(ee[e]?.[n]||"");c.push(t.join("\t"))}const a=c.join("\n");a&&(e.preventDefault(),navigator.clipboard.writeText(a))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[W,B,ee,Z]),l(()=>{const t=t=>{if(!C)return;const n=document.activeElement;if(n?.isContentEditable)return;if(!D.current?.contains(n))return;const r=t.clipboardData?.getData("text/plain");if(!r)return;t.preventDefault();const o=r.split("\n").filter(e=>e).map(e=>e.split("\t")),l=ee.map(e=>[...e]);for(let t=0;t<o.length;t++){const n=C.row+t;for(;l.length<=n;)l.push(Array(e.length).fill(""));for(;l[n].length<e.length;)l[n].push("");for(let r=0;r<o[t].length;r++){const c=C.col+r;if(c>=e.length)break;e[c].readOnly||(l[n][c]=o[t][r].trim())}}m(p?l:h(l,e.length)),q({row:C.row,col:C.col}),J({row:Math.min(C.row+o.length-1,l.length-1),col:Math.min(C.col+(o[0]?.length||1)-1,e.length-1)})};return window.addEventListener("paste",t),()=>window.removeEventListener("paste",t)},[C,ee,e,m,p]);const oe=c((t,n,r)=>{const o=t.clipboardData.getData("text/plain");if(!o)return;const l=o.split("\n").map(e=>e.split("\t"));if(l.length<=1&&l[0]?.length<=1)return;t.preventDefault();const c=ee.map(e=>[...e]);for(let t=0;t<l.length;t++){const o=n+t;for(;c.length<=o;)c.push(Array(e.length).fill(""));for(;c[o].length<e.length;)c[o].push("");for(let n=0;n<l[t].length;n++){const a=r+n;if(a>=e.length)break;e[a].readOnly||(c[o][a]=l[t][n].trim())}}m(p?c:h(c,e.length))},[ee,e,m,p]),le=c((t,n,r)=>{let o=n,l=r;if("Tab"===t.key)t.preventDefault(),l=t.shiftKey?r-1:r+1,l>=e.length&&(l=0,o=n+1),l<0&&(l=e.length-1,o=n-1);else if("Enter"===t.key)t.preventDefault(),o=t.shiftKey?n-1:n+1;else if("ArrowDown"===t.key)t.preventDefault(),o=n+1;else if("ArrowUp"===t.key)t.preventDefault(),o=n-1;else if("ArrowLeft"===t.key)t.preventDefault(),l=r-1;else{if("ArrowRight"!==t.key){if("Delete"===t.key||"Backspace"===t.key){const o=t.target;if(o.isContentEditable)return void(o.textContent&&window.getSelection()?.toString()===o.textContent&&(t.preventDefault(),te(n,r,"")));if(t.preventDefault(),W&&B){const t=Math.min(W.row,B.row),n=Math.max(W.row,B.row),r=Math.min(W.col,B.col),o=Math.max(W.col,B.col),l=ee.map(e=>[...e]);for(let c=t;c<=n;c++)for(let t=r;t<=o;t++)l[c]&&!e[t]?.readOnly&&(l[c][t]="");m(l)}else te(n,r,"");return}return}t.preventDefault(),l=r+1}for(;l>=0&&l<e.length&&e[l].readOnly;)l+="Tab"===t.key&&t.shiftKey?-1:1;if(o>=0&&o<ee.length&&l>=0&&l<e.length){const e=D.current?.querySelector(`[data-row="${o}"][data-col="${l}"]`);e&&(e.focus({preventScroll:!0}),e.scrollIntoView({block:"nearest",inline:"nearest"}),E({row:o,col:l}),Y(null),q({row:o,col:l}),J({row:o,col:l}))}},[e,ee,ee.length,te,W,B,m]),ce=c(t=>{if(!p&&t>=ee.length-2){const t=ee.map(e=>[...e]);for(let n=0;n<5;n++)t.push(Array(e.length).fill(""));m(t)}},[p,ee,e.length,m]),[ae,se]=o(null);l(()=>{if(!ae)return;const e=()=>se(null);return window.addEventListener("pointerdown",e),()=>window.removeEventListener("pointerdown",e)},[ae]);const ie=c(t=>{const n=ee.map(e=>[...e]);n.splice(t,0,Array(e.length).fill("")),m(n)},[ee,e.length,m]),ue=c(e=>{if(ee.length<=1)return;const t=ee.filter((t,n)=>n!==e);m(t)},[ee,m]),de=c(e=>{const t=ee.map(t=>{const n=[...t];return n.splice(e,0,""),n});m(t)},[ee,m]),he=c(t=>{if(e.length<=1)return;const n=ee.map(e=>{const n=[...e];return n.splice(t,1),n});m(n)},[ee,e.length,m]),we=c((e,t)=>{e.preventDefault(),p||se({x:e.clientX,y:e.clientY,items:[{label:k.insertRowAbove,onClick:()=>{ie(t),se(null)}},{label:k.insertRowBelow,onClick:()=>{ie(t+1),se(null)}},{label:k.deleteRow(t+1),onClick:()=>{ue(t),se(null)}}]})},[p,ie,ue,k]),ge=c((t,n)=>{t.preventDefault(),p||se({x:t.clientX,y:t.clientY,items:[{label:k.insertColumnLeft,onClick:()=>{de(n),se(null)}},{label:k.insertColumnRight,onClick:()=>{de(n+1),se(null)}},{label:k.deleteColumn(String(e[n]?.title||n+1)),onClick:()=>{he(n),se(null)}}]})},[p,e,de,he,k]),me=t=>L[t]??e[t]?.width??150;l(()=>{const t=e=>{if(!$.current)return;const t=e.clientX-$.current.startX,n=Math.max(40,$.current.startW+t);S(e=>({...e,[$.current.col]:n}))},n=()=>{if($.current&&f){const t=e.map((e,t)=>({...e,width:L[t]??e.width}));t[$.current.col]={...t[$.current.col],width:L[$.current.col]??e[$.current.col].width},f(t)}$.current=null,document.body.style.cursor=""};return window.addEventListener("mousemove",t),window.addEventListener("mouseup",n),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)}},[e,L,f]);const fe=e=>N[e]??28;l(()=>{const e=e=>{if(!z.current)return;const t=e.clientY-z.current.startY,n=Math.max(20,z.current.startH+t);A(e=>({...e,[z.current.row]:n}))},t=()=>{z.current=null,document.body.style.cursor=""};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[]);const pe=c(t=>{const n=document.createElement("canvas").getContext("2d");if(!n)return;n.font="12px ui-monospace, SFMono-Regular, Menlo, monospace";let r=0;for(const e of ee){const o=String(e[t]??"").replace(/<[^>]*>/g,""),l=n.measureText(o).width;l>r&&(r=l)}const o=n.measureText(e[t]?.title??"").width;o>r&&(r=o);const l=Math.max(40,Math.ceil(r+24));if(S(e=>({...e,[t]:l})),f){const n=e.map((e,n)=>({...e,width:n===t?l:L[n]??e.width}));f(n)}},[ee,e,L,f]),ye=c(e=>{A(t=>{const n={...t};return delete n[e],n})},[]),be=c(t=>{const{a:n,e:r}=G.current;if(!n||!r)return;const o=Math.min(n.row,r.row),l=Math.max(n.row,r.row),c=Math.min(n.col,r.col),a=Math.max(n.col,r.col);let s=o,i=l,u=c,d=a;t.row>l?i=t.row:t.row<o&&(s=t.row),t.col>a?d=t.col:t.col<c&&(u=t.col);const h=l-o+1,w=a-c+1,g=ee.map(e=>[...e]);for(;g.length<=i;)g.push(Array(e.length).fill(""));for(const e of g)for(;e.length<=d;)e.push("");function f(e){const t=e.map(e=>parseFloat(e));if(t.length<2||t.some(e=>Number.isNaN(e)))return null;const n=t[1]-t[0];for(let e=2;e<t.length;e++)if(Math.abs(t[e]-t[e-1]-n)>1e-9)return null;return{step:n}}for(let e=s;e<=i;e++)for(let t=u;t<=d;t++){if(e>=o&&e<=l&&t>=c&&t<=a)continue;let n;if(1===w&&u===c&&d===a){const r=f(Array.from({length:h},(e,n)=>g[o+n]?.[t]??""));if(r){const c=parseFloat(g[l]?.[t]??"0"),a=parseFloat(g[o]?.[t]??"0"),s=e>l?e-l:-(o-e);n=String((e>l?c:a)+r.step*s)}else{const r=((e-o)%h+h)%h;n=g[o+r]?.[t]??""}}else if(1===h&&s===o&&i===l){const r=f(Array.from({length:w},(t,n)=>g[e]?.[c+n]??""));if(r){const o=parseFloat(g[e]?.[a]??"0"),l=parseFloat(g[e]?.[c]??"0"),s=t>a?t-a:-(c-t);n=String((t>a?o:l)+r.step*s)}else{const r=((t-c)%w+w)%w;n=g[e]?.[c+r]??""}}else{const r=((e-o)%h+h)%h,l=((t-c)%w+w)%w;n=g[o+r]?.[c+l]??""}g[e][t]=n}m(g),q({row:s,col:u}),J({row:i,col:d})},[ee,e.length,m]);l(()=>{const e=e=>{if(!U.current)return;const t=document.elementFromPoint(e.clientX,e.clientY),n=t?.closest?.("[data-row][data-col]");if(!n)return;const r=parseInt(n.dataset.row),o=parseInt(n.dataset.col);_({row:r,col:o})},t=()=>{U.current&&V&&be(V),U.current=!1,_(null),document.body.style.cursor=""};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[V,be]);const ve=e=>{e.preventDefault(),e.stopPropagation(),U.current=!0,document.body.style.cursor="crosshair"},xe=r(null),[Me,De]=o(0),[ke,Ce]=o(800);l(()=>{const e=xe.current;if(!e)return;const t=()=>Ce(e.clientHeight||800);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);const Ee=ee.length>100,Le=Ee?Math.max(0,Math.floor(Me/28)-20):0,Se=Ee?Math.min(ee.length,Math.ceil((Me+ke)/28)+20):ee.length,$e=a(()=>ee.slice(Le,Se),[ee,Le,Se]),Ne=28*Le,Ae=28*(ee.length-Se),ze="px-2 py-1.5 text-left text-xs font-medium text-gray-500 uppercase bg-gray-100 border-b border-r border-gray-200 select-none";/* @__PURE__ */
|
|
3
3
|
return i("div",{ref:xe,className:"border border-gray-300 rounded overflow-scroll grid-scroll",style:{maxHeight:b,height:b},onScroll:e=>De(e.target.scrollTop),children:[
|
|
4
4
|
/* @__PURE__ */i("table",{ref:D,className:"border-collapse select-none",style:{tableLayout:"fixed",minWidth:36+e.reduce((t,n)=>t+me(e.indexOf(n)),0)},children:[
|
|
5
5
|
/* @__PURE__ */i("colgroup",{children:[
|
|
6
6
|
/* @__PURE__ */u("col",{style:{width:36}}),e.map((e,t)=>/* @__PURE__ */u("col",{style:{width:me(t)}},e.key))]}),
|
|
7
7
|
/* @__PURE__ */u("thead",{className:"sticky top-0 z-10",children:/* @__PURE__ */i("tr",{children:[
|
|
8
|
-
/* @__PURE__ */u("th",{className:ze+" text-center w-9 cursor-pointer hover:bg-gray-200",onClick:()=>{
|
|
9
|
-
return i("th",{className:`${ze} cursor-pointer hover:bg-gray-200 relative${r?" !bg-blue-200":""}${I===n?" !bg-blue-100":""}`,style:{width:me(n)},draggable:!0,onDragStart:()=>(e=>
|
|
8
|
+
/* @__PURE__ */u("th",{className:ze+" text-center w-9 cursor-pointer hover:bg-gray-200",onClick:()=>{q({row:0,col:0}),J({row:ee.length-1,col:e.length-1})},title:k.selectAll,children:"#"}),e.map((t,n)=>{const r=W&&B&&Math.min(W.col,B.col)<=n&&n<=Math.max(W.col,B.col)&&0===Math.min(W.row,B.row)&&Math.max(W.row,B.row)===ee.length-1;/* @__PURE__ */
|
|
9
|
+
return i("th",{className:`${ze} cursor-pointer hover:bg-gray-200 relative${r?" !bg-blue-200":""}${I===n?" !bg-blue-100":""}`,style:{width:me(n)},draggable:!0,onDragStart:()=>(e=>P(e))(n),onDragOver:e=>((e,t)=>{e.preventDefault(),X(t)})(e,n),onDrop:()=>(t=>{if(null===F||F===t)return P(null),void X(null);const n=ee.map(e=>{const n=[...e],[r]=n.splice(F,1);return n.splice(t,0,r),n});if(m(n),f){const n=[...e],[r]=n.splice(F,1);n.splice(t,0,r),f(n)}P(null),X(null)})(n),onDragEnd:()=>{P(null),X(null)},onClick:e=>{e.shiftKey&&W||q({row:0,col:n}),J({row:ee.length-1,col:n})},onContextMenu:e=>ge(e,n),children:[t.title,
|
|
10
10
|
/* @__PURE__ */u("div",{className:"absolute -right-1 top-0 bottom-0 w-2 cursor-col-resize z-20",onMouseDown:e=>((e,t)=>{e.preventDefault(),e.stopPropagation(),$.current={col:t,startX:e.clientX,startW:me(t)},document.body.style.cursor="col-resize"})(e,n),onDoubleClick:e=>{e.stopPropagation(),pe(n)},title:k.resize})]},t.key)})]})}),
|
|
11
|
-
/* @__PURE__ */i("tbody",{children:[Ne>0&&/* @__PURE__ */u("tr",{style:{height:Ne}}),$e.map((t,n)=>{const r=Le+n,o=
|
|
11
|
+
/* @__PURE__ */i("tbody",{children:[Ne>0&&/* @__PURE__ */u("tr",{style:{height:Ne}}),$e.map((t,n)=>{const r=Le+n,o=W&&B&&Math.min(W.row,B.row)<=r&&r<=Math.max(W.row,B.row)&&0===Math.min(W.col,B.col)&&Math.max(W.col,B.col)===e.length-1;/* @__PURE__ */
|
|
12
12
|
return i("tr",{style:{height:fe(r)},children:[
|
|
13
|
-
/* @__PURE__ */i("td",{className:`relative px-1 py-1 text-center text-[10px] text-gray-400 border-b border-r border-gray-200 bg-gray-50 select-none cursor-pointer hover:bg-gray-200${o?" !bg-blue-200 !text-gray-700":""}${R===r?" !bg-blue-100":""}`,draggable:!0,onDragStart:()=>(e=>
|
|
14
|
-
/* @__PURE__ */u("div",{className:"absolute -bottom-1 left-0 right-0 h-2 cursor-row-resize z-20",onMouseDown:e=>((e,t)=>{e.preventDefault(),e.stopPropagation(),z.current={row:t,startY:e.clientY,startH:fe(t)},document.body.style.cursor="row-resize"})(e,r),onDoubleClick:e=>{e.stopPropagation(),ye(r)},title:k.resize})]}),e.map((e,n)=>{const o=
|
|
13
|
+
/* @__PURE__ */i("td",{className:`relative px-1 py-1 text-center text-[10px] text-gray-400 border-b border-r border-gray-200 bg-gray-50 select-none cursor-pointer hover:bg-gray-200${o?" !bg-blue-200 !text-gray-700":""}${R===r?" !bg-blue-100":""}`,draggable:!0,onDragStart:()=>(e=>T(e))(r),onDragOver:e=>((e,t)=>{e.preventDefault(),K(t)})(e,r),onDrop:()=>(e=>{if(null===O||O===e)return T(null),void K(null);const t=ee.map(e=>[...e]),[n]=t.splice(O,1);t.splice(e,0,n),m(t),T(null),K(null)})(r),onDragEnd:()=>{T(null),K(null)},onClick:t=>{t.shiftKey&&W||q({row:r,col:0}),J({row:r,col:e.length-1})},onContextMenu:e=>we(e,r),children:[r+1,
|
|
14
|
+
/* @__PURE__ */u("div",{className:"absolute -bottom-1 left-0 right-0 h-2 cursor-row-resize z-20",onMouseDown:e=>((e,t)=>{e.preventDefault(),e.stopPropagation(),z.current={row:t,startY:e.clientY,startH:fe(t)},document.body.style.cursor="row-resize"})(e,r),onDoubleClick:e=>{e.stopPropagation(),ye(r)},title:k.resize})]}),e.map((e,n)=>{const o=W&&B&&function(e,t,n,r){const o=Math.min(e.row,t.row),l=Math.max(e.row,t.row),c=Math.min(e.col,t.col),a=Math.max(e.col,t.col);return n>=o&&n<=l&&r>=c&&r<=a}(W,B,r,n),l=H?.row===r&&H?.col===n&&!e.readOnly,c=C?.row===r&&C?.col===n,a=v?.[`${r}:${n}`],s=W&&B?Math.max(W.row,B.row):-1,d=W&&B?Math.max(W.col,B.col):-1,h=W&&B&&r===s&&n===d,g=U.current&&V&&W&&B&&(()=>{const e=Math.min(W.row,B.row),t=Math.max(W.row,B.row),o=Math.min(W.col,B.col),l=Math.max(W.col,B.col);let c=e,a=t,s=o,i=l;return V.row>t?a=V.row:V.row<e&&(c=V.row),V.col>l?i=V.col:V.col<o&&(s=V.col),r>=c&&r<=a&&n>=s&&n<=i&&!(r>=e&&r<=t&&n>=o&&n<=l)})(),m="sm"===a?.fontSize?"text-[11px]":"lg"===a?.fontSize?"text-sm":"xl"===a?.fontSize?"text-base":"text-xs",f=`${a?.bold?" font-bold":""}${a?.italic?" italic":""}${a?.underline?" underline":""}`;/* @__PURE__ */
|
|
15
15
|
return i("td",{className:`relative px-0 py-0 border-b border-r border-gray-200 text-sm${e.readOnly?" bg-gray-50 text-gray-500 cursor-default":" cursor-cell"}${o?" !bg-blue-100":""}${c&&!o?" ring-2 ring-inset ring-blue-400":""}${g?" !bg-blue-50 ring-1 ring-inset ring-blue-300":""}`,onMouseDown:e=>{if(e.target===e.currentTarget){ne(e,r,n);const t=e.currentTarget.querySelector("[data-row][data-col]");t?.focus()}},onMouseEnter:()=>re(r,n),onClick:e=>{if(e.target===e.currentTarget){const t=e.currentTarget.querySelector("[data-row][data-col]");t?.focus()}},onDoubleClick:t=>{t.target!==t.currentTarget||e.readOnly||Y({row:r,col:n})},children:[
|
|
16
|
-
/* @__PURE__ */u(w,{contentEditable:l,suppressContentEditableWarning:!0,tabIndex:0,"data-row":r,"data-col":n,className:`w-full h-full px-2 py-1 rosh-focus-ring whitespace-nowrap overflow-hidden ${"right"===e.align?"text-right":"center"===e.align?"text-center":""} ${e.readOnly?"cursor-default":"cursor-cell"} font-mono ${m}${f}`,onMouseDown:e=>ne(e,r,n),onMouseEnter:()=>re(r,n),onDoubleClick:()=>{e.readOnly||Y({row:r,col:n})},onFocus:()=>{E({row:r,col:n}),
|
|
16
|
+
/* @__PURE__ */u(w,{contentEditable:l,suppressContentEditableWarning:!0,tabIndex:0,"data-row":r,"data-col":n,className:`w-full h-full px-2 py-1 rosh-focus-ring whitespace-nowrap overflow-hidden ${"right"===e.align?"text-right":"center"===e.align?"text-center":""} ${e.readOnly?"cursor-default":"cursor-cell"} font-mono ${m}${f}`,onMouseDown:e=>ne(e,r,n),onMouseEnter:()=>re(r,n),onDoubleClick:()=>{e.readOnly||Y({row:r,col:n})},onFocus:()=>{E({row:r,col:n}),Q.current||(q({row:r,col:n}),J({row:r,col:n}))},onBlur:e=>{const o=e.currentTarget.textContent||"";o!==(t[n]||"")&&te(r,n,o),Y(null)},onInput:()=>ce(r),onPaste:e=>oe(e,r,n),onKeyDown:t=>{if(!(l||e.readOnly||1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey))return t.preventDefault(),te(r,n,t.key),j.current={row:r,col:n},void Y({row:r,col:n});le(t,r,n)},text:t[n]||""}),h&&/* @__PURE__ */u("div",{onMouseDown:ve,title:k.fill,className:"absolute -bottom-[3px] -right-[3px] w-[7px] h-[7px] bg-blue-500 border border-white cursor-crosshair z-30 hover:bg-blue-600"})]},n)})]},r)}),Ae>0&&/* @__PURE__ */u("tr",{style:{height:Ae}})]})]}),ae&&s(
|
|
17
17
|
/* @__PURE__ */i(d,{children:[
|
|
18
18
|
/* @__PURE__ */u("div",{className:"fixed inset-0 z-[200]",onPointerDown:()=>se(null)}),
|
|
19
19
|
/* @__PURE__ */u("div",{className:"fixed z-[201] bg-white rounded-lg shadow-lg border border-gray-200 py-1 min-w-[160px]",style:{left:ae.x,top:ae.y},children:ae.items.map((e,t)=>/* @__PURE__ */u("button",{onPointerDown:t=>{t.stopPropagation(),e.onClick()},className:"w-full text-left px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",children:e.label},t))})]}),document.body)]})}export{g as EditableGrid,h as withSpareRow};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useHydrated as e,useBrowserState as t}from"./chunk-D65T4H6J.js";import{useShellStrings as r}from"./chunk-FEWQDVQJ.js";import{createContext as n,useSyncExternalStore as o,useCallback as i,useContext as a,useMemo as s}from"react";import{jsxs as l,jsx as c}from"react/jsx-runtime";var d="(max-width: 767px), (pointer: coarse)";function u(){return!("undefined"==typeof window||!window.matchMedia)&&window.matchMedia(d).matches}function f(){return!1}function m(e){if("undefined"==typeof window||!window.matchMedia)return()=>{};const t=window.matchMedia(d);return t.addEventListener?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):(t.addListener(e),()=>t.removeListener(e))}function h(){return o(m,u,f)}var w={success:"success",error:"error",warning:"warning",info:"info",404:"info",403:"warning",500:"error"},p={success:"text-green-600 bg-green-100",error:"text-red-600 bg-red-100",warning:"text-amber-600 bg-amber-100",info:"text-blue-600 bg-blue-100"},g={404:e=>e.notFound,403:e=>e.noAccess,500:e=>e.serverError};function v({tone:e}){const t={className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":!0};switch(e){case"success":/* @__PURE__ */
|
|
2
2
|
return c("svg",{...t,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})});case"error":/* @__PURE__ */
|
|
3
3
|
return c("svg",{...t,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})});case"warning":/* @__PURE__ */
|
|
4
4
|
return c("svg",{...t,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})});default:/* @__PURE__ */
|
|
5
|
-
return c("svg",{...t,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})})}}function y({status:
|
|
5
|
+
return c("svg",{...t,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})})}}function y({status:e="info",title:t,subTitle:n,extra:o,icon:i,children:a,className:s=""}){const d=w[e],u=r().errors;/* @__PURE__ */
|
|
6
6
|
return l("div",{role:"error"===d?"alert":void 0,className:`flex flex-col items-center justify-center px-6 py-12 text-center ${s}`.trim(),children:[
|
|
7
7
|
/* @__PURE__ */c("div",{className:`flex h-14 w-14 items-center justify-center rounded-full ${p[d]}`,children:i??/* @__PURE__ */c(v,{tone:d})}),
|
|
8
|
-
/* @__PURE__ */c("h2",{className:"mt-4 text-lg font-semibold text-gray-900",children:
|
|
9
|
-
/* @__PURE__ */c("p",{className:"text-sm text-gray-500",children:r})]})}var L="undefined"!=typeof window&&"undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),M={MOD:["⌘","Ctrl"],ALT:["⌥","Alt"],CMD_ENTER:["⌘⏎","Ctrl⏎"],CMD_S:["⌘S","Ctrl+S"],CMD_K:["⌘K","Ctrl+K"],CMD_DOT:["⌘.","Ctrl+."],CMD_A:["⌘A","Ctrl+A"],CMD_Z:["⌘Z","Ctrl+Z"],CMD_SHIFT_Z:["⌘⇧Z","Ctrl+Shift+Z"],ALT_SHIFT_D:["⌥⇧D","Alt+Shift+D"],ALT_SHIFT_E:["⌥⇧E","Alt+Shift+E"],ALT_SHIFT_N:["⌥⇧N","Alt+Shift+N"]},_=L?0:1,
|
|
10
|
-
return c("kbd",{className:[P,$[t],r].filter(Boolean).join(" "),children:n})}var
|
|
11
|
-
return c(
|
|
8
|
+
/* @__PURE__ */c("h2",{className:"mt-4 text-lg font-semibold text-gray-900",children:t??g[e]?.(u)??""}),n&&/* @__PURE__ */c("p",{className:"mt-1 max-w-md text-sm text-gray-500",children:n}),a&&/* @__PURE__ */c("div",{className:"mt-4 w-full max-w-md text-left",children:a}),o&&/* @__PURE__ */c("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:o})]})}function x({size:e="md",padding:t="py-12",label:r,className:n=""}){const o=/* @__PURE__ */c("div",{className:`${"sm"===e?"h-5 w-5":"lg"===e?"h-12 w-12":"h-8 w-8"} animate-spin rounded-full border-2 border-gray-200 border-t-blue-600`});return null==r?/* @__PURE__ */c("div",{className:`flex items-center justify-center ${t} ${n}`,children:o}):/* @__PURE__ */l("div",{role:"status",className:`flex flex-col items-center justify-center gap-3 ${t} ${n}`,children:[o,
|
|
9
|
+
/* @__PURE__ */c("p",{className:"text-sm text-gray-500",children:r})]})}var L="undefined"!=typeof window&&"undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),M={MOD:["⌘","Ctrl"],ALT:["⌥","Alt"],CMD_ENTER:["⌘⏎","Ctrl⏎"],CMD_S:["⌘S","Ctrl+S"],CMD_K:["⌘K","Ctrl+K"],CMD_DOT:["⌘.","Ctrl+."],CMD_A:["⌘A","Ctrl+A"],CMD_Z:["⌘Z","Ctrl+Z"],CMD_SHIFT_Z:["⌘⇧Z","Ctrl+Shift+Z"],ALT_SHIFT_D:["⌥⇧D","Alt+Shift+D"],ALT_SHIFT_E:["⌥⇧E","Alt+Shift+E"],ALT_SHIFT_N:["⌥⇧N","Alt+Shift+N"]},_=L?0:1,b=M.MOD[_],C=M.ALT[_],D="⇧",E="⏎",N=M.CMD_ENTER[_],S=M.CMD_S[_],T=M.CMD_K[_],k=M.CMD_DOT[_],A=M.CMD_A[_],j=M.CMD_Z[_],H=M.CMD_SHIFT_Z[_],I=M.ALT_SHIFT_D[_],F=M.ALT_SHIFT_E[_],z=M.ALT_SHIFT_N[_],Z=new Map(L?Object.values(M).map(([e,t])=>[e,t]):[]);function O(t){return e()?t:Z.get(t)??t}var P="inline-flex items-center justify-center rounded border border-gray-200 bg-gray-50 font-medium text-gray-500",$={sm:"px-1 py-0.5 text-[10px]",md:"px-1.5 py-0.5 text-[11px]"};function J({keys:e,size:t="md",className:r=""}){const n=O(e);/* @__PURE__ */
|
|
10
|
+
return c("kbd",{className:[P,$[t],r].filter(Boolean).join(" "),children:n})}var K=n(null);function R({value:e,children:t}){/* @__PURE__ */
|
|
11
|
+
return c(K.Provider,{value:e,children:t})}function U(e="react-os-shell:prefs",r){const[n,o]=t(()=>{try{const t=JSON.parse(localStorage.getItem(e)||"{}");return{...r??{},...t}}catch{return{...r??{}}}},{...r??{}});return{prefs:n,save:i(t=>{o(r=>{const n={...r,...t};try{localStorage.setItem(e,JSON.stringify(n))}catch{}return n})},[e])}}var W={prefs:{},save:()=>{}};function B(){return a(K)??W}function Q(){const{prefs:e,save:t}=B(),r=i(e=>{const r=t(e);return r&&"function"==typeof r.then?r.catch(()=>{}):r},[t]);return s(()=>({prefs:e,save:r}),[e,r])}var V="react-os-shell:stale-chunk-reload-at",q=3e4,G="vite:preloadError",X="/_next/static/",Y=/Failed to fetch dynamically imported module|error loading dynamically imported module|Importing a module script failed|Unable to preload CSS/i;function ee(e){if(e instanceof Error&&"ChunkLoadError"===e.name)return!0;const t=e instanceof Error?e.message:"string"==typeof e?e:"";return Y.test(t)}function te(e={}){if("undefined"==typeof window)return()=>{};const t=e.cooldownMs??3e4,r=e.reload??(()=>window.location.reload()),n=e.now??Date.now,o=void 0===e.storage?function(){try{const e=window.sessionStorage;return e.getItem(V),e}catch{return null}}():e.storage,i=void 0===e.chunkPathPrefix?X:e.chunkPathPrefix,a=e=>{const r=n(),i=function(e){if(!e)return null;try{const t=e.getItem(V),r=null===t?NaN:Number(t);return Number.isFinite(r)?r:null}catch{return null}}(o);return null!==i&&r-i<t?(console.error("[efficient-shell] a lazy chunk is still missing after a reload; letting the failure through:",e),!1):(function(e,t){if(e)try{e.setItem(V,String(t))}catch{}}(o,r),console.warn("[efficient-shell] a lazy chunk is no longer on the server (new deploy?); reloading onto the current build:",e),!0)},s=e=>{const t=e.payload;ee(t)&&a(t)&&(e.preventDefault(),r())};let l=!0,c=!1;const d=/* @__PURE__ */new Set,u=null===i?null:e=>{const t=function(e,t){const r=e.target;let n="";if(r instanceof window.HTMLScriptElement?n=r.src:r instanceof window.HTMLLinkElement&&function(e){const t=e.rel.toLowerCase().split(/\s+/);if(t.includes("stylesheet")||t.includes("modulepreload"))return!0;const r=(e.getAttribute("as")??"").toLowerCase();return t.includes("preload")&&("script"===r||"style"===r)}(r)?n=r.href:e instanceof window.ErrorEvent&&"SyntaxError"===e.error?.name&&(n=e.filename),!n)return null;try{const e=new URL(t,window.location.origin).href,r=new URL(n,window.location.href).href;return r.startsWith(e)?r:null}catch{return null}}(e,i);!t||c||d.has(t)||(d.add(t),async function(e){try{const t=await fetch(e,{method:"HEAD",cache:"no-store"});return 404===t.status||410===t.status||t.ok&&/\btext\/html\b/i.test(t.headers.get("content-type")??"")}catch{return!1}}(t).then(e=>{d.delete(t),e&&l&&!c&&a(t)&&(c=!0,r())}))};return window.addEventListener(G,s),u&&window.addEventListener("error",u,!0),()=>{l=!1,window.removeEventListener(G,s),u&&window.removeEventListener("error",u,!0)}}export{C as ALT,I as ALT_SHIFT_D,F as ALT_SHIFT_E,z as ALT_SHIFT_N,A as CMD_A,k as CMD_DOT,N as CMD_ENTER,T as CMD_K,S as CMD_S,H as CMD_SHIFT_Z,j as CMD_Z,E as ENTER,J as Kbd,x as LoadingSpinner,b as MOD,X as NEXT_CHUNK_PATH_PREFIX,y as Result,D as SHIFT,q as STALE_CHUNK_RELOAD_COOLDOWN_MS,V as STALE_CHUNK_RELOAD_KEY,R as ShellPrefsProvider,G as VITE_PRELOAD_ERROR_EVENT,te as installStaleChunkReload,L as isMac,ee as isStaleChunkError,h as useIsMobile,U as useLocalStoragePrefs,Q as useShellPrefs,B as useShellPrefsAdapter,O as useShortcutLabel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{toast_default as e}from"./chunk-
|
|
1
|
+
import{toast_default as e}from"./chunk-VGTI3BJ4.js";import{useShellStrings as t}from"./chunk-FEWQDVQJ.js";import{createContext as n,useContext as r,useRef as a,useState as o,useEffect as i}from"react";import*as s from"pdfjs-dist";import{createPortal as l}from"react-dom";import{jsx as c,jsxs as d}from"react/jsx-runtime";function u(e,t,n){return new Error(`The response for ${e} is not a WebAssembly module (got ${function(e){if(0===e.length)return"an empty response";const t=Array.from(e.subarray(0,24)).map(e=>e>=32&&e<127?String.fromCharCode(e):".").join("");return`${e.length} bytes starting "${t}"`}(n)}). The bundler did not emit "${t}" as an asset, and the host answered with a fallback page instead of a 404. Serve pdfjs-dist/wasm/ yourself and point window.__REACT_OS_SHELL_PDF_WASM__ at it.`)}var h=n(null);function m({children:e}){const t=r(h);return t?l(e,t):
|
|
2
2
|
/* @__PURE__ */c("div",{className:"flex shrink-0 flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 px-3 py-2 text-xs",children:e})}"undefined"==typeof window||s.GlobalWorkerOptions.workerSrc||(s.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${s.version}/build/pdf.worker.min.mjs`);var p={"jbig2.wasm":new URL("pdfjs-dist/wasm/jbig2.wasm",import.meta.url).href,"openjpeg.wasm":new URL("pdfjs-dist/wasm/openjpeg.wasm",import.meta.url).href},f=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=p[t];if(!n)throw new Error(`No bundled pdf.js wasm module for "${t}".`);const r=await fetch(n);if(!r.ok)throw new Error(`Unable to load wasm data at: ${n}`);const a=new Uint8Array(await r.arrayBuffer());if(!function(e){return e.length>=4&&0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]}(a))throw u(n,t,a);return a}};function g(e){const t=e||("undefined"!=typeof window?window.__REACT_OS_SHELL_PDF_WASM__:void 0);return"string"==typeof t&&t?{wasmUrl:t.endsWith("/")?t:`${t}/`}:{BinaryDataFactory:f}}var w=[50,75,100,125,150,200,300,400];function v(e,t,n){const r=(t.width-40)/n.width,a="page"===e?Math.min(r,(t.height-40)/n.height):r;return Math.min(Math.max(a,.3),4)}function y({url:n,filename:r,fit:l="width",onDownload:u,onEmail:h,workerSrc:p,wasmUrl:f}){const y=t().pdf,b=a(null),x=a(null),k=a(null),[C,L]=o(null),[N,M]=o(1),[j,E]=o(0),[z,A]=o(1),[_,D]=o(!0),[P,W]=o(!0),S=a(y.loadFailed);S.current=y.loadFailed,i(()=>{let t=!1;return W(!0),M(1),p&&(s.GlobalWorkerOptions.workerSrc=p),s.getDocument({url:n,...g(f)}).promise.then(e=>{t||(L(e),E(e.numPages),W(!1))}).catch(()=>{t||(e.error(S.current),W(!1))}),()=>{t=!0}},[n,p,f]),i(()=>{if(!C||!_||!k.current)return;const e=()=>{const e=k.current;e&&C.getPage(N).then(t=>{if(!k.current)return;const n=t.getViewport({scale:1}),r=v(l,{width:e.clientWidth,height:e.clientHeight},{width:n.width,height:n.height});A(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(k.current),()=>t.disconnect()},[C,N,_,l]),i(()=>{if(!C||!b.current)return;let e=!1,t=null,n=null;return C.getPage(N).then(r=>{if(e||!b.current)return;const a=r.getViewport({scale:z}),o=b.current;o.width=a.width,o.height=a.height,o.style.width=`${a.width}px`,o.style.height=`${a.height}px`;const i=o.getContext("2d");t=r.render({canvas:o,canvasContext:i,viewport:a}),t.promise.catch(()=>{});const l=x.current;l&&(l.replaceChildren(),l.style.setProperty("--total-scale-factor",String(a.scale)),n=new s.TextLayer({textContentSource:r.streamTextContent(),container:l,viewport:a}),n.render().then(()=>{if(e)return;const t=document.createElement("div");t.className="endOfContent",l.append(t)}).catch(()=>{}))}),()=>{e=!0,t?.cancel(),n?.cancel()}},[C,N,z]),i(()=>{const e=()=>x.current?.classList.remove("selecting");return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);const T="page"===l?y.fitPage:y.fitWidth,V="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
|
|
3
3
|
return d("div",{className:"flex flex-col h-full",children:[
|
|
4
4
|
/* @__PURE__ */d(m,{children:[
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{useDismissPopupsOnOpen as e,registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-OSJ3ADF2.js";import{useShellStrings as r,splitAround as o}from"./chunk-
|
|
1
|
+
import{useDismissPopupsOnOpen as e,registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-OSJ3ADF2.js";import{useShellStrings as r,splitAround as o}from"./chunk-FEWQDVQJ.js";import{createContext as l,useEffect as i,useRef as a,useId as s,useContext as c,useState as d,useCallback as u}from"react";import{jsxs as m,jsx as f,Fragment as h}from"react/jsx-runtime";var b=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function g(e){return Array.from(e.querySelectorAll(b)).filter(e=>null!==e.offsetParent||e===document.activeElement)}var p=[];function v(e){const t=p.findIndex(t=>t!==e&&e.contains(t));-1===t?p.push(e):p.splice(t,0,e)}function x(e){const t=p.lastIndexOf(e);-1!==t&&p.splice(t,1)}var y=/* @__PURE__ */new WeakSet;function w(e){return g(e)}function N(e,t){i(()=>{if(!t)return;const n=e.current;return n?(y.add(n),v(n),()=>{x(n),y.delete(n)}):void 0},[e,t])}function k(e,t){const n=p.lastIndexOf(t),r=n>0?p[n-1]:-1===n?p[p.length-1]??null:null,o=g(r??e.ownerDocument.body).filter(n=>!t.contains(n)&&!e.contains(n)),l=o.find(t=>0!==(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING));return l||(r&&!y.has(r)?o[0]??null:null)}function C(e,t,n){i(()=>{if(!t)return;const r=e.current;if(!r)return;const o=document.activeElement,l=n?.current??g(r)[0]??r;l!==r||r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),l.focus();const i=e=>{if("Tab"!==e.key)return;if(p[p.length-1]!==r)return;const t=g(r);if(0===t.length)return void e.preventDefault();const n=t[0],o=t[t.length-1],l=document.activeElement;!e.shiftKey||l!==n&&r.contains(l)?e.shiftKey||l!==o&&r.contains(l)||(e.preventDefault(),n.focus()):(e.preventDefault(),o.focus())};return v(r),document.addEventListener("keydown",i,!0),()=>{x(r),document.removeEventListener("keydown",i,!0),(r.contains(document.activeElement)||document.activeElement===document.body)&&o?.focus?.()}},[e,t,n])}var L=0,E=null;function P(e){i(()=>{if(!e)return;const t=document.body;if(0===L){E={overflow:t.style.overflow,paddingRight:t.style.paddingRight};const e=window.innerWidth-document.documentElement.clientWidth;t.style.overflow="hidden",e>0&&(t.style.paddingRight=`${e}px`)}return L+=1,()=>{0===(L-=1)&&E&&(t.style.overflow=E.overflow,t.style.paddingRight=E.paddingRight,E=null)}},[e])}var j={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl"};function D({open:o,onClose:l,title:c,description:d,role:u="dialog",children:h,footer:b,blocking:g=!1,size:p="md",initialFocus:v,"aria-label":x,"aria-labelledby":y,"aria-describedby":w,className:N=""}){const k=a(null),L=s(),E=s(),D=!g&&!b,F=s(),W=r().dialog;return e(o),C(k,o,v),P(o),i(()=>{if(o)return t(()=>(g||l(),!0))},[o,g,l]),o?/* @__PURE__ */m("div",{className:"fixed inset-0",style:{zIndex:n.overlay},role:"presentation",children:[
|
|
2
2
|
/* @__PURE__ */f("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),
|
|
3
|
-
/* @__PURE__ */f("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:g?void 0:e=>{e.target===e.currentTarget&&l()},children:/* @__PURE__ */m("div",{ref:k,role:u,"aria-modal":"true","aria-labelledby":c?
|
|
3
|
+
/* @__PURE__ */f("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:g?void 0:e=>{e.target===e.currentTarget&&l()},children:/* @__PURE__ */m("div",{ref:k,role:u,"aria-modal":"true","aria-labelledby":c?F:y,"aria-label":c||y?void 0:x,"aria-describedby":w??(d?E:h?L:void 0),className:`relative max-h-full w-full ${j[p]} overflow-y-auto overscroll-contain rounded-lg bg-white p-6 shadow-xl ${N}`.trim(),children:[c&&/* @__PURE__ */f("h2",{id:F,className:(D?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:c}),d&&/* @__PURE__ */f("p",{id:E,className:((c?"mt-1":D?"pr-8":"")+" text-sm text-gray-500").trim(),children:d}),h&&/* @__PURE__ */f("div",{id:L,className:"mt-2 text-sm text-gray-600",children:h}),b&&/* @__PURE__ */f("div",{className:"mt-6 flex flex-wrap justify-end gap-3",children:b}),D&&/* @__PURE__ */f("button",{type:"button",onClick:l,"aria-label":W.close,className:"absolute right-3 top-3 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */f("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:/* @__PURE__ */f("path",{d:"M6 6l8 8M14 6l-8 8"})})})]})})]}):null}var F=l(()=>Promise.resolve(!1)),W=()=>c(F),O=()=>Promise.resolve(!1),T=e=>O(e),I=()=>Promise.resolve(!1),M=e=>I(e),$=()=>Promise.resolve(null),A=e=>$(e),R={danger:{icon:"text-red-600 bg-red-100",button:"bg-red-600 hover:bg-red-700 text-white"},warning:{icon:"text-yellow-600 bg-yellow-100",button:"bg-yellow-600 hover:bg-yellow-700 text-white"},info:{icon:"text-blue-600 bg-blue-100",button:"bg-blue-600 hover:bg-blue-700 text-white"}},z="bg-white text-gray-700 border border-gray-300 px-4 py-2 text-sm font-medium rounded-lg hover:bg-gray-50";function K(){/* @__PURE__ */
|
|
4
4
|
return f("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */f("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})})}function S(){/* @__PURE__ */
|
|
5
|
-
return f("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */f("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function B({children:e}){const[t,n]=d(!1),[l,s]=d({message:""}),[c,b]=d(0),g=a(),p=a(null),v=a(0),x=a([]),y=a(null),w=a(null),N=u(e=>{p.current=e.id,g.current=e.resolve,b(e.id),s(e.options),n(!0)},[]),k=u(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const n={id:++v.current,options:t,resolve:e};null===p.current?N(n):x.current.push(n)})},[N]),[C,L]=d(!1),[E,P]=d({message:""}),[j,
|
|
6
|
-
return m(
|
|
7
|
-
/* @__PURE__ */f(D,{open:t,onClose:()=>
|
|
8
|
-
/* @__PURE__ */f("button",{ref:y,type:"button",onClick:()=>
|
|
9
|
-
/* @__PURE__ */f("button",{type:"button",onClick:()=>
|
|
10
|
-
/* @__PURE__ */f("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${
|
|
5
|
+
return f("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */f("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function B({children:e}){const[t,n]=d(!1),[l,s]=d({message:""}),[c,b]=d(0),g=a(),p=a(null),v=a(0),x=a([]),y=a(null),w=a(null),N=u(e=>{p.current=e.id,g.current=e.resolve,b(e.id),s(e.options),n(!0)},[]),k=u(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const n={id:++v.current,options:t,resolve:e};null===p.current?N(n):x.current.push(n)})},[N]),[C,L]=d(!1),[E,P]=d({message:""}),[j,W]=d(""),T=a(),M=u(e=>(P(e),W(""),L(!0),new Promise(e=>{T.current=e})),[]),[A,B]=d(!1),[J,Q]=d({}),[V,_]=d(""),q=a(),G=u(e=>{const t="string"==typeof e?{message:e}:e;return Q(t),_(t.defaultValue??""),B(!0),new Promise(e=>{q.current=e})},[]);i(()=>{O=k,I=M,$=G},[k,M,G]);const H=(e,t)=>{if(p.current!==e)return;const r=g.current,o=x.current.shift();o?N(o):(p.current=null,g.current=void 0,n(!1)),r?.(t)},U=e=>{L(!1),W(""),T.current?.(e)},X=e=>{if(e){const e=V.trim();if(!e&&!J.allowEmpty)return B(!1),void q.current?.(null);B(!1),q.current?.(e)}else B(!1),q.current?.(null)},Y=l.variant||(l.confirmLabel?.toLowerCase().includes("delete")||l.message.toLowerCase().includes("delete")?"danger":"info"),Z=R[Y],ee=R["warning"===E.variant?"warning":"danger"],te=E.confirmWord,ne=null==te||j===te,re=r().dialog,[oe,le]=o(re.typeToConfirm);/* @__PURE__ */
|
|
6
|
+
return m(F.Provider,{value:k,children:[e,
|
|
7
|
+
/* @__PURE__ */f(D,{open:t,onClose:()=>H(c,!1),initialFocus:y,footer:/* @__PURE__ */m(h,{children:[
|
|
8
|
+
/* @__PURE__ */f("button",{ref:y,type:"button",onClick:()=>H(c,!1),className:z,children:l.cancelLabel||re.cancel}),
|
|
9
|
+
/* @__PURE__ */f("button",{type:"button",onClick:()=>H(c,!0),className:`px-4 py-2 text-sm font-medium rounded-lg ${Z.button}`,children:l.confirmLabel||re.ok})]}),children:/* @__PURE__ */m("div",{className:"flex gap-4",children:[
|
|
10
|
+
/* @__PURE__ */f("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${Z.icon}`,children:/* @__PURE__ */f(K,{})}),
|
|
11
11
|
/* @__PURE__ */m("div",{className:"flex-1",children:[
|
|
12
12
|
/* @__PURE__ */f("h2",{className:"text-base font-semibold text-gray-900",children:l.title||re.confirmTitle}),
|
|
13
13
|
/* @__PURE__ */f("p",{className:"mt-2 text-sm text-gray-600",children:l.message})]})]})}),
|
|
14
|
-
/* @__PURE__ */m(D,{open:C,onClose:()=>
|
|
15
|
-
/* @__PURE__ */f("button",{ref:w,type:"button",onClick:()=>
|
|
16
|
-
/* @__PURE__ */f("button",{type:"button",onClick:()=>
|
|
17
|
-
/* @__PURE__ */f("button",{type:"button",onClick:()=>
|
|
14
|
+
/* @__PURE__ */m(D,{open:C,onClose:()=>U(!1),initialFocus:null!=te?void 0:w,footer:/* @__PURE__ */m(h,{children:[
|
|
15
|
+
/* @__PURE__ */f("button",{ref:w,type:"button",onClick:()=>U(!1),className:z,children:E.cancelLabel||re.destructiveCancel}),
|
|
16
|
+
/* @__PURE__ */f("button",{type:"button",onClick:()=>U(!0),disabled:!ne,className:`px-4 py-2 text-sm font-medium rounded-lg disabled:opacity-40 ${ee.button}`,children:te??E.confirmLabel??re.destructiveConfirm})]}),children:[
|
|
17
|
+
/* @__PURE__ */f("button",{type:"button",onClick:()=>U(!1),"aria-label":re.close,className:"absolute right-4 top-4 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600",children:/* @__PURE__ */f(S,{})}),
|
|
18
18
|
/* @__PURE__ */m("div",{className:"flex gap-4",children:[
|
|
19
19
|
/* @__PURE__ */f("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${ee.icon}`,children:/* @__PURE__ */f(K,{})}),
|
|
20
20
|
/* @__PURE__ */m("div",{className:"flex-1",children:[
|
|
@@ -22,8 +22,8 @@ return m(T.Provider,{value:k,children:[e,
|
|
|
22
22
|
/* @__PURE__ */f("p",{className:"mt-2 text-sm text-gray-600",children:E.message}),null!=te&&/* @__PURE__ */m(h,{children:[
|
|
23
23
|
/* @__PURE__ */m("p",{className:"mt-3 text-sm text-gray-700",children:[oe,
|
|
24
24
|
/* @__PURE__ */f("kbd",{className:"rounded border border-gray-300 bg-gray-50 px-1.5 py-0.5 text-xs font-bold text-red-600 font-mono",children:te}),le]}),
|
|
25
|
-
/* @__PURE__ */f("input",{autoFocus:!0,type:"text",value:j,onChange:e=>
|
|
26
|
-
/* @__PURE__ */m(D,{open:A,onClose:()=>
|
|
27
|
-
/* @__PURE__ */f("button",{type:"button",onClick:()=>
|
|
28
|
-
/* @__PURE__ */f("button",{type:"button",onClick:()=>
|
|
29
|
-
/* @__PURE__ */f("input",{autoFocus:!0,type:"text",value:
|
|
25
|
+
/* @__PURE__ */f("input",{autoFocus:!0,type:"text",value:j,onChange:e=>W(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j===te&&U(!0)},placeholder:te,className:"mt-2 w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-red-500"})]})]})]})]}),
|
|
26
|
+
/* @__PURE__ */m(D,{open:A,onClose:()=>X(!1),title:J.title||re.promptTitle,footer:/* @__PURE__ */m(h,{children:[
|
|
27
|
+
/* @__PURE__ */f("button",{type:"button",onClick:()=>X(!1),className:z,children:J.cancelLabel||re.cancel}),
|
|
28
|
+
/* @__PURE__ */f("button",{type:"button",onClick:()=>X(!0),disabled:!J.allowEmpty&&!V.trim(),className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 text-sm font-medium rounded-lg disabled:opacity-40",children:J.confirmLabel||re.ok})]}),children:[J.message&&/* @__PURE__ */f("p",{className:"text-sm text-gray-600",children:J.message}),
|
|
29
|
+
/* @__PURE__ */f("input",{autoFocus:!0,type:"text",value:V,onChange:e=>_(e.target.value),onKeyDown:e=>{"Enter"===e.key?X(!0):"Escape"===e.key&&X(!1)},onFocus:e=>e.target.select(),placeholder:J.placeholder,className:"mt-3 w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]"})]})]})}export{B as ConfirmProvider,D as Dialog,T as confirm,M as confirmDestructive,w as focusableIn,A as prompt,k as stopAfter,W as useConfirm,C as useFocusTrap,P as useScrollLock,N as useTabLayer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-
|
|
2
|
+
export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-4DT7B7GZ.js";import"../chunk-FEWQDVQJ.js";
|
|
@@ -749,6 +749,9 @@ interface ShellStrings {
|
|
|
749
749
|
list: {
|
|
750
750
|
/** Before the em dash: "3 selected — 40 records". */
|
|
751
751
|
selected: (count: number) => string;
|
|
752
|
+
/** In its place when a filter is hiding ticked rows: "2 selected, 5 not
|
|
753
|
+
* shown". `count` is the ticked rows on screen and can be zero. */
|
|
754
|
+
selectedNotShown: (count: number, notShown: number) => string;
|
|
752
755
|
allLoaded: (total: number, label: string) => string;
|
|
753
756
|
count: (total: number, label: string) => string;
|
|
754
757
|
loadedOf: (loaded: number, total: number, label: string) => string;
|
|
@@ -785,6 +788,22 @@ interface ShellStrings {
|
|
|
785
788
|
kilobytes: (value: number) => string;
|
|
786
789
|
megabytes: (value: number) => string;
|
|
787
790
|
};
|
|
791
|
+
/** `TransferBadge`, and the media fields' busy overlay when given a percentage. `verb` is the
|
|
792
|
+
* transfer's own word ("Uploading", "Moving"). */
|
|
793
|
+
transfer: {
|
|
794
|
+
uploading: string;
|
|
795
|
+
moving: string;
|
|
796
|
+
error: string;
|
|
797
|
+
retry: string;
|
|
798
|
+
dismiss: string;
|
|
799
|
+
cancel: (verb: string) => string;
|
|
800
|
+
/** "Uploading 55%". */
|
|
801
|
+
percent: (verb: string, pct: number) => string;
|
|
802
|
+
/** The size is not known yet: "Uploading…". */
|
|
803
|
+
unknown: (verb: string) => string;
|
|
804
|
+
/** The verb with what is moving: "Uploading plan.pdf". */
|
|
805
|
+
named: (verb: string, subject: string) => string;
|
|
806
|
+
};
|
|
788
807
|
/** `MediaUploadField` and `MediaUploadGrid`. */
|
|
789
808
|
media: {
|
|
790
809
|
uploadImage: string;
|
|
@@ -1269,13 +1288,15 @@ interface MediaUploadFieldProps {
|
|
|
1269
1288
|
removeLabel?: ReactNode;
|
|
1270
1289
|
/** Busy: disable controls and show a spinner while the caller's upload runs. */
|
|
1271
1290
|
busy?: boolean;
|
|
1272
|
-
/** Busy label. Default "Uploading…". */
|
|
1291
|
+
/** Busy label. Default "Uploading…", or "Uploading 55%" when `busyPct` is given. */
|
|
1273
1292
|
busyLabel?: ReactNode;
|
|
1293
|
+
/** How far the caller's upload has got, 0–100, while `busy`. Null or missing when not known. */
|
|
1294
|
+
busyPct?: number | null;
|
|
1274
1295
|
/** Fully disable the control (no click, no drop, no actions). */
|
|
1275
1296
|
disabled?: boolean;
|
|
1276
1297
|
}
|
|
1277
1298
|
|
|
1278
|
-
declare function MediaUploadField({ value, onChange, onPick, onFile, label, hint, error, required, className, accept, maxSizeBytes, fit, height, placeholder, cta: ctaProp, acceptHint, showFilename, allowReplace, allowRemove, replaceLabel: replaceLabelProp, removeLabel: removeLabelProp, busy, busyLabel: busyLabelProp, disabled, }: MediaUploadFieldProps): react_jsx_runtime.JSX.Element;
|
|
1299
|
+
declare function MediaUploadField({ value, onChange, onPick, onFile, label, hint, error, required, className, accept, maxSizeBytes, fit, height, placeholder, cta: ctaProp, acceptHint, showFilename, allowReplace, allowRemove, replaceLabel: replaceLabelProp, removeLabel: removeLabelProp, busy, busyLabel: busyLabelProp, busyPct, disabled, }: MediaUploadFieldProps): react_jsx_runtime.JSX.Element;
|
|
1279
1300
|
|
|
1280
1301
|
type BrandMarkSlot = 'favicon' | 'compact' | 'wordmark';
|
|
1281
1302
|
type BrandMarkSurface = 'light' | 'dark';
|
|
@@ -1470,14 +1491,16 @@ interface MediaUploadGridProps {
|
|
|
1470
1491
|
coverLabel?: ReactNode;
|
|
1471
1492
|
/** Busy: dim the zone and show a spinner while the caller's upload runs. */
|
|
1472
1493
|
busy?: boolean;
|
|
1473
|
-
/** Busy label. Default "Uploading…". */
|
|
1494
|
+
/** Busy label. Default "Uploading…", or "Uploading 55%" when `busyPct` is given. */
|
|
1474
1495
|
busyLabel?: ReactNode;
|
|
1496
|
+
/** How far the caller's upload has got, 0–100, while `busy`. Null or missing when not known. */
|
|
1497
|
+
busyPct?: number | null;
|
|
1475
1498
|
/** Disable all interaction. */
|
|
1476
1499
|
disabled?: boolean;
|
|
1477
1500
|
/** View only — thumbnails without Add / remove / reorder affordances. */
|
|
1478
1501
|
readOnly?: boolean;
|
|
1479
1502
|
}
|
|
1480
|
-
declare function MediaUploadGrid({ items, onPick, onFiles, onRemove, onReorder, label, hint, error, required, className, accept, maxSizeBytes, maxFiles, fit, thumbSize, placeholder, cta: ctaProp, acceptHint, showCover, coverLabel: coverLabelProp, busy, busyLabel: busyLabelProp, disabled, readOnly, }: MediaUploadGridProps): react_jsx_runtime.JSX.Element;
|
|
1503
|
+
declare function MediaUploadGrid({ items, onPick, onFiles, onRemove, onReorder, label, hint, error, required, className, accept, maxSizeBytes, maxFiles, fit, thumbSize, placeholder, cta: ctaProp, acceptHint, showCover, coverLabel: coverLabelProp, busy, busyLabel: busyLabelProp, busyPct, disabled, readOnly, }: MediaUploadGridProps): react_jsx_runtime.JSX.Element;
|
|
1481
1504
|
|
|
1482
1505
|
interface DateRangePickerProps {
|
|
1483
1506
|
/** Start of the range as `YYYY-MM-DD`, or '' when unset. */
|
|
@@ -2465,6 +2488,24 @@ interface CountBadgeProps {
|
|
|
2465
2488
|
}
|
|
2466
2489
|
declare function CountBadge({ count, max, dot, tone, showZero, children, className, }: CountBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
2467
2490
|
|
|
2491
|
+
type TransferBadgeState = 'idle' | 'busy' | 'error';
|
|
2492
|
+
interface TransferBadgeProps {
|
|
2493
|
+
state: TransferBadgeState;
|
|
2494
|
+
/** The idle text. */
|
|
2495
|
+
label?: ReactNode;
|
|
2496
|
+
/** What is happening while busy. Defaults to the "uploading" string. */
|
|
2497
|
+
verb?: string;
|
|
2498
|
+
/** What is moving, said after the verb while busy ("Uploading plan.pdf…"). */
|
|
2499
|
+
subject?: string;
|
|
2500
|
+
/** 0–100 while busy; null or missing when the size is not known yet. */
|
|
2501
|
+
pct?: number | null;
|
|
2502
|
+
onCancel?: () => void;
|
|
2503
|
+
onRetry?: () => void;
|
|
2504
|
+
onDismiss?: () => void;
|
|
2505
|
+
className?: string;
|
|
2506
|
+
}
|
|
2507
|
+
declare function TransferBadge({ state, label, verb, subject, pct, onCancel, onRetry, onDismiss, className, }: TransferBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
2508
|
+
|
|
2468
2509
|
type StatisticSize = 'sm' | 'md' | 'lg';
|
|
2469
2510
|
type StatisticTone = 'default' | 'success' | 'danger' | 'muted';
|
|
2470
2511
|
interface StatisticProps {
|
|
@@ -5404,6 +5445,10 @@ declare function DataTable<T>({ columns: givenColumns, data, rowKey, sort, onSor
|
|
|
5404
5445
|
|
|
5405
5446
|
interface ListFooterProps {
|
|
5406
5447
|
selectedCount: number;
|
|
5448
|
+
/** Ticked rows that are not among the loaded ones — a filter or a search
|
|
5449
|
+
* is hiding them. Above zero the footer says both numbers, and
|
|
5450
|
+
* `selectedCount` is then the ticked rows on screen. */
|
|
5451
|
+
hiddenSelectedCount?: number;
|
|
5407
5452
|
loadedCount: number;
|
|
5408
5453
|
totalCount?: number;
|
|
5409
5454
|
label: string;
|
|
@@ -5413,6 +5458,7 @@ interface ListFooterProps {
|
|
|
5413
5458
|
/**
|
|
5414
5459
|
* Standardized footer for `EntityList`. Shows:
|
|
5415
5460
|
* "[X selected — ] Y records"
|
|
5461
|
+
* "X selected, H not shown — Y records"
|
|
5416
5462
|
* "Y of Z records · Loading more..."
|
|
5417
5463
|
* "All N records loaded"
|
|
5418
5464
|
*
|
|
@@ -5420,7 +5466,7 @@ interface ListFooterProps {
|
|
|
5420
5466
|
* a host's own plural rules choose the words — and the separators (the em dash,
|
|
5421
5467
|
* the middle dot) stay here, where they are typography rather than language.
|
|
5422
5468
|
*/
|
|
5423
|
-
declare function ListFooter({ selectedCount, loadedCount, totalCount, label, isFetchingMore, extra, }: ListFooterProps): react_jsx_runtime.JSX.Element;
|
|
5469
|
+
declare function ListFooter({ selectedCount, hiddenSelectedCount, loadedCount, totalCount, label, isFetchingMore, extra, }: ListFooterProps): react_jsx_runtime.JSX.Element;
|
|
5424
5470
|
|
|
5425
5471
|
interface ListLoadErrorProps {
|
|
5426
5472
|
/** Bold heading. Defaults to "Couldn't load this list". */
|
|
@@ -7193,4 +7239,4 @@ declare function ChordChart({ labels, matrix, size, maxNodes, padAngle, arcWidth
|
|
|
7193
7239
|
* string when the source is consumed without a build (e.g. tests). */
|
|
7194
7240
|
declare const VERSION: string;
|
|
7195
7241
|
|
|
7196
|
-
export { type BudgetBarProps as $, ALT as A, type BackgroundVariant as B, type ColumnDef as C, type BandScale as D, Banner as E, type BannerEmphasis as F, type BannerProps as G, type BannerTone as H, BarChart as I, type BarChartProps as J, type BoxPlotBox as K, BoxPlotChart as L, type BoxPlotChartProps as M, BrandAssetEditor as N, type BrandAssetEditorProps as O, type PaginatedResponse as P, type BrandAssetPreview as Q, BrandMark as R, type SearchConfig as S, type BrandMarkProps as T, type BrandMarkSlot as U, type BrandMarkSurface as V, type BrandMarkTreatment as W, type BreadcrumbItem as X, Breadcrumbs as Y, type BreadcrumbsProps as Z, BudgetBar as _, type SortState as a, ContainerFillChart as a$, type BudgetState as a0, Button as a1, type ButtonClassesOptions as a2, type ButtonProps as a3, type ButtonSize as a4, type ButtonVariant as a5, CHART_INK as a6, CMD_A as a7, CMD_DOT as a8, CMD_ENTER as a9, ChartHighlightProvider as aA, type ChartLegendEntry as aB, type ChartLegendSwatch as aC, type ChartRange as aD, type ChartReferenceLine as aE, type ChartRevealDirection as aF, ChartSkeleton as aG, type ChartSkeletonProps as aH, type ChartStatusTone as aI, type ChartStrokeVariant as aJ, ChartTooltip as aK, type ChartTooltipProps as aL, type ChartTooltipRow as aM, ChatTemplate as aN, Checkbox as aO, type CheckboxProps as aP, CheckoutTemplate as aQ, ChordChart as aR, type ChordChartProps as aS, ColoredBadge as aT, type ColoredBadgeProps as aU, ColumnChart as aV, type ColumnChartProps as aW, type ColumnSeries as aX, ComposerAttachments as aY, type ComposerAttachmentsProps as aZ, ConfirmProvider as a_, CMD_K as aa, CMD_S as ab, Calendar as ac, type CalendarMode as ad, type CalendarProps as ae, type Candle as af, CandlestickChart as ag, type CandlestickChartProps as ah, Card as ai, type CardPadding as aj, type CardProps as ak, CartesianPlot as al, type CartesianPlotProps as am, type CellStyle as an, type ChartBackgroundVariant as ao, ChartBrush as ap, type ChartBrushProps as aq, type ChartCurve as ar, ChartDefs as as, type ChartDefsProps as at, ChartDot as au, type ChartDotProps as av, type ChartDotVariant as aw, type ChartFillVariant as ax, ChartFrame as ay, type ChartFrameProps as az, ALT_SHIFT_D as b, FilePicker as b$, type ContainerFillChartProps as b0, type ContainerFillItem as b1, CountBadge as b2, type CountBadgeProps as b3, type CountBadgeTone as b4, type Curve as b5, DAY_MS as b6, DEFAULT_SHELL_STRINGS as b7, DashboardTemplate as b8, DataTable as b9, Drawer as bA, type DrawerProps as bB, type DrawerSide as bC, type DrawerSize as bD, DropdownMenu as bE, type DropdownMenuAlign as bF, type DropdownMenuCheckboxItem as bG, type DropdownMenuDividerItem as bH, type DropdownMenuEntry as bI, type DropdownMenuItem as bJ, type DropdownMenuLabelItem as bK, type DropdownMenuLinkItem as bL, type DropdownMenuProps as bM, type DropdownMenuRadioItem as bN, type DropdownMenuSide as bO, type DropdownPositionOptions as bP, ENTER as bQ, EditableGrid as bR, type EditableGridProps as bS, EmailTemplate as bT, EmptyState as bU, type EmptyStateProps as bV, ErrorBoundary as bW, type ErrorBoundaryProps as bX, ErrorPage as bY, type ErrorPageProps as bZ, type FileIntake as b_, type DataTableColumn as ba, type DataTableColumnGroup as bb, type DataTableHeader as bc, DataTablePage as bd, type DataTableProps as be, type DataTableRowLink as bf, type DataTableRowProps as bg, DatePicker as bh, type DatePickerProps as bi, DateRangePicker as bj, type DateRangePickerProps as bk, DateTimePicker as bl, type DateTimePickerProps as bm, type DescriptionColumns as bn, type DescriptionItem as bo, DescriptionList as bp, type DescriptionListProps as bq, Dialog as br, type DialogProps as bs, type DialogSize as bt, Divider as bu, type DividerProps as bv, type DividerSpacing as bw, DonutChart as bx, type DonutChartProps as by, type DonutSegment as bz, ALT_SHIFT_E as c, type LoadingSpinnerProps as c$, type FilePickerProps as c0, type FillVariant as c1, type FormError as c2, FormErrorSummary as c3, type FormErrorSummaryProps as c4, FormField as c5, type FormFieldProps as c6, FormLayoutPage as c7, type FormatDateOptions as c8, FunnelChart as c9, type IconButtonProps as cA, Inline as cB, type InlineProps as cC, Input as cD, InputNumber as cE, type InputNumberProps as cF, type InputProps as cG, type InputSize as cH, type Justify as cI, Kanban as cJ, type KanbanColumn as cK, type KanbanProps as cL, Kbd as cM, type KbdProps as cN, type KbdSize as cO, Label as cP, type LabelClassesOptions as cQ, type LabelProps as cR, type LadderScale as cS, LineChart as cT, type LineChartProps as cU, type LineChartSeries as cV, type LinearScale as cW, ListFooter as cX, ListLoadError as cY, type ListLoadErrorProps as cZ, LoadingSpinner as c_, type FunnelChartProps as ca, type FunnelStage as cb, GLASS_DIVIDER as cc, GLASS_INPUT_BG as cd, GROUP_COLORS as ce, GROUP_COLORS_SOLID as cf, GalleryTemplate as cg, type Gap as ch, GlobalSearch as ci, type GlobalSearchProps as cj, Grid as ck, type GridCols as cl, type GridColumn as cm, type GridProps as cn, HeatmapChart as co, type HeatmapChartProps as cp, HelpCenter as cq, type HelpCenterDoc as cr, type HelpCenterProps as cs, type HistogramBin as ct, HistogramChart as cu, type HistogramChartProps as cv, INPUT_BASE as cw, INPUT_SIZES as cx, IconButton as cy, type IconButtonClassesOptions as cz, ALT_SHIFT_N as d, type RadarAxis as d$, MAX_FRACTION_DIGITS as d0, MENU_MAX_HEIGHT as d1, MOD as d2, MOTION as d3, Markdown as d4, type MarkdownProps as d5, MediaUploadField as d6, type MediaUploadFieldProps as d7, MediaUploadGrid as d8, type MediaUploadGridItem as d9, type PieChartProps as dA, type PieSegment as dB, type PlotGeometry as dC, type Point as dD, Popover as dE, type PopoverAlign as dF, type PopoverProps as dG, type PopoverRenderProps as dH, type PopoverSide as dI, PopupMenu as dJ, PopupMenuDivider as dK, PopupMenuItem as dL, type PopupMenuItemProps as dM, PopupMenuLabel as dN, type PopupMenuProps as dO, PopupSubmenu as dP, type PopupSubmenuProps as dQ, type PortalBrandingContextValue as dR, PortalBrandingProvider as dS, type PortalBrandingProviderProps as dT, ProductionTimeline as dU, type ProductionTimelineProps as dV, type ProductionTimelineSnapshot as dW, type ProgressItem as dX, type PublicPortal as dY, type PublicPortalBranding as dZ, RADAR_SERIES_CAP as d_, type MediaUploadGridProps as da, type MenuPos as db, Meter as dc, type MeterProps as dd, MetricBar as de, type MetricBarProps as df, type Milestone as dg, type MilestoneKind as dh, MilestoneTimeline as di, type MilestoneTimelineProps as dj, NEXT_CHUNK_PATH_PREFIX as dk, NativeSelect as dl, NumericKeypad as dm, type NumericKeypadProps as dn, OVERLAY_OPEN_EVENT as dp, POPUP_MAX_WIDTH as dq, POST_PRODUCTION_STATUSES as dr, PageHeader as ds, type PageHeaderProps as dt, Pagination as du, type PaginationProps as dv, PaperclipGlyph as dw, Paragraph as dx, type ParagraphProps as dy, PieChart as dz, APP_UPDATE_POLL_MS as e, SidebarGroupLabel as e$, RadarChart as e0, type RadarChartProps as e1, type RadarSeries as e2, RadialBarChart as e3, type RadialBarChartProps as e4, type RadialBarRow as e5, Radio as e6, RadioGroup as e7, type RadioGroupOption as e8, type RadioGroupOrientation as e9, ScatterChart as eA, type ScatterChartProps as eB, type ScatterPoint as eC, type ScatterSeries as eD, type SearchProvider as eE, type SearchResult as eF, type SearchableOption as eG, SearchableSelect as eH, type SearchableSelectProps as eI, Segmented as eJ, type SegmentedOption as eK, type SegmentedProps as eL, type SegmentedSize as eM, Select as eN, type SelectOption as eO, type SelectProps as eP, type SemanticGroup as eQ, SettingRow as eR, type SettingRowProps as eS, type SeverityTone as eT, type ShellPrefsAdapter as eU, ShellPrefsProvider as eV, type ShellStrings as eW, type ShellStringsOverride as eX, ShellStringsProvider as eY, SidebarActionButton as eZ, type SidebarActionButtonProps as e_, type RadioGroupProps as ea, type RadioProps as eb, type Range as ec, RangeChart as ed, type RangeChartProps as ee, type RangeRow as ef, RankedBars as eg, type RankedBarsProps as eh, type RankedBarsRow as ei, type ResolvedPortalBrandAsset as ej, Result as ek, type ResultProps as el, type ResultStatus as em, type RevealDirection as en, SCATTER_SERIES_CAP as eo, SERIES_SLOT_COUNT as ep, SERIES_VARS as eq, SHIFT as er, STAGES as es, STALE_CHUNK_RELOAD_COOLDOWN_MS as et, STALE_CHUNK_RELOAD_KEY as eu, STATUS_VARS as ev, SankeyChart as ew, type SankeyChartProps as ex, type SankeyLink as ey, type SankeyNode as ez, Accordion as f, TimelineTrack as f$, SidebarLayout as f0, type SidebarLayoutProps as f1, SidebarNavItem as f2, type SidebarNavItemProps as f3, Skeleton as f4, type SkeletonProps as f5, type SkeletonVariant as f6, Snippet as f7, type SnippetProps as f8, type SnippetSize as f9, type SwitchSize as fA, type TabItem as fB, Tabs as fC, type TabsProps as fD, TagInput as fE, type TagInputOption as fF, type TagInputProps as fG, Text as fH, type TextProps as fI, type TextSize as fJ, type TextTone as fK, type TextWeight as fL, Textarea as fM, type TextareaProps as fN, type Theme as fO, TileButton as fP, type TileButtonProps as fQ, type TileSize as fR, TimePicker as fS, type TimePickerProps as fT, TimeSeriesChart as fU, type TimeSeriesChartProps as fV, type TimeSeriesSeries as fW, type TimelineMarker as fX, type TimelineMarkerKind as fY, type TimelineReport as fZ, type TimelineScrubProgress as f_, type SnippetVariant as fa, Sparkline as fb, type SparklineProps as fc, Stack as fd, type StackProps as fe, type StaleChunkReloadOptions as ff, StatCard as fg, type StatCardProps as fh, StatTile as fi, type StatTileProps as fj, Statistic as fk, type StatisticProps as fl, type StatisticSize as fm, type StatisticTone as fn, StatusBadge as fo, StatusBadgeProvider as fp, type StatusEmphasis as fq, type StepItem as fr, Stepper as fs, type StepperProps as ft, type StrokeVariant as fu, SunburstChart as fv, type SunburstChartProps as fw, type SunburstNode as fx, Switch as fy, type SwitchProps as fz, type AccordionItem as g, installStaleChunkReload as g$, type TimelineTrackItem as g0, type TimelineTrackKind as g1, type TimelineTrackPending as g2, type TimelineTrackPhase as g3, type TimelineTrackPlayback as g4, type TimelineTrackProps as g5, type TimelineTrackThumb as g6, Title as g7, type TitleLevel as g8, type TitleProps as g9, autoHighlightIndex as gA, backspace as gB, bandScale as gC, binValues as gD, budgetState as gE, bumpPath as gF, buttonClasses as gG, calcOverall as gH, calcReportOverall as gI, confirm as gJ, confirmDestructive as gK, curvePath as gL, dashFor as gM, dismissPopups as gN, fillFor as gO, fillId as gP, firstDayOfWeek as gQ, fmtSliderDate as gR, formatDate as gS, fromKey as gT, glassStyle as gU, glowId as gV, groundId as gW, groupColors as gX, highlightOpacity as gY, iconButtonClasses as gZ, inputClasses as g_, type ToastOptions as ga, type ToastPlacement as gb, Tooltip as gc, type TooltipProps as gd, TopNav as ge, type TopNavItem as gf, type TopNavProps as gg, TreemapChart as gh, type TreemapChartProps as gi, type TreemapItem as gj, type TreemapTile as gk, type UseAppUpdateOptions as gl, type UseProductionTimelineOpts as gm, VERSION as gn, VITE_PRELOAD_ERROR_EVENT as go, WaterfallChart as gp, type WaterfallChartProps as gq, type WaterfallStep as gr, type ZLayer as gs, Z_LAYERS as gt, angleScale as gu, appendKey as gv, applyThemePrefs as gw, arcPath as gx, areaBetween as gy, areaFrom as gz, type AccordionProps as h, isMac as h0, isSeverityTone as h1, isStaleChunkError as h2, labelClasses as h3, ladderScale as h4, linearPath as h5, linearScale as h6, logScale as h7, maskId as h8, mediaFileName as h9, useDropdownPosition as hA, useFocusTrap as hB, useHighlight as hC, useIsMobile as hD, useLocalStoragePrefs as hE, usePlotWidth as hF, usePortalBranding as hG, useProductionTimeline as hH, useScrollLock as hI, useShellLocale as hJ, useShellPrefs as hK, useShellStrings as hL, useTheme as hM, monotonePath as ha, niceMax as hb, openGlobalSearch as hc, polygonPoints as hd, popupBounds as he, prompt as hf, radiusScale as hg, resolveBrandMarkTreatment as hh, resolvePortalBrandAsset as hi, resolveSeriesColor as hj, resolveTheme as hk, seriesColor as hl, severityOf as hm, splinePath as hn, squarify as ho, stagger as hp, stepPath as hq, tabButtonId as hr, tabPanelId as hs, toKey as ht, toDayMs as hu, toISODate as hv, toast as hw, useAppUpdate as hx, useClickOutside as hy, useConfirm as hz, type Align as i, type AngleScale as j, AppUpdateBanner as k, type AppUpdateBannerProps as l, AttachButton as m, type AttachButtonProps as n, AttachmentDropZone as o, type AttachmentDropZoneProps as p, AttachmentList as q, type AttachmentListProps as r, AuthScreen as s, type AuthScreenProps as t, Avatar as u, AvatarGroup as v, type AvatarGroupProps as w, type AvatarProps as x, type AvatarSize as y, type AvatarStatus as z };
|
|
7242
|
+
export { type BudgetBarProps as $, ALT as A, type BackgroundVariant as B, type ColumnDef as C, type BandScale as D, Banner as E, type BannerEmphasis as F, type BannerProps as G, type BannerTone as H, BarChart as I, type BarChartProps as J, type BoxPlotBox as K, BoxPlotChart as L, type BoxPlotChartProps as M, BrandAssetEditor as N, type BrandAssetEditorProps as O, type PaginatedResponse as P, type BrandAssetPreview as Q, BrandMark as R, type SearchConfig as S, type BrandMarkProps as T, type BrandMarkSlot as U, type BrandMarkSurface as V, type BrandMarkTreatment as W, type BreadcrumbItem as X, Breadcrumbs as Y, type BreadcrumbsProps as Z, BudgetBar as _, type SortState as a, ContainerFillChart as a$, type BudgetState as a0, Button as a1, type ButtonClassesOptions as a2, type ButtonProps as a3, type ButtonSize as a4, type ButtonVariant as a5, CHART_INK as a6, CMD_A as a7, CMD_DOT as a8, CMD_ENTER as a9, ChartHighlightProvider as aA, type ChartLegendEntry as aB, type ChartLegendSwatch as aC, type ChartRange as aD, type ChartReferenceLine as aE, type ChartRevealDirection as aF, ChartSkeleton as aG, type ChartSkeletonProps as aH, type ChartStatusTone as aI, type ChartStrokeVariant as aJ, ChartTooltip as aK, type ChartTooltipProps as aL, type ChartTooltipRow as aM, ChatTemplate as aN, Checkbox as aO, type CheckboxProps as aP, CheckoutTemplate as aQ, ChordChart as aR, type ChordChartProps as aS, ColoredBadge as aT, type ColoredBadgeProps as aU, ColumnChart as aV, type ColumnChartProps as aW, type ColumnSeries as aX, ComposerAttachments as aY, type ComposerAttachmentsProps as aZ, ConfirmProvider as a_, CMD_K as aa, CMD_S as ab, Calendar as ac, type CalendarMode as ad, type CalendarProps as ae, type Candle as af, CandlestickChart as ag, type CandlestickChartProps as ah, Card as ai, type CardPadding as aj, type CardProps as ak, CartesianPlot as al, type CartesianPlotProps as am, type CellStyle as an, type ChartBackgroundVariant as ao, ChartBrush as ap, type ChartBrushProps as aq, type ChartCurve as ar, ChartDefs as as, type ChartDefsProps as at, ChartDot as au, type ChartDotProps as av, type ChartDotVariant as aw, type ChartFillVariant as ax, ChartFrame as ay, type ChartFrameProps as az, ALT_SHIFT_D as b, FilePicker as b$, type ContainerFillChartProps as b0, type ContainerFillItem as b1, CountBadge as b2, type CountBadgeProps as b3, type CountBadgeTone as b4, type Curve as b5, DAY_MS as b6, DEFAULT_SHELL_STRINGS as b7, DashboardTemplate as b8, DataTable as b9, Drawer as bA, type DrawerProps as bB, type DrawerSide as bC, type DrawerSize as bD, DropdownMenu as bE, type DropdownMenuAlign as bF, type DropdownMenuCheckboxItem as bG, type DropdownMenuDividerItem as bH, type DropdownMenuEntry as bI, type DropdownMenuItem as bJ, type DropdownMenuLabelItem as bK, type DropdownMenuLinkItem as bL, type DropdownMenuProps as bM, type DropdownMenuRadioItem as bN, type DropdownMenuSide as bO, type DropdownPositionOptions as bP, ENTER as bQ, EditableGrid as bR, type EditableGridProps as bS, EmailTemplate as bT, EmptyState as bU, type EmptyStateProps as bV, ErrorBoundary as bW, type ErrorBoundaryProps as bX, ErrorPage as bY, type ErrorPageProps as bZ, type FileIntake as b_, type DataTableColumn as ba, type DataTableColumnGroup as bb, type DataTableHeader as bc, DataTablePage as bd, type DataTableProps as be, type DataTableRowLink as bf, type DataTableRowProps as bg, DatePicker as bh, type DatePickerProps as bi, DateRangePicker as bj, type DateRangePickerProps as bk, DateTimePicker as bl, type DateTimePickerProps as bm, type DescriptionColumns as bn, type DescriptionItem as bo, DescriptionList as bp, type DescriptionListProps as bq, Dialog as br, type DialogProps as bs, type DialogSize as bt, Divider as bu, type DividerProps as bv, type DividerSpacing as bw, DonutChart as bx, type DonutChartProps as by, type DonutSegment as bz, ALT_SHIFT_E as c, type LoadingSpinnerProps as c$, type FilePickerProps as c0, type FillVariant as c1, type FormError as c2, FormErrorSummary as c3, type FormErrorSummaryProps as c4, FormField as c5, type FormFieldProps as c6, FormLayoutPage as c7, type FormatDateOptions as c8, FunnelChart as c9, type IconButtonProps as cA, Inline as cB, type InlineProps as cC, Input as cD, InputNumber as cE, type InputNumberProps as cF, type InputProps as cG, type InputSize as cH, type Justify as cI, Kanban as cJ, type KanbanColumn as cK, type KanbanProps as cL, Kbd as cM, type KbdProps as cN, type KbdSize as cO, Label as cP, type LabelClassesOptions as cQ, type LabelProps as cR, type LadderScale as cS, LineChart as cT, type LineChartProps as cU, type LineChartSeries as cV, type LinearScale as cW, ListFooter as cX, ListLoadError as cY, type ListLoadErrorProps as cZ, LoadingSpinner as c_, type FunnelChartProps as ca, type FunnelStage as cb, GLASS_DIVIDER as cc, GLASS_INPUT_BG as cd, GROUP_COLORS as ce, GROUP_COLORS_SOLID as cf, GalleryTemplate as cg, type Gap as ch, GlobalSearch as ci, type GlobalSearchProps as cj, Grid as ck, type GridCols as cl, type GridColumn as cm, type GridProps as cn, HeatmapChart as co, type HeatmapChartProps as cp, HelpCenter as cq, type HelpCenterDoc as cr, type HelpCenterProps as cs, type HistogramBin as ct, HistogramChart as cu, type HistogramChartProps as cv, INPUT_BASE as cw, INPUT_SIZES as cx, IconButton as cy, type IconButtonClassesOptions as cz, ALT_SHIFT_N as d, type RadarAxis as d$, MAX_FRACTION_DIGITS as d0, MENU_MAX_HEIGHT as d1, MOD as d2, MOTION as d3, Markdown as d4, type MarkdownProps as d5, MediaUploadField as d6, type MediaUploadFieldProps as d7, MediaUploadGrid as d8, type MediaUploadGridItem as d9, type PieChartProps as dA, type PieSegment as dB, type PlotGeometry as dC, type Point as dD, Popover as dE, type PopoverAlign as dF, type PopoverProps as dG, type PopoverRenderProps as dH, type PopoverSide as dI, PopupMenu as dJ, PopupMenuDivider as dK, PopupMenuItem as dL, type PopupMenuItemProps as dM, PopupMenuLabel as dN, type PopupMenuProps as dO, PopupSubmenu as dP, type PopupSubmenuProps as dQ, type PortalBrandingContextValue as dR, PortalBrandingProvider as dS, type PortalBrandingProviderProps as dT, ProductionTimeline as dU, type ProductionTimelineProps as dV, type ProductionTimelineSnapshot as dW, type ProgressItem as dX, type PublicPortal as dY, type PublicPortalBranding as dZ, RADAR_SERIES_CAP as d_, type MediaUploadGridProps as da, type MenuPos as db, Meter as dc, type MeterProps as dd, MetricBar as de, type MetricBarProps as df, type Milestone as dg, type MilestoneKind as dh, MilestoneTimeline as di, type MilestoneTimelineProps as dj, NEXT_CHUNK_PATH_PREFIX as dk, NativeSelect as dl, NumericKeypad as dm, type NumericKeypadProps as dn, OVERLAY_OPEN_EVENT as dp, POPUP_MAX_WIDTH as dq, POST_PRODUCTION_STATUSES as dr, PageHeader as ds, type PageHeaderProps as dt, Pagination as du, type PaginationProps as dv, PaperclipGlyph as dw, Paragraph as dx, type ParagraphProps as dy, PieChart as dz, APP_UPDATE_POLL_MS as e, SidebarGroupLabel as e$, RadarChart as e0, type RadarChartProps as e1, type RadarSeries as e2, RadialBarChart as e3, type RadialBarChartProps as e4, type RadialBarRow as e5, Radio as e6, RadioGroup as e7, type RadioGroupOption as e8, type RadioGroupOrientation as e9, ScatterChart as eA, type ScatterChartProps as eB, type ScatterPoint as eC, type ScatterSeries as eD, type SearchProvider as eE, type SearchResult as eF, type SearchableOption as eG, SearchableSelect as eH, type SearchableSelectProps as eI, Segmented as eJ, type SegmentedOption as eK, type SegmentedProps as eL, type SegmentedSize as eM, Select as eN, type SelectOption as eO, type SelectProps as eP, type SemanticGroup as eQ, SettingRow as eR, type SettingRowProps as eS, type SeverityTone as eT, type ShellPrefsAdapter as eU, ShellPrefsProvider as eV, type ShellStrings as eW, type ShellStringsOverride as eX, ShellStringsProvider as eY, SidebarActionButton as eZ, type SidebarActionButtonProps as e_, type RadioGroupProps as ea, type RadioProps as eb, type Range as ec, RangeChart as ed, type RangeChartProps as ee, type RangeRow as ef, RankedBars as eg, type RankedBarsProps as eh, type RankedBarsRow as ei, type ResolvedPortalBrandAsset as ej, Result as ek, type ResultProps as el, type ResultStatus as em, type RevealDirection as en, SCATTER_SERIES_CAP as eo, SERIES_SLOT_COUNT as ep, SERIES_VARS as eq, SHIFT as er, STAGES as es, STALE_CHUNK_RELOAD_COOLDOWN_MS as et, STALE_CHUNK_RELOAD_KEY as eu, STATUS_VARS as ev, SankeyChart as ew, type SankeyChartProps as ex, type SankeyLink as ey, type SankeyNode as ez, Accordion as f, TimelineTrack as f$, SidebarLayout as f0, type SidebarLayoutProps as f1, SidebarNavItem as f2, type SidebarNavItemProps as f3, Skeleton as f4, type SkeletonProps as f5, type SkeletonVariant as f6, Snippet as f7, type SnippetProps as f8, type SnippetSize as f9, type SwitchSize as fA, type TabItem as fB, Tabs as fC, type TabsProps as fD, TagInput as fE, type TagInputOption as fF, type TagInputProps as fG, Text as fH, type TextProps as fI, type TextSize as fJ, type TextTone as fK, type TextWeight as fL, Textarea as fM, type TextareaProps as fN, type Theme as fO, TileButton as fP, type TileButtonProps as fQ, type TileSize as fR, TimePicker as fS, type TimePickerProps as fT, TimeSeriesChart as fU, type TimeSeriesChartProps as fV, type TimeSeriesSeries as fW, type TimelineMarker as fX, type TimelineMarkerKind as fY, type TimelineReport as fZ, type TimelineScrubProgress as f_, type SnippetVariant as fa, Sparkline as fb, type SparklineProps as fc, Stack as fd, type StackProps as fe, type StaleChunkReloadOptions as ff, StatCard as fg, type StatCardProps as fh, StatTile as fi, type StatTileProps as fj, Statistic as fk, type StatisticProps as fl, type StatisticSize as fm, type StatisticTone as fn, StatusBadge as fo, StatusBadgeProvider as fp, type StatusEmphasis as fq, type StepItem as fr, Stepper as fs, type StepperProps as ft, type StrokeVariant as fu, SunburstChart as fv, type SunburstChartProps as fw, type SunburstNode as fx, Switch as fy, type SwitchProps as fz, type AccordionItem as g, highlightOpacity as g$, type TimelineTrackItem as g0, type TimelineTrackKind as g1, type TimelineTrackPending as g2, type TimelineTrackPhase as g3, type TimelineTrackPlayback as g4, type TimelineTrackProps as g5, type TimelineTrackThumb as g6, Title as g7, type TitleLevel as g8, type TitleProps as g9, arcPath as gA, areaBetween as gB, areaFrom as gC, autoHighlightIndex as gD, backspace as gE, bandScale as gF, binValues as gG, budgetState as gH, bumpPath as gI, buttonClasses as gJ, calcOverall as gK, calcReportOverall as gL, confirm as gM, confirmDestructive as gN, curvePath as gO, dashFor as gP, dismissPopups as gQ, fillFor as gR, fillId as gS, firstDayOfWeek as gT, fmtSliderDate as gU, formatDate as gV, fromKey as gW, glassStyle as gX, glowId as gY, groundId as gZ, groupColors as g_, type ToastOptions as ga, type ToastPlacement as gb, Tooltip as gc, type TooltipProps as gd, TopNav as ge, type TopNavItem as gf, type TopNavProps as gg, TransferBadge as gh, type TransferBadgeProps as gi, type TransferBadgeState as gj, TreemapChart as gk, type TreemapChartProps as gl, type TreemapItem as gm, type TreemapTile as gn, type UseAppUpdateOptions as go, type UseProductionTimelineOpts as gp, VERSION as gq, VITE_PRELOAD_ERROR_EVENT as gr, WaterfallChart as gs, type WaterfallChartProps as gt, type WaterfallStep as gu, type ZLayer as gv, Z_LAYERS as gw, angleScale as gx, appendKey as gy, applyThemePrefs as gz, type AccordionProps as h, iconButtonClasses as h0, inputClasses as h1, installStaleChunkReload as h2, isMac as h3, isSeverityTone as h4, isStaleChunkError as h5, labelClasses as h6, ladderScale as h7, linearPath as h8, linearScale as h9, useAppUpdate as hA, useClickOutside as hB, useConfirm as hC, useDropdownPosition as hD, useFocusTrap as hE, useHighlight as hF, useIsMobile as hG, useLocalStoragePrefs as hH, usePlotWidth as hI, usePortalBranding as hJ, useProductionTimeline as hK, useScrollLock as hL, useShellLocale as hM, useShellPrefs as hN, useShellStrings as hO, useTheme as hP, logScale as ha, maskId as hb, mediaFileName as hc, monotonePath as hd, niceMax as he, openGlobalSearch as hf, polygonPoints as hg, popupBounds as hh, prompt as hi, radiusScale as hj, resolveBrandMarkTreatment as hk, resolvePortalBrandAsset as hl, resolveSeriesColor as hm, resolveTheme as hn, seriesColor as ho, severityOf as hp, splinePath as hq, squarify as hr, stagger as hs, stepPath as ht, tabButtonId as hu, tabPanelId as hv, toKey as hw, toDayMs as hx, toISODate as hy, toast as hz, type Align as i, type AngleScale as j, AppUpdateBanner as k, type AppUpdateBannerProps as l, AttachButton as m, type AttachButtonProps as n, AttachmentDropZone as o, type AttachmentDropZoneProps as p, AttachmentList as q, type AttachmentListProps as r, AuthScreen as s, type AuthScreenProps as t, Avatar as u, AvatarGroup as v, type AvatarGroupProps as w, type AvatarProps as x, type AvatarSize as y, type AvatarStatus as z };
|