@instructure/quiz-core 20.34.0 → 20.34.1-snapshot.10
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/api/banks.js +6 -2
- package/es/banks/components/AddToBankModal/index.js +1 -5
- package/es/banks/components/AddToBankModal/presenter.js +11 -10
- package/es/banks/components/AsyncSearch/index.js +1 -2
- package/es/banks/components/Bank/presenter.js +4 -4
- package/es/banks/components/BankEntriesList/presenter.js +4 -3
- 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 +4 -3
- package/es/banks/components/Banks/index.js +0 -1
- package/es/banks/components/Banks/presenter.js +6 -9
- package/es/banks/components/BanksList/index.js +1 -3
- package/es/banks/components/BanksList/presenter.js +20 -23
- package/es/banks/components/CopyMoveBankEntryModal/index.js +1 -5
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +11 -11
- 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 +4 -3
- package/es/banks/components/SharingModal/RootAccountSharing.js +3 -4
- package/es/banks/components/SharingModal/ShareList/index.js +6 -7
- package/es/banks/components/SharingModal/index.js +0 -1
- package/es/banks/components/SharingModal/presenter.js +5 -9
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +4 -3
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +4 -3
- 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 +4 -3
- package/es/building/components/resources/quiz/instructions/Show/index.js +4 -3
- package/es/building/components/resources/quiz/title/Edit/index.js +4 -3
- package/es/building/components/resources/quiz/title/Show/index.js +9 -4
- package/es/building/components/resources/quiz/title/Title/presenter.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -5
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +4 -3
- 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 +4 -3
- 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 +4 -3
- package/es/common/components/layout/Page/index.js +8 -5
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +4 -3
- package/es/common/components/layout/header/Timer/presenter.js +4 -3
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -3
- package/es/common/components/layout/navbar/index.js +4 -3
- package/es/common/components/layout/sidebar/PositionSummary/index.js +4 -3
- package/es/common/components/layout/sidebar/Sidebar/index.js +6 -5
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +4 -4
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +4 -4
- package/es/common/components/resources/BankSelection/presenter.js +40 -142
- package/es/common/components/resources/WarningWrapper/index.js +4 -3
- package/es/common/components/resources/positionBox/PositionBox.js +4 -3
- 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 +4 -3
- package/es/common/components/resources/quiz/title/Title.js +4 -3
- package/es/common/components/resources/quizSessionResult/Header/index.js +4 -3
- package/es/common/components/resources/quizSessionResult/Info/index.js +4 -4
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -3
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +4 -3
- 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 +4 -3
- package/es/common/components/shared/Card/CardContent/index.js +4 -3
- package/es/common/components/shared/Card/CardWrapper/index.js +4 -3
- package/es/common/components/shared/ExpandButton/index.js +4 -3
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +178 -0
- package/es/common/components/shared/InteractionTypes/presenter.js +4 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +4 -3
- package/es/common/components/shared/Paginator/index.js +4 -3
- package/es/common/components/shared/TagDisplay/index.js +4 -3
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +4 -3
- package/es/common/components/shared/errors/Errors.js +4 -3
- package/es/common/components/shared/file_selector/FileSelector.js +4 -3
- package/es/common/components/shared/overlay/index.js +4 -4
- package/es/common/components/shared/spinner/Spinner.js +4 -3
- package/es/index.js +6 -2
- package/es/moderating/components/events/Event.js +3 -0
- package/es/moderating/components/events/ResponseEvent.js +4 -3
- 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 +9 -4
- package/es/reporting/api/getAnalysesExport.js +11 -4
- package/es/reporting/api/getAnalysesStatus.js +11 -4
- package/es/reporting/components/Caption/index.js +4 -3
- package/es/reporting/components/MetricsListItem/index.js +4 -3
- package/es/reporting/components/charts/CentileDistribution/presenter.js +4 -3
- package/es/reporting/components/charts/Distribution/presenter.js +4 -3
- package/es/reporting/components/charts/Legend/index.js +4 -3
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +4 -3
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +4 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -3
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/ReportCard/index.js +4 -3
- package/es/reporting/components/resources/ReportList/index.js +4 -3
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +8 -6
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -1
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +19 -6
- package/lib/banks/api/banks.js +8 -3
- package/lib/banks/components/AddToBankModal/index.js +0 -4
- package/lib/banks/components/AddToBankModal/presenter.js +11 -10
- package/lib/banks/components/AsyncSearch/index.js +1 -2
- package/lib/banks/components/Bank/presenter.js +2 -2
- package/lib/banks/components/BankEntriesList/presenter.js +3 -2
- 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 +3 -2
- package/lib/banks/components/Banks/index.js +0 -1
- package/lib/banks/components/Banks/presenter.js +4 -7
- package/lib/banks/components/BanksList/index.js +1 -3
- package/lib/banks/components/BanksList/presenter.js +18 -21
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +0 -4
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +11 -11
- 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 +3 -2
- package/lib/banks/components/SharingModal/RootAccountSharing.js +2 -3
- package/lib/banks/components/SharingModal/ShareList/index.js +4 -5
- package/lib/banks/components/SharingModal/index.js +0 -1
- package/lib/banks/components/SharingModal/presenter.js +3 -7
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +3 -2
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +3 -2
- 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 +3 -2
- package/lib/building/components/resources/quiz/instructions/Show/index.js +3 -2
- package/lib/building/components/resources/quiz/title/Edit/index.js +3 -2
- package/lib/building/components/resources/quiz/title/Show/index.js +3 -2
- package/lib/building/components/resources/quiz/title/Title/presenter.js +3 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -5
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +3 -2
- 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 +3 -2
- 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 +3 -2
- package/lib/common/components/layout/Page/index.js +7 -4
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +3 -2
- package/lib/common/components/layout/header/Timer/presenter.js +3 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +3 -2
- package/lib/common/components/layout/navbar/index.js +3 -2
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +3 -2
- package/lib/common/components/layout/sidebar/Sidebar/index.js +4 -3
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +2 -2
- package/lib/common/components/resources/BankSelection/presenter.js +40 -142
- package/lib/common/components/resources/WarningWrapper/index.js +3 -2
- package/lib/common/components/resources/positionBox/PositionBox.js +3 -2
- 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 +3 -2
- package/lib/common/components/resources/quiz/title/Title.js +3 -2
- package/lib/common/components/resources/quizSessionResult/Header/index.js +3 -2
- package/lib/common/components/resources/quizSessionResult/Info/index.js +2 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +3 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +2 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +3 -2
- 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 +3 -2
- package/lib/common/components/shared/Card/CardContent/index.js +3 -2
- package/lib/common/components/shared/Card/CardWrapper/index.js +3 -2
- package/lib/common/components/shared/ExpandButton/index.js +3 -2
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +188 -0
- package/lib/common/components/shared/InteractionTypes/presenter.js +3 -2
- package/lib/common/components/shared/PaginatedCollection/presenter.js +3 -2
- package/lib/common/components/shared/Paginator/index.js +3 -2
- package/lib/common/components/shared/TagDisplay/index.js +3 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +3 -2
- package/lib/common/components/shared/errors/Errors.js +3 -2
- package/lib/common/components/shared/file_selector/FileSelector.js +3 -2
- package/lib/common/components/shared/overlay/index.js +2 -2
- package/lib/common/components/shared/spinner/Spinner.js +3 -2
- package/lib/index.js +51 -0
- package/lib/moderating/components/events/Event.js +4 -1
- package/lib/moderating/components/events/ResponseEvent.js +3 -2
- 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 +9 -4
- package/lib/reporting/api/getAnalysesExport.js +11 -4
- package/lib/reporting/api/getAnalysesStatus.js +11 -4
- package/lib/reporting/components/Caption/index.js +3 -2
- package/lib/reporting/components/MetricsListItem/index.js +3 -2
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +3 -2
- package/lib/reporting/components/charts/Distribution/presenter.js +3 -2
- package/lib/reporting/components/charts/Legend/index.js +3 -2
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +3 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +3 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +2 -2
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
- package/lib/reporting/components/resources/ReportCard/index.js +3 -2
- package/lib/reporting/components/resources/ReportList/index.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +7 -5
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -1
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +19 -6
- package/package.json +31 -30
|
@@ -8,10 +8,11 @@ import { Component } from 'react';
|
|
|
8
8
|
import { List } from 'immutable';
|
|
9
9
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import {
|
|
11
|
+
import { jsx } from '@instructure/emotion';
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
13
|
import generateComponentTheme from "./theme.js";
|
|
14
|
-
|
|
14
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
15
|
+
export var Errors = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Errors = /*#__PURE__*/function (_Component) {
|
|
15
16
|
_inherits(Errors, _Component);
|
|
16
17
|
var _super = _createSuper(Errors);
|
|
17
18
|
function Errors() {
|
|
@@ -46,7 +47,7 @@ export var Errors = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
46
47
|
}]);
|
|
47
48
|
Errors.displayName = "Errors";
|
|
48
49
|
return Errors;
|
|
49
|
-
}(Component), _Errors.propTypes = {
|
|
50
|
+
}(Component), _Errors.displayName = 'Errors', _Errors.componentId = "Quizzes".concat(_Errors.displayName), _Errors.propTypes = {
|
|
50
51
|
errorList: ImmutablePropTypes.list,
|
|
51
52
|
styles: PropTypes.object
|
|
52
53
|
}, _Errors.defaultProps = {
|
|
@@ -9,10 +9,11 @@ import { List } from 'immutable';
|
|
|
9
9
|
import { Component } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import Dropzone from 'react-dropzone';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import generateStyle from "./styles.js";
|
|
14
14
|
import generateComponentTheme from "./theme.js";
|
|
15
|
-
|
|
15
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
16
|
+
export var FileSelector = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_FileSelector = /*#__PURE__*/function (_Component) {
|
|
16
17
|
_inherits(FileSelector, _Component);
|
|
17
18
|
var _super = _createSuper(FileSelector);
|
|
18
19
|
function FileSelector() {
|
|
@@ -46,7 +47,7 @@ export var FileSelector = (_dec = withStyle(generateStyle, generateComponentThem
|
|
|
46
47
|
}]);
|
|
47
48
|
FileSelector.displayName = "FileSelector";
|
|
48
49
|
return FileSelector;
|
|
49
|
-
}(Component), _FileSelector.propTypes = {
|
|
50
|
+
}(Component), _FileSelector.displayName = 'FileSelector', _FileSelector.componentId = "Quizzes".concat(_FileSelector.displayName), _FileSelector.propTypes = {
|
|
50
51
|
acceptAttribute: PropTypes.string.isRequired,
|
|
51
52
|
content: PropTypes.node.isRequired,
|
|
52
53
|
fileHandler: PropTypes.func.isRequired,
|
|
@@ -14,11 +14,11 @@ import PropTypes from 'prop-types';
|
|
|
14
14
|
* component but it seems like this is the simplest and best choice for now.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { jsx, Global } from '@instructure/emotion';
|
|
18
18
|
import generateStyle from "./styles.js";
|
|
19
19
|
import generateComponentTheme from "./theme.js";
|
|
20
|
-
import { END_EDITING_TRIGGER_CLASSNAME } from '@instructure/quiz-common';
|
|
21
|
-
var Overlay = (_dec =
|
|
20
|
+
import { END_EDITING_TRIGGER_CLASSNAME, withStyleOverrides } from '@instructure/quiz-common';
|
|
21
|
+
var Overlay = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Overlay = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(Overlay, _Component);
|
|
23
23
|
var _super = _createSuper(Overlay);
|
|
24
24
|
function Overlay() {
|
|
@@ -64,7 +64,7 @@ var Overlay = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
|
|
|
64
64
|
}]);
|
|
65
65
|
Overlay.displayName = "Overlay";
|
|
66
66
|
return Overlay;
|
|
67
|
-
}(Component), _Overlay.propTypes = {
|
|
67
|
+
}(Component), _Overlay.displayName = 'Overlay', _Overlay.componentId = "Quizzes".concat(_Overlay.displayName), _Overlay.propTypes = {
|
|
68
68
|
children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]).isRequired,
|
|
69
69
|
hideOverlay: PropTypes.bool,
|
|
70
70
|
onClick: PropTypes.func.isRequired,
|
|
@@ -9,10 +9,11 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { Text } from '@instructure/ui-text';
|
|
10
10
|
import { Spinner } from '@instructure/ui-spinner';
|
|
11
11
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
14
|
import generateStyle from "./styles.js";
|
|
15
|
-
|
|
15
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
16
|
+
export var QuizzesSpinner = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_QuizzesSpinner = /*#__PURE__*/function (_Component) {
|
|
16
17
|
_inherits(QuizzesSpinner, _Component);
|
|
17
18
|
var _super = _createSuper(QuizzesSpinner);
|
|
18
19
|
function QuizzesSpinner(props) {
|
|
@@ -77,7 +78,7 @@ export var QuizzesSpinner = (_dec = withStyle(generateStyle, null), _dec(_class
|
|
|
77
78
|
}]);
|
|
78
79
|
QuizzesSpinner.displayName = "QuizzesSpinner";
|
|
79
80
|
return QuizzesSpinner;
|
|
80
|
-
}(Component), _QuizzesSpinner.propTypes = {
|
|
81
|
+
}(Component), _QuizzesSpinner.displayName = 'QuizzesSpinner', _QuizzesSpinner.componentId = "Quizzes".concat(_QuizzesSpinner.displayName), _QuizzesSpinner.propTypes = {
|
|
81
82
|
mainText: PropTypes.string,
|
|
82
83
|
fontSize: PropTypes.oneOf(['x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
|
|
83
84
|
size: PropTypes.oneOf(['x-small', 'small', 'medium', 'large']),
|
package/es/index.js
CHANGED
|
@@ -78,7 +78,8 @@ export { QuizEntry as QuizEntryView } from "./building/components/resources/quiz
|
|
|
78
78
|
export { Provider } from "./common/react-redux.js";
|
|
79
79
|
export { FormattedTimer } from "./common/components/shared/FormattedDuration/index.js";
|
|
80
80
|
export { default as TagWrapper } from "./common/components/shared/TagWrapper/index.js";
|
|
81
|
-
export { RetryGradePassbackButton } from "./moderating/components/resources/RetryGradePassbackButton/index.js";
|
|
81
|
+
export { RetryGradePassbackButton } from "./moderating/components/resources/RetryGradePassbackButton/index.js";
|
|
82
|
+
export { GenericAsyncSearch } from "./common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js"; // Utilities
|
|
82
83
|
export { environment as config } from "./config.js";
|
|
83
84
|
export { Fetcher } from "./common/util/Fetcher.js";
|
|
84
85
|
export { httpHeaders } from "./common/util/httpHeaders.js";
|
|
@@ -102,7 +103,10 @@ export { connect } from "./common/react-redux.js";
|
|
|
102
103
|
export { breakdownSeconds, HOUR_IN_SECONDS } from "./common/components/shared/FormattedDuration/index.js";
|
|
103
104
|
export { sessionStore } from "./common/util/sessionStore.js";
|
|
104
105
|
export { printWithCss, ensureImagesLoaded } from "./common/util/printUtils.js";
|
|
105
|
-
export { ensureRCEContentIsLoaded } from "./common/util/rceChecker.js";
|
|
106
|
+
export { ensureRCEContentIsLoaded } from "./common/util/rceChecker.js";
|
|
107
|
+
export { applyComponentStyleOverride, withStyleOverrides, getThemeByKey, setThemeByKey, getActiveTheme, setActiveTheme } from '@instructure/quiz-common';
|
|
108
|
+
|
|
109
|
+
// APIs
|
|
106
110
|
export { createQuizEntryRegrade } from "./grading/api/quizEntryRegrades.js";
|
|
107
111
|
export { getQuizEntry } from "./building/api/quizEntries.js";
|
|
108
112
|
export { getItem } from "./building/api/items.js";
|
|
@@ -2,6 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
var _Event;
|
|
5
6
|
import React, { Component } from 'react';
|
|
6
7
|
import PropTypes from 'prop-types';
|
|
7
8
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
@@ -75,8 +76,10 @@ export var Event = /*#__PURE__*/function (_Component) {
|
|
|
75
76
|
Event.displayName = "Event";
|
|
76
77
|
return Event;
|
|
77
78
|
}(Component);
|
|
79
|
+
_Event = Event;
|
|
78
80
|
// This ugly hack is necessary because the InstUI v7 Table.Body only renders components with name 'Row'.
|
|
79
81
|
Event.displayName = 'Row';
|
|
82
|
+
Event.componentId = "Quizzes".concat(_Event.displayName);
|
|
80
83
|
Event.propTypes = {
|
|
81
84
|
event: ImmutablePropTypes.record,
|
|
82
85
|
startTime: PropTypes.instanceOf(Date)
|
|
@@ -11,13 +11,14 @@ import { IconImageSolid } from '@instructure/ui-icons';
|
|
|
11
11
|
import { Text } from '@instructure/ui-text';
|
|
12
12
|
import { Img } from '@instructure/ui-img';
|
|
13
13
|
import { ToggleDetails } from '@instructure/ui-toggle-details';
|
|
14
|
-
import {
|
|
14
|
+
import { jsx } from '@instructure/emotion';
|
|
15
15
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
16
16
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
17
17
|
import generateStyle from "./styles.js";
|
|
18
18
|
import generateComponentTheme from "./theme.js";
|
|
19
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
19
20
|
var imgRegex = /<img.*?src=['"](.+)['"]/g;
|
|
20
|
-
export var ResponseEvent = (_dec =
|
|
21
|
+
export var ResponseEvent = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ResponseEvent = /*#__PURE__*/function (_Component) {
|
|
21
22
|
_inherits(ResponseEvent, _Component);
|
|
22
23
|
var _super = _createSuper(ResponseEvent);
|
|
23
24
|
function ResponseEvent() {
|
|
@@ -97,7 +98,7 @@ export var ResponseEvent = (_dec = withStyle(generateStyle, generateComponentThe
|
|
|
97
98
|
}]);
|
|
98
99
|
ResponseEvent.displayName = "ResponseEvent";
|
|
99
100
|
return ResponseEvent;
|
|
100
|
-
}(Component), _ResponseEvent.propTypes = {
|
|
101
|
+
}(Component), _ResponseEvent.displayName = 'ResponseEvent', _ResponseEvent.componentId = "Quizzes".concat(_ResponseEvent.displayName), _ResponseEvent.propTypes = {
|
|
101
102
|
event: ImmutablePropTypes.record.isRequired,
|
|
102
103
|
item: ImmutablePropTypes.record.isRequired,
|
|
103
104
|
styles: PropTypes.object
|
|
@@ -16,7 +16,7 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
16
16
|
import { Table } from '@instructure/ui-table';
|
|
17
17
|
import { IconButton } from '@instructure/ui-buttons';
|
|
18
18
|
import { IconInfoLine, IconConfigureLine } from '@instructure/ui-icons';
|
|
19
|
-
import {
|
|
19
|
+
import { jsx } from '@instructure/emotion';
|
|
20
20
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
21
21
|
import ModerateTableRow from "../ModerateTableRow/index.js";
|
|
22
22
|
import IfFeature from "../../../../common/components/shared/IfFeature/index.js";
|
|
@@ -26,13 +26,13 @@ import Spinner from "../../../../common/components/shared/spinner/Spinner.js";
|
|
|
26
26
|
import generateStyle from "./styles.js";
|
|
27
27
|
import generateComponentTheme from "./theme.js";
|
|
28
28
|
import ResetQuiz from "../../sidebar/ResetQuiz/index.js";
|
|
29
|
-
import { OUTSTANDING_QUIZZES_MODAL } from '@instructure/quiz-common';
|
|
29
|
+
import { OUTSTANDING_QUIZZES_MODAL, withStyleOverrides } from '@instructure/quiz-common';
|
|
30
30
|
import { chunk } from 'lodash';
|
|
31
31
|
var _ref2 = jsx(Flex.Item, null, jsx(IconInfoLine, null));
|
|
32
32
|
var _ref4 = jsx(IconConfigureLine, null);
|
|
33
33
|
var _ref5 = jsx(Spinner, null);
|
|
34
34
|
var _ref6 = jsx(ResetQuiz, null);
|
|
35
|
-
export var ModerateTable = (_dec =
|
|
35
|
+
export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ModerateTable = /*#__PURE__*/function (_Component) {
|
|
36
36
|
_inherits(ModerateTable, _Component);
|
|
37
37
|
var _super = _createSuper(ModerateTable);
|
|
38
38
|
function ModerateTable() {
|
|
@@ -331,7 +331,7 @@ export var ModerateTable = (_dec = withStyle(generateStyle, generateComponentThe
|
|
|
331
331
|
}]);
|
|
332
332
|
ModerateTable.displayName = "ModerateTable";
|
|
333
333
|
return ModerateTable;
|
|
334
|
-
}(Component), _ModerateTable.propTypes = {
|
|
334
|
+
}(Component), _ModerateTable.displayName = 'ModerateTable', _ModerateTable.componentId = "Quizzes".concat(_ModerateTable.displayName), _ModerateTable.propTypes = {
|
|
335
335
|
anonymousGrading: PropTypes.bool,
|
|
336
336
|
children: PropTypes.node,
|
|
337
337
|
emptyMessage: PropTypes.string,
|
|
@@ -17,15 +17,15 @@ import { View } from '@instructure/ui-view';
|
|
|
17
17
|
import { Table } from '@instructure/ui-table';
|
|
18
18
|
import { IconEditLine, IconWarningLine } from '@instructure/ui-icons';
|
|
19
19
|
import { IconButton } from '@instructure/ui-buttons';
|
|
20
|
-
import {
|
|
20
|
+
import { jsx } from '@instructure/emotion';
|
|
21
21
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
22
|
-
import { withI18nSupport } from '@instructure/quiz-common';
|
|
22
|
+
import { withI18nSupport, withStyleOverrides } from '@instructure/quiz-common';
|
|
23
23
|
import FormattedDuration from "../../../../common/components/shared/FormattedDuration/index.js";
|
|
24
24
|
import generateStyle from "./styles.js";
|
|
25
25
|
import generateComponentTheme from "./theme.js";
|
|
26
26
|
var DASHES = '---';
|
|
27
27
|
var _ref = jsx(IconEditLine, null);
|
|
28
|
-
export var ModerateTableRow = (_dec =
|
|
28
|
+
export var ModerateTableRow = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ModerateTableRow = /*#__PURE__*/function (_withI18nSupport) {
|
|
29
29
|
_inherits(ModerateTableRow, _withI18nSupport);
|
|
30
30
|
var _super = _createSuper(ModerateTableRow);
|
|
31
31
|
function ModerateTableRow() {
|
|
@@ -314,7 +314,7 @@ export var ModerateTableRow = (_dec = withStyle(generateStyle, generateComponent
|
|
|
314
314
|
}]);
|
|
315
315
|
ModerateTableRow.displayName = "ModerateTableRow";
|
|
316
316
|
return ModerateTableRow;
|
|
317
|
-
}(withI18nSupport(Component)), _ModerateTableRow.propTypes = {
|
|
317
|
+
}(withI18nSupport(Component)), _ModerateTableRow.displayName = 'ModerateTableRow', _ModerateTableRow.componentId = "Quizzes".concat(_ModerateTableRow.displayName), _ModerateTableRow.propTypes = {
|
|
318
318
|
anonymousGrading: PropTypes.bool.isRequired,
|
|
319
319
|
displayScoreAsPercentage: PropTypes.bool,
|
|
320
320
|
onModerateButtonClick: PropTypes.func.isRequired,
|
|
@@ -1,10 +1,13 @@
|
|
|
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";
|
|
4
5
|
var fetcher = new Fetcher();
|
|
5
6
|
export var fetchStudentAnalyses = /*#__PURE__*/function () {
|
|
6
7
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(quizId) {
|
|
7
8
|
var filter,
|
|
9
|
+
isMultiAttemptEnabled,
|
|
10
|
+
selectedFilter,
|
|
8
11
|
url,
|
|
9
12
|
_args = arguments;
|
|
10
13
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -12,12 +15,14 @@ export var fetchStudentAnalyses = /*#__PURE__*/function () {
|
|
|
12
15
|
switch (_context.prev = _context.next) {
|
|
13
16
|
case 0:
|
|
14
17
|
filter = _args.length > 1 && _args[1] !== void 0 ? _args[1] : 'last_attempt';
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
isMultiAttemptEnabled = featureOn('student_analysis_multiple_attempts');
|
|
19
|
+
selectedFilter = isMultiAttemptEnabled ? 'all_attempts' : filter;
|
|
20
|
+
url = "/api/quizzes/".concat(quizId, "/analyses/student_analyses?filter=").concat(selectedFilter);
|
|
21
|
+
_context.next = 6;
|
|
17
22
|
return fetcher.get(url);
|
|
18
|
-
case
|
|
23
|
+
case 6:
|
|
19
24
|
return _context.abrupt("return", _context.sent);
|
|
20
|
-
case
|
|
25
|
+
case 7:
|
|
21
26
|
case "end":
|
|
22
27
|
return _context.stop();
|
|
23
28
|
}
|
|
@@ -3,6 +3,7 @@ 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";
|
|
6
7
|
var getFetcher = function getFetcher(format) {
|
|
7
8
|
var mimeType = formatsToMimeTypes.get(format);
|
|
8
9
|
if (!mimeType) {
|
|
@@ -24,6 +25,9 @@ export var getAnalysesExport = /*#__PURE__*/function () {
|
|
|
24
25
|
var filter,
|
|
25
26
|
analysisType,
|
|
26
27
|
fetcher,
|
|
28
|
+
isMultiAttemptEnabled,
|
|
29
|
+
isStudent_analysis,
|
|
30
|
+
selectedFilter,
|
|
27
31
|
url,
|
|
28
32
|
_args = arguments;
|
|
29
33
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -33,12 +37,15 @@ export var getAnalysesExport = /*#__PURE__*/function () {
|
|
|
33
37
|
filter = _args.length > 2 && _args[2] !== void 0 ? _args[2] : 'last_attempt';
|
|
34
38
|
analysisType = _args.length > 3 && _args[3] !== void 0 ? _args[3] : ITEM_ANALYSES;
|
|
35
39
|
fetcher = getFetcher(format);
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
isMultiAttemptEnabled = featureOn('student_analysis_multiple_attempts');
|
|
41
|
+
isStudent_analysis = analysisType === 'student_analysis';
|
|
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;
|
|
38
45
|
return fetcher.get(url);
|
|
39
|
-
case
|
|
46
|
+
case 9:
|
|
40
47
|
return _context.abrupt("return", _context.sent);
|
|
41
|
-
case
|
|
48
|
+
case 10:
|
|
42
49
|
case "end":
|
|
43
50
|
return _context.stop();
|
|
44
51
|
}
|
|
@@ -2,11 +2,15 @@ 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";
|
|
5
6
|
var fetcher = new Fetcher();
|
|
6
7
|
export var getAnalysesStatus = /*#__PURE__*/function () {
|
|
7
8
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(quizId) {
|
|
8
9
|
var filter,
|
|
9
10
|
analysisType,
|
|
11
|
+
isMultiAttemptEnabled,
|
|
12
|
+
isStudent_analysis,
|
|
13
|
+
selectedFilter,
|
|
10
14
|
url,
|
|
11
15
|
_args = arguments;
|
|
12
16
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -15,12 +19,15 @@ export var getAnalysesStatus = /*#__PURE__*/function () {
|
|
|
15
19
|
case 0:
|
|
16
20
|
filter = _args.length > 1 && _args[1] !== void 0 ? _args[1] : 'last_attempt';
|
|
17
21
|
analysisType = _args.length > 2 && _args[2] !== void 0 ? _args[2] : ITEM_ANALYSES;
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
isMultiAttemptEnabled = featureOn('student_analysis_multiple_attempts');
|
|
23
|
+
isStudent_analysis = analysisType === 'student_analysis';
|
|
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;
|
|
20
27
|
return fetcher.get(url);
|
|
21
|
-
case
|
|
28
|
+
case 8:
|
|
22
29
|
return _context.abrupt("return", _context.sent);
|
|
23
|
-
case
|
|
30
|
+
case 9:
|
|
24
31
|
case "end":
|
|
25
32
|
return _context.stop();
|
|
26
33
|
}
|
|
@@ -7,10 +7,11 @@ 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 {
|
|
10
|
+
import { jsx } from '@instructure/emotion';
|
|
11
11
|
import generateStyle from "./styles.js";
|
|
12
12
|
import generateComponentTheme from "./theme.js";
|
|
13
|
-
|
|
13
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
14
|
+
export var Caption = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Caption = /*#__PURE__*/function (_Component) {
|
|
14
15
|
_inherits(Caption, _Component);
|
|
15
16
|
var _super = _createSuper(Caption);
|
|
16
17
|
function Caption() {
|
|
@@ -34,7 +35,7 @@ export var Caption = (_dec = withStyle(generateStyle, generateComponentTheme), _
|
|
|
34
35
|
}]);
|
|
35
36
|
Caption.displayName = "Caption";
|
|
36
37
|
return Caption;
|
|
37
|
-
}(Component), _Caption.propTypes = {
|
|
38
|
+
}(Component), _Caption.displayName = 'Caption', _Caption.componentId = "Quizzes".concat(_Caption.displayName), _Caption.propTypes = {
|
|
38
39
|
text: PropTypes.string,
|
|
39
40
|
children: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
|
|
40
41
|
styles: PropTypes.object
|
|
@@ -9,10 +9,11 @@ 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 {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
14
|
import generateStyle from "./styles.js";
|
|
15
|
-
|
|
15
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
16
|
+
export var MetricsListItem = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_MetricsListItem = /*#__PURE__*/function (_Component) {
|
|
16
17
|
_inherits(MetricsListItem, _Component);
|
|
17
18
|
var _super = _createSuper(MetricsListItem);
|
|
18
19
|
function MetricsListItem() {
|
|
@@ -43,7 +44,7 @@ export var MetricsListItem = (_dec = withStyle(generateStyle, null), _dec(_class
|
|
|
43
44
|
}]);
|
|
44
45
|
MetricsListItem.displayName = "MetricsListItem";
|
|
45
46
|
return MetricsListItem;
|
|
46
|
-
}(Component), _MetricsListItem.propTypes = _objectSpread(_objectSpread({}, Metric.propTypes), {}, {
|
|
47
|
+
}(Component), _MetricsListItem.displayName = 'MetricsListItem', _MetricsListItem.componentId = "Quizzes".concat(_MetricsListItem.displayName), _MetricsListItem.propTypes = _objectSpread(_objectSpread({}, Metric.propTypes), {}, {
|
|
47
48
|
customStyles: PropTypes.object,
|
|
48
49
|
styles: PropTypes.object
|
|
49
50
|
}), _MetricsListItem.defaultProps = {
|
|
@@ -7,20 +7,21 @@ 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 {
|
|
10
|
+
import { 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';
|
|
17
18
|
var starBin = function starBin(props) {
|
|
18
19
|
if (typeof props.starScore !== 'number') return;
|
|
19
20
|
var starScore = Math.max(0, Math.min(props.starScore, 1));
|
|
20
21
|
// min+floor here matches quiz_etl HistogramHelper
|
|
21
22
|
return Math.min(Math.floor(starScore * props.visualDistribution.length), props.visualDistribution.length - 1);
|
|
22
23
|
};
|
|
23
|
-
export var CentileDistribution = (_dec =
|
|
24
|
+
export var CentileDistribution = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_CentileDistribution = /*#__PURE__*/function (_Component) {
|
|
24
25
|
_inherits(CentileDistribution, _Component);
|
|
25
26
|
var _super = _createSuper(CentileDistribution);
|
|
26
27
|
function CentileDistribution() {
|
|
@@ -99,7 +100,7 @@ export var CentileDistribution = (_dec = withStyle(generateStyle, generateCompon
|
|
|
99
100
|
}]);
|
|
100
101
|
CentileDistribution.displayName = "CentileDistribution";
|
|
101
102
|
return CentileDistribution;
|
|
102
|
-
}(Component), _CentileDistribution.propTypes = {
|
|
103
|
+
}(Component), _CentileDistribution.displayName = 'CentileDistribution', _CentileDistribution.componentId = "Quizzes".concat(_CentileDistribution.displayName), _CentileDistribution.propTypes = {
|
|
103
104
|
animateDelay: PropTypes.number,
|
|
104
105
|
animateDuration: PropTypes.number,
|
|
105
106
|
barPaddingInner: PropTypes.number,
|
|
@@ -10,19 +10,20 @@ 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 {
|
|
13
|
+
import { 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';
|
|
20
21
|
|
|
21
22
|
// Star path copied from instructure-icons/svg/Solid/star.svg
|
|
22
23
|
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';
|
|
23
24
|
var MARGIN_T = 0;
|
|
24
25
|
var MARGIN_B = 28;
|
|
25
|
-
export var Distribution = (_dec =
|
|
26
|
+
export var Distribution = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Distribution = /*#__PURE__*/function (_Component) {
|
|
26
27
|
_inherits(Distribution, _Component);
|
|
27
28
|
var _super = _createSuper(Distribution);
|
|
28
29
|
function Distribution() {
|
|
@@ -256,7 +257,7 @@ export var Distribution = (_dec = withStyle(generateStyle, generateComponentThem
|
|
|
256
257
|
}]);
|
|
257
258
|
Distribution.displayName = "Distribution";
|
|
258
259
|
return Distribution;
|
|
259
|
-
}(Component), _Distribution.displayName = 'Distribution', _Distribution.propTypes = {
|
|
260
|
+
}(Component), _Distribution.displayName = 'Distribution', _Distribution.componentId = "Quizzes".concat(_Distribution.displayName), _Distribution.propTypes = {
|
|
260
261
|
animateDelay: PropTypes.number,
|
|
261
262
|
animateDuration: PropTypes.number,
|
|
262
263
|
// ESLint thinks these props aren't used but they are via a call chain in componentDidMount
|
|
@@ -8,10 +8,11 @@ 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 {
|
|
11
|
+
import { jsx } from '@instructure/emotion';
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
13
|
import generateComponentTheme from "./theme.js";
|
|
14
|
-
|
|
14
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
15
|
+
export var Legend = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_Legend = /*#__PURE__*/function (_Component) {
|
|
15
16
|
_inherits(Legend, _Component);
|
|
16
17
|
var _super = _createSuper(Legend);
|
|
17
18
|
function Legend() {
|
|
@@ -63,7 +64,7 @@ export var Legend = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
63
64
|
}]);
|
|
64
65
|
Legend.displayName = "Legend";
|
|
65
66
|
return Legend;
|
|
66
|
-
}(Component), _Legend.propTypes = {
|
|
67
|
+
}(Component), _Legend.displayName = 'Legend', _Legend.componentId = "Quizzes".concat(_Legend.displayName), _Legend.propTypes = {
|
|
67
68
|
series: PropTypes.arrayOf(PropTypes.shape({
|
|
68
69
|
label: PropTypes.string.isRequired,
|
|
69
70
|
customStyles: PropTypes.object.isRequired
|
|
@@ -7,14 +7,15 @@ 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 {
|
|
10
|
+
import { 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
|
-
|
|
17
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
18
|
+
export var QuintileDistribution = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuintileDistribution = /*#__PURE__*/function (_Component) {
|
|
18
19
|
_inherits(QuintileDistribution, _Component);
|
|
19
20
|
var _super = _createSuper(QuintileDistribution);
|
|
20
21
|
function QuintileDistribution() {
|
|
@@ -97,7 +98,7 @@ export var QuintileDistribution = (_dec = withStyle(generateStyle, generateCompo
|
|
|
97
98
|
}]);
|
|
98
99
|
QuintileDistribution.displayName = "QuintileDistribution";
|
|
99
100
|
return QuintileDistribution;
|
|
100
|
-
}(Component), _QuintileDistribution.propTypes = {
|
|
101
|
+
}(Component), _QuintileDistribution.displayName = 'QuintileDistribution', _QuintileDistribution.componentId = "Quizzes".concat(_QuintileDistribution.displayName), _QuintileDistribution.propTypes = {
|
|
101
102
|
animateDelay: PropTypes.number,
|
|
102
103
|
animateDuration: PropTypes.number,
|
|
103
104
|
barPaddingInner: PropTypes.number,
|
|
@@ -12,14 +12,15 @@ 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 {
|
|
15
|
+
import { 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';
|
|
20
21
|
var _ref = jsx(IconCheckSolid, null);
|
|
21
22
|
var _ref2 = jsx(IconXSolid, null);
|
|
22
|
-
export var AnswerFrequencySummary = (_dec =
|
|
23
|
+
export var AnswerFrequencySummary = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
|
|
23
24
|
_inherits(AnswerFrequencySummary, _Component);
|
|
24
25
|
var _super = _createSuper(AnswerFrequencySummary);
|
|
25
26
|
function AnswerFrequencySummary() {
|
|
@@ -109,7 +110,7 @@ export var AnswerFrequencySummary = (_dec = withStyle(generateStyle, generateCom
|
|
|
109
110
|
}]);
|
|
110
111
|
AnswerFrequencySummary.displayName = "AnswerFrequencySummary";
|
|
111
112
|
return AnswerFrequencySummary;
|
|
112
|
-
}(Component), _AnswerFrequencySummary.propTypes = {
|
|
113
|
+
}(Component), _AnswerFrequencySummary.displayName = 'AnswerFrequencySummary', _AnswerFrequencySummary.componentId = "Quizzes".concat(_AnswerFrequencySummary.displayName), _AnswerFrequencySummary.propTypes = {
|
|
113
114
|
itemAnalysis: ImmutablePropTypes.record.isRequired,
|
|
114
115
|
styles: PropTypes.object
|
|
115
116
|
}, _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 {
|
|
14
|
+
import { 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 } from '@instructure/quiz-common';
|
|
25
|
+
import { liveRegion, withI18nSupport, withStyleOverrides } 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 = withStyleOverrides(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 = withStyle(generateStyle, generateComponentT
|
|
|
236
236
|
}]);
|
|
237
237
|
ItemAnalysisRow.displayName = "ItemAnalysisRow";
|
|
238
238
|
return ItemAnalysisRow;
|
|
239
|
-
}(withI18nSupport(Component)), _ItemAnalysisRow.propTypes = {
|
|
239
|
+
}(withI18nSupport(Component)), _ItemAnalysisRow.displayName = 'ItemAnalysisRow', _ItemAnalysisRow.componentId = "Quizzes".concat(_ItemAnalysisRow.displayName), _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 {
|
|
13
|
+
import { 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,9 +19,10 @@ 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';
|
|
22
23
|
var _ref = jsx("br", null);
|
|
23
24
|
var _ref2 = jsx(Spinner, null);
|
|
24
|
-
export var QuizAnalysisOverview = (_dec =
|
|
25
|
+
export var QuizAnalysisOverview = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizAnalysisOverview = /*#__PURE__*/function (_Component) {
|
|
25
26
|
_inherits(QuizAnalysisOverview, _Component);
|
|
26
27
|
var _super = _createSuper(QuizAnalysisOverview);
|
|
27
28
|
function QuizAnalysisOverview() {
|
|
@@ -120,7 +121,7 @@ export var QuizAnalysisOverview = (_dec = withStyle(generateStyle, generateCompo
|
|
|
120
121
|
}]);
|
|
121
122
|
QuizAnalysisOverview.displayName = "QuizAnalysisOverview";
|
|
122
123
|
return QuizAnalysisOverview;
|
|
123
|
-
}(Component), _QuizAnalysisOverview.propTypes = {
|
|
124
|
+
}(Component), _QuizAnalysisOverview.displayName = 'QuizAnalysisOverview', _QuizAnalysisOverview.componentId = "Quizzes".concat(_QuizAnalysisOverview.displayName), _QuizAnalysisOverview.propTypes = {
|
|
124
125
|
animateDelay: PropTypes.number,
|
|
125
126
|
animateDuration: PropTypes.number,
|
|
126
127
|
quizAnalysis: ImmutablePropTypes.record.isRequired,
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js
CHANGED
|
@@ -8,9 +8,10 @@ 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 {
|
|
11
|
+
import { jsx } from '@instructure/emotion';
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
|
-
|
|
13
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
14
|
+
export var AnalysisMetric = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_AnalysisMetric = /*#__PURE__*/function (_Component) {
|
|
14
15
|
_inherits(AnalysisMetric, _Component);
|
|
15
16
|
var _super = _createSuper(AnalysisMetric);
|
|
16
17
|
function AnalysisMetric() {
|
|
@@ -45,7 +46,7 @@ export var AnalysisMetric = (_dec = withStyle(generateStyle, null), _dec(_class
|
|
|
45
46
|
}]);
|
|
46
47
|
AnalysisMetric.displayName = "AnalysisMetric";
|
|
47
48
|
return AnalysisMetric;
|
|
48
|
-
}(Component), _AnalysisMetric.propTypes = {
|
|
49
|
+
}(Component), _AnalysisMetric.displayName = 'AnalysisMetric', _AnalysisMetric.componentId = "Quizzes".concat(_AnalysisMetric.displayName), _AnalysisMetric.propTypes = {
|
|
49
50
|
metricKey: PropTypes.string.isRequired,
|
|
50
51
|
label: PropTypes.string.isRequired,
|
|
51
52
|
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array]),
|