efficient-shell 9.10.0 → 9.10.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/dist/{Browser-VUQISZ2Z.js → Browser-4SQ4P24B.js} +14 -14
- package/dist/Calculator-6NA35GFS.js +29 -0
- package/dist/{CurrencyConverter-AW7BB3DD.js → CurrencyConverter-EDEJOKHC.js} +7 -7
- package/dist/{Documents-WPTBUSKV.js → Documents-4TQFZOMU.js} +3 -3
- package/dist/{Files-IZ6N6SG6.js → Files-GGJYYELO.js} +29 -29
- package/dist/{Notepad-VRQH524R.js → Notepad-JRRC5U3N.js} +10 -10
- package/dist/{PomodoroTimer-5VCWY4QT.js → PomodoroTimer-HCLT2JVD.js} +6 -6
- package/dist/{Preview-SP3WIE54.js → Preview-FFHAUR6X.js} +13 -13
- package/dist/Sidebar-BBZ7UFYQ.js +43 -0
- package/dist/{Spreadsheet-4U4ABNE2.js → Spreadsheet-QTTDPD3U.js} +12 -12
- package/dist/{Stock-2VWS2IQJ.js → Stock-3IBS63UR.js} +4 -4
- package/dist/{Weather-4MEYBP4D.js → Weather-EFIIVKFE.js} +8 -8
- package/dist/{WorldClock-Y4YRJ43F.js → WorldClock-ERQQ4VWP.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/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-REGXKU74.js → chunk-2J2OU65F.js} +2 -2
- package/dist/{chunk-5VYBPDZ2.js → chunk-3C4RNMN4.js} +1 -1
- package/dist/{chunk-IUWAMMDN.js → chunk-4YZZYB42.js} +2 -2
- package/dist/{chunk-CFO54C3H.js → chunk-4ZKTUUQK.js} +1 -1
- package/dist/{chunk-ZA6S5XVM.js → chunk-5ZGL2BRZ.js} +2 -2
- package/dist/{chunk-2XBJNB7D.js → chunk-6FI3HVUR.js} +28 -28
- package/dist/{chunk-UYDP4DK3.js → chunk-7BYBGPWU.js} +3 -3
- package/dist/{chunk-J7OKOVSL.js → chunk-7DMTFIQN.js} +6 -6
- package/dist/{chunk-73W7537K.js → chunk-AOSLOKAL.js} +1 -1
- package/dist/chunk-AVAYZK3Z.js +3 -0
- package/dist/{chunk-IBIUI2D3.js → chunk-BJWPPUM6.js} +1 -1
- package/dist/{chunk-7IC4JMFA.js → chunk-ERLZDA75.js} +4 -4
- package/dist/{chunk-NBKQADMY.js → chunk-F52WQG3M.js} +5 -5
- package/dist/chunk-FLXIPEWL.js +2 -0
- package/dist/{chunk-BRHKQMRH.js → chunk-FVDX6ZSZ.js} +6 -6
- package/dist/{chunk-CJI3POCE.js → chunk-GSKWYMM4.js} +1 -1
- package/dist/{chunk-FPGRKHUW.js → chunk-HAFB45DT.js} +7 -7
- package/dist/{chunk-5Y7JITHW.js → chunk-HMG5TW2R.js} +1 -1
- package/dist/{chunk-FNSVXN7B.js → chunk-IK332TWA.js} +1 -1
- package/dist/{chunk-ODOEH5QZ.js → chunk-JENEVLJU.js} +1 -1
- package/dist/{chunk-XREN3AKD.js → chunk-JGDLTIOX.js} +4 -4
- package/dist/{chunk-XS4HFUTW.js → chunk-JWX7QRGE.js} +1 -1
- package/dist/{chunk-AGETTWMK.js → chunk-KJHXCVNI.js} +5 -5
- package/dist/chunk-LFSCENKW.js +1 -0
- package/dist/{chunk-CB6ROWOC.js → chunk-MLPIJMOV.js} +2 -2
- package/dist/{chunk-IQWIYZB5.js → chunk-NU2YQSOP.js} +2 -2
- package/dist/{chunk-GCB5S2OI.js → chunk-NUTVIQAV.js} +4 -4
- package/dist/{chunk-EGAV5LSX.js → chunk-O25B75XX.js} +1 -1
- package/dist/{chunk-WIOG2NOJ.js → chunk-O56CY36U.js} +5 -5
- package/dist/{chunk-TBLN4MDQ.js → chunk-OEFMBTDH.js} +5 -5
- package/dist/{chunk-IVY7CCTS.js → chunk-OVDHEMLK.js} +5 -5
- package/dist/chunk-P6SATWL5.js +22 -0
- package/dist/{chunk-DWSCYYDM.js → chunk-QXK2HO4Q.js} +1 -1
- package/dist/{chunk-4SZ3NNVF.js → chunk-R6R57BWQ.js} +4 -4
- package/dist/{chunk-KOSV4UPK.js → chunk-RISKWWMD.js} +3 -3
- package/dist/{chunk-VR4GSAFM.js → chunk-SAHQB2JD.js} +11 -11
- package/dist/{chunk-HHOXLECO.js → chunk-SYH7EPLF.js} +23 -23
- package/dist/{chunk-4CPE5NBC.js → chunk-UAECFZRW.js} +4 -4
- package/dist/chunk-VVZE27M4.js +7 -0
- package/dist/{chunk-IEPSBXMU.js → chunk-Z3CYLDHB.js} +9 -9
- 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 +117 -117
- 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-IZXBE6R7.js +0 -29
- package/dist/Sidebar-PUXP2DFI.js +0 -43
- package/dist/chunk-HSTIEPLI.js +0 -1
- package/dist/chunk-POCQ7ZL4.js +0 -3
- package/dist/chunk-PTA7A7GF.js +0 -22
- package/dist/chunk-PVR4KU7H.js +0 -7
- package/dist/chunk-QYJQAY6C.js +0 -2
package/dist/Sidebar-PUXP2DFI.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 W,PopupMenuLabel as z}from"./chunk-FPGRKHUW.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UQYNPYF4.js";import"./chunk-HL6JSDN3.js";import{Icon as $}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.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 R,useRef as I,useEffect as A,isValidElement as P,cloneElement as K}from"react";import{jsx as T,jsxs as U,Fragment as D}from"react/jsx-runtime";var Q="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function J(e,t,a){const r=Math.max(8,a-t.bottom);return{left:e+g,bottom:r,maxHeight:a-r-8,overflowY:"auto"}}var B=(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 T($,{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 T($,"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 T($,{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]=R(()=>t(a(r))),je=e=>ve(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[Ce,we]=R(null),[Se,Le]=R(!1),We=I(null);A(()=>{Y||we(null)},[Y]);const ze=(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 T("span",{className:F,"aria-hidden":"true",children:a&&P(a)?K(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 U("div",{children:[
|
|
7
|
-
/* @__PURE__ */U("button",{type:"button",onClick:()=>je(n),"aria-expanded":i,className:B(l,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&$e(e.to,ce),
|
|
8
|
-
/* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate",children:r}),
|
|
9
|
-
/* @__PURE__ */T(G,{open:i})]}),i&&/* @__PURE__ */T("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>He(e,t+1))}),e.dividerAfter&&/* @__PURE__ */T("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 U("div",{children:[
|
|
11
|
-
/* @__PURE__ */U("button",{type:"button",onClick:t=>ze(e,t),onAuxClick:t=>{1===t.button&&ze(e,t)},"aria-current":n?"page":void 0,className:B(n,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&$e(e.to,ce),
|
|
12
|
-
/* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */T("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__ */T("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 U("div",{children:[
|
|
14
|
-
/* @__PURE__ */T("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:B(i||Ce?.label===e.label,!0),children:r}),l&&/* @__PURE__ */T("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 U("div",{children:[
|
|
16
|
-
/* @__PURE__ */U("button",{type:"button",onClick:()=>je(e.label),"aria-expanded":o,"aria-controls":s,className:B(!o&&i,!1),children:[r,
|
|
17
|
-
/* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate",children:n}),
|
|
18
|
-
/* @__PURE__ */T(G,{open:o})]}),
|
|
19
|
-
/* @__PURE__ */T("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__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Re=ae?.first_name?`${ae.first_name} ${ae.last_name||""}`.trim():re?.email||"",Ie=(ae?.first_name?.charAt(0)||re?.email?.charAt(0)||"?").toUpperCase(),Ae=ae?.avatar_url?/* @__PURE__ */T("img",{src:ae.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */T("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ie}),Pe=Se?We.current?.getBoundingClientRect():void 0,Ke=Y?"":"px-3",Te=Y?{paddingInline:y}:void 0,Ue=`${Y?xe.expandSidebar:xe.collapseSidebar} (${Q?"⌘":"Ctrl"} .)`,De=q?{run:q,label:xe.goHome,title:xe.goHome}:oe?null:{run:E,label:Y?xe.expandSidebar:xe.collapseSidebar,title:Ue},Qe=/* @__PURE__ */U(D,{children:[ue&&/* @__PURE__ */T(p,{src:ue,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:ge,isLight:fe,size:28,decorative:!0}),!Y&&/* @__PURE__ */U("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
20
|
-
/* @__PURE__ */T("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:he??"Apps"}),pe&&/* @__PURE__ */T("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),Je=ye.erpSections.length>0||ye.systemSections.length>0||ye.virtualSections.length>0;/* @__PURE__ */
|
|
21
|
-
return U("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__ */U("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:[De?/* @__PURE__ */T("button",{type:"button",onClick:De.run,"aria-label":De.label,title:De.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__ */T("span",{className:"flex min-w-0 items-center gap-2",children:Qe}),oe?/* @__PURE__ */T(b,{onClick:oe,"aria-label":xe.closeMenu,children:/* @__PURE__ */T($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Y&&/* @__PURE__ */T("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__ */T(V,{dir:"left"})})]}),
|
|
23
|
-
/* @__PURE__ */T("div",{className:`shrink-0 pt-3 ${Ke}`,style:Te,children:Y?/* @__PURE__ */T("button",{type:"button",onClick:s,"aria-label":xe.search,title:`${xe.search} (${Q?"⌘K":"Ctrl K"})`,className:B(!1,!0),children:/* @__PURE__ */T(_,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */U("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__ */T(_,{className:"size-3.5 text-gray-500"}),
|
|
25
|
-
/* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:xe.search}),
|
|
26
|
-
/* @__PURE__ */T("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__ */U("nav",{"aria-label":xe.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Ke} ${Y?"space-y-1":"space-y-0.5"}`,style:Te,children:[Y&&/* @__PURE__ */T("button",{type:"button",onClick:E,"aria-label":xe.expandSidebar,title:`${xe.expandSidebar} (${Q?"⌘":"Ctrl"} .)`,className:`${B(!1,!0)} mb-3`,children:/* @__PURE__ */T(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 U("div",{children:[
|
|
29
|
-
/* @__PURE__ */T("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void ze(e,a);const r=a.currentTarget.getBoundingClientRect();we(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:B(a,!0),children:$e(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ye.topItems.length>0&&Je&&!ye.topItems[ye.topItems.length-1].dividerAfter&&/* @__PURE__ */T("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__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.footerSections.map(e=>Me(e,!1))]}),
|
|
30
|
-
/* @__PURE__ */T("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Ke}`,style:Te,children:/* @__PURE__ */U("button",{ref:We,type:"button",onClick:()=>Le(e=>!e),"aria-haspopup":"menu","aria-expanded":Se,"aria-label":Y?xe.accountMenu(Re):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:[Ae,!Y&&/* @__PURE__ */U("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
31
|
-
/* @__PURE__ */T("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Re}),re?.email&&Re!==re.email&&/* @__PURE__ */T("span",{className:"block truncate text-2xs text-ink-faint",children:re.email})]})]})}),Z&&!Y&&!oe&&/* @__PURE__ */T(o,{side:"left",width:X,onResize:Z,min:j,max:v,defaultWidth:N,storageKey:n,label:xe.resizeSidebar}),Se&&Pe&&/* @__PURE__ */U(S,{portal:!0,minWidth:224,onClose:()=>Le(!1),style:J(X,Pe,window.innerHeight),children:[Y&&/* @__PURE__ */U("div",{className:"border-b border-line px-3 py-3",children:[
|
|
32
|
-
/* @__PURE__ */T("p",{className:"truncate text-sm font-semibold text-gray-800",children:Re}),re?.email&&/* @__PURE__ */T("p",{className:"truncate text-xs text-gray-500",children:re.email})]}),
|
|
33
|
-
/* @__PURE__ */U(L,{onClick:()=>{Le(!1),ee("/profile",!1)},children:[
|
|
34
|
-
/* @__PURE__ */T($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.profile]}),ye.footerItems.map(e=>/* @__PURE__ */U(L,{onClick:()=>{Le(!1),ze(e)},children:[
|
|
35
|
-
/* @__PURE__ */T("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),le&&/* @__PURE__ */U(L,{onClick:()=>{Le(!1),le()},children:[
|
|
36
|
-
/* @__PURE__ */T($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.reportIssue]}),
|
|
37
|
-
/* @__PURE__ */T(W,{}),ie&&/* @__PURE__ */U(D,{children:[
|
|
38
|
-
/* @__PURE__ */U(L,{onClick:()=>{Le(!1),ie()},children:[
|
|
39
|
-
/* @__PURE__ */T($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.switchToDesktop]}),
|
|
40
|
-
/* @__PURE__ */T(W,{})]}),
|
|
41
|
-
/* @__PURE__ */U(L,{danger:!0,onClick:()=>{Le(!1),ne()},children:[
|
|
42
|
-
/* @__PURE__ */T($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.signOut]})]}),Ce&&Y&&/* @__PURE__ */T(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__ */U("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */T(W,{}),e.heading&&/* @__PURE__ */T(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */U(L,{onClick:()=>ze(e),children:[$e(e.to,ce),
|
|
43
|
-
/* @__PURE__ */T("span",{className:e.to===te?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{J as accountMenuPosition,X as default};
|
package/dist/chunk-HSTIEPLI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="9.10.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-POCQ7ZL4.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{DropdownMenu as e}from"./chunk-PVR4KU7H.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:z="end",side:L="bottom",menuMinWidth:M,linkAs:R,block:W=!1,className:D=""},H){const I=N&&(null!=g&&""!==g&&!1!==g)&&!v,P=x&&null!=j&&""!==j&&!1!==j,U=o(),$=/* @__PURE__ */t(i,{ref:H,type:b,variant:f,size:p,loading:v,leftIcon:k,block:W,disabled:N&&!I,"aria-disabled":!!I||void 0,disabledReason:I?g:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),A=W?"relative flex min-w-0 flex-1":"relative inline-flex",B=p.startsWith("touch")?"h-5 w-5":"h-4 w-4";/* @__PURE__ */
|
|
2
|
-
return s("div",{className:[W?"flex w-full":"inline-flex","items-stretch",D].filter(Boolean).join(" "),children:[null==w||""===w||I?$:/* @__PURE__ */t(a,{content:w,className:A,children:$}),
|
|
3
|
-
/* @__PURE__ */t(a,{content:P?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":P?U:void 0,items:h,align:z,side:L,minWidth:M,linkAs:R,disabled:x&&!P,"aria-disabled":P,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:B,strokeWidth:2,"aria-hidden":"true"})})}),P&&/* @__PURE__ */t("span",{id:U,className:"sr-only",children:j})]})});export{c as SplitButton_default};
|
package/dist/chunk-PTA7A7GF.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{ChartBrush as t}from"./chunk-QMYQ4B5A.js";import{ChartDot as e}from"./chunk-CK2YOGUS.js";import{stepPath as a,curvePath as r,areaBetween as o,areaFrom as l}from"./chunk-VFC6QUEN.js";import{ChartDefs as n,MOTION as i,stagger as s,fillFor as c,dashFor as d,maskId as h}from"./chunk-465RRWBY.js";import{ChartSkeleton as m}from"./chunk-MCMUJDEP.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{ChartTooltip as p}from"./chunk-TLRCTNUF.js";import{useDragZoom as g,DragBand as y,ChartZoomSummary as k,tooltipBesideBand as x}from"./chunk-QCFN3ET4.js";import{pairedAxes as v,niceAxis as b,niceMax as M,linearScale as N,axisGutter as w,bandScale as j,ladderScale as $}from"./chunk-2JWPNR2U.js";import{usePlotWidth as z}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as A,CHART_INK as C,STATUS_VARS as E}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as V}from"./chunk-TWVUQUUD.js";import{useShellStrings as L,useShellLocale as R}from"./chunk-PEM7UXQ3.js";import{formatPercent as S,formatPlain as T}from"./chunk-C3QOHMR6.js";import{useRef as U,useState as W,useId as D,useEffect as P}from"react";import{jsx as F,jsxs as I}from"react/jsx-runtime";var Q=12,B=16,O=26,Y=52,H=t=>"number"==typeof t&&Number.isFinite(t);function J({series:J,labels:K,height:X=200,stacked:Z=!1,stackMode:G="value",levels:q,curve:_="linear",tension:tt=0,max:et,yTickCount:at=4,formatValue:rt,formatTooltipValue:ot,tooltipLabels:lt,yAxisLabel:nt,referenceLines:it,labelEndpoints:st=!1,dots:ct,dotVariant:dt="border",pulse:ht=!1,brush:mt=!1,range:ut,onRangeChange:ft,zoomable:pt=!0,columnStrip:gt,onSelect:yt,loading:kt=!1,animate:xt=!0,reveal:vt="left-to-right",fillVariant:bt="gradient",gridStyle:Mt="solid",width:Nt,className:wt,emptyLabel:jt}){const $t=L().charts,zt=R(),At=rt??(t=>T(t,zt)),Ct=ot??At,Et=jt??$t.noData,Vt=U(null),Lt=z(Vt),Rt=Nt??Lt,[St,Tt]=W(null),[Ut,Wt]=W(null),{highlighted:Dt}=u(),Pt=D(),Ft=ut??Ut,It=g(mt&&Ft?Ft[1]-Ft[0]+1:K.length,pt);if(P(()=>{if(null!==St)return V(t=>"Escape"===t.key&&(Tt(null),!0))},[St]),kt)/* @__PURE__ */
|
|
2
|
-
return F("div",{className:wt,ref:Vt,children:/* @__PURE__ */F(m,{height:X,width:Nt??Lt})});const Qt=K,Bt=ut??Ut??[0,Math.max(0,Qt.length-1)],[Ot,Yt]=Bt,Ht=t=>It.slice(mt?t.slice(Ot,Yt+1):t),Jt=lt?Ht(lt):void 0,Kt=J.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(H)).map(t=>({...t,data:Ht(t.data),pointTones:t.pointTones?Ht(t.pointTones):void 0})),Xt=t=>(mt?Ot:0)+(It.view?.[0]??0)+t;if(K=Ht(Qt),0===Kt.length||0===K.length)/* @__PURE__ */
|
|
3
|
-
return F("div",{className:wt,ref:Vt,children:/* @__PURE__ */F("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:X},children:Et})});const Zt=K.map((t,e)=>Kt.reduce((t,a)=>t+(H(a.data[e])?a.data[e]:0),0)),Gt=(t,e)=>Zt[e]>0?t/Zt[e]:null,qt=[];if(Z){let t=K.map(()=>0);for(const e of Kt)t=t.map((t,a)=>t+(H(e.data[a])?e.data[a]:0)),qt.push("percent"===G?t.map((t,e)=>Gt(t,e)):[...t])}const _t=!!q&&q.length>0,te=t=>"right"===t.axis,ee=!Z&&!_t&&void 0===et&&Kt.some(te)&&Kt.some(t=>!te(t)),ae=gt&&!Z?gt:null,re=t=>!!ae&&"column"===t.mode,oe=(ee?Kt.filter(t=>!te(t)):Kt).filter(t=>!re(t)),le=ee?Kt.filter(te).flatMap(t=>t.data.filter(H)):[],ne=Z?(qt.at(-1)??[]).filter(H):oe.flatMap(t=>t.data.filter(H)),ie=ee?v([Math.min(0,...ne),Math.max(0,...ne)],[Math.min(0,...le),Math.max(0,...le)],{intervals:at+1,integerLeft:ne.every(Number.isInteger),integerRight:le.every(Number.isInteger)}):null,se=ie?ie.left:Z&&"percent"===G||_t||void 0!==et?null:b(Z?0:Math.min(0,...ne),Math.max(0,...ne),{intervals:at+1,integer:ne.every(Number.isInteger)}),ce=se?se.lo:0,de=Z&&"percent"===G?1:se?se.hi:et??M(Math.max(...ne,0)),he=Z&&"percent"===G?t=>S(Math.round(100*t),0,zt):At,me=_t?q:se?se.ticks:N([ce,de],{from:0,to:1}).ticks(at+1),ue=w(me.map(he),Y),fe=ie?w(ie.right.ticks.map(At),B):B,pe={left:ue,right:Math.max(ue+1,Rt-fe),top:Q,bottom:X-O},ge=j(K.length,{from:pe.left,to:pe.right}),ye=_t?$(q,{from:pe.bottom,to:pe.top}):null,ke=N([ce,de],{from:pe.bottom,to:pe.top}),xe=ke(Math.max(ce,0)),ve=t=>ye?ye(t):ke(t),be=Kt.filter(re),Me=Math.max(0,...K.map((t,e)=>be.reduce((t,a)=>t+Math.max(0,H(a.data[e])?a.data[e]:0),0))),Ne=t=>xe-(Me>0?t/Me:0)*(pe.bottom-pe.top)*(ae??0),we=ie?N([ie.right.lo,ie.right.hi],{from:pe.bottom,to:pe.top}):null,je=t=>we&&te(t)?we:ve,$e=ye?ye.levels.map(t=>({value:t,y:ye(t)})):me.map(t=>({value:t,y:ke(t)})),ze=t=>e=>{e.preventDefault(),Tt(e=>{const a=(e??0)+t;return Math.min(K.length-1,Math.max(0,a))})},Ae=Math.max(1,Math.ceil(K.length/Math.max(1,Math.floor(Rt/96))));/* @__PURE__ */
|
|
4
|
-
return I("div",{className:`relative ${wt??""}`,ref:Vt,children:[
|
|
5
|
-
/* @__PURE__ */I("svg",{width:"100%",height:X,viewBox:`0 0 ${Rt} ${X}`,role:"img","aria-label":$t.overIntervals(Kt.map(t=>t.label),K.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Tt(null),onBlur:()=>Tt(null),style:pt?{userSelect:"none",touchAction:"pan-y"}:void 0,onKeyDown:t=>{if(yt&&null!==St&&("Enter"===t.key||" "===t.key))return t.preventDefault(),void yt(Xt(St));"ArrowRight"===t.key&&ze(1)(t),"ArrowLeft"===t.key&&ze(-1)(t)},children:[
|
|
6
|
-
/* @__PURE__ */F("defs",{children:/* @__PURE__ */F("clipPath",{id:Pt,children:/* @__PURE__ */F("rect",{x:pe.left,y:pe.top,width:pe.right-pe.left,height:pe.bottom-pe.top})})}),
|
|
7
|
-
/* @__PURE__ */F(n,{id:Pt,fills:Kt.map((t,e)=>({color:A(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:Z?.42:.3,reveal:!!xt&&vt}),$e.map(t=>/* @__PURE__ */F("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:C.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
|
|
8
|
-
/* @__PURE__ */F("line",{x1:pe.left,y1:xe,x2:pe.right,y2:xe,stroke:C.axis,strokeWidth:1,shapeRendering:"crispEdges"}),$e.map(t=>/* @__PURE__ */F("text",{x:pe.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:C.label,style:{fontVariantNumeric:"tabular-nums"},children:he(t.value)},`ytick-${t.value}`)),ie&&$e.map((t,e)=>/* @__PURE__ */F("text",{x:pe.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:C.label,style:{fontVariantNumeric:"tabular-nums"},children:At(ie.right.ticks[e])},`ytick-r-${t.value}`)),nt&&/* @__PURE__ */F("text",{x:12,y:(pe.top+pe.bottom)/2,transform:`rotate(-90 12 ${(pe.top+pe.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:C.label,children:nt}),
|
|
9
|
-
/* @__PURE__ */F("g",{clipPath:`url(#${Pt})`,mask:xt&&vt?`url(#${h(Pt)})`:void 0,children:Kt.map((t,e)=>{const n=A(t.slot,t.color,t.tone),h=t.mode??(Z?"area":"line"),m=f(t.key,Dt);if("step"===h){const e=K.map((e,a)=>({start:ge(a),end:ge.end(a),value:t.data[a]})).filter(t=>H(t.value)).map(e=>({start:e.start,end:e.end,y:je(t)(e.value)}));/* @__PURE__ */
|
|
10
|
-
return F("path",{d:a(e),fill:"none",stroke:n,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:m??void 0,className:"rosh-viz-mark"},t.key)}const u=K.map((a,r)=>{const o=Z?qt[e]?.[r]:t.data[r];return H(o)?[ge.center(r),je(t)(o)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===h){const a=Math.max(1,.62*ge.bandwidth),r="solid"===t.fillVariant,o=je(t);return re(t)?/* @__PURE__ */F("g",{opacity:m??void 0,className:"rosh-viz-mark",children:K.map((o,l)=>{const i=t.data[l];if(!H(i)||i<=0)return null;const s=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Kt[t]?.key)).reduce((t,a)=>t+Math.max(0,H(a.data[e])?a.data[e]:0),0))(e,l),c=Ne(s+i),d=Ne(s)-(s>0?1:0);/* @__PURE__ */
|
|
11
|
-
return F("rect",{x:ge.center(l)-a/2,y:c,width:a,height:Math.max(0,d-c),rx:2,fill:t.pointTones?.[l]?E[t.pointTones[l]]:n,fillOpacity:r?1:.55},l)})},t.key):/* @__PURE__ */F("g",{opacity:m??void 0,className:"rosh-viz-mark",children:K.map((l,c)=>{const d=Z?qt[e]?.[c]:t.data[c];if(!H(d))return null;const h=o(d);/* @__PURE__ */
|
|
12
|
-
return F("rect",{x:ge.center(c)-a/2,y:Math.min(h,xe),width:a,height:Math.abs(xe-h),rx:2,fill:n,fillOpacity:r?1:.35,className:xt?i.rise:void 0,style:xt?s(c,26):void 0},c)})},t.key)}const p=r(u,_,tt),g=Z&&e>0?K.map((t,a)=>[ge.center(a),ve(qt[e-1]?.[a]??0)-2]):null,y=g?o(p,g):l(p,u,xe);/* @__PURE__ */
|
|
13
|
-
return I("g",{opacity:m??void 0,className:"rosh-viz-mark",children:[("area"===h||Z)&&
|
|
14
|
-
/* @__PURE__ */F("path",{d:y,fill:c(Pt,e,t.fillVariant??bt,n),stroke:"none"}),
|
|
15
|
-
/* @__PURE__ */F("path",{d:p,fill:"none",stroke:n,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:d(t.stroke??(t.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?i.march:void 0})]},t.key)})}),it?.map((t,e)=>{const a=t.color??E[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
|
|
16
|
-
return I("g",{children:[
|
|
17
|
-
/* @__PURE__ */F("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */F("text",{x:pe.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(ct??(st?"last":"none"))&&Kt.map((t,a)=>{if("column"===t.mode)return null;const r=ct??(st?"last":"none"),o=A(t.slot,t.color,t.tone),l=[...t.data].map(H).lastIndexOf(!0),n="all"===r?K.map((t,e)=>e).filter(e=>H(Z?qt[a]?.[e]:t.data[e])):l>=0?[l]:[];/* @__PURE__ */
|
|
18
|
-
return I("g",{children:[n.map(r=>{const n=Z?qt[a]?.[r]:t.data[r];return H(n)?/* @__PURE__ */F(e,{cx:ge.center(r),cy:je(t)(n),color:o,variant:dt,pulse:ht&&r===l,title:`${K[r]}: ${t.label} ${At(n)}`},r):null}),st&&l>=0&&H(Z?qt[a]?.[l]:t.data[l])&&/* @__PURE__ */F("text",{x:ge.center(l)-10,y:je(t)(Z?qt[a]?.[l]:t.data[l])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:C.label,style:{fontVariantNumeric:"tabular-nums"},children:At(Z?qt[a]?.[l]:t.data[l])})]},`dots-${t.key}`)}),K.map((t,e)=>e%Ae===0?/* @__PURE__ */F("text",{x:ge.center(e),y:X-8,textAnchor:"middle",fontSize:11,fill:C.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==St&&/* @__PURE__ */F("line",{x1:ge.center(St),y1:pe.top,x2:ge.center(St),y2:pe.bottom,stroke:C.axis,strokeWidth:1}),ae&&Me>0&&
|
|
19
|
-
/* @__PURE__ */I("g",{pointerEvents:"none","data-column-strip":"true",children:[
|
|
20
|
-
/* @__PURE__ */F("line",{x1:pe.left,y1:Ne(Me),x2:pe.right,y2:Ne(Me),stroke:C.grid,strokeWidth:1,strokeDasharray:"2 3",shapeRendering:"crispEdges"}),
|
|
21
|
-
/* @__PURE__ */F("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:C.label,style:{fontVariantNumeric:"tabular-nums"},children:At(Me)})]}),It.drag&&/* @__PURE__ */F(y,{x0:ge(It.drag[0]),x1:ge(It.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),K.map((t,e)=>/* @__PURE__ */F("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>Tt(e),onPointerDown:()=>It.press(e),onPointerEnter:()=>It.over(e),onPointerUp:It.release,onClick:yt?()=>yt(Xt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),It.view&&/* @__PURE__ */F(k,{from:Jt?.[0]??K[0],to:Jt?.at(-1)??K[K.length-1],count:K.length,total:Z&&"percent"!==G?Ct(Zt.reduce((t,e)=>t+e,0)):void 0,rows:Kt.map(t=>{const e=t.data.filter(H),a=A(t.slot,t.color,t.tone);if(0===e.length)return{key:t.key,label:t.label,color:a,value:"—"};const r=e.reduce((t,e)=>t+e,0),o=Z||"column"===t.mode?Ct(r):$t.zoomLevel(Ct(r/e.length),Ct(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:It.clear}),mt&&Qt.length>2&&/* @__PURE__ */F(t,{className:"mt-1",labels:Qt,width:Rt,data:J[0]?.data??[],range:Bt,onRangeChange:t=>{ft?ft(t):Wt(t)}}),null!==St&&
|
|
22
|
-
/* @__PURE__ */F("div",{className:"pointer-events-none absolute top-2 z-10",style:x(ge.center(St),ge.bandwidth,Rt),children:/* @__PURE__ */F(p,{title:Jt?.[St]??K[St],rows:Kt.map((t,e)=>({key:t.key,label:t.label,color:A(t.slot,t.color,t.tone),value:H(t.data[St])?Z&&"percent"===G?`${S(100*(Gt(t.data[St],St)??0),1,zt)} · ${Ct(t.data[St])}`:Ct(t.data[St]):void 0})),footnote:Z&&"percent"===G?$t.inBucket(Ct(Zt[St])):void 0})})]})}export{J as TimeSeriesChart};
|
package/dist/chunk-PVR4KU7H.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-XS4HFUTW.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-FPGRKHUW.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:W="end",side:j="bottom","aria-label":K,className:S="",triggerClassName:A,menuClassName:C="",minWidth:E=180,linkAs:H,disabled:U,id:$,"aria-describedby":N,"aria-disabled":T=!1,onOpenChange:B,footer:G,footerLabel:I}){const[J,q]=m(!1),[M,P]=m(-1),R=h(null),z=h(null),F=h(null),O=h(null),Q=h(null),V=null!=G&&!1!==G,X=h({text:"",at:0}),Y=g(),Z=g(),_=$??Z,ee=h(B);ee.current=B;const te=h(J);te.current=J;const re=v(e=>{q(!1),te.current&&(te.current=!1,ee.current?.(!1)),e&&z.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=()=>F.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!J)return;const e=e=>{const t=e.target;if(R.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()}},[J,re]);const ie=v(()=>{const e=oe(),t=z.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:W,side:j});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=W},[W,j]);p(()=>{J&&ie()}),b(()=>{if(J)return u(()=>z.current,ie)},[J,ie]),b(()=>{if(!J)return;const t=F.current,r=e(L[M])?t?.querySelector(`[data-dropdown-index="${M}"]`):null;(r??t)?.focus({preventScroll:!0})},[J,M]),b(()=>{if(J)return f(e=>"Escape"===e.key&&(re(!0),!0),()=>O.current)},[J,re]),n(O,J&&V);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{P(le(e)),q(!0),te.current||(te.current=!0,ae.current=e,B?.(!0))};p(()=>{const e=ae.current;if(!J||!e)return;ae.current=null;const t=le(e);t!==M&&P(t)});const de=t(L,Y),ce="function"==typeof G?G({close:()=>re(!0)}):G,ue={...k.test(C)?{}:{zIndex:s.popup},minWidth:E};/* @__PURE__ */
|
|
2
|
-
return y("div",{ref:R,className:`relative inline-flex ${S}`.trim(),children:[
|
|
3
|
-
/* @__PURE__ */x("button",{ref:z,id:_,type:"button","aria-haspopup":"menu","aria-expanded":J,"aria-controls":J?Y:void 0,"aria-label":K,"aria-describedby":N,"aria-disabled":T||void 0,disabled:U,onClick:()=>{T||(J?re(!1):se("first"))},onKeyDown:e=>{T||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),se("first")):"ArrowUp"===e.key&&(e.preventDefault(),se("last")))},className:A??"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 "+(K?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:D}),J&&
|
|
4
|
-
/* @__PURE__ */x(i,{portal:!0,className:C,style:ue,children:/* @__PURE__ */y("div",{ref:O,children:[
|
|
5
|
-
/* @__PURE__ */x("div",{ref:F,id:Y,role:"menu","aria-orientation":"vertical","aria-label":K,"aria-labelledby":K?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(),P(ne(M+1,1));else if("ArrowUp"===t.key)t.preventDefault(),P(ne(M-1,-1));else if("Home"===t.key)t.preventDefault(),P(ne(0,1));else if("End"===t.key)t.preventDefault(),P(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&Q.current?o(Q.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=F.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 P(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||Q.current?.contains(document.activeElement)||P(e)}}),linkAs:H})}),V&&/* @__PURE__ */y("div",{ref:Q,role:"group","aria-label":I,"data-dropdown-footer":"",onKeyDown:e=>{const t=Q.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=F.current?.querySelector(`[data-dropdown-index="${M}"]`);return void(t??F.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-QYJQAY6C.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as t}from"./chunk-TLRCTNUF.js";import{CartesianPlot as o}from"./chunk-4CPE5NBC.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 C=e().charts,L=i(),N=d??(t=>Number.isInteger(t)?m(t,L):n(t,1,L)),v=x??(t=>m(t,L)),w=g??C.countAxis,A=k??C.distribution,M=h??r(c??[],s),P=a(0,b,f),R=M.map(t=>N(t.from)),T=M.map(t=>t.count);/* @__PURE__ */
|
|
2
|
-
return l(o,{labels:R,values:T,height:u,width:p,bandPadding:0,xTickAnchor:"start",formatValue:v,yAxisLabel:w,className:y,emptyLabel:j,ariaLabel:C.histogram(A,M.length,(c??[]).length),tooltip:o=>/* @__PURE__ */l(t,{title:`${N(M[o].from)} – ${N(M[o].to)}`,rows:[{key:"count",label:C.observations,color:P,value:v(M[o].count)}]}),children:({x:t,y:o,bottom:r,active:a})=>/* @__PURE__ */l("g",{children:M.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:P,fillOpacity:null===a||a===i?.85:.42},i))})})}export{c as HistogramChart};
|