@gooddata/sdk-ui-vis-commons 10.24.0-alpha.2 → 10.24.0-alpha.20
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/legend/LegendItem.d.ts.map +1 -1
- package/esm/legend/LegendItem.js +23 -23
- package/esm/legend/LegendItem.js.map +1 -1
- package/esm/legend/Paging.d.ts.map +1 -1
- package/esm/legend/Paging.js +11 -11
- package/esm/legend/Paging.js.map +1 -1
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +3 -1
- package/esm/locales.js.map +1 -1
- package/package.json +8 -8
- package/styles/scss/legend.scss +15 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendItem.d.ts","sourceRoot":"","sources":["../../src/legend/LegendItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendItem.d.ts","sourceRoot":"","sources":["../../src/legend/LegendItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,UAAU,gBAAgB;IACtB,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAW,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;;AAiDD,wBAAqC"}
|
package/esm/legend/LegendItem.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
// (C) 2007-
|
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import unescape from "lodash/unescape.js";
|
|
4
4
|
import { withTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
5
|
+
import { useId } from "@gooddata/sdk-ui-kit";
|
|
5
6
|
const DEFAULT_DISABLED_COLOR = "#CCCCCC";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const LegendItem = ({ item, width, enableBorderRadius = false, onItemClick, theme, }) => {
|
|
8
|
+
const disabledColor = theme?.palette?.complementary?.c5 ?? DEFAULT_DISABLED_COLOR;
|
|
9
|
+
const iconStyle = {
|
|
10
|
+
borderRadius: enableBorderRadius ? "50%" : "0",
|
|
11
|
+
backgroundColor: item.isVisible ? item.color : disabledColor,
|
|
12
|
+
};
|
|
13
|
+
// normal state styled by css
|
|
14
|
+
const nameStyle = item.isVisible
|
|
15
|
+
? {}
|
|
16
|
+
: {
|
|
17
|
+
color: disabledColor,
|
|
13
18
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return (React.createElement("div", { style: style, className: "series-item", onClick: onItemClick, "aria-label": "Legend item" },
|
|
25
|
-
React.createElement("div", { className: "series-icon", style: iconStyle }),
|
|
26
|
-
React.createElement("div", { className: "series-name", style: nameStyle, title: unescape(item.name) }, item.name)));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
19
|
+
const style = width ? { width: `${width}px` } : {};
|
|
20
|
+
const handleItemClick = () => {
|
|
21
|
+
return onItemClick(item);
|
|
22
|
+
};
|
|
23
|
+
const id = useId();
|
|
24
|
+
const legendItemId = `legend-item-${id}`;
|
|
25
|
+
return (React.createElement("button", { "data-testid": "legend-item", style: style, className: "series-item", onClick: handleItemClick, "aria-labelledby": legendItemId, title: unescape(item.name) },
|
|
26
|
+
React.createElement("div", { className: "series-icon", style: iconStyle }),
|
|
27
|
+
React.createElement("div", { id: legendItemId, className: "series-name", style: nameStyle }, item.name)));
|
|
28
|
+
};
|
|
29
29
|
export default withTheme(LegendItem);
|
|
30
30
|
//# sourceMappingURL=LegendItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendItem.js","sourceRoot":"","sources":["../../src/legend/LegendItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendItem.js","sourceRoot":"","sources":["../../src/legend/LegendItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAUzC,MAAM,UAAU,GAA+B,CAAC,EAC5C,IAAI,EACJ,KAAK,EACL,kBAAkB,GAAG,KAAK,EAC1B,WAAW,EACX,KAAK,GACR,EAAE,EAAE;IACD,MAAM,aAAa,GAAG,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,IAAI,sBAAsB,CAAC;IAElF,MAAM,SAAS,GAAG;QACd,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG;QAC9C,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa;KAC/D,CAAC;IAEF,6BAA6B;IAC7B,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS;QAC5B,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACI,KAAK,EAAE,aAAa;SACvB,CAAC;IAER,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnD,MAAM,eAAe,GAAG,GAAG,EAAE;QACzB,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IACnB,MAAM,YAAY,GAAG,eAAe,EAAE,EAAE,CAAC;IAEzC,OAAO,CACH,+CACiB,aAAa,EAC1B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,aAAa,EACvB,OAAO,EAAE,eAAe,qBACP,YAAY,EAC7B,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;QAE1B,6BAAK,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,SAAS,GAAI;QACjD,6BAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,SAAS,IAC1D,IAAI,CAAC,IAAI,CACR,CACD,CACZ,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paging.d.ts","sourceRoot":"","sources":["../../src/legend/Paging.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Paging.d.ts","sourceRoot":"","sources":["../../src/legend/Paging.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,IAAI,IAAI,CAAC;IACrB,YAAY,IAAI,IAAI,CAAC;IACrB,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;CAC/C;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;AA6C/C;;GAEG;AACH,eAAO,MAAM,MAAM,UAAW,YAAY,KAAG,MAAM,YA2BlD,CAAC"}
|
package/esm/legend/Paging.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FormattedMessage } from "react-intl";
|
|
3
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
+
import { messages } from "../locales.js";
|
|
5
6
|
function getbuttonIcoStyle(type, buttonsOrientation) {
|
|
6
7
|
if (type === "prev") {
|
|
7
8
|
if (buttonsOrientation === "upDown") {
|
|
@@ -17,24 +18,23 @@ function getbuttonIcoStyle(type, buttonsOrientation) {
|
|
|
17
18
|
}
|
|
18
19
|
return undefined;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
const PagingButton = ({ type, buttonsOrientation, handler, disabled }) => {
|
|
22
|
+
const intl = useIntl();
|
|
21
23
|
const classes = cx("gd-button-link", "gd-button-icon-only", `gd-icon-chevron-${getbuttonIcoStyle(type, buttonsOrientation)}`, "paging-button");
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return React.createElement("button", { className: classes, onClick: onClick, disabled: disabled });
|
|
26
|
-
}
|
|
24
|
+
const buttonLabel = type === "prev" ? intl.formatMessage(messages.previous) : intl.formatMessage(messages.next);
|
|
25
|
+
return React.createElement("button", { className: classes, onClick: handler, disabled: disabled, "aria-label": buttonLabel });
|
|
26
|
+
};
|
|
27
27
|
/**
|
|
28
28
|
* @internal
|
|
29
29
|
*/
|
|
30
30
|
export const Paging = (props) => {
|
|
31
31
|
const { page, pagesCount, buttonsOrientation = "upDown", showNextPage, showPrevPage } = props;
|
|
32
|
-
return (React.createElement("div", { className: "paging", "
|
|
33
|
-
|
|
32
|
+
return (React.createElement("div", { className: "paging", "data-testid": "Paging" },
|
|
33
|
+
React.createElement(PagingButton, { type: "prev", buttonsOrientation: buttonsOrientation, handler: showPrevPage, disabled: page === 1 }),
|
|
34
34
|
React.createElement(FormattedMessage, { id: "visualizations.of", tagName: "span", values: {
|
|
35
35
|
page: React.createElement("strong", null, page),
|
|
36
36
|
pagesCount,
|
|
37
37
|
} }),
|
|
38
|
-
|
|
38
|
+
React.createElement(PagingButton, { type: "next", buttonsOrientation: buttonsOrientation, handler: showNextPage, disabled: page === pagesCount })));
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=Paging.js.map
|
package/esm/legend/Paging.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paging.js","sourceRoot":"","sources":["../../src/legend/Paging.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Paging.js","sourceRoot":"","sources":["../../src/legend/Paging.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAoBzC,SAAS,iBAAiB,CACtB,IAAsB,EACtB,kBAA0C;IAE1C,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QAClB,IAAI,kBAAkB,KAAK,QAAQ,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QAClB,IAAI,kBAAkB,KAAK,QAAQ,EAAE,CAAC;YAClC,OAAO,MAAM,CAAC;QAClB,CAAC;Q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EAAC,MAAM,EACX,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,IAAI,KAAK,UAAU,GAC/B,CACA,CACT,CAAC;AACN,CAAC,CAAC"}
|
package/esm/locales.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../src/locales.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../src/locales.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAYrD,CAAC"}
|
package/esm/locales.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2019-
|
|
1
|
+
// (C) 2019-2025 GoodData Corporation
|
|
2
2
|
import { defineMessages } from "react-intl";
|
|
3
3
|
//NOTE: Follow up ticket for move all messages: https://gooddata.atlassian.net/browse/FET-1050
|
|
4
4
|
export const messages = defineMessages({
|
|
@@ -11,5 +11,7 @@ export const messages = defineMessages({
|
|
|
11
11
|
line: { id: "visualizations.legend.text.line" },
|
|
12
12
|
area: { id: "visualizations.legend.text.area" },
|
|
13
13
|
combo: { id: "visualizations.legend.text.combo" },
|
|
14
|
+
previous: { id: "visualizations.pagination.previous" },
|
|
15
|
+
next: { id: "visualizations.pagination.next" },
|
|
14
16
|
});
|
|
15
17
|
//# sourceMappingURL=locales.js.map
|
package/esm/locales.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.js","sourceRoot":"","sources":["../src/locales.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAqB,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,EAAE,EAAE,EAAE,EAAE,oCAAoC,EAAE;IACtD,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;CACjD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-vis-commons",
|
|
3
|
-
"version": "10.24.0-alpha.
|
|
3
|
+
"version": "10.24.0-alpha.20",
|
|
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.24.0-alpha.
|
|
40
|
-
"@gooddata/sdk-model": "10.24.0-alpha.
|
|
41
|
-
"@gooddata/sdk-ui
|
|
42
|
-
"@gooddata/sdk-ui": "10.24.0-alpha.
|
|
43
|
-
"@gooddata/sdk-ui-theme-provider": "10.24.0-alpha.
|
|
39
|
+
"@gooddata/sdk-backend-spi": "10.24.0-alpha.20",
|
|
40
|
+
"@gooddata/sdk-model": "10.24.0-alpha.20",
|
|
41
|
+
"@gooddata/sdk-ui": "10.24.0-alpha.20",
|
|
42
|
+
"@gooddata/sdk-ui-kit": "10.24.0-alpha.20",
|
|
43
|
+
"@gooddata/sdk-ui-theme-provider": "10.24.0-alpha.20"
|
|
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/reference-workspace": "10.24.0-alpha.
|
|
89
|
-
"@gooddata/sdk-backend-mockingbird": "10.24.0-alpha.
|
|
88
|
+
"@gooddata/reference-workspace": "10.24.0-alpha.20",
|
|
89
|
+
"@gooddata/sdk-backend-mockingbird": "10.24.0-alpha.20"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",
|
package/styles/scss/legend.scss
CHANGED
|
@@ -51,6 +51,17 @@ $legend-content-background: var(--gd-chart-backgroundColor, var(--gd-palette-com
|
|
|
51
51
|
text-align: left;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
.series-item {
|
|
55
|
+
background: none;
|
|
56
|
+
border: none;
|
|
57
|
+
padding: 0;
|
|
58
|
+
margin: 0;
|
|
59
|
+
text-align: left;
|
|
60
|
+
&:focus-visible {
|
|
61
|
+
outline: auto;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
54
65
|
.series-item,
|
|
55
66
|
.series-axis-indicator {
|
|
56
67
|
display: flex;
|
|
@@ -96,6 +107,10 @@ $legend-content-background: var(--gd-chart-backgroundColor, var(--gd-palette-com
|
|
|
96
107
|
padding: 0;
|
|
97
108
|
border-radius: 50%;
|
|
98
109
|
|
|
110
|
+
&:focus-visible {
|
|
111
|
+
outline: auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
99
114
|
&::before {
|
|
100
115
|
font-size: 11px;
|
|
101
116
|
}
|