@instructure/quiz-core 22.3.2-rc.3 → 22.3.2-rc.5
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/shared/TimeUnitsInput/index.js +1 -2
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -2
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +34 -21
- package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -2
- package/es/moderating/components/resources/AccommodationsModal/index.js +2 -2
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +12 -4
- package/lib/common/components/shared/TimeUnitsInput/index.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +33 -20
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +1 -2
- package/lib/moderating/components/resources/AccommodationsModal/index.js +2 -2
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +1 -1
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +12 -4
- package/package.json +9 -9
|
@@ -254,8 +254,7 @@ export var TimeUnitsInput = /*#__PURE__*/function (_Component) {
|
|
|
254
254
|
key: "render",
|
|
255
255
|
value: function render() {
|
|
256
256
|
return /*#__PURE__*/React.createElement(View, {
|
|
257
|
-
display: "block"
|
|
258
|
-
margin: this.props.margin
|
|
257
|
+
display: "block"
|
|
259
258
|
}, /*#__PURE__*/React.createElement(FormFieldGroup, {
|
|
260
259
|
description: /*#__PURE__*/React.createElement(ScreenReaderContent, null, this.props.description),
|
|
261
260
|
layout: "columns",
|
|
@@ -111,8 +111,7 @@ var ExtraTimeMultiplier = /*#__PURE__*/function (_withI18nSupport) {
|
|
|
111
111
|
key: "render",
|
|
112
112
|
value: function render() {
|
|
113
113
|
return /*#__PURE__*/React.createElement(View, {
|
|
114
|
-
display: "block"
|
|
115
|
-
margin: "medium none"
|
|
114
|
+
display: "block"
|
|
116
115
|
}, /*#__PURE__*/React.createElement(NumberInput, {
|
|
117
116
|
renderLabel: t('Time limit multiplier'),
|
|
118
117
|
step: 0.01,
|
|
@@ -22,8 +22,7 @@ function _callSuper(_this, derived, args) {
|
|
|
22
22
|
}
|
|
23
23
|
import React, { Component } from 'react';
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
|
-
import {
|
|
26
|
-
import { SimpleSelect } from '@instructure/quiz-common';
|
|
25
|
+
import { SimpleSelect, Flex } from '@instructure/quiz-common';
|
|
27
26
|
import TimeUnitsInput from '../../../../../common/components/shared/TimeUnitsInput';
|
|
28
27
|
import ExtraTimeMultiplier from '../ExtraTimeMultiplier';
|
|
29
28
|
import { HOUR_IN_SECONDS } from '../../../../../common/components/shared/FormattedDuration';
|
|
@@ -72,6 +71,36 @@ export var ExtraTimeSettings = /*#__PURE__*/function (_Component) {
|
|
|
72
71
|
});
|
|
73
72
|
_this2.props.onChange(update);
|
|
74
73
|
});
|
|
74
|
+
_defineProperty(_this2, "renderAccommodationComponent", function () {
|
|
75
|
+
var timerSettings = _this2.props.timerSettings;
|
|
76
|
+
var timeAdjustmentType = getTimeAdjustmentType(timerSettings);
|
|
77
|
+
if (timeAdjustmentType !== 'extraTimeEnabled' && timeAdjustmentType !== 'timerMultiplierEnabled') {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
var component = null;
|
|
81
|
+
if (timeAdjustmentType === 'extraTimeEnabled') {
|
|
82
|
+
component = /*#__PURE__*/React.createElement(TimeUnitsInput, {
|
|
83
|
+
onChange: _this2.onChangeExtraSeconds,
|
|
84
|
+
timeInSeconds: timerSettings.extraTimeInSeconds,
|
|
85
|
+
maxTimeInSeconds: _this2.props.maxTimeInSeconds,
|
|
86
|
+
hoursLabel: t('Hours'),
|
|
87
|
+
hoursDataAutomation: "sdk-moderation-time-hours",
|
|
88
|
+
minutesLabel: t('Minutes'),
|
|
89
|
+
minutesDataAutomation: "sdk-moderation-time-minutes",
|
|
90
|
+
description: t('Additional time')
|
|
91
|
+
});
|
|
92
|
+
} else if (timeAdjustmentType === 'timerMultiplierEnabled') {
|
|
93
|
+
component = /*#__PURE__*/React.createElement(ExtraTimeMultiplier, {
|
|
94
|
+
onChange: _this2.onChangeMultiplier,
|
|
95
|
+
timerMultiplierValue: timerSettings.timerMultiplierValue,
|
|
96
|
+
maxMultiplier: _this2.props.maxMultiplier,
|
|
97
|
+
minMultiplier: _this2.props.minMultiplier
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
return /*#__PURE__*/React.createElement(Flex.Item, {
|
|
101
|
+
margin: "mediumSmall 0 0 0"
|
|
102
|
+
}, component);
|
|
103
|
+
});
|
|
75
104
|
return _this2;
|
|
76
105
|
}
|
|
77
106
|
_inherits(ExtraTimeSettings, _Component);
|
|
@@ -80,9 +109,8 @@ export var ExtraTimeSettings = /*#__PURE__*/function (_Component) {
|
|
|
80
109
|
value: function render() {
|
|
81
110
|
var timerSettings = this.props.timerSettings;
|
|
82
111
|
var timeAdjustmentType = getTimeAdjustmentType(timerSettings);
|
|
83
|
-
return /*#__PURE__*/React.createElement(
|
|
84
|
-
|
|
85
|
-
margin: "medium none"
|
|
112
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
113
|
+
direction: "column"
|
|
86
114
|
}, /*#__PURE__*/React.createElement(SimpleSelect, {
|
|
87
115
|
renderLabel: t('Time adjustments'),
|
|
88
116
|
assistiveText: t('4 options available. Use arrow keys to navigate options.'),
|
|
@@ -101,22 +129,7 @@ export var ExtraTimeSettings = /*#__PURE__*/function (_Component) {
|
|
|
101
129
|
}, t('Remove time limit (unlimited)')), /*#__PURE__*/React.createElement(SimpleSelect.Option, {
|
|
102
130
|
id: "extra-time-settings-select-option-time-multiplier",
|
|
103
131
|
value: "timerMultiplierEnabled"
|
|
104
|
-
}, t('Time limit multiplier'))),
|
|
105
|
-
onChange: this.onChangeExtraSeconds,
|
|
106
|
-
timeInSeconds: timerSettings.extraTimeInSeconds,
|
|
107
|
-
maxTimeInSeconds: this.props.maxTimeInSeconds,
|
|
108
|
-
hoursLabel: t('Hours'),
|
|
109
|
-
hoursDataAutomation: "sdk-moderation-time-hours",
|
|
110
|
-
minutesLabel: t('Minutes'),
|
|
111
|
-
minutesDataAutomation: "sdk-moderation-time-minutes",
|
|
112
|
-
description: t('Additional time'),
|
|
113
|
-
margin: "medium none none none"
|
|
114
|
-
}), timeAdjustmentType === 'timerMultiplierEnabled' && /*#__PURE__*/React.createElement(ExtraTimeMultiplier, {
|
|
115
|
-
onChange: this.onChangeMultiplier,
|
|
116
|
-
timerMultiplierValue: timerSettings.timerMultiplierValue,
|
|
117
|
-
maxMultiplier: this.props.maxMultiplier,
|
|
118
|
-
minMultiplier: this.props.minMultiplier
|
|
119
|
-
}));
|
|
132
|
+
}, t('Time limit multiplier'))), this.renderAccommodationComponent());
|
|
120
133
|
}
|
|
121
134
|
}]);
|
|
122
135
|
}(Component);
|
package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js
CHANGED
|
@@ -66,8 +66,7 @@ export var ReduceAnswerChoicesSettings = /*#__PURE__*/function (_Component) {
|
|
|
66
66
|
key: "render",
|
|
67
67
|
value: function render() {
|
|
68
68
|
return /*#__PURE__*/React.createElement(View, {
|
|
69
|
-
display: "block"
|
|
70
|
-
margin: "medium none"
|
|
69
|
+
display: "block"
|
|
71
70
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
72
71
|
variant: "toggle",
|
|
73
72
|
checked: this.props.courseAccommodationSettings.reduceChoicesEnabled || false,
|
|
@@ -69,7 +69,7 @@ export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
|
69
69
|
});
|
|
70
70
|
_defineProperty(_this2, "renderHeading", function () {
|
|
71
71
|
if (_this2.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
72
|
-
return /*#__PURE__*/React.createElement(Heading, null, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('
|
|
72
|
+
return /*#__PURE__*/React.createElement(Heading, null, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Course Accommodation')), t('Course Accommodation'));
|
|
73
73
|
}
|
|
74
74
|
var _this2$props = _this2.props,
|
|
75
75
|
mountNode = _this2$props.mountNode,
|
|
@@ -97,7 +97,7 @@ export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
|
97
97
|
key: "labelText",
|
|
98
98
|
value: function labelText() {
|
|
99
99
|
if (this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
100
|
-
return t('
|
|
100
|
+
return t('Course Accommodation');
|
|
101
101
|
}
|
|
102
102
|
return this.props.studentName || t('Accommodations Modal');
|
|
103
103
|
}
|
|
@@ -301,7 +301,7 @@ export var ModerateTableRow = (_dec = withStyleOverrides(generateStyle, generate
|
|
|
301
301
|
value: function renderName(name, avatarName) {
|
|
302
302
|
return jsx(Link, {
|
|
303
303
|
onClick: this.onAccommodationsClick,
|
|
304
|
-
screenReaderLabel: t('Edit
|
|
304
|
+
screenReaderLabel: t('Edit course accommodations'),
|
|
305
305
|
"data-automation": "sdk-moderate-accommodations-edit",
|
|
306
306
|
margin: "0 small",
|
|
307
307
|
css: avatarName
|
|
@@ -80,7 +80,9 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
80
80
|
_this2.props.closeTray();
|
|
81
81
|
});
|
|
82
82
|
_defineProperty(_this2, "renderTitleAndCloseButton", function () {
|
|
83
|
-
return /*#__PURE__*/React.createElement(Modal.Header,
|
|
83
|
+
return /*#__PURE__*/React.createElement(Modal.Header, {
|
|
84
|
+
"data-automation": "moderate-tray-header"
|
|
85
|
+
}, /*#__PURE__*/React.createElement(CloseButton, {
|
|
84
86
|
onClick: _this2.props.closeTray,
|
|
85
87
|
elementRef: _this2.setCloseRef,
|
|
86
88
|
placement: "end",
|
|
@@ -88,7 +90,7 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
88
90
|
screenReaderLabel: t('Close')
|
|
89
91
|
}), _this2.props.atteqApplyChangesToCurrentQuizAttemptsEnabled ? /*#__PURE__*/React.createElement(Heading, {
|
|
90
92
|
level: "h3"
|
|
91
|
-
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('
|
|
93
|
+
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Current Quiz Accommodation')), t('Current Quiz Accommodation')) : _this2.renderHeading());
|
|
92
94
|
});
|
|
93
95
|
_defineProperty(_this2, "renderChildren", function () {
|
|
94
96
|
return React.Children.map(_this2.props.children, function (child) {
|
|
@@ -195,7 +197,7 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
195
197
|
key: "labelText",
|
|
196
198
|
value: function labelText() {
|
|
197
199
|
if (this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
198
|
-
return t('
|
|
200
|
+
return t('Current Quiz Accommodation');
|
|
199
201
|
}
|
|
200
202
|
if (this.props.participantName) {
|
|
201
203
|
return this.props.participantName;
|
|
@@ -224,7 +226,13 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
224
226
|
padding: "medium medium 0 medium"
|
|
225
227
|
}, this.renderNameWithTooltip()), /*#__PURE__*/React.createElement(Flex.Item, {
|
|
226
228
|
padding: "medium medium 0"
|
|
227
|
-
}, t('These settings apply to current
|
|
229
|
+
}, t.rich('These settings apply to the <0>current quiz only, including the in-progress attempts.</0>', [function (_ref4) {
|
|
230
|
+
var children = _ref4.children;
|
|
231
|
+
return /*#__PURE__*/React.createElement(Text, {
|
|
232
|
+
weight: "bold",
|
|
233
|
+
key: "0"
|
|
234
|
+
}, children);
|
|
235
|
+
}]))), /*#__PURE__*/React.createElement(Flex.Item, {
|
|
228
236
|
shouldGrow: true,
|
|
229
237
|
padding: "medium medium 0"
|
|
230
238
|
}, this.renderChildren()), /*#__PURE__*/React.createElement(Flex.Item, null, this.renderFooter())));
|
|
@@ -261,8 +261,7 @@ var TimeUnitsInput = exports.TimeUnitsInput = /*#__PURE__*/function (_Component)
|
|
|
261
261
|
key: "render",
|
|
262
262
|
value: function render() {
|
|
263
263
|
return /*#__PURE__*/_react["default"].createElement(_uiView.View, {
|
|
264
|
-
display: "block"
|
|
265
|
-
margin: this.props.margin
|
|
264
|
+
display: "block"
|
|
266
265
|
}, /*#__PURE__*/_react["default"].createElement(_quizCommon.FormFieldGroup, {
|
|
267
266
|
description: /*#__PURE__*/_react["default"].createElement(_uiA11yContent.ScreenReaderContent, null, this.props.description),
|
|
268
267
|
layout: "columns",
|
package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js
CHANGED
|
@@ -120,8 +120,7 @@ var ExtraTimeMultiplier = /*#__PURE__*/function (_withI18nSupport) {
|
|
|
120
120
|
key: "render",
|
|
121
121
|
value: function render() {
|
|
122
122
|
return /*#__PURE__*/_react["default"].createElement(_uiView.View, {
|
|
123
|
-
display: "block"
|
|
124
|
-
margin: "medium none"
|
|
123
|
+
display: "block"
|
|
125
124
|
}, /*#__PURE__*/_react["default"].createElement(_quizNumberInput["default"], {
|
|
126
125
|
renderLabel: (0, _formatMessage["default"])('Time limit multiplier'),
|
|
127
126
|
step: 0.01,
|
|
@@ -13,7 +13,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
|
-
var _uiView = require("@instructure/ui-view");
|
|
17
16
|
var _quizCommon = require("@instructure/quiz-common");
|
|
18
17
|
var _TimeUnitsInput = _interopRequireDefault(require("../../../../../common/components/shared/TimeUnitsInput"));
|
|
19
18
|
var _ExtraTimeMultiplier = _interopRequireDefault(require("../ExtraTimeMultiplier"));
|
|
@@ -81,6 +80,36 @@ var ExtraTimeSettings = exports.ExtraTimeSettings = /*#__PURE__*/function (_Comp
|
|
|
81
80
|
});
|
|
82
81
|
_this2.props.onChange(update);
|
|
83
82
|
});
|
|
83
|
+
(0, _defineProperty2["default"])(_this2, "renderAccommodationComponent", function () {
|
|
84
|
+
var timerSettings = _this2.props.timerSettings;
|
|
85
|
+
var timeAdjustmentType = getTimeAdjustmentType(timerSettings);
|
|
86
|
+
if (timeAdjustmentType !== 'extraTimeEnabled' && timeAdjustmentType !== 'timerMultiplierEnabled') {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
var component = null;
|
|
90
|
+
if (timeAdjustmentType === 'extraTimeEnabled') {
|
|
91
|
+
component = /*#__PURE__*/_react["default"].createElement(_TimeUnitsInput["default"], {
|
|
92
|
+
onChange: _this2.onChangeExtraSeconds,
|
|
93
|
+
timeInSeconds: timerSettings.extraTimeInSeconds,
|
|
94
|
+
maxTimeInSeconds: _this2.props.maxTimeInSeconds,
|
|
95
|
+
hoursLabel: (0, _formatMessage["default"])('Hours'),
|
|
96
|
+
hoursDataAutomation: "sdk-moderation-time-hours",
|
|
97
|
+
minutesLabel: (0, _formatMessage["default"])('Minutes'),
|
|
98
|
+
minutesDataAutomation: "sdk-moderation-time-minutes",
|
|
99
|
+
description: (0, _formatMessage["default"])('Additional time')
|
|
100
|
+
});
|
|
101
|
+
} else if (timeAdjustmentType === 'timerMultiplierEnabled') {
|
|
102
|
+
component = /*#__PURE__*/_react["default"].createElement(_ExtraTimeMultiplier["default"], {
|
|
103
|
+
onChange: _this2.onChangeMultiplier,
|
|
104
|
+
timerMultiplierValue: timerSettings.timerMultiplierValue,
|
|
105
|
+
maxMultiplier: _this2.props.maxMultiplier,
|
|
106
|
+
minMultiplier: _this2.props.minMultiplier
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return /*#__PURE__*/_react["default"].createElement(_quizCommon.Flex.Item, {
|
|
110
|
+
margin: "mediumSmall 0 0 0"
|
|
111
|
+
}, component);
|
|
112
|
+
});
|
|
84
113
|
return _this2;
|
|
85
114
|
}
|
|
86
115
|
(0, _inherits2["default"])(ExtraTimeSettings, _Component);
|
|
@@ -89,9 +118,8 @@ var ExtraTimeSettings = exports.ExtraTimeSettings = /*#__PURE__*/function (_Comp
|
|
|
89
118
|
value: function render() {
|
|
90
119
|
var timerSettings = this.props.timerSettings;
|
|
91
120
|
var timeAdjustmentType = getTimeAdjustmentType(timerSettings);
|
|
92
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
93
|
-
|
|
94
|
-
margin: "medium none"
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement(_quizCommon.Flex, {
|
|
122
|
+
direction: "column"
|
|
95
123
|
}, /*#__PURE__*/_react["default"].createElement(_quizCommon.SimpleSelect, {
|
|
96
124
|
renderLabel: (0, _formatMessage["default"])('Time adjustments'),
|
|
97
125
|
assistiveText: (0, _formatMessage["default"])('4 options available. Use arrow keys to navigate options.'),
|
|
@@ -110,22 +138,7 @@ var ExtraTimeSettings = exports.ExtraTimeSettings = /*#__PURE__*/function (_Comp
|
|
|
110
138
|
}, (0, _formatMessage["default"])('Remove time limit (unlimited)')), /*#__PURE__*/_react["default"].createElement(_quizCommon.SimpleSelect.Option, {
|
|
111
139
|
id: "extra-time-settings-select-option-time-multiplier",
|
|
112
140
|
value: "timerMultiplierEnabled"
|
|
113
|
-
}, (0, _formatMessage["default"])('Time limit multiplier'))),
|
|
114
|
-
onChange: this.onChangeExtraSeconds,
|
|
115
|
-
timeInSeconds: timerSettings.extraTimeInSeconds,
|
|
116
|
-
maxTimeInSeconds: this.props.maxTimeInSeconds,
|
|
117
|
-
hoursLabel: (0, _formatMessage["default"])('Hours'),
|
|
118
|
-
hoursDataAutomation: "sdk-moderation-time-hours",
|
|
119
|
-
minutesLabel: (0, _formatMessage["default"])('Minutes'),
|
|
120
|
-
minutesDataAutomation: "sdk-moderation-time-minutes",
|
|
121
|
-
description: (0, _formatMessage["default"])('Additional time'),
|
|
122
|
-
margin: "medium none none none"
|
|
123
|
-
}), timeAdjustmentType === 'timerMultiplierEnabled' && /*#__PURE__*/_react["default"].createElement(_ExtraTimeMultiplier["default"], {
|
|
124
|
-
onChange: this.onChangeMultiplier,
|
|
125
|
-
timerMultiplierValue: timerSettings.timerMultiplierValue,
|
|
126
|
-
maxMultiplier: this.props.maxMultiplier,
|
|
127
|
-
minMultiplier: this.props.minMultiplier
|
|
128
|
-
}));
|
|
141
|
+
}, (0, _formatMessage["default"])('Time limit multiplier'))), this.renderAccommodationComponent());
|
|
129
142
|
}
|
|
130
143
|
}]);
|
|
131
144
|
}(_react.Component);
|
package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js
CHANGED
|
@@ -75,8 +75,7 @@ var ReduceAnswerChoicesSettings = exports.ReduceAnswerChoicesSettings = /*#__PUR
|
|
|
75
75
|
key: "render",
|
|
76
76
|
value: function render() {
|
|
77
77
|
return /*#__PURE__*/_react["default"].createElement(_uiView.View, {
|
|
78
|
-
display: "block"
|
|
79
|
-
margin: "medium none"
|
|
78
|
+
display: "block"
|
|
80
79
|
}, /*#__PURE__*/_react["default"].createElement(_uiCheckbox.Checkbox, {
|
|
81
80
|
variant: "toggle",
|
|
82
81
|
checked: this.props.courseAccommodationSettings.reduceChoicesEnabled || false,
|
|
@@ -78,7 +78,7 @@ var AccommodationModal = exports.AccommodationModal = /*#__PURE__*/function (_Co
|
|
|
78
78
|
});
|
|
79
79
|
(0, _defineProperty2["default"])(_this2, "renderHeading", function () {
|
|
80
80
|
if (_this2.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
81
|
-
return /*#__PURE__*/_react["default"].createElement(_uiHeading.Heading, null, /*#__PURE__*/_react["default"].createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage["default"])('
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement(_uiHeading.Heading, null, /*#__PURE__*/_react["default"].createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage["default"])('Course Accommodation')), (0, _formatMessage["default"])('Course Accommodation'));
|
|
82
82
|
}
|
|
83
83
|
var _this2$props = _this2.props,
|
|
84
84
|
mountNode = _this2$props.mountNode,
|
|
@@ -106,7 +106,7 @@ var AccommodationModal = exports.AccommodationModal = /*#__PURE__*/function (_Co
|
|
|
106
106
|
key: "labelText",
|
|
107
107
|
value: function labelText() {
|
|
108
108
|
if (this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
109
|
-
return (0, _formatMessage["default"])('
|
|
109
|
+
return (0, _formatMessage["default"])('Course Accommodation');
|
|
110
110
|
}
|
|
111
111
|
return this.props.studentName || (0, _formatMessage["default"])('Accommodations Modal');
|
|
112
112
|
}
|
|
@@ -308,7 +308,7 @@ var ModerateTableRow = exports.ModerateTableRow = (_dec = (0, _quizCommon.withSt
|
|
|
308
308
|
value: function renderName(name, avatarName) {
|
|
309
309
|
return (0, _emotion.jsx)(_uiLink.Link, {
|
|
310
310
|
onClick: this.onAccommodationsClick,
|
|
311
|
-
screenReaderLabel: (0, _formatMessage["default"])('Edit
|
|
311
|
+
screenReaderLabel: (0, _formatMessage["default"])('Edit course accommodations'),
|
|
312
312
|
"data-automation": "sdk-moderate-accommodations-edit",
|
|
313
313
|
margin: "0 small",
|
|
314
314
|
css: avatarName
|
|
@@ -89,7 +89,9 @@ var ModerateTray = exports.ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
89
89
|
_this2.props.closeTray();
|
|
90
90
|
});
|
|
91
91
|
(0, _defineProperty2["default"])(_this2, "renderTitleAndCloseButton", function () {
|
|
92
|
-
return /*#__PURE__*/_react["default"].createElement(_uiModal.Modal.Header,
|
|
92
|
+
return /*#__PURE__*/_react["default"].createElement(_uiModal.Modal.Header, {
|
|
93
|
+
"data-automation": "moderate-tray-header"
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_uiButtons.CloseButton, {
|
|
93
95
|
onClick: _this2.props.closeTray,
|
|
94
96
|
elementRef: _this2.setCloseRef,
|
|
95
97
|
placement: "end",
|
|
@@ -97,7 +99,7 @@ var ModerateTray = exports.ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
97
99
|
screenReaderLabel: (0, _formatMessage["default"])('Close')
|
|
98
100
|
}), _this2.props.atteqApplyChangesToCurrentQuizAttemptsEnabled ? /*#__PURE__*/_react["default"].createElement(_uiHeading.Heading, {
|
|
99
101
|
level: "h3"
|
|
100
|
-
}, /*#__PURE__*/_react["default"].createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage["default"])('
|
|
102
|
+
}, /*#__PURE__*/_react["default"].createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage["default"])('Current Quiz Accommodation')), (0, _formatMessage["default"])('Current Quiz Accommodation')) : _this2.renderHeading());
|
|
101
103
|
});
|
|
102
104
|
(0, _defineProperty2["default"])(_this2, "renderChildren", function () {
|
|
103
105
|
return _react["default"].Children.map(_this2.props.children, function (child) {
|
|
@@ -204,7 +206,7 @@ var ModerateTray = exports.ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
204
206
|
key: "labelText",
|
|
205
207
|
value: function labelText() {
|
|
206
208
|
if (this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
207
|
-
return (0, _formatMessage["default"])('
|
|
209
|
+
return (0, _formatMessage["default"])('Current Quiz Accommodation');
|
|
208
210
|
}
|
|
209
211
|
if (this.props.participantName) {
|
|
210
212
|
return this.props.participantName;
|
|
@@ -233,7 +235,13 @@ var ModerateTray = exports.ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
233
235
|
padding: "medium medium 0 medium"
|
|
234
236
|
}, this.renderNameWithTooltip()), /*#__PURE__*/_react["default"].createElement(_quizCommon.Flex.Item, {
|
|
235
237
|
padding: "medium medium 0"
|
|
236
|
-
},
|
|
238
|
+
}, _formatMessage["default"].rich('These settings apply to the <0>current quiz only, including the in-progress attempts.</0>', [function (_ref4) {
|
|
239
|
+
var children = _ref4.children;
|
|
240
|
+
return /*#__PURE__*/_react["default"].createElement(_uiText.Text, {
|
|
241
|
+
weight: "bold",
|
|
242
|
+
key: "0"
|
|
243
|
+
}, children);
|
|
244
|
+
}]))), /*#__PURE__*/_react["default"].createElement(_quizCommon.Flex.Item, {
|
|
237
245
|
shouldGrow: true,
|
|
238
246
|
padding: "medium medium 0"
|
|
239
247
|
}, this.renderChildren()), /*#__PURE__*/_react["default"].createElement(_quizCommon.Flex.Item, null, this.renderFooter())));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "22.3.2-rc.
|
|
3
|
+
"version": "22.3.2-rc.5+e2e8cea5d",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@instructure/emotion": "10.14.0",
|
|
47
47
|
"@instructure/grading-utils": "^1.0.0",
|
|
48
48
|
"@instructure/outcomes-ui": "3.2.3",
|
|
49
|
-
"@instructure/quiz-common": "22.3.2-rc.
|
|
50
|
-
"@instructure/quiz-i18n": "22.3.2-rc.
|
|
51
|
-
"@instructure/quiz-interactions": "22.3.2-rc.
|
|
52
|
-
"@instructure/quiz-number-input": "22.3.2-rc.
|
|
53
|
-
"@instructure/quiz-rce": "22.3.2-rc.
|
|
49
|
+
"@instructure/quiz-common": "22.3.2-rc.5+e2e8cea5d",
|
|
50
|
+
"@instructure/quiz-i18n": "22.3.2-rc.5+e2e8cea5d",
|
|
51
|
+
"@instructure/quiz-interactions": "22.3.2-rc.5+e2e8cea5d",
|
|
52
|
+
"@instructure/quiz-number-input": "22.3.2-rc.5+e2e8cea5d",
|
|
53
|
+
"@instructure/quiz-rce": "22.3.2-rc.5+e2e8cea5d",
|
|
54
54
|
"@instructure/ui-a11y-content": "10.14.0",
|
|
55
55
|
"@instructure/ui-alerts": "10.14.0",
|
|
56
56
|
"@instructure/ui-avatar": "10.14.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"file-saver": "~2.0.5",
|
|
110
110
|
"humps": "^2.0.0",
|
|
111
111
|
"immutable": "^3.8.1",
|
|
112
|
-
"instructure-validations": "22.3.2-rc.
|
|
112
|
+
"instructure-validations": "22.3.2-rc.5+e2e8cea5d",
|
|
113
113
|
"ipaddr.js": "^1.5.4",
|
|
114
114
|
"isomorphic-fetch": "^2.2.0",
|
|
115
115
|
"isuuid": "^0.1.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"jquery": "^2.2.3",
|
|
159
159
|
"karma-junit-reporter": "^2.0.1",
|
|
160
160
|
"most-subject": "^5.3.0",
|
|
161
|
-
"quiz-presets": "22.3.2-rc.
|
|
161
|
+
"quiz-presets": "22.3.2-rc.5+e2e8cea5d",
|
|
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": "e2e8cea5d113d6fee9b3ada18957744a1edd048e"
|
|
178
178
|
}
|