@instructure/quiz-core 20.17.3-rc.7 → 20.17.3-rc.9
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 +4 -6
- 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 +69 -47
- package/es/common/kinesis/StreamQueue.js +28 -9
- package/es/common/kinesis/client.js +5 -3
- package/es/common/kinesis/config.js +3 -3
- package/es/common/kinesis/eventTypes.js +4 -4
- 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 +4 -2
- 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 +34 -16
- package/es/moderating/components/events/PageBlurredEvent.js +12 -4
- package/es/moderating/components/events/PageFocusedEvent.js +12 -4
- 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 +12 -4
- 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 +76 -25
- 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 +89 -52
- package/lib/common/kinesis/StreamQueue.js +33 -12
- package/lib/common/kinesis/client.js +26 -9
- package/lib/common/kinesis/config.js +22 -9
- package/lib/common/kinesis/eventTypes.js +20 -12
- 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 +13 -4
- 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 +56 -20
- package/lib/moderating/components/events/PageBlurredEvent.js +27 -8
- package/lib/moderating/components/events/PageFocusedEvent.js +27 -8
- 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 +32 -8
- 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,39 +1,71 @@
|
|
|
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.AggregationTable = void 0;
|
|
8
|
-
|
|
9
|
+
|
|
9
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
+
|
|
14
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
15
|
+
|
|
12
16
|
var _react = require("react");
|
|
17
|
+
|
|
13
18
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
19
|
+
|
|
14
20
|
var _uiTable = require("@instructure/ui-table");
|
|
15
|
-
|
|
21
|
+
|
|
22
|
+
var _propTypes = require("../../../propTypes.js");
|
|
23
|
+
|
|
16
24
|
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
25
|
+
|
|
17
26
|
var _uiIcons = require("@instructure/ui-icons");
|
|
27
|
+
|
|
18
28
|
var _emotion = require("@instructure/emotion");
|
|
19
|
-
|
|
20
|
-
var
|
|
29
|
+
|
|
30
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
31
|
+
|
|
32
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
33
|
+
|
|
21
34
|
var _uiFlex = require("@instructure/ui-flex");
|
|
35
|
+
|
|
22
36
|
var _uiText = require("@instructure/ui-text");
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
|
|
38
|
+
var _dec, _class, _class2, _temp;
|
|
39
|
+
|
|
25
40
|
var noAnswerKey = 'noAnswer';
|
|
26
41
|
var incorrectKey = 'incorrect';
|
|
27
42
|
var correctKey = 'correct';
|
|
28
43
|
var gradedKey = 'graded';
|
|
29
|
-
|
|
44
|
+
|
|
45
|
+
var _ref = (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null);
|
|
46
|
+
|
|
47
|
+
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconGradebookSolid, null);
|
|
48
|
+
|
|
49
|
+
var _ref3 = (0, _emotion.jsx)(_uiIcons.IconXSolid, null);
|
|
50
|
+
|
|
51
|
+
var _ref4 = (0, _emotion.jsx)(_uiIcons.IconNoSolid, null);
|
|
52
|
+
|
|
53
|
+
var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
54
|
+
(0, _inherits2.default)(AggregationTable, _Component);
|
|
55
|
+
|
|
56
|
+
var _super = (0, _createSuper2.default)(AggregationTable);
|
|
57
|
+
|
|
30
58
|
function AggregationTable() {
|
|
31
59
|
var _this;
|
|
60
|
+
|
|
32
61
|
(0, _classCallCheck2.default)(this, AggregationTable);
|
|
62
|
+
|
|
33
63
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34
64
|
args[_key] = arguments[_key];
|
|
35
65
|
}
|
|
36
|
-
|
|
66
|
+
|
|
67
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
68
|
+
|
|
37
69
|
_this.renderHeaderRow = function () {
|
|
38
70
|
var popover = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
39
71
|
var itemId = _this.props.itemId;
|
|
@@ -52,8 +84,10 @@ var AggregationTable = exports.AggregationTable = (_dec = (0, _emotion.withStyle
|
|
|
52
84
|
textAlign: "center"
|
|
53
85
|
}, (0, _formatMessage.default)('Percentage'))));
|
|
54
86
|
};
|
|
87
|
+
|
|
55
88
|
_this.renderRow = function (key, icon, label, count, percentage) {
|
|
56
89
|
var backgroundColor = _this.props.styles["".concat(key, "Background")];
|
|
90
|
+
|
|
57
91
|
var concatenatedPercentage = "".concat(percentage, "%");
|
|
58
92
|
return (0, _emotion.jsx)(_uiTable.Table.Row, {
|
|
59
93
|
key: key
|
|
@@ -87,53 +121,66 @@ var AggregationTable = exports.AggregationTable = (_dec = (0, _emotion.withStyle
|
|
|
87
121
|
textAlign: "center"
|
|
88
122
|
}, (0, _emotion.jsx)(_uiText.Text, null, concatenatedPercentage)));
|
|
89
123
|
};
|
|
124
|
+
|
|
90
125
|
_this.gradedExist = function () {
|
|
91
126
|
var graded = _this.props.answerSummary.graded;
|
|
92
127
|
return !!graded;
|
|
93
128
|
};
|
|
129
|
+
|
|
94
130
|
_this.correctExist = function () {
|
|
95
131
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
96
|
-
return !!(aggregate
|
|
132
|
+
return !!(aggregate === null || aggregate === void 0 ? void 0 : aggregate.correct);
|
|
97
133
|
};
|
|
134
|
+
|
|
98
135
|
_this.incorrectExist = function () {
|
|
99
136
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
100
|
-
return !!(aggregate
|
|
137
|
+
return !!(aggregate === null || aggregate === void 0 ? void 0 : aggregate.incorrect);
|
|
101
138
|
};
|
|
139
|
+
|
|
102
140
|
_this.noAnswerExist = function () {
|
|
103
141
|
var no_answer = _this.props.answerSummary.no_answer;
|
|
104
142
|
return !!no_answer;
|
|
105
143
|
};
|
|
144
|
+
|
|
106
145
|
_this.renderCorrect = function () {
|
|
107
146
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
108
147
|
var correct = aggregate.correct;
|
|
109
148
|
var correctCount = correct.count || 0;
|
|
110
149
|
var correctPercentage = correct.percentage || 0;
|
|
111
|
-
return _this.renderRow(correctKey,
|
|
150
|
+
return _this.renderRow(correctKey, _ref, (0, _formatMessage.default)('Correct'), correctCount, correctPercentage);
|
|
112
151
|
};
|
|
152
|
+
|
|
113
153
|
_this.renderGraded = function () {
|
|
114
154
|
var graded = _this.props.answerSummary.graded;
|
|
115
155
|
var gradedCount = graded.count || 0;
|
|
116
156
|
var gradedPercentage = graded.percentage || 0;
|
|
117
|
-
return _this.renderRow(gradedKey,
|
|
157
|
+
return _this.renderRow(gradedKey, _ref2, (0, _formatMessage.default)('Graded'), gradedCount, gradedPercentage);
|
|
118
158
|
};
|
|
159
|
+
|
|
119
160
|
_this.renderIncorrect = function () {
|
|
120
161
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
121
162
|
var incorrect = aggregate.incorrect;
|
|
122
163
|
var incorrectCount = incorrect.count || 0;
|
|
123
164
|
var incorrectPercentage = incorrect.percentage || 0;
|
|
124
|
-
return _this.renderRow(incorrectKey,
|
|
165
|
+
return _this.renderRow(incorrectKey, _ref3, (0, _formatMessage.default)('Incorrect'), incorrectCount, incorrectPercentage);
|
|
125
166
|
};
|
|
167
|
+
|
|
126
168
|
_this.renderNoAnswer = function () {
|
|
127
169
|
var no_answer = _this.props.answerSummary.no_answer;
|
|
128
170
|
var noAnswerCount = no_answer.count || 0;
|
|
129
171
|
var noAnswerPercentage = no_answer.percentage || 0;
|
|
130
|
-
return _this.renderRow(noAnswerKey,
|
|
172
|
+
return _this.renderRow(noAnswerKey, _ref4, (0, _formatMessage.default)('No response'), noAnswerCount, noAnswerPercentage);
|
|
131
173
|
};
|
|
174
|
+
|
|
132
175
|
_this.getColorProfile = function () {
|
|
133
176
|
var colorProfile;
|
|
177
|
+
|
|
134
178
|
var correctIncorrectNoAnswerGraded = _this.gradedExist() && _this.noAnswerExist() && _this.correctExist() && _this.incorrectExist();
|
|
179
|
+
|
|
135
180
|
var correctIncorrectNoAnswer = !_this.gradedExist() && _this.noAnswerExist() && _this.correctExist() && _this.incorrectExist();
|
|
181
|
+
|
|
136
182
|
var onlyNoAnswer = _this.noAnswerExist() && !_this.gradedExist() && !_this.correctExist() && !_this.incorrectExist();
|
|
183
|
+
|
|
137
184
|
if (correctIncorrectNoAnswer) {
|
|
138
185
|
colorProfile = 'correctIncorrectNoanswer';
|
|
139
186
|
} else if (correctIncorrectNoAnswerGraded) {
|
|
@@ -143,8 +190,10 @@ var AggregationTable = exports.AggregationTable = (_dec = (0, _emotion.withStyle
|
|
|
143
190
|
} else {
|
|
144
191
|
colorProfile = 'correctIncorrect';
|
|
145
192
|
}
|
|
193
|
+
|
|
146
194
|
return colorProfile;
|
|
147
195
|
};
|
|
196
|
+
|
|
148
197
|
_this.render = function () {
|
|
149
198
|
var popover = !_this.noAnswerExist();
|
|
150
199
|
var tableStyles = [_this.props.styles.collapsingTable, _this.props.styles[_this.getColorProfile()]];
|
|
@@ -154,12 +203,14 @@ var AggregationTable = exports.AggregationTable = (_dec = (0, _emotion.withStyle
|
|
|
154
203
|
caption: (0, _formatMessage.default)('Answer Frequency Summary Aggregates')
|
|
155
204
|
}, _this.renderHeaderRow(popover), (0, _emotion.jsx)(_uiTable.Table.Body, null, _this.correctExist() && _this.renderCorrect(), _this.gradedExist() && _this.renderGraded(), _this.incorrectExist() && _this.renderIncorrect(), _this.noAnswerExist() && _this.renderNoAnswer())));
|
|
156
205
|
};
|
|
206
|
+
|
|
157
207
|
return _this;
|
|
158
208
|
}
|
|
159
|
-
|
|
160
|
-
return
|
|
161
|
-
}(_react.Component),
|
|
209
|
+
|
|
210
|
+
return AggregationTable;
|
|
211
|
+
}(_react.Component), _class2.propTypes = {
|
|
162
212
|
itemId: _propTypes2.default.number.isRequired,
|
|
163
213
|
answerSummary: _propTypes.onlyAggregatePropType.isRequired,
|
|
164
214
|
styles: _propTypes2.default.object
|
|
165
|
-
},
|
|
215
|
+
}, _temp)) || _class);
|
|
216
|
+
exports.AggregationTable = AggregationTable;
|
|
@@ -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
|
iconWrapper: {
|
|
@@ -143,4 +144,6 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
143
144
|
}
|
|
144
145
|
};
|
|
145
146
|
};
|
|
146
|
-
|
|
147
|
+
|
|
148
|
+
var _default = generateStyle;
|
|
149
|
+
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 {
|
|
@@ -15,4 +16,6 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
15
16
|
cellPadding: '13.5px 13.5px;'
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
var _default = generateComponentTheme;
|
|
21
|
+
exports.default = _default;
|
|
@@ -1,81 +1,127 @@
|
|
|
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.ChoiceTypeTable = void 0;
|
|
9
|
+
|
|
8
10
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
11
|
+
|
|
9
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
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 = require("react");
|
|
21
|
+
|
|
15
22
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
23
|
+
|
|
16
24
|
var _uiTable = require("@instructure/ui-table");
|
|
25
|
+
|
|
17
26
|
var _emotion = require("@instructure/emotion");
|
|
27
|
+
|
|
18
28
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
29
|
+
|
|
19
30
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
31
|
+
|
|
32
|
+
var _propTypes2 = require("../../../propTypes.js");
|
|
33
|
+
|
|
34
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
35
|
+
|
|
36
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
37
|
+
|
|
23
38
|
var _uiIcons = require("@instructure/ui-icons");
|
|
39
|
+
|
|
24
40
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
41
|
+
|
|
25
42
|
var _uiFlex = require("@instructure/ui-flex");
|
|
43
|
+
|
|
26
44
|
var _uiText = require("@instructure/ui-text");
|
|
27
|
-
|
|
28
|
-
|
|
45
|
+
|
|
46
|
+
var _dec, _class, _class2, _temp;
|
|
47
|
+
|
|
29
48
|
var correctAttribute = 'correct';
|
|
30
49
|
var incorrectAttribute = 'incorrect';
|
|
31
|
-
|
|
50
|
+
|
|
51
|
+
var _ref = (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null);
|
|
52
|
+
|
|
53
|
+
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconXSolid, null);
|
|
54
|
+
|
|
55
|
+
var ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
56
|
+
(0, _inherits2.default)(ChoiceTypeTable, _Component);
|
|
57
|
+
|
|
58
|
+
var _super = (0, _createSuper2.default)(ChoiceTypeTable);
|
|
59
|
+
|
|
32
60
|
function ChoiceTypeTable() {
|
|
61
|
+
var _this$rowStyleMap;
|
|
62
|
+
|
|
33
63
|
var _this;
|
|
64
|
+
|
|
34
65
|
(0, _classCallCheck2.default)(this, ChoiceTypeTable);
|
|
66
|
+
|
|
35
67
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36
68
|
args[_key] = arguments[_key];
|
|
37
69
|
}
|
|
38
|
-
|
|
39
|
-
_this
|
|
70
|
+
|
|
71
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
72
|
+
_this.rowStyleMap = (_this$rowStyleMap = {}, (0, _defineProperty2.default)(_this$rowStyleMap, correctAttribute, _this.props.styles.correctRow), (0, _defineProperty2.default)(_this$rowStyleMap, incorrectAttribute, _this.props.styles.incorrectRow), _this$rowStyleMap);
|
|
73
|
+
|
|
40
74
|
_this.renderIcon = function (correct) {
|
|
41
75
|
var iconStyles = [_this.props.styles.iconWrapper, correct ? _this.props.styles.iconCorrect : {}];
|
|
42
76
|
return (0, _emotion.jsx)("div", {
|
|
43
77
|
css: iconStyles
|
|
44
|
-
}, correct ?
|
|
78
|
+
}, correct ? _ref : _ref2);
|
|
45
79
|
};
|
|
80
|
+
|
|
46
81
|
_this.renderFirstCell = function (content) {
|
|
47
82
|
return (0, _emotion.jsx)("div", {
|
|
48
83
|
css: _this.props.styles.firstTextContainer
|
|
49
84
|
}, content);
|
|
50
85
|
};
|
|
86
|
+
|
|
51
87
|
_this.renderCell = function (content) {
|
|
52
88
|
return (0, _emotion.jsx)("div", {
|
|
53
89
|
css: _this.props.styles.textContainer
|
|
54
90
|
}, content);
|
|
55
91
|
};
|
|
92
|
+
|
|
56
93
|
_this.answerLabel = function (correct) {
|
|
57
94
|
return correct ? (0, _formatMessage.default)('Correct answer') : (0, _formatMessage.default)('Incorrect answer');
|
|
58
95
|
};
|
|
96
|
+
|
|
59
97
|
_this.extractChoiceText = function (choiceBody, correct) {
|
|
60
98
|
var text = (0, _quizInteractions.extractTextFromHtml)(choiceBody);
|
|
61
99
|
if (text.trim().length > 0) return text;
|
|
62
100
|
return _this.answerLabel(correct);
|
|
63
101
|
};
|
|
102
|
+
|
|
64
103
|
_this.nextChoiceIsCorrect = function (choices, choiceIndex) {
|
|
65
104
|
var _choices$choiceIndex;
|
|
105
|
+
|
|
66
106
|
return (_choices$choiceIndex = choices[choiceIndex]) === null || _choices$choiceIndex === void 0 ? void 0 : _choices$choiceIndex.correct;
|
|
67
107
|
};
|
|
108
|
+
|
|
68
109
|
_this.getDataIconAttribute = function (correct, choiceIndex) {
|
|
69
110
|
var choices = _this.props.choices;
|
|
111
|
+
|
|
70
112
|
if (_this.nextChoiceIsCorrect(choices, choiceIndex + 1) && !correct) {
|
|
71
113
|
return '';
|
|
72
114
|
}
|
|
115
|
+
|
|
73
116
|
return correct ? correctAttribute : incorrectAttribute;
|
|
74
117
|
};
|
|
118
|
+
|
|
75
119
|
_this.renderRow = function (choice, choiceIndex) {
|
|
76
120
|
var correct = choice.correct,
|
|
77
|
-
|
|
121
|
+
body = choice.body;
|
|
122
|
+
|
|
78
123
|
var extractedBody = _this.extractChoiceText(body, correct);
|
|
124
|
+
|
|
79
125
|
var screenReaderContent = "".concat(_this.answerLabel(correct), ": ").concat(extractedBody);
|
|
80
126
|
return (0, _emotion.jsx)(_uiTable.Table.Row, {
|
|
81
127
|
key: choiceIndex
|
|
@@ -107,24 +153,31 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(
|
|
|
107
153
|
textAlign: "center"
|
|
108
154
|
}, _this.renderCell("".concat(choice.percentage, "%"))));
|
|
109
155
|
};
|
|
156
|
+
|
|
110
157
|
_this.componentDidMount = function () {
|
|
111
158
|
_this.applyStylesToTable();
|
|
159
|
+
|
|
112
160
|
_this.props.makeStyles();
|
|
113
161
|
};
|
|
162
|
+
|
|
114
163
|
_this.componentDidUpdate = function () {
|
|
115
164
|
_this.props.makeStyles();
|
|
116
165
|
};
|
|
166
|
+
|
|
117
167
|
_this.applyStylesToTable = function () {
|
|
118
168
|
if (_this.tableRef) {
|
|
119
169
|
var _iterator = (0, _createForOfIteratorHelper2.default)(_this.tableRef.rows),
|
|
120
|
-
|
|
170
|
+
_step;
|
|
171
|
+
|
|
121
172
|
try {
|
|
122
173
|
var _loop = function _loop() {
|
|
123
174
|
var _row$querySelector, _row$querySelector$da;
|
|
175
|
+
|
|
124
176
|
var row = _step.value;
|
|
125
177
|
var icon = (_row$querySelector = row.querySelector('tr th:first-child [data-icon]')) === null || _row$querySelector === void 0 ? void 0 : (_row$querySelector$da = _row$querySelector.dataset) === null || _row$querySelector$da === void 0 ? void 0 : _row$querySelector$da.icon;
|
|
126
178
|
var td = row.querySelectorAll('td');
|
|
127
179
|
var th = row.querySelectorAll('th');
|
|
180
|
+
|
|
128
181
|
if (icon) {
|
|
129
182
|
td.forEach(function (cell) {
|
|
130
183
|
cell.setAttribute('style', (0, _emotion.css)(_this.rowStyleMap[icon].td).styles);
|
|
@@ -132,13 +185,16 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(
|
|
|
132
185
|
th.forEach(function (cell) {
|
|
133
186
|
cell.setAttribute('style', (0, _emotion.css)(_this.rowStyleMap[icon].th).styles);
|
|
134
187
|
});
|
|
188
|
+
|
|
135
189
|
if (icon === correctAttribute) {
|
|
136
190
|
row.querySelector('th:first-child').setAttribute('style', (0, _emotion.css)(_this.props.styles.correctRow.thFirstChild).styles);
|
|
137
191
|
row.querySelector('td:last-child').setAttribute('style', (0, _emotion.css)(_this.props.styles.correctRow.tdLastChild).styles);
|
|
138
192
|
}
|
|
139
193
|
}
|
|
194
|
+
|
|
140
195
|
row.setAttribute('style', (0, _emotion.css)(_this.rowStyleMap[icon]).styles);
|
|
141
196
|
};
|
|
197
|
+
|
|
142
198
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
143
199
|
_loop();
|
|
144
200
|
}
|
|
@@ -149,13 +205,15 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(
|
|
|
149
205
|
}
|
|
150
206
|
}
|
|
151
207
|
};
|
|
208
|
+
|
|
152
209
|
_this.setTableRef = function (el) {
|
|
153
210
|
return _this.tableRef = el;
|
|
154
211
|
};
|
|
212
|
+
|
|
155
213
|
_this.render = function () {
|
|
156
214
|
var _this$props = _this.props,
|
|
157
|
-
|
|
158
|
-
|
|
215
|
+
choices = _this$props.choices,
|
|
216
|
+
itemId = _this$props.itemId;
|
|
159
217
|
var answerHeaderId = "answer-frequency-summary-answer-".concat(itemId);
|
|
160
218
|
var respondentsHeaderId = "answer-frequency-summary-respondents-".concat(itemId);
|
|
161
219
|
var percentageHeaderId = "answer-frequency-summary-percentage-".concat(itemId);
|
|
@@ -181,17 +239,20 @@ var ChoiceTypeTable = exports.ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(
|
|
|
181
239
|
textAlign: "center"
|
|
182
240
|
}, (0, _formatMessage.default)('Percentage')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, choices.map(_this.renderRow))));
|
|
183
241
|
};
|
|
242
|
+
|
|
184
243
|
return _this;
|
|
185
244
|
}
|
|
186
|
-
|
|
187
|
-
return
|
|
188
|
-
}(_react.Component),
|
|
245
|
+
|
|
246
|
+
return ChoiceTypeTable;
|
|
247
|
+
}(_react.Component), _class2.propTypes = {
|
|
189
248
|
itemId: _propTypes.default.number.isRequired,
|
|
190
249
|
choices: _propTypes.default.arrayOf(_propTypes2.choiceTypeObject).isRequired,
|
|
250
|
+
|
|
191
251
|
/* eslint-disable-next-line react/no-unused-prop-types */
|
|
192
252
|
tableContainerStyles: _propTypes.default.object,
|
|
193
253
|
styles: _propTypes.default.object,
|
|
194
254
|
makeStyles: _propTypes.default.func
|
|
195
|
-
},
|
|
255
|
+
}, _class2.defaultProps = {
|
|
196
256
|
tableContainerStyles: void 0
|
|
197
|
-
},
|
|
257
|
+
}, _temp)) || _class);
|
|
258
|
+
exports.ChoiceTypeTable = ChoiceTypeTable;
|
|
@@ -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 tableContainerStyles = props.tableContainerStyles || {
|
|
11
14
|
width: 'calc(25% + 350px)',
|
|
@@ -95,4 +98,6 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
95
98
|
}
|
|
96
99
|
};
|
|
97
100
|
};
|
|
98
|
-
|
|
101
|
+
|
|
102
|
+
var _default = generateStyle;
|
|
103
|
+
exports.default = _default;
|
|
@@ -4,9 +4,10 @@ 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
|
+
colors = _ref.colors;
|
|
10
11
|
return {
|
|
11
12
|
tableBottomPadding: spacing.medium,
|
|
12
13
|
colorGreen: colors.shamrock,
|
|
@@ -14,4 +15,6 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
14
15
|
cellPadding: '0.75rem 0.75rem'
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
var _default = generateComponentTheme;
|
|
20
|
+
exports.default = _default;
|
|
@@ -1,41 +1,63 @@
|
|
|
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.ExpandableCard = void 0;
|
|
8
|
-
|
|
9
|
+
|
|
9
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
+
|
|
14
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
15
|
+
|
|
12
16
|
var _react = require("react");
|
|
13
|
-
|
|
17
|
+
|
|
18
|
+
var _index = _interopRequireDefault(require("../../../../../../../common/components/shared/Card/index.js"));
|
|
19
|
+
|
|
14
20
|
var _uiFlex = require("@instructure/ui-flex");
|
|
21
|
+
|
|
15
22
|
var _emotion = require("@instructure/emotion");
|
|
16
|
-
|
|
23
|
+
|
|
24
|
+
var _index2 = _interopRequireDefault(require("../../../../../../../common/components/shared/ExpandButton/index.js"));
|
|
25
|
+
|
|
17
26
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
18
|
-
|
|
19
|
-
var
|
|
27
|
+
|
|
28
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
29
|
+
|
|
30
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
31
|
+
|
|
20
32
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
|
|
34
|
+
var _dec, _class, _class2, _temp;
|
|
35
|
+
|
|
36
|
+
var ExpandableCard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
37
|
+
(0, _inherits2.default)(ExpandableCard, _Component);
|
|
38
|
+
|
|
39
|
+
var _super = (0, _createSuper2.default)(ExpandableCard);
|
|
40
|
+
|
|
24
41
|
function ExpandableCard() {
|
|
25
42
|
var _this;
|
|
43
|
+
|
|
26
44
|
(0, _classCallCheck2.default)(this, ExpandableCard);
|
|
45
|
+
|
|
27
46
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
47
|
args[_key] = arguments[_key];
|
|
29
48
|
}
|
|
30
|
-
|
|
49
|
+
|
|
50
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
31
51
|
_this.state = {
|
|
32
52
|
bodyExpanded: false
|
|
33
53
|
};
|
|
54
|
+
|
|
34
55
|
_this.handleBodyToggle = function () {
|
|
35
56
|
_this.setState({
|
|
36
57
|
bodyExpanded: !_this.state.bodyExpanded
|
|
37
58
|
});
|
|
38
59
|
};
|
|
60
|
+
|
|
39
61
|
_this.renderGroup = function () {
|
|
40
62
|
var headLine = _this.props.headLine;
|
|
41
63
|
return (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
@@ -47,16 +69,17 @@ var ExpandableCard = exports.ExpandableCard = (_dec = (0, _emotion.withStyle)(_s
|
|
|
47
69
|
margin: "xx-small none none none"
|
|
48
70
|
}, headLine), (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
49
71
|
margin: "none none none x-small"
|
|
50
|
-
}, (0, _emotion.jsx)(
|
|
72
|
+
}, (0, _emotion.jsx)(_index2.default, {
|
|
51
73
|
onClick: _this.handleBodyToggle,
|
|
52
74
|
title: _this.state.bodyExpanded ? (0, _formatMessage.default)('collapse group result') : (0, _formatMessage.default)('expand group result'),
|
|
53
75
|
isExpanded: _this.state.bodyExpanded
|
|
54
76
|
})));
|
|
55
77
|
};
|
|
78
|
+
|
|
56
79
|
_this.renderBody = function () {
|
|
57
80
|
var _this$props = _this.props,
|
|
58
|
-
|
|
59
|
-
|
|
81
|
+
content = _this$props.content,
|
|
82
|
+
styles = _this$props.styles;
|
|
60
83
|
var bodyContainer = styles.bodyContainer;
|
|
61
84
|
return (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
62
85
|
shouldShrink: true,
|
|
@@ -65,13 +88,14 @@ var ExpandableCard = exports.ExpandableCard = (_dec = (0, _emotion.withStyle)(_s
|
|
|
65
88
|
css: bodyContainer
|
|
66
89
|
}, content));
|
|
67
90
|
};
|
|
91
|
+
|
|
68
92
|
_this.render = function () {
|
|
69
93
|
var styles = _this.props.styles;
|
|
70
94
|
var groupWrapper = styles.groupWrapper;
|
|
71
95
|
var bodyExpanded = _this.state.bodyExpanded;
|
|
72
96
|
return (0, _emotion.jsx)("div", {
|
|
73
97
|
css: groupWrapper
|
|
74
|
-
}, (0, _emotion.jsx)(
|
|
98
|
+
}, (0, _emotion.jsx)(_index.default, null, (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
75
99
|
direction: "column",
|
|
76
100
|
justifyItems: "start"
|
|
77
101
|
}, (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
@@ -87,12 +111,14 @@ var ExpandableCard = exports.ExpandableCard = (_dec = (0, _emotion.withStyle)(_s
|
|
|
87
111
|
overflowY: "hidden"
|
|
88
112
|
}, _this.renderGroup()), bodyExpanded && _this.renderBody())))));
|
|
89
113
|
};
|
|
114
|
+
|
|
90
115
|
return _this;
|
|
91
116
|
}
|
|
92
|
-
|
|
93
|
-
return
|
|
94
|
-
}(_react.Component),
|
|
117
|
+
|
|
118
|
+
return ExpandableCard;
|
|
119
|
+
}(_react.Component), _class2.propTypes = {
|
|
95
120
|
headLine: _propTypes.default.node,
|
|
96
121
|
content: _propTypes.default.node,
|
|
97
122
|
styles: _propTypes.default.object
|
|
98
|
-
}.isRequired,
|
|
123
|
+
}.isRequired, _temp)) || _class);
|
|
124
|
+
exports.ExpandableCard = ExpandableCard;
|
|
@@ -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
|
groupWrapper: {
|
|
@@ -18,4 +19,6 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
|
|
23
|
+
var _default = generateStyle;
|
|
24
|
+
exports.default = _default;
|