laif-ds 0.2.20 → 0.2.22
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/index.js +5 -3
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-select.js +92 -109
- package/dist/components/ui/app-stepper.js +212 -0
- package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
- package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
- package/dist/components/ui/message-input.js +23 -23
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/stepper.js +387 -0
- package/dist/index.d.ts +55 -6
- package/dist/index.js +30 -28
- package/dist/lib/audio-utils.js +2 -2
- package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
- package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
- package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
- package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +19 -20
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
- package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
- package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/cmdk/dist/index.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.js +14 -14
- package/dist/node_modules/dayjs/locale/it.js +4 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
- package/dist/node_modules/decimal.js-light/decimal.js +2 -2
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
- package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +213 -216
- package/dist/node_modules/lexical/Lexical.prod.js +212 -212
- package/dist/node_modules/lodash/_baseCreate.js +2 -2
- package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
- package/dist/node_modules/lodash/_defineProperty.js +2 -2
- package/dist/node_modules/lodash/_isMasked.js +2 -2
- package/dist/node_modules/lodash/_nodeUtil.js +4 -4
- package/dist/node_modules/lodash/isArguments.js +2 -2
- package/dist/node_modules/lodash/isBuffer.js +2 -2
- package/dist/node_modules/lodash/lodash.js +16 -16
- package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
- package/dist/node_modules/prismjs/components/prism-java.js +2 -2
- package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
- package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
- package/dist/node_modules/prismjs/prism.js +8 -8
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
- package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
- package/dist/node_modules/react-window/dist/index.esm.js +2 -2
- package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
- package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
- package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
- package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
- package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
- package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
- package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
- package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
- package/dist/node_modules/recharts/es6/util/types.js +22 -332
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
- package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
- package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
- package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
- package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
- package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
- package/dist/node_modules/shiki/dist/langs.js +225 -220
- package/dist/node_modules/shiki/dist/themes.js +60 -60
- package/dist/node_modules/sonner/dist/index.js +309 -305
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/node_modules/vaul/dist/index.js +1 -1
- package/dist/node_modules/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +3 -2
- package/dist/_virtual/isEqual.js +0 -8
- package/dist/_virtual/isEqual2.js +0 -5
- package/dist/_virtual/isEqualWith.js +0 -5
- package/dist/_virtual/isPlainObject.js +0 -5
- package/dist/_virtual/noop.js +0 -5
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
- package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
- package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
- package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
- package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
- package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
|
@@ -1,148 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createSelector as
|
|
3
|
-
import
|
|
4
|
-
import { useAppSelector as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})), r.push.apply(r, a);
|
|
2
|
+
import { createSelector as r } from "../../../../reselect/dist/reselect.js";
|
|
3
|
+
import d from "../../../../../_virtual/sortBy.js";
|
|
4
|
+
import { useAppSelector as u } from "../hooks.js";
|
|
5
|
+
import { selectChartDataWithIndexes as T } from "./dataSelectors.js";
|
|
6
|
+
import { selectTooltipDisplayedData as y, selectTooltipAxisTicks as a } from "./tooltipSelectors.js";
|
|
7
|
+
import { selectChartName as h } from "./rootPropsSelectors.js";
|
|
8
|
+
import { selectChartLayout as I } from "../../context/chartLayoutContext.js";
|
|
9
|
+
import { selectChartOffsetInternal as x } from "./selectChartOffsetInternal.js";
|
|
10
|
+
import { selectChartWidth as C, selectChartHeight as A } from "./containerSelectors.js";
|
|
11
|
+
import { combineActiveLabel as b } from "./combiners/combineActiveLabel.js";
|
|
12
|
+
import { combineTooltipInteractionState as D } from "./combiners/combineTooltipInteractionState.js";
|
|
13
|
+
import { combineActiveTooltipIndex as S } from "./combiners/combineActiveTooltipIndex.js";
|
|
14
|
+
import { combineCoordinateForDefaultIndex as _ } from "./combiners/combineCoordinateForDefaultIndex.js";
|
|
15
|
+
import { combineTooltipPayloadConfigurations as k } from "./combiners/combineTooltipPayloadConfigurations.js";
|
|
16
|
+
import { selectTooltipPayloadSearcher as p } from "./selectTooltipPayloadSearcher.js";
|
|
17
|
+
import { selectTooltipState as l } from "./selectTooltipState.js";
|
|
18
|
+
import { combineTooltipPayload as K } from "./combiners/combineTooltipPayload.js";
|
|
19
|
+
import { selectTooltipAxisDataKey as g } from "./selectTooltipAxis.js";
|
|
20
|
+
var X = () => u(h), c = (t, e) => e, s = (t, e, o) => o, n = (t, e, o, i) => i;
|
|
21
|
+
r(a, (t) => d(t, (e) => e.coordinate));
|
|
22
|
+
var m = r([l, c, s, n], D), v = r([m, y], S), Y = (t, e, o) => {
|
|
23
|
+
if (e != null) {
|
|
24
|
+
var i = l(t);
|
|
25
|
+
return e === "axis" ? o === "hover" ? i.axisInteraction.hover.dataKey : i.axisInteraction.click.dataKey : o === "hover" ? i.itemInteraction.hover.dataKey : i.itemInteraction.click.dataKey;
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
te(e, a, r[a]);
|
|
35
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : K(Object(r)).forEach(function(a) {
|
|
36
|
-
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return e;
|
|
40
|
-
}
|
|
41
|
-
function te(e, t, r) {
|
|
42
|
-
return (t = re(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
43
|
-
}
|
|
44
|
-
function re(e) {
|
|
45
|
-
var t = ae(e, "string");
|
|
46
|
-
return typeof t == "symbol" ? t : t + "";
|
|
47
|
-
}
|
|
48
|
-
function ae(e, t) {
|
|
49
|
-
if (typeof e != "object" || !e) return e;
|
|
50
|
-
var r = e[Symbol.toPrimitive];
|
|
51
|
-
if (r !== void 0) {
|
|
52
|
-
var a = r.call(e, t);
|
|
53
|
-
if (typeof a != "object") return a;
|
|
54
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
55
|
-
}
|
|
56
|
-
return (t === "string" ? String : Number)(e);
|
|
57
|
-
}
|
|
58
|
-
var Ie = () => $(J), y = (e, t) => t, j = (e, t, r) => r, b = (e, t, r, a) => a;
|
|
59
|
-
function oe(e, t, r) {
|
|
60
|
-
return Array.isArray(e) && e && t + r !== 0 ? e.slice(t, r + 1) : e;
|
|
61
|
-
}
|
|
62
|
-
i(s, (e) => H(e, (t) => t.coordinate));
|
|
63
|
-
var h = i([m, y, j, b], Y), I = i([h, G], Z), Ce = (e, t, r) => {
|
|
64
|
-
if (t != null) {
|
|
65
|
-
var a = m(e);
|
|
66
|
-
return t === "axis" ? r === "hover" ? a.axisInteraction.hover.dataKey : a.axisInteraction.click.dataKey : r === "hover" ? a.itemInteraction.hover.dataKey : a.itemInteraction.click.dataKey;
|
|
67
|
-
}
|
|
68
|
-
}, C = i([m, y, j, b], ee), ie = i([R, U, M, Q, s, b, C, S], V), we = i([h, ie], (e, t) => {
|
|
69
|
-
var r;
|
|
70
|
-
return (r = e.coordinate) !== null && r !== void 0 ? r : t;
|
|
71
|
-
}), ne = i(s, I, X);
|
|
72
|
-
function le(e, t) {
|
|
73
|
-
return e ?? t;
|
|
74
|
-
}
|
|
75
|
-
var ce = (e, t, r, a, c, g, w) => {
|
|
76
|
-
if (!(t == null || g == null)) {
|
|
77
|
-
var {
|
|
78
|
-
chartData: E,
|
|
79
|
-
computedData: _,
|
|
80
|
-
dataStartIndex: A,
|
|
81
|
-
dataEndIndex: k
|
|
82
|
-
} = r, x = [];
|
|
83
|
-
return e.reduce((u, N) => {
|
|
84
|
-
var d, {
|
|
85
|
-
dataDefinedOnItem: F,
|
|
86
|
-
settings: o
|
|
87
|
-
} = N, L = le(F, E), f = oe(L, A, k), T = (d = o?.dataKey) !== null && d !== void 0 ? d : a?.dataKey, O = o?.nameKey, n;
|
|
88
|
-
if (a != null && a.dataKey && !(a != null && a.allowDuplicatedCategory) && Array.isArray(f) && /*
|
|
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
|
-
* On the other hand the tooltipEventType 'item' should always search by index
|
|
95
|
-
* because we get the index from interacting over the individual elements
|
|
96
|
-
* which is always accurate, irrespective of the allowDuplicatedCategory setting.
|
|
97
|
-
*/
|
|
98
|
-
w === "axis" ? n = q(f, a.dataKey, c) : n = g(f, t, _, O), Array.isArray(n))
|
|
99
|
-
n.forEach((l) => {
|
|
100
|
-
var W = D(D({}, o), {}, {
|
|
101
|
-
name: l.name,
|
|
102
|
-
unit: l.unit,
|
|
103
|
-
// color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.
|
|
104
|
-
color: void 0,
|
|
105
|
-
// color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.
|
|
106
|
-
fill: void 0
|
|
107
|
-
});
|
|
108
|
-
u.push(P({
|
|
109
|
-
tooltipEntrySettings: W,
|
|
110
|
-
dataKey: l.dataKey,
|
|
111
|
-
payload: l.payload,
|
|
112
|
-
// @ts-expect-error getValueByDataKey does not validate the output type
|
|
113
|
-
value: v(l.payload, l.dataKey),
|
|
114
|
-
name: l.name
|
|
115
|
-
}));
|
|
116
|
-
});
|
|
117
|
-
else {
|
|
118
|
-
var p;
|
|
119
|
-
u.push(P({
|
|
120
|
-
tooltipEntrySettings: o,
|
|
121
|
-
dataKey: T,
|
|
122
|
-
payload: n,
|
|
123
|
-
// @ts-expect-error getValueByDataKey does not validate the output type
|
|
124
|
-
value: v(n, T),
|
|
125
|
-
// @ts-expect-error getValueByDataKey does not validate the output type
|
|
126
|
-
name: (p = v(n, O)) !== null && p !== void 0 ? p : o?.name
|
|
127
|
-
}));
|
|
128
|
-
}
|
|
129
|
-
return u;
|
|
130
|
-
}, x);
|
|
131
|
-
}
|
|
132
|
-
}, Ee = i([C, I, z, B, ne, S, y], ce), _e = i([h], (e) => ({
|
|
133
|
-
isActive: e.active,
|
|
134
|
-
activeIndex: e.index
|
|
27
|
+
}, f = r([l, c, s, n], k), P = r([C, A, I, x, a, n, f, p], _), Z = r([m, P], (t, e) => {
|
|
28
|
+
var o;
|
|
29
|
+
return (o = t.coordinate) !== null && o !== void 0 ? o : e;
|
|
30
|
+
}), L = r(a, v, b), $ = r([f, v, T, g, L, p, c], K), tt = r([m], (t) => ({
|
|
31
|
+
isActive: t.active,
|
|
32
|
+
activeIndex: t.index
|
|
135
33
|
}));
|
|
136
34
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
Ie as useChartName
|
|
35
|
+
Z as selectActiveCoordinate,
|
|
36
|
+
v as selectActiveIndex,
|
|
37
|
+
L as selectActiveLabel,
|
|
38
|
+
P as selectCoordinateForDefaultIndex,
|
|
39
|
+
tt as selectIsTooltipActive,
|
|
40
|
+
Y as selectTooltipDataKey,
|
|
41
|
+
m as selectTooltipInteractionState,
|
|
42
|
+
$ as selectTooltipPayload,
|
|
43
|
+
f as selectTooltipPayloadConfigurations,
|
|
44
|
+
X as useChartName
|
|
148
45
|
};
|
|
@@ -1,75 +1,80 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSelector as e } from "../../../../reselect/dist/reselect.js";
|
|
3
|
-
import {
|
|
4
|
-
import { selectChartLayout as
|
|
5
|
-
import { isCategoricalAxis as
|
|
6
|
-
import { selectChartDataWithIndexes as
|
|
7
|
-
import { selectChartName as
|
|
8
|
-
import { mathSign as
|
|
9
|
-
import { combineAxisRangeWithReverse as
|
|
10
|
-
import { selectDefaultTooltipEventType as
|
|
11
|
-
import { combineActiveLabel as
|
|
12
|
-
import { selectTooltipSettings as
|
|
13
|
-
import { combineTooltipInteractionState as
|
|
14
|
-
import { combineActiveTooltipIndex as
|
|
15
|
-
import { combineCoordinateForDefaultIndex as
|
|
16
|
-
import { selectChartWidth as
|
|
17
|
-
import {
|
|
18
|
-
import { combineTooltipPayloadConfigurations as
|
|
19
|
-
import { selectTooltipPayloadSearcher as
|
|
20
|
-
import { selectTooltipState as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
return
|
|
30
|
-
},
|
|
31
|
-
if (
|
|
3
|
+
import { combineScaleFunction as W, combineDisplayedData as F, selectHasBar as H, combineRealScaleType as K, selectAxisRange as U, combineDuplicateDomain as j, combineCategoricalDomain as q, combineAxisDomainWithNiceTicks as z, combineGraphicalItemsData as J, combineAppliedValues as M, combineAxisDomain as Q, combineNiceTicks as X, combineGraphicalItemsSettings as Y, combineNumericalDomain as Z, itemAxisPredicate as _, getDomainDefinition as $, combineDomainOfStackGroups as ee, selectAllErrorBarSettings as te, combineAppliedNumericalValuesIncludingErrorValues as ie, mergeDomains as oe, combineStackGroups as ae, filterGraphicalNotStackedItems as re, combineDotsDomain as le, combineLinesDomain as ce, combineAreasDomain as se, selectReferenceDots as ne, filterReferenceElements as A, selectReferenceLines as me, selectReferenceAreas as pe } from "./axisSelectors.js";
|
|
4
|
+
import { selectChartLayout as s } from "../../context/chartLayoutContext.js";
|
|
5
|
+
import { isCategoricalAxis as fe } from "../../util/ChartUtils.js";
|
|
6
|
+
import { selectChartDataWithIndexes as d } from "./dataSelectors.js";
|
|
7
|
+
import { selectChartName as de, selectStackOffsetType as y } from "./rootPropsSelectors.js";
|
|
8
|
+
import { mathSign as ve } from "../../util/DataUtils.js";
|
|
9
|
+
import { combineAxisRangeWithReverse as Te } from "./combiners/combineAxisRangeWithReverse.js";
|
|
10
|
+
import { selectDefaultTooltipEventType as ue, selectValidateTooltipEventTypes as Ae, combineTooltipEventType as De } from "./selectTooltipEventType.js";
|
|
11
|
+
import { combineActiveLabel as be } from "./combiners/combineActiveLabel.js";
|
|
12
|
+
import { selectTooltipSettings as xe } from "./selectTooltipSettings.js";
|
|
13
|
+
import { combineTooltipInteractionState as he } from "./combiners/combineTooltipInteractionState.js";
|
|
14
|
+
import { combineActiveTooltipIndex as ge } from "./combiners/combineActiveTooltipIndex.js";
|
|
15
|
+
import { combineCoordinateForDefaultIndex as Se } from "./combiners/combineCoordinateForDefaultIndex.js";
|
|
16
|
+
import { selectChartWidth as Ie, selectChartHeight as ye } from "./containerSelectors.js";
|
|
17
|
+
import { selectChartOffsetInternal as Re } from "./selectChartOffsetInternal.js";
|
|
18
|
+
import { combineTooltipPayloadConfigurations as ke } from "./combiners/combineTooltipPayloadConfigurations.js";
|
|
19
|
+
import { selectTooltipPayloadSearcher as R } from "./selectTooltipPayloadSearcher.js";
|
|
20
|
+
import { selectTooltipState as k } from "./selectTooltipState.js";
|
|
21
|
+
import { combineTooltipPayload as Ce } from "./combiners/combineTooltipPayload.js";
|
|
22
|
+
import { selectTooltipAxisId as p } from "./selectTooltipAxisId.js";
|
|
23
|
+
import { selectTooltipAxisType as i } from "./selectTooltipAxisType.js";
|
|
24
|
+
import { selectTooltipAxis as o, selectTooltipAxisDataKey as Ge } from "./selectTooltipAxis.js";
|
|
25
|
+
import { combineDisplayedStackedData as Ee } from "./combiners/combineDisplayedStackedData.js";
|
|
26
|
+
import { isStacked as C } from "../types/StackedGraphicalItem.js";
|
|
27
|
+
var D = e([o, s, H, de, i], K), Ne = e([(t) => t.graphicalItems.cartesianItems, (t) => t.graphicalItems.polarItems], (t, a) => [...t, ...a]), Pe = e([i, p], _), f = e([Ne, o, Pe], Y), Be = e([f], (t) => t.filter(C)), Le = e([f], J), v = e([Le, d], F), Ve = e([Be, d, o], Ee), b = e([v, o, f], M), we = e([o], $), Oe = e([f], (t) => t.filter(C)), We = e([Ve, Oe, y], ae), Fe = e([We, d, i], ee), He = e([f], re), Ke = e([v, o, He, te, i], ie), Ue = e([ne, i, p], A), je = e([Ue, i], le), qe = e([pe, i, p], A), ze = e([qe, i], se), Je = e([me, i, p], A), Me = e([Je, i], ce), Qe = e([je, Me, ze], oe), Xe = e([o, we, Fe, Ke, Qe, s, i], Z), G = e([o, s, v, b, y, i, Xe], Q), Ye = e([G, o, D], X), Ze = e([o, G, Ye, i], z), E = (t) => {
|
|
28
|
+
var a = i(t), l = p(t), r = !1;
|
|
29
|
+
return U(t, a, l, r);
|
|
30
|
+
}, _e = e([o, E], Te), $e = e([o, D, Ze, _e], W), et = e([s, b, o, i], j), tt = e([s, b, o, i], q), it = (t, a, l, r, n, g, S, I) => {
|
|
31
|
+
if (a) {
|
|
32
32
|
var {
|
|
33
|
-
type:
|
|
34
|
-
} =
|
|
35
|
-
if (
|
|
36
|
-
var
|
|
37
|
-
return
|
|
38
|
-
coordinate:
|
|
33
|
+
type: V
|
|
34
|
+
} = a, w = fe(t, I);
|
|
35
|
+
if (r) {
|
|
36
|
+
var O = l === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, c = V === "category" && r.bandwidth ? r.bandwidth() / O : 0;
|
|
37
|
+
return c = I === "angleAxis" && n != null && n?.length >= 2 ? ve(n[0] - n[1]) * 2 * c : c, w && S ? S.map((m, u) => ({
|
|
38
|
+
coordinate: r(m) + c,
|
|
39
39
|
value: m,
|
|
40
|
-
index:
|
|
41
|
-
offset:
|
|
42
|
-
})) :
|
|
43
|
-
coordinate:
|
|
44
|
-
value:
|
|
45
|
-
index:
|
|
46
|
-
offset:
|
|
40
|
+
index: u,
|
|
41
|
+
offset: c
|
|
42
|
+
})) : r.domain().map((m, u) => ({
|
|
43
|
+
coordinate: r(m) + c,
|
|
44
|
+
value: g ? g[m] : m,
|
|
45
|
+
index: u,
|
|
46
|
+
offset: c
|
|
47
47
|
}));
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
},
|
|
51
|
-
e([
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
}, N = e([s, o, D, $e, E, et, tt, i], it), x = e([ue, Ae, xe], (t, a, l) => De(l.shared, t, a)), P = (t) => t.tooltip.settings.trigger, h = (t) => t.tooltip.settings.defaultIndex, T = e([k, x, P, h], he), B = e([T, v], ge), ot = e([N, B], be);
|
|
51
|
+
e([T], (t) => {
|
|
52
|
+
if (t)
|
|
53
|
+
return t.dataKey;
|
|
54
|
+
});
|
|
55
|
+
var L = e([k, x, P, h], ke), at = e([Ie, ye, s, Re, N, h, L, R], Se);
|
|
56
|
+
e([T, at], (t, a) => t != null && t.coordinate ? t.coordinate : a);
|
|
57
|
+
e([T], (t) => t.active);
|
|
58
|
+
var rt = e([L, B, d, Ge, ot, R, x], Ce);
|
|
59
|
+
e([rt], (t) => {
|
|
60
|
+
if (t != null) {
|
|
61
|
+
var a = t.map((l) => l.payload).filter((l) => l != null);
|
|
62
|
+
return Array.from(new Set(a));
|
|
63
|
+
}
|
|
55
64
|
});
|
|
56
|
-
var Xe = e([R, G, N, D], Ie), Ye = e([be, ge, c, he, k, D, Xe, ye], De);
|
|
57
|
-
e([T, Ye], (i, o) => i != null && i.coordinate ? i.coordinate : o);
|
|
58
|
-
e([T], (i) => i.active);
|
|
59
65
|
export {
|
|
60
|
-
|
|
66
|
+
ot as selectActiveLabel,
|
|
67
|
+
B as selectActiveTooltipIndex,
|
|
68
|
+
rt as selectActiveTooltipPayload,
|
|
61
69
|
f as selectAllGraphicalItemsSettings,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
k as selectTooltipAxisTicks,
|
|
71
|
-
t as selectTooltipAxisType,
|
|
72
|
-
Je as selectTooltipCategoricalDomain,
|
|
70
|
+
Ne as selectAllUnfilteredGraphicalItems,
|
|
71
|
+
G as selectTooltipAxisDomain,
|
|
72
|
+
Ze as selectTooltipAxisDomainIncludingNiceTicks,
|
|
73
|
+
_e as selectTooltipAxisRangeWithReverse,
|
|
74
|
+
D as selectTooltipAxisRealScaleType,
|
|
75
|
+
$e as selectTooltipAxisScale,
|
|
76
|
+
N as selectTooltipAxisTicks,
|
|
77
|
+
tt as selectTooltipCategoricalDomain,
|
|
73
78
|
v as selectTooltipDisplayedData,
|
|
74
|
-
|
|
79
|
+
Le as selectTooltipGraphicalItemsData
|
|
75
80
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import d from "../../../../_virtual/sortBy.js";
|
|
3
3
|
import b from "../../../../_virtual/get.js";
|
|
4
|
-
import { isNullish as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
4
|
+
import { isNullish as l, isNumOrStr as P, isNumber as p, isNan as y } from "./DataUtils.js";
|
|
5
|
+
import { getSliced as w } from "./getSliced.js";
|
|
6
|
+
import M from "../../../d3-shape/src/stack.js";
|
|
7
|
+
import S from "../../../d3-shape/src/order/none.js";
|
|
8
|
+
import E from "../../../d3-shape/src/offset/wiggle.js";
|
|
9
|
+
import D from "../../../d3-shape/src/offset/silhouette.js";
|
|
10
|
+
import _ from "../../../d3-shape/src/offset/none.js";
|
|
11
|
+
import k from "../../../d3-shape/src/offset/expand.js";
|
|
12
|
+
function g(r, t) {
|
|
12
13
|
var n = Object.keys(r);
|
|
13
14
|
if (Object.getOwnPropertySymbols) {
|
|
14
15
|
var a = Object.getOwnPropertySymbols(r);
|
|
@@ -21,22 +22,22 @@ function l(r, t) {
|
|
|
21
22
|
function u(r) {
|
|
22
23
|
for (var t = 1; t < arguments.length; t++) {
|
|
23
24
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
24
|
-
t % 2 ?
|
|
25
|
-
|
|
26
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) :
|
|
25
|
+
t % 2 ? g(Object(n), !0).forEach(function(a) {
|
|
26
|
+
x(r, a, n[a]);
|
|
27
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : g(Object(n)).forEach(function(a) {
|
|
27
28
|
Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(n, a));
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
return r;
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
return (t =
|
|
33
|
+
function x(r, t, n) {
|
|
34
|
+
return (t = I(t)) in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
var t =
|
|
36
|
+
function I(r) {
|
|
37
|
+
var t = A(r, "string");
|
|
37
38
|
return typeof t == "symbol" ? t : t + "";
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function A(r, t) {
|
|
40
41
|
if (typeof r != "object" || !r) return r;
|
|
41
42
|
var n = r[Symbol.toPrimitive];
|
|
42
43
|
if (n !== void 0) {
|
|
@@ -46,10 +47,10 @@ function x(r, t) {
|
|
|
46
47
|
}
|
|
47
48
|
return (t === "string" ? String : Number)(r);
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
50
|
+
function N(r, t, n) {
|
|
51
|
+
return l(r) || l(t) ? n : P(t) ? b(r, t, n) : typeof t == "function" ? t(r) : n;
|
|
51
52
|
}
|
|
52
|
-
var
|
|
53
|
+
var H = (r, t, n) => {
|
|
53
54
|
if (t && n) {
|
|
54
55
|
var {
|
|
55
56
|
width: a,
|
|
@@ -69,71 +70,71 @@ var X = (r, t, n) => {
|
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
72
|
return r;
|
|
72
|
-
},
|
|
73
|
+
}, J = (r, t) => r === "horizontal" && t === "xAxis" || r === "vertical" && t === "yAxis" || r === "centric" && t === "angleAxis" || r === "radial" && t === "radiusAxis", O = 1e-4, Q = (r) => {
|
|
73
74
|
var t = r.domain();
|
|
74
75
|
if (!(!t || t.length <= 2)) {
|
|
75
76
|
var n = t.length, a = r.range(), f = Math.min(a[0], a[1]) - O, e = Math.max(a[0], a[1]) + O, o = r(t[0]), i = r(t[n - 1]);
|
|
76
77
|
(o < f || o > e || i < f || i > e) && r.domain([t[0], t[n - 1]]);
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
+
}, s = (r) => {
|
|
79
80
|
var t = r.length;
|
|
80
81
|
if (!(t <= 0))
|
|
81
82
|
for (var n = 0, a = r[0].length; n < a; ++n)
|
|
82
83
|
for (var f = 0, e = 0, o = 0; o < t; ++o) {
|
|
83
|
-
var i =
|
|
84
|
+
var i = y(r[o][n][1]) ? r[o][n][0] : r[o][n][1];
|
|
84
85
|
i >= 0 ? (r[o][n][0] = f, r[o][n][1] = f + i, f = r[o][n][1]) : (r[o][n][0] = e, r[o][n][1] = e + i, e = r[o][n][1]);
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
+
}, B = (r) => {
|
|
87
88
|
var t = r.length;
|
|
88
89
|
if (!(t <= 0))
|
|
89
90
|
for (var n = 0, a = r[0].length; n < a; ++n)
|
|
90
91
|
for (var f = 0, e = 0; e < t; ++e) {
|
|
91
|
-
var o =
|
|
92
|
+
var o = y(r[e][n][1]) ? r[e][n][0] : r[e][n][1];
|
|
92
93
|
o >= 0 ? (r[e][n][0] = f, r[e][n][1] = f + o, f = r[e][n][1]) : (r[e][n][0] = 0, r[e][n][1] = 0);
|
|
93
94
|
}
|
|
94
|
-
},
|
|
95
|
-
sign:
|
|
95
|
+
}, F = {
|
|
96
|
+
sign: s,
|
|
96
97
|
// @ts-expect-error definitelytyped types are incorrect
|
|
97
|
-
expand:
|
|
98
|
+
expand: k,
|
|
98
99
|
// @ts-expect-error definitelytyped types are incorrect
|
|
99
|
-
none:
|
|
100
|
+
none: _,
|
|
100
101
|
// @ts-expect-error definitelytyped types are incorrect
|
|
101
|
-
silhouette:
|
|
102
|
+
silhouette: D,
|
|
102
103
|
// @ts-expect-error definitelytyped types are incorrect
|
|
103
|
-
wiggle:
|
|
104
|
-
positive:
|
|
105
|
-
},
|
|
106
|
-
var a =
|
|
104
|
+
wiggle: E,
|
|
105
|
+
positive: B
|
|
106
|
+
}, Y = (r, t, n) => {
|
|
107
|
+
var a = F[n], f = M().keys(t).value((e, o) => +N(e, o, 0)).order(S).offset(a);
|
|
107
108
|
return f(r);
|
|
108
|
-
},
|
|
109
|
+
}, L = (r) => {
|
|
109
110
|
var t = r.flat(2).filter(p);
|
|
110
111
|
return [Math.min(...t), Math.max(...t)];
|
|
111
|
-
},
|
|
112
|
+
}, V = (r) => [r[0] === 1 / 0 ? 0 : r[0], r[1] === -1 / 0 ? 0 : r[1]], Z = (r, t, n) => {
|
|
112
113
|
if (r != null)
|
|
113
|
-
return
|
|
114
|
+
return V(Object.keys(r).reduce((a, f) => {
|
|
114
115
|
var e = r[f], {
|
|
115
116
|
stackedData: o
|
|
116
|
-
} = e, i = o.reduce((
|
|
117
|
-
var
|
|
118
|
-
return [Math.min(
|
|
117
|
+
} = e, i = o.reduce((m, v) => {
|
|
118
|
+
var c = w(v, t, n), h = L(c);
|
|
119
|
+
return [Math.min(m[0], h[0]), Math.max(m[1], h[1])];
|
|
119
120
|
}, [1 / 0, -1 / 0]);
|
|
120
121
|
return [Math.min(i[0], a[0]), Math.max(i[1], a[1])];
|
|
121
122
|
}, [1 / 0, -1 / 0]));
|
|
122
|
-
},
|
|
123
|
+
}, T = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, j = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, rr = (r, t, n) => {
|
|
123
124
|
if (r && r.scale && r.scale.bandwidth) {
|
|
124
125
|
var a = r.scale.bandwidth();
|
|
125
126
|
return a;
|
|
126
127
|
}
|
|
127
128
|
if (r && t && t.length >= 2) {
|
|
128
|
-
for (var f =
|
|
129
|
-
var
|
|
130
|
-
e = Math.min((
|
|
129
|
+
for (var f = d(t, (c) => c.coordinate), e = 1 / 0, o = 1, i = f.length; o < i; o++) {
|
|
130
|
+
var m = f[o], v = f[o - 1];
|
|
131
|
+
e = Math.min((m.coordinate || 0) - (v.coordinate || 0), e);
|
|
131
132
|
}
|
|
132
133
|
return e === 1 / 0 ? 0 : e;
|
|
133
134
|
}
|
|
134
135
|
return 0;
|
|
135
136
|
};
|
|
136
|
-
function
|
|
137
|
+
function tr(r) {
|
|
137
138
|
var {
|
|
138
139
|
tooltipEntrySettings: t,
|
|
139
140
|
dataKey: n,
|
|
@@ -149,16 +150,16 @@ function T(r) {
|
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
export {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
j as MAX_VALUE_REG,
|
|
154
|
+
T as MIN_VALUE_REG,
|
|
155
|
+
H as appendOffsetOfLegend,
|
|
156
|
+
Q as checkDomainOfScale,
|
|
157
|
+
rr as getBandSizeOfAxis,
|
|
158
|
+
Z as getDomainOfStackGroups,
|
|
159
|
+
Y as getStackedData,
|
|
160
|
+
tr as getTooltipEntry,
|
|
161
|
+
N as getValueByDataKey,
|
|
162
|
+
J as isCategoricalAxis,
|
|
163
|
+
B as offsetPositive,
|
|
164
|
+
s as offsetSign
|
|
164
165
|
};
|
|
@@ -1,42 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
import o from "../../../../_virtual/get.js";
|
|
3
|
+
var l = (r) => r === 0 ? 0 : r > 0 ? 1 : -1, f = (r) => typeof r == "number" && r != +r, g = (r) => typeof r == "string" && r.indexOf("%") === r.length - 1, u = (r) => (typeof r == "number" || r instanceof Number) && !f(r), h = (r) => u(r) || typeof r == "string", c = 0, p = (r) => {
|
|
4
|
+
var n = ++c;
|
|
5
|
+
return "".concat(r || "").concat(n);
|
|
6
|
+
}, v = function(n, e) {
|
|
7
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
5
8
|
if (!u(n) && typeof n != "string")
|
|
6
|
-
return
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
if (
|
|
10
|
-
return
|
|
11
|
-
var
|
|
12
|
-
|
|
9
|
+
return t;
|
|
10
|
+
var i;
|
|
11
|
+
if (g(n)) {
|
|
12
|
+
if (e == null)
|
|
13
|
+
return t;
|
|
14
|
+
var s = n.indexOf("%");
|
|
15
|
+
i = e * parseFloat(n.slice(0, s)) / 100;
|
|
13
16
|
} else
|
|
14
|
-
|
|
15
|
-
return i
|
|
16
|
-
},
|
|
17
|
+
i = +n;
|
|
18
|
+
return f(i) && (i = t), a && e != null && i > e && (i = e), i;
|
|
19
|
+
}, N = (r) => {
|
|
17
20
|
if (!Array.isArray(r))
|
|
18
21
|
return !1;
|
|
19
|
-
for (var n = r.length,
|
|
20
|
-
if (!
|
|
21
|
-
|
|
22
|
+
for (var n = r.length, e = {}, t = 0; t < n; t++)
|
|
23
|
+
if (!e[r[t]])
|
|
24
|
+
e[r[t]] = !0;
|
|
22
25
|
else
|
|
23
26
|
return !0;
|
|
24
27
|
return !1;
|
|
25
28
|
};
|
|
26
|
-
function
|
|
29
|
+
function b(r, n, e) {
|
|
30
|
+
return u(r) && u(n) ? r + e * (n - r) : n;
|
|
31
|
+
}
|
|
32
|
+
function A(r, n, e) {
|
|
27
33
|
if (!(!r || !r.length))
|
|
28
|
-
return r.find((
|
|
34
|
+
return r.find((t) => t && (typeof n == "function" ? n(t) : o(t, n)) === e);
|
|
29
35
|
}
|
|
30
|
-
var m = (r) => r === null || typeof r > "u",
|
|
36
|
+
var m = (r) => r === null || typeof r > "u", x = (r) => m(r) ? r : "".concat(r.charAt(0).toUpperCase()).concat(r.slice(1));
|
|
31
37
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
A as findEntryInArray,
|
|
39
|
+
v as getPercentValue,
|
|
40
|
+
N as hasDuplicate,
|
|
41
|
+
b as interpolate,
|
|
42
|
+
f as isNan,
|
|
36
43
|
m as isNullish,
|
|
37
44
|
h as isNumOrStr,
|
|
38
45
|
u as isNumber,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
g as isPercent,
|
|
47
|
+
l as mathSign,
|
|
48
|
+
p as uniqueId,
|
|
49
|
+
x as upperFirst
|
|
42
50
|
};
|