@instructure/quiz-core 20.34.1-test.7 → 20.35.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/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/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/presenter.js +4 -4
- package/es/banks/components/BanksList/presenter.js +4 -4
- 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 +4 -4
- package/es/banks/components/SharingModal/presenter.js +4 -4
- 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 +4 -3
- 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 +4 -4
- 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/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/presenter.js +2 -2
- package/lib/banks/components/BanksList/presenter.js +2 -2
- 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 +2 -2
- package/lib/banks/components/SharingModal/presenter.js +2 -2
- 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 +3 -2
- 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 +2 -2
- 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 -32
|
@@ -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]),
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js
CHANGED
|
@@ -8,10 +8,11 @@ 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 {
|
|
11
|
+
import { jsx } from '@instructure/emotion';
|
|
12
12
|
import generateStyle from "./styles.js";
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
|
-
|
|
14
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
15
|
+
export var AnalysisPopoverMetric = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_AnalysisPopoverMetric = /*#__PURE__*/function (_Component) {
|
|
15
16
|
_inherits(AnalysisPopoverMetric, _Component);
|
|
16
17
|
var _super = _createSuper(AnalysisPopoverMetric);
|
|
17
18
|
function AnalysisPopoverMetric() {
|
|
@@ -50,7 +51,7 @@ export var AnalysisPopoverMetric = (_dec = withStyle(generateStyle, null), _dec(
|
|
|
50
51
|
}]);
|
|
51
52
|
AnalysisPopoverMetric.displayName = "AnalysisPopoverMetric";
|
|
52
53
|
return AnalysisPopoverMetric;
|
|
53
|
-
}(Component), _AnalysisPopoverMetric.propTypes = {
|
|
54
|
+
}(Component), _AnalysisPopoverMetric.displayName = 'AnalysisPopoverMetric', _AnalysisPopoverMetric.componentId = "Quizzes".concat(_AnalysisPopoverMetric.displayName), _AnalysisPopoverMetric.propTypes = {
|
|
54
55
|
metricKey: PropTypes.string.isRequired,
|
|
55
56
|
label: PropTypes.string.isRequired,
|
|
56
57
|
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -7,16 +7,17 @@ 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 {
|
|
10
|
+
import { 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';
|
|
17
18
|
var _ref = jsx(IconCheckSolid, null);
|
|
18
19
|
var _ref2 = jsx(IconXSolid, null);
|
|
19
|
-
export var ChoiceTypeTableRow = (_dec =
|
|
20
|
+
export var ChoiceTypeTableRow = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ChoiceTypeTableRow = /*#__PURE__*/function (_Component) {
|
|
20
21
|
_inherits(ChoiceTypeTableRow, _Component);
|
|
21
22
|
var _super = _createSuper(ChoiceTypeTableRow);
|
|
22
23
|
function ChoiceTypeTableRow() {
|
|
@@ -88,7 +89,7 @@ export var ChoiceTypeTableRow = (_dec = withStyle(generateStyle, generateCompone
|
|
|
88
89
|
}
|
|
89
90
|
}]);
|
|
90
91
|
return ChoiceTypeTableRow;
|
|
91
|
-
}(Component), _ChoiceTypeTableRow.displayName = 'Row', _ChoiceTypeTableRow.propTypes = {
|
|
92
|
+
}(Component), _ChoiceTypeTableRow.displayName = 'Row', _ChoiceTypeTableRow.componentId = "Quizzes".concat(_ChoiceTypeTableRow.displayName), _ChoiceTypeTableRow.propTypes = {
|
|
92
93
|
choice: PropTypes.shape({
|
|
93
94
|
body: PropTypes.string,
|
|
94
95
|
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 {
|
|
10
|
+
import { 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,7 +15,8 @@ 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
|
-
|
|
18
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
19
|
+
export var LegacyChoiceType = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_LegacyChoiceType = /*#__PURE__*/function (_Component) {
|
|
19
20
|
_inherits(LegacyChoiceType, _Component);
|
|
20
21
|
var _super = _createSuper(LegacyChoiceType);
|
|
21
22
|
function LegacyChoiceType() {
|
|
@@ -82,7 +83,7 @@ export var LegacyChoiceType = (_dec = withStyle(generateStyle, generateComponent
|
|
|
82
83
|
}]);
|
|
83
84
|
LegacyChoiceType.displayName = "LegacyChoiceType";
|
|
84
85
|
return LegacyChoiceType;
|
|
85
|
-
}(Component), _LegacyChoiceType.propTypes = {
|
|
86
|
+
}(Component), _LegacyChoiceType.displayName = 'LegacyChoiceType', _LegacyChoiceType.componentId = "Quizzes".concat(_LegacyChoiceType.displayName), _LegacyChoiceType.propTypes = {
|
|
86
87
|
itemId: PropTypes.number.isRequired,
|
|
87
88
|
answerSummary: choiceTypeAnswerSummaryPropType.isRequired,
|
|
88
89
|
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 {
|
|
12
|
+
import { 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,12 +17,13 @@ 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';
|
|
20
21
|
var _ref = jsx(IconCheckSolid, null);
|
|
21
22
|
var _ref2 = jsx(Flex.Item, {
|
|
22
23
|
width: "46px",
|
|
23
24
|
textAlign: "center"
|
|
24
25
|
});
|
|
25
|
-
export var MatchingTypeTable = (_dec =
|
|
26
|
+
export var MatchingTypeTable = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_MatchingTypeTable = /*#__PURE__*/function (_Component) {
|
|
26
27
|
_inherits(MatchingTypeTable, _Component);
|
|
27
28
|
var _super = _createSuper(MatchingTypeTable);
|
|
28
29
|
function MatchingTypeTable() {
|
|
@@ -170,7 +171,7 @@ export var MatchingTypeTable = (_dec = withStyle(generateStyle, generateComponen
|
|
|
170
171
|
}
|
|
171
172
|
}]);
|
|
172
173
|
return MatchingTypeTable;
|
|
173
|
-
}(Component), _MatchingTypeTable.propTypes = {
|
|
174
|
+
}(Component), _MatchingTypeTable.displayName = 'MatchingTypeTable', _MatchingTypeTable.componentId = "Quizzes".concat(_MatchingTypeTable.displayName), _MatchingTypeTable.propTypes = {
|
|
174
175
|
itemId: PropTypes.number.isRequired,
|
|
175
176
|
answerSummary: matchingTypeAnswerSummaryPropType.isRequired,
|
|
176
177
|
firstColumnName: PropTypes.string.isRequired,
|
|
@@ -12,13 +12,14 @@ 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
|
|
15
|
+
import { jsx } from '@instructure/emotion';
|
|
16
16
|
import ChoiceTypeWithInfo from "./ChoiceTypeWithInfo/index.js";
|
|
17
17
|
import generateStyle from "./styles.js";
|
|
18
18
|
import generateComponentTheme from "./theme.js";
|
|
19
19
|
import { Flex } from '@instructure/ui-flex';
|
|
20
20
|
import { numericTypeAnswerSummaryPropType } from "../../../common/propTypes.js";
|
|
21
|
-
|
|
21
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
22
|
+
export var NumericType = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_NumericType = /*#__PURE__*/function (_Component) {
|
|
22
23
|
_inherits(NumericType, _Component);
|
|
23
24
|
var _super = _createSuper(NumericType);
|
|
24
25
|
function NumericType() {
|
|
@@ -212,7 +213,7 @@ export var NumericType = (_dec = withStyle(generateStyle, generateComponentTheme
|
|
|
212
213
|
return _this;
|
|
213
214
|
}
|
|
214
215
|
return NumericType;
|
|
215
|
-
}(Component), _NumericType.propTypes = {
|
|
216
|
+
}(Component), _NumericType.displayName = 'NumericType', _NumericType.componentId = "Quizzes".concat(_NumericType.displayName), _NumericType.propTypes = {
|
|
216
217
|
itemId: PropTypes.number.isRequired,
|
|
217
218
|
answerSummary: numericTypeAnswerSummaryPropType.isRequired,
|
|
218
219
|
styles: PropTypes.object
|
|
@@ -11,11 +11,12 @@ 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 {
|
|
14
|
+
import { 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
|
-
|
|
18
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
19
|
+
export var ChoiceGroupTypeTable = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ChoiceGroupTypeTable = /*#__PURE__*/function (_Component) {
|
|
19
20
|
_inherits(ChoiceGroupTypeTable, _Component);
|
|
20
21
|
var _super = _createSuper(ChoiceGroupTypeTable);
|
|
21
22
|
function ChoiceGroupTypeTable() {
|
|
@@ -119,7 +120,7 @@ export var ChoiceGroupTypeTable = (_dec = withStyle(generateStyle, generateCompo
|
|
|
119
120
|
return _this;
|
|
120
121
|
}
|
|
121
122
|
return ChoiceGroupTypeTable;
|
|
122
|
-
}(Component), _ChoiceGroupTypeTable.propTypes = {
|
|
123
|
+
}(Component), _ChoiceGroupTypeTable.displayName = 'ChoiceGroupTypeTable', _ChoiceGroupTypeTable.componentId = "Quizzes".concat(_ChoiceGroupTypeTable.displayName), _ChoiceGroupTypeTable.propTypes = {
|
|
123
124
|
itemId: PropTypes.number.isRequired,
|
|
124
125
|
blank: PropTypes.shape({
|
|
125
126
|
choices: PropTypes.arrayOf(choiceTypeObject).isRequired,
|