@instructure/quiz-core 21.2.0 → 22.1.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 +2 -2
- package/es/banks/components/AddBankEntryModal/presenter.js +29 -17
- package/es/banks/components/AddToBankModal/presenter.js +44 -32
- package/es/banks/components/AsyncSearch/index.js +81 -69
- package/es/banks/components/Bank/presenter.js +79 -67
- package/es/banks/components/Bank/styles.js +2 -2
- package/es/banks/components/Bank/theme.js +1 -1
- package/es/banks/components/BankEntriesList/presenter.js +23 -11
- package/es/banks/components/BankEntry/presenter.js +81 -69
- package/es/banks/components/BankEntry/styles.js +2 -2
- package/es/banks/components/BankEntry/theme.js +5 -5
- package/es/banks/components/BankEntryRow/presenter.js +49 -37
- package/es/banks/components/BankEntryRow/styles.js +0 -1
- package/es/banks/components/BankEntryRow/theme.js +4 -4
- package/es/banks/components/BankSearch/presenter.js +26 -14
- package/es/banks/components/Banks/presenter.js +102 -90
- package/es/banks/components/Banks/theme.js +2 -2
- package/es/banks/components/BanksList/presenter.js +74 -62
- package/es/banks/components/BanksList/theme.js +4 -4
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +138 -57
- package/es/banks/components/CreateBankModal/presenter.js +43 -31
- package/es/banks/components/EditBankModal/presenter.js +37 -25
- package/es/banks/components/HeaderBreadCrumb/index.js +19 -7
- package/es/banks/components/HeaderMenu/presenter.js +14 -2
- package/es/banks/components/NavWrapper/presenter.js +21 -9
- package/es/banks/components/NavWrapper/styles.js +2 -2
- package/es/banks/components/NavWrapper/theme.js +3 -3
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +22 -10
- package/es/banks/components/SharingModal/RootAccountSharing.js +19 -7
- package/es/banks/components/SharingModal/ShareList/index.js +29 -17
- package/es/banks/components/SharingModal/presenter.js +120 -108
- package/es/banks/components/SharingModal/theme.js +1 -1
- package/es/building/api/quizEntries.js +2 -2
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +21 -9
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +14 -2
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +14 -2
- package/es/building/components/layout/Sidebar/presenter.js +40 -28
- package/es/building/components/layout/Sidebar/styles.js +2 -2
- package/es/building/components/layout/header/BuildingButtons/presenter.js +35 -23
- package/es/building/components/layout/header/BuildingButtons/styles.js +2 -2
- package/es/building/components/layout/header/BuildingButtons/theme.js +1 -1
- package/es/building/components/resources/ActionButtons/presenter.js +28 -16
- package/es/building/components/resources/ActionButtons/styles.js +2 -2
- package/es/building/components/resources/ActionButtons/theme.js +1 -1
- package/es/building/components/resources/AddToBankOptions/index.js +28 -16
- package/es/building/components/resources/AddToBankOptions/theme.js +2 -2
- package/es/building/components/resources/BanksTray/presenter.js +33 -21
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +62 -50
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +28 -16
- package/es/building/components/resources/MoveImmutableModal/presenter.js +28 -16
- package/es/building/components/resources/quiz/editButton/EditButton.js +21 -9
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +14 -2
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +37 -25
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
- package/es/building/components/resources/quiz/instructions/Show/index.js +19 -7
- package/es/building/components/resources/quiz/title/Edit/index.js +34 -22
- package/es/building/components/resources/quiz/title/Edit/styles.js +2 -2
- package/es/building/components/resources/quiz/title/Edit/theme.js +1 -1
- package/es/building/components/resources/quiz/title/Show/index.js +19 -7
- package/es/building/components/resources/quiz/title/Title/presenter.js +37 -25
- package/es/building/components/resources/quiz/title/Title/styles.js +2 -2
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +59 -47
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +14 -2
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +54 -42
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +14 -2
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +43 -31
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +63 -51
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +112 -100
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +50 -38
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -5
- package/es/common/api/callHandlers.js +2 -2
- package/es/common/components/AccessCodeTextInput/index.js +20 -8
- package/es/common/components/ConfirmationModal/index.js +2 -2
- package/es/common/components/ConfirmationModal/presenter.js +40 -28
- package/es/common/components/ImportModal/ImportFileSelector/index.js +14 -2
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +4 -4
- package/es/common/components/ImportModal/presenter.js +58 -46
- package/es/common/components/LearnosityCalculator/index.js +22 -10
- package/es/common/components/MaskedTextInput/index.js +16 -4
- package/es/common/components/Pin/presenter.js +19 -7
- package/es/common/components/PreviewFrame/index.js +14 -2
- package/es/common/components/PrintFontSizeModal/presenter.js +26 -14
- package/es/common/components/PrintFontSizeModal/theme.js +1 -1
- package/es/common/components/RceConfigProvider/presenter.js +2 -2
- package/es/common/components/SDKApp/index.js +21 -9
- package/es/common/components/alerts/presenter.js +22 -10
- package/es/common/components/layout/Page/index.js +14 -2
- package/es/common/components/layout/Page/styles.js +2 -2
- package/es/common/components/layout/header/Calculator/presenter.js +14 -2
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +22 -10
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +1 -1
- package/es/common/components/layout/header/Timer/presenter.js +29 -17
- package/es/common/components/layout/header/Timer/theme.js +3 -3
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +14 -2
- package/es/common/components/layout/navbar/index.js +40 -28
- package/es/common/components/layout/navbar/styles.js +2 -2
- package/es/common/components/layout/navbar/theme.js +1 -1
- package/es/common/components/layout/sidebar/PositionSummary/index.js +16 -4
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +2 -2
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +19 -7
- package/es/common/components/layout/sidebar/Sidebar/index.js +36 -24
- package/es/common/components/layout/sidebar/Sidebar/styles.js +2 -2
- package/es/common/components/layout/sidebar/Sidebar/theme.js +10 -10
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +20 -8
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +2 -2
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +5 -5
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +30 -15
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -1
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +22 -10
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +14 -2
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +117 -45
- package/es/common/components/layout/sidebar/Stimulus/styles.js +2 -26
- package/es/common/components/layout/sidebar/Stimulus/theme.js +2 -11
- package/es/common/components/resources/BankSelection/presenter.js +51 -16
- package/es/common/components/resources/WarningWrapper/index.js +20 -8
- package/es/common/components/resources/WarningWrapper/theme.js +1 -1
- package/es/common/components/resources/entry/EntrySave/presenter.js +37 -25
- package/es/common/components/resources/item/ItemEdit/presenter.js +27 -15
- package/es/common/components/resources/item/ItemOverride/presenter.js +21 -9
- package/es/common/components/resources/item/ItemShow/index.js +14 -2
- package/es/common/components/resources/positionBox/PositionBox.js +14 -2
- package/es/common/components/resources/positionBox/theme.js +2 -2
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +47 -35
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Button/index.js +19 -7
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -2
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -4
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +14 -2
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +45 -33
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -1
- package/es/common/components/resources/quiz/info/QuizInfo.js +14 -2
- package/es/common/components/resources/quiz/instructions/Instructions.js +14 -2
- package/es/common/components/resources/quiz/title/Title.js +14 -2
- package/es/common/components/resources/quizSessionResult/Header/index.js +21 -9
- package/es/common/components/resources/quizSessionResult/Info/index.js +19 -7
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +19 -7
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -2
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +38 -26
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +23 -11
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -1
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +32 -20
- package/es/common/components/resources/stimulus/Stimulus/styles.js +2 -2
- package/es/common/components/resources/stimulus/Stimulus/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +129 -115
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +31 -18
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShow/index.js +19 -7
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +14 -2
- package/es/common/components/shared/Card/CardContent/index.js +16 -4
- package/es/common/components/shared/Card/CardContent/theme.js +2 -2
- package/es/common/components/shared/Card/CardWrapper/index.js +16 -4
- package/es/common/components/shared/ExpandButton/index.js +14 -2
- package/es/common/components/shared/ExpandButton/styles.js +2 -2
- package/es/common/components/shared/FormattedDuration/index.js +16 -4
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +69 -50
- package/es/common/components/shared/IfFeature/presenter.js +14 -2
- package/es/common/components/shared/InteractionTypes/presenter.js +38 -26
- package/es/common/components/shared/InteractionTypes/theme.js +1 -1
- package/es/common/components/shared/PaginatedCollection/presenter.js +19 -7
- package/es/common/components/shared/PaginatedCollection/theme.js +1 -1
- package/es/common/components/shared/Paginator/index.js +17 -5
- package/es/common/components/shared/PrintTrigger/presenter.js +43 -31
- package/es/common/components/shared/TagDisplay/index.js +14 -2
- package/es/common/components/shared/TagSelect/presenter.js +55 -43
- package/es/common/components/shared/TagSuggestSelect/presenter.js +30 -18
- package/es/common/components/shared/TagWrapper/presenter.js +19 -7
- package/es/common/components/shared/TimeUnitsInput/index.js +53 -41
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +18 -6
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -2
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +31 -19
- package/es/common/components/shared/errors/Errors.js +19 -7
- package/es/common/components/shared/errors/theme.js +1 -1
- package/es/common/components/shared/file_selector/FileSelector.js +18 -6
- package/es/common/components/shared/file_selector/theme.js +2 -2
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +24 -13
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +18 -6
- package/es/common/components/shared/functionality/makeEditable.js +23 -11
- package/es/common/components/shared/functionality/makeScrollable.js +25 -13
- package/es/common/components/shared/overlay/index.js +14 -2
- package/es/common/components/shared/overlay/theme.js +1 -1
- package/es/common/components/shared/return_button/ReturnButton.js +14 -2
- package/es/common/components/shared/spinner/Spinner.js +21 -9
- package/es/common/kinesis/StreamQueue.js +2 -2
- package/es/common/records/Alert.js +14 -2
- package/es/common/records/Bank.js +14 -2
- package/es/common/records/BankEntry.js +17 -5
- package/es/common/records/Item.js +14 -2
- package/es/common/records/ItemAnalysis.js +14 -2
- package/es/common/records/QtiImport.js +14 -2
- package/es/common/records/Quiz.js +19 -7
- package/es/common/records/QuizAnalysis.js +14 -2
- package/es/common/records/QuizEntry.js +65 -42
- package/es/common/records/QuizSession.js +14 -2
- package/es/common/records/QuizSessionEvent.js +14 -2
- package/es/common/records/QuizSessionResult.js +14 -2
- package/es/common/records/Response.js +14 -2
- package/es/common/records/SessionItem.js +23 -5
- package/es/common/records/SessionItemResult.js +14 -2
- package/es/common/records/Stimulus.js +14 -2
- package/es/common/records/baseRecord.js +16 -4
- package/es/common/records/reduxRecord.js +14 -2
- package/es/common/reducers/modifications.js +2 -2
- package/es/common/util/ExhaustivePaginatedFetcher.js +23 -12
- package/es/common/util/Fetcher.js +2 -2
- package/es/common/util/PaginatedFetcher.js +24 -13
- package/es/common/util/ThunkQueue.js +3 -3
- package/es/common/util/jsonify.js +2 -2
- package/es/common/util/withDynamoPagination.js +20 -8
- package/es/messages/StorageExhaustionError.js +18 -6
- package/es/messages/postMessageService.js +2 -2
- package/es/moderating/components/events/Event.js +14 -2
- package/es/moderating/components/events/PageBlurredEvent.js +14 -2
- package/es/moderating/components/events/PageFocusedEvent.js +14 -2
- package/es/moderating/components/events/RCEEvent.js +14 -2
- package/es/moderating/components/events/ResponseEvent.js +17 -5
- package/es/moderating/components/events/SessionStartEvent.js +14 -2
- package/es/moderating/components/events/SessionSubmitEvent.js +14 -2
- package/es/moderating/components/events/theme.js +1 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +20 -8
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +30 -18
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +33 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +27 -15
- package/es/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +24 -12
- package/es/moderating/components/resources/AccommodationsModal/index.js +46 -34
- package/es/moderating/components/resources/ElapsedTime.js +14 -2
- package/es/moderating/components/resources/ModerateTable/presenter.js +78 -66
- package/es/moderating/components/resources/ModerateTable/styles.js +2 -2
- package/es/moderating/components/resources/ModerateTable/theme.js +1 -1
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +44 -32
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +42 -30
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +52 -40
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +27 -15
- package/es/reporting/components/Caption/index.js +14 -2
- package/es/reporting/components/MetricsListItem/index.js +16 -4
- package/es/reporting/components/charts/CentileDistribution/presenter.js +28 -16
- package/es/reporting/components/charts/Distribution/presenter.js +35 -23
- package/es/reporting/components/charts/Distribution/theme.js +4 -4
- package/es/reporting/components/charts/Legend/index.js +18 -6
- package/es/reporting/components/charts/Legend/styles.js +2 -2
- package/es/reporting/components/charts/Legend/theme.js +3 -3
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +31 -19
- package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +22 -10
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +33 -21
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +20 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +14 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +14 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +21 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +21 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +36 -24
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +19 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +25 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +21 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +46 -34
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +27 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +28 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +59 -47
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +41 -29
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +28 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +25 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +21 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +42 -30
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +27 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +23 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +52 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +65 -53
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +34 -22
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +34 -22
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +14 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +63 -51
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +36 -24
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +58 -46
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +20 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +74 -62
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +14 -2
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +34 -22
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
- package/es/reporting/components/resources/ReportCard/index.js +14 -2
- package/es/reporting/components/resources/ReportList/index.js +14 -2
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +57 -45
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -2
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
- package/es/reporting/components/resources/common/AnalysisUpdateDate/index.js +14 -2
- package/es/taking/api/taking.js +1 -1
- package/lib/banks/api/banks.js +2 -2
- package/lib/banks/components/AddBankEntryModal/index.js +2 -2
- package/lib/banks/components/AddBankEntryModal/presenter.js +31 -19
- package/lib/banks/components/AddToBankModal/index.js +2 -2
- package/lib/banks/components/AddToBankModal/presenter.js +46 -34
- package/lib/banks/components/AsyncSearch/index.js +83 -71
- package/lib/banks/components/Bank/index.js +2 -2
- package/lib/banks/components/Bank/presenter.js +81 -69
- package/lib/banks/components/Bank/styles.js +2 -2
- package/lib/banks/components/Bank/theme.js +1 -1
- package/lib/banks/components/BankEntriesList/presenter.js +23 -11
- package/lib/banks/components/BankEntry/presenter.js +81 -69
- package/lib/banks/components/BankEntry/styles.js +2 -2
- package/lib/banks/components/BankEntry/theme.js +5 -5
- package/lib/banks/components/BankEntryRow/index.js +2 -2
- package/lib/banks/components/BankEntryRow/presenter.js +51 -39
- package/lib/banks/components/BankEntryRow/styles.js +0 -1
- package/lib/banks/components/BankEntryRow/theme.js +4 -4
- package/lib/banks/components/BankSearch/presenter.js +26 -14
- package/lib/banks/components/Banks/index.js +2 -2
- package/lib/banks/components/Banks/presenter.js +104 -92
- package/lib/banks/components/Banks/theme.js +2 -2
- package/lib/banks/components/BanksList/presenter.js +76 -64
- package/lib/banks/components/BanksList/theme.js +4 -4
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +2 -2
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +140 -59
- package/lib/banks/components/CreateBankModal/index.js +2 -2
- package/lib/banks/components/CreateBankModal/presenter.js +45 -33
- package/lib/banks/components/EditBankModal/index.js +2 -2
- package/lib/banks/components/EditBankModal/presenter.js +39 -27
- package/lib/banks/components/HeaderBreadCrumb/index.js +21 -9
- package/lib/banks/components/HeaderMenu/index.js +2 -2
- package/lib/banks/components/HeaderMenu/presenter.js +14 -2
- package/lib/banks/components/NavWrapper/presenter.js +21 -9
- package/lib/banks/components/NavWrapper/styles.js +2 -2
- package/lib/banks/components/NavWrapper/theme.js +3 -3
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +24 -12
- package/lib/banks/components/SharingModal/RootAccountSharing.js +21 -9
- package/lib/banks/components/SharingModal/ShareList/index.js +29 -17
- package/lib/banks/components/SharingModal/presenter.js +122 -110
- package/lib/banks/components/SharingModal/theme.js +1 -1
- package/lib/building/api/quizEntries.js +2 -2
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +21 -9
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +14 -2
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +14 -2
- package/lib/building/components/layout/Sidebar/presenter.js +40 -28
- package/lib/building/components/layout/Sidebar/styles.js +2 -2
- package/lib/building/components/layout/header/BuildingButtons/index.js +2 -2
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +35 -23
- package/lib/building/components/layout/header/BuildingButtons/styles.js +2 -2
- package/lib/building/components/layout/header/BuildingButtons/theme.js +1 -1
- package/lib/building/components/resources/ActionButtons/presenter.js +28 -16
- package/lib/building/components/resources/ActionButtons/styles.js +2 -2
- package/lib/building/components/resources/ActionButtons/theme.js +1 -1
- package/lib/building/components/resources/AddToBankOptions/index.js +28 -16
- package/lib/building/components/resources/AddToBankOptions/theme.js +2 -2
- package/lib/building/components/resources/BanksTray/presenter.js +35 -23
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +64 -52
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +28 -16
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +30 -18
- package/lib/building/components/resources/quiz/editButton/EditButton.js +23 -11
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +14 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +37 -25
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
- package/lib/building/components/resources/quiz/instructions/Show/index.js +19 -7
- package/lib/building/components/resources/quiz/title/Edit/index.js +34 -22
- package/lib/building/components/resources/quiz/title/Edit/styles.js +2 -2
- package/lib/building/components/resources/quiz/title/Edit/theme.js +1 -1
- package/lib/building/components/resources/quiz/title/Show/index.js +19 -7
- package/lib/building/components/resources/quiz/title/Title/presenter.js +37 -25
- package/lib/building/components/resources/quiz/title/Title/styles.js +2 -2
- package/lib/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +59 -47
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +14 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +54 -42
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +14 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +43 -31
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +63 -51
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +114 -102
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +50 -38
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -5
- package/lib/common/api/callHandlers.js +2 -2
- package/lib/common/components/AccessCodeTextInput/index.js +22 -10
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +2 -2
- package/lib/common/components/ConfirmationModal/index.js +2 -2
- package/lib/common/components/ConfirmationModal/presenter.js +42 -30
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +14 -2
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +4 -4
- package/lib/common/components/ImportModal/presenter.js +58 -46
- package/lib/common/components/LearnosityCalculator/index.js +24 -12
- package/lib/common/components/MaskedTextInput/index.js +18 -6
- package/lib/common/components/Pin/presenter.js +21 -9
- package/lib/common/components/PreviewFrame/index.js +16 -4
- package/lib/common/components/PrintFontSizeModal/presenter.js +26 -14
- package/lib/common/components/PrintFontSizeModal/theme.js +1 -1
- package/lib/common/components/RceConfigProvider/presenter.js +4 -4
- package/lib/common/components/SDKApp/index.js +21 -9
- package/lib/common/components/alerts/presenter.js +22 -10
- package/lib/common/components/layout/Page/index.js +14 -2
- package/lib/common/components/layout/Page/styles.js +2 -2
- package/lib/common/components/layout/header/Calculator/presenter.js +16 -4
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +22 -10
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +1 -1
- package/lib/common/components/layout/header/Timer/presenter.js +31 -19
- package/lib/common/components/layout/header/Timer/theme.js +3 -3
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +14 -2
- package/lib/common/components/layout/navbar/index.js +40 -28
- package/lib/common/components/layout/navbar/styles.js +2 -2
- package/lib/common/components/layout/navbar/theme.js +1 -1
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +16 -4
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +2 -2
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +21 -9
- package/lib/common/components/layout/sidebar/Sidebar/index.js +36 -24
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +2 -2
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +10 -10
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +20 -8
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +2 -2
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +5 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +30 -15
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +22 -10
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +14 -2
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +117 -45
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +2 -26
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +2 -11
- package/lib/common/components/resources/BankSelection/presenter.js +53 -18
- package/lib/common/components/resources/WarningWrapper/index.js +20 -8
- package/lib/common/components/resources/WarningWrapper/theme.js +1 -1
- package/lib/common/components/resources/entry/EntrySave/presenter.js +39 -27
- package/lib/common/components/resources/item/ItemEdit/index.js +2 -2
- package/lib/common/components/resources/item/ItemEdit/presenter.js +29 -17
- package/lib/common/components/resources/item/ItemOverride/index.js +2 -2
- package/lib/common/components/resources/item/ItemOverride/presenter.js +23 -11
- package/lib/common/components/resources/item/ItemShow/index.js +16 -4
- package/lib/common/components/resources/positionBox/PositionBox.js +14 -2
- package/lib/common/components/resources/positionBox/theme.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +47 -35
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +1 -1
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +19 -7
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +4 -4
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +16 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +45 -33
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -1
- package/lib/common/components/resources/quiz/info/QuizInfo.js +16 -4
- package/lib/common/components/resources/quiz/instructions/Instructions.js +14 -2
- package/lib/common/components/resources/quiz/title/Title.js +14 -2
- package/lib/common/components/resources/quizSessionResult/Header/index.js +21 -9
- package/lib/common/components/resources/quizSessionResult/Info/index.js +19 -7
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +19 -7
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +38 -26
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +23 -11
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -1
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +32 -20
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +2 -2
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +129 -115
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +31 -18
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +19 -7
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +16 -4
- package/lib/common/components/shared/Card/CardContent/index.js +16 -4
- package/lib/common/components/shared/Card/CardContent/theme.js +2 -2
- package/lib/common/components/shared/Card/CardWrapper/index.js +16 -4
- package/lib/common/components/shared/ExpandButton/index.js +14 -2
- package/lib/common/components/shared/ExpandButton/styles.js +2 -2
- package/lib/common/components/shared/FormattedDuration/index.js +18 -6
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +71 -52
- package/lib/common/components/shared/IfFeature/presenter.js +14 -2
- package/lib/common/components/shared/InteractionTypes/presenter.js +38 -26
- package/lib/common/components/shared/InteractionTypes/theme.js +1 -1
- package/lib/common/components/shared/PaginatedCollection/presenter.js +21 -9
- package/lib/common/components/shared/PaginatedCollection/theme.js +1 -1
- package/lib/common/components/shared/Paginator/index.js +17 -5
- package/lib/common/components/shared/PrintTrigger/index.js +2 -2
- package/lib/common/components/shared/PrintTrigger/presenter.js +45 -33
- package/lib/common/components/shared/TagDisplay/index.js +14 -2
- package/lib/common/components/shared/TagSelect/presenter.js +57 -45
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +32 -20
- package/lib/common/components/shared/TagWrapper/presenter.js +21 -9
- package/lib/common/components/shared/TimeUnitsInput/index.js +55 -43
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +18 -6
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +33 -21
- package/lib/common/components/shared/errors/Errors.js +19 -7
- package/lib/common/components/shared/errors/theme.js +1 -1
- package/lib/common/components/shared/file_selector/FileSelector.js +18 -6
- package/lib/common/components/shared/file_selector/theme.js +2 -2
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +24 -13
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +18 -6
- package/lib/common/components/shared/functionality/makeEditable.js +25 -13
- package/lib/common/components/shared/functionality/makeScrollable.js +27 -15
- package/lib/common/components/shared/overlay/index.js +16 -4
- package/lib/common/components/shared/overlay/theme.js +1 -1
- package/lib/common/components/shared/return_button/ReturnButton.js +16 -4
- package/lib/common/components/shared/spinner/Spinner.js +21 -9
- package/lib/common/kinesis/StreamQueue.js +2 -2
- package/lib/common/records/Alert.js +14 -2
- package/lib/common/records/Bank.js +14 -2
- package/lib/common/records/BankEntry.js +17 -5
- package/lib/common/records/Item.js +14 -2
- package/lib/common/records/ItemAnalysis.js +14 -2
- package/lib/common/records/QtiImport.js +14 -2
- package/lib/common/records/Quiz.js +19 -7
- package/lib/common/records/QuizAnalysis.js +14 -2
- package/lib/common/records/QuizEntry.js +67 -44
- package/lib/common/records/QuizSession.js +14 -2
- package/lib/common/records/QuizSessionEvent.js +14 -2
- package/lib/common/records/QuizSessionResult.js +14 -2
- package/lib/common/records/Response.js +14 -2
- package/lib/common/records/SessionItem.js +23 -5
- package/lib/common/records/SessionItemResult.js +14 -2
- package/lib/common/records/Stimulus.js +14 -2
- package/lib/common/records/baseRecord.js +16 -4
- package/lib/common/records/reduxRecord.js +14 -2
- package/lib/common/reducers/modifications.js +2 -2
- package/lib/common/util/ExhaustivePaginatedFetcher.js +23 -12
- package/lib/common/util/Fetcher.js +2 -2
- package/lib/common/util/PaginatedFetcher.js +24 -13
- package/lib/common/util/ThunkQueue.js +3 -3
- package/lib/common/util/componentForItem.js +2 -2
- package/lib/common/util/interactionTypeRecordForItem.js +2 -2
- package/lib/common/util/jsonify.js +2 -2
- package/lib/common/util/withDynamoPagination.js +20 -8
- package/lib/index.js +2 -2
- package/lib/messages/StorageExhaustionError.js +18 -6
- package/lib/messages/postMessageService.js +2 -2
- package/lib/moderating/components/events/Event.js +16 -4
- package/lib/moderating/components/events/PageBlurredEvent.js +16 -4
- package/lib/moderating/components/events/PageFocusedEvent.js +16 -4
- package/lib/moderating/components/events/RCEEvent.js +16 -4
- package/lib/moderating/components/events/ResponseEvent.js +19 -7
- package/lib/moderating/components/events/SessionStartEvent.js +16 -4
- package/lib/moderating/components/events/SessionSubmitEvent.js +16 -4
- package/lib/moderating/components/events/theme.js +1 -1
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +22 -10
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +32 -20
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +35 -23
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +29 -17
- package/lib/moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings/index.js +26 -14
- package/lib/moderating/components/resources/AccommodationsModal/index.js +48 -36
- package/lib/moderating/components/resources/ElapsedTime.js +16 -4
- package/lib/moderating/components/resources/ModerateTable/presenter.js +78 -66
- package/lib/moderating/components/resources/ModerateTable/styles.js +2 -2
- package/lib/moderating/components/resources/ModerateTable/theme.js +1 -1
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +44 -32
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +44 -32
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +54 -42
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +29 -17
- package/lib/reporting/components/Caption/index.js +14 -2
- package/lib/reporting/components/MetricsListItem/index.js +16 -4
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +28 -16
- package/lib/reporting/components/charts/Distribution/presenter.js +35 -23
- package/lib/reporting/components/charts/Distribution/theme.js +4 -4
- package/lib/reporting/components/charts/Legend/index.js +18 -6
- package/lib/reporting/components/charts/Legend/styles.js +2 -2
- package/lib/reporting/components/charts/Legend/theme.js +3 -3
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +31 -19
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -1
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +22 -10
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +35 -23
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +22 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +14 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +14 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +23 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +23 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +36 -24
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +19 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +27 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +23 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +46 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +29 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +30 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +59 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +41 -29
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +30 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +25 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +23 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +44 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +29 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +23 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +52 -40
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +65 -53
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +34 -22
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +34 -22
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +14 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +63 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +36 -24
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +58 -46
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +22 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +76 -64
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +2 -2
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +16 -4
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +34 -22
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
- package/lib/reporting/components/resources/ReportCard/index.js +14 -2
- package/lib/reporting/components/resources/ReportList/index.js +14 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +59 -47
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/styles.js +2 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +2 -2
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +16 -4
- package/lib/taking/api/taking.js +3 -3
- package/package.json +56 -56
|
@@ -5,8 +5,20 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
7
|
var _dec, _class, _SidebarStimulus;
|
|
8
|
-
function _callSuper(
|
|
9
|
-
function
|
|
8
|
+
function _callSuper(_this, derived, args) {
|
|
9
|
+
function isNativeReflectConstruct() {
|
|
10
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
11
|
+
if (Reflect.construct.sham) return false;
|
|
12
|
+
if (typeof Proxy === "function") return true;
|
|
13
|
+
try {
|
|
14
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
15
|
+
} catch (e) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
derived = _getPrototypeOf(derived);
|
|
20
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
21
|
+
}
|
|
10
22
|
/** @jsx jsx */
|
|
11
23
|
import { Component } from 'react';
|
|
12
24
|
import PropTypes from 'prop-types';
|
|
@@ -23,23 +35,25 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
23
35
|
import { Flex, END_EDITING_TRIGGER_CLASSNAME, withStyleOverrides } from '@instructure/quiz-common';
|
|
24
36
|
import { Tooltip } from '@instructure/ui-tooltip';
|
|
25
37
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
38
|
+
import { View } from '@instructure/ui-view';
|
|
39
|
+
import { Text } from '@instructure/ui-text';
|
|
26
40
|
export var DISPLAY_AS_SUMMARY_LIMIT = 5;
|
|
27
41
|
export var SidebarStimulus = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_SidebarStimulus = /*#__PURE__*/function (_Component) {
|
|
28
42
|
function SidebarStimulus() {
|
|
29
|
-
var
|
|
43
|
+
var _this2;
|
|
30
44
|
_classCallCheck(this, SidebarStimulus);
|
|
31
45
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
46
|
args[_key] = arguments[_key];
|
|
33
47
|
}
|
|
34
|
-
|
|
35
|
-
_defineProperty(
|
|
48
|
+
_this2 = _callSuper(this, SidebarStimulus, [].concat(args));
|
|
49
|
+
_defineProperty(_this2, "scrollToItem", function (e) {
|
|
36
50
|
e.preventDefault(); // prevent default link navigation
|
|
37
51
|
// this can be a real scroll or a oqaat change
|
|
38
52
|
// depending on whether is is oqaat or not
|
|
39
|
-
|
|
53
|
+
_this2.props.scrollToItem(_this2.props.stimulusParent.id);
|
|
40
54
|
e.stopPropagation();
|
|
41
55
|
});
|
|
42
|
-
return
|
|
56
|
+
return _this2;
|
|
43
57
|
}
|
|
44
58
|
_inherits(SidebarStimulus, _Component);
|
|
45
59
|
return _createClass(SidebarStimulus, [{
|
|
@@ -52,18 +66,26 @@ export var SidebarStimulus = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
52
66
|
value: function componentDidUpdate() {
|
|
53
67
|
this.props.makeStyles();
|
|
54
68
|
}
|
|
69
|
+
}, {
|
|
70
|
+
key: "stimulusIsPassage",
|
|
71
|
+
value: function stimulusIsPassage() {
|
|
72
|
+
var _this$props$stimulus;
|
|
73
|
+
return (_this$props$stimulus = this.props.stimulus) === null || _this$props$stimulus === void 0 ? void 0 : _this$props$stimulus.isPassage;
|
|
74
|
+
}
|
|
55
75
|
}, {
|
|
56
76
|
key: "renderCollection",
|
|
57
77
|
value: function renderCollection() {
|
|
58
|
-
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
78
|
+
var _this$props$stimulus2;
|
|
61
79
|
var _this$props = this.props,
|
|
62
80
|
displayPosition = _this$props.displayPosition,
|
|
63
81
|
isOver = _this$props.isOver,
|
|
64
82
|
isShowingItems = _this$props.isShowingItems,
|
|
65
83
|
renderSidebarItem = _this$props.renderSidebarItem,
|
|
66
|
-
sidebarOpen = _this$props.sidebarOpen
|
|
84
|
+
sidebarOpen = _this$props.sidebarOpen,
|
|
85
|
+
isDragging = _this$props.isDragging;
|
|
86
|
+
if (this.stimulusIsPassage() || isDragging) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
67
89
|
return jsx(Collection, {
|
|
68
90
|
firstPosition: displayPosition,
|
|
69
91
|
isOver: isOver,
|
|
@@ -71,22 +93,30 @@ export var SidebarStimulus = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
71
93
|
itemCollection: this.props.childEntries,
|
|
72
94
|
renderSidebarItem: renderSidebarItem,
|
|
73
95
|
sidebarOpen: sidebarOpen,
|
|
74
|
-
stimulusId: this.props.stimulus.id
|
|
96
|
+
stimulusId: this.props.stimulus.id,
|
|
97
|
+
isPassage: (_this$props$stimulus2 = this.props.stimulus) === null || _this$props$stimulus2 === void 0 ? void 0 : _this$props$stimulus2.isPassage
|
|
75
98
|
});
|
|
76
99
|
}
|
|
77
100
|
}, {
|
|
78
101
|
key: "renderButton",
|
|
79
102
|
value: function renderButton() {
|
|
80
|
-
var
|
|
81
|
-
|
|
103
|
+
var _this$props2 = this.props,
|
|
104
|
+
displayPosition = _this$props2.displayPosition,
|
|
105
|
+
sidebarOpen = _this$props2.sidebarOpen;
|
|
106
|
+
var itemName = this.stimulusIsPassage() ? 'passage' : 'stimulus';
|
|
107
|
+
var textForNavigation = t('Navigate to {itemName} at position {displayPosition}', {
|
|
108
|
+
itemName: itemName,
|
|
82
109
|
displayPosition: displayPosition
|
|
83
110
|
});
|
|
111
|
+
var content = sidebarOpen ? '' : textForNavigation;
|
|
112
|
+
var tip = jsx(Text, {
|
|
113
|
+
"aria-hidden": !sidebarOpen,
|
|
114
|
+
"aria-label": content
|
|
115
|
+
}, content);
|
|
84
116
|
return jsx(Tooltip, {
|
|
85
|
-
renderTip:
|
|
86
|
-
"aria-hidden": "true"
|
|
87
|
-
}, textForNavigation),
|
|
117
|
+
renderTip: tip,
|
|
88
118
|
placement: "start",
|
|
89
|
-
on:
|
|
119
|
+
on: sidebarOpen ? [] : ['hover', 'focus']
|
|
90
120
|
}, jsx(Link, {
|
|
91
121
|
href: "#",
|
|
92
122
|
margin: "small",
|
|
@@ -98,33 +128,82 @@ export var SidebarStimulus = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
98
128
|
className: END_EDITING_TRIGGER_CLASSNAME
|
|
99
129
|
}, jsx(ScreenReaderContent, null, textForNavigation)));
|
|
100
130
|
}
|
|
131
|
+
}, {
|
|
132
|
+
key: "infoHeaderLabel",
|
|
133
|
+
value: function infoHeaderLabel() {
|
|
134
|
+
return this.stimulusIsPassage() ? t('Passage') : t('Stimulus');
|
|
135
|
+
}
|
|
136
|
+
}, {
|
|
137
|
+
key: "renderSummary",
|
|
138
|
+
value: function renderSummary() {
|
|
139
|
+
var _this$props3 = this.props,
|
|
140
|
+
displayPosition = _this$props3.displayPosition,
|
|
141
|
+
isDragging = _this$props3.isDragging,
|
|
142
|
+
isShowingItems = _this$props3.isShowingItems,
|
|
143
|
+
sidebarOpen = _this$props3.sidebarOpen,
|
|
144
|
+
stimulus = _this$props3.stimulus;
|
|
145
|
+
if (this.stimulusIsPassage()) {
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
return jsx(Summary, {
|
|
149
|
+
startPosition: displayPosition,
|
|
150
|
+
isDragging: isDragging,
|
|
151
|
+
isShowingItems: isShowingItems,
|
|
152
|
+
stimulusId: stimulus.id,
|
|
153
|
+
sidebarOpen: sidebarOpen,
|
|
154
|
+
numberOfItems: this.props.childEntries.size
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}, {
|
|
158
|
+
key: "stimulusHoverCss",
|
|
159
|
+
value: function stimulusHoverCss() {
|
|
160
|
+
return {
|
|
161
|
+
// TODO: figure out how to get rid of the last of these styles.
|
|
162
|
+
':hover': this.props.styles.onHover
|
|
163
|
+
};
|
|
164
|
+
}
|
|
101
165
|
}, {
|
|
102
166
|
key: "renderClosed",
|
|
103
167
|
value: function renderClosed() {
|
|
104
|
-
return jsx(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
168
|
+
return jsx(View, {
|
|
169
|
+
borderWidth: "0 0 small 0",
|
|
170
|
+
borderColor: "primary",
|
|
171
|
+
as: "div"
|
|
172
|
+
}, jsx(View, {
|
|
173
|
+
textAlign: "center",
|
|
174
|
+
padding: "xx-small 0",
|
|
175
|
+
borderWidth: "none large none none",
|
|
176
|
+
borderColor: "transparent",
|
|
177
|
+
css: this.stimulusHoverCss(),
|
|
178
|
+
as: "div"
|
|
108
179
|
}, this.renderButton()), this.renderCollection());
|
|
109
180
|
}
|
|
110
181
|
}, {
|
|
111
182
|
key: "renderOpen",
|
|
112
183
|
value: function renderOpen() {
|
|
113
|
-
var _this$
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
|
|
184
|
+
var _this$props4 = this.props,
|
|
185
|
+
stimulus = _this$props4.stimulus,
|
|
186
|
+
children = _this$props4.children;
|
|
187
|
+
return jsx(View, {
|
|
188
|
+
borderWidth: "0 0 small 0",
|
|
189
|
+
borderColor: "primary",
|
|
190
|
+
as: "div"
|
|
191
|
+
}, jsx(View, {
|
|
192
|
+
padding: "small 0",
|
|
193
|
+
borderWidth: "none large none none",
|
|
194
|
+
borderColor: "transparent",
|
|
195
|
+
css: this.stimulusHoverCss(),
|
|
196
|
+
as: "div"
|
|
197
|
+
}, jsx(View, {
|
|
198
|
+
margin: "auto auto x-small x-small",
|
|
199
|
+
padding: "auto auto auto x-small",
|
|
200
|
+
as: "div"
|
|
201
|
+
}, jsx(Text, {
|
|
202
|
+
size: "x-small",
|
|
203
|
+
color: "secondary"
|
|
204
|
+
}, this.infoHeaderLabel())), jsx(View, {
|
|
205
|
+
margin: "auto auto auto small",
|
|
206
|
+
as: "div"
|
|
128
207
|
}, jsx(Flex, {
|
|
129
208
|
justifyItems: "space-between"
|
|
130
209
|
}, jsx(Flex.Item, null, this.renderButton()), jsx(Flex.Item, {
|
|
@@ -134,14 +213,7 @@ export var SidebarStimulus = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
134
213
|
tabIndex: "-1"
|
|
135
214
|
}, jsx(Title, {
|
|
136
215
|
title: stimulus.title
|
|
137
|
-
})), jsx(Flex.Item, null, children)),
|
|
138
|
-
startPosition: displayPosition,
|
|
139
|
-
isDragging: isDragging,
|
|
140
|
-
isShowingItems: isShowingItems,
|
|
141
|
-
sidebarOpen: sidebarOpen,
|
|
142
|
-
stimulusId: stimulus.id,
|
|
143
|
-
numberOfItems: this.props.childEntries.size
|
|
144
|
-
}))), this.renderCollection());
|
|
216
|
+
})), jsx(Flex.Item, null, children)), this.renderSummary())), this.renderCollection());
|
|
145
217
|
}
|
|
146
218
|
}, {
|
|
147
219
|
key: "render",
|
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
var generateStyle = function generateStyle(componentTheme) {
|
|
2
2
|
return {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
},
|
|
6
|
-
sidebarItemClosedButton: {
|
|
7
|
-
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.borderColor),
|
|
8
|
-
padding: componentTheme.sidebarClosedButtonPadding,
|
|
9
|
-
textAlign: 'center',
|
|
10
|
-
'&:hover': {
|
|
11
|
-
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.hoverBorderColor)
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
stimulusHeader: {
|
|
15
|
-
padding: "".concat(componentTheme.sidebarHeaderPadding, " 0"),
|
|
16
|
-
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.borderColor),
|
|
17
|
-
'&:hover:': {
|
|
18
|
-
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.hoverBorderColor)
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
stimulusBody: {
|
|
22
|
-
marginLeft: '5%'
|
|
23
|
-
},
|
|
24
|
-
infoHeader: {
|
|
25
|
-
fontSize: componentTheme.sidebarIsOpenInfoHeaderFontSize,
|
|
26
|
-
color: componentTheme.sidebarIsOpenInfoHeaderColor,
|
|
27
|
-
marginBottom: componentTheme.sidebarIsOpenInfoHeaderMargin,
|
|
28
|
-
paddingLeft: componentTheme.sidebarIsOpenInfoHeaderPadding
|
|
3
|
+
onHover: {
|
|
4
|
+
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.hoverBorderColor)
|
|
29
5
|
}
|
|
30
6
|
};
|
|
31
7
|
};
|
|
@@ -4,17 +4,8 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
borders = _ref.borders,
|
|
5
5
|
typography = _ref.typography;
|
|
6
6
|
return {
|
|
7
|
-
borderColor: colors.
|
|
8
|
-
hoverBorderColor: colors.
|
|
9
|
-
hoverBorderWidth: borders.widthLarge,
|
|
10
|
-
sidebarClosedButtonPadding: "".concat(spacing.xxSmall, " 0"),
|
|
11
|
-
sidebarHeaderPadding: spacing.small,
|
|
12
|
-
sidebarItemBorderWidth: borders.widthSmall,
|
|
13
|
-
sidebarItemBorderColor: colors.tiara,
|
|
14
|
-
sidebarIsOpenInfoHeaderFontSize: typography.fontSizeXSmall,
|
|
15
|
-
sidebarIsOpenInfoHeaderPadding: spacing.xSmall,
|
|
16
|
-
sidebarIsOpenInfoHeaderMargin: spacing.xSmall,
|
|
17
|
-
sidebarIsOpenInfoHeaderColor: colors.ash
|
|
7
|
+
borderColor: colors.contrasts.white1010,
|
|
8
|
+
hoverBorderColor: colors.contrasts.blue4570
|
|
18
9
|
};
|
|
19
10
|
};
|
|
20
11
|
export default generateComponentTheme;
|
|
@@ -5,8 +5,20 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
function _callSuper(
|
|
9
|
-
function
|
|
8
|
+
function _callSuper(_this, derived, args) {
|
|
9
|
+
function isNativeReflectConstruct() {
|
|
10
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
11
|
+
if (Reflect.construct.sham) return false;
|
|
12
|
+
if (typeof Proxy === "function") return true;
|
|
13
|
+
try {
|
|
14
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
15
|
+
} catch (e) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
derived = _getPrototypeOf(derived);
|
|
20
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
21
|
+
}
|
|
10
22
|
import React, { Component } from 'react';
|
|
11
23
|
import PropTypes from 'prop-types';
|
|
12
24
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
@@ -15,15 +27,17 @@ import { toErrors } from '../../../util/instUIMessages';
|
|
|
15
27
|
import { simpleFetchBanks } from '../../../../banks/api/banks';
|
|
16
28
|
import { GenericAsyncSearch } from '../../shared/GenericAsyncSearch/GenericAsyncSearch';
|
|
17
29
|
export var BankSelection = /*#__PURE__*/function (_Component) {
|
|
18
|
-
function BankSelection() {
|
|
19
|
-
var
|
|
30
|
+
function BankSelection(props) {
|
|
31
|
+
var _this2;
|
|
20
32
|
_classCallCheck(this, BankSelection);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
_this2 = _callSuper(this, BankSelection, [props]);
|
|
34
|
+
_defineProperty(_this2, "setInputRef", function (ref) {
|
|
35
|
+
var _this2$props$inputRef, _this2$props;
|
|
36
|
+
_this2.inputRef = ref;
|
|
37
|
+
(_this2$props$inputRef = (_this2$props = _this2.props).inputRef) === null || _this2$props$inputRef === void 0 || _this2$props$inputRef.call(_this2$props, ref);
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(_this2, "searchBanks", function (search) {
|
|
40
|
+
return _this2.props.simpleFetchBanks({
|
|
27
41
|
search: search
|
|
28
42
|
}).then(function (_ref) {
|
|
29
43
|
var _ref2 = _slicedToArray(_ref, 1),
|
|
@@ -37,25 +51,38 @@ export var BankSelection = /*#__PURE__*/function (_Component) {
|
|
|
37
51
|
});
|
|
38
52
|
});
|
|
39
53
|
});
|
|
40
|
-
_defineProperty(
|
|
41
|
-
return
|
|
54
|
+
_defineProperty(_this2, "onSelect", function (e, bankOption) {
|
|
55
|
+
return _this2.props.onBankSelection(e, {
|
|
42
56
|
id: parseInt(bankOption.id),
|
|
43
57
|
title: bankOption.text,
|
|
44
58
|
archived: bankOption.archived
|
|
45
59
|
});
|
|
46
60
|
});
|
|
47
|
-
|
|
61
|
+
_this2.inputRef = null;
|
|
62
|
+
return _this2;
|
|
48
63
|
}
|
|
49
64
|
_inherits(BankSelection, _Component);
|
|
50
65
|
return _createClass(BankSelection, [{
|
|
66
|
+
key: "focusSelectField",
|
|
67
|
+
value: function focusSelectField() {
|
|
68
|
+
if (this.inputRef) {
|
|
69
|
+
this.inputRef.focus();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
51
73
|
key: "getErrors",
|
|
52
74
|
value: function getErrors() {
|
|
53
75
|
var selectedBank = this.props.selectedBank;
|
|
54
76
|
if (selectedBank && selectedBank.archived) {
|
|
77
|
+
this.focusSelectField();
|
|
55
78
|
return toErrors([t('The item bank "{ bankTitle }" no longer exists. Please select a valid bank.', {
|
|
56
79
|
bankTitle: selectedBank.title
|
|
57
80
|
})]);
|
|
58
81
|
}
|
|
82
|
+
if (this.props.externalError) {
|
|
83
|
+
this.focusSelectField();
|
|
84
|
+
return this.props.externalError;
|
|
85
|
+
}
|
|
59
86
|
}
|
|
60
87
|
}, {
|
|
61
88
|
key: "selectedOption",
|
|
@@ -71,13 +98,15 @@ export var BankSelection = /*#__PURE__*/function (_Component) {
|
|
|
71
98
|
key: "render",
|
|
72
99
|
value: function render() {
|
|
73
100
|
return /*#__PURE__*/React.createElement(GenericAsyncSearch, {
|
|
101
|
+
inputRef: this.setInputRef,
|
|
74
102
|
onSelectionChange: this.onSelect,
|
|
75
103
|
label: this.props.label || t('Select the destination bank'),
|
|
76
104
|
placeholder: t('Search for a bank'),
|
|
77
105
|
selectedOption: this.selectedOption(),
|
|
78
106
|
getOptions: this.searchBanks,
|
|
79
107
|
messages: this.getErrors(),
|
|
80
|
-
selectAutomation: 'sdk-item-bank-modal'
|
|
108
|
+
selectAutomation: 'sdk-item-bank-modal',
|
|
109
|
+
isRequired: this.props.isRequired
|
|
81
110
|
});
|
|
82
111
|
}
|
|
83
112
|
}]);
|
|
@@ -86,12 +115,18 @@ _defineProperty(BankSelection, "propTypes", {
|
|
|
86
115
|
label: PropTypes.string,
|
|
87
116
|
onBankSelection: PropTypes.func,
|
|
88
117
|
selectedBank: ImmutablePropTypes.record,
|
|
89
|
-
simpleFetchBanks: PropTypes.func
|
|
118
|
+
simpleFetchBanks: PropTypes.func,
|
|
119
|
+
externalError: ImmutablePropTypes.record,
|
|
120
|
+
inputRef: PropTypes.func,
|
|
121
|
+
isRequired: PropTypes.bool
|
|
90
122
|
});
|
|
91
123
|
_defineProperty(BankSelection, "defaultProps", {
|
|
92
124
|
label: null,
|
|
93
125
|
onBankSelection: function onBankSelection() {},
|
|
94
126
|
selectedBank: null,
|
|
95
|
-
simpleFetchBanks: simpleFetchBanks
|
|
127
|
+
simpleFetchBanks: simpleFetchBanks,
|
|
128
|
+
externalError: null,
|
|
129
|
+
inputRef: function inputRef() {},
|
|
130
|
+
isRequired: false
|
|
96
131
|
});
|
|
97
132
|
export default BankSelection;
|
|
@@ -5,8 +5,20 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
7
|
var _dec, _class, _WarningWrapper;
|
|
8
|
-
function _callSuper(
|
|
9
|
-
function
|
|
8
|
+
function _callSuper(_this, derived, args) {
|
|
9
|
+
function isNativeReflectConstruct() {
|
|
10
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
11
|
+
if (Reflect.construct.sham) return false;
|
|
12
|
+
if (typeof Proxy === "function") return true;
|
|
13
|
+
try {
|
|
14
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
15
|
+
} catch (e) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
derived = _getPrototypeOf(derived);
|
|
20
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
21
|
+
}
|
|
10
22
|
/** @jsx jsx */
|
|
11
23
|
import { Component } from 'react';
|
|
12
24
|
import PropTypes from 'prop-types';
|
|
@@ -20,17 +32,17 @@ import generateComponentTheme from './theme';
|
|
|
20
32
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
21
33
|
export var WarningWrapper = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_WarningWrapper = /*#__PURE__*/function (_Component) {
|
|
22
34
|
function WarningWrapper() {
|
|
23
|
-
var
|
|
35
|
+
var _this2;
|
|
24
36
|
_classCallCheck(this, WarningWrapper);
|
|
25
37
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
38
|
args[_key] = arguments[_key];
|
|
27
39
|
}
|
|
28
|
-
|
|
29
|
-
_defineProperty(
|
|
30
|
-
_defineProperty(
|
|
31
|
-
|
|
40
|
+
_this2 = _callSuper(this, WarningWrapper, [].concat(args));
|
|
41
|
+
_defineProperty(_this2, "focusRef", null);
|
|
42
|
+
_defineProperty(_this2, "setFocusRef", function (element) {
|
|
43
|
+
_this2.focusRef = element;
|
|
32
44
|
});
|
|
33
|
-
return
|
|
45
|
+
return _this2;
|
|
34
46
|
}
|
|
35
47
|
_inherits(WarningWrapper, _Component);
|
|
36
48
|
return _createClass(WarningWrapper, [{
|
|
@@ -6,7 +6,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
alertPadding: spacing.medium,
|
|
7
7
|
alertZIndex: '8888',
|
|
8
8
|
containerPadding: spacing.medium,
|
|
9
|
-
disabledChildrenBackgroundColor: colors.
|
|
9
|
+
disabledChildrenBackgroundColor: colors.contrasts.grey1111,
|
|
10
10
|
disabledChildrenOpacity: '0.6',
|
|
11
11
|
disabledChildrenZIndex: '7777'
|
|
12
12
|
};
|
|
@@ -6,8 +6,20 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
|
-
function _callSuper(
|
|
10
|
-
function
|
|
9
|
+
function _callSuper(_this, derived, args) {
|
|
10
|
+
function isNativeReflectConstruct() {
|
|
11
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
12
|
+
if (Reflect.construct.sham) return false;
|
|
13
|
+
if (typeof Proxy === "function") return true;
|
|
14
|
+
try {
|
|
15
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
derived = _getPrototypeOf(derived);
|
|
21
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
22
|
+
}
|
|
11
23
|
import React, { Component } from 'react';
|
|
12
24
|
import PropTypes from 'prop-types';
|
|
13
25
|
import ReactDOM from 'react-dom';
|
|
@@ -18,42 +30,42 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
18
30
|
import noop from '../../../../util/noop';
|
|
19
31
|
export var EntrySave = /*#__PURE__*/function (_Component) {
|
|
20
32
|
function EntrySave() {
|
|
21
|
-
var
|
|
33
|
+
var _this2;
|
|
22
34
|
_classCallCheck(this, EntrySave);
|
|
23
35
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24
36
|
args[_key] = arguments[_key];
|
|
25
37
|
}
|
|
26
|
-
|
|
27
|
-
_defineProperty(
|
|
38
|
+
_this2 = _callSuper(this, EntrySave, [].concat(args));
|
|
39
|
+
_defineProperty(_this2, "state", {
|
|
28
40
|
canSubmit: true
|
|
29
41
|
});
|
|
30
|
-
_defineProperty(
|
|
31
|
-
var displayPosition =
|
|
42
|
+
_defineProperty(_this2, "createScreenReaderNotification", function () {
|
|
43
|
+
var displayPosition = _this2.props.displayPosition;
|
|
32
44
|
var msg = displayPosition === null ? t('This question cannot be saved due to invalid input data.') : t('Question {displayPosition} cannot be saved due to invalid input data.', {
|
|
33
45
|
displayPosition: displayPosition
|
|
34
46
|
});
|
|
35
|
-
|
|
47
|
+
_this2.props.screenreaderNotification(msg);
|
|
36
48
|
});
|
|
37
|
-
_defineProperty(
|
|
49
|
+
_defineProperty(_this2, "onSubmit", /*#__PURE__*/function () {
|
|
38
50
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(e) {
|
|
39
51
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
40
52
|
while (1) switch (_context.prev = _context.next) {
|
|
41
53
|
case 0:
|
|
42
54
|
e.preventDefault();
|
|
43
|
-
if (!
|
|
55
|
+
if (!_this2.props.isValid) {
|
|
44
56
|
_context.next = 5;
|
|
45
57
|
break;
|
|
46
58
|
}
|
|
47
|
-
|
|
59
|
+
_this2.successfulSubmit();
|
|
48
60
|
_context.next = 10;
|
|
49
61
|
break;
|
|
50
62
|
case 5:
|
|
51
|
-
|
|
63
|
+
_this2.createScreenReaderNotification();
|
|
52
64
|
_context.next = 8;
|
|
53
|
-
return
|
|
65
|
+
return _this2.props.showError(_this2.props.guid);
|
|
54
66
|
case 8:
|
|
55
|
-
|
|
56
|
-
|
|
67
|
+
_this2.props.clearNextQuizEntry();
|
|
68
|
+
_this2.focusFirstErrorField();
|
|
57
69
|
case 10:
|
|
58
70
|
case "end":
|
|
59
71
|
return _context.stop();
|
|
@@ -64,25 +76,25 @@ export var EntrySave = /*#__PURE__*/function (_Component) {
|
|
|
64
76
|
return _ref.apply(this, arguments);
|
|
65
77
|
};
|
|
66
78
|
}());
|
|
67
|
-
_defineProperty(
|
|
68
|
-
var itemEditArea =
|
|
79
|
+
_defineProperty(_this2, "focusFirstErrorField", function () {
|
|
80
|
+
var itemEditArea = _this2.props.itemEditArea;
|
|
69
81
|
if (itemEditArea) {
|
|
70
82
|
var editArea = ReactDOM.findDOMNode(itemEditArea);
|
|
71
83
|
var firstErrorField = editArea === null || editArea === void 0 ? void 0 : editArea.querySelector('[aria-invalid="true"]');
|
|
72
84
|
firstErrorField && firstErrorField.focus();
|
|
73
85
|
}
|
|
74
86
|
});
|
|
75
|
-
_defineProperty(
|
|
87
|
+
_defineProperty(_this2, "clearChanges", function () {
|
|
76
88
|
var fromCancel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
89
|
+
_this2.props.switchOffEditing();
|
|
90
|
+
_this2.props.hideError(_this2.props.guid);
|
|
91
|
+
_this2.props.clearChanges(fromCancel);
|
|
80
92
|
});
|
|
81
|
-
_defineProperty(
|
|
82
|
-
|
|
83
|
-
|
|
93
|
+
_defineProperty(_this2, "onCancel", function () {
|
|
94
|
+
_this2.clearChanges(true);
|
|
95
|
+
_this2.props.cancelHandler();
|
|
84
96
|
});
|
|
85
|
-
return
|
|
97
|
+
return _this2;
|
|
86
98
|
}
|
|
87
99
|
_inherits(EntrySave, _Component);
|
|
88
100
|
return _createClass(EntrySave, [{
|