@instructure/quiz-core 20.4.2-rc.0 → 20.4.2-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/components/resources/quiz/instructions/Instructions.js +17 -18
- package/es/common/components/resources/quiz/instructions/styles.js +21 -0
- package/es/common/components/resources/quiz/instructions/theme.js +4 -2
- package/es/common/components/resources/quiz/title/Title.js +15 -18
- package/es/common/components/resources/quiz/title/styles.js +19 -0
- package/es/common/components/resources/quiz/title/theme.js +4 -2
- package/es/common/components/resources/quizSessionResult/Header/index.js +22 -29
- package/es/common/components/resources/quizSessionResult/Header/styles.js +29 -0
- package/es/common/components/resources/quizSessionResult/Header/theme.js +4 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +43 -53
- package/es/common/components/resources/quizSessionResult/Info/styles.js +61 -0
- package/es/common/components/resources/quizSessionResult/Info/theme.js +4 -2
- package/es/reporting/components/Caption/index.js +13 -18
- package/es/reporting/components/Caption/styles.js +12 -0
- package/es/reporting/components/Caption/theme.js +4 -2
- package/es/reporting/components/charts/Legend/index.js +45 -33
- package/es/reporting/components/charts/Legend/styles.js +44 -0
- package/es/reporting/components/charts/Legend/theme.js +4 -2
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +61 -79
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +100 -0
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +34 -44
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +40 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +27 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +20 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +4 -2
- package/lib/common/components/resources/quiz/instructions/Instructions.js +15 -22
- package/lib/common/components/resources/quiz/instructions/styles.js +29 -0
- package/lib/common/components/resources/quiz/instructions/theme.js +6 -3
- package/lib/common/components/resources/quiz/title/Title.js +15 -23
- package/lib/common/components/resources/quiz/title/styles.js +27 -0
- package/lib/common/components/resources/quiz/title/theme.js +6 -3
- package/lib/common/components/resources/quizSessionResult/Header/index.js +21 -31
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +37 -0
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +6 -3
- package/lib/common/components/resources/quizSessionResult/Info/index.js +42 -55
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +69 -0
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +6 -3
- package/lib/reporting/components/Caption/index.js +12 -19
- package/lib/reporting/components/Caption/styles.js +20 -0
- package/lib/reporting/components/Caption/theme.js +6 -3
- package/lib/reporting/components/charts/Legend/index.js +44 -34
- package/lib/reporting/components/charts/Legend/styles.js +54 -0
- package/lib/reporting/components/charts/Legend/theme.js +6 -3
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +61 -80
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +110 -0
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +33 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +48 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +27 -26
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +28 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +6 -3
- package/package.json +9 -9
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -19,13 +17,15 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
19
17
|
|
|
20
18
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
21
19
|
|
|
22
|
-
var _react =
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
|
|
22
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
23
23
|
|
|
24
24
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
25
25
|
|
|
26
26
|
var _index = _interopRequireDefault(require("../../../../../common/components/shared/ExpandButton/index.js"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _emotion = require("@instructure/emotion");
|
|
29
29
|
|
|
30
30
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
31
31
|
|
|
@@ -49,20 +49,7 @@ var _popoverContent = require("./popoverContent.js");
|
|
|
49
49
|
|
|
50
50
|
var _dec, _class, _class2, _temp;
|
|
51
51
|
|
|
52
|
-
var
|
|
53
|
-
componentId: 'eHqQt',
|
|
54
|
-
template: function template(theme) {
|
|
55
|
-
return "\n\n.eHqQt_eDnN{display:flex;justify-content:space-between;padding-bottom:".concat(theme.headingPadding || 'inherit', "}\n\n.eHqQt_eKXQ{margin:").concat(theme.cardTopMargin || 'inherit', " auto ").concat(theme.cardBottomMargin || 'inherit', " auto;padding:").concat(theme.cardWrapperPadding || 'inherit', ";position:relative}\n\n.eHqQt_dYbQ{align-items:center;display:flex;height:502px;justify-content:center;padding:").concat(theme.cardWrapperPadding || 'inherit', "}\n\n.eHqQt_crZr{padding-top:").concat(theme.metricGroupPaddingTop || 'inherit', "}\n\n.eHqQt_bTHH{position:absolute;right:calc(").concat(theme.viewPaddingRight || 'inherit', " + ").concat(theme.viewPaddingRightAdjust || 'inherit', ");top:").concat(theme.viewPaddingTop || 'inherit', "}\n\n.eHqQt_dPzc,.eHqQt_cpZE{column-gap:").concat(theme.metricsColumnGap || 'inherit', ";display:flex;flex-wrap:wrap;justify-content:flex-start;row-gap:1.5rem}");
|
|
56
|
-
},
|
|
57
|
-
'heading': 'eHqQt_eDnN',
|
|
58
|
-
'cardWrapper': 'eHqQt_eKXQ',
|
|
59
|
-
'skeletonCardWrapper': 'eHqQt_dYbQ',
|
|
60
|
-
'container': 'eHqQt_crZr',
|
|
61
|
-
'expandButtonContainer': 'eHqQt_bTHH',
|
|
62
|
-
'metricGroup': 'eHqQt_dPzc',
|
|
63
|
-
'metricsWrapper': 'eHqQt_cpZE'
|
|
64
|
-
};
|
|
65
|
-
var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
52
|
+
var NewQuizAnalysis = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
66
53
|
(0, _inherits2.default)(NewQuizAnalysis, _Component);
|
|
67
54
|
|
|
68
55
|
var _super = (0, _createSuper2.default)(NewQuizAnalysis);
|
|
@@ -89,16 +76,16 @@ var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
89
76
|
|
|
90
77
|
_this.renderExpanded = function () {
|
|
91
78
|
var scores = _this.props.quizAnalysis.scores;
|
|
92
|
-
return
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
},
|
|
79
|
+
return (0, _emotion.jsx)("div", {
|
|
80
|
+
css: _this.props.styles.container
|
|
81
|
+
}, (0, _emotion.jsx)("div", {
|
|
82
|
+
css: _this.props.styles.metricGroup
|
|
83
|
+
}, (0, _emotion.jsx)(_index3.default, {
|
|
97
84
|
metricKey: "stddev",
|
|
98
85
|
value: scores === null || scores === void 0 ? void 0 : scores.stddev,
|
|
99
86
|
label: (0, _formatMessage.default)('Standard Deviation'),
|
|
100
87
|
popoverDescription: _popoverContent.standardDeviation
|
|
101
|
-
}),
|
|
88
|
+
}), (0, _emotion.jsx)(_index3.default, {
|
|
102
89
|
metricKey: "cronbachs_alpha",
|
|
103
90
|
value: scores === null || scores === void 0 ? void 0 : scores.cronbachs_alpha,
|
|
104
91
|
label: (0, _formatMessage.default)('Cronbach\'s Alpha'),
|
|
@@ -111,45 +98,45 @@ var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
111
98
|
var scores = quizAnalysis.scores,
|
|
112
99
|
attempts = quizAnalysis.attempts;
|
|
113
100
|
var expanded = _this.state.expanded;
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
},
|
|
101
|
+
return (0, _emotion.jsx)(_index2.default, {
|
|
102
|
+
css: _this.props.styles.cardWrapper
|
|
103
|
+
}, (0, _emotion.jsx)("div", {
|
|
104
|
+
css: _this.props.styles.metricGroup
|
|
105
|
+
}, (0, _emotion.jsx)("div", {
|
|
106
|
+
css: _this.props.styles.metricsWrapper
|
|
107
|
+
}, (0, _emotion.jsx)(_index4.default, {
|
|
121
108
|
metricKey: "highscore",
|
|
122
109
|
label: (0, _formatMessage.default)('High Score'),
|
|
123
110
|
value: scores === null || scores === void 0 ? void 0 : scores.max_percentage,
|
|
124
111
|
suffix: "%"
|
|
125
|
-
}),
|
|
112
|
+
}), (0, _emotion.jsx)(_index4.default, {
|
|
126
113
|
metricKey: "lowscore",
|
|
127
114
|
label: (0, _formatMessage.default)('Low Score'),
|
|
128
115
|
value: scores === null || scores === void 0 ? void 0 : scores.min_percentage,
|
|
129
116
|
suffix: "%"
|
|
130
|
-
}),
|
|
117
|
+
}), (0, _emotion.jsx)(_index4.default, {
|
|
131
118
|
metricKey: "meanscore",
|
|
132
119
|
label: (0, _formatMessage.default)('Mean Score'),
|
|
133
120
|
value: scores === null || scores === void 0 ? void 0 : scores.mean_percentage,
|
|
134
121
|
suffix: "%"
|
|
135
|
-
})),
|
|
136
|
-
|
|
137
|
-
},
|
|
122
|
+
})), (0, _emotion.jsx)("div", {
|
|
123
|
+
css: _this.props.styles.metricsWrapper
|
|
124
|
+
}, (0, _emotion.jsx)(_index4.default, {
|
|
138
125
|
metricKey: "median_percentage",
|
|
139
126
|
label: (0, _formatMessage.default)('Median Score'),
|
|
140
127
|
value: scores === null || scores === void 0 ? void 0 : scores.median_percentage,
|
|
141
128
|
suffix: "%"
|
|
142
|
-
}),
|
|
129
|
+
}), (0, _emotion.jsx)(_index4.default, {
|
|
143
130
|
metricKey: "mean_elapsed_sec",
|
|
144
131
|
label: (0, _formatMessage.default)('Mean Elapsed Time'),
|
|
145
132
|
value: (0, _formatTimespan.formatTimeToFullNumeric)(attempts === null || attempts === void 0 ? void 0 : attempts.mean_elapsed_sec)
|
|
146
|
-
})),
|
|
147
|
-
|
|
148
|
-
},
|
|
133
|
+
})), (0, _emotion.jsx)("div", {
|
|
134
|
+
css: _this.props.styles.expandButtonContainer
|
|
135
|
+
}, (0, _emotion.jsx)(_index.default, {
|
|
149
136
|
onClick: _this.handleToggle,
|
|
150
137
|
title: expanded ? (0, _formatMessage.default)('collapse quiz analysis') : (0, _formatMessage.default)('expand quiz analysis'),
|
|
151
138
|
isExpanded: expanded
|
|
152
|
-
}))), expanded && _this.renderExpanded(),
|
|
139
|
+
}))), expanded && _this.renderExpanded(), (0, _emotion.jsx)(_presenter.ScoreDistribution, {
|
|
153
140
|
decileDistribution: _this.getPreparedDecileDistribution()
|
|
154
141
|
}));
|
|
155
142
|
};
|
|
@@ -180,9 +167,9 @@ var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
180
167
|
var fetchInProgress = this.props.fetchInProgress;
|
|
181
168
|
|
|
182
169
|
if (fetchInProgress) {
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
},
|
|
170
|
+
return (0, _emotion.jsx)(_index2.default, {
|
|
171
|
+
css: this.props.styles.skeletonCardWrapper
|
|
172
|
+
}, (0, _emotion.jsx)(_uiSpinner.Spinner, {
|
|
186
173
|
renderTitle: (0, _formatMessage.default)('Loading quiz analysis data')
|
|
187
174
|
}));
|
|
188
175
|
} else {
|
|
@@ -194,7 +181,8 @@ var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
194
181
|
return NewQuizAnalysis;
|
|
195
182
|
}(_react.Component), _class2.propTypes = {
|
|
196
183
|
quizAnalysis: _propTypes.quizAnalysisPropType,
|
|
197
|
-
fetchInProgress: _propTypes2.default.bool
|
|
184
|
+
fetchInProgress: _propTypes2.default.bool,
|
|
185
|
+
styles: _propTypes2.default.object
|
|
198
186
|
}.isRequired, _class2.defaultProps = {
|
|
199
187
|
quizAnalysis: {}
|
|
200
188
|
}, _temp)) || _class);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var generateStyle = function generateStyle(componentTheme) {
|
|
9
|
+
var metric = {
|
|
10
|
+
flexWrap: 'wrap',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
justifyContent: 'flex-start',
|
|
13
|
+
columnGap: componentTheme.metricsColumnGap,
|
|
14
|
+
rowGap: '1.5rem'
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
heading: {
|
|
18
|
+
display: 'flex',
|
|
19
|
+
justifyContent: 'space-between',
|
|
20
|
+
paddingBottom: componentTheme.headingPadding
|
|
21
|
+
},
|
|
22
|
+
cardWrapper: {
|
|
23
|
+
padding: componentTheme.cardWrapperPadding,
|
|
24
|
+
position: 'relative',
|
|
25
|
+
margin: "".concat(componentTheme.cardTopMargin, " auto ").concat(componentTheme.cardBottomMargin, " auto")
|
|
26
|
+
},
|
|
27
|
+
skeletonCardWrapper: {
|
|
28
|
+
padding: componentTheme.cardWrapperPadding,
|
|
29
|
+
height: '502px',
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center'
|
|
33
|
+
},
|
|
34
|
+
container: {
|
|
35
|
+
paddingTop: componentTheme.metricGroupPaddingTop
|
|
36
|
+
},
|
|
37
|
+
expandButtonContainer: {
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
right: "calc(".concat(componentTheme.viewPaddingRight, " + ").concat(componentTheme.viewPaddingRightAdjust, ")"),
|
|
40
|
+
top: componentTheme.viewPaddingTop
|
|
41
|
+
},
|
|
42
|
+
metricsWrapper: metric,
|
|
43
|
+
metricGroup: metric
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var _default = generateStyle;
|
|
48
|
+
exports.default = _default;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var spacing = _ref.spacing;
|
|
10
10
|
return {
|
|
11
11
|
metricGroupPaddingTop: spacing.medium,
|
|
@@ -18,4 +18,7 @@ function generator(_ref) {
|
|
|
18
18
|
cardWrapperPadding: spacing.medium,
|
|
19
19
|
metricsColumnGap: '82px'
|
|
20
20
|
};
|
|
21
|
-
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var _default = generateComponentTheme;
|
|
24
|
+
exports.default = _default;
|
|
@@ -19,12 +19,16 @@ var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
19
19
|
|
|
20
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
21
|
|
|
22
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
23
|
+
|
|
22
24
|
var _index = _interopRequireDefault(require("../../../../charts/QuintileDistribution/index.js"));
|
|
23
25
|
|
|
24
|
-
var
|
|
26
|
+
var _emotion = require("@instructure/emotion");
|
|
25
27
|
|
|
26
28
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
27
29
|
|
|
30
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
31
|
+
|
|
28
32
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
29
33
|
|
|
30
34
|
var _uiText = require("@instructure/ui-text");
|
|
@@ -33,19 +37,11 @@ var _uiHeading = require("@instructure/ui-heading");
|
|
|
33
37
|
|
|
34
38
|
var _index2 = _interopRequireDefault(require("../../../../charts/Legend/index.js"));
|
|
35
39
|
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return "\n\n.eRgoL_YBfL{background-color:".concat(theme.legendRectFillColor || 'inherit', "}\n\n.eRgoL_eDZF{column-gap:10px;display:inline-flex;padding:").concat(theme.legendPadding || 'inherit', " 0}\n\n.eRgoL_dVXF{margin:").concat(theme.legendMargin || 'inherit', " 0}\n\n.eRgoL_dxZa,[dir=ltr] .eRgoL_dxZa,[dir=rtl] .eRgoL_dxZa{text-align:center}");
|
|
42
|
-
},
|
|
43
|
-
'legendRect': 'eRgoL_YBfL',
|
|
44
|
-
'legendContainer': 'eRgoL_eDZF',
|
|
45
|
-
'headingContainer': 'eRgoL_dVXF',
|
|
46
|
-
'chartLabel': 'eRgoL_dxZa'
|
|
47
|
-
};
|
|
48
|
-
var ScoreDistribution = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = /*#__PURE__*/function (_Component) {
|
|
40
|
+
var _match = require("sinon/lib/sinon/match");
|
|
41
|
+
|
|
42
|
+
var _dec, _class, _class2, _temp;
|
|
43
|
+
|
|
44
|
+
var ScoreDistribution = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
49
45
|
(0, _inherits2.default)(ScoreDistribution, _Component);
|
|
50
46
|
|
|
51
47
|
var _super = (0, _createSuper2.default)(ScoreDistribution);
|
|
@@ -87,28 +83,28 @@ var ScoreDistribution = (_dec = (0, _uiThemeable.themeable)(_theme.default, styl
|
|
|
87
83
|
key: "render",
|
|
88
84
|
value: function render() {
|
|
89
85
|
var decileDistribution = this.props.decileDistribution;
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
},
|
|
86
|
+
return (0, _emotion.jsx)(_react.default.Fragment, null, (0, _emotion.jsx)("div", {
|
|
87
|
+
css: this.props.styles.headingContainer
|
|
88
|
+
}, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
93
89
|
level: "h3",
|
|
94
90
|
themeOverride: {
|
|
95
91
|
h3FontWeight: 700
|
|
96
92
|
}
|
|
97
|
-
}, (0, _formatMessage.default)('Score Distribution'))),
|
|
93
|
+
}, (0, _formatMessage.default)('Score Distribution'))), (0, _emotion.jsx)(_index.default, {
|
|
98
94
|
animateDelay: 1000,
|
|
99
95
|
animateDuration: 1000,
|
|
100
96
|
visualDistribution: decileDistribution || [],
|
|
101
97
|
calculateLabelForColumn: decileDistribution.length > 10 ? this.calculateLabelForColumnsWithExtremeValues : this.calculateLabelForColumns
|
|
102
|
-
}),
|
|
98
|
+
}), (0, _emotion.jsx)("div", {
|
|
103
99
|
"aria-hidden": "true",
|
|
104
|
-
|
|
105
|
-
},
|
|
100
|
+
css: this.props.styles.chartLabel
|
|
101
|
+
}, (0, _emotion.jsx)(_uiText.Text, {
|
|
106
102
|
size: "small"
|
|
107
|
-
}, (0, _formatMessage.default)('Score'))),
|
|
108
|
-
|
|
109
|
-
},
|
|
103
|
+
}, (0, _formatMessage.default)('Score'))), (0, _emotion.jsx)("div", {
|
|
104
|
+
css: this.props.styles.legendContainer
|
|
105
|
+
}, (0, _emotion.jsx)(_index2.default, {
|
|
110
106
|
series: [{
|
|
111
|
-
|
|
107
|
+
customStyles: this.props.styles.legendRect,
|
|
112
108
|
label: (0, _formatMessage.default)('Number of Students')
|
|
113
109
|
}]
|
|
114
110
|
})));
|
|
@@ -116,5 +112,10 @@ var ScoreDistribution = (_dec = (0, _uiThemeable.themeable)(_theme.default, styl
|
|
|
116
112
|
}]);
|
|
117
113
|
ScoreDistribution.displayName = "ScoreDistribution";
|
|
118
114
|
return ScoreDistribution;
|
|
119
|
-
}(_react.Component),
|
|
115
|
+
}(_react.Component), _class2.propTypes = {
|
|
116
|
+
decileDistribution: _propTypes.default.arrayOf(_propTypes.default.number),
|
|
117
|
+
styles: _propTypes.default.object
|
|
118
|
+
}, _class2.defaultProps = {
|
|
119
|
+
decileDistribution: []
|
|
120
|
+
}, _temp)) || _class);
|
|
120
121
|
exports.ScoreDistribution = ScoreDistribution;
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var generateStyle = function generateStyle(componentTheme) {
|
|
9
|
+
return {
|
|
10
|
+
legendRect: {
|
|
11
|
+
backgroundColor: componentTheme.legendRectFillColor
|
|
12
|
+
},
|
|
13
|
+
legendContainer: {
|
|
14
|
+
display: 'inline-flex',
|
|
15
|
+
columnGap: '10px',
|
|
16
|
+
padding: "".concat(componentTheme.legendPadding, " 0")
|
|
17
|
+
},
|
|
18
|
+
headingContainer: {
|
|
19
|
+
margin: "".concat(componentTheme.legendMargin, " 0")
|
|
20
|
+
},
|
|
21
|
+
chartLabel: {
|
|
22
|
+
textAlign: 'center'
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var _default = generateStyle;
|
|
28
|
+
exports.default = _default;
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var colors = _ref.colors,
|
|
10
10
|
spacing = _ref.spacing,
|
|
11
11
|
typography = _ref.typography;
|
|
@@ -16,4 +16,7 @@ function generator(_ref) {
|
|
|
16
16
|
legendFontSize: typography.fontSizeXSmall,
|
|
17
17
|
legendMargin: spacing.medium
|
|
18
18
|
};
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var _default = generateComponentTheme;
|
|
22
|
+
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.4.2-rc.
|
|
3
|
+
"version": "20.4.2-rc.2+c00fb83ef",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@instructure/emotion": "^8.51.0",
|
|
45
45
|
"@instructure/grading-utils": "^1.0.0",
|
|
46
46
|
"@instructure/outcomes-ui": "^3.0.0",
|
|
47
|
-
"@instructure/quiz-common": "20.4.2-rc.
|
|
48
|
-
"@instructure/quiz-i18n": "20.4.2-rc.
|
|
49
|
-
"@instructure/quiz-interactions": "20.4.2-rc.
|
|
50
|
-
"@instructure/quiz-number-input": "20.4.2-rc.
|
|
51
|
-
"@instructure/quiz-rce": "20.4.2-rc.
|
|
47
|
+
"@instructure/quiz-common": "20.4.2-rc.2+c00fb83ef",
|
|
48
|
+
"@instructure/quiz-i18n": "20.4.2-rc.2+c00fb83ef",
|
|
49
|
+
"@instructure/quiz-interactions": "20.4.2-rc.2+c00fb83ef",
|
|
50
|
+
"@instructure/quiz-number-input": "20.4.2-rc.2+c00fb83ef",
|
|
51
|
+
"@instructure/quiz-rce": "20.4.2-rc.2+c00fb83ef",
|
|
52
52
|
"@instructure/ui-a11y-content": "^8.51.0",
|
|
53
53
|
"@instructure/ui-alerts": "^8.51.0",
|
|
54
54
|
"@instructure/ui-avatar": "^8.51.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"file-saver": "~2.0.5",
|
|
113
113
|
"humps": "^2.0.0",
|
|
114
114
|
"immutable": "^3.8.1",
|
|
115
|
-
"instructure-validations": "20.4.2-rc.
|
|
115
|
+
"instructure-validations": "20.4.2-rc.2+c00fb83ef",
|
|
116
116
|
"ipaddr.js": "^1.5.4",
|
|
117
117
|
"isomorphic-fetch": "^2.2.0",
|
|
118
118
|
"isuuid": "^0.1.0",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"intl": "^1.2.4",
|
|
164
164
|
"jquery": "^2.2.3",
|
|
165
165
|
"most-subject": "^5.3.0",
|
|
166
|
-
"quiz-presets": "20.4.2-rc.
|
|
166
|
+
"quiz-presets": "20.4.2-rc.2+c00fb83ef",
|
|
167
167
|
"react": "^16.8.6",
|
|
168
168
|
"react-addons-test-utils": "^15.6.2",
|
|
169
169
|
"react-dom": "^16.8.6",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"publishConfig": {
|
|
180
180
|
"access": "public"
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "c00fb83eff9b7f6ad944293fa4f3ede03786cbb3"
|
|
183
183
|
}
|