@instructure/quiz-core 20.17.3-rc.6 → 20.17.3-rc.8
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/bankEntries.js +20 -13
- package/es/banks/api/banks.js +34 -22
- package/es/banks/api/copyingBanksPoller.js +67 -57
- package/es/banks/api/tagAssociations.js +40 -26
- package/es/banks/components/AddBankEntryModal/index.js +10 -7
- package/es/banks/components/AddBankEntryModal/presenter.js +25 -5
- package/es/banks/components/AddToBankModal/index.js +12 -12
- package/es/banks/components/AddToBankModal/presenter.js +94 -51
- package/es/banks/components/AsyncSearch/index.js +70 -13
- package/es/banks/components/Bank/index.js +12 -12
- package/es/banks/components/Bank/presenter.js +115 -57
- package/es/banks/components/Bank/styles.js +2 -0
- package/es/banks/components/Bank/theme.js +3 -2
- package/es/banks/components/BankEntriesList/index.js +3 -3
- package/es/banks/components/BankEntriesList/presenter.js +27 -13
- package/es/banks/components/BankEntriesList/styles.js +1 -0
- package/es/banks/components/BankEntriesList/theme.js +1 -0
- package/es/banks/components/BankEntry/index.js +19 -14
- package/es/banks/components/BankEntry/presenter.js +257 -160
- package/es/banks/components/BankEntry/styles.js +2 -0
- package/es/banks/components/BankEntry/theme.js +4 -3
- package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +4 -2
- package/es/banks/components/BankEntryRow/index.js +14 -9
- package/es/banks/components/BankEntryRow/presenter.js +59 -27
- package/es/banks/components/BankEntryRow/styles.js +1 -0
- package/es/banks/components/BankEntryRow/theme.js +4 -3
- package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
- package/es/banks/components/BankSearch/index.js +6 -4
- package/es/banks/components/BankSearch/presenter.js +42 -21
- package/es/banks/components/BankSearch/styles.js +1 -0
- package/es/banks/components/BankSearch/theme.js +1 -0
- package/es/banks/components/Banks/index.js +10 -7
- package/es/banks/components/Banks/presenter.js +85 -31
- package/es/banks/components/Banks/styles.js +1 -0
- package/es/banks/components/Banks/theme.js +3 -2
- package/es/banks/components/BanksList/index.js +8 -8
- package/es/banks/components/BanksList/presenter.js +143 -79
- package/es/banks/components/BanksList/styles.js +1 -0
- package/es/banks/components/BanksList/theme.js +4 -3
- package/es/banks/components/CopyMoveBankEntryModal/index.js +9 -9
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +39 -10
- package/es/banks/components/CreateBankModal/index.js +13 -10
- package/es/banks/components/CreateBankModal/presenter.js +42 -13
- package/es/banks/components/CreateBankModal/styles.js +1 -0
- package/es/banks/components/CreateBankModal/theme.js +2 -1
- package/es/banks/components/EditBankModal/index.js +10 -7
- package/es/banks/components/EditBankModal/presenter.js +36 -13
- package/es/banks/components/EditBankModal/styles.js +1 -0
- package/es/banks/components/EditBankModal/theme.js +2 -1
- package/es/banks/components/HeaderBreadCrumb/index.js +26 -13
- package/es/banks/components/HeaderMenu/index.js +7 -4
- package/es/banks/components/HeaderMenu/presenter.js +29 -15
- package/es/banks/components/HeaderMenu/styles.js +1 -0
- package/es/banks/components/HeaderMenu/theme.js +2 -1
- package/es/banks/components/NavWrapper/index.js +4 -2
- package/es/banks/components/NavWrapper/presenter.js +38 -19
- package/es/banks/components/NavWrapper/styles.js +2 -0
- package/es/banks/components/NavWrapper/theme.js +5 -4
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +21 -5
- package/es/banks/components/SharingModal/RootAccountSharing.js +33 -16
- package/es/banks/components/SharingModal/ShareList/index.js +37 -16
- package/es/banks/components/SharingModal/ShareList/styles.js +1 -0
- package/es/banks/components/SharingModal/index.js +8 -6
- package/es/banks/components/SharingModal/presenter.js +126 -56
- package/es/banks/components/SharingModal/styles.js +1 -0
- package/es/banks/components/SharingModal/theme.js +3 -2
- package/es/building/api/items.js +103 -81
- package/es/building/api/qtiImports.js +22 -14
- package/es/building/api/quizEntries.js +65 -57
- package/es/building/api/quizzes.js +29 -34
- package/es/building/api/stimuli.js +6 -9
- package/es/building/components/QTIImportModal/index.js +5 -6
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +38 -17
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +41 -27
- package/es/building/components/layout/Sidebar/SidebarItem/styles.js +4 -1
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +1 -0
- package/es/building/components/layout/Sidebar/Stimulus/index.js +12 -11
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +39 -25
- package/es/building/components/layout/Sidebar/Stimulus/styles.js +4 -1
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +1 -0
- package/es/building/components/layout/Sidebar/index.js +15 -15
- package/es/building/components/layout/Sidebar/presenter.js +51 -21
- package/es/building/components/layout/Sidebar/styles.js +2 -0
- package/es/building/components/layout/Sidebar/theme.js +1 -0
- package/es/building/components/layout/header/BuildingButtons/index.js +11 -9
- package/es/building/components/layout/header/BuildingButtons/presenter.js +64 -15
- package/es/building/components/layout/header/BuildingButtons/styles.js +2 -0
- package/es/building/components/layout/header/BuildingButtons/theme.js +3 -2
- package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
- package/es/building/components/resources/ActionButtons/index.js +7 -4
- package/es/building/components/resources/ActionButtons/presenter.js +34 -14
- package/es/building/components/resources/ActionButtons/styles.js +3 -0
- package/es/building/components/resources/ActionButtons/theme.js +2 -1
- package/es/building/components/resources/AddToBankOptions/index.js +62 -38
- package/es/building/components/resources/AddToBankOptions/styles.js +1 -0
- package/es/building/components/resources/AddToBankOptions/theme.js +2 -1
- package/es/building/components/resources/BanksTray/index.js +5 -3
- package/es/building/components/resources/BanksTray/presenter.js +40 -12
- package/es/building/components/resources/DeleteStimulusModal/index.js +12 -8
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +56 -21
- package/es/building/components/resources/DeleteStimulusModal/styles.js +1 -0
- package/es/building/components/resources/DeleteStimulusModal/theme.js +2 -1
- package/es/building/components/resources/ItemFeedbackModal/index.js +10 -8
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +35 -12
- package/es/building/components/resources/ItemFeedbackModal/styles.js +1 -0
- package/es/building/components/resources/ItemFeedbackModal/theme.js +1 -0
- package/es/building/components/resources/MoveImmutableModal/index.js +14 -11
- package/es/building/components/resources/MoveImmutableModal/presenter.js +24 -8
- package/es/building/components/resources/quiz/editButton/EditButton.js +20 -5
- package/es/building/components/resources/quiz/instructions/Edit/index.js +4 -2
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +26 -21
- package/es/building/components/resources/quiz/instructions/Edit/styles.js +1 -0
- package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +9 -7
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +55 -31
- package/es/building/components/resources/quiz/instructions/Instructions/styles.js +2 -0
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
- package/es/building/components/resources/quiz/instructions/Show/index.js +29 -18
- package/es/building/components/resources/quiz/instructions/Show/styles.js +1 -0
- package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
- package/es/building/components/resources/quiz/title/Edit/index.js +36 -21
- package/es/building/components/resources/quiz/title/Edit/styles.js +2 -0
- package/es/building/components/resources/quiz/title/Edit/theme.js +4 -3
- package/es/building/components/resources/quiz/title/Show/index.js +28 -17
- package/es/building/components/resources/quiz/title/Show/styles.js +1 -0
- package/es/building/components/resources/quiz/title/Show/theme.js +1 -0
- package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
- package/es/building/components/resources/quiz/title/Title/index.js +10 -8
- package/es/building/components/resources/quiz/title/Title/presenter.js +48 -31
- package/es/building/components/resources/quiz/title/Title/styles.js +2 -0
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +16 -14
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +66 -30
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +16 -4
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +51 -16
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +30 -15
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +7 -5
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +54 -24
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +3 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +124 -70
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +3 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +14 -11
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +165 -94
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +10 -8
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +71 -37
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -0
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -4
- package/es/common/actions/alerts.js +7 -7
- package/es/common/actions/modifications.js +16 -37
- package/es/common/actions/quizSessions.js +15 -5
- package/es/common/actions/rce.js +2 -3
- package/es/common/actions/taking.js +17 -1
- package/es/common/api/callHandlers.js +15 -14
- package/es/common/api/camelizeHelpers.js +6 -6
- package/es/common/api/features.js +5 -3
- package/es/common/api/fileUpload.js +3 -4
- package/es/common/api/getPersistenceActions.js +40 -41
- package/es/common/api/helpers.js +100 -77
- package/es/common/api/interactionTypes.js +2 -2
- package/es/common/api/quizSessions.js +32 -27
- package/es/common/api/quizzes.js +6 -10
- package/es/common/api/schema.js +4 -6
- package/es/common/components/ApiFeatureFlagInitializer/index.js +12 -8
- package/es/common/components/ConfirmationModal/index.js +6 -3
- package/es/common/components/ConfirmationModal/presenter.js +29 -13
- package/es/common/components/ImportModal/ImportFileSelector/index.js +40 -24
- package/es/common/components/ImportModal/ImportFileSelector/styles.js +1 -0
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +3 -2
- package/es/common/components/ImportModal/index.js +13 -13
- package/es/common/components/ImportModal/presenter.js +69 -19
- package/es/common/components/ImportModal/styles.js +1 -0
- package/es/common/components/ImportModal/theme.js +1 -0
- package/es/common/components/LearnosityCalculator/index.js +60 -36
- package/es/common/components/Pin/index.js +1 -1
- package/es/common/components/Pin/presenter.js +17 -4
- package/es/common/components/PreviewFrame/examples.config.js +4 -2
- package/es/common/components/PreviewFrame/index.js +18 -8
- package/es/common/components/PrintFontSizeModal/index.js +1 -1
- package/es/common/components/PrintFontSizeModal/presenter.js +35 -24
- package/es/common/components/PrintFontSizeModal/styles.js +1 -0
- package/es/common/components/PrintFontSizeModal/theme.js +3 -2
- package/es/common/components/RceConfigProvider/index.js +6 -4
- package/es/common/components/RceConfigProvider/presenter.js +125 -93
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +11 -5
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +37 -26
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +11 -3
- package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
- package/es/common/components/SDKApp/index.js +61 -30
- package/es/common/components/SDKApp/styles.js +1 -0
- package/es/common/components/SDKHeaderCalculator.js +4 -4
- package/es/common/components/SDKMenuButton.js +3 -3
- package/es/common/components/SDKNavBar.js +3 -3
- package/es/common/components/SDKTimer.js +4 -4
- package/es/common/components/alerts/index.js +6 -4
- package/es/common/components/alerts/presenter.js +30 -11
- package/es/common/components/alerts/styles.js +2 -0
- package/es/common/components/alerts/theme.js +2 -1
- package/es/common/components/layout/Page/index.js +21 -11
- package/es/common/components/layout/Page/styles.js +2 -0
- package/es/common/components/layout/Page/theme.js +3 -2
- package/es/common/components/layout/header/Calculator/index.js +9 -7
- package/es/common/components/layout/header/Calculator/presenter.js +22 -9
- package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +36 -14
- package/es/common/components/layout/header/HeaderMenuButton/styles.js +2 -0
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +3 -2
- package/es/common/components/layout/header/Timer/index.js +9 -6
- package/es/common/components/layout/header/Timer/presenter.js +49 -19
- package/es/common/components/layout/header/Timer/styles.js +1 -0
- package/es/common/components/layout/header/Timer/theme.js +4 -3
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +20 -10
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -0
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -0
- package/es/common/components/layout/navbar/index.js +39 -15
- package/es/common/components/layout/navbar/styles.js +1 -0
- package/es/common/components/layout/navbar/theme.js +2 -1
- package/es/common/components/layout/sidebar/PositionSummary/index.js +20 -10
- package/es/common/components/layout/sidebar/PositionSummary/styles.js +1 -0
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +4 -3
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +18 -7
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +10 -6
- package/es/common/components/layout/sidebar/Sidebar/index.js +81 -39
- package/es/common/components/layout/sidebar/Sidebar/styles.js +9 -4
- package/es/common/components/layout/sidebar/Sidebar/theme.js +7 -5
- package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +51 -35
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +2 -0
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +39 -23
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +3 -1
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -2
- package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +43 -20
- package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -0
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +3 -2
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +21 -11
- package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -0
- package/es/common/components/layout/sidebar/Stimulus/index.js +5 -3
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +49 -28
- package/es/common/components/layout/sidebar/Stimulus/styles.js +1 -0
- package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -3
- package/es/common/components/resources/BankSelection/index.js +5 -5
- package/es/common/components/resources/BankSelection/presenter.js +49 -16
- package/es/common/components/resources/WarningWrapper/index.js +25 -11
- package/es/common/components/resources/WarningWrapper/styles.js +1 -0
- package/es/common/components/resources/WarningWrapper/theme.js +3 -2
- package/es/common/components/resources/entry/EntrySave/index.js +10 -10
- package/es/common/components/resources/entry/EntrySave/presenter.js +150 -95
- package/es/common/components/resources/item/ItemEdit/index.js +18 -16
- package/es/common/components/resources/item/ItemEdit/presenter.js +41 -18
- package/es/common/components/resources/item/ItemOverride/index.js +11 -9
- package/es/common/components/resources/item/ItemOverride/presenter.js +18 -6
- package/es/common/components/resources/item/ItemShow/index.js +17 -7
- package/es/common/components/resources/positionBox/PositionBox.js +21 -11
- package/es/common/components/resources/positionBox/styles.js +2 -0
- package/es/common/components/resources/positionBox/theme.js +3 -2
- package/es/common/components/resources/quiz/AddContent/Body/index.js +9 -7
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +45 -23
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +9 -4
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +5 -4
- package/es/common/components/resources/quiz/AddContent/Button/index.js +25 -11
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +2 -0
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +5 -4
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +11 -8
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +13 -5
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +8 -7
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +37 -16
- package/es/common/components/resources/quiz/AddContent/Popover/styles.js +1 -0
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +2 -1
- package/es/common/components/resources/quiz/info/QuizInfo.js +14 -6
- package/es/common/components/resources/quiz/instructions/Instructions.js +22 -13
- package/es/common/components/resources/quiz/instructions/styles.js +1 -0
- package/es/common/components/resources/quiz/instructions/theme.js +2 -1
- package/es/common/components/resources/quiz/title/Title.js +21 -13
- package/es/common/components/resources/quiz/title/styles.js +1 -0
- package/es/common/components/resources/quiz/title/theme.js +2 -1
- package/es/common/components/resources/quizSessionResult/Header/index.js +26 -11
- package/es/common/components/resources/quizSessionResult/Header/styles.js +1 -0
- package/es/common/components/resources/quizSessionResult/Header/theme.js +2 -1
- package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +125 -107
- package/es/common/components/resources/quizSessionResult/Info/styles.js +2 -0
- package/es/common/components/resources/quizSessionResult/Info/theme.js +2 -1
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +22 -10
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -0
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +5 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +6 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +90 -64
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -0
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -3
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +31 -15
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -0
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +4 -3
- package/es/common/components/resources/stimulus/Stimulus/index.js +8 -5
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +39 -22
- package/es/common/components/resources/stimulus/Stimulus/styles.js +5 -1
- package/es/common/components/resources/stimulus/Stimulus/theme.js +4 -3
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +13 -10
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +190 -111
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +1 -0
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +3 -2
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +7 -4
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +43 -16
- package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -0
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -2
- package/es/common/components/resources/stimulus/StimulusShow/index.js +33 -15
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +1 -0
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +3 -2
- package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +14 -4
- package/es/common/components/shared/Card/CardContent/index.js +21 -11
- package/es/common/components/shared/Card/CardContent/styles.js +2 -0
- package/es/common/components/shared/Card/CardContent/theme.js +5 -4
- package/es/common/components/shared/Card/CardWrapper/index.js +21 -11
- package/es/common/components/shared/Card/CardWrapper/styles.js +2 -0
- package/es/common/components/shared/Card/CardWrapper/theme.js +3 -2
- package/es/common/components/shared/Card/index.js +6 -6
- package/es/common/components/shared/ExpandButton/index.js +20 -10
- package/es/common/components/shared/ExpandButton/styles.js +2 -0
- package/es/common/components/shared/ExpandButton/theme.js +1 -0
- package/es/common/components/shared/FormattedDuration/index.js +20 -9
- package/es/common/components/shared/IfFeature/index.js +3 -3
- package/es/common/components/shared/IfFeature/presenter.js +13 -4
- package/es/common/components/shared/InteractionTypes/index.js +4 -2
- package/es/common/components/shared/InteractionTypes/presenter.js +33 -14
- package/es/common/components/shared/InteractionTypes/styles.js +1 -0
- package/es/common/components/shared/InteractionTypes/theme.js +3 -2
- package/es/common/components/shared/PaginatedCollection/index.js +3 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +75 -46
- package/es/common/components/shared/PaginatedCollection/styles.js +1 -0
- package/es/common/components/shared/PaginatedCollection/theme.js +3 -2
- package/es/common/components/shared/Paginator/index.js +24 -11
- package/es/common/components/shared/Paginator/styles.js +1 -0
- package/es/common/components/shared/Paginator/theme.js +1 -0
- package/es/common/components/shared/PrintTrigger/index.js +9 -7
- package/es/common/components/shared/PrintTrigger/presenter.js +37 -12
- package/es/common/components/shared/TagDisplay/index.js +21 -10
- package/es/common/components/shared/TagDisplay/styles.js +1 -0
- package/es/common/components/shared/TagSelect/index.js +1 -1
- package/es/common/components/shared/TagSelect/presenter.js +49 -15
- package/es/common/components/shared/TagSuggestSelect/index.js +7 -4
- package/es/common/components/shared/TagSuggestSelect/presenter.js +26 -12
- package/es/common/components/shared/TagWrapper/index.js +1 -1
- package/es/common/components/shared/TagWrapper/presenter.js +20 -7
- package/es/common/components/shared/TimeUnitsInput/index.js +61 -29
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +33 -18
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -0
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +3 -2
- package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +67 -26
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +64 -22
- package/es/common/components/shared/errors/Errors.js +27 -11
- package/es/common/components/shared/errors/styles.js +1 -0
- package/es/common/components/shared/errors/theme.js +2 -1
- package/es/common/components/shared/file_selector/FileSelector.js +24 -12
- package/es/common/components/shared/file_selector/styles.js +1 -0
- package/es/common/components/shared/file_selector/theme.js +3 -2
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +27 -17
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +21 -12
- package/es/common/components/shared/functionality/disableDraggingOverride.js +3 -2
- package/es/common/components/shared/functionality/makeEditable.js +35 -21
- package/es/common/components/shared/functionality/makeScrollable.js +46 -27
- package/es/common/components/shared/overlay/index.js +29 -16
- package/es/common/components/shared/overlay/styles.js +2 -0
- package/es/common/components/shared/overlay/theme.js +3 -2
- package/es/common/components/shared/return_button/ReturnButton.js +15 -6
- package/es/common/components/shared/spinner/Spinner.js +28 -17
- package/es/common/components/shared/spinner/styles.js +1 -0
- package/es/common/kinesis/QuizEventsLogger.js +84 -48
- package/es/common/kinesis/StreamQueue.js +28 -9
- package/es/common/kinesis/client.js +5 -3
- package/es/common/kinesis/config.js +6 -4
- package/es/common/kinesis/eventTypes.js +7 -5
- package/es/common/middleware/alertTimerMiddleware.js +7 -3
- package/es/common/middleware/crossDomainMessagingMiddleware.js +4 -1
- package/es/common/middleware/eventLoggerMiddleware.js +7 -5
- package/es/common/middleware/persistedStorageMiddleware.js +7 -2
- package/es/common/react-redux.js +2 -0
- package/es/common/records/Alert.js +9 -5
- package/es/common/records/Bank.js +13 -7
- package/es/common/records/BankEntry.js +17 -7
- package/es/common/records/Item.js +22 -15
- package/es/common/records/ItemAnalysis.js +13 -6
- package/es/common/records/QtiImport.js +14 -5
- package/es/common/records/Quiz.js +27 -18
- package/es/common/records/QuizAnalysis.js +12 -5
- package/es/common/records/QuizEntry.js +152 -105
- package/es/common/records/QuizSession.js +28 -21
- package/es/common/records/QuizSessionEvent.js +13 -6
- package/es/common/records/QuizSessionResult.js +13 -6
- package/es/common/records/Response.js +13 -6
- package/es/common/records/SessionItem.js +23 -10
- package/es/common/records/SessionItemResult.js +13 -6
- package/es/common/records/Stimulus.js +17 -10
- package/es/common/records/baseRecord.js +19 -8
- package/es/common/records/index.js +32 -16
- package/es/common/records/reduxRecord.js +14 -9
- package/es/common/reducers/alerts.js +3 -0
- package/es/common/reducers/analyses.js +11 -1
- package/es/common/reducers/bankEntries.js +5 -0
- package/es/common/reducers/bankSearch.js +9 -4
- package/es/common/reducers/banks.js +13 -1
- package/es/common/reducers/calls.js +3 -0
- package/es/common/reducers/config.js +4 -0
- package/es/common/reducers/dragAndDrop.js +2 -0
- package/es/common/reducers/editing.js +3 -1
- package/es/common/reducers/errorsShowing.js +4 -0
- package/es/common/reducers/features.js +3 -0
- package/es/common/reducers/grading.js +4 -0
- package/es/common/reducers/interactionTypes.js +4 -0
- package/es/common/reducers/items.js +4 -0
- package/es/common/reducers/modal.js +6 -0
- package/es/common/reducers/moderation.js +3 -0
- package/es/common/reducers/modifications.js +40 -8
- package/es/common/reducers/outcomes.js +5 -0
- package/es/common/reducers/printing.js +2 -0
- package/es/common/reducers/qtiImports.js +5 -0
- package/es/common/reducers/quizEntries.js +39 -28
- package/es/common/reducers/quizExport.js +2 -0
- package/es/common/reducers/quizSessionEvents.js +5 -2
- package/es/common/reducers/quizSessionResults.js +4 -0
- package/es/common/reducers/quizSessions.js +11 -2
- package/es/common/reducers/quizzes.js +13 -0
- package/es/common/reducers/rce.js +6 -0
- package/es/common/reducers/regrading.js +4 -0
- package/es/common/reducers/reporting.js +12 -0
- package/es/common/reducers/scrolling.js +3 -0
- package/es/common/reducers/sessionItemResults.js +4 -0
- package/es/common/reducers/sessionItems.js +4 -0
- package/es/common/reducers/sharedBanks.js +8 -1
- package/es/common/reducers/sidebar.js +3 -0
- package/es/common/reducers/stimuli.js +4 -0
- package/es/common/reducers/tagAssociations.js +28 -0
- package/es/common/reducers/taking.js +35 -0
- package/es/common/reducers/ui.js +11 -0
- package/es/common/reducers/upload.js +7 -0
- package/es/common/selectors/analyses.js +2 -0
- package/es/common/selectors/calculator.js +10 -9
- package/es/common/selectors/config.js +2 -0
- package/es/common/selectors/interactionTypes.js +8 -7
- package/es/common/selectors/items.js +2 -1
- package/es/common/selectors/qtiImports.js +6 -3
- package/es/common/selectors/quizSessionResults.js +1 -1
- package/es/common/selectors/quizSessions.js +2 -3
- package/es/common/selectors/quizzes.js +14 -8
- package/es/common/selectors/reporting.js +3 -1
- package/es/common/selectors/sessionItemResults.js +5 -4
- package/es/common/selectors/sessionItems.js +5 -4
- package/es/common/selectors/taking.js +1 -1
- package/es/common/util/CustomPropTypes.js +12 -0
- package/es/common/util/ExhaustivePaginatedFetcher.js +73 -55
- package/es/common/util/Fetcher.js +224 -155
- package/es/common/util/MultiWeakMap.js +21 -1
- package/es/common/util/PaginatedFetcher.js +39 -21
- package/es/common/util/ThunkQueue.js +80 -50
- package/es/common/util/TimeRecordingService.js +14 -1
- package/es/common/util/TimerService.js +44 -5
- package/es/common/util/cachePreviousArgs.js +3 -0
- package/es/common/util/callHelpers.js +2 -0
- package/es/common/util/componentForItem.js +6 -1
- package/es/common/util/crossDomainMessaging.js +1 -0
- package/es/common/util/debounceLatestPromise.js +2 -0
- package/es/common/util/featureCheck.js +4 -6
- package/es/common/util/fitbCopyHelper.js +3 -3
- package/es/common/util/formatTimespan.js +10 -0
- package/es/common/util/generateDisplayPositions.js +5 -2
- package/es/common/util/immutableHelpers.js +6 -8
- package/es/common/util/interactionTypeMetadata.js +3 -2
- package/es/common/util/interactionTypePropsHelper.js +7 -0
- package/es/common/util/interactionTypeRecordForItem.js +7 -1
- package/es/common/util/jsonify.js +0 -1
- package/es/common/util/keyboardClickable.js +1 -0
- package/es/common/util/mathRenderingUtils.js +1 -2
- package/es/common/util/maxContent.js +1 -0
- package/es/common/util/persistedState.js +10 -4
- package/es/common/util/printUtils.js +4 -0
- package/es/common/util/rceChecker.js +15 -11
- package/es/common/util/renderAlerts.js +13 -11
- package/es/common/util/serializeEvent.js +6 -4
- package/es/common/util/sessionStore.js +13 -5
- package/es/common/util/warningHelpers.js +9 -0
- package/es/common/util/withCachedArguments.js +7 -3
- package/es/common/util/withDynamoPagination.js +84 -60
- package/es/common/util/withStateCache.js +10 -3
- package/es/config.js +9 -5
- package/es/configureStore.js +49 -52
- package/es/grading/api/quizEntryRegrades.js +5 -6
- package/es/grading/api/updateResults.js +8 -4
- package/es/index.js +135 -141
- package/es/messages/LocalStorageAdapter.js +15 -4
- package/es/messages/LocalStorageLimits.js +25 -5
- package/es/messages/StorageExhaustionError.js +12 -5
- package/es/messages/postMessageService.js +24 -5
- package/es/messages/subjectHandlers/forwardMessage.js +1 -0
- package/es/messages/subjectHandlers/lti.capabilities.js +1 -0
- package/es/messages/subjectHandlers/lti.fetchWindowSize.js +1 -0
- package/es/messages/subjectHandlers/lti.frameResize.js +4 -1
- package/es/messages/subjectHandlers/lti.get_data.js +8 -3
- package/es/messages/subjectHandlers/lti.put_data.js +10 -5
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +5 -1
- package/es/messages/utils.js +1 -0
- package/es/moderating/api/quizSessionEvents.js +3 -3
- package/es/moderating/api/quizSessions.js +2 -2
- package/es/moderating/components/events/Event.js +37 -12
- package/es/moderating/components/events/PageBlurredEvent.js +29 -0
- package/es/moderating/components/events/PageFocusedEvent.js +29 -0
- package/es/moderating/components/events/RCEEvent.js +12 -4
- package/es/moderating/components/events/ResponseEvent.js +30 -15
- package/es/moderating/components/events/SessionStartEvent.js +13 -5
- package/es/moderating/components/events/styles.js +1 -0
- package/es/moderating/components/events/theme.js +2 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +30 -12
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +29 -5
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +29 -5
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +30 -7
- package/es/moderating/components/resources/AccommodationsModal/index.js +32 -11
- package/es/moderating/components/resources/ElapsedTime.js +16 -9
- package/es/moderating/components/resources/ModerateTable/index.js +7 -7
- package/es/moderating/components/resources/ModerateTable/presenter.js +96 -44
- package/es/moderating/components/resources/ModerateTable/styles.js +2 -0
- package/es/moderating/components/resources/ModerateTable/theme.js +2 -1
- package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +4 -2
- package/es/moderating/components/resources/ModerateTableRow/index.js +5 -5
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +73 -30
- package/es/moderating/components/resources/ModerateTableRow/story.js +2 -3
- package/es/moderating/components/resources/ModerateTableRow/styles.js +1 -0
- package/es/moderating/components/resources/ModerateTableRow/theme.js +1 -0
- package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +32 -5
- package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +27 -4
- package/es/moderating/components/sidebar/ResetQuiz/index.js +9 -7
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +38 -17
- package/es/reduxStore.js +8 -4
- package/es/reporting/api/getAnalysesExport.js +29 -20
- package/es/reporting/api/getAnalysesStatus.js +22 -17
- package/es/reporting/api/getItemAnalyses.js +22 -17
- package/es/reporting/api/getQuizAnalysis.js +22 -17
- package/es/reporting/api/itemAnalyses.js +4 -4
- package/es/reporting/api/quizAnalyses.js +4 -4
- package/es/reporting/components/Caption/index.js +21 -11
- package/es/reporting/components/Caption/styles.js +1 -0
- package/es/reporting/components/Caption/theme.js +3 -2
- package/es/reporting/components/MetricsListItem/index.js +23 -13
- package/es/reporting/components/MetricsListItem/styles.js +1 -0
- package/es/reporting/components/charts/CentileDistribution/presenter.js +42 -17
- package/es/reporting/components/charts/CentileDistribution/styles.js +2 -0
- package/es/reporting/components/charts/CentileDistribution/theme.js +3 -2
- package/es/reporting/components/charts/Distribution/presenter.js +54 -21
- package/es/reporting/components/charts/Distribution/styles.js +1 -0
- package/es/reporting/components/charts/Distribution/theme.js +2 -1
- package/es/reporting/components/charts/Legend/index.js +25 -14
- package/es/reporting/components/charts/Legend/styles.js +2 -0
- package/es/reporting/components/charts/Legend/theme.js +4 -3
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +40 -14
- package/es/reporting/components/charts/QuintileDistribution/styles.js +1 -0
- package/es/reporting/components/charts/QuintileDistribution/theme.js +2 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +33 -11
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +14 -2
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +6 -5
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +3 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +52 -29
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +3 -0
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -3
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +41 -22
- package/es/reporting/components/quizAnalysis/styles.js +7 -3
- package/es/reporting/components/quizAnalysis/theme.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +25 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +25 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +4 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +17 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +19 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +20 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +34 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +31 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +24 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +20 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +51 -27
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +25 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +10 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +22 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +62 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +40 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +24 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +32 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +20 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +44 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +29 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +23 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +54 -18
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +61 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +28 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +6 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +32 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +20 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +5 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +55 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +42 -21
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +56 -31
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +31 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +3 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +7 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +53 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +50 -41
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +35 -27
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +85 -64
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +77 -39
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +5 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +13 -11
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +133 -104
- package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +25 -12
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +9 -7
- package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +56 -29
- package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -0
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -2
- package/es/reporting/components/resources/ReportCard/index.js +25 -15
- package/es/reporting/components/resources/ReportCard/styles.js +2 -0
- package/es/reporting/components/resources/ReportCard/theme.js +2 -1
- package/es/reporting/components/resources/ReportList/index.js +24 -14
- package/es/reporting/components/resources/ReportList/styles.js +1 -0
- package/es/reporting/components/resources/ReportList/theme.js +1 -0
- package/es/taking/api/taking.js +53 -41
- package/es/taking/learnosity/index.js +68 -42
- package/lib/banks/api/bankEntries.js +65 -23
- package/lib/banks/api/banks.js +103 -38
- package/lib/banks/api/copyingBanksPoller.js +83 -60
- package/lib/banks/api/tagAssociations.js +61 -32
- package/lib/banks/components/AddBankEntryModal/index.js +25 -10
- package/lib/banks/components/AddBankEntryModal/presenter.js +49 -10
- package/lib/banks/components/AddToBankModal/index.js +36 -16
- package/lib/banks/components/AddToBankModal/presenter.js +126 -56
- package/lib/banks/components/AsyncSearch/index.js +94 -18
- package/lib/banks/components/Bank/index.js +37 -17
- package/lib/banks/components/Bank/presenter.js +165 -70
- package/lib/banks/components/Bank/styles.js +8 -2
- package/lib/banks/components/Bank/theme.js +6 -3
- package/lib/banks/components/BankEntriesList/index.js +15 -6
- package/lib/banks/components/BankEntriesList/presenter.js +45 -18
- package/lib/banks/components/BankEntriesList/styles.js +4 -1
- package/lib/banks/components/BankEntriesList/theme.js +4 -1
- package/lib/banks/components/BankEntry/index.js +42 -17
- package/lib/banks/components/BankEntry/presenter.js +314 -173
- package/lib/banks/components/BankEntry/styles.js +7 -2
- package/lib/banks/components/BankEntry/theme.js +7 -4
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +13 -5
- package/lib/banks/components/BankEntryRow/index.js +32 -12
- package/lib/banks/components/BankEntryRow/presenter.js +100 -38
- package/lib/banks/components/BankEntryRow/styles.js +4 -1
- package/lib/banks/components/BankEntryRow/theme.js +7 -4
- package/lib/banks/components/BankSearch/BankSearch.stories.js +27 -9
- package/lib/banks/components/BankSearch/index.js +18 -6
- package/lib/banks/components/BankSearch/presenter.js +70 -25
- package/lib/banks/components/BankSearch/styles.js +4 -1
- package/lib/banks/components/BankSearch/theme.js +4 -1
- package/lib/banks/components/Banks/index.js +26 -10
- package/lib/banks/components/Banks/presenter.js +129 -42
- package/lib/banks/components/Banks/styles.js +4 -1
- package/lib/banks/components/Banks/theme.js +6 -3
- package/lib/banks/components/BanksList/index.js +26 -12
- package/lib/banks/components/BanksList/presenter.js +180 -88
- package/lib/banks/components/BanksList/styles.js +4 -1
- package/lib/banks/components/BanksList/theme.js +7 -4
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +30 -13
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +65 -15
- package/lib/banks/components/CreateBankModal/index.js +33 -13
- package/lib/banks/components/CreateBankModal/presenter.js +64 -16
- package/lib/banks/components/CreateBankModal/styles.js +4 -1
- package/lib/banks/components/CreateBankModal/theme.js +5 -2
- package/lib/banks/components/EditBankModal/index.js +27 -10
- package/lib/banks/components/EditBankModal/presenter.js +56 -16
- package/lib/banks/components/EditBankModal/styles.js +4 -1
- package/lib/banks/components/EditBankModal/theme.js +5 -2
- package/lib/banks/components/HeaderBreadCrumb/index.js +47 -17
- package/lib/banks/components/HeaderMenu/index.js +20 -8
- package/lib/banks/components/HeaderMenu/presenter.js +51 -19
- package/lib/banks/components/HeaderMenu/styles.js +4 -1
- package/lib/banks/components/HeaderMenu/theme.js +5 -2
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +9 -3
- package/lib/banks/components/NavWrapper/index.js +12 -4
- package/lib/banks/components/NavWrapper/presenter.js +64 -25
- package/lib/banks/components/NavWrapper/styles.js +5 -1
- package/lib/banks/components/NavWrapper/theme.js +8 -5
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +37 -8
- package/lib/banks/components/SharingModal/RootAccountSharing.js +55 -19
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +5 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +61 -20
- package/lib/banks/components/SharingModal/ShareList/styles.js +4 -1
- package/lib/banks/components/SharingModal/index.js +22 -8
- package/lib/banks/components/SharingModal/presenter.js +164 -63
- package/lib/banks/components/SharingModal/styles.js +4 -1
- package/lib/banks/components/SharingModal/theme.js +6 -3
- package/lib/building/api/items.js +118 -81
- package/lib/building/api/qtiImports.js +47 -18
- package/lib/building/api/quizEntries.js +111 -64
- package/lib/building/api/quizzes.js +78 -50
- package/lib/building/api/stimuli.js +16 -9
- package/lib/building/components/QTIImportModal/index.js +28 -13
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +50 -19
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +46 -19
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +62 -34
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +7 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +4 -1
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +43 -17
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +61 -33
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +7 -2
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +4 -1
- package/lib/building/components/layout/Sidebar/index.js +44 -21
- package/lib/building/components/layout/Sidebar/presenter.js +74 -28
- package/lib/building/components/layout/Sidebar/styles.js +7 -2
- package/lib/building/components/layout/Sidebar/theme.js +4 -1
- package/lib/building/components/layout/header/BuildingButtons/index.js +34 -15
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +86 -19
- package/lib/building/components/layout/header/BuildingButtons/styles.js +7 -2
- package/lib/building/components/layout/header/BuildingButtons/theme.js +6 -3
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +16 -7
- package/lib/building/components/resources/ActionButtons/index.js +20 -7
- package/lib/building/components/resources/ActionButtons/presenter.js +55 -18
- package/lib/building/components/resources/ActionButtons/styles.js +9 -2
- package/lib/building/components/resources/ActionButtons/theme.js +5 -2
- package/lib/building/components/resources/AddToBankOptions/index.js +81 -41
- package/lib/building/components/resources/AddToBankOptions/styles.js +4 -1
- package/lib/building/components/resources/AddToBankOptions/theme.js +5 -2
- package/lib/building/components/resources/BanksTray/index.js +13 -5
- package/lib/building/components/resources/BanksTray/presenter.js +69 -19
- package/lib/building/components/resources/DeleteStimulusModal/index.js +24 -10
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +79 -24
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +4 -1
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +5 -2
- package/lib/building/components/resources/ItemFeedbackModal/index.js +27 -12
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +53 -15
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +4 -1
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +4 -1
- package/lib/building/components/resources/MoveImmutableModal/index.js +29 -14
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +45 -12
- package/lib/building/components/resources/quiz/editButton/EditButton.js +38 -8
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +11 -4
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +45 -20
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +4 -1
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +1 -0
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +9 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +23 -10
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +75 -31
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +7 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +3 -2
- package/lib/building/components/resources/quiz/instructions/Show/index.js +47 -17
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +4 -1
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +3 -2
- package/lib/building/components/resources/quiz/title/Edit/index.js +55 -19
- package/lib/building/components/resources/quiz/title/Edit/styles.js +7 -2
- package/lib/building/components/resources/quiz/title/Edit/theme.js +7 -4
- package/lib/building/components/resources/quiz/title/Show/index.js +47 -17
- package/lib/building/components/resources/quiz/title/Show/styles.js +4 -1
- package/lib/building/components/resources/quiz/title/Show/theme.js +4 -1
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +9 -4
- package/lib/building/components/resources/quiz/title/Title/index.js +25 -11
- package/lib/building/components/resources/quiz/title/Title/presenter.js +69 -31
- package/lib/building/components/resources/quiz/title/Title/styles.js +8 -2
- package/lib/building/components/resources/quiz/title/Title/theme.js +4 -3
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +44 -19
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +117 -46
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +23 -6
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +7 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +17 -8
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +77 -21
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +4 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +47 -18
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +4 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +18 -8
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +79 -28
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +8 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +151 -74
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +5 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +35 -14
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +206 -107
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +5 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +7 -4
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +24 -10
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +106 -47
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +8 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +8 -5
- package/lib/common/actions/addInteractionTypes.js +2 -0
- package/lib/common/actions/alerts.js +18 -9
- package/lib/common/actions/analyses.js +11 -4
- package/lib/common/actions/bankEntries.js +10 -3
- package/lib/common/actions/bankSearch.js +19 -6
- package/lib/common/actions/banks.js +27 -8
- package/lib/common/actions/config.js +5 -1
- package/lib/common/actions/dragAndDrop.js +2 -0
- package/lib/common/actions/editing.js +5 -1
- package/lib/common/actions/errorsShowing.js +5 -1
- package/lib/common/actions/features.js +3 -0
- package/lib/common/actions/grading.js +6 -2
- package/lib/common/actions/items.js +2 -0
- package/lib/common/actions/modal.js +10 -3
- package/lib/common/actions/moderation.js +3 -0
- package/lib/common/actions/modifications.js +86 -64
- package/lib/common/actions/outcomes.js +5 -0
- package/lib/common/actions/postMessage.js +2 -0
- package/lib/common/actions/printing.js +4 -1
- package/lib/common/actions/qtiImports.js +3 -0
- package/lib/common/actions/quizEntries.js +7 -0
- package/lib/common/actions/quizExport.js +6 -2
- package/lib/common/actions/quizSessionEvents.js +6 -2
- package/lib/common/actions/quizSessionResults.js +6 -2
- package/lib/common/actions/quizSessions.js +45 -13
- package/lib/common/actions/quizzes.js +27 -8
- package/lib/common/actions/rce.js +17 -8
- package/lib/common/actions/regrading.js +5 -1
- package/lib/common/actions/reporting.js +7 -1
- package/lib/common/actions/scrolling.js +4 -1
- package/lib/common/actions/sessionItemResults.js +6 -2
- package/lib/common/actions/sessionItems.js +6 -2
- package/lib/common/actions/sharedBanks.js +15 -5
- package/lib/common/actions/sidebar.js +4 -1
- package/lib/common/actions/stimuli.js +2 -0
- package/lib/common/actions/tagAssociations.js +34 -9
- package/lib/common/actions/taking.js +86 -17
- package/lib/common/actions/ui.js +39 -11
- package/lib/common/actions/upload.js +22 -6
- package/lib/common/api/callHandlers.js +111 -38
- package/lib/common/api/camelizeHelpers.js +15 -6
- package/lib/common/api/features.js +15 -6
- package/lib/common/api/fileUpload.js +14 -7
- package/lib/common/api/getPersistenceActions.js +64 -42
- package/lib/common/api/helpers.js +127 -84
- package/lib/common/api/interactionTypes.js +11 -5
- package/lib/common/api/quizSessions.js +94 -42
- package/lib/common/api/quizzes.js +19 -11
- package/lib/common/api/schema.js +42 -24
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +26 -12
- package/lib/common/components/ConfirmationModal/index.js +17 -5
- package/lib/common/components/ConfirmationModal/presenter.js +49 -17
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +57 -27
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +4 -1
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +6 -3
- package/lib/common/components/ImportModal/index.js +33 -18
- package/lib/common/components/ImportModal/presenter.js +95 -23
- package/lib/common/components/ImportModal/styles.js +4 -1
- package/lib/common/components/ImportModal/theme.js +4 -1
- package/lib/common/components/LearnosityCalculator/index.js +81 -43
- package/lib/common/components/Pin/Pin.examples.js +3 -2
- package/lib/common/components/Pin/index.js +7 -3
- package/lib/common/components/Pin/presenter.js +35 -8
- package/lib/common/components/PreviewFrame/examples.config.js +10 -5
- package/lib/common/components/PreviewFrame/index.js +36 -12
- package/lib/common/components/PrintFontSizeModal/index.js +7 -3
- package/lib/common/components/PrintFontSizeModal/presenter.js +54 -27
- package/lib/common/components/PrintFontSizeModal/styles.js +4 -1
- package/lib/common/components/PrintFontSizeModal/theme.js +6 -3
- package/lib/common/components/RceConfigProvider/index.js +14 -6
- package/lib/common/components/RceConfigProvider/presenter.js +145 -96
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +26 -9
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +26 -8
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +45 -29
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +20 -6
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +12 -6
- package/lib/common/components/SDKApp/index.js +92 -39
- package/lib/common/components/SDKApp/styles.js +4 -1
- package/lib/common/components/SDKHeaderCalculator.js +20 -10
- package/lib/common/components/SDKMenuButton.js +16 -7
- package/lib/common/components/SDKNavBar.js +17 -8
- package/lib/common/components/SDKTimer.js +20 -10
- package/lib/common/components/alerts/index.js +17 -7
- package/lib/common/components/alerts/presenter.js +48 -14
- package/lib/common/components/alerts/styles.js +7 -2
- package/lib/common/components/alerts/theme.js +5 -2
- package/lib/common/components/layout/Page/index.js +33 -14
- package/lib/common/components/layout/Page/styles.js +8 -2
- package/lib/common/components/layout/Page/theme.js +6 -3
- package/lib/common/components/layout/header/Calculator/index.js +20 -9
- package/lib/common/components/layout/header/Calculator/presenter.js +43 -14
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +22 -10
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +52 -17
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +7 -2
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +6 -3
- package/lib/common/components/layout/header/Timer/index.js +22 -8
- package/lib/common/components/layout/header/Timer/presenter.js +75 -25
- package/lib/common/components/layout/header/Timer/styles.js +4 -1
- package/lib/common/components/layout/header/Timer/theme.js +7 -4
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +34 -13
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +4 -1
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +4 -1
- package/lib/common/components/layout/navbar/index.js +55 -18
- package/lib/common/components/layout/navbar/styles.js +4 -1
- package/lib/common/components/layout/navbar/theme.js +5 -2
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +34 -13
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +4 -1
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +7 -4
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +33 -8
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +17 -9
- package/lib/common/components/layout/sidebar/Sidebar/index.js +108 -43
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +15 -6
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +10 -6
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +27 -11
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +72 -39
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +7 -2
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +7 -4
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +13 -6
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +60 -27
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +9 -3
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +6 -3
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +13 -6
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +59 -23
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +4 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +6 -3
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +35 -14
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +4 -1
- package/lib/common/components/layout/sidebar/Stimulus/index.js +21 -8
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +76 -35
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +4 -1
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +7 -4
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +3 -2
- package/lib/common/components/resources/BankSelection/index.js +21 -9
- package/lib/common/components/resources/BankSelection/presenter.js +70 -20
- package/lib/common/components/resources/WarningWrapper/index.js +42 -14
- package/lib/common/components/resources/WarningWrapper/styles.js +4 -1
- package/lib/common/components/resources/WarningWrapper/theme.js +6 -3
- package/lib/common/components/resources/entry/EntrySave/index.js +29 -13
- package/lib/common/components/resources/entry/EntrySave/presenter.js +175 -99
- package/lib/common/components/resources/item/ItemEdit/index.js +44 -21
- package/lib/common/components/resources/item/ItemEdit/presenter.js +69 -22
- package/lib/common/components/resources/item/ItemOverride/index.js +29 -12
- package/lib/common/components/resources/item/ItemOverride/presenter.js +38 -10
- package/lib/common/components/resources/item/ItemShow/index.js +34 -10
- package/lib/common/components/resources/positionBox/PositionBox.js +35 -14
- package/lib/common/components/resources/positionBox/styles.js +7 -2
- package/lib/common/components/resources/positionBox/theme.js +6 -3
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +22 -9
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +68 -27
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +14 -6
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +8 -5
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +42 -14
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +8 -2
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +8 -5
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +21 -10
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +33 -10
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +23 -10
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +59 -21
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +4 -1
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +5 -2
- package/lib/common/components/resources/quiz/info/QuizInfo.js +31 -10
- package/lib/common/components/resources/quiz/instructions/Instructions.js +38 -19
- package/lib/common/components/resources/quiz/instructions/styles.js +4 -1
- package/lib/common/components/resources/quiz/instructions/theme.js +5 -2
- package/lib/common/components/resources/quiz/title/Title.js +38 -18
- package/lib/common/components/resources/quiz/title/styles.js +4 -1
- package/lib/common/components/resources/quiz/title/theme.js +5 -2
- package/lib/common/components/resources/quizSessionResult/Header/index.js +43 -14
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +4 -1
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +5 -2
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +11 -5
- package/lib/common/components/resources/quizSessionResult/Info/index.js +151 -111
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +5 -1
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +5 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +37 -13
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +8 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +8 -5
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +17 -7
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +115 -68
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +7 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +7 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +53 -20
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +4 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +7 -4
- package/lib/common/components/resources/stimulus/Stimulus/index.js +19 -7
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +72 -32
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +12 -3
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +7 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +33 -13
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +232 -120
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +4 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +19 -7
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +67 -19
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +4 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +53 -22
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +4 -1
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +8 -4
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +30 -7
- package/lib/common/components/shared/Card/CardContent/index.js +35 -14
- package/lib/common/components/shared/Card/CardContent/styles.js +7 -2
- package/lib/common/components/shared/Card/CardContent/theme.js +8 -5
- package/lib/common/components/shared/Card/CardWrapper/index.js +35 -14
- package/lib/common/components/shared/Card/CardWrapper/styles.js +7 -2
- package/lib/common/components/shared/Card/CardWrapper/theme.js +6 -3
- package/lib/common/components/shared/Card/index.js +20 -10
- package/lib/common/components/shared/ExpandButton/index.js +35 -13
- package/lib/common/components/shared/ExpandButton/styles.js +7 -2
- package/lib/common/components/shared/ExpandButton/theme.js +4 -1
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +8 -3
- package/lib/common/components/shared/FormattedDuration/index.js +48 -17
- package/lib/common/components/shared/IfFeature/index.js +13 -6
- package/lib/common/components/shared/IfFeature/presenter.js +25 -7
- package/lib/common/components/shared/InteractionTypes/index.js +11 -4
- package/lib/common/components/shared/InteractionTypes/presenter.js +56 -17
- package/lib/common/components/shared/InteractionTypes/styles.js +4 -1
- package/lib/common/components/shared/InteractionTypes/theme.js +6 -3
- package/lib/common/components/shared/PaginatedCollection/index.js +16 -7
- package/lib/common/components/shared/PaginatedCollection/presenter.js +97 -63
- package/lib/common/components/shared/PaginatedCollection/styles.js +4 -1
- package/lib/common/components/shared/PaginatedCollection/theme.js +6 -3
- package/lib/common/components/shared/Paginator/index.js +38 -14
- package/lib/common/components/shared/Paginator/styles.js +4 -1
- package/lib/common/components/shared/Paginator/theme.js +4 -1
- package/lib/common/components/shared/PrintTrigger/index.js +27 -11
- package/lib/common/components/shared/PrintTrigger/presenter.js +61 -17
- package/lib/common/components/shared/TagDisplay/index.js +37 -13
- package/lib/common/components/shared/TagDisplay/styles.js +4 -1
- package/lib/common/components/shared/TagSelect/index.js +7 -3
- package/lib/common/components/shared/TagSelect/presenter.js +72 -20
- package/lib/common/components/shared/TagSuggestSelect/index.js +17 -6
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +49 -17
- package/lib/common/components/shared/TagWrapper/index.js +7 -3
- package/lib/common/components/shared/TagWrapper/presenter.js +38 -11
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +3 -2
- package/lib/common/components/shared/TimeUnitsInput/index.js +89 -36
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +47 -21
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +7 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +6 -3
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +30 -13
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +89 -30
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +108 -39
- package/lib/common/components/shared/errors/Errors.js +42 -14
- package/lib/common/components/shared/errors/styles.js +4 -1
- package/lib/common/components/shared/errors/theme.js +5 -2
- package/lib/common/components/shared/file_selector/FileSelector.js +39 -15
- package/lib/common/components/shared/file_selector/styles.js +4 -1
- package/lib/common/components/shared/file_selector/theme.js +6 -3
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +40 -18
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +32 -12
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +10 -4
- package/lib/common/components/shared/functionality/makeEditable.js +59 -25
- package/lib/common/components/shared/functionality/makeScrollable.js +74 -33
- package/lib/common/components/shared/overlay/index.js +39 -26
- package/lib/common/components/shared/overlay/styles.js +7 -2
- package/lib/common/components/shared/overlay/theme.js +6 -3
- package/lib/common/components/shared/return_button/ReturnButton.js +33 -11
- package/lib/common/components/shared/spinner/Spinner.js +43 -20
- package/lib/common/components/shared/spinner/styles.js +4 -1
- package/lib/common/kinesis/QuizEventsLogger.js +104 -53
- package/lib/common/kinesis/StreamQueue.js +33 -12
- package/lib/common/kinesis/client.js +26 -9
- package/lib/common/kinesis/config.js +25 -10
- package/lib/common/kinesis/eventTypes.js +20 -10
- package/lib/common/middleware/alertTimerMiddleware.js +11 -4
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +8 -2
- package/lib/common/middleware/eventLoggerMiddleware.js +14 -6
- package/lib/common/middleware/persistedStorageMiddleware.js +15 -4
- package/lib/common/react-redux.js +7 -3
- package/lib/common/records/Alert.js +20 -8
- package/lib/common/records/Bank.js +30 -10
- package/lib/common/records/BankEntry.js +32 -10
- package/lib/common/records/Item.js +39 -18
- package/lib/common/records/ItemAnalysis.js +28 -9
- package/lib/common/records/QtiImport.js +25 -8
- package/lib/common/records/Quiz.js +47 -21
- package/lib/common/records/QuizAnalysis.js +24 -8
- package/lib/common/records/QuizEntry.js +179 -109
- package/lib/common/records/QuizSession.js +46 -24
- package/lib/common/records/QuizSessionEvent.js +25 -9
- package/lib/common/records/QuizSessionResult.js +27 -9
- package/lib/common/records/Response.js +27 -9
- package/lib/common/records/SessionItem.js +38 -13
- package/lib/common/records/SessionItemResult.js +26 -9
- package/lib/common/records/Stimulus.js +33 -13
- package/lib/common/records/baseRecord.js +33 -11
- package/lib/common/records/index.js +52 -35
- package/lib/common/records/reduxRecord.js +21 -10
- package/lib/common/reducers/alerts.js +10 -2
- package/lib/common/reducers/analyses.js +35 -11
- package/lib/common/reducers/bankEntries.js +15 -3
- package/lib/common/reducers/bankSearch.js +17 -6
- package/lib/common/reducers/banks.js +23 -4
- package/lib/common/reducers/calls.js +10 -2
- package/lib/common/reducers/config.js +12 -2
- package/lib/common/reducers/dragAndDrop.js +9 -2
- package/lib/common/reducers/editing.js +13 -4
- package/lib/common/reducers/errorsShowing.js +11 -2
- package/lib/common/reducers/features.js +10 -2
- package/lib/common/reducers/grading.js +11 -2
- package/lib/common/reducers/interactionTypes.js +13 -3
- package/lib/common/reducers/items.js +14 -3
- package/lib/common/reducers/modal.js +13 -2
- package/lib/common/reducers/moderation.js +11 -2
- package/lib/common/reducers/modifications.js +50 -11
- package/lib/common/reducers/outcomes.js +13 -2
- package/lib/common/reducers/printing.js +9 -2
- package/lib/common/reducers/qtiImports.js +15 -3
- package/lib/common/reducers/quizEntries.js +50 -31
- package/lib/common/reducers/quizExport.js +9 -2
- package/lib/common/reducers/quizSessionEvents.js +12 -4
- package/lib/common/reducers/quizSessionResults.js +13 -3
- package/lib/common/reducers/quizSessions.js +22 -5
- package/lib/common/reducers/quizzes.js +25 -3
- package/lib/common/reducers/rce.js +12 -2
- package/lib/common/reducers/regrading.js +12 -2
- package/lib/common/reducers/reporting.js +22 -3
- package/lib/common/reducers/scrolling.js +10 -2
- package/lib/common/reducers/sessionItemResults.js +13 -3
- package/lib/common/reducers/sessionItems.js +14 -3
- package/lib/common/reducers/sharedBanks.js +17 -4
- package/lib/common/reducers/sidebar.js +10 -2
- package/lib/common/reducers/stimuli.js +14 -3
- package/lib/common/reducers/tagAssociations.js +35 -2
- package/lib/common/reducers/taking.js +41 -2
- package/lib/common/reducers/ui.js +18 -2
- package/lib/common/reducers/upload.js +14 -2
- package/lib/common/selectors/analyses.js +28 -8
- package/lib/common/selectors/calculator.js +15 -8
- package/lib/common/selectors/calls.js +3 -0
- package/lib/common/selectors/config.js +5 -1
- package/lib/common/selectors/interactionTypes.js +22 -12
- package/lib/common/selectors/items.js +9 -2
- package/lib/common/selectors/qtiImports.js +14 -6
- package/lib/common/selectors/quizSessionResults.js +8 -3
- package/lib/common/selectors/quizSessions.js +30 -13
- package/lib/common/selectors/quizzes.js +70 -23
- package/lib/common/selectors/rce.js +10 -4
- package/lib/common/selectors/reporting.js +11 -4
- package/lib/common/selectors/sessionItemResults.js +17 -8
- package/lib/common/selectors/sessionItems.js +18 -8
- package/lib/common/selectors/taking.js +29 -10
- package/lib/common/selectors/ui.js +5 -2
- package/lib/common/util/CustomPropTypes.js +23 -3
- package/lib/common/util/ElementsForSelectors.js +8 -3
- package/lib/common/util/ExhaustivePaginatedFetcher.js +85 -55
- package/lib/common/util/Fetcher.js +245 -157
- package/lib/common/util/MultiWeakMap.js +27 -4
- package/lib/common/util/PaginatedFetcher.js +57 -24
- package/lib/common/util/ThunkQueue.js +87 -53
- package/lib/common/util/TimeRecordingService.js +23 -4
- package/lib/common/util/TimerService.js +59 -9
- package/lib/common/util/cachePreviousArgs.js +11 -3
- package/lib/common/util/callHelpers.js +20 -6
- package/lib/common/util/componentForItem.js +16 -4
- package/lib/common/util/crossDomainMessaging.js +2 -0
- package/lib/common/util/debounceLatestPromise.js +10 -3
- package/lib/common/util/featureCheck.js +16 -6
- package/lib/common/util/fetchHelpers.js +1 -0
- package/lib/common/util/fitbCopyHelper.js +4 -1
- package/lib/common/util/formatTimespan.js +22 -3
- package/lib/common/util/generateDisplayPositions.js +10 -4
- package/lib/common/util/httpHeaders.js +12 -5
- package/lib/common/util/immutableHelpers.js +19 -10
- package/lib/common/util/instUIMessages.js +5 -2
- package/lib/common/util/interactionTypeMetadata.js +16 -8
- package/lib/common/util/interactionTypePropsHelper.js +20 -4
- package/lib/common/util/interactionTypeRecordForItem.js +13 -3
- package/lib/common/util/jsonify.js +10 -5
- package/lib/common/util/keyboardClickable.js +4 -1
- package/lib/common/util/mathRenderingUtils.js +6 -2
- package/lib/common/util/maxContent.js +10 -3
- package/lib/common/util/modalHelpers.js +2 -0
- package/lib/common/util/noop.js +5 -2
- package/lib/common/util/persistedState.js +20 -6
- package/lib/common/util/printUtils.js +13 -4
- package/lib/common/util/rceChecker.js +26 -14
- package/lib/common/util/renderAlerts.js +25 -13
- package/lib/common/util/serializeEvent.js +14 -5
- package/lib/common/util/sessionStore.js +20 -8
- package/lib/common/util/valMap.js +8 -3
- package/lib/common/util/warningHelpers.js +44 -10
- package/lib/common/util/windowChecks.js +22 -7
- package/lib/common/util/withCachedArguments.js +14 -4
- package/lib/common/util/withDynamoPagination.js +97 -63
- package/lib/common/util/withStateCache.js +19 -3
- package/lib/config.js +17 -6
- package/lib/configureStore.js +104 -53
- package/lib/grading/api/quizEntryRegrades.js +13 -7
- package/lib/grading/api/updateResults.js +20 -7
- package/lib/index.js +646 -517
- package/lib/messages/LocalStorageAdapter.js +21 -6
- package/lib/messages/LocalStorageLimits.js +30 -7
- package/lib/messages/StorageExhaustionError.js +20 -8
- package/lib/messages/postMessageService.js +35 -6
- package/lib/messages/subjectHandlers/forwardMessage.js +4 -1
- package/lib/messages/subjectHandlers/lti.capabilities.js +4 -1
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +4 -1
- package/lib/messages/subjectHandlers/lti.frameResize.js +7 -2
- package/lib/messages/subjectHandlers/lti.get_data.js +12 -4
- package/lib/messages/subjectHandlers/lti.put_data.js +19 -7
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +13 -4
- package/lib/messages/utils.js +1 -0
- package/lib/moderating/api/quizSessionEvents.js +10 -4
- package/lib/moderating/api/quizSessions.js +12 -4
- package/lib/moderating/components/events/Event.js +58 -15
- package/lib/moderating/components/events/PageBlurredEvent.js +48 -0
- package/lib/moderating/components/events/PageFocusedEvent.js +48 -0
- package/lib/moderating/components/events/RCEEvent.js +27 -8
- package/lib/moderating/components/events/ResponseEvent.js +49 -18
- package/lib/moderating/components/events/SessionStartEvent.js +33 -9
- package/lib/moderating/components/events/styles.js +4 -1
- package/lib/moderating/components/events/theme.js +5 -2
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +44 -15
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +47 -10
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +45 -8
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +3 -2
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +54 -14
- package/lib/moderating/components/resources/AccommodationsModal/index.js +55 -15
- package/lib/moderating/components/resources/ElapsedTime.js +32 -13
- package/lib/moderating/components/resources/ModerateTable/index.js +26 -12
- package/lib/moderating/components/resources/ModerateTable/presenter.js +128 -52
- package/lib/moderating/components/resources/ModerateTable/styles.js +7 -2
- package/lib/moderating/components/resources/ModerateTable/theme.js +5 -2
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +13 -5
- package/lib/moderating/components/resources/ModerateTableRow/index.js +15 -8
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +99 -35
- package/lib/moderating/components/resources/ModerateTableRow/story.js +10 -4
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +4 -1
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +4 -1
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +3 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +20 -8
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +54 -9
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +3 -2
- package/lib/moderating/components/sidebar/ModerateTray/index.js +15 -7
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +52 -8
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +25 -11
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +58 -21
- package/lib/reduxStore.js +21 -9
- package/lib/reporting/api/getAnalysesExport.js +40 -23
- package/lib/reporting/api/getAnalysesStatus.js +33 -20
- package/lib/reporting/api/getItemAnalyses.js +33 -20
- package/lib/reporting/api/getQuizAnalysis.js +33 -20
- package/lib/reporting/api/itemAnalyses.js +11 -5
- package/lib/reporting/api/quizAnalyses.js +11 -5
- package/lib/reporting/components/Caption/index.js +34 -14
- package/lib/reporting/components/Caption/styles.js +4 -1
- package/lib/reporting/components/Caption/theme.js +6 -3
- package/lib/reporting/components/MetricsListItem/index.js +38 -16
- package/lib/reporting/components/MetricsListItem/styles.js +4 -1
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/CentileDistribution/index.js +6 -2
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +60 -21
- package/lib/reporting/components/charts/CentileDistribution/styles.js +7 -2
- package/lib/reporting/components/charts/CentileDistribution/theme.js +6 -3
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +6 -3
- package/lib/reporting/components/charts/Distribution/Distribution.js +6 -2
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +6 -2
- package/lib/reporting/components/charts/Distribution/index.js +6 -2
- package/lib/reporting/components/charts/Distribution/presenter.js +76 -23
- package/lib/reporting/components/charts/Distribution/styles.js +4 -1
- package/lib/reporting/components/charts/Distribution/theme.js +5 -2
- package/lib/reporting/components/charts/Legend/index.js +39 -17
- package/lib/reporting/components/charts/Legend/styles.js +7 -2
- package/lib/reporting/components/charts/Legend/theme.js +7 -4
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +3 -2
- package/lib/reporting/components/charts/QuintileDistribution/index.js +6 -2
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +57 -19
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +4 -1
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +5 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +9 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +53 -14
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +20 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +9 -6
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +9 -4
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +18 -7
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +95 -45
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +8 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +7 -4
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +74 -35
- package/lib/reporting/components/quizAnalysis/styles.js +12 -5
- package/lib/reporting/components/quizAnalysis/theme.js +7 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +36 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +38 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +33 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +37 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +41 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +49 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +51 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +47 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +42 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +72 -29
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +47 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +12 -9
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +15 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +41 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +89 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +61 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +45 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +48 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +44 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +80 -37
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +41 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +7 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +39 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +71 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +82 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +45 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +20 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +49 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +30 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +10 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +11 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +91 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +7 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +7 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +10 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +73 -33
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +11 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +85 -39
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +8 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +5 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +51 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +30 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +37 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +64 -43
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +61 -44
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +45 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +100 -68
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +11 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +111 -48
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +71 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +4 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +17 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +32 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +154 -108
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +13 -6
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +44 -16
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +19 -10
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +22 -10
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +92 -45
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +4 -1
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +6 -3
- package/lib/reporting/components/resources/ReportCard/index.js +43 -19
- package/lib/reporting/components/resources/ReportCard/styles.js +7 -2
- package/lib/reporting/components/resources/ReportCard/theme.js +5 -2
- package/lib/reporting/components/resources/ReportList/index.js +38 -17
- package/lib/reporting/components/resources/ReportList/styles.js +4 -1
- package/lib/reporting/components/resources/ReportList/theme.js +4 -1
- package/lib/taking/api/taking.js +104 -56
- package/lib/taking/learnosity/index.js +77 -44
- package/package.json +10 -9
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
|
|
9
12
|
var generateStyle = function generateStyle(componentTheme, props) {
|
|
10
13
|
var correctRowBorderStyles = {
|
|
11
14
|
borderColor: componentTheme.colorGreen,
|
|
@@ -43,4 +46,6 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
43
46
|
cellPadding: componentTheme.cellPadding
|
|
44
47
|
};
|
|
45
48
|
};
|
|
46
|
-
|
|
49
|
+
|
|
50
|
+
var _default = generateStyle;
|
|
51
|
+
exports.default = _default;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
9
|
var colors = _ref.colors;
|
|
9
10
|
return {
|
|
@@ -11,4 +12,6 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
11
12
|
cellPadding: '0.75rem 0.75rem'
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
var _default = generateComponentTheme;
|
|
17
|
+
exports.default = _default;
|
|
@@ -1,42 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.LegacyChoiceType = void 0;
|
|
9
|
+
|
|
8
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
|
|
9
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
|
|
13
|
+
|
|
11
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
|
+
|
|
12
18
|
var _react = require("react");
|
|
19
|
+
|
|
13
20
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
21
|
+
|
|
14
22
|
var _uiTable = require("@instructure/ui-table");
|
|
23
|
+
|
|
15
24
|
var _emotion = require("@instructure/emotion");
|
|
25
|
+
|
|
16
26
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
27
|
+
|
|
17
28
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
var
|
|
29
|
+
|
|
30
|
+
var _index = _interopRequireDefault(require("./ChoiceTypeTableRow/index.js"));
|
|
31
|
+
|
|
32
|
+
var _propTypes2 = require("../../propTypes.js");
|
|
33
|
+
|
|
34
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
35
|
+
|
|
36
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
37
|
+
|
|
38
|
+
var _index2 = _interopRequireDefault(require("../shared/AfsTableWrapper/index.js"));
|
|
39
|
+
|
|
40
|
+
var _dec, _class, _class2, _temp;
|
|
41
|
+
|
|
42
|
+
var LegacyChoiceType = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
43
|
+
(0, _inherits2.default)(LegacyChoiceType, _Component);
|
|
44
|
+
|
|
45
|
+
var _super = (0, _createSuper2.default)(LegacyChoiceType);
|
|
46
|
+
|
|
26
47
|
function LegacyChoiceType() {
|
|
27
48
|
var _this;
|
|
49
|
+
|
|
28
50
|
(0, _classCallCheck2.default)(this, LegacyChoiceType);
|
|
51
|
+
|
|
29
52
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
30
53
|
args[_key] = arguments[_key];
|
|
31
54
|
}
|
|
32
|
-
|
|
55
|
+
|
|
56
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
57
|
+
|
|
33
58
|
_this.renderRow = function (choice, choiceIndex) {
|
|
34
|
-
return (0, _emotion.jsx)(
|
|
59
|
+
return (0, _emotion.jsx)(_index.default, {
|
|
35
60
|
key: choiceIndex,
|
|
36
61
|
choice: choice,
|
|
37
62
|
choiceIndex: choiceIndex
|
|
38
63
|
});
|
|
39
64
|
};
|
|
65
|
+
|
|
40
66
|
_this.renderNoAnswer = function (payload, choiceIndex) {
|
|
41
67
|
var asChoice = {
|
|
42
68
|
body: (0, _formatMessage.default)('(No answer)'),
|
|
@@ -44,29 +70,30 @@ var LegacyChoiceType = exports.LegacyChoiceType = (_dec = (0, _emotion.withStyle
|
|
|
44
70
|
correct: false,
|
|
45
71
|
count: payload.count
|
|
46
72
|
};
|
|
47
|
-
return (0, _emotion.jsx)(
|
|
73
|
+
return (0, _emotion.jsx)(_index.default, {
|
|
48
74
|
key: choiceIndex,
|
|
49
75
|
choice: asChoice,
|
|
50
76
|
choiceIndex: choiceIndex
|
|
51
77
|
});
|
|
52
78
|
};
|
|
79
|
+
|
|
53
80
|
return _this;
|
|
54
81
|
}
|
|
55
|
-
|
|
56
|
-
|
|
82
|
+
|
|
83
|
+
(0, _createClass2.default)(LegacyChoiceType, [{
|
|
57
84
|
key: "render",
|
|
58
85
|
value: function render() {
|
|
59
86
|
var _this$props = this.props,
|
|
60
|
-
|
|
61
|
-
|
|
87
|
+
answerSummary = _this$props.answerSummary,
|
|
88
|
+
itemId = _this$props.itemId;
|
|
62
89
|
var choices = answerSummary.choices,
|
|
63
|
-
|
|
90
|
+
noAnswer = answerSummary.no_answer;
|
|
64
91
|
var numberOfChoices = choices.length;
|
|
65
92
|
var spacingHeaderId = "answer-frequency-summary-spacing-".concat(itemId);
|
|
66
93
|
var answerHeaderId = "answer-frequency-summary-answer-".concat(itemId);
|
|
67
94
|
var respondentsHeaderId = "answer-frequency-summary-respondents-".concat(itemId);
|
|
68
95
|
var percentageHeaderId = "answer-frequency-summary-percentage-".concat(itemId);
|
|
69
|
-
return (0, _emotion.jsx)(
|
|
96
|
+
return (0, _emotion.jsx)(_index2.default, null, (0, _emotion.jsx)("div", {
|
|
70
97
|
css: this.props.styles.tableContainer
|
|
71
98
|
}, (0, _emotion.jsx)(_uiTable.Table, {
|
|
72
99
|
caption: (0, _formatMessage.default)('Answer Frequency Summary')
|
|
@@ -86,8 +113,11 @@ var LegacyChoiceType = exports.LegacyChoiceType = (_dec = (0, _emotion.withStyle
|
|
|
86
113
|
}, (0, _formatMessage.default)('Percentage')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, choices.map(this.renderRow), this.renderNoAnswer(noAnswer, numberOfChoices)))));
|
|
87
114
|
}
|
|
88
115
|
}]);
|
|
89
|
-
|
|
116
|
+
LegacyChoiceType.displayName = "LegacyChoiceType";
|
|
117
|
+
return LegacyChoiceType;
|
|
118
|
+
}(_react.Component), _class2.propTypes = {
|
|
90
119
|
itemId: _propTypes.default.number.isRequired,
|
|
91
120
|
answerSummary: _propTypes2.choiceTypeAnswerSummaryPropType.isRequired,
|
|
92
121
|
styles: _propTypes.default.object
|
|
93
|
-
},
|
|
122
|
+
}, _temp)) || _class);
|
|
123
|
+
exports.LegacyChoiceType = LegacyChoiceType;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var generateStyle = function generateStyle(componentTheme) {
|
|
8
9
|
return {
|
|
9
10
|
tableWrapper: {
|
|
@@ -21,4 +22,6 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
|
-
|
|
25
|
+
|
|
26
|
+
var _default = generateStyle;
|
|
27
|
+
exports.default = _default;
|
|
@@ -4,10 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
9
|
var spacing = _ref.spacing;
|
|
9
10
|
return {
|
|
10
11
|
tableBottomPadding: spacing.medium
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
var _default = generateComponentTheme;
|
|
16
|
+
exports.default = _default;
|
|
@@ -1,33 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")
|
|
4
|
-
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
10
|
exports.CategorizationType = void 0;
|
|
11
|
+
|
|
9
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
-
|
|
13
|
+
|
|
11
14
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
|
-
|
|
15
|
+
|
|
13
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
+
|
|
18
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
19
|
+
|
|
14
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
21
|
+
|
|
22
|
+
var _index = _interopRequireDefault(require("../shared/AfsTableWrapper/index.js"));
|
|
23
|
+
|
|
16
24
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
25
|
+
|
|
26
|
+
var _propTypes2 = require("../../propTypes.js");
|
|
27
|
+
|
|
18
28
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
29
|
+
|
|
30
|
+
var _presenter = require("../shared/AfsPartsContainer/presenter.js");
|
|
31
|
+
|
|
32
|
+
var _index2 = _interopRequireDefault(require("./MatchingTypeTable/index.js"));
|
|
33
|
+
|
|
34
|
+
var _index3 = _interopRequireDefault(require("../shared/AggregationTable/index.js"));
|
|
35
|
+
|
|
22
36
|
var distractorKey = 'distractor';
|
|
23
|
-
|
|
37
|
+
|
|
38
|
+
var CategorizationType = /*#__PURE__*/function (_Component) {
|
|
39
|
+
(0, _inherits2.default)(CategorizationType, _Component);
|
|
40
|
+
|
|
41
|
+
var _super = (0, _createSuper2.default)(CategorizationType);
|
|
42
|
+
|
|
24
43
|
function CategorizationType() {
|
|
25
44
|
var _this;
|
|
45
|
+
|
|
26
46
|
(0, _classCallCheck2.default)(this, CategorizationType);
|
|
47
|
+
|
|
27
48
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
49
|
args[_key] = arguments[_key];
|
|
29
50
|
}
|
|
30
|
-
|
|
51
|
+
|
|
52
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
53
|
+
|
|
31
54
|
_this.updateAnswerBody = function (answerSummary) {
|
|
32
55
|
var answerSummaryCopy = (0, _objectSpread2.default)({}, answerSummary);
|
|
33
56
|
Object.keys(answerSummaryCopy.questions).forEach(function (questionKey) {
|
|
@@ -42,30 +65,36 @@ var CategorizationType = exports.CategorizationType = /*#__PURE__*/function (_Co
|
|
|
42
65
|
});
|
|
43
66
|
return answerSummaryCopy;
|
|
44
67
|
};
|
|
68
|
+
|
|
45
69
|
_this.render = function () {
|
|
46
70
|
var _this$props = _this.props,
|
|
47
|
-
|
|
48
|
-
|
|
71
|
+
itemId = _this$props.itemId,
|
|
72
|
+
answerSummary = _this$props.answerSummary;
|
|
73
|
+
|
|
49
74
|
var updatedAnswerSummary = _this.updateAnswerBody(answerSummary);
|
|
50
|
-
|
|
75
|
+
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
51
77
|
noAnswerMissingPopover: true
|
|
52
78
|
}, /*#__PURE__*/_react.default.createElement(_presenter.AfsPartsContainer, {
|
|
53
|
-
afsTable: /*#__PURE__*/_react.default.createElement(
|
|
79
|
+
afsTable: /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
54
80
|
itemId: itemId,
|
|
55
81
|
answerSummary: updatedAnswerSummary,
|
|
56
82
|
firstColumnName: (0, _formatMessage.default)('Answer')
|
|
57
83
|
}),
|
|
58
|
-
aggregationTable: /*#__PURE__*/_react.default.createElement(
|
|
84
|
+
aggregationTable: /*#__PURE__*/_react.default.createElement(_index3.default, {
|
|
59
85
|
itemId: itemId,
|
|
60
86
|
answerSummary: updatedAnswerSummary
|
|
61
87
|
})
|
|
62
88
|
}));
|
|
63
89
|
};
|
|
90
|
+
|
|
64
91
|
return _this;
|
|
65
92
|
}
|
|
66
|
-
|
|
67
|
-
return
|
|
93
|
+
|
|
94
|
+
return CategorizationType;
|
|
68
95
|
}(_react.Component);
|
|
96
|
+
|
|
97
|
+
exports.CategorizationType = CategorizationType;
|
|
69
98
|
CategorizationType.propTypes = {
|
|
70
99
|
itemId: _propTypes.default.number.isRequired,
|
|
71
100
|
answerSummary: _propTypes2.matchingTypeAnswerSummaryPropType.isRequired
|
|
@@ -1,52 +1,76 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")
|
|
4
|
-
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
10
|
exports.MatchingType = void 0;
|
|
9
|
-
|
|
11
|
+
|
|
10
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
13
|
+
|
|
12
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
|
+
|
|
13
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
|
|
19
|
+
|
|
20
|
+
var _index = _interopRequireDefault(require("../shared/AfsTableWrapper/index.js"));
|
|
21
|
+
|
|
15
22
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
var
|
|
23
|
+
|
|
24
|
+
var _propTypes2 = require("../../propTypes.js");
|
|
25
|
+
|
|
26
|
+
var _presenter = require("../shared/AfsPartsContainer/presenter.js");
|
|
27
|
+
|
|
28
|
+
var _index2 = _interopRequireDefault(require("./MatchingTypeTable/index.js"));
|
|
29
|
+
|
|
30
|
+
var _index3 = _interopRequireDefault(require("../shared/AggregationTable/index.js"));
|
|
31
|
+
|
|
20
32
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
21
|
-
|
|
33
|
+
|
|
34
|
+
var MatchingType = /*#__PURE__*/function (_Component) {
|
|
35
|
+
(0, _inherits2.default)(MatchingType, _Component);
|
|
36
|
+
|
|
37
|
+
var _super = (0, _createSuper2.default)(MatchingType);
|
|
38
|
+
|
|
22
39
|
function MatchingType() {
|
|
23
40
|
var _this;
|
|
41
|
+
|
|
24
42
|
(0, _classCallCheck2.default)(this, MatchingType);
|
|
43
|
+
|
|
25
44
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
45
|
args[_key] = arguments[_key];
|
|
27
46
|
}
|
|
28
|
-
|
|
47
|
+
|
|
48
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
49
|
+
|
|
29
50
|
_this.render = function () {
|
|
30
51
|
var _this$props = _this.props,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
34
|
-
afsTable: /*#__PURE__*/_react.default.createElement(
|
|
52
|
+
itemId = _this$props.itemId,
|
|
53
|
+
answerSummary = _this$props.answerSummary;
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, null, /*#__PURE__*/_react.default.createElement(_presenter.AfsPartsContainer, {
|
|
55
|
+
afsTable: /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
35
56
|
itemId: itemId,
|
|
36
57
|
answerSummary: answerSummary,
|
|
37
58
|
firstColumnName: (0, _formatMessage.default)('Question')
|
|
38
59
|
}),
|
|
39
|
-
aggregationTable: /*#__PURE__*/_react.default.createElement(
|
|
60
|
+
aggregationTable: /*#__PURE__*/_react.default.createElement(_index3.default, {
|
|
40
61
|
itemId: itemId,
|
|
41
62
|
answerSummary: answerSummary
|
|
42
63
|
})
|
|
43
64
|
}));
|
|
44
65
|
};
|
|
66
|
+
|
|
45
67
|
return _this;
|
|
46
68
|
}
|
|
47
|
-
|
|
48
|
-
return
|
|
69
|
+
|
|
70
|
+
return MatchingType;
|
|
49
71
|
}(_react.Component);
|
|
72
|
+
|
|
73
|
+
exports.MatchingType = MatchingType;
|
|
50
74
|
MatchingType.propTypes = {
|
|
51
75
|
itemId: _propTypes.default.number.isRequired,
|
|
52
76
|
answerSummary: _propTypes2.matchingTypeAnswerSummaryPropType.isRequired
|
|
@@ -1,46 +1,81 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.MatchingTypeTable = void 0;
|
|
9
|
+
|
|
8
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
|
|
9
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
|
|
13
|
+
|
|
11
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
|
+
|
|
12
18
|
var _react = require("react");
|
|
19
|
+
|
|
13
20
|
var _uiFlex = require("@instructure/ui-flex");
|
|
14
|
-
|
|
21
|
+
|
|
22
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
23
|
+
|
|
15
24
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
25
|
+
|
|
16
26
|
var _uiTable = require("@instructure/ui-table");
|
|
27
|
+
|
|
17
28
|
var _emotion = require("@instructure/emotion");
|
|
29
|
+
|
|
18
30
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
31
|
+
|
|
19
32
|
var _uiIcons = require("@instructure/ui-icons");
|
|
20
|
-
|
|
21
|
-
var
|
|
33
|
+
|
|
34
|
+
var _propTypes2 = require("../../../propTypes.js");
|
|
35
|
+
|
|
36
|
+
var _matchingTypeOrderer = _interopRequireDefault(require("../utils/matchingTypeOrderer.js"));
|
|
37
|
+
|
|
22
38
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
23
|
-
|
|
39
|
+
|
|
40
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
41
|
+
|
|
24
42
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
43
|
+
|
|
44
|
+
var _dec, _class, _class2, _temp;
|
|
45
|
+
|
|
46
|
+
var _ref = (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null);
|
|
47
|
+
|
|
48
|
+
var _ref2 = (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
49
|
+
width: "46px",
|
|
50
|
+
textAlign: "center"
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
var MatchingTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
54
|
+
(0, _inherits2.default)(MatchingTypeTable, _Component);
|
|
55
|
+
|
|
56
|
+
var _super = (0, _createSuper2.default)(MatchingTypeTable);
|
|
57
|
+
|
|
28
58
|
function MatchingTypeTable() {
|
|
29
59
|
var _this;
|
|
60
|
+
|
|
30
61
|
(0, _classCallCheck2.default)(this, MatchingTypeTable);
|
|
62
|
+
|
|
31
63
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
64
|
args[_key] = arguments[_key];
|
|
33
65
|
}
|
|
34
|
-
|
|
66
|
+
|
|
67
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
68
|
+
|
|
35
69
|
_this.renderIcon = function () {
|
|
36
70
|
return (0, _emotion.jsx)("div", {
|
|
37
71
|
css: [_this.props.styles.iconWrapper, _this.props.styles.iconCorrect]
|
|
38
|
-
},
|
|
72
|
+
}, _ref);
|
|
39
73
|
};
|
|
74
|
+
|
|
40
75
|
_this.renderHeaderCell = function (key) {
|
|
41
76
|
var _this$props = _this.props,
|
|
42
|
-
|
|
43
|
-
|
|
77
|
+
answerSummary = _this$props.answerSummary,
|
|
78
|
+
itemId = _this$props.itemId;
|
|
44
79
|
var questions = answerSummary.questions;
|
|
45
80
|
var questionKeys = Object.keys(questions);
|
|
46
81
|
var exampleAnswers = questions[questionKeys[0]].answers;
|
|
@@ -55,27 +90,26 @@ var MatchingTypeTable = exports.MatchingTypeTable = (_dec = (0, _emotion.withSty
|
|
|
55
90
|
textAlign: "center"
|
|
56
91
|
}, (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
57
92
|
direction: "row"
|
|
58
|
-
},
|
|
59
|
-
width: "46px",
|
|
60
|
-
textAlign: "center"
|
|
61
|
-
})), (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
93
|
+
}, _ref2, (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
62
94
|
shouldShrink: true,
|
|
63
95
|
shouldGrow: true,
|
|
64
96
|
textAlign: "center"
|
|
65
97
|
}, answer.body)));
|
|
66
98
|
};
|
|
99
|
+
|
|
67
100
|
_this.answerLabel = function (correct) {
|
|
68
101
|
return correct ? (0, _formatMessage.default)('Correct answer') : (0, _formatMessage.default)('Incorrect answer');
|
|
69
102
|
};
|
|
103
|
+
|
|
70
104
|
_this.renderCell = function (questionKey, answerKey) {
|
|
71
105
|
var _this$props2 = _this.props,
|
|
72
|
-
|
|
73
|
-
|
|
106
|
+
answerSummary = _this$props2.answerSummary,
|
|
107
|
+
itemId = _this$props2.itemId;
|
|
74
108
|
var questions = answerSummary.questions;
|
|
75
109
|
var question = questions[questionKey];
|
|
76
110
|
var answer = question.answers[answerKey];
|
|
77
111
|
var correct = answer.correct,
|
|
78
|
-
|
|
112
|
+
count = answer.count;
|
|
79
113
|
var answerNumberCellId = "answer-number-cell-".concat(questionKey, "-").concat(answerKey, "-").concat(itemId);
|
|
80
114
|
var answerRowStyles = answer.correct ? _this.props.styles.correctAnswerRow : {};
|
|
81
115
|
return (0, _emotion.jsx)(_uiTable.Table.Cell, {
|
|
@@ -100,10 +134,11 @@ var MatchingTypeTable = exports.MatchingTypeTable = (_dec = (0, _emotion.withSty
|
|
|
100
134
|
textAlign: "center"
|
|
101
135
|
}, count))));
|
|
102
136
|
};
|
|
137
|
+
|
|
103
138
|
_this.renderHeaderRow = function (orderedAnswerKeys) {
|
|
104
139
|
var _this$props3 = _this.props,
|
|
105
|
-
|
|
106
|
-
|
|
140
|
+
itemId = _this$props3.itemId,
|
|
141
|
+
firstColumnName = _this$props3.firstColumnName;
|
|
107
142
|
var headerCells = orderedAnswerKeys.map(_this.renderHeaderCell);
|
|
108
143
|
var categoryHeaderId = "category-header-".concat(itemId);
|
|
109
144
|
var rowKey = "header-row-".concat(itemId);
|
|
@@ -119,11 +154,12 @@ var MatchingTypeTable = exports.MatchingTypeTable = (_dec = (0, _emotion.withSty
|
|
|
119
154
|
width: "250px"
|
|
120
155
|
}, firstColumnName), headerCells);
|
|
121
156
|
};
|
|
157
|
+
|
|
122
158
|
_this.renderRow = function (orderedQuestionKey, orderedAnswerKeys) {
|
|
123
159
|
var _this$props4 = _this.props,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
160
|
+
answerSummary = _this$props4.answerSummary,
|
|
161
|
+
itemId = _this$props4.itemId,
|
|
162
|
+
firstColumnName = _this$props4.firstColumnName;
|
|
127
163
|
var questions = answerSummary.questions;
|
|
128
164
|
var question = questions[orderedQuestionKey];
|
|
129
165
|
var answerCells = orderedAnswerKeys.map(function (answerKey) {
|
|
@@ -143,14 +179,18 @@ var MatchingTypeTable = exports.MatchingTypeTable = (_dec = (0, _emotion.withSty
|
|
|
143
179
|
}
|
|
144
180
|
}, questionBody), answerCells);
|
|
145
181
|
};
|
|
182
|
+
|
|
146
183
|
_this.render = function () {
|
|
147
184
|
var answerSummary = _this.props.answerSummary;
|
|
148
185
|
var questions = answerSummary.questions;
|
|
149
186
|
var questionKeys = Object.keys(questions);
|
|
150
187
|
var exampleAnswers = questions[questionKeys[0]].answers;
|
|
151
188
|
var answerKeys = Object.keys(exampleAnswers).sort();
|
|
189
|
+
|
|
152
190
|
var orderedAnswerKeys = _matchingTypeOrderer.default.orderAnswerKeysForDiagonal(answerSummary, answerKeys);
|
|
191
|
+
|
|
153
192
|
var orderedQuestionKeys = _matchingTypeOrderer.default.orderQuestionKeysForDiagonal(answerSummary, questionKeys, orderedAnswerKeys);
|
|
193
|
+
|
|
154
194
|
return (0, _emotion.jsx)("div", {
|
|
155
195
|
css: _this.props.styles.tableContainer
|
|
156
196
|
}, (0, _emotion.jsx)(_uiTable.Table, {
|
|
@@ -159,10 +199,11 @@ var MatchingTypeTable = exports.MatchingTypeTable = (_dec = (0, _emotion.withSty
|
|
|
159
199
|
return _this.renderRow(orderedQuestionKey, orderedAnswerKeys);
|
|
160
200
|
}))));
|
|
161
201
|
};
|
|
202
|
+
|
|
162
203
|
return _this;
|
|
163
204
|
}
|
|
164
|
-
|
|
165
|
-
|
|
205
|
+
|
|
206
|
+
(0, _createClass2.default)(MatchingTypeTable, [{
|
|
166
207
|
key: "componentDidMount",
|
|
167
208
|
value: function componentDidMount() {
|
|
168
209
|
this.props.makeStyles();
|
|
@@ -173,10 +214,12 @@ var MatchingTypeTable = exports.MatchingTypeTable = (_dec = (0, _emotion.withSty
|
|
|
173
214
|
this.props.makeStyles();
|
|
174
215
|
}
|
|
175
216
|
}]);
|
|
176
|
-
|
|
217
|
+
return MatchingTypeTable;
|
|
218
|
+
}(_react.Component), _class2.propTypes = {
|
|
177
219
|
itemId: _propTypes.default.number.isRequired,
|
|
178
220
|
answerSummary: _propTypes2.matchingTypeAnswerSummaryPropType.isRequired,
|
|
179
221
|
firstColumnName: _propTypes.default.string.isRequired,
|
|
180
222
|
styles: _propTypes.default.object,
|
|
181
223
|
makeStyles: _propTypes.default.func
|
|
182
|
-
},
|
|
224
|
+
}, _temp)) || _class);
|
|
225
|
+
exports.MatchingTypeTable = MatchingTypeTable;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
|
|
9
12
|
var generateStyle = function generateStyle(componentTheme, props) {
|
|
10
13
|
var answerSummary = props.answerSummary;
|
|
11
14
|
var questions = answerSummary.questions;
|
|
@@ -54,4 +57,6 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
54
57
|
})
|
|
55
58
|
};
|
|
56
59
|
};
|
|
57
|
-
|
|
60
|
+
|
|
61
|
+
var _default = generateStyle;
|
|
62
|
+
exports.default = _default;
|