@instructure/quiz-core 17.66.2-rc.7 → 17.66.2-rc.8
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.
|
@@ -12,6 +12,7 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
12
12
|
import { Text } from '@instructure/ui-text';
|
|
13
13
|
import { Link } from '@instructure/ui-link';
|
|
14
14
|
import { Flex } from '@instructure/ui-flex';
|
|
15
|
+
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
15
16
|
import { themeable } from '@instructure/ui-themeable';
|
|
16
17
|
import Card from "../../../../../common/components/shared/Card/index.js";
|
|
17
18
|
var styles = {
|
|
@@ -96,8 +97,9 @@ export var NewQuizAndItemAnalysisReportCardPresenter = (_dec = themeable(theme,
|
|
|
96
97
|
multiline: true
|
|
97
98
|
})), quizAnalysis && itemAnalyses && /*#__PURE__*/React.createElement(Link, {
|
|
98
99
|
href: href
|
|
99
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
100
|
-
size: "small"
|
|
100
|
+
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('View Quiz and Item Analysis Report')), /*#__PURE__*/React.createElement(Text, {
|
|
101
|
+
size: "small",
|
|
102
|
+
"aria-hidden": "true"
|
|
101
103
|
}, t('View Report')))));
|
|
102
104
|
};
|
|
103
105
|
|
|
@@ -115,6 +117,16 @@ export var NewQuizAndItemAnalysisReportCardPresenter = (_dec = themeable(theme,
|
|
|
115
117
|
}))));
|
|
116
118
|
};
|
|
117
119
|
|
|
120
|
+
_this.renderGenerateReportButton = function () {
|
|
121
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
122
|
+
onClick: _this.handleGeneration,
|
|
123
|
+
role: "button"
|
|
124
|
+
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Generate Quiz and Item Analysis Report')), /*#__PURE__*/React.createElement(Text, {
|
|
125
|
+
size: "small",
|
|
126
|
+
"aria-hidden": "true"
|
|
127
|
+
}, t('Generate Report')));
|
|
128
|
+
};
|
|
129
|
+
|
|
118
130
|
_this.renderReportCardFooter = function () {
|
|
119
131
|
var _this$props2 = _this.props,
|
|
120
132
|
generationInProgress = _this$props2.generationInProgress,
|
|
@@ -131,12 +143,7 @@ export var NewQuizAndItemAnalysisReportCardPresenter = (_dec = themeable(theme,
|
|
|
131
143
|
lineHeight: "fit",
|
|
132
144
|
weight: "bold",
|
|
133
145
|
color: "danger"
|
|
134
|
-
}, analysisError)), /*#__PURE__*/React.createElement(Flex.Item, null, generationInProgress ? _this.renderSpinner(t('Generation In Progress')) :
|
|
135
|
-
onClick: _this.handleGeneration,
|
|
136
|
-
role: "button"
|
|
137
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
138
|
-
size: "small"
|
|
139
|
-
}, t('Generate Report'))))));
|
|
146
|
+
}, analysisError)), /*#__PURE__*/React.createElement(Flex.Item, null, generationInProgress ? _this.renderSpinner(t('Generation In Progress')) : _this.renderGenerateReportButton())));
|
|
140
147
|
};
|
|
141
148
|
|
|
142
149
|
return _this;
|
|
@@ -31,6 +31,8 @@ var _uiLink = require("@instructure/ui-link");
|
|
|
31
31
|
|
|
32
32
|
var _uiFlex = require("@instructure/ui-flex");
|
|
33
33
|
|
|
34
|
+
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
35
|
+
|
|
34
36
|
var _uiThemeable = require("@instructure/ui-themeable");
|
|
35
37
|
|
|
36
38
|
var _index = _interopRequireDefault(require("../../../../../common/components/shared/Card/index.js"));
|
|
@@ -125,8 +127,9 @@ var NewQuizAndItemAnalysisReportCardPresenter = (_dec = (0, _uiThemeable.themeab
|
|
|
125
127
|
multiline: true
|
|
126
128
|
})), quizAnalysis && itemAnalyses && /*#__PURE__*/_react.default.createElement(_uiLink.Link, {
|
|
127
129
|
href: href
|
|
128
|
-
}, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
|
|
129
|
-
size: "small"
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('View Quiz and Item Analysis Report')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
|
|
131
|
+
size: "small",
|
|
132
|
+
"aria-hidden": "true"
|
|
130
133
|
}, (0, _formatMessage.default)('View Report')))));
|
|
131
134
|
};
|
|
132
135
|
|
|
@@ -144,6 +147,16 @@ var NewQuizAndItemAnalysisReportCardPresenter = (_dec = (0, _uiThemeable.themeab
|
|
|
144
147
|
}))));
|
|
145
148
|
};
|
|
146
149
|
|
|
150
|
+
_this.renderGenerateReportButton = function () {
|
|
151
|
+
return /*#__PURE__*/_react.default.createElement(_uiLink.Link, {
|
|
152
|
+
onClick: _this.handleGeneration,
|
|
153
|
+
role: "button"
|
|
154
|
+
}, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Generate Quiz and Item Analysis Report')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
|
|
155
|
+
size: "small",
|
|
156
|
+
"aria-hidden": "true"
|
|
157
|
+
}, (0, _formatMessage.default)('Generate Report')));
|
|
158
|
+
};
|
|
159
|
+
|
|
147
160
|
_this.renderReportCardFooter = function () {
|
|
148
161
|
var _this$props2 = _this.props,
|
|
149
162
|
generationInProgress = _this$props2.generationInProgress,
|
|
@@ -160,12 +173,7 @@ var NewQuizAndItemAnalysisReportCardPresenter = (_dec = (0, _uiThemeable.themeab
|
|
|
160
173
|
lineHeight: "fit",
|
|
161
174
|
weight: "bold",
|
|
162
175
|
color: "danger"
|
|
163
|
-
}, analysisError)), /*#__PURE__*/_react.default.createElement(_uiFlex.Flex.Item, null, generationInProgress ? _this.renderSpinner((0, _formatMessage.default)('Generation In Progress')) :
|
|
164
|
-
onClick: _this.handleGeneration,
|
|
165
|
-
role: "button"
|
|
166
|
-
}, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
|
|
167
|
-
size: "small"
|
|
168
|
-
}, (0, _formatMessage.default)('Generate Report'))))));
|
|
176
|
+
}, analysisError)), /*#__PURE__*/_react.default.createElement(_uiFlex.Flex.Item, null, generationInProgress ? _this.renderSpinner((0, _formatMessage.default)('Generation In Progress')) : _this.renderGenerateReportButton())));
|
|
169
177
|
};
|
|
170
178
|
|
|
171
179
|
return _this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.66.2-rc.
|
|
3
|
+
"version": "17.66.2-rc.8+939e0fd42",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@instructure/grading-utils": "^1.0.0",
|
|
44
44
|
"@instructure/outcomes-ui": "^2.1.9",
|
|
45
|
-
"@instructure/quiz-common": "17.66.2-rc.
|
|
46
|
-
"@instructure/quiz-i18n": "17.66.2-rc.
|
|
47
|
-
"@instructure/quiz-interactions": "17.66.2-rc.
|
|
48
|
-
"@instructure/quiz-number-input": "17.66.2-rc.
|
|
49
|
-
"@instructure/quiz-rce": "17.66.2-rc.
|
|
45
|
+
"@instructure/quiz-common": "17.66.2-rc.8+939e0fd42",
|
|
46
|
+
"@instructure/quiz-i18n": "17.66.2-rc.8+939e0fd42",
|
|
47
|
+
"@instructure/quiz-interactions": "17.66.2-rc.8+939e0fd42",
|
|
48
|
+
"@instructure/quiz-number-input": "17.66.2-rc.8+939e0fd42",
|
|
49
|
+
"@instructure/quiz-rce": "17.66.2-rc.8+939e0fd42",
|
|
50
50
|
"@instructure/ui-a11y-content": "^7.20.0",
|
|
51
51
|
"@instructure/ui-alerts": "^7.20.0",
|
|
52
52
|
"@instructure/ui-avatar": "^7.20.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"eventemitter3": "^3.1.0",
|
|
108
108
|
"humps": "^2.0.0",
|
|
109
109
|
"immutable": "^3.8.1",
|
|
110
|
-
"instructure-validations": "17.66.2-rc.
|
|
110
|
+
"instructure-validations": "17.66.2-rc.8+939e0fd42",
|
|
111
111
|
"ipaddr.js": "^1.5.4",
|
|
112
112
|
"isomorphic-fetch": "^2.2.0",
|
|
113
113
|
"isuuid": "^0.1.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"intl": "^1.2.4",
|
|
159
159
|
"jquery": "^2.2.3",
|
|
160
160
|
"most-subject": "^5.3.0",
|
|
161
|
-
"quiz-presets": "17.66.2-rc.
|
|
161
|
+
"quiz-presets": "17.66.2-rc.8+939e0fd42",
|
|
162
162
|
"react": "^16.8.6",
|
|
163
163
|
"react-addons-test-utils": "^15.6.2",
|
|
164
164
|
"react-dom": "^16.8.6",
|
|
@@ -174,5 +174,5 @@
|
|
|
174
174
|
"publishConfig": {
|
|
175
175
|
"access": "public"
|
|
176
176
|
},
|
|
177
|
-
"gitHead": "
|
|
177
|
+
"gitHead": "939e0fd42d8c4f2972075655b4d070fb28932716"
|
|
178
178
|
}
|