@pibit.ai/cure-design-system 0.6.41 → 0.6.43
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.development.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.js +4 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/_virtual/with-selector3.js +2 -0
- package/dist/_virtual/with-selector4.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +127 -125
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +846 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.js +9 -0
- package/dist/node_modules/d3-array/src/bisector.js +37 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/max.js +9 -0
- package/dist/node_modules/d3-array/src/min.js +9 -0
- package/dist/node_modules/d3-array/src/number.js +11 -0
- package/dist/node_modules/d3-array/src/quantile.js +24 -0
- package/dist/node_modules/d3-array/src/quickselect.js +25 -0
- package/dist/node_modules/d3-array/src/range.js +9 -0
- package/dist/node_modules/d3-array/src/sort.js +16 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-color/src/color.js +305 -0
- package/dist/node_modules/d3-color/src/define.js +12 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.js +68 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/color.js +24 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-path/src/path.js +64 -0
- package/dist/node_modules/d3-scale/src/band.js +51 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.js +75 -0
- package/dist/node_modules/d3-scale/src/diverging.js +68 -0
- package/dist/node_modules/d3-scale/src/identity.js +18 -0
- package/dist/node_modules/d3-scale/src/init.js +32 -0
- package/dist/node_modules/d3-scale/src/linear.js +39 -0
- package/dist/node_modules/d3-scale/src/log.js +86 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.js +38 -0
- package/dist/node_modules/d3-scale/src/quantize.js +31 -0
- package/dist/node_modules/d3-scale/src/radial.js +37 -0
- package/dist/node_modules/d3-scale/src/sequential.js +70 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
- package/dist/node_modules/d3-scale/src/symlog.js +29 -0
- package/dist/node_modules/d3-scale/src/threshold.js +23 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
- package/dist/node_modules/d3-scale/src/time.js +46 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/node_modules/d3-shape/src/area.js +56 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +43 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
- package/dist/node_modules/d3-shape/src/line.js +29 -0
- package/dist/node_modules/d3-shape/src/noop.js +5 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/none.js +9 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
- package/dist/node_modules/d3-shape/src/order/none.js +7 -0
- package/dist/node_modules/d3-shape/src/path.js +18 -0
- package/dist/node_modules/d3-shape/src/point.js +10 -0
- package/dist/node_modules/d3-shape/src/stack.js +35 -0
- package/dist/node_modules/d3-time/src/day.js +26 -0
- package/dist/node_modules/d3-time/src/duration.js +10 -0
- package/dist/node_modules/d3-time/src/hour.js +18 -0
- package/dist/node_modules/d3-time/src/interval.js +31 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/minute.js +18 -0
- package/dist/node_modules/d3-time/src/month.js +17 -0
- package/dist/node_modules/d3-time/src/second.js +11 -0
- package/dist/node_modules/d3-time/src/ticks.js +54 -0
- package/dist/node_modules/d3-time/src/week.js +48 -0
- package/dist/node_modules/d3-time/src/year.js +27 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
- package/dist/node_modules/d3-time-format/src/locale.js +478 -0
- package/dist/node_modules/decimal.js-light/decimal.js +472 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/baseToString.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/hasOwn.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +14 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/objectValues.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +35 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +38 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +7 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +29 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
- package/dist/node_modules/eventemitter3/index.js +5 -0
- package/dist/node_modules/eventemitter3/index2.js +111 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +9 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +575 -0
- package/dist/node_modules/internmap/src/index.js +35 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +98 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +81 -0
- package/dist/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +137 -0
- package/dist/node_modules/recharts/es6/animation/AnimatedItems.js +78 -0
- package/dist/node_modules/recharts/es6/animation/AnimationControllerImpl.js +21 -0
- package/dist/node_modules/recharts/es6/animation/AnimationHandle.js +179 -0
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +84 -0
- package/dist/node_modules/recharts/es6/animation/easing.js +89 -0
- package/dist/node_modules/recharts/es6/animation/matchBy.js +105 -0
- package/dist/node_modules/recharts/es6/animation/timeoutController.js +13 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationController.js +11 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationStartSnapshot.js +20 -0
- package/dist/node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js +14 -0
- package/dist/node_modules/recharts/es6/cartesian/getCartesianPosition.js +141 -0
- package/dist/node_modules/recharts/es6/chart/CategoricalChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PieChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PolarChart.js +144 -0
- package/dist/node_modules/recharts/es6/chart/RechartsWrapper.js +297 -0
- package/dist/node_modules/recharts/es6/component/Cell.js +5 -0
- package/dist/node_modules/recharts/es6/component/Label.js +262 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js +101 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +219 -0
- package/dist/node_modules/recharts/es6/component/Text.js +240 -0
- package/dist/node_modules/recharts/es6/component/responsiveContainerUtils.js +43 -0
- package/dist/node_modules/recharts/es6/container/ClipPathProvider.js +63 -0
- package/dist/node_modules/recharts/es6/container/Layer.js +42 -0
- package/dist/node_modules/recharts/es6/container/RootSurface.js +90 -0
- package/dist/node_modules/recharts/es6/container/Surface.js +51 -0
- package/dist/node_modules/recharts/es6/context/PanoramaContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/RegisterGraphicalItemId.js +12 -0
- package/dist/node_modules/recharts/es6/context/accessibilityContext.js +8 -0
- package/dist/node_modules/recharts/es6/context/chartDataContext.js +14 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +44 -0
- package/dist/node_modules/recharts/es6/context/legendPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/tooltipContext.js +33 -0
- package/dist/node_modules/recharts/es6/context/tooltipPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/hooks.js +6 -0
- package/dist/node_modules/recharts/es6/polar/Pie.js +486 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js +13 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js +15 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js +128 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js +151 -0
- package/dist/node_modules/recharts/es6/state/RechartsReduxContext.js +5 -0
- package/dist/node_modules/recharts/es6/state/RechartsStoreProvider.js +20 -0
- package/dist/node_modules/recharts/es6/state/ReportChartProps.js +12 -0
- package/dist/node_modules/recharts/es6/state/ReportEventSettings.js +13 -0
- package/dist/node_modules/recharts/es6/state/ReportMainChartProps.js +15 -0
- package/dist/node_modules/recharts/es6/state/ReportPolarOptions.js +12 -0
- package/dist/node_modules/recharts/es6/state/SetGraphicalItem.js +17 -0
- package/dist/node_modules/recharts/es6/state/SetLegendPayload.js +18 -0
- package/dist/node_modules/recharts/es6/state/SetTooltipEntrySettings.js +18 -0
- package/dist/node_modules/recharts/es6/state/brushSlice.js +27 -0
- package/dist/node_modules/recharts/es6/state/cartesianAxisSlice.js +148 -0
- package/dist/node_modules/recharts/es6/state/chartDataSlice.js +35 -0
- package/dist/node_modules/recharts/es6/state/errorBarSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/eventSettingsSlice.js +19 -0
- package/dist/node_modules/recharts/es6/state/externalEventsMiddleware.js +58 -0
- package/dist/node_modules/recharts/es6/state/graphicalItemsSlice.js +61 -0
- package/dist/node_modules/recharts/es6/state/hooks.js +19 -0
- package/dist/node_modules/recharts/es6/state/keyboardEventsMiddleware.js +119 -0
- package/dist/node_modules/recharts/es6/state/layoutSlice.js +38 -0
- package/dist/node_modules/recharts/es6/state/legendSlice.js +57 -0
- package/dist/node_modules/recharts/es6/state/mouseEventsMiddleware.js +52 -0
- package/dist/node_modules/recharts/es6/state/optionsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/polarAxisSlice.js +31 -0
- package/dist/node_modules/recharts/es6/state/polarOptionsSlice.js +12 -0
- package/dist/node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js +6 -0
- package/dist/node_modules/recharts/es6/state/referenceElementsSlice.js +44 -0
- package/dist/node_modules/recharts/es6/state/renderedTicksSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/rootPropsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js +16 -0
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +925 -0
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +14 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js +41 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js +22 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js +24 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +137 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/containerSelectors.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisType.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pieSelectors.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +147 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarSelectors.js +36 -0
- package/dist/node_modules/recharts/es6/state/selectors/rootPropsSelectors.js +10 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectActivePropsFromChartPointer.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectAllAxes.js +6 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +123 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectPlotArea.js +15 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipEventType.js +17 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipSettings.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipState.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +62 -0
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +107 -0
- package/dist/node_modules/recharts/es6/state/selectors/touchSelectors.js +15 -0
- package/dist/node_modules/recharts/es6/state/store.js +79 -0
- package/dist/node_modules/recharts/es6/state/tooltipSlice.js +106 -0
- package/dist/node_modules/recharts/es6/state/touchEventsMiddleware.js +72 -0
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +6 -0
- package/dist/node_modules/recharts/es6/state/zIndexSlice.js +102 -0
- package/dist/node_modules/recharts/es6/synchronisation/useChartSynchronisation.js +183 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +71 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +185 -0
- package/dist/node_modules/recharts/es6/util/Constants.js +7 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +89 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
- package/dist/node_modules/recharts/es6/util/Events.js +7 -0
- package/dist/node_modules/recharts/es6/util/Global.js +6 -0
- package/dist/node_modules/recharts/es6/util/LRUCache.js +44 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js +14 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +113 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +24 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +151 -0
- package/dist/node_modules/recharts/es6/util/createEventProxy.js +15 -0
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +10 -0
- package/dist/node_modules/recharts/es6/util/getActiveCoordinate.js +141 -0
- package/dist/node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js +10 -0
- package/dist/node_modules/recharts/es6/util/getClassNameFromUnknown.js +6 -0
- package/dist/node_modules/recharts/es6/util/getRelativeCoordinate.js +31 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +6 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +131 -0
- package/dist/node_modules/recharts/es6/util/isWellBehavedNumber.js +10 -0
- package/dist/node_modules/recharts/es6/util/propsAreEqual.js +43 -0
- package/dist/node_modules/recharts/es6/util/resolveDefaultProps.js +45 -0
- package/dist/node_modules/recharts/es6/util/round.js +17 -0
- package/dist/node_modules/recharts/es6/util/scale/RechartsScale.js +44 -0
- package/dist/node_modules/recharts/es6/util/scale/createCategoricalInverse.js +29 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +119 -0
- package/dist/node_modules/recharts/es6/util/scale/util/arithmetic.js +14 -0
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +6 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesAndEvents.js +12 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +340 -0
- package/dist/node_modules/recharts/es6/util/types.js +25 -0
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +9 -0
- package/dist/node_modules/recharts/es6/util/useId.js +51 -0
- package/dist/node_modules/recharts/es6/util/usePrefersReducedMotion.js +58 -0
- package/dist/node_modules/recharts/es6/util/useReportScale.js +57 -0
- package/dist/node_modules/recharts/es6/util/useUniqueId.js +8 -0
- package/dist/node_modules/recharts/es6/zIndex/DefaultZIndexes.js +70 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexLayer.js +47 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexPortal.js +40 -0
- package/dist/node_modules/recharts/es6/zIndex/zIndexSelectors.js +21 -0
- package/dist/node_modules/redux/dist/redux.js +258 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
- package/dist/node_modules/reselect/dist/reselect.js +226 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +47 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts +32 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts.map +1 -0
- package/dist/primitives/donut-chart/donut-chart.js +111 -0
- package/dist/primitives/donut-chart/index.d.ts +2 -0
- package/dist/primitives/donut-chart/index.d.ts.map +1 -0
- package/dist/primitives/hierarchical-select/HierarchicalSelect.d.ts.map +1 -1
- package/dist/primitives/hierarchical-select/HierarchicalSelect.js +47 -41
- package/dist/primitives/hierarchical-select/components/HierarchicalItem.d.ts.map +1 -1
- package/dist/primitives/hierarchical-select/components/HierarchicalItem.js +54 -48
- package/dist/primitives/hierarchical-select/utils/selection.d.ts.map +1 -1
- package/dist/primitives/hierarchical-select/utils/selection.js +63 -63
- package/dist/styles/components.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createSelector as i } from "../../../../reselect/dist/reselect.js";
|
|
2
|
+
import { selectChartOffsetInternal as m } from "./selectChartOffsetInternal.js";
|
|
3
|
+
import { selectMargin as h } from "./containerSelectors.js";
|
|
4
|
+
import { isNumber as e } from "../../util/DataUtils.js";
|
|
5
|
+
var l = (o) => o.brush, v = i([l, m, h], (o, r, t) => ({
|
|
6
|
+
height: o.height,
|
|
7
|
+
x: e(o.x) ? o.x : r.left,
|
|
8
|
+
y: e(o.y) ? o.y : r.top + r.height + r.brushBottom - ((t == null ? void 0 : t.bottom) || 0),
|
|
9
|
+
width: e(o.width) ? o.width : r.width
|
|
10
|
+
}));
|
|
11
|
+
export {
|
|
12
|
+
v as selectBrushDimensions,
|
|
13
|
+
l as selectBrushSettings
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isNan as i } from "../../../util/DataUtils.js";
|
|
2
|
+
var v = (n, u) => {
|
|
3
|
+
var r, e = Number(u);
|
|
4
|
+
if (!(i(e) || u == null))
|
|
5
|
+
return e >= 0 ? n == null || (r = n[e]) === null || r === void 0 ? void 0 : r.value : void 0;
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
v as combineActiveLabel
|
|
9
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { isWellBehavedNumber as a } from "../../../util/isWellBehavedNumber.js";
|
|
2
|
+
import { getValueByDataKey as o } from "../../../util/ChartUtils.js";
|
|
3
|
+
import { isWellFormedNumberDomain as v } from "../../../util/isDomainSpecifiedByUser.js";
|
|
4
|
+
function b(r) {
|
|
5
|
+
if (typeof r == "number")
|
|
6
|
+
return Number.isFinite(r) ? r : void 0;
|
|
7
|
+
if (r instanceof Date) {
|
|
8
|
+
var e = r.valueOf();
|
|
9
|
+
return Number.isFinite(e) ? e : void 0;
|
|
10
|
+
}
|
|
11
|
+
var n = Number(r);
|
|
12
|
+
return Number.isFinite(n) ? n : void 0;
|
|
13
|
+
}
|
|
14
|
+
function s(r, e) {
|
|
15
|
+
var n = b(r), i = e[0], u = e[1];
|
|
16
|
+
if (n === void 0)
|
|
17
|
+
return !1;
|
|
18
|
+
var t = Math.min(i, u), m = Math.max(i, u);
|
|
19
|
+
return n >= t && n <= m;
|
|
20
|
+
}
|
|
21
|
+
function p(r, e, n) {
|
|
22
|
+
if (n == null || e == null)
|
|
23
|
+
return !0;
|
|
24
|
+
var i = o(r, e);
|
|
25
|
+
return i == null || !v(n) ? !0 : s(i, n);
|
|
26
|
+
}
|
|
27
|
+
var g = (r, e, n, i) => {
|
|
28
|
+
var u = r == null ? void 0 : r.index;
|
|
29
|
+
if (u == null)
|
|
30
|
+
return null;
|
|
31
|
+
var t = Number(u);
|
|
32
|
+
if (!a(t))
|
|
33
|
+
return u;
|
|
34
|
+
var m = 0, l = 1 / 0;
|
|
35
|
+
e.length > 0 && (l = e.length - 1);
|
|
36
|
+
var f = Math.max(m, Math.min(t, l)), d = e[f];
|
|
37
|
+
return d == null || p(d, n, i) ? String(f) : null;
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
g as combineActiveTooltipIndex
|
|
41
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isWellFormedNumberDomain as u } from "../../../util/isDomainSpecifiedByUser.js";
|
|
2
|
+
import { isWellBehavedNumber as i } from "../../../util/isWellBehavedNumber.js";
|
|
3
|
+
var l = (t, e) => {
|
|
4
|
+
if (e != null)
|
|
5
|
+
switch (t) {
|
|
6
|
+
case "linear": {
|
|
7
|
+
if (!u(e)) {
|
|
8
|
+
for (var r, d, n = 0; n < e.length; n++) {
|
|
9
|
+
var f = e[n];
|
|
10
|
+
i(f) && ((r === void 0 || f < r) && (r = f), (d === void 0 || f > d) && (d = f));
|
|
11
|
+
}
|
|
12
|
+
return r !== void 0 && d !== void 0 ? [r, d] : void 0;
|
|
13
|
+
}
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
default:
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
l as combineCheckedDomain
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as f from "../../../../../victory-vendor/es/d3-scale.js";
|
|
2
|
+
import { upperFirst as o } from "../../../util/DataUtils.js";
|
|
3
|
+
function i(n) {
|
|
4
|
+
var r = f;
|
|
5
|
+
if (n in r && typeof r[n] == "function")
|
|
6
|
+
return r[n]();
|
|
7
|
+
var t = "scale".concat(o(n));
|
|
8
|
+
if (t in r && typeof r[t] == "function")
|
|
9
|
+
return r[t]();
|
|
10
|
+
}
|
|
11
|
+
function e(n, r, t) {
|
|
12
|
+
if (typeof n == "function")
|
|
13
|
+
return n.copy().domain(r).range(t);
|
|
14
|
+
if (n != null) {
|
|
15
|
+
var u = i(n);
|
|
16
|
+
if (u != null)
|
|
17
|
+
return u.domain(r).range(t), u;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function d(n, r, t, u) {
|
|
21
|
+
if (!(t == null || u == null))
|
|
22
|
+
return typeof n.scale == "function" ? e(n.scale, t, u) : e(r, t, u);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
d as combineConfiguredScale,
|
|
26
|
+
e as combineConfiguredScaleInternal
|
|
27
|
+
};
|
package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var v = (u, a, d, o, r, n, l) => {
|
|
2
|
+
if (n != null) {
|
|
3
|
+
var i = l[0], t = i == null ? void 0 : i.getPosition(n);
|
|
4
|
+
if (t != null)
|
|
5
|
+
return t;
|
|
6
|
+
var e = r == null ? void 0 : r[Number(n)];
|
|
7
|
+
if (e)
|
|
8
|
+
switch (d) {
|
|
9
|
+
case "horizontal":
|
|
10
|
+
return {
|
|
11
|
+
x: e.coordinate,
|
|
12
|
+
y: (o.top + a) / 2
|
|
13
|
+
};
|
|
14
|
+
default:
|
|
15
|
+
return {
|
|
16
|
+
x: (o.left + u) / 2,
|
|
17
|
+
y: e.coordinate
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
v as combineCoordinateForDefaultIndex
|
|
24
|
+
};
|
package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getStackSeriesIdentifier as h } from "../../../util/stacks/getStackSeriesIdentifier.js";
|
|
2
|
+
import { getValueByDataKey as d } from "../../../util/ChartUtils.js";
|
|
3
|
+
function k(v, f, i) {
|
|
4
|
+
var n = f.chartData, D = n === void 0 ? [] : n, y = i.allowDuplicatedCategory, c = i.dataKey, a = /* @__PURE__ */ new Map();
|
|
5
|
+
return v.forEach((r) => {
|
|
6
|
+
var t, l = (t = r.data) !== null && t !== void 0 ? t : D;
|
|
7
|
+
if (!(l == null || l.length === 0)) {
|
|
8
|
+
var s = h(r);
|
|
9
|
+
l.forEach((u, p) => {
|
|
10
|
+
var o = c == null || y ? p : String(d(u, c, null)), g = d(u, r.dataKey, 0), e;
|
|
11
|
+
a.has(o) ? e = a.get(o) : e = {}, Object.assign(e, {
|
|
12
|
+
[s]: g
|
|
13
|
+
}), a.set(o, e);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}), Array.from(a.values());
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
k as combineDisplayedStackedData
|
|
20
|
+
};
|
package/dist/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createCategoricalInverse as t } from "../../../util/scale/createCategoricalInverse.js";
|
|
2
|
+
function r(n) {
|
|
3
|
+
if (n != null)
|
|
4
|
+
return "invert" in n && typeof n.invert == "function" ? n.invert.bind(n) : t(n, void 0);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
r as combineInverseScaleFunction
|
|
8
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as a from "../../../../../victory-vendor/es/d3-scale.js";
|
|
2
|
+
import { upperFirst as o } from "../../../util/DataUtils.js";
|
|
3
|
+
function u(e) {
|
|
4
|
+
return "scale".concat(o(e));
|
|
5
|
+
}
|
|
6
|
+
function f(e) {
|
|
7
|
+
return u(e) in a;
|
|
8
|
+
}
|
|
9
|
+
var d = (e, i, r) => {
|
|
10
|
+
if (e != null) {
|
|
11
|
+
var n = e.scale, t = e.type;
|
|
12
|
+
if (n === "auto")
|
|
13
|
+
return t === "category" && r && (r.indexOf("LineChart") >= 0 || r.indexOf("AreaChart") >= 0 || r.indexOf("ComposedChart") >= 0 && !i) ? "point" : t === "category" ? "band" : "linear";
|
|
14
|
+
if (typeof n == "string")
|
|
15
|
+
return f(n) ? n : "point";
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
d as combineRealScaleType
|
|
20
|
+
};
|
package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { noInteraction as o } from "../../tooltipSlice.js";
|
|
2
|
+
function u(e, r) {
|
|
3
|
+
var n = Object.keys(e);
|
|
4
|
+
if (Object.getOwnPropertySymbols) {
|
|
5
|
+
var t = Object.getOwnPropertySymbols(e);
|
|
6
|
+
r && (t = t.filter(function(i) {
|
|
7
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
8
|
+
})), n.push.apply(n, t);
|
|
9
|
+
}
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
function c(e) {
|
|
13
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
14
|
+
var n = arguments[r] != null ? arguments[r] : {};
|
|
15
|
+
r % 2 ? u(Object(n), !0).forEach(function(t) {
|
|
16
|
+
f(e, t, n[t]);
|
|
17
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u(Object(n)).forEach(function(t) {
|
|
18
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
function f(e, r, n) {
|
|
24
|
+
return (r = s(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
25
|
+
}
|
|
26
|
+
function s(e) {
|
|
27
|
+
var r = y(e, "string");
|
|
28
|
+
return typeof r == "symbol" ? r : r + "";
|
|
29
|
+
}
|
|
30
|
+
function y(e, r) {
|
|
31
|
+
if (typeof e != "object" || !e) return e;
|
|
32
|
+
var n = e[Symbol.toPrimitive];
|
|
33
|
+
if (n !== void 0) {
|
|
34
|
+
var t = n.call(e, r);
|
|
35
|
+
if (typeof t != "object") return t;
|
|
36
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
37
|
+
}
|
|
38
|
+
return (r === "string" ? String : Number)(e);
|
|
39
|
+
}
|
|
40
|
+
function b(e, r, n) {
|
|
41
|
+
return r === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
|
|
42
|
+
}
|
|
43
|
+
function v(e) {
|
|
44
|
+
return e.index != null;
|
|
45
|
+
}
|
|
46
|
+
var p = (e, r, n, t) => {
|
|
47
|
+
if (r == null)
|
|
48
|
+
return o;
|
|
49
|
+
var i = b(e, r, n);
|
|
50
|
+
if (i == null)
|
|
51
|
+
return o;
|
|
52
|
+
if (i.active)
|
|
53
|
+
return i;
|
|
54
|
+
if (e.keyboardInteraction.active)
|
|
55
|
+
return e.keyboardInteraction;
|
|
56
|
+
if (e.syncInteraction.active && e.syncInteraction.index != null)
|
|
57
|
+
return e.syncInteraction;
|
|
58
|
+
var a = e.settings.active === !0;
|
|
59
|
+
if (v(i)) {
|
|
60
|
+
if (a)
|
|
61
|
+
return c(c({}, i), {}, {
|
|
62
|
+
active: !0
|
|
63
|
+
});
|
|
64
|
+
} else if (t != null)
|
|
65
|
+
return {
|
|
66
|
+
active: !0,
|
|
67
|
+
coordinate: void 0,
|
|
68
|
+
dataKey: void 0,
|
|
69
|
+
index: t,
|
|
70
|
+
graphicalItemId: void 0
|
|
71
|
+
};
|
|
72
|
+
return c(c({}, o), {}, {
|
|
73
|
+
coordinate: i.coordinate
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
p as combineTooltipInteractionState
|
|
78
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { findEntryInArray as C } from "../../../util/DataUtils.js";
|
|
2
|
+
import { getTooltipEntry as D, getValueByDataKey as O } from "../../../util/ChartUtils.js";
|
|
3
|
+
import { getSliced as F } from "../../../util/getSliced.js";
|
|
4
|
+
function I(n, r) {
|
|
5
|
+
var e = Object.keys(n);
|
|
6
|
+
if (Object.getOwnPropertySymbols) {
|
|
7
|
+
var t = Object.getOwnPropertySymbols(n);
|
|
8
|
+
r && (t = t.filter(function(u) {
|
|
9
|
+
return Object.getOwnPropertyDescriptor(n, u).enumerable;
|
|
10
|
+
})), e.push.apply(e, t);
|
|
11
|
+
}
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
function A(n) {
|
|
15
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
16
|
+
var e = arguments[r] != null ? arguments[r] : {};
|
|
17
|
+
r % 2 ? I(Object(e), !0).forEach(function(t) {
|
|
18
|
+
U(n, t, e[t]);
|
|
19
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : I(Object(e)).forEach(function(t) {
|
|
20
|
+
Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return n;
|
|
24
|
+
}
|
|
25
|
+
function U(n, r, e) {
|
|
26
|
+
return (r = q(r)) in n ? Object.defineProperty(n, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[r] = e, n;
|
|
27
|
+
}
|
|
28
|
+
function q(n) {
|
|
29
|
+
var r = z(n, "string");
|
|
30
|
+
return typeof r == "symbol" ? r : r + "";
|
|
31
|
+
}
|
|
32
|
+
function z(n, r) {
|
|
33
|
+
if (typeof n != "object" || !n) return n;
|
|
34
|
+
var e = n[Symbol.toPrimitive];
|
|
35
|
+
if (e !== void 0) {
|
|
36
|
+
var t = e.call(n, r);
|
|
37
|
+
if (typeof t != "object") return t;
|
|
38
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
|
+
}
|
|
40
|
+
return (r === "string" ? String : Number)(n);
|
|
41
|
+
}
|
|
42
|
+
function G(n) {
|
|
43
|
+
if (typeof n == "string" || typeof n == "number")
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
function H(n) {
|
|
47
|
+
if (typeof n == "string" || typeof n == "number" || typeof n == "boolean")
|
|
48
|
+
return n;
|
|
49
|
+
}
|
|
50
|
+
function J(n) {
|
|
51
|
+
if (typeof n == "string" || typeof n == "number")
|
|
52
|
+
return n;
|
|
53
|
+
if (typeof n == "function")
|
|
54
|
+
return (r) => n(r);
|
|
55
|
+
}
|
|
56
|
+
function S(n) {
|
|
57
|
+
if (typeof n == "string")
|
|
58
|
+
return n;
|
|
59
|
+
}
|
|
60
|
+
function L(n) {
|
|
61
|
+
if (!(n == null || typeof n != "object")) {
|
|
62
|
+
var r = "name" in n ? G(n.name) : void 0, e = "unit" in n ? H(n.unit) : void 0, t = "dataKey" in n ? J(n.dataKey) : void 0, u = "payload" in n ? n.payload : void 0, d = "color" in n ? S(n.color) : void 0, f = "fill" in n ? S(n.fill) : void 0;
|
|
63
|
+
return {
|
|
64
|
+
name: r,
|
|
65
|
+
unit: e,
|
|
66
|
+
dataKey: t,
|
|
67
|
+
payload: u,
|
|
68
|
+
color: d,
|
|
69
|
+
fill: f
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function M(n, r) {
|
|
74
|
+
return n ?? r;
|
|
75
|
+
}
|
|
76
|
+
var X = (n, r, e, t, u, d, f) => {
|
|
77
|
+
if (!(r == null || d == null)) {
|
|
78
|
+
var h = e.chartData, j = e.computedData, N = e.dataStartIndex, T = e.dataEndIndex, _ = [];
|
|
79
|
+
return n.reduce((y, P) => {
|
|
80
|
+
var p, $ = P.dataDefinedOnItem, o = P.settings, v = M($, h), l = Array.isArray(v) ? F(v, N, T) : v, K = (p = o == null ? void 0 : o.dataKey) !== null && p !== void 0 ? p : t, c = o == null ? void 0 : o.nameKey, a;
|
|
81
|
+
if (t && Array.isArray(l) && /*
|
|
82
|
+
* findEntryInArray won't work for Scatter because Scatter provides an array of arrays
|
|
83
|
+
* as tooltip payloads and findEntryInArray is not prepared to handle that.
|
|
84
|
+
* Sad but also ScatterChart only allows 'item' tooltipEventType
|
|
85
|
+
* and also this is only a problem if there are multiple Scatters and each has its own data array
|
|
86
|
+
* so let's fix that some other time.
|
|
87
|
+
*/
|
|
88
|
+
!Array.isArray(l[0]) && /*
|
|
89
|
+
* If the tooltipEventType is 'axis', we should search for the dataKey in the sliced data
|
|
90
|
+
* because thanks to allowDuplicatedCategory=false, the order of elements in the array
|
|
91
|
+
* no longer matches the order of elements in the original data
|
|
92
|
+
* and so we need to search by the active dataKey + label rather than by index.
|
|
93
|
+
*
|
|
94
|
+
* The same happens if multiple graphical items are present in the chart
|
|
95
|
+
* and each of them has its own data array. Those arrays get concatenated
|
|
96
|
+
* and again the tooltip index no longer matches the original data.
|
|
97
|
+
*
|
|
98
|
+
* On the other hand the tooltipEventType 'item' should always search by index
|
|
99
|
+
* because we get the index from interacting over the individual elements
|
|
100
|
+
* which is always accurate, irrespective of the allowDuplicatedCategory setting.
|
|
101
|
+
*/
|
|
102
|
+
f === "axis" ? (a = C(l, t, u), a == null && (a = d(l, r, j, c))) : a = d(l, r, j, c), Array.isArray(a))
|
|
103
|
+
a.forEach((x) => {
|
|
104
|
+
var m, b, i = L(x), g = i == null ? void 0 : i.name, w = i == null ? void 0 : i.dataKey, E = i == null ? void 0 : i.payload, k = A(A({}, o), {}, {
|
|
105
|
+
name: g,
|
|
106
|
+
unit: i == null ? void 0 : i.unit,
|
|
107
|
+
// Preserve item-level color/fill from graphical items.
|
|
108
|
+
color: (m = i == null ? void 0 : i.color) !== null && m !== void 0 ? m : o == null ? void 0 : o.color,
|
|
109
|
+
fill: (b = i == null ? void 0 : i.fill) !== null && b !== void 0 ? b : o == null ? void 0 : o.fill
|
|
110
|
+
});
|
|
111
|
+
y.push(D({
|
|
112
|
+
tooltipEntrySettings: k,
|
|
113
|
+
dataKey: w,
|
|
114
|
+
payload: E,
|
|
115
|
+
value: O(E, w),
|
|
116
|
+
name: g == null ? void 0 : String(g)
|
|
117
|
+
}));
|
|
118
|
+
});
|
|
119
|
+
else {
|
|
120
|
+
var s;
|
|
121
|
+
y.push(D({
|
|
122
|
+
tooltipEntrySettings: o,
|
|
123
|
+
dataKey: K,
|
|
124
|
+
payload: a,
|
|
125
|
+
// getValueByDataKey does not validate the output type
|
|
126
|
+
value: O(a, K),
|
|
127
|
+
// getValueByDataKey does not validate the output type
|
|
128
|
+
name: (s = O(a, c)) !== null && s !== void 0 ? s : o == null ? void 0 : o.name
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
return y;
|
|
132
|
+
}, _);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
export {
|
|
136
|
+
X as combineTooltipPayload
|
|
137
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var t = (r, a, l, I) => {
|
|
2
|
+
if (a === "axis")
|
|
3
|
+
return r.tooltipItemPayloads;
|
|
4
|
+
if (r.tooltipItemPayloads.length === 0)
|
|
5
|
+
return [];
|
|
6
|
+
var e;
|
|
7
|
+
if (l === "hover" ? e = r.itemInteraction.hover.graphicalItemId : e = r.itemInteraction.click.graphicalItemId, r.syncInteraction.active && e == null)
|
|
8
|
+
return r.tooltipItemPayloads;
|
|
9
|
+
if (e == null && (I != null || r.keyboardInteraction.active)) {
|
|
10
|
+
var i = r.tooltipItemPayloads[0];
|
|
11
|
+
return i != null ? [i] : [];
|
|
12
|
+
}
|
|
13
|
+
return r.tooltipItemPayloads.filter((c) => {
|
|
14
|
+
var n;
|
|
15
|
+
return ((n = c.settings) === null || n === void 0 ? void 0 : n.graphicalItemId) === e;
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
t as combineTooltipPayloadConfigurations
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createSelector as n } from "../../../../reselect/dist/reselect.js";
|
|
2
|
+
var d = (a) => a.chartData, c = n([d], (a) => {
|
|
3
|
+
var t = a.chartData != null ? a.chartData.length - 1 : 0;
|
|
4
|
+
return {
|
|
5
|
+
chartData: a.chartData,
|
|
6
|
+
computedData: a.computedData,
|
|
7
|
+
dataEndIndex: t,
|
|
8
|
+
dataStartIndex: 0
|
|
9
|
+
};
|
|
10
|
+
}), I = (a, t, r, e) => e ? c(a) : d(a), h = n([I], (a) => {
|
|
11
|
+
var t = a.chartData, r = a.dataStartIndex, e = a.dataEndIndex;
|
|
12
|
+
return t != null ? t.slice(r, e + 1) : [];
|
|
13
|
+
}), x = n([c], (a) => {
|
|
14
|
+
var t = a.chartData, r = a.dataStartIndex, e = a.dataEndIndex;
|
|
15
|
+
return t != null ? t.slice(r, e + 1) : [];
|
|
16
|
+
}), D = n([d], (a) => {
|
|
17
|
+
var t = a.chartData, r = a.dataStartIndex, e = a.dataEndIndex;
|
|
18
|
+
return t != null ? t.slice(r, e + 1) : [];
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
c as selectChartDataAndAlwaysIgnoreIndexes,
|
|
22
|
+
h as selectChartDataSliceIfNotInPanorama,
|
|
23
|
+
x as selectChartDataSliceIgnoringIndexes,
|
|
24
|
+
D as selectChartDataSliceWithIndexes,
|
|
25
|
+
d as selectChartDataWithIndexes,
|
|
26
|
+
I as selectChartDataWithIndexesIfNotInPanoramaPosition4
|
|
27
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createSelector as l } from "../../../../reselect/dist/reselect.js";
|
|
2
|
+
import { sortBy as o } from "../../../../es-toolkit/dist/compat/array/sortBy.js";
|
|
3
|
+
var n = (e) => e.legend.settings, s = (e) => e.legend.size, d = (e) => e.legend.payload;
|
|
4
|
+
l([d, n], (e, a) => {
|
|
5
|
+
var r = a.itemSorter, t = e.flat(1);
|
|
6
|
+
return r ? o(t, r) : t;
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
n as selectLegendSettings,
|
|
10
|
+
s as selectLegendSize
|
|
11
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { createSelector as u } from "../../../../reselect/dist/reselect.js";
|
|
2
|
+
import { computePieSectors as v } from "../../polar/Pie.js";
|
|
3
|
+
import { selectChartDataAndAlwaysIgnoreIndexes as y } from "./dataSelectors.js";
|
|
4
|
+
import { selectChartOffsetInternal as s } from "./selectChartOffsetInternal.js";
|
|
5
|
+
import { getValueByDataKey as b, getTooltipNameProp as P } from "../../util/ChartUtils.js";
|
|
6
|
+
import { selectUnfilteredPolarItems as O } from "./polarSelectors.js";
|
|
7
|
+
function c(r, e) {
|
|
8
|
+
var t = Object.keys(r);
|
|
9
|
+
if (Object.getOwnPropertySymbols) {
|
|
10
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
11
|
+
e && (n = n.filter(function(o) {
|
|
12
|
+
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
13
|
+
})), t.push.apply(t, n);
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
function p(r) {
|
|
18
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
19
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
20
|
+
e % 2 ? c(Object(t), !0).forEach(function(n) {
|
|
21
|
+
j(r, n, t[n]);
|
|
22
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : c(Object(t)).forEach(function(n) {
|
|
23
|
+
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return r;
|
|
27
|
+
}
|
|
28
|
+
function j(r, e, t) {
|
|
29
|
+
return (e = h(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
30
|
+
}
|
|
31
|
+
function h(r) {
|
|
32
|
+
var e = w(r, "string");
|
|
33
|
+
return typeof e == "symbol" ? e : e + "";
|
|
34
|
+
}
|
|
35
|
+
function w(r, e) {
|
|
36
|
+
if (typeof r != "object" || !r) return r;
|
|
37
|
+
var t = r[Symbol.toPrimitive];
|
|
38
|
+
if (t !== void 0) {
|
|
39
|
+
var n = t.call(r, e);
|
|
40
|
+
if (typeof n != "object") return n;
|
|
41
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
42
|
+
}
|
|
43
|
+
return (e === "string" ? String : Number)(r);
|
|
44
|
+
}
|
|
45
|
+
var g = (r, e) => e, i = u([O, g], (r, e) => r.filter((t) => t.type === "pie").find((t) => t.id === e)), D = [], f = (r, e, t) => (t == null ? void 0 : t.length) === 0 ? D : t, d = u([y, i, f], (r, e, t) => {
|
|
46
|
+
var n = r.chartData;
|
|
47
|
+
if (e != null) {
|
|
48
|
+
var o;
|
|
49
|
+
if ((e == null ? void 0 : e.data) != null && e.data.length > 0 ? o = e.data : o = n, (!o || !o.length) && t != null && (o = t.map((a) => p(p({}, e.presentationProps), a.props))), o != null)
|
|
50
|
+
return o;
|
|
51
|
+
}
|
|
52
|
+
}), E = u([d, i, f], (r, e, t) => {
|
|
53
|
+
if (!(r == null || e == null))
|
|
54
|
+
return r.map((n, o) => {
|
|
55
|
+
var a, m = b(n, e.nameKey, e.name), l;
|
|
56
|
+
return t != null && (a = t[o]) !== null && a !== void 0 && (a = a.props) !== null && a !== void 0 && a.fill ? l = t[o].props.fill : typeof n == "object" && n != null && "fill" in n ? l = n.fill : l = e.fill, {
|
|
57
|
+
value: P(m, e.dataKey),
|
|
58
|
+
dataKey: e.dataKey,
|
|
59
|
+
color: l,
|
|
60
|
+
// @ts-expect-error Legend payload.payload says it wants objects but our data can be unknown
|
|
61
|
+
payload: n,
|
|
62
|
+
type: e.legendType
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}), T = u([d, i, f, s], (r, e, t, n) => {
|
|
66
|
+
if (!(e == null || r == null))
|
|
67
|
+
return v({
|
|
68
|
+
offset: n,
|
|
69
|
+
pieSettings: e,
|
|
70
|
+
displayedData: r,
|
|
71
|
+
cells: t
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
d as selectDisplayedData,
|
|
76
|
+
E as selectPieLegend,
|
|
77
|
+
T as selectPieSectors
|
|
78
|
+
};
|