@instructure/quiz-core 20.36.2 → 20.38.0
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/banks/components/AddToBankModal/presenter.js +1 -2
- package/es/banks/components/AsyncSearch/index.js +1 -2
- package/es/banks/components/BankEntry/presenter.js +1 -2
- package/es/banks/components/BankSearch/presenter.js +1 -3
- package/es/banks/components/Banks/index.js +0 -1
- package/es/banks/components/Banks/presenter.js +5 -9
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +1 -2
- package/es/banks/components/CreateBankModal/presenter.js +1 -2
- package/es/banks/components/EditBankModal/presenter.js +1 -2
- package/es/banks/components/NavWrapper/externalStyles.js +5 -0
- package/es/banks/components/NavWrapper/styles.js +4 -3
- package/es/banks/components/SharingModal/RootAccountSharing.js +1 -2
- package/es/banks/components/SharingModal/ShareList/index.js +1 -2
- package/es/banks/components/SharingModal/index.js +0 -2
- package/es/banks/components/SharingModal/presenter.js +18 -78
- package/es/building/api/stimuli.js +2 -1
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +14 -7
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +11 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +1 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +40 -23
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -29
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +1 -5
- package/es/common/actions/modifications.js +3 -2
- package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +11 -0
- package/es/common/components/AccessCodeTextInput/index.js +47 -0
- package/es/common/components/ImportModal/presenter.js +1 -2
- package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +19 -0
- package/es/common/components/MaskedTextInput/index.js +64 -0
- package/es/common/components/layout/Page/styles.js +7 -4
- package/es/common/components/layout/Page/theme.js +1 -2
- package/es/common/components/layout/header/Calculator/presenter.js +2 -2
- package/es/common/components/layout/navbar/externalStyles.js +7 -0
- package/es/common/components/layout/navbar/styles.js +4 -5
- package/es/common/components/layout/sidebar/Sidebar/externalStyles.js +10 -0
- package/es/common/components/layout/sidebar/Sidebar/index.js +26 -4
- package/es/common/components/layout/sidebar/Sidebar/styles.js +4 -6
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +13 -7
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +14 -7
- package/es/common/components/resources/item/ItemEdit/presenter.js +2 -4
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +2 -2
- package/es/common/components/resources/quiz/instructions/styles.js +8 -6
- package/es/common/components/resources/quiz/instructions/theme.js +1 -2
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +3 -2
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +14 -4
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +1 -5
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +0 -2
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +51 -37
- package/es/common/components/resources/stimulus/StimulusShow/index.js +10 -4
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +0 -7
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +0 -3
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -2
- package/es/common/components/shared/InteractionTypes/index.js +4 -1
- package/es/common/components/shared/InteractionTypes/presenter.js +38 -15
- package/es/common/components/shared/TagSelect/presenter.js +1 -2
- package/es/common/components/shared/TimeUnitsInput/index.js +11 -9
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +3 -0
- package/es/common/records/QuizEntry.js +5 -0
- package/es/common/records/Stimulus.js +2 -1
- package/es/common/reducers/modifications.js +6 -3
- package/es/common/util/warningHelpers.js +15 -5
- package/es/index.js +3 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +2 -2
- package/es/moderating/components/resources/AccommodationsModal/index.js +5 -13
- package/es/moderating/components/resources/ModerateTable/presenter.js +5 -4
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +21 -31
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +1 -2
- package/es/reporting/components/resources/ReportCard/index.js +1 -2
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -2
- package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +1 -1
- package/es/taking/api/taking.js +4 -0
- package/lib/banks/components/AddToBankModal/presenter.js +1 -2
- package/lib/banks/components/AsyncSearch/index.js +8 -9
- package/lib/banks/components/BankEntry/presenter.js +1 -2
- package/lib/banks/components/BankSearch/presenter.js +4 -6
- package/lib/banks/components/Banks/index.js +0 -1
- package/lib/banks/components/Banks/presenter.js +9 -13
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +1 -2
- package/lib/banks/components/CreateBankModal/presenter.js +1 -2
- package/lib/banks/components/EditBankModal/presenter.js +1 -2
- package/lib/banks/components/NavWrapper/externalStyles.js +12 -0
- package/lib/banks/components/NavWrapper/styles.js +5 -3
- package/lib/banks/components/SharingModal/RootAccountSharing.js +3 -4
- package/lib/banks/components/SharingModal/ShareList/index.js +3 -4
- package/lib/banks/components/SharingModal/index.js +0 -2
- package/lib/banks/components/SharingModal/presenter.js +20 -80
- package/lib/building/api/stimuli.js +2 -1
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +14 -7
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +11 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +39 -22
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -29
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +1 -5
- package/lib/common/actions/modifications.js +3 -2
- package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +20 -0
- package/lib/common/components/AccessCodeTextInput/index.js +57 -0
- package/lib/common/components/ImportModal/presenter.js +1 -2
- package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +29 -0
- package/lib/common/components/MaskedTextInput/index.js +74 -0
- package/lib/common/components/layout/Page/styles.js +7 -4
- package/lib/common/components/layout/Page/theme.js +1 -2
- package/lib/common/components/layout/header/Calculator/presenter.js +2 -2
- package/lib/common/components/layout/navbar/externalStyles.js +14 -0
- package/lib/common/components/layout/navbar/styles.js +5 -5
- package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +17 -0
- package/lib/common/components/layout/sidebar/Sidebar/index.js +25 -3
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +4 -6
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +15 -9
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +16 -9
- package/lib/common/components/resources/item/ItemEdit/presenter.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -2
- package/lib/common/components/resources/quiz/instructions/styles.js +8 -6
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -2
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +3 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +14 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +1 -5
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +56 -42
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +9 -3
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +0 -7
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +0 -3
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +3 -4
- package/lib/common/components/shared/InteractionTypes/index.js +4 -1
- package/lib/common/components/shared/InteractionTypes/presenter.js +38 -15
- package/lib/common/components/shared/TagSelect/presenter.js +4 -5
- package/lib/common/components/shared/TimeUnitsInput/index.js +12 -10
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +3 -0
- package/lib/common/records/QuizEntry.js +5 -0
- package/lib/common/records/Stimulus.js +2 -1
- package/lib/common/reducers/modifications.js +6 -3
- package/lib/common/util/warningHelpers.js +15 -5
- package/lib/index.js +22 -6
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +7 -7
- package/lib/moderating/components/resources/AccommodationsModal/index.js +5 -13
- package/lib/moderating/components/resources/ModerateTable/presenter.js +7 -6
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +21 -31
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +6 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +9 -9
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +5 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +8 -9
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +20 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +9 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +20 -21
- package/lib/reporting/components/resources/ReportCard/index.js +1 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +9 -10
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +2 -2
- package/lib/taking/api/taking.js +4 -0
- package/package.json +9 -12
|
@@ -73,9 +73,12 @@ export default (function () {
|
|
|
73
73
|
quizEntries: [TEMPORARY_QUIZ_ENTRY_ID]
|
|
74
74
|
};
|
|
75
75
|
var stateWithStimulusQuizMods = updateObjectOfType(state, action.payload.quizId, stimulusQuizMods, 'quizzes');
|
|
76
|
-
var tempStimulus = new Stimulus({
|
|
77
|
-
id: TEMPORARY_STIMULUS_ID
|
|
78
|
-
|
|
76
|
+
var tempStimulus = new Stimulus(_objectSpread({
|
|
77
|
+
id: TEMPORARY_STIMULUS_ID,
|
|
78
|
+
passage: action.payload.isPassage
|
|
79
|
+
}, action.payload.isPassage && {
|
|
80
|
+
orientation: 'top'
|
|
81
|
+
})).toJS();
|
|
79
82
|
var stateWithStimulusMods = updateObjectOfType(stateWithStimulusQuizMods, TEMPORARY_STIMULUS_ID, tempStimulus, 'stimuli');
|
|
80
83
|
var stimulusPosition = action.payload.position === 0 ? 0.9 : action.payload.position - 0.1;
|
|
81
84
|
var stimulusQuizEntryMods = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import partial from 'lodash/partial';
|
|
3
3
|
import { Text } from '@instructure/ui-text';
|
|
4
|
+
import { View } from '@instructure/ui-view';
|
|
4
5
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
5
6
|
var propsForVersioningWrapper = function propsForVersioningWrapper(copyDescription, immutableDescription, isImmutable, shouldClone, setShouldClone, switchOffEditing, isEditing) {
|
|
6
7
|
var alertType = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : 'warning';
|
|
@@ -82,12 +83,21 @@ export var propsForItemBankEntryEditPrompt = function propsForItemBankEntryEditP
|
|
|
82
83
|
}, /*#__PURE__*/React.createElement("b", null, t('Banked Item.')), "\xA0", t('Some options and the points value can be changed here but editing must take place within the bank.'))]));
|
|
83
84
|
};
|
|
84
85
|
export var propsForStimulusBankEntryEditPrompt = function propsForStimulusBankEntryEditPrompt() {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
var isPassage = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
87
|
+
var title = isPassage ? t('Banked Passage.') : t('Banked Stimulus.');
|
|
88
|
+
var content = isPassage ? t('Editing of this passage must take place within the bank.') : t('Editing of this stimulus must take place within the bank.');
|
|
89
|
+
var promptComponent = /*#__PURE__*/React.createElement(View, {
|
|
90
|
+
as: "div",
|
|
89
91
|
"data-automation": "sdk-editInBanks-warning"
|
|
90
|
-
}, /*#__PURE__*/React.createElement(
|
|
92
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
93
|
+
weight: "bold"
|
|
94
|
+
}, title), /*#__PURE__*/React.createElement(View, {
|
|
95
|
+
margin: "0 0 0 xx-small"
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Text, null, content)));
|
|
97
|
+
for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
|
98
|
+
args[_key5 - 1] = arguments[_key5];
|
|
99
|
+
}
|
|
100
|
+
return propsForBankEntryEditPrompt.apply(void 0, args.concat([promptComponent]));
|
|
91
101
|
};
|
|
92
102
|
export var propsForBankEntryUnauthorizedEdit = function propsForBankEntryUnauthorizedEdit(isEditing) {
|
|
93
103
|
if (!isEditing) return {
|
package/es/index.js
CHANGED
|
@@ -79,7 +79,9 @@ export { Provider } from "./common/react-redux.js";
|
|
|
79
79
|
export { FormattedTimer } from "./common/components/shared/FormattedDuration/index.js";
|
|
80
80
|
export { default as TagWrapper } from "./common/components/shared/TagWrapper/index.js";
|
|
81
81
|
export { RetryGradePassbackButton } from "./moderating/components/resources/RetryGradePassbackButton/index.js";
|
|
82
|
-
export { GenericAsyncSearch } from "./common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js";
|
|
82
|
+
export { GenericAsyncSearch } from "./common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js";
|
|
83
|
+
export { MaskedTextInput } from "./common/components/MaskedTextInput/index.js";
|
|
84
|
+
export { AccessCodeTextInput } from "./common/components/AccessCodeTextInput/index.js"; // Utilities
|
|
83
85
|
export { environment as config } from "./config.js";
|
|
84
86
|
export { Fetcher } from "./common/util/Fetcher.js";
|
|
85
87
|
export { httpHeaders } from "./common/util/httpHeaders.js";
|
|
@@ -6,7 +6,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { View } from '@instructure/ui-view';
|
|
9
|
-
import { SimpleSelect } from '@instructure/
|
|
9
|
+
import { SimpleSelect } from '@instructure/quiz-common';
|
|
10
10
|
import TimeUnitsInput from "../../../../../common/components/shared/TimeUnitsInput/index.js";
|
|
11
11
|
import ExtraTimeMultiplier from "../ExtraTimeMultiplier/index.js";
|
|
12
12
|
import { HOUR_IN_SECONDS } from "../../../../../common/components/shared/FormattedDuration/index.js";
|
|
@@ -94,7 +94,7 @@ export var ExtraTimeSettings = /*#__PURE__*/function (_Component) {
|
|
|
94
94
|
minutesLabel: t('Minutes'),
|
|
95
95
|
minutesDataAutomation: "sdk-moderation-time-minutes",
|
|
96
96
|
description: t('Additional time'),
|
|
97
|
-
margin: "medium none"
|
|
97
|
+
margin: "medium none none none"
|
|
98
98
|
}), timeAdjustmentType === 'timerMultiplierEnabled' && /*#__PURE__*/React.createElement(ExtraTimeMultiplier, {
|
|
99
99
|
onChange: this.onChangeMultiplier,
|
|
100
100
|
timerMultiplierValue: timerSettings.timerMultiplierValue,
|
|
@@ -4,7 +4,6 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { Text } from '@instructure/ui-text';
|
|
8
7
|
import { Tooltip } from '@instructure/ui-tooltip';
|
|
9
8
|
import { Modal } from '@instructure/ui-modal';
|
|
10
9
|
import { TruncateText } from '@instructure/ui-truncate-text';
|
|
@@ -13,8 +12,6 @@ import { View } from '@instructure/ui-view';
|
|
|
13
12
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
14
13
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
14
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
16
|
-
import { featureOn } from "../../../../common/util/featureCheck.js";
|
|
17
|
-
import { IfFeature } from "../../../../common/components/shared/IfFeature/index.js";
|
|
18
15
|
export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
19
16
|
_inherits(AccommodationModal, _Component);
|
|
20
17
|
var _super = _createSuper(AccommodationModal);
|
|
@@ -57,7 +54,7 @@ export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
|
57
54
|
}, _this.props.studentName));
|
|
58
55
|
};
|
|
59
56
|
_this.renderHeading = function () {
|
|
60
|
-
if (
|
|
57
|
+
if (_this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
61
58
|
return /*#__PURE__*/React.createElement(Heading, null, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Student Accommodation')), t('Student Accommodation'));
|
|
62
59
|
}
|
|
63
60
|
var _this$props = _this.props,
|
|
@@ -84,7 +81,7 @@ export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
|
84
81
|
_createClass(AccommodationModal, [{
|
|
85
82
|
key: "labelText",
|
|
86
83
|
value: function labelText() {
|
|
87
|
-
if (
|
|
84
|
+
if (this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
88
85
|
return t('Student Accommodation');
|
|
89
86
|
}
|
|
90
87
|
return this.props.studentName || t('Accommodations Modal');
|
|
@@ -93,7 +90,6 @@ export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
|
93
90
|
key: "render",
|
|
94
91
|
value: function render() {
|
|
95
92
|
var _this$props2 = this.props,
|
|
96
|
-
studentName = _this$props2.studentName,
|
|
97
93
|
open = _this$props2.open,
|
|
98
94
|
closeModal = _this$props2.closeModal,
|
|
99
95
|
mountNode = _this$props2.mountNode,
|
|
@@ -109,12 +105,7 @@ export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
|
109
105
|
placement: "end",
|
|
110
106
|
offset: "medium",
|
|
111
107
|
screenReaderLabel: t('Close')
|
|
112
|
-
}), this.renderHeading()), /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(
|
|
113
|
-
name: "atteq_apply_changes_to_current_quiz_attempts"
|
|
114
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
115
|
-
weight: "bold",
|
|
116
|
-
as: "h2"
|
|
117
|
-
}, studentName)), children), /*#__PURE__*/React.createElement(Modal.Footer, null, /*#__PURE__*/React.createElement(Button, {
|
|
108
|
+
}), this.renderHeading()), /*#__PURE__*/React.createElement(Modal.Body, null, children), /*#__PURE__*/React.createElement(Modal.Footer, null, /*#__PURE__*/React.createElement(Button, {
|
|
118
109
|
onClick: this.cancelAction,
|
|
119
110
|
margin: "xxx-small",
|
|
120
111
|
"data-automation": "sdk-moderation-cancel"
|
|
@@ -137,7 +128,8 @@ AccommodationModal.propTypes = {
|
|
|
137
128
|
onDismiss: PropTypes.func,
|
|
138
129
|
mountNode: PropTypes.string,
|
|
139
130
|
// this is just to fix chromatic
|
|
140
|
-
children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)])
|
|
131
|
+
children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
|
|
132
|
+
atteqApplyChangesToCurrentQuizAttemptsEnabled: PropTypes.bool.isRequired
|
|
141
133
|
};
|
|
142
134
|
AccommodationModal.defaultProps = {
|
|
143
135
|
children: [],
|
|
@@ -11,7 +11,6 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
12
12
|
import { Text } from '@instructure/ui-text';
|
|
13
13
|
import { Link } from '@instructure/ui-link';
|
|
14
|
-
import { Flex } from '@instructure/ui-flex';
|
|
15
14
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
16
15
|
import { Table } from '@instructure/ui-table';
|
|
17
16
|
import { IconButton } from '@instructure/ui-buttons';
|
|
@@ -26,7 +25,7 @@ import Spinner from "../../../../common/components/shared/spinner/Spinner.js";
|
|
|
26
25
|
import generateStyle from "./styles.js";
|
|
27
26
|
import generateComponentTheme from "./theme.js";
|
|
28
27
|
import ResetQuiz from "../../sidebar/ResetQuiz/index.js";
|
|
29
|
-
import { OUTSTANDING_QUIZZES_MODAL, withStyleOverrides } from '@instructure/quiz-common';
|
|
28
|
+
import { Flex, OUTSTANDING_QUIZZES_MODAL, withStyleOverrides } from '@instructure/quiz-common';
|
|
30
29
|
import { chunk } from 'lodash';
|
|
31
30
|
var _ref2 = jsx(Flex.Item, null, jsx(IconInfoLine, null));
|
|
32
31
|
var _ref4 = jsx(IconConfigureLine, null);
|
|
@@ -325,7 +324,8 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
325
324
|
css: this.props.styles.page
|
|
326
325
|
}, jsx(ModerateTray, {
|
|
327
326
|
onClose: this.onCloseTray,
|
|
328
|
-
onSave: this.props.onSaveTray
|
|
327
|
+
onSave: this.props.onSaveTray,
|
|
328
|
+
atteqApplyChangesToCurrentQuizAttemptsEnabled: this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled
|
|
329
329
|
}, jsx(Flex.Item, null, !this.props.anonymousGrading && _ref6), this.props.children), this.renderContent());
|
|
330
330
|
}
|
|
331
331
|
}]);
|
|
@@ -380,7 +380,8 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
380
380
|
getQuizSessions: PropTypes.func.isRequired,
|
|
381
381
|
addSuccess: PropTypes.func.isRequired,
|
|
382
382
|
styles: PropTypes.object,
|
|
383
|
-
makeStyles: PropTypes.func
|
|
383
|
+
makeStyles: PropTypes.func,
|
|
384
|
+
atteqApplyChangesToCurrentQuizAttemptsEnabled: PropTypes.bool.isRequired
|
|
384
385
|
}, _ModerateTable.defaultProps = {
|
|
385
386
|
anonymousGrading: false,
|
|
386
387
|
children: void 0,
|
|
@@ -5,17 +5,16 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
8
|
-
import { Flex } from '@instructure/ui-flex';
|
|
9
8
|
import { View } from '@instructure/ui-view';
|
|
10
9
|
import { Text } from '@instructure/ui-text';
|
|
10
|
+
import { Heading } from '@instructure/ui-heading';
|
|
11
11
|
import { Tooltip } from '@instructure/ui-tooltip';
|
|
12
12
|
import { Tray } from '@instructure/ui-tray';
|
|
13
13
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
14
14
|
import { TruncateText } from '@instructure/ui-truncate-text';
|
|
15
15
|
import { Modal } from '@instructure/ui-modal';
|
|
16
|
-
import { liveRegion } from '@instructure/quiz-common';
|
|
16
|
+
import { Flex, liveRegion } from '@instructure/quiz-common';
|
|
17
17
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
18
|
-
import { featureOn } from "../../../../common/util/featureCheck.js";
|
|
19
18
|
export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
20
19
|
_inherits(ModerateTray, _Component);
|
|
21
20
|
var _super = _createSuper(ModerateTray);
|
|
@@ -67,20 +66,15 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
67
66
|
_this.props.closeTray();
|
|
68
67
|
};
|
|
69
68
|
_this.renderTitleAndCloseButton = function () {
|
|
70
|
-
return /*#__PURE__*/React.createElement(
|
|
71
|
-
justifyItems: "space-between"
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Flex.Item, {
|
|
73
|
-
shouldGrow: true,
|
|
74
|
-
shouldShrink: true
|
|
75
|
-
}, featureOn('atteq_apply_changes_to_current_quiz_attempts') ? /*#__PURE__*/React.createElement(Text, {
|
|
76
|
-
as: "h2",
|
|
77
|
-
size: "large",
|
|
78
|
-
weight: "bold"
|
|
79
|
-
}, t('In Progress Accommodation')) : _this.renderHeading()), /*#__PURE__*/React.createElement(Flex.Item, null, /*#__PURE__*/React.createElement(CloseButton, {
|
|
69
|
+
return /*#__PURE__*/React.createElement(Modal.Header, null, /*#__PURE__*/React.createElement(CloseButton, {
|
|
80
70
|
onClick: _this.props.closeTray,
|
|
81
71
|
elementRef: _this.setCloseRef,
|
|
72
|
+
placement: "end",
|
|
73
|
+
offset: "medium",
|
|
82
74
|
screenReaderLabel: t('Close')
|
|
83
|
-
})
|
|
75
|
+
}), _this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled ? /*#__PURE__*/React.createElement(Heading, {
|
|
76
|
+
level: "h3"
|
|
77
|
+
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('In Progress Accommodation')), t('In Progress Accommodation')) : _this.renderHeading());
|
|
84
78
|
};
|
|
85
79
|
_this.renderChildren = function () {
|
|
86
80
|
return React.Children.map(_this.props.children, function (child) {
|
|
@@ -128,12 +122,12 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
128
122
|
/*#__PURE__*/
|
|
129
123
|
// When using TruncateText inside a Tooltip, a focusable wrapper element is required
|
|
130
124
|
// tabIndex={0} makes the div focusable and allows KO users to access the tooltip
|
|
131
|
-
React.createElement(
|
|
125
|
+
React.createElement(Heading, {
|
|
132
126
|
display: "block",
|
|
133
127
|
borderRadius: "small",
|
|
134
128
|
position: "relative",
|
|
135
129
|
withFocusOutline: this.state.titleIsTruncated && focused,
|
|
136
|
-
|
|
130
|
+
level: "h3",
|
|
137
131
|
tabIndex: this.state.isTruncated ? 0 : null
|
|
138
132
|
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, this.labelText()), /*#__PURE__*/React.createElement(TruncateText, {
|
|
139
133
|
"aria-hidden": "true",
|
|
@@ -146,9 +140,6 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
146
140
|
}, {
|
|
147
141
|
key: "renderName",
|
|
148
142
|
value: function renderName(renderProps) {
|
|
149
|
-
if (!featureOn('atteq_apply_changes_to_current_quiz_attempts')) {
|
|
150
|
-
return null;
|
|
151
|
-
}
|
|
152
143
|
var focused = renderProps && renderProps.focused;
|
|
153
144
|
return (
|
|
154
145
|
/*#__PURE__*/
|
|
@@ -159,8 +150,7 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
159
150
|
borderRadius: "small",
|
|
160
151
|
position: "relative",
|
|
161
152
|
withFocusOutline: this.state.participantNameIsTruncated && focused,
|
|
162
|
-
tabIndex: this.state.participantNameIsTruncated ? 0 : null
|
|
163
|
-
margin: "small 0"
|
|
153
|
+
tabIndex: this.state.participantNameIsTruncated ? 0 : null
|
|
164
154
|
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, this.props.participantName), /*#__PURE__*/React.createElement(TruncateText, {
|
|
165
155
|
"aria-hidden": "true",
|
|
166
156
|
maxLines: 2,
|
|
@@ -175,9 +165,6 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
175
165
|
key: "renderNameWithTooltip",
|
|
176
166
|
value: function renderNameWithTooltip() {
|
|
177
167
|
var _this3 = this;
|
|
178
|
-
if (!featureOn('atteq_apply_changes_to_current_quiz_attempts')) {
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
168
|
return this.state.titleIsTruncated ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
182
169
|
placement: "start",
|
|
183
170
|
renderTip: this.props.participantName,
|
|
@@ -192,7 +179,7 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
192
179
|
}, {
|
|
193
180
|
key: "labelText",
|
|
194
181
|
value: function labelText() {
|
|
195
|
-
if (
|
|
182
|
+
if (this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
196
183
|
return t('In Progress Accommodation');
|
|
197
184
|
}
|
|
198
185
|
if (this.props.participantName) {
|
|
@@ -211,19 +198,21 @@ export var ModerateTray = /*#__PURE__*/function (_Component) {
|
|
|
211
198
|
onExited: this.handleTrayExited,
|
|
212
199
|
open: this.props.isOpen,
|
|
213
200
|
placement: "end",
|
|
214
|
-
size:
|
|
201
|
+
size: this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled ? 'regular' : void 0,
|
|
215
202
|
shouldCloseOnDocumentClick: true,
|
|
216
203
|
ref: this.setTrayRef
|
|
217
204
|
}, /*#__PURE__*/React.createElement(Flex, {
|
|
218
205
|
as: "div",
|
|
219
206
|
direction: "column",
|
|
220
207
|
height: "100vh"
|
|
221
|
-
}, /*#__PURE__*/React.createElement(Flex.Item, {
|
|
222
|
-
padding: "
|
|
223
|
-
}, this.
|
|
208
|
+
}, this.renderTitleAndCloseButton(), this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled && /*#__PURE__*/React.createElement(Flex.Item, {
|
|
209
|
+
padding: "medium medium 0 medium"
|
|
210
|
+
}, this.renderNameWithTooltip()), /*#__PURE__*/React.createElement(Flex.Item, {
|
|
211
|
+
padding: "medium"
|
|
212
|
+
}, t('These settings apply to current and all future attempts.')), /*#__PURE__*/React.createElement(Flex.Item, {
|
|
224
213
|
shouldGrow: true,
|
|
225
214
|
padding: "0 medium"
|
|
226
|
-
}, this.
|
|
215
|
+
}, this.renderChildren()), this.props.atteqApplyChangesToCurrentQuizAttemptsEnabled && /*#__PURE__*/React.createElement(Flex.Item, null, this.renderFooter())));
|
|
227
216
|
}
|
|
228
217
|
}]);
|
|
229
218
|
ModerateTray.displayName = "ModerateTray";
|
|
@@ -235,7 +224,8 @@ ModerateTray.propTypes = {
|
|
|
235
224
|
isOpen: PropTypes.bool.isRequired,
|
|
236
225
|
onClose: PropTypes.func,
|
|
237
226
|
onSave: PropTypes.func.isRequired,
|
|
238
|
-
participantName: PropTypes.string
|
|
227
|
+
participantName: PropTypes.string,
|
|
228
|
+
atteqApplyChangesToCurrentQuizAttemptsEnabled: PropTypes.bool.isRequired
|
|
239
229
|
};
|
|
240
230
|
ModerateTray.defaultProps = {
|
|
241
231
|
onClose: void 0,
|
|
@@ -5,7 +5,6 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
5
5
|
var _dec, _class, _MatchingTypeTable;
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { Component } from 'react';
|
|
8
|
-
import { Flex } from '@instructure/ui-flex';
|
|
9
8
|
import generateStyle from "./styles.js";
|
|
10
9
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
11
10
|
import { Table } from '@instructure/ui-table';
|
|
@@ -17,7 +16,7 @@ import MatchingTypeOrderer from "../utils/matchingTypeOrderer.js";
|
|
|
17
16
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
18
17
|
import generateComponentTheme from "./theme.js";
|
|
19
18
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
20
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
19
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
21
20
|
var _ref = jsx(IconCheckSolid, null);
|
|
22
21
|
var _ref2 = jsx(Flex.Item, {
|
|
23
22
|
width: "46px",
|
|
@@ -4,7 +4,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
4
4
|
import React, { Component } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { choiceTypeObject } from "../../../../common/propTypes.js";
|
|
7
|
-
import { Flex } from '@instructure/
|
|
7
|
+
import { Flex } from '@instructure/quiz-common';
|
|
8
8
|
import ChoiceTypeTable from "../../shared/ChoiceTypeTable/index.js";
|
|
9
9
|
import { Text } from '@instructure/ui-text';
|
|
10
10
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
@@ -16,9 +16,8 @@ import { jsx } from '@instructure/emotion';
|
|
|
16
16
|
import ChoiceTypeWithInfo from "./ChoiceTypeWithInfo/index.js";
|
|
17
17
|
import generateStyle from "./styles.js";
|
|
18
18
|
import generateComponentTheme from "./theme.js";
|
|
19
|
-
import { Flex } from '@instructure/ui-flex';
|
|
20
19
|
import { numericTypeAnswerSummaryPropType } from "../../../common/propTypes.js";
|
|
21
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
20
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
22
21
|
export var NumericType = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_NumericType = /*#__PURE__*/function (_Component) {
|
|
23
22
|
_inherits(NumericType, _Component);
|
|
24
23
|
var _super = _createSuper(NumericType);
|
|
@@ -6,7 +6,6 @@ var _dec, _class, _ChoiceGroupTypeTable;
|
|
|
6
6
|
import { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { choiceTypeObject } from "../../../../common/propTypes.js";
|
|
9
|
-
import { Flex } from '@instructure/ui-flex';
|
|
10
9
|
import { Text } from '@instructure/ui-text';
|
|
11
10
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
11
|
import ChoiceTypeTable from "../../shared/ChoiceTypeTable/index.js";
|
|
@@ -15,7 +14,7 @@ import { jsx } from '@instructure/emotion';
|
|
|
15
14
|
import generateStyle from "./styles.js";
|
|
16
15
|
import generateComponentTheme from "./theme.js";
|
|
17
16
|
import ExpandableCard from "../../shared/ExpandableCard/index.js";
|
|
18
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
17
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
19
18
|
export var ChoiceGroupTypeTable = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ChoiceGroupTypeTable = /*#__PURE__*/function (_Component) {
|
|
20
19
|
_inherits(ChoiceGroupTypeTable, _Component);
|
|
21
20
|
var _super = _createSuper(ChoiceGroupTypeTable);
|
|
@@ -5,14 +5,13 @@ var _dec, _class, _AfsTableWrapper;
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { Component } from 'react';
|
|
7
7
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
8
|
-
import { Flex } from '@instructure/ui-flex';
|
|
9
8
|
import { Heading } from '@instructure/ui-heading';
|
|
10
9
|
import { jsx } from '@instructure/emotion';
|
|
11
10
|
import generateStyle from "./styles.js";
|
|
12
11
|
import PropTypes from 'prop-types';
|
|
13
12
|
import { noAnswerMissing } from "./popoverContent.js";
|
|
14
13
|
import MetricPopover from "../../../MetricPopover/index.js";
|
|
15
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
14
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
16
15
|
export var AfsTableWrapper = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_AfsTableWrapper = /*#__PURE__*/function (_Component) {
|
|
17
16
|
_inherits(AfsTableWrapper, _Component);
|
|
18
17
|
var _super = _createSuper(AfsTableWrapper);
|
|
@@ -12,9 +12,8 @@ import { IconCheckSolid, IconXSolid, IconNoSolid, IconGradebookSolid } from '@in
|
|
|
12
12
|
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import generateComponentTheme from "./theme.js";
|
|
14
14
|
import generateStyle from "./styles.js";
|
|
15
|
-
import { Flex } from '@instructure/ui-flex';
|
|
16
15
|
import { Text } from '@instructure/ui-text';
|
|
17
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
16
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
18
17
|
var noAnswerKey = 'noAnswer';
|
|
19
18
|
var incorrectKey = 'incorrect';
|
|
20
19
|
var correctKey = 'correct';
|
|
@@ -16,9 +16,8 @@ import generateStyle from "./styles.js";
|
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
17
|
import { IconCheckSolid, IconXSolid } from '@instructure/ui-icons';
|
|
18
18
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
19
|
-
import { Flex } from '@instructure/ui-flex';
|
|
20
19
|
import { Text } from '@instructure/ui-text';
|
|
21
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
20
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
22
21
|
var correctAttribute = 'correct';
|
|
23
22
|
var incorrectAttribute = 'incorrect';
|
|
24
23
|
var _ref = jsx(IconCheckSolid, null);
|
|
@@ -5,14 +5,13 @@ var _dec, _class, _ExpandableCard;
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { Component } from 'react';
|
|
7
7
|
import Card from "../../../../../../../common/components/shared/Card/index.js";
|
|
8
|
-
import { Flex } from '@instructure/ui-flex';
|
|
9
8
|
import { jsx } from '@instructure/emotion';
|
|
10
9
|
import ExpandButton from "../../../../../../../common/components/shared/ExpandButton/index.js";
|
|
11
10
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
11
|
import generateStyle from "./styles.js";
|
|
13
12
|
import generateComponentTheme from "./theme.js";
|
|
14
13
|
import PropTypes from 'prop-types';
|
|
15
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
14
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
16
15
|
export var ExpandableCard = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ExpandableCard = /*#__PURE__*/function (_Component) {
|
|
17
16
|
_inherits(ExpandableCard, _Component);
|
|
18
17
|
var _super = _createSuper(ExpandableCard);
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js
CHANGED
|
@@ -21,10 +21,9 @@ import AnalysisPopoverMetric from "../AnalysisPopoverMetric/index.js";
|
|
|
21
21
|
import { interactionTypesNameDictionary } from "../../../../../common/util/interactionTypeMetadata.js";
|
|
22
22
|
import AnswerFrequencySummary from "../AnswerFrequencySummary/index.js";
|
|
23
23
|
import { afsFlags, itemAnalysisPropType } from "../../common/propTypes.js";
|
|
24
|
-
import { Flex } from '@instructure/ui-flex';
|
|
25
24
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
26
25
|
import { ensureRCEContentIsLoaded } from "../../../../../common/util/rceChecker.js";
|
|
27
|
-
import { RICH_FILL_BLANK_SLUG, withStyleOverrides } from '@instructure/quiz-common';
|
|
26
|
+
import { Flex, RICH_FILL_BLANK_SLUG, withStyleOverrides } from '@instructure/quiz-common';
|
|
28
27
|
var parser = new DOMParser();
|
|
29
28
|
var parsererrorElement = 'parsererror';
|
|
30
29
|
var parseType = 'text/html';
|
|
@@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
10
10
|
import { Text } from '@instructure/ui-text';
|
|
11
11
|
import { Link } from '@instructure/ui-link';
|
|
12
|
-
import { Flex } from '@instructure/ui-flex';
|
|
13
12
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
14
13
|
import { jsx } from '@instructure/emotion';
|
|
15
14
|
import Card from "../../../../../common/components/shared/Card/index.js";
|
|
@@ -21,7 +20,7 @@ import { AnalysisUpdateDate } from "../../common/AnalysisUpdateDate/index.js";
|
|
|
21
20
|
import { itemAnalysisPropType, quizAnalysisPropType } from "../../common/propTypes.js";
|
|
22
21
|
import { csvFormat } from "../exportFormats.js";
|
|
23
22
|
import { ExportButton } from "../ExportButton/index.js";
|
|
24
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
23
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
25
24
|
export var NewQuizAndItemAnalysisReportCardPresenter = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_NewQuizAndItemAnalysisReportCardPresenter = /*#__PURE__*/function (_Component) {
|
|
26
25
|
_inherits(NewQuizAndItemAnalysisReportCardPresenter, _Component);
|
|
27
26
|
var _super = _createSuper(NewQuizAndItemAnalysisReportCardPresenter);
|
|
@@ -9,7 +9,6 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
9
9
|
import NewItemAnalysis from "./NewItemAnalysis/index.js";
|
|
10
10
|
import NewQuizAnalysis from "./NewQuizAnalysis/index.js";
|
|
11
11
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
|
-
import { Flex } from '@instructure/ui-flex';
|
|
13
12
|
import { AnalysisUpdateDate } from "../common/AnalysisUpdateDate/index.js";
|
|
14
13
|
import { itemAnalysisPropType, quizAnalysisPropType } from "../common/propTypes.js";
|
|
15
14
|
import PropTypes from 'prop-types';
|
|
@@ -26,7 +25,7 @@ import { ExportButton } from "./ExportButton/index.js";
|
|
|
26
25
|
import { jsx } from '@instructure/emotion';
|
|
27
26
|
import generateStyle from "./styles.js";
|
|
28
27
|
import generateComponentTheme from "./theme.js";
|
|
29
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
28
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
30
29
|
var _ref = jsx(Flex.Item, {
|
|
31
30
|
align: "center"
|
|
32
31
|
}, jsx(PresentationContent, null, jsx(Img, {
|
|
@@ -12,9 +12,8 @@ import { jsx } from '@instructure/emotion';
|
|
|
12
12
|
import Card from "../../../../common/components/shared/Card/index.js";
|
|
13
13
|
import generateStyle from "./styles.js";
|
|
14
14
|
import generateComponentTheme from "./theme.js";
|
|
15
|
-
import { Flex } from '@instructure/ui-flex';
|
|
16
15
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
17
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
16
|
+
import { Flex, withStyleOverrides } from '@instructure/quiz-common';
|
|
18
17
|
export var ReportCard = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ReportCard = /*#__PURE__*/function (_Component) {
|
|
19
18
|
_inherits(ReportCard, _Component);
|
|
20
19
|
var _super = _createSuper(ReportCard);
|
|
@@ -6,7 +6,6 @@ var _dec, _class, _StudentAnalysisReportCardPresenter;
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import { Text } from '@instructure/ui-text';
|
|
8
8
|
import { Link } from '@instructure/ui-link';
|
|
9
|
-
import { Flex } from '@instructure/ui-flex';
|
|
10
9
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
11
10
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
11
|
import Card from "../../../../../common/components/shared/Card/index.js";
|
|
@@ -14,7 +13,7 @@ import { generateStyle } from "./styles.js";
|
|
|
14
13
|
import { generateComponentTheme } from "./theme.js";
|
|
15
14
|
import { ExportButton } from "../../common/ExportButton/index.js";
|
|
16
15
|
import Spinner from "../../../../../common/components/shared/spinner/Spinner.js";
|
|
17
|
-
import { STUDENT_ANALYSES, withStyleOverrides } from '@instructure/quiz-common';
|
|
16
|
+
import { Flex, STUDENT_ANALYSES, withStyleOverrides } from '@instructure/quiz-common';
|
|
18
17
|
import { AnalysisUpdateDate } from "../../common/AnalysisUpdateDate/index.js";
|
|
19
18
|
export var StudentAnalysisReportCardPresenter = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_StudentAnalysisReportCardPresenter = /*#__PURE__*/function (_Component) {
|
|
20
19
|
_inherits(StudentAnalysisReportCardPresenter, _Component);
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
8
8
|
import { displayDateAndTimeInTimezone } from "../../../../../common/util/formatTimespan.js";
|
|
9
9
|
import { Text } from '@instructure/ui-text';
|
|
10
|
-
import { Flex } from '@instructure/
|
|
10
|
+
import { Flex } from '@instructure/quiz-common';
|
|
11
11
|
export var AnalysisUpdateDate = /*#__PURE__*/function (_Component) {
|
|
12
12
|
_inherits(AnalysisUpdateDate, _Component);
|
|
13
13
|
var _super = _createSuper(AnalysisUpdateDate);
|
package/es/taking/api/taking.js
CHANGED
|
@@ -181,6 +181,10 @@ var __getResponseForSessionItem = function __getResponseForSessionItem(sessionIt
|
|
|
181
181
|
var __remainingQuestionPositions = function __remainingQuestionPositions(sessionItems, responses) {
|
|
182
182
|
return sessionItems.toList().sortBy(function (si) {
|
|
183
183
|
return si.get('position');
|
|
184
|
+
}).filterNot(function (si) {
|
|
185
|
+
var item = si.get('item');
|
|
186
|
+
var interactionType = item.get('interactionType');
|
|
187
|
+
return typeof interactionType === 'undefined' || interactionType === 'no-interaction';
|
|
184
188
|
}).filterNot(function (si) {
|
|
185
189
|
var item = new Item(si.get('item'));
|
|
186
190
|
var itemUserResponse = __getResponseForSessionItem(si, responses);
|
|
@@ -14,7 +14,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
15
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
16
16
|
var _uiHeading = require("@instructure/ui-heading");
|
|
17
|
-
var _uiTextInput = require("@instructure/ui-text-input");
|
|
18
17
|
var _uiRadioInput = require("@instructure/ui-radio-input");
|
|
19
18
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
20
19
|
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
@@ -128,7 +127,7 @@ var AddToBankModal = /*#__PURE__*/function (_Component) {
|
|
|
128
127
|
"data-automation": "sdk-bank-selection"
|
|
129
128
|
});
|
|
130
129
|
}
|
|
131
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
130
|
+
return /*#__PURE__*/_react.default.createElement(_quizCommon.TextInput, {
|
|
132
131
|
onChange: this.onTitleChange,
|
|
133
132
|
value: this.state.newBankTitle,
|
|
134
133
|
renderLabel: (0, _formatMessage.default)('New Bank Title'),
|