mario-education 2.4.472-release → 2.4.474-release
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/containers/SurveyDashboard/components/StepComponents/ConfirmShareSurvey.d.ts +1 -1
- package/dist/containers/SurveyDashboard/configs/types.d.ts +2 -0
- package/dist/containers/SurveyDashboard/hooks/useCreateSurvey.d.ts +1 -0
- package/dist/index.css +1 -0
- package/dist/index.js +25 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +25 -19
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MODEL_CONFIRM_SURVEY } from "../../configs/types";
|
|
2
|
-
declare const ConfirmShareSurvey: ({ open, handleClose, onOpenModelExternal }: MODEL_CONFIRM_SURVEY) => JSX.Element;
|
|
2
|
+
declare const ConfirmShareSurvey: ({ open, handleClose, onOpenModelExternal, numberStaff, numberStudent }: MODEL_CONFIRM_SURVEY) => JSX.Element;
|
|
3
3
|
export default ConfirmShareSurvey;
|
|
@@ -735,6 +735,8 @@ export interface MODEL_CONFIRM_SURVEY {
|
|
|
735
735
|
setStudentShareId?: Function;
|
|
736
736
|
importEmailCsv?: Function;
|
|
737
737
|
downloadTemplate?: Function;
|
|
738
|
+
numberStudent?: number;
|
|
739
|
+
numberStaff?: number;
|
|
738
740
|
}
|
|
739
741
|
export interface FAVORITE_PROPS {
|
|
740
742
|
favoriteItem?: SURVEY_RESPONSE;
|
|
@@ -96,5 +96,6 @@ declare const useListSurveyDetail: () => {
|
|
|
96
96
|
toTextList: string[];
|
|
97
97
|
handleChangeAdditionalRatingQuestion: (key: string, value: string) => void;
|
|
98
98
|
questionAdditionalType: any;
|
|
99
|
+
handleGoToSurveyDashboard: () => void;
|
|
99
100
|
};
|
|
100
101
|
export default useListSurveyDetail;
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -16341,7 +16341,7 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
16341
16341
|
lang: lang
|
|
16342
16342
|
};
|
|
16343
16343
|
return Promise.resolve(getById$2(id, objLang)).then(function (res) {
|
|
16344
|
-
var _res$data$category, _res$data, _res$data2, _res$data3;
|
|
16344
|
+
var _res$data$category, _res$data, _res$data2, _res$data3, _res$data4;
|
|
16345
16345
|
|
|
16346
16346
|
var objNew = _extends({}, res.data, {
|
|
16347
16347
|
categoryId: (_res$data$category = res.data.category) === null || _res$data$category === void 0 ? void 0 : _res$data$category.id,
|
|
@@ -16349,12 +16349,10 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
16349
16349
|
});
|
|
16350
16350
|
|
|
16351
16351
|
setQuestionDetail(objNew);
|
|
16352
|
-
|
|
16353
|
-
objNew: objNew
|
|
16354
|
-
});
|
|
16352
|
+
setActiveType((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.type);
|
|
16355
16353
|
editorRef && editorRef.editor.execCommand("mceSetContent", false, objNew.text);
|
|
16356
16354
|
|
|
16357
|
-
if ((_res$
|
|
16355
|
+
if ((_res$data4 = res.data) !== null && _res$data4 !== void 0 && _res$data4.type) {
|
|
16358
16356
|
handleGetLabelQuestions(res.data.type);
|
|
16359
16357
|
}
|
|
16360
16358
|
});
|
|
@@ -67664,6 +67662,11 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
67664
67662
|
getAllTemplateSurvey();
|
|
67665
67663
|
document.title = "Create Survey";
|
|
67666
67664
|
}, []);
|
|
67665
|
+
|
|
67666
|
+
var handleGoToSurveyDashboard = function handleGoToSurveyDashboard() {
|
|
67667
|
+
history.push("/admin/survey-dashboard/overview");
|
|
67668
|
+
};
|
|
67669
|
+
|
|
67667
67670
|
return {
|
|
67668
67671
|
filters: filters,
|
|
67669
67672
|
students: students,
|
|
@@ -67754,7 +67757,8 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
67754
67757
|
formTextList: formTextList,
|
|
67755
67758
|
toTextList: toTextList,
|
|
67756
67759
|
handleChangeAdditionalRatingQuestion: handleChangeAdditionalRatingQuestion,
|
|
67757
|
-
questionAdditionalType: questionAdditionalType
|
|
67760
|
+
questionAdditionalType: questionAdditionalType,
|
|
67761
|
+
handleGoToSurveyDashboard: handleGoToSurveyDashboard
|
|
67758
67762
|
};
|
|
67759
67763
|
};
|
|
67760
67764
|
|
|
@@ -69132,7 +69136,9 @@ var ConfirmPublishSurvey = function ConfirmPublishSurvey(_ref) {
|
|
|
69132
69136
|
var ConfirmShareSurvey = function ConfirmShareSurvey(_ref) {
|
|
69133
69137
|
var open = _ref.open,
|
|
69134
69138
|
handleClose = _ref.handleClose,
|
|
69135
|
-
onOpenModelExternal = _ref.onOpenModelExternal
|
|
69139
|
+
onOpenModelExternal = _ref.onOpenModelExternal,
|
|
69140
|
+
numberStaff = _ref.numberStaff,
|
|
69141
|
+
numberStudent = _ref.numberStudent;
|
|
69136
69142
|
|
|
69137
69143
|
var _useTranslation = marioCore.useTranslation(),
|
|
69138
69144
|
t = _useTranslation.t;
|
|
@@ -69146,23 +69152,24 @@ var ConfirmShareSurvey = function ConfirmShareSurvey(_ref) {
|
|
|
69146
69152
|
return handleClose();
|
|
69147
69153
|
},
|
|
69148
69154
|
className: styles$6["model-confirm-publish"] + " " + styles$6[classFontSize]
|
|
69149
|
-
}, React__default.createElement(core$1.
|
|
69150
|
-
className: "" + styles$6["dialog-title"]
|
|
69151
|
-
}, t("do_you_want_to_share_a_survey_to_teachers"))), React__default.createElement(core$1.DialogContent, null, React__default.createElement(core$1.Typography, {
|
|
69155
|
+
}, React__default.createElement(core$1.DialogContent, null, React__default.createElement(core$1.Typography, {
|
|
69152
69156
|
className: "" + styles$6["content-confirm-model"]
|
|
69153
|
-
}, t("
|
|
69157
|
+
}, t("your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of_the_results_on_our_survey_dashboard", {
|
|
69158
|
+
numberStudent: numberStudent,
|
|
69159
|
+
numberStaff: numberStaff
|
|
69160
|
+
}))), React__default.createElement(core$1.DialogActions, null, React__default.createElement(core$1.Button, {
|
|
69154
69161
|
className: "" + styles$6["btn-cancel"],
|
|
69155
69162
|
onClick: function onClick() {
|
|
69156
69163
|
return handleClose();
|
|
69157
69164
|
}
|
|
69158
|
-
}, t("
|
|
69165
|
+
}, t("leave")), React__default.createElement(core$1.Button, {
|
|
69159
69166
|
color: "primary",
|
|
69160
69167
|
endIcon: React__default.createElement(SendIcon, null),
|
|
69161
69168
|
onClick: function onClick() {
|
|
69162
69169
|
return onOpenModelExternal === null || onOpenModelExternal === void 0 ? void 0 : onOpenModelExternal();
|
|
69163
69170
|
},
|
|
69164
69171
|
className: "" + styles$6["btn-send-survey"]
|
|
69165
|
-
}, t("
|
|
69172
|
+
}, t("go_to_the_survey_dashboard"))));
|
|
69166
69173
|
};
|
|
69167
69174
|
|
|
69168
69175
|
var TableSelectStaff = function TableSelectStaff(_ref) {
|
|
@@ -69377,7 +69384,8 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
|
|
|
69377
69384
|
formTextList = _useCreateSurvey.formTextList,
|
|
69378
69385
|
toTextList = _useCreateSurvey.toTextList,
|
|
69379
69386
|
handleChangeAdditionalRatingQuestion = _useCreateSurvey.handleChangeAdditionalRatingQuestion,
|
|
69380
|
-
questionAdditionalType = _useCreateSurvey.questionAdditionalType
|
|
69387
|
+
questionAdditionalType = _useCreateSurvey.questionAdditionalType,
|
|
69388
|
+
handleGoToSurveyDashboard = _useCreateSurvey.handleGoToSurveyDashboard;
|
|
69381
69389
|
|
|
69382
69390
|
var goback = function goback() {
|
|
69383
69391
|
if (dataFormCreateSurvey.activeStep > 0) {
|
|
@@ -69514,7 +69522,9 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
|
|
|
69514
69522
|
}), React__default.createElement(ConfirmShareSurvey, {
|
|
69515
69523
|
open: openModelConfirmShare,
|
|
69516
69524
|
handleClose: handleToggleModelConfirmShare,
|
|
69517
|
-
onOpenModelExternal:
|
|
69525
|
+
onOpenModelExternal: handleGoToSurveyDashboard,
|
|
69526
|
+
numberStaff: dataFormCreateSurvey.staffIds.length || 0,
|
|
69527
|
+
numberStudent: dataFormCreateSurvey.studentIds.length || 0
|
|
69518
69528
|
}), React__default.createElement(ModelSendSurvey, {
|
|
69519
69529
|
handleClose: handleToggleModelShare,
|
|
69520
69530
|
open: openModelShare,
|
|
@@ -74534,8 +74544,6 @@ var useStyles$k = styles$d.makeStyles(function (theme) {
|
|
|
74534
74544
|
width: drawerWidth11
|
|
74535
74545
|
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
74536
74546
|
width: drawerWidth12
|
|
74537
|
-
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
74538
|
-
width: drawerWidth15
|
|
74539
74547
|
}, _drawer.flexShrink = 0, _drawer[theme.breakpoints.down(600)] = {
|
|
74540
74548
|
position: "fixed",
|
|
74541
74549
|
zIndex: 999
|
|
@@ -74617,8 +74625,6 @@ var useStyles$k = styles$d.makeStyles(function (theme) {
|
|
|
74617
74625
|
width: drawerWidth11
|
|
74618
74626
|
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
74619
74627
|
width: drawerWidth12
|
|
74620
|
-
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
74621
|
-
width: drawerWidth15
|
|
74622
74628
|
}, _drawerPaper.paddingTop = function paddingTop(props) {
|
|
74623
74629
|
return HEADER_DESKTOP_HEIGHT + (props.isOpen ? NOTIFICATION_HEIGHT : 0);
|
|
74624
74630
|
}, _drawerPaper.zIndex = 900, _drawerPaper[theme.breakpoints.down(600)] = {
|