mario-core 2.9.62-beta → 2.9.63-beta
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/dist/components/Selectors/CategorySelector.d.ts +3 -0
- package/dist/components/Selectors/constants/constant.d.ts +10 -0
- package/dist/components/Selectors/hooks/useCategorySelector.d.ts +5 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +178 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +178 -23
- package/dist/index.modern.js.map +1 -1
- package/dist/services/questionCategoryService.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import SearchBox from "./components/Inputs/SearchBox";
|
|
|
27
27
|
import QuestionTypeSelector from "./components/Selectors/QuestionTypeSelector";
|
|
28
28
|
import SuggestionCategorySelector from "./components/Selectors/SuggestionCategorySelector";
|
|
29
29
|
import QuestionCategorySelector from "./components/Selectors/QuestionCategorySelector";
|
|
30
|
+
import CategorySelector from "./components/Selectors/CategorySelector";
|
|
30
31
|
import ErrorHandler from "./components/Alerts/ErrorHandler";
|
|
31
32
|
import DetailActionButtons from "./components/Buttons/DetailActionButtons";
|
|
32
33
|
import RequiredLabel from "./components/Labels/RequiredLabel";
|
|
@@ -107,4 +108,4 @@ import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage } f
|
|
|
107
108
|
import useFilters from "./hooks/useFilters";
|
|
108
109
|
import amplitude from "amplitude-js";
|
|
109
110
|
declare const amplitudeClient: amplitude.AmplitudeClient;
|
|
110
|
-
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY };
|
|
111
|
+
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY };
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,7 @@ var cancel = "Cancel";
|
|
|
50
50
|
var hey = "Hey";
|
|
51
51
|
var readiness_to_learn = "Readiness to Learn";
|
|
52
52
|
var high_impact_learning_strategies = "High Impact Learning Strategies";
|
|
53
|
+
var check_in = "Check In";
|
|
53
54
|
var reflection = "Reflection";
|
|
54
55
|
var conferences = "Conferences";
|
|
55
56
|
var safety = "Safety";
|
|
@@ -102,12 +103,14 @@ var current_password = "Current password";
|
|
|
102
103
|
var new_password = "New password";
|
|
103
104
|
var confirm_password = "Confirm password";
|
|
104
105
|
var save = "Save";
|
|
105
|
-
var type_something_to_search_question = "Type something to
|
|
106
|
+
var type_something_to_search_question = "Type something to search question";
|
|
107
|
+
var type_something_to_search_category = "Type something to search category";
|
|
106
108
|
var total_of_questions = "Total of questions";
|
|
107
109
|
var create_question = "Create question";
|
|
108
110
|
var edit_question = "Edit question";
|
|
109
111
|
var question_type = "Question Type";
|
|
110
112
|
var category = "Category";
|
|
113
|
+
var sub_category = "Sub Category";
|
|
111
114
|
var is_default_question_for_one_to_one = "Is default question for one-to-one";
|
|
112
115
|
var default_question_for_students_or_teachers = "Default question for students or teachers";
|
|
113
116
|
var is_default_question_general_class = "Is default question general class";
|
|
@@ -247,6 +250,7 @@ var import_csv = "Import CSV";
|
|
|
247
250
|
var add_new = "Add New";
|
|
248
251
|
var show_only_work_as_assistant = "Show only work as assistant";
|
|
249
252
|
var last_1_to_1 = "Last 1-TO-1";
|
|
253
|
+
var last_check_in = "Last Check In";
|
|
250
254
|
var last_conference = "Last conference";
|
|
251
255
|
var total_time = "Total time";
|
|
252
256
|
var assistant_name = "Assistant Name";
|
|
@@ -263,6 +267,7 @@ var after = "After";
|
|
|
263
267
|
var pick_a_date = "Pick a date";
|
|
264
268
|
var apply = "Apply";
|
|
265
269
|
var new_1_to_1 = "New 1-to-1";
|
|
270
|
+
var new_check_in = "New Check In";
|
|
266
271
|
var do_you_want_to_talk_with_teacher = "Do you want to talk with teacher";
|
|
267
272
|
var start_now = "Start now";
|
|
268
273
|
var book_for_later = "Book for later";
|
|
@@ -273,6 +278,7 @@ var select_question = "Select question";
|
|
|
273
278
|
var select_student = "Select student";
|
|
274
279
|
var select_date_time = "Select Date & Time";
|
|
275
280
|
var book_1_to_1 = "Book 1-to-1";
|
|
281
|
+
var book_new_check_in = "Book new Check In";
|
|
276
282
|
var schedule = "Schedule";
|
|
277
283
|
var sessions_are_booked_as_10_minute_slots = "Sessions are booked as 10 minute slots";
|
|
278
284
|
var does_not_reoccur = "Does not reoccur";
|
|
@@ -287,7 +293,8 @@ var open = "Open";
|
|
|
287
293
|
var no_data = "No Data";
|
|
288
294
|
var schedule_detail = "Schedule Detail";
|
|
289
295
|
var are_you_sure_you_want_to_cancel_this_schedule = "Are you sure you want to Cancel this schedule?";
|
|
290
|
-
var completed_1_to_1 = "Completed 1-
|
|
296
|
+
var completed_1_to_1 = "Completed 1-1 Conversation";
|
|
297
|
+
var completed_check_in = "Completed Check In";
|
|
291
298
|
var done = "Done";
|
|
292
299
|
var what_do_you_want_to_talk_about = "What do you want to talk about?";
|
|
293
300
|
var session_type = "Session Type";
|
|
@@ -408,6 +415,7 @@ var student_request = "Student Request";
|
|
|
408
415
|
var overview = "Overview";
|
|
409
416
|
var plp = "PLP";
|
|
410
417
|
var my_student_1_to_1 = "My Student 1-to-1";
|
|
418
|
+
var my_student_check_in = "My Student Check In";
|
|
411
419
|
var my_student_conference = "My Student Conference";
|
|
412
420
|
var received_date = "Received Date";
|
|
413
421
|
var class_impact_score = "Class Impact Score";
|
|
@@ -597,6 +605,7 @@ var lang_us = {
|
|
|
597
605
|
readiness_to_learn: readiness_to_learn,
|
|
598
606
|
high_impact_learning_strategies: high_impact_learning_strategies,
|
|
599
607
|
"1_to_1": "1 To 1",
|
|
608
|
+
check_in: check_in,
|
|
600
609
|
reflection: reflection,
|
|
601
610
|
conferences: conferences,
|
|
602
611
|
safety: safety,
|
|
@@ -651,11 +660,13 @@ var lang_us = {
|
|
|
651
660
|
confirm_password: confirm_password,
|
|
652
661
|
save: save,
|
|
653
662
|
type_something_to_search_question: type_something_to_search_question,
|
|
663
|
+
type_something_to_search_category: type_something_to_search_category,
|
|
654
664
|
total_of_questions: total_of_questions,
|
|
655
665
|
create_question: create_question,
|
|
656
666
|
edit_question: edit_question,
|
|
657
667
|
question_type: question_type,
|
|
658
668
|
category: category,
|
|
669
|
+
sub_category: sub_category,
|
|
659
670
|
"Question text": "Question text",
|
|
660
671
|
is_default_question_for_one_to_one: is_default_question_for_one_to_one,
|
|
661
672
|
default_question_for_students_or_teachers: default_question_for_students_or_teachers,
|
|
@@ -798,6 +809,7 @@ var lang_us = {
|
|
|
798
809
|
add_new: add_new,
|
|
799
810
|
show_only_work_as_assistant: show_only_work_as_assistant,
|
|
800
811
|
last_1_to_1: last_1_to_1,
|
|
812
|
+
last_check_in: last_check_in,
|
|
801
813
|
last_conference: last_conference,
|
|
802
814
|
total_time: total_time,
|
|
803
815
|
assistant_name: assistant_name,
|
|
@@ -814,6 +826,7 @@ var lang_us = {
|
|
|
814
826
|
pick_a_date: pick_a_date,
|
|
815
827
|
apply: apply,
|
|
816
828
|
new_1_to_1: new_1_to_1,
|
|
829
|
+
new_check_in: new_check_in,
|
|
817
830
|
do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher,
|
|
818
831
|
start_now: start_now,
|
|
819
832
|
book_for_later: book_for_later,
|
|
@@ -824,6 +837,7 @@ var lang_us = {
|
|
|
824
837
|
select_student: select_student,
|
|
825
838
|
select_date_time: select_date_time,
|
|
826
839
|
book_1_to_1: book_1_to_1,
|
|
840
|
+
book_new_check_in: book_new_check_in,
|
|
827
841
|
schedule: schedule,
|
|
828
842
|
sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots,
|
|
829
843
|
does_not_reoccur: does_not_reoccur,
|
|
@@ -839,6 +853,7 @@ var lang_us = {
|
|
|
839
853
|
schedule_detail: schedule_detail,
|
|
840
854
|
are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule,
|
|
841
855
|
completed_1_to_1: completed_1_to_1,
|
|
856
|
+
completed_check_in: completed_check_in,
|
|
842
857
|
done: done,
|
|
843
858
|
what_do_you_want_to_talk_about: what_do_you_want_to_talk_about,
|
|
844
859
|
session_type: session_type,
|
|
@@ -960,6 +975,7 @@ var lang_us = {
|
|
|
960
975
|
overview: overview,
|
|
961
976
|
plp: plp,
|
|
962
977
|
my_student_1_to_1: my_student_1_to_1,
|
|
978
|
+
my_student_check_in: my_student_check_in,
|
|
963
979
|
my_student_conference: my_student_conference,
|
|
964
980
|
received_date: received_date,
|
|
965
981
|
class_impact_score: class_impact_score,
|
|
@@ -1151,6 +1167,7 @@ var cancel$1 = "Cancel";
|
|
|
1151
1167
|
var hey$1 = "Hey";
|
|
1152
1168
|
var readiness_to_learn$1 = "Readiness to Learn";
|
|
1153
1169
|
var high_impact_learning_strategies$1 = "High Impact Learning Strategies";
|
|
1170
|
+
var check_in$1 = "Check In";
|
|
1154
1171
|
var reflection$1 = "Reflection";
|
|
1155
1172
|
var conferences$1 = "Conferences";
|
|
1156
1173
|
var safety$1 = "Safety";
|
|
@@ -1204,12 +1221,14 @@ var current_password$1 = "Current password";
|
|
|
1204
1221
|
var new_password$1 = "New password";
|
|
1205
1222
|
var confirm_password$1 = "Confirm password";
|
|
1206
1223
|
var save$1 = "Save";
|
|
1207
|
-
var type_something_to_search_question$1 = "Type something to
|
|
1224
|
+
var type_something_to_search_question$1 = "Type something to search question";
|
|
1225
|
+
var type_something_to_search_category$1 = "Type something to search category";
|
|
1208
1226
|
var total_of_questions$1 = "Total of questions";
|
|
1209
1227
|
var create_question$1 = "Create question";
|
|
1210
1228
|
var edit_question$1 = "Edit question";
|
|
1211
1229
|
var question_type$1 = "Question Type";
|
|
1212
1230
|
var category$1 = "Category";
|
|
1231
|
+
var sub_category$1 = "Sub Category";
|
|
1213
1232
|
var question_text = "Question text";
|
|
1214
1233
|
var is_default_question_for_one_to_one$1 = "Is default question for one-to-one";
|
|
1215
1234
|
var default_question_for_students_or_teachers$1 = "Default question for students or teachers";
|
|
@@ -1312,7 +1331,7 @@ var use_for$1 = "Use for";
|
|
|
1312
1331
|
var admin_training$1 = "Admin training";
|
|
1313
1332
|
var teacher_training$1 = "Teacher training";
|
|
1314
1333
|
var created_time$1 = "Create time";
|
|
1315
|
-
var total_reflections$1 = "Total Reflections
|
|
1334
|
+
var total_reflections$1 = "Total Reflections";
|
|
1316
1335
|
var student_training$1 = "Student training";
|
|
1317
1336
|
var create_destination$1 = "Create Destination";
|
|
1318
1337
|
var total_of_designation$1 = "Total of Designation";
|
|
@@ -1350,6 +1369,7 @@ var import_csv$1 = "Import CSV";
|
|
|
1350
1369
|
var add_new$1 = "Add New";
|
|
1351
1370
|
var show_only_work_as_assistant$1 = "Show only work as assistant";
|
|
1352
1371
|
var last_1_to_1$1 = "Last 1-TO-1";
|
|
1372
|
+
var last_check_in$1 = "Last Check In";
|
|
1353
1373
|
var last_conference$1 = "Last conference";
|
|
1354
1374
|
var total_time$1 = "Total time";
|
|
1355
1375
|
var assistant_name$1 = "Assistant Name";
|
|
@@ -1366,6 +1386,7 @@ var after$1 = "After";
|
|
|
1366
1386
|
var pick_a_date$1 = "Pick a date";
|
|
1367
1387
|
var apply$1 = "Apply";
|
|
1368
1388
|
var new_1_to_1$1 = "New 1-to-1";
|
|
1389
|
+
var new_check_in$1 = "New Check In";
|
|
1369
1390
|
var do_you_want_to_talk_with_teacher$1 = "Do you want to talk with teacher";
|
|
1370
1391
|
var start_now$1 = "Start now";
|
|
1371
1392
|
var book_for_later$1 = "Book for later";
|
|
@@ -1376,6 +1397,7 @@ var select_question$1 = "Select question";
|
|
|
1376
1397
|
var select_student$1 = "Select student";
|
|
1377
1398
|
var select_date_time$1 = "Select Date & Time";
|
|
1378
1399
|
var book_1_to_1$1 = "Book 1-to-1";
|
|
1400
|
+
var book_new_check_in$1 = "Book new Check In";
|
|
1379
1401
|
var schedule$1 = "Schedule";
|
|
1380
1402
|
var sessions_are_booked_as_10_minute_slots$1 = "Sessions are booked as 10 minute slots";
|
|
1381
1403
|
var does_not_reoccur$1 = "Does not reoccur";
|
|
@@ -1390,7 +1412,8 @@ var open$1 = "Open";
|
|
|
1390
1412
|
var no_data$1 = "No Data";
|
|
1391
1413
|
var schedule_detail$1 = "Schedule Detail";
|
|
1392
1414
|
var are_you_sure_you_want_to_cancel_this_schedule$1 = "Are you sure you want to Cancel this schedule?";
|
|
1393
|
-
var completed_1_to_1$1 = "Completed 1-
|
|
1415
|
+
var completed_1_to_1$1 = "Completed 1-1 Conversation";
|
|
1416
|
+
var completed_check_in$1 = "Completed Check In";
|
|
1394
1417
|
var done$1 = "Done";
|
|
1395
1418
|
var what_do_you_want_to_talk_about$1 = "What do you want to talk about?";
|
|
1396
1419
|
var session_type$1 = "Session Type";
|
|
@@ -1511,6 +1534,7 @@ var student_request$1 = "Student Request";
|
|
|
1511
1534
|
var overview$1 = "Overview";
|
|
1512
1535
|
var plp$1 = "PLP";
|
|
1513
1536
|
var my_student_1_to_1$1 = "My Student 1-to-1";
|
|
1537
|
+
var my_student_check_in$1 = "My Student Check In";
|
|
1514
1538
|
var my_student_conference$1 = "My Student Conference";
|
|
1515
1539
|
var received_date$1 = "Received Date";
|
|
1516
1540
|
var class_impact_score$1 = "Class Impact Score";
|
|
@@ -1700,6 +1724,7 @@ var lang_uk = {
|
|
|
1700
1724
|
readiness_to_learn: readiness_to_learn$1,
|
|
1701
1725
|
high_impact_learning_strategies: high_impact_learning_strategies$1,
|
|
1702
1726
|
"1_to_1": "1 to 1",
|
|
1727
|
+
check_in: check_in$1,
|
|
1703
1728
|
reflection: reflection$1,
|
|
1704
1729
|
conferences: conferences$1,
|
|
1705
1730
|
safety: safety$1,
|
|
@@ -1754,11 +1779,13 @@ var lang_uk = {
|
|
|
1754
1779
|
confirm_password: confirm_password$1,
|
|
1755
1780
|
save: save$1,
|
|
1756
1781
|
type_something_to_search_question: type_something_to_search_question$1,
|
|
1782
|
+
type_something_to_search_category: type_something_to_search_category$1,
|
|
1757
1783
|
total_of_questions: total_of_questions$1,
|
|
1758
1784
|
create_question: create_question$1,
|
|
1759
1785
|
edit_question: edit_question$1,
|
|
1760
1786
|
question_type: question_type$1,
|
|
1761
1787
|
category: category$1,
|
|
1788
|
+
sub_category: sub_category$1,
|
|
1762
1789
|
question_text: question_text,
|
|
1763
1790
|
is_default_question_for_one_to_one: is_default_question_for_one_to_one$1,
|
|
1764
1791
|
default_question_for_students_or_teachers: default_question_for_students_or_teachers$1,
|
|
@@ -1901,6 +1928,7 @@ var lang_uk = {
|
|
|
1901
1928
|
add_new: add_new$1,
|
|
1902
1929
|
show_only_work_as_assistant: show_only_work_as_assistant$1,
|
|
1903
1930
|
last_1_to_1: last_1_to_1$1,
|
|
1931
|
+
last_check_in: last_check_in$1,
|
|
1904
1932
|
last_conference: last_conference$1,
|
|
1905
1933
|
total_time: total_time$1,
|
|
1906
1934
|
assistant_name: assistant_name$1,
|
|
@@ -1917,6 +1945,7 @@ var lang_uk = {
|
|
|
1917
1945
|
pick_a_date: pick_a_date$1,
|
|
1918
1946
|
apply: apply$1,
|
|
1919
1947
|
new_1_to_1: new_1_to_1$1,
|
|
1948
|
+
new_check_in: new_check_in$1,
|
|
1920
1949
|
do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher$1,
|
|
1921
1950
|
start_now: start_now$1,
|
|
1922
1951
|
book_for_later: book_for_later$1,
|
|
@@ -1927,6 +1956,7 @@ var lang_uk = {
|
|
|
1927
1956
|
select_student: select_student$1,
|
|
1928
1957
|
select_date_time: select_date_time$1,
|
|
1929
1958
|
book_1_to_1: book_1_to_1$1,
|
|
1959
|
+
book_new_check_in: book_new_check_in$1,
|
|
1930
1960
|
schedule: schedule$1,
|
|
1931
1961
|
sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots$1,
|
|
1932
1962
|
does_not_reoccur: does_not_reoccur$1,
|
|
@@ -1942,6 +1972,7 @@ var lang_uk = {
|
|
|
1942
1972
|
schedule_detail: schedule_detail$1,
|
|
1943
1973
|
are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule$1,
|
|
1944
1974
|
completed_1_to_1: completed_1_to_1$1,
|
|
1975
|
+
completed_check_in: completed_check_in$1,
|
|
1945
1976
|
done: done$1,
|
|
1946
1977
|
what_do_you_want_to_talk_about: what_do_you_want_to_talk_about$1,
|
|
1947
1978
|
session_type: session_type$1,
|
|
@@ -2063,6 +2094,7 @@ var lang_uk = {
|
|
|
2063
2094
|
overview: overview$1,
|
|
2064
2095
|
plp: plp$1,
|
|
2065
2096
|
my_student_1_to_1: my_student_1_to_1$1,
|
|
2097
|
+
my_student_check_in: my_student_check_in$1,
|
|
2066
2098
|
my_student_conference: my_student_conference$1,
|
|
2067
2099
|
received_date: received_date$1,
|
|
2068
2100
|
class_impact_score: class_impact_score$1,
|
|
@@ -2468,18 +2500,6 @@ var QUESTION_TYPES_OPTIONS = [{
|
|
|
2468
2500
|
}, {
|
|
2469
2501
|
label: "Text input",
|
|
2470
2502
|
value: "TextInput"
|
|
2471
|
-
}, {
|
|
2472
|
-
label: "Slider",
|
|
2473
|
-
value: "Slider"
|
|
2474
|
-
}, {
|
|
2475
|
-
label: "Progress bar",
|
|
2476
|
-
value: "ProgressBar"
|
|
2477
|
-
}, {
|
|
2478
|
-
label: "Star rating",
|
|
2479
|
-
value: "StarRating"
|
|
2480
|
-
}, {
|
|
2481
|
-
label: "Text input with sub questions",
|
|
2482
|
-
value: "TextInputWithSuggestions"
|
|
2483
2503
|
}, {
|
|
2484
2504
|
label: "Emotional",
|
|
2485
2505
|
value: "Emotional"
|
|
@@ -3881,7 +3901,7 @@ var TheSidebar = function TheSidebar(_ref) {
|
|
|
3881
3901
|
className: "" + styles["sidebar-logout"]
|
|
3882
3902
|
}), React__default.createElement("p", {
|
|
3883
3903
|
onClick: signOut
|
|
3884
|
-
}, "Log out")));
|
|
3904
|
+
}, "Log out 123")));
|
|
3885
3905
|
};
|
|
3886
3906
|
|
|
3887
3907
|
var setNotification = toolkit.createAction("notifications/setNotification");
|
|
@@ -7842,8 +7862,17 @@ var SuggestionCategorySelector = function SuggestionCategorySelector(props) {
|
|
|
7842
7862
|
};
|
|
7843
7863
|
|
|
7844
7864
|
var CATEGORY_URL$1 = BASE_URL + "/api/QuestionCategory";
|
|
7845
|
-
var get$7 = function get() {
|
|
7846
|
-
return api.get(CATEGORY_URL$1
|
|
7865
|
+
var get$7 = function get(parentCategoryId) {
|
|
7866
|
+
return api.get(CATEGORY_URL$1, {
|
|
7867
|
+
params: {
|
|
7868
|
+
parentCategoryId: parentCategoryId
|
|
7869
|
+
}
|
|
7870
|
+
});
|
|
7871
|
+
};
|
|
7872
|
+
var getByFilter = function getByFilter(filter) {
|
|
7873
|
+
return api.get(CATEGORY_URL$1, {
|
|
7874
|
+
params: filter
|
|
7875
|
+
});
|
|
7847
7876
|
};
|
|
7848
7877
|
|
|
7849
7878
|
var QuestionCategorySelector = function QuestionCategorySelector(props) {
|
|
@@ -7851,6 +7880,8 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
|
|
|
7851
7880
|
getCategoryList = _useState[0],
|
|
7852
7881
|
setCategoryList = _useState[1];
|
|
7853
7882
|
|
|
7883
|
+
var id = props.id,
|
|
7884
|
+
parentCategoryId = props.parentCategoryId;
|
|
7854
7885
|
React.useEffect(function () {
|
|
7855
7886
|
fetchCategory();
|
|
7856
7887
|
}, []);
|
|
@@ -7858,7 +7889,7 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
|
|
|
7858
7889
|
var fetchCategory = function fetchCategory() {
|
|
7859
7890
|
try {
|
|
7860
7891
|
var _temp2 = _catch(function () {
|
|
7861
|
-
return Promise.resolve(get$7()).then(function (res) {
|
|
7892
|
+
return Promise.resolve(get$7(parentCategoryId)).then(function (res) {
|
|
7862
7893
|
setCategoryList(res.data.items);
|
|
7863
7894
|
});
|
|
7864
7895
|
}, function (err) {
|
|
@@ -7871,7 +7902,6 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
|
|
|
7871
7902
|
}
|
|
7872
7903
|
};
|
|
7873
7904
|
|
|
7874
|
-
var id = props.id;
|
|
7875
7905
|
var arrCategory = getCategoryList.map(function (i) {
|
|
7876
7906
|
return {
|
|
7877
7907
|
id: i.id,
|
|
@@ -7888,6 +7918,131 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
|
|
|
7888
7918
|
}, props));
|
|
7889
7919
|
};
|
|
7890
7920
|
|
|
7921
|
+
var useCategorySelector = function useCategorySelector() {
|
|
7922
|
+
var _useState = React.useState([]),
|
|
7923
|
+
categories = _useState[0],
|
|
7924
|
+
setCategories = _useState[1];
|
|
7925
|
+
|
|
7926
|
+
var dispatch = reactRedux.useDispatch();
|
|
7927
|
+
var getData = React.useCallback(function () {
|
|
7928
|
+
try {
|
|
7929
|
+
var _temp3 = function _temp3() {
|
|
7930
|
+
dispatch(setLoading(false));
|
|
7931
|
+
};
|
|
7932
|
+
|
|
7933
|
+
dispatch(setLoading(true));
|
|
7934
|
+
|
|
7935
|
+
var _temp4 = _catch(function () {
|
|
7936
|
+
return Promise.resolve(getByFilter(_extends({}, DEFAULT_FILTER, {
|
|
7937
|
+
pageSize: -1
|
|
7938
|
+
}))).then(function (res) {
|
|
7939
|
+
var convertedCategories = convertOptions(res.data.items);
|
|
7940
|
+
setCategories(convertedCategories);
|
|
7941
|
+
});
|
|
7942
|
+
}, function (err) {
|
|
7943
|
+
var _err$response, _err$response$data;
|
|
7944
|
+
|
|
7945
|
+
dispatch(setAlert({
|
|
7946
|
+
type: "danger",
|
|
7947
|
+
message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message
|
|
7948
|
+
}));
|
|
7949
|
+
});
|
|
7950
|
+
|
|
7951
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
7952
|
+
} catch (e) {
|
|
7953
|
+
return Promise.reject(e);
|
|
7954
|
+
}
|
|
7955
|
+
}, []);
|
|
7956
|
+
|
|
7957
|
+
var convertOptions = function convertOptions(categories, parent, children) {
|
|
7958
|
+
var result = [];
|
|
7959
|
+
|
|
7960
|
+
if (!parent) {
|
|
7961
|
+
var noParentCategories = categories.filter(function (c) {
|
|
7962
|
+
return !c.parentCategoryId;
|
|
7963
|
+
});
|
|
7964
|
+
noParentCategories.forEach(function (c) {
|
|
7965
|
+
var childrenOfCategory = categories.filter(function (cg) {
|
|
7966
|
+
return cg.parentCategoryId === c.id;
|
|
7967
|
+
});
|
|
7968
|
+
|
|
7969
|
+
var category = _extends({}, c, {
|
|
7970
|
+
label: c.name,
|
|
7971
|
+
value: c.id,
|
|
7972
|
+
level: 0,
|
|
7973
|
+
isDisabled: childrenOfCategory.length > 0
|
|
7974
|
+
});
|
|
7975
|
+
|
|
7976
|
+
result = result.concat(convertOptions(categories, category, childrenOfCategory));
|
|
7977
|
+
});
|
|
7978
|
+
} else {
|
|
7979
|
+
result.push(parent);
|
|
7980
|
+
children === null || children === void 0 ? void 0 : children.forEach(function (c) {
|
|
7981
|
+
var childrenOfCategory = categories.filter(function (cg) {
|
|
7982
|
+
return cg.parentCategoryId === c.id;
|
|
7983
|
+
});
|
|
7984
|
+
|
|
7985
|
+
var category = _extends({}, c, {
|
|
7986
|
+
label: c.name,
|
|
7987
|
+
value: c.id,
|
|
7988
|
+
level: parent.level ? parent.level + 1 : 1,
|
|
7989
|
+
isDisabled: childrenOfCategory.length > 0
|
|
7990
|
+
});
|
|
7991
|
+
|
|
7992
|
+
result = result.concat(convertOptions(categories, category, childrenOfCategory));
|
|
7993
|
+
});
|
|
7994
|
+
}
|
|
7995
|
+
|
|
7996
|
+
return result;
|
|
7997
|
+
};
|
|
7998
|
+
|
|
7999
|
+
React.useEffect(function () {
|
|
8000
|
+
getData();
|
|
8001
|
+
}, []);
|
|
8002
|
+
return {
|
|
8003
|
+
categories: categories
|
|
8004
|
+
};
|
|
8005
|
+
};
|
|
8006
|
+
|
|
8007
|
+
var optionStyles = {
|
|
8008
|
+
control: function control(styles) {
|
|
8009
|
+
return _extends({}, styles, {
|
|
8010
|
+
backgroundColor: 'white'
|
|
8011
|
+
});
|
|
8012
|
+
},
|
|
8013
|
+
option: function option(styles, _ref) {
|
|
8014
|
+
var data = _ref.data;
|
|
8015
|
+
return _extends({}, styles, {
|
|
8016
|
+
fontWeight: !(data !== null && data !== void 0 && data.level) ? "bold" : "normal",
|
|
8017
|
+
paddingLeft: ((data === null || data === void 0 ? void 0 : data.level) || 0) + 1 + "rem",
|
|
8018
|
+
paddingRight: "1rem",
|
|
8019
|
+
cursor: data.isDisabled ? 'not-allowed' : 'pointer',
|
|
8020
|
+
color: "var(--color)",
|
|
8021
|
+
"&:first-letter": {
|
|
8022
|
+
textTransform: "uppercase"
|
|
8023
|
+
}
|
|
8024
|
+
});
|
|
8025
|
+
}
|
|
8026
|
+
};
|
|
8027
|
+
|
|
8028
|
+
var CategorySelector = function CategorySelector(_ref2) {
|
|
8029
|
+
var value = _ref2.value,
|
|
8030
|
+
rest = _objectWithoutPropertiesLoose(_ref2, ["value"]);
|
|
8031
|
+
|
|
8032
|
+
var _useCategorySelector = useCategorySelector(),
|
|
8033
|
+
categories = _useCategorySelector.categories;
|
|
8034
|
+
|
|
8035
|
+
var initialValue = !!value ? categories.find(function (option) {
|
|
8036
|
+
return option.value === value;
|
|
8037
|
+
}) || null : null;
|
|
8038
|
+
return React__default.createElement(Select, Object.assign({
|
|
8039
|
+
value: initialValue,
|
|
8040
|
+
options: categories,
|
|
8041
|
+
styles: optionStyles,
|
|
8042
|
+
placeholder: "Select category..."
|
|
8043
|
+
}, rest));
|
|
8044
|
+
};
|
|
8045
|
+
|
|
7891
8046
|
var StarRatingSelector = function StarRatingSelector(props) {
|
|
7892
8047
|
var id = props.id;
|
|
7893
8048
|
var initValue = !!id ? STAR_OPTIONS.find(function (option) {
|
|
@@ -10533,6 +10688,7 @@ exports.AcademicClassSelector = AcademicClassSelector;
|
|
|
10533
10688
|
exports.AddButton = AddButton;
|
|
10534
10689
|
exports.BASE_URL = BASE_URL;
|
|
10535
10690
|
exports.CHAT_CHANNEL = CHAT_CHANNEL;
|
|
10691
|
+
exports.CategorySelector = CategorySelector;
|
|
10536
10692
|
exports.CommonAlert = CommonAlert;
|
|
10537
10693
|
exports.CommonHeader = CommonHeader;
|
|
10538
10694
|
exports.CommonModal = CommonModal$1;
|