@fluentui/react-charting 5.24.5 → 5.24.6
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/CHANGELOG.json +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/AreaChart/AreaChart.styles.js +2 -2
- package/lib/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +16 -10
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js +35 -62
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js +2 -18
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +3 -14
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib/components/LineChart/LineChart.styles.js +3 -11
- package/lib/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.styles.js +2 -1
- package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.styles.js +3 -14
- package/lib/components/ScatterChart/ScatterChart.styles.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +3 -14
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +3 -14
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib/utilities/Common.styles.d.ts +6 -0
- package/lib/utilities/Common.styles.js +51 -0
- package/lib/utilities/Common.styles.js.map +1 -0
- package/lib/utilities/SVGTooltipText.d.ts +1 -1
- package/lib/utilities/SVGTooltipText.js.map +1 -1
- package/lib/utilities/index.d.ts +1 -0
- package/lib/utilities/index.js +1 -0
- package/lib/utilities/index.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.styles.js +2 -2
- package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +16 -10
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +33 -61
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.js +2 -17
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +3 -13
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.styles.js +3 -10
- package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js +2 -2
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.styles.js +3 -13
- package/lib-amd/components/ScatterChart/ScatterChart.styles.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +3 -13
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +3 -13
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-amd/utilities/Common.styles.d.ts +6 -0
- package/lib-amd/utilities/Common.styles.js +57 -0
- package/lib-amd/utilities/Common.styles.js.map +1 -0
- package/lib-amd/utilities/SVGTooltipText.d.ts +1 -1
- package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
- package/lib-amd/utilities/index.d.ts +1 -0
- package/lib-amd/utilities/index.js +2 -1
- package/lib-amd/utilities/index.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js +2 -2
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +16 -10
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +33 -60
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js +2 -18
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +3 -14
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.styles.js +3 -11
- package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +2 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js +3 -14
- package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +3 -14
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +3 -14
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/utilities/Common.styles.d.ts +6 -0
- package/lib-commonjs/utilities/Common.styles.js +58 -0
- package/lib-commonjs/utilities/Common.styles.js.map +1 -0
- package/lib-commonjs/utilities/SVGTooltipText.d.ts +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/index.d.ts +1 -0
- package/lib-commonjs/utilities/index.js +1 -0
- package/lib-commonjs/utilities/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,11 @@ exports.getStyles = void 0;
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
6
6
|
var react_1 = require("@fluentui/react");
|
|
7
|
+
var index_1 = require("../../utilities/index");
|
|
7
8
|
var isIE11Var = (0, react_1.isIE11)();
|
|
8
9
|
var getStyles = function (props) {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
10
|
-
var className = props.className, theme = props.theme, isRtl = props.isRtl, shouldHighlight = props.shouldHighlight, href = props.href,
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
11
|
+
var className = props.className, theme = props.theme, isRtl = props.isRtl, shouldHighlight = props.shouldHighlight, href = props.href, _k = props.lineColor, lineColor = _k === void 0 ? 'transparent' : _k, toDrawShape = props.toDrawShape, enableReflow = props.enableReflow;
|
|
11
12
|
var fonts = theme.fonts;
|
|
12
13
|
return {
|
|
13
14
|
root: [
|
|
@@ -22,36 +23,8 @@ var getStyles = function (props) {
|
|
|
22
23
|
className,
|
|
23
24
|
],
|
|
24
25
|
chartWrapper: tslib_1.__assign({}, (enableReflow ? { overflow: 'auto' } : {})),
|
|
25
|
-
axisTitle:
|
|
26
|
-
|
|
27
|
-
(_a = {
|
|
28
|
-
textAlign: 'center',
|
|
29
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
30
|
-
fontStyle: 'normal',
|
|
31
|
-
lineHeight: Styling_1.FontSizes.medium,
|
|
32
|
-
color: react_1.NeutralColors.gray160,
|
|
33
|
-
fill: theme.semanticColors.bodyText
|
|
34
|
-
},
|
|
35
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
36
|
-
fill: 'CanvasText',
|
|
37
|
-
},
|
|
38
|
-
_a),
|
|
39
|
-
],
|
|
40
|
-
axisAnnotation: [
|
|
41
|
-
theme.fonts.small,
|
|
42
|
-
(_b = {
|
|
43
|
-
textAlign: 'center',
|
|
44
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
45
|
-
fontStyle: 'normal',
|
|
46
|
-
lineHeight: Styling_1.FontSizes.medium,
|
|
47
|
-
color: react_1.NeutralColors.gray160,
|
|
48
|
-
fill: theme.semanticColors.bodyText
|
|
49
|
-
},
|
|
50
|
-
_b[Styling_1.HighContrastSelector] = {
|
|
51
|
-
fill: 'CanvasText',
|
|
52
|
-
},
|
|
53
|
-
_b),
|
|
54
|
-
],
|
|
26
|
+
axisTitle: (0, index_1.getAxisTitleStyle)(theme, theme.fonts.xSmall),
|
|
27
|
+
axisAnnotation: (0, index_1.getAxisTitleStyle)(theme, theme.fonts.small),
|
|
55
28
|
xAxis: {
|
|
56
29
|
selectors: {
|
|
57
30
|
text: [
|
|
@@ -59,23 +32,23 @@ var getStyles = function (props) {
|
|
|
59
32
|
{
|
|
60
33
|
fill: theme.semanticColors.bodyText,
|
|
61
34
|
fontWeight: '600',
|
|
62
|
-
selectors: (
|
|
63
|
-
|
|
35
|
+
selectors: (_a = {},
|
|
36
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
64
37
|
fill: 'CanvasText',
|
|
65
38
|
},
|
|
66
|
-
|
|
39
|
+
_a),
|
|
67
40
|
},
|
|
68
41
|
],
|
|
69
42
|
line: {
|
|
70
43
|
opacity: 0.2,
|
|
71
44
|
stroke: theme.semanticColors.bodyText,
|
|
72
45
|
width: '1px',
|
|
73
|
-
selectors: (
|
|
74
|
-
|
|
46
|
+
selectors: (_b = {},
|
|
47
|
+
_b[Styling_1.HighContrastSelector] = {
|
|
75
48
|
opacity: 0.1,
|
|
76
49
|
stroke: 'CanvasText',
|
|
77
50
|
},
|
|
78
|
-
|
|
51
|
+
_b),
|
|
79
52
|
},
|
|
80
53
|
path: {
|
|
81
54
|
display: 'none',
|
|
@@ -89,11 +62,11 @@ var getStyles = function (props) {
|
|
|
89
62
|
{
|
|
90
63
|
fill: theme.semanticColors.bodyText,
|
|
91
64
|
fontWeight: '600',
|
|
92
|
-
selectors: (
|
|
93
|
-
|
|
65
|
+
selectors: (_c = {},
|
|
66
|
+
_c[Styling_1.HighContrastSelector] = {
|
|
94
67
|
fill: 'CanvasText',
|
|
95
68
|
},
|
|
96
|
-
|
|
69
|
+
_c),
|
|
97
70
|
},
|
|
98
71
|
],
|
|
99
72
|
path: {
|
|
@@ -102,12 +75,12 @@ var getStyles = function (props) {
|
|
|
102
75
|
line: {
|
|
103
76
|
opacity: 0.2,
|
|
104
77
|
stroke: theme.semanticColors.bodyText,
|
|
105
|
-
selectors: (
|
|
106
|
-
|
|
78
|
+
selectors: (_d = {},
|
|
79
|
+
_d[Styling_1.HighContrastSelector] = {
|
|
107
80
|
opacity: 0.1,
|
|
108
81
|
stroke: 'CanvasText',
|
|
109
82
|
},
|
|
110
|
-
|
|
83
|
+
_d),
|
|
111
84
|
},
|
|
112
85
|
g: [
|
|
113
86
|
isRtl &&
|
|
@@ -151,11 +124,11 @@ var getStyles = function (props) {
|
|
|
151
124
|
color: theme.semanticColors.bodyText,
|
|
152
125
|
},
|
|
153
126
|
!toDrawShape && {
|
|
154
|
-
selectors: (
|
|
155
|
-
|
|
127
|
+
selectors: (_e = {},
|
|
128
|
+
_e[Styling_1.HighContrastSelector] = {
|
|
156
129
|
forcedColorAdjust: 'none',
|
|
157
130
|
},
|
|
158
|
-
|
|
131
|
+
_e),
|
|
159
132
|
borderLeft: "4px solid ".concat(lineColor),
|
|
160
133
|
paddingLeft: '8px',
|
|
161
134
|
},
|
|
@@ -166,40 +139,40 @@ var getStyles = function (props) {
|
|
|
166
139
|
shapeStyles: {
|
|
167
140
|
marginRight: '8px',
|
|
168
141
|
},
|
|
169
|
-
calloutlegendText: tslib_1.__assign(tslib_1.__assign({}, fonts.small), { lineHeight: '16px', selectors: (
|
|
170
|
-
|
|
142
|
+
calloutlegendText: tslib_1.__assign(tslib_1.__assign({}, fonts.small), { lineHeight: '16px', selectors: (_f = {},
|
|
143
|
+
_f[Styling_1.HighContrastSelector] = {
|
|
171
144
|
color: 'CanvasText',
|
|
172
145
|
},
|
|
173
|
-
|
|
146
|
+
_f), color: theme.semanticColors.bodySubtext }),
|
|
174
147
|
calloutContentY: [
|
|
175
|
-
tslib_1.__assign(tslib_1.__assign({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (
|
|
176
|
-
|
|
148
|
+
tslib_1.__assign(tslib_1.__assign({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (_g = {},
|
|
149
|
+
_g[Styling_1.HighContrastSelector] = {
|
|
177
150
|
color: 'CanvasText',
|
|
178
151
|
},
|
|
179
|
-
|
|
152
|
+
_g) }),
|
|
180
153
|
],
|
|
181
154
|
descriptionMessage: [
|
|
182
155
|
theme.fonts.small,
|
|
183
156
|
{
|
|
184
|
-
selectors: (
|
|
185
|
-
|
|
157
|
+
selectors: (_h = {},
|
|
158
|
+
_h[Styling_1.HighContrastSelector] = {
|
|
186
159
|
color: 'CanvasText',
|
|
187
160
|
},
|
|
188
|
-
|
|
161
|
+
_h),
|
|
189
162
|
color: theme.semanticColors.bodyText,
|
|
190
163
|
marginTop: '10px',
|
|
191
164
|
paddingTop: '10px',
|
|
192
165
|
borderTop: "1px solid ".concat(theme.semanticColors.menuDivider),
|
|
193
166
|
},
|
|
194
167
|
],
|
|
195
|
-
tooltip:
|
|
196
|
-
svgTooltip: (
|
|
168
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
169
|
+
svgTooltip: (_j = {
|
|
197
170
|
fill: theme.semanticColors.bodyBackground
|
|
198
171
|
},
|
|
199
|
-
|
|
172
|
+
_j[Styling_1.HighContrastSelector] = {
|
|
200
173
|
fill: 'Canvas',
|
|
201
174
|
},
|
|
202
|
-
|
|
175
|
+
_j),
|
|
203
176
|
};
|
|
204
177
|
};
|
|
205
178
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartesianChart.styles.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.styles.ts"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ianChart.types';\nimport { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { NeutralColors, isIE11 } from '@fluentui/react';\n\nconst isIE11Var: boolean = isIE11();\n\nexport const getStyles = (props: ICartesianChartStyleProps): ICartesianChartStyles => {\n const {\n className,\n theme,\n isRtl,\n shouldHighlight,\n href,\n lineColor = 'transparent',\n toDrawShape,\n enableReflow,\n } = props;\n const { fonts } = theme!;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n chartWrapper: {\n ...(enableReflow ? { overflow: 'auto' } : {}),\n },\n axisTitle: [\n theme.fonts.xSmall,\n {\n textAlign: 'center',\n fontWeight: FontWeights.semibold,\n fontStyle: 'normal',\n lineHeight: FontSizes.medium,\n color: NeutralColors.gray160,\n fill: theme.semanticColors.bodyText,\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n ],\n axisAnnotation: [\n theme.fonts.small,\n {\n textAlign: 'center',\n fontWeight: FontWeights.semibold,\n fontStyle: 'normal',\n lineHeight: FontSizes.medium,\n color: NeutralColors.gray160,\n fill: theme.semanticColors.bodyText,\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n ],\n xAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n width: '1px',\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n path: {\n display: 'none',\n },\n },\n },\n yAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n path: {\n display: 'none',\n },\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n g: [\n isRtl &&\n !isIE11Var && {\n textAnchor: 'end',\n },\n ],\n },\n },\n\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n },\n\n legendContainer: [\n {\n marginTop: '8px',\n marginLeft: '20px',\n },\n ],\n calloutContentRoot: [\n {\n display: 'grid',\n overflow: 'hidden',\n padding: '11px 16px 10px 16px',\n backgroundColor: theme.semanticColors.bodyBackground,\n backgroundBlendMode: 'normal, luminosity',\n },\n ],\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n calloutContentX: [\n {\n ...fonts.small,\n lineHeight: '16px',\n opacity: '0.85',\n color: theme.semanticColors.bodySubtext,\n },\n ],\n calloutBlockContainer: [\n theme.fonts.mediumPlus,\n {\n marginTop: '13px',\n color: theme.semanticColors.bodyText,\n },\n !toDrawShape && {\n selectors: {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none',\n },\n },\n borderLeft: `4px solid ${lineColor}`,\n paddingLeft: '8px',\n },\n toDrawShape && {\n display: 'flex',\n },\n ],\n shapeStyles: {\n marginRight: '8px',\n },\n calloutlegendText: {\n ...fonts.small,\n lineHeight: '16px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodySubtext,\n },\n calloutContentY: [\n {\n ...fonts.mediumPlus,\n fontWeight: 'bold',\n lineHeight: '22px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n },\n ],\n descriptionMessage: [\n theme.fonts.small,\n {\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodyText,\n marginTop: '10px',\n paddingTop: '10px',\n borderTop: `1px solid ${theme.semanticColors.menuDivider}`,\n },\n ],\n tooltip: {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n },\n svgTooltip: {\n fill: theme.semanticColors.bodyBackground,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"CartesianChart.styles.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.styles.ts"],"names":[],"mappings":";;;;AACA,uDAAmE;AACnE,yCAAyC;AACzC,+CAA2E;AAE3E,IAAM,SAAS,GAAY,IAAA,cAAM,GAAE,CAAC;AAE7B,IAAM,SAAS,GAAG,UAAC,KAAgC;;IAEtD,IAAA,SAAS,GAQP,KAAK,UARE,EACT,KAAK,GAOH,KAAK,MAPF,EACL,KAAK,GAMH,KAAK,MANF,EACL,eAAe,GAKb,KAAK,gBALQ,EACf,IAAI,GAIF,KAAK,KAJH,EACJ,KAGE,KAAK,UAHkB,EAAzB,SAAS,mBAAG,aAAa,KAAA,EACzB,WAAW,GAET,KAAK,YAFI,EACX,YAAY,GACV,KAAK,aADK,CACJ;IACF,IAAA,KAAK,GAAK,KAAM,MAAX,CAAY;IACzB,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB;gBACE,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,QAAQ;gBACvB,QAAQ,EAAE,QAAQ;aACnB;YACD,SAAS;SACV;QACD,YAAY,uBACP,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC9C;QACD,SAAS,EAAE,IAAA,yBAAiB,EAAC,KAAM,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;QACxD,cAAc,EAAE,IAAA,yBAA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H,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,GACxC;QACD,eAAe,EAAE;kDAEV,KAAK,CAAC,UAAU,KACnB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,SAAS;oBACP,GAAC,8BAAoB,IAAG;wBACtB,KAAK,EAAE,YAAY;qBACpB;;SAGN;QACD,kBAAkB,EAAE;YAClB,KAAK,CAAC,KAAK,CAAC,KAAK;YACjB;gBACE,SAAS;oBACP,GAAC,8BAAoB,IAAG;wBACtB,KAAK,EAAE,YAAY;qBACpB;uBACF;gBACD,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ;gBACpC,SAAS,EAAE,MAAM;gBACjB,UAAU,EAAE,MAAM;gBAClB,SAAS,EAAE,oBAAa,KAAK,CAAC,cAAc,CAAC,WAAW,CAAE;aAC3D;SACF;QACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;QAC/B,UAAU;gBACR,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc;;YACzC,GAAC,8BAAoB,IAAG;gBACtB,IAAI,EAAE,QAAQ;aACf;eACF;KACF,CAAC;AACJ,CAAC,CAAC;AAlMW,QAAA,SAAS,aAkMpB","sourcesContent":["import { ICartesianChartStyleProps, ICartesianChartStyles } from './CartesianChart.types';\nimport { HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { isIE11 } from '@fluentui/react';\nimport { getAxisTitleStyle, getTooltipStyle } from '../../utilities/index';\n\nconst isIE11Var: boolean = isIE11();\n\nexport const getStyles = (props: ICartesianChartStyleProps): ICartesianChartStyles => {\n const {\n className,\n theme,\n isRtl,\n shouldHighlight,\n href,\n lineColor = 'transparent',\n toDrawShape,\n enableReflow,\n } = props;\n const { fonts } = theme!;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n chartWrapper: {\n ...(enableReflow ? { overflow: 'auto' } : {}),\n },\n axisTitle: getAxisTitleStyle(theme!, theme.fonts.xSmall),\n axisAnnotation: getAxisTitleStyle(theme!, theme.fonts.small),\n xAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n width: '1px',\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n path: {\n display: 'none',\n },\n },\n },\n yAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n path: {\n display: 'none',\n },\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n g: [\n isRtl &&\n !isIE11Var && {\n textAnchor: 'end',\n },\n ],\n },\n },\n\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n },\n\n legendContainer: [\n {\n marginTop: '8px',\n marginLeft: '20px',\n },\n ],\n calloutContentRoot: [\n {\n display: 'grid',\n overflow: 'hidden',\n padding: '11px 16px 10px 16px',\n backgroundColor: theme.semanticColors.bodyBackground,\n backgroundBlendMode: 'normal, luminosity',\n },\n ],\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n calloutContentX: [\n {\n ...fonts.small,\n lineHeight: '16px',\n opacity: '0.85',\n color: theme.semanticColors.bodySubtext,\n },\n ],\n calloutBlockContainer: [\n theme.fonts.mediumPlus,\n {\n marginTop: '13px',\n color: theme.semanticColors.bodyText,\n },\n !toDrawShape && {\n selectors: {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none',\n },\n },\n borderLeft: `4px solid ${lineColor}`,\n paddingLeft: '8px',\n },\n toDrawShape && {\n display: 'flex',\n },\n ],\n shapeStyles: {\n marginRight: '8px',\n },\n calloutlegendText: {\n ...fonts.small,\n lineHeight: '16px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodySubtext,\n },\n calloutContentY: [\n {\n ...fonts.mediumPlus,\n fontWeight: 'bold',\n lineHeight: '22px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n },\n ],\n descriptionMessage: [\n theme.fonts.small,\n {\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodyText,\n marginTop: '10px',\n paddingTop: '10px',\n borderTop: `1px solid ${theme.semanticColors.menuDivider}`,\n },\n ],\n tooltip: getTooltipStyle(theme),\n svgTooltip: {\n fill: theme.semanticColors.bodyBackground,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n };\n};\n"]}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStyles = void 0;
|
|
4
|
-
var
|
|
5
|
-
var react_1 = require("@fluentui/react");
|
|
4
|
+
var index_1 = require("../../utilities/index");
|
|
6
5
|
var getStyles = function (props) {
|
|
7
|
-
var _a;
|
|
8
6
|
var className = props.className, width = props.width, height = props.height, theme = props.theme;
|
|
9
7
|
return {
|
|
10
8
|
root: [
|
|
@@ -31,21 +29,7 @@ var getStyles = function (props) {
|
|
|
31
29
|
paddingTop: '16px',
|
|
32
30
|
width: "".concat(width, "px"),
|
|
33
31
|
},
|
|
34
|
-
axisAnnotation:
|
|
35
|
-
theme.fonts.small,
|
|
36
|
-
(_a = {
|
|
37
|
-
textAlign: 'center',
|
|
38
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
39
|
-
fontStyle: 'normal',
|
|
40
|
-
lineHeight: Styling_1.FontSizes.medium,
|
|
41
|
-
color: react_1.NeutralColors.gray160,
|
|
42
|
-
fill: theme.semanticColors.bodyText
|
|
43
|
-
},
|
|
44
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
45
|
-
fill: 'CanvasText',
|
|
46
|
-
},
|
|
47
|
-
_a),
|
|
48
|
-
],
|
|
32
|
+
axisAnnotation: (0, index_1.getAxisTitleStyle)(theme, theme.fonts.small),
|
|
49
33
|
};
|
|
50
34
|
};
|
|
51
35
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DonutChart.styles.js","sourceRoot":"../src/","sources":["components/DonutChart/DonutChart.styles.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"DonutChart.styles.js","sourceRoot":"../src/","sources":["components/DonutChart/DonutChart.styles.ts"],"names":[],"mappings":";;;AACA,+CAA0D;AAEnD,IAAM,SAAS,GAAG,UAAC,KAA4B;IAC5C,IAAA,SAAS,GAA2B,KAAK,UAAhC,EAAE,KAAK,GAAoB,KAAK,MAAzB,EAAE,MAAM,GAAY,KAAK,OAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAClD,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB,eAAe;YACf;gBACE,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,MAAM;gBACf,aAAa,EAAE,QAAQ;gBACvB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;aACf;YACD,SAAS;SACV;QACD,KAAK,EAAE;YACL,KAAK,OAAA;YACL,MAAM,QAAA;YACN,SAAS,EAAE,aAAa;YACxB,QAAQ,EAAE,SAAS;YACnB,eAAe,EAAE,QAAQ;YACzB,OAAO,EAAE,OAAO;SACjB;QACD,eAAe,EAAE;YACf,UAAU,EAAE,MAAM;YAClB,KAAK,EAAE,UAAG,KAAK,OAAI;SACpB;QACD,cAAc,EAAE,IAAA,yBAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;KAC5D,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,SAAS,aA6BpB","sourcesContent":["import { IDonutChartStyleProps, IDonutChartStyles } from './DonutChart.types';\nimport { getAxisTitleStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IDonutChartStyleProps): IDonutChartStyles => {\n const { className, width, height, theme } = props;\n return {\n root: [\n theme.fonts.medium,\n 'ms-DonutChart',\n {\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n height: '100%',\n },\n className,\n ],\n chart: {\n width,\n height,\n boxSizing: 'content-box',\n overflow: 'visible',\n alignmentAdjust: 'center',\n display: 'block',\n },\n legendContainer: {\n paddingTop: '16px',\n width: `${width}px`,\n },\n axisAnnotation: getAxisTitleStyle(theme, theme.fonts.small),\n };\n};\n"]}
|
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStyles = void 0;
|
|
4
|
-
var
|
|
5
|
-
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
4
|
+
var index_1 = require("../../utilities/index");
|
|
6
5
|
var getStyles = function (props) {
|
|
7
|
-
var _a;
|
|
8
6
|
var theme = props.theme, href = props.href;
|
|
9
7
|
return {
|
|
10
8
|
opacityChangeOnHover: {
|
|
11
9
|
cursor: href ? 'pointer' : 'default',
|
|
12
10
|
},
|
|
13
|
-
tooltip:
|
|
14
|
-
barLabel:
|
|
15
|
-
fontSize: Styling_1.FontSizes.small,
|
|
16
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
17
|
-
fill: theme.palette.neutralPrimary,
|
|
18
|
-
selectors: (_a = {},
|
|
19
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
20
|
-
fill: 'CanvasText',
|
|
21
|
-
},
|
|
22
|
-
_a),
|
|
23
|
-
},
|
|
11
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
12
|
+
barLabel: (0, index_1.getBarLabelStyle)(theme),
|
|
24
13
|
};
|
|
25
14
|
};
|
|
26
15
|
exports.getStyles = getStyles;
|
package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupedVerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GroupedVerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.ts"],"names":[],"mappings":";;;AACA,+CAA0E;AAEnE,IAAM,SAAS,GAAG,UAAC,KAAyC;IACzD,IAAA,KAAK,GAAW,KAAK,MAAhB,EAAE,IAAI,GAAK,KAAK,KAAV,CAAW;IAC9B,OAAO;QACL,oBAAoB,EAAE;YACpB,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;SACrC;QACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;QAC/B,QAAQ,EAAE,IAAA,wBAAgB,EAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,SAAS,aASpB","sourcesContent":["import { IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles } from '../../index';\nimport { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IGroupedVerticalBarChartStyleProps): IGroupedVerticalBarChartStyles => {\n const { theme, href } = props;\n return {\n opacityChangeOnHover: {\n cursor: href ? 'pointer' : 'default',\n },\n tooltip: getTooltipStyle(theme),\n barLabel: getBarLabelStyle(theme),\n };\n};\n"]}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStyles = void 0;
|
|
4
|
-
var
|
|
5
|
-
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
4
|
+
var index_1 = require("../../utilities/index");
|
|
6
5
|
var getStyles = function (props) {
|
|
7
|
-
var _a;
|
|
8
6
|
return {
|
|
9
|
-
tooltip:
|
|
10
|
-
markerLabel:
|
|
11
|
-
selectors: (_a = {},
|
|
12
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
13
|
-
fill: 'CanvasText',
|
|
14
|
-
},
|
|
15
|
-
_a),
|
|
16
|
-
},
|
|
7
|
+
tooltip: (0, index_1.getTooltipStyle)(props.theme),
|
|
8
|
+
markerLabel: (0, index_1.getMarkerLabelStyle)(props.theme),
|
|
17
9
|
};
|
|
18
10
|
};
|
|
19
11
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.styles.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LineChart.styles.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.styles.ts"],"names":[],"mappings":";;;AACA,+CAA6E;AAEtE,IAAM,SAAS,GAAG,UAAC,KAA2B;IACnD,OAAO;QACL,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC,KAAM,CAAC;QACtC,WAAW,EAAE,IAAA,2BAAmB,EAAC,KAAK,CAAC,KAAM,CAAC;KAC/C,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,SAAS,aAKpB","sourcesContent":["import { ILineChartStyleProps, ILineChartStyles } from './LineChart.types';\nimport { getMarkerLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: ILineChartStyleProps): ILineChartStyles => {\n return {\n tooltip: getTooltipStyle(props.theme!),\n markerLabel: getMarkerLabelStyle(props.theme!),\n };\n};\n"]}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getStyles = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
6
|
+
var index_1 = require("../../utilities/index");
|
|
6
7
|
var getStyles = function (props) {
|
|
7
8
|
var _a, _b, _c;
|
|
8
9
|
var className = props.className, theme = props.theme, pathColor = props.pathColor, enableReflow = props.enableReflow;
|
|
@@ -37,7 +38,7 @@ var getStyles = function (props) {
|
|
|
37
38
|
},
|
|
38
39
|
_b),
|
|
39
40
|
},
|
|
40
|
-
toolTip:
|
|
41
|
+
toolTip: (0, index_1.getTooltipStyle)(props.theme),
|
|
41
42
|
nodeTextContainer: {
|
|
42
43
|
selectors: {
|
|
43
44
|
text: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SankeyChart.styles.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.styles.ts"],"names":[],"mappings":";;;;AACA,uDAAmE;
|
|
1
|
+
{"version":3,"file":"SankeyChart.styles.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.styles.ts"],"names":[],"mappings":";;;;AACA,uDAAmE;AACnE,+CAAwD;AAEjD,IAAM,SAAS,GAAG,UAAC,KAA6B;;IAC7C,IAAA,SAAS,GAAqC,KAAK,UAA1C,EAAE,KAAK,GAA8B,KAAK,MAAnC,EAAE,SAAS,GAAmB,KAAK,UAAxB,EAAE,YAAY,GAAK,KAAK,aAAV,CAAW;IACpD,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;IAC1B,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB;gBACE,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,QAAQ;gBACvB,QAAQ,EAAE,QAAQ;aACnB;YACD,SAAS;SACV;QACD,KAAK,EAAE;YACL,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK;YACnD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS;YAC7D,WAAW,EAAE,CAAC;YACd,SAAS;gBACP,GAAC,8BAAoB,IAAG;oBACtB,IAAI,EAAE,QAAQ;iBACf;mBACF;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,SAAS;gBACP,GAAC,8BAAoB,IAAG;oBACtB,IAAI,EAAE,QAAQ;iBACf;mBACF;SACF;QACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC,KAAM,CAAC;QACtC,iBAAiB,EAAE;YACjB,SAAS,EAAE;gBACT,IAAI,EAAE;oBACJ,SAAS;wBACP,GAAC,8BAAoB,IAAG;4BACtB,IAAI,EAAE,YAAY;yBACnB;2BACF;iBACF;aACF;YAED,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,KAAK;SACnB;QACD,kBAAkB,EAAE;YAClB,SAAS,EAAE,OAAO,CAAC,UAAU;SAC9B;QACD,YAAY,uBACP,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC9C;KACF,CAAC;AACJ,CAAC,CAAC;AAzDW,QAAA,SAAS,aAyDpB","sourcesContent":["import { ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: ISankeyChartStyleProps): ISankeyChartStyles => {\n const { className, theme, pathColor, enableReflow } = props;\n const { effects } = theme;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n links: {\n stroke: pathColor ? pathColor : theme.palette.black,\n fill: theme ? theme.semanticColors.bodyBackground : '#F5F5F5',\n strokeWidth: 3,\n selectors: {\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n },\n nodes: {\n fill: '#F5F5F5',\n selectors: {\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n },\n toolTip: getTooltipStyle(props.theme!),\n nodeTextContainer: {\n selectors: {\n text: {\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n },\n\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px',\n },\n calloutContentRoot: {\n boxShadow: effects.elevation4,\n },\n chartWrapper: {\n ...(enableReflow ? { overflow: 'auto' } : {}),\n },\n };\n};\n"]}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStyles = void 0;
|
|
4
|
-
var
|
|
5
|
-
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
4
|
+
var index_1 = require("../../utilities/index");
|
|
6
5
|
var getStyles = function (props) {
|
|
7
|
-
var _a;
|
|
8
6
|
return {
|
|
9
|
-
tooltip:
|
|
10
|
-
markerLabel:
|
|
11
|
-
fontSize: Styling_1.FontSizes.medium,
|
|
12
|
-
fill: props.theme.semanticColors.bodyText,
|
|
13
|
-
textAnchor: 'middle',
|
|
14
|
-
selectors: (_a = {},
|
|
15
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
16
|
-
fill: 'CanvasText',
|
|
17
|
-
},
|
|
18
|
-
_a),
|
|
19
|
-
},
|
|
7
|
+
tooltip: (0, index_1.getTooltipStyle)(props.theme),
|
|
8
|
+
markerLabel: (0, index_1.getMarkerLabelStyle)(props.theme),
|
|
20
9
|
};
|
|
21
10
|
};
|
|
22
11
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScatterChart.styles.js","sourceRoot":"../src/","sources":["components/ScatterChart/ScatterChart.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScatterChart.styles.js","sourceRoot":"../src/","sources":["components/ScatterChart/ScatterChart.styles.ts"],"names":[],"mappings":";;;AACA,+CAA6E;AAEtE,IAAM,SAAS,GAAG,UAAC,KAA8B;IACtD,OAAO;QACL,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC,KAAM,CAAC;QACtC,WAAW,EAAE,IAAA,2BAAmB,EAAC,KAAK,CAAC,KAAM,CAAC;KAC/C,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,SAAS,aAKpB","sourcesContent":["import { IScatterChartStyleProps, IScatterChartStyles } from './ScatterChart.types';\nimport { getMarkerLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IScatterChartStyleProps): IScatterChartStyles => {\n return {\n tooltip: getTooltipStyle(props.theme!),\n markerLabel: getMarkerLabelStyle(props.theme!),\n };\n};\n"]}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStyles = void 0;
|
|
4
|
-
var
|
|
5
|
-
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
4
|
+
var index_1 = require("../../utilities/index");
|
|
6
5
|
var getStyles = function (props) {
|
|
7
|
-
var _a;
|
|
8
6
|
var shouldHighlight = props.shouldHighlight, theme = props.theme;
|
|
9
7
|
return {
|
|
10
8
|
opacityChangeOnHover: {
|
|
@@ -21,17 +19,8 @@ var getStyles = function (props) {
|
|
|
21
19
|
transform: 'scaleX(-1)',
|
|
22
20
|
},
|
|
23
21
|
],
|
|
24
|
-
tooltip:
|
|
25
|
-
barLabel:
|
|
26
|
-
fontSize: Styling_1.FontSizes.small,
|
|
27
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
28
|
-
fill: theme.palette.neutralPrimary,
|
|
29
|
-
selectors: (_a = {},
|
|
30
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
31
|
-
fill: 'CanvasText',
|
|
32
|
-
},
|
|
33
|
-
_a),
|
|
34
|
-
},
|
|
22
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
23
|
+
barLabel: (0, index_1.getBarLabelStyle)(theme),
|
|
35
24
|
};
|
|
36
25
|
};
|
|
37
26
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.styles.ts"],"names":[],"mappings":";;;AACA,+CAA0E;AAEnE,IAAM,SAAS,GAAG,UAAC,KAAkC;IAClD,IAAA,eAAe,GAAY,KAAK,gBAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IACzC,OAAO;QACL,oBAAoB,EAAE;YACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;SACtC;QAED,UAAU,EAAE,EAAE;QAEd,UAAU,EAAE;YACV;gBACE,SAAS,EAAE,YAAY;aACxB;SACF;QACD,WAAW,EAAE;YACX;gBACE,SAAS,EAAE,YAAY;aACxB;SACF;QACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;QAC/B,QAAQ,EAAE,IAAA,wBAAgB,EAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,SAAS,aAsBpB","sourcesContent":["import { IVerticalBarChartStyleProps, IVerticalBarChartStyles } from '../../index';\nimport { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IVerticalBarChartStyleProps): IVerticalBarChartStyles => {\n const { shouldHighlight, theme } = props;\n return {\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n },\n\n xAxisTicks: [],\n\n yAxisTicks: [\n {\n transform: 'scaleX(-1)',\n },\n ],\n yAxisDomain: [\n {\n transform: 'scaleX(-1)',\n },\n ],\n tooltip: getTooltipStyle(theme),\n barLabel: getBarLabelStyle(theme),\n };\n};\n"]}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStyles = void 0;
|
|
4
|
-
var
|
|
5
|
-
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
4
|
+
var index_1 = require("../../utilities/index");
|
|
6
5
|
var getStyles = function (props) {
|
|
7
|
-
var _a;
|
|
8
6
|
var shouldHighlight = props.shouldHighlight, href = props.href, theme = props.theme;
|
|
9
7
|
return {
|
|
10
8
|
opacityChangeOnHover: {
|
|
11
9
|
opacity: shouldHighlight ? '' : '0.1',
|
|
12
10
|
cursor: href ? 'pointer' : 'default',
|
|
13
11
|
},
|
|
14
|
-
tooltip:
|
|
15
|
-
barLabel:
|
|
16
|
-
fontSize: Styling_1.FontSizes.small,
|
|
17
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
18
|
-
fill: theme.palette.neutralPrimary,
|
|
19
|
-
selectors: (_a = {},
|
|
20
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
21
|
-
fill: 'CanvasText',
|
|
22
|
-
},
|
|
23
|
-
_a),
|
|
24
|
-
},
|
|
12
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
13
|
+
barLabel: (0, index_1.getBarLabelStyle)(theme),
|
|
25
14
|
};
|
|
26
15
|
};
|
|
27
16
|
exports.getStyles = getStyles;
|
package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalStackedBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VerticalStackedBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.styles.ts"],"names":[],"mappings":";;;AACA,+CAA0E;AAEnE,IAAM,SAAS,GAAG,UAAC,KAAyC;IACzD,IAAA,eAAe,GAAkB,KAAK,gBAAvB,EAAE,IAAI,GAAY,KAAK,KAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAC/C,OAAO;QACL,oBAAoB,EAAE;YACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;YACrC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;SACrC;QACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;QAC/B,QAAQ,EAAE,IAAA,wBAAgB,EAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,SAAS,aAUpB","sourcesContent":["import { IVerticalStackedBarChartStyleProps, IVerticalStackedBarChartStyles } from './VerticalStackedBarChart.types';\nimport { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IVerticalStackedBarChartStyleProps): IVerticalStackedBarChartStyles => {\n const { shouldHighlight, href, theme } = props;\n return {\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n },\n tooltip: getTooltipStyle(theme),\n barLabel: getBarLabelStyle(theme),\n };\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import type { IRawStyle } from '@fluentui/merge-styles';
|
|
3
|
+
export declare const getTooltipStyle: (theme: ITheme) => IStyle;
|
|
4
|
+
export declare const getAxisTitleStyle: (theme: ITheme, font: IRawStyle) => IStyle;
|
|
5
|
+
export declare const getBarLabelStyle: (theme: ITheme) => IStyle;
|
|
6
|
+
export declare const getMarkerLabelStyle: (theme: ITheme) => IStyle;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMarkerLabelStyle = exports.getBarLabelStyle = exports.getAxisTitleStyle = exports.getTooltipStyle = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var Styling_1 = require("@fluentui/react/lib/Styling");
|
|
6
|
+
var react_1 = require("@fluentui/react");
|
|
7
|
+
var getTooltipStyle = function (theme) {
|
|
8
|
+
return tslib_1.__assign(tslib_1.__assign({}, theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none', color: theme.semanticColors.bodyText });
|
|
9
|
+
};
|
|
10
|
+
exports.getTooltipStyle = getTooltipStyle;
|
|
11
|
+
var getAxisTitleStyle = function (theme, font) {
|
|
12
|
+
var _a;
|
|
13
|
+
return [
|
|
14
|
+
font,
|
|
15
|
+
(_a = {
|
|
16
|
+
textAlign: 'center',
|
|
17
|
+
fontWeight: Styling_1.FontWeights.semibold,
|
|
18
|
+
fontStyle: 'normal',
|
|
19
|
+
lineHeight: Styling_1.FontSizes.medium,
|
|
20
|
+
color: react_1.NeutralColors.gray160,
|
|
21
|
+
fill: theme.semanticColors.bodyText
|
|
22
|
+
},
|
|
23
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
24
|
+
fill: 'CanvasText',
|
|
25
|
+
},
|
|
26
|
+
_a),
|
|
27
|
+
];
|
|
28
|
+
};
|
|
29
|
+
exports.getAxisTitleStyle = getAxisTitleStyle;
|
|
30
|
+
var getBarLabelStyle = function (theme) {
|
|
31
|
+
var _a;
|
|
32
|
+
return {
|
|
33
|
+
fontSize: Styling_1.FontSizes.small,
|
|
34
|
+
fontWeight: Styling_1.FontWeights.semibold,
|
|
35
|
+
fill: theme.palette.neutralPrimary,
|
|
36
|
+
selectors: (_a = {},
|
|
37
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
38
|
+
fill: 'CanvasText',
|
|
39
|
+
},
|
|
40
|
+
_a),
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.getBarLabelStyle = getBarLabelStyle;
|
|
44
|
+
var getMarkerLabelStyle = function (theme) {
|
|
45
|
+
var _a;
|
|
46
|
+
return {
|
|
47
|
+
fontSize: Styling_1.FontSizes.medium,
|
|
48
|
+
fill: theme.semanticColors.bodyText,
|
|
49
|
+
textAnchor: 'middle',
|
|
50
|
+
selectors: (_a = {},
|
|
51
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
52
|
+
fill: 'CanvasText',
|
|
53
|
+
},
|
|
54
|
+
_a),
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
exports.getMarkerLabelStyle = getMarkerLabelStyle;
|
|
58
|
+
//# sourceMappingURL=Common.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Common.styles.js","sourceRoot":"../src/","sources":["utilities/Common.styles.ts"],"names":[],"mappings":";;;;AAEA,uDAA2F;AAC3F,yCAAgD;AAEzC,IAAM,eAAe,GAAG,UAAC,KAAa;IAC3C,6CACK,KAAK,CAAC,KAAK,CAAC,MAAM,KACrB,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,EAC/C,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,IACpC;AACJ,CAAC,CAAC;AAdW,QAAA,eAAe,mBAc1B;AAEK,IAAM,iBAAiB,GAAG,UAAC,KAAa,EAAE,IAAe;;IAC9D,OAAO;QACL,IAAI;;gBAEF,SAAS,EAAE,QAAQ;gBACnB,UAAU,EAAE,qBAAW,CAAC,QAAQ;gBAChC,SAAS,EAAE,QAAQ;gBACnB,UAAU,EAAE,mBAAS,CAAC,MAAM;gBAC5B,KAAK,EAAE,qBAAa,CAAC,OAAO;gBAC5B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ;;YACnC,GAAC,8BAAoB,IAAG;gBACtB,IAAI,EAAE,YAAY;aACnB;;KAEJ,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,iBAAiB,qBAe5B;AAEK,IAAM,gBAAgB,GAAG,UAAC,KAAa;;IAC5C,OAAO;QACL,QAAQ,EAAE,mBAAS,CAAC,KAAK;QACzB,UAAU,EAAE,qBAAW,CAAC,QAAQ;QAChC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;QAClC,SAAS;YACP,GAAC,8BAAoB,IAAG;gBACtB,IAAI,EAAE,YAAY;aACnB;eACF;KACF,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,gBAAgB,oBAW3B;AAEK,IAAM,mBAAmB,GAAG,UAAC,KAAa;;IAC/C,OAAO;QACL,QAAQ,EAAE,mBAAS,CAAC,MAAM;QAC1B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ;QACnC,UAAU,EAAE,QAAQ;QACpB,SAAS;YACP,GAAC,8BAAoB,IAAG;gBACtB,IAAI,EAAE,YAAY;aACnB;eACF;KACF,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,mBAAmB,uBAW9B","sourcesContent":["import { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport type { IRawStyle } from '@fluentui/merge-styles';\nimport { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { NeutralColors } from '@fluentui/react';\n\nexport const getTooltipStyle = (theme: ITheme): IStyle => {\n return {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n color: theme.semanticColors.bodyText,\n };\n};\n\nexport const getAxisTitleStyle = (theme: ITheme, font: IRawStyle): IStyle => {\n return [\n font,\n {\n textAlign: 'center',\n fontWeight: FontWeights.semibold,\n fontStyle: 'normal',\n lineHeight: FontSizes.medium,\n color: NeutralColors.gray160,\n fill: theme.semanticColors.bodyText,\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n ];\n};\n\nexport const getBarLabelStyle = (theme: ITheme): IStyle => {\n return {\n fontSize: FontSizes.small,\n fontWeight: FontWeights.semibold,\n fill: theme.palette.neutralPrimary,\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n };\n};\n\nexport const getMarkerLabelStyle = (theme: ITheme): IStyle => {\n return {\n fontSize: FontSizes.medium,\n fill: theme.semanticColors.bodyText,\n textAnchor: 'middle',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n };\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ITooltipHost, ITooltipProps, TooltipDelay } from '@fluentui/react/lib/Tooltip';
|
|
3
3
|
import { ITheme } from '@fluentui/react';
|
|
4
|
-
interface ISVGTooltipTextProps {
|
|
4
|
+
export interface ISVGTooltipTextProps {
|
|
5
5
|
/**
|
|
6
6
|
* Number of milliseconds to delay closing the tooltip, so that the user has time to hover over
|
|
7
7
|
* the tooltip and interact with it. Hovering over the tooltip will count as hovering over the
|