@cloudscape-design/components 3.0.329 → 3.0.330
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/app-layout/runtime-api.d.ts.map +1 -1
- package/app-layout/runtime-api.js +5 -4
- package/app-layout/runtime-api.js.map +1 -1
- package/app-layout/visual-refresh/styles.css.js +69 -69
- package/app-layout/visual-refresh/styles.scoped.css +167 -167
- package/app-layout/visual-refresh/styles.selectors.js +69 -69
- package/area-chart/chart-container.d.ts.map +1 -1
- package/area-chart/chart-container.js +8 -15
- package/area-chart/chart-container.js.map +1 -1
- package/area-chart/internal.d.ts.map +1 -1
- package/area-chart/internal.js +2 -16
- package/area-chart/internal.js.map +1 -1
- package/area-chart/styles.css.js +6 -13
- package/area-chart/styles.scoped.css +10 -82
- package/area-chart/styles.selectors.js +6 -13
- package/expandable-section/styles.css.js +28 -31
- package/expandable-section/styles.scoped.css +85 -66
- package/expandable-section/styles.selectors.js +28 -31
- package/internal/components/cartesian-chart/chart-container.d.ts +11 -0
- package/internal/components/cartesian-chart/chart-container.d.ts.map +1 -0
- package/internal/components/cartesian-chart/chart-container.js +15 -0
- package/internal/components/cartesian-chart/chart-container.js.map +1 -0
- package/internal/components/cartesian-chart/styles.css.js +23 -21
- package/internal/components/cartesian-chart/styles.scoped.css +37 -25
- package/internal/components/cartesian-chart/styles.selectors.js +23 -21
- package/internal/components/chart-wrapper/index.d.ts +17 -0
- package/internal/components/chart-wrapper/index.d.ts.map +1 -0
- package/internal/components/chart-wrapper/index.js +26 -0
- package/internal/components/chart-wrapper/index.js.map +1 -0
- package/internal/components/chart-wrapper/styles.css.js +11 -0
- package/internal/components/chart-wrapper/styles.scoped.css +155 -0
- package/internal/components/chart-wrapper/styles.selectors.js +12 -0
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/drawers-controller.d.ts +2 -4
- package/internal/plugins/drawers-controller.d.ts.map +1 -1
- package/internal/plugins/drawers-controller.js.map +1 -1
- package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-container.js +12 -19
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/mixed-line-bar-chart/internal.d.ts.map +1 -1
- package/mixed-line-bar-chart/internal.js +10 -15
- package/mixed-line-bar-chart/internal.js.map +1 -1
- package/mixed-line-bar-chart/styles.css.js +11 -19
- package/mixed-line-bar-chart/styles.scoped.css +18 -94
- package/mixed-line-bar-chart/styles.selectors.js +11 -19
- package/package.json +1 -1
- package/pie-chart/index.d.ts.map +1 -1
- package/pie-chart/index.js +26 -14
- package/pie-chart/index.js.map +1 -1
- package/pie-chart/pie-chart.d.ts +5 -3
- package/pie-chart/pie-chart.d.ts.map +1 -1
- package/pie-chart/pie-chart.js +14 -40
- package/pie-chart/pie-chart.js.map +1 -1
- package/pie-chart/styles.css.js +23 -27
- package/pie-chart/styles.scoped.css +38 -94
- package/pie-chart/styles.selectors.js +23 -27
- package/table/body-cell/styles.css.js +28 -28
- package/table/body-cell/styles.scoped.css +75 -69
- package/table/body-cell/styles.selectors.js +28 -28
- package/test-utils/dom/mixed-line-bar-chart/index.js +2 -1
- package/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
- package/test-utils/dom/pie-chart/index.js +2 -1
- package/test-utils/dom/pie-chart/index.js.map +1 -1
- package/test-utils/selectors/mixed-line-bar-chart/index.js +2 -1
- package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
- package/test-utils/selectors/pie-chart/index.js +2 -1
- package/test-utils/selectors/pie-chart/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/mixed-line-bar-chart/chart-filters.d.ts +0 -13
- package/mixed-line-bar-chart/chart-filters.d.ts.map +0 -1
- package/mixed-line-bar-chart/chart-filters.js +0 -22
- package/mixed-line-bar-chart/chart-filters.js.map +0 -1
|
@@ -6,101 +6,101 @@
|
|
|
6
6
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
7
|
SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
9
|
-
.
|
|
10
|
-
.awsui_vertical-
|
|
9
|
+
.awsui_axis_f0fot_pe91i_9:not(#\9),
|
|
10
|
+
.awsui_vertical-marker_f0fot_pe91i_10:not(#\9) {
|
|
11
11
|
stroke: var(--color-charts-line-axis-j3qg2k, #d1d5db);
|
|
12
12
|
stroke-width: 1px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.awsui_axis--
|
|
15
|
+
.awsui_axis--emphasized_f0fot_pe91i_15:not(#\9) {
|
|
16
16
|
stroke-width: 2px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.awsui_axis-
|
|
19
|
+
.awsui_axis-label_f0fot_pe91i_19:not(#\9) {
|
|
20
20
|
font-weight: bold;
|
|
21
21
|
fill: var(--color-text-body-default-su7kuo, #000716);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.awsui_axis-label--
|
|
25
|
-
.awsui_axis-label--
|
|
24
|
+
.awsui_axis-label--x_f0fot_pe91i_24:not(#\9),
|
|
25
|
+
.awsui_axis-label--y_f0fot_pe91i_25:not(#\9) {
|
|
26
26
|
/* used in test-utils */
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
29
|
+
.awsui_grid_f0fot_pe91i_29:not(#\9) {
|
|
30
30
|
stroke: var(--color-charts-line-grid-mz4lye, #d1d5db);
|
|
31
31
|
stroke-width: 1px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
.awsui_ticks__line_f0fot_pe91i_34:not(#\9) {
|
|
35
35
|
stroke: var(--color-charts-line-tick-arwxlx, #d1d5db);
|
|
36
36
|
stroke-width: 1px;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.
|
|
39
|
+
.awsui_ticks__text_f0fot_pe91i_39:not(#\9) {
|
|
40
40
|
font-size: var(--font-chart-detail-size-gtiv3j, 12px);
|
|
41
41
|
fill: var(--color-text-body-secondary-he5d85, #414d5c);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.awsui_ticks--
|
|
45
|
-
.awsui_ticks--
|
|
44
|
+
.awsui_ticks--y_f0fot_pe91i_44:not(#\9),
|
|
45
|
+
.awsui_ticks--x_f0fot_pe91i_45:not(#\9) {
|
|
46
46
|
/* used in test-utils */
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.awsui_ticks--
|
|
49
|
+
.awsui_ticks--bottom_f0fot_pe91i_49 > .awsui_ticks__text_f0fot_pe91i_39:not(#\9) {
|
|
50
50
|
text-anchor: middle;
|
|
51
51
|
dominant-baseline: hanging;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.awsui_labels-
|
|
54
|
+
.awsui_labels-left_f0fot_pe91i_54 > .awsui_ticks_f0fot_pe91i_34 > .awsui_ticks__text_f0fot_pe91i_39:not(#\9) {
|
|
55
55
|
text-anchor: end;
|
|
56
56
|
dominant-baseline: central;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.awsui_labels-
|
|
59
|
+
.awsui_labels-left_f0fot_pe91i_54:not(#\9) {
|
|
60
60
|
position: relative;
|
|
61
61
|
margin-right: 12px;
|
|
62
62
|
}
|
|
63
|
-
.awsui_labels-
|
|
63
|
+
.awsui_labels-left_f0fot_pe91i_54 > .awsui_axis-label_f0fot_pe91i_19:not(#\9) {
|
|
64
64
|
position: absolute;
|
|
65
65
|
visibility: visible;
|
|
66
66
|
white-space: nowrap;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.awsui_labels-
|
|
69
|
+
.awsui_labels-left__label_f0fot_pe91i_69:not(#\9) {
|
|
70
70
|
position: absolute;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.awsui_labels-left--
|
|
73
|
+
.awsui_labels-left--hidden_f0fot_pe91i_73:not(#\9) {
|
|
74
74
|
visibility: hidden;
|
|
75
75
|
}
|
|
76
|
-
.awsui_labels-left--
|
|
76
|
+
.awsui_labels-left--hidden_f0fot_pe91i_73 > .awsui_labels-left__label_f0fot_pe91i_69:not(#\9) {
|
|
77
77
|
position: relative;
|
|
78
78
|
white-space: nowrap;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.awsui_labels-
|
|
81
|
+
.awsui_labels-bottom_f0fot_pe91i_81:not(#\9) {
|
|
82
82
|
position: relative;
|
|
83
83
|
display: block;
|
|
84
84
|
width: 100%;
|
|
85
85
|
overflow: visible;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.awsui_vertical-
|
|
88
|
+
.awsui_vertical-marker_f0fot_pe91i_10:not(#\9) {
|
|
89
89
|
pointer-events: none;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.awsui_vertical-marker-
|
|
92
|
+
.awsui_vertical-marker-circle_f0fot_pe91i_92:not(#\9) {
|
|
93
93
|
fill: var(--color-background-container-content-og3y0v, #ffffff);
|
|
94
94
|
pointer-events: none;
|
|
95
95
|
stroke-width: var(--border-line-chart-width-qfyiov, 2px);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.awsui_vertical-marker-circle-
|
|
98
|
+
.awsui_vertical-marker-circle-active_f0fot_pe91i_98:not(#\9) {
|
|
99
99
|
cursor: pointer;
|
|
100
100
|
stroke-width: var(--border-line-chart-width-qfyiov, 2px);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.awsui_focus-
|
|
103
|
+
.awsui_focus-outline_f0fot_pe91i_103:not(#\9) {
|
|
104
104
|
outline: none;
|
|
105
105
|
pointer-events: none;
|
|
106
106
|
fill: none;
|
|
@@ -108,6 +108,18 @@
|
|
|
108
108
|
stroke-width: 2px;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
.
|
|
112
|
-
|
|
111
|
+
.awsui_chart-container_f0fot_pe91i_111:not(#\9) {
|
|
112
|
+
display: flex;
|
|
113
|
+
width: 100%;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.awsui_chart-container__vertical_f0fot_pe91i_117:not(#\9) {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.awsui_chart-container__horizontal_f0fot_pe91i_123:not(#\9) {
|
|
124
|
+
display: flex;
|
|
113
125
|
}
|
|
@@ -2,26 +2,28 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"axis": "
|
|
6
|
-
"vertical-marker": "awsui_vertical-
|
|
7
|
-
"axis--emphasized": "awsui_axis--
|
|
8
|
-
"axis-label": "awsui_axis-
|
|
9
|
-
"axis-label--x": "awsui_axis-label--
|
|
10
|
-
"axis-label--y": "awsui_axis-label--
|
|
11
|
-
"grid": "
|
|
12
|
-
"ticks__line": "
|
|
13
|
-
"ticks__text": "
|
|
14
|
-
"ticks--y": "awsui_ticks--
|
|
15
|
-
"ticks--x": "awsui_ticks--
|
|
16
|
-
"ticks--bottom": "awsui_ticks--
|
|
17
|
-
"labels-left": "awsui_labels-
|
|
18
|
-
"ticks": "
|
|
19
|
-
"labels-left__label": "awsui_labels-
|
|
20
|
-
"labels-left--hidden": "awsui_labels-left--
|
|
21
|
-
"labels-bottom": "awsui_labels-
|
|
22
|
-
"vertical-marker-circle": "awsui_vertical-marker-
|
|
23
|
-
"vertical-marker-circle-active": "awsui_vertical-marker-circle-
|
|
24
|
-
"focus-outline": "awsui_focus-
|
|
25
|
-
"
|
|
5
|
+
"axis": "awsui_axis_f0fot_pe91i_9",
|
|
6
|
+
"vertical-marker": "awsui_vertical-marker_f0fot_pe91i_10",
|
|
7
|
+
"axis--emphasized": "awsui_axis--emphasized_f0fot_pe91i_15",
|
|
8
|
+
"axis-label": "awsui_axis-label_f0fot_pe91i_19",
|
|
9
|
+
"axis-label--x": "awsui_axis-label--x_f0fot_pe91i_24",
|
|
10
|
+
"axis-label--y": "awsui_axis-label--y_f0fot_pe91i_25",
|
|
11
|
+
"grid": "awsui_grid_f0fot_pe91i_29",
|
|
12
|
+
"ticks__line": "awsui_ticks__line_f0fot_pe91i_34",
|
|
13
|
+
"ticks__text": "awsui_ticks__text_f0fot_pe91i_39",
|
|
14
|
+
"ticks--y": "awsui_ticks--y_f0fot_pe91i_44",
|
|
15
|
+
"ticks--x": "awsui_ticks--x_f0fot_pe91i_45",
|
|
16
|
+
"ticks--bottom": "awsui_ticks--bottom_f0fot_pe91i_49",
|
|
17
|
+
"labels-left": "awsui_labels-left_f0fot_pe91i_54",
|
|
18
|
+
"ticks": "awsui_ticks_f0fot_pe91i_34",
|
|
19
|
+
"labels-left__label": "awsui_labels-left__label_f0fot_pe91i_69",
|
|
20
|
+
"labels-left--hidden": "awsui_labels-left--hidden_f0fot_pe91i_73",
|
|
21
|
+
"labels-bottom": "awsui_labels-bottom_f0fot_pe91i_81",
|
|
22
|
+
"vertical-marker-circle": "awsui_vertical-marker-circle_f0fot_pe91i_92",
|
|
23
|
+
"vertical-marker-circle-active": "awsui_vertical-marker-circle-active_f0fot_pe91i_98",
|
|
24
|
+
"focus-outline": "awsui_focus-outline_f0fot_pe91i_103",
|
|
25
|
+
"chart-container": "awsui_chart-container_f0fot_pe91i_111",
|
|
26
|
+
"chart-container__vertical": "awsui_chart-container__vertical_f0fot_pe91i_117",
|
|
27
|
+
"chart-container__horizontal": "awsui_chart-container__horizontal_f0fot_pe91i_123"
|
|
26
28
|
};
|
|
27
29
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../../base-component/index.js';
|
|
3
|
+
interface ChartWrapperProps extends BaseComponentProps {
|
|
4
|
+
defaultFilter: React.ReactNode;
|
|
5
|
+
additionalFilters: React.ReactNode;
|
|
6
|
+
reserveFilterSpace: boolean;
|
|
7
|
+
reserveLegendSpace: boolean;
|
|
8
|
+
chartStatus: React.ReactNode;
|
|
9
|
+
chart: React.ReactNode;
|
|
10
|
+
legend: React.ReactNode;
|
|
11
|
+
onBlur?(event: React.FocusEvent): void;
|
|
12
|
+
contentClassName?: string;
|
|
13
|
+
contentMinHeight?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const ChartWrapper: React.ForwardRefExoticComponent<ChartWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/chart-wrapper/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAE,kBAAkB,EAAgB,MAAM,+BAA+B,CAAC;AAIjF,UAAU,iBAAkB,SAAQ,kBAAkB;IACpD,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,0FAgDxB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { __rest } from "tslib";
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import styles from './styles.css.js';
|
|
7
|
+
import { getBaseProps } from '../../base-component/index.js';
|
|
8
|
+
import InternalBox from '../../../box/internal.js';
|
|
9
|
+
import InternalSpaceBetween from '../../../space-between/internal.js';
|
|
10
|
+
export const ChartWrapper = forwardRef((_a, ref) => {
|
|
11
|
+
var { defaultFilter, additionalFilters, reserveFilterSpace, reserveLegendSpace, chartStatus, chart, legend, onBlur, contentClassName, contentMinHeight } = _a, props = __rest(_a, ["defaultFilter", "additionalFilters", "reserveFilterSpace", "reserveLegendSpace", "chartStatus", "chart", "legend", "onBlur", "contentClassName", "contentMinHeight"]);
|
|
12
|
+
const baseProps = getBaseProps(props);
|
|
13
|
+
return (React.createElement("div", Object.assign({ ref: ref }, baseProps, { className: clsx(baseProps.className, styles.wrapper), onBlur: onBlur }),
|
|
14
|
+
(defaultFilter || additionalFilters) && (React.createElement(InternalBox, { className: styles['filter-container'], margin: { bottom: 'l' } },
|
|
15
|
+
React.createElement(InternalSpaceBetween, { size: "l", direction: "horizontal", className: clsx({ [styles['has-default-filter']]: !!defaultFilter }) },
|
|
16
|
+
defaultFilter,
|
|
17
|
+
additionalFilters))),
|
|
18
|
+
React.createElement("div", { className: clsx(styles.content, contentClassName, {
|
|
19
|
+
[styles['content--reserve-filter']]: reserveFilterSpace,
|
|
20
|
+
[styles['content--reserve-legend']]: reserveLegendSpace,
|
|
21
|
+
}), style: { minHeight: contentMinHeight } },
|
|
22
|
+
chartStatus,
|
|
23
|
+
chart),
|
|
24
|
+
legend && React.createElement(InternalBox, { margin: { top: 'm' } }, legend)));
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/chart-wrapper/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAsB,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,oBAAoB,MAAM,oCAAoC,CAAC;AAetE,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CACpC,CACE,EAYoB,EACpB,GAA8B,EAC9B,EAAE;QAdF,EACE,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,KAAK,EACL,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,gBAAgB,OAEE,EADf,KAAK,cAXV,sKAYC,CADS;IAIV,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACtC,OAAO,CACL,2CAAK,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM;QAC/F,CAAC,aAAa,IAAI,iBAAiB,CAAC,IAAI,CACvC,oBAAC,WAAW,IAAC,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;YACzE,oBAAC,oBAAoB,IACnB,IAAI,EAAC,GAAG,EACR,SAAS,EAAC,YAAY,EACtB,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,CAAC;gBAEnE,aAAa;gBACb,iBAAiB,CACG,CACX,CACf;QAED,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE;gBAChD,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC,EAAE,kBAAkB;gBACvD,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC,EAAE,kBAAkB;aACxD,CAAC,EACF,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE;YAErC,WAAW;YACX,KAAK,CACF;QAEL,MAAM,IAAI,oBAAC,WAAW,IAAC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAG,MAAM,CAAe,CAChE,CACP,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { forwardRef } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\nimport { BaseComponentProps, getBaseProps } from '../../base-component/index.js';\nimport InternalBox from '../../../box/internal.js';\nimport InternalSpaceBetween from '../../../space-between/internal.js';\n\ninterface ChartWrapperProps extends BaseComponentProps {\n defaultFilter: React.ReactNode;\n additionalFilters: React.ReactNode;\n reserveFilterSpace: boolean;\n reserveLegendSpace: boolean;\n chartStatus: React.ReactNode;\n chart: React.ReactNode;\n legend: React.ReactNode;\n onBlur?(event: React.FocusEvent): void;\n contentClassName?: string;\n contentMinHeight?: number;\n}\n\nexport const ChartWrapper = forwardRef(\n (\n {\n defaultFilter,\n additionalFilters,\n reserveFilterSpace,\n reserveLegendSpace,\n chartStatus,\n chart,\n legend,\n onBlur,\n contentClassName,\n contentMinHeight,\n ...props\n }: ChartWrapperProps,\n ref: React.Ref<HTMLDivElement>\n ) => {\n const baseProps = getBaseProps(props);\n return (\n <div ref={ref} {...baseProps} className={clsx(baseProps.className, styles.wrapper)} onBlur={onBlur}>\n {(defaultFilter || additionalFilters) && (\n <InternalBox className={styles['filter-container']} margin={{ bottom: 'l' }}>\n <InternalSpaceBetween\n size=\"l\"\n direction=\"horizontal\"\n className={clsx({ [styles['has-default-filter']]: !!defaultFilter })}\n >\n {defaultFilter}\n {additionalFilters}\n </InternalSpaceBetween>\n </InternalBox>\n )}\n\n <div\n className={clsx(styles.content, contentClassName, {\n [styles['content--reserve-filter']]: reserveFilterSpace,\n [styles['content--reserve-legend']]: reserveLegendSpace,\n })}\n style={{ minHeight: contentMinHeight }}\n >\n {chartStatus}\n {chart}\n </div>\n\n {legend && <InternalBox margin={{ top: 'm' }}>{legend}</InternalBox>}\n </div>\n );\n }\n);\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
import './styles.scoped.css';
|
|
3
|
+
export default {
|
|
4
|
+
"wrapper": "awsui_wrapper_z5mul_1gdaf_93",
|
|
5
|
+
"has-default-filter": "awsui_has-default-filter_z5mul_1gdaf_108",
|
|
6
|
+
"content": "awsui_content_z5mul_1gdaf_112",
|
|
7
|
+
"content--reserve-filter": "awsui_content--reserve-filter_z5mul_1gdaf_119",
|
|
8
|
+
"content--reserve-legend": "awsui_content--reserve-legend_z5mul_1gdaf_123",
|
|
9
|
+
"filter-container": "awsui_filter-container_z5mul_1gdaf_127"
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
|
+
SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
|
+
SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
15
|
+
SPDX-License-Identifier: Apache-2.0
|
|
16
|
+
*/
|
|
17
|
+
/*
|
|
18
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
|
+
SPDX-License-Identifier: Apache-2.0
|
|
20
|
+
*/
|
|
21
|
+
/*
|
|
22
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
23
|
+
SPDX-License-Identifier: Apache-2.0
|
|
24
|
+
*/
|
|
25
|
+
/*
|
|
26
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
27
|
+
SPDX-License-Identifier: Apache-2.0
|
|
28
|
+
*/
|
|
29
|
+
/*
|
|
30
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
31
|
+
SPDX-License-Identifier: Apache-2.0
|
|
32
|
+
*/
|
|
33
|
+
/*
|
|
34
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
35
|
+
SPDX-License-Identifier: Apache-2.0
|
|
36
|
+
*/
|
|
37
|
+
/*
|
|
38
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
39
|
+
SPDX-License-Identifier: Apache-2.0
|
|
40
|
+
*/
|
|
41
|
+
/*
|
|
42
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
43
|
+
SPDX-License-Identifier: Apache-2.0
|
|
44
|
+
*/
|
|
45
|
+
/*
|
|
46
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
47
|
+
SPDX-License-Identifier: Apache-2.0
|
|
48
|
+
*/
|
|
49
|
+
/*
|
|
50
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51
|
+
SPDX-License-Identifier: Apache-2.0
|
|
52
|
+
*/
|
|
53
|
+
/*
|
|
54
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55
|
+
SPDX-License-Identifier: Apache-2.0
|
|
56
|
+
*/
|
|
57
|
+
/*
|
|
58
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
59
|
+
SPDX-License-Identifier: Apache-2.0
|
|
60
|
+
*/
|
|
61
|
+
/*
|
|
62
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
63
|
+
SPDX-License-Identifier: Apache-2.0
|
|
64
|
+
*/
|
|
65
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
66
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
67
|
+
/*
|
|
68
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
69
|
+
SPDX-License-Identifier: Apache-2.0
|
|
70
|
+
*/
|
|
71
|
+
/*
|
|
72
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
73
|
+
SPDX-License-Identifier: Apache-2.0
|
|
74
|
+
*/
|
|
75
|
+
/*
|
|
76
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
77
|
+
SPDX-License-Identifier: Apache-2.0
|
|
78
|
+
*/
|
|
79
|
+
/*
|
|
80
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
81
|
+
SPDX-License-Identifier: Apache-2.0
|
|
82
|
+
*/
|
|
83
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
84
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
85
|
+
/*
|
|
86
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
87
|
+
SPDX-License-Identifier: Apache-2.0
|
|
88
|
+
*/
|
|
89
|
+
/*
|
|
90
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
|
+
SPDX-License-Identifier: Apache-2.0
|
|
92
|
+
*/
|
|
93
|
+
.awsui_wrapper_z5mul_1gdaf_93:not(#\9) {
|
|
94
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
95
|
+
border-collapse: separate;
|
|
96
|
+
border-spacing: 0;
|
|
97
|
+
caption-side: top;
|
|
98
|
+
cursor: auto;
|
|
99
|
+
direction: ltr;
|
|
100
|
+
empty-cells: show;
|
|
101
|
+
font-family: serif;
|
|
102
|
+
font-size: medium;
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-variant: normal;
|
|
105
|
+
font-weight: normal;
|
|
106
|
+
font-stretch: normal;
|
|
107
|
+
line-height: normal;
|
|
108
|
+
-webkit-hyphens: none;
|
|
109
|
+
hyphens: none;
|
|
110
|
+
letter-spacing: normal;
|
|
111
|
+
list-style: disc outside none;
|
|
112
|
+
tab-size: 8;
|
|
113
|
+
text-align: left;
|
|
114
|
+
text-align-last: auto;
|
|
115
|
+
text-indent: 0;
|
|
116
|
+
text-shadow: none;
|
|
117
|
+
text-transform: none;
|
|
118
|
+
visibility: visible;
|
|
119
|
+
white-space: normal;
|
|
120
|
+
widows: 2;
|
|
121
|
+
word-spacing: normal;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
font-size: var(--font-body-m-size-7dign1, 14px);
|
|
124
|
+
line-height: var(--font-body-m-line-height-rfgrp9, 22px);
|
|
125
|
+
color: var(--color-text-body-default-su7kuo, #000716);
|
|
126
|
+
font-weight: 400;
|
|
127
|
+
font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
128
|
+
-webkit-font-smoothing: auto;
|
|
129
|
+
-moz-osx-font-smoothing: auto;
|
|
130
|
+
position: relative;
|
|
131
|
+
display: block;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.awsui_has-default-filter_z5mul_1gdaf_108 > :not(#\9):first-child {
|
|
135
|
+
flex: 280px 0 1;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.awsui_content_z5mul_1gdaf_112:not(#\9) {
|
|
139
|
+
display: flex;
|
|
140
|
+
position: relative;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
align-items: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.awsui_content--reserve-filter_z5mul_1gdaf_119:not(#\9) {
|
|
146
|
+
margin-top: calc(2 * var(--font-body-m-line-height-rfgrp9, 22px));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.awsui_content--reserve-legend_z5mul_1gdaf_123:not(#\9) {
|
|
150
|
+
margin-bottom: calc(2 * var(--font-body-m-line-height-rfgrp9, 22px));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.awsui_filter-container_z5mul_1gdaf_127:not(#\9) {
|
|
154
|
+
/* used in test-utils */
|
|
155
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"wrapper": "awsui_wrapper_z5mul_1gdaf_93",
|
|
6
|
+
"has-default-filter": "awsui_has-default-filter_z5mul_1gdaf_108",
|
|
7
|
+
"content": "awsui_content_z5mul_1gdaf_112",
|
|
8
|
+
"content--reserve-filter": "awsui_content--reserve-filter_z5mul_1gdaf_119",
|
|
9
|
+
"content--reserve-legend": "awsui_content--reserve-legend_z5mul_1gdaf_123",
|
|
10
|
+
"filter-container": "awsui_filter-container_z5mul_1gdaf_127"
|
|
11
|
+
};
|
|
12
|
+
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { DrawerItem } from '../../app-layout/drawer/interfaces';
|
|
2
|
-
|
|
3
|
-
export type DrawerConfig = Omit<DrawerItem, 'content'> & {
|
|
2
|
+
export type DrawerConfig = Omit<DrawerItem, 'content' | 'trigger'> & {
|
|
4
3
|
orderPriority?: number;
|
|
5
4
|
trigger: {
|
|
6
|
-
|
|
7
|
-
iconSvg?: string;
|
|
5
|
+
iconSvg: string;
|
|
8
6
|
};
|
|
9
7
|
mountContent: (container: HTMLElement) => void;
|
|
10
8
|
unmountContent: (container: HTMLElement) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawers-controller.d.ts","sourceRoot":"lib/default/","sources":["internal/plugins/drawers-controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"drawers-controller.d.ts","sourceRoot":"lib/default/","sources":["internal/plugins/drawers-controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,SAAS,CAAC,GAAG;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,YAAY,EAAE,CAAC,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,cAAc,EAAE,CAAC,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC;CAClD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;AAEjF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,2BAA2B,CAA4C;IAC/E,OAAO,CAAC,aAAa,CAA8C;IAEnE,OAAO,CAAC,cAAc;IAStB,cAAc,WAAY,YAAY,UAGpC;IAEF,mBAAmB,aAAc,2BAA2B,gBAS1D;IAEF,sBAAsB,aAEpB;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawers-controller.js","sourceRoot":"lib/default/","sources":["internal/plugins/drawers-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drawers-controller.js","sourceRoot":"lib/default/","sources":["internal/plugins/drawers-controller.ts"],"names":[],"mappings":"AAcA,MAAM,OAAO,iBAAiB;IAA9B;QACU,YAAO,GAAwB,EAAE,CAAC;QAClC,gCAA2B,GAAuC,IAAI,CAAC;QACvE,kBAAa,GAAyC,IAAI,CAAC;QAWnE,mBAAc,GAAG,CAAC,MAAoB,EAAE,EAAE;YACxC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC3C,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC,CAAC;QAEF,wBAAmB,GAAG,CAAC,QAAqC,EAAE,EAAE;YAC9D,IAAI,IAAI,CAAC,2BAA2B,KAAK,IAAI,EAAE;gBAC7C,OAAO,CAAC,IAAI,CAAC,kEAAkE,CAAC,CAAC;aAClF;YACD,IAAI,CAAC,2BAA2B,GAAG,QAAQ,CAAC;YAC5C,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,2BAA2B,GAAG,IAAI,CAAC;YAC1C,CAAC,CAAC;QACJ,CAAC,CAAC;QAEF,2BAAsB,GAAG,GAAG,EAAE;YAC5B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC;IA5BS,cAAc;QACpB,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAClC;QACD,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;;YACnC,MAAA,IAAI,CAAC,2BAA2B,qDAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;IACL,CAAC;CAqBF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { DrawerItem } from '../../app-layout/drawer/interfaces';\n\nexport type DrawerConfig = Omit<DrawerItem, 'content' | 'trigger'> & {\n orderPriority?: number;\n trigger: {\n iconSvg: string;\n };\n mountContent: (container: HTMLElement) => void;\n unmountContent: (container: HTMLElement) => void;\n};\nexport type DrawersRegistrationListener = (drawers: Array<DrawerConfig>) => void;\n\nexport class DrawersController {\n private drawers: Array<DrawerConfig> = [];\n private drawersRegistrationListener: DrawersRegistrationListener | null = null;\n private updateTimeout: ReturnType<typeof setTimeout> | null = null;\n\n private scheduleUpdate() {\n if (this.updateTimeout) {\n clearTimeout(this.updateTimeout);\n }\n this.updateTimeout = setTimeout(() => {\n this.drawersRegistrationListener?.(this.drawers);\n });\n }\n\n registerDrawer = (config: DrawerConfig) => {\n this.drawers = this.drawers.concat(config);\n this.scheduleUpdate();\n };\n\n onDrawersRegistered = (listener: DrawersRegistrationListener) => {\n if (this.drawersRegistrationListener !== null) {\n console.warn('[AwsUi] [runtime plugins] multiple app layout instances detected');\n }\n this.drawersRegistrationListener = listener;\n this.scheduleUpdate();\n return () => {\n this.drawersRegistrationListener = null;\n };\n };\n\n clearRegisteredDrawers = () => {\n this.drawers = [];\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-container.d.ts","sourceRoot":"lib/default/","sources":["mixed-line-bar-chart/chart-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAgBlG,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,SAAS,EAAmB,MAAM,cAAc,CAAC;AAGvH,OAAyB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"chart-container.d.ts","sourceRoot":"lib/default/","sources":["mixed-line-bar-chart/chart-container.tsx"],"names":[],"mappings":"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"}
|
|
@@ -25,10 +25,10 @@ import BarGroups from './bar-groups';
|
|
|
25
25
|
import { useMouseHover } from './hooks/use-mouse-hover';
|
|
26
26
|
import { useNavigation } from './hooks/use-navigation';
|
|
27
27
|
import { usePopover } from './hooks/use-popover';
|
|
28
|
-
import styles from './styles.css.js';
|
|
29
28
|
import useContainerWidth from '../internal/utils/use-container-width';
|
|
30
29
|
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
|
|
31
30
|
import { nodeBelongs } from '../internal/utils/node-belongs';
|
|
31
|
+
import { CartesianChartContainer } from '../internal/components/cartesian-chart/chart-container';
|
|
32
32
|
const LEFT_LABELS_MARGIN = 16;
|
|
33
33
|
const BOTTOM_LABELS_OFFSET = 12;
|
|
34
34
|
export default function ChartContainer(_a) {
|
|
@@ -298,23 +298,16 @@ export default function ChartContainer(_a) {
|
|
|
298
298
|
// Live region is used when nothing is focused e.g. when hovering.
|
|
299
299
|
const activeLiveRegion = activeAriaLabel && !highlightedPoint && highlightedGroupIndex === null ? activeAriaLabel : '';
|
|
300
300
|
const isLineXKeyboardFocused = isPlotFocused && !highlightedPoint && verticalMarkerX;
|
|
301
|
-
return (React.createElement("
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
React.createElement(
|
|
305
|
-
React.createElement(
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
emphasizeBaselineAxis && !linesOnly && (React.createElement(EmphasizedBaseline, { axis: x, scale: yScale, width: plotWidth, height: plotHeight })),
|
|
313
|
-
React.createElement(VerticalMarker, { key: verticalLineX || '', height: plotHeight, showPoints: highlightedPoint === null, showLine: !isGroupNavigation, points: verticalMarkers, ref: verticalMarkerRef }),
|
|
314
|
-
highlightedPoint && (React.createElement(HighlightedPoint, { ref: highlightedPointRef, point: point, role: "button", ariaLabel: activeAriaLabel, ariaHasPopup: true, ariaExpanded: isPopoverPinned })),
|
|
315
|
-
isGroupNavigation && xScale.isCategorical() && (React.createElement(BarGroups, { ariaLabel: activeAriaLabel, isRefresh: isRefresh, isPopoverPinned: isPopoverPinned, barGroups: barGroups, highlightedGroupIndex: highlightedGroupIndex, highlightedGroupRef: highlightedGroupRef })),
|
|
316
|
-
React.createElement(BottomLabels, { axis: x, ticks: xy.ticks[x], scale: xy.scale[x], tickFormatter: xy.tickFormatter[x], title: xy.title[x], ariaRoleDescription: xy.ariaRoleDescription[x], height: plotHeight, width: plotWidth, offsetLeft: leftLabelsWidth + BOTTOM_LABELS_OFFSET, offsetRight: BOTTOM_LABELS_OFFSET, autoHeight: setBottomLabelsHeight })),
|
|
317
|
-
React.createElement(AxisLabel, { axis: x, position: "bottom", title: xy.title[x] })),
|
|
318
|
-
React.createElement(ChartPopover, { ref: popoverRef, containerRef: containerRefObject, trackRef: highlightedElementRef, isOpen: isPopoverOpen, isPinned: isPopoverPinned, highlightDetails: highlightDetails, onDismiss: onPopoverDismiss, size: detailPopoverSize, footer: detailPopoverFooterContent, dismissAriaLabel: i18nStrings.detailPopoverDismissAriaLabel, onMouseLeave: onPopoverLeave }))));
|
|
301
|
+
return (React.createElement(CartesianChartContainer, { ref: containerRef, leftAxisLabel: React.createElement(AxisLabel, { axis: y, position: "left", title: xy.title[y] }), leftAxisLabelMeasure: React.createElement(LabelsMeasure, { ticks: xy.ticks[y], scale: xy.scale[y], tickFormatter: xy.tickFormatter[y], autoWidth: setLeftLabelsWidth }), bottomAxisLabel: React.createElement(AxisLabel, { axis: x, position: "bottom", title: xy.title[x] }), chartPlot: React.createElement(ChartPlot, { ref: plotRef, width: plotWidth, height: plotHeight, offsetBottom: bottomLabelsHeight, isClickable: isPopoverOpen && !isPopoverPinned, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledby, ariaDescription: ariaDescription, ariaRoleDescription: i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.chartAriaRoleDescription, ariaLiveRegion: activeLiveRegion, activeElementRef: highlightedElementRef, activeElementKey: isPlotFocused &&
|
|
302
|
+
((_c = highlightedGroupIndex === null || highlightedGroupIndex === void 0 ? void 0 : highlightedGroupIndex.toString()) !== null && _c !== void 0 ? _c : (isLineXKeyboardFocused ? `point-index-${handlers.xIndex}` : point === null || point === void 0 ? void 0 : point.key)), activeElementFocusOffset: isGroupNavigation ? 0 : isLineXKeyboardFocused ? { x: 8, y: 0 } : 3, onMouseMove: onSVGMouseMove, onMouseOut: onSVGMouseOut, onMouseDown: onSVGMouseDown, onFocus: onSVGFocus, onBlur: onSVGBlur, onKeyDown: onSVGKeyDown },
|
|
303
|
+
React.createElement(LeftLabels, { axis: y, ticks: xy.ticks[y], scale: xy.scale[y], tickFormatter: xy.tickFormatter[y], title: xy.title[y], ariaRoleDescription: xy.ariaRoleDescription[y], width: plotWidth, height: plotHeight }),
|
|
304
|
+
horizontalBars && React.createElement(VerticalGridLines, { scale: yScale, ticks: yTicks, height: plotHeight }),
|
|
305
|
+
emphasizeBaselineAxis && linesOnly && (React.createElement(EmphasizedBaseline, { axis: x, scale: yScale, width: plotWidth, height: plotHeight })),
|
|
306
|
+
React.createElement(DataSeries, { axis: x, plotWidth: plotWidth, plotHeight: plotHeight, highlightedSeries: highlightedSeries !== null && highlightedSeries !== void 0 ? highlightedSeries : null, highlightedGroupIndex: highlightedGroupIndex, stackedBars: stackedBars, isGroupNavigation: isGroupNavigation, visibleSeries: visibleSeries, xScale: xScale, yScale: yScale }),
|
|
307
|
+
emphasizeBaselineAxis && !linesOnly && (React.createElement(EmphasizedBaseline, { axis: x, scale: yScale, width: plotWidth, height: plotHeight })),
|
|
308
|
+
React.createElement(VerticalMarker, { key: verticalLineX || '', height: plotHeight, showPoints: highlightedPoint === null, showLine: !isGroupNavigation, points: verticalMarkers, ref: verticalMarkerRef }),
|
|
309
|
+
highlightedPoint && (React.createElement(HighlightedPoint, { ref: highlightedPointRef, point: point, role: "button", ariaLabel: activeAriaLabel, ariaHasPopup: true, ariaExpanded: isPopoverPinned })),
|
|
310
|
+
isGroupNavigation && xScale.isCategorical() && (React.createElement(BarGroups, { ariaLabel: activeAriaLabel, isRefresh: isRefresh, isPopoverPinned: isPopoverPinned, barGroups: barGroups, highlightedGroupIndex: highlightedGroupIndex, highlightedGroupRef: highlightedGroupRef })),
|
|
311
|
+
React.createElement(BottomLabels, { axis: x, ticks: xy.ticks[x], scale: xy.scale[x], tickFormatter: xy.tickFormatter[x], title: xy.title[x], ariaRoleDescription: xy.ariaRoleDescription[x], height: plotHeight, width: plotWidth, offsetLeft: leftLabelsWidth + BOTTOM_LABELS_OFFSET, offsetRight: BOTTOM_LABELS_OFFSET, autoHeight: setBottomLabelsHeight })), popover: React.createElement(ChartPopover, { ref: popoverRef, containerRef: containerRefObject, trackRef: highlightedElementRef, isOpen: isPopoverOpen, isPinned: isPopoverPinned, highlightDetails: highlightDetails, onDismiss: onPopoverDismiss, size: detailPopoverSize, footer: detailPopoverFooterContent, dismissAriaLabel: i18nStrings.detailPopoverDismissAriaLabel, onMouseLeave: onPopoverLeave }) }));
|
|
319
312
|
}
|
|
320
313
|
//# sourceMappingURL=chart-container.js.map
|