mario-education 2.4.473-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 +22 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +22 -14
- 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
|
@@ -67662,6 +67662,11 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
67662
67662
|
getAllTemplateSurvey();
|
|
67663
67663
|
document.title = "Create Survey";
|
|
67664
67664
|
}, []);
|
|
67665
|
+
|
|
67666
|
+
var handleGoToSurveyDashboard = function handleGoToSurveyDashboard() {
|
|
67667
|
+
history.push("/admin/survey-dashboard/overview");
|
|
67668
|
+
};
|
|
67669
|
+
|
|
67665
67670
|
return {
|
|
67666
67671
|
filters: filters,
|
|
67667
67672
|
students: students,
|
|
@@ -67752,7 +67757,8 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
67752
67757
|
formTextList: formTextList,
|
|
67753
67758
|
toTextList: toTextList,
|
|
67754
67759
|
handleChangeAdditionalRatingQuestion: handleChangeAdditionalRatingQuestion,
|
|
67755
|
-
questionAdditionalType: questionAdditionalType
|
|
67760
|
+
questionAdditionalType: questionAdditionalType,
|
|
67761
|
+
handleGoToSurveyDashboard: handleGoToSurveyDashboard
|
|
67756
67762
|
};
|
|
67757
67763
|
};
|
|
67758
67764
|
|
|
@@ -69130,7 +69136,9 @@ var ConfirmPublishSurvey = function ConfirmPublishSurvey(_ref) {
|
|
|
69130
69136
|
var ConfirmShareSurvey = function ConfirmShareSurvey(_ref) {
|
|
69131
69137
|
var open = _ref.open,
|
|
69132
69138
|
handleClose = _ref.handleClose,
|
|
69133
|
-
onOpenModelExternal = _ref.onOpenModelExternal
|
|
69139
|
+
onOpenModelExternal = _ref.onOpenModelExternal,
|
|
69140
|
+
numberStaff = _ref.numberStaff,
|
|
69141
|
+
numberStudent = _ref.numberStudent;
|
|
69134
69142
|
|
|
69135
69143
|
var _useTranslation = marioCore.useTranslation(),
|
|
69136
69144
|
t = _useTranslation.t;
|
|
@@ -69144,23 +69152,24 @@ var ConfirmShareSurvey = function ConfirmShareSurvey(_ref) {
|
|
|
69144
69152
|
return handleClose();
|
|
69145
69153
|
},
|
|
69146
69154
|
className: styles$6["model-confirm-publish"] + " " + styles$6[classFontSize]
|
|
69147
|
-
}, React__default.createElement(core$1.
|
|
69148
|
-
className: "" + styles$6["dialog-title"]
|
|
69149
|
-
}, 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, {
|
|
69150
69156
|
className: "" + styles$6["content-confirm-model"]
|
|
69151
|
-
}, 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, {
|
|
69152
69161
|
className: "" + styles$6["btn-cancel"],
|
|
69153
69162
|
onClick: function onClick() {
|
|
69154
69163
|
return handleClose();
|
|
69155
69164
|
}
|
|
69156
|
-
}, t("
|
|
69165
|
+
}, t("leave")), React__default.createElement(core$1.Button, {
|
|
69157
69166
|
color: "primary",
|
|
69158
69167
|
endIcon: React__default.createElement(SendIcon, null),
|
|
69159
69168
|
onClick: function onClick() {
|
|
69160
69169
|
return onOpenModelExternal === null || onOpenModelExternal === void 0 ? void 0 : onOpenModelExternal();
|
|
69161
69170
|
},
|
|
69162
69171
|
className: "" + styles$6["btn-send-survey"]
|
|
69163
|
-
}, t("
|
|
69172
|
+
}, t("go_to_the_survey_dashboard"))));
|
|
69164
69173
|
};
|
|
69165
69174
|
|
|
69166
69175
|
var TableSelectStaff = function TableSelectStaff(_ref) {
|
|
@@ -69375,7 +69384,8 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
|
|
|
69375
69384
|
formTextList = _useCreateSurvey.formTextList,
|
|
69376
69385
|
toTextList = _useCreateSurvey.toTextList,
|
|
69377
69386
|
handleChangeAdditionalRatingQuestion = _useCreateSurvey.handleChangeAdditionalRatingQuestion,
|
|
69378
|
-
questionAdditionalType = _useCreateSurvey.questionAdditionalType
|
|
69387
|
+
questionAdditionalType = _useCreateSurvey.questionAdditionalType,
|
|
69388
|
+
handleGoToSurveyDashboard = _useCreateSurvey.handleGoToSurveyDashboard;
|
|
69379
69389
|
|
|
69380
69390
|
var goback = function goback() {
|
|
69381
69391
|
if (dataFormCreateSurvey.activeStep > 0) {
|
|
@@ -69512,7 +69522,9 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
|
|
|
69512
69522
|
}), React__default.createElement(ConfirmShareSurvey, {
|
|
69513
69523
|
open: openModelConfirmShare,
|
|
69514
69524
|
handleClose: handleToggleModelConfirmShare,
|
|
69515
|
-
onOpenModelExternal:
|
|
69525
|
+
onOpenModelExternal: handleGoToSurveyDashboard,
|
|
69526
|
+
numberStaff: dataFormCreateSurvey.staffIds.length || 0,
|
|
69527
|
+
numberStudent: dataFormCreateSurvey.studentIds.length || 0
|
|
69516
69528
|
}), React__default.createElement(ModelSendSurvey, {
|
|
69517
69529
|
handleClose: handleToggleModelShare,
|
|
69518
69530
|
open: openModelShare,
|
|
@@ -74532,8 +74544,6 @@ var useStyles$k = styles$d.makeStyles(function (theme) {
|
|
|
74532
74544
|
width: drawerWidth11
|
|
74533
74545
|
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
74534
74546
|
width: drawerWidth12
|
|
74535
|
-
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
74536
|
-
width: drawerWidth15
|
|
74537
74547
|
}, _drawer.flexShrink = 0, _drawer[theme.breakpoints.down(600)] = {
|
|
74538
74548
|
position: "fixed",
|
|
74539
74549
|
zIndex: 999
|
|
@@ -74615,8 +74625,6 @@ var useStyles$k = styles$d.makeStyles(function (theme) {
|
|
|
74615
74625
|
width: drawerWidth11
|
|
74616
74626
|
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
74617
74627
|
width: drawerWidth12
|
|
74618
|
-
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
74619
|
-
width: drawerWidth15
|
|
74620
74628
|
}, _drawerPaper.paddingTop = function paddingTop(props) {
|
|
74621
74629
|
return HEADER_DESKTOP_HEIGHT + (props.isOpen ? NOTIFICATION_HEIGHT : 0);
|
|
74622
74630
|
}, _drawerPaper.zIndex = 900, _drawerPaper[theme.breakpoints.down(600)] = {
|