@instructure/quiz-core 22.8.0 → 22.9.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 +14 -2
- 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/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 +16 -4
- 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/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
|
@@ -26,62 +26,74 @@ var _uiText = require("@instructure/ui-text");
|
|
|
26
26
|
var _quizCommon = require("@instructure/quiz-common");
|
|
27
27
|
var _dec, _class, _ChoiceTypeTable;
|
|
28
28
|
/** @jsx jsx */
|
|
29
|
-
function _createForOfIteratorHelper(
|
|
30
|
-
function _unsupportedIterableToArray(
|
|
31
|
-
function _arrayLikeToArray(
|
|
32
|
-
function _callSuper(
|
|
33
|
-
function
|
|
29
|
+
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; } } }; }
|
|
30
|
+
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); }
|
|
31
|
+
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; }
|
|
32
|
+
function _callSuper(_this, derived, args) {
|
|
33
|
+
function isNativeReflectConstruct() {
|
|
34
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
35
|
+
if (Reflect.construct.sham) return false;
|
|
36
|
+
if (typeof Proxy === "function") return true;
|
|
37
|
+
try {
|
|
38
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
39
|
+
} catch (e) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
derived = (0, _getPrototypeOf2["default"])(derived);
|
|
44
|
+
return (0, _possibleConstructorReturn2["default"])(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf2["default"])(_this).constructor) : derived.apply(_this, args));
|
|
45
|
+
}
|
|
34
46
|
var correctAttribute = 'correct';
|
|
35
47
|
var incorrectAttribute = 'incorrect';
|
|
36
48
|
var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_ChoiceTypeTable = /*#__PURE__*/function (_Component) {
|
|
37
49
|
function ChoiceTypeTable() {
|
|
38
|
-
var
|
|
50
|
+
var _this2;
|
|
39
51
|
(0, _classCallCheck2["default"])(this, ChoiceTypeTable);
|
|
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
|
-
(0, _defineProperty3["default"])(
|
|
45
|
-
(0, _defineProperty3["default"])(
|
|
46
|
-
var iconStyles = [
|
|
55
|
+
_this2 = _callSuper(this, ChoiceTypeTable, [].concat(args));
|
|
56
|
+
(0, _defineProperty3["default"])(_this2, "rowStyleMap", (0, _defineProperty3["default"])((0, _defineProperty3["default"])({}, correctAttribute, _this2.props.styles.correctRow), incorrectAttribute, _this2.props.styles.incorrectRow));
|
|
57
|
+
(0, _defineProperty3["default"])(_this2, "renderIcon", function (correct) {
|
|
58
|
+
var iconStyles = [_this2.props.styles.iconWrapper, correct ? _this2.props.styles.iconCorrect : {}];
|
|
47
59
|
return (0, _emotion.jsx)("div", {
|
|
48
60
|
css: iconStyles
|
|
49
61
|
}, correct ? (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null) : (0, _emotion.jsx)(_uiIcons.IconXSolid, null));
|
|
50
62
|
});
|
|
51
|
-
(0, _defineProperty3["default"])(
|
|
63
|
+
(0, _defineProperty3["default"])(_this2, "renderFirstCell", function (content) {
|
|
52
64
|
return (0, _emotion.jsx)("div", {
|
|
53
|
-
css:
|
|
65
|
+
css: _this2.props.styles.firstTextContainer
|
|
54
66
|
}, content);
|
|
55
67
|
});
|
|
56
|
-
(0, _defineProperty3["default"])(
|
|
68
|
+
(0, _defineProperty3["default"])(_this2, "renderCell", function (content) {
|
|
57
69
|
return (0, _emotion.jsx)("div", {
|
|
58
|
-
css:
|
|
70
|
+
css: _this2.props.styles.textContainer
|
|
59
71
|
}, content);
|
|
60
72
|
});
|
|
61
|
-
(0, _defineProperty3["default"])(
|
|
73
|
+
(0, _defineProperty3["default"])(_this2, "answerLabel", function (correct) {
|
|
62
74
|
return correct ? (0, _formatMessage["default"])('Correct answer') : (0, _formatMessage["default"])('Incorrect answer');
|
|
63
75
|
});
|
|
64
|
-
(0, _defineProperty3["default"])(
|
|
76
|
+
(0, _defineProperty3["default"])(_this2, "extractChoiceText", function (choiceBody, correct) {
|
|
65
77
|
var text = (0, _quizInteractions.extractTextFromHtml)(choiceBody);
|
|
66
78
|
if (text.trim().length > 0) return text;
|
|
67
|
-
return
|
|
79
|
+
return _this2.answerLabel(correct);
|
|
68
80
|
});
|
|
69
|
-
(0, _defineProperty3["default"])(
|
|
81
|
+
(0, _defineProperty3["default"])(_this2, "nextChoiceIsCorrect", function (choices, choiceIndex) {
|
|
70
82
|
var _choices$choiceIndex;
|
|
71
83
|
return (_choices$choiceIndex = choices[choiceIndex]) === null || _choices$choiceIndex === void 0 ? void 0 : _choices$choiceIndex.correct;
|
|
72
84
|
});
|
|
73
|
-
(0, _defineProperty3["default"])(
|
|
74
|
-
var choices =
|
|
75
|
-
if (
|
|
85
|
+
(0, _defineProperty3["default"])(_this2, "getDataIconAttribute", function (correct, choiceIndex) {
|
|
86
|
+
var choices = _this2.props.choices;
|
|
87
|
+
if (_this2.nextChoiceIsCorrect(choices, choiceIndex + 1) && !correct) {
|
|
76
88
|
return '';
|
|
77
89
|
}
|
|
78
90
|
return correct ? correctAttribute : incorrectAttribute;
|
|
79
91
|
});
|
|
80
|
-
(0, _defineProperty3["default"])(
|
|
92
|
+
(0, _defineProperty3["default"])(_this2, "renderRow", function (choice, choiceIndex) {
|
|
81
93
|
var correct = choice.correct,
|
|
82
94
|
body = choice.body;
|
|
83
|
-
var extractedBody =
|
|
84
|
-
var screenReaderContent = "".concat(
|
|
95
|
+
var extractedBody = _this2.extractChoiceText(body, correct);
|
|
96
|
+
var screenReaderContent = "".concat(_this2.answerLabel(correct), ": ").concat(extractedBody);
|
|
85
97
|
return (0, _emotion.jsx)(_uiTable.Table.Row, {
|
|
86
98
|
key: choiceIndex
|
|
87
99
|
}, (0, _emotion.jsx)(_uiTable.Table.RowHeader, {
|
|
@@ -96,32 +108,32 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _quizCommon.withStyl
|
|
|
96
108
|
textAlign: "center",
|
|
97
109
|
align: "stretch"
|
|
98
110
|
}, (0, _emotion.jsx)("div", {
|
|
99
|
-
"data-icon":
|
|
100
|
-
css:
|
|
101
|
-
},
|
|
111
|
+
"data-icon": _this2.getDataIconAttribute(correct, choiceIndex),
|
|
112
|
+
css: _this2.props.styles.iconWrapper
|
|
113
|
+
}, _this2.renderIcon(correct))), (0, _emotion.jsx)(_quizCommon.Flex.Item, {
|
|
102
114
|
shouldShrink: true,
|
|
103
115
|
shouldGrow: true
|
|
104
|
-
}, (0, _emotion.jsx)(_uiText.Text, null,
|
|
116
|
+
}, (0, _emotion.jsx)(_uiText.Text, null, _this2.renderFirstCell(extractedBody))))), (0, _emotion.jsx)(_uiTable.Table.Cell, {
|
|
105
117
|
themeOverride: {
|
|
106
118
|
padding: '0'
|
|
107
119
|
}
|
|
108
|
-
},
|
|
120
|
+
}, _this2.renderCell(choice.count)), (0, _emotion.jsx)(_uiTable.Table.Cell, {
|
|
109
121
|
themeOverride: {
|
|
110
122
|
padding: '0'
|
|
111
123
|
},
|
|
112
124
|
textAlign: "center"
|
|
113
|
-
},
|
|
125
|
+
}, _this2.renderCell("".concat(choice.percentage, "%"))));
|
|
114
126
|
});
|
|
115
|
-
(0, _defineProperty3["default"])(
|
|
116
|
-
|
|
117
|
-
|
|
127
|
+
(0, _defineProperty3["default"])(_this2, "componentDidMount", function () {
|
|
128
|
+
_this2.applyStylesToTable();
|
|
129
|
+
_this2.props.makeStyles();
|
|
118
130
|
});
|
|
119
|
-
(0, _defineProperty3["default"])(
|
|
120
|
-
|
|
131
|
+
(0, _defineProperty3["default"])(_this2, "componentDidUpdate", function () {
|
|
132
|
+
_this2.props.makeStyles();
|
|
121
133
|
});
|
|
122
|
-
(0, _defineProperty3["default"])(
|
|
123
|
-
if (
|
|
124
|
-
var _iterator = _createForOfIteratorHelper(
|
|
134
|
+
(0, _defineProperty3["default"])(_this2, "applyStylesToTable", function () {
|
|
135
|
+
if (_this2.tableRef) {
|
|
136
|
+
var _iterator = _createForOfIteratorHelper(_this2.tableRef.rows),
|
|
125
137
|
_step;
|
|
126
138
|
try {
|
|
127
139
|
var _loop = function _loop() {
|
|
@@ -132,17 +144,17 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _quizCommon.withStyl
|
|
|
132
144
|
var th = row.querySelectorAll('th');
|
|
133
145
|
if (icon) {
|
|
134
146
|
td.forEach(function (cell) {
|
|
135
|
-
cell.setAttribute('style', (0, _emotion.css)(
|
|
147
|
+
cell.setAttribute('style', (0, _emotion.css)(_this2.rowStyleMap[icon].td).styles);
|
|
136
148
|
});
|
|
137
149
|
th.forEach(function (cell) {
|
|
138
|
-
cell.setAttribute('style', (0, _emotion.css)(
|
|
150
|
+
cell.setAttribute('style', (0, _emotion.css)(_this2.rowStyleMap[icon].th).styles);
|
|
139
151
|
});
|
|
140
152
|
if (icon === correctAttribute) {
|
|
141
|
-
row.querySelector('th:first-child').setAttribute('style', (0, _emotion.css)(
|
|
142
|
-
row.querySelector('td:last-child').setAttribute('style', (0, _emotion.css)(
|
|
153
|
+
row.querySelector('th:first-child').setAttribute('style', (0, _emotion.css)(_this2.props.styles.correctRow.thFirstChild).styles);
|
|
154
|
+
row.querySelector('td:last-child').setAttribute('style', (0, _emotion.css)(_this2.props.styles.correctRow.tdLastChild).styles);
|
|
143
155
|
}
|
|
144
156
|
}
|
|
145
|
-
row.setAttribute('style', (0, _emotion.css)(
|
|
157
|
+
row.setAttribute('style', (0, _emotion.css)(_this2.rowStyleMap[icon]).styles);
|
|
146
158
|
};
|
|
147
159
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
148
160
|
_loop();
|
|
@@ -154,22 +166,22 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _quizCommon.withStyl
|
|
|
154
166
|
}
|
|
155
167
|
}
|
|
156
168
|
});
|
|
157
|
-
(0, _defineProperty3["default"])(
|
|
158
|
-
return
|
|
169
|
+
(0, _defineProperty3["default"])(_this2, "setTableRef", function (el) {
|
|
170
|
+
return _this2.tableRef = el;
|
|
159
171
|
});
|
|
160
|
-
(0, _defineProperty3["default"])(
|
|
161
|
-
var
|
|
162
|
-
choices =
|
|
163
|
-
itemId =
|
|
172
|
+
(0, _defineProperty3["default"])(_this2, "render", function () {
|
|
173
|
+
var _this2$props = _this2.props,
|
|
174
|
+
choices = _this2$props.choices,
|
|
175
|
+
itemId = _this2$props.itemId;
|
|
164
176
|
var answerHeaderId = "answer-frequency-summary-answer-".concat(itemId);
|
|
165
177
|
var respondentsHeaderId = "answer-frequency-summary-respondents-".concat(itemId);
|
|
166
178
|
var percentageHeaderId = "answer-frequency-summary-percentage-".concat(itemId);
|
|
167
|
-
var containerStyles = [
|
|
179
|
+
var containerStyles = [_this2.props.styles.tableContainer, !_this2.nextChoiceIsCorrect(choices, 0) ? _this2.props.styles.headerGrayBottomBorder : {}];
|
|
168
180
|
return (0, _emotion.jsx)("div", {
|
|
169
181
|
css: containerStyles
|
|
170
182
|
}, (0, _emotion.jsx)(_uiTable.Table, {
|
|
171
183
|
caption: (0, _formatMessage["default"])('Answer Frequency Summary'),
|
|
172
|
-
elementRef:
|
|
184
|
+
elementRef: _this2.setTableRef
|
|
173
185
|
}, (0, _emotion.jsx)(_uiTable.Table.Head, null, (0, _emotion.jsx)(_uiTable.Table.Row, null, (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
174
186
|
id: answerHeaderId,
|
|
175
187
|
height: "47px",
|
|
@@ -184,9 +196,9 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _quizCommon.withStyl
|
|
|
184
196
|
id: percentageHeaderId,
|
|
185
197
|
height: "47px",
|
|
186
198
|
textAlign: "center"
|
|
187
|
-
}, (0, _formatMessage["default"])('Percentage')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, choices.map(
|
|
199
|
+
}, (0, _formatMessage["default"])('Percentage')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, choices.map(_this2.renderRow))));
|
|
188
200
|
});
|
|
189
|
-
return
|
|
201
|
+
return _this2;
|
|
190
202
|
}
|
|
191
203
|
(0, _inherits2["default"])(ChoiceTypeTable, _Component);
|
|
192
204
|
return (0, _createClass2["default"])(ChoiceTypeTable);
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
function ownKeys(
|
|
10
|
-
function _objectSpread(
|
|
9
|
+
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; }
|
|
10
|
+
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) { (0, _defineProperty2["default"])(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; }
|
|
11
11
|
var generateStyle = function generateStyle(componentTheme, props) {
|
|
12
12
|
var tableContainerStyles = props.tableContainerStyles || {
|
|
13
13
|
width: 'calc(25% + 350px)',
|
|
@@ -22,26 +22,38 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
22
22
|
var _quizCommon = require("@instructure/quiz-common");
|
|
23
23
|
var _dec, _class, _ExpandableCard;
|
|
24
24
|
/** @jsx jsx */
|
|
25
|
-
function _callSuper(
|
|
26
|
-
function
|
|
25
|
+
function _callSuper(_this, derived, args) {
|
|
26
|
+
function isNativeReflectConstruct() {
|
|
27
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
28
|
+
if (Reflect.construct.sham) return false;
|
|
29
|
+
if (typeof Proxy === "function") return true;
|
|
30
|
+
try {
|
|
31
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
derived = (0, _getPrototypeOf2["default"])(derived);
|
|
37
|
+
return (0, _possibleConstructorReturn2["default"])(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf2["default"])(_this).constructor) : derived.apply(_this, args));
|
|
38
|
+
}
|
|
27
39
|
var ExpandableCard = exports.ExpandableCard = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_ExpandableCard = /*#__PURE__*/function (_Component) {
|
|
28
40
|
function ExpandableCard() {
|
|
29
|
-
var
|
|
41
|
+
var _this2;
|
|
30
42
|
(0, _classCallCheck2["default"])(this, ExpandableCard);
|
|
31
43
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
44
|
args[_key] = arguments[_key];
|
|
33
45
|
}
|
|
34
|
-
|
|
35
|
-
(0, _defineProperty2["default"])(
|
|
46
|
+
_this2 = _callSuper(this, ExpandableCard, [].concat(args));
|
|
47
|
+
(0, _defineProperty2["default"])(_this2, "state", {
|
|
36
48
|
bodyExpanded: false
|
|
37
49
|
});
|
|
38
|
-
(0, _defineProperty2["default"])(
|
|
39
|
-
|
|
40
|
-
bodyExpanded: !
|
|
50
|
+
(0, _defineProperty2["default"])(_this2, "handleBodyToggle", function () {
|
|
51
|
+
_this2.setState({
|
|
52
|
+
bodyExpanded: !_this2.state.bodyExpanded
|
|
41
53
|
});
|
|
42
54
|
});
|
|
43
|
-
(0, _defineProperty2["default"])(
|
|
44
|
-
var headLine =
|
|
55
|
+
(0, _defineProperty2["default"])(_this2, "renderGroup", function () {
|
|
56
|
+
var headLine = _this2.props.headLine;
|
|
45
57
|
return (0, _emotion.jsx)(_quizCommon.Flex, {
|
|
46
58
|
direction: "row",
|
|
47
59
|
alignItems: "start"
|
|
@@ -52,15 +64,15 @@ var ExpandableCard = exports.ExpandableCard = (_dec = (0, _quizCommon.withStyleO
|
|
|
52
64
|
}, headLine), (0, _emotion.jsx)(_quizCommon.Flex.Item, {
|
|
53
65
|
margin: "none none none x-small"
|
|
54
66
|
}, (0, _emotion.jsx)(_ExpandButton["default"], {
|
|
55
|
-
onClick:
|
|
56
|
-
title:
|
|
57
|
-
isExpanded:
|
|
67
|
+
onClick: _this2.handleBodyToggle,
|
|
68
|
+
title: _this2.state.bodyExpanded ? (0, _formatMessage["default"])('collapse group result') : (0, _formatMessage["default"])('expand group result'),
|
|
69
|
+
isExpanded: _this2.state.bodyExpanded
|
|
58
70
|
})));
|
|
59
71
|
});
|
|
60
|
-
(0, _defineProperty2["default"])(
|
|
61
|
-
var
|
|
62
|
-
content =
|
|
63
|
-
styles =
|
|
72
|
+
(0, _defineProperty2["default"])(_this2, "renderBody", function () {
|
|
73
|
+
var _this2$props = _this2.props,
|
|
74
|
+
content = _this2$props.content,
|
|
75
|
+
styles = _this2$props.styles;
|
|
64
76
|
var bodyContainer = styles.bodyContainer;
|
|
65
77
|
return (0, _emotion.jsx)(_quizCommon.Flex.Item, {
|
|
66
78
|
shouldShrink: true,
|
|
@@ -69,10 +81,10 @@ var ExpandableCard = exports.ExpandableCard = (_dec = (0, _quizCommon.withStyleO
|
|
|
69
81
|
css: bodyContainer
|
|
70
82
|
}, content));
|
|
71
83
|
});
|
|
72
|
-
(0, _defineProperty2["default"])(
|
|
73
|
-
var styles =
|
|
84
|
+
(0, _defineProperty2["default"])(_this2, "render", function () {
|
|
85
|
+
var styles = _this2.props.styles;
|
|
74
86
|
var groupWrapper = styles.groupWrapper;
|
|
75
|
-
var bodyExpanded =
|
|
87
|
+
var bodyExpanded = _this2.state.bodyExpanded;
|
|
76
88
|
return (0, _emotion.jsx)("div", {
|
|
77
89
|
css: groupWrapper
|
|
78
90
|
}, (0, _emotion.jsx)(_Card["default"], null, (0, _emotion.jsx)(_quizCommon.Flex, {
|
|
@@ -89,9 +101,9 @@ var ExpandableCard = exports.ExpandableCard = (_dec = (0, _quizCommon.withStyleO
|
|
|
89
101
|
shouldShrink: true,
|
|
90
102
|
padding: "x-small small x-small small",
|
|
91
103
|
overflowY: "hidden"
|
|
92
|
-
},
|
|
104
|
+
}, _this2.renderGroup()), bodyExpanded && _this2.renderBody())))));
|
|
93
105
|
});
|
|
94
|
-
return
|
|
106
|
+
return _this2;
|
|
95
107
|
}
|
|
96
108
|
(0, _inherits2["default"])(ExpandableCard, _Component);
|
|
97
109
|
return (0, _createClass2["default"])(ExpandableCard);
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js
CHANGED
|
@@ -26,63 +26,75 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
26
26
|
var _quizCommon = require("@instructure/quiz-common");
|
|
27
27
|
var _dec, _class, _MetricPopover;
|
|
28
28
|
/** @jsx jsx */
|
|
29
|
-
function _callSuper(
|
|
30
|
-
function
|
|
29
|
+
function _callSuper(_this, derived, args) {
|
|
30
|
+
function isNativeReflectConstruct() {
|
|
31
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
32
|
+
if (Reflect.construct.sham) return false;
|
|
33
|
+
if (typeof Proxy === "function") return true;
|
|
34
|
+
try {
|
|
35
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
36
|
+
} catch (e) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
derived = (0, _getPrototypeOf2["default"])(derived);
|
|
41
|
+
return (0, _possibleConstructorReturn2["default"])(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf2["default"])(_this).constructor) : derived.apply(_this, args));
|
|
42
|
+
}
|
|
31
43
|
var MetricPopover = exports.MetricPopover = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_MetricPopover = /*#__PURE__*/function (_Component) {
|
|
32
44
|
function MetricPopover() {
|
|
33
|
-
var
|
|
45
|
+
var _this2;
|
|
34
46
|
(0, _classCallCheck2["default"])(this, MetricPopover);
|
|
35
47
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36
48
|
args[_key] = arguments[_key];
|
|
37
49
|
}
|
|
38
|
-
|
|
39
|
-
(0, _defineProperty2["default"])(
|
|
50
|
+
_this2 = _callSuper(this, MetricPopover, [].concat(args));
|
|
51
|
+
(0, _defineProperty2["default"])(_this2, "state", {
|
|
40
52
|
isContentVisible: false
|
|
41
53
|
});
|
|
42
|
-
(0, _defineProperty2["default"])(
|
|
43
|
-
|
|
54
|
+
(0, _defineProperty2["default"])(_this2, "showPopover", function () {
|
|
55
|
+
_this2.setState({
|
|
44
56
|
isContentVisible: true
|
|
45
57
|
});
|
|
46
58
|
});
|
|
47
|
-
(0, _defineProperty2["default"])(
|
|
48
|
-
|
|
59
|
+
(0, _defineProperty2["default"])(_this2, "hidePopover", function () {
|
|
60
|
+
_this2.setState({
|
|
49
61
|
isContentVisible: false
|
|
50
62
|
});
|
|
51
63
|
});
|
|
52
|
-
(0, _defineProperty2["default"])(
|
|
64
|
+
(0, _defineProperty2["default"])(_this2, "render", function () {
|
|
53
65
|
return (0, _emotion.jsx)(_uiPopover.Popover, {
|
|
54
|
-
renderTrigger:
|
|
66
|
+
renderTrigger: _this2.renderPopoverTrigger(),
|
|
55
67
|
on: "click",
|
|
56
|
-
screenReaderLabel:
|
|
68
|
+
screenReaderLabel: _this2.props.screenReaderLabel,
|
|
57
69
|
shouldContainFocus: true,
|
|
58
70
|
shouldReturnFocus: true,
|
|
59
|
-
onShowContent:
|
|
60
|
-
onHideContent:
|
|
61
|
-
isShowingContent:
|
|
71
|
+
onShowContent: _this2.showPopover,
|
|
72
|
+
onHideContent: _this2.hidePopover,
|
|
73
|
+
isShowingContent: _this2.state.isContentVisible
|
|
62
74
|
}, (0, _emotion.jsx)(_uiView.View, {
|
|
63
75
|
padding: "medium",
|
|
64
76
|
as: "div",
|
|
65
77
|
display: "block",
|
|
66
78
|
width: "248px"
|
|
67
79
|
}, (0, _emotion.jsx)("div", {
|
|
68
|
-
css:
|
|
80
|
+
css: _this2.props.styles.closeIconContainer
|
|
69
81
|
}, (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
70
|
-
onClick:
|
|
82
|
+
onClick: _this2.hidePopover,
|
|
71
83
|
screenReaderLabel: (0, _formatMessage["default"])('Close popover')
|
|
72
84
|
})), (0, _emotion.jsx)("div", {
|
|
73
|
-
css:
|
|
85
|
+
css: _this2.props.styles.headerContainer
|
|
74
86
|
}, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
75
87
|
level: "h3"
|
|
76
|
-
},
|
|
88
|
+
}, _this2.props.title)), (0, _emotion.jsx)("div", null, _this2.props.subtitle && (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
77
89
|
themeOverride: {
|
|
78
90
|
h5FontWeight: 700
|
|
79
91
|
},
|
|
80
92
|
level: "h5"
|
|
81
|
-
},
|
|
93
|
+
}, _this2.props.subtitle), (0, _emotion.jsx)(_uiText.Text, {
|
|
82
94
|
size: "small"
|
|
83
|
-
},
|
|
95
|
+
}, _this2.props.body))));
|
|
84
96
|
});
|
|
85
|
-
return
|
|
97
|
+
return _this2;
|
|
86
98
|
}
|
|
87
99
|
(0, _inherits2["default"])(MetricPopover, _Component);
|
|
88
100
|
return (0, _createClass2["default"])(MetricPopover, [{
|
|
@@ -19,8 +19,20 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
19
19
|
var _quizCommon = require("@instructure/quiz-common");
|
|
20
20
|
var _dec, _class, _BlankIcon;
|
|
21
21
|
/** @jsx jsx */
|
|
22
|
-
function _callSuper(
|
|
23
|
-
function
|
|
22
|
+
function _callSuper(_this, derived, args) {
|
|
23
|
+
function isNativeReflectConstruct() {
|
|
24
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
25
|
+
if (Reflect.construct.sham) return false;
|
|
26
|
+
if (typeof Proxy === "function") return true;
|
|
27
|
+
try {
|
|
28
|
+
return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
29
|
+
} catch (e) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
derived = (0, _getPrototypeOf2["default"])(derived);
|
|
34
|
+
return (0, _possibleConstructorReturn2["default"])(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf2["default"])(_this).constructor) : derived.apply(_this, args));
|
|
35
|
+
}
|
|
24
36
|
var BlankIcon = exports.BlankIcon = (_dec = (0, _quizCommon.withStyleOverrides)(_styles["default"], _theme["default"]), _dec(_class = (_BlankIcon = /*#__PURE__*/function (_Component) {
|
|
25
37
|
function BlankIcon() {
|
|
26
38
|
(0, _classCallCheck2["default"])(this, BlankIcon);
|