@nualang/nualang-ui-components 0.1.1240 → 0.1.1242
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/README.md +64 -64
- package/dist/Assignments/AssignmentCard/AssignmentCard.js +26 -44
- package/dist/Assignments/AssignmentCard/package.json +6 -6
- package/dist/Assignments/AssignmentCardsList/package.json +6 -6
- package/dist/Assignments/AssignmentCourseSelection/package.json +6 -6
- package/dist/Assignments/AssignmentExerciseSelection/AssignmentExerciseSelection.js +5 -5
- package/dist/Assignments/AssignmentExerciseSelection/package.json +6 -6
- package/dist/Assignments/AssignmentExerciseSelector/package.json +6 -6
- package/dist/Assignments/AssignmentRoleplaySelection/AssignmentRoleplaySelection.js +27 -27
- package/dist/Assignments/AssignmentRoleplaySelection/package.json +6 -6
- package/dist/Assignments/AssignmentSelectExercise/AssignmentSelectExercise.js +2 -2
- package/dist/Assignments/CreateAssignmentDialog/package.json +6 -6
- package/dist/Assignments/SelectAssignmentTypeDialog/SelectAssignmentTypeDialog.js +13 -8
- package/dist/Assignments/SelectAssignmentTypeDialog/package.json +6 -6
- package/dist/Cards/RecordingCard/RecordingCard.js +6 -6
- package/dist/Cards/ScheduleCard/ScheduleCard.js +5 -4
- package/dist/Cards/SubmissionsCard/SubmissionsCard.js +5 -4
- package/dist/Cards/SubscriptionPlan/nuala.svg +28 -28
- package/dist/Cards/SubscriptionPlan/plus.svg +4 -4
- package/dist/Charts/Bar/TotalGrades/package.json +6 -6
- package/dist/Chat/Messages/Message/Message.js +0 -4
- package/dist/Chat/Messages/Question/Question.js +4 -3
- package/dist/Chat/TopBar/TopBar.js +7 -4
- package/dist/Containers/App/App.js +4 -7
- package/dist/Dialogs/AddToClassroom/AddToClassroom.js +3 -0
- package/dist/Dialogs/AvatarDialog/AvatarDialog.js +33 -23
- package/dist/Dialogs/CreatePhrase/CreatePhrase.js +5 -10
- package/dist/Dialogs/CreateQuestion/CreateQuestion.js +5 -10
- package/dist/Dialogs/CreateTopic/CreateTopic.js +0 -3
- package/dist/Dialogs/ExerciseMenu/ExerciseMenu.js +0 -1
- package/dist/Dialogs/Feedback/FeedbackDialog.js +1 -2
- package/dist/Dialogs/FeedbackInfoDialog/FeedbackInfoDialog.js +4 -2
- package/dist/Dialogs/GenerateBot/GenerateBot.js +11 -16
- package/dist/Dialogs/GenerateBot/package.json +6 -6
- package/dist/Dialogs/GeneratePhrases/GeneratePhrases.js +8 -16
- package/dist/Dialogs/GenerateQuestion/GenerateQuestion.js +6 -12
- package/dist/Dialogs/GenerateRoleplay/GenerateRoleplay.js +18 -30
- package/dist/Dialogs/PDFViewer/PDFViewer.js +3 -9
- package/dist/Dialogs/RecordingDialog/RecordingDialog.js +16 -11
- package/dist/Dialogs/ReportProblem/ReportProblem.js +8 -10
- package/dist/Dialogs/SearchTopic/SearchTopic.js +0 -3
- package/dist/Dialogs/SelectActor/SelectActor.js +4 -3
- package/dist/Dialogs/Trigger/Trigger.js +4 -8
- package/dist/Dialogs/UploadPhrases/UploadPhrases.js +6 -6
- package/dist/Dialogs/UploadRoleplayScript/UploadRoleplayScript.js +11 -11
- package/dist/Dialogs/WaveformDialog/WaveformDialog.js +8 -6
- package/dist/Editors/Bot/Editor/BotDesigner/AddImageModal/AddImageModal.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/AddLinkModal/AddLinkModal.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/AddSubstitutionModal/AddSubstitutionModal.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/AddTopicModal/AddTopicModal.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/AddTriggerModal/AddTriggerModal.js +5 -9
- package/dist/Editors/Bot/Editor/BotDesigner/AddVariableModal/AddVariableModal.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/AlternativesList.js +2 -3
- package/dist/Editors/Bot/Editor/BotDesigner/SubList.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/SwitchEditorModal/SwitchEditorModal.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/TopicList.js +1 -1
- package/dist/Editors/Bot/Editor/BotDesigner/VarList.js +6 -5
- package/dist/Editors/Bot/Editor/BotFlow/BotFlow.js +3 -3
- package/dist/Editors/Bot/Editor/Editor.js +29 -36
- package/dist/Editors/Phrases/Phrases.js +2 -2
- package/dist/Exercises/Bot/Bot.js +3 -3
- package/dist/Exercises/Listener/Listener.js +3 -15
- package/dist/Exercises/Pronouncer/Pronouncer.js +0 -10
- package/dist/Exercises/Roleplay/Games/ActItOutGame/ActItOutGame.js +4 -2
- package/dist/Exercises/Roleplay/Games/ActItOutGameListening/ActItOutGameListening.js +4 -2
- package/dist/Exercises/Roleplay/Games/ActItOutGameListeningAndSpeaking/ActItOutGame.js +4 -3
- package/dist/Exercises/Roleplay/Games/ActItOutGameSpeaking/ActItOutGame.js +4 -3
- package/dist/Exercises/Roleplay/Games/BeforeElements.js +0 -1
- package/dist/Exercises/Roleplay/Games/FillInTheBlanksGame/FillInBlanks.js +0 -1
- package/dist/Exercises/Roleplay/Games/TopBarActions.js +4 -4
- package/dist/Exercises/Roleplay/OriginalRoleplay.js +11 -8
- package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGames.js +1 -2
- package/dist/Exercises/Roleplay/RoleplayInfo/RoleplayInfo.js +1 -2
- package/dist/Exercises/Translator/Translator.js +3 -14
- package/dist/Forms/AppContact/AppContact.js +3 -6
- package/dist/Forms/Contact/Contact.js +27 -29
- package/dist/Forms/CreateBot/Steps/BotInformation/BotInformation.js +26 -28
- package/dist/Forms/CreateBot/Steps/BotSettings/BotSettings.js +6 -6
- package/dist/Forms/CreateBot/Steps/Confirmation/Confirmation.js +10 -9
- package/dist/Forms/CreateClassroom/Steps/ClassroomInformation/ClassroomInformation.js +8 -10
- package/dist/Forms/CreateClassroom/Steps/ClassroomSettings/ClassroomSettings.js +36 -25
- package/dist/Forms/CreateClassroom/Steps/Confirmation/Confirmation.js +5 -4
- package/dist/Forms/CreateClassroom/Steps/CourseSettings/CourseSettings.js +15 -9
- package/dist/Forms/CreateClassroom/Steps/Customization/Customization.js +11 -8
- package/dist/Forms/CreateCourse/Steps/Confirmation/Confirmation.js +5 -4
- package/dist/Forms/CreateCourse/Steps/CourseInformation/CourseInformation.js +9 -12
- package/dist/Forms/CreateCourse/Steps/CourseSettings/CourseSettings.js +16 -10
- package/dist/Forms/CreateCourse/Steps/Customization/Customization.js +11 -8
- package/dist/Forms/CreateGroup/Steps/Confirmation/Confirmation.js +9 -7
- package/dist/Forms/CreateGroup/Steps/GroupInformation/GroupInformation.js +7 -8
- package/dist/Forms/CreateGroup/Steps/GroupSettings/GroupSettings.js +8 -10
- package/dist/Forms/CreateMeetingMultiStepForm/GroupAssignment.js +19 -20
- package/dist/Forms/CreateMeetingMultiStepForm/MeetingForm.js +36 -26
- package/dist/Forms/CreateRoleplay/Steps/Confirmation/Confirmation.js +6 -6
- package/dist/Forms/CreateRoleplay/Steps/RoleplayInformation/RoleplayInformation.js +16 -16
- package/dist/Forms/CreateRoleplay/Steps/RoleplaySettings/RoleplaySettings.js +11 -16
- package/dist/Forms/CreateRoleplayHook/Steps/Confirmation/Confirmation.js +6 -6
- package/dist/Forms/CreateRoleplayHook/Steps/RoleplayInformation/RoleplayInformation.js +16 -16
- package/dist/Forms/CreateRoleplayHook/Steps/RoleplaySettings/RoleplaySettings.js +11 -16
- package/dist/Forms/CreateTopic/Steps/Confirmation/Confirmation.js +4 -2
- package/dist/Forms/CreateTopic/Steps/Customization/Customization.js +11 -8
- package/dist/Forms/CreateTopic/Steps/TopicInformation/TopicInformation.js +8 -10
- package/dist/Forms/CreateTopic/Steps/TopicSettings/TopicSettings.js +6 -6
- package/dist/Forms/CreateUser/CreateUser.js +1 -1
- package/dist/Forms/DiscussImageSelector/ImageSelector.js +6 -4
- package/dist/Forms/DiscussImageSelector/package.json +6 -6
- package/dist/Forms/DiscussMultiStepFormDialog/MultiStepFormDialog.js +170 -176
- package/dist/Forms/DiscussMultiStepFormDialog/package.json +6 -6
- package/dist/Forms/FeedbackForm/FeedbackForm.js +88 -102
- package/dist/Forms/FeedbackInfo/FeedbackInfo.js +27 -37
- package/dist/Forms/MultiStepForm/MultiStepForm.js +5 -7
- package/dist/Forms/MultiStepFormDialog/MultiStepFormDialog.js +149 -155
- package/dist/Forms/MultiStepFormHook/MultiStepFormHook.js +5 -7
- package/dist/Forms/PdfUploader/PdfUploader.js +0 -5
- package/dist/Forms/RecordingInfo/RecordingInfo.js +11 -9
- package/dist/Forms/Settings/Tabs/Display/Display.js +11 -5
- package/dist/Forms/Settings/Tabs/EmailNotifications/EmailNotifications.js +8 -4
- package/dist/Forms/Settings/Tabs/General/General.js +50 -33
- package/dist/Forms/Settings/Tabs/Subscription/Subscription.js +36 -25
- package/dist/Forms/UpdateBot/UpdateBot.js +8 -4
- package/dist/Forms/UpdateClassroom/UpdateClassroom.js +16 -8
- package/dist/Forms/UpdateCourse/UpdateCourse.js +12 -6
- package/dist/Forms/UpdateGroup/UpdateGroup.js +8 -4
- package/dist/Forms/UpdateRoleplay/UpdateRoleplay.js +8 -4
- package/dist/Forms/UpdateTopic/UpdateTopic.js +12 -6
- package/dist/Forms/VideoUploader/VideoUploader.js +0 -3
- package/dist/Forms/VoiceSelector/VoiceSelector.js +10 -8
- package/dist/Lists/Avatars/Avatars.js +6 -2
- package/dist/Lists/Bots/Bots.js +20 -12
- package/dist/Lists/Categories/Categories.js +10 -8
- package/dist/Lists/Categories/package.json +6 -6
- package/dist/Lists/Classrooms/Classrooms.js +20 -12
- package/dist/Lists/Courses/Courses.js +27 -18
- package/dist/Lists/Phrases/Phrases.js +6 -0
- package/dist/Lists/Roleplays/Roleplays.js +20 -12
- package/dist/Lists/Sections/Sections.js +22 -16
- package/dist/Lists/SubscriptionPlans/SubscriptionPlans.js +5 -4
- package/dist/Lists/TopicPreview/TopicPreview.js +6 -0
- package/dist/Lists/Topics/Topics.js +27 -18
- package/dist/Lists/Voices/Voices.js +3 -1
- package/dist/Live/GameControls/GameControls.js +0 -2
- package/dist/Live/GameQuestionResults/GameQuestionResults.js +0 -1
- package/dist/Live/GameSettings/GameSettings.js +27 -18
- package/dist/Live/LiveListener/LiveListener.js +3 -15
- package/dist/Live/LiveTranslator/LiveTranslator.js +3 -19
- package/dist/Live/WaitingRoom/WaitingRoom.js +29 -23
- package/dist/Misc/AvatarSelector/AvatarSelector.js +8 -4
- package/dist/Misc/AvatarSwitcher/AvatarSwitcher.js +2 -2
- package/dist/Misc/AxiosRestExample/AxiosRestExample.js +3 -3
- package/dist/Misc/AxiosRestExample/AxiosRestPostExample.js +6 -6
- package/dist/Misc/ColorLinearProgress/package.json +6 -6
- package/dist/Misc/ExerciseBottomBar/ExerciseBottomBar.js +0 -2
- package/dist/Misc/LanguageSelector/LanguageSelector.js +4 -7
- package/dist/Misc/NotFound/ClassCourses.js +14 -8
- package/dist/Misc/NualaCreating/styles.css +68 -68
- package/dist/Misc/Testimonials/Testimonials.js +6 -2
- package/dist/Navigation/ResponsiveDrawer/ResponsiveDrawer.js +41 -47
- package/dist/Navigation/ResponsiveStepper/ResponsiveStepper.js +5 -7
- package/dist/Payments/BillingInfo/BillingInfo.js +4 -2
- package/dist/Payments/CardDetails/CardDetails.js +15 -9
- package/dist/Payments/Subscription/Subscription.js +11 -10
- package/dist/Screens/Activity/Activity.js +26 -15
- package/dist/Screens/Activity/Exercise/Attempt/Attempt.js +45 -32
- package/dist/Screens/Activity/Exercise/Exercise.js +31 -21
- package/dist/Screens/Bots/SearchBots/SearchBots.js +31 -25
- package/dist/Screens/Classrooms/SearchClassrooms/SearchClassrooms.js +21 -16
- package/dist/Screens/Courses/SearchCourses/SearchCourses.js +37 -26
- package/dist/Screens/Courses/SearchTopic/SearchTopic.js +12 -9
- package/dist/Screens/Courses/ViewCourse/ViewTopic/ViewTopic.js +31 -19
- package/dist/Screens/GenerateAudio/GenerateAudio.js +64 -58
- package/dist/Screens/Onboard/Steps/RoleSelection.js +7 -3
- package/dist/Screens/Pricing/Pricing.js +4 -3
- package/dist/Screens/Roleplays/SearchRoleplays/SearchRoleplays.js +30 -24
- package/dist/Screens/Search/Search.js +16 -12
- package/dist/Screens/Search/package.json +6 -6
- package/dist/Tables/MeetingPrompstList/MeetingPromptsList.js +7 -8
- package/dist/Tables/Plans/Plans.js +1 -1
- package/dist/Tables/Progress/Progress.js +117 -40
- package/dist/Tables/Progress/ProgressList.js +13 -11
- package/dist/Tables/Progress/ProgressTable.js +2 -1
- package/dist/Tables/SubmissionsTableCards/SubmissionsTableCards.js +6 -6
- package/dist/Tables/User/UserTable.js +1 -1
- package/dist/hooks/useRecognition.js +6 -6
- package/dist/hooks/useSpreadsheetState.js +7 -7
- package/dist/img/0-nuala-001.svg +34 -34
- package/dist/img/1-teacher-001.svg +38 -38
- package/dist/img/AudioNuala.svg +165 -165
- package/dist/img/Bronze Medal.svg +545 -545
- package/dist/img/Bronze.svg +349 -349
- package/dist/img/BronzeBadge.svg +493 -493
- package/dist/img/BronzeBadgeWithoutRibbon.svg +317 -317
- package/dist/img/Frame 51.svg +98 -98
- package/dist/img/Frame 52.svg +131 -131
- package/dist/img/Frame 53.svg +139 -139
- package/dist/img/Gold Badge.svg +362 -362
- package/dist/img/Gold Medal.svg +481 -481
- package/dist/img/GoldBadge.svg +470 -470
- package/dist/img/GoldBadgeWithoutRibbon.svg +324 -324
- package/dist/img/NewText.svg +5 -5
- package/dist/img/NualaCreateImage.svg +129 -129
- package/dist/img/NualangLiveAnswerQuickly.svg +103 -103
- package/dist/img/NualangLiveAnwerQuicklyListening.svg +3607 -3607
- package/dist/img/NualangLiveListen.svg +42 -42
- package/dist/img/NualangLiveListenToPhrase.svg +4285 -4285
- package/dist/img/NualangLivePickAnswer.svg +134 -134
- package/dist/img/NualangLiveResult.svg +1235 -1235
- package/dist/img/NualangLiveRoleplayAnswer.svg +334 -334
- package/dist/img/NualangLiveRoleplayConvo.svg +282 -282
- package/dist/img/NualangLiveSeePlace.svg +134 -134
- package/dist/img/NualangLiveTranslate.svg +54 -54
- package/dist/img/NualangLiveTranslateQuickly.svg +197 -197
- package/dist/img/NualangLiveViewConversations.svg +135 -135
- package/dist/img/Polly.svg +17 -17
- package/dist/img/Silver Badge.svg +523 -523
- package/dist/img/Silver Medal.svg +549 -549
- package/dist/img/SilverBadge.svg +655 -655
- package/dist/img/SilverBadgeWithoutRibbon.svg +491 -491
- package/dist/img/avatars/0-nuala-001.svg +34 -34
- package/dist/img/avatars/0-nuala-002.svg +25 -25
- package/dist/img/avatars/0-nuala-003.svg +27 -27
- package/dist/img/avatars/0-nuala-004.svg +41 -41
- package/dist/img/avatars/0-nuala-005.svg +33 -33
- package/dist/img/avatars/0-nuala-006.svg +32 -32
- package/dist/img/avatars/0-nuala-007.svg +37 -37
- package/dist/img/avatars/0-nuala-008.svg +21 -21
- package/dist/img/avatars/0-nuala-009.svg +21 -21
- package/dist/img/avatars/0-nuala-010.svg +39 -39
- package/dist/img/avatars/0-nuala-011.svg +33 -33
- package/dist/img/avatars/0-nuala-012.svg +43 -43
- package/dist/img/avatars/0-nuala-013.svg +36 -36
- package/dist/img/avatars/0-nuala-014.svg +30 -30
- package/dist/img/avatars/0-nuala-015.svg +28 -28
- package/dist/img/avatars/0-nuala-016.svg +24 -24
- package/dist/img/avatars/0-nuala-017.svg +31 -31
- package/dist/img/avatars/0-nuala-018.svg +29 -29
- package/dist/img/avatars/0-nuala-019.svg +57 -57
- package/dist/img/avatars/0-nuala-020.svg +30 -30
- package/dist/img/avatars/0-nuala-021.svg +28 -28
- package/dist/img/avatars/1-teacher-001.svg +38 -38
- package/dist/img/avatars/1-teacher-002.svg +52 -52
- package/dist/img/avatars/1-teacher-003.svg +86 -86
- package/dist/img/avatars/nuala_10_celebrating.svg +44 -44
- package/dist/img/avatars/nuala_10_speaking.svg +45 -45
- package/dist/img/avatars/nuala_11_celebrating.svg +38 -38
- package/dist/img/avatars/nuala_11_speaking.svg +41 -41
- package/dist/img/avatars/nuala_12_celebrating.svg +48 -48
- package/dist/img/avatars/nuala_12_speaking.svg +49 -49
- package/dist/img/avatars/nuala_13_celebrating.svg +41 -41
- package/dist/img/avatars/nuala_13_speaking.svg +44 -44
- package/dist/img/avatars/nuala_14_celebrating.svg +35 -35
- package/dist/img/avatars/nuala_14_speaking.svg +36 -36
- package/dist/img/avatars/nuala_15_celebrating.svg +33 -33
- package/dist/img/avatars/nuala_15_speaking.svg +36 -36
- package/dist/img/avatars/nuala_16_celebrating.svg +29 -29
- package/dist/img/avatars/nuala_16_speaking.svg +32 -32
- package/dist/img/avatars/nuala_17_celebrating.svg +36 -36
- package/dist/img/avatars/nuala_17_speaking.svg +39 -39
- package/dist/img/avatars/nuala_18_celebrating.svg +34 -34
- package/dist/img/avatars/nuala_18_speaking.svg +37 -37
- package/dist/img/avatars/nuala_19_celebrating.svg +62 -62
- package/dist/img/avatars/nuala_19_speaking.svg +65 -65
- package/dist/img/avatars/nuala_1_celebrating.svg +30 -30
- package/dist/img/avatars/nuala_1_speaking.svg +37 -37
- package/dist/img/avatars/nuala_20_celebrating.svg +35 -35
- package/dist/img/avatars/nuala_20_speaking.svg +38 -38
- package/dist/img/avatars/nuala_21_celebrating.svg +33 -33
- package/dist/img/avatars/nuala_21_speaking.svg +36 -36
- package/dist/img/avatars/nuala_2_celebrating.svg +21 -21
- package/dist/img/avatars/nuala_2_speaking.svg +29 -29
- package/dist/img/avatars/nuala_3_celebrating.svg +20 -20
- package/dist/img/avatars/nuala_3_speaking.svg +28 -28
- package/dist/img/avatars/nuala_4_celebrating.svg +33 -33
- package/dist/img/avatars/nuala_4_speaking.svg +41 -41
- package/dist/img/avatars/nuala_5_celebrating.svg +30 -30
- package/dist/img/avatars/nuala_5_speaking.svg +36 -36
- package/dist/img/avatars/nuala_6_celebrating.svg +37 -37
- package/dist/img/avatars/nuala_6_speaking.svg +36 -36
- package/dist/img/avatars/nuala_7_celebrating.svg +42 -42
- package/dist/img/avatars/nuala_7_speaking.svg +43 -43
- package/dist/img/avatars/nuala_8_celebrating.svg +26 -26
- package/dist/img/avatars/nuala_8_speaking.svg +29 -29
- package/dist/img/avatars/nuala_9_celebrating.svg +26 -26
- package/dist/img/avatars/nuala_9_speaking.svg +27 -27
- package/dist/img/aws.svg +5 -5
- package/dist/img/azure.svg +9 -9
- package/dist/img/bot-error.svg +28 -28
- package/dist/img/bot_nuala.svg +45 -45
- package/dist/img/classroom.svg +178 -178
- package/dist/img/course.svg +113 -113
- package/dist/img/dashboard.svg +103 -103
- package/dist/img/nuala_1_celebrating.svg +33 -33
- package/dist/img/nuala_2_celebrating.svg +20 -20
- package/dist/img/nuala_3_celebrating.svg +21 -21
- package/dist/img/nuala_4_celebrating.svg +30 -30
- package/dist/img/nuala_5_celebrating.svg +30 -30
- package/dist/img/nuala_celebrating.svg +39 -39
- package/dist/img/nuala_sign_in.svg +62 -62
- package/dist/img/nuala_speaking.svg +41 -41
- package/dist/img/nuala_speaking_2.svg +41 -41
- package/dist/img/nuala_speaking_3.svg +41 -41
- package/dist/img/nuala_speaking_4.svg +41 -41
- package/dist/img/nualang-logo-primary.svg +17 -17
- package/dist/img/nualangSquareIcon.svg +18 -18
- package/dist/img/nualas.svg +185 -185
- package/dist/img/sentiment_dissatisfied_24px.svg +3 -3
- package/dist/img/sentiment_satisfied_24px.svg +3 -3
- package/dist/img/sentiment_very_satisfied_24px.svg +3 -3
- package/dist/img/stars1.svg +44 -44
- package/dist/img/stars2.svg +30 -30
- package/dist/img/structuring.svg +76 -76
- package/dist/img/teacher-create-2.svg +81 -81
- package/dist/img/teacher-create.svg +49 -49
- package/dist/img/teacher-world.svg +271 -271
- package/dist/img/teacher.svg +89 -89
- package/dist/img/world.svg +41 -41
- package/dist/utils/canvasUtils.js +5 -5
- package/dist/utils/index.js +8 -8
- package/package.json +185 -184
package/README.md
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
# Nualang ui-components
|
|
2
|
-
This is the ui-components repository for the Nualang product. The components
|
|
3
|
-
are developed, reviewed and tested with storybook and a library is then published
|
|
4
|
-
to `npm` and consumed from there by nualang web apps.
|
|
5
|
-
|
|
6
|
-
## Getting Started
|
|
7
|
-
Clone this repository and then execute `npm install`. `npm start` will start
|
|
8
|
-
[stoybook](https://storybook.js.org) and allow you to brrowse the available components.
|
|
9
|
-
|
|
10
|
-
## Develop
|
|
11
|
-
```
|
|
12
|
-
npm start
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Create Local Package
|
|
16
|
-
Compile and pack (This will create a '.tgz' file):
|
|
17
|
-
```
|
|
18
|
-
npm run localpack
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Install package (Inside webapp):
|
|
22
|
-
```
|
|
23
|
-
npm i ../ui-components/fathomtech-nualang-ui-components-0.1.XXX.tgz
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
If webapp is caching previous versions (Add a character to the end of the .tgz, e.g 'a') and install again:
|
|
27
|
-
```
|
|
28
|
-
yarn add ../ui-components/fathomtech-nualang-ui-components-0.1.XXXa.tgz
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Publish to npm
|
|
32
|
-
Make sure that the version number has been updayed in package.json.
|
|
33
|
-
Ensure that you have committed the latest version to git.
|
|
34
|
-
Execute:-
|
|
35
|
-
```bash
|
|
36
|
-
npm run postversion
|
|
37
|
-
```
|
|
38
|
-
npm will complain if you try to re-publish a previously used version number.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## Additional Scripts
|
|
42
|
-
In the project directory, you can run:
|
|
43
|
-
|
|
44
|
-
### `npm run storybook`
|
|
45
|
-
Runs the app in the development mode.<br />
|
|
46
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
47
|
-
|
|
48
|
-
The page will reload if you make edits.<br />
|
|
49
|
-
You should also see any lint errors in the console.
|
|
50
|
-
|
|
51
|
-
### `npm run test`
|
|
52
|
-
Launches the test runner in interactive watch mode.<br />
|
|
53
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
54
|
-
|
|
55
|
-
### `npm run lint`
|
|
56
|
-
Check for any lint errors or warnings.
|
|
57
|
-
|
|
58
|
-
### `npm run compile`
|
|
59
|
-
Run the babel compiler to compile es6 to js.
|
|
60
|
-
|
|
61
|
-
### `npm run postversion`
|
|
62
|
-
Publish a new version of the pacakage to npm. npm will complain
|
|
63
|
-
|
|
64
|
-
### `npm run chromatic`
|
|
1
|
+
# Nualang ui-components
|
|
2
|
+
This is the ui-components repository for the Nualang product. The components
|
|
3
|
+
are developed, reviewed and tested with storybook and a library is then published
|
|
4
|
+
to `npm` and consumed from there by nualang web apps.
|
|
5
|
+
|
|
6
|
+
## Getting Started
|
|
7
|
+
Clone this repository and then execute `npm install`. `npm start` will start
|
|
8
|
+
[stoybook](https://storybook.js.org) and allow you to brrowse the available components.
|
|
9
|
+
|
|
10
|
+
## Develop
|
|
11
|
+
```
|
|
12
|
+
npm start
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Create Local Package
|
|
16
|
+
Compile and pack (This will create a '.tgz' file):
|
|
17
|
+
```
|
|
18
|
+
npm run localpack
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Install package (Inside webapp):
|
|
22
|
+
```
|
|
23
|
+
npm i ../ui-components/fathomtech-nualang-ui-components-0.1.XXX.tgz
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
If webapp is caching previous versions (Add a character to the end of the .tgz, e.g 'a') and install again:
|
|
27
|
+
```
|
|
28
|
+
yarn add ../ui-components/fathomtech-nualang-ui-components-0.1.XXXa.tgz
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Publish to npm
|
|
32
|
+
Make sure that the version number has been updayed in package.json.
|
|
33
|
+
Ensure that you have committed the latest version to git.
|
|
34
|
+
Execute:-
|
|
35
|
+
```bash
|
|
36
|
+
npm run postversion
|
|
37
|
+
```
|
|
38
|
+
npm will complain if you try to re-publish a previously used version number.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Additional Scripts
|
|
42
|
+
In the project directory, you can run:
|
|
43
|
+
|
|
44
|
+
### `npm run storybook`
|
|
45
|
+
Runs the app in the development mode.<br />
|
|
46
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
47
|
+
|
|
48
|
+
The page will reload if you make edits.<br />
|
|
49
|
+
You should also see any lint errors in the console.
|
|
50
|
+
|
|
51
|
+
### `npm run test`
|
|
52
|
+
Launches the test runner in interactive watch mode.<br />
|
|
53
|
+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
54
|
+
|
|
55
|
+
### `npm run lint`
|
|
56
|
+
Check for any lint errors or warnings.
|
|
57
|
+
|
|
58
|
+
### `npm run compile`
|
|
59
|
+
Run the babel compiler to compile es6 to js.
|
|
60
|
+
|
|
61
|
+
### `npm run postversion`
|
|
62
|
+
Publish a new version of the pacakage to npm. npm will complain
|
|
63
|
+
|
|
64
|
+
### `npm run chromatic`
|
|
65
65
|
Publish a new version of the pacakage to https://www.chromatic.com/
|
|
@@ -124,11 +124,13 @@ function AssignmentCard({
|
|
|
124
124
|
},
|
|
125
125
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Grid, {
|
|
126
126
|
container: true,
|
|
127
|
+
sx: {
|
|
128
|
+
width: '100%'
|
|
129
|
+
},
|
|
127
130
|
spacing: 2,
|
|
128
131
|
alignItems: "center",
|
|
129
132
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
130
|
-
|
|
131
|
-
xs: true,
|
|
133
|
+
size: "grow",
|
|
132
134
|
flexDirection: "column",
|
|
133
135
|
display: "flex",
|
|
134
136
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
@@ -137,14 +139,12 @@ function AssignmentCard({
|
|
|
137
139
|
children: assignment.title
|
|
138
140
|
})
|
|
139
141
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
140
|
-
item: true,
|
|
141
142
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
142
143
|
variant: "button",
|
|
143
144
|
color: "text.secondary",
|
|
144
145
|
children: calculateDaysUntilDue(assignment.dueDate, assignment.scheduleDate)
|
|
145
146
|
})
|
|
146
147
|
}), isCreator && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Grid, {
|
|
147
|
-
item: true,
|
|
148
148
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tooltip, {
|
|
149
149
|
title: t("edit"),
|
|
150
150
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.IconButton, {
|
|
@@ -173,9 +173,10 @@ function AssignmentCard({
|
|
|
173
173
|
container: true,
|
|
174
174
|
spacing: 2,
|
|
175
175
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Grid, {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
size: {
|
|
177
|
+
md: 6,
|
|
178
|
+
xs: 12
|
|
179
|
+
},
|
|
179
180
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
180
181
|
variant: "body2",
|
|
181
182
|
children: assignment.instructions
|
|
@@ -198,35 +199,17 @@ function AssignmentCard({
|
|
|
198
199
|
lastClickedExerciseId: lastClickedExerciseId
|
|
199
200
|
})
|
|
200
201
|
})]
|
|
201
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
203
|
+
size: {
|
|
204
|
+
xs: 3,
|
|
205
|
+
md: 2
|
|
206
|
+
},
|
|
207
|
+
children: isCreator && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
206
208
|
display: "flex",
|
|
207
|
-
|
|
209
|
+
flexDirection: "column",
|
|
208
210
|
alignItems: "center",
|
|
209
|
-
|
|
210
|
-
textAlign: "center"
|
|
211
|
-
},
|
|
211
|
+
textAlign: "center",
|
|
212
212
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
213
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
214
|
-
variant: "h4",
|
|
215
|
-
children: "2"
|
|
216
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
217
|
-
variant: "body2",
|
|
218
|
-
color: "text.secondary",
|
|
219
|
-
children: t("Completed")
|
|
220
|
-
})]
|
|
221
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Divider, {
|
|
222
|
-
orientation: "vertical",
|
|
223
|
-
flexItem: true,
|
|
224
|
-
sx: {
|
|
225
|
-
width: "2px",
|
|
226
|
-
marginX: 2,
|
|
227
|
-
backgroundColor: "darkgray"
|
|
228
|
-
}
|
|
229
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
230
213
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
231
214
|
variant: "h4",
|
|
232
215
|
children: assignment.assignedStudents.length
|
|
@@ -235,18 +218,17 @@ function AssignmentCard({
|
|
|
235
218
|
color: "text.secondary",
|
|
236
219
|
children: t("assigned")
|
|
237
220
|
})]
|
|
221
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
222
|
+
variant: "contained",
|
|
223
|
+
sx: {
|
|
224
|
+
marginTop: 2
|
|
225
|
+
},
|
|
226
|
+
onClick: () => handleViewProgress({
|
|
227
|
+
assignmentId: assignment?.assignmentId
|
|
228
|
+
}),
|
|
229
|
+
children: t("view_progress")
|
|
238
230
|
})]
|
|
239
|
-
})
|
|
240
|
-
variant: "contained",
|
|
241
|
-
sx: {
|
|
242
|
-
marginTop: 2,
|
|
243
|
-
marginLeft: "15px"
|
|
244
|
-
},
|
|
245
|
-
onClick: () => handleViewProgress({
|
|
246
|
-
assignmentId: assignment?.assignmentId
|
|
247
|
-
}),
|
|
248
|
-
children: t("view_progress")
|
|
249
|
-
})]
|
|
231
|
+
})
|
|
250
232
|
})]
|
|
251
233
|
})]
|
|
252
234
|
})]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "AssignmentCard",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./AssignmentCard.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "AssignmentCard",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./AssignmentCard.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "AssignmentCardsList",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./AssignmentCardsList.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "AssignmentCardsList",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./AssignmentCardsList.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "AssignmentCourseSelection",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./AssignmentCourseSelection.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "AssignmentCourseSelection",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./AssignmentCourseSelection.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -389,10 +389,10 @@ function Topic({
|
|
|
389
389
|
let games;
|
|
390
390
|
switch (useCase) {
|
|
391
391
|
case "assignment-view":
|
|
392
|
-
games = ["roleplay-story", "roleplay-fill-in-the-blanks", "roleplay-act-it-out", "roleplay-act-it-out-listening", "roleplay-act-it-out-speaking", "roleplay-act-it-out-listening-speaking"].filter(
|
|
392
|
+
games = ["roleplay-story", "roleplay-fill-in-the-blanks", "roleplay-act-it-out", "roleplay-act-it-out-listening", "roleplay-act-it-out-speaking", "roleplay-act-it-out-listening-speaking"].filter(name => selectedExercises.some(e => e.name === name));
|
|
393
393
|
break;
|
|
394
394
|
case "assignment-start":
|
|
395
|
-
games = ["roleplay-story", "roleplay-fill-in-the-blanks", "roleplay-act-it-out", "roleplay-act-it-out-listening", "roleplay-act-it-out-speaking", "roleplay-act-it-out-listening-speaking"].filter(
|
|
395
|
+
games = ["roleplay-story", "roleplay-fill-in-the-blanks", "roleplay-act-it-out", "roleplay-act-it-out-listening", "roleplay-act-it-out-speaking", "roleplay-act-it-out-listening-speaking"].filter(name => selectedExercises.some(e => e.name === name));
|
|
396
396
|
break;
|
|
397
397
|
default:
|
|
398
398
|
games = ["roleplay-story", "roleplay-fill-in-the-blanks", "roleplay-act-it-out", "roleplay-act-it-out-listening", "roleplay-act-it-out-speaking", "roleplay-act-it-out-listening-speaking"];
|
|
@@ -422,11 +422,11 @@ function Topic({
|
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
roleplays.forEach(roleplay => {
|
|
425
|
-
games.forEach(
|
|
426
|
-
if (!selectedExercises?.some(e => e.roleplayId === roleplay.roleplayId && e.
|
|
425
|
+
games.forEach(name => {
|
|
426
|
+
if (!selectedExercises?.some(e => e.roleplayId === roleplay.roleplayId && e.name === name)) {
|
|
427
427
|
exercisesToAdd = [...exercisesToAdd, {
|
|
428
428
|
roleplayId: roleplay.roleplayId,
|
|
429
|
-
|
|
429
|
+
name: name,
|
|
430
430
|
courseSectionTopicId: `${courseId}|${sectionId}|${topicId}`,
|
|
431
431
|
roleplayName: roleplay.roleplayName
|
|
432
432
|
}];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "AssignmentExerciseSelection",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./AssignmentExerciseSelection.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "AssignmentExerciseSelection",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./AssignmentExerciseSelection.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "AssignmentExerciseSelector",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./AssignmentExerciseSelector.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "AssignmentExerciseSelector",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./AssignmentExerciseSelector.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -127,23 +127,23 @@ function Roleplay({
|
|
|
127
127
|
(0, _react.useEffect)(() => {
|
|
128
128
|
const count = selectedExercises?.filter(exercise => exercise.roleplayId === roleplay.roleplayId).length;
|
|
129
129
|
setIsSelectAllChecked(count === games.length);
|
|
130
|
-
const roleplayNames = selectedExercises?.filter(ex => ex.roleplayId === roleplay.roleplayId).map(ex => ex.
|
|
130
|
+
const roleplayNames = selectedExercises?.filter(ex => ex.roleplayId === roleplay.roleplayId).map(ex => ex.name);
|
|
131
131
|
setSelectedGames(roleplayNames);
|
|
132
132
|
}, [selectedExercises, roleplay.roleplayId, games.length]);
|
|
133
133
|
const handleSelectAll = () => {
|
|
134
134
|
if (isSelectAllChecked) {
|
|
135
|
-
const removeExercises = games.map(
|
|
135
|
+
const removeExercises = games.map(name => ({
|
|
136
136
|
roleplayId: roleplay.roleplayId,
|
|
137
|
-
|
|
137
|
+
name: name
|
|
138
138
|
}));
|
|
139
139
|
handleSelectExercise(removeExercises);
|
|
140
140
|
} else {
|
|
141
141
|
let gamesToAdd = [];
|
|
142
|
-
games.forEach(
|
|
143
|
-
if (!selectedExercises?.some(e => e.roleplayId === roleplay.roleplayId && e.
|
|
142
|
+
games.forEach(name => {
|
|
143
|
+
if (!selectedExercises?.some(e => e.roleplayId === roleplay.roleplayId && e.name === name)) {
|
|
144
144
|
gamesToAdd = [...gamesToAdd, {
|
|
145
145
|
roleplayId: roleplay.roleplayId,
|
|
146
|
-
|
|
146
|
+
name: name,
|
|
147
147
|
courseSectionTopicId: roleplay.courseSectionTopicId,
|
|
148
148
|
roleplayName: roleplay.roleplayName
|
|
149
149
|
}];
|
|
@@ -165,20 +165,20 @@ function Roleplay({
|
|
|
165
165
|
fontSize: "small"
|
|
166
166
|
})]
|
|
167
167
|
});
|
|
168
|
-
const getIconAndStatusForGame =
|
|
169
|
-
switch (
|
|
168
|
+
const getIconAndStatusForGame = name => {
|
|
169
|
+
switch (name) {
|
|
170
170
|
case "roleplay-story":
|
|
171
|
-
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoStories.default, {}), selectedGames?.includes(
|
|
171
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoStories.default, {}), selectedGames?.includes(name)];
|
|
172
172
|
case "roleplay-fill-in-the-blanks":
|
|
173
|
-
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SpaceBar.default, {}), selectedGames?.includes(
|
|
173
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SpaceBar.default, {}), selectedGames?.includes(name)];
|
|
174
174
|
case "roleplay-act-it-out":
|
|
175
|
-
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Message.default, {}), selectedGames?.includes(
|
|
175
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Message.default, {}), selectedGames?.includes(name)];
|
|
176
176
|
case "roleplay-act-it-out-listening":
|
|
177
|
-
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Headphones.default, {}), selectedGames?.includes(
|
|
177
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Headphones.default, {}), selectedGames?.includes(name)];
|
|
178
178
|
case "roleplay-act-it-out-speaking":
|
|
179
|
-
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RecordVoiceOver.default, {}), selectedGames?.includes(
|
|
179
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RecordVoiceOver.default, {}), selectedGames?.includes(name)];
|
|
180
180
|
case "roleplay-act-it-out-listening-speaking":
|
|
181
|
-
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(ActItOutListeningSpeakingIcon, {}), selectedGames?.includes(
|
|
181
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(ActItOutListeningSpeakingIcon, {}), selectedGames?.includes(name)];
|
|
182
182
|
default:
|
|
183
183
|
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Forum.default, {}), true];
|
|
184
184
|
}
|
|
@@ -292,10 +292,10 @@ function Roleplay({
|
|
|
292
292
|
unmountOnExit: true,
|
|
293
293
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
294
294
|
ml: 3.5,
|
|
295
|
-
children: [useCase === "assignment-select" && games.map((
|
|
295
|
+
children: [useCase === "assignment-select" && games.map((name, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.ListItemButton, {
|
|
296
296
|
onClick: () => handleSelectExercise([{
|
|
297
297
|
roleplayId: roleplay.roleplayId,
|
|
298
|
-
|
|
298
|
+
name: name,
|
|
299
299
|
courseSectionTopicId: roleplay.courseSectionTopicId
|
|
300
300
|
}]),
|
|
301
301
|
sx: {
|
|
@@ -308,21 +308,21 @@ function Roleplay({
|
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemIcon, {
|
|
311
|
-
children: getIconAndStatusForGame(
|
|
311
|
+
children: getIconAndStatusForGame(name)[0]
|
|
312
312
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemText, {
|
|
313
|
-
primary: t(
|
|
314
|
-
secondary: t(
|
|
313
|
+
primary: t(name.replace(/roleplay-/, "").replace(/-/g, "_")),
|
|
314
|
+
secondary: t(name.replace(/roleplay-/, "").replace(/-/g, "_") + "_description")
|
|
315
315
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemIcon, {
|
|
316
316
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Checkbox, {
|
|
317
|
-
checked: selectedExercises?.some(e => e.roleplayId === roleplay.roleplayId && e.
|
|
317
|
+
checked: selectedExercises?.some(e => e.roleplayId === roleplay.roleplayId && e.name === name)
|
|
318
318
|
})
|
|
319
319
|
})]
|
|
320
|
-
}, `${roleplay.roleplayId}-${
|
|
320
|
+
}, `${roleplay.roleplayId}-${name}-${index}`)), useCase === "assignment-view" || useCase === "assignment-start" ? games.map(name => getIconAndStatusForGame(name)[1] &&
|
|
321
321
|
/*#__PURE__*/
|
|
322
322
|
// eslint-disable-next-line react/jsx-key
|
|
323
323
|
(0, _jsxRuntime.jsxs)(_material.ListItemButton, {
|
|
324
324
|
onClick: () => {
|
|
325
|
-
useCase === "assignment-start" ? addSearchParams(
|
|
325
|
+
useCase === "assignment-start" ? addSearchParams(name.replace(/roleplay-/, "")) : null;
|
|
326
326
|
},
|
|
327
327
|
sx: {
|
|
328
328
|
display: "flex",
|
|
@@ -334,19 +334,19 @@ function Roleplay({
|
|
|
334
334
|
}
|
|
335
335
|
},
|
|
336
336
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemIcon, {
|
|
337
|
-
children: getIconAndStatusForGame(
|
|
337
|
+
children: getIconAndStatusForGame(name)[0]
|
|
338
338
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemText, {
|
|
339
|
-
primary: t(
|
|
340
|
-
secondary: t(
|
|
339
|
+
primary: t(name.replace(/roleplay-/, "").replace(/-/g, "_")),
|
|
340
|
+
secondary: t(name.replace(/roleplay-/, "").replace(/-/g, "_") + "_description")
|
|
341
341
|
}), useCase === "assignment-start" && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
342
342
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(InProgressBadge, {
|
|
343
343
|
roleplayProgress: topicProgress,
|
|
344
344
|
t: t,
|
|
345
|
-
gameName:
|
|
345
|
+
gameName: name
|
|
346
346
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ProgressBadge, {
|
|
347
347
|
completions: memberCourseCompletions,
|
|
348
348
|
t: t,
|
|
349
|
-
gameName:
|
|
349
|
+
gameName: name
|
|
350
350
|
})]
|
|
351
351
|
})]
|
|
352
352
|
})) : null]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "AssignmentRoleplaySelection",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./AssignmentRoleplaySelection.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "AssignmentRoleplaySelection",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./AssignmentRoleplaySelection.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -35,8 +35,8 @@ function AssignmentSelectExercise({
|
|
|
35
35
|
exercises.forEach(exercise => {
|
|
36
36
|
if (exercise.courseSectionTopicId && !exercise.roleplayId && updatedExercises.some(e => e.courseSectionTopicId === exercise.courseSectionTopicId && e.name === exercise.name)) {
|
|
37
37
|
updatedExercises = updatedExercises.filter(e => e.courseSectionTopicId !== exercise.courseSectionTopicId || e.name !== exercise.name);
|
|
38
|
-
} else if (exercise.roleplayId && updatedExercises.some(e => e.roleplayId === exercise.roleplayId && e.
|
|
39
|
-
updatedExercises = updatedExercises.filter(e => !!e.courseSectionTopicId && !e.roleplayId || e.roleplayId !== exercise.roleplayId || e.
|
|
38
|
+
} else if (exercise.roleplayId && updatedExercises.some(e => e.roleplayId === exercise.roleplayId && e.name === exercise.name)) {
|
|
39
|
+
updatedExercises = updatedExercises.filter(e => !!e.courseSectionTopicId && !e.roleplayId || e.roleplayId !== exercise.roleplayId || e.name !== exercise.name);
|
|
40
40
|
} else {
|
|
41
41
|
updatedExercises.push(exercise);
|
|
42
42
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "CreateAssignmentDialog",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./CreateAssignmentDialog.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "CreateAssignmentDialog",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./CreateAssignmentDialog.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ var _Assignment = _interopRequireDefault(require("@mui/icons-material/Assignment
|
|
|
10
10
|
var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
11
11
|
var _VideoCall = _interopRequireDefault(require("@mui/icons-material/VideoCall"));
|
|
12
12
|
var _useMediaQuery = _interopRequireDefault(require("@mui/material/useMediaQuery"));
|
|
13
|
-
var
|
|
13
|
+
var _styles = require("@mui/material/styles");
|
|
14
14
|
var _mui = require("tss-react/mui");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -53,7 +53,7 @@ function SelectAssignmentTypeDialog({
|
|
|
53
53
|
const {
|
|
54
54
|
classes
|
|
55
55
|
} = useStyles();
|
|
56
|
-
const theme = (0,
|
|
56
|
+
const theme = (0, _styles.useTheme)();
|
|
57
57
|
const fullScreen = (0, _useMediaQuery.default)(theme.breakpoints.down("md"));
|
|
58
58
|
const classroomsList = classrooms.map(classroom => {
|
|
59
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
@@ -93,11 +93,15 @@ function SelectAssignmentTypeDialog({
|
|
|
93
93
|
children: classroomsList
|
|
94
94
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Grid, {
|
|
95
95
|
container: true,
|
|
96
|
+
sx: {
|
|
97
|
+
width: '100%'
|
|
98
|
+
},
|
|
96
99
|
spacing: 2,
|
|
97
100
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
size: {
|
|
102
|
+
xs: 12,
|
|
103
|
+
md: 6
|
|
104
|
+
},
|
|
101
105
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
102
106
|
className: classes.div,
|
|
103
107
|
onClick: handleSelectExercises,
|
|
@@ -125,9 +129,10 @@ function SelectAssignmentTypeDialog({
|
|
|
125
129
|
})
|
|
126
130
|
})
|
|
127
131
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
size: {
|
|
133
|
+
xs: 12,
|
|
134
|
+
md: 6
|
|
135
|
+
},
|
|
131
136
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
132
137
|
className: classes.div,
|
|
133
138
|
onClick: handleSelectDiscuss,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "SelectAssignmentTypeDialog",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./SelectAssignmentTypeDialog.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "SelectAssignmentTypeDialog",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./SelectAssignmentTypeDialog.js"
|
|
6
|
+
}
|
|
7
7
|
|
|
@@ -47,10 +47,12 @@ function RecordingCard({
|
|
|
47
47
|
},
|
|
48
48
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Grid, {
|
|
49
49
|
container: true,
|
|
50
|
+
sx: {
|
|
51
|
+
width: '100%'
|
|
52
|
+
},
|
|
50
53
|
alignItems: "center",
|
|
51
54
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
52
|
-
|
|
53
|
-
xs: 8,
|
|
55
|
+
size: 8,
|
|
54
56
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CardContent, {
|
|
55
57
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
56
58
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
@@ -118,12 +120,11 @@ function RecordingCard({
|
|
|
118
120
|
})
|
|
119
121
|
})
|
|
120
122
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
121
|
-
item: true,
|
|
122
|
-
xs: 2,
|
|
123
123
|
sx: {
|
|
124
124
|
display: "flex",
|
|
125
125
|
justifyContent: "center"
|
|
126
126
|
},
|
|
127
|
+
size: 2,
|
|
127
128
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CardActions, {
|
|
128
129
|
children: !isTeacher && recordingsListData?.gradingOption && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
129
130
|
color: "primary",
|
|
@@ -133,14 +134,13 @@ function RecordingCard({
|
|
|
133
134
|
})
|
|
134
135
|
})
|
|
135
136
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, {
|
|
136
|
-
item: true,
|
|
137
|
-
xs: 2,
|
|
138
137
|
sx: {
|
|
139
138
|
display: "flex",
|
|
140
139
|
justifyContent: "center",
|
|
141
140
|
width: "20px",
|
|
142
141
|
textOverflow: "ellipsis"
|
|
143
142
|
},
|
|
143
|
+
size: 2,
|
|
144
144
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CardActions, {
|
|
145
145
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
146
146
|
color: "primary",
|