@instructure/quiz-core 20.20.1-rc.2 → 20.20.1-snapshot.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/banks/api/bankEntries.js +5 -14
- package/es/banks/api/banks.js +12 -24
- package/es/banks/api/copyingBanksPoller.js +6 -14
- package/es/banks/api/tagAssociations.js +4 -14
- package/es/banks/components/AddBankEntryModal/index.js +0 -3
- package/es/banks/components/AddBankEntryModal/presenter.js +0 -17
- package/es/banks/components/AddToBankModal/presenter.js +12 -48
- package/es/banks/components/AsyncSearch/index.js +8 -62
- package/es/banks/components/Bank/presenter.js +18 -69
- package/es/banks/components/Bank/styles.js +0 -2
- package/es/banks/components/Bank/theme.js +2 -3
- package/es/banks/components/BankEntriesList/presenter.js +5 -16
- 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 +0 -5
- package/es/banks/components/BankEntry/presenter.js +25 -110
- 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 +0 -2
- package/es/banks/components/BankEntryRow/index.js +0 -5
- package/es/banks/components/BankEntryRow/presenter.js +11 -39
- package/es/banks/components/BankEntryRow/styles.js +0 -1
- package/es/banks/components/BankEntryRow/theme.js +3 -4
- package/es/banks/components/BankSearch/index.js +0 -2
- package/es/banks/components/BankSearch/presenter.js +13 -31
- 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 +0 -3
- package/es/banks/components/Banks/presenter.js +15 -65
- package/es/banks/components/Banks/styles.js +0 -1
- package/es/banks/components/Banks/theme.js +2 -3
- package/es/banks/components/BanksList/presenter.js +10 -63
- package/es/banks/components/BanksList/styles.js +0 -1
- package/es/banks/components/BanksList/theme.js +3 -4
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +2 -29
- package/es/banks/components/CreateBankModal/index.js +0 -3
- package/es/banks/components/CreateBankModal/presenter.js +5 -31
- 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 +0 -3
- package/es/banks/components/EditBankModal/presenter.js +5 -25
- 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 +9 -19
- package/es/banks/components/HeaderMenu/index.js +0 -3
- package/es/banks/components/HeaderMenu/presenter.js +5 -15
- 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 +0 -2
- package/es/banks/components/NavWrapper/presenter.js +9 -25
- 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 +1 -14
- package/es/banks/components/SharingModal/RootAccountSharing.js +5 -18
- package/es/banks/components/SharingModal/ShareList/index.js +7 -24
- package/es/banks/components/SharingModal/ShareList/styles.js +0 -1
- package/es/banks/components/SharingModal/index.js +0 -2
- package/es/banks/components/SharingModal/presenter.js +27 -92
- package/es/banks/components/SharingModal/styles.js +0 -1
- package/es/banks/components/SharingModal/theme.js +2 -3
- package/es/building/api/items.js +14 -32
- package/es/building/api/qtiImports.js +4 -13
- package/es/building/api/quizEntries.js +26 -32
- package/es/building/api/quizzes.js +27 -22
- package/es/building/api/stimuli.js +6 -3
- package/es/building/components/QTIImportModal/index.js +2 -1
- package/es/building/components/layout/Sidebar/Sidebar.examples.js +2 -20
- package/es/building/components/layout/Sidebar/SidebarItem/index.js +2 -2
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +17 -28
- 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 +2 -3
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +15 -26
- 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 +3 -3
- package/es/building/components/layout/Sidebar/presenter.js +11 -38
- 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 +0 -2
- package/es/building/components/layout/header/BuildingButtons/presenter.js +7 -52
- 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/resources/ActionButtons/index.js +0 -3
- package/es/building/components/resources/ActionButtons/presenter.js +5 -22
- 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 +6 -25
- 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 +0 -2
- package/es/building/components/resources/BanksTray/presenter.js +2 -26
- package/es/building/components/resources/DeleteStimulusModal/index.js +3 -7
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +13 -44
- 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 +0 -2
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +5 -24
- 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 +5 -8
- package/es/building/components/resources/MoveImmutableModal/presenter.js +4 -17
- package/es/building/components/resources/quiz/editButton/EditButton.js +0 -12
- package/es/building/components/resources/quiz/instructions/Edit/index.js +0 -2
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +4 -13
- package/es/building/components/resources/quiz/instructions/Edit/styles.js +0 -1
- package/es/building/components/resources/quiz/instructions/Instructions/index.js +0 -2
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +16 -41
- 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 +10 -17
- 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 +12 -25
- 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 +5 -17
- 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/index.js +0 -2
- package/es/building/components/resources/quiz/title/Title/presenter.js +16 -34
- 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 +0 -2
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +10 -43
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -9
- 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/presenter.js +5 -35
- 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 +6 -17
- 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 +2 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +17 -44
- 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 +12 -60
- 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 +0 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +27 -91
- 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 +0 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +23 -53
- 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 +3 -13
- package/es/common/actions/rce.js +3 -2
- package/es/common/actions/taking.js +6 -4
- package/es/common/api/callHandlers.js +9 -13
- package/es/common/api/camelizeHelpers.js +6 -6
- package/es/common/api/features.js +0 -2
- package/es/common/api/fileUpload.js +3 -2
- package/es/common/api/getPersistenceActions.js +21 -23
- package/es/common/api/helpers.js +10 -29
- package/es/common/api/quizSessions.js +21 -26
- package/es/common/api/quizzes.js +3 -2
- package/es/common/api/schema.js +6 -4
- package/es/common/components/ApiFeatureFlagInitializer/index.js +0 -4
- package/es/common/components/ConfirmationModal/index.js +0 -3
- package/es/common/components/ConfirmationModal/presenter.js +9 -22
- package/es/common/components/ImportModal/ImportFileSelector/index.js +7 -18
- 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 +8 -8
- package/es/common/components/ImportModal/presenter.js +12 -59
- 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 +1 -20
- package/es/common/components/Pin/presenter.js +0 -10
- package/es/common/components/PreviewFrame/examples.config.js +0 -2
- package/es/common/components/PreviewFrame/index.js +0 -7
- package/es/common/components/PrintFontSizeModal/presenter.js +15 -25
- 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 +0 -2
- package/es/common/components/RceConfigProvider/presenter.js +22 -50
- package/es/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -6
- package/es/common/components/RceConfigProvider/rceConfigFetcher.js +1 -10
- package/es/common/components/RceConfigProvider/rceConfigMapper.js +3 -9
- package/es/common/components/SDKApp/index.js +12 -39
- package/es/common/components/SDKApp/styles.js +0 -1
- package/es/common/components/SDKHeaderCalculator.js +1 -1
- package/es/common/components/SDKTimer.js +1 -1
- package/es/common/components/alerts/index.js +0 -2
- package/es/common/components/alerts/presenter.js +5 -21
- 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 +5 -12
- 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 +0 -2
- package/es/common/components/layout/header/Calculator/presenter.js +2 -12
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +6 -23
- 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 +0 -3
- package/es/common/components/layout/header/Timer/presenter.js +9 -34
- 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 +4 -11
- 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 +5 -25
- 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 +4 -11
- 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 +3 -11
- package/es/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -3
- package/es/common/components/layout/sidebar/Sidebar/index.js +16 -53
- package/es/common/components/layout/sidebar/Sidebar/styles.js +0 -4
- package/es/common/components/layout/sidebar/Sidebar/theme.js +5 -7
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +22 -39
- 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/presenter.js +12 -27
- package/es/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +10 -32
- 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 +4 -13
- package/es/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -1
- package/es/common/components/layout/sidebar/Stimulus/index.js +0 -2
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +16 -33
- 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/presenter.js +6 -36
- package/es/common/components/resources/WarningWrapper/index.js +5 -16
- 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/presenter.js +8 -54
- package/es/common/components/resources/item/ItemEdit/index.js +2 -4
- package/es/common/components/resources/item/ItemEdit/presenter.js +8 -28
- package/es/common/components/resources/item/ItemOverride/index.js +0 -2
- package/es/common/components/resources/item/ItemOverride/presenter.js +0 -9
- package/es/common/components/resources/item/ItemShow/index.js +0 -7
- package/es/common/components/resources/positionBox/PositionBox.js +5 -12
- 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 +0 -2
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +15 -33
- package/es/common/components/resources/quiz/AddContent/Body/styles.js +0 -4
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +4 -5
- package/es/common/components/resources/quiz/AddContent/Button/index.js +5 -16
- 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 +5 -8
- package/es/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -5
- package/es/common/components/resources/quiz/AddContent/Popover/index.js +1 -4
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +5 -23
- 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 +0 -5
- package/es/common/components/resources/quiz/instructions/Instructions.js +4 -13
- 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 +4 -12
- 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 +5 -17
- 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/index.js +11 -28
- 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 +4 -13
- 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 +0 -2
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +9 -32
- 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 +5 -18
- 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 +0 -3
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +9 -23
- 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 +0 -3
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +18 -90
- 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 +0 -3
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +5 -27
- 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 +5 -19
- 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/index.js +0 -7
- package/es/common/components/shared/Card/CardContent/index.js +5 -12
- 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 +5 -12
- 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 +3 -4
- package/es/common/components/shared/ExpandButton/index.js +4 -11
- 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 +4 -12
- package/es/common/components/shared/IfFeature/presenter.js +0 -6
- package/es/common/components/shared/InteractionTypes/index.js +0 -2
- package/es/common/components/shared/InteractionTypes/presenter.js +7 -23
- 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/presenter.js +11 -36
- 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 +5 -15
- 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 +0 -2
- package/es/common/components/shared/PrintTrigger/presenter.js +3 -25
- package/es/common/components/shared/TagDisplay/index.js +5 -13
- package/es/common/components/shared/TagDisplay/styles.js +0 -1
- package/es/common/components/shared/TagSelect/presenter.js +11 -43
- package/es/common/components/shared/TagSuggestSelect/index.js +0 -3
- package/es/common/components/shared/TagSuggestSelect/presenter.js +7 -18
- package/es/common/components/shared/TagWrapper/presenter.js +3 -13
- package/es/common/components/shared/TimeUnitsInput/index.js +23 -52
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +12 -24
- 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/presenter.js +15 -50
- package/es/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -63
- package/es/common/components/shared/errors/Errors.js +5 -18
- 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 +5 -13
- 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 +0 -12
- package/es/common/components/shared/functionality/componentWithOutsideClickEmotion.js +6 -11
- package/es/common/components/shared/functionality/disableDraggingOverride.js +0 -1
- package/es/common/components/shared/functionality/makeEditable.js +15 -32
- package/es/common/components/shared/functionality/makeScrollable.js +9 -25
- package/es/common/components/shared/overlay/index.js +10 -20
- 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 +0 -7
- package/es/common/components/shared/spinner/Spinner.js +11 -20
- package/es/common/components/shared/spinner/styles.js +0 -1
- package/es/common/kinesis/QuizEventsLogger.js +14 -33
- package/es/common/kinesis/StreamQueue.js +6 -27
- package/es/common/kinesis/client.js +1 -3
- package/es/common/kinesis/config.js +2 -2
- package/es/common/kinesis/eventTypes.js +4 -4
- package/es/common/middleware/alertTimerMiddleware.js +2 -6
- package/es/common/middleware/crossDomainMessagingMiddleware.js +0 -3
- package/es/common/middleware/eventLoggerMiddleware.js +0 -5
- package/es/common/middleware/persistedStorageMiddleware.js +0 -7
- package/es/common/middleware/quizTimerWebSocketMiddleware.js +0 -11
- package/es/common/react-redux.js +0 -2
- package/es/common/records/Alert.js +0 -4
- package/es/common/records/Bank.js +0 -5
- package/es/common/records/BankEntry.js +0 -8
- package/es/common/records/Item.js +2 -9
- package/es/common/records/ItemAnalysis.js +0 -5
- package/es/common/records/QtiImport.js +0 -7
- package/es/common/records/Quiz.js +4 -13
- package/es/common/records/QuizAnalysis.js +0 -5
- package/es/common/records/QuizEntry.js +10 -57
- package/es/common/records/QuizSession.js +0 -10
- package/es/common/records/QuizSessionEvent.js +0 -5
- package/es/common/records/QuizSessionResult.js +0 -5
- package/es/common/records/Response.js +0 -5
- package/es/common/records/SessionItem.js +2 -13
- package/es/common/records/SessionItemResult.js +0 -5
- package/es/common/records/Stimulus.js +0 -5
- package/es/common/records/baseRecord.js +0 -11
- package/es/common/records/reduxRecord.js +0 -5
- package/es/common/reducers/alerts.js +0 -3
- package/es/common/reducers/analyses.js +0 -9
- 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 +0 -1
- 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 +6 -38
- 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 +0 -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 -37
- 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 +4 -7
- package/es/common/selectors/config.js +0 -2
- package/es/common/selectors/interactionTypes.js +3 -4
- package/es/common/selectors/items.js +0 -1
- package/es/common/selectors/qtiImports.js +2 -5
- package/es/common/selectors/quizSessions.js +2 -1
- package/es/common/selectors/quizzes.js +3 -9
- package/es/common/selectors/reporting.js +0 -2
- package/es/common/selectors/sessionItemResults.js +2 -3
- package/es/common/selectors/sessionItems.js +2 -3
- package/es/common/util/CustomPropTypes.js +0 -12
- package/es/common/util/ExhaustivePaginatedFetcher.js +7 -23
- package/es/common/util/Fetcher.js +25 -79
- package/es/common/util/MultiWeakMap.js +0 -19
- package/es/common/util/PaginatedFetcher.js +2 -16
- package/es/common/util/ThunkQueue.js +3 -30
- package/es/common/util/TimeRecordingService.js +0 -12
- package/es/common/util/TimerService.js +3 -42
- 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 +3 -3
- 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 +4 -3
- 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 +0 -6
- package/es/common/util/printUtils.js +0 -4
- package/es/common/util/rceChecker.js +1 -3
- package/es/common/util/renderAlerts.js +2 -6
- package/es/common/util/serializeEvent.js +0 -2
- package/es/common/util/sessionStore.js +4 -11
- package/es/common/util/warningHelpers.js +0 -9
- package/es/common/util/withCachedArguments.js +0 -6
- package/es/common/util/withDynamoPagination.js +14 -34
- package/es/common/util/withStateCache.js +0 -9
- package/es/config.js +5 -9
- package/es/configureStore.js +9 -8
- package/es/grading/api/quizEntryRegrades.js +3 -2
- package/es/grading/api/updateResults.js +0 -4
- package/es/index.js +4 -6
- package/es/messages/LocalStorageAdapter.js +0 -12
- package/es/messages/LocalStorageLimits.js +2 -23
- package/es/messages/StorageExhaustionError.js +1 -8
- package/es/messages/postMessageService.js +0 -20
- 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 +0 -3
- package/es/messages/subjectHandlers/lti.get_data.js +2 -7
- package/es/messages/subjectHandlers/lti.put_data.js +3 -8
- package/es/messages/subjectHandlers/requestFullWindowLaunch.js +0 -4
- package/es/messages/utils.js +0 -1
- package/es/moderating/components/events/Event.js +3 -17
- package/es/moderating/components/events/PageBlurredEvent.js +0 -5
- package/es/moderating/components/events/PageFocusedEvent.js +0 -5
- package/es/moderating/components/events/RCEEvent.js +0 -5
- package/es/moderating/components/events/ResponseEvent.js +4 -16
- package/es/moderating/components/events/SessionStartEvent.js +0 -5
- 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 +8 -23
- package/es/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -21
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -20
- package/es/moderating/components/resources/AccommodationsModal/index.js +7 -25
- package/es/moderating/components/resources/ElapsedTime.js +5 -9
- package/es/moderating/components/resources/ModerateTable/presenter.js +23 -70
- 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 +0 -2
- package/es/moderating/components/resources/ModerateTableRow/index.js +2 -2
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +19 -60
- package/es/moderating/components/resources/ModerateTableRow/story.js +0 -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/presenter.js +2 -26
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +0 -20
- package/es/moderating/components/sidebar/ResetQuiz/index.js +0 -2
- package/es/moderating/components/sidebar/ResetQuiz/presenter.js +1 -17
- package/es/reduxStore.js +0 -4
- package/es/reporting/api/getAnalysesExport.js +4 -11
- package/es/reporting/api/getAnalysesStatus.js +3 -6
- package/es/reporting/api/getItemAnalyses.js +3 -6
- package/es/reporting/api/getQuizAnalysis.js +3 -6
- package/es/reporting/components/Caption/index.js +5 -12
- 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 +8 -15
- package/es/reporting/components/MetricsListItem/styles.js +0 -1
- package/es/reporting/components/charts/CentileDistribution/presenter.js +10 -32
- 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 +15 -45
- 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 +8 -16
- 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 +7 -30
- 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/index.js +4 -21
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -6
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -6
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +14 -33
- 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 +9 -23
- package/es/reporting/components/quizAnalysis/styles.js +0 -3
- package/es/reporting/components/quizAnalysis/theme.js +3 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +9 -16
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +8 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -9
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +4 -23
- 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/presenter.js +7 -19
- 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 +2 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +14 -34
- 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 +2 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +12 -48
- 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/presenter.js +9 -29
- 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/presenter.js +4 -14
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +9 -22
- 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 +2 -10
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -30
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +7 -21
- 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/presenter.js +4 -15
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +4 -36
- 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/presenter.js +9 -48
- 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/presenter.js +6 -19
- 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 +2 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +5 -20
- 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/presenter.js +4 -11
- 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 +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +10 -37
- 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/presenter.js +7 -25
- 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/presenter.js +18 -40
- 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/presenter.js +5 -20
- 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 +0 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -8
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -19
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +18 -53
- 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 +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -54
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -16
- package/es/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -6
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +16 -39
- 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 +8 -15
- 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 +8 -15
- 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 +30 -42
- package/es/taking/learnosity/index.js +9 -33
- package/lib/banks/api/bankEntries.js +5 -50
- package/lib/banks/api/banks.js +12 -66
- package/lib/banks/api/copyingBanksPoller.js +6 -25
- package/lib/banks/api/tagAssociations.js +4 -26
- package/lib/banks/components/AddBankEntryModal/index.js +0 -13
- package/lib/banks/components/AddBankEntryModal/presenter.js +0 -34
- package/lib/banks/components/AddToBankModal/index.js +0 -19
- package/lib/banks/components/AddToBankModal/presenter.js +12 -74
- package/lib/banks/components/AsyncSearch/index.js +8 -79
- package/lib/banks/components/Bank/index.js +0 -18
- package/lib/banks/components/Bank/presenter.js +21 -107
- package/lib/banks/components/Bank/styles.js +0 -5
- package/lib/banks/components/Bank/theme.js +2 -4
- package/lib/banks/components/BankEntriesList/index.js +0 -8
- package/lib/banks/components/BankEntriesList/presenter.js +6 -28
- package/lib/banks/components/BankEntriesList/styles.js +0 -2
- package/lib/banks/components/BankEntriesList/theme.js +0 -2
- package/lib/banks/components/BankEntry/index.js +0 -23
- package/lib/banks/components/BankEntry/presenter.js +26 -153
- package/lib/banks/components/BankEntry/styles.js +0 -4
- package/lib/banks/components/BankEntry/theme.js +3 -5
- package/lib/banks/components/BankEntryRow/BankEntryRow.examples.js +0 -7
- package/lib/banks/components/BankEntryRow/index.js +0 -19
- package/lib/banks/components/BankEntryRow/presenter.js +13 -69
- package/lib/banks/components/BankEntryRow/styles.js +0 -2
- package/lib/banks/components/BankEntryRow/theme.js +3 -5
- package/lib/banks/components/BankSearch/BankSearch.stories.js +0 -13
- package/lib/banks/components/BankSearch/index.js +0 -11
- package/lib/banks/components/BankSearch/presenter.js +14 -54
- package/lib/banks/components/BankSearch/styles.js +0 -2
- package/lib/banks/components/BankSearch/theme.js +0 -2
- package/lib/banks/components/Banks/index.js +0 -14
- package/lib/banks/components/Banks/presenter.js +16 -97
- package/lib/banks/components/Banks/styles.js +0 -2
- package/lib/banks/components/Banks/theme.js +2 -4
- package/lib/banks/components/BanksList/index.js +0 -13
- package/lib/banks/components/BanksList/presenter.js +12 -91
- package/lib/banks/components/BanksList/styles.js +0 -2
- package/lib/banks/components/BanksList/theme.js +3 -5
- package/lib/banks/components/CopyMoveBankEntryModal/index.js +0 -16
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -49
- package/lib/banks/components/CreateBankModal/index.js +0 -19
- package/lib/banks/components/CreateBankModal/presenter.js +6 -49
- package/lib/banks/components/CreateBankModal/styles.js +0 -2
- package/lib/banks/components/CreateBankModal/theme.js +1 -3
- package/lib/banks/components/EditBankModal/index.js +0 -16
- package/lib/banks/components/EditBankModal/presenter.js +6 -41
- package/lib/banks/components/EditBankModal/styles.js +0 -2
- package/lib/banks/components/EditBankModal/theme.js +1 -3
- package/lib/banks/components/HeaderBreadCrumb/index.js +9 -34
- package/lib/banks/components/HeaderMenu/index.js +0 -11
- package/lib/banks/components/HeaderMenu/presenter.js +6 -32
- package/lib/banks/components/HeaderMenu/styles.js +0 -2
- package/lib/banks/components/HeaderMenu/theme.js +1 -3
- package/lib/banks/components/NavWrapper/NavWrapper.examples.js +0 -5
- package/lib/banks/components/NavWrapper/index.js +0 -7
- package/lib/banks/components/NavWrapper/presenter.js +10 -45
- package/lib/banks/components/NavWrapper/styles.js +0 -3
- package/lib/banks/components/NavWrapper/theme.js +4 -6
- package/lib/banks/components/SharingModal/ContextualIconButton/index.js +1 -26
- package/lib/banks/components/SharingModal/RootAccountSharing.js +5 -35
- package/lib/banks/components/SharingModal/ShareList/ShareList.examples.js +0 -2
- package/lib/banks/components/SharingModal/ShareList/index.js +8 -43
- package/lib/banks/components/SharingModal/ShareList/styles.js +0 -2
- package/lib/banks/components/SharingModal/index.js +0 -13
- package/lib/banks/components/SharingModal/presenter.js +29 -123
- package/lib/banks/components/SharingModal/styles.js +0 -2
- package/lib/banks/components/SharingModal/theme.js +2 -4
- package/lib/building/api/items.js +12 -45
- package/lib/building/api/qtiImports.js +4 -29
- package/lib/building/api/quizEntries.js +23 -67
- package/lib/building/api/quizzes.js +27 -55
- package/lib/building/api/stimuli.js +4 -11
- package/lib/building/components/QTIImportModal/index.js +2 -13
- package/lib/building/components/layout/Sidebar/Sidebar.examples.js +2 -29
- package/lib/building/components/layout/Sidebar/SidebarItem/index.js +2 -25
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +18 -41
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +1 -5
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +0 -2
- package/lib/building/components/layout/Sidebar/Stimulus/index.js +2 -24
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +16 -39
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +1 -5
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +0 -2
- package/lib/building/components/layout/Sidebar/index.js +3 -22
- package/lib/building/components/layout/Sidebar/presenter.js +13 -54
- package/lib/building/components/layout/Sidebar/styles.js +0 -4
- package/lib/building/components/layout/Sidebar/theme.js +0 -2
- package/lib/building/components/layout/header/BuildingButtons/index.js +0 -17
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +8 -69
- package/lib/building/components/layout/header/BuildingButtons/styles.js +0 -4
- package/lib/building/components/layout/header/BuildingButtons/theme.js +2 -4
- package/lib/building/components/layout/header/SDKBuildingButtons/index.js +0 -7
- package/lib/building/components/resources/ActionButtons/index.js +0 -11
- package/lib/building/components/resources/ActionButtons/presenter.js +6 -38
- package/lib/building/components/resources/ActionButtons/styles.js +0 -6
- package/lib/building/components/resources/ActionButtons/theme.js +1 -3
- package/lib/building/components/resources/AddToBankOptions/index.js +7 -40
- package/lib/building/components/resources/AddToBankOptions/styles.js +0 -2
- package/lib/building/components/resources/AddToBankOptions/theme.js +1 -3
- package/lib/building/components/resources/BanksTray/index.js +0 -6
- package/lib/building/components/resources/BanksTray/presenter.js +2 -46
- package/lib/building/components/resources/DeleteStimulusModal/index.js +3 -15
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +14 -63
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +0 -2
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +1 -3
- package/lib/building/components/resources/ItemFeedbackModal/index.js +0 -13
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +6 -38
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +0 -2
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +0 -2
- package/lib/building/components/resources/MoveImmutableModal/index.js +5 -18
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +4 -32
- package/lib/building/components/resources/quiz/editButton/EditButton.js +0 -26
- package/lib/building/components/resources/quiz/instructions/Edit/index.js +0 -6
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +5 -29
- package/lib/building/components/resources/quiz/instructions/Edit/styles.js +0 -2
- package/lib/building/components/resources/quiz/instructions/Edit/theme.js +0 -1
- package/lib/building/components/resources/quiz/instructions/Instructions/Instructions.examples.js +0 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/index.js +0 -11
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +12 -55
- package/lib/building/components/resources/quiz/instructions/Instructions/styles.js +0 -4
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +2 -3
- package/lib/building/components/resources/quiz/instructions/Show/index.js +6 -31
- package/lib/building/components/resources/quiz/instructions/Show/styles.js +0 -2
- package/lib/building/components/resources/quiz/instructions/Show/theme.js +2 -3
- package/lib/building/components/resources/quiz/title/Edit/index.js +8 -40
- package/lib/building/components/resources/quiz/title/Edit/styles.js +0 -4
- package/lib/building/components/resources/quiz/title/Edit/theme.js +3 -5
- package/lib/building/components/resources/quiz/title/Show/index.js +6 -31
- package/lib/building/components/resources/quiz/title/Show/styles.js +0 -2
- package/lib/building/components/resources/quiz/title/Show/theme.js +0 -2
- package/lib/building/components/resources/quiz/title/Title/Title.examples.js +0 -4
- package/lib/building/components/resources/quiz/title/Title/index.js +0 -12
- package/lib/building/components/resources/quiz/title/Title/presenter.js +12 -49
- package/lib/building/components/resources/quiz/title/Title/styles.js +0 -5
- package/lib/building/components/resources/quiz/title/Title/theme.js +3 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +0 -22
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +13 -79
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +0 -13
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +0 -4
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/index.js +0 -8
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +6 -55
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +0 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +7 -30
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +0 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/index.js +2 -11
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +18 -64
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +0 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +13 -83
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +0 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/index.js +0 -20
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +29 -118
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +0 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +3 -5
- package/lib/building/components/resources/quizEntry/QuizEntryShow/index.js +0 -12
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +24 -76
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +0 -5
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -6
- package/lib/common/actions/addInteractionTypes.js +0 -2
- package/lib/common/actions/alerts.js +7 -16
- package/lib/common/actions/analyses.js +0 -7
- package/lib/common/actions/bankEntries.js +0 -5
- package/lib/common/actions/bankSearch.js +0 -9
- package/lib/common/actions/banks.js +0 -13
- package/lib/common/actions/config.js +0 -4
- package/lib/common/actions/dragAndDrop.js +0 -2
- package/lib/common/actions/editing.js +0 -4
- package/lib/common/actions/errorsShowing.js +0 -4
- package/lib/common/actions/features.js +0 -3
- package/lib/common/actions/grading.js +0 -4
- package/lib/common/actions/items.js +0 -2
- package/lib/common/actions/modal.js +0 -7
- package/lib/common/actions/moderation.js +0 -3
- package/lib/common/actions/modifications.js +35 -57
- package/lib/common/actions/outcomes.js +0 -5
- package/lib/common/actions/postMessage.js +0 -2
- package/lib/common/actions/printing.js +0 -3
- package/lib/common/actions/qtiImports.js +0 -3
- package/lib/common/actions/quizEntries.js +0 -7
- package/lib/common/actions/quizExport.js +0 -3
- package/lib/common/actions/quizSessionEvents.js +0 -3
- package/lib/common/actions/quizSessionResults.js +0 -3
- package/lib/common/actions/quizSessions.js +3 -30
- package/lib/common/actions/quizzes.js +0 -13
- package/lib/common/actions/rce.js +3 -9
- package/lib/common/actions/regrading.js +0 -4
- package/lib/common/actions/reporting.js +0 -6
- package/lib/common/actions/scrolling.js +0 -3
- package/lib/common/actions/sessionItemResults.js +0 -3
- package/lib/common/actions/sessionItems.js +0 -3
- package/lib/common/actions/sharedBanks.js +0 -7
- package/lib/common/actions/sidebar.js +0 -3
- package/lib/common/actions/stimuli.js +0 -2
- package/lib/common/actions/tagAssociations.js +0 -17
- package/lib/common/actions/taking.js +6 -42
- package/lib/common/actions/ui.js +0 -19
- package/lib/common/actions/upload.js +0 -11
- package/lib/common/api/callHandlers.js +10 -62
- package/lib/common/api/camelizeHelpers.js +3 -10
- package/lib/common/api/features.js +0 -8
- package/lib/common/api/fileUpload.js +3 -9
- package/lib/common/api/getPersistenceActions.js +22 -43
- package/lib/common/api/helpers.js +10 -46
- package/lib/common/api/interactionTypes.js +0 -5
- package/lib/common/api/quizSessions.js +21 -64
- package/lib/common/api/quizzes.js +4 -12
- package/lib/common/api/schema.js +6 -7
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +0 -12
- package/lib/common/components/ConfirmationModal/index.js +0 -11
- package/lib/common/components/ConfirmationModal/presenter.js +9 -36
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +8 -31
- package/lib/common/components/ImportModal/ImportFileSelector/styles.js +0 -2
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +2 -4
- package/lib/common/components/ImportModal/index.js +8 -21
- package/lib/common/components/ImportModal/presenter.js +13 -80
- package/lib/common/components/ImportModal/styles.js +0 -2
- package/lib/common/components/ImportModal/theme.js +0 -2
- package/lib/common/components/LearnosityCalculator/index.js +1 -32
- package/lib/common/components/Pin/index.js +0 -2
- package/lib/common/components/Pin/presenter.js +0 -22
- package/lib/common/components/PreviewFrame/examples.config.js +0 -4
- package/lib/common/components/PreviewFrame/index.js +0 -19
- package/lib/common/components/PrintFontSizeModal/index.js +0 -3
- package/lib/common/components/PrintFontSizeModal/presenter.js +16 -40
- package/lib/common/components/PrintFontSizeModal/styles.js +0 -2
- package/lib/common/components/PrintFontSizeModal/theme.js +2 -4
- package/lib/common/components/RceConfigProvider/index.js +0 -8
- package/lib/common/components/RceConfigProvider/presenter.js +22 -66
- package/lib/common/components/RceConfigProvider/rceConfigErrorHandler.js +0 -15
- package/lib/common/components/RceConfigProvider/rceConfigErrorMessages.js +0 -13
- package/lib/common/components/RceConfigProvider/rceConfigFetcher.js +1 -14
- package/lib/common/components/RceConfigProvider/rceConfigMapper.js +3 -14
- package/lib/common/components/RceConfigProvider/rceConfigUtils.js +0 -4
- package/lib/common/components/SDKApp/index.js +16 -62
- package/lib/common/components/SDKApp/styles.js +0 -2
- package/lib/common/components/SDKHeaderCalculator.js +1 -9
- package/lib/common/components/SDKMenuButton.js +0 -7
- package/lib/common/components/SDKNavBar.js +0 -7
- package/lib/common/components/SDKTimer.js +1 -9
- package/lib/common/components/alerts/index.js +0 -9
- package/lib/common/components/alerts/presenter.js +6 -35
- package/lib/common/components/alerts/styles.js +0 -4
- package/lib/common/components/alerts/theme.js +1 -3
- package/lib/common/components/layout/Page/index.js +6 -20
- package/lib/common/components/layout/Page/styles.js +0 -5
- package/lib/common/components/layout/Page/theme.js +2 -4
- package/lib/common/components/layout/header/Calculator/index.js +0 -9
- package/lib/common/components/layout/header/Calculator/presenter.js +2 -26
- package/lib/common/components/layout/header/HeaderMenuButton/index.js +0 -10
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +7 -35
- package/lib/common/components/layout/header/HeaderMenuButton/styles.js +0 -4
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +2 -4
- package/lib/common/components/layout/header/Timer/index.js +0 -13
- package/lib/common/components/layout/header/Timer/presenter.js +10 -53
- package/lib/common/components/layout/header/Timer/styles.js +0 -2
- package/lib/common/components/layout/header/Timer/theme.js +3 -5
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +5 -21
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -2
- package/lib/common/components/layout/navbar/index.js +6 -37
- package/lib/common/components/layout/navbar/styles.js +0 -2
- package/lib/common/components/layout/navbar/theme.js +1 -3
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +5 -21
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +0 -2
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +3 -5
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +0 -20
- package/lib/common/components/layout/sidebar/Sidebar/Sidebar.examples.js +0 -6
- package/lib/common/components/layout/sidebar/Sidebar/index.js +18 -76
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +0 -7
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +5 -8
- package/lib/common/components/layout/sidebar/SidebarItem/index.js +0 -12
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +23 -55
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +0 -4
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +3 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/index.js +0 -6
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +13 -43
- package/lib/common/components/layout/sidebar/Stimulus/Collection/styles.js +0 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Summary/index.js +0 -6
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +11 -44
- package/lib/common/components/layout/sidebar/Stimulus/Summary/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -4
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +5 -23
- package/lib/common/components/layout/sidebar/Stimulus/Title/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/index.js +0 -9
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +17 -51
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +0 -2
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +3 -5
- package/lib/common/components/resources/BankSelection/index.js +0 -11
- package/lib/common/components/resources/BankSelection/presenter.js +6 -51
- package/lib/common/components/resources/WarningWrapper/index.js +6 -29
- package/lib/common/components/resources/WarningWrapper/styles.js +0 -2
- package/lib/common/components/resources/WarningWrapper/theme.js +2 -4
- package/lib/common/components/resources/entry/EntrySave/index.js +0 -15
- package/lib/common/components/resources/entry/EntrySave/presenter.js +8 -73
- package/lib/common/components/resources/item/ItemEdit/index.js +2 -24
- package/lib/common/components/resources/item/ItemEdit/presenter.js +8 -50
- package/lib/common/components/resources/item/ItemOverride/index.js +0 -16
- package/lib/common/components/resources/item/ItemOverride/presenter.js +0 -23
- package/lib/common/components/resources/item/ItemShow/index.js +0 -20
- package/lib/common/components/resources/positionBox/PositionBox.js +6 -22
- package/lib/common/components/resources/positionBox/styles.js +0 -4
- package/lib/common/components/resources/positionBox/theme.js +2 -4
- package/lib/common/components/resources/quiz/AddContent/Body/index.js +0 -12
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +16 -51
- package/lib/common/components/resources/quiz/AddContent/Body/styles.js +0 -6
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +4 -6
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +6 -29
- package/lib/common/components/resources/quiz/AddContent/Button/styles.js +0 -5
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +4 -6
- package/lib/common/components/resources/quiz/AddContent/Modal/index.js +5 -14
- package/lib/common/components/resources/quiz/AddContent/Modal/presenter.js +0 -18
- package/lib/common/components/resources/quiz/AddContent/Popover/index.js +1 -12
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +6 -39
- package/lib/common/components/resources/quiz/AddContent/Popover/styles.js +0 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -3
- package/lib/common/components/resources/quiz/info/QuizInfo.js +0 -16
- package/lib/common/components/resources/quiz/instructions/Instructions.js +10 -24
- package/lib/common/components/resources/quiz/instructions/styles.js +0 -2
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -3
- package/lib/common/components/resources/quiz/title/Title.js +9 -24
- package/lib/common/components/resources/quiz/title/styles.js +0 -2
- package/lib/common/components/resources/quiz/title/theme.js +1 -3
- package/lib/common/components/resources/quizSessionResult/Header/index.js +6 -30
- package/lib/common/components/resources/quizSessionResult/Header/styles.js +0 -2
- package/lib/common/components/resources/quizSessionResult/Header/theme.js +1 -3
- package/lib/common/components/resources/quizSessionResult/Info/Info.examples.js +0 -5
- package/lib/common/components/resources/quizSessionResult/Info/index.js +12 -49
- package/lib/common/components/resources/quizSessionResult/Info/styles.js +0 -3
- package/lib/common/components/resources/quizSessionResult/Info/theme.js +1 -3
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +5 -24
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/styles.js +0 -5
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -6
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/index.js +0 -8
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +11 -53
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/styles.js +0 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +3 -5
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +6 -34
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/styles.js +0 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +3 -5
- package/lib/common/components/resources/stimulus/Stimulus/index.js +0 -11
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +10 -45
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +1 -9
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +3 -5
- package/lib/common/components/resources/stimulus/StimulusEdit/index.js +0 -19
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +19 -122
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusEditInfo/index.js +0 -11
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +6 -47
- package/lib/common/components/resources/stimulus/StimulusEditInfo/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +7 -32
- package/lib/common/components/resources/stimulus/StimulusShow/styles.js +0 -2
- package/lib/common/components/resources/stimulus/StimulusShow/theme.js +2 -4
- package/lib/common/components/resources/stimulus/StimulusShowInfo/StimulusShowInfo.examples.js +0 -3
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +0 -19
- package/lib/common/components/shared/Card/CardContent/index.js +6 -22
- package/lib/common/components/shared/Card/CardContent/styles.js +0 -4
- package/lib/common/components/shared/Card/CardContent/theme.js +4 -6
- package/lib/common/components/shared/Card/CardWrapper/index.js +6 -22
- package/lib/common/components/shared/Card/CardWrapper/styles.js +0 -4
- package/lib/common/components/shared/Card/CardWrapper/theme.js +2 -4
- package/lib/common/components/shared/Card/index.js +3 -13
- package/lib/common/components/shared/ExpandButton/index.js +5 -22
- package/lib/common/components/shared/ExpandButton/styles.js +0 -4
- package/lib/common/components/shared/ExpandButton/theme.js +0 -2
- package/lib/common/components/shared/FormattedDuration/FormattedDuration.examples.js +0 -4
- package/lib/common/components/shared/FormattedDuration/index.js +4 -28
- package/lib/common/components/shared/IfFeature/index.js +0 -5
- package/lib/common/components/shared/IfFeature/presenter.js +0 -13
- package/lib/common/components/shared/InteractionTypes/index.js +0 -6
- package/lib/common/components/shared/InteractionTypes/presenter.js +8 -42
- package/lib/common/components/shared/InteractionTypes/styles.js +0 -2
- package/lib/common/components/shared/InteractionTypes/theme.js +2 -4
- package/lib/common/components/shared/PaginatedCollection/index.js +0 -8
- package/lib/common/components/shared/PaginatedCollection/presenter.js +25 -51
- package/lib/common/components/shared/PaginatedCollection/styles.js +0 -2
- package/lib/common/components/shared/PaginatedCollection/theme.js +2 -4
- package/lib/common/components/shared/Paginator/index.js +6 -25
- package/lib/common/components/shared/Paginator/styles.js +0 -2
- package/lib/common/components/shared/Paginator/theme.js +0 -2
- package/lib/common/components/shared/PrintTrigger/index.js +0 -14
- package/lib/common/components/shared/PrintTrigger/presenter.js +3 -42
- package/lib/common/components/shared/TagDisplay/index.js +6 -25
- package/lib/common/components/shared/TagDisplay/styles.js +0 -2
- package/lib/common/components/shared/TagSelect/index.js +0 -3
- package/lib/common/components/shared/TagSelect/presenter.js +11 -59
- package/lib/common/components/shared/TagSuggestSelect/index.js +0 -10
- package/lib/common/components/shared/TagSuggestSelect/presenter.js +7 -34
- package/lib/common/components/shared/TagWrapper/index.js +0 -3
- package/lib/common/components/shared/TagWrapper/presenter.js +3 -25
- package/lib/common/components/shared/TimeUnitsInput/index.js +20 -68
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +13 -34
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +0 -4
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +2 -4
- package/lib/common/components/shared/drag_and_drop/DragHandle/index.js +0 -15
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +15 -66
- package/lib/common/components/shared/drag_and_drop/dragAndDropUtils.js +21 -88
- package/lib/common/components/shared/errors/Errors.js +6 -29
- package/lib/common/components/shared/errors/styles.js +0 -2
- package/lib/common/components/shared/errors/theme.js +1 -3
- package/lib/common/components/shared/file_selector/FileSelector.js +6 -24
- package/lib/common/components/shared/file_selector/styles.js +0 -2
- package/lib/common/components/shared/file_selector/theme.js +2 -4
- package/lib/common/components/shared/functionality/componentWithOutsideClick.js +4 -21
- package/lib/common/components/shared/functionality/componentWithOutsideClickEmotion.js +4 -19
- package/lib/common/components/shared/functionality/disableDraggingOverride.js +0 -5
- package/lib/common/components/shared/functionality/makeEditable.js +19 -48
- package/lib/common/components/shared/functionality/makeScrollable.js +9 -44
- package/lib/common/components/shared/overlay/index.js +17 -26
- package/lib/common/components/shared/overlay/styles.js +0 -4
- package/lib/common/components/shared/overlay/theme.js +2 -4
- package/lib/common/components/shared/return_button/ReturnButton.js +0 -18
- package/lib/common/components/shared/spinner/Spinner.js +12 -31
- package/lib/common/components/shared/spinner/styles.js +0 -2
- package/lib/common/kinesis/QuizEventsLogger.js +14 -45
- package/lib/common/kinesis/StreamQueue.js +6 -29
- package/lib/common/kinesis/client.js +1 -14
- package/lib/common/kinesis/config.js +2 -11
- package/lib/common/kinesis/eventTypes.js +4 -5
- package/lib/common/middleware/alertTimerMiddleware.js +2 -8
- package/lib/common/middleware/crossDomainMessagingMiddleware.js +0 -5
- package/lib/common/middleware/eventLoggerMiddleware.js +1 -8
- package/lib/common/middleware/persistedStorageMiddleware.js +1 -11
- package/lib/common/middleware/quizTimerWebSocketMiddleware.js +0 -29
- package/lib/common/react-redux.js +1 -4
- package/lib/common/records/Alert.js +0 -10
- package/lib/common/records/Bank.js +0 -17
- package/lib/common/records/BankEntry.js +0 -18
- package/lib/common/records/Item.js +2 -21
- package/lib/common/records/ItemAnalysis.js +0 -15
- package/lib/common/records/QtiImport.js +0 -13
- package/lib/common/records/Quiz.js +4 -28
- package/lib/common/records/QuizAnalysis.js +0 -12
- package/lib/common/records/QuizEntry.js +10 -78
- package/lib/common/records/QuizSession.js +0 -23
- package/lib/common/records/QuizSessionEvent.js +0 -12
- package/lib/common/records/QuizSessionResult.js +0 -14
- package/lib/common/records/Response.js +0 -14
- package/lib/common/records/SessionItem.js +2 -23
- package/lib/common/records/SessionItemResult.js +0 -13
- package/lib/common/records/Stimulus.js +0 -16
- package/lib/common/records/baseRecord.js +0 -21
- package/lib/common/records/index.js +0 -17
- package/lib/common/records/reduxRecord.js +0 -11
- package/lib/common/reducers/alerts.js +0 -7
- package/lib/common/reducers/analyses.js +0 -15
- package/lib/common/reducers/bankEntries.js +0 -11
- package/lib/common/reducers/bankSearch.js +4 -14
- package/lib/common/reducers/banks.js +1 -19
- package/lib/common/reducers/calls.js +0 -7
- package/lib/common/reducers/config.js +0 -9
- package/lib/common/reducers/dragAndDrop.js +0 -6
- package/lib/common/reducers/editing.js +0 -7
- package/lib/common/reducers/errorsShowing.js +0 -8
- package/lib/common/reducers/features.js +0 -7
- package/lib/common/reducers/grading.js +0 -8
- package/lib/common/reducers/interactionTypes.js +0 -9
- package/lib/common/reducers/items.js +0 -10
- package/lib/common/reducers/modal.js +0 -10
- package/lib/common/reducers/moderation.js +0 -8
- package/lib/common/reducers/modifications.js +6 -44
- package/lib/common/reducers/outcomes.js +0 -10
- package/lib/common/reducers/printing.js +0 -6
- package/lib/common/reducers/qtiImports.js +0 -11
- package/lib/common/reducers/quizEntries.js +28 -46
- package/lib/common/reducers/quizExport.js +0 -6
- package/lib/common/reducers/quizSessionEvents.js +0 -9
- package/lib/common/reducers/quizSessionResults.js +0 -9
- package/lib/common/reducers/quizSessions.js +2 -18
- package/lib/common/reducers/quizzes.js +0 -21
- package/lib/common/reducers/rce.js +0 -9
- package/lib/common/reducers/regrading.js +0 -9
- package/lib/common/reducers/reporting.js +0 -18
- package/lib/common/reducers/scrolling.js +0 -7
- package/lib/common/reducers/sessionItemResults.js +0 -9
- package/lib/common/reducers/sessionItems.js +0 -10
- package/lib/common/reducers/sharedBanks.js +1 -13
- package/lib/common/reducers/sidebar.js +0 -7
- package/lib/common/reducers/stimuli.js +0 -10
- package/lib/common/reducers/tagAssociations.js +0 -32
- package/lib/common/reducers/taking.js +0 -40
- package/lib/common/reducers/ui.js +0 -15
- package/lib/common/reducers/upload.js +0 -11
- package/lib/common/selectors/analyses.js +0 -14
- package/lib/common/selectors/calculator.js +4 -11
- package/lib/common/selectors/calls.js +0 -3
- package/lib/common/selectors/config.js +0 -4
- package/lib/common/selectors/interactionTypes.js +5 -13
- package/lib/common/selectors/items.js +0 -7
- package/lib/common/selectors/qtiImports.js +2 -9
- package/lib/common/selectors/quizSessionResults.js +0 -5
- package/lib/common/selectors/quizSessions.js +3 -14
- package/lib/common/selectors/quizzes.js +4 -39
- package/lib/common/selectors/rce.js +0 -4
- package/lib/common/selectors/reporting.js +0 -6
- package/lib/common/selectors/sessionItemResults.js +2 -10
- package/lib/common/selectors/sessionItems.js +2 -11
- package/lib/common/selectors/taking.js +0 -16
- package/lib/common/selectors/ui.js +0 -2
- package/lib/common/util/CustomPropTypes.js +0 -18
- package/lib/common/util/ElementsForSelectors.js +0 -4
- package/lib/common/util/ExhaustivePaginatedFetcher.js +7 -32
- package/lib/common/util/Fetcher.js +24 -95
- package/lib/common/util/MultiWeakMap.js +0 -21
- package/lib/common/util/PaginatedFetcher.js +2 -29
- package/lib/common/util/ThunkQueue.js +3 -33
- package/lib/common/util/TimeRecordingService.js +0 -16
- package/lib/common/util/TimerService.js +3 -50
- package/lib/common/util/cachePreviousArgs.js +0 -7
- package/lib/common/util/callHelpers.js +0 -10
- package/lib/common/util/componentForItem.js +1 -11
- package/lib/common/util/crossDomainMessaging.js +0 -2
- package/lib/common/util/debounceLatestPromise.js +0 -6
- package/lib/common/util/featureCheck.js +3 -13
- package/lib/common/util/fetchHelpers.js +0 -1
- package/lib/common/util/fitbCopyHelper.js +1 -4
- package/lib/common/util/formatTimespan.js +0 -18
- package/lib/common/util/generateDisplayPositions.js +2 -7
- package/lib/common/util/httpHeaders.js +0 -4
- package/lib/common/util/immutableHelpers.js +4 -10
- package/lib/common/util/instUIMessages.js +0 -2
- package/lib/common/util/interactionTypeMetadata.js +3 -9
- package/lib/common/util/interactionTypePropsHelper.js +0 -14
- package/lib/common/util/interactionTypeRecordForItem.js +1 -10
- package/lib/common/util/jsonify.js +1 -5
- package/lib/common/util/keyboardClickable.js +0 -2
- package/lib/common/util/mathRenderingUtils.js +0 -2
- package/lib/common/util/maxContent.js +0 -6
- package/lib/common/util/modalHelpers.js +0 -2
- package/lib/common/util/noop.js +0 -2
- package/lib/common/util/persistedState.js +0 -13
- package/lib/common/util/printUtils.js +0 -7
- package/lib/common/util/rceChecker.js +1 -10
- package/lib/common/util/renderAlerts.js +6 -17
- package/lib/common/util/serializeEvent.js +0 -8
- package/lib/common/util/sessionStore.js +4 -13
- package/lib/common/util/valMap.js +0 -4
- package/lib/common/util/warningHelpers.js +0 -27
- package/lib/common/util/windowChecks.js +0 -10
- package/lib/common/util/withCachedArguments.js +0 -9
- package/lib/common/util/withDynamoPagination.js +14 -43
- package/lib/common/util/withStateCache.js +0 -15
- package/lib/config.js +2 -11
- package/lib/configureStore.js +9 -60
- package/lib/grading/api/quizEntryRegrades.js +3 -9
- package/lib/grading/api/updateResults.js +0 -12
- package/lib/index.js +0 -130
- package/lib/messages/LocalStorageAdapter.js +0 -14
- package/lib/messages/LocalStorageLimits.js +2 -25
- package/lib/messages/StorageExhaustionError.js +1 -12
- package/lib/messages/postMessageService.js +0 -29
- package/lib/messages/subjectHandlers/forwardMessage.js +0 -2
- package/lib/messages/subjectHandlers/lti.capabilities.js +0 -2
- package/lib/messages/subjectHandlers/lti.fetchWindowSize.js +0 -2
- package/lib/messages/subjectHandlers/lti.frameResize.js +0 -4
- package/lib/messages/subjectHandlers/lti.get_data.js +2 -9
- package/lib/messages/subjectHandlers/lti.put_data.js +3 -14
- package/lib/messages/subjectHandlers/requestFullWindowLaunch.js +0 -7
- package/lib/messages/utils.js +0 -1
- package/lib/moderating/api/quizSessionEvents.js +0 -6
- package/lib/moderating/api/quizSessions.js +0 -8
- package/lib/moderating/components/events/Event.js +3 -33
- package/lib/moderating/components/events/PageBlurredEvent.js +0 -14
- package/lib/moderating/components/events/PageFocusedEvent.js +0 -14
- package/lib/moderating/components/events/RCEEvent.js +0 -14
- package/lib/moderating/components/events/ResponseEvent.js +5 -31
- package/lib/moderating/components/events/SessionStartEvent.js +0 -19
- package/lib/moderating/components/events/styles.js +0 -2
- package/lib/moderating/components/events/theme.js +1 -3
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/ExtraAttemptsInput/index.js +8 -33
- package/lib/moderating/components/resources/AccommodationsModal/ExtraAttemptSettings/index.js +0 -32
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +0 -33
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +0 -35
- package/lib/moderating/components/resources/AccommodationsModal/index.js +7 -42
- package/lib/moderating/components/resources/ElapsedTime.js +5 -19
- package/lib/moderating/components/resources/ModerateTable/index.js +0 -11
- package/lib/moderating/components/resources/ModerateTable/presenter.js +24 -93
- package/lib/moderating/components/resources/ModerateTable/styles.js +0 -4
- package/lib/moderating/components/resources/ModerateTable/theme.js +1 -3
- package/lib/moderating/components/resources/ModerateTableRow/ModerateTableRow.examples.js +0 -7
- package/lib/moderating/components/resources/ModerateTableRow/index.js +2 -8
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +21 -81
- package/lib/moderating/components/resources/ModerateTableRow/story.js +1 -6
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +0 -2
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +0 -2
- package/lib/moderating/components/resources/OutstandingQuizzesModal/index.js +0 -10
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +2 -42
- package/lib/moderating/components/sidebar/ModerateTray/index.js +0 -7
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +0 -39
- package/lib/moderating/components/sidebar/ResetQuiz/index.js +0 -13
- package/lib/moderating/components/sidebar/ResetQuiz/presenter.js +1 -31
- package/lib/reduxStore.js +0 -11
- package/lib/reporting/api/getAnalysesExport.js +4 -18
- package/lib/reporting/api/getAnalysesStatus.js +3 -13
- package/lib/reporting/api/getItemAnalyses.js +3 -13
- package/lib/reporting/api/getQuizAnalysis.js +3 -13
- package/lib/reporting/api/itemAnalyses.js +0 -6
- package/lib/reporting/api/quizAnalyses.js +0 -6
- package/lib/reporting/components/Caption/index.js +6 -21
- package/lib/reporting/components/Caption/styles.js +0 -2
- package/lib/reporting/components/Caption/theme.js +2 -4
- package/lib/reporting/components/MetricsListItem/index.js +9 -26
- package/lib/reporting/components/MetricsListItem/styles.js +0 -2
- package/lib/reporting/components/charts/CentileDistribution/index.js +0 -3
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +11 -45
- package/lib/reporting/components/charts/CentileDistribution/styles.js +0 -4
- package/lib/reporting/components/charts/CentileDistribution/theme.js +2 -4
- package/lib/reporting/components/charts/Distribution/CentileDistribution.js +1 -2
- package/lib/reporting/components/charts/Distribution/Distribution.js +0 -3
- package/lib/reporting/components/charts/Distribution/QuintileDistribution.js +0 -3
- package/lib/reporting/components/charts/Distribution/index.js +0 -3
- package/lib/reporting/components/charts/Distribution/presenter.js +13 -60
- package/lib/reporting/components/charts/Distribution/styles.js +0 -2
- package/lib/reporting/components/charts/Distribution/theme.js +1 -3
- package/lib/reporting/components/charts/Legend/index.js +9 -26
- package/lib/reporting/components/charts/Legend/styles.js +0 -4
- package/lib/reporting/components/charts/Legend/theme.js +3 -5
- package/lib/reporting/components/charts/QuintileDistribution/index.js +0 -3
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +9 -42
- package/lib/reporting/components/charts/QuintileDistribution/styles.js +0 -2
- package/lib/reporting/components/charts/QuintileDistribution/theme.js +1 -3
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/AnswerFrequencySummary.examples.js +0 -4
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +5 -37
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +0 -9
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +5 -7
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/ItemAnalysisRow.examples.js +0 -4
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/index.js +0 -9
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +15 -59
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/styles.js +0 -5
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +3 -5
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +10 -42
- package/lib/reporting/components/quizAnalysis/styles.js +0 -5
- package/lib/reporting/components/quizAnalysis/theme.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +10 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +9 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/styles.js +1 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisUpdateDate/index.js +4 -21
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/AggregationType/presenter.js +2 -23
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/presenter.js +2 -24
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +5 -36
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +8 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/CategorizationType.js +2 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingType.js +2 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +15 -53
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/OrderingType.js +2 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/index.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/utils/matchingTypeOrderer.js +0 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +5 -29
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +13 -67
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +10 -45
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/presenter.js +4 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +10 -34
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/index.js +2 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +9 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +5 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +5 -51
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +10 -67
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +7 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ExportButton/index.js +2 -14
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +6 -35
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/index.js +0 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +5 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +11 -62
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +3 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/popoverContent.js +0 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +8 -44
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/index.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +19 -61
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/styles.js +0 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +7 -35
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +0 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +0 -18
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/exportReports.js +1 -19
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +1 -15
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +1 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +2 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/index.js +0 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +20 -78
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +0 -38
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/utils.js +0 -10
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisState.js +0 -16
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +32 -70
- package/lib/reporting/components/resources/OutcomeAnalysis/index.js +0 -5
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +6 -29
- package/lib/reporting/components/resources/QuizAndItemAnalysis/QuizAndItemAnalysis.examples.js +4 -12
- package/lib/reporting/components/resources/QuizAndItemAnalysis/index.js +0 -10
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +17 -58
- package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +0 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +2 -4
- package/lib/reporting/components/resources/ReportCard/index.js +9 -28
- package/lib/reporting/components/resources/ReportCard/styles.js +0 -4
- package/lib/reporting/components/resources/ReportCard/theme.js +1 -3
- package/lib/reporting/components/resources/ReportList/index.js +9 -25
- package/lib/reporting/components/resources/ReportList/styles.js +0 -2
- package/lib/reporting/components/resources/ReportList/theme.js +0 -2
- package/lib/taking/api/taking.js +30 -78
- package/lib/taking/learnosity/index.js +9 -40
- package/package.json +11 -12
|
@@ -1,71 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.AggregationTable = void 0;
|
|
9
|
-
|
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
9
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
|
|
14
10
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
15
|
-
|
|
16
11
|
var _react = require("react");
|
|
17
|
-
|
|
18
12
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
19
|
-
|
|
20
13
|
var _uiTable = require("@instructure/ui-table");
|
|
21
|
-
|
|
22
14
|
var _propTypes = require("../../../propTypes.js");
|
|
23
|
-
|
|
24
15
|
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
25
|
-
|
|
26
16
|
var _uiIcons = require("@instructure/ui-icons");
|
|
27
|
-
|
|
28
17
|
var _emotion = require("@instructure/emotion");
|
|
29
|
-
|
|
30
18
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
31
|
-
|
|
32
19
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
33
|
-
|
|
34
20
|
var _uiFlex = require("@instructure/ui-flex");
|
|
35
|
-
|
|
36
21
|
var _uiText = require("@instructure/ui-text");
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
22
|
+
var _dec, _class, _AggregationTable;
|
|
23
|
+
/** @jsx jsx */
|
|
40
24
|
var noAnswerKey = 'noAnswer';
|
|
41
25
|
var incorrectKey = 'incorrect';
|
|
42
26
|
var correctKey = 'correct';
|
|
43
27
|
var gradedKey = 'graded';
|
|
44
|
-
|
|
45
28
|
var _ref = (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null);
|
|
46
|
-
|
|
47
29
|
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconGradebookSolid, null);
|
|
48
|
-
|
|
49
30
|
var _ref3 = (0, _emotion.jsx)(_uiIcons.IconXSolid, null);
|
|
50
|
-
|
|
51
31
|
var _ref4 = (0, _emotion.jsx)(_uiIcons.IconNoSolid, null);
|
|
52
|
-
|
|
53
|
-
var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
32
|
+
var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_AggregationTable = /*#__PURE__*/function (_Component) {
|
|
54
33
|
(0, _inherits2.default)(AggregationTable, _Component);
|
|
55
|
-
|
|
56
34
|
var _super = (0, _createSuper2.default)(AggregationTable);
|
|
57
|
-
|
|
58
35
|
function AggregationTable() {
|
|
59
36
|
var _this;
|
|
60
|
-
|
|
61
37
|
(0, _classCallCheck2.default)(this, AggregationTable);
|
|
62
|
-
|
|
63
38
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
64
39
|
args[_key] = arguments[_key];
|
|
65
40
|
}
|
|
66
|
-
|
|
67
41
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
68
|
-
|
|
69
42
|
_this.renderHeaderRow = function () {
|
|
70
43
|
var popover = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
71
44
|
var itemId = _this.props.itemId;
|
|
@@ -84,10 +57,8 @@ var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
84
57
|
textAlign: "center"
|
|
85
58
|
}, (0, _formatMessage.default)('Percentage'))));
|
|
86
59
|
};
|
|
87
|
-
|
|
88
60
|
_this.renderRow = function (key, icon, label, count, percentage) {
|
|
89
61
|
var backgroundColor = _this.props.styles["".concat(key, "Background")];
|
|
90
|
-
|
|
91
62
|
var concatenatedPercentage = "".concat(percentage, "%");
|
|
92
63
|
return (0, _emotion.jsx)(_uiTable.Table.Row, {
|
|
93
64
|
key: key
|
|
@@ -121,27 +92,22 @@ var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
121
92
|
textAlign: "center"
|
|
122
93
|
}, (0, _emotion.jsx)(_uiText.Text, null, concatenatedPercentage)));
|
|
123
94
|
};
|
|
124
|
-
|
|
125
95
|
_this.gradedExist = function () {
|
|
126
96
|
var graded = _this.props.answerSummary.graded;
|
|
127
97
|
return !!graded;
|
|
128
98
|
};
|
|
129
|
-
|
|
130
99
|
_this.correctExist = function () {
|
|
131
100
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
132
101
|
return !!(aggregate === null || aggregate === void 0 ? void 0 : aggregate.correct);
|
|
133
102
|
};
|
|
134
|
-
|
|
135
103
|
_this.incorrectExist = function () {
|
|
136
104
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
137
105
|
return !!(aggregate === null || aggregate === void 0 ? void 0 : aggregate.incorrect);
|
|
138
106
|
};
|
|
139
|
-
|
|
140
107
|
_this.noAnswerExist = function () {
|
|
141
108
|
var no_answer = _this.props.answerSummary.no_answer;
|
|
142
109
|
return !!no_answer;
|
|
143
110
|
};
|
|
144
|
-
|
|
145
111
|
_this.renderCorrect = function () {
|
|
146
112
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
147
113
|
var correct = aggregate.correct;
|
|
@@ -149,14 +115,12 @@ var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
149
115
|
var correctPercentage = correct.percentage || 0;
|
|
150
116
|
return _this.renderRow(correctKey, _ref, (0, _formatMessage.default)('Correct'), correctCount, correctPercentage);
|
|
151
117
|
};
|
|
152
|
-
|
|
153
118
|
_this.renderGraded = function () {
|
|
154
119
|
var graded = _this.props.answerSummary.graded;
|
|
155
120
|
var gradedCount = graded.count || 0;
|
|
156
121
|
var gradedPercentage = graded.percentage || 0;
|
|
157
122
|
return _this.renderRow(gradedKey, _ref2, (0, _formatMessage.default)('Graded'), gradedCount, gradedPercentage);
|
|
158
123
|
};
|
|
159
|
-
|
|
160
124
|
_this.renderIncorrect = function () {
|
|
161
125
|
var aggregate = _this.props.answerSummary.aggregate;
|
|
162
126
|
var incorrect = aggregate.incorrect;
|
|
@@ -164,23 +128,17 @@ var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
164
128
|
var incorrectPercentage = incorrect.percentage || 0;
|
|
165
129
|
return _this.renderRow(incorrectKey, _ref3, (0, _formatMessage.default)('Incorrect'), incorrectCount, incorrectPercentage);
|
|
166
130
|
};
|
|
167
|
-
|
|
168
131
|
_this.renderNoAnswer = function () {
|
|
169
132
|
var no_answer = _this.props.answerSummary.no_answer;
|
|
170
133
|
var noAnswerCount = no_answer.count || 0;
|
|
171
134
|
var noAnswerPercentage = no_answer.percentage || 0;
|
|
172
135
|
return _this.renderRow(noAnswerKey, _ref4, (0, _formatMessage.default)('No response'), noAnswerCount, noAnswerPercentage);
|
|
173
136
|
};
|
|
174
|
-
|
|
175
137
|
_this.getColorProfile = function () {
|
|
176
138
|
var colorProfile;
|
|
177
|
-
|
|
178
139
|
var correctIncorrectNoAnswerGraded = _this.gradedExist() && _this.noAnswerExist() && _this.correctExist() && _this.incorrectExist();
|
|
179
|
-
|
|
180
140
|
var correctIncorrectNoAnswer = !_this.gradedExist() && _this.noAnswerExist() && _this.correctExist() && _this.incorrectExist();
|
|
181
|
-
|
|
182
141
|
var onlyNoAnswer = _this.noAnswerExist() && !_this.gradedExist() && !_this.correctExist() && !_this.incorrectExist();
|
|
183
|
-
|
|
184
142
|
if (correctIncorrectNoAnswer) {
|
|
185
143
|
colorProfile = 'correctIncorrectNoanswer';
|
|
186
144
|
} else if (correctIncorrectNoAnswerGraded) {
|
|
@@ -190,10 +148,8 @@ var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
190
148
|
} else {
|
|
191
149
|
colorProfile = 'correctIncorrect';
|
|
192
150
|
}
|
|
193
|
-
|
|
194
151
|
return colorProfile;
|
|
195
152
|
};
|
|
196
|
-
|
|
197
153
|
_this.render = function () {
|
|
198
154
|
var popover = !_this.noAnswerExist();
|
|
199
155
|
var tableStyles = [_this.props.styles.collapsingTable, _this.props.styles[_this.getColorProfile()]];
|
|
@@ -203,14 +159,12 @@ var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
|
|
|
203
159
|
caption: (0, _formatMessage.default)('Answer Frequency Summary Aggregates')
|
|
204
160
|
}, _this.renderHeaderRow(popover), (0, _emotion.jsx)(_uiTable.Table.Body, null, _this.correctExist() && _this.renderCorrect(), _this.gradedExist() && _this.renderGraded(), _this.incorrectExist() && _this.renderIncorrect(), _this.noAnswerExist() && _this.renderNoAnswer())));
|
|
205
161
|
};
|
|
206
|
-
|
|
207
162
|
return _this;
|
|
208
163
|
}
|
|
209
|
-
|
|
210
164
|
return AggregationTable;
|
|
211
|
-
}(_react.Component),
|
|
165
|
+
}(_react.Component), _AggregationTable.propTypes = {
|
|
212
166
|
itemId: _propTypes2.default.number.isRequired,
|
|
213
167
|
answerSummary: _propTypes.onlyAggregatePropType.isRequired,
|
|
214
168
|
styles: _propTypes2.default.object
|
|
215
|
-
},
|
|
169
|
+
}, _AggregationTable)) || _class);
|
|
216
170
|
exports.AggregationTable = AggregationTable;
|
|
@@ -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
|
iconWrapper: {
|
|
@@ -144,6 +143,5 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
144
143
|
}
|
|
145
144
|
};
|
|
146
145
|
};
|
|
147
|
-
|
|
148
146
|
var _default = generateStyle;
|
|
149
147
|
exports.default = _default;
|
|
@@ -4,7 +4,6 @@ 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 colors = _ref.colors;
|
|
10
9
|
return {
|
|
@@ -16,6 +15,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
16
15
|
cellPadding: '13.5px 13.5px;'
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
var _default = generateComponentTheme;
|
|
21
19
|
exports.default = _default;
|
|
@@ -1,127 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.ChoiceTypeTable = void 0;
|
|
9
|
-
|
|
10
8
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
11
|
-
|
|
12
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
-
|
|
16
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
-
|
|
18
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
19
|
-
|
|
20
13
|
var _react = require("react");
|
|
21
|
-
|
|
22
14
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
23
|
-
|
|
24
15
|
var _uiTable = require("@instructure/ui-table");
|
|
25
|
-
|
|
26
16
|
var _emotion = require("@instructure/emotion");
|
|
27
|
-
|
|
28
17
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
29
|
-
|
|
30
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
31
|
-
|
|
32
19
|
var _propTypes2 = require("../../../propTypes.js");
|
|
33
|
-
|
|
34
20
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
35
|
-
|
|
36
21
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
37
|
-
|
|
38
22
|
var _uiIcons = require("@instructure/ui-icons");
|
|
39
|
-
|
|
40
23
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
41
|
-
|
|
42
24
|
var _uiFlex = require("@instructure/ui-flex");
|
|
43
|
-
|
|
44
25
|
var _uiText = require("@instructure/ui-text");
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
var _dec, _class, _ChoiceTypeTable;
|
|
27
|
+
/** @jsx jsx */
|
|
48
28
|
var correctAttribute = 'correct';
|
|
49
29
|
var incorrectAttribute = 'incorrect';
|
|
50
|
-
|
|
51
30
|
var _ref = (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null);
|
|
52
|
-
|
|
53
31
|
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconXSolid, null);
|
|
54
|
-
|
|
55
|
-
var ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
32
|
+
var ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ChoiceTypeTable = /*#__PURE__*/function (_Component) {
|
|
56
33
|
(0, _inherits2.default)(ChoiceTypeTable, _Component);
|
|
57
|
-
|
|
58
34
|
var _super = (0, _createSuper2.default)(ChoiceTypeTable);
|
|
59
|
-
|
|
60
35
|
function ChoiceTypeTable() {
|
|
61
36
|
var _this$rowStyleMap;
|
|
62
|
-
|
|
63
37
|
var _this;
|
|
64
|
-
|
|
65
38
|
(0, _classCallCheck2.default)(this, ChoiceTypeTable);
|
|
66
|
-
|
|
67
39
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
68
40
|
args[_key] = arguments[_key];
|
|
69
41
|
}
|
|
70
|
-
|
|
71
42
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
72
43
|
_this.rowStyleMap = (_this$rowStyleMap = {}, (0, _defineProperty2.default)(_this$rowStyleMap, correctAttribute, _this.props.styles.correctRow), (0, _defineProperty2.default)(_this$rowStyleMap, incorrectAttribute, _this.props.styles.incorrectRow), _this$rowStyleMap);
|
|
73
|
-
|
|
74
44
|
_this.renderIcon = function (correct) {
|
|
75
45
|
var iconStyles = [_this.props.styles.iconWrapper, correct ? _this.props.styles.iconCorrect : {}];
|
|
76
46
|
return (0, _emotion.jsx)("div", {
|
|
77
47
|
css: iconStyles
|
|
78
48
|
}, correct ? _ref : _ref2);
|
|
79
49
|
};
|
|
80
|
-
|
|
81
50
|
_this.renderFirstCell = function (content) {
|
|
82
51
|
return (0, _emotion.jsx)("div", {
|
|
83
52
|
css: _this.props.styles.firstTextContainer
|
|
84
53
|
}, content);
|
|
85
54
|
};
|
|
86
|
-
|
|
87
55
|
_this.renderCell = function (content) {
|
|
88
56
|
return (0, _emotion.jsx)("div", {
|
|
89
57
|
css: _this.props.styles.textContainer
|
|
90
58
|
}, content);
|
|
91
59
|
};
|
|
92
|
-
|
|
93
60
|
_this.answerLabel = function (correct) {
|
|
94
61
|
return correct ? (0, _formatMessage.default)('Correct answer') : (0, _formatMessage.default)('Incorrect answer');
|
|
95
62
|
};
|
|
96
|
-
|
|
97
63
|
_this.extractChoiceText = function (choiceBody, correct) {
|
|
98
64
|
var text = (0, _quizInteractions.extractTextFromHtml)(choiceBody);
|
|
99
65
|
if (text.trim().length > 0) return text;
|
|
100
66
|
return _this.answerLabel(correct);
|
|
101
67
|
};
|
|
102
|
-
|
|
103
68
|
_this.nextChoiceIsCorrect = function (choices, choiceIndex) {
|
|
104
69
|
var _choices$choiceIndex;
|
|
105
|
-
|
|
106
70
|
return (_choices$choiceIndex = choices[choiceIndex]) === null || _choices$choiceIndex === void 0 ? void 0 : _choices$choiceIndex.correct;
|
|
107
71
|
};
|
|
108
|
-
|
|
109
72
|
_this.getDataIconAttribute = function (correct, choiceIndex) {
|
|
110
73
|
var choices = _this.props.choices;
|
|
111
|
-
|
|
112
74
|
if (_this.nextChoiceIsCorrect(choices, choiceIndex + 1) && !correct) {
|
|
113
75
|
return '';
|
|
114
76
|
}
|
|
115
|
-
|
|
116
77
|
return correct ? correctAttribute : incorrectAttribute;
|
|
117
78
|
};
|
|
118
|
-
|
|
119
79
|
_this.renderRow = function (choice, choiceIndex) {
|
|
120
80
|
var correct = choice.correct,
|
|
121
|
-
|
|
122
|
-
|
|
81
|
+
body = choice.body;
|
|
123
82
|
var extractedBody = _this.extractChoiceText(body, correct);
|
|
124
|
-
|
|
125
83
|
var screenReaderContent = "".concat(_this.answerLabel(correct), ": ").concat(extractedBody);
|
|
126
84
|
return (0, _emotion.jsx)(_uiTable.Table.Row, {
|
|
127
85
|
key: choiceIndex
|
|
@@ -153,31 +111,24 @@ var ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
153
111
|
textAlign: "center"
|
|
154
112
|
}, _this.renderCell("".concat(choice.percentage, "%"))));
|
|
155
113
|
};
|
|
156
|
-
|
|
157
114
|
_this.componentDidMount = function () {
|
|
158
115
|
_this.applyStylesToTable();
|
|
159
|
-
|
|
160
116
|
_this.props.makeStyles();
|
|
161
117
|
};
|
|
162
|
-
|
|
163
118
|
_this.componentDidUpdate = function () {
|
|
164
119
|
_this.props.makeStyles();
|
|
165
120
|
};
|
|
166
|
-
|
|
167
121
|
_this.applyStylesToTable = function () {
|
|
168
122
|
if (_this.tableRef) {
|
|
169
123
|
var _iterator = (0, _createForOfIteratorHelper2.default)(_this.tableRef.rows),
|
|
170
|
-
|
|
171
|
-
|
|
124
|
+
_step;
|
|
172
125
|
try {
|
|
173
126
|
var _loop = function _loop() {
|
|
174
127
|
var _row$querySelector, _row$querySelector$da;
|
|
175
|
-
|
|
176
128
|
var row = _step.value;
|
|
177
129
|
var icon = (_row$querySelector = row.querySelector('tr th:first-child [data-icon]')) === null || _row$querySelector === void 0 ? void 0 : (_row$querySelector$da = _row$querySelector.dataset) === null || _row$querySelector$da === void 0 ? void 0 : _row$querySelector$da.icon;
|
|
178
130
|
var td = row.querySelectorAll('td');
|
|
179
131
|
var th = row.querySelectorAll('th');
|
|
180
|
-
|
|
181
132
|
if (icon) {
|
|
182
133
|
td.forEach(function (cell) {
|
|
183
134
|
cell.setAttribute('style', (0, _emotion.css)(_this.rowStyleMap[icon].td).styles);
|
|
@@ -185,16 +136,13 @@ var ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
185
136
|
th.forEach(function (cell) {
|
|
186
137
|
cell.setAttribute('style', (0, _emotion.css)(_this.rowStyleMap[icon].th).styles);
|
|
187
138
|
});
|
|
188
|
-
|
|
189
139
|
if (icon === correctAttribute) {
|
|
190
140
|
row.querySelector('th:first-child').setAttribute('style', (0, _emotion.css)(_this.props.styles.correctRow.thFirstChild).styles);
|
|
191
141
|
row.querySelector('td:last-child').setAttribute('style', (0, _emotion.css)(_this.props.styles.correctRow.tdLastChild).styles);
|
|
192
142
|
}
|
|
193
143
|
}
|
|
194
|
-
|
|
195
144
|
row.setAttribute('style', (0, _emotion.css)(_this.rowStyleMap[icon]).styles);
|
|
196
145
|
};
|
|
197
|
-
|
|
198
146
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
199
147
|
_loop();
|
|
200
148
|
}
|
|
@@ -205,15 +153,13 @@ var ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
205
153
|
}
|
|
206
154
|
}
|
|
207
155
|
};
|
|
208
|
-
|
|
209
156
|
_this.setTableRef = function (el) {
|
|
210
157
|
return _this.tableRef = el;
|
|
211
158
|
};
|
|
212
|
-
|
|
213
159
|
_this.render = function () {
|
|
214
160
|
var _this$props = _this.props,
|
|
215
|
-
|
|
216
|
-
|
|
161
|
+
choices = _this$props.choices,
|
|
162
|
+
itemId = _this$props.itemId;
|
|
217
163
|
var answerHeaderId = "answer-frequency-summary-answer-".concat(itemId);
|
|
218
164
|
var respondentsHeaderId = "answer-frequency-summary-respondents-".concat(itemId);
|
|
219
165
|
var percentageHeaderId = "answer-frequency-summary-percentage-".concat(itemId);
|
|
@@ -239,20 +185,17 @@ var ChoiceTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
|
|
|
239
185
|
textAlign: "center"
|
|
240
186
|
}, (0, _formatMessage.default)('Percentage')))), (0, _emotion.jsx)(_uiTable.Table.Body, null, choices.map(_this.renderRow))));
|
|
241
187
|
};
|
|
242
|
-
|
|
243
188
|
return _this;
|
|
244
189
|
}
|
|
245
|
-
|
|
246
190
|
return ChoiceTypeTable;
|
|
247
|
-
}(_react.Component),
|
|
191
|
+
}(_react.Component), _ChoiceTypeTable.propTypes = {
|
|
248
192
|
itemId: _propTypes.default.number.isRequired,
|
|
249
193
|
choices: _propTypes.default.arrayOf(_propTypes2.choiceTypeObject).isRequired,
|
|
250
|
-
|
|
251
194
|
/* eslint-disable-next-line react/no-unused-prop-types */
|
|
252
195
|
tableContainerStyles: _propTypes.default.object,
|
|
253
196
|
styles: _propTypes.default.object,
|
|
254
197
|
makeStyles: _propTypes.default.func
|
|
255
|
-
},
|
|
198
|
+
}, _ChoiceTypeTable.defaultProps = {
|
|
256
199
|
tableContainerStyles: void 0
|
|
257
|
-
},
|
|
200
|
+
}, _ChoiceTypeTable)) || _class);
|
|
258
201
|
exports.ChoiceTypeTable = ChoiceTypeTable;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
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, props) {
|
|
13
10
|
var tableContainerStyles = props.tableContainerStyles || {
|
|
14
11
|
width: 'calc(25% + 350px)',
|
|
@@ -98,6 +95,5 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
98
95
|
}
|
|
99
96
|
};
|
|
100
97
|
};
|
|
101
|
-
|
|
102
98
|
var _default = generateStyle;
|
|
103
99
|
exports.default = _default;
|
|
@@ -4,10 +4,9 @@ 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
|
-
|
|
9
|
+
colors = _ref.colors;
|
|
11
10
|
return {
|
|
12
11
|
tableBottomPadding: spacing.medium,
|
|
13
12
|
colorGreen: colors.shamrock,
|
|
@@ -15,6 +14,5 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
15
14
|
cellPadding: '0.75rem 0.75rem'
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
|
-
|
|
19
17
|
var _default = generateComponentTheme;
|
|
20
18
|
exports.default = _default;
|
|
@@ -1,63 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.ExpandableCard = void 0;
|
|
9
|
-
|
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
9
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
|
|
14
10
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
15
|
-
|
|
16
11
|
var _react = require("react");
|
|
17
|
-
|
|
18
12
|
var _index = _interopRequireDefault(require("../../../../../../../common/components/shared/Card/index.js"));
|
|
19
|
-
|
|
20
13
|
var _uiFlex = require("@instructure/ui-flex");
|
|
21
|
-
|
|
22
14
|
var _emotion = require("@instructure/emotion");
|
|
23
|
-
|
|
24
15
|
var _index2 = _interopRequireDefault(require("../../../../../../../common/components/shared/ExpandButton/index.js"));
|
|
25
|
-
|
|
26
16
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
27
|
-
|
|
28
17
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
29
|
-
|
|
30
18
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
31
|
-
|
|
32
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var ExpandableCard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
20
|
+
var _dec, _class, _ExpandableCard;
|
|
21
|
+
/** @jsx jsx */
|
|
22
|
+
var ExpandableCard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ExpandableCard = /*#__PURE__*/function (_Component) {
|
|
37
23
|
(0, _inherits2.default)(ExpandableCard, _Component);
|
|
38
|
-
|
|
39
24
|
var _super = (0, _createSuper2.default)(ExpandableCard);
|
|
40
|
-
|
|
41
25
|
function ExpandableCard() {
|
|
42
26
|
var _this;
|
|
43
|
-
|
|
44
27
|
(0, _classCallCheck2.default)(this, ExpandableCard);
|
|
45
|
-
|
|
46
28
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47
29
|
args[_key] = arguments[_key];
|
|
48
30
|
}
|
|
49
|
-
|
|
50
31
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
51
32
|
_this.state = {
|
|
52
33
|
bodyExpanded: false
|
|
53
34
|
};
|
|
54
|
-
|
|
55
35
|
_this.handleBodyToggle = function () {
|
|
56
36
|
_this.setState({
|
|
57
37
|
bodyExpanded: !_this.state.bodyExpanded
|
|
58
38
|
});
|
|
59
39
|
};
|
|
60
|
-
|
|
61
40
|
_this.renderGroup = function () {
|
|
62
41
|
var headLine = _this.props.headLine;
|
|
63
42
|
return (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
@@ -75,11 +54,10 @@ var ExpandableCard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
75
54
|
isExpanded: _this.state.bodyExpanded
|
|
76
55
|
})));
|
|
77
56
|
};
|
|
78
|
-
|
|
79
57
|
_this.renderBody = function () {
|
|
80
58
|
var _this$props = _this.props,
|
|
81
|
-
|
|
82
|
-
|
|
59
|
+
content = _this$props.content,
|
|
60
|
+
styles = _this$props.styles;
|
|
83
61
|
var bodyContainer = styles.bodyContainer;
|
|
84
62
|
return (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
85
63
|
shouldShrink: true,
|
|
@@ -88,7 +66,6 @@ var ExpandableCard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
88
66
|
css: bodyContainer
|
|
89
67
|
}, content));
|
|
90
68
|
};
|
|
91
|
-
|
|
92
69
|
_this.render = function () {
|
|
93
70
|
var styles = _this.props.styles;
|
|
94
71
|
var groupWrapper = styles.groupWrapper;
|
|
@@ -111,14 +88,12 @@ var ExpandableCard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
|
|
|
111
88
|
overflowY: "hidden"
|
|
112
89
|
}, _this.renderGroup()), bodyExpanded && _this.renderBody())))));
|
|
113
90
|
};
|
|
114
|
-
|
|
115
91
|
return _this;
|
|
116
92
|
}
|
|
117
|
-
|
|
118
93
|
return ExpandableCard;
|
|
119
|
-
}(_react.Component),
|
|
94
|
+
}(_react.Component), _ExpandableCard.propTypes = {
|
|
120
95
|
headLine: _propTypes.default.node,
|
|
121
96
|
content: _propTypes.default.node,
|
|
122
97
|
styles: _propTypes.default.object
|
|
123
|
-
}.isRequired,
|
|
98
|
+
}.isRequired, _ExpandableCard)) || _class);
|
|
124
99
|
exports.ExpandableCard = ExpandableCard;
|
|
@@ -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
|
groupWrapper: {
|
|
@@ -19,6 +18,5 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
var _default = generateStyle;
|
|
24
22
|
exports.default = _default;
|
|
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var generateComponentTheme = function generateComponentTheme() {
|
|
9
8
|
return {
|
|
10
9
|
cardMinWidth: '500px'
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
var _default = generateComponentTheme;
|
|
15
13
|
exports.default = _default;
|
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = exports.ExportButton = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
15
|
-
|
|
16
11
|
var _propTypes2 = require("../propTypes.js");
|
|
17
|
-
|
|
18
12
|
var _uiText = require("@instructure/ui-text");
|
|
19
|
-
|
|
20
13
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
21
|
-
|
|
22
14
|
var ExportButton = function ExportButton(_ref) {
|
|
23
15
|
var quizAnalysis = _ref.quizAnalysis,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
generationInProgress = _ref.generationInProgress,
|
|
17
|
+
handleExport = _ref.handleExport;
|
|
27
18
|
var renderExportButton = function renderExportButton(enabled) {
|
|
28
19
|
var interaction = enabled ? 'enabled' : 'disabled';
|
|
29
20
|
var color = enabled ? 'secondary' : 'primary-inverse';
|
|
@@ -38,16 +29,13 @@ var ExportButton = function ExportButton(_ref) {
|
|
|
38
29
|
size: "medium"
|
|
39
30
|
}, (0, _formatMessage.default)('Export CSV')));
|
|
40
31
|
};
|
|
41
|
-
|
|
42
32
|
if (generationInProgress || !quizAnalysis) {
|
|
43
33
|
return renderExportButton(false);
|
|
44
34
|
}
|
|
45
|
-
|
|
46
35
|
if (quizAnalysis) {
|
|
47
36
|
return renderExportButton(true);
|
|
48
37
|
}
|
|
49
38
|
};
|
|
50
|
-
|
|
51
39
|
exports.ExportButton = ExportButton;
|
|
52
40
|
ExportButton.propTypes = {
|
|
53
41
|
quizAnalysis: _propTypes2.quizAnalysisPropType.isRequired,
|