@kubit-ui-web/react-charts 1.9.0 → 1.11.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/cjs/charts/barChart/barChart.type.d.ts +8 -0
- package/dist/cjs/charts/barChart/barChart.type.d.ts.map +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartPath.d.ts.map +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartPath.js +2 -2
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +3 -0
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.js +3 -0
- package/dist/cjs/charts/customBackgroundChart/context/index.d.ts +2 -0
- package/dist/cjs/charts/customBackgroundChart/context/index.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/context/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.d.ts +6 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.js +7 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.d.ts +50 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +4 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.js +41 -0
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +4 -0
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +49 -0
- package/dist/cjs/charts/customBackgroundChart/fragments/index.d.ts +2 -0
- package/dist/cjs/charts/customBackgroundChart/fragments/index.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/fragments/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/index.d.ts +2 -0
- package/dist/cjs/charts/customBackgroundChart/index.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.d.ts +19 -0
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.d.ts.map +1 -0
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.js +32 -0
- package/dist/cjs/charts/index.d.ts +1 -0
- package/dist/cjs/charts/index.d.ts.map +1 -1
- package/dist/cjs/charts/index.js +1 -0
- package/dist/cjs/components/bar/bar.d.ts.map +1 -1
- package/dist/cjs/components/bar/bar.js +6 -3
- package/dist/cjs/components/bar/bar.type.d.ts +9 -0
- package/dist/cjs/components/bar/bar.type.d.ts.map +1 -1
- package/dist/cjs/components/path/path.d.ts.map +1 -1
- package/dist/cjs/components/path/path.js +24 -11
- package/dist/cjs/components/path/path.types.d.ts +9 -0
- package/dist/cjs/components/path/path.types.d.ts.map +1 -1
- package/dist/cjs/components/plot/plot.d.ts.map +1 -1
- package/dist/cjs/components/plot/plot.js +21 -3
- package/dist/cjs/types/errors.type.d.ts +2 -0
- package/dist/cjs/types/errors.type.d.ts.map +1 -1
- package/dist/cjs/types/errors.type.js +3 -0
- package/dist/cjs/types/focusConfig.type.d.ts +13 -7
- package/dist/cjs/types/focusConfig.type.d.ts.map +1 -1
- package/dist/cjs/types/focusConfig.type.js +3 -3
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +20 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +1 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +27 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.d.ts +2 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.d.ts.map +1 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.js +1 -0
- package/dist/esm/charts/barChart/barChart.type.d.ts +8 -0
- package/dist/esm/charts/barChart/barChart.type.d.ts.map +1 -1
- package/dist/esm/charts/barChart/fragments/barChartPath.d.ts.map +1 -1
- package/dist/esm/charts/barChart/fragments/barChartPath.js +2 -2
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +3 -0
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.js +3 -0
- package/dist/esm/charts/customBackgroundChart/context/index.d.ts +2 -0
- package/dist/esm/charts/customBackgroundChart/context/index.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/context/index.js +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.d.ts +6 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.js +7 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.d.ts +50 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.js +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +4 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.js +41 -0
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +4 -0
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +49 -0
- package/dist/esm/charts/customBackgroundChart/fragments/index.d.ts +2 -0
- package/dist/esm/charts/customBackgroundChart/fragments/index.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/index.js +1 -0
- package/dist/esm/charts/customBackgroundChart/index.d.ts +2 -0
- package/dist/esm/charts/customBackgroundChart/index.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/index.js +1 -0
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.d.ts +19 -0
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.d.ts.map +1 -0
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.js +32 -0
- package/dist/esm/charts/index.d.ts +1 -0
- package/dist/esm/charts/index.d.ts.map +1 -1
- package/dist/esm/charts/index.js +1 -0
- package/dist/esm/components/bar/bar.d.ts.map +1 -1
- package/dist/esm/components/bar/bar.js +6 -3
- package/dist/esm/components/bar/bar.type.d.ts +9 -0
- package/dist/esm/components/bar/bar.type.d.ts.map +1 -1
- package/dist/esm/components/path/path.d.ts.map +1 -1
- package/dist/esm/components/path/path.js +24 -11
- package/dist/esm/components/path/path.types.d.ts +9 -0
- package/dist/esm/components/path/path.types.d.ts.map +1 -1
- package/dist/esm/components/plot/plot.d.ts.map +1 -1
- package/dist/esm/components/plot/plot.js +21 -3
- package/dist/esm/types/errors.type.d.ts +2 -0
- package/dist/esm/types/errors.type.d.ts.map +1 -1
- package/dist/esm/types/errors.type.js +3 -0
- package/dist/esm/types/focusConfig.type.d.ts +13 -7
- package/dist/esm/types/focusConfig.type.d.ts.map +1 -1
- package/dist/esm/types/focusConfig.type.js +3 -3
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +20 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +1 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +27 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/index.d.ts +2 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/index.d.ts.map +1 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/index.js +1 -0
- package/dist/kubit-ui-web-react-charts.cjs.js +1 -1
- package/dist/kubit-ui-web-react-charts.es.js +1 -1
- package/dist/kubit-ui-web-react-charts.umd.js +1 -1
- package/dist/react-charts.css +1 -1
- package/dist/types/charts/barChart/barChart.type.d.ts +8 -0
- package/dist/types/charts/barChart/barChart.type.d.ts.map +1 -1
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts.map +1 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +3 -0
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/context/index.d.ts +2 -0
- package/dist/types/charts/customBackgroundChart/context/index.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts +6 -0
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts +50 -0
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +4 -0
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +4 -0
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts +2 -0
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/index.d.ts +2 -0
- package/dist/types/charts/customBackgroundChart/index.d.ts.map +1 -0
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts +19 -0
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts.map +1 -0
- package/dist/types/charts/index.d.ts +1 -0
- package/dist/types/charts/index.d.ts.map +1 -1
- package/dist/types/components/bar/bar.d.ts.map +1 -1
- package/dist/types/components/bar/bar.type.d.ts +9 -0
- package/dist/types/components/bar/bar.type.d.ts.map +1 -1
- package/dist/types/components/path/path.d.ts.map +1 -1
- package/dist/types/components/path/path.types.d.ts +9 -0
- package/dist/types/components/path/path.types.d.ts.map +1 -1
- package/dist/types/components/plot/plot.d.ts.map +1 -1
- package/dist/types/types/errors.type.d.ts +2 -0
- package/dist/types/types/errors.type.d.ts.map +1 -1
- package/dist/types/types/focusConfig.type.d.ts +13 -7
- package/dist/types/types/focusConfig.type.d.ts.map +1 -1
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +20 -0
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +1 -0
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts +2 -0
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -126,6 +126,14 @@ export interface BarChartPathProps {
|
|
|
126
126
|
dataIdx: number;
|
|
127
127
|
startRounded?: number;
|
|
128
128
|
endRounded?: number;
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated In the next major version, this prop will use a more restrictive interface
|
|
131
|
+
* based on FocusConfig type. Other StyleProps fields are currently ignored.
|
|
132
|
+
*/
|
|
133
|
+
focusConfig?: StyleProps;
|
|
134
|
+
tabIndex?: number;
|
|
135
|
+
onFocus?: (event: React.FocusEvent<SVGPathElement>) => void;
|
|
136
|
+
onBlur?: (event: React.FocusEvent<SVGPathElement>) => void;
|
|
129
137
|
}
|
|
130
138
|
export {};
|
|
131
139
|
//# sourceMappingURL=barChart.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barChart.type.d.ts","sourceRoot":"","sources":["../../../../src/charts/barChart/barChart.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CA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|
1
|
+
{"version":3,"file":"barChartPath.d.ts","sourceRoot":"","sources":["../../../../../src/charts/barChart/fragments/barChartPath.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D;;;;;GAKG;AAEH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+FpD,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { BarChartContext } from '../context/barChartContext';
|
|
|
11
11
|
* @param key Key to extract values from
|
|
12
12
|
* @returns Array of values for the given key
|
|
13
13
|
*/
|
|
14
|
-
export const BarChartPath = ({ barConfig, dataIdx, dataKey, order, ...props }) => {
|
|
14
|
+
export const BarChartPath = ({ barConfig, dataIdx, dataKey, focusConfig, onBlur, onFocus, order, tabIndex, ...props }) => {
|
|
15
15
|
const { addError, xAxisCoordinates, yAxisCoordinates, ...context } = useContext(BarChartContext);
|
|
16
16
|
const { coordinates: xACoord, tickValues: xTickValues } = xAxisCoordinates;
|
|
17
17
|
const { coordinates: yACoord, tickValues: yTickValues } = yAxisCoordinates;
|
|
@@ -67,5 +67,5 @@ export const BarChartPath = ({ barConfig, dataIdx, dataKey, order, ...props }) =
|
|
|
67
67
|
y1: yPoint,
|
|
68
68
|
y2: yPoint,
|
|
69
69
|
};
|
|
70
|
-
return (_jsx(Bar, { barConfig: barConfig, currentBars: context.barChildrenCount, dataKey: dataKey, extraSpacing: context.gapBetweenBars, order: order, orientation: context.orientation, xData: xData, xKey: xKey, yData: yData, yKey: yKey, ...points, ...props }));
|
|
70
|
+
return (_jsx(Bar, { barConfig: barConfig, currentBars: context.barChildrenCount, dataKey: dataKey, extraSpacing: context.gapBetweenBars, focusConfig: focusConfig, order: order, orientation: context.orientation, tabIndex: tabIndex, xData: xData, xKey: xKey, yData: yData, yKey: yKey, onBlur: onBlur, onFocus: onFocus, ...points, ...props }));
|
|
71
71
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customBackgroundChartContext.d.ts","sourceRoot":"","sources":["../../../../../src/charts/customBackgroundChart/context/customBackgroundChartContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAGtF,eAAO,MAAM,4BAA4B,gEAExC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/charts/customBackgroundChart/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomBackgroundChartContext } from './customBackgroundChartContext';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const CustomBackgroundChart: (<T = number>({ ariaHidden, ariaLabel, backgroundUrl, caption, children, className, data, dataTestId: dataTestIdProp, height, onBlur, onClick, onDoubleClick, onErrors, onFocus, onKeyDown, onKeyUp, onMouseEnter, onMouseLeave, role, tabIndex, viewBox, width, ...props }: import("./customBackgroundChart.type").CustomBackgroundChartProps<T>) => import("react").ReactElement) & {
|
|
2
|
+
Plot: <T = number>({ ariaLabel, dataKey, formatAriaValue, ...props }: import("./customBackgroundChart.type").CustomBackgroundChartPlotProps<T>) => import("react").ReactElement | null;
|
|
3
|
+
};
|
|
4
|
+
export { CustomBackgroundChart };
|
|
5
|
+
export * from './customBackgroundChart.type';
|
|
6
|
+
//# sourceMappingURL=customBackgroundChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customBackgroundChart.d.ts","sourceRoot":"","sources":["../../../../src/charts/customBackgroundChart/customBackgroundChart.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,qBAAqB;;CAEzB,CAAC;AAEH,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CustomBackgroundChartStructure } from './customBackgroundChartStructure';
|
|
2
|
+
import { CustomBackgroundChartPlot } from './fragments/customBackgroundChartPlot';
|
|
3
|
+
const CustomBackgroundChart = Object.assign(CustomBackgroundChartStructure, {
|
|
4
|
+
Plot: CustomBackgroundChartPlot,
|
|
5
|
+
});
|
|
6
|
+
export { CustomBackgroundChart };
|
|
7
|
+
export * from './customBackgroundChart.type';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { PlotProps } from '../../components/plot/plot.types';
|
|
2
|
+
import type { ChartError, ChartErrorCollection, ErrorType } from '../../types/errors.type';
|
|
3
|
+
export interface CustomBackgroundDataPoint<T = number> {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
value: T;
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
export type CustomBackgroundData<T = number> = Record<string, CustomBackgroundDataPoint<T>>;
|
|
10
|
+
export interface ViewBoxDimensions {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}
|
|
14
|
+
export interface CustomBackgroundChartProps<T = number> {
|
|
15
|
+
data: CustomBackgroundData<T>;
|
|
16
|
+
backgroundUrl: string;
|
|
17
|
+
viewBox: ViewBoxDimensions;
|
|
18
|
+
width?: string | number;
|
|
19
|
+
height?: string | number;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
ariaHidden?: boolean;
|
|
23
|
+
role?: string;
|
|
24
|
+
tabIndex?: number;
|
|
25
|
+
caption?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
dataTestId?: string;
|
|
28
|
+
onErrors?: (errors: ChartErrorCollection) => void;
|
|
29
|
+
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
30
|
+
onDoubleClick?: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
31
|
+
onMouseEnter?: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
32
|
+
onMouseLeave?: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
33
|
+
onFocus?: (event: React.FocusEvent<SVGElement>) => void;
|
|
34
|
+
onBlur?: (event: React.FocusEvent<SVGElement>) => void;
|
|
35
|
+
onKeyDown?: (event: React.KeyboardEvent<SVGSVGElement>) => void;
|
|
36
|
+
onKeyUp?: (event: React.KeyboardEvent<SVGSVGElement>) => void;
|
|
37
|
+
}
|
|
38
|
+
export interface CustomBackgroundChartPlotProps<T = number> extends Omit<PlotProps<T>, 'position' | 'data' | 'label'> {
|
|
39
|
+
dataKey: string;
|
|
40
|
+
/** Supports placeholders: {{dataKey}}, {{name}}, {{value}}, {{x}}, {{y}} */
|
|
41
|
+
ariaLabel?: string;
|
|
42
|
+
formatAriaValue?: (value: T) => string;
|
|
43
|
+
}
|
|
44
|
+
export interface CustomBackgroundChartContextType<T = number> {
|
|
45
|
+
data: CustomBackgroundData<T>;
|
|
46
|
+
viewBox: ViewBoxDimensions;
|
|
47
|
+
dataTestId: string;
|
|
48
|
+
addError?: (errorType: keyof typeof ErrorType, error: Omit<ChartError, 'type'>) => void;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=customBackgroundChart.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customBackgroundChart.type.d.ts","sourceRoot":"","sources":["../../../../src/charts/customBackgroundChart/customBackgroundChart.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEvF,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,MAAM;IACnD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,oBAAoB,CAAC,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AK,IAAI,CAAC;IACzE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACvD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAChE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,MAAM,WAAW,8BAA8B,CAAC,CAAC,GAAG,MAAM,CACxD,SAAQ,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;CACxC;AAED,MAAM,WAAW,gCAAgC,CAAC,CAAC,GAAG,MAAM;IAC1D,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,OAAO,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;CACzF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { CustomBackgroundChartProps } from './customBackgroundChart.type';
|
|
3
|
+
export declare const CustomBackgroundChartStructure: <T = number>({ ariaHidden, ariaLabel, backgroundUrl, caption, children, className, data, dataTestId: dataTestIdProp, height, onBlur, onClick, onDoubleClick, onErrors, onFocus, onKeyDown, onKeyUp, onMouseEnter, onMouseLeave, role, tabIndex, viewBox, width, ...props }: CustomBackgroundChartProps<T>) => ReactElement;
|
|
4
|
+
//# sourceMappingURL=customBackgroundChartStructure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customBackgroundChartStructure.d.ts","sourceRoot":"","sources":["../../../../src/charts/customBackgroundChart/customBackgroundChartStructure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,OAAO,CAAC;AAQ9D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,eAAO,MAAM,8BAA8B,GAAI,CAAC,GAAG,MAAM,EAAG,+PAwBzD,0BAA0B,CAAC,CAAC,CAAC,KAAG,YAiFlC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo } from 'react';
|
|
3
|
+
import { SvgContainer } from '../../components/svgContainer/svgContainer';
|
|
4
|
+
import { useId } from '../../hooks/useId/useId';
|
|
5
|
+
import { createErrorAccumulator } from '../../utils/createErrorAccumulator';
|
|
6
|
+
import { CustomBackgroundChartContext } from './context/customBackgroundChartContext';
|
|
7
|
+
export const CustomBackgroundChartStructure = ({ ariaHidden, ariaLabel, backgroundUrl, caption, children, className, data, dataTestId: dataTestIdProp = 'custom-background-chart', height = '100%', onBlur, onClick, onDoubleClick, onErrors, onFocus, onKeyDown, onKeyUp, onMouseEnter, onMouseLeave, role = 'img', tabIndex, viewBox, width = '100%', ...props }) => {
|
|
8
|
+
const dataTestId = useId(dataTestIdProp);
|
|
9
|
+
// Build viewBox string for SVG
|
|
10
|
+
const viewBoxString = `0 0 ${viewBox.width} ${viewBox.height}`;
|
|
11
|
+
// Error accumulator (existing pattern)
|
|
12
|
+
const errorAccumulator = useMemo(() => createErrorAccumulator(onErrors), [onErrors]);
|
|
13
|
+
// Validate props
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (Object.keys(data).length === 0) {
|
|
16
|
+
errorAccumulator.addError('CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR', {
|
|
17
|
+
error: new Error('Data object is empty. At least one data point is required.'),
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
if (!backgroundUrl || backgroundUrl.trim() === '') {
|
|
21
|
+
errorAccumulator.addError('CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR', {
|
|
22
|
+
error: new Error('backgroundUrl is required and cannot be empty.'),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (viewBox.width <= 0 || viewBox.height <= 0) {
|
|
26
|
+
errorAccumulator.addError('CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR', {
|
|
27
|
+
error: new Error(`Invalid viewBox dimensions: width=${viewBox.width}, height=${viewBox.height} (both must be > 0)`),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}, [data, backgroundUrl, viewBox, errorAccumulator]);
|
|
31
|
+
// Context value
|
|
32
|
+
const contextValue = useMemo(() => ({
|
|
33
|
+
addError: (errorType, error) => {
|
|
34
|
+
errorAccumulator.addError(errorType, error);
|
|
35
|
+
},
|
|
36
|
+
data,
|
|
37
|
+
dataTestId,
|
|
38
|
+
viewBox,
|
|
39
|
+
}), [viewBox, data, dataTestId, errorAccumulator]);
|
|
40
|
+
return (_jsx(SvgContainer, { ariaHidden: ariaHidden, ariaLabel: ariaLabel, caption: caption, className: className, dataTestId: dataTestId, height: height, role: role, tabIndex: tabIndex, viewBox: viewBoxString, width: width, onBlur: onBlur, onClick: onClick, onDoubleClick: onDoubleClick, onFocus: onFocus, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...props, children: _jsxs(CustomBackgroundChartContext.Provider, { value: contextValue, children: [_jsx("image", { "data-testid": `${dataTestId}-background`, height: viewBox.height, href: backgroundUrl, preserveAspectRatio: "xMidYMid meet", width: viewBox.width, x: 0, y: 0 }), _jsx("g", { "data-testid": `${dataTestId}-plots`, children: children })] }) }));
|
|
41
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { CustomBackgroundChartPlotProps } from '../customBackgroundChart.type';
|
|
3
|
+
export declare const CustomBackgroundChartPlot: <T = number>({ ariaLabel, dataKey, formatAriaValue, ...props }: CustomBackgroundChartPlotProps<T>) => ReactElement | null;
|
|
4
|
+
//# sourceMappingURL=customBackgroundChartPlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customBackgroundChartPlot.d.ts","sourceRoot":"","sources":["../../../../../src/charts/customBackgroundChart/fragments/customBackgroundChartPlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,OAAO,CAAC;AAK1E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAGpF,eAAO,MAAM,yBAAyB,GAAI,CAAC,GAAG,MAAM,EAAG,mDAKpD,8BAA8B,CAAC,CAAC,CAAC,KAAG,YAAY,GAAG,IAsErD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useContext, useEffect, useMemo } from 'react';
|
|
3
|
+
import { Plot } from '../../../components/plot/plot';
|
|
4
|
+
import { CustomBackgroundChartContext } from '../context/customBackgroundChartContext';
|
|
5
|
+
import { buildAriaLabel, formatValue } from '../utils/accessibility';
|
|
6
|
+
export const CustomBackgroundChartPlot = ({ ariaLabel, dataKey, formatAriaValue, ...props }) => {
|
|
7
|
+
const { addError, data, dataTestId: parentTestId, viewBox, } = useContext(CustomBackgroundChartContext);
|
|
8
|
+
// Access data point by dataKey (PieChart pattern)
|
|
9
|
+
const dataPoint = useMemo(() => data[dataKey], [data, dataKey]);
|
|
10
|
+
// Validate dataKey and coordinates
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (!dataPoint) {
|
|
13
|
+
addError?.('CUSTOM_BACKGROUND_CHART_PLOT_ERROR', {
|
|
14
|
+
error: new Error(`dataKey "${dataKey}" not found in data object.`),
|
|
15
|
+
});
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const { x, y } = dataPoint;
|
|
19
|
+
if (x < 0 || x > viewBox.width || y < 0 || y > viewBox.height) {
|
|
20
|
+
addError?.('CUSTOM_BACKGROUND_CHART_PLOT_ERROR', {
|
|
21
|
+
error: new Error(`Plot "${dataKey}" coordinates (${x}, ${y}) are outside viewBox bounds (0-${viewBox.width}, 0-${viewBox.height})`),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}, [dataPoint, dataKey, addError, viewBox.width, viewBox.height]);
|
|
25
|
+
// Generate accessible label using template system
|
|
26
|
+
const accessibleLabel = useMemo(() => {
|
|
27
|
+
if (!dataPoint) {
|
|
28
|
+
return dataKey;
|
|
29
|
+
}
|
|
30
|
+
// Format the value using custom formatter or default
|
|
31
|
+
const formattedValue = formatAriaValue
|
|
32
|
+
? formatAriaValue(dataPoint.value)
|
|
33
|
+
: formatValue(dataPoint.value);
|
|
34
|
+
// Build label from template (uses default template if ariaLabel not provided)
|
|
35
|
+
return buildAriaLabel({
|
|
36
|
+
ariaLabel,
|
|
37
|
+
dataKey,
|
|
38
|
+
formattedValue,
|
|
39
|
+
name: dataPoint.name,
|
|
40
|
+
x: dataPoint.x,
|
|
41
|
+
y: dataPoint.y,
|
|
42
|
+
});
|
|
43
|
+
}, [ariaLabel, dataPoint, dataKey, formatAriaValue]);
|
|
44
|
+
const position = useMemo(() => ({ x: dataPoint?.x ?? 0, y: dataPoint?.y ?? 0 }), [dataPoint?.x, dataPoint?.y]);
|
|
45
|
+
if (!dataPoint) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return (_jsx(Plot, { ...props, data: { value: dataPoint.value }, dataTestId: `${parentTestId}-plot-${dataKey}`, label: accessibleLabel, position: position }));
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/charts/customBackgroundChart/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomBackgroundChartPlot } from './customBackgroundChartPlot';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/charts/customBackgroundChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './customBackgroundChart';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const PLOT_TEMPLATE_KEYS: {
|
|
2
|
+
readonly DATA_KEY: "{{dataKey}}";
|
|
3
|
+
readonly NAME: "{{name}}";
|
|
4
|
+
readonly VALUE: "{{value}}";
|
|
5
|
+
readonly X: "{{x}}";
|
|
6
|
+
readonly Y: "{{y}}";
|
|
7
|
+
};
|
|
8
|
+
export declare const DEFAULT_ARIA_LABEL_TEMPLATE: string;
|
|
9
|
+
export interface BuildAriaLabelParams {
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
dataKey: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
formattedValue: string;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const buildAriaLabel: ({ ariaLabel, dataKey, name, formattedValue, x, y, }: BuildAriaLabelParams) => string;
|
|
18
|
+
export declare const formatValue: <T>(value: T) => string;
|
|
19
|
+
//# sourceMappingURL=accessibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../../../src/charts/customBackgroundChart/utils/accessibility.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAEX,eAAO,MAAM,2BAA2B,QAA4D,CAAC;AAQrG,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,eAAO,MAAM,cAAc,GAAI,qDAO5B,oBAAoB,KAAG,MAUzB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,MAQzC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const PLOT_TEMPLATE_KEYS = {
|
|
2
|
+
DATA_KEY: '{{dataKey}}',
|
|
3
|
+
NAME: '{{name}}',
|
|
4
|
+
VALUE: '{{value}}',
|
|
5
|
+
X: '{{x}}',
|
|
6
|
+
Y: '{{y}}',
|
|
7
|
+
};
|
|
8
|
+
export const DEFAULT_ARIA_LABEL_TEMPLATE = `${PLOT_TEMPLATE_KEYS.NAME}, ${PLOT_TEMPLATE_KEYS.VALUE}`;
|
|
9
|
+
const DATA_KEY_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.DATA_KEY, 'g');
|
|
10
|
+
const NAME_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.NAME, 'g');
|
|
11
|
+
const VALUE_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.VALUE, 'g');
|
|
12
|
+
const X_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.X, 'g');
|
|
13
|
+
const Y_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.Y, 'g');
|
|
14
|
+
export const buildAriaLabel = ({ ariaLabel, dataKey, name, formattedValue, x, y, }) => {
|
|
15
|
+
const template = ariaLabel ?? DEFAULT_ARIA_LABEL_TEMPLATE;
|
|
16
|
+
const displayName = name ?? dataKey;
|
|
17
|
+
return template
|
|
18
|
+
.replace(DATA_KEY_REGEXP, dataKey)
|
|
19
|
+
.replace(NAME_REGEXP, displayName)
|
|
20
|
+
.replace(VALUE_REGEXP, formattedValue)
|
|
21
|
+
.replace(X_REGEXP, String(x))
|
|
22
|
+
.replace(Y_REGEXP, String(y));
|
|
23
|
+
};
|
|
24
|
+
export const formatValue = (value) => {
|
|
25
|
+
if (typeof value === 'number') {
|
|
26
|
+
return value.toLocaleString();
|
|
27
|
+
}
|
|
28
|
+
if (typeof value === 'string') {
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
return JSON.stringify(value);
|
|
32
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
|
package/dist/cjs/charts/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar.d.ts","sourceRoot":"","sources":["../../../../src/components/bar/bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAgB,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3C,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"bar.d.ts","sourceRoot":"","sources":["../../../../src/components/bar/bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAgB,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3C,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,QAAQ,CA4E5B,CAAC"}
|
|
@@ -3,7 +3,10 @@ import { Path } from '../path/path';
|
|
|
3
3
|
import { buildAriaLabel } from './utils/accessibility';
|
|
4
4
|
import { buildD } from './utils/buildD';
|
|
5
5
|
import { getSegments } from './utils/getSegments';
|
|
6
|
-
export const Bar = ({ barConfig, currentBars, endRounded, extraSpacing = 0,
|
|
6
|
+
export const Bar = ({ barConfig, currentBars, endRounded, extraSpacing = 0, focusConfig = {
|
|
7
|
+
stroke: '#0078D4',
|
|
8
|
+
strokeWidth: 0.2,
|
|
9
|
+
}, onBlur, onFocus, order = 1, orientation, startRounded, tabIndex = 0, x1, x2, y1, y2,
|
|
7
10
|
// Allow to build a11y aria-labels with templates
|
|
8
11
|
dataKey, xKey, yKey, xData, yData, }) => {
|
|
9
12
|
const { barWidth, singleConfig } = barConfig;
|
|
@@ -33,9 +36,9 @@ dataKey, xKey, yKey, xData, yData, }) => {
|
|
|
33
36
|
yData,
|
|
34
37
|
coverage: singleProps.coverage,
|
|
35
38
|
index,
|
|
36
|
-
}), d: d, fill: color, hoverConfig: {
|
|
39
|
+
}), d: d, fill: color, focusConfig: focusConfig, hoverConfig: {
|
|
37
40
|
stroke: 'transparent',
|
|
38
41
|
strokeWidth: '0',
|
|
39
|
-
}, stroke: "transparent", ...singleProps }, `${index.toString()}`));
|
|
42
|
+
}, stroke: "transparent", tabIndex: tabIndex, onBlur: onBlur, onFocus: onFocus, ...singleProps }, `${index.toString()}`));
|
|
40
43
|
}) }));
|
|
41
44
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AriaAttributes, HTMLAttributes } from 'react';
|
|
2
|
+
import type { StyleProps } from '../../components/path/path.types';
|
|
2
3
|
export declare const BarOrientation: {
|
|
3
4
|
readonly HORIZONTAL: "HORIZONTAL";
|
|
4
5
|
readonly VERTICAL: "VERTICAL";
|
|
@@ -31,6 +32,14 @@ export interface BarProps {
|
|
|
31
32
|
y2: number;
|
|
32
33
|
startRounded?: number;
|
|
33
34
|
endRounded?: number;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated In the next major version, this prop will use a more restrictive interface
|
|
37
|
+
* based on FocusConfig type. Other StyleProps fields are currently ignored.
|
|
38
|
+
*/
|
|
39
|
+
focusConfig?: StyleProps;
|
|
40
|
+
tabIndex?: number;
|
|
41
|
+
onFocus?: (event: React.FocusEvent<SVGPathElement>) => void;
|
|
42
|
+
onBlur?: (event: React.FocusEvent<SVGPathElement>) => void;
|
|
34
43
|
dataKey?: string;
|
|
35
44
|
xKey?: string;
|
|
36
45
|
yKey?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar.type.d.ts","sourceRoot":"","sources":["../../../../src/components/bar/bar.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5D,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,EAAE,cAAc;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QA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components/path/path.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/components/path/path.tsx"],"names":[],"mappings":"AAoBA,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAkO9C,eAAO,MAAM,IAAI,+FAA4B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useImperativeHandle, useRef, } from 'react';
|
|
3
|
+
import { FocusRing } from '../../components/focusRing/focusRing';
|
|
3
4
|
import { useFocus } from '../../hooks/useFocus/useFocus';
|
|
4
5
|
import { useHover } from '../../hooks/useHover/useHover';
|
|
6
|
+
import { adaptLegacyFocusConfig } from '../../utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig';
|
|
5
7
|
import { cssGradientToSVG } from '../../utils/cssGradientToSvg/cssGradientToSvg';
|
|
6
8
|
import { pickCustomAttributes } from '../../utils/pickCustomAttributes/pickCustomAttributes';
|
|
7
9
|
import { ShadowSvg } from '../../utils/shadowSvg/shadowSvg';
|
|
@@ -15,7 +17,7 @@ const ENTER = {
|
|
|
15
17
|
};
|
|
16
18
|
const SHADOW_FILTER_ID = 'shadow';
|
|
17
19
|
/**
|
|
18
|
-
* Represents a customizable SVG path component
|
|
20
|
+
* Represents a customizable SVG path component with FocusRing integration
|
|
19
21
|
*
|
|
20
22
|
* This component renders an SVG path with various customizable properties such as fill color, stroke color, and stroke width.
|
|
21
23
|
* It supports dynamic SVG gradients through a utility function, interactive event handlers, and accessibility features.
|
|
@@ -26,7 +28,8 @@ const SHADOW_FILTER_ID = 'shadow';
|
|
|
26
28
|
* @param {string} [props.gradient] - A CSS gradient string that will be converted to an SVG gradient.
|
|
27
29
|
* @param {string | number} [props.dataValue] - The value of the represented data.
|
|
28
30
|
* @param {string} [props.d] - The SVG path data string.
|
|
29
|
-
* @param {number} [props.tabIndex] - The tab index for keyboard navigation.
|
|
31
|
+
* @param {number} [props.tabIndex=0] - The tab index for keyboard navigation. Defaults to 0 (focusable). Set to -1 to exclude from tab order.
|
|
32
|
+
* @param {FocusConfig} [props.focusConfig] - Configuration for the focus ring appearance and behavior. Defaults to adaptive variant.
|
|
30
33
|
* @param {Function} [props.onClick] - Click event handler.
|
|
31
34
|
* @param {Function} [props.onMouseEnter] - Mouse enter event handler.
|
|
32
35
|
* @param {Function} [props.onMouseLeave] - Mouse leave event handler.
|
|
@@ -43,16 +46,26 @@ const SHADOW_FILTER_ID = 'shadow';
|
|
|
43
46
|
* @param {Array} [props.points] - An array of points for rendering nodes along the path.
|
|
44
47
|
* @param {Object} [props.nodeConfig] - Configuration for the nodes.
|
|
45
48
|
*
|
|
46
|
-
* @returns {ReactElement} A React element representing the SVG path.
|
|
49
|
+
* @returns {ReactElement} A React element representing the SVG path with FocusRing.
|
|
47
50
|
*/
|
|
48
|
-
const PathComponent = ({ classNames = '', fill = 'transparent', stroke = '#0000FF',
|
|
51
|
+
const PathComponent = ({ classNames = '', fill = 'transparent', stroke = '#0000FF',
|
|
52
|
+
// NOTE: Default strokeWidth='1' affects FocusRing calculations in adaptive variant.
|
|
53
|
+
// FocusRing adds originalStrokeWidth to focus ring widths. If using fill-only paths
|
|
54
|
+
// (like Bar), pass strokeWidth="0" explicitly to avoid inflated focus rings.
|
|
55
|
+
strokeWidth = '1', focusConfig, hoverConfig = {
|
|
49
56
|
stroke: '#0000FF',
|
|
50
57
|
strokeWidth: '0.5',
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
strokeWidth: '0.5',
|
|
54
|
-
}, role = 'img', ...props }, ref) => {
|
|
58
|
+
}, role = 'img', tabIndex = 0, // Default to 0 for keyboard accessibility
|
|
59
|
+
...props }, ref) => {
|
|
55
60
|
const { handleBlur, handleFocus, isFocused } = useFocus(props.onFocus, props.onBlur);
|
|
61
|
+
/**
|
|
62
|
+
* Translate StyleProps focusConfig to FocusConfig for FocusRing component.
|
|
63
|
+
* Maps: stroke → outlineColor, strokeWidth → outlineStrokeWidth
|
|
64
|
+
*
|
|
65
|
+
* @deprecated This adapter will be removed in the next major version when
|
|
66
|
+
* focusConfig prop uses FocusConfig type directly.
|
|
67
|
+
*/
|
|
68
|
+
const resolvedFocusConfig = adaptLegacyFocusConfig(focusConfig);
|
|
56
69
|
const { handleMouseEnter, handleMouseLeave, isHovered } = useHover(props.onMouseEnter, props.onMouseLeave);
|
|
57
70
|
const pathRef = useRef(null);
|
|
58
71
|
const nodeRef = useRef([]);
|
|
@@ -85,7 +98,7 @@ const PathComponent = ({ classNames = '', fill = 'transparent', stroke = '#0000F
|
|
|
85
98
|
const gradientSvgElement = props.gradient && cssGradientToSVG(props.gradient);
|
|
86
99
|
// Extract custom data-* and aria-* attributes
|
|
87
100
|
const customAttributes = pickCustomAttributes(props);
|
|
88
|
-
// Merge props to include focus
|
|
101
|
+
// Merge props to include hover styles (focus is now handled by FocusRing)
|
|
89
102
|
const defaultProps = {
|
|
90
103
|
...props,
|
|
91
104
|
classNames: `path ${classNames}`,
|
|
@@ -94,13 +107,13 @@ const PathComponent = ({ classNames = '', fill = 'transparent', stroke = '#0000F
|
|
|
94
107
|
role,
|
|
95
108
|
stroke,
|
|
96
109
|
strokeWidth,
|
|
110
|
+
tabIndex,
|
|
97
111
|
};
|
|
98
112
|
const mergedProps = {
|
|
99
113
|
...defaultProps,
|
|
100
|
-
...(isFocused && focusConfig),
|
|
101
114
|
...(isHovered && hoverConfig),
|
|
102
115
|
};
|
|
103
|
-
return (_jsxs("g", { ref: mainRef, children: [gradientSvgElement && gradientSvgElement, mergedProps.shadowSvgConfig && (_jsx(ShadowSvg, { id: SHADOW_FILTER_ID, shadowSvgConfig: mergedProps.shadowSvgConfig })), _jsxs("g", { "aria-label": mergedProps.ariaLabel, className: mergedProps.classNames, "data-draw": true, filter: mergedProps.shadowSvgConfig && mergedProps.filter, opacity: mergedProps.opacity, orientation: mergedProps.orientation, role: mergedProps.role, rotate: mergedProps.rotate, tabIndex: mergedProps.tabIndex, transform: mergedProps.transform, visibility: mergedProps.visibility, ...customAttributes, onBlur: handleBlur, onClick: handleClick, onDoubleClick: handleDoubleClick, onFocus: handleFocus, onKeyDown: handleKeyDown, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [_jsx("path", { ref: pathRef, d: mergedProps.d, "data-testid": mergedProps.dataTestId, fill: mergedProps.dFill ? 'transparent' : mergedProps.fill, fillOpacity: mergedProps.fillOpacity, fillRule: mergedProps.fillRule, stroke: mergedProps.stroke, strokeDasharray: mergedProps.strokeDasharray, strokeDashoffset: mergedProps.strokeDashoffset, strokeLinecap: mergedProps.strokeLinecap, strokeLinejoin: mergedProps.strokeLinejoin, strokeMiterlimit: mergedProps.strokeMiterlimit, strokeOpacity: mergedProps.strokeOpacity, strokeWidth: mergedProps.strokeWidth, children: mergedProps.title && _jsx("title", { children: mergedProps.title }) }), mergedProps.dFill && (_jsx("path", { d: mergedProps.dFill, fill: mergedProps.fill, fillOpacity: mergedProps.fillOpacity, fillRule: mergedProps.fillRule }))] }), mergedProps.points &&
|
|
116
|
+
return (_jsxs("g", { ref: mainRef, children: [gradientSvgElement && gradientSvgElement, mergedProps.shadowSvgConfig && (_jsx(ShadowSvg, { id: SHADOW_FILTER_ID, shadowSvgConfig: mergedProps.shadowSvgConfig })), _jsx(FocusRing, { dataTestId: `${mergedProps.dataTestId}-focus-ring`, focusConfig: resolvedFocusConfig, isFocused: isFocused, targetRef: pathRef }), _jsxs("g", { "aria-label": mergedProps.ariaLabel, className: mergedProps.classNames, "data-draw": true, filter: mergedProps.shadowSvgConfig && mergedProps.filter, opacity: mergedProps.opacity, orientation: mergedProps.orientation, role: mergedProps.role, rotate: mergedProps.rotate, tabIndex: mergedProps.tabIndex, transform: mergedProps.transform, visibility: mergedProps.visibility, ...customAttributes, onBlur: handleBlur, onClick: handleClick, onDoubleClick: handleDoubleClick, onFocus: handleFocus, onKeyDown: handleKeyDown, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [_jsx("path", { ref: pathRef, d: mergedProps.d, "data-testid": mergedProps.dataTestId, fill: mergedProps.dFill ? 'transparent' : mergedProps.fill, fillOpacity: mergedProps.fillOpacity, fillRule: mergedProps.fillRule, stroke: mergedProps.stroke, strokeDasharray: mergedProps.strokeDasharray, strokeDashoffset: mergedProps.strokeDashoffset, strokeLinecap: mergedProps.strokeLinecap, strokeLinejoin: mergedProps.strokeLinejoin, strokeMiterlimit: mergedProps.strokeMiterlimit, strokeOpacity: mergedProps.strokeOpacity, strokeWidth: mergedProps.strokeWidth, children: mergedProps.title && _jsx("title", { children: mergedProps.title }) }), mergedProps.dFill && (_jsx("path", { d: mergedProps.dFill, fill: mergedProps.fill, fillOpacity: mergedProps.fillOpacity, fillRule: mergedProps.fillRule }))] }), mergedProps.points &&
|
|
104
117
|
mergedProps.nodeConfig &&
|
|
105
118
|
mergedProps.points.map(([x, y], index) => {
|
|
106
119
|
const nodeData = {
|
|
@@ -45,6 +45,15 @@ export interface PathProps extends StyleProps, AriaAttributes, DataAttributes {
|
|
|
45
45
|
classNames?: string;
|
|
46
46
|
gradient?: string;
|
|
47
47
|
shadowSvgConfig?: ShadowSvgConfig;
|
|
48
|
+
/**
|
|
49
|
+
* Focus styling configuration.
|
|
50
|
+
* Uses StyleProps interface - internally translated to FocusRing configuration.
|
|
51
|
+
* Only `stroke` and `strokeWidth` are mapped to the FocusRing component
|
|
52
|
+
* (stroke → outlineColor, strokeWidth → outlineStrokeWidth).
|
|
53
|
+
*
|
|
54
|
+
* @deprecated In the next major version, this prop will use a more restrictive interface
|
|
55
|
+
* based on FocusConfig type. Other StyleProps fields are currently ignored.
|
|
56
|
+
*/
|
|
48
57
|
focusConfig?: StyleProps;
|
|
49
58
|
hoverConfig?: StyleProps;
|
|
50
59
|
dataValue?: string | number | IDataPoint[];
|
|
@@ -1 +1 @@
|
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K,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC3D,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CACjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../../../../src/components/plot/plot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,OAAO,CAAC;AAStD,OAAO,YAAY,CAAC;AACpB,OAAO,EAAiB,KAAK,SAAS,EAAsB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../../../../src/components/plot/plot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,OAAO,CAAC;AAStD,OAAO,YAAY,CAAC;AACpB,OAAO,EAAiB,KAAK,SAAS,EAAsB,MAAM,cAAc,CAAC;AAiIjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,IAAI,EAAgC,CAAC,CAAC,GAAG,MAAM,EAC1D,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG;IACpB,GAAG,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CAChC,KACE,GAAG,CAAC,OAAO,CAAC"}
|