mario-education 2.4.473-release → 2.4.475-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 +27 -25
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -25
- 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
|
@@ -16686,13 +16686,6 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
16686
16686
|
};
|
|
16687
16687
|
|
|
16688
16688
|
React.useEffect(function () {
|
|
16689
|
-
console.log({
|
|
16690
|
-
values: values
|
|
16691
|
-
});
|
|
16692
|
-
console.log({
|
|
16693
|
-
activeModelLanguage: activeModelLanguage
|
|
16694
|
-
});
|
|
16695
|
-
|
|
16696
16689
|
if (!id && !!activeModelLanguage && activeModelLanguage.lang == values.lang && JSON.stringify(activeModelLanguage) !== JSON.stringify(values)) {
|
|
16697
16690
|
var categoryId = values.categoryId != 0 ? values.categoryId : questionDetail.categoryId;
|
|
16698
16691
|
var updatedModelQuestionLang = modelQuestionLang.map(function (item) {
|
|
@@ -16758,7 +16751,7 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
16758
16751
|
className: styles["form-question-text"] + " mb-2"
|
|
16759
16752
|
}, React__default.createElement(marioCore.RequiredLabel, {
|
|
16760
16753
|
text: t("question_text")
|
|
16761
|
-
}),
|
|
16754
|
+
}), !!tinyMCEKey && React__default.createElement(tinymceReact.Editor, {
|
|
16762
16755
|
apiKey: tinyMCEKey || TINY_MCE_API_KEY,
|
|
16763
16756
|
value: values.text,
|
|
16764
16757
|
init: _extends({}, marioCore.editorConfig.question, {
|
|
@@ -19941,7 +19934,8 @@ var QuestionCateList = function QuestionCateList(_ref) {
|
|
|
19941
19934
|
}), React__default.createElement("div", {
|
|
19942
19935
|
className: styles$1['list-survey-category'],
|
|
19943
19936
|
style: {
|
|
19944
|
-
maxHeight: maxHeight
|
|
19937
|
+
maxHeight: maxHeight,
|
|
19938
|
+
minHeight: '400px'
|
|
19945
19939
|
}
|
|
19946
19940
|
}, categories && categories.length > 0 ? categories.map(function (cate) {
|
|
19947
19941
|
var _cate$numberOfQuestio;
|
|
@@ -67662,6 +67656,11 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
67662
67656
|
getAllTemplateSurvey();
|
|
67663
67657
|
document.title = "Create Survey";
|
|
67664
67658
|
}, []);
|
|
67659
|
+
|
|
67660
|
+
var handleGoToSurveyDashboard = function handleGoToSurveyDashboard() {
|
|
67661
|
+
history.push("/admin/survey-dashboard/overview");
|
|
67662
|
+
};
|
|
67663
|
+
|
|
67665
67664
|
return {
|
|
67666
67665
|
filters: filters,
|
|
67667
67666
|
students: students,
|
|
@@ -67752,7 +67751,8 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
67752
67751
|
formTextList: formTextList,
|
|
67753
67752
|
toTextList: toTextList,
|
|
67754
67753
|
handleChangeAdditionalRatingQuestion: handleChangeAdditionalRatingQuestion,
|
|
67755
|
-
questionAdditionalType: questionAdditionalType
|
|
67754
|
+
questionAdditionalType: questionAdditionalType,
|
|
67755
|
+
handleGoToSurveyDashboard: handleGoToSurveyDashboard
|
|
67756
67756
|
};
|
|
67757
67757
|
};
|
|
67758
67758
|
|
|
@@ -69130,7 +69130,9 @@ var ConfirmPublishSurvey = function ConfirmPublishSurvey(_ref) {
|
|
|
69130
69130
|
var ConfirmShareSurvey = function ConfirmShareSurvey(_ref) {
|
|
69131
69131
|
var open = _ref.open,
|
|
69132
69132
|
handleClose = _ref.handleClose,
|
|
69133
|
-
onOpenModelExternal = _ref.onOpenModelExternal
|
|
69133
|
+
onOpenModelExternal = _ref.onOpenModelExternal,
|
|
69134
|
+
numberStaff = _ref.numberStaff,
|
|
69135
|
+
numberStudent = _ref.numberStudent;
|
|
69134
69136
|
|
|
69135
69137
|
var _useTranslation = marioCore.useTranslation(),
|
|
69136
69138
|
t = _useTranslation.t;
|
|
@@ -69144,23 +69146,24 @@ var ConfirmShareSurvey = function ConfirmShareSurvey(_ref) {
|
|
|
69144
69146
|
return handleClose();
|
|
69145
69147
|
},
|
|
69146
69148
|
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, {
|
|
69149
|
+
}, React__default.createElement(core$1.DialogContent, null, React__default.createElement(core$1.Typography, {
|
|
69150
69150
|
className: "" + styles$6["content-confirm-model"]
|
|
69151
|
-
}, t("
|
|
69151
|
+
}, t("your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of_the_results_on_our_survey_dashboard", {
|
|
69152
|
+
numberStudent: numberStudent,
|
|
69153
|
+
numberStaff: numberStaff
|
|
69154
|
+
}))), React__default.createElement(core$1.DialogActions, null, React__default.createElement(core$1.Button, {
|
|
69152
69155
|
className: "" + styles$6["btn-cancel"],
|
|
69153
69156
|
onClick: function onClick() {
|
|
69154
69157
|
return handleClose();
|
|
69155
69158
|
}
|
|
69156
|
-
}, t("
|
|
69159
|
+
}, t("leave")), React__default.createElement(core$1.Button, {
|
|
69157
69160
|
color: "primary",
|
|
69158
69161
|
endIcon: React__default.createElement(SendIcon, null),
|
|
69159
69162
|
onClick: function onClick() {
|
|
69160
69163
|
return onOpenModelExternal === null || onOpenModelExternal === void 0 ? void 0 : onOpenModelExternal();
|
|
69161
69164
|
},
|
|
69162
69165
|
className: "" + styles$6["btn-send-survey"]
|
|
69163
|
-
}, t("
|
|
69166
|
+
}, t("go_to_the_survey_dashboard"))));
|
|
69164
69167
|
};
|
|
69165
69168
|
|
|
69166
69169
|
var TableSelectStaff = function TableSelectStaff(_ref) {
|
|
@@ -69375,7 +69378,8 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
|
|
|
69375
69378
|
formTextList = _useCreateSurvey.formTextList,
|
|
69376
69379
|
toTextList = _useCreateSurvey.toTextList,
|
|
69377
69380
|
handleChangeAdditionalRatingQuestion = _useCreateSurvey.handleChangeAdditionalRatingQuestion,
|
|
69378
|
-
questionAdditionalType = _useCreateSurvey.questionAdditionalType
|
|
69381
|
+
questionAdditionalType = _useCreateSurvey.questionAdditionalType,
|
|
69382
|
+
handleGoToSurveyDashboard = _useCreateSurvey.handleGoToSurveyDashboard;
|
|
69379
69383
|
|
|
69380
69384
|
var goback = function goback() {
|
|
69381
69385
|
if (dataFormCreateSurvey.activeStep > 0) {
|
|
@@ -69512,7 +69516,9 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
|
|
|
69512
69516
|
}), React__default.createElement(ConfirmShareSurvey, {
|
|
69513
69517
|
open: openModelConfirmShare,
|
|
69514
69518
|
handleClose: handleToggleModelConfirmShare,
|
|
69515
|
-
onOpenModelExternal:
|
|
69519
|
+
onOpenModelExternal: handleGoToSurveyDashboard,
|
|
69520
|
+
numberStaff: dataFormCreateSurvey.staffIds.length || 0,
|
|
69521
|
+
numberStudent: dataFormCreateSurvey.studentIds.length || 0
|
|
69516
69522
|
}), React__default.createElement(ModelSendSurvey, {
|
|
69517
69523
|
handleClose: handleToggleModelShare,
|
|
69518
69524
|
open: openModelShare,
|
|
@@ -74532,8 +74538,6 @@ var useStyles$k = styles$d.makeStyles(function (theme) {
|
|
|
74532
74538
|
width: drawerWidth11
|
|
74533
74539
|
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
74534
74540
|
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
74541
|
}, _drawer.flexShrink = 0, _drawer[theme.breakpoints.down(600)] = {
|
|
74538
74542
|
position: "fixed",
|
|
74539
74543
|
zIndex: 999
|
|
@@ -74615,8 +74619,6 @@ var useStyles$k = styles$d.makeStyles(function (theme) {
|
|
|
74615
74619
|
width: drawerWidth11
|
|
74616
74620
|
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
74617
74621
|
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
74622
|
}, _drawerPaper.paddingTop = function paddingTop(props) {
|
|
74621
74623
|
return HEADER_DESKTOP_HEIGHT + (props.isOpen ? NOTIFICATION_HEIGHT : 0);
|
|
74622
74624
|
}, _drawerPaper.zIndex = 900, _drawerPaper[theme.breakpoints.down(600)] = {
|
|
@@ -74996,7 +74998,7 @@ var Footer = function Footer(_ref) {
|
|
|
74996
74998
|
className: "" + styles$c["privacy-policy-left"]
|
|
74997
74999
|
}, React__default.createElement(core$1.Typography, {
|
|
74998
75000
|
className: "" + styles$c["all-rights-reserved"]
|
|
74999
|
-
}, "\xA9 2019-2023 MARIO
|
|
75001
|
+
}, "\xA9 2019-2023 MARIO Education, LLC, All Rights Reserved"), React__default.createElement(core$1.Typography, {
|
|
75000
75002
|
className: "" + styles$c["policy-link"]
|
|
75001
75003
|
}, "Privacy Policy")), !isStudent && React__default.createElement(core$1.Grid, {
|
|
75002
75004
|
className: "" + styles$c["privacy-policy-right"]
|
|
@@ -75961,7 +75963,7 @@ var SurveyQuestion = function SurveyQuestion() {
|
|
|
75961
75963
|
className: stylesDetail['survey-question-detail-tiny-editor']
|
|
75962
75964
|
}, React__default.createElement(marioCore.RequiredLabel, {
|
|
75963
75965
|
text: t("question_text")
|
|
75964
|
-
}),
|
|
75966
|
+
}), !!tinyMCEKey && React__default.createElement(tinymceReact.Editor, {
|
|
75965
75967
|
apiKey: tinyMCEKey || TINY_MCE_API_KEY,
|
|
75966
75968
|
value: values.text,
|
|
75967
75969
|
init: _extends({}, marioCore.editorConfig.question, {
|