@instructure/quiz-core 22.8.0 → 22.10.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/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/BankEntryRow/presenter.js +49 -37
- package/es/banks/components/BankSearch/presenter.js +26 -14
- package/es/banks/components/Banks/presenter.js +102 -90
- package/es/banks/components/BanksList/presenter.js +74 -62
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +82 -70
- 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/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/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/resources/ActionButtons/presenter.js +28 -16
- package/es/building/components/resources/ActionButtons/styles.js +2 -2
- package/es/building/components/resources/AddToBankOptions/index.js +28 -16
- 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/Show/index.js +19 -7
- package/es/building/components/resources/quiz/title/Edit/index.js +38 -26
- 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/quizEntry/QuizEntry/presenter.js +59 -47
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +14 -2
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +55 -43
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +14 -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/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/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/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/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/Timer/presenter.js +29 -17
- 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/sidebar/PositionSummary/index.js +16 -4
- 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/SidebarItem/presenter.js +20 -8
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +24 -12
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +22 -10
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +14 -2
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +19 -7
- package/es/common/components/resources/BankSelection/presenter.js +28 -16
- package/es/common/components/resources/WarningWrapper/index.js +20 -8
- 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 +20 -4
- package/es/common/components/resources/positionBox/PositionBox.js +14 -2
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +47 -35
- 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/Modal/presenter.js +14 -2
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +45 -33
- 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/SessionItemResult/presenter.js +18 -6
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +23 -11
- 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/StimulusEdit/presenter.js +102 -90
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +30 -17
- 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/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 +61 -49
- 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/PaginatedCollection/presenter.js +19 -7
- 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/DragHandle/presenter.js +31 -19
- package/es/common/components/shared/file_selector/FileSelector.js +18 -6
- 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/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 +36 -25
- 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 +17 -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/interactionTypePropsHelper.js +3 -1
- package/es/common/util/jsonify.js +2 -2
- package/es/common/util/serializeEvent.js +8 -1
- 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 +47 -28
- package/es/moderating/components/events/PageBlurredEvent.js +23 -5
- package/es/moderating/components/events/PageFocusedEvent.js +23 -5
- package/es/moderating/components/events/RCEEvent.js +23 -7
- package/es/moderating/components/events/ResponseEvent.js +30 -23
- package/es/moderating/components/events/SessionStartEvent.js +19 -13
- package/es/moderating/components/events/SessionSubmitEvent.js +19 -13
- 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 +34 -22
- 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/EventDetails.js +3 -27
- 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/ModerateTableRow/presenter.js +45 -33
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +42 -30
- package/es/moderating/components/resources/util/extractSessionData.js +4 -2
- package/es/moderating/components/resources/util/renderEventSummary.js +26 -0
- 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/Legend/index.js +18 -6
- package/es/reporting/components/charts/Legend/styles.js +2 -2
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +31 -19
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +22 -10
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +33 -21
- 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/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/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/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/presenter.js +63 -51
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -2
- 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/charts/ScoreDistribution/presenter.js +20 -8
- 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/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/common/AnalysisUpdateDate/index.js +14 -2
- package/es/reporting/components/resources/common/propTypes.js +2 -8
- package/es/taking/api/taking.js +4 -2
- 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/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/BankEntryRow/index.js +2 -2
- package/lib/banks/components/BankEntryRow/presenter.js +51 -39
- 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/BanksList/presenter.js +76 -64
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +2 -2
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +84 -72
- 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/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/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/resources/ActionButtons/presenter.js +28 -16
- package/lib/building/components/resources/ActionButtons/styles.js +2 -2
- package/lib/building/components/resources/AddToBankOptions/index.js +28 -16
- 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/Show/index.js +19 -7
- package/lib/building/components/resources/quiz/title/Edit/index.js +40 -28
- 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/quizEntry/QuizEntry/presenter.js +59 -47
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +14 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +55 -43
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +14 -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/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/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/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/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/Timer/presenter.js +31 -19
- 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/sidebar/PositionSummary/index.js +16 -4
- 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/SidebarItem/presenter.js +20 -8
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +24 -12
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +22 -10
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +14 -2
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +19 -7
- package/lib/common/components/resources/BankSelection/presenter.js +30 -18
- package/lib/common/components/resources/WarningWrapper/index.js +20 -8
- 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 +22 -6
- package/lib/common/components/resources/positionBox/PositionBox.js +14 -2
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +47 -35
- 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/Modal/presenter.js +16 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +45 -33
- 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/SessionItemResult/presenter.js +18 -6
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +23 -11
- 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/StimulusEdit/index.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +102 -90
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +30 -17
- 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/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 +63 -51
- 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/PaginatedCollection/presenter.js +21 -9
- 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/DragHandle/presenter.js +33 -21
- package/lib/common/components/shared/file_selector/FileSelector.js +18 -6
- 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/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 +38 -27
- 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 +17 -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/interactionTypePropsHelper.js +3 -1
- package/lib/common/util/interactionTypeRecordForItem.js +2 -2
- package/lib/common/util/jsonify.js +2 -2
- package/lib/common/util/serializeEvent.js +8 -1
- 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 +48 -29
- package/lib/moderating/components/events/PageBlurredEvent.js +23 -7
- package/lib/moderating/components/events/PageFocusedEvent.js +23 -7
- package/lib/moderating/components/events/RCEEvent.js +23 -9
- package/lib/moderating/components/events/ResponseEvent.js +31 -24
- package/lib/moderating/components/events/SessionStartEvent.js +20 -14
- package/lib/moderating/components/events/SessionSubmitEvent.js +20 -14
- 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 +36 -24
- 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/EventDetails.js +3 -27
- 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/ModerateTableRow/presenter.js +47 -35
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +44 -32
- package/lib/moderating/components/resources/util/extractSessionData.js +4 -2
- package/lib/moderating/components/resources/util/renderEventSummary.js +33 -0
- 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/Legend/index.js +18 -6
- package/lib/reporting/components/charts/Legend/styles.js +2 -2
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +31 -19
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +22 -10
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +35 -23
- 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/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/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/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/presenter.js +63 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -2
- 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/charts/ScoreDistribution/presenter.js +22 -10
- 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/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/withStudentAnalysisReportStatePresenter.js +2 -2
- package/lib/reporting/components/resources/common/AnalysisUpdateDate/index.js +16 -4
- package/lib/reporting/components/resources/common/propTypes.js +3 -9
- package/lib/taking/api/taking.js +6 -4
- package/package.json +9 -12
- package/es/moderating/components/resources/SessionBreachAlert.js +0 -9
- package/es/moderating/components/resources/util/checkIsBreach.js +0 -28
- package/lib/moderating/components/resources/SessionBreachAlert.js +0 -16
- package/lib/moderating/components/resources/util/checkIsBreach.js +0 -35
|
@@ -4,8 +4,20 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
|
|
4
4
|
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
|
-
function _callSuper(
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(_this, derived, args) {
|
|
8
|
+
function isNativeReflectConstruct() {
|
|
9
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
10
|
+
if (Reflect.construct.sham) return false;
|
|
11
|
+
if (typeof Proxy === "function") return true;
|
|
12
|
+
try {
|
|
13
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
14
|
+
} catch (e) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
derived = _getPrototypeOf(derived);
|
|
19
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
20
|
+
}
|
|
9
21
|
import React, { Component } from 'react';
|
|
10
22
|
import PropTypes from 'prop-types';
|
|
11
23
|
import { Tooltip } from '@instructure/ui-tooltip';
|
|
@@ -18,67 +30,67 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
18
30
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
19
31
|
export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
20
32
|
function AccommodationModal() {
|
|
21
|
-
var
|
|
33
|
+
var _this2;
|
|
22
34
|
_classCallCheck(this, AccommodationModal);
|
|
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, AccommodationModal, [].concat(args));
|
|
39
|
+
_defineProperty(_this2, "state", {
|
|
28
40
|
isTruncated: false
|
|
29
41
|
});
|
|
30
|
-
_defineProperty(
|
|
31
|
-
if (
|
|
32
|
-
|
|
42
|
+
_defineProperty(_this2, "handleUpdate", function (isTruncated) {
|
|
43
|
+
if (_this2.state.isTruncated !== isTruncated) {
|
|
44
|
+
_this2.setState({
|
|
33
45
|
isTruncated: isTruncated
|
|
34
46
|
});
|
|
35
47
|
}
|
|
36
48
|
});
|
|
37
|
-
_defineProperty(
|
|
38
|
-
|
|
49
|
+
_defineProperty(_this2, "handleAccommodationsModalExited", function () {
|
|
50
|
+
_this2.setState({
|
|
39
51
|
isTruncated: false
|
|
40
52
|
});
|
|
41
53
|
});
|
|
42
|
-
_defineProperty(
|
|
54
|
+
_defineProperty(_this2, "renderName", function (renderProps) {
|
|
43
55
|
var focused = renderProps && renderProps.focused;
|
|
44
56
|
return /*#__PURE__*/React.createElement(View, {
|
|
45
57
|
"aria-hidden": "true",
|
|
46
58
|
display: "inline-block",
|
|
47
59
|
borderRadius: "small",
|
|
48
60
|
position: "relative",
|
|
49
|
-
withFocusOutline:
|
|
61
|
+
withFocusOutline: _this2.state.isTruncated && focused,
|
|
50
62
|
as: "div",
|
|
51
|
-
tabIndex:
|
|
63
|
+
tabIndex: _this2.state.isTruncated ? 0 : null
|
|
52
64
|
}, /*#__PURE__*/React.createElement(TruncateText, {
|
|
53
65
|
maxLines: 2,
|
|
54
66
|
truncate: "character",
|
|
55
|
-
onUpdate:
|
|
56
|
-
},
|
|
67
|
+
onUpdate: _this2.handleUpdate
|
|
68
|
+
}, _this2.props.studentName));
|
|
57
69
|
});
|
|
58
|
-
_defineProperty(
|
|
59
|
-
if (
|
|
70
|
+
_defineProperty(_this2, "renderHeading", function () {
|
|
71
|
+
if (_this2.props.atteqApplyChangesToCurrentQuizAttemptsEnabled) {
|
|
60
72
|
return /*#__PURE__*/React.createElement(Heading, null, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Course Accommodation')), t('Course Accommodation'));
|
|
61
73
|
}
|
|
62
|
-
var
|
|
63
|
-
mountNode =
|
|
64
|
-
studentName =
|
|
74
|
+
var _this2$props = _this2.props,
|
|
75
|
+
mountNode = _this2$props.mountNode,
|
|
76
|
+
studentName = _this2$props.studentName;
|
|
65
77
|
if (!studentName) {
|
|
66
78
|
return;
|
|
67
79
|
}
|
|
68
|
-
return /*#__PURE__*/React.createElement(Heading, null, /*#__PURE__*/React.createElement(ScreenReaderContent, null, studentName),
|
|
80
|
+
return /*#__PURE__*/React.createElement(Heading, null, /*#__PURE__*/React.createElement(ScreenReaderContent, null, studentName), _this2.state.isTruncated ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
69
81
|
renderTip: studentName,
|
|
70
82
|
mountNode: mountNode
|
|
71
|
-
},
|
|
83
|
+
}, _this2.renderName) : _this2.renderName());
|
|
72
84
|
});
|
|
73
|
-
_defineProperty(
|
|
74
|
-
|
|
75
|
-
|
|
85
|
+
_defineProperty(_this2, "saveAction", function () {
|
|
86
|
+
_this2.props.onSubmit && _this2.props.onSubmit();
|
|
87
|
+
_this2.props.closeModal();
|
|
76
88
|
});
|
|
77
|
-
_defineProperty(
|
|
78
|
-
|
|
79
|
-
|
|
89
|
+
_defineProperty(_this2, "cancelAction", function () {
|
|
90
|
+
_this2.props.onDismiss && _this2.props.onDismiss();
|
|
91
|
+
_this2.props.closeModal();
|
|
80
92
|
});
|
|
81
|
-
return
|
|
93
|
+
return _this2;
|
|
82
94
|
}
|
|
83
95
|
_inherits(AccommodationModal, _Component);
|
|
84
96
|
return _createClass(AccommodationModal, [{
|
|
@@ -92,11 +104,11 @@ export var AccommodationModal = /*#__PURE__*/function (_Component) {
|
|
|
92
104
|
}, {
|
|
93
105
|
key: "render",
|
|
94
106
|
value: function render() {
|
|
95
|
-
var _this$
|
|
96
|
-
open = _this$
|
|
97
|
-
closeModal = _this$
|
|
98
|
-
mountNode = _this$
|
|
99
|
-
children = _this$
|
|
107
|
+
var _this$props = this.props,
|
|
108
|
+
open = _this$props.open,
|
|
109
|
+
closeModal = _this$props.closeModal,
|
|
110
|
+
mountNode = _this$props.mountNode,
|
|
111
|
+
children = _this$props.children;
|
|
100
112
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
101
113
|
open: open,
|
|
102
114
|
label: this.labelText(),
|
|
@@ -4,8 +4,20 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
|
|
4
4
|
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
|
-
function _callSuper(
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(_this, derived, args) {
|
|
8
|
+
function isNativeReflectConstruct() {
|
|
9
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
10
|
+
if (Reflect.construct.sham) return false;
|
|
11
|
+
if (typeof Proxy === "function") return true;
|
|
12
|
+
try {
|
|
13
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
14
|
+
} catch (e) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
derived = _getPrototypeOf(derived);
|
|
19
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
20
|
+
}
|
|
9
21
|
import React, { Component } from 'react';
|
|
10
22
|
import PropTypes from 'prop-types';
|
|
11
23
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
@@ -1,42 +1,18 @@
|
|
|
1
1
|
import { Table } from '@instructure/ui-table';
|
|
2
2
|
import { Text } from '@instructure/ui-text';
|
|
3
|
-
import { IconButton } from '@instructure/ui-buttons';
|
|
4
3
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
5
4
|
import React from 'react';
|
|
6
|
-
import { SessionBreachAlert } from './SessionBreachAlert';
|
|
7
|
-
import { IconInfoLine } from '@instructure/ui-icons';
|
|
8
|
-
import { Tooltip } from '@instructure/ui-tooltip';
|
|
9
5
|
export var EventDetails = function EventDetails(_ref) {
|
|
10
6
|
var currentEventData = _ref.currentEventData,
|
|
11
|
-
validationErrors = _ref.validationErrors,
|
|
12
7
|
_ref$answerValue = _ref.answerValue,
|
|
13
8
|
answerValue = _ref$answerValue === void 0 ? null : _ref$answerValue;
|
|
14
9
|
var eventTimeString = "".concat(t('Event time'), ": ").concat(currentEventData.eventDate);
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
renderTip: message,
|
|
18
|
-
placement: "end",
|
|
19
|
-
on: ['click', 'hover', 'focus']
|
|
20
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
21
|
-
screenReaderLabel: message,
|
|
22
|
-
renderIcon: IconInfoLine,
|
|
23
|
-
withBackground: false,
|
|
24
|
-
withBorder: false
|
|
25
|
-
}));
|
|
26
|
-
};
|
|
27
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, validationErrors.isBreach && /*#__PURE__*/React.createElement(SessionBreachAlert, null), /*#__PURE__*/React.createElement("h4", null, eventTimeString), /*#__PURE__*/React.createElement(Table, {
|
|
10
|
+
var multipleSessionAttempt = currentEventData.multipleSessionAttempt;
|
|
11
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, multipleSessionAttempt && /*#__PURE__*/React.createElement(Text, null, t('Submission attempt started from a different device')), /*#__PURE__*/React.createElement("h4", null, eventTimeString), /*#__PURE__*/React.createElement(Table, {
|
|
28
12
|
caption: t('System details')
|
|
29
13
|
}, /*#__PURE__*/React.createElement(Table.Head, null, /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.ColHeader, {
|
|
30
14
|
id: "system-details-attribute"
|
|
31
15
|
}, t('Attribute')), /*#__PURE__*/React.createElement(Table.ColHeader, {
|
|
32
16
|
id: "system-details-value"
|
|
33
|
-
}, t('Value')))), /*#__PURE__*/React.createElement(Table.Body, null, currentEventData.ipAddress && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Client IP address')), /*#__PURE__*/React.createElement(Table.Cell, null, /*#__PURE__*/React.createElement(
|
|
34
|
-
color: validationErrors.ipAddress ? 'danger' : 'primary'
|
|
35
|
-
}, currentEventData.ipAddress), validationErrors.ipAddress && renderTooltip(validationErrors.ipAddress))), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Browser session ID')), /*#__PURE__*/React.createElement(Table.Cell, null, /*#__PURE__*/React.createElement(Text, {
|
|
36
|
-
color: validationErrors.browserSessionID ? 'danger' : 'primary'
|
|
37
|
-
}, currentEventData.browserSessionID), validationErrors.browserSessionID && renderTooltip(validationErrors.browserSessionID))), currentEventData.browserString && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Browser')), /*#__PURE__*/React.createElement(Table.Cell, null, /*#__PURE__*/React.createElement(Text, {
|
|
38
|
-
color: validationErrors.browserString ? 'danger' : 'primary'
|
|
39
|
-
}, currentEventData.browserString), validationErrors.browserString && renderTooltip(validationErrors.browserString))), currentEventData.userPlatform && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Operating System')), /*#__PURE__*/React.createElement(Table.Cell, null, /*#__PURE__*/React.createElement(Text, {
|
|
40
|
-
color: validationErrors.userPlatform ? 'danger' : 'primary'
|
|
41
|
-
}, currentEventData.userPlatform), validationErrors.userPlatform && renderTooltip(validationErrors.userPlatform))), answerValue && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Answer value')), /*#__PURE__*/React.createElement(Table.Cell, null, answerValue)))));
|
|
17
|
+
}, t('Value')))), /*#__PURE__*/React.createElement(Table.Body, null, currentEventData.ipAddress && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Client IP address')), /*#__PURE__*/React.createElement(Table.Cell, null, currentEventData.ipAddress)), /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Browser session ID')), /*#__PURE__*/React.createElement(Table.Cell, null, currentEventData.browserSessionID)), currentEventData.browserString && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Browser')), /*#__PURE__*/React.createElement(Table.Cell, null, currentEventData.browserString)), currentEventData.userPlatform && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Operating System')), /*#__PURE__*/React.createElement(Table.Cell, null, currentEventData.userPlatform)), answerValue && /*#__PURE__*/React.createElement(Table.Row, null, /*#__PURE__*/React.createElement(Table.Cell, null, t('Answer value')), /*#__PURE__*/React.createElement(Table.Cell, null, answerValue)))));
|
|
42
18
|
};
|
|
@@ -6,11 +6,23 @@ 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
|
var _dec, _class, _ModerateTable;
|
|
9
|
-
function _createForOfIteratorHelper(
|
|
10
|
-
function _unsupportedIterableToArray(
|
|
11
|
-
function _arrayLikeToArray(
|
|
12
|
-
function _callSuper(
|
|
13
|
-
function
|
|
9
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
|
+
function _callSuper(_this, derived, args) {
|
|
13
|
+
function isNativeReflectConstruct() {
|
|
14
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
15
|
+
if (Reflect.construct.sham) return false;
|
|
16
|
+
if (typeof Proxy === "function") return true;
|
|
17
|
+
try {
|
|
18
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
19
|
+
} catch (e) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
derived = _getPrototypeOf(derived);
|
|
24
|
+
return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
|
|
25
|
+
}
|
|
14
26
|
/** @jsx jsx */
|
|
15
27
|
import { Component } from 'react';
|
|
16
28
|
import PropTypes from 'prop-types';
|
|
@@ -35,13 +47,13 @@ import { Flex, OUTSTANDING_QUIZZES_MODAL, withStyleOverrides } from '@instructur
|
|
|
35
47
|
import { chunk } from 'lodash';
|
|
36
48
|
export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ModerateTable = /*#__PURE__*/function (_Component) {
|
|
37
49
|
function ModerateTable() {
|
|
38
|
-
var
|
|
50
|
+
var _this2;
|
|
39
51
|
_classCallCheck(this, ModerateTable);
|
|
40
52
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
41
53
|
args[_key] = arguments[_key];
|
|
42
54
|
}
|
|
43
|
-
|
|
44
|
-
_defineProperty(
|
|
55
|
+
_this2 = _callSuper(this, ModerateTable, [].concat(args));
|
|
56
|
+
_defineProperty(_this2, "state", {
|
|
45
57
|
displayScoreAsPercentage: true,
|
|
46
58
|
// To support voiceover when the table changes
|
|
47
59
|
moderatePanelIterations: 0,
|
|
@@ -49,13 +61,13 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
49
61
|
// To display the spinner while manually submitted quiz sessions are being graded
|
|
50
62
|
isWaiting: false
|
|
51
63
|
});
|
|
52
|
-
_defineProperty(
|
|
53
|
-
var
|
|
54
|
-
getQuizSessions =
|
|
55
|
-
quizId =
|
|
56
|
-
inProgressData =
|
|
57
|
-
tableData =
|
|
58
|
-
var quizSessionIds = _toConsumableArray(new Set([].concat(_toConsumableArray(
|
|
64
|
+
_defineProperty(_this2, "fetchData", function () {
|
|
65
|
+
var _this2$props = _this2.props,
|
|
66
|
+
getQuizSessions = _this2$props.getQuizSessions,
|
|
67
|
+
quizId = _this2$props.quizId,
|
|
68
|
+
inProgressData = _this2$props.inProgressData,
|
|
69
|
+
tableData = _this2$props.tableData;
|
|
70
|
+
var quizSessionIds = _toConsumableArray(new Set([].concat(_toConsumableArray(_this2.quizSessionIds(inProgressData)), _toConsumableArray(_this2.quizSessionIds(tableData)))));
|
|
59
71
|
|
|
60
72
|
// NOTE: The consumer provided no quizSessionIds. Don't fetch
|
|
61
73
|
if (!quizSessionIds.length) return;
|
|
@@ -65,21 +77,21 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
65
77
|
});
|
|
66
78
|
});
|
|
67
79
|
});
|
|
68
|
-
_defineProperty(
|
|
69
|
-
|
|
80
|
+
_defineProperty(_this2, "onModerateButtonClick", function (data) {
|
|
81
|
+
_this2.setState({
|
|
70
82
|
selectedStudent: data.id
|
|
71
83
|
});
|
|
72
|
-
|
|
73
|
-
|
|
84
|
+
_this2.props.onOpenTray(data);
|
|
85
|
+
_this2.props.openTray(data);
|
|
74
86
|
});
|
|
75
|
-
_defineProperty(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
moderatePanelIterations:
|
|
87
|
+
_defineProperty(_this2, "onCloseTray", function () {
|
|
88
|
+
_this2.props.onCloseTray();
|
|
89
|
+
_this2.setState({
|
|
90
|
+
moderatePanelIterations: _this2.state.moderatePanelIterations + 1
|
|
79
91
|
});
|
|
80
92
|
});
|
|
81
|
-
_defineProperty(
|
|
82
|
-
var _iterator = _createForOfIteratorHelper(
|
|
93
|
+
_defineProperty(_this2, "sessionsStillAutograding", function (quizzesToSubmit) {
|
|
94
|
+
var _iterator = _createForOfIteratorHelper(_this2.props.quizSessionsData),
|
|
83
95
|
_step;
|
|
84
96
|
try {
|
|
85
97
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -95,42 +107,42 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
95
107
|
}
|
|
96
108
|
return false;
|
|
97
109
|
});
|
|
98
|
-
_defineProperty(
|
|
99
|
-
if (
|
|
100
|
-
|
|
110
|
+
_defineProperty(_this2, "checkAutogradingStatus", function (submittedQuizSessions) {
|
|
111
|
+
if (_this2.sessionsStillAutograding(submittedQuizSessions)) {
|
|
112
|
+
_this2.pollAutogradingStatus(submittedQuizSessions);
|
|
101
113
|
} else {
|
|
102
|
-
|
|
114
|
+
_this2.setState({
|
|
103
115
|
isWaiting: false
|
|
104
116
|
});
|
|
105
|
-
|
|
117
|
+
_this2.props.addSuccess(t('Manual submission was successful.'));
|
|
106
118
|
}
|
|
107
119
|
});
|
|
108
|
-
_defineProperty(
|
|
109
|
-
|
|
120
|
+
_defineProperty(_this2, "pollAutogradingStatus", function (submittedQuizSessions) {
|
|
121
|
+
_this2.fetchData();
|
|
110
122
|
setTimeout(function () {
|
|
111
|
-
|
|
123
|
+
_this2.checkAutogradingStatus(submittedQuizSessions);
|
|
112
124
|
}, 1000);
|
|
113
125
|
});
|
|
114
|
-
_defineProperty(
|
|
115
|
-
|
|
126
|
+
_defineProperty(_this2, "handleSubmissionAndPoll", function (submittedQuizSessions) {
|
|
127
|
+
_this2.setState({
|
|
116
128
|
isWaiting: true
|
|
117
129
|
});
|
|
118
|
-
|
|
130
|
+
_this2.pollAutogradingStatus(submittedQuizSessions);
|
|
119
131
|
});
|
|
120
|
-
_defineProperty(
|
|
121
|
-
|
|
132
|
+
_defineProperty(_this2, "handleScoreToggle", function () {
|
|
133
|
+
_this2.setState(function (prevState) {
|
|
122
134
|
return {
|
|
123
135
|
displayScoreAsPercentage: !prevState.displayScoreAsPercentage
|
|
124
136
|
};
|
|
125
137
|
});
|
|
126
138
|
});
|
|
127
|
-
_defineProperty(
|
|
128
|
-
return
|
|
139
|
+
_defineProperty(_this2, "scoreToggleScreenreaderMessage", function () {
|
|
140
|
+
return _this2.state.displayScoreAsPercentage ? t('Toggle scores to raw points') : t('Toggle scores to percentages');
|
|
129
141
|
});
|
|
130
|
-
_defineProperty(
|
|
131
|
-
|
|
142
|
+
_defineProperty(_this2, "openModalOnClick", function () {
|
|
143
|
+
_this2.props.openModal(OUTSTANDING_QUIZZES_MODAL);
|
|
132
144
|
});
|
|
133
|
-
return
|
|
145
|
+
return _this2;
|
|
134
146
|
}
|
|
135
147
|
_inherits(ModerateTable, _Component);
|
|
136
148
|
return _createClass(ModerateTable, [{
|
|
@@ -140,9 +152,9 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
140
152
|
displayScoreAsPercentage: this.state.displayScoreAsPercentage
|
|
141
153
|
});
|
|
142
154
|
this.fetchData();
|
|
143
|
-
var _this$
|
|
144
|
-
hasSessionTimeLimit = _this$
|
|
145
|
-
sessionTimeLimitInSeconds = _this$
|
|
155
|
+
var _this$props = this.props,
|
|
156
|
+
hasSessionTimeLimit = _this$props.hasSessionTimeLimit,
|
|
157
|
+
sessionTimeLimitInSeconds = _this$props.sessionTimeLimitInSeconds;
|
|
146
158
|
this.props.sendSessionTimeLimit({
|
|
147
159
|
hasSessionTimeLimit: hasSessionTimeLimit,
|
|
148
160
|
sessionTimeLimitInSeconds: sessionTimeLimitInSeconds
|
|
@@ -154,9 +166,9 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
154
166
|
this.props.makeStyles({
|
|
155
167
|
displayScoreAsPercentage: this.state.displayScoreAsPercentage
|
|
156
168
|
});
|
|
157
|
-
var _this$
|
|
158
|
-
hasSessionTimeLimit = _this$
|
|
159
|
-
sessionTimeLimitInSeconds = _this$
|
|
169
|
+
var _this$props2 = this.props,
|
|
170
|
+
hasSessionTimeLimit = _this$props2.hasSessionTimeLimit,
|
|
171
|
+
sessionTimeLimitInSeconds = _this$props2.sessionTimeLimitInSeconds;
|
|
160
172
|
if (prevProps.hasSessionTimeLimit !== hasSessionTimeLimit || prevProps.sessionTimeLimitInSeconds !== sessionTimeLimitInSeconds) {
|
|
161
173
|
this.props.sendSessionTimeLimit({
|
|
162
174
|
hasSessionTimeLimit: hasSessionTimeLimit,
|
|
@@ -192,24 +204,24 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
192
204
|
// =============
|
|
193
205
|
|
|
194
206
|
function renderTableRows() {
|
|
195
|
-
var
|
|
196
|
-
var _this$
|
|
197
|
-
onModerateLogClick = _this$
|
|
198
|
-
onResultsLinkClick = _this$
|
|
199
|
-
shouldRenderModerateButton = _this$
|
|
207
|
+
var _this3 = this;
|
|
208
|
+
var _this$props3 = this.props,
|
|
209
|
+
onModerateLogClick = _this$props3.onModerateLogClick,
|
|
210
|
+
onResultsLinkClick = _this$props3.onResultsLinkClick,
|
|
211
|
+
shouldRenderModerateButton = _this$props3.shouldRenderModerateButton;
|
|
200
212
|
return this.props.tableData.map(function (rowData) {
|
|
201
213
|
var id = rowData.id;
|
|
202
214
|
return jsx(ModerateTableRow, {
|
|
203
|
-
anonymousGrading:
|
|
215
|
+
anonymousGrading: _this3.props.anonymousGrading,
|
|
204
216
|
onResultsLinkClick: onResultsLinkClick,
|
|
205
|
-
onAccommodationsClick:
|
|
206
|
-
key: "".concat(id, "-").concat(
|
|
207
|
-
onModerateButtonClick:
|
|
217
|
+
onAccommodationsClick: _this3.props.onAccommodationsClick,
|
|
218
|
+
key: "".concat(id, "-").concat(_this3.state.moderatePanelIterations),
|
|
219
|
+
onModerateButtonClick: _this3.onModerateButtonClick,
|
|
208
220
|
onModerateLogClick: onModerateLogClick,
|
|
209
221
|
rowData: rowData,
|
|
210
222
|
shouldRenderModerateButton: shouldRenderModerateButton,
|
|
211
|
-
focusTarget:
|
|
212
|
-
displayScoreAsPercentage:
|
|
223
|
+
focusTarget: _this3.state.selectedStudent,
|
|
224
|
+
displayScoreAsPercentage: _this3.state.displayScoreAsPercentage
|
|
213
225
|
});
|
|
214
226
|
});
|
|
215
227
|
}
|
|
@@ -239,7 +251,7 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
239
251
|
}, {
|
|
240
252
|
key: "renderAlertContent",
|
|
241
253
|
value: function renderAlertContent(outstandingAttemptsCount) {
|
|
242
|
-
var
|
|
254
|
+
var _this4 = this;
|
|
243
255
|
return jsx("div", null, jsx(IfFeature, {
|
|
244
256
|
name: "manual_submission"
|
|
245
257
|
}, jsx(Flex, null, jsx(Flex.Item, null, jsx(IconInfoLine, null)), jsx(Flex.Item, {
|
|
@@ -250,7 +262,7 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
250
262
|
var children = _ref2.children;
|
|
251
263
|
return jsx(Link, {
|
|
252
264
|
key: "0",
|
|
253
|
-
onClick:
|
|
265
|
+
onClick: _this4.openModalOnClick,
|
|
254
266
|
"data-automation": "sdk-outstanding-quizzes-modal-open"
|
|
255
267
|
}, children);
|
|
256
268
|
}
|
|
@@ -308,10 +320,10 @@ export var ModerateTable = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
308
320
|
}, {
|
|
309
321
|
key: "renderContent",
|
|
310
322
|
value: function renderContent() {
|
|
311
|
-
var _this$
|
|
312
|
-
isFetching = _this$
|
|
313
|
-
tableData = _this$
|
|
314
|
-
emptyMessage = _this$
|
|
323
|
+
var _this$props4 = this.props,
|
|
324
|
+
isFetching = _this$props4.isFetching,
|
|
325
|
+
tableData = _this$props4.tableData,
|
|
326
|
+
emptyMessage = _this$props4.emptyMessage;
|
|
315
327
|
if (isFetching || this.state.isWaiting) return jsx(Spinner, null);
|
|
316
328
|
if (tableData.length) return this.renderTable();
|
|
317
329
|
return jsx("span", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4
4
|
var generateStyle = function generateStyle(componentTheme, props, state) {
|
|
5
5
|
return {
|
|
6
6
|
emptyText: {
|