efficient-shell 10.15.0 → 10.16.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/README.md +14 -0
- package/dist/{Browser-WR4GMYE7.js → Browser-RI5X7GMK.js} +14 -14
- package/dist/Calculator-Y566OMJZ.js +29 -0
- package/dist/{CurrencyConverter-HEAAQX23.js → CurrencyConverter-2GUEE7ZR.js} +6 -6
- package/dist/{Documents-NSPKXCTF.js → Documents-GI346UL5.js} +12 -12
- package/dist/{Files-5HAUE2PR.js → Files-UA23KXN7.js} +54 -54
- package/dist/{Notepad-5LSFAYXO.js → Notepad-HRZKLHO3.js} +9 -9
- package/dist/{PomodoroTimer-5V32QOCZ.js → PomodoroTimer-QYCTTTPZ.js} +68 -68
- package/dist/{Preview-PDVZZRSK.js → Preview-LSGN5GN7.js} +29 -29
- package/dist/Sidebar-2P26444H.js +44 -0
- package/dist/{Spreadsheet-K4IAI3A2.js → Spreadsheet-7JBZY6KJ.js} +9 -9
- package/dist/{Stock-AOCHAKUF.js → Stock-ZVQT25IE.js} +3 -3
- package/dist/{Weather-F2QHTG32.js → Weather-RAUDLLVU.js} +17 -17
- package/dist/{WorldClock-G72577HU.js → WorldClock-2XBWZ6SZ.js} +6 -6
- package/dist/ai/index.d.ts +76 -1
- package/dist/ai/index.js +70 -52
- package/dist/ai.css +1 -1
- 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/ChartTooltip.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.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-4U57ANZF.js → chunk-2SY76NFO.js} +1 -1
- package/dist/{chunk-N2RHM432.js → chunk-2VGQS6CW.js} +1 -1
- package/dist/{chunk-SQCUN2DX.js → chunk-34URULVW.js} +1 -1
- package/dist/{chunk-5LCDCO46.js → chunk-3ELLBQPS.js} +1 -1
- package/dist/{chunk-NZCSLS4O.js → chunk-3LDXURVU.js} +3 -3
- package/dist/{chunk-NZQCDFDG.js → chunk-3NW5LD7D.js} +3 -3
- package/dist/{chunk-N3YBOXOF.js → chunk-4G2C6J4I.js} +1 -1
- package/dist/{chunk-FQIA5BTN.js → chunk-4QJOEHM6.js} +7 -7
- package/dist/{chunk-V2MIQ4GJ.js → chunk-4UKGVLFP.js} +2 -2
- package/dist/{chunk-FRVNDEV2.js → chunk-4WEFGKJL.js} +8 -8
- package/dist/{chunk-LVBO2OMQ.js → chunk-57HN6MPC.js} +2 -2
- package/dist/{chunk-2RAOWHHM.js → chunk-5UYZ75F3.js} +12 -12
- package/dist/{chunk-ZL5OSF26.js → chunk-6AS5PHHK.js} +18 -18
- package/dist/{chunk-Q3IR5SKD.js → chunk-6XBWM453.js} +1 -1
- package/dist/{chunk-CDA2VXBN.js → chunk-74OUAR6L.js} +6 -6
- package/dist/{chunk-ARCQYF7G.js → chunk-7HLC352T.js} +2 -2
- package/dist/{chunk-B25RVAVS.js → chunk-7HTRLRVO.js} +64 -64
- package/dist/{chunk-G4JTO5PB.js → chunk-7JGR7WPD.js} +1 -1
- package/dist/{chunk-RFEET2LS.js → chunk-7NBSBGLX.js} +1 -1
- package/dist/{chunk-S52GQQVB.js → chunk-7TNAOZZ2.js} +1 -1
- package/dist/{chunk-AJFR35CO.js → chunk-7UTPXU6K.js} +4 -4
- package/dist/{chunk-NBB2RKDH.js → chunk-7X5FABQS.js} +5 -5
- package/dist/chunk-7XYTJPWW.js +29 -0
- package/dist/{chunk-IC7BEFE3.js → chunk-7ZP64SC7.js} +1 -1
- package/dist/{chunk-YLGQ6ACR.js → chunk-AJO72CPB.js} +1 -1
- package/dist/{chunk-4XS32UWF.js → chunk-AOK3BHRT.js} +4 -4
- package/dist/{chunk-SSM3EN7G.js → chunk-B7UCXROE.js} +1 -1
- package/dist/chunk-BNJWZAQE.js +12 -0
- package/dist/{chunk-HL3DJTIC.js → chunk-CBEKJTXU.js} +7 -7
- package/dist/{chunk-NWURIQI3.js → chunk-CKKUFDZ3.js} +3 -3
- package/dist/chunk-COJYPNKF.js +2 -0
- package/dist/{chunk-ZLSUQAD3.js → chunk-CPZ42W2B.js} +1 -1
- package/dist/{chunk-ZL7O4KGQ.js → chunk-CQV3VSI2.js} +1 -1
- package/dist/{chunk-5LXT3IUL.js → chunk-D4I3U7UE.js} +1 -1
- package/dist/{chunk-7PSIPTOE.js → chunk-D7F442OZ.js} +1 -1
- package/dist/chunk-DESWIPOZ.js +3 -0
- package/dist/{chunk-KJCTXWF7.js → chunk-DRDYZ633.js} +2 -2
- package/dist/{chunk-FJYTYW6M.js → chunk-DWR7MYQU.js} +5 -5
- package/dist/{chunk-EYEB3J77.js → chunk-E3753CWP.js} +5 -5
- package/dist/chunk-EU3JZGV2.js +14 -0
- package/dist/{chunk-55W5TTKS.js → chunk-FEQDZTZ7.js} +6 -6
- package/dist/{chunk-LWEWURFT.js → chunk-FWVC4A2O.js} +13 -13
- package/dist/{chunk-WZ5QSSUM.js → chunk-G4GVLK44.js} +6 -6
- package/dist/{chunk-5N5AAYQV.js → chunk-GISDIVFK.js} +1 -1
- package/dist/{chunk-N4REWGMM.js → chunk-GPJO34QP.js} +8 -8
- package/dist/{chunk-FFZREKEF.js → chunk-H32EQG5Z.js} +9 -9
- package/dist/{chunk-PUBJ5YHQ.js → chunk-I2XGPTCN.js} +1 -1
- package/dist/chunk-I4VIEGCX.js +2 -0
- package/dist/{chunk-ZZTCYEQ4.js → chunk-IKNG7EFQ.js} +7 -7
- package/dist/{chunk-OSVY6SUO.js → chunk-ISJPW2FZ.js} +5 -5
- package/dist/{chunk-POQ4ETLL.js → chunk-JGTGQGHY.js} +1 -1
- package/dist/{chunk-RSS2ALHH.js → chunk-JJW43QPS.js} +5 -5
- package/dist/chunk-JSGQWVYH.js +7 -0
- package/dist/{chunk-HRPXJ4EI.js → chunk-K4ANB6AF.js} +1 -1
- package/dist/{chunk-CHAWFMV4.js → chunk-KTA77U3P.js} +4 -4
- package/dist/{chunk-OAT7OEWP.js → chunk-KTVXPGGB.js} +8 -8
- package/dist/{chunk-CFAELIKH.js → chunk-L4IW77TD.js} +6 -6
- package/dist/{chunk-ZHPHNQKM.js → chunk-LCJRTJXT.js} +7 -7
- package/dist/{chunk-FUVVO6YP.js → chunk-LDE5IV2M.js} +1 -1
- package/dist/{chunk-TXNCDDB4.js → chunk-LO5T2K4B.js} +3 -3
- package/dist/chunk-LU6NA4RU.js +5 -0
- package/dist/{chunk-ZI6SMZJ4.js → chunk-MHB52H2Y.js} +11 -11
- package/dist/{chunk-FGJOGBGZ.js → chunk-MNSKGMVZ.js} +8 -8
- package/dist/{chunk-AJFWBEIG.js → chunk-MTEFYFUO.js} +9 -9
- package/dist/{chunk-S5SRXI4V.js → chunk-MVZRZTQP.js} +1 -1
- package/dist/{chunk-MMQ6ETRD.js → chunk-N67QX3WW.js} +2 -2
- package/dist/{chunk-M5LR7ZZX.js → chunk-O6JJIR4H.js} +1 -1
- package/dist/{chunk-G7QK7WAK.js → chunk-PCFBDXLN.js} +1 -1
- package/dist/chunk-PJQGYKN6.js +11 -0
- package/dist/chunk-PN5FQVMB.js +7 -0
- package/dist/chunk-PN65IIYN.js +8 -0
- package/dist/chunk-PUF75SMJ.js +1 -0
- package/dist/{chunk-AJVUND5A.js → chunk-PVZGSCCB.js} +6 -6
- package/dist/{chunk-B37JVKW5.js → chunk-PYAJCN2Q.js} +1 -1
- package/dist/chunk-Q6YNMNUH.js +6 -0
- package/dist/{chunk-YFMZKTJC.js → chunk-QDQ347RL.js} +1 -1
- package/dist/{chunk-4VTJEKHX.js → chunk-QHOBK35Y.js} +1 -1
- package/dist/{chunk-66XPG5G3.js → chunk-QYSEYYV7.js} +1 -1
- package/dist/chunk-RCPFUDPS.js +4 -0
- package/dist/{chunk-25M7CYCR.js → chunk-RLJHRDDW.js} +8 -8
- package/dist/{chunk-6BB6A5OB.js → chunk-RPYFOQM2.js} +5 -5
- package/dist/chunk-RRUHQLUY.js +14 -0
- package/dist/{chunk-ESYYKGN4.js → chunk-S6FBMSFU.js} +2 -2
- package/dist/{chunk-5FRFSPQ2.js → chunk-SDQIXE5M.js} +8 -8
- package/dist/{chunk-PB3OC4BO.js → chunk-SG4LO2AN.js} +8 -8
- package/dist/{chunk-U2WCV56F.js → chunk-SHKBDFSE.js} +1 -1
- package/dist/{chunk-ZMRGHVKS.js → chunk-TKJBZIHT.js} +1 -1
- package/dist/{chunk-EHGGSUXA.js → chunk-TM33D3CE.js} +1 -1
- package/dist/chunk-TMNAHOJ7.js +9 -0
- package/dist/{chunk-GKIU55T5.js → chunk-TVH7IZQ4.js} +2 -2
- package/dist/{chunk-EQZZ4V5X.js → chunk-TXDA7TTP.js} +1 -1
- package/dist/{chunk-SOGQZVPJ.js → chunk-UBMY23AG.js} +5 -5
- package/dist/{chunk-KKOADH55.js → chunk-UDRMZ22J.js} +1 -1
- package/dist/{chunk-36R3R3IB.js → chunk-ULXCDM7Y.js} +4 -4
- package/dist/{chunk-MCYFUIXH.js → chunk-UWIZX3RK.js} +1 -1
- package/dist/{chunk-SP2AUVIU.js → chunk-UYRITNQW.js} +3 -3
- package/dist/{chunk-OET2Q7P6.js → chunk-VNACNNCJ.js} +3 -3
- package/dist/{chunk-UWIFXNH6.js → chunk-VTFZ6W2D.js} +3 -3
- package/dist/chunk-W35N7SL3.js +8 -0
- package/dist/{chunk-UPCLAEKC.js → chunk-W3OWPBQL.js} +2 -2
- package/dist/chunk-W4OBVKN4.js +1 -0
- package/dist/chunk-W6URVLQF.js +20 -0
- package/dist/{chunk-EK5WJQTR.js → chunk-WB4P4QE2.js} +1 -1
- package/dist/{chunk-XPPLCLYK.js → chunk-WINNA7LS.js} +1 -1
- package/dist/chunk-WMEYNKXZ.js +22 -0
- package/dist/{chunk-A267MPGS.js → chunk-X6BFVDB4.js} +2 -2
- package/dist/{chunk-5JU53T3U.js → chunk-XZGGJHJC.js} +8 -8
- package/dist/chunk-Y3R267FV.js +15 -0
- package/dist/{chunk-XJUREXYW.js → chunk-YOSUCCHG.js} +3 -3
- package/dist/chunk-ZZVE64OI.js +2 -0
- package/dist/data/DataTable.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.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/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconButton.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/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/Select.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/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +247 -247
- package/dist/map/index.js +7 -7
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/FloatingBar.js +1 -1
- package/dist/shell/GlobalSearch.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/Popover.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.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/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.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/ErrorBoundary.d.ts +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-MV5JVQBS.js +0 -29
- package/dist/Sidebar-E3VDFBF6.js +0 -44
- package/dist/chunk-3GHTOSJP.js +0 -14
- package/dist/chunk-4AQ67NP2.js +0 -15
- package/dist/chunk-6WSH6D5N.js +0 -29
- package/dist/chunk-7LQGPMRP.js +0 -3
- package/dist/chunk-CNLYFW47.js +0 -9
- package/dist/chunk-EFU4Z66K.js +0 -8
- package/dist/chunk-FX6DBXXD.js +0 -1
- package/dist/chunk-HXNMRJQ4.js +0 -2
- package/dist/chunk-IFA2EOAF.js +0 -4
- package/dist/chunk-KMEERBZV.js +0 -2
- package/dist/chunk-KORKSPHQ.js +0 -6
- package/dist/chunk-LWWMRL2Y.js +0 -5
- package/dist/chunk-NLGMJGD6.js +0 -14
- package/dist/chunk-SCYL5V5X.js +0 -20
- package/dist/chunk-SM7IDX7Y.js +0 -1
- package/dist/chunk-TIPU74XW.js +0 -22
- package/dist/chunk-UUKTYAWY.js +0 -7
- package/dist/chunk-V6F42DX3.js +0 -11
- package/dist/chunk-VWEG2WM4.js +0 -12
- package/dist/chunk-XIB72X74.js +0 -2
- package/dist/chunk-ZE5TNYWX.js +0 -7
- package/dist/chunk-ZO244TWH.js +0 -8
- /package/dist/{chunk-ID6WFAXW.js → chunk-N3TOHWFF.js} +0 -0
package/dist/chunk-NLGMJGD6.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{ChartTooltip as t}from"./chunk-WZ5QSSUM.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as a,CHART_INK as n,STATUS_VARS as r}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as i}from"./chunk-4PAWQEXM.js";import{formatPercent as u,formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as c,useState as m,useRef as s}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";function x({stages:x,shape:v="funnel",height:p,width:$,gap:g=4,minBandWidth:M=0,formatValue:y,color:b,className:k,emptyLabel:A}){const S=o().charts,N=i(),L=y??(e=>h(e,N)),j=A??S.noStages,z=c(),[W,V]=m(null),{highlighted:Z}=e(),w=s(null),C=l(w,560),E=$??C;if(0===x.length)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const F=b??a(0),H=p??54*x.length,Q=Math.max(...x.map(e=>e.value),1),U="bars"===v,B=U?Math.round(Math.min(132,Math.max(80,.24*E))):Math.round(Math.min(168,Math.max(104,.38*E))),P=e=>{const t=x[e-1]?.value;return null!=t&&t>0?100*(1-x[e].value/t):null},R=e=>{const t=P(e);return{count:L(x[e].value),drop:null!=t?`−${u(t,1,N)}`:""}},X=U?Math.ceil(Math.max(...x.map((e,t)=>{const{count:l,drop:a}=R(t);return.62*(l.length+(a?a.length+1:0))*12}))+16):0,Y=E-B-X,O=Math.max(U?2:0,Math.min(M,Y)),T=e=>Math.max(O,Y*Math.max(0,e/Q)),q=e=>T(e)/2,D=B+Y/2,G=e=>46+e/Math.max(1,x.length-1)*54,I=e=>`color-mix(in oklab, ${F} ${G(e).toFixed(0)}%, ${n.surface})`,J=e=>G(e)>=55?n.surface:n.label,K=(e,t)=>null!==W?W!==e:null!==Z&&Z!==t,_=null!==W?x[W]:void 0;/* @__PURE__ */
|
|
2
|
-
return f("div",{className:`relative ${k??""}`,ref:w,children:[
|
|
3
|
-
/* @__PURE__ */f("svg",{width:"100%",height:H,viewBox:`0 0 ${E} ${H}`,role:"img","aria-labelledby":z,onMouseLeave:()=>V(null),children:[
|
|
4
|
-
/* @__PURE__ */d("title",{id:z,children:S.funnel(x.length,L(x[0].value),L(x[x.length-1].value))}),x.map((e,t)=>{const l=t*H/x.length+g/2,a=(t+1)*H/x.length-g/2,r=(l+a)/2,o=u(e.value/(x[0].value||1)*100,0,N),i=.62*o.length*12+12;if(U){const u=B,h=u+T(e.value),{count:c,drop:m}=R(t);/* @__PURE__ */
|
|
5
|
-
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>V(t),children:[
|
|
6
|
-
/* @__PURE__ */d("path",{d:`M${u},${l} L${h},${l} L${h},${a} L${u},${a} Z`,fill:I(t)}),
|
|
7
|
-
/* @__PURE__ */d("text",{x:B-12,y:r+4,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),h-u>=i&&/* @__PURE__ */d("text",{x:u+8,y:r+4,textAnchor:"start",fontSize:12,fontWeight:600,fill:J(t),style:{fontVariantNumeric:"tabular-nums"},children:o}),
|
|
8
|
-
/* @__PURE__ */f("text",{"data-funnel-value":"true",x:h+8,y:r+4,textAnchor:"start",fontSize:12,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:[
|
|
9
|
-
/* @__PURE__ */d("tspan",{fontWeight:600,children:c}),m&&/* @__PURE__ */d("tspan",{fill:n.muted,children:` ${m}`})]})]},e.key)}const h=q(e.value),c="cone"===v?q(x[t+1]?.value??e.value):h,m=P(t),s=2*Math.min(h,c)>=i;/* @__PURE__ */
|
|
10
|
-
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>V(t),children:[
|
|
11
|
-
/* @__PURE__ */d("path",{d:`M${D-h},${l} L${D+h},${l} L${D+c},${a} L${D-c},${a} Z`,fill:I(t)}),
|
|
12
|
-
/* @__PURE__ */d("text",{x:B-14,y:r-2,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),
|
|
13
|
-
/* @__PURE__ */f("text",{x:B-14,y:r+14,textAnchor:"end",fontSize:11,fill:n.muted,style:{fontVariantNumeric:"tabular-nums"},children:[L(e.value),null!=m?` · −${u(m,1,N)}`:""]}),
|
|
14
|
-
/* @__PURE__ */d("text",{x:s?D:D+Math.max(h,c)+6,y:r+4,textAnchor:s?"middle":"start",fontSize:12,fontWeight:600,fill:s?J(t):n.label,style:{fontVariantNumeric:"tabular-nums"},children:o})]},e.key)})]}),_&&null!==W&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(t,{title:_.label,rows:[{key:"value",label:S.count,color:I(W),value:L(_.value)},{key:"share",label:S.ofFirstStage,color:n.muted,value:u(_.value/(x[0].value||1)*100,0,N)},...W>0&&x[W-1].value>0?[{key:"drop",label:S.droppedHere,color:r.critical,value:`−${u(100*(1-_.value/x[W-1].value),1,N)}`}]:[]]})})]})}export{x as FunnelChart};
|
package/dist/chunk-SCYL5V5X.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{Checkbox_default as e}from"./chunk-CGZBDI6C.js";import{Pagination as t}from"./chunk-ULAGXDOL.js";import{TH_ONE_LINE as r,OneLineLabel as o}from"./chunk-S5SRXI4V.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{SpinnerRing as l}from"./chunk-R2VKEMZH.js";import{useShellStrings as s}from"./chunk-4PAWQEXM.js";import{useState as i,useRef as a}from"react";import{jsxs as c,Fragment as d,jsx as h}from"react/jsx-runtime";function u(e){const t={};if(!e)return t;for(const[r,o]of Object.entries(e))!r.startsWith("data-")||"string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o||(t[r]=o);return t}var m=e=>Array.isArray(e.columns),f=e=>"wide"===e.only?"rosh-dt-only-wide":"stacked"===e.only?"rosh-dt-only-stacked":"",g="rosh-dt-row-link rosh-focus-ring underline-offset-4 hover:underline",p={sm:"px-2 py-2",md:"px-3 py-2"},y={left:"text-left",right:"text-right",center:"text-center"};function b({direction:e}){/* @__PURE__ */
|
|
2
|
-
return c("span",{className:"ml-1 inline-flex flex-col leading-none","aria-hidden":"true",children:[
|
|
3
|
-
/* @__PURE__ */h("svg",{className:"h-2 w-2 "+("asc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 0L8 5H0z"})}),
|
|
4
|
-
/* @__PURE__ */h("svg",{className:"h-2 w-2 "+("desc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 5L0 0h8z"})})]})}function w(e,t=!1){const r=t?"":" whitespace-nowrap";return e.code?`font-mono${r}`:e.numeric?`tabular-nums${r}`:""}function x({columns:x,data:v,rowKey:k,sort:N=null,onSortChange:C,pagination:j,caption:M,loading:S=!1,bordered:B=!1,size:$="md",minWidth:z,rowClassName:H,onRow:I,rowHref:T,onRowPress:A,linkAs:L,emptyText:D,selection:E,footer:O,virtualized:P,stackOnNarrow:R=!1,stackBelow:F,className:W=""}){const K=s(),X=D??K.table.empty,G=(e,t)=>"function"==typeof k?k(e,t):String(e[k]),V=R&&!P,Z=V?x:x.flatMap(e=>{if(!m(e))return"stacked"===e.only?[]:[e];const t=e.columns.filter(e=>"stacked"!==e.only);return t.length?[{...e,columns:t}]:[]}),J=e=>V?{role:e}:{},Q=(e,t)=>(t??("string"==typeof e||"number"==typeof e?String(e):"")).trim()||void 0,[U,q]=i(0),Y=P?.overscan??6,_=P?e=>{const t=Math.max(0,Math.floor(e.currentTarget.scrollTop/P.rowHeight)-Y);q(e=>e===t?e:t)}:void 0,ee=P?Math.ceil(P.height/P.rowHeight)+2*Y:v.length,te=P?Math.min(U,Math.max(0,v.length-ee)):0,re=Math.min(v.length,te+ee),oe=P?te*P.rowHeight:0,ne=P?(v.length-re)*P.rowHeight:0,le=a(null),[se,ie]=i(0);n(()=>{if(!P)return;const e=le.current?.offsetHeight??0;ie(t=>t===e?t:e)});const ae=e=>e.sortField??e.key,ce=e=>N&&N.field===ae(e)?N.direction:null,de=Z.flatMap(e=>m(e)?e.columns:[e]),he=Z.some(m),ue=/* @__PURE__ */new Map;if(V)for(const e of Z)if(m(e))for(const t of e.columns)ue.set(t,Q(e.title,e.label));const me=e=>{const t=Q(e.title,e.label),r=ue.get(e);return t&&r?`${r} · ${t}`:t},fe=new Set(E?.selected??[]),ge=E?v.map((e,t)=>G(e,t)):[],pe=ge.length>0&&ge.every(e=>fe.has(e)),ye=ge.some(e=>fe.has(e)),be=E?36:0,we=de.length+(E?1:0),xe=de.some(e=>"left"===e.fixed),ve=V&&!E&&de.some(e=>e.cardCorner),ke=L??"a",Ne=`${p[$]} ${"sm"===$?"text-xs":"text-sm"}`,Ce=(e,t)=>e.ellipsis?/* @__PURE__ */h("span",{className:"block w-0 min-w-full",children:t}):t,je=(e,t,n,l=0)=>{const s=ce(e),i=y[e.align??(e.numeric?"right":"left")],a="left"===e.fixed,d=!(!e.sortable||!C);/* @__PURE__ */
|
|
5
|
-
return h("th",{scope:"col",...J("columnheader"),rowSpan:n>1?n:void 0,"aria-sort":"asc"===s?"ascending":"desc"===s?"descending":d?"none":void 0,style:{width:e.width,...a?{left:(Se[t]??0)+be}:{},...P?{top:l}:{}},className:[Ne,i,r,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs",a?P?"sticky z-20 bg-gray-50":"sticky z-10 bg-gray-50":P?"sticky z-10 bg-gray-50":"",V&&d?"rosh-dt-sort":"",V?f(e):"",e.headerClassName??""].filter(Boolean).join(" "),children:Ce(e,d?/* @__PURE__ */c("button",{type:"button",onClick:()=>(e=>{if(!C)return;const t=ae(e),r=ce(e),o=e.sortFirst??"asc";C(null===r?{field:t,direction:o}:r===o?{field:t,direction:"asc"===o?"desc":"asc"}:null)})(e),"data-group":V?ue.get(e):void 0,className:`inline-flex max-w-full items-center font-semibold uppercase tracking-wide hover:text-ink ${i}`,children:[
|
|
6
|
-
/* @__PURE__ */h(o,{children:e.title}),
|
|
7
|
-
/* @__PURE__ */h(b,{direction:s})]}):/* @__PURE__ */h(o,{children:e.title}))},e.key)};let Me=0;const Se=de.map(e=>{if("left"!==e.fixed)return null;const t=Me;return Me+=e.width??0,t}),Be=/* @__PURE__ */c(d,{children:[
|
|
8
|
-
/* @__PURE__ */c("div",{onScroll:_,style:P?{maxHeight:P.height}:void 0,className:`relative overflow-x-auto ${P?"overflow-y-auto":""} ${B?"rounded-lg border border-gray-200":""}${V?" rosh-dt-scroll":""}`.trim(),children:[S&&
|
|
9
|
-
/* @__PURE__ */c("div",{className:"absolute inset-0 z-20 flex items-start justify-center bg-white/60 pt-8",role:"status","aria-live":"polite",children:[
|
|
10
|
-
/* @__PURE__ */h(l,{className:"h-6 w-6"}),
|
|
11
|
-
/* @__PURE__ */h("span",{className:"sr-only",children:K.table.loading})]}),
|
|
12
|
-
/* @__PURE__ */c("table",{...J("table"),className:(V?"rosh-dt-table ":"")+"w-full border-collapse tabular-nums",style:z?{minWidth:z}:void 0,children:[M&&/* @__PURE__ */h("caption",{className:"sr-only",children:M}),
|
|
13
|
-
/* @__PURE__ */c("thead",{...J("rowgroup"),className:V?"rosh-dt-head":void 0,children:[
|
|
14
|
-
/* @__PURE__ */c("tr",{ref:le,...J("row"),className:"border-b border-gray-200 bg-gray-50",children:[E&&/* @__PURE__ */h("th",{scope:"col",...J("columnheader"),rowSpan:he?2:void 0,style:{width:36,...P?{top:0}:{}},className:[Ne,r,xe||P?"sticky z-20 bg-gray-50":"",xe?"left-0":"",V?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(e,{"aria-label":K.table.selectAll,checked:pe,indeterminate:ye&&!pe,onChange:()=>{if(!E)return;const e=new Set(ge);E.onChange(pe?E.selected.filter(t=>!e.has(t)):[...E.selected,...ge.filter(e=>!fe.has(e))])}})}),Z.map((e,t)=>m(e)?/* @__PURE__ */h("th",{scope:"colgroup",...J("columnheader"),colSpan:e.columns.length,style:P?{top:0}:void 0,className:[Ne,"text-center",r,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs","border-b border-gray-200",P?"sticky z-10 bg-gray-50":"",e.headerClassName??""].filter(Boolean).join(" "),children:/* @__PURE__ */h(o,{children:e.title})},e.key??`group-${t}`):je(e,de.indexOf(e),he?2:1))]}),he&&/* @__PURE__ */h("tr",{...J("row"),className:"border-b border-gray-200 bg-gray-50",children:Z.flatMap(e=>m(e)?e.columns:[]).map(e=>je(e,de.indexOf(e),1,se))})]}),
|
|
15
|
-
/* @__PURE__ */h("tbody",{...J("rowgroup"),className:V?"rosh-dt-body":void 0,children:0!==v.length||S?/* @__PURE__ */c(d,{children:[oe>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:oe,padding:0,border:0}})}),v.slice(te,re).map((t,r)=>{const o=te+r,n=I?.(t,o),l=!!n?.current,s=T?.(t,o),i=void 0===s&&A?()=>A(t,o):void 0,a=void 0!==s||void 0!==i;let d=!1;const m=(e,t)=>{if(d=!0,!a)return e;const r=[g,i?"cursor-pointer text-left":"",t?.className??""].filter(Boolean).join(" "),o=l?"true":void 0;return void 0!==s?/* @__PURE__ */h(ke,{href:s,className:r,"aria-current":o,children:e}):/* @__PURE__ */h("button",{type:"button",onClick:i,className:r,"aria-current":o,children:e})},p=de.map(e=>e.render?e.render(t,o,m):e.dataIndex?t[e.dataIndex]:null);if(a&&!d){const e=de.findIndex(e=>"stacked"!==e.only&&!e.cardCorner),t=de.findIndex(e=>"wide"!==e.only&&!e.cardCorner);for(const r of/* @__PURE__ */new Set([e,t]))r>=0&&(p[r]=m(p[r]))}const b=e=>e?t=>{t.currentTarget.contains(t.relatedTarget)||e()}:void 0;/* @__PURE__ */
|
|
16
|
-
return c("tr",{...u(n),...J("row"),style:P?{height:P.rowHeight}:void 0,onClick:n?.onClick,onMouseEnter:n?.onMouseEnter,onMouseLeave:n?.onMouseLeave,onFocus:b(n?.onFocus),onBlur:b(n?.onBlur),"aria-current":l&&!a?"true":void 0,...n?.onClick?{tabIndex:0,onKeyDown:e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.onClick?.()))}}:{},className:[V?E?"rosh-dt-row rosh-dt-row-select":"rosh-dt-row":"",V&&ve?"rosh-dt-row-corner":"","border-b border-gray-100 last:border-b-0",n?.onClick?"cursor-pointer hover:bg-gray-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"",a?"rosh-dt-linked hover:bg-gray-50":"",l?"rosh-dt-current":"",H?.(t,o)??"",n?.className??""].filter(Boolean).join(" "),children:[E&&(()=>{const r=G(t,o);/* @__PURE__ */
|
|
17
|
-
return h("td",{...J("cell"),style:{width:36},onClick:e=>e.stopPropagation(),className:[Ne,xe?"sticky left-0 z-10 bg-white":"",V?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(e,{"aria-label":K.table.selectRow,checked:fe.has(r),onChange:()=>(e=>{E&&E.onChange(fe.has(e)?E.selected.filter(t=>t!==e):[...E.selected,e])})(r)})})})(),de.map((e,t)=>{const r="left"===e.fixed,o=p[t],n=ve&&!!e.cardCorner,l=V&&!n&&"wide"!==e.only;/* @__PURE__ */
|
|
18
|
-
return h("td",{...J("cell"),"data-label":l?me(e):void 0,style:r?{left:(Se[t]??0)+be}:void 0,className:[l?e.ellipsis?"rosh-dt-cell rosh-dt-clip":"rosh-dt-cell":"",n?"rosh-dt-corner":"",V?f(e):"",Ne,y[e.align??(e.numeric?"right":"left")],V?"":w(e),"text-ink-strongest",e.ellipsis?"max-w-0 truncate":"",r?"sticky z-10 bg-white":"",e.className??""].filter(Boolean).join(" "),children:V?
|
|
19
|
-
/* @__PURE__ */h("span",{className:["rosh-dt-value",w(e,!0)].filter(Boolean).join(" "),children:o}):o},e.key)})]},G(t,o))}),ne>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:ne,padding:0,border:0}})})]}):/* @__PURE__ */h("tr",{...J("row"),className:V?"rosh-dt-empty":void 0,children:/* @__PURE__ */h("td",{...J("cell"),colSpan:we,className:`${Ne} py-10 text-center text-gray-500`,children:X})})})]}),O]}),j&&j.pageCount>1&&/* @__PURE__ */h("div",{className:V?"rosh-dt-pager mt-3 flex justify-end":"mt-3 flex justify-end",children:/* @__PURE__ */h(t,{page:j.page,pageCount:j.pageCount,onPageChange:j.onPageChange})})]});/* @__PURE__ */
|
|
20
|
-
return h("div",V?void 0!==F&&F>0&&40!==F?{className:`rosh-dt-at ${W}`.trim(),children:/* @__PURE__ */h("div",{className:"rosh-dt-stack",style:{width:40/F*100+"%"},children:/* @__PURE__ */h("div",{className:"rosh-dt-fit",style:{width:F/40*100+"%"},children:Be})})}:{className:`rosh-dt-stack ${W}`.trim(),children:Be}:{className:W,children:Be})}export{x as DataTable};
|
package/dist/chunk-SM7IDX7Y.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="10.15.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-TIPU74XW.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{stepPath as t,curvePath as e,areaBetween as a,areaFrom as r}from"./chunk-VFC6QUEN.js";import{ChartDefs as o,MOTION as l,stagger as n,fillFor as i,dashFor as s,maskId as c}from"./chunk-465RRWBY.js";import{ChartSkeleton as d}from"./chunk-M22B3Y5Y.js";import{useHighlight as m,highlightOpacity as h}from"./chunk-CNYAHYE6.js";import{ChartTooltip as u}from"./chunk-WZ5QSSUM.js";import{useDragZoom as f,DragBand as p,ChartZoomSummary as g,tooltipBesideBand as y}from"./chunk-QP4UPCXQ.js";import{pairedAxes as k,niceAxis as x,niceMax as v,linearScale as b,axisGutter as M,bandScale as N,ladderScale as w}from"./chunk-2JWPNR2U.js";import{usePlotWidth as j}from"./chunk-MAFUXCPZ.js";import{ChartBrush as $}from"./chunk-INNIWRVU.js";import{ChartDot as V}from"./chunk-CK2YOGUS.js";import{resolveSeriesColor as W,CHART_INK as z,STATUS_VARS as A}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as S}from"./chunk-TWVUQUUD.js";import{useShellStrings as R,useShellLocale as C}from"./chunk-4PAWQEXM.js";import{formatPercent as E,formatPlain as L}from"./chunk-C3QOHMR6.js";import{useRef as U,useState as D,useId as P,useEffect as I}from"react";import{jsx as T,jsxs as Q}from"react/jsx-runtime";var Y=12,B=16,F=26,O=52,X=t=>"number"==typeof t&&Number.isFinite(t);function Z({series:Z,labels:H,height:K=200,stacked:G=!1,stackMode:J="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:mt=!1,brush:ht=!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=R().charts,Vt=C(),Wt=rt??(t=>L(t,Vt)),zt=ot??Wt,At=jt??$t.noData,St=U(null),Rt=j(St),Ct=Nt??Rt,[Et,Lt]=D(null),[Ut,Dt]=D(null),{highlighted:Pt}=m(),It=P(),Tt=ut??Ut,Qt=f(ht&&Tt?Tt[1]-Tt[0]+1:H.length,pt);if(I(()=>{if(null!==Et)return S(t=>"Escape"===t.key&&(Lt(null),!0))},[Et]),kt)/* @__PURE__ */
|
|
2
|
-
return T("div",{className:wt,ref:St,children:/* @__PURE__ */T(d,{height:K,width:Nt??Rt})});const Yt=H,Bt=ut??Ut??[0,Math.max(0,Yt.length-1)],[Ft,Ot]=Bt,Xt=t=>Qt.slice(ht?t.slice(Ft,Ot+1):t),Zt=lt?Xt(lt):void 0,Ht=Z.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(X)).map(t=>({...t,data:Xt(t.data),pointTones:t.pointTones?Xt(t.pointTones):void 0})),Kt=t=>(ht?Ft:0)+(Qt.view?.[0]??0)+t;if(H=Xt(Yt),0===Ht.length||0===H.length)/* @__PURE__ */
|
|
3
|
-
return T("div",{className:wt,ref:St,children:/* @__PURE__ */T("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:K},children:At})});const Gt=H.map((t,e)=>Ht.reduce((t,a)=>t+(X(a.data[e])?a.data[e]:0),0)),Jt=(t,e)=>Gt[e]>0?t/Gt[e]:null,qt=[];if(G){let t=H.map(()=>0);for(const e of Ht)t=t.map((t,a)=>t+(X(e.data[a])?e.data[a]:0)),qt.push("percent"===J?t.map((t,e)=>Jt(t,e)):[...t])}const _t=!!q&&q.length>0,te=t=>"right"===t.axis,ee=!G&&!_t&&void 0===et&&Ht.some(te)&&Ht.some(t=>!te(t)),ae=gt&&!G?gt:null,re=t=>!!ae&&"column"===t.mode,oe=(ee?Ht.filter(t=>!te(t)):Ht).filter(t=>!re(t)),le=ee?Ht.filter(te).flatMap(t=>t.data.filter(X)):[],ne=G?(qt.at(-1)??[]).filter(X):oe.flatMap(t=>t.data.filter(X)),ie=ee?k([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:G&&"percent"===J||_t||void 0!==et?null:x(G?0:Math.min(0,...ne),Math.max(0,...ne),{intervals:at+1,integer:ne.every(Number.isInteger)}),ce=se?se.lo:0,de=G&&"percent"===J?1:se?se.hi:et??v(Math.max(...ne,0)),me=G&&"percent"===J?t=>E(Math.round(100*t),0,Vt):Wt,he=_t?q:se?se.ticks:b([ce,de],{from:0,to:1}).ticks(at+1),ue=M(he.map(me),O),fe=ie?M(ie.right.ticks.map(Wt),B):B,pe={left:ue,right:Math.max(ue+1,Ct-fe),top:Y,bottom:K-F},ge=N(H.length,{from:pe.left,to:pe.right}),ye=_t?w(q,{from:pe.bottom,to:pe.top}):null,ke=b([ce,de],{from:pe.bottom,to:pe.top}),xe=ke(Math.max(ce,0)),ve=t=>ye?ye(t):ke(t),be=Ht.filter(re),Me=Math.max(0,...H.map((t,e)=>be.reduce((t,a)=>t+Math.max(0,X(a.data[e])?a.data[e]:0),0))),Ne=t=>xe-(Me>0?t/Me:0)*(pe.bottom-pe.top)*(ae??0),we=ie?b([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)})):he.map(t=>({value:t,y:ke(t)})),Ve=t=>e=>{e.preventDefault(),Lt(e=>{const a=(e??0)+t;return Math.min(H.length-1,Math.max(0,a))})},We=Math.max(1,Math.ceil(H.length/Math.max(1,Math.floor(Ct/96))));/* @__PURE__ */
|
|
4
|
-
return Q("div",{className:`relative ${wt??""}`,ref:St,children:[
|
|
5
|
-
/* @__PURE__ */Q("svg",{width:"100%",height:K,viewBox:`0 0 ${Ct} ${K}`,role:"img","aria-label":$t.overIntervals(Ht.map(t=>t.label),H.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Lt(null),onBlur:()=>Lt(null),style:pt?{userSelect:"none",touchAction:"pan-y"}:void 0,onKeyDown:t=>{if(yt&&null!==Et&&("Enter"===t.key||" "===t.key))return t.preventDefault(),void yt(Kt(Et));"ArrowRight"===t.key&&Ve(1)(t),"ArrowLeft"===t.key&&Ve(-1)(t)},children:[
|
|
6
|
-
/* @__PURE__ */T("defs",{children:/* @__PURE__ */T("clipPath",{id:It,children:/* @__PURE__ */T("rect",{x:pe.left,y:pe.top,width:pe.right-pe.left,height:pe.bottom-pe.top})})}),
|
|
7
|
-
/* @__PURE__ */T(o,{id:It,fills:Ht.map((t,e)=>({color:W(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:G?.42:.3,reveal:!!xt&&vt}),$e.map(t=>/* @__PURE__ */T("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:z.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
|
|
8
|
-
/* @__PURE__ */T("line",{x1:pe.left,y1:xe,x2:pe.right,y2:xe,stroke:z.axis,strokeWidth:1,shapeRendering:"crispEdges"}),$e.map(t=>/* @__PURE__ */T("text",{x:pe.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:me(t.value)},`ytick-${t.value}`)),ie&&$e.map((t,e)=>/* @__PURE__ */T("text",{x:pe.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:Wt(ie.right.ticks[e])},`ytick-r-${t.value}`)),nt&&/* @__PURE__ */T("text",{x:12,y:(pe.top+pe.bottom)/2,transform:`rotate(-90 12 ${(pe.top+pe.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:z.label,children:nt}),
|
|
9
|
-
/* @__PURE__ */T("g",{clipPath:`url(#${It})`,mask:xt&&vt?`url(#${c(It)})`:void 0,children:Ht.map((o,c)=>{const d=W(o.slot,o.color,o.tone),m=o.mode??(G?"area":"line"),u=h(o.key,Pt);if("step"===m){const e=H.map((t,e)=>({start:ge(e),end:ge.end(e),value:o.data[e]})).filter(t=>X(t.value)).map(t=>({start:t.start,end:t.end,y:je(o)(t.value)}));/* @__PURE__ */
|
|
10
|
-
return T("path",{d:t(e),fill:"none",stroke:d,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:u??void 0,className:"rosh-viz-mark"},o.key)}const f=H.map((t,e)=>{const a=G?qt[c]?.[e]:o.data[e];return X(a)?[ge.center(e),je(o)(a)]:null}).filter(t=>null!==t);if(0===f.length)return null;if("column"===m){const t=Math.max(1,.62*ge.bandwidth),e="solid"===o.fillVariant,a=je(o);return re(o)?/* @__PURE__ */T("g",{opacity:u??void 0,className:"rosh-viz-mark",children:H.map((a,r)=>{const l=o.data[r];if(!X(l)||l<=0)return null;const n=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Ht[t]?.key)).reduce((t,a)=>t+Math.max(0,X(a.data[e])?a.data[e]:0),0))(c,r),i=Ne(n+l),s=Ne(n)-(n>0?1:0);/* @__PURE__ */
|
|
11
|
-
return T("rect",{x:ge.center(r)-t/2,y:i,width:t,height:Math.max(0,s-i),rx:2,fill:o.pointTones?.[r]?A[o.pointTones[r]]:d,fillOpacity:e?1:.55},r)})},o.key):/* @__PURE__ */T("g",{opacity:u??void 0,className:"rosh-viz-mark",children:H.map((r,i)=>{const s=G?qt[c]?.[i]:o.data[i];if(!X(s))return null;const m=a(s);/* @__PURE__ */
|
|
12
|
-
return T("rect",{x:ge.center(i)-t/2,y:Math.min(m,xe),width:t,height:Math.abs(xe-m),rx:2,fill:d,fillOpacity:e?1:.35,className:xt?l.rise:void 0,style:xt?n(i,26):void 0},i)})},o.key)}const p=e(f,_,tt),g=G&&c>0?H.map((t,e)=>[ge.center(e),ve(qt[c-1]?.[e]??0)-2]):null,y=g?a(p,g):r(p,f,xe);/* @__PURE__ */
|
|
13
|
-
return Q("g",{opacity:u??void 0,className:"rosh-viz-mark",children:[("area"===m||G)&&
|
|
14
|
-
/* @__PURE__ */T("path",{d:y,fill:i(It,c,o.fillVariant??bt,d),stroke:"none"}),
|
|
15
|
-
/* @__PURE__ */T("path",{d:p,fill:"none",stroke:d,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:s(o.stroke??(o.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===o.stroke||o.forecast&&!o.stroke)?l.march:void 0})]},o.key)})}),it?.map((t,e)=>{const a=t.color??A[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
|
|
16
|
-
return Q("g",{children:[
|
|
17
|
-
/* @__PURE__ */T("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */T("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"))&&Ht.map((t,e)=>{if("column"===t.mode)return null;const a=ct??(st?"last":"none"),r=W(t.slot,t.color,t.tone),o=[...t.data].map(X).lastIndexOf(!0),l="all"===a?H.map((t,e)=>e).filter(a=>X(G?qt[e]?.[a]:t.data[a])):o>=0?[o]:[];/* @__PURE__ */
|
|
18
|
-
return Q("g",{children:[l.map(a=>{const l=G?qt[e]?.[a]:t.data[a];return X(l)?/* @__PURE__ */T(V,{cx:ge.center(a),cy:je(t)(l),color:r,variant:dt,pulse:mt&&a===o,title:`${H[a]}: ${t.label} ${Wt(l)}`},a):null}),st&&o>=0&&X(G?qt[e]?.[o]:t.data[o])&&/* @__PURE__ */T("text",{x:ge.center(o)-10,y:je(t)(G?qt[e]?.[o]:t.data[o])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:Wt(G?qt[e]?.[o]:t.data[o])})]},`dots-${t.key}`)}),H.map((t,e)=>e%We===0?/* @__PURE__ */T("text",{x:ge.center(e),y:K-8,textAnchor:"middle",fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Et&&/* @__PURE__ */T("line",{x1:ge.center(Et),y1:pe.top,x2:ge.center(Et),y2:pe.bottom,stroke:z.axis,strokeWidth:1}),ae&&Me>0&&
|
|
19
|
-
/* @__PURE__ */Q("g",{pointerEvents:"none","data-column-strip":"true",children:[
|
|
20
|
-
/* @__PURE__ */T("line",{x1:pe.left,y1:Ne(Me),x2:pe.right,y2:Ne(Me),stroke:z.grid,strokeWidth:1,strokeDasharray:"2 3",shapeRendering:"crispEdges"}),
|
|
21
|
-
/* @__PURE__ */T("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:Wt(Me)})]}),Qt.drag&&/* @__PURE__ */T(p,{x0:ge(Qt.drag[0]),x1:ge(Qt.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),H.map((t,e)=>/* @__PURE__ */T("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>Lt(e),onPointerDown:()=>Qt.press(e),onPointerEnter:()=>Qt.over(e),onPointerUp:Qt.release,onClick:yt?()=>yt(Kt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),Qt.view&&/* @__PURE__ */T(g,{from:Zt?.[0]??H[0],to:Zt?.at(-1)??H[H.length-1],count:H.length,total:G&&"percent"!==J?zt(Gt.reduce((t,e)=>t+e,0)):ae?zt(be.reduce((t,e)=>t+e.data.filter(X).reduce((t,e)=>t+e,0),0)):void 0,rows:(ae?be:Ht).filter(t=>t.data.some(X)).map(t=>{const e=t.data.filter(X),a=W(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=G||"column"===t.mode?zt(r):$t.zoomLevel(zt(r/e.length),zt(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:Qt.clear}),ht&&Yt.length>2&&/* @__PURE__ */T($,{className:"mt-1",labels:Yt,width:Ct,data:Z[0]?.data??[],range:Bt,onRangeChange:t=>{ft?ft(t):Dt(t)}}),null!==Et&&
|
|
22
|
-
/* @__PURE__ */T("div",{className:"pointer-events-none absolute top-2 z-10",style:y(ge.center(Et),ge.bandwidth,Ct),children:/* @__PURE__ */T(u,{title:Zt?.[Et]??H[Et],rows:Ht.map((t,e)=>({key:t.key,label:t.label,color:W(t.slot,t.color,t.tone),value:X(t.data[Et])?G&&"percent"===J?`${E(100*(Jt(t.data[Et],Et)??0),1,Vt)} · ${zt(t.data[Et])}`:zt(t.data[Et]):void 0})),footnote:G&&"percent"===J?$t.inBucket(zt(Gt[Et])):void 0})})]})}export{Z as TimeSeriesChart};
|
package/dist/chunk-UUKTYAWY.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-ZMRGHVKS.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{ChartTooltip as a}from"./chunk-WZ5QSSUM.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-4PAWQEXM.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as u}from"react";import{jsx as s,jsxs as f}from"react/jsx-runtime";function p({items:p,height:d=320,width:v,gap:x=2,radius:g=3,formatValue:y,color:k,className:b,emptyLabel:M}){const j=n().charts,w=m(),N=y??(e=>h(e,w)),$=M??j.nothingToBreakDown,S=c(null),A=r(S),C=v??A,[Z,z]=u(null),{highlighted:B}=l(),E=e(p,C,d);if(0===E.length)/* @__PURE__ */
|
|
2
|
-
return s("div",{className:b,ref:S,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:$})});const F=k??i(0),G=Math.max(...E.map(e=>e.value),1),H=e=>34+e/G*62,P=e=>`color-mix(in oklab, ${F} ${H(e).toFixed(0)}%, ${o.surface})`,Q=e=>H(e)>=55?o.surface:o.label,R=Z??B,U=Z?E.find(e=>e.key===Z):void 0;/* @__PURE__ */
|
|
3
|
-
return f("div",{className:`relative ${b??""}`,ref:S,children:[
|
|
4
|
-
/* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${C} ${d}`,role:"img","aria-label":j.treemap(p.length),onMouseLeave:()=>z(null),children:E.map(e=>{const t=Math.max(0,e.width-x),l=Math.max(0,e.height-x),a=t>6.2*e.label.length+12&&l>30,r=a&&l>44;/* @__PURE__ */
|
|
5
|
-
return f("g",{opacity:R&&R!==e.key?.55:1,onMouseEnter:()=>z(e.key),children:[
|
|
6
|
-
/* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:P(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:Q(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:Q(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),U&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(a,{title:U.label,rows:[{key:"value",label:j.value,color:P(U.value),value:N(U.value)}]})}),
|
|
7
|
-
/* @__PURE__ */s(t,{caption:j.treemap(p.length),head:[j.tableItem,j.value],rows:E.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
|
package/dist/chunk-V6F42DX3.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as e}from"./chunk-WZ5QSSUM.js";import{usePlotWidth as t}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as l,CHART_INK as r}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as n}from"./chunk-TWVUQUUD.js";import{useShellStrings as i,useShellLocale as a}from"./chunk-4PAWQEXM.js";import{formatPlain as o}from"./chunk-C3QOHMR6.js";import{useRef as h,useId as c,useState as s,useEffect as m}from"react";import{jsx as f,jsxs as u}from"react/jsx-runtime";function x({rows:x,columns:d,cells:p,height:M,width:g,color:y,max:v,formatValue:$,label:b,className:k,emptyLabel:w,cellGap:A=2,cellRadius:N=2}){const j=i().charts,U=a(),S=$??(e=>o(e,U)),z=b??j.intensity,C=w??j.noActivity,D=h(null),F=t(D),Q=g??F,R=c(),[E,L]=s(null);if(m(()=>{if(null!==E)return n(e=>"Escape"===e.key&&(L(null),!0))},[E]),0===x.length||0===d.length)/* @__PURE__ */
|
|
2
|
-
return f("div",{className:k,ref:D,children:/* @__PURE__ */f("p",{className:"py-8 text-center text-sm text-gray-500",children:C})});const V=y??l(0),W=v??Math.max(1,...p.flat().filter(Number.isFinite)),Z=96,B=26*x.length,G=M??B+26+26,P=Math.max(2,(Math.max(97,Q)-Z)/d.length),T=e=>{const t=W>0?Math.max(0,Math.min(1,e/W)):0;return`color-mix(in oklab, ${V} ${(8+92*t).toFixed(1)}%, ${r.surface})`};/* @__PURE__ */
|
|
3
|
-
return u("div",{className:`relative ${k??""}`,ref:D,children:[
|
|
4
|
-
/* @__PURE__ */u("svg",{width:"100%",height:G,viewBox:`0 0 ${Q} ${G}`,role:"img","aria-label":j.heatmap(z,x.length,d.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>L(null),onBlur:()=>L(null),onKeyDown:e=>{const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,l="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0===t&&0===l||(e.preventDefault(),L(e=>({r:Math.min(x.length-1,Math.max(0,(e?.r??0)+t)),c:Math.min(d.length-1,Math.max(0,(e?.c??0)+l))})))},children:[
|
|
5
|
-
/* @__PURE__ */f("defs",{children:/* @__PURE__ */u("linearGradient",{id:R,x1:"0",x2:"1",children:[
|
|
6
|
-
/* @__PURE__ */f("stop",{offset:"0",stopColor:T(0)}),
|
|
7
|
-
/* @__PURE__ */f("stop",{offset:"1",stopColor:T(W)})]})}),x.map((e,t)=>/* @__PURE__ */f("text",{x:86,y:26*t+13+4,textAnchor:"end",fontSize:11,fill:r.label,children:e},`r${t}`)),x.map((e,t)=>d.map((l,r)=>{const n=p[t]?.[r]??0,i=E&&(E.r!==t||E.c!==r);/* @__PURE__ */
|
|
8
|
-
return f("rect",{x:Z+r*P+A/2,y:26*t+A/2,width:Math.max(1,P-A),height:26-A,rx:N,fill:T(n),opacity:i?.55:1,onMouseEnter:()=>L({r:t,c:r}),children:/* @__PURE__ */f("title",{children:`${e} · ${l}: ${S(n)}`})},`${t}-${r}`)})),d.map((e,t)=>t%Math.max(1,Math.ceil(d.length/Math.max(1,Math.floor((Q-Z)/56))))===0?/* @__PURE__ */f("text",{x:Z+t*P+P/2,y:B+15,textAnchor:"middle",fontSize:11,fill:r.label,children:e},`c${t}`):null),
|
|
9
|
-
/* @__PURE__ */f("rect",{x:Z,y:B+26,width:Math.min(180,Math.max(40,Q-Z)),height:8,rx:4,fill:`url(#${R})`}),
|
|
10
|
-
/* @__PURE__ */f("text",{x:Z,y:B+48,fontSize:11,fill:r.label,children:"0"}),
|
|
11
|
-
/* @__PURE__ */f("text",{x:Z+Math.min(180,Math.max(40,Q-Z)),y:B+48,textAnchor:"end",fontSize:11,fill:r.label,style:{fontVariantNumeric:"tabular-nums"},children:S(W)})]}),E&&/* @__PURE__ */f("div",{className:"pointer-events-none absolute top-1 right-1 z-10",children:/* @__PURE__ */f(e,{title:`${x[E.r]} · ${d[E.c]}`,rows:[{key:"v",label:z,color:V,value:null==p[E.r]?.[E.c]?void 0:S(p[E.r][E.c])}]})})]})}export{x as HeatmapChart};
|
package/dist/chunk-VWEG2WM4.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{nextEnabledIndex as e}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as t,filterOptionItems as n,optionMatches as r,groupedRows as l,OptionCheck as o,OptionSublabel as i}from"./chunk-LJN77RG6.js";import{INPUT_BASE_ON as a,INPUT_BASE as s}from"./chunk-AYZY3YNC.js";import{Button_default as u}from"./chunk-HXNMRJQ4.js";import{Tooltip as c}from"./chunk-Q3IR5SKD.js";import{onOverlayOpen as d}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as p,MENU_MAX_HEIGHT as m}from"./chunk-GLUJS42B.js";import{GLASS_DIVIDER as f,glassStyle as b}from"./chunk-F27JJHNJ.js";import{registerModalEscapeInterceptor as g}from"./chunk-TWVUQUUD.js";import{useBrowserLayoutEffect as v}from"./chunk-D65T4H6J.js";import{LoadingSpinner as y}from"./chunk-R2VKEMZH.js";import{useShellStrings as w}from"./chunk-4PAWQEXM.js";import{useState as x,useId as k,useRef as $,useMemo as N,useEffect as j}from"react";import{createPortal as D}from"react-dom";import{jsxs as C,jsx as S}from"react/jsx-runtime";function R(e,t){const n=e.length;if(0===n||t(e.join(", ")))return{shown:n,cut:!1};if(1===n)return{shown:1,cut:!0};let r=0;for(let l=1;l<n&&t(`${e.slice(0,l).join(", ")} +${n-l}`);l+=1)r=l;return{shown:r,cut:!1}}function W({onClear:e,ariaLabel:t}){/* @__PURE__ */
|
|
2
|
-
return S("button",{type:"button","aria-label":t,onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity text-base leading-none",children:"×"})}function L(L){const{options:M,placeholder:E,emptyOptionLabel:F,className:z="",disabled:J,id:T,filter:A=!1,allowFreeText:H=!1,freeTextOption:O,onSearchChange:I,loading:U=!1,error:B,onRetry:Q,rightAdornment:G,renderOption:K,clearable:P=!0,"aria-label":X,"aria-labelledby":Y,"aria-describedby":V}=L,Z=!0===L.multiple,q=L.multiple?L.value:L.value?[L.value]:[],_=L.multiple?"":L.value,ee=e=>{L.multiple?L.onChange(e):L.onChange(e[0]??"")},te=q.length>0,ne=A&&te&&!J,re=Z||A,le=null!=O,oe=H||le,[ie,ae]=x(!1),[se,ue]=x(-1),ce=k(),de=T??`${ce}-input`,he=`${ce}-listbox`,pe=e=>`${ce}-opt-${e}`,[me,fe]=x(""),be=w(),ge=F??be.select.none,ve=e=>{fe(e),ue(-1),I?.(e)},ye=$(null),we=$(null),xe=$(null),ke=$(null),$e=$(ie);$e.current=ie;const Ne=$(!1),je=e=>{$e.current&&($e.current=!1,e&&H&&!le&&Pe&&(Z?q.includes(Pe)||ee([...q,Pe]):Pe!==_&&ee([Pe])),ae(!1),ve(""))},De=(e,t)=>{if(!e.disabled){if(Z)return ee(q.includes(e.value)?q.filter(t=>t!==e.value):[...q,e.value]),void(e===Xe?ve(""):ue(t));ee([e.value]),je(!1)}},[Ce,Se]=x(null);v(()=>{if(!G||ie)return void Se(null);const e=ke.current?.offsetWidth??0;Se(e?e+(Fe?32:8)+6:null)});const Re=p(we,ie,re?{popupRef:xe}:{matchTriggerWidth:!0}),We=N(()=>t(M),[M]),Le=q.join("\0"),Me=N(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of We)q.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(oe)for(const n of q)t.has(n)||e.push(n);return e},[We,Le,oe]),Ee=Me.join(", "),Fe=P&&te&&!J,[ze,Je]=x(null),Te=$(null),Ae=$(""),He=$(()=>{});He.current=()=>{const e=we.current,t=Te.current;if(!Z||!e||!t)return;const n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),l=[n.fontStyle,n.fontWeight,n.fontSize,n.fontFamily,n.letterSpacing].join("|"),o=`${r}|${l}|${Me.join("\0")}`;if(o===Ae.current)return;Ae.current=o;let i=null;r>0&&Me.length>0&&(t.style.fontStyle=n.fontStyle,t.style.fontWeight=n.fontWeight,t.style.fontSize=n.fontSize,t.style.fontFamily=n.fontFamily,t.style.letterSpacing=n.letterSpacing,i=R(Me,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),Je(e=>e?.shown===i?.shown&&e?.cut===i?.cut?e:i)},v(()=>{He.current()}),j(()=>{const e=we.current;if(!Z||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>He.current());return t.observe(e),()=>t.disconnect()},[Z]);const Oe=Me.length,Ie=!Z||!ze||ze.shown>=Oe?Ee:0===ze.shown?be.select.selectedCount(Oe):`${Me.slice(0,ze.shown).join(", ")} +${Oe-ze.shown}`,Ue=Z&&null!==ze&&(ze.shown<Oe||ze.cut),Be=ie&&te&&re;j(()=>{if(!ie)return;const e=e=>{const t=e.target;ye.current?.contains(t)||xe.current?.contains(t)||je(!0)};document.addEventListener("mousedown",e);const t=d(()=>je(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[ie,H,me,Le,L.onChange]),j(()=>{if(ie)return g(e=>!("Escape"!==e.key||!$e.current)&&(je(!1),we.current?.blur(),!0),()=>xe.current)},[ie]);const Qe=N(()=>{const e=/* @__PURE__ */new Set;return n(M,t=>!e.has(t.value)&&(e.add(t.value),!0))},[M]),Ge=N(()=>{if(I)return Qe;const e=me.trim().toLowerCase();return e?n(Qe,t=>r(t,e)):Qe},[Qe,me,I]),Ke=N(()=>t(Ge),[Ge]),Pe=me.trim(),Xe=N(()=>le&&Pe?We.some(e=>e.label===Pe)||q.includes(Pe)?null:{value:Pe,label:Pe}:null,[le,Pe,We,Le]),Ye=N(()=>Xe?[...Ke,Xe]:Ke,[Ke,Xe]);/* @__PURE__ */
|
|
3
|
-
return C("div",{ref:ye,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(ye.current?.contains(t)||xe.current?.contains(t))||Ne.current||document.activeElement!==we.current&&je(!0)},children:[(Ve=/* @__PURE__ */S("input",{id:de,ref:we,type:"text",autoComplete:"off",role:"combobox","aria-expanded":ie,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":ie?he:void 0,"aria-activedescendant":ie&&se>=0&&se<Ye.length?pe(se):void 0,"aria-label":Y?void 0:X,"aria-labelledby":Y,"aria-describedby":V,value:ie?me:Ie,onChange:e=>{ve(e.target.value),ae(!0)},onFocus:()=>{J||(ve(""),ae(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(J)return;if(t.preventDefault(),!ie)return void ae(!0);if(0===Ye.length)return;const n="ArrowDown"===t.key?1:-1;return void ue(t=>e(Ye,t,n))}"Enter"===t.key?(t.preventDefault(),ie&&se>=0&&se<Ye.length?De(Ye[se],se):1!==Ke.length||Ke[0].disabled?H&&!le&&Pe&&(Z?(q.includes(Pe)||ee([...q,Pe]),ve("")):(ee([Pe]),je(!1),we.current?.blur())):De(Ke[0],0)):"Escape"===t.key?(je(!1),we.current?.blur()):"Tab"===t.key&&je(!0)},placeholder:Be?Ie:E||ge,className:`${ne?a:s} ${z} ${Fe?"pr-8":""} ${J?"bg-surface-sunken text-ink-faintest cursor-not-allowed":""} truncate${Be?" rosh-field-shows-choice":""}`,style:Ce?{paddingRight:Ce}:void 0,disabled:J}),Z?/* @__PURE__ */S(c,{content:!ie&&Ue?Ee:null,className:"block",children:Ve}):Ve),Z&&
|
|
4
|
-
/* @__PURE__ */S("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */S("span",{ref:Te,className:"whitespace-pre"})}),Fe&&/* @__PURE__ */S(W,{ariaLabel:be.select.clear,onClear:()=>{ee([]),je(!1)}}),G&&!ie&&/* @__PURE__ */S("div",{ref:ke,className:`absolute top-1/2 -translate-y-1/2 ${Fe?"right-8":"right-2"} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:G}),ie&&D(
|
|
5
|
-
/* @__PURE__ */C("div",{ref:xe,onMouseDownCapture:()=>{Ne.current=!0,setTimeout(()=>{Ne.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:h.popup,left:Re?.left,right:Re?.right,top:Re?.top,bottom:Re?.bottom,minWidth:Re?.minWidth,width:Re?.width,...re&&{maxWidth:Re?.maxWidth},visibility:Re?void 0:"hidden",...b()},children:[Z&&te&&P&&!J&&
|
|
6
|
-
/* @__PURE__ */S("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ee([])},className:`block w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-600 hover:bg-row-hover border-b ${f}`,children:be.select.clearAll}),U?
|
|
7
|
-
/* @__PURE__ */S(y,{size:"sm",padding:"py-2",label:be.search.searching}):B?/* @__PURE__ */C("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
|
|
8
|
-
/* @__PURE__ */S("span",{className:"min-w-0 flex-1",children:B}),Q&&/* @__PURE__ */S(u,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:Q,className:"shrink-0",children:be.list.retry})]}):null,
|
|
9
|
-
/* @__PURE__ */C("div",{id:he,role:Ye.length?"listbox":void 0,"aria-labelledby":Ye.length?Y??(X?void 0:de):void 0,"aria-label":Ye.length&&!Y?X:void 0,"aria-multiselectable":!(!Ye.length||!Z)||void 0,className:"overflow-y-auto",style:{maxHeight:Re?.maxHeight??m},children:[0===Ye.length?U||B?null:/* @__PURE__ */S("p",{className:"px-3 py-3 text-sm text-ink-faintest text-center",children:be.select.noMatches}):0===Ke.length?null:l(Ge,(e,t)=>{const n=q.includes(e.value);/* @__PURE__ */
|
|
10
|
-
return C("button",{id:pe(t),type:"button",role:"option","aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:-1,onMouseDown:n=>{(e.disabled||Z)&&n.preventDefault(),De(e,t)},className:"w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center justify-between gap-2 whitespace-nowrap "+(e.disabled?"cursor-not-allowed text-gray-400":`hover:bg-gray-50 ${n?"text-blue-600 font-medium":"text-gray-700"} ${t===se?"bg-gray-100":n?"bg-blue-50/50":""}`),children:[Z&&/* @__PURE__ */S(o,{selected:n}),
|
|
11
|
-
/* @__PURE__ */S("span",{className:`min-w-0 ${re?"flex-auto":"flex-1"} truncate`,children:K?K(e,{selected:n,active:t===se}):e.label}),e.sublabel&&/* @__PURE__ */S(i,{grows:re,children:e.sublabel})]},e.value)},ce),Xe&&O&&
|
|
12
|
-
/* @__PURE__ */S("button",{id:pe(Ke.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{Z&&e.preventDefault(),De(Xe,Ke.length)},className:`w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 whitespace-nowrap text-ink hover:bg-row-hover ${Ke.length?`border-t ${f}`:""} ${se===Ke.length?"bg-gray-100":""}`,children:/* @__PURE__ */S("span",{className:"min-w-0 flex-1 truncate",children:O(Xe.value)})},`${ce}-typed`)]})]}),document.body)]});var Ve}export{L as SearchableSelect,R as fitChoice};
|
package/dist/chunk-XIB72X74.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-NWURIQI3.js";import{toDayMs as i,fmtSliderDate as t,DAY_MS as a}from"./chunk-7TC3LJQM.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-4PAWQEXM.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:y=null,onHoverChange:b}){const M=l(Date.now,null),j=[],C=[],x=o().timeline,L=r();for(const e of p){const n=i(e.date??null);null===n?C.push({key:e.key,label:e.label,kind:e.kind}):j.push({...e,ms:n})}j.sort((e,n)=>e.ms-n.ms);const N=i(g??null);let w,D,H=!0;0===j.length?(D=N??M??0,w=D-30*a,H=null!==N||null!==M):(w=j[0].ms,D=N??j[j.length-1].ms,D-w<a&&(D=w+a));const O=j.length>0?Math.max(0,Math.round((D-w)/a)):0,Q=u??(O>0?x.duration(O):void 0),I=[j.length>0?x.started(t(j[0].ms,L)):void 0,Q,C.length>0?x.reached(j.length,p.length):void 0],J=j.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),K={};for(const e of j)e.phase&&(K[e.phase]=K[e.phase]||[]).push(e.ms);const T=Object.entries(K).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),W="rail"===v,A=H&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:W?"spread":"compressed",labels:W?"none":"lanes",items:J,pending:C,phases:T,startMs:w,endMs:D,todayMs:M??void 0,edgeCaptions:f,highlightKeys:y,onHoverChange:b,ariaLabel:x.milestones(m)})});/* @__PURE__ */
|
|
2
|
-
return h("div",W?{className:"shrink-0","data-timeline-variant":"rail",children:A}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:I,children:A})})}export{m as MilestoneTimeline};
|
package/dist/chunk-ZE5TNYWX.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-V2MIQ4GJ.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-FRVNDEV2.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{registerModalEscapeInterceptor as p}from"./chunk-TWVUQUUD.js";import{useBrowserLayoutEffect as f}from"./chunk-D65T4H6J.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:E="bottom","aria-label":A,className:C="",triggerClassName:K,menuClassName:S="",minWidth:W=180,linkAs:N,disabled:$,id:H,"aria-describedby":T,"aria-disabled":U=!1,onOpenChange:I,footer:J,footerLabel:B}){const[G,M]=m(!1),[V,q]=m(-1),R=h(null),z=h(null),P=h(null),Q=h(null),F=h(null),O=null!=J&&!1!==J,Y=h({text:"",at:0}),X=g(),Z=g(),_=H??Z,ee=h(I);ee.current=I;const te=h(G);te.current=G;const re=v(e=>{M(!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=()=>P.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!G)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()}},[G,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:j,side:E});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,E]);f(()=>{G&&ie()}),b(()=>{if(G)return u(()=>z.current,ie)},[G,ie]),b(()=>{if(!G)return;const t=P.current,r=e(L[V])?t?.querySelector(`[data-dropdown-index="${V}"]`):null;(r??t)?.focus({preventScroll:!0})},[G,V]),b(()=>{if(G)return p(e=>"Escape"===e.key&&(re(!0),!0),()=>Q.current)},[G,re]),n(Q,G&&O);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{q(le(e)),M(!0),te.current||(te.current=!0,ae.current=e,I?.(!0))};f(()=>{const e=ae.current;if(!G||!e)return;ae.current=null;const t=le(e);t!==V&&q(t)});const de=t(L,X),ce="function"==typeof J?J({close:()=>re(!0)}):J,ue={...k.test(S)?{}:{zIndex:s.popup},minWidth:W};/* @__PURE__ */
|
|
2
|
-
return y("div",{ref:R,className:`relative inline-flex ${C}`.trim(),children:[
|
|
3
|
-
/* @__PURE__ */x("button",{ref:z,id:_,type:"button","aria-haspopup":"menu","aria-expanded":G,"aria-controls":G?X:void 0,"aria-label":A,"aria-describedby":T,"aria-disabled":U||void 0,disabled:$,onClick:()=>{U||(G?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:K??"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 "+(A?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:D}),G&&
|
|
4
|
-
/* @__PURE__ */x(i,{portal:!0,className:S,style:ue,children:/* @__PURE__ */y("div",{ref:Q,children:[
|
|
5
|
-
/* @__PURE__ */x("div",{ref:P,id:X,role:"menu","aria-orientation":"vertical","aria-label":A,"aria-labelledby":A?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(),q(ne(V+1,1));else if("ArrowUp"===t.key)t.preventDefault(),q(ne(V-1,-1));else if("Home"===t.key)t.preventDefault(),q(ne(0,1));else if("End"===t.key)t.preventDefault(),q(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&F.current?o(F.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-Y.current.at<500?Y.current.text+n:n;Y.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?V+1:Math.max(V,0),s=P.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 q(n)}})(t)},children:r(L,{menuId:X,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===V?0:-1,onMouseEnter:()=>{t.disabled||F.current?.contains(document.activeElement)||q(e)}}),linkAs:N})}),O&&/* @__PURE__ */y("div",{ref:F,role:"group","aria-label":B,"data-dropdown-footer":"",onKeyDown:e=>{const t=F.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=P.current?.querySelector(`[data-dropdown-index="${V}"]`);return void(t??P.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-ZO244TWH.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as t}from"./chunk-ZMRGHVKS.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-WZ5QSSUM.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-4PAWQEXM.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:M,className:k,emptyLabel:v}){const $=l().charts,w=i(),N=M??(t=>s(t,w)),j=v??$.noFlows,[y,E]=c(null),{highlighted:F}=o(),C=h(u,f,x,$.other),{labels:A,matrix:Q,otherIndex:z,foldedCount:I}=C,S=(t,e)=>Q[t]?.[e]??0,W=t=>t===z?r.muted:a(t),H=C.totals,L=A.map((t,e)=>e).sort((t,e)=>H[e]-H[t]),O=L.reduce((t,e)=>t+H[e],0);if(O<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const P=p/2,R=p/2,U=p/2-44,V=U-b,Z=g*L.length,T=/* @__PURE__ */new Map;let Y=-Math.PI/2;L.forEach((t,e)=>{const o=H[t]/O*(2*Math.PI-Z);T.set(t,{start:Y,end:Y+o,slot:e}),Y+=o+g});const B=/* @__PURE__ */new Map,G=[];for(const t of L)for(const e of L){const o=S(t,e);if(o<=0)continue;const n=T.get(t),r=o/Math.max(1,H[t])*(n.end-n.start),a=B.get(t)??0;B.set(t,a+r),G.push({from:t,to:e,value:o,a:n.start+a+r/2,b:T.get(e).start+(T.get(e).end-T.get(e).start)/2})}const K=(t,e)=>[P+e*Math.cos(t),R+e*Math.sin(t)],X="arc"===y?.kind?y.index:void 0,q="ribbon"===y?.kind?G[y.index]:void 0;/* @__PURE__ */
|
|
2
|
-
return m("div",{className:`relative ${k??""}`,children:[
|
|
3
|
-
/* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(L.length),onMouseLeave:()=>E(null),children:[G.map((t,e)=>{const[o,n]=K(t.a,V),[r,a]=K(t.b,V),l=W(t.from),i=((t,e)=>y?"ribbon"===y.kind?y.index===e:y.index===t.from||y.index===t.to:null!==F?A[t.from]===F||A[t.to]===F:null)(t,e);/* @__PURE__ */
|
|
4
|
-
return d("path",{d:`M${o},${n} Q${P},${R} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/O*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>E({kind:"ribbon",index:e})},`${A[t.from]}→${A[t.to]}`)}),L.map(t=>{const o=T.get(t),n=(o.start+o.end)/2,[a,l]=K(n,U+16),i=(t=>y?"arc"===y.kind?y.index===t:G[y.index].from===t||G[y.index].to===t:null!==F?A[t]===F:null)(t);/* @__PURE__ */
|
|
5
|
-
return m("g",{onMouseEnter:()=>E({kind:"arc",index:t}),children:[
|
|
6
|
-
/* @__PURE__ */d("path",{d:e(P,R,V,U,o.start,o.end),fill:W(t),fillOpacity:null===i||i?1:.45}),
|
|
7
|
-
/* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:A[t]})]},t)})]}),I>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(I)}),void 0!==X&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:A[X],rows:[{key:"total",label:$.totalFlow,color:W(X),value:N(H[X])}]})}),q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${A[q.from]} → ${A[q.to]}`,rows:[{key:"value",label:$.flow,color:W(q.from),value:N(q.value)}]})}),
|
|
8
|
-
/* @__PURE__ */d(t,{caption:$.chord(L.length),head:[$.tableFrom,$.tableTo,$.value],rows:G.map(t=>[A[t.from],A[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};
|
|
File without changes
|