@instructure/quiz-core 20.17.2-rc.8 → 20.17.2
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/CHANGELOG.md +14 -0
- package/es/banks/api/bankEntries.js +13 -20
- package/es/banks/api/banks.js +22 -34
- package/es/banks/api/copyingBanksPoller.js +57 -67
- package/es/banks/api/tagAssociations.js +26 -40
- package/es/banks/components/AddBankEntryModal/index.js +7 -10
- package/es/banks/components/AddBankEntryModal/presenter.js +5 -25
- package/es/banks/components/AddToBankModal/index.js +12 -12
- package/es/banks/components/AddToBankModal/presenter.js +51 -94
- package/es/banks/components/AsyncSearch/index.js +13 -70
- package/es/banks/components/Bank/index.js +12 -12
- package/es/banks/components/Bank/presenter.js +57 -115
- package/es/banks/components/Bank/styles.js +0 -2
- package/es/banks/components/Bank/theme.js +2 -3
- package/es/banks/components/BankEntriesList/index.js +3 -3
- package/es/banks/components/BankEntriesList/presenter.js +13 -27
- package/es/banks/components/BankEntriesList/styles.js +0 -1
- package/es/banks/components/BankEntriesList/theme.js +0 -1
- package/es/banks/components/BankEntry/index.js +14 -19
- package/es/banks/components/BankEntry/presenter.js +160 -257
- package/es/banks/components/BankEntry/styles.js +0 -2
- package/es/banks/components/BankEntry/theme.js +3 -4
- package/es/banks/components/BankEntryRow/BankEntryRow.examples.js +2 -4
- package/es/banks/components/BankEntryRow/index.js +9 -14
- package/es/banks/components/BankEntryRow/presenter.js +27 -59
- package/es/banks/components/BankEntryRow/styles.js +0 -1
- package/es/banks/components/BankEntryRow/theme.js +3 -4
- package/es/banks/components/BankSearch/BankSearch.stories.js +1 -1
- package/es/banks/components/BankSearch/index.js +4 -6
- package/es/banks/components/BankSearch/presenter.js +21 -42
- package/es/banks/components/BankSearch/styles.js +0 -1
- package/es/banks/components/BankSearch/theme.js +0 -1
- package/es/banks/components/Banks/index.js +7 -10
- package/es/banks/components/Banks/presenter.js +31 -85
- package/es/banks/components/Banks/styles.js +0 -1
- package/es/banks/components/Banks/theme.js +2 -3
- package/es/banks/components/BanksList/index.js +8 -8
- package/es/banks/components/BanksList/presenter.js +79 -141
- package/es/banks/components/BanksList/styles.js +0 -1
- package/es/banks/components/BanksList/theme.js +3 -4
- package/es/banks/components/CopyMoveBankEntryModal/index.js +9 -9
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +10 -39
- package/es/banks/components/CreateBankModal/index.js +10 -13
- package/es/banks/components/CreateBankModal/presenter.js +13 -42
- package/es/banks/components/CreateBankModal/styles.js +0 -1
- package/es/banks/components/CreateBankModal/theme.js +1 -2
- package/es/banks/components/EditBankModal/index.js +7 -10
- package/es/banks/components/EditBankModal/presenter.js +13 -36
- package/es/banks/components/EditBankModal/styles.js +0 -1
- package/es/banks/components/EditBankModal/theme.js +1 -2
- package/es/banks/components/HeaderBreadCrumb/index.js +13 -26
- package/es/banks/components/HeaderMenu/index.js +4 -7
- package/es/banks/components/HeaderMenu/presenter.js +15 -29
- package/es/banks/components/HeaderMenu/styles.js +0 -1
- package/es/banks/components/HeaderMenu/theme.js +1 -2
- package/es/banks/components/NavWrapper/index.js +2 -4
- package/es/banks/components/NavWrapper/presenter.js +19 -38
- package/es/banks/components/NavWrapper/styles.js +0 -2
- package/es/banks/components/NavWrapper/theme.js +4 -5
- package/es/banks/components/SharingModal/ContextualIconButton/index.js +5 -21
- package/es/banks/components/SharingModal/RootAccountSharing.js +16 -33
- package/es/banks/components/SharingModal/ShareList/index.js +16 -37
- package/es/banks/components/SharingModal/ShareList/styles.js +0 -1
- package/es/banks/components/SharingModal/index.js +6 -8
- package/es/banks/components/SharingModal/presenter.js +56 -126
- package/es/banks/components/SharingModal/styles.js +0 -1
- package/es/banks/components/SharingModal/theme.js +2 -3
- package/es/building/api/items.js +81 -103
- package/es/building/api/qtiImports.js +14 -22
- package/es/building/api/quizEntries.js +57 -65
- package/es/building/api/quizzes.js +34 -29
- package/es/building/api/stimuli.js +9 -6
- package/es/building/components/QTIImportModal/index.js +6 -5
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +17 -38
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +13 -13
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +27 -41
- package/es/building/components/layout/Sidebar/SidebarItem/styles.js +1 -4
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +0 -1
- package/es/building/components/layout/Sidebar/Stimulus/index.js +11 -12
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +25 -39
- package/es/building/components/layout/Sidebar/Stimulus/styles.js +1 -4
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +0 -1
- package/es/building/components/layout/Sidebar/index.js +15 -15
- package/es/building/components/layout/Sidebar/presenter.js +21 -51
- package/es/building/components/layout/Sidebar/styles.js +0 -2
- package/es/building/components/layout/Sidebar/theme.js +0 -1
- package/es/building/components/layout/header/BuildingButtons/index.js +9 -11
- package/es/building/components/layout/header/BuildingButtons/presenter.js +15 -64
- package/es/building/components/layout/header/BuildingButtons/styles.js +0 -2
- package/es/building/components/layout/header/BuildingButtons/theme.js +2 -3
- package/es/building/components/layout/header/SDKBuildingButtons/index.js +3 -3
- package/es/building/components/resources/ActionButtons/index.js +4 -7
- package/es/building/components/resources/ActionButtons/presenter.js +14 -34
- package/es/building/components/resources/ActionButtons/styles.js +0 -3
- package/es/building/components/resources/ActionButtons/theme.js +1 -2
- package/es/building/components/resources/AddToBankOptions/index.js +38 -62
- package/es/building/components/resources/AddToBankOptions/styles.js +0 -1
- package/es/building/components/resources/AddToBankOptions/theme.js +1 -2
- package/es/building/components/resources/BanksTray/index.js +3 -5
- package/es/building/components/resources/BanksTray/presenter.js +12 -40
- package/es/building/components/resources/DeleteStimulusModal/index.js +8 -12
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +21 -56
- package/es/building/components/resources/DeleteStimulusModal/styles.js +0 -1
- package/es/building/components/resources/DeleteStimulusModal/theme.js +1 -2
- package/es/building/components/resources/ItemFeedbackModal/index.js +8 -10
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +12 -35
- package/es/building/components/resources/ItemFeedbackModal/styles.js +0 -1
- package/es/building/components/resources/ItemFeedbackModal/theme.js +0 -1
- package/es/building/components/resources/MoveImmutableModal/index.js +11 -14
- package/es/building/components/resources/MoveImmutableModal/presenter.js +8 -24
- package/es/building/components/resources/quiz/editButton/EditButton.js +5 -20
- package/es/building/components/resources/quiz/instructions/Edit/index.js +2 -4
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +21 -26
- package/es/building/components/resources/quiz/instructions/Edit/styles.js +0 -1
- package/es/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +1 -1
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +7 -9
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +31 -55
- package/es/building/components/resources/quiz/instructions/Instructions/styles.js +0 -2
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +2 -2
- package/es/building/components/resources/quiz/instructions/Show/index.js +18 -29
- package/es/building/components/resources/quiz/instructions/Show/styles.js +0 -1
- package/es/building/components/resources/quiz/instructions/Show/theme.js +2 -2
- package/es/building/components/resources/quiz/title/Edit/index.js +21 -36
- package/es/building/components/resources/quiz/title/Edit/styles.js +0 -2
- package/es/building/components/resources/quiz/title/Edit/theme.js +3 -4
- package/es/building/components/resources/quiz/title/Show/index.js +17 -28
- package/es/building/components/resources/quiz/title/Show/styles.js +0 -1
- package/es/building/components/resources/quiz/title/Show/theme.js +0 -1
- package/es/building/components/resources/quiz/title/Title/Title.examples.js +1 -1
- package/es/building/components/resources/quiz/title/Title/index.js +8 -10
- package/es/building/components/resources/quiz/title/Title/presenter.js +31 -48
- package/es/building/components/resources/quiz/title/Title/styles.js +0 -2
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +14 -16
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +30 -66
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +4 -16
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +16 -51
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +15 -30
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +5 -7
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +24 -54
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +70 -124
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/index.js +11 -14
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +94 -165
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -4
- package/es/building/components/resources/quizEntry/QuizEntryShow/index.js +8 -10
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +37 -71
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -5
- package/es/common/actions/alerts.js +7 -7
- package/es/common/actions/modifications.js +37 -16
- package/es/common/actions/quizSessions.js +5 -15
- package/es/common/actions/rce.js +3 -2
- package/es/common/api/callHandlers.js +14 -15
- package/es/common/api/camelizeHelpers.js +6 -6
- package/es/common/api/features.js +3 -5
- package/es/common/api/fileUpload.js +4 -3
- package/es/common/api/getPersistenceActions.js +41 -40
- package/es/common/api/helpers.js +77 -100
- package/es/common/api/interactionTypes.js +2 -2
- package/es/common/api/quizSessions.js +27 -32
- package/es/common/api/quizzes.js +10 -6
- package/es/common/api/schema.js +6 -4
- package/es/common/components/ApiFeatureFlagInitializer/index.js +8 -12
- package/es/common/components/ConfirmationModal/index.js +3 -6
- package/es/common/components/ConfirmationModal/presenter.js +13 -29
- package/es/common/components/ImportModal/ImportFileSelector/index.js +24 -40
- package/es/common/components/ImportModal/ImportFileSelector/styles.js +0 -1
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +2 -3
- package/es/common/components/ImportModal/index.js +13 -13
- package/es/common/components/ImportModal/presenter.js +19 -69
- package/es/common/components/ImportModal/styles.js +0 -1
- package/es/common/components/ImportModal/theme.js +0 -1
- package/es/common/components/LearnosityCalculator/index.js +36 -60
- package/es/common/components/Pin/index.js +1 -1
- package/es/common/components/Pin/presenter.js +4 -17
- package/es/common/components/PreviewFrame/examples.config.js +2 -4
- package/es/common/components/PreviewFrame/index.js +8 -18
- package/es/common/components/PrintFontSizeModal/index.js +1 -1
- package/es/common/components/PrintFontSizeModal/presenter.js +24 -35
- package/es/common/components/PrintFontSizeModal/styles.js +0 -1
- package/es/common/components/PrintFontSizeModal/theme.js +2 -3
- package/es/common/components/RceConfigProvider/index.js +4 -6
- package/es/common/components/RceConfigProvider/presenter.js +93 -125
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +5 -11
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +26 -37
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -11
- package/es/common/components/RceConfigProvider/rceConfigUtils.js +2 -2
- package/es/common/components/SDKApp/index.js +30 -61
- package/es/common/components/SDKApp/styles.js +0 -1
- 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 +4 -6
- package/es/common/components/alerts/presenter.js +11 -30
- package/es/common/components/alerts/styles.js +0 -2
- package/es/common/components/alerts/theme.js +1 -2
- package/es/common/components/layout/Page/index.js +11 -21
- package/es/common/components/layout/Page/styles.js +0 -2
- package/es/common/components/layout/Page/theme.js +2 -3
- package/es/common/components/layout/header/Calculator/index.js +7 -9
- package/es/common/components/layout/header/Calculator/presenter.js +9 -22
- package/es/common/components/layout/header/HeaderMenuButton/index.js +5 -5
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +14 -36
- package/es/common/components/layout/header/HeaderMenuButton/styles.js +0 -2
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +2 -3
- package/es/common/components/layout/header/Timer/index.js +6 -9
- package/es/common/components/layout/header/Timer/presenter.js +19 -49
- package/es/common/components/layout/header/Timer/styles.js +0 -1
- package/es/common/components/layout/header/Timer/theme.js +3 -4
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +10 -20
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -1
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -1
- package/es/common/components/layout/navbar/index.js +15 -39
- package/es/common/components/layout/navbar/styles.js +0 -1
- package/es/common/components/layout/navbar/theme.js +1 -2
- package/es/common/components/layout/sidebar/PositionSummary/index.js +10 -20
- package/es/common/components/layout/sidebar/PositionSummary/styles.js +0 -1
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +3 -4
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +7 -18
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +6 -10
- package/es/common/components/layout/sidebar/Sidebar/index.js +39 -81
- package/es/common/components/layout/sidebar/Sidebar/styles.js +4 -9
- package/es/common/components/layout/sidebar/Sidebar/theme.js +5 -7
- package/es/common/components/layout/sidebar/SidebarItem/index.js +5 -5
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +35 -51
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +0 -2
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +3 -4
- package/es/common/components/layout/sidebar/Stimulus/Collection/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +23 -39
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +1 -3
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/index.js +3 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +20 -43
- package/es/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -3
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +11 -21
- package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/index.js +3 -5
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +28 -49
- package/es/common/components/layout/sidebar/Stimulus/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/theme.js +3 -4
- package/es/common/components/resources/BankSelection/index.js +5 -5
- package/es/common/components/resources/BankSelection/presenter.js +16 -49
- package/es/common/components/resources/WarningWrapper/index.js +11 -25
- package/es/common/components/resources/WarningWrapper/styles.js +0 -1
- package/es/common/components/resources/WarningWrapper/theme.js +2 -3
- package/es/common/components/resources/entry/EntrySave/index.js +10 -10
- package/es/common/components/resources/entry/EntrySave/presenter.js +95 -150
- package/es/common/components/resources/item/ItemEdit/index.js +16 -18
- package/es/common/components/resources/item/ItemEdit/presenter.js +18 -41
- package/es/common/components/resources/item/ItemOverride/index.js +9 -11
- package/es/common/components/resources/item/ItemOverride/presenter.js +6 -18
- package/es/common/components/resources/item/ItemShow/index.js +7 -17
- package/es/common/components/resources/positionBox/PositionBox.js +11 -21
- package/es/common/components/resources/positionBox/styles.js +0 -2
- package/es/common/components/resources/positionBox/theme.js +2 -3
- package/es/common/components/resources/quiz/AddContent/Body/index.js +7 -9
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +23 -45
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +4 -9
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Button/index.js +11 -25
- package/es/common/components/resources/quiz/AddContent/Button/styles.js +0 -2
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Modal/index.js +8 -11
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +5 -13
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +7 -8
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +16 -37
- package/es/common/components/resources/quiz/AddContent/Popover/styles.js +0 -1
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -2
- package/es/common/components/resources/quiz/info/QuizInfo.js +6 -14
- package/es/common/components/resources/quiz/instructions/Instructions.js +13 -22
- package/es/common/components/resources/quiz/instructions/styles.js +0 -1
- package/es/common/components/resources/quiz/instructions/theme.js +1 -2
- package/es/common/components/resources/quiz/title/Title.js +13 -21
- package/es/common/components/resources/quiz/title/styles.js +0 -1
- package/es/common/components/resources/quiz/title/theme.js +1 -2
- package/es/common/components/resources/quizSessionResult/Header/index.js +11 -26
- package/es/common/components/resources/quizSessionResult/Header/styles.js +0 -1
- package/es/common/components/resources/quizSessionResult/Header/theme.js +1 -2
- package/es/common/components/resources/quizSessionResult/Info/Info.examples.js +2 -2
- package/es/common/components/resources/quizSessionResult/Info/index.js +107 -125
- package/es/common/components/resources/quizSessionResult/Info/styles.js +0 -2
- package/es/common/components/resources/quizSessionResult/Info/theme.js +1 -2
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +10 -22
- package/es/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -2
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -5
- package/es/common/components/resources/sessionItemResult/SessionItemResult/index.js +4 -6
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +64 -90
- package/es/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +15 -31
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -4
- package/es/common/components/resources/stimulus/Stimulus/index.js +5 -8
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +22 -39
- package/es/common/components/resources/stimulus/Stimulus/styles.js +1 -5
- package/es/common/components/resources/stimulus/Stimulus/theme.js +3 -4
- package/es/common/components/resources/stimulus/StimulusEdit/index.js +10 -13
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +111 -190
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusEditInfo/index.js +4 -7
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +16 -43
- package/es/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusShow/index.js +15 -33
- package/es/common/components/resources/stimulus/StimulusShow/styles.js +0 -1
- package/es/common/components/resources/stimulus/StimulusShow/theme.js +2 -3
- package/es/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +4 -14
- package/es/common/components/shared/Card/CardContent/index.js +11 -21
- package/es/common/components/shared/Card/CardContent/styles.js +0 -2
- package/es/common/components/shared/Card/CardContent/theme.js +4 -5
- package/es/common/components/shared/Card/CardWrapper/index.js +11 -21
- package/es/common/components/shared/Card/CardWrapper/styles.js +0 -2
- package/es/common/components/shared/Card/CardWrapper/theme.js +2 -3
- package/es/common/components/shared/Card/index.js +6 -6
- package/es/common/components/shared/ExpandButton/index.js +10 -20
- package/es/common/components/shared/ExpandButton/styles.js +0 -2
- package/es/common/components/shared/ExpandButton/theme.js +0 -1
- package/es/common/components/shared/FormattedDuration/index.js +9 -20
- package/es/common/components/shared/IfFeature/index.js +3 -3
- package/es/common/components/shared/IfFeature/presenter.js +4 -13
- package/es/common/components/shared/InteractionTypes/index.js +2 -4
- package/es/common/components/shared/InteractionTypes/presenter.js +14 -33
- package/es/common/components/shared/InteractionTypes/styles.js +0 -1
- package/es/common/components/shared/InteractionTypes/theme.js +2 -3
- package/es/common/components/shared/PaginatedCollection/index.js +3 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +46 -75
- package/es/common/components/shared/PaginatedCollection/styles.js +0 -1
- package/es/common/components/shared/PaginatedCollection/theme.js +2 -3
- package/es/common/components/shared/Paginator/index.js +11 -24
- package/es/common/components/shared/Paginator/styles.js +0 -1
- package/es/common/components/shared/Paginator/theme.js +0 -1
- package/es/common/components/shared/PrintTrigger/index.js +7 -9
- package/es/common/components/shared/PrintTrigger/presenter.js +12 -37
- package/es/common/components/shared/TagDisplay/index.js +10 -21
- package/es/common/components/shared/TagDisplay/styles.js +0 -1
- package/es/common/components/shared/TagSelect/index.js +1 -1
- package/es/common/components/shared/TagSelect/presenter.js +15 -49
- package/es/common/components/shared/TagSuggestSelect/index.js +4 -7
- package/es/common/components/shared/TagSuggestSelect/presenter.js +12 -26
- package/es/common/components/shared/TagWrapper/index.js +1 -1
- package/es/common/components/shared/TagWrapper/presenter.js +7 -20
- package/es/common/components/shared/TimeUnitsInput/index.js +29 -61
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +18 -33
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -2
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -3
- package/es/common/components/shared/drag_and_drop/DragHandle/index.js +9 -9
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +26 -67
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +22 -64
- package/es/common/components/shared/errors/Errors.js +11 -27
- package/es/common/components/shared/errors/styles.js +0 -1
- package/es/common/components/shared/errors/theme.js +1 -2
- package/es/common/components/shared/file_selector/FileSelector.js +12 -24
- package/es/common/components/shared/file_selector/styles.js +0 -1
- package/es/common/components/shared/file_selector/theme.js +2 -3
- package/es/common/components/shared/functionality/componentWithOutsideClick.js +17 -27
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +12 -21
- package/es/common/components/shared/functionality/disableDraggingOverride.js +2 -3
- package/es/common/components/shared/functionality/makeEditable.js +21 -35
- package/es/common/components/shared/functionality/makeScrollable.js +27 -46
- package/es/common/components/shared/overlay/index.js +16 -29
- package/es/common/components/shared/overlay/styles.js +0 -2
- package/es/common/components/shared/overlay/theme.js +2 -3
- package/es/common/components/shared/return_button/ReturnButton.js +6 -15
- package/es/common/components/shared/spinner/Spinner.js +17 -28
- package/es/common/components/shared/spinner/styles.js +0 -1
- package/es/common/kinesis/QuizEventsLogger.js +47 -66
- package/es/common/kinesis/StreamQueue.js +9 -28
- package/es/common/kinesis/client.js +3 -5
- package/es/common/kinesis/config.js +3 -3
- package/es/common/kinesis/eventTypes.js +4 -4
- package/es/common/middleware/alertTimerMiddleware.js +3 -7
- package/es/common/middleware/crossDomainMessagingMiddleware.js +1 -4
- package/es/common/middleware/eventLoggerMiddleware.js +5 -7
- package/es/common/middleware/persistedStorageMiddleware.js +2 -7
- package/es/common/react-redux.js +0 -2
- package/es/common/records/Alert.js +5 -9
- package/es/common/records/Bank.js +7 -13
- package/es/common/records/BankEntry.js +7 -17
- package/es/common/records/Item.js +15 -22
- package/es/common/records/ItemAnalysis.js +6 -13
- package/es/common/records/QtiImport.js +5 -14
- package/es/common/records/Quiz.js +18 -27
- package/es/common/records/QuizAnalysis.js +5 -12
- package/es/common/records/QuizEntry.js +105 -152
- package/es/common/records/QuizSession.js +21 -28
- package/es/common/records/QuizSessionEvent.js +6 -13
- package/es/common/records/QuizSessionResult.js +6 -13
- package/es/common/records/Response.js +6 -13
- package/es/common/records/SessionItem.js +10 -23
- package/es/common/records/SessionItemResult.js +6 -13
- package/es/common/records/Stimulus.js +10 -17
- package/es/common/records/baseRecord.js +8 -19
- package/es/common/records/index.js +16 -32
- package/es/common/records/reduxRecord.js +9 -14
- package/es/common/reducers/alerts.js +0 -3
- package/es/common/reducers/analyses.js +1 -11
- package/es/common/reducers/bankEntries.js +0 -5
- package/es/common/reducers/bankSearch.js +4 -9
- package/es/common/reducers/banks.js +1 -13
- package/es/common/reducers/calls.js +0 -3
- package/es/common/reducers/config.js +0 -4
- package/es/common/reducers/dragAndDrop.js +0 -2
- package/es/common/reducers/editing.js +1 -3
- package/es/common/reducers/errorsShowing.js +0 -4
- package/es/common/reducers/features.js +0 -3
- package/es/common/reducers/grading.js +0 -4
- package/es/common/reducers/interactionTypes.js +0 -4
- package/es/common/reducers/items.js +0 -4
- package/es/common/reducers/modal.js +0 -6
- package/es/common/reducers/moderation.js +0 -3
- package/es/common/reducers/modifications.js +8 -40
- package/es/common/reducers/outcomes.js +0 -5
- package/es/common/reducers/printing.js +0 -2
- package/es/common/reducers/qtiImports.js +0 -5
- package/es/common/reducers/quizEntries.js +28 -39
- package/es/common/reducers/quizExport.js +0 -2
- package/es/common/reducers/quizSessionEvents.js +2 -5
- package/es/common/reducers/quizSessionResults.js +0 -4
- package/es/common/reducers/quizSessions.js +2 -11
- package/es/common/reducers/quizzes.js +0 -13
- package/es/common/reducers/rce.js +0 -6
- package/es/common/reducers/regrading.js +0 -4
- package/es/common/reducers/reporting.js +0 -12
- package/es/common/reducers/scrolling.js +0 -3
- package/es/common/reducers/sessionItemResults.js +0 -4
- package/es/common/reducers/sessionItems.js +0 -4
- package/es/common/reducers/sharedBanks.js +1 -8
- package/es/common/reducers/sidebar.js +0 -3
- package/es/common/reducers/stimuli.js +0 -4
- package/es/common/reducers/tagAssociations.js +0 -28
- package/es/common/reducers/taking.js +0 -35
- package/es/common/reducers/ui.js +0 -11
- package/es/common/reducers/upload.js +0 -7
- package/es/common/selectors/analyses.js +0 -2
- package/es/common/selectors/calculator.js +9 -10
- package/es/common/selectors/config.js +0 -2
- package/es/common/selectors/interactionTypes.js +7 -8
- package/es/common/selectors/items.js +1 -2
- package/es/common/selectors/qtiImports.js +3 -6
- package/es/common/selectors/quizSessionResults.js +1 -1
- package/es/common/selectors/quizSessions.js +3 -2
- package/es/common/selectors/quizzes.js +8 -14
- package/es/common/selectors/reporting.js +1 -3
- package/es/common/selectors/sessionItemResults.js +4 -5
- package/es/common/selectors/sessionItems.js +4 -5
- package/es/common/selectors/taking.js +1 -1
- package/es/common/util/CustomPropTypes.js +0 -12
- package/es/common/util/ExhaustivePaginatedFetcher.js +55 -73
- package/es/common/util/Fetcher.js +155 -224
- package/es/common/util/MultiWeakMap.js +1 -21
- package/es/common/util/PaginatedFetcher.js +21 -39
- package/es/common/util/ThunkQueue.js +50 -80
- package/es/common/util/TimeRecordingService.js +1 -14
- package/es/common/util/TimerService.js +5 -43
- package/es/common/util/cachePreviousArgs.js +0 -3
- package/es/common/util/callHelpers.js +0 -2
- package/es/common/util/componentForItem.js +1 -6
- package/es/common/util/crossDomainMessaging.js +0 -1
- package/es/common/util/debounceLatestPromise.js +0 -2
- package/es/common/util/featureCheck.js +6 -4
- package/es/common/util/fitbCopyHelper.js +3 -3
- package/es/common/util/formatTimespan.js +0 -10
- package/es/common/util/generateDisplayPositions.js +2 -5
- package/es/common/util/immutableHelpers.js +8 -6
- package/es/common/util/interactionTypeMetadata.js +2 -3
- package/es/common/util/interactionTypePropsHelper.js +0 -7
- package/es/common/util/interactionTypeRecordForItem.js +1 -7
- package/es/common/util/jsonify.js +1 -0
- package/es/common/util/keyboardClickable.js +0 -1
- package/es/common/util/mathRenderingUtils.js +2 -1
- package/es/common/util/maxContent.js +0 -1
- package/es/common/util/persistedState.js +4 -10
- package/es/common/util/printUtils.js +0 -4
- package/es/common/util/rceChecker.js +11 -15
- package/es/common/util/renderAlerts.js +11 -13
- package/es/common/util/serializeEvent.js +2 -4
- package/es/common/util/sessionStore.js +5 -13
- package/es/common/util/warningHelpers.js +0 -9
- package/es/common/util/withCachedArguments.js +3 -7
- package/es/common/util/withDynamoPagination.js +60 -84
- package/es/common/util/withStateCache.js +3 -10
- package/es/config.js +5 -9
- package/es/configureStore.js +52 -49
- package/es/grading/api/quizEntryRegrades.js +6 -5
- package/es/grading/api/updateResults.js +4 -8
- package/es/index.js +141 -135
- package/es/messages/LocalStorageAdapter.js +4 -15
- package/es/messages/LocalStorageLimits.js +5 -25
- package/es/messages/StorageExhaustionError.js +5 -12
- package/es/messages/postMessageService.js +5 -24
- package/es/messages/subjectHandlers/forwardMessage.js +0 -1
- package/es/messages/subjectHandlers/lti.capabilities.js +0 -1
- package/es/messages/subjectHandlers/lti.fetchWindowSize.js +0 -1
- package/es/messages/subjectHandlers/lti.frameResize.js +1 -4
- package/es/messages/subjectHandlers/lti.get_data.js +3 -8
- package/es/messages/subjectHandlers/lti.put_data.js +5 -10
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +1 -5
- package/es/messages/utils.js +0 -1
- package/es/moderating/api/quizSessionEvents.js +3 -3
- package/es/moderating/api/quizSessions.js +2 -2
- package/es/moderating/components/events/Event.js +11 -23
- package/es/moderating/components/events/RCEEvent.js +4 -12
- package/es/moderating/components/events/ResponseEvent.js +15 -30
- package/es/moderating/components/events/SessionStartEvent.js +4 -12
- package/es/moderating/components/events/styles.js +0 -1
- package/es/moderating/components/events/theme.js +1 -2
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +12 -30
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +5 -29
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +5 -29
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +7 -30
- package/es/moderating/components/resources/AccommodationsModal/index.js +11 -32
- package/es/moderating/components/resources/ElapsedTime.js +9 -16
- package/es/moderating/components/resources/ModerateTable/index.js +7 -7
- package/es/moderating/components/resources/ModerateTable/presenter.js +44 -96
- package/es/moderating/components/resources/ModerateTable/styles.js +0 -2
- package/es/moderating/components/resources/ModerateTable/theme.js +1 -2
- package/es/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +2 -4
- package/es/moderating/components/resources/ModerateTableRow/index.js +5 -5
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +29 -68
- package/es/moderating/components/resources/ModerateTableRow/story.js +3 -2
- package/es/moderating/components/resources/ModerateTableRow/styles.js +0 -1
- package/es/moderating/components/resources/ModerateTableRow/theme.js +0 -1
- package/es/moderating/components/resources/OutstandingQuizzesModal/index.js +4 -4
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +5 -32
- package/es/moderating/components/sidebar/ModerateTray/index.js +3 -3
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +4 -24
- package/es/moderating/components/sidebar/ResetQuiz/index.js +7 -9
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +17 -38
- package/es/reduxStore.js +4 -8
- package/es/reporting/api/getAnalysesExport.js +20 -29
- package/es/reporting/api/getAnalysesStatus.js +17 -22
- package/es/reporting/api/getItemAnalyses.js +17 -22
- package/es/reporting/api/getQuizAnalysis.js +17 -22
- package/es/reporting/api/itemAnalyses.js +4 -4
- package/es/reporting/api/quizAnalyses.js +4 -4
- package/es/reporting/components/Caption/index.js +11 -21
- package/es/reporting/components/Caption/styles.js +0 -1
- package/es/reporting/components/Caption/theme.js +2 -3
- package/es/reporting/components/MetricsListItem/index.js +13 -23
- package/es/reporting/components/MetricsListItem/styles.js +0 -1
- package/es/reporting/components/charts/CentileDistribution/presenter.js +17 -42
- package/es/reporting/components/charts/CentileDistribution/styles.js +0 -2
- package/es/reporting/components/charts/CentileDistribution/theme.js +2 -3
- package/es/reporting/components/charts/Distribution/presenter.js +21 -54
- package/es/reporting/components/charts/Distribution/styles.js +0 -1
- package/es/reporting/components/charts/Distribution/theme.js +1 -2
- package/es/reporting/components/charts/Legend/index.js +14 -25
- package/es/reporting/components/charts/Legend/styles.js +0 -2
- package/es/reporting/components/charts/Legend/theme.js +3 -4
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +14 -40
- package/es/reporting/components/charts/QuintileDistribution/styles.js +0 -1
- package/es/reporting/components/charts/QuintileDistribution/theme.js +1 -2
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +1 -1
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +11 -33
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +2 -14
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -6
- 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 +29 -52
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +22 -41
- package/es/reporting/components/quizAnalysis/styles.js +3 -7
- package/es/reporting/components/quizAnalysis/theme.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +15 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +15 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +9 -17
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +11 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +12 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +11 -34
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +16 -31
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +12 -24
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +12 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +27 -51
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +12 -25
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +3 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +3 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +12 -22
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +26 -62
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +20 -40
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +14 -24
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +16 -32
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +12 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +19 -44
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +13 -29
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +12 -23
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +18 -54
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +19 -61
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +15 -28
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +3 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +14 -32
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +10 -20
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +3 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +25 -55
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +21 -42
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +31 -56
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +13 -31
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +1 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +40 -53
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +41 -50
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +27 -35
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +64 -85
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/index.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +39 -77
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +11 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +104 -133
- package/es/reporting/components/resources/OutcomeAnalysis/index.js +3 -3
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +12 -25
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +7 -9
- package/es/reporting/components/resources/QuizAndItemAnalysis/index.js +7 -7
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +29 -56
- package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -1
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -3
- package/es/reporting/components/resources/ReportCard/index.js +15 -25
- package/es/reporting/components/resources/ReportCard/styles.js +0 -2
- package/es/reporting/components/resources/ReportCard/theme.js +1 -2
- package/es/reporting/components/resources/ReportList/index.js +14 -24
- package/es/reporting/components/resources/ReportList/styles.js +0 -1
- package/es/reporting/components/resources/ReportList/theme.js +0 -1
- package/es/taking/api/taking.js +41 -53
- package/es/taking/learnosity/index.js +42 -68
- package/lib/banks/api/bankEntries.js +23 -65
- package/lib/banks/api/banks.js +38 -103
- package/lib/banks/api/copyingBanksPoller.js +60 -83
- package/lib/banks/api/tagAssociations.js +32 -61
- package/lib/banks/components/AddBankEntryModal/index.js +10 -25
- package/lib/banks/components/AddBankEntryModal/presenter.js +10 -49
- package/lib/banks/components/AddToBankModal/index.js +16 -36
- package/lib/banks/components/AddToBankModal/presenter.js +56 -126
- package/lib/banks/components/AsyncSearch/index.js +18 -94
- package/lib/banks/components/Bank/index.js +17 -37
- package/lib/banks/components/Bank/presenter.js +70 -165
- package/lib/banks/components/Bank/styles.js +2 -8
- package/lib/banks/components/Bank/theme.js +3 -6
- package/lib/banks/components/BankEntriesList/index.js +6 -15
- package/lib/banks/components/BankEntriesList/presenter.js +18 -45
- package/lib/banks/components/BankEntriesList/styles.js +1 -4
- package/lib/banks/components/BankEntriesList/theme.js +1 -4
- package/lib/banks/components/BankEntry/index.js +17 -42
- package/lib/banks/components/BankEntry/presenter.js +173 -314
- package/lib/banks/components/BankEntry/styles.js +2 -7
- package/lib/banks/components/BankEntry/theme.js +4 -7
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +5 -13
- package/lib/banks/components/BankEntryRow/index.js +12 -32
- package/lib/banks/components/BankEntryRow/presenter.js +38 -100
- package/lib/banks/components/BankEntryRow/styles.js +1 -4
- package/lib/banks/components/BankEntryRow/theme.js +4 -7
- package/lib/banks/components/BankSearch/BankSearch.stories.js +9 -27
- package/lib/banks/components/BankSearch/index.js +6 -18
- package/lib/banks/components/BankSearch/presenter.js +25 -70
- package/lib/banks/components/BankSearch/styles.js +1 -4
- package/lib/banks/components/BankSearch/theme.js +1 -4
- package/lib/banks/components/Banks/index.js +10 -26
- package/lib/banks/components/Banks/presenter.js +42 -129
- package/lib/banks/components/Banks/styles.js +1 -4
- package/lib/banks/components/Banks/theme.js +3 -6
- package/lib/banks/components/BanksList/index.js +12 -26
- package/lib/banks/components/BanksList/presenter.js +88 -178
- package/lib/banks/components/BanksList/styles.js +1 -4
- package/lib/banks/components/BanksList/theme.js +4 -7
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +13 -30
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +15 -65
- package/lib/banks/components/CreateBankModal/index.js +13 -33
- package/lib/banks/components/CreateBankModal/presenter.js +16 -64
- package/lib/banks/components/CreateBankModal/styles.js +1 -4
- package/lib/banks/components/CreateBankModal/theme.js +2 -5
- package/lib/banks/components/EditBankModal/index.js +10 -27
- package/lib/banks/components/EditBankModal/presenter.js +16 -56
- package/lib/banks/components/EditBankModal/styles.js +1 -4
- package/lib/banks/components/EditBankModal/theme.js +2 -5
- package/lib/banks/components/HeaderBreadCrumb/index.js +17 -47
- package/lib/banks/components/HeaderMenu/index.js +8 -20
- package/lib/banks/components/HeaderMenu/presenter.js +19 -51
- package/lib/banks/components/HeaderMenu/styles.js +1 -4
- package/lib/banks/components/HeaderMenu/theme.js +2 -5
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +3 -9
- package/lib/banks/components/NavWrapper/index.js +4 -12
- package/lib/banks/components/NavWrapper/presenter.js +25 -64
- package/lib/banks/components/NavWrapper/styles.js +1 -5
- package/lib/banks/components/NavWrapper/theme.js +5 -8
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +8 -37
- package/lib/banks/components/SharingModal/RootAccountSharing.js +19 -55
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +2 -5
- package/lib/banks/components/SharingModal/ShareList/index.js +20 -61
- package/lib/banks/components/SharingModal/ShareList/styles.js +1 -4
- package/lib/banks/components/SharingModal/index.js +8 -22
- package/lib/banks/components/SharingModal/presenter.js +63 -164
- package/lib/banks/components/SharingModal/styles.js +1 -4
- package/lib/banks/components/SharingModal/theme.js +3 -6
- package/lib/building/api/items.js +81 -118
- package/lib/building/api/qtiImports.js +18 -47
- package/lib/building/api/quizEntries.js +64 -111
- package/lib/building/api/quizzes.js +50 -78
- package/lib/building/api/stimuli.js +9 -16
- package/lib/building/components/QTIImportModal/index.js +13 -28
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +19 -50
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +19 -46
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +34 -62
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +2 -7
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +1 -4
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +17 -43
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +33 -61
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +2 -7
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +1 -4
- package/lib/building/components/layout/Sidebar/index.js +21 -44
- package/lib/building/components/layout/Sidebar/presenter.js +28 -74
- package/lib/building/components/layout/Sidebar/styles.js +2 -7
- package/lib/building/components/layout/Sidebar/theme.js +1 -4
- package/lib/building/components/layout/header/BuildingButtons/index.js +15 -34
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +19 -86
- package/lib/building/components/layout/header/BuildingButtons/styles.js +2 -7
- package/lib/building/components/layout/header/BuildingButtons/theme.js +3 -6
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +7 -16
- package/lib/building/components/resources/ActionButtons/index.js +7 -20
- package/lib/building/components/resources/ActionButtons/presenter.js +18 -55
- package/lib/building/components/resources/ActionButtons/styles.js +2 -9
- package/lib/building/components/resources/ActionButtons/theme.js +2 -5
- package/lib/building/components/resources/AddToBankOptions/index.js +41 -81
- package/lib/building/components/resources/AddToBankOptions/styles.js +1 -4
- package/lib/building/components/resources/AddToBankOptions/theme.js +2 -5
- package/lib/building/components/resources/BanksTray/index.js +5 -13
- package/lib/building/components/resources/BanksTray/presenter.js +19 -69
- package/lib/building/components/resources/DeleteStimulusModal/index.js +10 -24
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +24 -79
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +1 -4
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +2 -5
- package/lib/building/components/resources/ItemFeedbackModal/index.js +12 -27
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +15 -53
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +1 -4
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +1 -4
- package/lib/building/components/resources/MoveImmutableModal/index.js +14 -29
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +12 -45
- package/lib/building/components/resources/quiz/editButton/EditButton.js +8 -38
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +4 -11
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +20 -45
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +1 -4
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +0 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +4 -9
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +10 -23
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +31 -75
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +2 -7
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Show/index.js +17 -47
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +1 -4
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +2 -3
- package/lib/building/components/resources/quiz/title/Edit/index.js +19 -55
- package/lib/building/components/resources/quiz/title/Edit/styles.js +2 -7
- package/lib/building/components/resources/quiz/title/Edit/theme.js +4 -7
- package/lib/building/components/resources/quiz/title/Show/index.js +17 -47
- package/lib/building/components/resources/quiz/title/Show/styles.js +1 -4
- package/lib/building/components/resources/quiz/title/Show/theme.js +1 -4
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +4 -9
- package/lib/building/components/resources/quiz/title/Title/index.js +11 -25
- package/lib/building/components/resources/quiz/title/Title/presenter.js +31 -69
- package/lib/building/components/resources/quiz/title/Title/styles.js +2 -8
- package/lib/building/components/resources/quiz/title/Title/theme.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +19 -44
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +46 -117
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +6 -23
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +2 -7
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +8 -17
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +21 -77
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +1 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +18 -47
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +1 -4
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +8 -18
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +28 -79
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +2 -8
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +74 -151
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +3 -6
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +14 -35
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +107 -206
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +1 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +4 -7
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +10 -24
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +47 -106
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +2 -8
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -8
- package/lib/common/actions/addInteractionTypes.js +0 -2
- package/lib/common/actions/alerts.js +9 -18
- package/lib/common/actions/analyses.js +4 -11
- package/lib/common/actions/bankEntries.js +3 -10
- package/lib/common/actions/bankSearch.js +6 -19
- package/lib/common/actions/banks.js +8 -27
- package/lib/common/actions/config.js +1 -5
- package/lib/common/actions/dragAndDrop.js +0 -2
- package/lib/common/actions/editing.js +1 -5
- package/lib/common/actions/errorsShowing.js +1 -5
- package/lib/common/actions/features.js +0 -3
- package/lib/common/actions/grading.js +2 -6
- package/lib/common/actions/items.js +0 -2
- package/lib/common/actions/modal.js +3 -10
- package/lib/common/actions/moderation.js +0 -3
- package/lib/common/actions/modifications.js +64 -86
- package/lib/common/actions/outcomes.js +0 -5
- package/lib/common/actions/postMessage.js +0 -2
- package/lib/common/actions/printing.js +1 -4
- package/lib/common/actions/qtiImports.js +0 -3
- package/lib/common/actions/quizEntries.js +0 -7
- package/lib/common/actions/quizExport.js +2 -6
- package/lib/common/actions/quizSessionEvents.js +2 -6
- package/lib/common/actions/quizSessionResults.js +2 -6
- package/lib/common/actions/quizSessions.js +13 -45
- package/lib/common/actions/quizzes.js +8 -27
- package/lib/common/actions/rce.js +8 -17
- package/lib/common/actions/regrading.js +1 -5
- package/lib/common/actions/reporting.js +1 -7
- package/lib/common/actions/scrolling.js +1 -4
- package/lib/common/actions/sessionItemResults.js +2 -6
- package/lib/common/actions/sessionItems.js +2 -6
- package/lib/common/actions/sharedBanks.js +5 -15
- package/lib/common/actions/sidebar.js +1 -4
- package/lib/common/actions/stimuli.js +0 -2
- package/lib/common/actions/tagAssociations.js +9 -34
- package/lib/common/actions/taking.js +17 -64
- package/lib/common/actions/ui.js +11 -39
- package/lib/common/actions/upload.js +6 -22
- package/lib/common/api/callHandlers.js +38 -111
- package/lib/common/api/camelizeHelpers.js +6 -15
- package/lib/common/api/features.js +6 -15
- package/lib/common/api/fileUpload.js +7 -14
- package/lib/common/api/getPersistenceActions.js +42 -64
- package/lib/common/api/helpers.js +84 -127
- package/lib/common/api/interactionTypes.js +5 -11
- package/lib/common/api/quizSessions.js +42 -94
- package/lib/common/api/quizzes.js +11 -19
- package/lib/common/api/schema.js +24 -42
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +12 -26
- package/lib/common/components/ConfirmationModal/index.js +5 -17
- package/lib/common/components/ConfirmationModal/presenter.js +17 -49
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +27 -57
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +1 -4
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +3 -6
- package/lib/common/components/ImportModal/index.js +18 -33
- package/lib/common/components/ImportModal/presenter.js +23 -95
- package/lib/common/components/ImportModal/styles.js +1 -4
- package/lib/common/components/ImportModal/theme.js +1 -4
- package/lib/common/components/LearnosityCalculator/index.js +43 -81
- package/lib/common/components/Pin/Pin.examples.js +2 -3
- package/lib/common/components/Pin/index.js +3 -7
- package/lib/common/components/Pin/presenter.js +8 -35
- package/lib/common/components/PreviewFrame/examples.config.js +5 -10
- package/lib/common/components/PreviewFrame/index.js +12 -36
- package/lib/common/components/PrintFontSizeModal/index.js +3 -7
- package/lib/common/components/PrintFontSizeModal/presenter.js +27 -54
- package/lib/common/components/PrintFontSizeModal/styles.js +1 -4
- package/lib/common/components/PrintFontSizeModal/theme.js +3 -6
- package/lib/common/components/RceConfigProvider/index.js +6 -14
- package/lib/common/components/RceConfigProvider/presenter.js +96 -145
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +9 -26
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +8 -26
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +29 -45
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +6 -20
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +6 -12
- package/lib/common/components/SDKApp/index.js +39 -92
- package/lib/common/components/SDKApp/styles.js +1 -4
- package/lib/common/components/SDKHeaderCalculator.js +10 -20
- package/lib/common/components/SDKMenuButton.js +7 -16
- package/lib/common/components/SDKNavBar.js +8 -17
- package/lib/common/components/SDKTimer.js +10 -20
- package/lib/common/components/alerts/index.js +7 -17
- package/lib/common/components/alerts/presenter.js +14 -48
- package/lib/common/components/alerts/styles.js +2 -7
- package/lib/common/components/alerts/theme.js +2 -5
- package/lib/common/components/layout/Page/index.js +14 -33
- package/lib/common/components/layout/Page/styles.js +2 -8
- package/lib/common/components/layout/Page/theme.js +3 -6
- package/lib/common/components/layout/header/Calculator/index.js +9 -20
- package/lib/common/components/layout/header/Calculator/presenter.js +14 -43
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +10 -22
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +17 -52
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +2 -7
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +3 -6
- package/lib/common/components/layout/header/Timer/index.js +8 -22
- package/lib/common/components/layout/header/Timer/presenter.js +25 -75
- package/lib/common/components/layout/header/Timer/styles.js +1 -4
- package/lib/common/components/layout/header/Timer/theme.js +4 -7
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -34
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +1 -4
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +1 -4
- package/lib/common/components/layout/navbar/index.js +18 -55
- package/lib/common/components/layout/navbar/styles.js +1 -4
- package/lib/common/components/layout/navbar/theme.js +2 -5
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +13 -34
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +1 -4
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +4 -7
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +8 -33
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +9 -17
- package/lib/common/components/layout/sidebar/Sidebar/index.js +43 -108
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +6 -15
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +6 -10
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +11 -27
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +39 -72
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +2 -7
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +4 -7
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +6 -13
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +27 -60
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +3 -9
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +3 -6
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +6 -13
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +23 -59
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +1 -4
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +3 -6
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +14 -35
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +1 -4
- package/lib/common/components/layout/sidebar/Stimulus/index.js +8 -21
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +35 -76
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +1 -4
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +4 -7
- package/lib/common/components/resources/BankSelection/BankSelection.examples.js +2 -3
- package/lib/common/components/resources/BankSelection/index.js +9 -21
- package/lib/common/components/resources/BankSelection/presenter.js +20 -70
- package/lib/common/components/resources/WarningWrapper/index.js +14 -42
- package/lib/common/components/resources/WarningWrapper/styles.js +1 -4
- package/lib/common/components/resources/WarningWrapper/theme.js +3 -6
- package/lib/common/components/resources/entry/EntrySave/index.js +13 -29
- package/lib/common/components/resources/entry/EntrySave/presenter.js +99 -175
- package/lib/common/components/resources/item/ItemEdit/index.js +21 -44
- package/lib/common/components/resources/item/ItemEdit/presenter.js +22 -69
- package/lib/common/components/resources/item/ItemOverride/index.js +12 -29
- package/lib/common/components/resources/item/ItemOverride/presenter.js +10 -38
- package/lib/common/components/resources/item/ItemShow/index.js +10 -34
- package/lib/common/components/resources/positionBox/PositionBox.js +14 -35
- package/lib/common/components/resources/positionBox/styles.js +2 -7
- package/lib/common/components/resources/positionBox/theme.js +3 -6
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +9 -22
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +27 -68
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +6 -14
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +5 -8
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +14 -42
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +2 -8
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +5 -8
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +10 -21
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +10 -33
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +10 -23
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +21 -59
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +1 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +2 -5
- package/lib/common/components/resources/quiz/info/QuizInfo.js +10 -31
- package/lib/common/components/resources/quiz/instructions/Instructions.js +19 -38
- package/lib/common/components/resources/quiz/instructions/styles.js +1 -4
- package/lib/common/components/resources/quiz/instructions/theme.js +2 -5
- package/lib/common/components/resources/quiz/title/Title.js +18 -38
- package/lib/common/components/resources/quiz/title/styles.js +1 -4
- package/lib/common/components/resources/quiz/title/theme.js +2 -5
- package/lib/common/components/resources/quizSessionResult/Header/index.js +14 -43
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +1 -4
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +2 -5
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +5 -11
- package/lib/common/components/resources/quizSessionResult/Info/index.js +111 -151
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +1 -5
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +2 -5
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +13 -37
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +2 -8
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +5 -8
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +7 -17
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +68 -115
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +2 -7
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -7
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +20 -53
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +1 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +4 -7
- package/lib/common/components/resources/stimulus/Stimulus/index.js +7 -19
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +32 -72
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +3 -12
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +4 -7
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +13 -33
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +120 -232
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +1 -4
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +3 -6
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +7 -19
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +19 -67
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +1 -4
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +3 -6
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +22 -53
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +1 -4
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +3 -6
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +4 -8
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -30
- package/lib/common/components/shared/Card/CardContent/index.js +14 -35
- package/lib/common/components/shared/Card/CardContent/styles.js +2 -7
- package/lib/common/components/shared/Card/CardContent/theme.js +5 -8
- package/lib/common/components/shared/Card/CardWrapper/index.js +14 -35
- package/lib/common/components/shared/Card/CardWrapper/styles.js +2 -7
- package/lib/common/components/shared/Card/CardWrapper/theme.js +3 -6
- package/lib/common/components/shared/Card/index.js +10 -20
- package/lib/common/components/shared/ExpandButton/index.js +13 -35
- package/lib/common/components/shared/ExpandButton/styles.js +2 -7
- package/lib/common/components/shared/ExpandButton/theme.js +1 -4
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +3 -8
- package/lib/common/components/shared/FormattedDuration/index.js +17 -48
- package/lib/common/components/shared/IfFeature/index.js +6 -13
- package/lib/common/components/shared/IfFeature/presenter.js +7 -25
- package/lib/common/components/shared/InteractionTypes/index.js +4 -11
- package/lib/common/components/shared/InteractionTypes/presenter.js +17 -56
- package/lib/common/components/shared/InteractionTypes/styles.js +1 -4
- package/lib/common/components/shared/InteractionTypes/theme.js +3 -6
- package/lib/common/components/shared/PaginatedCollection/index.js +7 -16
- package/lib/common/components/shared/PaginatedCollection/presenter.js +63 -97
- package/lib/common/components/shared/PaginatedCollection/styles.js +1 -4
- package/lib/common/components/shared/PaginatedCollection/theme.js +3 -6
- package/lib/common/components/shared/Paginator/index.js +14 -38
- package/lib/common/components/shared/Paginator/styles.js +1 -4
- package/lib/common/components/shared/Paginator/theme.js +1 -4
- package/lib/common/components/shared/PrintTrigger/index.js +11 -27
- package/lib/common/components/shared/PrintTrigger/presenter.js +17 -61
- package/lib/common/components/shared/TagDisplay/index.js +13 -37
- package/lib/common/components/shared/TagDisplay/styles.js +1 -4
- package/lib/common/components/shared/TagSelect/index.js +3 -7
- package/lib/common/components/shared/TagSelect/presenter.js +20 -72
- package/lib/common/components/shared/TagSuggestSelect/index.js +6 -17
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +17 -49
- package/lib/common/components/shared/TagWrapper/index.js +3 -7
- package/lib/common/components/shared/TagWrapper/presenter.js +11 -38
- package/lib/common/components/shared/TimeUnitsInput/TimeUnitsInput.examples.js +2 -3
- package/lib/common/components/shared/TimeUnitsInput/index.js +36 -89
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +21 -47
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +2 -7
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +3 -6
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +13 -30
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +30 -89
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +39 -108
- package/lib/common/components/shared/errors/Errors.js +14 -42
- package/lib/common/components/shared/errors/styles.js +1 -4
- package/lib/common/components/shared/errors/theme.js +2 -5
- package/lib/common/components/shared/file_selector/FileSelector.js +15 -39
- package/lib/common/components/shared/file_selector/styles.js +1 -4
- package/lib/common/components/shared/file_selector/theme.js +3 -6
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +18 -40
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +12 -32
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +4 -10
- package/lib/common/components/shared/functionality/makeEditable.js +25 -59
- package/lib/common/components/shared/functionality/makeScrollable.js +33 -74
- package/lib/common/components/shared/overlay/index.js +26 -39
- package/lib/common/components/shared/overlay/styles.js +2 -7
- package/lib/common/components/shared/overlay/theme.js +3 -6
- package/lib/common/components/shared/return_button/ReturnButton.js +11 -33
- package/lib/common/components/shared/spinner/Spinner.js +20 -43
- package/lib/common/components/shared/spinner/styles.js +1 -4
- package/lib/common/kinesis/QuizEventsLogger.js +52 -85
- package/lib/common/kinesis/StreamQueue.js +12 -33
- package/lib/common/kinesis/client.js +9 -26
- package/lib/common/kinesis/config.js +9 -22
- package/lib/common/kinesis/eventTypes.js +10 -16
- package/lib/common/middleware/alertTimerMiddleware.js +4 -11
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +2 -8
- package/lib/common/middleware/eventLoggerMiddleware.js +6 -14
- package/lib/common/middleware/persistedStorageMiddleware.js +4 -15
- package/lib/common/react-redux.js +3 -7
- package/lib/common/records/Alert.js +8 -20
- package/lib/common/records/Bank.js +10 -30
- package/lib/common/records/BankEntry.js +10 -32
- package/lib/common/records/Item.js +18 -39
- package/lib/common/records/ItemAnalysis.js +9 -28
- package/lib/common/records/QtiImport.js +8 -25
- package/lib/common/records/Quiz.js +21 -47
- package/lib/common/records/QuizAnalysis.js +8 -24
- package/lib/common/records/QuizEntry.js +109 -179
- package/lib/common/records/QuizSession.js +24 -46
- package/lib/common/records/QuizSessionEvent.js +9 -25
- package/lib/common/records/QuizSessionResult.js +9 -27
- package/lib/common/records/Response.js +9 -27
- package/lib/common/records/SessionItem.js +13 -38
- package/lib/common/records/SessionItemResult.js +9 -26
- package/lib/common/records/Stimulus.js +13 -33
- package/lib/common/records/baseRecord.js +11 -33
- package/lib/common/records/index.js +35 -52
- package/lib/common/records/reduxRecord.js +10 -21
- package/lib/common/reducers/alerts.js +2 -10
- package/lib/common/reducers/analyses.js +11 -35
- package/lib/common/reducers/bankEntries.js +3 -15
- package/lib/common/reducers/bankSearch.js +6 -17
- package/lib/common/reducers/banks.js +4 -23
- package/lib/common/reducers/calls.js +2 -10
- package/lib/common/reducers/config.js +2 -12
- package/lib/common/reducers/dragAndDrop.js +2 -9
- package/lib/common/reducers/editing.js +4 -13
- package/lib/common/reducers/errorsShowing.js +2 -11
- package/lib/common/reducers/features.js +2 -10
- package/lib/common/reducers/grading.js +2 -11
- package/lib/common/reducers/interactionTypes.js +3 -13
- package/lib/common/reducers/items.js +3 -14
- package/lib/common/reducers/modal.js +2 -13
- package/lib/common/reducers/moderation.js +2 -11
- package/lib/common/reducers/modifications.js +11 -50
- package/lib/common/reducers/outcomes.js +2 -13
- package/lib/common/reducers/printing.js +2 -9
- package/lib/common/reducers/qtiImports.js +3 -15
- package/lib/common/reducers/quizEntries.js +31 -50
- package/lib/common/reducers/quizExport.js +2 -9
- package/lib/common/reducers/quizSessionEvents.js +4 -12
- package/lib/common/reducers/quizSessionResults.js +3 -13
- package/lib/common/reducers/quizSessions.js +5 -22
- package/lib/common/reducers/quizzes.js +3 -25
- package/lib/common/reducers/rce.js +2 -12
- package/lib/common/reducers/regrading.js +2 -12
- package/lib/common/reducers/reporting.js +3 -22
- package/lib/common/reducers/scrolling.js +2 -10
- package/lib/common/reducers/sessionItemResults.js +3 -13
- package/lib/common/reducers/sessionItems.js +3 -14
- package/lib/common/reducers/sharedBanks.js +4 -17
- package/lib/common/reducers/sidebar.js +2 -10
- package/lib/common/reducers/stimuli.js +3 -14
- package/lib/common/reducers/tagAssociations.js +2 -35
- package/lib/common/reducers/taking.js +2 -41
- package/lib/common/reducers/ui.js +2 -18
- package/lib/common/reducers/upload.js +2 -14
- package/lib/common/selectors/analyses.js +8 -28
- package/lib/common/selectors/calculator.js +8 -15
- package/lib/common/selectors/calls.js +0 -3
- package/lib/common/selectors/config.js +1 -5
- package/lib/common/selectors/interactionTypes.js +12 -22
- package/lib/common/selectors/items.js +2 -9
- package/lib/common/selectors/qtiImports.js +6 -14
- package/lib/common/selectors/quizSessionResults.js +3 -8
- package/lib/common/selectors/quizSessions.js +13 -30
- package/lib/common/selectors/quizzes.js +23 -70
- package/lib/common/selectors/rce.js +4 -10
- package/lib/common/selectors/reporting.js +4 -11
- package/lib/common/selectors/sessionItemResults.js +8 -17
- package/lib/common/selectors/sessionItems.js +8 -18
- package/lib/common/selectors/taking.js +10 -29
- package/lib/common/selectors/ui.js +2 -5
- package/lib/common/util/CustomPropTypes.js +3 -23
- package/lib/common/util/ElementsForSelectors.js +3 -8
- package/lib/common/util/ExhaustivePaginatedFetcher.js +55 -85
- package/lib/common/util/Fetcher.js +157 -245
- package/lib/common/util/MultiWeakMap.js +4 -27
- package/lib/common/util/PaginatedFetcher.js +24 -57
- package/lib/common/util/ThunkQueue.js +53 -87
- package/lib/common/util/TimeRecordingService.js +4 -23
- package/lib/common/util/TimerService.js +9 -58
- package/lib/common/util/cachePreviousArgs.js +3 -11
- package/lib/common/util/callHelpers.js +6 -20
- package/lib/common/util/componentForItem.js +4 -16
- package/lib/common/util/crossDomainMessaging.js +0 -2
- package/lib/common/util/debounceLatestPromise.js +3 -10
- package/lib/common/util/featureCheck.js +6 -16
- package/lib/common/util/fetchHelpers.js +0 -1
- package/lib/common/util/fitbCopyHelper.js +1 -4
- package/lib/common/util/formatTimespan.js +3 -22
- package/lib/common/util/generateDisplayPositions.js +4 -10
- package/lib/common/util/httpHeaders.js +5 -12
- package/lib/common/util/immutableHelpers.js +10 -19
- package/lib/common/util/instUIMessages.js +2 -5
- package/lib/common/util/interactionTypeMetadata.js +8 -16
- package/lib/common/util/interactionTypePropsHelper.js +4 -20
- package/lib/common/util/interactionTypeRecordForItem.js +3 -13
- package/lib/common/util/jsonify.js +5 -10
- package/lib/common/util/keyboardClickable.js +1 -4
- package/lib/common/util/mathRenderingUtils.js +2 -6
- package/lib/common/util/maxContent.js +3 -10
- package/lib/common/util/modalHelpers.js +0 -2
- package/lib/common/util/noop.js +2 -5
- package/lib/common/util/persistedState.js +6 -20
- package/lib/common/util/printUtils.js +4 -13
- package/lib/common/util/rceChecker.js +14 -26
- package/lib/common/util/renderAlerts.js +13 -25
- package/lib/common/util/serializeEvent.js +4 -13
- package/lib/common/util/sessionStore.js +8 -20
- package/lib/common/util/valMap.js +3 -8
- package/lib/common/util/warningHelpers.js +10 -44
- package/lib/common/util/windowChecks.js +7 -22
- package/lib/common/util/withCachedArguments.js +4 -14
- package/lib/common/util/withDynamoPagination.js +63 -97
- package/lib/common/util/withStateCache.js +3 -19
- package/lib/config.js +6 -17
- package/lib/configureStore.js +53 -104
- package/lib/grading/api/quizEntryRegrades.js +7 -13
- package/lib/grading/api/updateResults.js +7 -20
- package/lib/index.js +521 -650
- package/lib/messages/LocalStorageAdapter.js +6 -21
- package/lib/messages/LocalStorageLimits.js +7 -30
- package/lib/messages/StorageExhaustionError.js +8 -20
- package/lib/messages/postMessageService.js +6 -35
- package/lib/messages/subjectHandlers/forwardMessage.js +1 -4
- package/lib/messages/subjectHandlers/lti.capabilities.js +1 -4
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +1 -4
- package/lib/messages/subjectHandlers/lti.frameResize.js +2 -7
- package/lib/messages/subjectHandlers/lti.get_data.js +4 -12
- package/lib/messages/subjectHandlers/lti.put_data.js +7 -19
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +4 -13
- package/lib/messages/utils.js +0 -1
- package/lib/moderating/api/quizSessionEvents.js +4 -10
- package/lib/moderating/api/quizSessions.js +4 -12
- package/lib/moderating/components/events/Event.js +15 -44
- package/lib/moderating/components/events/RCEEvent.js +8 -27
- package/lib/moderating/components/events/ResponseEvent.js +18 -49
- package/lib/moderating/components/events/SessionStartEvent.js +8 -32
- package/lib/moderating/components/events/styles.js +1 -4
- package/lib/moderating/components/events/theme.js +2 -5
- package/lib/moderating/components/resources/AccommodationsModal/AccommodationsModal.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +15 -44
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/{}.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +10 -47
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +8 -45
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/ExtraTimeSettings.examples.js +2 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +14 -54
- package/lib/moderating/components/resources/AccommodationsModal/index.js +15 -55
- package/lib/moderating/components/resources/ElapsedTime.js +13 -32
- package/lib/moderating/components/resources/ModerateTable/index.js +12 -26
- package/lib/moderating/components/resources/ModerateTable/presenter.js +52 -128
- package/lib/moderating/components/resources/ModerateTable/styles.js +2 -7
- package/lib/moderating/components/resources/ModerateTable/theme.js +2 -5
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +5 -13
- package/lib/moderating/components/resources/ModerateTableRow/index.js +8 -15
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +34 -95
- package/lib/moderating/components/resources/ModerateTableRow/story.js +4 -10
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +1 -4
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +1 -4
- package/lib/moderating/components/resources/OutstandingQuizzesModal/OutstandingQuizzesModal.examples.js +2 -3
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +8 -20
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +9 -54
- package/lib/moderating/components/sidebar/ModerateTray/ModerateTray.examples.js +2 -3
- package/lib/moderating/components/sidebar/ModerateTray/index.js +7 -15
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +8 -47
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +11 -25
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +21 -58
- package/lib/reduxStore.js +9 -21
- package/lib/reporting/api/getAnalysesExport.js +23 -40
- package/lib/reporting/api/getAnalysesStatus.js +20 -33
- package/lib/reporting/api/getItemAnalyses.js +20 -33
- package/lib/reporting/api/getQuizAnalysis.js +20 -33
- package/lib/reporting/api/itemAnalyses.js +5 -11
- package/lib/reporting/api/quizAnalyses.js +5 -11
- package/lib/reporting/components/Caption/index.js +14 -34
- package/lib/reporting/components/Caption/styles.js +1 -4
- package/lib/reporting/components/Caption/theme.js +3 -6
- package/lib/reporting/components/MetricsListItem/index.js +16 -38
- package/lib/reporting/components/MetricsListItem/styles.js +1 -4
- package/lib/reporting/components/charts/CentileDistribution/CentileDistribution.examples.js +2 -3
- package/lib/reporting/components/charts/CentileDistribution/index.js +2 -6
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +21 -60
- package/lib/reporting/components/charts/CentileDistribution/styles.js +2 -7
- package/lib/reporting/components/charts/CentileDistribution/theme.js +3 -6
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +3 -6
- package/lib/reporting/components/charts/Distribution/Distribution.js +2 -6
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +2 -6
- package/lib/reporting/components/charts/Distribution/index.js +2 -6
- package/lib/reporting/components/charts/Distribution/presenter.js +23 -76
- package/lib/reporting/components/charts/Distribution/styles.js +1 -4
- package/lib/reporting/components/charts/Distribution/theme.js +2 -5
- package/lib/reporting/components/charts/Legend/index.js +17 -39
- package/lib/reporting/components/charts/Legend/styles.js +2 -7
- package/lib/reporting/components/charts/Legend/theme.js +4 -7
- package/lib/reporting/components/charts/QuintileDistribution/QuintileDistribution.examples.js +2 -3
- package/lib/reporting/components/charts/QuintileDistribution/index.js +2 -6
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +19 -57
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +1 -4
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +2 -5
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +4 -9
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +14 -53
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +4 -20
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +6 -9
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +4 -9
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +7 -18
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +45 -95
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +2 -8
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -7
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +35 -74
- package/lib/reporting/components/quizAnalysis/styles.js +5 -12
- package/lib/reporting/components/quizAnalysis/theme.js +4 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +17 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +18 -38
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +2 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +12 -33
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +15 -37
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +18 -41
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +13 -49
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +2 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +21 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +18 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +18 -42
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +29 -72
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +2 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +18 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +9 -12
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +5 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +16 -41
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +34 -89
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +25 -61
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +20 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +19 -48
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +19 -44
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +37 -80
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +17 -41
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +2 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +3 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +15 -39
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +20 -71
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +21 -82
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +2 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +19 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +6 -20
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +16 -49
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +12 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +4 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +5 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +36 -91
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +2 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +4 -7
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +5 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +33 -73
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +5 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +39 -85
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +2 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +2 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +19 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +3 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +10 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +11 -37
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportFormats.js +1 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +43 -64
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +44 -61
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +30 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +68 -100
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +5 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +48 -111
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +18 -71
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +5 -17
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +15 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +108 -154
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +6 -13
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +16 -44
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +10 -19
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +10 -22
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +45 -92
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +1 -4
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +3 -6
- package/lib/reporting/components/resources/ReportCard/index.js +19 -43
- package/lib/reporting/components/resources/ReportCard/styles.js +2 -7
- package/lib/reporting/components/resources/ReportCard/theme.js +2 -5
- package/lib/reporting/components/resources/ReportList/index.js +17 -38
- package/lib/reporting/components/resources/ReportList/styles.js +1 -4
- package/lib/reporting/components/resources/ReportList/theme.js +1 -4
- package/lib/taking/api/taking.js +56 -104
- package/lib/taking/learnosity/index.js +44 -77
- package/package.json +10 -11
|
@@ -1,97 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = exports.QuizEntryEditFooter = void 0;
|
|
9
|
-
|
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
10
|
+
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
|
|
14
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
-
|
|
16
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
|
-
|
|
18
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
19
|
-
|
|
20
13
|
var _react = require("react");
|
|
21
|
-
|
|
22
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
23
|
-
|
|
24
15
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
25
|
-
|
|
26
16
|
var _uiView = require("@instructure/ui-view");
|
|
27
|
-
|
|
28
17
|
var _uiFlex = require("@instructure/ui-flex");
|
|
29
|
-
|
|
30
18
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
31
|
-
|
|
32
19
|
var _uiText = require("@instructure/ui-text");
|
|
33
|
-
|
|
34
20
|
var _quizNumberInput = _interopRequireDefault(require("@instructure/quiz-number-input"));
|
|
35
|
-
|
|
36
21
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
37
|
-
|
|
38
22
|
var _emotion = require("@instructure/emotion");
|
|
39
|
-
|
|
40
23
|
var _uiIcons = require("@instructure/ui-icons");
|
|
41
|
-
|
|
42
24
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
43
|
-
|
|
44
25
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
45
|
-
|
|
46
|
-
var _index = _interopRequireDefault(require("../../../../../../common/components/resources/entry/EntrySave/index.js"));
|
|
47
|
-
|
|
26
|
+
var _EntrySave = _interopRequireDefault(require("../../../../../../common/components/resources/entry/EntrySave"));
|
|
48
27
|
var _quizCommon = require("@instructure/quiz-common");
|
|
49
|
-
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var _dec, _class, _class2, _temp;
|
|
55
|
-
|
|
28
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
29
|
+
var _theme = _interopRequireDefault(require("./theme"));
|
|
30
|
+
var _dec, _class, _QuizEntryEditFooter;
|
|
31
|
+
/** @jsx jsx */
|
|
56
32
|
function pointsAsFloat(pointsString) {
|
|
57
33
|
return parseFloat(pointsString) || 0;
|
|
58
34
|
}
|
|
59
|
-
|
|
60
35
|
function countDecimals(normalizedPointsString) {
|
|
61
|
-
if (!normalizedPointsString) return 0;
|
|
62
|
-
|
|
36
|
+
if (!normalizedPointsString) return 0;
|
|
37
|
+
// eslint-disable-next-line no-unused-vars
|
|
63
38
|
var _normalizedPointsStri = normalizedPointsString.split('.'),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
39
|
+
_normalizedPointsStri2 = (0, _slicedToArray2.default)(_normalizedPointsStri, 2),
|
|
40
|
+
_ = _normalizedPointsStri2[0],
|
|
41
|
+
decimals = _normalizedPointsStri2[1];
|
|
68
42
|
return decimals ? decimals.length : 0;
|
|
69
43
|
}
|
|
70
|
-
|
|
71
|
-
var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
72
|
-
(0, _inherits2.default)(QuizEntryEditFooter, _Component);
|
|
73
|
-
|
|
74
|
-
var _super = (0, _createSuper2.default)(QuizEntryEditFooter);
|
|
75
|
-
|
|
44
|
+
var QuizEntryEditFooter = exports.QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_QuizEntryEditFooter = /*#__PURE__*/function (_Component) {
|
|
76
45
|
function QuizEntryEditFooter() {
|
|
77
46
|
var _this;
|
|
78
|
-
|
|
79
47
|
(0, _classCallCheck2.default)(this, QuizEntryEditFooter);
|
|
80
|
-
_this =
|
|
48
|
+
_this = (0, _callSuper2.default)(this, QuizEntryEditFooter, arguments);
|
|
81
49
|
_this.addFeedbackButton = null;
|
|
82
|
-
|
|
83
50
|
_this.openFeedbackModal = function () {
|
|
84
51
|
var workingEntry = _this.props.workingEntry;
|
|
85
|
-
|
|
86
52
|
_this.props.setUi(_quizCommon.ITEM_FEEDBACK_MODAL_ITEM, workingEntry);
|
|
87
|
-
|
|
88
53
|
_this.props.setUi(_quizCommon.ITEM_FEEDBACK_MODAL_FEEDBACK, workingEntry.feedback);
|
|
89
|
-
|
|
90
54
|
_this.props.openModal(_quizCommon.ITEM_FEEDBACK_MODAL, {
|
|
91
55
|
modalTrigger: _this.addFeedbackButton
|
|
92
56
|
});
|
|
93
57
|
};
|
|
94
|
-
|
|
95
58
|
_this.handlePointsBlur = function () {
|
|
96
59
|
if (!_this.state.normalizedPoints) {
|
|
97
60
|
_this.setState({
|
|
@@ -99,45 +62,38 @@ var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
99
62
|
});
|
|
100
63
|
}
|
|
101
64
|
};
|
|
102
|
-
|
|
103
65
|
_this.handlePointsChange = function (event, points, normalizedPoints) {
|
|
104
66
|
// do not allow more than 3 decimals
|
|
105
67
|
if (countDecimals(normalizedPoints) <= 3) {
|
|
106
68
|
var pointsFloat = pointsAsFloat(normalizedPoints);
|
|
107
|
-
|
|
108
69
|
if (pointsFloat !== _this.getPoints()) {
|
|
109
70
|
var _this$props = _this.props,
|
|
110
|
-
|
|
111
|
-
|
|
71
|
+
workingQuizEntry = _this$props.workingQuizEntry,
|
|
72
|
+
workingEntry = _this$props.workingEntry;
|
|
112
73
|
var qerIndexToUpdate = workingQuizEntry.quizEntryRegrades.findIndex(function (qer) {
|
|
113
74
|
return qer.get('itemId') == workingEntry.id;
|
|
114
75
|
});
|
|
115
76
|
var newQuizEntryRegrades = qerIndexToUpdate > -1 ? workingQuizEntry.quizEntryRegrades.setIn([qerIndexToUpdate, 'pointsPossible'], null) : workingQuizEntry.quizEntryRegrades;
|
|
116
|
-
|
|
117
77
|
_this.props.changeQuizEntryPoints(workingQuizEntry.id, pointsFloat, newQuizEntryRegrades.toJS());
|
|
118
78
|
}
|
|
119
|
-
|
|
120
79
|
_this.setState({
|
|
121
80
|
points: points,
|
|
122
81
|
normalizedPoints: normalizedPoints
|
|
123
82
|
});
|
|
124
83
|
}
|
|
125
84
|
};
|
|
126
|
-
|
|
127
85
|
_this.handleButtonRef = function (node) {
|
|
128
86
|
_this.addFeedbackButton = node;
|
|
129
87
|
};
|
|
130
|
-
|
|
131
88
|
var _points = _this.getPoints();
|
|
132
|
-
|
|
133
89
|
_this.state = {
|
|
134
90
|
points: _points,
|
|
135
91
|
normalizedPoints: _points
|
|
136
92
|
};
|
|
137
93
|
return _this;
|
|
138
94
|
}
|
|
139
|
-
|
|
140
|
-
(0, _createClass2.default)(QuizEntryEditFooter, [{
|
|
95
|
+
(0, _inherits2.default)(QuizEntryEditFooter, _Component);
|
|
96
|
+
return (0, _createClass2.default)(QuizEntryEditFooter, [{
|
|
141
97
|
key: "componentWillReceiveProps",
|
|
142
98
|
value: function componentWillReceiveProps(nextProps) {
|
|
143
99
|
var points = this.getPoints(nextProps);
|
|
@@ -151,7 +107,7 @@ var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
151
107
|
value: function getPoints() {
|
|
152
108
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props;
|
|
153
109
|
var workingQuizEntry = props.workingQuizEntry,
|
|
154
|
-
|
|
110
|
+
workingEntry = props.workingEntry;
|
|
155
111
|
return workingQuizEntry.regradeAdjustedPointsPossible(workingEntry.id) || workingQuizEntry.pointsPossible || 0;
|
|
156
112
|
}
|
|
157
113
|
}, {
|
|
@@ -166,13 +122,12 @@ var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
166
122
|
key: "renderFeedbackSection",
|
|
167
123
|
value: function renderFeedbackSection() {
|
|
168
124
|
var _this$props2 = this.props,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
125
|
+
entry = _this$props2.entry,
|
|
126
|
+
shouldClone = _this$props2.shouldClone,
|
|
127
|
+
quizEntry = _this$props2.quizEntry,
|
|
128
|
+
workingEntry = _this$props2.workingEntry;
|
|
173
129
|
var disabled = entry.isImmutable() && !shouldClone || quizEntry.isBankEntry;
|
|
174
130
|
var icon, text;
|
|
175
|
-
|
|
176
131
|
if (workingEntry.hasFeedback()) {
|
|
177
132
|
icon = _uiIcons.IconDiscussionSolid;
|
|
178
133
|
text = (0, _formatMessage.default)('Edit Question Level Feedback (present)');
|
|
@@ -180,7 +135,6 @@ var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
180
135
|
icon = _uiIcons.IconDiscussionLine;
|
|
181
136
|
text = (0, _formatMessage.default)('Edit Question Level Feedback');
|
|
182
137
|
}
|
|
183
|
-
|
|
184
138
|
return (0, _emotion.jsx)("div", {
|
|
185
139
|
className: "feedbackSection",
|
|
186
140
|
css: this.props.styles.feedbackSection,
|
|
@@ -229,8 +183,7 @@ var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
229
183
|
if (this.props.alternativeRightFooter) {
|
|
230
184
|
return this.props.alternativeRightFooter();
|
|
231
185
|
}
|
|
232
|
-
|
|
233
|
-
return (0, _emotion.jsx)(_index.default, {
|
|
186
|
+
return (0, _emotion.jsx)(_EntrySave.default, {
|
|
234
187
|
clearChanges: this.props.clearChanges,
|
|
235
188
|
disableSubmit: this.props.disableSubmit,
|
|
236
189
|
displayPosition: this.props.displayPosition,
|
|
@@ -260,9 +213,7 @@ var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
260
213
|
}, this.renderRightFooter())));
|
|
261
214
|
}
|
|
262
215
|
}]);
|
|
263
|
-
|
|
264
|
-
return QuizEntryEditFooter;
|
|
265
|
-
}(_react.Component), _class2.propTypes = {
|
|
216
|
+
}(_react.Component), _QuizEntryEditFooter.propTypes = {
|
|
266
217
|
alternativeRightFooter: _propTypes.default.func,
|
|
267
218
|
changeQuizEntryPoints: _propTypes.default.func.isRequired,
|
|
268
219
|
clearChanges: _propTypes.default.func.isRequired,
|
|
@@ -283,13 +234,11 @@ var QuizEntryEditFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
283
234
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
284
235
|
workingQuizEntry: _reactImmutableProptypes.default.record.isRequired,
|
|
285
236
|
styles: _propTypes.default.object
|
|
286
|
-
},
|
|
237
|
+
}, _QuizEntryEditFooter.defaultProps = {
|
|
287
238
|
alternativeRightFooter: null,
|
|
288
239
|
disableSubmit: false,
|
|
289
240
|
initialFocusId: null,
|
|
290
241
|
itemEditArea: null,
|
|
291
242
|
shouldClone: false
|
|
292
|
-
},
|
|
293
|
-
exports.
|
|
294
|
-
var _default = QuizEntryEditFooter;
|
|
295
|
-
exports.default = _default;
|
|
243
|
+
}, _QuizEntryEditFooter)) || _class);
|
|
244
|
+
var _default = exports.default = QuizEntryEditFooter;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
-
|
|
12
9
|
var generateStyle = function generateStyle(componentTheme) {
|
|
13
10
|
var sectionStyle = {
|
|
14
11
|
display: 'flex',
|
|
@@ -26,13 +23,10 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
26
23
|
}),
|
|
27
24
|
pointsInput: {
|
|
28
25
|
width: '6.1rem',
|
|
29
|
-
|
|
30
26
|
/* wide enough to fit 3 decimal places (i.e. 8.888) */
|
|
31
27
|
fontSize: componentTheme.pointsInputFontSize,
|
|
32
28
|
display: 'inline-flex'
|
|
33
29
|
}
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
|
-
|
|
37
|
-
var _default = generateStyle;
|
|
38
|
-
exports.default = _default;
|
|
32
|
+
var _default = exports.default = generateStyle;
|
|
@@ -4,17 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
8
|
var spacing = _ref.spacing,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
colors = _ref.colors,
|
|
10
|
+
typography = _ref.typography,
|
|
11
|
+
borders = _ref.borders;
|
|
13
12
|
return {
|
|
14
13
|
feedbackSectionLeftMargin: spacing.xSmall,
|
|
15
14
|
pointsInputFontSize: typography.fontSizeMedium
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
|
-
|
|
19
|
-
var _default = generateComponentTheme;
|
|
20
|
-
exports.default = _default;
|
|
17
|
+
var _default = exports.default = generateComponentTheme;
|
|
@@ -1,222 +1,151 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
8
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
12
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
-
|
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
|
-
|
|
12
|
+
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
|
|
18
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
-
|
|
20
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
21
|
-
|
|
22
14
|
var _react = require("react");
|
|
23
|
-
|
|
24
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
25
|
-
|
|
26
16
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
27
|
-
|
|
28
17
|
var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
29
|
-
|
|
30
18
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
31
|
-
|
|
32
19
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
33
|
-
|
|
34
20
|
var _uiTextInput = require("@instructure/ui-text-input");
|
|
35
|
-
|
|
36
21
|
var _emotion = require("@instructure/emotion");
|
|
37
|
-
|
|
38
22
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
39
|
-
|
|
40
23
|
var _uiIcons = require("@instructure/ui-icons");
|
|
41
|
-
|
|
42
24
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
var _Item = _interopRequireDefault(require("../../../../../../common/records/Item.js"));
|
|
49
|
-
|
|
50
|
-
var _index = _interopRequireDefault(require("../../../ActionButtons/index.js"));
|
|
51
|
-
|
|
25
|
+
var _fitbCopyHelper = require("../../../../../../common/util/fitbCopyHelper");
|
|
26
|
+
var _PositionBox = _interopRequireDefault(require("../../../../../../common/components/resources/positionBox/PositionBox"));
|
|
27
|
+
var _Item = _interopRequireDefault(require("../../../../../../common/records/Item"));
|
|
28
|
+
var _ActionButtons = _interopRequireDefault(require("../../../ActionButtons"));
|
|
52
29
|
var _quizCommon = require("@instructure/quiz-common");
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var _dec, _class, _class2, _temp;
|
|
59
|
-
|
|
60
|
-
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconBankLine, null);
|
|
61
|
-
|
|
62
|
-
var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
63
|
-
(0, _inherits2.default)(QuizEntryHeader, _Component);
|
|
64
|
-
|
|
65
|
-
var _super = (0, _createSuper2.default)(QuizEntryHeader);
|
|
66
|
-
|
|
30
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
31
|
+
var _theme = _interopRequireDefault(require("./theme"));
|
|
32
|
+
var _dec, _class, _QuizEntryHeader, _IconBankLine;
|
|
33
|
+
/** @jsx jsx */
|
|
34
|
+
var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_QuizEntryHeader = /*#__PURE__*/function (_Component) {
|
|
67
35
|
function QuizEntryHeader() {
|
|
68
36
|
var _this;
|
|
69
|
-
|
|
70
37
|
(0, _classCallCheck2.default)(this, QuizEntryHeader);
|
|
71
|
-
|
|
72
38
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
73
39
|
args[_key] = arguments[_key];
|
|
74
40
|
}
|
|
75
|
-
|
|
76
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
77
|
-
|
|
41
|
+
_this = (0, _callSuper2.default)(this, QuizEntryHeader, [].concat(args));
|
|
78
42
|
_this.connectDragSource = function (dragHandle) {
|
|
79
43
|
if (_this.shouldDisableDragHandle()) {
|
|
80
44
|
return dragHandle;
|
|
81
45
|
}
|
|
82
|
-
|
|
83
46
|
return _this.props.connectDragSource(dragHandle);
|
|
84
47
|
};
|
|
85
|
-
|
|
86
48
|
_this.clearModifications = function () {
|
|
87
49
|
_this.props.clearModifications('items', _this.props.entry.id);
|
|
88
50
|
};
|
|
89
|
-
|
|
90
51
|
_this.removeTemporaryItem = function () {
|
|
91
52
|
var remove = function remove() {
|
|
92
53
|
_this.props.hideError(_this.props.guid);
|
|
93
|
-
|
|
94
54
|
_this.clearModifications();
|
|
95
|
-
|
|
96
55
|
_this.props.clearTemporaryItem(_this.props.quizId);
|
|
97
|
-
|
|
98
56
|
_this.props.setUi(_quizCommon.DELETED_QUIZ_ENTRY, {
|
|
99
57
|
position: Math.ceil(_this.props.quizEntry.position),
|
|
100
58
|
inStimulus: _this.props.quizEntry.hasStimulus
|
|
101
59
|
});
|
|
102
60
|
};
|
|
103
|
-
|
|
104
61
|
_this.props.withConfirm(remove, _this.removalDialogData());
|
|
105
62
|
};
|
|
106
|
-
|
|
107
63
|
_this.removeNormalItem = function () {
|
|
108
64
|
_this.props.withConfirm((0, _partial.default)(_this.props.removeQuizEntry, _this.props.quizId, _this.props.quizEntry), _this.removalDialogData());
|
|
109
65
|
};
|
|
110
|
-
|
|
111
66
|
_this.removeItem = function (e) {
|
|
112
67
|
if (_this.props.disabledForRegrade) {
|
|
113
68
|
return null;
|
|
114
69
|
}
|
|
115
|
-
|
|
116
70
|
_this.props.entry.isTemporary() ? _this.removeTemporaryItem() : _this.removeNormalItem();
|
|
117
71
|
};
|
|
118
|
-
|
|
119
72
|
_this.handleTitleChange = function (event) {
|
|
120
73
|
_this.props.changeItemTitle(_this.props.entry.id, event.target.value);
|
|
121
74
|
};
|
|
122
|
-
|
|
123
75
|
_this.storeTitleRef = function (el) {
|
|
124
76
|
_this.titleRef = el;
|
|
125
77
|
};
|
|
126
|
-
|
|
127
78
|
_this.copyItem = /*#__PURE__*/function () {
|
|
128
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
79
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(e) {
|
|
129
80
|
var _this$props, quizId, workingQuizEntry, workingEntry, richFITBEnabled, richFITBInteractionID, msg, validationResult, interactionTypeData;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if (!_this.props.isValid) {
|
|
141
|
-
_context.next = 14;
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
_context.next = 5;
|
|
146
|
-
return _this.props.successfulSubmit();
|
|
147
|
-
|
|
148
|
-
case 5:
|
|
149
|
-
validationResult = _context.sent;
|
|
150
|
-
|
|
151
|
-
if (!(validationResult === _quizCommon.API_INPUT_VALIDATION_ERROR)) {
|
|
152
|
-
_context.next = 9;
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
_this.props.screenreaderNotification(msg);
|
|
157
|
-
|
|
158
|
-
return _context.abrupt("return");
|
|
159
|
-
|
|
160
|
-
case 9:
|
|
161
|
-
interactionTypeData = {
|
|
162
|
-
answerFeedback: workingEntry.answerFeedback,
|
|
163
|
-
calculatorType: workingEntry.calculatorType,
|
|
164
|
-
feedback: workingEntry.feedback,
|
|
165
|
-
id: workingEntry.interactionType,
|
|
166
|
-
interactionData: workingEntry.interactionData,
|
|
167
|
-
itemBody: workingEntry.itemBody,
|
|
168
|
-
outcomeAlignmentSetGuid: workingEntry.outcomeAlignmentSetGuid,
|
|
169
|
-
properties: workingEntry.properties,
|
|
170
|
-
scoringAlgorithm: workingEntry.scoringAlgorithm,
|
|
171
|
-
scoringData: workingEntry.scoringData,
|
|
172
|
-
title: workingEntry.title
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
if (richFITBEnabled && workingEntry.getInteractionType() instanceof _quizInteractions.FillBlankInteractionType) {
|
|
176
|
-
interactionTypeData = (0, _fitbCopyHelper.convertFITBtoRich)(interactionTypeData, richFITBInteractionID);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
_this.props.createTempItem(quizId, Math.round(workingQuizEntry.position + 1), interactionTypeData, workingQuizEntry.stimulusQuizEntryId, workingEntry.stimulusId, workingQuizEntry.pointsPossible);
|
|
180
|
-
|
|
181
|
-
_context.next = 16;
|
|
81
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
82
|
+
while (1) switch (_context.prev = _context.next) {
|
|
83
|
+
case 0:
|
|
84
|
+
_this$props = _this.props, quizId = _this$props.quizId, workingQuizEntry = _this$props.workingQuizEntry, workingEntry = _this$props.workingEntry, richFITBEnabled = _this$props.richFITBEnabled, richFITBInteractionID = _this$props.richFITBInteractionID;
|
|
85
|
+
msg = (0, _formatMessage.default)('Question {displayPosition} cannot be saved due to invalid input data.', {
|
|
86
|
+
displayPosition: _this.props.displayPosition
|
|
87
|
+
});
|
|
88
|
+
if (!_this.props.isValid) {
|
|
89
|
+
_context.next = 14;
|
|
182
90
|
break;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
91
|
+
}
|
|
92
|
+
_context.next = 5;
|
|
93
|
+
return _this.props.successfulSubmit();
|
|
94
|
+
case 5:
|
|
95
|
+
validationResult = _context.sent;
|
|
96
|
+
if (!(validationResult === _quizCommon.API_INPUT_VALIDATION_ERROR)) {
|
|
97
|
+
_context.next = 9;
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
_this.props.screenreaderNotification(msg);
|
|
101
|
+
return _context.abrupt("return");
|
|
102
|
+
case 9:
|
|
103
|
+
interactionTypeData = {
|
|
104
|
+
answerFeedback: workingEntry.answerFeedback,
|
|
105
|
+
calculatorType: workingEntry.calculatorType,
|
|
106
|
+
feedback: workingEntry.feedback,
|
|
107
|
+
id: workingEntry.interactionType,
|
|
108
|
+
interactionData: workingEntry.interactionData,
|
|
109
|
+
itemBody: workingEntry.itemBody,
|
|
110
|
+
outcomeAlignmentSetGuid: workingEntry.outcomeAlignmentSetGuid,
|
|
111
|
+
properties: workingEntry.properties,
|
|
112
|
+
scoringAlgorithm: workingEntry.scoringAlgorithm,
|
|
113
|
+
scoringData: workingEntry.scoringData,
|
|
114
|
+
title: workingEntry.title
|
|
115
|
+
};
|
|
116
|
+
if (richFITBEnabled && workingEntry.getInteractionType() instanceof _quizInteractions.FillBlankInteractionType) {
|
|
117
|
+
interactionTypeData = (0, _fitbCopyHelper.convertFITBtoRich)(interactionTypeData, richFITBInteractionID);
|
|
118
|
+
}
|
|
119
|
+
_this.props.createTempItem(quizId, Math.round(workingQuizEntry.position + 1), interactionTypeData, workingQuizEntry.stimulusQuizEntryId, workingEntry.stimulusId, workingQuizEntry.pointsPossible);
|
|
120
|
+
_context.next = 16;
|
|
121
|
+
break;
|
|
122
|
+
case 14:
|
|
123
|
+
_this.props.screenreaderNotification(msg);
|
|
124
|
+
_this.props.showError(_this.props.guid);
|
|
125
|
+
case 16:
|
|
126
|
+
case "end":
|
|
127
|
+
return _context.stop();
|
|
193
128
|
}
|
|
194
129
|
}, _callee);
|
|
195
130
|
}));
|
|
196
|
-
|
|
197
131
|
return function (_x) {
|
|
198
132
|
return _ref.apply(this, arguments);
|
|
199
133
|
};
|
|
200
134
|
}();
|
|
201
|
-
|
|
202
135
|
_this.handleBankClick = function () {
|
|
203
136
|
if (_this.props.newActiveBank) {
|
|
204
137
|
var bankId = _this.props.workingQuizEntry.getEntry().id;
|
|
205
|
-
|
|
206
138
|
_this.props.newActiveBank(bankId);
|
|
207
|
-
|
|
208
139
|
_this.props.setUi(_quizCommon.BUILD_TRAY_OPEN, true);
|
|
209
140
|
}
|
|
210
141
|
};
|
|
211
|
-
|
|
212
142
|
return _this;
|
|
213
143
|
}
|
|
214
|
-
|
|
215
|
-
(0, _createClass2.default)(QuizEntryHeader, [{
|
|
144
|
+
(0, _inherits2.default)(QuizEntryHeader, _Component);
|
|
145
|
+
return (0, _createClass2.default)(QuizEntryHeader, [{
|
|
216
146
|
key: "componentDidMount",
|
|
217
147
|
value: function componentDidMount() {
|
|
218
148
|
var _this2 = this;
|
|
219
|
-
|
|
220
149
|
// timeout is to ensure the screenreader reads the title label when focused
|
|
221
150
|
setTimeout(function () {
|
|
222
151
|
!_this2.props.initialFocusId && _this2.titleRef && _this2.titleRef.focus();
|
|
@@ -237,11 +166,9 @@ var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
237
166
|
key: "getVOText",
|
|
238
167
|
value: function getVOText(verb, displayPosition) {
|
|
239
168
|
var name = '';
|
|
240
|
-
|
|
241
169
|
if (this.props.entry instanceof _Item.default) {
|
|
242
170
|
name = this.props.entry.getInteractionType().name;
|
|
243
171
|
}
|
|
244
|
-
|
|
245
172
|
return (0, _formatMessage.default)('{verb} Question {questionNumber}, {interactionType}', {
|
|
246
173
|
verb: verb,
|
|
247
174
|
questionNumber: displayPosition,
|
|
@@ -252,7 +179,7 @@ var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
252
179
|
key: "renderBankedContent",
|
|
253
180
|
value: function renderBankedContent() {
|
|
254
181
|
if (this.props.quizEntry.isBank || this.props.quizEntry.isBankEntry) {
|
|
255
|
-
return
|
|
182
|
+
return _IconBankLine || (_IconBankLine = (0, _emotion.jsx)(_uiIcons.IconBankLine, null));
|
|
256
183
|
}
|
|
257
184
|
}
|
|
258
185
|
}, {
|
|
@@ -266,7 +193,6 @@ var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
266
193
|
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
267
194
|
}, this.props.name);
|
|
268
195
|
}
|
|
269
|
-
|
|
270
196
|
return (0, _emotion.jsx)("div", {
|
|
271
197
|
css: this.props.styles.interactionType,
|
|
272
198
|
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
@@ -277,12 +203,12 @@ var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
277
203
|
value: function renderTitleHolder() {
|
|
278
204
|
if (!(this.props.entry instanceof _Item.default)) return;
|
|
279
205
|
var _this$props2 = this.props,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
206
|
+
entry = _this$props2.entry,
|
|
207
|
+
shouldClone = _this$props2.shouldClone,
|
|
208
|
+
quizEntry = _this$props2.quizEntry,
|
|
209
|
+
disabledForRegrade = _this$props2.disabledForRegrade,
|
|
210
|
+
displayPosition = _this$props2.displayPosition,
|
|
211
|
+
workingEntry = _this$props2.workingEntry;
|
|
286
212
|
var disabled = disabledForRegrade || entry.isImmutable() && !shouldClone || quizEntry.isBankEntry;
|
|
287
213
|
var titleLabelText = (0, _formatMessage.default)('Question {questionNumber}, {interactionType}, Edit question title', {
|
|
288
214
|
questionNumber: displayPosition,
|
|
@@ -342,12 +268,10 @@ var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
342
268
|
css: this.props.styles.header
|
|
343
269
|
}, (0, _emotion.jsx)(_emotion.Global, {
|
|
344
270
|
styles: this.props.styles.globalStyles
|
|
345
|
-
}), this.renderLeftHeader(), (0, _emotion.jsx)(
|
|
271
|
+
}), this.renderLeftHeader(), (0, _emotion.jsx)(_ActionButtons.default, actionButtonProps));
|
|
346
272
|
}
|
|
347
273
|
}]);
|
|
348
|
-
|
|
349
|
-
return QuizEntryHeader;
|
|
350
|
-
}(_react.Component), _class2.propTypes = {
|
|
274
|
+
}(_react.Component), _QuizEntryHeader.propTypes = {
|
|
351
275
|
changeItemTitle: _propTypes.default.func.isRequired,
|
|
352
276
|
// from connected component
|
|
353
277
|
clearModifications: _propTypes.default.func.isRequired,
|
|
@@ -385,7 +309,7 @@ var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
385
309
|
workingEntry: _reactImmutableProptypes.default.record.isRequired,
|
|
386
310
|
workingQuizEntry: _reactImmutableProptypes.default.record.isRequired,
|
|
387
311
|
styles: _propTypes.default.object
|
|
388
|
-
},
|
|
312
|
+
}, _QuizEntryHeader.defaultProps = {
|
|
389
313
|
disabledForRegrade: false,
|
|
390
314
|
initialFocusId: null,
|
|
391
315
|
name: null,
|
|
@@ -393,6 +317,5 @@ var QuizEntryHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
393
317
|
richFITBEnabled: false,
|
|
394
318
|
richFITBInteractionID: '',
|
|
395
319
|
shouldClone: false
|
|
396
|
-
},
|
|
397
|
-
var _default = QuizEntryHeader;
|
|
398
|
-
exports.default = _default;
|
|
320
|
+
}, _QuizEntryHeader)) || _class);
|
|
321
|
+
var _default = exports.default = QuizEntryHeader;
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var generateStyle = function generateStyle(componentTheme) {
|
|
9
8
|
return {
|
|
10
9
|
/* Hide left header when the RCE editor is in fullscreen mode */
|
|
@@ -27,7 +26,6 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
27
26
|
display: 'inline-flex',
|
|
28
27
|
flexWrap: 'nowrap',
|
|
29
28
|
alignItems: 'center',
|
|
30
|
-
|
|
31
29
|
/* fix for ie11 */
|
|
32
30
|
width: '100%'
|
|
33
31
|
},
|
|
@@ -52,6 +50,4 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
52
50
|
}
|
|
53
51
|
};
|
|
54
52
|
};
|
|
55
|
-
|
|
56
|
-
var _default = generateStyle;
|
|
57
|
-
exports.default = _default;
|
|
53
|
+
var _default = exports.default = generateStyle;
|