@instructure/quiz-core 20.10.1-rc.3 → 20.10.1-rc.4
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/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +3 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +8 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +2 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +3 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +10 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +2 -8
- package/package.json +9 -9
- /package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/{AggregationTable → AfsTableWrapper}/popoverContent.js +0 -0
- /package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/{AggregationTable → AfsTableWrapper}/popoverContent.js +0 -0
|
@@ -50,7 +50,9 @@ export var CategorizationType = /*#__PURE__*/function (_Component) {
|
|
|
50
50
|
|
|
51
51
|
var updatedAnswerSummary = _this.updateAnswerBody(answerSummary);
|
|
52
52
|
|
|
53
|
-
return /*#__PURE__*/React.createElement(AfsTableWrapper,
|
|
53
|
+
return /*#__PURE__*/React.createElement(AfsTableWrapper, {
|
|
54
|
+
noAnswerMissingPopover: true
|
|
55
|
+
}, /*#__PURE__*/React.createElement(AfsPartsContainer, {
|
|
54
56
|
afsTable: /*#__PURE__*/React.createElement(MatchingTypeTable, {
|
|
55
57
|
itemId: itemId,
|
|
56
58
|
answerSummary: updatedAnswerSummary,
|
|
@@ -12,6 +12,8 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
12
12
|
import { withStyle, jsx } from '@instructure/emotion';
|
|
13
13
|
import generateStyle from "./styles.js";
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
|
+
import { noAnswerMissing } from "./popoverContent.js";
|
|
16
|
+
import MetricPopover from "../../../MetricPopover/index.js";
|
|
15
17
|
export var AfsTableWrapper = (_dec = withStyle(generateStyle, null), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
16
18
|
_inherits(AfsTableWrapper, _Component);
|
|
17
19
|
|
|
@@ -34,6 +36,7 @@ export var AfsTableWrapper = (_dec = withStyle(generateStyle, null), _dec(_class
|
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
_this.render = function () {
|
|
39
|
+
var noAnswerMissingPopover = _this.props.noAnswerMissingPopover;
|
|
37
40
|
return jsx(Flex, {
|
|
38
41
|
direction: "row",
|
|
39
42
|
"data-testid": "AfsTableWrapper"
|
|
@@ -46,7 +49,9 @@ export var AfsTableWrapper = (_dec = withStyle(generateStyle, null), _dec(_class
|
|
|
46
49
|
level: "h3",
|
|
47
50
|
weight: "bold",
|
|
48
51
|
color: "primary"
|
|
49
|
-
},
|
|
52
|
+
}, jsx(Flex, {
|
|
53
|
+
gap: "x-small"
|
|
54
|
+
}, jsx(Flex.Item, null, _this.getHeader()), jsx(Flex.Item, null, noAnswerMissingPopover && jsx(MetricPopover, noAnswerMissing)))), _this.props.children)));
|
|
50
55
|
};
|
|
51
56
|
|
|
52
57
|
return _this;
|
|
@@ -56,5 +61,6 @@ export var AfsTableWrapper = (_dec = withStyle(generateStyle, null), _dec(_class
|
|
|
56
61
|
}(Component), _class2.propTypes = {
|
|
57
62
|
children: PropTypes.node.isRequired,
|
|
58
63
|
styles: PropTypes.object,
|
|
59
|
-
tableHeader: PropTypes.string
|
|
64
|
+
tableHeader: PropTypes.string,
|
|
65
|
+
noAnswerMissingPopover: PropTypes.bool
|
|
60
66
|
}, _temp)) || _class);
|
|
@@ -35,8 +35,6 @@ var styles = {
|
|
|
35
35
|
import { Flex } from '@instructure/ui-flex';
|
|
36
36
|
import classNames from 'classnames';
|
|
37
37
|
import { Text } from '@instructure/ui-text';
|
|
38
|
-
import MetricPopover from "../../../MetricPopover/index.js";
|
|
39
|
-
import { noAnswerMissing } from "./popoverContent.js";
|
|
40
38
|
var noAnswerKey = 'noAnswer';
|
|
41
39
|
var incorrectKey = 'incorrect';
|
|
42
40
|
var correctKey = 'correct';
|
|
@@ -74,11 +72,9 @@ export var AggregationTable = (_dec = themeable(theme, styles), _dec(_class = (_
|
|
|
74
72
|
var percentageHeaderId = "answer-frequency-summary-aggregate-percentage-".concat(itemId);
|
|
75
73
|
return /*#__PURE__*/React.createElement(Table.Head, null, /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.ColHeader, {
|
|
76
74
|
id: answerHeaderId
|
|
77
|
-
}, /*#__PURE__*/React.createElement(
|
|
78
|
-
gap: "x-small"
|
|
79
|
-
}, /*#__PURE__*/React.createElement(Flex.Item, null, /*#__PURE__*/React.createElement("span", {
|
|
75
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
80
76
|
className: classNames(styles.firstHeaderCell)
|
|
81
|
-
}, t('Result'))), /*#__PURE__*/React.createElement(
|
|
77
|
+
}, t('Result'))), /*#__PURE__*/React.createElement(Table.ColHeader, {
|
|
82
78
|
id: respondentsHeaderId,
|
|
83
79
|
textAlign: "center"
|
|
84
80
|
}, t('Respondents')), /*#__PURE__*/React.createElement(Table.ColHeader, {
|
|
@@ -73,7 +73,9 @@ var CategorizationType = /*#__PURE__*/function (_Component) {
|
|
|
73
73
|
|
|
74
74
|
var updatedAnswerSummary = _this.updateAnswerBody(answerSummary);
|
|
75
75
|
|
|
76
|
-
return /*#__PURE__*/_react.default.createElement(_index.default,
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
77
|
+
noAnswerMissingPopover: true
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement(_presenter.AfsPartsContainer, {
|
|
77
79
|
afsTable: /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
78
80
|
itemId: itemId,
|
|
79
81
|
answerSummary: updatedAnswerSummary,
|
|
@@ -27,6 +27,10 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
27
27
|
|
|
28
28
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
29
|
|
|
30
|
+
var _popoverContent = require("./popoverContent.js");
|
|
31
|
+
|
|
32
|
+
var _index = _interopRequireDefault(require("../../../MetricPopover/index.js"));
|
|
33
|
+
|
|
30
34
|
var _dec, _class, _class2, _temp;
|
|
31
35
|
|
|
32
36
|
var AfsTableWrapper = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
@@ -51,6 +55,7 @@ var AfsTableWrapper = (_dec = (0, _emotion.withStyle)(_styles.default, null), _d
|
|
|
51
55
|
};
|
|
52
56
|
|
|
53
57
|
_this.render = function () {
|
|
58
|
+
var noAnswerMissingPopover = _this.props.noAnswerMissingPopover;
|
|
54
59
|
return (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
55
60
|
direction: "row",
|
|
56
61
|
"data-testid": "AfsTableWrapper"
|
|
@@ -63,7 +68,9 @@ var AfsTableWrapper = (_dec = (0, _emotion.withStyle)(_styles.default, null), _d
|
|
|
63
68
|
level: "h3",
|
|
64
69
|
weight: "bold",
|
|
65
70
|
color: "primary"
|
|
66
|
-
},
|
|
71
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
72
|
+
gap: "x-small"
|
|
73
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex.Item, null, _this.getHeader()), (0, _emotion.jsx)(_uiFlex.Flex.Item, null, noAnswerMissingPopover && (0, _emotion.jsx)(_index.default, _popoverContent.noAnswerMissing)))), _this.props.children)));
|
|
67
74
|
};
|
|
68
75
|
|
|
69
76
|
return _this;
|
|
@@ -73,6 +80,7 @@ var AfsTableWrapper = (_dec = (0, _emotion.withStyle)(_styles.default, null), _d
|
|
|
73
80
|
}(_react.Component), _class2.propTypes = {
|
|
74
81
|
children: _propTypes.default.node.isRequired,
|
|
75
82
|
styles: _propTypes.default.object,
|
|
76
|
-
tableHeader: _propTypes.default.string
|
|
83
|
+
tableHeader: _propTypes.default.string,
|
|
84
|
+
noAnswerMissingPopover: _propTypes.default.bool
|
|
77
85
|
}, _temp)) || _class);
|
|
78
86
|
exports.AfsTableWrapper = AfsTableWrapper;
|
|
@@ -37,10 +37,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
37
37
|
|
|
38
38
|
var _uiText = require("@instructure/ui-text");
|
|
39
39
|
|
|
40
|
-
var _index = _interopRequireDefault(require("../../../MetricPopover/index.js"));
|
|
41
|
-
|
|
42
|
-
var _popoverContent = require("./popoverContent.js");
|
|
43
|
-
|
|
44
40
|
var _dec, _class, _class2, _temp;
|
|
45
41
|
|
|
46
42
|
var styles = {
|
|
@@ -100,11 +96,9 @@ var AggregationTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
|
|
|
100
96
|
var percentageHeaderId = "answer-frequency-summary-aggregate-percentage-".concat(itemId);
|
|
101
97
|
return /*#__PURE__*/_react.default.createElement(_uiTable.Table.Head, null, /*#__PURE__*/_react.default.createElement(_uiTable.Table.Row, null, /*#__PURE__*/_react.default.createElement(_uiTable.Table.ColHeader, {
|
|
102
98
|
id: answerHeaderId
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
104
|
-
gap: "x-small"
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement(_uiFlex.Flex.Item, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
99
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
106
100
|
className: (0, _classnames.default)(styles.firstHeaderCell)
|
|
107
|
-
}, (0, _formatMessage.default)('Result'))), /*#__PURE__*/_react.default.createElement(
|
|
101
|
+
}, (0, _formatMessage.default)('Result'))), /*#__PURE__*/_react.default.createElement(_uiTable.Table.ColHeader, {
|
|
108
102
|
id: respondentsHeaderId,
|
|
109
103
|
textAlign: "center"
|
|
110
104
|
}, (0, _formatMessage.default)('Respondents')), /*#__PURE__*/_react.default.createElement(_uiTable.Table.ColHeader, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.10.1-rc.
|
|
3
|
+
"version": "20.10.1-rc.4+9acb43863",
|
|
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.1.0",
|
|
47
|
-
"@instructure/quiz-common": "20.10.1-rc.
|
|
48
|
-
"@instructure/quiz-i18n": "20.10.1-rc.
|
|
49
|
-
"@instructure/quiz-interactions": "20.10.1-rc.
|
|
50
|
-
"@instructure/quiz-number-input": "20.10.1-rc.
|
|
51
|
-
"@instructure/quiz-rce": "20.10.1-rc.
|
|
47
|
+
"@instructure/quiz-common": "20.10.1-rc.4+9acb43863",
|
|
48
|
+
"@instructure/quiz-i18n": "20.10.1-rc.4+9acb43863",
|
|
49
|
+
"@instructure/quiz-interactions": "20.10.1-rc.4+9acb43863",
|
|
50
|
+
"@instructure/quiz-number-input": "20.10.1-rc.4+9acb43863",
|
|
51
|
+
"@instructure/quiz-rce": "20.10.1-rc.4+9acb43863",
|
|
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.10.1-rc.
|
|
115
|
+
"instructure-validations": "20.10.1-rc.4+9acb43863",
|
|
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.10.1-rc.
|
|
166
|
+
"quiz-presets": "20.10.1-rc.4+9acb43863",
|
|
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": "9acb4386324ea4b9b5a7d896782821bbacc44778"
|
|
183
183
|
}
|
|
File without changes
|