@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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui/react"], function (require, exports, tslib_1, Styling_1, react_1) {
|
|
1
|
+
define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui/react", "../../utilities/index"], function (require, exports, tslib_1, Styling_1, react_1, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
5
5
|
var isIE11Var = (0, react_1.isIE11)();
|
|
6
6
|
var getStyles = function (props) {
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
8
|
-
var className = props.className, theme = props.theme, isRtl = props.isRtl, shouldHighlight = props.shouldHighlight, href = props.href,
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
8
|
+
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;
|
|
9
9
|
var fonts = theme.fonts;
|
|
10
10
|
return {
|
|
11
11
|
root: [
|
|
@@ -20,36 +20,8 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui
|
|
|
20
20
|
className,
|
|
21
21
|
],
|
|
22
22
|
chartWrapper: tslib_1.__assign({}, (enableReflow ? { overflow: 'auto' } : {})),
|
|
23
|
-
axisTitle:
|
|
24
|
-
|
|
25
|
-
(_a = {
|
|
26
|
-
textAlign: 'center',
|
|
27
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
28
|
-
fontStyle: 'normal',
|
|
29
|
-
lineHeight: Styling_1.FontSizes.medium,
|
|
30
|
-
color: react_1.NeutralColors.gray160,
|
|
31
|
-
fill: theme.semanticColors.bodyText
|
|
32
|
-
},
|
|
33
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
34
|
-
fill: 'CanvasText',
|
|
35
|
-
},
|
|
36
|
-
_a),
|
|
37
|
-
],
|
|
38
|
-
axisAnnotation: [
|
|
39
|
-
theme.fonts.small,
|
|
40
|
-
(_b = {
|
|
41
|
-
textAlign: 'center',
|
|
42
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
43
|
-
fontStyle: 'normal',
|
|
44
|
-
lineHeight: Styling_1.FontSizes.medium,
|
|
45
|
-
color: react_1.NeutralColors.gray160,
|
|
46
|
-
fill: theme.semanticColors.bodyText
|
|
47
|
-
},
|
|
48
|
-
_b[Styling_1.HighContrastSelector] = {
|
|
49
|
-
fill: 'CanvasText',
|
|
50
|
-
},
|
|
51
|
-
_b),
|
|
52
|
-
],
|
|
23
|
+
axisTitle: (0, index_1.getAxisTitleStyle)(theme, theme.fonts.xSmall),
|
|
24
|
+
axisAnnotation: (0, index_1.getAxisTitleStyle)(theme, theme.fonts.small),
|
|
53
25
|
xAxis: {
|
|
54
26
|
selectors: {
|
|
55
27
|
text: [
|
|
@@ -57,23 +29,23 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui
|
|
|
57
29
|
{
|
|
58
30
|
fill: theme.semanticColors.bodyText,
|
|
59
31
|
fontWeight: '600',
|
|
60
|
-
selectors: (
|
|
61
|
-
|
|
32
|
+
selectors: (_a = {},
|
|
33
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
62
34
|
fill: 'CanvasText',
|
|
63
35
|
},
|
|
64
|
-
|
|
36
|
+
_a),
|
|
65
37
|
},
|
|
66
38
|
],
|
|
67
39
|
line: {
|
|
68
40
|
opacity: 0.2,
|
|
69
41
|
stroke: theme.semanticColors.bodyText,
|
|
70
42
|
width: '1px',
|
|
71
|
-
selectors: (
|
|
72
|
-
|
|
43
|
+
selectors: (_b = {},
|
|
44
|
+
_b[Styling_1.HighContrastSelector] = {
|
|
73
45
|
opacity: 0.1,
|
|
74
46
|
stroke: 'CanvasText',
|
|
75
47
|
},
|
|
76
|
-
|
|
48
|
+
_b),
|
|
77
49
|
},
|
|
78
50
|
path: {
|
|
79
51
|
display: 'none',
|
|
@@ -87,11 +59,11 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui
|
|
|
87
59
|
{
|
|
88
60
|
fill: theme.semanticColors.bodyText,
|
|
89
61
|
fontWeight: '600',
|
|
90
|
-
selectors: (
|
|
91
|
-
|
|
62
|
+
selectors: (_c = {},
|
|
63
|
+
_c[Styling_1.HighContrastSelector] = {
|
|
92
64
|
fill: 'CanvasText',
|
|
93
65
|
},
|
|
94
|
-
|
|
66
|
+
_c),
|
|
95
67
|
},
|
|
96
68
|
],
|
|
97
69
|
path: {
|
|
@@ -100,12 +72,12 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui
|
|
|
100
72
|
line: {
|
|
101
73
|
opacity: 0.2,
|
|
102
74
|
stroke: theme.semanticColors.bodyText,
|
|
103
|
-
selectors: (
|
|
104
|
-
|
|
75
|
+
selectors: (_d = {},
|
|
76
|
+
_d[Styling_1.HighContrastSelector] = {
|
|
105
77
|
opacity: 0.1,
|
|
106
78
|
stroke: 'CanvasText',
|
|
107
79
|
},
|
|
108
|
-
|
|
80
|
+
_d),
|
|
109
81
|
},
|
|
110
82
|
g: [
|
|
111
83
|
isRtl &&
|
|
@@ -149,11 +121,11 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui
|
|
|
149
121
|
color: theme.semanticColors.bodyText,
|
|
150
122
|
},
|
|
151
123
|
!toDrawShape && {
|
|
152
|
-
selectors: (
|
|
153
|
-
|
|
124
|
+
selectors: (_e = {},
|
|
125
|
+
_e[Styling_1.HighContrastSelector] = {
|
|
154
126
|
forcedColorAdjust: 'none',
|
|
155
127
|
},
|
|
156
|
-
|
|
128
|
+
_e),
|
|
157
129
|
borderLeft: "4px solid ".concat(lineColor),
|
|
158
130
|
paddingLeft: '8px',
|
|
159
131
|
},
|
|
@@ -164,40 +136,40 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui
|
|
|
164
136
|
shapeStyles: {
|
|
165
137
|
marginRight: '8px',
|
|
166
138
|
},
|
|
167
|
-
calloutlegendText: tslib_1.__assign(tslib_1.__assign({}, fonts.small), { lineHeight: '16px', selectors: (
|
|
168
|
-
|
|
139
|
+
calloutlegendText: tslib_1.__assign(tslib_1.__assign({}, fonts.small), { lineHeight: '16px', selectors: (_f = {},
|
|
140
|
+
_f[Styling_1.HighContrastSelector] = {
|
|
169
141
|
color: 'CanvasText',
|
|
170
142
|
},
|
|
171
|
-
|
|
143
|
+
_f), color: theme.semanticColors.bodySubtext }),
|
|
172
144
|
calloutContentY: [
|
|
173
|
-
tslib_1.__assign(tslib_1.__assign({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (
|
|
174
|
-
|
|
145
|
+
tslib_1.__assign(tslib_1.__assign({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (_g = {},
|
|
146
|
+
_g[Styling_1.HighContrastSelector] = {
|
|
175
147
|
color: 'CanvasText',
|
|
176
148
|
},
|
|
177
|
-
|
|
149
|
+
_g) }),
|
|
178
150
|
],
|
|
179
151
|
descriptionMessage: [
|
|
180
152
|
theme.fonts.small,
|
|
181
153
|
{
|
|
182
|
-
selectors: (
|
|
183
|
-
|
|
154
|
+
selectors: (_h = {},
|
|
155
|
+
_h[Styling_1.HighContrastSelector] = {
|
|
184
156
|
color: 'CanvasText',
|
|
185
157
|
},
|
|
186
|
-
|
|
158
|
+
_h),
|
|
187
159
|
color: theme.semanticColors.bodyText,
|
|
188
160
|
marginTop: '10px',
|
|
189
161
|
paddingTop: '10px',
|
|
190
162
|
borderTop: "1px solid ".concat(theme.semanticColors.menuDivider),
|
|
191
163
|
},
|
|
192
164
|
],
|
|
193
|
-
tooltip:
|
|
194
|
-
svgTooltip: (
|
|
165
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
166
|
+
svgTooltip: (_j = {
|
|
195
167
|
fill: theme.semanticColors.bodyBackground
|
|
196
168
|
},
|
|
197
|
-
|
|
169
|
+
_j[Styling_1.HighContrastSelector] = {
|
|
198
170
|
fill: 'Canvas',
|
|
199
171
|
},
|
|
200
|
-
|
|
172
|
+
_j),
|
|
201
173
|
};
|
|
202
174
|
};
|
|
203
175
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartesianChart.styles.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.styles.ts"],"names":[],"mappings":";;;;IAIA,IAAM,SAAS,GAAY,IAAA,cAAM,GAAE,CAAC;IAE7B,IAAM,SAAS,GAAG,UAAC,KAAgC;;QAEtD,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;QACF,IAAA,KAAK,GAAK,KAAM,MAAX,CAAY;QACzB,OAAO;YACL,IAAI,EAAE;gBACJ,KAAK,CAAC,KAAK,CAAC,MAAM;gBAClB;oBACE,OAAO,EAAE,MAAM;oBACf,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,MAAM;oBACd,aAAa,EAAE,QAAQ;oBACvB,QAAQ,EAAE,QAAQ;iBACnB;gBACD,SAAS;aACV;YACD,YAAY,uBACP,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC9C;YACD,SAAS,EAAE;gBACT,KAAK,CAAC,KAAK,CAAC,MAAM;;wBAEhB,SAAS,EAAE,QAAQ;wBACnB,UAAU,EAAE,qBAAW,CAAC,QAAQ;wBAChC,SAAS,EAAE,QAAQ;wBACnB,UAAU,EAAE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EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,EAC/C,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,GACtB;YACD,UAAU;oBACR,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc;;gBACzC,GAAC,8BAAoB,IAAG;oBACtB,IAAI,EAAE,QAAQ;iBACf;mBACF;SACF,CAAC;IACJ,CAAC,CAAC;IAvOW,QAAA,SAAS,aAuOpB","sourcesContent":["import { ICartesianChartStyleProps, ICartesianChartStyles } from './CartesianChart.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":";;;;IAKA,IAAM,SAAS,GAAY,IAAA,cAAM,GAAE,CAAC;IAE7B,IAAM,SAAS,GAAG,UAAC,KAAgC;;QAEtD,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;QACF,IAAA,KAAK,GAAK,KAAM,MAAX,CAAY;QACzB,OAAO;YACL,IAAI,EAAE;gBACJ,KAAK,CAAC,KAAK,CAAC,MAAM;gBAClB;oBACE,OAAO,EAAE,MAAM;oBACf,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,MAAM;oBACd,aAAa,EAAE,QAAQ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oBACD,UAAU,EAAE,oBAAa,SAAS,CAAE;oBACpC,WAAW,EAAE,KAAK;iBACnB;gBACD,WAAW,IAAI;oBACb,OAAO,EAAE,MAAM;iBAChB;aACF;YACD,WAAW,EAAE;gBACX,WAAW,EAAE,KAAK;aACnB;YACD,iBAAiB,wCACZ,KAAK,CAAC,KAAK,KACd,UAAU,EAAE,MAAM,EAClB,SAAS;oBACP,GAAC,8BAAoB,IAAG;wBACtB,KAAK,EAAE,YAAY;qBACpB;yBAEH,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,GACxC;YACD,eAAe,EAAE;sDAEV,KAAK,CAAC,UAAU,KACnB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,SAAS;wBACP,GAAC,8BAAoB,IAAG;4BACtB,KAAK,EAAE,YAAY;yBACpB;;aAGN;YACD,kBAAkB,EAAE;gBAClB,KAAK,CAAC,KAAK,CAAC,KAAK;gBACjB;oBACE,SAAS;wBACP,GAAC,8BAAoB,IAAG;4BACtB,KAAK,EAAE,YAAY;yBACpB;2BACF;oBACD,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ;oBACpC,SAAS,EAAE,MAAM;oBACjB,UAAU,EAAE,MAAM;oBAClB,SAAS,EAAE,oBAAa,KAAK,CAAC,cAAc,CAAC,WAAW,CAAE;iBAC3D;aACF;YACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;YAC/B,UAAU;oBACR,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc;;gBACzC,GAAC,8BAAoB,IAAG;oBACtB,IAAI,EAAE,QAAQ;iBACf;mBACF;SACF,CAAC;IACJ,CAAC,CAAC;IAlMW,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,9 +1,8 @@
|
|
|
1
|
-
define(["require", "exports", "
|
|
1
|
+
define(["require", "exports", "../../utilities/index"], function (require, exports, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
5
5
|
var getStyles = function (props) {
|
|
6
|
-
var _a;
|
|
7
6
|
var className = props.className, width = props.width, height = props.height, theme = props.theme;
|
|
8
7
|
return {
|
|
9
8
|
root: [
|
|
@@ -30,21 +29,7 @@ define(["require", "exports", "@fluentui/react/lib/Styling", "@fluentui/react"],
|
|
|
30
29
|
paddingTop: '16px',
|
|
31
30
|
width: "".concat(width, "px"),
|
|
32
31
|
},
|
|
33
|
-
axisAnnotation:
|
|
34
|
-
theme.fonts.small,
|
|
35
|
-
(_a = {
|
|
36
|
-
textAlign: 'center',
|
|
37
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
38
|
-
fontStyle: 'normal',
|
|
39
|
-
lineHeight: Styling_1.FontSizes.medium,
|
|
40
|
-
color: react_1.NeutralColors.gray160,
|
|
41
|
-
fill: theme.semanticColors.bodyText
|
|
42
|
-
},
|
|
43
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
44
|
-
fill: 'CanvasText',
|
|
45
|
-
},
|
|
46
|
-
_a),
|
|
47
|
-
],
|
|
32
|
+
axisAnnotation: (0, index_1.getAxisTitleStyle)(theme, theme.fonts.small),
|
|
48
33
|
};
|
|
49
34
|
};
|
|
50
35
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DonutChart.styles.js","sourceRoot":"../src/","sources":["components/DonutChart/DonutChart.styles.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DonutChart.styles.js","sourceRoot":"../src/","sources":["components/DonutChart/DonutChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAA4B;QAC5C,IAAA,SAAS,GAA2B,KAAK,UAAhC,EAAE,KAAK,GAAoB,KAAK,MAAzB,EAAE,MAAM,GAAY,KAAK,OAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;QAClD,OAAO;YACL,IAAI,EAAE;gBACJ,KAAK,CAAC,KAAK,CAAC,MAAM;gBAClB,eAAe;gBACf;oBACE,UAAU,EAAE,QAAQ;oBACpB,OAAO,EAAE,MAAM;oBACf,aAAa,EAAE,QAAQ;oBACvB,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,MAAM;iBACf;gBACD,SAAS;aACV;YACD,KAAK,EAAE;gBACL,KAAK,OAAA;gBACL,MAAM,QAAA;gBACN,SAAS,EAAE,aAAa;gBACxB,QAAQ,EAAE,SAAS;gBACnB,eAAe,EAAE,QAAQ;gBACzB,OAAO,EAAE,OAAO;aACjB;YACD,eAAe,EAAE;gBACf,UAAU,EAAE,MAAM;gBAClB,KAAK,EAAE,UAAG,KAAK,OAAI;aACpB;YACD,cAAc,EAAE,IAAA,yBAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;SAC5D,CAAC;IACJ,CAAC,CAAC;IA7BW,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,25 +1,15 @@
|
|
|
1
|
-
define(["require", "exports", "
|
|
1
|
+
define(["require", "exports", "../../utilities/index"], function (require, exports, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
5
5
|
var getStyles = function (props) {
|
|
6
|
-
var _a;
|
|
7
6
|
var theme = props.theme, href = props.href;
|
|
8
7
|
return {
|
|
9
8
|
opacityChangeOnHover: {
|
|
10
9
|
cursor: href ? 'pointer' : 'default',
|
|
11
10
|
},
|
|
12
|
-
tooltip:
|
|
13
|
-
barLabel:
|
|
14
|
-
fontSize: Styling_1.FontSizes.small,
|
|
15
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
16
|
-
fill: theme.palette.neutralPrimary,
|
|
17
|
-
selectors: (_a = {},
|
|
18
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
19
|
-
fill: 'CanvasText',
|
|
20
|
-
},
|
|
21
|
-
_a),
|
|
22
|
-
},
|
|
11
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
12
|
+
barLabel: (0, index_1.getBarLabelStyle)(theme),
|
|
23
13
|
};
|
|
24
14
|
};
|
|
25
15
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupedVerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAAyC
|
|
1
|
+
{"version":3,"file":"GroupedVerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAAyC;QACzD,IAAA,KAAK,GAAW,KAAK,MAAhB,EAAE,IAAI,GAAK,KAAK,KAAV,CAAW;QAC9B,OAAO;YACL,oBAAoB,EAAE;gBACpB,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;aACrC;YACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;YAC/B,QAAQ,EAAE,IAAA,wBAAgB,EAAC,KAAK,CAAC;SAClC,CAAC;IACJ,CAAC,CAAC;IATW,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,18 +1,11 @@
|
|
|
1
|
-
define(["require", "exports", "
|
|
1
|
+
define(["require", "exports", "../../utilities/index"], function (require, exports, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
5
5
|
var getStyles = function (props) {
|
|
6
|
-
var _a;
|
|
7
6
|
return {
|
|
8
|
-
tooltip:
|
|
9
|
-
markerLabel:
|
|
10
|
-
selectors: (_a = {},
|
|
11
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
12
|
-
fill: 'CanvasText',
|
|
13
|
-
},
|
|
14
|
-
_a),
|
|
15
|
-
},
|
|
7
|
+
tooltip: (0, index_1.getTooltipStyle)(props.theme),
|
|
8
|
+
markerLabel: (0, index_1.getMarkerLabelStyle)(props.theme),
|
|
16
9
|
};
|
|
17
10
|
};
|
|
18
11
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.styles.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAA2B
|
|
1
|
+
{"version":3,"file":"LineChart.styles.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAA2B;QACnD,OAAO;YACL,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC,KAAM,CAAC;YACtC,WAAW,EAAE,IAAA,2BAAmB,EAAC,KAAK,CAAC,KAAM,CAAC;SAC/C,CAAC;IACJ,CAAC,CAAC;IALW,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"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "@fluentui/react/lib/Styling"], function (require, exports, tslib_1, Styling_1) {
|
|
1
|
+
define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "../../utilities/index"], function (require, exports, tslib_1, Styling_1, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
@@ -36,7 +36,7 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling"], function
|
|
|
36
36
|
},
|
|
37
37
|
_b),
|
|
38
38
|
},
|
|
39
|
-
toolTip:
|
|
39
|
+
toolTip: (0, index_1.getTooltipStyle)(props.theme),
|
|
40
40
|
nodeTextContainer: {
|
|
41
41
|
selectors: {
|
|
42
42
|
text: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SankeyChart.styles.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.styles.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"SankeyChart.styles.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.styles.ts"],"names":[],"mappings":";;;;IAIO,IAAM,SAAS,GAAG,UAAC,KAA6B;;QAC7C,IAAA,SAAS,GAAqC,KAAK,UAA1C,EAAE,KAAK,GAA8B,KAAK,MAAnC,EAAE,SAAS,GAAmB,KAAK,UAAxB,EAAE,YAAY,GAAK,KAAK,aAAV,CAAW;QACpD,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;QAC1B,OAAO;YACL,IAAI,EAAE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eyChart.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,21 +1,11 @@
|
|
|
1
|
-
define(["require", "exports", "
|
|
1
|
+
define(["require", "exports", "../../utilities/index"], function (require, exports, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
5
5
|
var getStyles = function (props) {
|
|
6
|
-
var _a;
|
|
7
6
|
return {
|
|
8
|
-
tooltip:
|
|
9
|
-
markerLabel:
|
|
10
|
-
fontSize: Styling_1.FontSizes.medium,
|
|
11
|
-
fill: props.theme.semanticColors.bodyText,
|
|
12
|
-
textAnchor: 'middle',
|
|
13
|
-
selectors: (_a = {},
|
|
14
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
15
|
-
fill: 'CanvasText',
|
|
16
|
-
},
|
|
17
|
-
_a),
|
|
18
|
-
},
|
|
7
|
+
tooltip: (0, index_1.getTooltipStyle)(props.theme),
|
|
8
|
+
markerLabel: (0, index_1.getMarkerLabelStyle)(props.theme),
|
|
19
9
|
};
|
|
20
10
|
};
|
|
21
11
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScatterChart.styles.js","sourceRoot":"../src/","sources":["components/ScatterChart/ScatterChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAA8B
|
|
1
|
+
{"version":3,"file":"ScatterChart.styles.js","sourceRoot":"../src/","sources":["components/ScatterChart/ScatterChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAA8B;QACtD,OAAO;YACL,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC,KAAM,CAAC;YACtC,WAAW,EAAE,IAAA,2BAAmB,EAAC,KAAK,CAAC,KAAM,CAAC;SAC/C,CAAC;IACJ,CAAC,CAAC;IALW,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,9 +1,8 @@
|
|
|
1
|
-
define(["require", "exports", "
|
|
1
|
+
define(["require", "exports", "../../utilities/index"], function (require, exports, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
5
5
|
var getStyles = function (props) {
|
|
6
|
-
var _a;
|
|
7
6
|
var shouldHighlight = props.shouldHighlight, theme = props.theme;
|
|
8
7
|
return {
|
|
9
8
|
opacityChangeOnHover: {
|
|
@@ -20,17 +19,8 @@ define(["require", "exports", "tslib", "@fluentui/react/lib/Styling"], function
|
|
|
20
19
|
transform: 'scaleX(-1)',
|
|
21
20
|
},
|
|
22
21
|
],
|
|
23
|
-
tooltip:
|
|
24
|
-
barLabel:
|
|
25
|
-
fontSize: Styling_1.FontSizes.small,
|
|
26
|
-
fontWeight: Styling_1.FontWeights.semibold,
|
|
27
|
-
fill: theme.palette.neutralPrimary,
|
|
28
|
-
selectors: (_a = {},
|
|
29
|
-
_a[Styling_1.HighContrastSelector] = {
|
|
30
|
-
fill: 'CanvasText',
|
|
31
|
-
},
|
|
32
|
-
_a),
|
|
33
|
-
},
|
|
22
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
23
|
+
barLabel: (0, index_1.getBarLabelStyle)(theme),
|
|
34
24
|
};
|
|
35
25
|
};
|
|
36
26
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAAkC
|
|
1
|
+
{"version":3,"file":"VerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAAkC;QAClD,IAAA,eAAe,GAAY,KAAK,gBAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;QACzC,OAAO;YACL,oBAAoB,EAAE;gBACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;aACtC;YAED,UAAU,EAAE,EAAE;YAEd,UAAU,EAAE;gBACV;oBACE,SAAS,EAAE,YAAY;iBACxB;aACF;YACD,WAAW,EAAE;gBACX;oBACE,SAAS,EAAE,YAAY;iBACxB;aACF;YACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;YAC/B,QAAQ,EAAE,IAAA,wBAAgB,EAAC,KAAK,CAAC;SAClC,CAAC;IACJ,CAAC,CAAC;IAtBW,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,26 +1,16 @@
|
|
|
1
|
-
define(["require", "exports", "
|
|
1
|
+
define(["require", "exports", "../../utilities/index"], function (require, exports, index_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getStyles = void 0;
|
|
5
5
|
var getStyles = function (props) {
|
|
6
|
-
var _a;
|
|
7
6
|
var shouldHighlight = props.shouldHighlight, href = props.href, theme = props.theme;
|
|
8
7
|
return {
|
|
9
8
|
opacityChangeOnHover: {
|
|
10
9
|
opacity: shouldHighlight ? '' : '0.1',
|
|
11
10
|
cursor: href ? 'pointer' : 'default',
|
|
12
11
|
},
|
|
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
|
-
},
|
|
12
|
+
tooltip: (0, index_1.getTooltipStyle)(theme),
|
|
13
|
+
barLabel: (0, index_1.getBarLabelStyle)(theme),
|
|
24
14
|
};
|
|
25
15
|
};
|
|
26
16
|
exports.getStyles = getStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalStackedBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAAyC
|
|
1
|
+
{"version":3,"file":"VerticalStackedBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.styles.ts"],"names":[],"mappings":";;;;IAGO,IAAM,SAAS,GAAG,UAAC,KAAyC;QACzD,IAAA,eAAe,GAAkB,KAAK,gBAAvB,EAAE,IAAI,GAAY,KAAK,KAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;QAC/C,OAAO;YACL,oBAAoB,EAAE;gBACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;gBACrC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;aACrC;YACD,OAAO,EAAE,IAAA,uBAAe,EAAC,KAAK,CAAC;YAC/B,QAAQ,EAAE,IAAA,wBAAgB,EAAC,KAAK,CAAC;SAClC,CAAC;IACJ,CAAC,CAAC;IAVW,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,57 @@
|
|
|
1
|
+
define(["require", "exports", "tslib", "@fluentui/react/lib/Styling", "@fluentui/react"], function (require, exports, tslib_1, Styling_1, react_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getMarkerLabelStyle = exports.getBarLabelStyle = exports.getAxisTitleStyle = exports.getTooltipStyle = void 0;
|
|
5
|
+
var getTooltipStyle = function (theme) {
|
|
6
|
+
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 });
|
|
7
|
+
};
|
|
8
|
+
exports.getTooltipStyle = getTooltipStyle;
|
|
9
|
+
var getAxisTitleStyle = function (theme, font) {
|
|
10
|
+
var _a;
|
|
11
|
+
return [
|
|
12
|
+
font,
|
|
13
|
+
(_a = {
|
|
14
|
+
textAlign: 'center',
|
|
15
|
+
fontWeight: Styling_1.FontWeights.semibold,
|
|
16
|
+
fontStyle: 'normal',
|
|
17
|
+
lineHeight: Styling_1.FontSizes.medium,
|
|
18
|
+
color: react_1.NeutralColors.gray160,
|
|
19
|
+
fill: theme.semanticColors.bodyText
|
|
20
|
+
},
|
|
21
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
22
|
+
fill: 'CanvasText',
|
|
23
|
+
},
|
|
24
|
+
_a),
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
exports.getAxisTitleStyle = getAxisTitleStyle;
|
|
28
|
+
var getBarLabelStyle = function (theme) {
|
|
29
|
+
var _a;
|
|
30
|
+
return {
|
|
31
|
+
fontSize: Styling_1.FontSizes.small,
|
|
32
|
+
fontWeight: Styling_1.FontWeights.semibold,
|
|
33
|
+
fill: theme.palette.neutralPrimary,
|
|
34
|
+
selectors: (_a = {},
|
|
35
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
36
|
+
fill: 'CanvasText',
|
|
37
|
+
},
|
|
38
|
+
_a),
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
exports.getBarLabelStyle = getBarLabelStyle;
|
|
42
|
+
var getMarkerLabelStyle = function (theme) {
|
|
43
|
+
var _a;
|
|
44
|
+
return {
|
|
45
|
+
fontSize: Styling_1.FontSizes.medium,
|
|
46
|
+
fill: theme.semanticColors.bodyText,
|
|
47
|
+
textAnchor: 'middle',
|
|
48
|
+
selectors: (_a = {},
|
|
49
|
+
_a[Styling_1.HighContrastSelector] = {
|
|
50
|
+
fill: 'CanvasText',
|
|
51
|
+
},
|
|
52
|
+
_a),
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
exports.getMarkerLabelStyle = getMarkerLabelStyle;
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=Common.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Common.styles.js","sourceRoot":"../src/","sources":["utilities/Common.styles.ts"],"names":[],"mappings":";;;;IAKO,IAAM,eAAe,GAAG,UAAC,KAAa;QAC3C,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,E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cesContent":["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
|