@instructure/quiz-core 20.11.3-rc.2 → 20.11.3-rc.21
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/Bank/presenter.js +12 -6
- package/es/banks/components/HeaderMenu/presenter.js +40 -1
- package/es/banks/components/HeaderMenu/styles.js +3 -0
- package/es/banks/components/NavWrapper/presenter.js +6 -1
- package/es/banks/components/SharingModal/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +2 -1
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +23 -29
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +39 -0
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +23 -0
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +35 -43
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +30 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +25 -31
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +19 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +27 -33
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +28 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +32 -37
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +49 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +23 -23
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +21 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +36 -50
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +84 -0
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -2
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +1 -1
- package/es/common/components/layout/navbar/index.js +135 -38
- package/es/common/components/layout/navbar/styles.js +8 -0
- package/es/common/components/layout/navbar/theme.js +10 -0
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +40 -50
- package/es/common/components/resources/stimulus/Stimulus/styles.js +58 -0
- package/es/common/components/resources/stimulus/Stimulus/theme.js +4 -2
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +37 -46
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +46 -0
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +4 -2
- package/es/common/components/shared/overlayEmotion/index.js +1 -1
- package/es/common/components/shared/return_button/ReturnButton.js +4 -1
- package/es/moderating/components/resources/ModerateTable/presenter.js +44 -46
- package/es/moderating/components/resources/ModerateTable/styles.js +23 -0
- package/es/moderating/components/resources/ModerateTable/theme.js +4 -2
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +63 -68
- package/es/moderating/components/resources/ModerateTableRow/styles.js +25 -0
- package/es/moderating/components/resources/ModerateTableRow/theme.js +4 -2
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +34 -41
- package/es/reporting/components/quizAnalysis/styles.js +27 -0
- package/es/reporting/components/quizAnalysis/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +43 -43
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +41 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +6 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +20 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +19 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +45 -47
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +52 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +32 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +14 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +38 -53
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +141 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +10 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +80 -61
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +93 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +8 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +31 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +15 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +80 -79
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +75 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +47 -49
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +14 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +4 -2
- package/lib/banks/components/Bank/presenter.js +10 -5
- package/lib/banks/components/HeaderMenu/presenter.js +42 -1
- package/lib/banks/components/HeaderMenu/styles.js +3 -0
- package/lib/banks/components/NavWrapper/presenter.js +6 -1
- package/lib/banks/components/SharingModal/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +3 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +22 -30
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +51 -0
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +33 -0
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +34 -45
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +38 -0
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +24 -33
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +27 -0
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +26 -35
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +38 -0
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +30 -38
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +57 -0
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +20 -22
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +29 -0
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +36 -53
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +95 -0
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +6 -3
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +1 -1
- package/lib/common/components/layout/navbar/index.js +130 -39
- package/lib/common/components/layout/navbar/styles.js +16 -0
- package/lib/common/components/layout/navbar/theme.js +18 -0
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +38 -52
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +70 -0
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +36 -47
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +54 -0
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +6 -3
- package/lib/common/components/shared/overlayEmotion/index.js +1 -1
- package/lib/common/components/shared/return_button/ReturnButton.js +4 -1
- package/lib/moderating/components/resources/ModerateTable/presenter.js +43 -50
- package/lib/moderating/components/resources/ModerateTable/styles.js +33 -0
- package/lib/moderating/components/resources/ModerateTable/theme.js +6 -3
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +61 -70
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +33 -0
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +6 -3
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +33 -43
- package/lib/reporting/components/quizAnalysis/styles.js +37 -0
- package/lib/reporting/components/quizAnalysis/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +42 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +51 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +8 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +19 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +27 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +45 -52
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +62 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +28 -26
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +24 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +37 -55
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +149 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +12 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +81 -65
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +103 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +10 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +30 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +23 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +82 -84
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +85 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +43 -48
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +22 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +6 -3
- package/package.json +9 -9
- package/es/common/components/layout/navbar/presenter.js +0 -114
- package/lib/common/components/layout/navbar/presenter.js +0 -136
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -21,7 +19,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
21
19
|
|
|
22
20
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
23
21
|
|
|
24
|
-
var _react =
|
|
22
|
+
var _react = require("react");
|
|
25
23
|
|
|
26
24
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
27
25
|
|
|
@@ -35,7 +33,7 @@ var _uiButtons = require("@instructure/ui-buttons");
|
|
|
35
33
|
|
|
36
34
|
var _uiToggleDetails = require("@instructure/ui-toggle-details");
|
|
37
35
|
|
|
38
|
-
var
|
|
36
|
+
var _emotion = require("@instructure/emotion");
|
|
39
37
|
|
|
40
38
|
var _quizCommon = require("@instructure/quiz-common");
|
|
41
39
|
|
|
@@ -55,31 +53,19 @@ var _index4 = _interopRequireDefault(require("../StimulusShowInfo/index.js"));
|
|
|
55
53
|
|
|
56
54
|
var _index5 = _interopRequireDefault(require("../StimulusEditInfo/index.js"));
|
|
57
55
|
|
|
58
|
-
var
|
|
56
|
+
var _componentWithOutsideClickEmotion = _interopRequireDefault(require("../../../shared/functionality/componentWithOutsideClickEmotion.js"));
|
|
59
57
|
|
|
60
58
|
var _index6 = _interopRequireDefault(require("../../../../../building/components/resources/ActionButtons/index.js"));
|
|
61
59
|
|
|
60
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
61
|
+
|
|
62
62
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
63
63
|
|
|
64
64
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
65
65
|
|
|
66
66
|
var _dec, _class, _class2, _temp;
|
|
67
67
|
|
|
68
|
-
var
|
|
69
|
-
componentId: 'eCUGW',
|
|
70
|
-
template: function template(theme) {
|
|
71
|
-
return "\n\n.eCUGW_dRGY{padding-bottom:".concat(theme.stimulusPadding || 'inherit', ";padding-top:").concat(theme.stimulusPadding || 'inherit', "}\n\n.eCUGW_cjWK{display:flex;justify-content:flex-end}\n\n.eCUGW_nqth{padding-left:").concat(theme.buttonWrapperPadding || 'inherit', "}\n\n.eCUGW_fsuY{align-items:center;display:flex;height:1rem;justify-content:space-between;padding-left:").concat(theme.headerPadding || 'inherit', ";padding-right:").concat(theme.headerPadding || 'inherit', "}\n\n.eCUGW_dMwa{height:100%;padding:").concat(theme.stimulusContentPadding || 'inherit', "}\n\n.eCUGW_ffXB{color:").concat(theme.stimulusLabelColor || 'inherit', ";font-size:").concat(theme.stimulusLabelFontSize || 'inherit', "}\n\n.eCUGW_fjJt{color:").concat(theme.stimulusButtonsColor || 'inherit', ";display:inline-flex;flex:0 0 auto;text-align:right;z-index:").concat(theme.stimulusButtonsZIndex || 'inherit', "}\n\n[dir=ltr] .eCUGW_fjJt,[dir=rtl] .eCUGW_fjJt{text-align:right}\n\n.eCUGW_fjJt button{background-color:transparent;background-color:initial}\n\n.eCUGW_fBJf{padding-top:").concat(theme.optionPadding || 'inherit', "}");
|
|
72
|
-
},
|
|
73
|
-
'stimulus': 'eCUGW_dRGY',
|
|
74
|
-
'footer': 'eCUGW_cjWK',
|
|
75
|
-
'buttonWrapper': 'eCUGW_nqth',
|
|
76
|
-
'header': 'eCUGW_fsuY',
|
|
77
|
-
'stimulusContent': 'eCUGW_dMwa',
|
|
78
|
-
'stimulusLabel': 'eCUGW_ffXB',
|
|
79
|
-
'stimulusButtons': 'eCUGW_fjJt',
|
|
80
|
-
'optionWrapper': 'eCUGW_fBJf'
|
|
81
|
-
};
|
|
82
|
-
var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
68
|
+
var StimulusEdit = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
83
69
|
(0, _inherits2.default)(StimulusEdit, _Component);
|
|
84
70
|
|
|
85
71
|
var _super = (0, _createSuper2.default)(StimulusEdit);
|
|
@@ -408,7 +394,7 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
408
394
|
}, {
|
|
409
395
|
key: "renderAddToBankModal",
|
|
410
396
|
value: function renderAddToBankModal() {
|
|
411
|
-
return
|
|
397
|
+
return (0, _emotion.jsx)(_index.default, {
|
|
412
398
|
label: (0, _formatMessage.default)('Add to an Item Bank'),
|
|
413
399
|
onAdd: this.handleAddToBank,
|
|
414
400
|
onContinue: this.handleAddToBankContinue,
|
|
@@ -421,13 +407,13 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
421
407
|
}, {
|
|
422
408
|
key: "renderAddToBankOptions",
|
|
423
409
|
value: function renderAddToBankOptions() {
|
|
424
|
-
return
|
|
410
|
+
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_uiToggleDetails.ToggleDetails, {
|
|
425
411
|
variant: "filled",
|
|
426
412
|
key: "itemBanking",
|
|
427
413
|
summary: (0, _formatMessage.default)('Item Banking')
|
|
428
|
-
},
|
|
429
|
-
|
|
430
|
-
},
|
|
414
|
+
}, (0, _emotion.jsx)("div", {
|
|
415
|
+
css: this.props.styles.optionWrapper
|
|
416
|
+
}, (0, _emotion.jsx)(_index2.default, {
|
|
431
417
|
displayPosition: this.props.displayPosition,
|
|
432
418
|
entryType: this.props.quizEntry.entryType,
|
|
433
419
|
guid: this.props.guid,
|
|
@@ -440,13 +426,13 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
440
426
|
}, {
|
|
441
427
|
key: "renderStimulusEdit",
|
|
442
428
|
value: function renderStimulusEdit() {
|
|
443
|
-
return
|
|
444
|
-
|
|
445
|
-
},
|
|
446
|
-
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
}, (0, _formatMessage.default)('Stimulus')),
|
|
429
|
+
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("div", {
|
|
430
|
+
css: this.props.styles.stimulus
|
|
431
|
+
}, (0, _emotion.jsx)("div", {
|
|
432
|
+
css: this.props.styles.header
|
|
433
|
+
}, (0, _emotion.jsx)("div", {
|
|
434
|
+
css: this.props.styles.stimulusLabel
|
|
435
|
+
}, (0, _formatMessage.default)('Stimulus')), (0, _emotion.jsx)(_index6.default, {
|
|
450
436
|
connectDragSource: this.props.connectDragSource,
|
|
451
437
|
displayPosition: this.props.displayPosition,
|
|
452
438
|
onDelete: this.handleDeleteStimulus,
|
|
@@ -455,25 +441,27 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
455
441
|
shouldDisableDragHandle: true,
|
|
456
442
|
shouldRenderEdit: false,
|
|
457
443
|
shouldFocusOnMount: this.props.shouldFocusOnMount
|
|
458
|
-
})),
|
|
459
|
-
|
|
460
|
-
},
|
|
444
|
+
})), (0, _emotion.jsx)("div", {
|
|
445
|
+
css: this.props.styles.stimulusContent
|
|
446
|
+
}, (0, _emotion.jsx)(_index5.default, {
|
|
461
447
|
errorsShowing: this.props.errorsShowing,
|
|
462
448
|
guid: this.props.guid,
|
|
463
449
|
stimulus: this.props.stimulus,
|
|
464
450
|
isBankedContent: this.props.isBankedContent,
|
|
465
451
|
setTitleRef: this.setTitleRef
|
|
466
|
-
}), this.renderAddToBankOptions())),
|
|
467
|
-
className:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
452
|
+
}), this.renderAddToBankOptions())), (0, _emotion.jsx)("div", {
|
|
453
|
+
className: "footer",
|
|
454
|
+
css: this.props.styles.footer
|
|
455
|
+
}, (0, _emotion.jsx)("div", {
|
|
456
|
+
css: this.props.styles.buttonWrapper
|
|
457
|
+
}, (0, _emotion.jsx)(_uiButtons.Button, {
|
|
471
458
|
type: "button",
|
|
472
459
|
onClick: this.onCancel,
|
|
473
460
|
"data-automation": "sdk-stimulus-discardButton"
|
|
474
|
-
}, (0, _formatMessage.default)('Cancel'))),
|
|
475
|
-
className:
|
|
476
|
-
|
|
461
|
+
}, (0, _formatMessage.default)('Cancel'))), (0, _emotion.jsx)("div", {
|
|
462
|
+
className: "submitButtonWrapper",
|
|
463
|
+
css: this.props.styles.buttonWrapper
|
|
464
|
+
}, (0, _emotion.jsx)(_uiButtons.Button, {
|
|
477
465
|
type: "button",
|
|
478
466
|
color: "primary",
|
|
479
467
|
disabled: !this.state.canSubmit,
|
|
@@ -486,7 +474,7 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
486
474
|
this.stimulusEditInfoRef = null;
|
|
487
475
|
|
|
488
476
|
if (this.props.isBankedContent) {
|
|
489
|
-
return
|
|
477
|
+
return (0, _emotion.jsx)(_index3.default, this.props.bankEntryWarningWrapperProps(), (0, _emotion.jsx)(_index4.default, this.props));
|
|
490
478
|
}
|
|
491
479
|
|
|
492
480
|
var _this$props4 = this.props,
|
|
@@ -496,7 +484,7 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
496
484
|
var propForWrapperFunc = quizEntry.isArchivedBankEntry ? _warningHelpers.propsForBankEntryVersioningWrapper : _warningHelpers.propsForStimulusVersioningWrapper;
|
|
497
485
|
var propsForStimulusVersioning = propForWrapperFunc(needsWarning, this.props.shouldClone, (0, _partial.default)(this.props.setUi, _quizCommon.SHOULD_CLONE_ITEM), this.props.switchOffEditing, true, quizEntry.isArchivedBankEntry ? 'info' : 'warning');
|
|
498
486
|
var hasWarningWrapper = needsWarning && !this.props.shouldClone;
|
|
499
|
-
return
|
|
487
|
+
return (0, _emotion.jsx)(_index3.default, propsForStimulusVersioning, hasWarningWrapper ? (0, _emotion.jsx)(_index4.default, this.props) : this.renderStimulusEdit());
|
|
500
488
|
}
|
|
501
489
|
}]);
|
|
502
490
|
StimulusEdit.displayName = "StimulusEdit";
|
|
@@ -540,7 +528,8 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
540
528
|
workingQuizEntry: _reactImmutableProptypes.default.record.isRequired,
|
|
541
529
|
workingStimulus: _reactImmutableProptypes.default.record.isRequired,
|
|
542
530
|
onEditToggle: _propTypes.default.func.isRequired,
|
|
543
|
-
shouldFocusOnMount: _propTypes.default.bool.isRequired
|
|
531
|
+
shouldFocusOnMount: _propTypes.default.bool.isRequired,
|
|
532
|
+
styles: _propTypes.default.object
|
|
544
533
|
}, _class2.defaultProps = {
|
|
545
534
|
bankEntryWarningWrapperProps: function bankEntryWarningWrapperProps() {},
|
|
546
535
|
errorsShowing: false,
|
|
@@ -549,6 +538,6 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
549
538
|
}, _temp)) || _class);
|
|
550
539
|
exports.StimulusEdit = StimulusEdit;
|
|
551
540
|
|
|
552
|
-
var _default = (0,
|
|
541
|
+
var _default = (0, _componentWithOutsideClickEmotion.default)(StimulusEdit);
|
|
553
542
|
|
|
554
543
|
exports.default = _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var generateStyle = function generateStyle(componentTheme) {
|
|
9
|
+
return {
|
|
10
|
+
stimulus: {
|
|
11
|
+
paddingTop: componentTheme.stimulusPadding,
|
|
12
|
+
paddingBottom: componentTheme.stimulusPadding
|
|
13
|
+
},
|
|
14
|
+
footer: {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
justifyContent: 'flex-end'
|
|
17
|
+
},
|
|
18
|
+
buttonWrapper: {
|
|
19
|
+
paddingLeft: componentTheme.buttonWrapperPadding
|
|
20
|
+
},
|
|
21
|
+
header: {
|
|
22
|
+
height: '1rem',
|
|
23
|
+
paddingLeft: componentTheme.headerPadding,
|
|
24
|
+
paddingRight: componentTheme.headerPadding,
|
|
25
|
+
display: 'flex',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
justifyContent: 'space-between'
|
|
28
|
+
},
|
|
29
|
+
stimulusContent: {
|
|
30
|
+
height: '100%',
|
|
31
|
+
padding: componentTheme.stimulusContentPadding
|
|
32
|
+
},
|
|
33
|
+
stimulusLabel: {
|
|
34
|
+
color: componentTheme.stimulusLabelColor,
|
|
35
|
+
fontSize: componentTheme.stimulusLabelFontSize
|
|
36
|
+
},
|
|
37
|
+
stimulusButtons: {
|
|
38
|
+
flex: '0 0 auto',
|
|
39
|
+
display: 'inline-flex',
|
|
40
|
+
textAlign: 'right',
|
|
41
|
+
zIndex: componentTheme.stimulusButtonsZIndex,
|
|
42
|
+
color: componentTheme.stimulusButtonsColor,
|
|
43
|
+
button: {
|
|
44
|
+
backgroundColor: 'initial'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
optionWrapper: {
|
|
48
|
+
paddingTop: componentTheme.optionPadding
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var _default = generateStyle;
|
|
54
|
+
exports.default = _default;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var spacing = _ref.spacing,
|
|
10
10
|
typography = _ref.typography,
|
|
11
11
|
colors = _ref.colors;
|
|
@@ -21,4 +21,7 @@ function generator(_ref) {
|
|
|
21
21
|
stimulusButtonsColor: colors.oxford,
|
|
22
22
|
stimulusButtonsZIndex: '3333'
|
|
23
23
|
};
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var _default = generateComponentTheme;
|
|
27
|
+
exports.default = _default;
|
|
@@ -48,6 +48,7 @@ var OverlayEmotion = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
48
48
|
|
|
49
49
|
return (0, _emotion.jsx)("div", {
|
|
50
50
|
role: "presentation",
|
|
51
|
+
className: "overlay",
|
|
51
52
|
css: this.props.styles.overlay,
|
|
52
53
|
onClick: this.props.onClick,
|
|
53
54
|
"data-automation": "sdk-overlay"
|
|
@@ -68,7 +69,6 @@ var OverlayEmotion = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
}), (0, _emotion.jsx)("div", {
|
|
71
|
-
className: "overlay",
|
|
72
72
|
css: [this.props.styles.root, wrapperStyles],
|
|
73
73
|
"data-testid": "overlay-wrapper",
|
|
74
74
|
tabIndex: tabIndex,
|
|
@@ -46,7 +46,8 @@ var ReturnButton = /*#__PURE__*/function (_Component) {
|
|
|
46
46
|
|
|
47
47
|
if (this.props.iceTopNavBarEnabled) {
|
|
48
48
|
return /*#__PURE__*/_react.default.createElement(_index.SecondaryNavBarButton, {
|
|
49
|
-
id:
|
|
49
|
+
id: this.props.id,
|
|
50
|
+
key: this.props.id,
|
|
50
51
|
variant: "button",
|
|
51
52
|
"data-automation": "sdk-return-button",
|
|
52
53
|
href: this.props.returnToUrl,
|
|
@@ -69,11 +70,13 @@ exports.ReturnButton = ReturnButton;
|
|
|
69
70
|
ReturnButton.propTypes = {
|
|
70
71
|
returnToUrl: _propTypes.default.string,
|
|
71
72
|
text: _propTypes.default.string,
|
|
73
|
+
id: _propTypes.default.string,
|
|
72
74
|
iceTopNavBarEnabled: _propTypes.default.bool
|
|
73
75
|
};
|
|
74
76
|
ReturnButton.defaultProps = {
|
|
75
77
|
returnToUrl: void 0,
|
|
76
78
|
text: (0, _formatMessage.default)('Return'),
|
|
79
|
+
id: 'ReturnButton',
|
|
77
80
|
iceTopNavBarEnabled: false
|
|
78
81
|
};
|
|
79
82
|
var _default = ReturnButton;
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = exports.ModerateTable = void 0;
|
|
11
9
|
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
15
11
|
|
|
16
12
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
@@ -23,14 +19,12 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
23
19
|
|
|
24
20
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
25
21
|
|
|
26
|
-
var _react =
|
|
22
|
+
var _react = require("react");
|
|
27
23
|
|
|
28
24
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
25
|
|
|
30
26
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
31
27
|
|
|
32
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
|
-
|
|
34
28
|
var _uiText = require("@instructure/ui-text");
|
|
35
29
|
|
|
36
30
|
var _uiLink = require("@instructure/ui-link");
|
|
@@ -45,7 +39,7 @@ var _uiButtons = require("@instructure/ui-buttons");
|
|
|
45
39
|
|
|
46
40
|
var _uiIcons = require("@instructure/ui-icons");
|
|
47
41
|
|
|
48
|
-
var
|
|
42
|
+
var _emotion = require("@instructure/emotion");
|
|
49
43
|
|
|
50
44
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
51
45
|
|
|
@@ -59,6 +53,8 @@ var _index4 = _interopRequireDefault(require("../../sidebar/ModerateTray/index.j
|
|
|
59
53
|
|
|
60
54
|
var _Spinner = _interopRequireDefault(require("../../../../common/components/shared/spinner/Spinner.js"));
|
|
61
55
|
|
|
56
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
57
|
+
|
|
62
58
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
63
59
|
|
|
64
60
|
var _index5 = _interopRequireDefault(require("../../sidebar/ResetQuiz/index.js"));
|
|
@@ -69,26 +65,15 @@ var _lodash = require("lodash");
|
|
|
69
65
|
|
|
70
66
|
var _dec, _class, _class2, _temp;
|
|
71
67
|
|
|
72
|
-
var
|
|
73
|
-
componentId: 'eDRzW',
|
|
74
|
-
template: function template(theme) {
|
|
75
|
-
return "\n\n.eDRzW_bwKH{display:block;margin:".concat(theme.emptyTextMargin || 'inherit', " 0 0 0}\n\n.eDRzW_xNcP{background-color:").concat(theme.pageBackgroundColor || 'inherit', ";flex:1;overflow:auto}\n\n.eDRzW_eeML{display:inline-block;transition:transform 0.3s}\n\n.eDRzW_XujX{transform:scaleX(-1)}");
|
|
76
|
-
},
|
|
77
|
-
'emptyText': 'eDRzW_bwKH',
|
|
78
|
-
'page': 'eDRzW_xNcP',
|
|
79
|
-
'scoreToggleWrapper': 'eDRzW_eeML',
|
|
80
|
-
'mirror': 'eDRzW_XujX'
|
|
81
|
-
};
|
|
68
|
+
var _ref2 = (0, _emotion.jsx)(_uiFlex.Flex.Item, null, (0, _emotion.jsx)(_uiIcons.IconInfoLine, null));
|
|
82
69
|
|
|
83
|
-
var
|
|
70
|
+
var _ref4 = (0, _emotion.jsx)(_uiIcons.IconConfigureLine, null);
|
|
84
71
|
|
|
85
|
-
var
|
|
72
|
+
var _ref5 = (0, _emotion.jsx)(_Spinner.default, null);
|
|
86
73
|
|
|
87
|
-
var
|
|
74
|
+
var _ref6 = (0, _emotion.jsx)(_index5.default, null);
|
|
88
75
|
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
76
|
+
var ModerateTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
92
77
|
(0, _inherits2.default)(ModerateTable, _Component);
|
|
93
78
|
|
|
94
79
|
var _super = (0, _createSuper2.default)(ModerateTable);
|
|
@@ -217,6 +202,9 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
217
202
|
(0, _createClass2.default)(ModerateTable, [{
|
|
218
203
|
key: "componentDidMount",
|
|
219
204
|
value: function componentDidMount() {
|
|
205
|
+
this.props.makeStyles({
|
|
206
|
+
displayScoreAsPercentage: this.state.displayScoreAsPercentage
|
|
207
|
+
});
|
|
220
208
|
this.fetchData();
|
|
221
209
|
var _this$props2 = this.props,
|
|
222
210
|
hasSessionTimeLimit = _this$props2.hasSessionTimeLimit,
|
|
@@ -229,6 +217,9 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
229
217
|
}, {
|
|
230
218
|
key: "componentDidUpdate",
|
|
231
219
|
value: function componentDidUpdate(prevProps) {
|
|
220
|
+
this.props.makeStyles({
|
|
221
|
+
displayScoreAsPercentage: this.state.displayScoreAsPercentage
|
|
222
|
+
});
|
|
232
223
|
var _this$props3 = this.props,
|
|
233
224
|
hasSessionTimeLimit = _this$props3.hasSessionTimeLimit,
|
|
234
225
|
sessionTimeLimitInSeconds = _this$props3.sessionTimeLimitInSeconds;
|
|
@@ -276,7 +267,7 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
276
267
|
shouldRenderModerateButton = _this$props4.shouldRenderModerateButton;
|
|
277
268
|
return this.props.tableData.map(function (rowData) {
|
|
278
269
|
var id = rowData.id;
|
|
279
|
-
return
|
|
270
|
+
return (0, _emotion.jsx)(_index.default, {
|
|
280
271
|
anonymousGrading: _this2.props.anonymousGrading,
|
|
281
272
|
onResultsLinkClick: onResultsLinkClick,
|
|
282
273
|
onAccommodationsClick: _this2.props.onAccommodationsClick,
|
|
@@ -324,23 +315,23 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
324
315
|
value: function renderAlertContent(outstandingAttemptsCount) {
|
|
325
316
|
var _this3 = this;
|
|
326
317
|
|
|
327
|
-
return
|
|
318
|
+
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_index2.default, {
|
|
328
319
|
name: "manual_submission"
|
|
329
|
-
},
|
|
320
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex, null, _ref2, (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
330
321
|
padding: "xx-small"
|
|
331
322
|
}, _formatMessage.default.rich('This assessment has <0>{count, plural, one {# attempt} other {# attempts}}</0> in progress.', {
|
|
332
323
|
count: outstandingAttemptsCount,
|
|
333
324
|
0: function _(_ref3) {
|
|
334
325
|
var children = _ref3.children;
|
|
335
|
-
return
|
|
326
|
+
return (0, _emotion.jsx)(_uiLink.Link, {
|
|
336
327
|
key: "0",
|
|
337
328
|
onClick: _this3.openModalOnClick,
|
|
338
329
|
"data-automation": "sdk-outstanding-quizzes-modal-open"
|
|
339
330
|
}, children);
|
|
340
331
|
}
|
|
341
|
-
})))),
|
|
332
|
+
})))), (0, _emotion.jsx)(_index2.default, {
|
|
342
333
|
name: "manual_submission"
|
|
343
|
-
},
|
|
334
|
+
}, (0, _emotion.jsx)(_index3.default, {
|
|
344
335
|
quizSessionsData: this.props.quizSessionsData,
|
|
345
336
|
quizSessionIdsAndUsers: this.props.quizSessionIdsAndUsers,
|
|
346
337
|
handleSubmissionAndPoll: this.handleSubmissionAndPoll,
|
|
@@ -350,9 +341,9 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
350
341
|
}, {
|
|
351
342
|
key: "renderScoreToggle",
|
|
352
343
|
value: function renderScoreToggle() {
|
|
353
|
-
return
|
|
354
|
-
|
|
355
|
-
},
|
|
344
|
+
return (0, _emotion.jsx)("div", {
|
|
345
|
+
css: this.props.styles.scoreToggleWrapper
|
|
346
|
+
}, (0, _emotion.jsx)(_uiButtons.IconButton, {
|
|
356
347
|
size: "small",
|
|
357
348
|
margin: "0 x-small",
|
|
358
349
|
withBackground: false,
|
|
@@ -365,28 +356,28 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
365
356
|
key: "renderTable",
|
|
366
357
|
value: function renderTable() {
|
|
367
358
|
var outstandingAttemptsCount = this.countOutstandingAttempts();
|
|
368
|
-
return
|
|
359
|
+
return (0, _emotion.jsx)("div", {
|
|
369
360
|
className: "fs-mask"
|
|
370
|
-
}, outstandingAttemptsCount ? this.renderAlertContent(outstandingAttemptsCount) : null,
|
|
361
|
+
}, outstandingAttemptsCount ? this.renderAlertContent(outstandingAttemptsCount) : null, (0, _emotion.jsx)(_uiTable.Table, {
|
|
371
362
|
caption: (0, _formatMessage.default)('Moderation Table')
|
|
372
|
-
},
|
|
363
|
+
}, (0, _emotion.jsx)(_uiTable.Table.Head, null, (0, _emotion.jsx)(_uiTable.Table.Row, null, (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
373
364
|
id: "moderation-table-student"
|
|
374
|
-
}, (0, _formatMessage.default)('Student')), !this.props.anonymousGrading &&
|
|
365
|
+
}, (0, _formatMessage.default)('Student')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
375
366
|
id: "moderation-table-attempts"
|
|
376
|
-
}, (0, _formatMessage.default)('Attempts')), !this.props.anonymousGrading &&
|
|
367
|
+
}, (0, _formatMessage.default)('Attempts')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
377
368
|
id: "moderation-table-score"
|
|
378
|
-
}, (0, _formatMessage.default)('Score'), this.renderScoreToggle()), !this.props.anonymousGrading &&
|
|
369
|
+
}, (0, _formatMessage.default)('Score'), this.renderScoreToggle()), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
379
370
|
id: "moderation-table-time"
|
|
380
|
-
}, (0, _formatMessage.default)('Time')), !this.props.anonymousGrading &&
|
|
371
|
+
}, (0, _formatMessage.default)('Time')), !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
381
372
|
id: "moderation-table-log"
|
|
382
|
-
}, (0, _formatMessage.default)('Log')), this.props.onAccommodationsClick && !this.props.anonymousGrading &&
|
|
373
|
+
}, (0, _formatMessage.default)('Log')), this.props.onAccommodationsClick && !this.props.anonymousGrading && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
383
374
|
id: "moderation-table-accommodations"
|
|
384
375
|
}, (0, _formatMessage.default)({
|
|
385
376
|
default: 'Accommodations',
|
|
386
377
|
description: 'Support for students with who need extra time or attempts.'
|
|
387
|
-
})), this.props.shouldRenderModerateButton &&
|
|
378
|
+
})), this.props.shouldRenderModerateButton && (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
388
379
|
id: "moderation-table-moderate"
|
|
389
|
-
},
|
|
380
|
+
}, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Moderate'))))), (0, _emotion.jsx)(_uiTable.Table.Body, null, this.renderTableRows())));
|
|
390
381
|
}
|
|
391
382
|
}, {
|
|
392
383
|
key: "renderContent",
|
|
@@ -397,18 +388,18 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
397
388
|
emptyMessage = _this$props5.emptyMessage;
|
|
398
389
|
if (isFetching || this.state.isWaiting) return _ref5;
|
|
399
390
|
if (tableData.length) return this.renderTable();
|
|
400
|
-
return
|
|
401
|
-
|
|
402
|
-
},
|
|
391
|
+
return (0, _emotion.jsx)("span", {
|
|
392
|
+
css: this.props.styles.emptyText
|
|
393
|
+
}, (0, _emotion.jsx)(_uiText.Text, {
|
|
403
394
|
color: "primary"
|
|
404
395
|
}, emptyMessage));
|
|
405
396
|
}
|
|
406
397
|
}, {
|
|
407
398
|
key: "render",
|
|
408
399
|
value: function render() {
|
|
409
|
-
return
|
|
410
|
-
|
|
411
|
-
},
|
|
400
|
+
return (0, _emotion.jsx)("div", {
|
|
401
|
+
css: this.props.styles.page
|
|
402
|
+
}, (0, _emotion.jsx)(_index4.default, {
|
|
412
403
|
onClose: this.onCloseTray
|
|
413
404
|
}, !this.props.anonymousGrading && _ref6, this.props.children), this.renderContent());
|
|
414
405
|
}
|
|
@@ -461,7 +452,9 @@ var ModerateTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
461
452
|
})).isRequired,
|
|
462
453
|
quizId: _propTypes.default.string.isRequired,
|
|
463
454
|
getQuizSessions: _propTypes.default.func.isRequired,
|
|
464
|
-
addSuccess: _propTypes.default.func.isRequired
|
|
455
|
+
addSuccess: _propTypes.default.func.isRequired,
|
|
456
|
+
styles: _propTypes.default.object,
|
|
457
|
+
makeStyles: _propTypes.default.func
|
|
465
458
|
}, _class2.defaultProps = {
|
|
466
459
|
anonymousGrading: false,
|
|
467
460
|
children: void 0,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var generateStyle = function generateStyle(componentTheme, props, state) {
|
|
13
|
+
return {
|
|
14
|
+
emptyText: {
|
|
15
|
+
display: 'block',
|
|
16
|
+
margin: "".concat(componentTheme.emptyTextMargin, " 0 0 0")
|
|
17
|
+
},
|
|
18
|
+
page: {
|
|
19
|
+
overflow: 'auto',
|
|
20
|
+
flex: '1',
|
|
21
|
+
backgroundColor: componentTheme.pageBackgroundColor
|
|
22
|
+
},
|
|
23
|
+
scoreToggleWrapper: (0, _objectSpread2.default)({
|
|
24
|
+
display: 'inline-block',
|
|
25
|
+
transition: 'transform 0.3s'
|
|
26
|
+
}, !state.displayScoreAsPercentage && {
|
|
27
|
+
transform: 'scaleX(-1)'
|
|
28
|
+
})
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var _default = generateStyle;
|
|
33
|
+
exports.default = _default;
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var spacing = _ref.spacing,
|
|
10
10
|
colors = _ref.colors;
|
|
11
11
|
return {
|
|
12
12
|
emptyTextMargin: spacing.small,
|
|
13
13
|
pageBackgroundColor: colors.white
|
|
14
14
|
};
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var _default = generateComponentTheme;
|
|
18
|
+
exports.default = _default;
|