touchstudy-core 0.1.171 → 0.1.173
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/Print/hooks/useDeviceType.d.ts +4 -0
- package/dist/containers/Classes/configs/types.d.ts +2 -2
- package/dist/index.js +47 -41
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +47 -41
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/HeaderLink.d.ts +8 -0
- package/dist/layouts/TimerDropdown.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -12998,8 +12998,8 @@ var DayOfWeek;
|
|
12998
12998
|
})(DayOfWeek || (DayOfWeek = {}));
|
12999
12999
|
var TeacherSortBy;
|
13000
13000
|
(function (TeacherSortBy) {
|
13001
|
-
TeacherSortBy["Name"] = "UserProfile.FullName";
|
13002
|
-
TeacherSortBy["Email"] = "UserProfile.Email";
|
13001
|
+
TeacherSortBy["Name"] = "User.UserProfile.FullName";
|
13002
|
+
TeacherSortBy["Email"] = "User.UserProfile.Email";
|
13003
13003
|
})(TeacherSortBy || (TeacherSortBy = {}));
|
13004
13004
|
var ClassStatus;
|
13005
13005
|
(function (ClassStatus) {
|
@@ -13277,23 +13277,29 @@ var DEFAULT_USER_FILTERS = {
|
|
13277
13277
|
|
13278
13278
|
var styles$3 = {"avatar":"_2rJkZ","date-picker":"_1iqE2","time-picker":"_20xtc","teacher-selector-wrapper":"_3L1Oj"};
|
13279
13279
|
|
13280
|
-
var _excluded$7 = ["teachers", "value"];
|
13281
13280
|
var TeacherSelector = function TeacherSelector(_ref) {
|
13282
13281
|
var teachers = _ref.teachers,
|
13283
|
-
value = _ref.value
|
13284
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
13282
|
+
value = _ref.value;
|
13285
13283
|
var teacherOptions = teachers.map(function (i) {
|
13286
13284
|
return {
|
13287
13285
|
label: i.teacherName + "/" + i.teacherEmail,
|
13288
13286
|
value: i.id
|
13289
13287
|
};
|
13290
13288
|
});
|
13291
|
-
return React__default.createElement(CustomAsyncSelect,
|
13289
|
+
return React__default.createElement(CustomAsyncSelect, {
|
13292
13290
|
options: teacherOptions,
|
13293
|
-
value: value
|
13294
|
-
|
13291
|
+
value: value,
|
13292
|
+
menuPlacement: "bottom",
|
13293
|
+
styles: {
|
13294
|
+
menuPortal: function menuPortal(base) {
|
13295
|
+
return _extends({}, base, {
|
13296
|
+
zIndex: 9999
|
13297
|
+
});
|
13298
|
+
}
|
13299
|
+
},
|
13300
|
+
menuPortalTarget: document.body,
|
13295
13301
|
isClearable: true
|
13296
|
-
})
|
13302
|
+
});
|
13297
13303
|
};
|
13298
13304
|
|
13299
13305
|
var ErrorHandler = function ErrorHandler(_ref) {
|
@@ -20261,12 +20267,12 @@ function CreateNewQuestionDialog(_ref) {
|
|
20261
20267
|
});
|
20262
20268
|
}
|
20263
20269
|
|
20264
|
-
var _excluded$
|
20270
|
+
var _excluded$7 = ["children", "value", "index"];
|
20265
20271
|
var CustomTabPanel = function CustomTabPanel(props) {
|
20266
20272
|
var children = props.children,
|
20267
20273
|
value = props.value,
|
20268
20274
|
index = props.index,
|
20269
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
20275
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
20270
20276
|
return React__default.createElement("div", Object.assign({
|
20271
20277
|
role: "tabpanel",
|
20272
20278
|
hidden: value !== index,
|
@@ -24323,7 +24329,7 @@ var ChapterProblemSolvingResultsDialog = function ChapterProblemSolvingResultsDi
|
|
24323
24329
|
}, t("cancel"))))));
|
24324
24330
|
};
|
24325
24331
|
|
24326
|
-
var _excluded$
|
24332
|
+
var _excluded$8 = ["onChange"];
|
24327
24333
|
var StartPageDialog = function StartPageDialog(_ref) {
|
24328
24334
|
var t = _ref.t,
|
24329
24335
|
onClose = _ref.onClose,
|
@@ -24389,7 +24395,7 @@ var StartPageDialog = function StartPageDialog(_ref) {
|
|
24389
24395
|
}, t("page_to_start_with")), React__default.createElement(Field, {
|
24390
24396
|
name: "startPage",
|
24391
24397
|
render: function render(_ref3) {
|
24392
|
-
var field = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
24398
|
+
var field = _objectWithoutPropertiesLoose(_ref3, _excluded$8);
|
24393
24399
|
return React__default.createElement(CustomSelectOption, Object.assign({
|
24394
24400
|
maxMenuHeight: 150,
|
24395
24401
|
menuPosition: "fixed",
|
@@ -26021,10 +26027,10 @@ var DrawerTextbookResultTab = function DrawerTextbookResultTab(_ref) {
|
|
26021
26027
|
};
|
26022
26028
|
|
26023
26029
|
var _styled$1;
|
26024
|
-
var _excluded$
|
26030
|
+
var _excluded$9 = ["className"];
|
26025
26031
|
var CustomTooltip$1 = styled(function (_ref) {
|
26026
26032
|
var className = _ref.className,
|
26027
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
26033
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
26028
26034
|
return React__default.createElement(Tooltip, Object.assign({}, props, {
|
26029
26035
|
classes: {
|
26030
26036
|
popper: className
|
@@ -27505,7 +27511,7 @@ var useTeacherList = function useTeacherList() {
|
|
27505
27511
|
};
|
27506
27512
|
};
|
27507
27513
|
|
27508
|
-
var _excluded$
|
27514
|
+
var _excluded$a = ["getStudents"],
|
27509
27515
|
_excluded2 = ["getTeachers"],
|
27510
27516
|
_excluded3 = ["getLessons"];
|
27511
27517
|
var PAGE_TITLE$4 = "classes";
|
@@ -27556,7 +27562,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
27556
27562
|
};
|
27557
27563
|
var _useStudentClassList = useStudentClassList(classId),
|
27558
27564
|
getStudents = _useStudentClassList.getStudents,
|
27559
|
-
studentListProps = _objectWithoutPropertiesLoose(_useStudentClassList, _excluded$
|
27565
|
+
studentListProps = _objectWithoutPropertiesLoose(_useStudentClassList, _excluded$a);
|
27560
27566
|
var _useTeacherClassList = useTeacherClassList(classId),
|
27561
27567
|
getTeachers = _useTeacherClassList.getTeachers,
|
27562
27568
|
teacherListProps = _objectWithoutPropertiesLoose(_useTeacherClassList, _excluded2);
|
@@ -28944,14 +28950,14 @@ var CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
28944
28950
|
|
28945
28951
|
var styles$8 = {"action-btn":"_1jXbz","action-btn--pencil":"_at4xP","icon-rotate-180":"_12gv9","drop-area":"_R4bn5"};
|
28946
28952
|
|
28947
|
-
var _excluded$
|
28953
|
+
var _excluded$b = ["text", "isRequired", "className"];
|
28948
28954
|
var LabelRequired = function LabelRequired(_ref) {
|
28949
28955
|
var text = _ref.text,
|
28950
28956
|
_ref$isRequired = _ref.isRequired,
|
28951
28957
|
isRequired = _ref$isRequired === void 0 ? true : _ref$isRequired,
|
28952
28958
|
_ref$className = _ref.className,
|
28953
28959
|
className = _ref$className === void 0 ? "" : _ref$className,
|
28954
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
28960
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
28955
28961
|
return React__default.createElement(FormLabel, Object.assign({
|
28956
28962
|
className: "fw-medium mb-1 " + className
|
28957
28963
|
}, rest), text, isRequired && React__default.createElement("span", {
|
@@ -29005,7 +29011,7 @@ var deleteUserApi = function deleteUserApi(id) {
|
|
29005
29011
|
return api["delete"](USER_URL$1 + "/delete/" + id);
|
29006
29012
|
};
|
29007
29013
|
|
29008
|
-
var _excluded$
|
29014
|
+
var _excluded$c = ["ref"],
|
29009
29015
|
_excluded2$1 = ["ref"],
|
29010
29016
|
_excluded3$1 = ["ref"],
|
29011
29017
|
_excluded4 = ["ref"],
|
@@ -29035,7 +29041,7 @@ var UserDialog = function UserDialog(_ref) {
|
|
29035
29041
|
t = _useTranslation.t;
|
29036
29042
|
var _register = register("fullName"),
|
29037
29043
|
fullNameRef = _register.ref,
|
29038
|
-
fullNameBio = _objectWithoutPropertiesLoose(_register, _excluded$
|
29044
|
+
fullNameBio = _objectWithoutPropertiesLoose(_register, _excluded$c);
|
29039
29045
|
var _register2 = register("email"),
|
29040
29046
|
emailRef = _register2.ref,
|
29041
29047
|
emailBio = _objectWithoutPropertiesLoose(_register2, _excluded2$1);
|
@@ -33106,12 +33112,12 @@ var ArticleDialog = function ArticleDialog(_ref) {
|
|
33106
33112
|
|
33107
33113
|
var styles$a = {"drawer":"_11aYm","open":"_3Ydwm","drawer-overlay":"_3SQDf","drawer-header":"_2BwOx","drawer-form":"_2Zo7R","dropdown-content-academy":"_1lzjD","dropdown-change":"_1y7K9","dropdown-academy-item":"_1Y-55","dropdown-content-language":"_1fBXY","dropdown-item-language":"_3Szun","dropdown-item-language-active":"_2HhLb","item-address":"_3WYHC","item-logout":"_2-9ix","title-address":"_1r4pn","image-academy":"_2ZozT"};
|
33108
33114
|
|
33109
|
-
var _excluded$
|
33115
|
+
var _excluded$d = ["isOpen", "onClose", "handleSaveExam"];
|
33110
33116
|
var CreateExamDrawer = function CreateExamDrawer(props) {
|
33111
33117
|
var isOpen = props.isOpen,
|
33112
33118
|
onClose = props.onClose,
|
33113
33119
|
handleSaveExam = props.handleSaveExam,
|
33114
|
-
examDetailViewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
33120
|
+
examDetailViewProps = _objectWithoutPropertiesLoose(props, _excluded$d);
|
33115
33121
|
var _useTranslation = useTranslation(),
|
33116
33122
|
t = _useTranslation.t;
|
33117
33123
|
var theme = useTheme();
|
@@ -34264,12 +34270,12 @@ var useNotificationDetail = function useNotificationDetail(_ref) {
|
|
34264
34270
|
|
34265
34271
|
var styles$b = {"avatar":"_8niRT"};
|
34266
34272
|
|
34267
|
-
var _excluded$
|
34273
|
+
var _excluded$e = ["value", "disabled", "optionTypeNotification"];
|
34268
34274
|
var TypeSelector = function TypeSelector(_ref) {
|
34269
34275
|
var value = _ref.value,
|
34270
34276
|
disabled = _ref.disabled,
|
34271
34277
|
optionTypeNotification = _ref.optionTypeNotification,
|
34272
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
34278
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
34273
34279
|
return React__default.createElement(CustomAsyncSelect, Object.assign({
|
34274
34280
|
options: optionTypeNotification,
|
34275
34281
|
value: value
|
@@ -34662,11 +34668,11 @@ var useNotificationList = function useNotificationList(_ref) {
|
|
34662
34668
|
};
|
34663
34669
|
};
|
34664
34670
|
|
34665
|
-
var _excluded$
|
34671
|
+
var _excluded$f = ["value", "optionTypeNotification"];
|
34666
34672
|
var SelectFilterType = function SelectFilterType(_ref) {
|
34667
34673
|
var value = _ref.value,
|
34668
34674
|
optionTypeNotification = _ref.optionTypeNotification,
|
34669
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
34675
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
34670
34676
|
return React__default.createElement(CustomAsyncSelect, Object.assign({
|
34671
34677
|
options: optionTypeNotification,
|
34672
34678
|
value: value
|
@@ -35922,7 +35928,7 @@ var isEqual$1 = function isEqual(prev, next) {
|
|
35922
35928
|
};
|
35923
35929
|
var QuestionShortInput$1 = memo(QuestionShortInput, isEqual$1);
|
35924
35930
|
|
35925
|
-
var _excluded$
|
35931
|
+
var _excluded$g = ["onChange"];
|
35926
35932
|
var _$2 = _$8;
|
35927
35933
|
var BpIcon$1 = styled("span")(function (_ref) {
|
35928
35934
|
var theme = _ref.theme;
|
@@ -36233,7 +36239,7 @@ var QuestionBlock = function QuestionBlock(_ref2) {
|
|
36233
36239
|
name: path + ".questionTypeId",
|
36234
36240
|
render: function render(_ref5) {
|
36235
36241
|
var _ref5$field = _ref5.field,
|
36236
|
-
field = _objectWithoutPropertiesLoose(_ref5$field, _excluded$
|
36242
|
+
field = _objectWithoutPropertiesLoose(_ref5$field, _excluded$g);
|
36237
36243
|
return React__default.createElement(CustomSelectOption, Object.assign({}, field, {
|
36238
36244
|
isDisabled: disabled,
|
36239
36245
|
value: data.questionType,
|
@@ -36282,7 +36288,7 @@ var isEqual$2 = function isEqual(prev, next) {
|
|
36282
36288
|
};
|
36283
36289
|
var QuestionBlock$1 = memo(QuestionBlock, isEqual$2);
|
36284
36290
|
|
36285
|
-
var _excluded$
|
36291
|
+
var _excluded$h = ["data", "path", "isMath", "open", "isLoadingCategories", "isLoadingQuestionTypes", "optionKey", "categories", "questionTypes", "disabled", "onQuestioStartOrderChange", "onDelete", "onOpenSubCategoryMenu", "onOpenCategoryMenu", "onCloseCategoryMenu", "onCloseQuestionTypeMenu", "onOpenQuestionTypeMenu"];
|
36286
36292
|
var _$3 = _$8;
|
36287
36293
|
var QuestionGroupBlockBody = function QuestionGroupBlockBody(_ref) {
|
36288
36294
|
var _data$articles$3, _data$articles$3$cate, _data$articles$4, _data$articles$4$cate, _questions$2;
|
@@ -36303,7 +36309,7 @@ var QuestionGroupBlockBody = function QuestionGroupBlockBody(_ref) {
|
|
36303
36309
|
onCloseCategoryMenu = _ref.onCloseCategoryMenu,
|
36304
36310
|
onCloseQuestionTypeMenu = _ref.onCloseQuestionTypeMenu,
|
36305
36311
|
onOpenQuestionTypeMenu = _ref.onOpenQuestionTypeMenu,
|
36306
|
-
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
36312
|
+
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
36307
36313
|
var errors = formikProps.errors;
|
36308
36314
|
var startOrderRef = useRef(null);
|
36309
36315
|
var articles = data.articles,
|
@@ -36446,7 +36452,7 @@ var isEqual$3 = function isEqual(prev, next) {
|
|
36446
36452
|
};
|
36447
36453
|
var QuestionGroupBlockBody$1 = memo(QuestionGroupBlockBody, isEqual$3);
|
36448
36454
|
|
36449
|
-
var _excluded$
|
36455
|
+
var _excluded$i = ["expandedIndex", "open", "paths", "path", "isMath", "data", "categories", "isLoadingCategories", "isLoadingQuestionTypes", "questionTypes", "optionKey", "disabled", "onToggle", "onQuestionCountChange", "onDelete", "onOpenSubCategoryMenu", "onOpenCategoryMenu", "onCloseCategoryMenu", "onCopiedPrevQuestionGroup", "onCloseQuestionTypeMenu", "onOpenQuestionTypeMenu"];
|
36450
36456
|
var _$4 = _$8;
|
36451
36457
|
var QuestionGroupBlock = function QuestionGroupBlock(_ref) {
|
36452
36458
|
var _data$articles$3, _data$articles$3$cate, _data$articles$3$cate2, _data$articles$4, _data$articles$4$cate, _data$articles$4$cate2;
|
@@ -36471,7 +36477,7 @@ var QuestionGroupBlock = function QuestionGroupBlock(_ref) {
|
|
36471
36477
|
onCopiedPrevQuestionGroup = _ref.onCopiedPrevQuestionGroup,
|
36472
36478
|
onCloseQuestionTypeMenu = _ref.onCloseQuestionTypeMenu,
|
36473
36479
|
onOpenQuestionTypeMenu = _ref.onOpenQuestionTypeMenu,
|
36474
|
-
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
36480
|
+
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
36475
36481
|
var errors = formikProps.errors,
|
36476
36482
|
setFieldValue = formikProps.setFieldValue;
|
36477
36483
|
var _useTranslation = useTranslation(),
|
@@ -36934,7 +36940,7 @@ var QuestionGroupBlock = function QuestionGroupBlock(_ref) {
|
|
36934
36940
|
}, formikProps)))));
|
36935
36941
|
};
|
36936
36942
|
|
36937
|
-
var _excluded$
|
36943
|
+
var _excluded$j = ["path", "paths", "isMath", "isLoadingCategories", "isLoadingQuestionTypes", "optionKey", "questionGroups", "subChapters", "categories", "questionTypes", "disabled", "onDelete", "onOpenSubCategoryMenu", "onOpenCategoryMenu", "onCloseCategoryMenu", "onCopiedPrevQuestionGroup", "onCloseQuestionTypeMenu", "onOpenQuestionTypeMenu"];
|
36938
36944
|
var ChapterBlockBody = function ChapterBlockBody(_ref) {
|
36939
36945
|
var path = _ref.path,
|
36940
36946
|
paths = _ref.paths,
|
@@ -36954,7 +36960,7 @@ var ChapterBlockBody = function ChapterBlockBody(_ref) {
|
|
36954
36960
|
onCopiedPrevQuestionGroup = _ref.onCopiedPrevQuestionGroup,
|
36955
36961
|
onCloseQuestionTypeMenu = _ref.onCloseQuestionTypeMenu,
|
36956
36962
|
onOpenQuestionTypeMenu = _ref.onOpenQuestionTypeMenu,
|
36957
|
-
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
36963
|
+
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
36958
36964
|
var _useTranslation = useTranslation(),
|
36959
36965
|
t = _useTranslation.t;
|
36960
36966
|
var setFieldValue = formikProps.setFieldValue;
|
@@ -37133,7 +37139,7 @@ var ChapterBlockBody = function ChapterBlockBody(_ref) {
|
|
37133
37139
|
}));
|
37134
37140
|
};
|
37135
37141
|
|
37136
|
-
var _excluded$
|
37142
|
+
var _excluded$k = ["data", "expandedIndex", "open", "path", "paths", "isMath", "isLoadingCategories", "isLoadingQuestionTypes", "categories", "questionTypes", "optionKey", "disabled", "onToggle", "onDelete", "onCopiedPrevQuestionGroup", "onCloseCategoryMenu", "onOpenCategoryMenu", "onOpenSubCategoryMenu", "onOpenQuestionTypeMenu", "onCloseQuestionTypeMenu"];
|
37137
37143
|
var _$5 = _$8;
|
37138
37144
|
var ChapterBlock = function ChapterBlock(_ref) {
|
37139
37145
|
var data = _ref.data,
|
@@ -37156,7 +37162,7 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
37156
37162
|
onOpenSubCategoryMenu = _ref.onOpenSubCategoryMenu,
|
37157
37163
|
onOpenQuestionTypeMenu = _ref.onOpenQuestionTypeMenu,
|
37158
37164
|
onCloseQuestionTypeMenu = _ref.onCloseQuestionTypeMenu,
|
37159
|
-
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
37165
|
+
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
37160
37166
|
var errors = formikProps.errors;
|
37161
37167
|
var _useTranslation = useTranslation(),
|
37162
37168
|
t = _useTranslation.t;
|
@@ -37847,7 +37853,7 @@ var TextbookContentsTab = function TextbookContentsTab(props) {
|
|
37847
37853
|
}));
|
37848
37854
|
};
|
37849
37855
|
|
37850
|
-
var _excluded$
|
37856
|
+
var _excluded$l = ["value"];
|
37851
37857
|
var VisuallyHiddenInput = styled("input")({
|
37852
37858
|
clip: "rect(0 0 0 0)",
|
37853
37859
|
clipPath: "inset(50%)",
|
@@ -38015,7 +38021,7 @@ var TextbookInfoTab = function TextbookInfoTab(_ref) {
|
|
38015
38021
|
render: function render(_ref4) {
|
38016
38022
|
var _ref4$field = _ref4.field,
|
38017
38023
|
value = _ref4$field.value,
|
38018
|
-
action = _objectWithoutPropertiesLoose(_ref4$field, _excluded$
|
38024
|
+
action = _objectWithoutPropertiesLoose(_ref4$field, _excluded$l);
|
38019
38025
|
return React__default.createElement(LocalizationProvider$1, {
|
38020
38026
|
dateAdapter: AdapterMoment
|
38021
38027
|
}, React__default.createElement(DatePicker$1, Object.assign({}, action, {
|
@@ -38489,7 +38495,7 @@ var TextbookOwnersTab = function TextbookOwnersTab(_ref) {
|
|
38489
38495
|
}));
|
38490
38496
|
};
|
38491
38497
|
|
38492
|
-
var _excluded$
|
38498
|
+
var _excluded$m = ["isCreatedByAdmin", "isSuperAdminUser", "isSuperAdmin", "isAdmin", "textbookId", "selected", "coverImage", "disabled", "ownersDisabled", "onChangeTab", "onUploadImage"];
|
38493
38499
|
var PreparedTextbookForm = function PreparedTextbookForm(_ref) {
|
38494
38500
|
var isCreatedByAdmin = _ref.isCreatedByAdmin,
|
38495
38501
|
isSuperAdminUser = _ref.isSuperAdminUser,
|
@@ -38502,7 +38508,7 @@ var PreparedTextbookForm = function PreparedTextbookForm(_ref) {
|
|
38502
38508
|
ownersDisabled = _ref.ownersDisabled,
|
38503
38509
|
onChangeTab = _ref.onChangeTab,
|
38504
38510
|
onUploadImage = _ref.onUploadImage,
|
38505
|
-
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
38511
|
+
formikProps = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
38506
38512
|
var values = formikProps.values,
|
38507
38513
|
errors = formikProps.errors,
|
38508
38514
|
dirty = formikProps.dirty,
|