@instructure/quiz-core 20.34.1-snapshot.9 → 20.34.1-undefined.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/Bank/presenter.js +4 -4
- package/es/banks/components/BankEntriesList/presenter.js +3 -4
- package/es/banks/components/BankEntry/presenter.js +4 -4
- package/es/banks/components/BankEntryRow/presenter.js +4 -4
- package/es/banks/components/BankSearch/presenter.js +3 -4
- package/es/banks/components/Banks/presenter.js +4 -4
- package/es/banks/components/BanksList/presenter.js +4 -4
- package/es/banks/components/CreateBankModal/presenter.js +4 -4
- package/es/banks/components/EditBankModal/presenter.js +4 -4
- package/es/banks/components/HeaderMenu/presenter.js +4 -4
- package/es/banks/components/NavWrapper/presenter.js +3 -4
- package/es/banks/components/SharingModal/RootAccountSharing.js +4 -3
- package/es/banks/components/SharingModal/ShareList/index.js +4 -4
- package/es/banks/components/SharingModal/presenter.js +4 -4
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +3 -4
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +3 -4
- package/es/building/components/layout/Sidebar/presenter.js +4 -4
- package/es/building/components/layout/header/BuildingButtons/presenter.js +4 -4
- package/es/building/components/resources/ActionButtons/presenter.js +4 -4
- package/es/building/components/resources/AddToBankOptions/index.js +4 -4
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +4 -4
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +4 -4
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +4 -4
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +3 -4
- package/es/building/components/resources/quiz/instructions/Show/index.js +3 -4
- package/es/building/components/resources/quiz/title/Edit/index.js +3 -4
- package/es/building/components/resources/quiz/title/Show/index.js +4 -9
- package/es/building/components/resources/quiz/title/Title/presenter.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -4
- package/es/common/components/ImportModal/ImportFileSelector/index.js +3 -4
- package/es/common/components/ImportModal/presenter.js +4 -4
- package/es/common/components/PrintFontSizeModal/presenter.js +4 -4
- package/es/common/components/SDKApp/index.js +4 -4
- package/es/common/components/alerts/presenter.js +3 -4
- package/es/common/components/layout/Page/index.js +3 -4
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +3 -4
- package/es/common/components/layout/header/Timer/presenter.js +3 -4
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +3 -4
- package/es/common/components/layout/navbar/index.js +3 -4
- package/es/common/components/layout/sidebar/PositionSummary/index.js +3 -4
- package/es/common/components/layout/sidebar/Sidebar/index.js +4 -4
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +4 -4
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +3 -4
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +3 -4
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +3 -4
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +4 -4
- package/es/common/components/resources/WarningWrapper/index.js +3 -4
- package/es/common/components/resources/positionBox/PositionBox.js +3 -4
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +4 -4
- package/es/common/components/resources/quiz/AddContent/Button/index.js +4 -4
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +4 -4
- package/es/common/components/resources/quiz/instructions/Instructions.js +3 -4
- package/es/common/components/resources/quiz/title/Title.js +3 -4
- package/es/common/components/resources/quizSessionResult/Header/index.js +3 -4
- package/es/common/components/resources/quizSessionResult/Info/index.js +4 -4
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +3 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +3 -4
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +4 -4
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +4 -4
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +4 -4
- package/es/common/components/resources/stimulus/StimulusShow/index.js +3 -4
- package/es/common/components/shared/Card/CardContent/index.js +3 -4
- package/es/common/components/shared/Card/CardWrapper/index.js +3 -4
- package/es/common/components/shared/ExpandButton/index.js +3 -4
- package/es/common/components/shared/InteractionTypes/presenter.js +3 -4
- package/es/common/components/shared/PaginatedCollection/presenter.js +3 -4
- package/es/common/components/shared/Paginator/index.js +3 -4
- package/es/common/components/shared/TagDisplay/index.js +3 -4
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +3 -4
- package/es/common/components/shared/errors/Errors.js +3 -4
- package/es/common/components/shared/file_selector/FileSelector.js +3 -4
- package/es/common/components/shared/overlay/index.js +4 -4
- package/es/common/components/shared/spinner/Spinner.js +3 -4
- package/es/index.js +1 -4
- package/es/moderating/components/events/Event.js +0 -3
- package/es/moderating/components/events/ResponseEvent.js +3 -4
- package/es/moderating/components/resources/ModerateTable/presenter.js +4 -4
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +4 -4
- package/es/reporting/api/fetchStudentAnalyses.js +4 -9
- package/es/reporting/api/getAnalysesExport.js +4 -11
- package/es/reporting/api/getAnalysesStatus.js +4 -11
- package/es/reporting/components/Caption/index.js +3 -4
- package/es/reporting/components/MetricsListItem/index.js +3 -4
- package/es/reporting/components/charts/CentileDistribution/presenter.js +3 -4
- package/es/reporting/components/charts/Distribution/presenter.js +3 -4
- package/es/reporting/components/charts/Legend/index.js +3 -4
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +3 -4
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +3 -4
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +4 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +3 -4
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/ReportCard/index.js +3 -4
- package/es/reporting/components/resources/ReportList/index.js +3 -4
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +6 -8
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +1 -2
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +6 -19
- package/lib/banks/components/Bank/presenter.js +2 -2
- package/lib/banks/components/BankEntriesList/presenter.js +2 -3
- package/lib/banks/components/BankEntry/presenter.js +2 -2
- package/lib/banks/components/BankEntryRow/presenter.js +2 -2
- package/lib/banks/components/BankSearch/presenter.js +2 -3
- package/lib/banks/components/Banks/presenter.js +2 -2
- package/lib/banks/components/BanksList/presenter.js +2 -2
- package/lib/banks/components/CreateBankModal/presenter.js +2 -2
- package/lib/banks/components/EditBankModal/presenter.js +2 -2
- package/lib/banks/components/HeaderMenu/presenter.js +2 -2
- package/lib/banks/components/NavWrapper/presenter.js +2 -3
- package/lib/banks/components/SharingModal/RootAccountSharing.js +3 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +2 -2
- package/lib/banks/components/SharingModal/presenter.js +2 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +2 -3
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +2 -3
- package/lib/building/components/layout/Sidebar/presenter.js +2 -2
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +2 -2
- package/lib/building/components/resources/ActionButtons/presenter.js +2 -2
- package/lib/building/components/resources/AddToBankOptions/index.js +2 -2
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +2 -2
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +2 -2
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +2 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Show/index.js +2 -3
- package/lib/building/components/resources/quiz/title/Edit/index.js +2 -3
- package/lib/building/components/resources/quiz/title/Show/index.js +2 -3
- package/lib/building/components/resources/quiz/title/Title/presenter.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +2 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +2 -2
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +2 -3
- package/lib/common/components/ImportModal/presenter.js +2 -2
- package/lib/common/components/PrintFontSizeModal/presenter.js +2 -2
- package/lib/common/components/SDKApp/index.js +2 -2
- package/lib/common/components/alerts/presenter.js +2 -3
- package/lib/common/components/layout/Page/index.js +2 -3
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +2 -3
- package/lib/common/components/layout/header/Timer/presenter.js +2 -3
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +2 -3
- package/lib/common/components/layout/navbar/index.js +2 -3
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +2 -3
- package/lib/common/components/layout/sidebar/Sidebar/index.js +2 -2
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +2 -3
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +2 -2
- package/lib/common/components/resources/WarningWrapper/index.js +2 -3
- package/lib/common/components/resources/positionBox/PositionBox.js +2 -3
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -2
- package/lib/common/components/resources/quiz/instructions/Instructions.js +2 -3
- package/lib/common/components/resources/quiz/title/Title.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Header/index.js +2 -3
- package/lib/common/components/resources/quizSessionResult/Info/index.js +2 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +2 -3
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +2 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +2 -3
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +2 -3
- package/lib/common/components/shared/Card/CardContent/index.js +2 -3
- package/lib/common/components/shared/Card/CardWrapper/index.js +2 -3
- package/lib/common/components/shared/ExpandButton/index.js +2 -3
- package/lib/common/components/shared/InteractionTypes/presenter.js +2 -3
- package/lib/common/components/shared/PaginatedCollection/presenter.js +2 -3
- package/lib/common/components/shared/Paginator/index.js +2 -3
- package/lib/common/components/shared/TagDisplay/index.js +2 -3
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +2 -3
- package/lib/common/components/shared/errors/Errors.js +2 -3
- package/lib/common/components/shared/file_selector/FileSelector.js +2 -3
- package/lib/common/components/shared/overlay/index.js +2 -2
- package/lib/common/components/shared/spinner/Spinner.js +2 -3
- package/lib/index.js +0 -43
- package/lib/moderating/components/events/Event.js +1 -4
- package/lib/moderating/components/events/ResponseEvent.js +2 -3
- package/lib/moderating/components/resources/ModerateTable/presenter.js +2 -2
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +2 -2
- package/lib/reporting/api/fetchStudentAnalyses.js +4 -9
- package/lib/reporting/api/getAnalysesExport.js +4 -11
- package/lib/reporting/api/getAnalysesStatus.js +4 -11
- package/lib/reporting/components/Caption/index.js +2 -3
- package/lib/reporting/components/MetricsListItem/index.js +2 -3
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +2 -3
- package/lib/reporting/components/charts/Distribution/presenter.js +2 -3
- package/lib/reporting/components/charts/Legend/index.js +2 -3
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +2 -3
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +2 -3
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +2 -2
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +2 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +2 -3
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
- package/lib/reporting/components/resources/ReportCard/index.js +2 -3
- package/lib/reporting/components/resources/ReportList/index.js +2 -3
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +5 -7
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +1 -2
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +6 -19
- package/package.json +9 -9
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import Fetcher from "../../common/util/Fetcher.js";
|
|
4
|
-
import { featureOn } from "../../common/util/featureCheck.js";
|
|
5
4
|
var fetcher = new Fetcher();
|
|
6
5
|
export var fetchStudentAnalyses = /*#__PURE__*/function () {
|
|
7
6
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(quizId) {
|
|
8
7
|
var filter,
|
|
9
|
-
isMultiAttemptEnabled,
|
|
10
|
-
selectedFilter,
|
|
11
8
|
url,
|
|
12
9
|
_args = arguments;
|
|
13
10
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -15,14 +12,12 @@ export var fetchStudentAnalyses = /*#__PURE__*/function () {
|
|
|
15
12
|
switch (_context.prev = _context.next) {
|
|
16
13
|
case 0:
|
|
17
14
|
filter = _args.length > 1 && _args[1] !== void 0 ? _args[1] : 'last_attempt';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
url = "/api/quizzes/".concat(quizId, "/analyses/student_analyses?filter=").concat(selectedFilter);
|
|
21
|
-
_context.next = 6;
|
|
15
|
+
url = "/api/quizzes/".concat(quizId, "/analyses/student_analyses?filter=").concat(filter);
|
|
16
|
+
_context.next = 4;
|
|
22
17
|
return fetcher.get(url);
|
|
23
|
-
case
|
|
18
|
+
case 4:
|
|
24
19
|
return _context.abrupt("return", _context.sent);
|
|
25
|
-
case
|
|
20
|
+
case 5:
|
|
26
21
|
case "end":
|
|
27
22
|
return _context.stop();
|
|
28
23
|
}
|
|
@@ -3,7 +3,6 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
3
3
|
import Fetcher from "../../common/util/Fetcher.js";
|
|
4
4
|
import { csvFormat } from "../components/resources/NewQuizAndItemAnalysis/exportFormats.js";
|
|
5
5
|
import { ITEM_ANALYSES } from '@instructure/quiz-common';
|
|
6
|
-
import { featureOn } from "../../common/util/featureCheck.js";
|
|
7
6
|
var getFetcher = function getFetcher(format) {
|
|
8
7
|
var mimeType = formatsToMimeTypes.get(format);
|
|
9
8
|
if (!mimeType) {
|
|
@@ -25,9 +24,6 @@ export var getAnalysesExport = /*#__PURE__*/function () {
|
|
|
25
24
|
var filter,
|
|
26
25
|
analysisType,
|
|
27
26
|
fetcher,
|
|
28
|
-
isMultiAttemptEnabled,
|
|
29
|
-
isStudent_analysis,
|
|
30
|
-
selectedFilter,
|
|
31
27
|
url,
|
|
32
28
|
_args = arguments;
|
|
33
29
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -37,15 +33,12 @@ export var getAnalysesExport = /*#__PURE__*/function () {
|
|
|
37
33
|
filter = _args.length > 2 && _args[2] !== void 0 ? _args[2] : 'last_attempt';
|
|
38
34
|
analysisType = _args.length > 3 && _args[3] !== void 0 ? _args[3] : ITEM_ANALYSES;
|
|
39
35
|
fetcher = getFetcher(format);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
selectedFilter = isMultiAttemptEnabled && isStudent_analysis ? 'all_attempts' : filter;
|
|
43
|
-
url = "/api/quizzes/".concat(quizId, "/analyses/export?filter=").concat(selectedFilter, "&analysis_type=").concat(analysisType);
|
|
44
|
-
_context.next = 9;
|
|
36
|
+
url = "/api/quizzes/".concat(quizId, "/analyses/export?filter=").concat(filter, "&analysis_type=").concat(analysisType);
|
|
37
|
+
_context.next = 6;
|
|
45
38
|
return fetcher.get(url);
|
|
46
|
-
case
|
|
39
|
+
case 6:
|
|
47
40
|
return _context.abrupt("return", _context.sent);
|
|
48
|
-
case
|
|
41
|
+
case 7:
|
|
49
42
|
case "end":
|
|
50
43
|
return _context.stop();
|
|
51
44
|
}
|
|
@@ -2,15 +2,11 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import Fetcher from "../../common/util/Fetcher.js";
|
|
4
4
|
import { ITEM_ANALYSES } from '@instructure/quiz-common';
|
|
5
|
-
import { featureOn } from "../../common/util/featureCheck.js";
|
|
6
5
|
var fetcher = new Fetcher();
|
|
7
6
|
export var getAnalysesStatus = /*#__PURE__*/function () {
|
|
8
7
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(quizId) {
|
|
9
8
|
var filter,
|
|
10
9
|
analysisType,
|
|
11
|
-
isMultiAttemptEnabled,
|
|
12
|
-
isStudent_analysis,
|
|
13
|
-
selectedFilter,
|
|
14
10
|
url,
|
|
15
11
|
_args = arguments;
|
|
16
12
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -19,15 +15,12 @@ export var getAnalysesStatus = /*#__PURE__*/function () {
|
|
|
19
15
|
case 0:
|
|
20
16
|
filter = _args.length > 1 && _args[1] !== void 0 ? _args[1] : 'last_attempt';
|
|
21
17
|
analysisType = _args.length > 2 && _args[2] !== void 0 ? _args[2] : ITEM_ANALYSES;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
selectedFilter = isMultiAttemptEnabled && isStudent_analysis ? 'all_attempts' : filter;
|
|
25
|
-
url = "/api/quizzes/".concat(quizId, "/analyses/status?filter=").concat(selectedFilter, "&analysis_type=").concat(analysisType);
|
|
26
|
-
_context.next = 8;
|
|
18
|
+
url = "/api/quizzes/".concat(quizId, "/analyses/status?filter=").concat(filter, "&analysis_type=").concat(analysisType);
|
|
19
|
+
_context.next = 5;
|
|
27
20
|
return fetcher.get(url);
|
|
28
|
-
case
|
|
21
|
+
case 5:
|
|
29
22
|
return _context.abrupt("return", _context.sent);
|
|
30
|
-
case
|
|
23
|
+
case 6:
|
|
31
24
|
case "end":
|
|
32
25
|
return _context.stop();
|
|
33
26
|
}
|
|
@@ -7,11 +7,10 @@ var _dec, _class, _Caption;
|
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { Heading } from '@instructure/ui-heading';
|
|
10
|
-
import { jsx } from '@instructure/emotion';
|
|
10
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
11
11
|
import generateStyle from "./styles.js";
|
|
12
12
|
import generateComponentTheme from "./theme.js";
|
|
13
|
-
|
|
14
|
-
export var Caption = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Caption = /*#__PURE__*/function (_Component) {
|
|
13
|
+
export var Caption = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Caption = /*#__PURE__*/function (_Component) {
|
|
15
14
|
_inherits(Caption, _Component);
|
|
16
15
|
var _super = _createSuper(Caption);
|
|
17
16
|
function Caption() {
|
|
@@ -35,7 +34,7 @@ export var Caption = (_dec = withStyleOverrides(generateStyle, generateComponent
|
|
|
35
34
|
}]);
|
|
36
35
|
Caption.displayName = "Caption";
|
|
37
36
|
return Caption;
|
|
38
|
-
}(Component), _Caption.
|
|
37
|
+
}(Component), _Caption.propTypes = {
|
|
39
38
|
text: PropTypes.string,
|
|
40
39
|
children: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
|
|
41
40
|
styles: PropTypes.object
|
|
@@ -9,11 +9,10 @@ import { Component } from 'react';
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import { Metric } from '@instructure/ui-metric';
|
|
11
11
|
import { ScreenReaderContent, PresentationContent } from '@instructure/ui-a11y-content';
|
|
12
|
-
import { jsx } from '@instructure/emotion';
|
|
12
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
13
13
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
14
|
import generateStyle from "./styles.js";
|
|
15
|
-
|
|
16
|
-
export var MetricsListItem = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_MetricsListItem = /*#__PURE__*/function (_Component) {
|
|
15
|
+
export var MetricsListItem = (_dec = withStyle(generateStyle, null), _dec(_class = (_MetricsListItem = /*#__PURE__*/function (_Component) {
|
|
17
16
|
_inherits(MetricsListItem, _Component);
|
|
18
17
|
var _super = _createSuper(MetricsListItem);
|
|
19
18
|
function MetricsListItem() {
|
|
@@ -44,7 +43,7 @@ export var MetricsListItem = (_dec = withStyleOverrides(generateStyle, null), _d
|
|
|
44
43
|
}]);
|
|
45
44
|
MetricsListItem.displayName = "MetricsListItem";
|
|
46
45
|
return MetricsListItem;
|
|
47
|
-
}(Component), _MetricsListItem.
|
|
46
|
+
}(Component), _MetricsListItem.propTypes = _objectSpread(_objectSpread({}, Metric.propTypes), {}, {
|
|
48
47
|
customStyles: PropTypes.object,
|
|
49
48
|
styles: PropTypes.object
|
|
50
49
|
}), _MetricsListItem.defaultProps = {
|
|
@@ -7,21 +7,20 @@ var _dec, _class, _CentileDistribution;
|
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import { PropTypes } from 'prop-types';
|
|
9
9
|
import { range } from 'd3-array';
|
|
10
|
-
import { jsx } from '@instructure/emotion';
|
|
10
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
11
11
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
12
12
|
import { Table } from '@instructure/ui-table';
|
|
13
13
|
import Distribution from "../Distribution/index.js";
|
|
14
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
15
|
import generateStyle from "./styles.js";
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
18
17
|
var starBin = function starBin(props) {
|
|
19
18
|
if (typeof props.starScore !== 'number') return;
|
|
20
19
|
var starScore = Math.max(0, Math.min(props.starScore, 1));
|
|
21
20
|
// min+floor here matches quiz_etl HistogramHelper
|
|
22
21
|
return Math.min(Math.floor(starScore * props.visualDistribution.length), props.visualDistribution.length - 1);
|
|
23
22
|
};
|
|
24
|
-
export var CentileDistribution = (_dec =
|
|
23
|
+
export var CentileDistribution = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_CentileDistribution = /*#__PURE__*/function (_Component) {
|
|
25
24
|
_inherits(CentileDistribution, _Component);
|
|
26
25
|
var _super = _createSuper(CentileDistribution);
|
|
27
26
|
function CentileDistribution() {
|
|
@@ -100,7 +99,7 @@ export var CentileDistribution = (_dec = withStyleOverrides(generateStyle, gener
|
|
|
100
99
|
}]);
|
|
101
100
|
CentileDistribution.displayName = "CentileDistribution";
|
|
102
101
|
return CentileDistribution;
|
|
103
|
-
}(Component), _CentileDistribution.
|
|
102
|
+
}(Component), _CentileDistribution.propTypes = {
|
|
104
103
|
animateDelay: PropTypes.number,
|
|
105
104
|
animateDuration: PropTypes.number,
|
|
106
105
|
barPaddingInner: PropTypes.number,
|
|
@@ -10,20 +10,19 @@ import { max, range, sum } from 'd3-array';
|
|
|
10
10
|
import { axisBottom } from 'd3-axis';
|
|
11
11
|
import { scaleBand, scaleLinear } from 'd3-scale';
|
|
12
12
|
import { select } from 'd3-selection';
|
|
13
|
-
import { jsx, css } from '@instructure/emotion';
|
|
13
|
+
import { withStyle, jsx, css } from '@instructure/emotion';
|
|
14
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
15
|
import generateStyle from "./styles.js";
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
17
|
import { ScreenReaderContent, PresentationContent } from '@instructure/ui-a11y-content';
|
|
18
18
|
import { transition } from 'd3-transition';
|
|
19
19
|
import flow from 'lodash/flow';
|
|
20
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
21
20
|
|
|
22
21
|
// Star path copied from instructure-icons/svg/Solid/star.svg
|
|
23
22
|
export var starPathData = 'M1915.918 737.475c-10.955-33.543-42.014-56.131-77.364-56.131h-612.029l-189.063-582.1v-.112C1026.394 65.588 995.335 43 959.984 43c-35.237 0-66.41 22.588-77.365 56.245L693.443 681.344H81.415c-35.35 0-66.41 22.588-77.365 56.131-10.955 33.544.79 70.137 29.478 91.03l495.247 359.831-189.177 582.212c-10.955 33.657 1.13 70.25 29.817 90.918 14.23 10.278 30.946 15.473 47.66 15.473 16.716 0 33.432-5.195 47.775-15.586l495.134-359.718 495.021 359.718c28.574 20.781 67.087 20.781 95.662.113 28.687-20.668 40.658-57.261 29.703-91.03l-189.176-582.1 495.36-359.83c28.574-20.894 40.433-57.487 29.364-91.03';
|
|
24
23
|
var MARGIN_T = 0;
|
|
25
24
|
var MARGIN_B = 28;
|
|
26
|
-
export var Distribution = (_dec =
|
|
25
|
+
export var Distribution = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Distribution = /*#__PURE__*/function (_Component) {
|
|
27
26
|
_inherits(Distribution, _Component);
|
|
28
27
|
var _super = _createSuper(Distribution);
|
|
29
28
|
function Distribution() {
|
|
@@ -257,7 +256,7 @@ export var Distribution = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
257
256
|
}]);
|
|
258
257
|
Distribution.displayName = "Distribution";
|
|
259
258
|
return Distribution;
|
|
260
|
-
}(Component), _Distribution.displayName = 'Distribution', _Distribution.
|
|
259
|
+
}(Component), _Distribution.displayName = 'Distribution', _Distribution.propTypes = {
|
|
261
260
|
animateDelay: PropTypes.number,
|
|
262
261
|
animateDuration: PropTypes.number,
|
|
263
262
|
// ESLint thinks these props aren't used but they are via a call chain in componentDidMount
|
|
@@ -8,11 +8,10 @@ var _dec, _class, _Legend;
|
|
|
8
8
|
import { Component } from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
11
|
-
import { jsx } from '@instructure/emotion';
|
|
11
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
13
|
import generateComponentTheme from "./theme.js";
|
|
14
|
-
|
|
15
|
-
export var Legend = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Legend = /*#__PURE__*/function (_Component) {
|
|
14
|
+
export var Legend = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Legend = /*#__PURE__*/function (_Component) {
|
|
16
15
|
_inherits(Legend, _Component);
|
|
17
16
|
var _super = _createSuper(Legend);
|
|
18
17
|
function Legend() {
|
|
@@ -64,7 +63,7 @@ export var Legend = (_dec = withStyleOverrides(generateStyle, generateComponentT
|
|
|
64
63
|
}]);
|
|
65
64
|
Legend.displayName = "Legend";
|
|
66
65
|
return Legend;
|
|
67
|
-
}(Component), _Legend.
|
|
66
|
+
}(Component), _Legend.propTypes = {
|
|
68
67
|
series: PropTypes.arrayOf(PropTypes.shape({
|
|
69
68
|
label: PropTypes.string.isRequired,
|
|
70
69
|
customStyles: PropTypes.object.isRequired
|
|
@@ -7,15 +7,14 @@ var _dec, _class, _QuintileDistribution;
|
|
|
7
7
|
/* eslint "no-mixed-operators": "warn" */
|
|
8
8
|
import { Component } from 'react';
|
|
9
9
|
import { PropTypes } from 'prop-types';
|
|
10
|
-
import { jsx, css } from '@instructure/emotion';
|
|
10
|
+
import { withStyle, jsx, css } from '@instructure/emotion';
|
|
11
11
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
12
12
|
import { Table } from '@instructure/ui-table';
|
|
13
13
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
14
|
import Distribution from "../Distribution/index.js";
|
|
15
15
|
import generateStyle from "./styles.js";
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
|
-
|
|
18
|
-
export var QuintileDistribution = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuintileDistribution = /*#__PURE__*/function (_Component) {
|
|
17
|
+
export var QuintileDistribution = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuintileDistribution = /*#__PURE__*/function (_Component) {
|
|
19
18
|
_inherits(QuintileDistribution, _Component);
|
|
20
19
|
var _super = _createSuper(QuintileDistribution);
|
|
21
20
|
function QuintileDistribution() {
|
|
@@ -98,7 +97,7 @@ export var QuintileDistribution = (_dec = withStyleOverrides(generateStyle, gene
|
|
|
98
97
|
}]);
|
|
99
98
|
QuintileDistribution.displayName = "QuintileDistribution";
|
|
100
99
|
return QuintileDistribution;
|
|
101
|
-
}(Component), _QuintileDistribution.
|
|
100
|
+
}(Component), _QuintileDistribution.propTypes = {
|
|
102
101
|
animateDelay: PropTypes.number,
|
|
103
102
|
animateDuration: PropTypes.number,
|
|
104
103
|
barPaddingInner: PropTypes.number,
|
|
@@ -12,15 +12,14 @@ import { scaleLinear } from 'd3-scale';
|
|
|
12
12
|
import { IconXSolid, IconCheckSolid } from '@instructure/ui-icons';
|
|
13
13
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
14
14
|
import { Table } from '@instructure/ui-table';
|
|
15
|
-
import { jsx } from '@instructure/emotion';
|
|
15
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
16
16
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
17
17
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
18
18
|
import generateComponentTheme from "./theme.js";
|
|
19
19
|
import generateStyle from "./styles.js";
|
|
20
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
21
20
|
var _ref = jsx(IconCheckSolid, null);
|
|
22
21
|
var _ref2 = jsx(IconXSolid, null);
|
|
23
|
-
export var AnswerFrequencySummary = (_dec =
|
|
22
|
+
export var AnswerFrequencySummary = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
|
|
24
23
|
_inherits(AnswerFrequencySummary, _Component);
|
|
25
24
|
var _super = _createSuper(AnswerFrequencySummary);
|
|
26
25
|
function AnswerFrequencySummary() {
|
|
@@ -110,7 +109,7 @@ export var AnswerFrequencySummary = (_dec = withStyleOverrides(generateStyle, ge
|
|
|
110
109
|
}]);
|
|
111
110
|
AnswerFrequencySummary.displayName = "AnswerFrequencySummary";
|
|
112
111
|
return AnswerFrequencySummary;
|
|
113
|
-
}(Component), _AnswerFrequencySummary.
|
|
112
|
+
}(Component), _AnswerFrequencySummary.propTypes = {
|
|
114
113
|
itemAnalysis: ImmutablePropTypes.record.isRequired,
|
|
115
114
|
styles: PropTypes.object
|
|
116
115
|
}, _AnswerFrequencySummary)) || _class);
|
|
@@ -11,7 +11,7 @@ import OutcomeList from '@instructure/outcomes-ui/es/containers/OutcomeList';
|
|
|
11
11
|
import { MetricGroup } from '@instructure/ui-metric';
|
|
12
12
|
import { Heading } from '@instructure/ui-heading';
|
|
13
13
|
import { ScreenReaderContent, PresentationContent } from '@instructure/ui-a11y-content';
|
|
14
|
-
import { jsx } from '@instructure/emotion';
|
|
14
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
15
15
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
16
16
|
import Card from "../../../../common/components/shared/Card/index.js";
|
|
17
17
|
import ExpandButton from "../../../../common/components/shared/ExpandButton/index.js";
|
|
@@ -22,11 +22,11 @@ import Legend from "../../charts/Legend/index.js";
|
|
|
22
22
|
import Caption from "../../Caption/index.js";
|
|
23
23
|
import MetricsListItem from "../../MetricsListItem/index.js";
|
|
24
24
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
25
|
-
import { liveRegion, withI18nSupport
|
|
25
|
+
import { liveRegion, withI18nSupport } from '@instructure/quiz-common';
|
|
26
26
|
import generateStyle from "./styles.js";
|
|
27
27
|
import generateComponentTheme from "./theme.js";
|
|
28
28
|
var _ref2 = jsx(Spinner, null);
|
|
29
|
-
export var ItemAnalysisRow = (_dec =
|
|
29
|
+
export var ItemAnalysisRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ItemAnalysisRow = /*#__PURE__*/function (_withI18nSupport) {
|
|
30
30
|
_inherits(ItemAnalysisRow, _withI18nSupport);
|
|
31
31
|
var _super = _createSuper(ItemAnalysisRow);
|
|
32
32
|
function ItemAnalysisRow() {
|
|
@@ -236,7 +236,7 @@ export var ItemAnalysisRow = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
236
236
|
}]);
|
|
237
237
|
ItemAnalysisRow.displayName = "ItemAnalysisRow";
|
|
238
238
|
return ItemAnalysisRow;
|
|
239
|
-
}(withI18nSupport(Component)), _ItemAnalysisRow.
|
|
239
|
+
}(withI18nSupport(Component)), _ItemAnalysisRow.propTypes = {
|
|
240
240
|
animateDelay: PropTypes.number,
|
|
241
241
|
animateDuration: PropTypes.number,
|
|
242
242
|
expanded: PropTypes.bool,
|
|
@@ -10,7 +10,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
10
10
|
import { Heading } from '@instructure/ui-heading';
|
|
11
11
|
import { MetricGroup } from '@instructure/ui-metric';
|
|
12
12
|
import { Text } from '@instructure/ui-text';
|
|
13
|
-
import { jsx } from '@instructure/emotion';
|
|
13
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
14
14
|
import FormattedDuration from "../../../common/components/shared/FormattedDuration/index.js";
|
|
15
15
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
16
16
|
import Card from "../../../common/components/shared/Card/index.js";
|
|
@@ -19,10 +19,9 @@ import CentileDistribution from "../charts/CentileDistribution/index.js";
|
|
|
19
19
|
import MetricsListItem from "../MetricsListItem/index.js";
|
|
20
20
|
import generateStyle from "./styles.js";
|
|
21
21
|
import generateComponentTheme from "./theme.js";
|
|
22
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
23
22
|
var _ref = jsx("br", null);
|
|
24
23
|
var _ref2 = jsx(Spinner, null);
|
|
25
|
-
export var QuizAnalysisOverview = (_dec =
|
|
24
|
+
export var QuizAnalysisOverview = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_QuizAnalysisOverview = /*#__PURE__*/function (_Component) {
|
|
26
25
|
_inherits(QuizAnalysisOverview, _Component);
|
|
27
26
|
var _super = _createSuper(QuizAnalysisOverview);
|
|
28
27
|
function QuizAnalysisOverview() {
|
|
@@ -121,7 +120,7 @@ export var QuizAnalysisOverview = (_dec = withStyleOverrides(generateStyle, gene
|
|
|
121
120
|
}]);
|
|
122
121
|
QuizAnalysisOverview.displayName = "QuizAnalysisOverview";
|
|
123
122
|
return QuizAnalysisOverview;
|
|
124
|
-
}(Component), _QuizAnalysisOverview.
|
|
123
|
+
}(Component), _QuizAnalysisOverview.propTypes = {
|
|
125
124
|
animateDelay: PropTypes.number,
|
|
126
125
|
animateDuration: PropTypes.number,
|
|
127
126
|
quizAnalysis: ImmutablePropTypes.record.isRequired,
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js
CHANGED
|
@@ -8,10 +8,9 @@ import { Component } from 'react';
|
|
|
8
8
|
import { getSanitizedMetricValue } from "../../common/utils.js";
|
|
9
9
|
import { Metric } from '@instructure/ui-metric';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import { jsx } from '@instructure/emotion';
|
|
11
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
|
-
|
|
14
|
-
export var AnalysisMetric = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_AnalysisMetric = /*#__PURE__*/function (_Component) {
|
|
13
|
+
export var AnalysisMetric = (_dec = withStyle(generateStyle, null), _dec(_class = (_AnalysisMetric = /*#__PURE__*/function (_Component) {
|
|
15
14
|
_inherits(AnalysisMetric, _Component);
|
|
16
15
|
var _super = _createSuper(AnalysisMetric);
|
|
17
16
|
function AnalysisMetric() {
|
|
@@ -46,7 +45,7 @@ export var AnalysisMetric = (_dec = withStyleOverrides(generateStyle, null), _de
|
|
|
46
45
|
}]);
|
|
47
46
|
AnalysisMetric.displayName = "AnalysisMetric";
|
|
48
47
|
return AnalysisMetric;
|
|
49
|
-
}(Component), _AnalysisMetric.
|
|
48
|
+
}(Component), _AnalysisMetric.propTypes = {
|
|
50
49
|
metricKey: PropTypes.string.isRequired,
|
|
51
50
|
label: PropTypes.string.isRequired,
|
|
52
51
|
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array]),
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js
CHANGED
|
@@ -8,11 +8,10 @@ import { Component } from 'react';
|
|
|
8
8
|
import { Metric } from '@instructure/ui-metric';
|
|
9
9
|
import { getSanitizedMetricValue } from "../../common/utils.js";
|
|
10
10
|
import MetricPopover from "../MetricPopover/index.js";
|
|
11
|
-
import { jsx } from '@instructure/emotion';
|
|
11
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
|
-
|
|
15
|
-
export var AnalysisPopoverMetric = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_AnalysisPopoverMetric = /*#__PURE__*/function (_Component) {
|
|
14
|
+
export var AnalysisPopoverMetric = (_dec = withStyle(generateStyle, null), _dec(_class = (_AnalysisPopoverMetric = /*#__PURE__*/function (_Component) {
|
|
16
15
|
_inherits(AnalysisPopoverMetric, _Component);
|
|
17
16
|
var _super = _createSuper(AnalysisPopoverMetric);
|
|
18
17
|
function AnalysisPopoverMetric() {
|
|
@@ -51,7 +50,7 @@ export var AnalysisPopoverMetric = (_dec = withStyleOverrides(generateStyle, nul
|
|
|
51
50
|
}]);
|
|
52
51
|
AnalysisPopoverMetric.displayName = "AnalysisPopoverMetric";
|
|
53
52
|
return AnalysisPopoverMetric;
|
|
54
|
-
}(Component), _AnalysisPopoverMetric.
|
|
53
|
+
}(Component), _AnalysisPopoverMetric.propTypes = {
|
|
55
54
|
metricKey: PropTypes.string.isRequired,
|
|
56
55
|
label: PropTypes.string.isRequired,
|
|
57
56
|
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -7,17 +7,16 @@ var _dec, _class, _ChoiceTypeTableRow;
|
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import { Table } from '@instructure/ui-table';
|
|
9
9
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
10
|
-
import { jsx } from '@instructure/emotion';
|
|
10
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
11
11
|
import generateComponentTheme from "./theme.js";
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import { IconXSolid, IconCheckSolid } from '@instructure/ui-icons';
|
|
15
15
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
16
16
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
17
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
18
17
|
var _ref = jsx(IconCheckSolid, null);
|
|
19
18
|
var _ref2 = jsx(IconXSolid, null);
|
|
20
|
-
export var ChoiceTypeTableRow = (_dec =
|
|
19
|
+
export var ChoiceTypeTableRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ChoiceTypeTableRow = /*#__PURE__*/function (_Component) {
|
|
21
20
|
_inherits(ChoiceTypeTableRow, _Component);
|
|
22
21
|
var _super = _createSuper(ChoiceTypeTableRow);
|
|
23
22
|
function ChoiceTypeTableRow() {
|
|
@@ -89,7 +88,7 @@ export var ChoiceTypeTableRow = (_dec = withStyleOverrides(generateStyle, genera
|
|
|
89
88
|
}
|
|
90
89
|
}]);
|
|
91
90
|
return ChoiceTypeTableRow;
|
|
92
|
-
}(Component), _ChoiceTypeTableRow.displayName = 'Row', _ChoiceTypeTableRow.
|
|
91
|
+
}(Component), _ChoiceTypeTableRow.displayName = 'Row', _ChoiceTypeTableRow.propTypes = {
|
|
93
92
|
choice: PropTypes.shape({
|
|
94
93
|
body: PropTypes.string,
|
|
95
94
|
correct: PropTypes.bool,
|
|
@@ -7,7 +7,7 @@ var _dec, _class, _LegacyChoiceType;
|
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
9
9
|
import { Table } from '@instructure/ui-table';
|
|
10
|
-
import { jsx } from '@instructure/emotion';
|
|
10
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
11
11
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
13
|
import ChoiceTypeTableRow from "./ChoiceTypeTableRow/index.js";
|
|
@@ -15,8 +15,7 @@ import { choiceTypeAnswerSummaryPropType } from "../../../common/propTypes.js";
|
|
|
15
15
|
import generateStyle from "./styles.js";
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
17
|
import AfsTableWrapper from "../shared/AfsTableWrapper/index.js";
|
|
18
|
-
|
|
19
|
-
export var LegacyChoiceType = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_LegacyChoiceType = /*#__PURE__*/function (_Component) {
|
|
18
|
+
export var LegacyChoiceType = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_LegacyChoiceType = /*#__PURE__*/function (_Component) {
|
|
20
19
|
_inherits(LegacyChoiceType, _Component);
|
|
21
20
|
var _super = _createSuper(LegacyChoiceType);
|
|
22
21
|
function LegacyChoiceType() {
|
|
@@ -83,7 +82,7 @@ export var LegacyChoiceType = (_dec = withStyleOverrides(generateStyle, generate
|
|
|
83
82
|
}]);
|
|
84
83
|
LegacyChoiceType.displayName = "LegacyChoiceType";
|
|
85
84
|
return LegacyChoiceType;
|
|
86
|
-
}(Component), _LegacyChoiceType.
|
|
85
|
+
}(Component), _LegacyChoiceType.propTypes = {
|
|
87
86
|
itemId: PropTypes.number.isRequired,
|
|
88
87
|
answerSummary: choiceTypeAnswerSummaryPropType.isRequired,
|
|
89
88
|
styles: PropTypes.object
|
|
@@ -9,7 +9,7 @@ import { Flex } from '@instructure/ui-flex';
|
|
|
9
9
|
import generateStyle from "./styles.js";
|
|
10
10
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
11
11
|
import { Table } from '@instructure/ui-table';
|
|
12
|
-
import { jsx } from '@instructure/emotion';
|
|
12
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import { IconCheckSolid } from '@instructure/ui-icons';
|
|
15
15
|
import { matchingTypeAnswerSummaryPropType } from "../../../../common/propTypes.js";
|
|
@@ -17,13 +17,12 @@ import MatchingTypeOrderer from "../utils/matchingTypeOrderer.js";
|
|
|
17
17
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
18
18
|
import generateComponentTheme from "./theme.js";
|
|
19
19
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
20
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
21
20
|
var _ref = jsx(IconCheckSolid, null);
|
|
22
21
|
var _ref2 = jsx(Flex.Item, {
|
|
23
22
|
width: "46px",
|
|
24
23
|
textAlign: "center"
|
|
25
24
|
});
|
|
26
|
-
export var MatchingTypeTable = (_dec =
|
|
25
|
+
export var MatchingTypeTable = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_MatchingTypeTable = /*#__PURE__*/function (_Component) {
|
|
27
26
|
_inherits(MatchingTypeTable, _Component);
|
|
28
27
|
var _super = _createSuper(MatchingTypeTable);
|
|
29
28
|
function MatchingTypeTable() {
|
|
@@ -171,7 +170,7 @@ export var MatchingTypeTable = (_dec = withStyleOverrides(generateStyle, generat
|
|
|
171
170
|
}
|
|
172
171
|
}]);
|
|
173
172
|
return MatchingTypeTable;
|
|
174
|
-
}(Component), _MatchingTypeTable.
|
|
173
|
+
}(Component), _MatchingTypeTable.propTypes = {
|
|
175
174
|
itemId: PropTypes.number.isRequired,
|
|
176
175
|
answerSummary: matchingTypeAnswerSummaryPropType.isRequired,
|
|
177
176
|
firstColumnName: PropTypes.string.isRequired,
|
|
@@ -12,14 +12,13 @@ import ExpandableCard from "../shared/ExpandableCard/index.js";
|
|
|
12
12
|
import { Text } from '@instructure/ui-text';
|
|
13
13
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
14
|
import ChoiceTypeTable from "../shared/ChoiceTypeTable/index.js";
|
|
15
|
-
import { jsx } from '@instructure/emotion';
|
|
15
|
+
import { jsx, withStyle } 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
19
|
import { Flex } from '@instructure/ui-flex';
|
|
20
20
|
import { numericTypeAnswerSummaryPropType } from "../../../common/propTypes.js";
|
|
21
|
-
|
|
22
|
-
export var NumericType = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_NumericType = /*#__PURE__*/function (_Component) {
|
|
21
|
+
export var NumericType = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_NumericType = /*#__PURE__*/function (_Component) {
|
|
23
22
|
_inherits(NumericType, _Component);
|
|
24
23
|
var _super = _createSuper(NumericType);
|
|
25
24
|
function NumericType() {
|
|
@@ -213,7 +212,7 @@ export var NumericType = (_dec = withStyleOverrides(generateStyle, generateCompo
|
|
|
213
212
|
return _this;
|
|
214
213
|
}
|
|
215
214
|
return NumericType;
|
|
216
|
-
}(Component), _NumericType.
|
|
215
|
+
}(Component), _NumericType.propTypes = {
|
|
217
216
|
itemId: PropTypes.number.isRequired,
|
|
218
217
|
answerSummary: numericTypeAnswerSummaryPropType.isRequired,
|
|
219
218
|
styles: PropTypes.object
|
|
@@ -11,12 +11,11 @@ import { Text } from '@instructure/ui-text';
|
|
|
11
11
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
12
|
import ChoiceTypeTable from "../../shared/ChoiceTypeTable/index.js";
|
|
13
13
|
import BlankIcon from "../../../NewItemAnalysis/BlankIcon/index.js";
|
|
14
|
-
import { jsx } from '@instructure/emotion';
|
|
14
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
15
15
|
import generateStyle from "./styles.js";
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
17
|
import ExpandableCard from "../../shared/ExpandableCard/index.js";
|
|
18
|
-
|
|
19
|
-
export var ChoiceGroupTypeTable = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ChoiceGroupTypeTable = /*#__PURE__*/function (_Component) {
|
|
18
|
+
export var ChoiceGroupTypeTable = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ChoiceGroupTypeTable = /*#__PURE__*/function (_Component) {
|
|
20
19
|
_inherits(ChoiceGroupTypeTable, _Component);
|
|
21
20
|
var _super = _createSuper(ChoiceGroupTypeTable);
|
|
22
21
|
function ChoiceGroupTypeTable() {
|
|
@@ -120,7 +119,7 @@ export var ChoiceGroupTypeTable = (_dec = withStyleOverrides(generateStyle, gene
|
|
|
120
119
|
return _this;
|
|
121
120
|
}
|
|
122
121
|
return ChoiceGroupTypeTable;
|
|
123
|
-
}(Component), _ChoiceGroupTypeTable.
|
|
122
|
+
}(Component), _ChoiceGroupTypeTable.propTypes = {
|
|
124
123
|
itemId: PropTypes.number.isRequired,
|
|
125
124
|
blank: PropTypes.shape({
|
|
126
125
|
choices: PropTypes.arrayOf(choiceTypeObject).isRequired,
|
|
@@ -9,11 +9,10 @@ import { Component } from 'react';
|
|
|
9
9
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
10
10
|
import { Table } from '@instructure/ui-table';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
|
-
import { jsx } from '@instructure/emotion';
|
|
12
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
13
13
|
import generateStyle from "./styles.js";
|
|
14
14
|
import generateComponentTheme from "./theme.js";
|
|
15
|
-
|
|
16
|
-
export var ScoreDistributionTypeTable = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ScoreDistributionTypeTable = /*#__PURE__*/function (_Component) {
|
|
15
|
+
export var ScoreDistributionTypeTable = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ScoreDistributionTypeTable = /*#__PURE__*/function (_Component) {
|
|
17
16
|
_inherits(ScoreDistributionTypeTable, _Component);
|
|
18
17
|
var _super = _createSuper(ScoreDistributionTypeTable);
|
|
19
18
|
function ScoreDistributionTypeTable() {
|
|
@@ -97,7 +96,7 @@ export var ScoreDistributionTypeTable = (_dec = withStyleOverrides(generateStyle
|
|
|
97
96
|
}]);
|
|
98
97
|
ScoreDistributionTypeTable.displayName = "ScoreDistributionTypeTable";
|
|
99
98
|
return ScoreDistributionTypeTable;
|
|
100
|
-
}(Component), _ScoreDistributionTypeTable.
|
|
99
|
+
}(Component), _ScoreDistributionTypeTable.propTypes = {
|
|
101
100
|
itemId: PropTypes.number.isRequired,
|
|
102
101
|
scores: PropTypes.arrayOf(scoreDistributionType).isRequired,
|
|
103
102
|
makeStyles: PropTypes.func,
|
|
@@ -6,11 +6,10 @@ var _dec, _class, _AfsPartsContainer;
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import React, { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { jsx } from '@instructure/emotion';
|
|
9
|
+
import { withStyle, jsx } from '@instructure/emotion';
|
|
10
10
|
import generateStyle from "./styles.js";
|
|
11
11
|
import generateComponentTheme from "./theme.js";
|
|
12
|
-
|
|
13
|
-
export var AfsPartsContainer = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_AfsPartsContainer = /*#__PURE__*/function (_Component) {
|
|
12
|
+
export var AfsPartsContainer = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_AfsPartsContainer = /*#__PURE__*/function (_Component) {
|
|
14
13
|
_inherits(AfsPartsContainer, _Component);
|
|
15
14
|
var _super = _createSuper(AfsPartsContainer);
|
|
16
15
|
function AfsPartsContainer() {
|
|
@@ -49,7 +48,7 @@ export var AfsPartsContainer = (_dec = withStyleOverrides(generateStyle, generat
|
|
|
49
48
|
}
|
|
50
49
|
}]);
|
|
51
50
|
return AfsPartsContainer;
|
|
52
|
-
}(Component), _AfsPartsContainer.
|
|
51
|
+
}(Component), _AfsPartsContainer.propTypes = {
|
|
53
52
|
afsTable: PropTypes.node,
|
|
54
53
|
aggregationTable: PropTypes.node,
|
|
55
54
|
styles: PropTypes.object,
|