@gooddata/sdk-ui-vis-commons 10.27.0-alpha.0 → 10.27.0-alpha.2
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/compactSize/HeadlinePagination.d.ts +4 -0
- package/esm/compactSize/HeadlinePagination.d.ts.map +1 -1
- package/esm/compactSize/HeadlinePagination.js +7 -3
- package/esm/compactSize/HeadlinePagination.js.map +1 -1
- package/esm/compactSize/HeadlinePaginationRenderer.d.ts +4 -0
- package/esm/compactSize/HeadlinePaginationRenderer.d.ts.map +1 -1
- package/esm/compactSize/HeadlinePaginationRenderer.js +7 -4
- package/esm/compactSize/HeadlinePaginationRenderer.js.map +1 -1
- package/esm/legend/PopUpLegend/helpers.d.ts +1 -1
- package/esm/legend/PopUpLegend/helpers.d.ts.map +1 -1
- package/esm/legend/PopUpLegend/helpers.js +18 -11
- package/esm/legend/PopUpLegend/helpers.js.map +1 -1
- package/esm/sdk-ui-vis-commons.d.ts +5 -1
- package/package.json +8 -8
|
@@ -5,6 +5,10 @@ import React from "react";
|
|
|
5
5
|
export interface IHeadlinePaginationProps {
|
|
6
6
|
renderSecondaryItem: () => JSX.Element;
|
|
7
7
|
renderTertiaryItem: () => JSX.Element;
|
|
8
|
+
accessibilityConfig?: {
|
|
9
|
+
nextAriaLabel?: string;
|
|
10
|
+
previousAriaLabel?: string;
|
|
11
|
+
};
|
|
8
12
|
}
|
|
9
13
|
/**
|
|
10
14
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlinePagination.d.ts","sourceRoot":"","sources":["../../src/compactSize/HeadlinePagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,mBAAmB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACvC,kBAAkB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HeadlinePagination.d.ts","sourceRoot":"","sources":["../../src/compactSize/HeadlinePagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,mBAAmB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACvC,kBAAkB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACtC,mBAAmB,CAAC,EAAE;QAClB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;CACL;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA2BjE,CAAC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { HeadlinePaginationRenderer } from "./HeadlinePaginationRenderer.js";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export const HeadlinePagination = ({ renderSecondaryItem, renderTertiaryItem, }) => {
|
|
7
|
+
export const HeadlinePagination = ({ renderSecondaryItem, renderTertiaryItem, accessibilityConfig, }) => {
|
|
8
|
+
const { nextAriaLabel, previousAriaLabel } = accessibilityConfig ?? {};
|
|
8
9
|
const [item, setItem] = useState(1);
|
|
9
10
|
const showNextItem = () => setItem(item + 1);
|
|
10
11
|
const showPrevItem = () => setItem(item - 1);
|
|
11
12
|
return (React.createElement(React.Fragment, null,
|
|
12
|
-
React.createElement(HeadlinePaginationRenderer, { item: item, showNextItem: showNextItem, showPrevItem: showPrevItem
|
|
13
|
+
React.createElement(HeadlinePaginationRenderer, { item: item, showNextItem: showNextItem, showPrevItem: showPrevItem, accessibilityConfig: {
|
|
14
|
+
nextAriaLabel,
|
|
15
|
+
previousAriaLabel,
|
|
16
|
+
} }),
|
|
13
17
|
item === 1 && renderSecondaryItem(),
|
|
14
18
|
item === 2 && renderTertiaryItem()));
|
|
15
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlinePagination.js","sourceRoot":"","sources":["../../src/compactSize/HeadlinePagination.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"HeadlinePagination.js","sourceRoot":"","sources":["../../src/compactSize/HeadlinePagination.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAc7E;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAuC,CAAC,EACnE,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACtB,EAAE,EAAE;IACD,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAG,mBAAmB,IAAI,EAAE,CAAC;IACvE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAC;IAE5C,MAAM,YAAY,GAAG,GAAS,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;IAEnD,MAAM,YAAY,GAAG,GAAS,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;IAEnD,OAAO,CACH;QACI,oBAAC,0BAA0B,IACvB,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE;gBACjB,aAAa;gBACb,iBAAiB;aACpB,GACH;QACD,IAAI,KAAK,CAAC,IAAI,mBAAmB,EAAE;QACnC,IAAI,KAAK,CAAC,IAAI,kBAAkB,EAAE,CACpC,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlinePaginationRenderer.d.ts","sourceRoot":"","sources":["../../src/compactSize/HeadlinePaginationRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,wBAAwB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"HeadlinePaginationRenderer.d.ts","sourceRoot":"","sources":["../../src/compactSize/HeadlinePaginationRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,wBAAwB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE;QAClB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8BzE,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
1
|
+
// (C) 2021-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
|
-
export const HeadlinePaginationRenderer = ({ item, showPrevItem, showNextItem, }) => {
|
|
3
|
+
export const HeadlinePaginationRenderer = ({ item, accessibilityConfig, showPrevItem, showNextItem, }) => {
|
|
4
|
+
const { nextAriaLabel, previousAriaLabel } = accessibilityConfig ?? {};
|
|
4
5
|
const commonClassNames = "gd-button-link gd-button-icon-only pagination";
|
|
6
|
+
const isFirstItemDisabled = item === 1;
|
|
7
|
+
const isSecondItemDisabled = item === 2;
|
|
5
8
|
return (React.createElement("div", { className: "headline-pagination" },
|
|
6
|
-
React.createElement("button", { className: `${commonClassNames} first-item gd-icon-chevron-left`, onClick: showPrevItem, disabled:
|
|
7
|
-
React.createElement("button", { className: `${commonClassNames} second-item gd-icon-chevron-right`, onClick: showNextItem, disabled:
|
|
9
|
+
React.createElement("button", { className: `${commonClassNames} first-item gd-icon-chevron-left`, onClick: showPrevItem, disabled: isFirstItemDisabled, "aria-disabled": isFirstItemDisabled, "aria-label": previousAriaLabel }),
|
|
10
|
+
React.createElement("button", { className: `${commonClassNames} second-item gd-icon-chevron-right`, onClick: showNextItem, disabled: isSecondItemDisabled, "aria-disabled": isSecondItemDisabled, "aria-label": nextAriaLabel })));
|
|
8
11
|
};
|
|
9
12
|
//# sourceMappingURL=HeadlinePaginationRenderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlinePaginationRenderer.js","sourceRoot":"","sources":["../../src/compactSize/HeadlinePaginationRenderer.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"HeadlinePaginationRenderer.js","sourceRoot":"","sources":["../../src/compactSize/HeadlinePaginationRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,MAAM,CAAC,MAAM,0BAA0B,GAAuC,CAAC,EAC3E,IAAI,EACJ,mBAAmB,EACnB,YAAY,EACZ,YAAY,GACf,EAAE,EAAE;IACD,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAG,mBAAmB,IAAI,EAAE,CAAC;IACvE,MAAM,gBAAgB,GAAG,+CAA+C,CAAC;IAEzE,MAAM,mBAAmB,GAAG,IAAI,KAAK,CAAC,CAAC;IACvC,MAAM,oBAAoB,GAAG,IAAI,KAAK,CAAC,CAAC;IAExC,OAAO,CACH,6BAAK,SAAS,EAAC,qBAAqB;QAChC,gCACI,SAAS,EAAE,GAAG,gBAAgB,kCAAkC,EAChE,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,mBAAmB,mBACd,mBAAmB,gBACtB,iBAAiB,GAC/B;QACF,gCACI,SAAS,EAAE,GAAG,gBAAgB,oCAAoC,EAClE,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,oBAAoB,mBACf,oBAAoB,gBACvB,aAAa,GAC3B,CACA,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -21,5 +21,5 @@ export interface ILegendDetailOptions {
|
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
export declare function getLegendDetails(legendPosition: PositionType, responsive: boolean | "autoPositionWithPopup", options: ILegendDetailOptions): ILegendDetails | null;
|
|
24
|
+
export declare function getLegendDetails(legendPosition: PositionType, responsive: boolean | "autoPositionWithPopup", options: ILegendDetailOptions, respectLegendPosition?: boolean): ILegendDetails | null;
|
|
25
25
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/legend/PopUpLegend/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/legend/PopUpLegend/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAyE3C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC5B,cAAc,EAAE,YAAY,EAC5B,UAAU,EAAE,OAAO,GAAG,uBAAuB,EAC7C,OAAO,EAAE,oBAAoB,EAC7B,qBAAqB,CAAC,EAAE,OAAO,GAChC,cAAc,GAAG,IAAI,CAevB"}
|
|
@@ -2,31 +2,38 @@ import { TOP, RIGHT, BOTTOM } from "../PositionTypes.js";
|
|
|
2
2
|
const LEGEND_WIDTH_BREAKPOINT = 610;
|
|
3
3
|
const LEGEND_HEIGHT_BREAKPOINT_SM = 194;
|
|
4
4
|
const LEGEND_HEIGHT_BREAKPOINT_ML = 274;
|
|
5
|
-
function getLegendDetailsForAutoResponsive(legendPosition, contentRect, legendLabel) {
|
|
5
|
+
function getLegendDetailsForAutoResponsive(legendPosition, contentRect, legendLabel, respectLegendPosition) {
|
|
6
6
|
const width = contentRect?.client?.width;
|
|
7
7
|
const height = contentRect?.client?.height;
|
|
8
8
|
if (!width || !height) {
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
11
11
|
const name = legendLabel ? { name: legendLabel } : {};
|
|
12
|
+
const isLegendTopBottom = legendPosition === "top" || legendPosition === "bottom";
|
|
13
|
+
const maxRowsForTopBottom = height < LEGEND_HEIGHT_BREAKPOINT_ML ? 1 : 2;
|
|
14
|
+
const legendDetailsWithoutSizePositionChanges = {
|
|
15
|
+
...name,
|
|
16
|
+
position: legendPosition,
|
|
17
|
+
renderPopUp: isLegendTopBottom,
|
|
18
|
+
maxRows: isLegendTopBottom ? maxRowsForTopBottom : undefined,
|
|
19
|
+
};
|
|
20
|
+
// In case when position is different than auto and respectLegendPosition flag is true,
|
|
21
|
+
// we use legend details without position changes based on sizing.
|
|
22
|
+
const shouldRespectLegendPosition = respectLegendPosition && legendPosition !== "auto";
|
|
23
|
+
if (shouldRespectLegendPosition) {
|
|
24
|
+
return legendDetailsWithoutSizePositionChanges;
|
|
25
|
+
}
|
|
12
26
|
// Decision logic: https://gooddata.invisionapp.com/console/share/KJ2A59MOAQ/548340571
|
|
13
27
|
if (width < LEGEND_WIDTH_BREAKPOINT) {
|
|
14
28
|
const maxRowsForTop = height < LEGEND_HEIGHT_BREAKPOINT_ML ? 1 : 2;
|
|
15
29
|
return { ...name, position: TOP, renderPopUp: true, maxRows: maxRowsForTop };
|
|
16
30
|
}
|
|
17
31
|
else {
|
|
18
|
-
const isLegendTopBottom = legendPosition === "top" || legendPosition === "bottom";
|
|
19
32
|
if (height < LEGEND_HEIGHT_BREAKPOINT_SM) {
|
|
20
33
|
return { ...name, position: RIGHT, renderPopUp: false };
|
|
21
34
|
}
|
|
22
35
|
else {
|
|
23
|
-
|
|
24
|
-
return {
|
|
25
|
-
...name,
|
|
26
|
-
position: legendPosition,
|
|
27
|
-
renderPopUp: isLegendTopBottom,
|
|
28
|
-
maxRows: isLegendTopBottom ? maxRowsForTopBottom : undefined,
|
|
29
|
-
};
|
|
36
|
+
return legendDetailsWithoutSizePositionChanges;
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
39
|
}
|
|
@@ -49,10 +56,10 @@ function getLegendDetailsForStandard(legendPosition, responsive, showFluidLegend
|
|
|
49
56
|
/**
|
|
50
57
|
* @internal
|
|
51
58
|
*/
|
|
52
|
-
export function getLegendDetails(legendPosition, responsive, options) {
|
|
59
|
+
export function getLegendDetails(legendPosition, responsive, options, respectLegendPosition) {
|
|
53
60
|
if (responsive !== "autoPositionWithPopup") {
|
|
54
61
|
return getLegendDetailsForStandard(legendPosition, responsive, options.showFluidLegend, options.isHeatmap);
|
|
55
62
|
}
|
|
56
|
-
return getLegendDetailsForAutoResponsive(legendPosition, options.contentRect, options.legendLabel);
|
|
63
|
+
return getLegendDetailsForAutoResponsive(legendPosition, options.contentRect, options.legendLabel, respectLegendPosition);
|
|
57
64
|
}
|
|
58
65
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/legend/PopUpLegend/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AACxC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAExC,SAAS,iCAAiC,CACtC,cAA4B,EAC5B,WAAyB,EACzB,WAAoB;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/legend/PopUpLegend/helpers.ts"],"names":[],"mappings":"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"}
|
|
@@ -156,7 +156,7 @@ export declare const getHeadlineResponsiveClassName: (width: number | undefined,
|
|
|
156
156
|
/**
|
|
157
157
|
* @internal
|
|
158
158
|
*/
|
|
159
|
-
export declare function getLegendDetails(legendPosition: PositionType, responsive: boolean | "autoPositionWithPopup", options: ILegendDetailOptions): ILegendDetails | null;
|
|
159
|
+
export declare function getLegendDetails(legendPosition: PositionType, responsive: boolean | "autoPositionWithPopup", options: ILegendDetailOptions, respectLegendPosition?: boolean): ILegendDetails | null;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Source:
|
|
@@ -299,6 +299,10 @@ export declare interface IGeoChartLegendData {
|
|
|
299
299
|
export declare interface IHeadlinePaginationProps {
|
|
300
300
|
renderSecondaryItem: () => JSX.Element;
|
|
301
301
|
renderTertiaryItem: () => JSX.Element;
|
|
302
|
+
accessibilityConfig?: {
|
|
303
|
+
nextAriaLabel?: string;
|
|
304
|
+
previousAriaLabel?: string;
|
|
305
|
+
};
|
|
302
306
|
}
|
|
303
307
|
|
|
304
308
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-vis-commons",
|
|
3
|
-
"version": "10.27.0-alpha.
|
|
3
|
+
"version": "10.27.0-alpha.2",
|
|
4
4
|
"description": "GoodData.UI SDK - common functionality for different types of visualizations",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"react-intl": "^6.4.1",
|
|
37
37
|
"react-measure": "^2.5.2",
|
|
38
38
|
"tslib": "^2.5.0",
|
|
39
|
-
"@gooddata/sdk-backend-spi": "10.27.0-alpha.
|
|
40
|
-
"@gooddata/sdk-ui": "10.27.0-alpha.
|
|
41
|
-
"@gooddata/sdk-model": "10.27.0-alpha.
|
|
42
|
-
"@gooddata/sdk-ui-
|
|
43
|
-
"@gooddata/sdk-ui-
|
|
39
|
+
"@gooddata/sdk-backend-spi": "10.27.0-alpha.2",
|
|
40
|
+
"@gooddata/sdk-ui": "10.27.0-alpha.2",
|
|
41
|
+
"@gooddata/sdk-model": "10.27.0-alpha.2",
|
|
42
|
+
"@gooddata/sdk-ui-theme-provider": "10.27.0-alpha.2",
|
|
43
|
+
"@gooddata/sdk-ui-kit": "10.27.0-alpha.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"typescript": "5.3.3",
|
|
86
86
|
"vitest": "3.0.8",
|
|
87
87
|
"vitest-dom": "0.1.1",
|
|
88
|
-
"@gooddata/
|
|
89
|
-
"@gooddata/
|
|
88
|
+
"@gooddata/reference-workspace": "10.27.0-alpha.2",
|
|
89
|
+
"@gooddata/sdk-backend-mockingbird": "10.27.0-alpha.2"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",
|