@dudousxd/nestjs-catalog-react 0.34.1 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccessConsole.d.ts +1 -1
- package/dist/AccessConsole.js +5 -5
- package/dist/CatalogManager.js +11 -11
- package/dist/ConnectionPanel.js +9 -9
- package/dist/CoverageLedger.js +1 -1
- package/dist/DashboardBoard.js +10 -10
- package/dist/EditableField.js +1 -1
- package/dist/FlowView.js +3 -3
- package/dist/GovernanceTimeline.d.ts +1 -1
- package/dist/GovernanceTimeline.js +5 -5
- package/dist/LoadExpectationSection.js +6 -6
- package/dist/LoadedBySection.d.ts +1 -1
- package/dist/LoadedBySection.js +4 -4
- package/dist/ObjectExplorer.js +5 -5
- package/dist/PipelineConsole.js +9 -9
- package/dist/QueryConsole.js +7 -7
- package/dist/SavedQueryPanel.js +7 -7
- package/dist/TraceExplorer.js +3 -3
- package/dist/TransformEditor.js +8 -8
- package/dist/WorkflowCanvas.js +30 -30
- package/dist/charts/bklit/area-chart-loading.d.ts +2 -2
- package/dist/charts/bklit/area-chart-loading.js +4 -4
- package/dist/charts/bklit/area-chart.d.ts +3 -3
- package/dist/charts/bklit/area-chart.js +7 -7
- package/dist/charts/bklit/area-gradient-defs.d.ts +1 -1
- package/dist/charts/bklit/area-gradient-defs.js +1 -1
- package/dist/charts/bklit/area.d.ts +4 -4
- package/dist/charts/bklit/area.js +11 -11
- package/dist/charts/bklit/bar-chart-loading.d.ts +1 -1
- package/dist/charts/bklit/bar-chart-loading.js +1 -1
- package/dist/charts/bklit/bar-chart.d.ts +2 -2
- package/dist/charts/bklit/bar-chart.js +12 -12
- package/dist/charts/bklit/bar-squares.d.ts +1 -1
- package/dist/charts/bklit/bar-squares.js +5 -5
- package/dist/charts/bklit/bar-x-axis.js +2 -2
- package/dist/charts/bklit/bar-y-axis.js +2 -2
- package/dist/charts/bklit/bar.js +4 -4
- package/dist/charts/bklit/chart-context.d.ts +4 -4
- package/dist/charts/bklit/chart-context.js +1 -1
- package/dist/charts/bklit/chart-loading-label.js +3 -3
- package/dist/charts/bklit/chart-reveal-clip.js +1 -1
- package/dist/charts/bklit/grid.js +3 -3
- package/dist/charts/bklit/highlight-segment-bounds.d.ts +2 -2
- package/dist/charts/bklit/line-chart-loading.d.ts +2 -2
- package/dist/charts/bklit/line-chart-loading.js +4 -4
- package/dist/charts/bklit/line-chart.d.ts +3 -3
- package/dist/charts/bklit/line-chart.js +6 -6
- package/dist/charts/bklit/line-loading-pulse.d.ts +1 -1
- package/dist/charts/bklit/line-loading-pulse.js +3 -3
- package/dist/charts/bklit/line-series-terminal-marker.js +2 -2
- package/dist/charts/bklit/line.d.ts +4 -4
- package/dist/charts/bklit/line.js +11 -11
- package/dist/charts/bklit/loading-sweep.js +2 -2
- package/dist/charts/bklit/motion-utils.js +1 -1
- package/dist/charts/bklit/pattern-area.js +1 -1
- package/dist/charts/bklit/pattern-preset.js +1 -1
- package/dist/charts/bklit/projection-config.d.ts +1 -1
- package/dist/charts/bklit/projection-config.js +3 -3
- package/dist/charts/bklit/projection-line-end-marker.d.ts +1 -1
- package/dist/charts/bklit/projection-line-end-marker.js +1 -1
- package/dist/charts/bklit/projection-line.d.ts +1 -1
- package/dist/charts/bklit/projection-line.js +2 -2
- package/dist/charts/bklit/reference-area-config.js +1 -1
- package/dist/charts/bklit/reference-area-registration-context.d.ts +1 -1
- package/dist/charts/bklit/series-dash-tail-overlay.js +2 -2
- package/dist/charts/bklit/series-highlight-layer.js +3 -3
- package/dist/charts/bklit/series-hover-dim.js +2 -2
- package/dist/charts/bklit/series-markers.d.ts +1 -1
- package/dist/charts/bklit/series-markers.js +4 -4
- package/dist/charts/bklit/series-point-marker.js +1 -1
- package/dist/charts/bklit/time-series-chart-shell.d.ts +2 -2
- package/dist/charts/bklit/time-series-chart-shell.js +20 -20
- package/dist/charts/bklit/tooltip/chart-tooltip.d.ts +4 -4
- package/dist/charts/bklit/tooltip/chart-tooltip.js +8 -8
- package/dist/charts/bklit/tooltip/index.d.ts +6 -6
- package/dist/charts/bklit/tooltip/index.js +6 -6
- package/dist/charts/bklit/tooltip/tooltip-box.d.ts +1 -1
- package/dist/charts/bklit/tooltip/tooltip-box.js +3 -3
- package/dist/charts/bklit/tooltip/tooltip-content.js +1 -1
- package/dist/charts/bklit/tooltip/tooltip-dot.d.ts +1 -1
- package/dist/charts/bklit/tooltip/tooltip-dot.js +2 -2
- package/dist/charts/bklit/tooltip/tooltip-indicator.d.ts +2 -2
- package/dist/charts/bklit/tooltip/tooltip-indicator.js +3 -3
- package/dist/charts/bklit/use-animated-series-path.js +2 -2
- package/dist/charts/bklit/use-animated-y-domains.d.ts +2 -2
- package/dist/charts/bklit/use-animated-y-domains.js +2 -2
- package/dist/charts/bklit/use-chart-interaction.d.ts +1 -1
- package/dist/charts/bklit/use-chart-interaction.js +2 -2
- package/dist/charts/bklit/use-chart-phase-orchestrator.d.ts +1 -1
- package/dist/charts/bklit/use-chart-phase-orchestrator.js +1 -1
- package/dist/charts/bklit/use-grid-shimmer.js +1 -1
- package/dist/charts/bklit/use-highlight-segment.js +3 -3
- package/dist/charts/bklit/use-mount-progress.js +1 -1
- package/dist/charts/bklit/x-axis.js +5 -5
- package/dist/charts/bklit/y-axis-scales.d.ts +1 -1
- package/dist/charts/bklit/y-domain-utils.d.ts +2 -2
- package/dist/charts/bklit/y-domain-utils.js +2 -2
- package/dist/charts/bklit.d.ts +1 -1
- package/dist/charts/bklit.js +11 -11
- package/dist/charts/body.js +4 -4
- package/dist/charts/components/shimmering-text.js +1 -1
- package/dist/charts/css.d.ts +2 -2
- package/dist/charts/css.js +1 -1
- package/dist/charts/recharts.d.ts +1 -1
- package/dist/charts/recharts.js +2 -2
- package/dist/charts/skeleton.js +1 -1
- package/dist/connection-form.js +3 -3
- package/dist/context.d.ts +3 -3
- package/dist/context.js +1 -1
- package/dist/diff/RevisionDiff.d.ts +1 -1
- package/dist/diff/RevisionDiff.js +7 -7
- package/dist/embed/EmbeddedChart.d.ts +2 -2
- package/dist/embed/EmbeddedChart.js +4 -4
- package/dist/embed/EmbeddedDashboard.d.ts +2 -2
- package/dist/embed/EmbeddedDashboard.js +6 -6
- package/dist/embed/actions.d.ts +1 -1
- package/dist/embed/actions.js +2 -2
- package/dist/embed/chart-card.d.ts +2 -2
- package/dist/embed/chart-card.js +7 -7
- package/dist/embed/index.d.ts +5 -5
- package/dist/embed/index.js +4 -4
- package/dist/embed/slots.js +1 -1
- package/dist/export/index.d.ts +6 -6
- package/dist/export/index.js +6 -6
- package/dist/export/pdf.d.ts +2 -2
- package/dist/export/pdf.js +2 -2
- package/dist/export/png.d.ts +1 -1
- package/dist/export/png.js +1 -1
- package/dist/export/serialize.js +1 -1
- package/dist/export/use-pdf-export.d.ts +2 -2
- package/dist/export/use-pdf-export.js +3 -3
- package/dist/export/use-png-export.d.ts +1 -1
- package/dist/export/use-png-export.js +1 -1
- package/dist/index.d.ts +46 -46
- package/dist/index.js +46 -46
- package/dist/schema-discovery.js +2 -2
- package/dist/search-console.js +3 -3
- package/dist/sharing.js +2 -2
- package/dist/source-connection.d.ts +1 -1
- package/dist/source-connection.js +6 -6
- package/dist/source-fields.d.ts +2 -2
- package/dist/source-fields.js +6 -6
- package/dist/ui/button.js +1 -1
- package/dist/ui/chart.js +1 -1
- package/dist/ui/code-editor.d.ts +2 -2
- package/dist/ui/code-editor.js +2 -2
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/data-table.js +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/field.js +1 -1
- package/dist/ui/rich-text-field.js +2 -2
- package/dist/ui/select.js +1 -1
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/switch.js +1 -1
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/dist/workflow/canvas-menu.d.ts +1 -1
- package/dist/workflow/canvas-menu.js +4 -4
- package/dist/workflow/create.d.ts +1 -1
- package/dist/workflow/create.js +4 -4
- package/dist/workflow/edges.d.ts +1 -1
- package/dist/workflow/edges.js +1 -1
- package/dist/workflow/graph.d.ts +2 -2
- package/dist/workflow/graph.js +2 -2
- package/dist/workflow/history.d.ts +1 -1
- package/dist/workflow/history.js +6 -6
- package/dist/workflow/index.d.ts +4 -4
- package/dist/workflow/index.js +4 -4
- package/dist/workflow/lifecycle.d.ts +2 -2
- package/dist/workflow/lifecycle.js +8 -8
- package/dist/workflow/menu.d.ts +2 -2
- package/dist/workflow/menu.js +3 -3
- package/dist/workflow/nodes.d.ts +2 -2
- package/dist/workflow/nodes.js +3 -3
- package/dist/workflow/place.d.ts +1 -1
- package/dist/workflow/place.js +1 -1
- package/dist/workflow/removal.d.ts +1 -1
- package/dist/workflow/removal.js +1 -1
- package/dist/workflow/runs.js +5 -5
- package/dist/workflow/shape.d.ts +1 -1
- package/dist/workflow/shape.js +1 -1
- package/dist/workflow/validate.d.ts +1 -1
- package/dist/workflow/validate.js +3 -3
- package/dist/workflow/wiring.d.ts +1 -1
- package/dist/workflow/wiring.js +4 -4
- package/package.json +9 -6
|
@@ -13,18 +13,18 @@ import { localPoint } from '@visx/event';
|
|
|
13
13
|
import { ParentSize } from '@visx/responsive';
|
|
14
14
|
import { scaleBand, scaleLinear } from '@visx/scale';
|
|
15
15
|
import { memo, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
16
|
-
import { cn } from '../../cn';
|
|
17
|
-
import { DEFAULT_ANIMATION_EASING } from './animation';
|
|
18
|
-
import { topSquareCenterY } from './bar-squares-layout';
|
|
19
|
-
import { forEachChartChild, isChartClipPassthrough, isClipExcludedComponent, isPostOverlayComponent, isUnderlayComponent, renderKeyedChartLayers, resolveChartChildElement, } from './chart-child-passthrough';
|
|
20
|
-
import { ChartProvider } from './chart-context';
|
|
21
|
-
import { isGradientDefComponent, isPatternDefComponent } from './chart-defs';
|
|
22
|
-
import { shortDateFmt } from './chart-formatters';
|
|
23
|
-
import { DEFAULT_CHART_LIFECYCLE, resolveRestingChartPhase, } from './chart-phase';
|
|
24
|
-
import { BarLoadingSkeleton } from './loading-sweep';
|
|
25
|
-
import { extractReferenceAreaConfigs } from './reference-area-config';
|
|
26
|
-
import { useScheduledTooltip } from './use-scheduled-tooltip';
|
|
27
|
-
import { buildYScalesForLines, getPrimaryYScale, normalizeYAxisId, wrapSingleYScale, } from './y-axis-scales';
|
|
16
|
+
import { cn } from '../../cn.js';
|
|
17
|
+
import { DEFAULT_ANIMATION_EASING } from './animation.js';
|
|
18
|
+
import { topSquareCenterY } from './bar-squares-layout.js';
|
|
19
|
+
import { forEachChartChild, isChartClipPassthrough, isClipExcludedComponent, isPostOverlayComponent, isUnderlayComponent, renderKeyedChartLayers, resolveChartChildElement, } from './chart-child-passthrough.js';
|
|
20
|
+
import { ChartProvider } from './chart-context.js';
|
|
21
|
+
import { isGradientDefComponent, isPatternDefComponent } from './chart-defs.js';
|
|
22
|
+
import { shortDateFmt } from './chart-formatters.js';
|
|
23
|
+
import { DEFAULT_CHART_LIFECYCLE, resolveRestingChartPhase, } from './chart-phase.js';
|
|
24
|
+
import { BarLoadingSkeleton } from './loading-sweep.js';
|
|
25
|
+
import { extractReferenceAreaConfigs } from './reference-area-config.js';
|
|
26
|
+
import { useScheduledTooltip } from './use-scheduled-tooltip.js';
|
|
27
|
+
import { buildYScalesForLines, getPrimaryYScale, normalizeYAxisId, wrapSingleYScale, } from './y-axis-scales.js';
|
|
28
28
|
/** Skeleton bars to show when `status="loading"` and `data` is empty. */
|
|
29
29
|
const FALLBACK_LOADING_BARS = 12;
|
|
30
30
|
const DEFAULT_MARGIN = { top: 40, right: 40, bottom: 40, left: 40 };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { motion } from 'motion/react';
|
|
4
4
|
import { memo, useId, useMemo } from 'react';
|
|
5
|
-
import { computeSquareColumn } from './bar-squares-layout';
|
|
6
|
-
import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context';
|
|
7
|
-
import { useChartLegendHover } from './chart-legend-hover';
|
|
8
|
-
import { transitionWithDelay } from './motion-utils';
|
|
9
|
-
import { renderPatternPreset } from './pattern-preset';
|
|
5
|
+
import { computeSquareColumn } from './bar-squares-layout.js';
|
|
6
|
+
import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context.js';
|
|
7
|
+
import { useChartLegendHover } from './chart-legend-hover.js';
|
|
8
|
+
import { transitionWithDelay } from './motion-utils.js';
|
|
9
|
+
import { renderPatternPreset } from './pattern-preset.js';
|
|
10
10
|
function isPatternFill(fill) {
|
|
11
11
|
return fill.startsWith('url(');
|
|
12
12
|
}
|
|
@@ -12,8 +12,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
import { motion } from 'motion/react';
|
|
13
13
|
import { memo, useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
|
-
import { cn } from '../../cn';
|
|
16
|
-
import { useChart, useChartStable } from './chart-context';
|
|
15
|
+
import { cn } from '../../cn.js';
|
|
16
|
+
import { useChart, useChartStable } from './chart-context.js';
|
|
17
17
|
function BarXAxisLabel({ label, x, crosshairX, isHovering, tickerHalfWidth }) {
|
|
18
18
|
const fadeBuffer = 20;
|
|
19
19
|
const fadeRadius = tickerHalfWidth + fadeBuffer;
|
|
@@ -12,8 +12,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
import { motion } from 'motion/react';
|
|
13
13
|
import { memo, useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
|
-
import { cn } from '../../cn';
|
|
16
|
-
import { useChart, useChartStable } from './chart-context';
|
|
15
|
+
import { cn } from '../../cn.js';
|
|
16
|
+
import { useChart, useChartStable } from './chart-context.js';
|
|
17
17
|
function BarYAxisLabel({ label, y, bandHeight, isHovered }) {
|
|
18
18
|
return (_jsx("div", { className: "absolute right-0 flex items-center justify-end pr-2", style: {
|
|
19
19
|
top: y,
|
package/dist/charts/bklit/bar.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { motion } from 'motion/react';
|
|
4
4
|
import { memo, useId, useMemo } from 'react';
|
|
5
|
-
import { barDepthAndRise, barDepthMaxDepth } from './bar-depth-geometry';
|
|
6
|
-
import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context';
|
|
7
|
-
import { useChartLegendHover } from './chart-legend-hover';
|
|
8
|
-
import { transitionWithDelay } from './motion-utils';
|
|
5
|
+
import { barDepthAndRise, barDepthMaxDepth } from './bar-depth-geometry.js';
|
|
6
|
+
import { chartCssVars, useChart, useChartStable, useYScale } from './chart-context.js';
|
|
7
|
+
import { useChartLegendHover } from './chart-legend-hover.js';
|
|
8
|
+
import { transitionWithDelay } from './motion-utils.js';
|
|
9
9
|
// ── Bar-depth perspective trim ───────────────────────────────────────────
|
|
10
10
|
// Uses the SHARED geometry (`bar-depth-geometry.ts`) so a
|
|
11
11
|
// `<Bar perspective>` front face lines up exactly with
|
|
@@ -15,10 +15,10 @@ type ScaleBand<Domain extends {
|
|
|
15
15
|
}> = ReturnType<typeof scaleBand<Domain>>;
|
|
16
16
|
import type { Transition } from 'motion/react';
|
|
17
17
|
import { type Dispatch, type ReactNode, type RefObject, type SetStateAction } from 'react';
|
|
18
|
-
import type { ChartPhase, ChartStatus } from './chart-phase';
|
|
19
|
-
import type { ReferenceAreaConfig } from './reference-area-config';
|
|
20
|
-
import type { ChartSelection } from './use-chart-interaction';
|
|
21
|
-
import type { YDomain } from './y-domain-utils';
|
|
18
|
+
import type { ChartPhase, ChartStatus } from './chart-phase.js';
|
|
19
|
+
import type { ReferenceAreaConfig } from './reference-area-config.js';
|
|
20
|
+
import type { ChartSelection } from './use-chart-interaction.js';
|
|
21
|
+
import type { YDomain } from './y-domain-utils.js';
|
|
22
22
|
export declare const chartCssVars: {
|
|
23
23
|
background: string;
|
|
24
24
|
foreground: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useContext, useMemo, } from 'react';
|
|
4
|
-
import { DEFAULT_Y_AXIS_ID } from './y-axis-scales';
|
|
4
|
+
import { DEFAULT_Y_AXIS_ID } from './y-axis-scales.js';
|
|
5
5
|
// CSS variable references for theming
|
|
6
6
|
export const chartCssVars = {
|
|
7
7
|
background: 'var(--chart-background)',
|
|
@@ -10,9 +10,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* with upstream stays a diff rather than a merge.
|
|
11
11
|
*/
|
|
12
12
|
import { motion } from 'motion/react';
|
|
13
|
-
import { cn } from '../../cn';
|
|
14
|
-
import { ShimmeringText } from '../components/shimmering-text';
|
|
15
|
-
import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S, LOADING_LABEL_EXIT_Y_PX, } from './line-loading-timing';
|
|
13
|
+
import { cn } from '../../cn.js';
|
|
14
|
+
import { ShimmeringText } from '../components/shimmering-text.js';
|
|
15
|
+
import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S, LOADING_LABEL_EXIT_Y_PX, } from './line-loading-timing.js';
|
|
16
16
|
export function ChartLoadingLabel({ text = 'Loading', className, exiting = false, }) {
|
|
17
17
|
if (!text.trim()) {
|
|
18
18
|
return null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { motion } from 'motion/react';
|
|
4
|
-
import { clipRevealTransition } from './animation';
|
|
4
|
+
import { clipRevealTransition } from './animation.js';
|
|
5
5
|
/**
|
|
6
6
|
* Left-to-right clip reveal for cartesian series.
|
|
7
7
|
* Grows clip rect width from 0 → full (true LTR; scaleX is avoided — it reveals from center).
|
|
@@ -12,9 +12,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
import { GridColumns, GridRows } from '@visx/grid';
|
|
13
13
|
import { motion } from 'motion/react';
|
|
14
14
|
import { useId } from 'react';
|
|
15
|
-
import { chartCssVars, useChartStable, useYScale } from './chart-context';
|
|
16
|
-
import { useGridShimmer } from './use-grid-shimmer';
|
|
17
|
-
import { isLoadingChromePhase, isLoadingGridChromePhase } from './y-domain-utils';
|
|
15
|
+
import { chartCssVars, useChartStable, useYScale } from './chart-context.js';
|
|
16
|
+
import { useGridShimmer } from './use-grid-shimmer.js';
|
|
17
|
+
import { isLoadingChromePhase, isLoadingGridChromePhase } from './y-domain-utils.js';
|
|
18
18
|
const DEFAULT_SHIMMER_LENGTH_PX = 140;
|
|
19
19
|
const DEFAULT_SHIMMER_SPEED = 1;
|
|
20
20
|
const DEFAULT_SHIMMER_STROKE = 'color-mix(in oklch, var(--foreground) 68%, transparent)';
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* `cn`, which is the same function. Nothing else is modified, so re-syncing
|
|
8
8
|
* with upstream stays a diff rather than a merge.
|
|
9
9
|
*/
|
|
10
|
-
import type { TooltipData } from './chart-context';
|
|
11
|
-
import type { ChartSelection } from './use-chart-interaction';
|
|
10
|
+
import type { TooltipData } from './chart-context.js';
|
|
11
|
+
import type { ChartSelection } from './use-chart-interaction.js';
|
|
12
12
|
export interface SegmentBounds {
|
|
13
13
|
/** Left edge of the highlight band, in pixels. */
|
|
14
14
|
x: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Margin } from './chart-context';
|
|
2
|
-
import type { LoadingStyle } from './chart-phase';
|
|
1
|
+
import type { Margin } from './chart-context.js';
|
|
2
|
+
import type { LoadingStyle } from './chart-phase.js';
|
|
3
3
|
export interface LineChartLoadingProps {
|
|
4
4
|
/** Chart margins */
|
|
5
5
|
margin?: Partial<Margin>;
|
|
@@ -11,10 +11,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { curveNatural } from '@visx/curve';
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { DEFAULT_SKELETON_DATA_KEY, DEFAULT_SKELETON_POINT_COUNT, generateChartSkeletonData, } from './generate-chart-skeleton-data';
|
|
15
|
-
import { Grid } from './grid';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { DEFAULT_SKELETON_DATA_KEY, DEFAULT_SKELETON_POINT_COUNT, generateChartSkeletonData, } from './generate-chart-skeleton-data.js';
|
|
15
|
+
import { Grid } from './grid.js';
|
|
16
|
+
import { LineChart } from './line-chart.js';
|
|
17
|
+
import { Line } from './line.js';
|
|
18
18
|
const LOADING_DATA_KEY = DEFAULT_SKELETON_DATA_KEY;
|
|
19
19
|
const DEFAULT_LOADING_STROKE = 'var(--foreground)';
|
|
20
20
|
const DEFAULT_LOADING_GRID_STROKE = 'color-mix(in oklch, var(--chart-grid) 50%, transparent)';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Transition } from 'motion/react';
|
|
2
2
|
import { type CSSProperties, type ReactNode } from 'react';
|
|
3
|
-
import type { Margin } from './chart-context';
|
|
4
|
-
import { type ChartPhase, type ChartStatus } from './chart-phase';
|
|
3
|
+
import type { Margin } from './chart-context.js';
|
|
4
|
+
import { type ChartPhase, type ChartStatus } from './chart-phase.js';
|
|
5
5
|
export interface LineChartProps {
|
|
6
6
|
/** Data array - each item should have a date field and numeric values */
|
|
7
7
|
data: Record<string, unknown>[];
|
|
@@ -41,5 +41,5 @@ export interface LineChartProps {
|
|
|
41
41
|
children: ReactNode;
|
|
42
42
|
}
|
|
43
43
|
export declare function LineChart({ data, xDataKey, margin: marginProp, animationDuration, animationEasing, enterTransition, revealSignature, aspectRatio, className, status, loadingLabel, yDomainTweenDuration, yDomainTween, xDomain, xDomainSlotCount, tweenYDomainOnXDomainChange, style, onPhaseChange, children, }: LineChartProps): import("react").JSX.Element;
|
|
44
|
-
export { Line, type LineProps } from './line';
|
|
44
|
+
export { Line, type LineProps } from './line.js';
|
|
45
45
|
export default LineChart;
|
|
@@ -11,11 +11,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { ParentSize } from '@visx/responsive';
|
|
13
13
|
import { Children, isValidElement, useCallback, useMemo, useRef, useState, } from 'react';
|
|
14
|
-
import { cn } from '../../cn';
|
|
15
|
-
import { ChartLoadingLabel } from './chart-loading-label';
|
|
16
|
-
import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, resolveRestingChartPhase, } from './chart-phase';
|
|
17
|
-
import { Line } from './line';
|
|
18
|
-
import { TimeSeriesChartInner } from './time-series-chart-shell';
|
|
14
|
+
import { cn } from '../../cn.js';
|
|
15
|
+
import { ChartLoadingLabel } from './chart-loading-label.js';
|
|
16
|
+
import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, resolveRestingChartPhase, } from './chart-phase.js';
|
|
17
|
+
import { Line } from './line.js';
|
|
18
|
+
import { TimeSeriesChartInner } from './time-series-chart-shell.js';
|
|
19
19
|
const DEFAULT_MARGIN = { top: 40, right: 40, bottom: 40, left: 40 };
|
|
20
20
|
/** Series renderers that carry a dataKey but must not drive the shared y-domain. */
|
|
21
21
|
const LINE_DOMAIN_EXCLUDED_NAMES = new Set([
|
|
@@ -95,5 +95,5 @@ export function LineChart({ data, xDataKey = 'date', margin: marginProp, animati
|
|
|
95
95
|
...style,
|
|
96
96
|
}, children: [_jsx(ParentSize, { debounceTime: 10, children: ({ width, height }) => (_jsx(ChartInner, { animationDuration: animationDuration, animationEasing: animationEasing, chartStatus: status, containerRef: containerRef, data: data, enterTransition: enterTransition, height: height, loadingLabel: loadingLabel, margin: margin, onPhaseChange: handlePhaseChange, revealSignature: revealSignature, tweenYDomainOnXDomainChange: tweenYDomainOnXDomainChange, width: width, xDataKey: xDataKey, xDomain: xDomain, xDomainSlotCount: xDomainSlotCount, yDomainTween: yDomainTween, yDomainTweenDuration: yDomainTweenDuration, children: children })) }), showLoadingLabel ? (_jsx(ChartLoadingLabel, { exiting: chartPhase !== 'loading', text: loadingLabel })) : null] }));
|
|
97
97
|
}
|
|
98
|
-
export { Line } from './line';
|
|
98
|
+
export { Line } from './line.js';
|
|
99
99
|
export default LineChart;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartPhase } from './chart-phase';
|
|
1
|
+
import type { ChartPhase } from './chart-phase.js';
|
|
2
2
|
export type LineLoadingPulseMode = 'loop' | 'exit' | 'enter';
|
|
3
3
|
export declare function resolveLineLoadingPulseMode(phase: ChartPhase): LineLoadingPulseMode | null;
|
|
4
4
|
export interface LineLoadingPulseStrokeProps {
|
|
@@ -11,9 +11,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
*/
|
|
12
12
|
import { animate, motion, useMotionValue, useTransform } from 'motion/react';
|
|
13
13
|
import { useEffect, useId } from 'react';
|
|
14
|
-
import { chartCssVars, useChartStable } from './chart-context';
|
|
15
|
-
import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs } from './fade-edges';
|
|
16
|
-
import { LINE_LOADING_PULSE_CYCLE_S, LINE_LOADING_PULSE_EASE } from './line-loading-timing';
|
|
14
|
+
import { chartCssVars, useChartStable } from './chart-context.js';
|
|
15
|
+
import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs } from './fade-edges.js';
|
|
16
|
+
import { LINE_LOADING_PULSE_CYCLE_S, LINE_LOADING_PULSE_EASE } from './line-loading-timing.js';
|
|
17
17
|
const CLIP_PADDING = 10;
|
|
18
18
|
export function resolveLineLoadingPulseMode(phase) {
|
|
19
19
|
switch (phase) {
|
|
@@ -11,8 +11,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { motion } from 'motion/react';
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { useChartStable, useYScale } from './chart-context';
|
|
15
|
-
import { StaticSeriesPointMarker } from './series-point-marker';
|
|
14
|
+
import { useChartStable, useYScale } from './chart-context.js';
|
|
15
|
+
import { StaticSeriesPointMarker } from './series-point-marker.js';
|
|
16
16
|
function isTerminalMarkerPhaseVisible(phase) {
|
|
17
17
|
return phase === 'ready' || phase === 'exitingReady';
|
|
18
18
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
type CurveFactory = any;
|
|
2
|
-
import type { LoadingStyle } from './chart-phase';
|
|
3
|
-
import { type FadeEdges } from './fade-edges';
|
|
4
|
-
import { type LineLoadingPulseMode } from './line-loading-pulse';
|
|
5
|
-
import type { SeriesPointMarkerStyle } from './series-point-marker';
|
|
2
|
+
import type { LoadingStyle } from './chart-phase.js';
|
|
3
|
+
import { type FadeEdges } from './fade-edges.js';
|
|
4
|
+
import { type LineLoadingPulseMode } from './line-loading-pulse.js';
|
|
5
|
+
import type { SeriesPointMarkerStyle } from './series-point-marker.js';
|
|
6
6
|
export interface LineProps {
|
|
7
7
|
/** Key in data to use for y values */
|
|
8
8
|
dataKey: string;
|
|
@@ -12,17 +12,17 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
12
12
|
import { curveNatural } from '@visx/curve';
|
|
13
13
|
import { LinePath } from '@visx/shape';
|
|
14
14
|
import { useCallback, useId, useMemo, useRef, useState } from 'react';
|
|
15
|
-
import { chartCssVars, useChartStable, useYScale } from './chart-context';
|
|
16
|
-
import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs, } from './fade-edges';
|
|
17
|
-
import { LineLoadingPulseStroke, resolveLineLoadingPulseMode, } from './line-loading-pulse';
|
|
18
|
-
import { LINE_LOADING_LOOP_PAUSE_MS } from './line-loading-timing';
|
|
19
|
-
import { LineLoadingSweep } from './loading-sweep';
|
|
20
|
-
import { resolveDashTailBounds, usePathStrokeMetrics } from './path-stroke-utils';
|
|
21
|
-
import { SeriesDashTailOverlay } from './series-dash-tail-overlay';
|
|
22
|
-
import { SeriesHighlightLayer } from './series-highlight-layer';
|
|
23
|
-
import { SeriesHoverDim } from './series-hover-dim';
|
|
24
|
-
import { SeriesMarkers } from './series-markers';
|
|
25
|
-
import { useAnimatedSeriesPath } from './use-animated-series-path';
|
|
15
|
+
import { chartCssVars, useChartStable, useYScale } from './chart-context.js';
|
|
16
|
+
import { fadeGradientStops, resolveFadeSides, viewportFadeGradientAttrs, } from './fade-edges.js';
|
|
17
|
+
import { LineLoadingPulseStroke, resolveLineLoadingPulseMode, } from './line-loading-pulse.js';
|
|
18
|
+
import { LINE_LOADING_LOOP_PAUSE_MS } from './line-loading-timing.js';
|
|
19
|
+
import { LineLoadingSweep } from './loading-sweep.js';
|
|
20
|
+
import { resolveDashTailBounds, usePathStrokeMetrics } from './path-stroke-utils.js';
|
|
21
|
+
import { SeriesDashTailOverlay } from './series-dash-tail-overlay.js';
|
|
22
|
+
import { SeriesHighlightLayer } from './series-highlight-layer.js';
|
|
23
|
+
import { SeriesHoverDim } from './series-hover-dim.js';
|
|
24
|
+
import { SeriesMarkers } from './series-markers.js';
|
|
25
|
+
import { useAnimatedSeriesPath } from './use-animated-series-path.js';
|
|
26
26
|
function LineSeriesStroke({ animatedPathD, curve, getY, pathRef, renderData, strokeWidth, useDataTransitionPath, visibleStroke, xAccessor, xScale, }) {
|
|
27
27
|
if (useDataTransitionPath && animatedPathD) {
|
|
28
28
|
return (_jsx("path", { d: animatedPathD, fill: "none", ref: pathRef, stroke: visibleStroke, strokeLinecap: "round", strokeWidth: strokeWidth }));
|
|
@@ -13,8 +13,8 @@ import { scaleLinear } from '@visx/scale';
|
|
|
13
13
|
import { AreaClosed, LinePath } from '@visx/shape';
|
|
14
14
|
import { motion, useReducedMotion } from 'motion/react';
|
|
15
15
|
import { useCallback, useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
16
|
-
import { chartCssVars, useChartStable } from './chart-context';
|
|
17
|
-
import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S } from './line-loading-timing';
|
|
16
|
+
import { chartCssVars, useChartStable } from './chart-context.js';
|
|
17
|
+
import { LINE_LOADING_PULSE_EASE, LOADING_LABEL_EXIT_S } from './line-loading-timing.js';
|
|
18
18
|
/** One shimmer sweep, in seconds. */
|
|
19
19
|
const DEFAULT_SWEEP_DURATION_S = 2;
|
|
20
20
|
/** Sweep travel in objectBoundingBox space: off the left edge to off the right. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_CHART_ENTER_TRANSITION } from './animation';
|
|
1
|
+
import { DEFAULT_CHART_ENTER_TRANSITION } from './animation.js';
|
|
2
2
|
export function transitionWithDelay(transition, delaySeconds, fallback = DEFAULT_CHART_ENTER_TRANSITION) {
|
|
3
3
|
const base = transition ?? fallback;
|
|
4
4
|
return { ...base, delay: delaySeconds };
|
|
@@ -11,7 +11,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { curveMonotoneX } from '@visx/curve';
|
|
13
13
|
import { AreaClosed } from '@visx/shape';
|
|
14
|
-
import { useChartStable } from './chart-context';
|
|
14
|
+
import { useChartStable } from './chart-context.js';
|
|
15
15
|
/**
|
|
16
16
|
* Filled area using an SVG pattern (`url(#id)`).
|
|
17
17
|
* Pair with `PatternLines` in `AreaChart` children and an `Area` with `fillOpacity={0}` for the stroke line.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* with upstream stays a diff rather than a merge.
|
|
9
9
|
*/
|
|
10
10
|
import { type ReactNode } from 'react';
|
|
11
|
-
import type { ProjectionPoint } from './projection-utils';
|
|
11
|
+
import type { ProjectionPoint } from './projection-utils.js';
|
|
12
12
|
export interface ProjectionLineConfig {
|
|
13
13
|
yAxisId: string;
|
|
14
14
|
data: ProjectionPoint[];
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* with upstream stays a diff rather than a merge.
|
|
9
9
|
*/
|
|
10
10
|
import { Children, Fragment, isValidElement } from 'react';
|
|
11
|
-
import { isChartClipPassthrough } from './chart-child-passthrough';
|
|
12
|
-
import { projectionDateExtents, projectionValueExtents } from './projection-utils';
|
|
13
|
-
import { normalizeYAxisId } from './y-axis-scales';
|
|
11
|
+
import { isChartClipPassthrough } from './chart-child-passthrough.js';
|
|
12
|
+
import { projectionDateExtents, projectionValueExtents } from './projection-utils.js';
|
|
13
|
+
import { normalizeYAxisId } from './y-axis-scales.js';
|
|
14
14
|
function getChildComponentName(child) {
|
|
15
15
|
const childType = child.type;
|
|
16
16
|
return typeof child.type === 'function' ? childType.displayName || childType.name || '' : '';
|
|
@@ -10,7 +10,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* with upstream stays a diff rather than a merge.
|
|
11
11
|
*/
|
|
12
12
|
import { useCallback } from 'react';
|
|
13
|
-
import { useChartStable, useYScale } from './chart-context';
|
|
13
|
+
import { useChartStable, useYScale } from './chart-context.js';
|
|
14
14
|
/** Renders the projection horizon dot outside the series reveal clip. */
|
|
15
15
|
export function ProjectionLineEndMarker({ data, yAxisId, stroke = 'var(--chart-3)', strokeOpacity = 1, radius = 5, }) {
|
|
16
16
|
const { xScale, chartPhase, innerWidth } = useChartStable();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ProjectionCurveKind, type ProjectionPoint } from './projection-utils';
|
|
1
|
+
import { type ProjectionCurveKind, type ProjectionPoint } from './projection-utils.js';
|
|
2
2
|
type CurveFactory = any;
|
|
3
3
|
export type ProjectionStrokeStyle = 'solid' | 'gradient';
|
|
4
4
|
export interface ProjectionLineProps {
|
|
@@ -12,8 +12,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
import { curveLinear } from '@visx/curve';
|
|
13
13
|
import { LinePath } from '@visx/shape';
|
|
14
14
|
import { useCallback, useId, useMemo } from 'react';
|
|
15
|
-
import { useChartStable, useYScale } from './chart-context';
|
|
16
|
-
import { buildHorizontalTangentBezierPath, } from './projection-utils';
|
|
15
|
+
import { useChartStable, useYScale } from './chart-context.js';
|
|
16
|
+
import { buildHorizontalTangentBezierPath, } from './projection-utils.js';
|
|
17
17
|
function resolveVisibleEndX(endX, innerWidth, endpointRadius, strokeWidth) {
|
|
18
18
|
const edgePadding = endpointRadius + strokeWidth * 0.5 + 1;
|
|
19
19
|
return Math.min(endX, Math.max(0, innerWidth - edgePadding));
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* with upstream stays a diff rather than a merge.
|
|
9
9
|
*/
|
|
10
10
|
import { Children, isValidElement } from 'react';
|
|
11
|
-
import { normalizeYAxisId } from './y-axis-scales';
|
|
11
|
+
import { normalizeYAxisId } from './y-axis-scales.js';
|
|
12
12
|
function getChildComponentName(child) {
|
|
13
13
|
const childType = child.type;
|
|
14
14
|
return typeof child.type === 'function' ? childType.displayName || childType.name || '' : '';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReferenceAreaConfig } from './reference-area-config';
|
|
1
|
+
import type { ReferenceAreaConfig } from './reference-area-config.js';
|
|
2
2
|
export interface ReferenceAreaRegistrationContextValue {
|
|
3
3
|
registerReferenceArea: (id: string, config: ReferenceAreaConfig) => void;
|
|
4
4
|
unregisterReferenceArea: (id: string) => void;
|
|
@@ -10,8 +10,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* with upstream stays a diff rather than a merge.
|
|
11
11
|
*/
|
|
12
12
|
import { memo, useMemo } from 'react';
|
|
13
|
-
import { DashTailStroke } from './dash-tail-stroke';
|
|
14
|
-
import { resolveDashStartX, resolveDashTailBounds } from './path-stroke-utils';
|
|
13
|
+
import { DashTailStroke } from './dash-tail-stroke.js';
|
|
14
|
+
import { resolveDashStartX, resolveDashTailBounds } from './path-stroke-utils.js';
|
|
15
15
|
function SeriesDashTailOverlayImpl({ dashFromIndex, dashArray, data, pathD, pathLength, innerWidth, innerHeight, stroke, strokeWidth, xScale, xAccessor, }) {
|
|
16
16
|
const hasDashTail = resolveDashTailBounds(dashFromIndex, data.length);
|
|
17
17
|
const dashStartX = useMemo(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useChartStable } from './chart-context';
|
|
4
|
-
import { HighlightSegment } from './highlight-segment';
|
|
5
|
-
import { useHighlightSegment } from './use-highlight-segment';
|
|
3
|
+
import { useChartStable } from './chart-context.js';
|
|
4
|
+
import { HighlightSegment } from './highlight-segment.js';
|
|
5
|
+
import { useHighlightSegment } from './use-highlight-segment.js';
|
|
6
6
|
/**
|
|
7
7
|
* Self-contained hover-highlight band over a series stroke.
|
|
8
8
|
*
|
|
@@ -10,8 +10,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* with upstream stays a diff rather than a merge.
|
|
11
11
|
*/
|
|
12
12
|
import { motion } from 'motion/react';
|
|
13
|
-
import { useChartHover } from './chart-context';
|
|
14
|
-
import { useChartLegendHover } from './chart-legend-hover';
|
|
13
|
+
import { useChartHover } from './chart-context.js';
|
|
14
|
+
import { useChartLegendHover } from './chart-legend-hover.js';
|
|
15
15
|
/**
|
|
16
16
|
* Wraps stable series visuals with a hover-driven opacity animation.
|
|
17
17
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SeriesPointMarkerStyle } from './series-point-marker';
|
|
1
|
+
import { type SeriesPointMarkerStyle } from './series-point-marker.js';
|
|
2
2
|
export interface SeriesMarkersProps extends SeriesPointMarkerStyle {
|
|
3
3
|
dataKey: string;
|
|
4
4
|
/** Marker fill color. Defaults to series stroke or chart palette color. */
|
|
@@ -10,10 +10,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
* with upstream stays a diff rather than a merge.
|
|
11
11
|
*/
|
|
12
12
|
import { useCallback, useMemo } from 'react';
|
|
13
|
-
import { clipRevealTransition } from './animation';
|
|
14
|
-
import { defaultScatterColors, useChartHover, useChartStable, useYScale } from './chart-context';
|
|
15
|
-
import { useChartLegendHover } from './chart-legend-hover';
|
|
16
|
-
import { SeriesPointMarker, StaticSeriesPointMarker, getSeriesMarkerVisualExtent, } from './series-point-marker';
|
|
13
|
+
import { clipRevealTransition } from './animation.js';
|
|
14
|
+
import { defaultScatterColors, useChartHover, useChartStable, useYScale } from './chart-context.js';
|
|
15
|
+
import { useChartLegendHover } from './chart-legend-hover.js';
|
|
16
|
+
import { SeriesPointMarker, StaticSeriesPointMarker, getSeriesMarkerVisualExtent, } from './series-point-marker.js';
|
|
17
17
|
export function SeriesMarkers({ dataKey, fill, stroke, strokeWidth = 2, ringGap = 2, outlineWidth = 0, outlineColor, radius = 5, animate = true, fadeOnHover = true, inactiveOpacity = 0.5, inactiveBlur = 2, enterBlur = 2, showActiveHighlight = true, }) {
|
|
18
18
|
// Stable slice only. Hover-driven dim + active-highlight live in the inner
|
|
19
19
|
// <SeriesMarkersDimWrapper> / <SeriesMarkersActiveHighlight> components, so
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { motion } from 'motion/react';
|
|
4
4
|
import { memo } from 'react';
|
|
5
|
-
import { DEFAULT_CHART_ENTER_TRANSITION } from './animation';
|
|
5
|
+
import { DEFAULT_CHART_ENTER_TRANSITION } from './animation.js';
|
|
6
6
|
function MarkerCircles({ fill, stroke, strokeWidth, ringGap, outlineWidth, outlineColor, radius, }) {
|
|
7
7
|
const resolvedStroke = stroke ?? fill ?? 'currentColor';
|
|
8
8
|
const resolvedOutlineColor = outlineColor ?? resolvedStroke;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Transition } from 'motion/react';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
import { type LineConfig, type Margin } from './chart-context';
|
|
4
|
-
import { type ChartPhase, type ChartStatus } from './chart-phase';
|
|
3
|
+
import { type LineConfig, type Margin } from './chart-context.js';
|
|
4
|
+
import { type ChartPhase, type ChartStatus } from './chart-phase.js';
|
|
5
5
|
export interface TimeSeriesChartInnerProps {
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
@@ -12,26 +12,26 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
import { scaleLinear, scaleTime } from '@visx/scale';
|
|
13
13
|
import { bisector, extent } from 'd3-array';
|
|
14
14
|
import { Children, cloneElement, isValidElement, memo, useCallback, useEffect, useMemo, useState, } from 'react';
|
|
15
|
-
import { DEFAULT_ANIMATION_EASING, DEFAULT_CHART_ENTER_TRANSITION } from './animation';
|
|
16
|
-
import { isClipExcludedComponent, isPostOverlayComponent, isUnderlayComponent, resolveChartChildElement, } from './chart-child-passthrough';
|
|
17
|
-
import { ChartProvider } from './chart-context';
|
|
18
|
-
import { isGradientDefComponent, isPatternDefComponent } from './chart-defs';
|
|
19
|
-
import { shortDateFmt } from './chart-formatters';
|
|
20
|
-
import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, isChartInteractionPhase, } from './chart-phase';
|
|
21
|
-
import { ChartRevealClip } from './chart-reveal-clip';
|
|
22
|
-
import { decimateTimeSeries, maxRenderPointsForWidth } from './decimate-time-series';
|
|
23
|
-
import { filterDataByXDomain } from './filter-data-by-x-domain';
|
|
24
|
-
import { generateChartSkeletonData, generateChartSkeletonFromTarget, } from './generate-chart-skeleton-data';
|
|
25
|
-
import { extractProjectionLineConfigs, mergeProjectionXDomainMax, mergeProjectionYDomain, } from './projection-config';
|
|
26
|
-
import { extractReferenceAreaConfigs } from './reference-area-config';
|
|
27
|
-
import { ReferenceAreaRegistrationContext } from './reference-area-registration-context';
|
|
28
|
-
import { computeSeriesBarRevealClipPadding, computeSeriesBarWidth } from './series-bar-layout';
|
|
29
|
-
import { useStaticChartPreview } from './static-chart-preview-context';
|
|
30
|
-
import { useAnimatedYDomains } from './use-animated-y-domains';
|
|
31
|
-
import { useChartInteraction } from './use-chart-interaction';
|
|
32
|
-
import { useChartPhaseOrchestrator } from './use-chart-phase-orchestrator';
|
|
33
|
-
import { DEFAULT_Y_AXIS_ID, buildYScalesFromDomains, getPrimaryYScale, groupLinesByYAxisId, } from './y-axis-scales';
|
|
34
|
-
import { computeYDomainsByAxis } from './y-domain-utils';
|
|
15
|
+
import { DEFAULT_ANIMATION_EASING, DEFAULT_CHART_ENTER_TRANSITION } from './animation.js';
|
|
16
|
+
import { isClipExcludedComponent, isPostOverlayComponent, isUnderlayComponent, resolveChartChildElement, } from './chart-child-passthrough.js';
|
|
17
|
+
import { ChartProvider } from './chart-context.js';
|
|
18
|
+
import { isGradientDefComponent, isPatternDefComponent } from './chart-defs.js';
|
|
19
|
+
import { shortDateFmt } from './chart-formatters.js';
|
|
20
|
+
import { DEFAULT_CHART_STATUS, DEFAULT_Y_DOMAIN_TWEEN_MS, isChartInteractionPhase, } from './chart-phase.js';
|
|
21
|
+
import { ChartRevealClip } from './chart-reveal-clip.js';
|
|
22
|
+
import { decimateTimeSeries, maxRenderPointsForWidth } from './decimate-time-series.js';
|
|
23
|
+
import { filterDataByXDomain } from './filter-data-by-x-domain.js';
|
|
24
|
+
import { generateChartSkeletonData, generateChartSkeletonFromTarget, } from './generate-chart-skeleton-data.js';
|
|
25
|
+
import { extractProjectionLineConfigs, mergeProjectionXDomainMax, mergeProjectionYDomain, } from './projection-config.js';
|
|
26
|
+
import { extractReferenceAreaConfigs } from './reference-area-config.js';
|
|
27
|
+
import { ReferenceAreaRegistrationContext } from './reference-area-registration-context.js';
|
|
28
|
+
import { computeSeriesBarRevealClipPadding, computeSeriesBarWidth } from './series-bar-layout.js';
|
|
29
|
+
import { useStaticChartPreview } from './static-chart-preview-context.js';
|
|
30
|
+
import { useAnimatedYDomains } from './use-animated-y-domains.js';
|
|
31
|
+
import { useChartInteraction } from './use-chart-interaction.js';
|
|
32
|
+
import { useChartPhaseOrchestrator } from './use-chart-phase-orchestrator.js';
|
|
33
|
+
import { DEFAULT_Y_AXIS_ID, buildYScalesFromDomains, getPrimaryYScale, groupLinesByYAxisId, } from './y-axis-scales.js';
|
|
34
|
+
import { computeYDomainsByAxis } from './y-domain-utils.js';
|
|
35
35
|
function collectNumericExtents(data, dataKeys) {
|
|
36
36
|
let minValue = Number.POSITIVE_INFINITY;
|
|
37
37
|
let maxValue = Number.NEGATIVE_INFINITY;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type SpringConfig } from '../chart-config-context';
|
|
2
|
-
import { type LineConfig } from '../chart-context';
|
|
3
|
-
import type { IndicatorFadeEdges } from '../indicator-fade';
|
|
4
|
-
import { type TooltipRow } from './tooltip-content';
|
|
1
|
+
import { type SpringConfig } from '../chart-config-context.js';
|
|
2
|
+
import { type LineConfig } from '../chart-context.js';
|
|
3
|
+
import type { IndicatorFadeEdges } from '../indicator-fade.js';
|
|
4
|
+
import { type TooltipRow } from './tooltip-content.js';
|
|
5
5
|
export interface ChartTooltipProps {
|
|
6
6
|
/** Whether to show the date pill at bottom. Default: true */
|
|
7
7
|
showDatePill?: boolean;
|