@gooddata/sdk-ui-vis-commons 11.55.0 → 11.56.0-alpha.1
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/esm/coloring/PatternFill.js +1 -3
- package/esm/compactSize/HeadlinePagination.js +2 -4
- package/esm/compactSize/HeadlinePaginationRenderer.js +2 -4
- package/esm/customTooltip/tooltipExecution.d.ts.map +1 -1
- package/esm/customTooltip/types.d.ts.map +1 -1
- package/esm/legend/ColorLegend.js +1 -3
- package/esm/legend/LegendGroup.js +1 -2
- package/esm/legend/LegendItem.js +2 -6
- package/esm/legend/LegendList.d.ts +3 -3
- package/esm/legend/LegendList.d.ts.map +1 -1
- package/esm/legend/Paging.js +2 -4
- package/esm/legend/PopUpLegend/LegendDialog.js +1 -5
- package/esm/legend/PopUpLegend/PopUpLegend.js +2 -4
- package/esm/legend/PopUpLegend/RowLegend.js +2 -6
- package/esm/legend/StaticLegend.d.ts.map +1 -1
- package/esm/legend/StaticLegend.js +1 -2
- package/esm/legend/context.d.ts +2 -2
- package/esm/legend/context.d.ts.map +1 -1
- package/esm/legend/types.d.ts.map +1 -1
- package/esm/legend/visibilityDetection.d.ts.map +1 -1
- package/esm/locales.d.ts.map +1 -1
- package/esm/sdk-ui-vis-commons.d.ts +1 -1
- package/esm/utils/calculateCustomHeight.d.ts.map +1 -1
- package/esm/utils/headlineResponsiveClassName.d.ts +1 -1
- package/esm/utils/headlineResponsiveClassName.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -8,7 +8,5 @@ export function PatternFill({ patternFill }) {
|
|
|
8
8
|
const patternId = useIdPrefixed("palette-item-pattern");
|
|
9
9
|
const { path, opacity, width, height } = patternFill;
|
|
10
10
|
const hasStroke = typeof path.strokeWidth === "number" && path.strokeWidth > 0;
|
|
11
|
-
return (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "100%", height: "100%", preserveAspectRatio: "none", style: { display: "block", position: "absolute", inset: 0 }, children: [
|
|
12
|
-
_jsx("defs", { children: _jsx("pattern", { id: patternId, patternUnits: "userSpaceOnUse", width: width, height: height, children: _jsx("path", { d: path.d, stroke: hasStroke ? "currentColor" : "none", fill: hasStroke ? "none" : "currentColor", opacity: opacity, strokeWidth: path.strokeWidth }) }) }), _jsx("rect", { width: "100%", height: "100%", fill: `url(#${patternId})` })
|
|
13
|
-
] }));
|
|
11
|
+
return (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "100%", height: "100%", preserveAspectRatio: "none", style: { display: "block", position: "absolute", inset: 0 }, children: [_jsx("defs", { children: _jsx("pattern", { id: patternId, patternUnits: "userSpaceOnUse", width: width, height: height, children: _jsx("path", { d: path.d, stroke: hasStroke ? "currentColor" : "none", fill: hasStroke ? "none" : "currentColor", opacity: opacity, strokeWidth: path.strokeWidth }) }) }), _jsx("rect", { width: "100%", height: "100%", fill: `url(#${patternId})` })] }));
|
|
14
12
|
}
|
|
@@ -10,10 +10,8 @@ export function HeadlinePagination({ renderSecondaryItem, renderTertiaryItem, ac
|
|
|
10
10
|
const [item, setItem] = useState(1);
|
|
11
11
|
const showNextItem = () => setItem(item + 1);
|
|
12
12
|
const showPrevItem = () => setItem(item - 1);
|
|
13
|
-
return (_jsxs(_Fragment, { children: [
|
|
14
|
-
_jsx(HeadlinePaginationRenderer, { item: item, showNextItem: showNextItem, showPrevItem: showPrevItem, accessibilityConfig: {
|
|
13
|
+
return (_jsxs(_Fragment, { children: [_jsx(HeadlinePaginationRenderer, { item: item, showNextItem: showNextItem, showPrevItem: showPrevItem, accessibilityConfig: {
|
|
15
14
|
nextAriaLabel,
|
|
16
15
|
previousAriaLabel,
|
|
17
|
-
} }), _jsxs("div", { role: "status", "aria-live": "polite", "aria-atomic": "true", children: [item === 1 && renderSecondaryItem(), item === 2 && renderTertiaryItem()] })
|
|
18
|
-
] }));
|
|
16
|
+
} }), _jsxs("div", { role: "status", "aria-live": "polite", "aria-atomic": "true", children: [item === 1 && renderSecondaryItem(), item === 2 && renderTertiaryItem()] })] }));
|
|
19
17
|
}
|
|
@@ -17,11 +17,9 @@ export function HeadlinePaginationRenderer({ item, accessibilityConfig, showPrev
|
|
|
17
17
|
showNextItem();
|
|
18
18
|
}
|
|
19
19
|
}, [isSecondItemDisabled, showNextItem]);
|
|
20
|
-
return (_jsxs("div", { className: "headline-pagination", children: [
|
|
21
|
-
_jsx("button", { className: cx(`${commonClassNames} first-item gd-icon-chevron-left`, {
|
|
20
|
+
return (_jsxs("div", { className: "headline-pagination", children: [_jsx("button", { className: cx(`${commonClassNames} first-item gd-icon-chevron-left`, {
|
|
22
21
|
"is-disabled": isFirstItemDisabled,
|
|
23
22
|
}), onClick: handleFirstItemClick, "aria-disabled": isFirstItemDisabled, "aria-label": previousAriaLabel }), _jsx("button", { className: cx(`${commonClassNames} second-item gd-icon-chevron-right`, {
|
|
24
23
|
"is-disabled": isSecondItemDisabled,
|
|
25
|
-
}), onClick: handleSecondItemClick, "aria-disabled": isSecondItemDisabled, "aria-label": nextAriaLabel })
|
|
26
|
-
] }));
|
|
24
|
+
}), onClick: handleSecondItemClick, "aria-disabled": isSecondItemDisabled, "aria-label": nextAriaLabel })] }));
|
|
27
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltipExecution.d.ts","sourceRoot":"","sources":["../../src/customTooltip/tooltipExecution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAEH,KAAK,oBAAoB,EAc5B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AA+JvD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC,
|
|
1
|
+
{"version":3,"file":"tooltipExecution.d.ts","sourceRoot":"","sources":["../../src/customTooltip/tooltipExecution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,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file":"types.d.ts","sourceRoot":"","sources":["../../src/customTooltip/types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACtC;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAEpC;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC,CAAC,YAAY,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/customTooltip/types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACtC;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAEpC;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC,CAAC,YAAY,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,OAAQ,MAAM,KAAG,MAAwB,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,QAAQ,OAAQ,MAAM,KAAG,MAAuB,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -22,9 +22,7 @@ function LegendBoxes({ renderLabelsFirst, boxes, labels }) {
|
|
|
22
22
|
function LegendWithTitle({ title, position, children, }) {
|
|
23
23
|
const isHorizontal = position === TOP || position === BOTTOM;
|
|
24
24
|
const classes = cx("heatmap-legend-with-title", { horizontal: isHorizontal });
|
|
25
|
-
return (_jsxs("div", { className: classes, children: [
|
|
26
|
-
_jsx("div", { className: "heatmap-legend-title", children: `${title}:` }), _jsx("div", { className: "heatmap-legend-boxes", children: children })
|
|
27
|
-
] }));
|
|
25
|
+
return (_jsxs("div", { className: classes, children: [_jsx("div", { className: "heatmap-legend-title", children: `${title}:` }), _jsx("div", { className: "heatmap-legend-boxes", children: children })] }));
|
|
28
26
|
}
|
|
29
27
|
/**
|
|
30
28
|
* @internal
|
|
@@ -11,6 +11,5 @@ export function LegendGroup({ item, width, children, }) {
|
|
|
11
11
|
return result;
|
|
12
12
|
}, {});
|
|
13
13
|
const labelId = useIdPrefixed("legend-group-label");
|
|
14
|
-
return (_jsxs("div", { className: "legend-group", role: "group", "aria-labelledby": labelId, children: [
|
|
15
|
-
_jsx("div", { id: labelId, style: style, className: "series-axis-indicator", "data-testid": "legend-axis-indicator", children: _jsxs("div", { className: "series-text", children: [intl.formatMessage(messages[labelKey], values), intl.formatMessage(messages["colon"])] }) }), children] }));
|
|
14
|
+
return (_jsxs("div", { className: "legend-group", role: "group", "aria-labelledby": labelId, children: [_jsx("div", { id: labelId, style: style, className: "series-axis-indicator", "data-testid": "legend-axis-indicator", children: _jsxs("div", { className: "series-text", children: [intl.formatMessage(messages[labelKey], values), intl.formatMessage(messages["colon"])] }) }), children] }));
|
|
16
15
|
}
|
package/esm/legend/LegendItem.js
CHANGED
|
@@ -107,11 +107,7 @@ export function LegendItem({ item, index, width, enableBorderRadius = false, onI
|
|
|
107
107
|
}, [index, registerItem]);
|
|
108
108
|
const legendItemId = useIdPrefixed("legend-item");
|
|
109
109
|
if (item.anomaly) {
|
|
110
|
-
return (_jsxs("div", { "data-testid": "legend-item", id: id, style: style, className: cx("series-item", "passive", { "series-item--isFocused": isFocused }), "aria-labelledby": legendItemId, title: unescape(item.name), children: [
|
|
111
|
-
_jsx("div", { className: "series-icon", style: iconStyle, children: item.isVisible && isPatternFill && isPatternObject(item.color) ? (_jsx(PatternFill, { patternFill: item.color?.pattern })) : null }), _jsx("div", { id: legendItemId, className: "series-name", style: nameStyle, children: item.name })
|
|
112
|
-
] }));
|
|
110
|
+
return (_jsxs("div", { "data-testid": "legend-item", id: id, style: style, className: cx("series-item", "passive", { "series-item--isFocused": isFocused }), "aria-labelledby": legendItemId, title: unescape(item.name), children: [_jsx("div", { className: "series-icon", style: iconStyle, children: item.isVisible && isPatternFill && isPatternObject(item.color) ? (_jsx(PatternFill, { patternFill: item.color?.pattern })) : null }), _jsx("div", { id: legendItemId, className: "series-name", style: nameStyle, children: item.name })] }));
|
|
113
111
|
}
|
|
114
|
-
return (_jsxs("button", { ref: refCallback, "data-testid": "legend-item", role: "option", "aria-selected": item.isVisible, id: id, style: style, className: cx("series-item", { "series-item--isFocused": isFocused }), onClick: handleItemClick, "aria-labelledby": legendItemId, title: unescape(item.name), tabIndex: -1, children: [
|
|
115
|
-
_jsx("div", { className: "series-icon", style: iconStyle, children: item.isVisible && isPatternFill && isPatternObject(item.color) ? (_jsx(PatternFill, { patternFill: item.color?.pattern })) : null }), _jsx("div", { id: legendItemId, className: "series-name", style: nameStyle, children: item.name })
|
|
116
|
-
] }));
|
|
112
|
+
return (_jsxs("button", { ref: refCallback, "data-testid": "legend-item", role: "option", "aria-selected": item.isVisible, id: id, style: style, className: cx("series-item", { "series-item--isFocused": isFocused }), onClick: handleItemClick, "aria-labelledby": legendItemId, title: unescape(item.name), tabIndex: -1, children: [_jsx("div", { className: "series-icon", style: iconStyle, children: item.isVisible && isPatternFill && isPatternObject(item.color) ? (_jsx(PatternFill, { patternFill: item.color?.pattern })) : null }), _jsx("div", { id: legendItemId, className: "series-name", style: nameStyle, children: item.name })] }));
|
|
117
113
|
}
|
|
@@ -9,7 +9,7 @@ export interface ILegendListProps {
|
|
|
9
9
|
chartFill?: ChartFillType;
|
|
10
10
|
}
|
|
11
11
|
export declare function LegendSeparator(): ReactElement;
|
|
12
|
-
export declare const LegendList: import("react").
|
|
13
|
-
initialIndex?: number
|
|
14
|
-
}>;
|
|
12
|
+
export declare const LegendList: import("react").MemoExoticComponent<({ series, enableBorderRadius, onItemClick, width, chartFill, }: ILegendListProps & {
|
|
13
|
+
initialIndex?: number;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element[]>;
|
|
15
15
|
//# sourceMappingURL=LegendList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendList.d.ts","sourceRoot":"","sources":["../../src/legend/LegendList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAQ,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAK1D,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAIjC,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAC;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAyCD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"LegendList.d.ts","sourceRoot":"","sources":["../../src/legend/LegendList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAQ,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAK1D,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAIjC,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAC;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAyCD,eAAO,MAAM,UAAU,uGAMpB,gBAAgB,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,+CAwB7C,CAAC"}
|
package/esm/legend/Paging.js
CHANGED
|
@@ -28,10 +28,8 @@ function PagingButton({ type, buttonsOrientation, handler, disabled }) {
|
|
|
28
28
|
* @internal
|
|
29
29
|
*/
|
|
30
30
|
export function Paging({ page, pagesCount, buttonsOrientation = "upDown", showNextPage, showPrevPage, }) {
|
|
31
|
-
return (_jsxs("div", { className: "paging", "data-testid": "Paging", children: [
|
|
32
|
-
_jsx(PagingButton, { type: "prev", buttonsOrientation: buttonsOrientation, handler: showPrevPage, disabled: page === 1 }), _jsx(FormattedMessage, { id: "visualizations.of", tagName: "span", values: {
|
|
31
|
+
return (_jsxs("div", { className: "paging", "data-testid": "Paging", children: [_jsx(PagingButton, { type: "prev", buttonsOrientation: buttonsOrientation, handler: showPrevPage, disabled: page === 1 }), _jsx(FormattedMessage, { id: "visualizations.of", tagName: "span", values: {
|
|
33
32
|
page: _jsx("strong", { children: page }),
|
|
34
33
|
pagesCount,
|
|
35
|
-
} }), _jsx(PagingButton, { type: "next", buttonsOrientation: buttonsOrientation, handler: showNextPage, disabled: page === pagesCount })
|
|
36
|
-
] }));
|
|
34
|
+
} }), _jsx(PagingButton, { type: "next", buttonsOrientation: buttonsOrientation, handler: showNextPage, disabled: page === pagesCount })] }));
|
|
37
35
|
}
|
|
@@ -26,11 +26,7 @@ function LegendDialogContent({ title, onCloseDialog, children, id }) {
|
|
|
26
26
|
zoomed: isZoomed,
|
|
27
27
|
});
|
|
28
28
|
const titleId = useIdPrefixed("legendDialogContentTitle");
|
|
29
|
-
return (_jsx("div", { className: className, id: id, role: "dialog", "aria-modal": false, "aria-labelledby": titleId, onBlur: handleBlur, ref: dialogRef, children: _jsxs(UiFocusTrap, { children: [
|
|
30
|
-
_jsxs("div", { className: "legend-header", children: [
|
|
31
|
-
_jsx("div", { className: "legend-header-title", id: titleId, children: title }), _jsx(DialogCloseButton, { className: "s-legend-close legend-close gd-icon-cross gd-button-link gd-button-icon-only", onClose: handleClose })
|
|
32
|
-
] }), _jsx(UiAutofocus, { children: _jsx("div", { className: "legend-content", children: children }) })
|
|
33
|
-
] }) }));
|
|
29
|
+
return (_jsx("div", { className: className, id: id, role: "dialog", "aria-modal": false, "aria-labelledby": titleId, onBlur: handleBlur, ref: dialogRef, children: _jsxs(UiFocusTrap, { children: [_jsxs("div", { className: "legend-header", children: [_jsx("div", { className: "legend-header-title", id: titleId, children: title }), _jsx(DialogCloseButton, { className: "s-legend-close legend-close gd-icon-cross gd-button-link gd-button-icon-only", onClose: handleClose })] }), _jsx(UiAutofocus, { children: _jsx("div", { className: "legend-content", children: children }) })] }) }));
|
|
34
30
|
}
|
|
35
31
|
export function LegendDialog({ name, children, isOpen, alignTo, onCloseDialog, id }) {
|
|
36
32
|
if (!isOpen) {
|
|
@@ -23,9 +23,7 @@ export function PopUpLegend({ name, maxRows, enableBorderRadius, series, onLegen
|
|
|
23
23
|
setPage(1);
|
|
24
24
|
document.getElementById(triggerId)?.focus();
|
|
25
25
|
}, [triggerId]);
|
|
26
|
-
return (_jsxs("div", { "data-testid": "pop-up-legend", children: [
|
|
27
|
-
_jsx(RowLegend, { legendLabel: name, maxRowsCount: maxRows, series: [...series], onDialogIconClick: () => {
|
|
26
|
+
return (_jsxs("div", { "data-testid": "pop-up-legend", children: [_jsx(RowLegend, { legendLabel: name, maxRowsCount: maxRows, series: [...series], onDialogIconClick: () => {
|
|
28
27
|
setDialogOpen((prevState) => !prevState);
|
|
29
|
-
}, onLegendItemClick: onLegendItemClick, enableBorderRadius: enableBorderRadius, isActive: isDialogOpen, dialogId: dialogId, triggerId: triggerId, chartFill: chartFill }), _jsx(LegendDialog, { name: dialogTitle, alignTo: `.${containerId}`, isOpen: isDialogOpen, onCloseDialog: onCloseDialog, id: dialogId, children: _jsx(StaticLegend, { containerHeight: 260, series: [...series], label: name, isLabelVisible: false, position: "dialog", buttonOrientation: "leftRight", onItemClick: onLegendItemClick, shouldFillAvailableSpace: false, enableBorderRadius: enableBorderRadius, paginationHeight: PAGINATION_HEIGHT, customComponent: customComponent, onPageChanged: setPage, chartFill: chartFill }) })
|
|
30
|
-
] }));
|
|
28
|
+
}, onLegendItemClick: onLegendItemClick, enableBorderRadius: enableBorderRadius, isActive: isDialogOpen, dialogId: dialogId, triggerId: triggerId, chartFill: chartFill }), _jsx(LegendDialog, { name: dialogTitle, alignTo: `.${containerId}`, isOpen: isDialogOpen, onCloseDialog: onCloseDialog, id: dialogId, children: _jsx(StaticLegend, { containerHeight: 260, series: [...series], label: name, isLabelVisible: false, position: "dialog", buttonOrientation: "leftRight", onItemClick: onLegendItemClick, shouldFillAvailableSpace: false, enableBorderRadius: enableBorderRadius, paginationHeight: PAGINATION_HEIGHT, customComponent: customComponent, onPageChanged: setPage, chartFill: chartFill }) })] }));
|
|
31
29
|
}
|
|
@@ -48,11 +48,7 @@ export function RowLegend({ series, maxRowsCount = 1, legendLabel, enableBorderR
|
|
|
48
48
|
const [isOverflow, numOfUsedRow, checkOverFlow] = useCheckOverflow();
|
|
49
49
|
const LEGEND_HEIGHT = maxRowsCount * LEGEND_ROW_HEIGHT + LEGEND_TOP_BOTTOM_PADDING;
|
|
50
50
|
const itemsAlign = numOfUsedRow === 1 ? "flex-end" : "flex-start";
|
|
51
|
-
return (_jsxs("div", { className: "legend-popup-row", style: { maxHeight: LEGEND_HEIGHT }, children: [
|
|
52
|
-
_jsxs(LegendSeries, { onToggleItem: onLegendItemClick, series: series, ref: checkOverFlow, style: {
|
|
51
|
+
return (_jsxs("div", { className: "legend-popup-row", style: { maxHeight: LEGEND_HEIGHT }, children: [_jsxs(LegendSeries, { onToggleItem: onLegendItemClick, series: series, ref: checkOverFlow, style: {
|
|
53
52
|
justifyContent: itemsAlign,
|
|
54
|
-
}, label: legendLabel, className: "viz-legend static position-row", children: [
|
|
55
|
-
_jsx(LegendLabelItem, { label: legendLabel }), _jsx(LegendList, { enableBorderRadius: enableBorderRadius, series: series, onItemClick: onLegendItemClick, chartFill: chartFill })
|
|
56
|
-
] }), _jsx(RowLegendIcoButton, { isActive: isActive, isVisible: isOverflow, onIconClick: onDialogIconClick, dialogId: dialogId, triggerId: triggerId })
|
|
57
|
-
] }));
|
|
53
|
+
}, label: legendLabel, className: "viz-legend static position-row", children: [_jsx(LegendLabelItem, { label: legendLabel }), _jsx(LegendList, { enableBorderRadius: enableBorderRadius, series: series, onItemClick: onLegendItemClick, chartFill: chartFill })] }), _jsx(RowLegendIcoButton, { isActive: isActive, isVisible: isOverflow, onIconClick: onDialogIconClick, dialogId: dialogId, triggerId: triggerId })] }));
|
|
58
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StaticLegend.d.ts","sourceRoot":"","sources":["../../src/legend/StaticLegend.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,YAAY,EAKpB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM1D,OAAO,EAAE,KAAK,sBAAsB,EAAU,MAAM,aAAa,CAAC;AAElE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAC;IACzD,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,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7 @@ export const StaticLegend = memo(function StaticLegend({ buttonOrientation = "up
|
|
|
50
50
|
if (position === TOP || position === BOTTOM) {
|
|
51
51
|
return (_jsx("div", { className: classNames, children: _jsx(LegendSeries, { series: series, label: label, onToggleItem: onItemClick ?? (() => { }), children: _jsx(LegendList, { enableBorderRadius: enableBorderRadius, series: series, onItemClick: onItemClick ?? (() => { }), chartFill: chartFill }) }) }));
|
|
52
52
|
}
|
|
53
|
-
return (_jsxs("div", { className: classNames, children: [
|
|
54
|
-
_jsxs(LegendSeries, { series: pagedSeries, label: label, style: { height: seriesHeight }, onToggleItem: onItemClick ?? (() => { }), children: [labelNode, shouldDisplayCustomComponent ? (customComponent) : (_jsx(LegendList, { enableBorderRadius: enableBorderRadius, series: pagedSeries, onItemClick: onItemClick ?? (() => { }), chartFill: chartFill }))] }), usePaging ? (_jsx(Paging, { page: page, pagesCount: pagesCount, showNextPage: handleNextPage, showPrevPage: handlePreviousPage, buttonsOrientation: buttonOrientation })) : null] }));
|
|
53
|
+
return (_jsxs("div", { className: classNames, children: [_jsxs(LegendSeries, { series: pagedSeries, label: label, style: { height: seriesHeight }, onToggleItem: onItemClick ?? (() => { }), children: [labelNode, shouldDisplayCustomComponent ? (customComponent) : (_jsx(LegendList, { enableBorderRadius: enableBorderRadius, series: pagedSeries, onItemClick: onItemClick ?? (() => { }), chartFill: chartFill }))] }), usePaging ? (_jsx(Paging, { page: page, pagesCount: pagesCount, showNextPage: handleNextPage, showPrevPage: handlePreviousPage, buttonsOrientation: buttonOrientation })) : null] }));
|
|
55
54
|
});
|
|
56
55
|
const getPagesCount = (seriesLength, visibleItemsCount, hasCustomComponent) => {
|
|
57
56
|
const defaultPagesCount = Math.ceil(seriesLength / visibleItemsCount);
|
package/esm/legend/context.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export declare const useLegendSeriesContextValue: ({ series, focusedIndex, id, }
|
|
|
5
5
|
id: string;
|
|
6
6
|
}) => {
|
|
7
7
|
focusedItem: ISeriesItem;
|
|
8
|
-
makeItemId: (item?: ISeriesItem
|
|
8
|
+
makeItemId: (item?: ISeriesItem) => string | undefined;
|
|
9
9
|
};
|
|
10
10
|
export declare const LegendSeriesContextStore: import("@gooddata/sdk-ui").IContextStore<{
|
|
11
11
|
focusedItem: ISeriesItem;
|
|
12
|
-
makeItemId: (item?: ISeriesItem
|
|
12
|
+
makeItemId: (item?: ISeriesItem) => string | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
/**
|
|
15
15
|
* Context for tracking visibility of legend items
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/legend/context.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/legend/context.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,2BAA2B,kCAIrC;IACC,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;CACd;;wBAEe,WAAW;CAW1B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;wBAbrB,WAAW;EAc2D,CAAC;AAEvF;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,oDAAiD,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,0BAM7B,CAAC"}
|
|
@@ -1 +1 @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../src/legend/visibilityDetection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"visibilityDetection.d.ts","sourceRoot":"","sources":["../../src/legend/visibilityDetection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,aAAa,8BAA8B;mCAWxB,cAAc,GAAG,IAAI;;CA2F1E,CAAC"}
|
package/esm/locales.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../src/locales.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../src/locales.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;QACV,EAAE;;;QACC,EAAE;;;QACJ,EAAE;;;QACD,EAAE;;;QACF,EAAE;;;QACD,EAAE;;;QACJ,EAAE;;;QACF,EAAE;;;QACD,EAAE;;;QACC,EAAE;;;QACN,EAAE;;CACZ,CAAC"}
|
|
@@ -248,7 +248,7 @@ export declare function getContrastRatio(colorA: string, colorB: string): number
|
|
|
248
248
|
* @internal
|
|
249
249
|
* Provides responsive class for headline/kpi component based on its width and state of secondary item
|
|
250
250
|
*/
|
|
251
|
-
export declare const getHeadlineResponsiveClassName: (width: number | undefined, isShortened?: boolean
|
|
251
|
+
export declare const getHeadlineResponsiveClassName: (width: number | undefined, isShortened?: boolean) => string;
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
254
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateCustomHeight.d.ts","sourceRoot":"","sources":["../../src/utils/calculateCustomHeight.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAkBnD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC3C,aAAa,CAAC,EAAE,OAAO,EACvB,YAAY,CAAC,EAAE,MAAM,GACtB;IAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAiC9D;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"calculateCustomHeight.d.ts","sourceRoot":"","sources":["../../src/utils/calculateCustomHeight.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAkBnD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC3C,aAAa,CAAC,EAAE,OAAO,EACvB,YAAY,CAAC,EAAE,MAAM,GACtB;IAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAiC9D;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,sBACZ,OAAO,SACnB,MAAM,UACL,MAAM,KACf,OAIF,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* @internal
|
|
3
3
|
* Provides responsive class for headline/kpi component based on its width and state of secondary item
|
|
4
4
|
*/
|
|
5
|
-
export declare const getHeadlineResponsiveClassName: (width: number | undefined, isShortened?: boolean
|
|
5
|
+
export declare const getHeadlineResponsiveClassName: (width: number | undefined, isShortened?: boolean) => string;
|
|
6
6
|
//# sourceMappingURL=headlineResponsiveClassName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headlineResponsiveClassName.d.ts","sourceRoot":"","sources":["../../src/utils/headlineResponsiveClassName.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"headlineResponsiveClassName.d.ts","sourceRoot":"","sources":["../../src/utils/headlineResponsiveClassName.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,8BAA8B,UAAW,MAAM,GAAG,SAAS,gBAAgB,OAAO,KAAG,MASjG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-vis-commons",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.56.0-alpha.1",
|
|
4
4
|
"description": "GoodData.UI SDK - common functionality for different types of visualizations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"react-intl": "7.1.11",
|
|
37
37
|
"react-measure": "^2.5.2",
|
|
38
38
|
"tslib": "2.8.1",
|
|
39
|
-
"@gooddata/sdk-
|
|
40
|
-
"@gooddata/sdk-
|
|
41
|
-
"@gooddata/sdk-ui": "11.
|
|
42
|
-
"@gooddata/sdk-ui-
|
|
43
|
-
"@gooddata/sdk-ui-
|
|
39
|
+
"@gooddata/sdk-model": "11.56.0-alpha.1",
|
|
40
|
+
"@gooddata/sdk-backend-spi": "11.56.0-alpha.1",
|
|
41
|
+
"@gooddata/sdk-ui": "11.56.0-alpha.1",
|
|
42
|
+
"@gooddata/sdk-ui-kit": "11.56.0-alpha.1",
|
|
43
|
+
"@gooddata/sdk-ui-theme-provider": "11.56.0-alpha.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@microsoft/api-documenter": "7.30.10",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/react-measure": "2.0.12",
|
|
55
55
|
"@typescript-eslint/eslint-plugin": "8.58.0",
|
|
56
56
|
"@typescript-eslint/parser": "8.58.0",
|
|
57
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
57
|
+
"@typescript/native-preview": "7.0.0-dev.20260501.1",
|
|
58
58
|
"dependency-cruiser": "17.3.10",
|
|
59
59
|
"eslint": "^9.39.2",
|
|
60
60
|
"eslint-plugin-headers": "1.3.3",
|
|
@@ -73,16 +73,16 @@
|
|
|
73
73
|
"raf": "3.4.1",
|
|
74
74
|
"react": "19.1.1",
|
|
75
75
|
"react-dom": "19.1.1",
|
|
76
|
-
"sass": "1.
|
|
76
|
+
"sass": "1.78.0",
|
|
77
77
|
"stylelint": "16.26.1",
|
|
78
78
|
"typescript": "5.9.3",
|
|
79
79
|
"vitest": "4.1.8",
|
|
80
80
|
"vitest-dom": "0.1.1",
|
|
81
|
-
"@gooddata/eslint-config": "11.
|
|
82
|
-
"@gooddata/oxlint-config": "11.
|
|
83
|
-
"@gooddata/reference-workspace": "11.
|
|
84
|
-
"@gooddata/
|
|
85
|
-
"@gooddata/
|
|
81
|
+
"@gooddata/eslint-config": "11.56.0-alpha.1",
|
|
82
|
+
"@gooddata/oxlint-config": "11.56.0-alpha.1",
|
|
83
|
+
"@gooddata/reference-workspace": "11.56.0-alpha.1",
|
|
84
|
+
"@gooddata/sdk-backend-mockingbird": "11.56.0-alpha.1",
|
|
85
|
+
"@gooddata/stylelint-config": "11.56.0-alpha.1"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"react": "^18.0.0 || ^19.0.0",
|