efficient-shell 9.10.1 → 9.11.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/dist/{Browser-4SQ4P24B.js → Browser-XPDD6RSI.js} +14 -14
- package/dist/Calculator-IZXBE6R7.js +29 -0
- package/dist/{CurrencyConverter-EDEJOKHC.js → CurrencyConverter-AW7BB3DD.js} +7 -7
- package/dist/{Documents-4TQFZOMU.js → Documents-7SVXJFXI.js} +10 -10
- package/dist/{Files-GGJYYELO.js → Files-H4TP2FLK.js} +88 -88
- package/dist/{Notepad-JRRC5U3N.js → Notepad-XP5TPXS5.js} +10 -10
- package/dist/{PomodoroTimer-HCLT2JVD.js → PomodoroTimer-5VCWY4QT.js} +6 -6
- package/dist/{Preview-FFHAUR6X.js → Preview-3ZNKGYVJ.js} +10 -10
- package/dist/Sidebar-TLJ7N3AQ.js +44 -0
- package/dist/{Spreadsheet-QTTDPD3U.js → Spreadsheet-VZGSCFFQ.js} +8 -8
- package/dist/{Stock-3IBS63UR.js → Stock-2VWS2IQJ.js} +4 -4
- package/dist/{Weather-EFIIVKFE.js → Weather-4MEYBP4D.js} +8 -8
- package/dist/{WorldClock-ERQQ4VWP.js → WorldClock-Y4YRJ43F.js} +5 -5
- package/dist/ai/index.js +48 -48
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/CartesianPlot.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/{chunk-6FI3HVUR.js → chunk-2XBJNB7D.js} +28 -28
- package/dist/{chunk-UAECFZRW.js → chunk-4CPE5NBC.js} +4 -4
- package/dist/{chunk-R6R57BWQ.js → chunk-4SZ3NNVF.js} +4 -4
- package/dist/{chunk-4YZZYB42.js → chunk-4YKRYIA7.js} +2 -2
- package/dist/{chunk-QXK2HO4Q.js → chunk-5EM5US6A.js} +1 -1
- package/dist/{chunk-3C4RNMN4.js → chunk-5VYBPDZ2.js} +1 -1
- package/dist/{chunk-HMG5TW2R.js → chunk-5Y7JITHW.js} +1 -1
- package/dist/{chunk-AOSLOKAL.js → chunk-73W7537K.js} +1 -1
- package/dist/{chunk-ERLZDA75.js → chunk-7IC4JMFA.js} +4 -4
- package/dist/{chunk-KJHXCVNI.js → chunk-AGETTWMK.js} +5 -5
- package/dist/{chunk-FVDX6ZSZ.js → chunk-BRHKQMRH.js} +6 -6
- package/dist/{chunk-MLPIJMOV.js → chunk-CB6ROWOC.js} +2 -2
- package/dist/{chunk-GSKWYMM4.js → chunk-CJI3POCE.js} +1 -1
- package/dist/{chunk-O25B75XX.js → chunk-EGAV5LSX.js} +1 -1
- package/dist/{chunk-IK332TWA.js → chunk-FNSVXN7B.js} +1 -1
- package/dist/{chunk-HAFB45DT.js → chunk-FPGRKHUW.js} +7 -7
- package/dist/{chunk-NUTVIQAV.js → chunk-GCB5S2OI.js} +4 -4
- package/dist/{chunk-P6SATWL5.js → chunk-GVH3NG6G.js} +16 -16
- package/dist/{chunk-SYH7EPLF.js → chunk-HHOXLECO.js} +23 -23
- package/dist/{chunk-BJWPPUM6.js → chunk-IBIUI2D3.js} +1 -1
- package/dist/{chunk-Z3CYLDHB.js → chunk-IEPSBXMU.js} +9 -9
- package/dist/{chunk-NU2YQSOP.js → chunk-IQWIYZB5.js} +2 -2
- package/dist/{chunk-OVDHEMLK.js → chunk-IVY7CCTS.js} +5 -5
- package/dist/{chunk-7DMTFIQN.js → chunk-J7OKOVSL.js} +6 -6
- package/dist/chunk-JG6DATT4.js +1 -0
- package/dist/{chunk-RISKWWMD.js → chunk-KOSV4UPK.js} +3 -3
- package/dist/{chunk-F52WQG3M.js → chunk-NBKQADMY.js} +5 -5
- package/dist/{chunk-JENEVLJU.js → chunk-ODOEH5QZ.js} +1 -1
- package/dist/chunk-POCQ7ZL4.js +3 -0
- package/dist/chunk-PVR4KU7H.js +7 -0
- package/dist/chunk-QYJQAY6C.js +2 -0
- package/dist/{chunk-2J2OU65F.js → chunk-REGXKU74.js} +2 -2
- package/dist/{chunk-OEFMBTDH.js → chunk-TBLN4MDQ.js} +5 -5
- package/dist/{chunk-4ZKTUUQK.js → chunk-UEIJSV45.js} +1 -1
- package/dist/{chunk-7BYBGPWU.js → chunk-UYDP4DK3.js} +3 -3
- package/dist/{chunk-SAHQB2JD.js → chunk-VR4GSAFM.js} +11 -11
- package/dist/{chunk-O56CY36U.js → chunk-WIOG2NOJ.js} +5 -5
- package/dist/{chunk-JGDLTIOX.js → chunk-XREN3AKD.js} +4 -4
- package/dist/{chunk-JWX7QRGE.js → chunk-XS4HFUTW.js} +1 -1
- package/dist/{chunk-5ZGL2BRZ.js → chunk-ZA6S5XVM.js} +2 -2
- package/dist/chunk-ZTV2BA3P.js +2 -0
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +122 -122
- package/dist/map/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-6NA35GFS.js +0 -29
- package/dist/Sidebar-BBZ7UFYQ.js +0 -43
- package/dist/chunk-AVAYZK3Z.js +0 -3
- package/dist/chunk-FLXIPEWL.js +0 -2
- package/dist/chunk-LFSCENKW.js +0 -1
- package/dist/chunk-VVZE27M4.js +0 -7
- package/dist/chunk-Y65MPP3M.js +0 -2
package/dist/Sidebar-BBZ7UFYQ.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as a,RAIL_OPEN_SECTIONS_KEY as r,RAIL_WIDTH_KEY as n,toggleOpenSection as i,writeStored as l}from"./chunk-Y65MPP3M.js";import{ResizeHandle as o}from"./chunk-V5QEPNPK.js";import{openGlobalSearch as s}from"./chunk-MUHWI4GK.js";import{partitionNav as c,flyoutGroups as d,visibleSectionItems as m,rowsContainRoute as h,visibleNavChildren as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-RUTUVS4H.js";import{RAIL_MENU_GAP as g,navSections as f,startMenuCategories as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_W as N,RAIL_MAX_W as v,RAIL_MIN_W as j,navIcons as C,sectionIcons as w}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-PKXQDCNR.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as z,PopupMenuLabel as W}from"./chunk-HAFB45DT.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-UQYNPYF4.js";import{Icon as $}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as H}from"./chunk-PEM7UXQ3.js";import"./chunk-C3QOHMR6.js";import{useMemo as M,useState as A,useRef as I,useEffect as R,isValidElement as T,cloneElement as P}from"react";import{jsx as D,jsxs as K,Fragment as U}from"react/jsx-runtime";var Q="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function B(e,t,a){const r=Math.max(8,a-t.bottom);return{left:e+g,bottom:r,maxHeight:a-r-8,overflowY:"auto"}}var J=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),F="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function G({open:e}){/* @__PURE__ */
|
|
2
|
-
return D($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function V({dir:e}){/* @__PURE__ */
|
|
3
|
-
return D($,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function _({className:e}){/* @__PURE__ */
|
|
4
|
-
return D($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var O=e=>.75+1.75*e+"rem";function X({width:X,collapsed:Y,onToggleCollapsed:E,onResize:Z,onHome:q,onOpen:ee,activeRoute:te,profile:ae,user:re,onLogout:ne,onSwitchToDesktop:ie,onReportBug:le,onClose:oe,navSections:se=f,navIcons:ce=C,sectionIcons:de=w,categories:me=x,productName:he,productIcon:ue,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:ge=null,logoIsLight:fe=null}){const xe=H().layout,{hasAnyPerm:ke}=e(),ye=M(()=>c(se,me,ke),[se,me,ke]),[Ne,ve]=A(()=>t(a(r))),je=e=>ve(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[Ce,we]=A(null),[Se,Le]=A(!1),ze=I(null);R(()=>{Y||we(null)},[Y]);const We=(e,t)=>{we(null),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},$e=(e,t)=>{const a=t[e];/* @__PURE__ */
|
|
5
|
-
return D("span",{className:F,"aria-hidden":"true",children:a&&T(a)?P(a,{className:"size-[18px]"}):a})},He=(e,t)=>{const a=u(e,ke),r=e.menuLabel??e.label;if(a.length>0){const n=`child:${e.to}`,i=Ne.has(n),l=!i&&h(a,te,ke);/* @__PURE__ */
|
|
6
|
-
return K("div",{children:[
|
|
7
|
-
/* @__PURE__ */K("button",{type:"button",onClick:()=>je(n),"aria-expanded":i,className:J(l,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&$e(e.to,ce),
|
|
8
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:r}),
|
|
9
|
-
/* @__PURE__ */D(G,{open:i})]}),i&&/* @__PURE__ */D("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>He(e,t+1))}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:O(t)},"aria-hidden":"true"})]},e.to)}const n=e.to===te;/* @__PURE__ */
|
|
10
|
-
return K("div",{children:[
|
|
11
|
-
/* @__PURE__ */K("button",{type:"button",onClick:t=>We(e,t),onAuxClick:t=>{1===t.button&&We(e,t)},"aria-current":n?"page":void 0,className:J(n,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&$e(e.to,ce),
|
|
12
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:O(t)},"aria-hidden":"true"})]},e.to)},Me=(e,t)=>{const a=t?e.items:m(e,ke);if(0===a.length)return null;const r="icon"in e&&e.icon?/* @__PURE__ */D("span",{className:F,"aria-hidden":"true",children:e.icon}):$e(e.label,de),n=e.menuLabel??e.label,i=h(a,te,ke),l="dividerAfter"in e&&e.dividerAfter;if(Y)/* @__PURE__ */
|
|
13
|
-
return K("div",{children:[
|
|
14
|
-
/* @__PURE__ */D("button",{type:"button",title:n,"aria-label":n,"aria-haspopup":"menu","aria-expanded":Ce?.label===e.label,onClick:t=>{const r=t.currentTarget.getBoundingClientRect();we(t=>t?.label===e.label?null:{label:e.label,items:a,top:r.top})},className:J(i||Ce?.label===e.label,!0),children:r}),l&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
15
|
-
return K("div",{children:[
|
|
16
|
-
/* @__PURE__ */K("button",{type:"button",onClick:()=>je(e.label),"aria-expanded":o,"aria-controls":s,className:J(!o&&i,!1),children:[r,
|
|
17
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:n}),
|
|
18
|
-
/* @__PURE__ */D(G,{open:o})]}),
|
|
19
|
-
/* @__PURE__ */D("div",{id:s,role:"group","aria-label":n,hidden:!o,className:"space-y-0.5 pt-0.5",children:o&&a.map(e=>He(e,1))}),l&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Ae=ae?.first_name?`${ae.first_name} ${ae.last_name||""}`.trim():re?.email||"",Ie=(ae?.first_name?.charAt(0)||re?.email?.charAt(0)||"?").toUpperCase(),Re=ae?.avatar_url?/* @__PURE__ */D("img",{src:ae.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */D("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ie}),Te=Se?ze.current?.getBoundingClientRect():void 0,Pe=Y?"":"px-3",De=Y?{paddingInline:y}:void 0,Ke=`${Y?xe.expandSidebar:xe.collapseSidebar} (${Q?"⌘":"Ctrl"} .)`,Ue=q?{run:q,label:xe.goHome,title:xe.goHome}:oe?null:{run:E,label:Y?xe.expandSidebar:xe.collapseSidebar,title:Ke},Qe=/* @__PURE__ */K(U,{children:[ue&&/* @__PURE__ */D(p,{src:ue,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:ge,isLight:fe,size:28,decorative:!0}),!Y&&/* @__PURE__ */K("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
20
|
-
/* @__PURE__ */D("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:he??"Apps"}),pe&&/* @__PURE__ */D("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),Be=ye.erpSections.length>0||ye.systemSections.length>0||ye.virtualSections.length>0;/* @__PURE__ */
|
|
21
|
-
return K("aside",{"aria-label":xe.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:X},children:[
|
|
22
|
-
/* @__PURE__ */K("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Y?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[Ue?/* @__PURE__ */D("button",{type:"button",onClick:Ue.run,"aria-label":Ue.label,title:Ue.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Y?"justify-center p-0.5":"-ml-1 p-1"),children:Qe}):/* @__PURE__ */D("span",{className:"flex min-w-0 items-center gap-2",children:Qe}),oe?/* @__PURE__ */D(b,{onClick:oe,"aria-label":xe.closeMenu,children:/* @__PURE__ */D($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Y&&/* @__PURE__ */D("button",{type:"button",onClick:E,"aria-label":xe.collapseSidebar,title:`${xe.collapseSidebar} (${Q?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */D(V,{dir:"left"})})]}),
|
|
23
|
-
/* @__PURE__ */D("div",{className:`shrink-0 pt-3 ${Pe}`,style:De,children:Y?/* @__PURE__ */D("button",{type:"button",onClick:s,"aria-label":xe.search,title:`${xe.search} (${Q?"⌘K":"Ctrl K"})`,className:J(!1,!0),children:/* @__PURE__ */D(_,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */K("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
24
|
-
/* @__PURE__ */D(_,{className:"size-3.5 text-gray-500"}),
|
|
25
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:xe.search}),
|
|
26
|
-
/* @__PURE__ */D("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:Q?"⌘K":"Ctrl K"})]})}),
|
|
27
|
-
/* @__PURE__ */K("nav",{"aria-label":xe.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Pe} ${Y?"space-y-1":"space-y-0.5"}`,style:De,children:[Y&&/* @__PURE__ */D("button",{type:"button",onClick:E,"aria-label":xe.expandSidebar,title:`${xe.expandSidebar} (${Q?"⌘":"Ctrl"} .)`,className:`${J(!1,!0)} mb-3`,children:/* @__PURE__ */D(V,{dir:"right"})}),ye.topItems.map(e=>{if(!Y)return He(e,0);const t=u(e,ke),a=e.to===te||h(t,te,ke),r=e.menuLabel??e.label;/* @__PURE__ */
|
|
28
|
-
return K("div",{children:[
|
|
29
|
-
/* @__PURE__ */D("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void We(e,a);const r=a.currentTarget.getBoundingClientRect();we(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:J(a,!0),children:$e(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ye.topItems.length>0&&Be&&!ye.topItems[ye.topItems.length-1].dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.erpSections.map(e=>Me(e,!1)),ye.systemSections.map(e=>Me(e,!1)),ye.virtualSections.map(e=>Me(e,!0)),ye.footerSections.length>0&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.footerSections.map(e=>Me(e,!1))]}),
|
|
30
|
-
/* @__PURE__ */D("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Pe}`,style:De,children:/* @__PURE__ */K("button",{ref:ze,type:"button",onClick:()=>Le(e=>!e),"aria-haspopup":"menu","aria-expanded":Se,"aria-label":Y?xe.accountMenu(Ae):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Y?"justify-center py-2":"px-2 py-2"),children:[Re,!Y&&/* @__PURE__ */K("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
31
|
-
/* @__PURE__ */D("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Ae}),re?.email&&Ae!==re.email&&/* @__PURE__ */D("span",{className:"block truncate text-2xs text-ink-faint",children:re.email})]})]})}),Z&&!Y&&!oe&&/* @__PURE__ */D(o,{side:"left",width:X,onResize:Z,min:j,max:v,defaultWidth:N,storageKey:n,label:xe.resizeSidebar}),Se&&Te&&/* @__PURE__ */K(S,{portal:!0,minWidth:224,onClose:()=>Le(!1),style:B(X,Te,window.innerHeight),children:[Y&&/* @__PURE__ */K("div",{className:"border-b border-line px-3 py-3",children:[
|
|
32
|
-
/* @__PURE__ */D("p",{className:"truncate text-sm font-semibold text-gray-800",children:Ae}),re?.email&&/* @__PURE__ */D("p",{className:"truncate text-xs text-gray-500",children:re.email})]}),
|
|
33
|
-
/* @__PURE__ */K(L,{onClick:()=>{Le(!1),ee("/profile",!1)},children:[
|
|
34
|
-
/* @__PURE__ */D($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.profile]}),ye.footerItems.map(e=>/* @__PURE__ */K(L,{onClick:()=>{Le(!1),We(e)},children:[
|
|
35
|
-
/* @__PURE__ */D("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),le&&/* @__PURE__ */K(L,{onClick:()=>{Le(!1),le()},children:[
|
|
36
|
-
/* @__PURE__ */D($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.reportIssue]}),
|
|
37
|
-
/* @__PURE__ */D(z,{}),ie&&/* @__PURE__ */K(U,{children:[
|
|
38
|
-
/* @__PURE__ */K(L,{onClick:()=>{Le(!1),ie()},children:[
|
|
39
|
-
/* @__PURE__ */D($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.switchToDesktop]}),
|
|
40
|
-
/* @__PURE__ */D(z,{})]}),
|
|
41
|
-
/* @__PURE__ */K(L,{danger:!0,onClick:()=>{Le(!1),ne()},children:[
|
|
42
|
-
/* @__PURE__ */D($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.signOut]})]}),Ce&&Y&&/* @__PURE__ */D(S,{portal:!0,minWidth:220,onClose:()=>we(null),style:{left:X+g,top:Math.min(Ce.top,window.innerHeight-48*Math.min(Ce.items.length,10)-16)},children:d(Ce.items,ke).map((e,t)=>/* @__PURE__ */K("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */D(z,{}),e.heading&&/* @__PURE__ */D(W,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */K(L,{onClick:()=>We(e),children:[$e(e.to,ce),
|
|
43
|
-
/* @__PURE__ */D("span",{className:e.to===te?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{B as accountMenuPosition,X as default};
|
package/dist/chunk-AVAYZK3Z.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{DropdownMenu as e}from"./chunk-VVZE27M4.js";import{Button_default as i}from"./chunk-NHH2MXFU.js";import{iconButtonClasses as n}from"./chunk-UQYNPYF4.js";import{Icon as r}from"./chunk-FSPFV4MI.js";import{Tooltip as a}from"./chunk-BCDG4N6L.js";import{forwardRef as l,useId as o}from"react";import{jsxs as s,jsx as t}from"react/jsx-runtime";var d="relative focus-visible:z-10",m={secondary:"border-l-0",primary:"border-l border-white/30",warning:"border-l border-white/30"},c=l(function({children:l,onClick:c,type:b="button",items:h,menuLabel:u,variant:f="primary",size:p="md",loading:v=!1,leftIcon:k,disabled:N=!1,disabledReason:g,tooltip:w,menuDisabled:x=!1,menuDisabledReason:j,onMenuOpenChange:y,menuFooter:C,menuFooterLabel:F,align:M="end",side:z="bottom",menuMinWidth:L,linkAs:W,block:D=!1,className:I=""},R){const V=N&&(null!=g&&""!==g&&!1!==g)&&!v,$=x&&null!=j&&""!==j&&!1!==j,A=o(),B=/* @__PURE__ */t(i,{ref:R,type:b,variant:f,size:p,loading:v,leftIcon:k,block:D,disabled:N&&!V,"aria-disabled":!!V||void 0,disabledReason:V?g:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),H=D?"relative flex min-w-0 flex-1":"relative inline-flex",O=p.startsWith("touch")?"h-5 w-5":"h-4 w-4";/* @__PURE__ */
|
|
2
|
-
return s("div",{className:[D?"flex w-full":"inline-flex","items-stretch",I].filter(Boolean).join(" "),children:[null==w||""===w||V?B:/* @__PURE__ */t(a,{content:w,className:H,children:B}),
|
|
3
|
-
/* @__PURE__ */t(a,{content:$?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":$?A:void 0,items:h,align:M,side:z,minWidth:L,linkAs:W,disabled:x&&!$,"aria-disabled":$,onOpenChange:y,footer:C,footerLabel:F,triggerClassName:n({variant:f,size:p,className:`rounded-l-none ${m[f]} ${d}`}),trigger:/* @__PURE__ */t(r,{name:"chevron-down",className:O,strokeWidth:2,"aria-hidden":"true"})})}),$&&/* @__PURE__ */t("span",{id:A,className:"sr-only",children:j})]})});export{c as SplitButton_default};
|
package/dist/chunk-FLXIPEWL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as t}from"./chunk-TLRCTNUF.js";import{CartesianPlot as o}from"./chunk-UAECFZRW.js";import{binValues as r}from"./chunk-2JWPNR2U.js";import{resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as e,useShellLocale as i}from"./chunk-PEM7UXQ3.js";import{formatPlain as m,formatFixed as n}from"./chunk-C3QOHMR6.js";import{jsx as l}from"react/jsx-runtime";function c({values:c,bins:s=10,precomputed:h,height:u=220,width:p,color:b,tone:f,formatBound:d,formatCount:x,yAxisLabel:g,label:k,className:y,emptyLabel:j}){const A=e().charts,L=i(),v=d??(t=>Number.isInteger(t)?m(t,L):n(t,1,L)),w=x??(t=>m(t,L)),C=g??A.countAxis,M=k??A.distribution,N=h??r(c??[],s),R=a(0,b,f),U=N.map(t=>v(t.from)),T=N.map(t=>t.count);/* @__PURE__ */
|
|
2
|
-
return l(o,{labels:U,values:T,height:u,width:p,bandPadding:0,xTickAnchor:"start",formatValue:w,yAxisLabel:C,className:y,emptyLabel:j,ariaLabel:A.histogram(M,N.length,(c??[]).length),tooltip:o=>/* @__PURE__ */l(t,{title:`${v(N[o].from)} – ${v(N[o].to)}`,rows:[{key:"count",label:A.observations,color:R,value:w(N[o].count)}]}),children:({x:t,y:o,bottom:r,active:a})=>/* @__PURE__ */l("g",{children:N.map((e,i)=>/* @__PURE__ */l("rect",{x:t(i)+.5,y:o(e.count),width:Math.max(1,t.bandwidth-1),height:Math.max(0,r-o(e.count)),fill:R,fillOpacity:null===a||a===i?.85:.42},i))})})}export{c as HistogramChart};
|
package/dist/chunk-LFSCENKW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="9.10.1",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-VVZE27M4.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-JWX7QRGE.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-HAFB45DT.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{placeMenu as d,popupBounds as c,followAnchor as u}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as p}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as m,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{jsxs as y,jsx as x}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/,w={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function D({trigger:D,items:L,align:j="end",side:A="bottom","aria-label":E,className:W="",triggerClassName:C,menuClassName:K="",minWidth:S=180,linkAs:H,disabled:$,id:N,"aria-describedby":T,"aria-disabled":U=!1,onOpenChange:B,footer:J,footerLabel:G}){const[I,q]=m(!1),[M,R]=m(-1),z=h(null),P=h(null),Q=h(null),F=h(null),O=h(null),V=null!=J&&!1!==J,X=h({text:"",at:0}),Y=g(),Z=g(),_=N??Z,ee=h(B);ee.current=B;const te=h(I);te.current=I;const re=v(e=>{q(!1),te.current&&(te.current=!1,ee.current?.(!1)),e&&P.current?.focus()},[]),ne=(t,r)=>{const n=L.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(L[i]))return i}return-1},oe=()=>Q.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!I)return;const e=e=>{const t=e.target;if(z.current?.contains(t)||oe()?.contains(t))return;const r=oe()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||re(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>re(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[I,re]);const ie=v(()=>{const e=oe(),t=P.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},o=d({trigger:t.getBoundingClientRect(),menu:n,bounds:c(t),align:j,side:A});r.left=`${o.left}px`,r.top=`${o.top}px`,r.maxWidth=`${o.maxWidth}px`,r.maxHeight=`${o.maxHeight}px`,r.overflowY=n.height>o.maxHeight?"auto":"",e.dataset.side=o.side,e.dataset.align=j},[j,A]);p(()=>{I&&ie()}),b(()=>{if(I)return u(()=>P.current,ie)},[I,ie]),b(()=>{if(!I)return;const t=Q.current,r=e(L[M])?t?.querySelector(`[data-dropdown-index="${M}"]`):null;(r??t)?.focus({preventScroll:!0})},[I,M]),b(()=>{if(I)return f(e=>"Escape"===e.key&&(re(!0),!0),()=>F.current)},[I,re]),n(F,I&&V);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{R(le(e)),q(!0),te.current||(te.current=!0,ae.current=e,B?.(!0))};p(()=>{const e=ae.current;if(!I||!e)return;ae.current=null;const t=le(e);t!==M&&R(t)});const de=t(L,Y),ce="function"==typeof J?J({close:()=>re(!0)}):J,ue={...k.test(K)?{}:{zIndex:s.popup},minWidth:S};/* @__PURE__ */
|
|
2
|
-
return y("div",{ref:z,className:`relative inline-flex ${W}`.trim(),children:[
|
|
3
|
-
/* @__PURE__ */x("button",{ref:P,id:_,type:"button","aria-haspopup":"menu","aria-expanded":I,"aria-controls":I?Y:void 0,"aria-label":E,"aria-describedby":T,"aria-disabled":U||void 0,disabled:$,onClick:()=>{U||(I?re(!1):se("first"))},onKeyDown:e=>{U||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),se("first")):"ArrowUp"===e.key&&(e.preventDefault(),se("last")))},className:C??"inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-ink-strongest rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(E?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:D}),I&&
|
|
4
|
-
/* @__PURE__ */x(i,{portal:!0,className:K,style:ue,children:/* @__PURE__ */y("div",{ref:F,children:[
|
|
5
|
-
/* @__PURE__ */x("div",{ref:Q,id:Y,role:"menu","aria-orientation":"vertical","aria-label":E,"aria-labelledby":E?void 0:_,"aria-describedby":de,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),R(ne(M+1,1));else if("ArrowUp"===t.key)t.preventDefault(),R(ne(M-1,-1));else if("Home"===t.key)t.preventDefault(),R(ne(0,1));else if("End"===t.key)t.preventDefault(),R(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&O.current?o(O.current)[0]:void 0;e?e.focus({preventScroll:!0}):re(!0)}else if(" "===t.key){const e=t.target;e.matches?.("a[href]")&&(t.preventDefault(),e.click())}else 1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||(t=>{const r=Date.now(),n=t.key.toLowerCase(),o=r-X.current.at<500?X.current.text+n:n;X.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?M+1:Math.max(M,0),s=Q.current,d=L.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(L[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void R(n)}})(t)},children:r(L,{menuId:Y,choose:e=>{e.disabled||(re(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>re(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===M?0:-1,onMouseEnter:()=>{t.disabled||O.current?.contains(document.activeElement)||R(e)}}),linkAs:H})}),V&&/* @__PURE__ */y("div",{ref:O,role:"group","aria-label":G,"data-dropdown-footer":"",onKeyDown:e=>{const t=O.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=o(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=Q.current?.querySelector(`[data-dropdown-index="${M}"]`);return void(t??Q.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),re(!0))},children:[
|
|
6
|
-
/* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
|
|
7
|
-
/* @__PURE__ */x("div",{style:w,children:ce})]})]})})]})}export{D as DropdownMenu};
|
package/dist/chunk-Y65MPP3M.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useShellAuth as e}from"./chunk-CY5N5OA3.js";var t={};function r(e){t=e}function n(){const{hasAnyPerm:r}=e();return{user:t.user,logout:t.logout??(()=>{}),hasAnyPerm:r}}var o="react-os-shell:sidebar-collapsed",s="react-os-shell:sidebar-open-sections",a="react-os-shell:sidebar-width";function c(e,t){return"true"===e||"false"!==e&&t<1024}function u(e){if(!e)/* @__PURE__ */return new Set;try{const t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e))return new Set(t)}catch{}/* @__PURE__ */
|
|
2
|
-
return new Set}function l(e,t){const r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}function i(e){try{return localStorage.getItem(e)}catch{return null}}function f(e,t){try{localStorage.setItem(e,t)}catch{}}export{o as RAIL_COLLAPSED_KEY,s as RAIL_OPEN_SECTIONS_KEY,a as RAIL_WIDTH_KEY,c as initialRailCollapsed,u as parseOpenSections,i as readStored,r as setShellAuthBridge,l as toggleOpenSection,n as useAuth,f as writeStored};
|