it-data-nexus-ui-library 1.0.0 → 1.0.2
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/components/NexusBarChart.mjs +1 -1
- package/dist/components/NexusLineChart.mjs +1 -1
- package/dist/components/NexusPieChart.mjs +1 -1
- package/dist/generated/version.mjs +1 -1
- package/dist/index.d.ts +93 -94
- package/dist/node_modules/@base-ui/utils/platform/os.mjs +1 -0
- package/dist/node_modules/@base-ui/utils/platform/shared.mjs +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +1 -1
- package/dist/node_modules/@mui/system/sizing/sizing.mjs +1 -1
- package/dist/node_modules/@mui/system/spacing/spacing.mjs +1 -1
- package/dist/node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/BarChart/BarElement.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/BarChart/seriesConfig/bar/keyboardFocusHandler.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/BarChart/seriesConfig/bar/tooltipPosition.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/BarChart/seriesConfig/index.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/BarChart/useBarPlotData.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsAxisHighlight/getSampledBandHighlight.mjs +1 -0
- package/dist/node_modules/@mui/x-charts/ChartsDataProvider/ChartsDataProvider.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsGrid/ChartsGrid.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsText/ChartsText.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsTooltip/ChartsAxisTooltipContent.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsTooltip/ChartsItemTooltipContent.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsTooltip/ChartsTooltip.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsTooltip/ChartsTooltipContainer.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsXAxis/ChartsXAxis.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsYAxis/ChartsYAxis.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ChartsYAxis/ChartsYAxisImpl.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/AnimatedArea.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/AreaElement.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/AreaPlot.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/CircleMarkElement.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/LineElement.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/LineHighlightElement.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/LinePlot.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/MarkElement.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/lineClasses.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/seriesConfig/index.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/seriesConfig/keyboardFocusHandler.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/LineChart/useLineItemClickHandler.mjs +1 -0
- package/dist/node_modules/@mui/x-charts/LineChart/useLinePlotData.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/PieChart/FocusedPieArc.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/PieChart/PieArcLabelPlot.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/PieChart/PieArcPlot.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/PieChart/PiePlot.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/PieChart/seriesConfig/index.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/PieChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ScatterChart/seriesConfig/getColor.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ScatterChart/seriesConfig/index.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/ScatterChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/hooks/animation/useAnimatePieArc.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/colorScale.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/commonNextFocusItem.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/createGetBarDimensions.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/geometry.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/getGroupingConfig.mjs +1 -0
- package/dist/node_modules/@mui/x-charts/internals/getSampledBucketRegion.mjs +1 -0
- package/dist/node_modules/@mui/x-charts/internals/plugins/allPlugins.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +1 -0
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +1 -0
- package/dist/node_modules/@mui/x-charts/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +1 -0
- package/dist/node_modules/@mui/x-charts/internals/resolveColorProcessor.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/scales/scaleBand.mjs +1 -1
- package/dist/node_modules/@mui/x-charts/internals/snapEndAngleToFullCircle.mjs +1 -0
- package/dist/node_modules/@mui/x-internal-gestures/core/GestureManager.mjs +1 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/KeyboardManager.mjs +1 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/utils/eventList.mjs +1 -1
- package/dist/node_modules/@mui/x-internals/store/useStoreEffect.mjs +1 -1
- package/dist/node_modules/@mui/x-internals/useIsHydrated/useIsHydrated.mjs +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.mjs +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.mjs +1 -1
- package/dist/node_modules/flatqueue/index.mjs +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.mjs +1 -1
- package/package.json +115 -115
- package/readme.md +2 -0
- package/dist/node_modules/@mui/x-charts/hooks/useIsHydrated.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/gestures/PinchGesture.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/gestures/PressAndDragGesture.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/gestures/TapAndDragGesture.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/gestures/TurnWheelGesture.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/utils/calculateAverageDistance.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/utils/getDistance.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/utils/getPinchDirection.mjs +0 -1
- package/dist/node_modules/@mui/x-internal-gestures/core/utils/preventDefault.mjs +0 -1
- package/dist/node_modules/@mui/x-internals/node_modules/@mui/utils/useLazyRef/useLazyRef.mjs +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +0 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +0 -1
- package/dist/node_modules/d3-array/src/range.mjs +0 -1
- /package/dist/_virtual/{react-is.development2.mjs → react-is2.development.mjs} +0 -0
- /package/dist/node_modules/@mui/{x-internals/node_modules/@mui/utils → utils}/useOnMount/useOnMount.mjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getSideAxis as e,getAlignmentAxis as t,getSide as n,getAlignment as i,evaluate as a,getPaddingObject as o,rectToClientRect as r,
|
|
1
|
+
import{getSideAxis as e,getAlignmentAxis as t,getSide as n,getAlignment as i,evaluate as a,getPaddingObject as o,rectToClientRect as r,getOppositePlacement as l,getExpandedPlacements as s,getOppositeAxisPlacements as c,getAlignmentSides as f,min as m,max as d,getAxisLength as u,clamp as g,getOppositeAxis as p,sides as y}from"../../utils/dist/floating-ui.utils.mjs";function w(a,o,r){let{reference:l,floating:s}=a;const c=e(o),f=t(o),m=u(f),d=n(o),g="y"===c,p=l.x+l.width/2-s.width/2,y=l.y+l.height/2-s.height/2,w=l[m]/2-s[m]/2;let x;switch(d){case"top":x={x:p,y:l.y-s.height};break;case"bottom":x={x:p,y:l.y+l.height};break;case"right":x={x:l.x+l.width,y:y};break;case"left":x={x:l.x-s.width,y:y};break;default:x={x:l.x,y:l.y}}const h=i(o);return h&&(x[f]+=w*("end"===h?1:-1)*(r&&g?-1:1)),x}async function x(e,t){var n;void 0===t&&(t={});const{x:i,y:l,platform:s,rects:c,elements:f,strategy:m}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:p=!1,padding:y=0}=a(t,e),w=o(y),x=f[p?"floating"===g?"reference":"floating":g],h=r(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(x)))||n?x:x.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(f.floating)),boundary:d,rootBoundary:u,strategy:m})),v="floating"===g?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f.floating)),A=await(null==s.isElement?void 0:s.isElement(b))&&await(null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},O=r(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:v,offsetParent:b,strategy:m}):v);return{top:(h.top-O.top+w.top)/A.y,bottom:(O.bottom-h.bottom+w.bottom)/A.y,left:(h.left-O.left+w.left)/A.x,right:(O.right-h.right+w.right)/A.x}}const h=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:x},s=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:m}=w(c,i,s),d=i,u=0;const g={};for(let n=0;n<o.length;n++){const p=o[n];if(!p)continue;const{name:y,fn:x}=p,{x:h,y:v,data:b,reset:A}=await x({x:f,y:m,initialPlacement:i,placement:d,strategy:a,middlewareData:g,rects:c,platform:l,elements:{reference:e,floating:t}});f=null!=h?h:f,m=null!=v?v:m,g[y]={...g[y],...b},A&&u<50&&(u++,"object"==typeof A&&(A.placement&&(d=A.placement),A.rects&&(c=!0===A.rects?await r.getElementRects({reference:e,floating:t,strategy:a}):A.rects),({x:f,y:m}=w(c,d,s))),n=-1)}return{x:f,y:m,placement:d,strategy:a,middlewareData:g}},v=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:l,placement:s,rects:c,platform:f,elements:d,middlewareData:p}=n,{element:y,padding:w=0}=a(e,n)||{};if(null==y)return{};const x=o(w),h={x:r,y:l},v=t(s),b=u(v),A=await f.getDimensions(y),O="y"===v,R=O?"top":"left",D=O?"bottom":"right",E=O?"clientHeight":"clientWidth",P=c.reference[b]+c.reference[v]-h[v]-c.floating[b],T=h[v]-c.reference[v],k=await(null==f.getOffsetParent?void 0:f.getOffsetParent(y));let L=k?k[E]:0;L&&await(null==f.isElement?void 0:f.isElement(k))||(L=d.floating[E]||c.floating[b]);const H=P/2-T/2,S=L/2-A[b]/2-1,B=m(x[R],S),C=m(x[D],S),j=L-A[b]-C,F=L/2-A[b]/2+H,V=g(B,F,j),W=!p.arrow&&null!=i(s)&&F!==V&&c.reference[b]/2-(F<B?B:C)-A[b]/2<0,z=W?F<B?F-B:F-j:0;return{[v]:h[v]+z,data:{[v]:V,centerOffset:F-V-z,...W&&{alignmentOffset:z}},reset:W}}}),b=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(i){var o,r;const{placement:m,middlewareData:d,rects:u,initialPlacement:g,platform:p,elements:y}=i,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:A=!0,...O}=a(t,i);if(null!=(o=d.arrow)&&o.alignmentOffset)return{};const R=n(m),D=e(g),E=n(g)===g,P=await(null==p.isRTL?void 0:p.isRTL(y.floating)),T=h||(E||!A?[l(g)]:s(g)),k="none"!==b;!h&&k&&T.push(...c(g,A,b,P));const L=[g,...T],H=await p.detectOverflow(i,O),S=[];let B=(null==(r=d.flip)?void 0:r.overflows)||[];if(w&&S.push(H[R]),x){const e=f(m,u,P);S.push(H[e[0]],H[e[1]])}if(B=[...B,{placement:m,overflows:S}],!S.every(e=>e<=0)){var C,j;const t=((null==(C=d.flip)?void 0:C.index)||0)+1,n=L[t];if(n){if(!("alignment"===x&&D!==e(n))||B.every(t=>e(t.placement)!==D||t.overflows[0]>0))return{data:{index:t,overflows:B},reset:{placement:n}}}let i=null==(j=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:j.placement;if(!i)switch(v){case"bestFit":{var F;const t=null==(F=B.filter(t=>{if(k){const n=e(t.placement);return n===D||"y"===n}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:F[0];t&&(i=t);break}case"initialPlacement":i=g}if(m!==i)return{reset:{placement:i}}}return{}}}};function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function O(e){return y.some(t=>e[t]>=0)}const R=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:o="referenceHidden",...r}=a(e,t);switch(o){case"referenceHidden":{const e=A(await i.detectOverflow(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:O(e)}}}case"escaped":{const e=A(await i.detectOverflow(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:O(e)}}}default:return{}}}}},D=new Set(["left","top"]);const E=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(o){var r,l;const{x:s,y:c,placement:f,middlewareData:m}=o,d=await async function(t,o){const{placement:r,platform:l,elements:s}=t,c=await(null==l.isRTL?void 0:l.isRTL(s.floating)),f=n(r),m=i(r),d="y"===e(r),u=D.has(f)?-1:1,g=c&&d?-1:1,p=a(o,t);let{mainAxis:y,crossAxis:w,alignmentAxis:x}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return m&&"number"==typeof x&&(w="end"===m?-1*x:x),d?{x:w*g,y:y*u}:{x:y*u,y:w*g}}(o,t);return f===(null==(r=m.offset)?void 0:r.placement)&&null!=(l=m.arrow)&&l.alignmentOffset?{}:{x:s+d.x,y:c+d.y,data:{...d,placement:f}}}}},P=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:i,y:o,placement:r,platform:l}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...m}=a(t,n),d={x:i,y:o},u=await l.detectOverflow(n,m),y=e(r),w=p(y);let x=d[w],h=d[y];const v=(e,t)=>g(t+u["y"===e?"top":"left"],t,t-u["y"===e?"bottom":"right"]);s&&(x=v(w,x)),c&&(h=v(y,h));const b=f.fn({...n,[w]:x,[y]:h});return{...b,data:{x:b.x-i,y:b.y-o,enabled:{[w]:s,[y]:c}}}}}},T=function(t){return void 0===t&&(t={}),{options:t,fn(i){var o,r;const{x:l,y:s,placement:c,rects:f,middlewareData:m}=i,{offset:d=0,mainAxis:u=!0,crossAxis:g=!0}=a(t,i),y={x:l,y:s},w=e(c),x=p(w);let h=y[x],v=y[w];const b=a(d,i),A="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(o=b.mainAxis)?o:0,crossAxis:null!=(r=b.crossAxis)?r:0};if(u){const e="y"===x?"height":"width",t=f.reference[x]-f.floating[e]+A.mainAxis,n=f.reference[x]+f.reference[e]-A.mainAxis;h<t?h=t:h>n&&(h=n)}if(g){var O,R;const e="y"===x?"width":"height",t=D.has(n(c)),i=f.reference[w]-f.floating[e]+(t&&(null==(O=m.offset)?void 0:O[w])||0)+(t?0:A.crossAxis),a=f.reference[w]+f.reference[e]+(t?0:(null==(R=m.offset)?void 0:R[w])||0)-(t?A.crossAxis:0);v<i?v=i:v>a&&(v=a)}return{[x]:h,[w]:v}}}},k=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(o){const{placement:r,rects:l,platform:s,elements:c}=o,{apply:f=()=>{},...u}=a(t,o),g=await s.detectOverflow(o,u),p=n(r),y=i(r),w="y"===e(r),{width:x,height:h}=l.floating;let v,b;"top"===p||"bottom"===p?(v=p,b=y===(await(null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(b=p,v="end"===y?"top":"bottom");const A=h-g.top-g.bottom,O=x-g.left-g.right,R=m(h-g[v],A),D=m(x-g[b],O),E=o.middlewareData.shift,P=!E;let T=R,k=D;null!=E&&E.enabled.x&&(k=O),null!=E&&E.enabled.y&&(T=A),P&&!y&&(w?k=x-2*d(g.left,g.right):T=h-2*d(g.top,g.bottom)),await f({...o,availableWidth:k,availableHeight:T});const L=await s.getDimensions(c.floating);return x!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};export{v as arrow,h as computePosition,x as detectOverflow,b as flip,R as hide,T as limitShift,E as offset,r as rectToClientRect,P as shift,k as size};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computePosition as t,offset as e,shift as n,flip as i,size as o,hide as r,arrow as l,limitShift as s}from"../../core/dist/floating-ui.core.mjs";import{
|
|
1
|
+
import{computePosition as t,offset as e,shift as n,flip as i,size as o,hide as r,arrow as l,limitShift as s}from"../../core/dist/floating-ui.core.mjs";import{rectToClientRect as c,floor as f,createCoords as u,round as h,max as a,min as d}from"../../utils/dist/floating-ui.utils.mjs";import{getOverflowAncestors as g,isElement as p,getDocumentElement as y,getWindow as m,isHTMLElement as x,getComputedStyle as w,isTopLayer as v,getParentNode as b,isLastTraversableNode as L,isTableElement as R,isContainingBlock as T,getContainingBlock as C,getNodeName as F,isOverflowElement as E,getNodeScroll as W,isWebKit as z,getFrameElement as S}from"../../utils/dist/floating-ui.utils.dom.mjs";function H(t){const e=w(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=x(t),r=o?t.offsetWidth:n,l=o?t.offsetHeight:i,s=h(n)!==r||h(i)!==l;return s&&(n=r,i=l),{width:n,height:i,$:s}}function O(t){return p(t)?t:t.contextElement}function B(t){const e=O(t);if(!x(e))return u(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=H(e);let l=(r?h(n.width):n.width)/i,s=(r?h(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const D=u(0);function V(t){const e=m(t);return z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:D}function A(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=O(t);let l=u(1);e&&(i?p(i)&&(l=B(i)):l=B(t));const s=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===m(t)}(r,n,i)?V(r):u(0);let f=(o.left+s.x)/l.x,h=(o.top+s.y)/l.y,a=o.width/l.x,d=o.height/l.y;if(r&&i){const t=m(r),e=p(i)?m(i):i;let n=t,o=S(n);for(;o&&e!==n;){const t=B(o),e=o.getBoundingClientRect(),i=w(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,l=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;f*=t.x,h*=t.y,a*=t.x,d*=t.y,f+=r,h+=l,n=m(o),o=S(n)}}return c({width:a,height:d,x:f,y:h})}function P(t,e){const n=W(t).scrollLeft;return e?e.left+n:A(y(t)).left+n}function M(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-P(t,n),y:n.top+e.scrollTop}}function j(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=m(t),r=y(t),l=o.visualViewport;let s=r.clientWidth,c=r.clientHeight,f=0,u=0;if(l){const t=!z()||"fixed"===e;i?t||(f=-l.offsetLeft,u=-l.offsetTop):(s=l.width,c=l.height,t&&(f=l.offsetLeft,u=l.offsetTop))}if(P(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),l="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;l<=25&&(s-=l)}return{width:s,height:c,x:f,y:u}}(t,n,e);else if("document"===e)i=function(t){const e=W(t),n=t.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=a(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+P(t);const l=-e.scrollTop;return"rtl"===w(n).direction&&(r+=a(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:l}}(y(t));else if(p(e))i=function(t,e){const n=A(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=B(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=V(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return c(i)}function I(t,e,n){const i=x(e),o=y(e),r="fixed"===n,l=A(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const c=u(0);if((i||!r)&&(("body"!==F(e)||E(o))&&(s=W(e)),i)){const t=A(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}!i&&o&&(c.x=P(o));const f=!o||i||r?u(0):M(o,s);return{x:l.left+s.scrollLeft-c.x-f.x,y:l.top+s.scrollTop-c.y-f.y,width:l.width,height:l.height}}function q(t){return"static"===w(t).position}function N(t,e){if(!x(t)||"fixed"===w(t).position)return null;if(e)return e(t);let n=t.offsetParent;return y(t)===n&&(n=n.ownerDocument.body),n}function $(t,e){const n=m(t);if(v(t))return n;if(!x(t)){let e=b(t);for(;e&&!L(e);){if(p(e)&&!q(e))return e;e=b(e)}return n}let i=N(t,e);for(;i&&R(i)&&q(i);)i=N(i,e);return i&&L(i)&&q(i)&&!T(i)?n:i||C(t)||n}const _={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,l=y(i),s=!!e&&v(e.floating);if(i===l||s&&r)return n;let c={scrollLeft:0,scrollTop:0},f=u(1);const h=u(0),a=x(i);if((a||!r)&&(("body"!==F(i)||E(l))&&(c=W(i)),a)){const t=A(i);f=B(i),h.x=t.x+i.clientLeft,h.y=t.y+i.clientTop}const d=!l||a||r?u(0):M(l,c);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+h.x+d.x,y:n.y*f.y-c.scrollTop*f.y+h.y+d.y}},getDocumentElement:y,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?v(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=g(t,[],!1).filter(t=>p(t)&&"body"!==F(t)),o=null;const r="fixed"===w(t).position;let l=r?b(t):t;for(;p(l)&&!L(l);){const t=w(l),e=T(l),n=o?o.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:i=i.filter(t=>t!==l),l=b(l)}return e.set(t,i),i}(e,this._c):[].concat(n),i],l=j(e,r[0],o);let s=l.top,c=l.right,f=l.bottom,u=l.left;for(let t=1;t<r.length;t++){const n=j(e,r[t],o);s=a(n.top,s),c=d(n.right,c),f=d(n.bottom,f),u=a(n.left,u)}return{width:c-u,height:f-s,x:u,y:s}},getOffsetParent:$,getElementRects:async function(t){const e=this.getOffsetParent||$,n=this.getDimensions,i=await n(t.floating);return{reference:I(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=H(t);return{width:e,height:n}},getScale:B,isElement:p,isRTL:function(t){return"rtl"===w(t).direction}};function G(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function k(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,u=O(t),h=o||r?[...u?g(u):[],...e?g(e):[]]:[];h.forEach(t=>{o&&t.addEventListener("scroll",n),r&&t.addEventListener("resize",n)});const p=u&&s?function(t,e,n){let i,o=null;const r=y(t);function l(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function s(n,c){void 0===n&&(n=!1),void 0===c&&(c=1),l();const u=t.getBoundingClientRect(),{left:h,top:g,width:p,height:y}=u;if(n||e(),!p||!y)return;const m={rootMargin:-f(g)+"px "+-f(r.clientWidth-(h+p))+"px "+-f(r.clientHeight-(g+y))+"px "+-f(h)+"px",threshold:a(0,d(1,c))||1};let x=!0;function w(e){const n=e[0].intersectionRatio;if(!G(u,t.getBoundingClientRect()))return s();if(n!==c){if(!x)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{o=new IntersectionObserver(w,{...m,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(w,m)}o.observe(t)}const c=m(t),u=()=>s(n);return c.addEventListener("resize",u),s(!0),()=>{c.removeEventListener("resize",u),l()}}(u,n,r):null;let x,w=-1,v=null;l&&(v=new ResizeObserver(t=>{let[i]=t;i&&i.target===u&&v&&e&&(v.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),n()}),u&&!c&&v.observe(u),e&&v.observe(e));let b=c?A(t):null;return c&&function e(){const i=A(t);b&&!G(b,i)&&n();b=i,x=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)}),null==p||p(),null==(t=v)||t.disconnect(),v=null,c&&cancelAnimationFrame(x)}}const J=e,K=n,Q=i,U=o,X=r,Y=l,Z=s,tt=(e,n,i)=>{const o=new Map,r=null!=i?i:{},l={..._,...r.platform,_c:o};return t(e,n,{...r,platform:l})};export{Y as arrow,k as autoUpdate,tt as computePosition,Q as flip,g as getOverflowAncestors,X as hide,Z as limitShift,J as offset,_ as platform,K as shift,U as size};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(){return"undefined"!=typeof window}function n(t){return r(t)?(t.nodeName||"").toLowerCase():"#document"}function e(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function o(t){var n;return null==(n=(r(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function r(n){return!!t()&&(n instanceof Node||n instanceof e(n).Node)}function c(n){return!!t()&&(n instanceof Element||n instanceof e(n).Element)}function u(n){return!!t()&&(n instanceof HTMLElement||n instanceof e(n).HTMLElement)}function l(n){return!(!t()||"undefined"==typeof ShadowRoot)&&(n instanceof ShadowRoot||n instanceof e(n).ShadowRoot)}function i(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=S(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&"inline"!==r&&"contents"!==r}function f(t){return/^(table|td|th)$/.test(n(t))}function s(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const a=/transform|translate|scale|rotate|perspective|filter/,d=/paint|layout|strict|content/,p=t=>!!t&&"none"!==t;let m;function w(t){const n=c(t)?S(t):t;return p(n.transform)||p(n.translate)||p(n.scale)||p(n.rotate)||p(n.perspective)||!h()&&(p(n.backdropFilter)||p(n.filter))||a.test(n.willChange||"")||d.test(n.contain||"")}function v(t){let n=C(t);for(;u(n)&&!y(n);){if(w(n))return n;if(s(n))return null;n=C(n)}return null}function h(){return null==m&&(m="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),m}function y(t){return/^(html|body|#document)$/.test(n(t))}function S(t){return e(t).getComputedStyle(t)}function b(t){return c(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function C(t){if("html"===n(t))return t;const e=t.assignedSlot||t.parentNode||l(t)&&t.host||o(t);return l(e)?e.host:e}function E(t){const n=C(t);return y(n)?t.ownerDocument
|
|
1
|
+
function t(){return"undefined"!=typeof window}function n(t){return r(t)?(t.nodeName||"").toLowerCase():"#document"}function e(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function o(t){var n;return null==(n=(r(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function r(n){return!!t()&&(n instanceof Node||n instanceof e(n).Node)}function c(n){return!!t()&&(n instanceof Element||n instanceof e(n).Element)}function u(n){return!!t()&&(n instanceof HTMLElement||n instanceof e(n).HTMLElement)}function l(n){return!(!t()||"undefined"==typeof ShadowRoot)&&(n instanceof ShadowRoot||n instanceof e(n).ShadowRoot)}function i(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=S(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&"inline"!==r&&"contents"!==r}function f(t){return/^(table|td|th)$/.test(n(t))}function s(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const a=/transform|translate|scale|rotate|perspective|filter/,d=/paint|layout|strict|content/,p=t=>!!t&&"none"!==t;let m;function w(t){const n=c(t)?S(t):t;return p(n.transform)||p(n.translate)||p(n.scale)||p(n.rotate)||p(n.perspective)||!h()&&(p(n.backdropFilter)||p(n.filter))||a.test(n.willChange||"")||d.test(n.contain||"")}function v(t){let n=C(t);for(;u(n)&&!y(n);){if(w(n))return n;if(s(n))return null;n=C(n)}return null}function h(){return null==m&&(m="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),m}function y(t){return/^(html|body|#document)$/.test(n(t))}function S(t){return e(t).getComputedStyle(t)}function b(t){return c(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function C(t){if("html"===n(t))return t;const e=t.assignedSlot||t.parentNode||l(t)&&t.host||o(t);return l(e)?e.host:e}function E(t){const n=C(t);return y(n)?(t.ownerDocument||t).body:u(n)&&i(n)?n:E(n)}function L(t,n,o){var r;void 0===n&&(n=[]),void 0===o&&(o=!0);const c=E(t),u=c===(null==(r=t.ownerDocument)?void 0:r.body),l=e(c);if(u){const t=T(l);return n.concat(l,l.visualViewport||[],i(c)?c:[],t&&o?L(t):[])}return n.concat(c,L(c,[],o))}function T(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}export{S as getComputedStyle,v as getContainingBlock,o as getDocumentElement,T as getFrameElement,E as getNearestOverflowAncestor,n as getNodeName,b as getNodeScroll,L as getOverflowAncestors,C as getParentNode,e as getWindow,w as isContainingBlock,c as isElement,u as isHTMLElement,y as isLastTraversableNode,r as isNode,i as isOverflowElement,l as isShadowRoot,f as isTableElement,s as isTopLayer,h as isWebKit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=["top","right","bottom","left"],n=Math.min,o=Math.max,r=Math.round,e=Math.floor,
|
|
1
|
+
const t=["top","right","bottom","left"],n=Math.min,o=Math.max,r=Math.round,e=Math.floor,u=t=>({x:t,y:t}),i={left:"right",right:"left",bottom:"top",top:"bottom"};function c(t,r,e){return o(t,n(r,e))}function f(t,n){return"function"==typeof t?t(n):t}function l(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function a(t){return"x"===t?"y":"x"}function s(t){return"y"===t?"height":"width"}function p(t){const n=t[0];return"t"===n||"b"===n?"y":"x"}function g(t){return a(p(t))}function m(t,n,o){void 0===o&&(o=!1);const r=h(t),e=g(t),u=s(e);let i="x"===e?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return n.reference[u]>n.floating[u]&&(i=j(i)),[i,j(i)]}function b(t){const n=j(t);return[d(t),n,d(n)]}function d(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const x=["left","right"],y=["right","left"],w=["top","bottom"],M=["bottom","top"];function v(t,n,o,r){const e=h(t);let u=function(t,n,o){switch(t){case"top":case"bottom":return o?n?y:x:n?x:y;case"left":case"right":return n?w:M;default:return[]}}(l(t),"start"===o,r);return e&&(u=u.map(t=>t+"-"+e),n&&(u=u.concat(u.map(d)))),u}function j(t){const n=l(t);return i[n]+t.slice(n.length)}function k(t){var n,o,r,e;return{top:null!=(n=t.top)?n:0,right:null!=(o=t.right)?o:0,bottom:null!=(r=t.bottom)?r:0,left:null!=(e=t.left)?e:0}}function q(t){return"number"!=typeof t?k(t):{top:t,right:t,bottom:t,left:t}}function z(t){const{x:n,y:o,width:r,height:e}=t;return{width:r,height:e,top:o,left:n,right:n+r,bottom:o+e,x:n,y:o}}export{c as clamp,u as createCoords,f as evaluate,k as expandPaddingObject,e as floor,h as getAlignment,g as getAlignmentAxis,m as getAlignmentSides,s as getAxisLength,b as getExpandedPlacements,d as getOppositeAlignmentPlacement,a as getOppositeAxis,v as getOppositeAxisPlacements,j as getOppositePlacement,q as getPaddingObject,l as getSide,p as getSideAxis,o as max,n as min,z as rectToClientRect,r as round,t as sides};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{handleBreakpoints as t,values as r}from"../breakpoints/breakpoints.mjs";import o from"../style/style.mjs";import i from"../compose/compose.mjs";function
|
|
1
|
+
import{handleBreakpoints as t,values as r}from"../breakpoints/breakpoints.mjs";import o from"../style/style.mjs";import i from"../compose/compose.mjs";const s=r;function m(t){return t<=1&&0!==t?100*t+"%":t}const n=o({prop:"width",transform:m}),p=r=>{if(void 0!==r.maxWidth&&null!==r.maxWidth){const o=t=>{const o=r.theme?.breakpoints?.values?.[t]||s[t];return o?"px"!==r.theme?.breakpoints?.unit?{maxWidth:`${o}${r.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:m(t)}};return t(r,r.maxWidth,o)}return null};p.filterProps=["maxWidth"];const e=o({prop:"minWidth",transform:m}),a=o({prop:"height",transform:m}),h=o({prop:"maxHeight",transform:m}),f=o({prop:"minHeight",transform:m});o({prop:"size",cssProperty:"width",transform:m}),o({prop:"size",cssProperty:"height",transform:m});const c=o({prop:"boxSizing"});i(n,p,e,a,h,f,c);export{c as boxSizing,a as height,h as maxHeight,p as maxWidth,f as minHeight,e as minWidth,m as sizingTransform,n as width};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getPath as n}from"../style/style.mjs";import{iterateBreakpoints as r}from"../breakpoints/breakpoints.mjs";import e from"../responsivePropType/responsivePropType.mjs";const t={internal_cache:{}},o={m:"margin",p:"padding"},i={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},a={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},
|
|
1
|
+
import{getPath as n}from"../style/style.mjs";import{iterateBreakpoints as r}from"../breakpoints/breakpoints.mjs";import e from"../responsivePropType/responsivePropType.mjs";const t={internal_cache:{}},o={m:"margin",p:"padding"},i={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},a={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},s={};for(const n in o)s[n]=[o[n]];for(const n in o)for(const r in i){const e=o[n],t=i[r],a=Array.isArray(t)?t.map(n=>e+n):[e+t];s[n+r]=a}for(const n in a)s[n]=s[a[n]];const p=new Set(["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"]),c=new Set(["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"]),d=new Set([...p,...c]);function m(r,e,t,o){const i=n(r,e,!0)??t;return"number"==typeof i||"string"==typeof i?n=>"string"==typeof n?n:("production"!==process.env.NODE_ENV&&"number"!=typeof n&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${n}.`),"string"==typeof i?i.startsWith("var(")&&0===n?0:i.startsWith("var(")&&1===n?i:`calc(${n} * ${i})`:i*n):Array.isArray(i)?n=>{if("string"==typeof n)return n;const r=Math.abs(n);"production"!==process.env.NODE_ENV&&(Number.isInteger(r)?r>i.length-1&&console.error([`MUI: The value provided (${r}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${r} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${e}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${e}\` as a number.`].join("\n")));const t=i[r];return n>=0?t:"number"==typeof t?-t:"string"==typeof t&&t.startsWith("var(")?`calc(-1 * ${t})`:`-${t}`}:"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${e}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function g(n){return m(n,"spacing",8,"spacing")}function u(n,r){return"string"==typeof r||null==r?r:n(r)}const l=[""];function f(n,e){const o=n.theme??t,i=o?.internal_cache?.unarySpacing??g(o),a={};for(const t in n){if(!e.has(t))continue;const o=s[t]??(l[0]=t,l),p=n[t];r(a,n.theme,p,(n,r)=>{const e=n?a[n]:a;for(let n=0;n<o.length;n+=1)e[o[n]]=u(i,r)})}return a}function y(n){return f(n,p)}y.propTypes="production"!==process.env.NODE_ENV?Array.from(p).reduce((n,r)=>(n[r]=e,n),{}):{},y.filterProps=p;const h=y;function v(n){return f(n,c)}v.propTypes="production"!==process.env.NODE_ENV?Array.from(c).reduce((n,r)=>(n[r]=e,n),{}):{},v.filterProps=c;const b=v;"production"===process.env.NODE_ENV||Array.from(d).reduce((n,r)=>(n[r]=e,n),{});export{g as createUnarySpacing,m as createUnaryUnit,u as getValue,h as margin,p as marginKeys,b as padding,c as paddingKeys};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function t(r,o){const e=Array.isArray(o),c=Array.isArray(r);return"object"!=typeof(u=o)||null===u?o:function(t){return"object"!=typeof t||null===t||t instanceof RegExp||t instanceof Date}(r)?n(o):e&&c?function(t,r){const o=t.length;for(let e=0;e<r.length;e+=1)t[o+e]=n(r[e]);return t}(r,o):e!==c?n(o):function(r,o){for(const e in o)"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(r[e]=e in r?t(r[e],o[e]):n(o[e]));return r}(r,o);var u}function n(t){return"object"!=typeof(r=t)||null===r||r instanceof RegExp||r instanceof Date?t:Array.isArray(t)?function(t){let r=0;const o=t.length,e=new Array(o);for(r=0;r<o;r+=1)e[r]=n(t[r]);return e}(t):function(t){const r={};for(const o in t)"__proto__"!==o&&"constructor"!==o&&"prototype"!==o&&(r[o]=n(t[o]));return r}(t);var r}export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import s from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import*as i from"react";import o from"../../../../_virtual/index.mjs";import{useUtilityClasses as r}from"./barClasses.mjs";import{useItemHighlightState as t}from"../hooks/useItemHighlightState.mjs";import{AnimatedBarElement as n}from"./AnimatedBarElement.mjs";import{useIsItemFocused as
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import s from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import*as i from"react";import o from"../../../../_virtual/index.mjs";import{useUtilityClasses as r}from"./barClasses.mjs";import{useItemHighlightState as t}from"../hooks/useItemHighlightState.mjs";import{AnimatedBarElement as n}from"./AnimatedBarElement.mjs";import{useIsItemFocused as d}from"../hooks/useIsItemFocused.mjs";import{jsx as a}from"react/jsx-runtime";import l from"../../utils/useSlotProps/useSlotProps.mjs";const m=["seriesId","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height","hidden"];function p(o){const{seriesId:p,dataIndex:u,classes:c,color:h,slots:x,slotProps:g,style:b,onClick:y,skipAnimation:I,layout:f,x:j,xOrigin:k,y:O,yOrigin:P,width:q,height:R,hidden:w}=o,A=s(o,m),S=i.useMemo(()=>({type:"bar",seriesId:p,dataIndex:u}),[p,u]),v=t(S),C="highlighted"===v,F="faded"===v,E=d(S),N={seriesId:p,dataIndex:u,classes:c,color:h,isFaded:F,isHighlighted:C,isFocused:E},H=r(N),T=x?.bar??n,_=l({elementType:T,externalSlotProps:g?.bar,externalForwardedProps:A,additionalProps:{seriesId:p,dataIndex:u,color:h,x:j,xOrigin:k,y:O,yOrigin:P,width:q,height:R,style:b,onClick:y,cursor:y?"pointer":void 0,stroke:"none",fill:h,skipAnimation:I,layout:f,hidden:w},className:H.element,ownerState:N});return a(T,e({},_))}"production"!==process.env.NODE_ENV&&(p.propTypes={classes:o.object,dataIndex:o.number.isRequired,hidden:o.bool,layout:o.oneOf(["horizontal","vertical"]).isRequired,seriesId:o.string.isRequired,skipAnimation:o.bool.isRequired,slotProps:o.object,slots:o.object,xOrigin:o.number.isRequired,yOrigin:o.number.isRequired});export{p as BarElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createCommonKeyboardFocusHandler as o}from"../../../internals/createCommonKeyboardFocusHandler.mjs";import{composableCartesianSeriesTypes as e}from"../../../models/seriesType/composition.mjs";const m=o(e);export{m as default};
|
|
1
|
+
import{createCommonKeyboardFocusHandler as o}from"../../../internals/createCommonKeyboardFocusHandler.mjs";import{composableCartesianSeriesTypes as e}from"../../../models/seriesType/composition.mjs";const m=o(e,!1,!1);export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createGetBarDimensions as e}from"../../../internals/createGetBarDimensions.mjs";const
|
|
1
|
+
import{createGetBarDimensions as e}from"../../../internals/createGetBarDimensions.mjs";import{selectorChartsTooltipItem as r}from"../../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";import{selectorChartXAxis as s,selectorChartYAxis as t}from"../../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";import{createSelectorMemoized as i}from"../../../../x-internals/store/createSelector.mjs";import{selectorChartSeriesProcessed as n}from"../../../internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs";const a=i(r,n,s,t,function(r,s,t,i,n){if(!r||"bar"!==r.type||void 0===r.dataIndex)return null;const a=s.bar?.series[r.seriesId];if(!s.bar||!a)return null;const o=t.axis[a.xAxisId??t.axisIds[0]],u=i.axis[a.yAxisId??i.axisIds[0]];if(!o||!u)return null;const l=s.bar.stackingGroups.findIndex(e=>e.ids.includes(a.id)),c=e({verticalLayout:"vertical"===a.layout,xAxisConfig:o,yAxisConfig:u,series:a,numberOfGroups:s.bar.stackingGroups.length})(r.dataIndex,l);if(null==c)return null;const{x:x,y:d,width:f,height:m}=c;switch(n){case"right":return{x:x+f,y:d+m/2};case"bottom":return{x:x+f/2,y:d+m};case"left":return{x:x,y:d+m/2};default:return{x:x+f/2,y:d}}});export{a as selectorTooltipItemPosition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getExtremumY as r,getExtremumX as e}from"./bar/extremums.mjs";import t from"./bar/seriesProcessor.mjs";import i from"./bar/legend.mjs";import o from"./bar/getColor.mjs";import s from"./bar/keyboardFocusHandler.mjs";import m,{axisTooltipGetter as a}from"./bar/tooltip.mjs";import l
|
|
1
|
+
import{getExtremumY as r,getExtremumX as e}from"./bar/extremums.mjs";import t from"./bar/seriesProcessor.mjs";import i from"./bar/legend.mjs";import o from"./bar/getColor.mjs";import s from"./bar/keyboardFocusHandler.mjs";import m,{axisTooltipGetter as a}from"./bar/tooltip.mjs";import{selectorTooltipItemPosition as l}from"./bar/tooltipPosition.mjs";import{getSeriesWithDefaultValues as n}from"./bar/getSeriesWithDefaultValues.mjs";import{selectorBarItemAtPosition as p}from"../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs";import{identifierSerializerSeriesIdDataIndex as f}from"../../internals/identifierSerializer.mjs";import{identifierCleanerSeriesIdDataIndex as u}from"../../internals/identifierCleaner.mjs";import g from"./bar/descriptionGetter.mjs";import{createIsFaded as d}from"../../internals/plugins/featurePlugins/useChartHighlight/createIsFaded.mjs";import{createIsHighlighted as h}from"../../internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.mjs";const j={seriesProcessor:t,colorProcessor:o,legendGetter:i,tooltipGetter:m,selectorTooltipItemPosition:l,axisTooltipGetter:a,xExtremumGetter:e,yExtremumGetter:r,getSeriesWithDefaultValues:n,getItemAtPosition:p,identifierSerializer:f,identifierCleaner:u,descriptionGetter:g,keyboardFocusHandler:s,isHighlightedCreator:h,isFadedCreator:d};export{j as barSeriesConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"./seriesConfig/bar/getColor.mjs";import{useXAxes as
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as t from"react";import s from"./seriesConfig/bar/getColor.mjs";import{useXAxes as i,useYAxes as a}from"../hooks/useAxis.mjs";import{checkBarChartScaleErrors as r}from"./checkBarChartScaleErrors.mjs";import{useBarSeriesContext as o}from"../hooks/useBarSeries.mjs";import{createGetBucketBarDimensions as n,createGetBarDimensions as l}from"../internals/createGetBarDimensions.mjs";import{useChartId as m}from"../hooks/useChartId.mjs";import{useStore as h}from"../internals/store/useStore.mjs";import{selectorChartSamplingPyramids as d,getFullRangeZoom as u}from"../internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs";import{selectorChartZoomMap as c,selectorChartZoomOptionsLookup as g}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";import{selectorChartSeriesConfig as f}from"../internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs";function p(e,s,r){const n=o()??{series:{},stackingGroups:[]},l=i().xAxisIds[0],u=a().yAxisIds[0],p=m(),b=h(),v=b.use(d),y=b.use(c),C=b.use(g),M=b.use(f).bar?.sampler;return t.useMemo(()=>x(e,p,n.stackingGroups,n.series,s,r,l,u,v,y,M,C),[e,p,n.stackingGroups,n.series,s,r,l,u,v,y,M,C])}function x(t,i,a,o,m,h,d,c,g={},f,p,x){const b={};return{completedData:a.flatMap(({ids:v},y)=>{const C=t.left,M=t.left+t.width,k=t.top,I=t.top+t.height,S=new Map,j=new Map;return v.map(v=>{const A=o[v].xAxisId??d,w=o[v].yAxisId??c,P=o[v].layout,O=m[A],G=h[w],L="vertical"===o[v].layout,D=(L?G.reverse:O.reverse)??!1;r(L,v,o[v].stackedData.length,A,m,w,h);const R=L?O:G,$=O.scale,B=G.scale,N=Math.round($(0)??0),_=Math.round(B(0)??0),z=s(o[v],m[A],h[w]),E=o[v].stack,q=[],F=(e,t)=>{if(e.x>M||e.x+e.width<C||e.y>I||e.y+e.height<k)return;const s=S.get(t),i=j.get(t),a=(D?-1:1)*Math.sign(e.value??0);a>0?(i&&delete i.borderRadiusSide,e.borderRadiusSide=L?"top":"right",j.set(t,e)):a<0&&(s&&delete s.borderRadiusSide,e.borderRadiusSide=L?"bottom":"left",S.set(t,e)),b[e.maskId]||(b[e.maskId]={id:e.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:P,xOrigin:N,yOrigin:_,x:0,y:0});const r=b[e.maskId];r.width="vertical"===P?e.width:r.width+e.width,r.height="vertical"===P?r.height+e.height:e.height,r.x=Math.min(0===r.x?1/0:r.x,e.x),r.y=Math.min(0===r.y?1/0:r.y,e.y);const o=e.value??0;r.hasNegative=r.hasNegative||(D?o>0:o<0),r.hasPositive=r.hasPositive||(D?o<0:o>0),q.push(e)},H=(t,s)=>e({seriesId:v,dataIndex:t,hidden:o[v].hidden},s,{color:z(t),value:o[v].data[t],maskId:`${i}_${E||v}_${y}_${t}`}),J=g[v],K=L?A:w,Q=f?.get(K)??(J?u(K):void 0),T=L?t.width:t.height,U=x?.[K]?.minSpan??0,V=J&&Q&&p?.sample?p.sample({built:J,zoom:Q,availableSize:T,minSpan:U}):null;if(V){const e=n({verticalLayout:L,xAxisConfig:O,yAxisConfig:G,series:o[v],numberOfGroups:a.length}),t=o[v].visibleStackedData;for(const{startIndex:s,endIndex:i,indices:a}of V){let r=1/0,o=-1/0;for(let e=0;e<a.length;e+=1){const s=t[a[e]];r=Math.min(r,s[0],s[1]),o=Math.max(o,s[0],s[1])}F(H(s,e(s,i,r,o,y)),s)}}else{const e=l({verticalLayout:L,xAxisConfig:O,yAxisConfig:G,series:o[v],numberOfGroups:a.length}),t=R.data,s=t.length;let i=0,r=s-1;if(s>1){const e=R.scale,a=e(t[0]),o=e(t[1])-a;if(0!==o){const e=((L?C:k)-a)/o,t=((L?M:I)-a)/o;i=Math.max(0,Math.floor(Math.min(e,t))-1),r=Math.min(s-1,Math.ceil(Math.max(e,t))+1)}}for(let t=i;t<=r;t+=1){const s=e(t,y);null!=s&&F(H(t,s),t)}}return{seriesId:v,barLabel:o[v].barLabel,barLabelPlacement:o[v].barLabelPlacement,data:q,layout:P,xOrigin:N,yOrigin:_}})}),masksData:Object.values(b)}}export{x as processBarDataForPlot,p as useBarPlotData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{getValueToPositionMapper as
|
|
1
|
+
import*as e from"react";import{getValueToPositionMapper as t}from"../hooks/getValueToPositionMapper.mjs";import{isOrdinalScale as s}from"../internals/scaleGuards.mjs";import{useStore as a}from"../internals/store/useStore.mjs";import{ChartsAxisHighlightPath as r}from"./ChartsAxisHighlightPath.mjs";import{getSampledBandHighlight as i}from"./getSampledBandHighlight.mjs";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{useDrawingArea as l}from"../hooks/useDrawingArea.mjs";import{selectorChartsHighlightXAxisValue as m}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.mjs";import{selectorChartXAxis as h}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";import{selectorChartHighlightBucketSize as u}from"../internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs";function p(p){const{type:d,classes:g}=p,{top:c,height:f}=l(),x=a(),C=x.use(m),j=x.use(h),$=x.use(u);return 0===C.length?null:C.map(a=>{const{axisId:l,value:m}=a,h=j.axis[l],u=h.scale,p=t(u),x="band"===d&&null!==m&&s(u);if("production"!==process.env.NODE_ENV){x&&void 0===u(m)&&console.error(["MUI X Charts: The position value provided for the axis is not valid for the current scale.","This probably means something is wrong with the data passed to the chart.","The ChartsAxisHighlight component will not be displayed."].join("\n"))}let C=0,b=0;return x&&({bandStart:C,bandSize:b}=i({scale:u,value:m,dataIndex:a.dataIndex,data:h.data,bucketSize:$.get(l)??1})),o(e.Fragment,{children:[x&&void 0!==u(m)&&n(r,{d:`M ${C} ${c} l ${b} 0 l 0 ${f} l ${-b} 0 Z`,className:g.root,ownerState:{axisHighlight:"band"}}),"line"===d&&null!==m&&n(r,{d:`M ${p(m)} ${c} L ${p(m)} ${c+f}`,className:g.root,ownerState:{axisHighlight:"line"}})]},`${l}-${m}`)})}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{getValueToPositionMapper as
|
|
1
|
+
import*as e from"react";import{getValueToPositionMapper as t}from"../hooks/getValueToPositionMapper.mjs";import{isOrdinalScale as s}from"../internals/scaleGuards.mjs";import{useStore as a}from"../internals/store/useStore.mjs";import{ChartsAxisHighlightPath as r}from"./ChartsAxisHighlightPath.mjs";import{getSampledBandHighlight as i}from"./getSampledBandHighlight.mjs";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{useDrawingArea as l}from"../hooks/useDrawingArea.mjs";import{selectorChartsHighlightYAxisValue as m}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.mjs";import{selectorChartYAxis as h}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";import{selectorChartHighlightBucketSize as u}from"../internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs";function d(d){const{type:p,classes:g}=d,{left:c,width:f}=l(),x=a(),C=x.use(m),j=x.use(h),$=x.use(u);return 0===C.length?null:C.map(a=>{const{axisId:l,value:m}=a,h=j.axis[l],u=h.scale,d=t(u),x="band"===p&&null!==m&&s(u);if("production"!==process.env.NODE_ENV){x&&void 0===u(m)&&console.error(["MUI X Charts: The position value provided for the axis is not valid for the current scale.","This probably means something is wrong with the data passed to the chart.","The ChartsAxisHighlight component will not be displayed."].join("\n"))}let C=0,b=0;return x&&({bandStart:C,bandSize:b}=i({scale:u,value:m,dataIndex:a.dataIndex,data:h.data,bucketSize:$.get(l)??1})),o(e.Fragment,{children:[x&&void 0!==u(m)&&n(r,{d:`M ${c} ${C} l 0 ${b} l ${f} 0 l 0 ${-b} Z`,className:g.root,ownerState:{axisHighlight:"band"}}),"line"===p&&null!==m&&n(r,{d:`M ${c} ${d(m)} L ${c+f} ${d(m)}`,className:g.root,ownerState:{axisHighlight:"line"}})]},`${l}-${m}`)})}export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getSampledBucketRegion as t}from"../internals/getSampledBucketRegion.mjs";function e({scale:e,value:n,dataIndex:i,data:a,bucketSize:o}){const r=e.step(),c=(r-e.bandwidth())/2;let d=e(n)-c,f=r;if(o>1&&a){const r=i??function(t,e){if(e instanceof Date){const n=e.getTime();return t.findIndex(t=>t instanceof Date&&t.getTime()===n)}return t.indexOf(e)}(a,n);if(r>=0){const n=Math.floor(r/o)*o,i=Math.min(n+o-1,a.length-1),{regionStart:c,regionSize:s}=t(e,a,n,i);d=c,f=s}}return{bandStart:d,bandSize:f}}export{e as getSampledBandHighlight};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"../../../@babel/runtime/helpers/esm/extends.mjs";import"react";import
|
|
1
|
+
import r from"../../../@babel/runtime/helpers/esm/extends.mjs";import"react";import e from"../../../../_virtual/index.mjs";import{defaultSlotsMaterial as t}from"../internals/material/index.mjs";import{ChartsSlotsProvider as o}from"../context/ChartsSlotsContext.mjs";import{useChartsDataProviderProps as s}from"./useChartsDataProviderProps.mjs";import{jsx as i}from"react/jsx-runtime";import{ChartsProvider as a}from"../context/ChartsProvider/ChartsProvider.mjs";import{ChartsLocalizationProvider as n}from"../ChartsLocalizationProvider/ChartsLocalizationProvider.mjs";function m(e){const{children:m,localeText:l,chartProviderProps:p,slots:c,slotProps:h}=s(e);return i(a,r({},p,{children:i(n,{localeText:l,children:i(o,{slots:c,slotProps:h,defaultSlots:t,children:m})})}))}"production"!==process.env.NODE_ENV&&(m.propTypes={apiRef:e.shape({current:e.any}),colors:e.oneOfType([e.arrayOf(e.string),e.func]),dataset:e.arrayOf(e.object),experimentalFeatures:e.any,height:e.number,id:e.string,localeText:e.object,margin:e.oneOfType([e.number,e.shape({bottom:e.number,left:e.number,right:e.number,top:e.number})]),series:e.arrayOf(e.object),skipAnimation:e.bool,slotProps:e.object,slots:e.object,theme:e.oneOf(["dark","light"]),width:e.number});export{m as ChartsDataProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"../../../@babel/runtime/helpers/esm/extends.mjs";import o from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import r from"../../../../_virtual/index.mjs";import{clsx as t}from"../../../clsx/dist/clsx.mjs";import{useThemeProps as e}from"@mui/material/styles";import{getChartsGridUtilityClass as i}from"./chartsGridClasses.mjs";import{useDrawingArea as m}from"../hooks/useDrawingArea.mjs";import{GridRoot as a}from"./styledComponents.mjs";import{ChartsGridVertical as l}from"./ChartsVerticalGrid.mjs";import{ChartsGridHorizontal as n}from"./ChartsHorizontalGrid.mjs";import{useXAxes as p,useYAxes as c}from"../hooks/useAxis.mjs";import{jsxs as h,jsx as f}from"react/jsx-runtime";import d from"../../utils/composeClasses/composeClasses.mjs";const x=["className","vertical","horizontal"];function j(r){const j=e({props:r,name:"MuiChartsGrid"}),u=m(),{className:b,vertical:v,horizontal:C}=j,z=o(j,x),{xAxis:A,xAxisIds:
|
|
1
|
+
import s from"../../../@babel/runtime/helpers/esm/extends.mjs";import o from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import r from"../../../../_virtual/index.mjs";import{clsx as t}from"../../../clsx/dist/clsx.mjs";import{useThemeProps as e}from"@mui/material/styles";import{getChartsGridUtilityClass as i}from"./chartsGridClasses.mjs";import{useDrawingArea as m}from"../hooks/useDrawingArea.mjs";import{GridRoot as a}from"./styledComponents.mjs";import{ChartsGridVertical as l}from"./ChartsVerticalGrid.mjs";import{ChartsGridHorizontal as n}from"./ChartsHorizontalGrid.mjs";import{useXAxes as p,useYAxes as c}from"../hooks/useAxis.mjs";import{jsxs as h,jsx as f}from"react/jsx-runtime";import d from"../../utils/composeClasses/composeClasses.mjs";const x=["className","vertical","horizontal"];function j(r){const j=e({props:r,name:"MuiChartsGrid"}),u=m(),{className:b,vertical:v,horizontal:C}=j,z=o(j,x),{xAxis:A,xAxisIds:N}=p(),{yAxis:y,yAxisIds:L}=c(),G=(({classes:s})=>d({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},i,s))(j),g=y[L[0]],k=A[N[0]];return h(a,s({},z,{className:t(G.root,b),children:[v&&f(l,{axis:k,start:u.top,end:u.height+u.top,classes:G}),C&&f(n,{axis:g,start:u.left,end:u.width+u.left,classes:G})]}))}"production"!==process.env.NODE_ENV&&(j.propTypes={classes:r.object,className:r.string,horizontal:r.bool,vertical:r.bool});export{j as ChartsGrid};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import*as n from"react";import
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import*as n from"react";import r from"../../../../_virtual/index.mjs";import{getWordsByLines as o}from"../internals/getWordsByLines.mjs";import{jsx as s}from"react/jsx-runtime";import{useIsHydrated as i}from"../../x-internals/useIsHydrated/useIsHydrated.mjs";const a=["x","y","style","text","ownerState"],m=["angle","textAnchor","dominantBaseline"];function l(r){const{x:l,y:d,style:p,text:c}=r,x=t(r,a),h=p??{},{angle:u,textAnchor:y,dominantBaseline:g}=h,b=t(h,m),f=i(),j=n.useMemo(()=>o({style:b,needsComputation:f&&c.includes("\n"),text:c}),[b,c,f]);let B;switch(g){case"hanging":case"text-before-edge":B=0;break;case"central":B=(j.length-1)/2*-j[0].height;break;default:B=(j.length-1)*-j[0].height}return s("text",e({},x,{transform:u?`rotate(${u}, ${l}, ${d})`:void 0,x:l,y:d,textAnchor:y,dominantBaseline:g,style:b,children:j.map((e,t)=>s("tspan",{x:l,dy:`${0===t?B:j[0].height}px`,dominantBaseline:g,children:e.text},t))}))}"production"!==process.env.NODE_ENV&&(l.propTypes={lineHeight:r.number,needsComputation:r.bool,ownerState:r.any,style:r.object,text:r.string.isRequired});export{l as ChartsText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../../_virtual/index.mjs";import s from"@mui/material/Typography";import{clsx as r}from"../../../clsx/dist/clsx.mjs";import{useUtilityClasses as
|
|
1
|
+
import e from"../../../../_virtual/index.mjs";import s from"@mui/material/Typography";import{clsx as r}from"../../../clsx/dist/clsx.mjs";import{useUtilityClasses as a}from"./chartsTooltipClasses.mjs";import{ChartsTooltipPaper as o,ChartsTooltipTable as t,ChartsTooltipRow as n,ChartsTooltipCell as i}from"./ChartsTooltipTable.mjs";import{useAxesTooltip as l}from"./useAxesTooltip.mjs";import{ChartsLabelMark as m}from"../ChartsLabel/ChartsLabelMark.mjs";import{useStore as c}from"../internals/store/useStore.mjs";import{jsx as u,jsxs as p}from"react/jsx-runtime";import{selectorChartSeriesConfigGetter as d}from"../internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs";function f(e){const{sort:r}=e,n=a(e.classes),i=c().use(d),m=l();return null===m?null:u(o,{sx:e.sx,className:n.paper,children:m.map(({axisId:a,mainAxis:o,axisValue:l,axisFormattedValue:m,seriesItems:c})=>{const d=r&&"none"!==r?[...c].sort((e,s)=>{const a=e.value?.valueOf(),o=s.value?.valueOf();return"number"!=typeof a?1:"number"!=typeof o?-1:"asc"===r?a-o:o-a}):c;return p(t,{className:n.table,children:[null!=l&&!o.hideTooltip&&u(s,{component:"caption",children:m}),u("tbody",{children:d.map(s=>{const r=i(s.seriesId),a=r&&"AxisTooltipContent"in r?r.AxisTooltipContent??h:h;return u(a,{classes:e.classes,item:s},s.seriesId)})})]},a)})})}function h(e){const s=a(e.classes),{item:o}=e;return null==o.formattedValue||"string"!=typeof o.formattedValue?null:p(n,{className:s.row,"data-series":o.seriesId,"data-index":"dataIndex"in o?o.dataIndex:void 0,children:[p(i,{className:r(s.labelCell,s.cell),component:"th",children:[u("div",{className:s.markContainer,children:u(m,{type:o.markType,markShape:o.markShape,color:o.color,className:s.mark})}),o.formattedLabel||null]}),u(i,{className:r(s.valueCell,s.cell),component:"td",children:o.formattedValue})]})}"production"!==process.env.NODE_ENV&&(h.propTypes={classes:e.object,item:e.shape({color:e.string.isRequired,formattedLabel:e.string,formattedValue:e.string.isRequired,markShape:e.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),markType:e.oneOfType([e.oneOf(["circle","line","line+mark","square"]),e.func]),seriesId:e.string.isRequired,value:e.oneOfType([e.number,e.shape({colorValue:e.any,id:e.oneOfType([e.number,e.string]),sizeValue:e.any,x:e.number.isRequired,y:e.number.isRequired,z:e.any})])}).isRequired}),"production"!==process.env.NODE_ENV&&(f.propTypes={classes:e.object,sort:e.oneOf(["asc","desc","none"]),sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object])});export{f as ChartsAxisTooltipContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import r from"../../../../_virtual/index.mjs";import{clsx as a}from"../../../clsx/dist/clsx.mjs";import s from"@mui/material/Typography";import{useUtilityClasses as
|
|
1
|
+
import*as e from"react";import r from"../../../../_virtual/index.mjs";import{clsx as a}from"../../../clsx/dist/clsx.mjs";import s from"@mui/material/Typography";import{useUtilityClasses as i}from"./chartsTooltipClasses.mjs";import{useInternalItemTooltip as n}from"./useItemTooltip.mjs";import{ChartsTooltipPaper as l,ChartsTooltipTable as t,ChartsTooltipRow as o,ChartsTooltipCell as c}from"./ChartsTooltipTable.mjs";import{ChartsLabelMark as m}from"../ChartsLabel/ChartsLabelMark.mjs";import{useStore as d}from"../internals/store/useStore.mjs";import{jsx as p,jsxs as u}from"react/jsx-runtime";import{selectorChartSeriesConfig as f}from"../internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs";function h(e){const{classes:r,sx:a}=e,o=n(),c=d().use(f),h=i(r);if(!o)return null;const k=c[o.identifier.type],q=k&&"ItemTooltipContent"in k?k.ItemTooltipContent:null;if("values"in o){const{label:e,color:i,markType:n,markShape:c}=o,d=q??y;return p(l,{sx:a,className:h.paper,children:u(t,{className:h.table,children:[u(s,{component:"caption",children:[p("div",{className:h.markContainer,children:p(m,{type:n,markShape:c,color:i,className:h.mark})}),e]}),p("tbody",{children:p(d,{classes:r,item:o})})]})})}const N=q??b;return p(l,{sx:a,className:h.paper,children:p(t,{className:h.table,children:p("tbody",{children:p(N,{classes:r,item:o})})})})}function y({classes:r,item:s}){const n=i(r);return p(e.Fragment,{children:s.values.map(e=>u(o,{className:n.row,"data-series":s.identifier.seriesId,"data-index":s.identifier.dataIndex,children:[p(c,{className:a(n.labelCell,n.cell),component:"th",children:e.label}),p(c,{className:a(n.valueCell,n.cell),component:"td",children:e.formattedValue})]},e.label))})}function b({classes:e,item:r}){const{color:s,label:n,formattedValue:l,markType:t,markShape:d}=r,f=i(e);return null==l||"string"!=typeof l?null:u(o,{className:f.row,"data-series":r.identifier.seriesId,"data-index":"dataIndex"in r.identifier?r.identifier.dataIndex:void 0,children:[u(c,{className:a(f.labelCell,f.cell),component:"th",children:[p("div",{className:f.markContainer,children:p(m,{type:t,markShape:d,color:s,className:f.mark})}),n]}),p(c,{className:a(f.valueCell,f.cell),component:"td",children:l})]})}"production"!==process.env.NODE_ENV&&(y.propTypes={classes:r.object,item:r.shape({color:r.string.isRequired,identifier:r.shape({dataIndex:r.number,seriesId:r.string.isRequired,type:r.oneOf(["radar"]).isRequired}).isRequired,label:r.string,markShape:r.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),markType:r.oneOfType([r.oneOf(["circle","line","line+mark","square"]),r.func]),values:r.arrayOf(r.shape({formattedValue:r.string,label:r.string,markShape:r.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),markType:r.oneOfType([r.oneOf(["circle","line","line+mark","square"]),r.func]),value:r.number.isRequired})).isRequired}).isRequired}),"production"!==process.env.NODE_ENV&&(b.propTypes={classes:r.object,item:r.shape({color:r.string.isRequired,formattedValue:r.any.isRequired,identifier:r.shape({dataIndex:r.number,seriesId:r.string.isRequired,type:r.oneOf(["bar","line","pie","radar","scatter"]).isRequired}).isRequired,label:r.string,markShape:r.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),markType:r.oneOfType([r.oneOf(["circle","line","line+mark","square"]),r.func]),value:r.any.isRequired}).isRequired}),"production"!==process.env.NODE_ENV&&(h.propTypes={classes:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});export{h as ChartsItemTooltipContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import o from"../../../../_virtual/index.mjs";import{ChartsItemTooltipContent as r}from"./ChartsItemTooltipContent.mjs";import{ChartsAxisTooltipContent as s}from"./ChartsAxisTooltipContent.mjs";import{ChartsTooltipContainer as
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import o from"../../../../_virtual/index.mjs";import{ChartsItemTooltipContent as r}from"./ChartsItemTooltipContent.mjs";import{ChartsAxisTooltipContent as s}from"./ChartsAxisTooltipContent.mjs";import{ChartsTooltipContainer as i}from"./ChartsTooltipContainer.mjs";import{useUtilityClasses as n}from"./chartsTooltipClasses.mjs";import{jsx as a}from"react/jsx-runtime";import{formatErrorMessage as p}from"../../x-internals/formatErrorMessage/formatErrorMessage.mjs";import f from"../../utils/HTMLElementType/HTMLElementType.mjs";const c=["classes","trigger","sort"];function d(o){const{classes:p,trigger:f="axis",sort:d}=o,m=t(o,c),u=n(p);return a(i,e({},m,{trigger:f,classes:p,children:"axis"===f?a(s,{classes:u,sort:d}):a(r,{classes:u})}))}"production"!==process.env.NODE_ENV&&(d.propTypes={anchor:o.oneOf(["chart","node","pointer"]),anchorEl:o.oneOfType([f,o.object,o.func]),classes:o.object,component:o.elementType,container:o.oneOfType([(e,t)=>null==e[t]?new Error("production"!==process.env.NODE_ENV?`Prop '${t}' is required but wasn't specified`:p(6,t)):"object"!=typeof e[t]||1!==e[t].nodeType?new Error("production"!==process.env.NODE_ENV?`Expected prop '${t}' to be of type Element`:p(49,t)):null,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:o.oneOfType([o.func,o.shape({current:o.shape({destroy:o.func.isRequired,forceUpdate:o.func.isRequired,setOptions:o.func.isRequired,state:o.shape({attributes:o.object.isRequired,elements:o.object.isRequired,modifiersData:o.object.isRequired,options:o.object.isRequired,orderedModifiers:o.arrayOf(o.object).isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]).isRequired,rects:o.object.isRequired,reset:o.bool.isRequired,scrollParents:o.object.isRequired,strategy:o.oneOf(["absolute","fixed"]).isRequired,styles:o.object.isRequired}).isRequired,update:o.func.isRequired})})]),position:o.oneOf(["bottom","left","right","top"]),slotProps:o.object,slots:o.object,sort:o.oneOf(["asc","desc","none"]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool,trigger:o.oneOf(["axis","item","none"])});export{d as ChartsTooltip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import*as
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs";import*as r from"react";import{createElement as o}from"react";import*as s from"react-dom";import n from"../../../../_virtual/index.mjs";import{useThemeProps as i,styled as a}from"@mui/material/styles";import p from"@mui/material/Popper";import l from"@mui/material/NoSsr";import{useIsFineMainPointer as u}from"./utils.mjs";import{useUtilityClasses as m}from"./chartsTooltipClasses.mjs";import{useStore as c}from"../internals/store/useStore.mjs";import{selectorChartsInteractionAxisTooltip as f,selectorChartsTooltipAxisPosition as d}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs";import{selectorChartsInteractionPolarAxisTooltip as h}from"../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs";import{useAxisSystem as b}from"../hooks/useAxisSystem.mjs";import{jsxs as g,jsx as y}from"react/jsx-runtime";import{warnOnce as j}from"../../x-internals/warning/warning.mjs";import{useChartsLayerContainerRef as x}from"../hooks/useChartsLayerContainerRef.mjs";import{selectorChartsPointerType as E,selectorChartsLastInteraction as O}from"../internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.mjs";import C from"../../utils/useLazyRef/useLazyRef.mjs";import{selectorBrushShouldPreventTooltip as R}from"../internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.mjs";import{selectorChartsTooltipItem as T,selectorChartsTooltipItemIsDefined as v}from"../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";import{selectorChartSeriesConfig as q}from"../internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs";import P from"../../utils/useEnhancedEffect/useEnhancedEffect.mjs";import{rafThrottle as M}from"../../x-internals/rafThrottle/rafThrottle.mjs";import{formatErrorMessage as w}from"../../x-internals/formatErrorMessage/formatErrorMessage.mjs";import I from"../../utils/HTMLElementType/HTMLElementType.mjs";const N=["trigger","position","anchor","classes","children"],L=()=>!1,A=()=>null;const S={item:"node",axis:"chart",none:"pointer"},k=a(p,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function D(n){const a=i({props:n,name:"MuiChartsTooltipContainer"}),{trigger:p="axis",position:w,anchor:I="pointer",classes:D,children:_}=a,z=t(a,N),U=c();if("production"!==process.env.NODE_ENV){const e=U.state.tooltip?.itemIsControlled??!1,t=void 0!==U.state.controlledCartesianAxisTooltip;"item"!==p&&e&&j([`MUI X Charts: The \`tooltipItem\` prop is provided, but the tooltip trigger is set to '${p}'.`,"The `tooltipItem` prop only has an effect when the tooltip trigger is 'item'."],"error"),"axis"!==p&&t&&j([`MUI X Charts: The \`tooltipAxis\` prop is provided, but the tooltip trigger is set to '${p}'.`,"The `tooltipAxis` prop only has an effect when the tooltip trigger is 'axis'."],"error")}const V=x(),[$,B]=r.useState(null),W=m(D),X=U.use(E),F=u(),H=r.useRef(null),J=C(()=>({x:0,y:0})),Y=b(),G=U.use(R),K=U.use(function(e,t,r){return r?L:"item"===e?v:"polar"===t?h:"cartesian"===t?f:L}(p,Y,G)),Q="keyboard"===U.use(O)||null===X?S[p]:I,Z=U.use(T),ee=U.use(q),te=Z&&ee[Z.type]?.selectorTooltipItemPosition||A,re=U.use(((e,t)=>{switch(e){case"node":return t;case"chart":return d;default:return A}})(Q,te),a.position),oe=null!==re;r.useEffect(()=>{const e=V.current;if(null===e)return()=>{};if(oe)return;const t=M((e,t)=>{J.current={x:e,y:t},H.current?.update()}),r=e=>{t(e.clientX,e.clientY)};return e.addEventListener("pointermove",r),e.addEventListener("pointerenter",r),()=>{e.removeEventListener("pointermove",r),e.removeEventListener("pointerenter",r),t.clear()}},[V,J,oe]),P(()=>{oe&&H.current?.update()},[oe,re?.x,re?.y]);const se=r.useMemo(()=>({getBoundingClientRect:()=>({x:J.current.x,y:J.current.y,top:J.current.y,left:J.current.x,right:J.current.x,bottom:J.current.y,width:0,height:0,toJSON:()=>""})}),[J]),ne="mouse"===X||F,ie="touch"===X||!F,ae=r.useMemo(()=>[{name:"offset",options:{offset:()=>ie&&!oe?[0,64]:[0,8]}},...ne?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[ne,oe,ie]);return"none"===p?null:g(r.Fragment,{children:[V.current&&s.createPortal(y("div",{ref:B,style:{position:"absolute",display:"hidden",left:re?.x??0,top:re?.y??0,pointerEvents:"none",opacity:0,width:1,height:1}}),V.current),y(l,{children:K&&o(k,e({},z,{key:re?"charts-anchored":"charts-pointer",className:W?.root,open:K,placement:z.placement??w??(!oe&&ne?"right-start":"top"),popperRef:H,anchorEl:re?$:se,modifiers:ae,container:z.container??V.current,popperOptions:e({},z.popperOptions,{strategy:"fixed"})}),_)})]})}"production"!==process.env.NODE_ENV&&(D.propTypes={anchor:n.oneOf(["chart","node","pointer"]),anchorEl:n.oneOfType([I,n.object,n.func]),children:n.node,classes:n.object,component:n.elementType,container:n.oneOfType([(e,t)=>null==e[t]?new Error("production"!==process.env.NODE_ENV?`Prop '${t}' is required but wasn't specified`:w(6,t)):"object"!=typeof e[t]||1!==e[t].nodeType?new Error("production"!==process.env.NODE_ENV?`Expected prop '${t}' to be of type Element`:w(49,t)):null,n.func]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:n.oneOf(["absolute","fixed"])}),popperRef:n.oneOfType([n.func,n.shape({current:n.shape({destroy:n.func.isRequired,forceUpdate:n.func.isRequired,setOptions:n.func.isRequired,state:n.shape({attributes:n.object.isRequired,elements:n.object.isRequired,modifiersData:n.object.isRequired,options:n.object.isRequired,orderedModifiers:n.arrayOf(n.object).isRequired,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]).isRequired,rects:n.object.isRequired,reset:n.bool.isRequired,scrollParents:n.object.isRequired,strategy:n.oneOf(["absolute","fixed"]).isRequired,styles:n.object.isRequired}).isRequired,update:n.func.isRequired})})]),position:n.oneOf(["bottom","left","right","top"]),slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transition:n.bool,trigger:n.oneOf(["axis","item","none"])});export{D as ChartsTooltipContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as r from"react";import{isOrdinalScale as t}from"../internals/scaleGuards.mjs";import{useChartsContext as s}from"../context/ChartsProvider/useChartsContext.mjs";import{TICK_LABEL_GAP as i}from"./utilities.mjs";import{useTicksGrouped as o}from"../hooks/useTicksGrouped.mjs";import{useAxisTicksProps as a}from"./useAxisTicksProps.mjs";import{useStore as n}from"../internals/store/useStore.mjs";import{selectorChartXAxisAutoSizeResults as m}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs";import{getGroupingConfig as c}from"../internals/getGroupingConfig.mjs";import{jsx as l,jsxs as p}from"react/jsx-runtime";import{formatErrorMessage as u}from"../../x-internals/formatErrorMessage/formatErrorMessage.mjs";function d(d){const{xScale:f,defaultizedProps:k,positionSign:x,classes:g,Tick:h,TickLabel:b,axisTickLabelProps:j}=a(d);if(!t(f))throw new Error("production"!==process.env.NODE_ENV?"MUI X Charts: ChartsGroupedXAxis only supports the `band` and `point` scale types. Grouped axis ticks require an ordinal scale to display category groupings. Use a band or point scale type for the x-axis, or use a non-grouped axis component.":u(8));const{disableTicks:y,tickSize:C,valueFormatter:P,slotProps:S,tickInterval:T,tickPlacement:v,tickLabelPlacement:z}=k,A=k.groups,E=k.id,{instance:G}=s(),I=n().use(m),L=E?I[E]:void 0,N=L?.groupTickSizes,M=o({scale:f,tickInterval:T,tickPlacement:v,tickLabelPlacement:z,groups:A});return l(r.Fragment,{children:M.map((r,t)=>{const{offset:s,labelOffset:o}=r,a=o??0,n=G.isXInside(s),m=r.formattedValue,u=r.ignoreTick??!1,d=r.groupIndex??0,f=c(A,d,C,N),k=x*f.tickSize,P=x*(f.tickSize+i);return p("g",{transform:`translate(${s}, 0)`,className:g.tickContainer,"data-group-index":d,children:[!y&&!u&&n&&l(h,e({y2:k,className:g.tick},S?.axisTick)),void 0!==m&&l(b,e({x:a,y:P},j,{style:e({},j.style,f.tickLabelStyle),text:m}))]},t)})})}export{d as ChartsGroupedXAxisTicks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as t from"react";import{useRtl as i}from"../../system/RtlProvider/index.mjs";import{
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as t from"react";import{useRtl as i}from"../../system/RtlProvider/index.mjs";import{useTicks as s}from"../hooks/useTicks.mjs";import{useMounted as r}from"../hooks/useMounted.mjs";import{useDrawingArea as a}from"../hooks/useDrawingArea.mjs";import{useChartsContext as o}from"../context/ChartsProvider/useChartsContext.mjs";import{shortenLabels as m}from"./shortenLabels.mjs";import{getVisibleLabels as c}from"./getVisibleLabels.mjs";import{AXIS_LABEL_TICK_LABEL_GAP as n,TICK_LABEL_GAP as l}from"./utilities.mjs";import{useAxisTicksProps as k}from"./useAxisTicksProps.mjs";import{jsx as p,jsxs as d}from"react/jsx-runtime";import{useIsHydrated as f}from"../../x-internals/useIsHydrated/useIsHydrated.mjs";function u(u){const{axisLabelHeight:b,ordinalTimeTicks:x}=u,{xScale:h,defaultizedProps:j,tickNumber:L,positionSign:v,classes:T,Tick:g,TickLabel:P,axisTickLabelProps:y,reverse:I}=k(u),M=i(),S=r(),{disableTicks:C,tickSize:N,valueFormatter:A,slotProps:F,tickInterval:H,tickLabelInterval:X,tickPlacement:w,tickLabelPlacement:z,tickLabelMinGap:G,tickSpacing:V,height:D}=j,O=a(),{instance:R}=o(),$=f(),q=C?4:N,B=s({scale:h,tickNumber:L,valueFormatter:A,tickInterval:H,tickPlacement:w,tickLabelPlacement:z,tickSpacing:V,direction:"x",ordinalTimeTicks:x}),E=c(B,{tickLabelStyle:y.style,tickLabelInterval:X,tickLabelMinGap:G,reverse:I,isMounted:S,isXInside:R.isXInside}),J=Math.max(0,D-(b>0?b+n:0)-q-l),K=$?m(E,O,J,M,y.style):new Map(Array.from(E).map(e=>[e,e.formattedValue]));return p(t.Fragment,{children:B.map((t,i)=>{const{offset:s,labelOffset:r}=t,a=r??0,o=v*(q+l),m=R.isXInside(s),c=K.get(t),n=E.has(t);return d("g",{transform:`translate(${s}, 0)`,className:T.tickContainer,children:[!C&&m&&p(g,e({y2:v*q,className:T.tick},F?.axisTick)),void 0!==c&&n&&p(P,e({x:a,y:o},y,{text:c}))]},i)})})}export{u as ChartsSingleXAxisTicks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../../_virtual/index.mjs";import{useXAxes as
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../../_virtual/index.mjs";import{useXAxes as i}from"../hooks/useAxis.mjs";import{ChartsXAxisImpl as o}from"./ChartsXAxisImpl.mjs";import{jsx as n}from"react/jsx-runtime";import{warnOnce as r}from"../../x-internals/warning/warning.mjs";function s(t){const{xAxis:s,xAxisIds:a}=i(),c=s[t.axisId??a[0]];return c?n(o,e({},t,{axis:c})):("production"!==process.env.NODE_ENV&&r(`MUI X Charts: No axis found. The axisId "${t.axisId}" is probably invalid.`),null)}"production"!==process.env.NODE_ENV&&(s.propTypes={axis:t.oneOf(["x"]),axisId:t.oneOfType([t.number,t.string]),classes:t.object,className:t.string,disableLine:t.bool,disableTicks:t.bool,label:t.string,labelStyle:t.object,slotProps:t.object,slots:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tickInterval:t.oneOfType([t.oneOf(["auto"]),t.array,t.func]),tickLabelInterval:t.oneOfType([t.oneOf(["auto"]),t.func]),tickLabelMinGap:t.number,tickLabelPlacement:t.oneOf(["middle","tick"]),tickLabelStyle:t.object,tickMaxStep:t.number,tickMinStep:t.number,tickNumber:t.number,tickPlacement:t.oneOf(["end","extremities","middle","start"]),tickSize:t.number,tickSpacing:t.number});export{s as ChartsXAxis};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as r from"react";import{isOrdinalScale as t}from"../internals/scaleGuards.mjs";import{useChartsContext as s}from"../context/ChartsProvider/useChartsContext.mjs";import{TICK_LABEL_GAP as i}from"./utilities.mjs";import{useTicksGrouped as o}from"../hooks/useTicksGrouped.mjs";import{useAxisTicksProps as a}from"./useAxisTicksProps.mjs";import{useStore as n}from"../internals/store/useStore.mjs";import{selectorChartYAxisAutoSizeResults as m}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs";import{getGroupingConfig as c}from"../internals/getGroupingConfig.mjs";import{jsx as l,jsxs as p}from"react/jsx-runtime";import{formatErrorMessage as u}from"../../x-internals/formatErrorMessage/formatErrorMessage.mjs";function d(d){const{yScale:f,defaultizedProps:k,positionSign:g,classes:x,Tick:h,TickLabel:b,axisTickLabelProps:j}=a(d);if(!t(f))throw new Error("production"!==process.env.NODE_ENV?"MUI X Charts: ChartsGroupedYAxis only supports the `band` and `point` scale types. Grouped axis ticks require an ordinal scale to display category groupings. Use a band or point scale type for the y-axis, or use a non-grouped axis component.":u(9));const{disableTicks:y,tickSize:C,valueFormatter:P,slotProps:S,tickInterval:T,tickPlacement:v,tickLabelPlacement:z}=k,A=k.groups,E=k.id,{instance:G}=s(),I=n().use(m),L=E?I[E]:void 0,N=L?.groupTickSizes,M=o({scale:f,tickInterval:T,tickPlacement:v,tickLabelPlacement:z,groups:A});return l(r.Fragment,{children:M.map((r,t)=>{const{offset:s,labelOffset:o}=r,a=o??0,n=G.isYInside(s),m=r.formattedValue,u=r.ignoreTick??!1,d=r.groupIndex??0,f=c(A,d,C,N),k=g*f.tickSize,P=g*(f.tickSize+i);return p("g",{transform:`translate(0, ${s})`,className:x.tickContainer,"data-group-index":d,children:[!y&&!u&&n&&l(h,e({x2:k,className:x.tick},S?.axisTick)),void 0!==m&&l(b,e({x:P,y:a},j,{style:e({},j.style,f.tickLabelStyle),text:m}))]},t)})})}export{d as ChartsGroupedYAxisTicks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as t from"react";import{useRtl as i}from"../../system/RtlProvider/index.mjs";import{
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import*as t from"react";import{useRtl as i}from"../../system/RtlProvider/index.mjs";import{useTicks as r}from"../hooks/useTicks.mjs";import{useDrawingArea as s}from"../hooks/useDrawingArea.mjs";import{shortenLabels as a}from"./shortenLabels.mjs";import{AXIS_LABEL_TICK_LABEL_GAP as o,TICK_LABEL_GAP as m}from"./utilities.mjs";import{useAxisTicksProps as c}from"./useAxisTicksProps.mjs";import{jsx as n,jsxs as l}from"react/jsx-runtime";import{useChartsContext as k}from"../context/ChartsProvider/useChartsContext.mjs";import{useIsHydrated as p}from"../../x-internals/useIsHydrated/useIsHydrated.mjs";function f(f){const{axisLabelHeight:u,ordinalTimeTicks:d}=f,{yScale:x,defaultizedProps:b,tickNumber:h,positionSign:T,classes:j,Tick:P,TickLabel:v,axisTickLabelProps:y}=c(f),g=i(),{disableTicks:L,tickSize:I,valueFormatter:S,slotProps:C,tickPlacement:N,tickLabelPlacement:w,tickInterval:A,tickLabelInterval:F,tickSpacing:H,width:z}=b,M=s(),{instance:D}=k(),O=p(),R=L?4:I,V=r({scale:x,tickNumber:h,valueFormatter:S,tickPlacement:N,tickLabelPlacement:w,tickInterval:A,tickSpacing:H,direction:"y",ordinalTimeTicks:d}),Y=Math.max(0,z-(u>0?u+o:0)-R-m),$=O?a(V,M,Y,g,y.style):new Map(Array.from(V).map(e=>[e,e.formattedValue]));return n(t.Fragment,{children:V.map((t,i)=>{const{offset:r,labelOffset:s,value:a}=t,o=T*(R+m),c=s,k="function"==typeof F&&!F?.(a,i),p=D.isYInside(r),f=$.get(t);return p?l("g",{transform:`translate(0, ${r})`,className:j.tickContainer,children:[!L&&n(P,e({x2:T*R,className:j.tick},C?.axisTick)),void 0!==f&&!k&&n(v,e({x:o,y:c,text:f},y))]},i):null})})}export{f as ChartsSingleYAxisTicks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../../_virtual/index.mjs";import{ChartsYAxisImpl as i}from"./ChartsYAxisImpl.mjs";import{jsx as o}from"react/jsx-runtime";import{useYAxes as n}from"../hooks/useAxis.mjs";import{warnOnce as s}from"../../x-internals/warning/warning.mjs";function r(t){const{yAxis:r,yAxisIds:a}=n(),c=r[t.axisId??a[0]];return c?o(i,e({},t,{axis:c})):("production"!==process.env.NODE_ENV&&s(`MUI X Charts: No axis found. The axisId "${t.axisId}" is probably invalid.`),null)}"production"!==process.env.NODE_ENV&&(r.propTypes={axis:t.oneOf(["y"]),axisId:t.oneOfType([t.number,t.string]),classes:t.object,className:t.string,disableLine:t.bool,disableTicks:t.bool,label:t.string,labelStyle:t.object,slotProps:t.object,slots:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tickInterval:t.oneOfType([t.oneOf(["auto"]),t.array,t.func]),tickLabelInterval:t.oneOfType([t.oneOf(["auto"]),t.func]),tickLabelPlacement:t.oneOf(["middle","tick"]),tickLabelStyle:t.object,tickMaxStep:t.number,tickMinStep:t.number,tickNumber:t.number,tickPlacement:t.oneOf(["end","extremities","middle","start"]),tickSize:t.number,tickSpacing:t.number});export{r as ChartsYAxis};
|