mario-teacher-student-client 3.0.7-admin → 3.0.8-admin
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/Header/Header.d.ts +3 -0
- package/dist/components/selector/CustomFilterComponent.d.ts +7 -1
- package/dist/components/selector/CustomFilterMobile.d.ts +6 -1
- package/dist/containers/Contact/components/SendMassege.d.ts +7 -0
- package/dist/containers/Contact/configs/constants.d.ts +15 -0
- package/dist/containers/Contact/hooks/useContact.d.ts +6 -0
- package/dist/containers/Contact/services/contactService.d.ts +1 -0
- package/dist/containers/Contact/views/ContactPage.d.ts +3 -0
- package/dist/containers/Surveys/constants/constant.d.ts +1 -0
- package/dist/containers/Surveys/constants/types.d.ts +2 -0
- package/dist/containers/Surveys/hook/useListSurvey.d.ts +2 -0
- package/dist/index.js +115 -28
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +115 -28
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9282,17 +9282,7 @@ var SingleChoiceComponent = function SingleChoiceComponent(_ref) {
|
|
|
9282
9282
|
isUserChangeSession = _ref$isUserChangeSess === void 0 ? true : _ref$isUserChangeSess,
|
|
9283
9283
|
_ref$questionAnswer = _ref.questionAnswer,
|
|
9284
9284
|
questionAnswer = _ref$questionAnswer === void 0 ? [] : _ref$questionAnswer;
|
|
9285
|
-
|
|
9286
|
-
var _useState = useState(valueText || ""),
|
|
9287
|
-
active = _useState[0],
|
|
9288
|
-
setActive = _useState[1];
|
|
9289
|
-
|
|
9290
9285
|
var isYesNoQuestion = questionAnswer.includes("Yes" );
|
|
9291
|
-
|
|
9292
|
-
var handleActive = function handleActive(value) {
|
|
9293
|
-
setActive(value);
|
|
9294
|
-
};
|
|
9295
|
-
|
|
9296
9286
|
return React__default.createElement(Grid, {
|
|
9297
9287
|
className: "" + styles["totally-safe-select"]
|
|
9298
9288
|
}, React__default.createElement(Grid, {
|
|
@@ -9322,9 +9312,8 @@ var SingleChoiceComponent = function SingleChoiceComponent(_ref) {
|
|
|
9322
9312
|
value: i,
|
|
9323
9313
|
onClick: function onClick() {
|
|
9324
9314
|
onChangeQuestionAnswer === null || onChangeQuestionAnswer === void 0 ? void 0 : onChangeQuestionAnswer(questionId, i);
|
|
9325
|
-
handleActive(i);
|
|
9326
9315
|
},
|
|
9327
|
-
className: styles["btn-choice"] + " " + (
|
|
9316
|
+
className: styles["btn-choice"] + " " + (valueText === i && styles[valueText.toLowerCase() + "-active"])
|
|
9328
9317
|
});
|
|
9329
9318
|
})));
|
|
9330
9319
|
};
|
|
@@ -64657,6 +64646,7 @@ var COLOR_LABEL_PIE = ["#006E60", "#FF7670", "#994700"];
|
|
|
64657
64646
|
var COLOR_NAME = ["Green", "Red", "Yellow"];
|
|
64658
64647
|
var optionTotalSurvey = ["Total survey done", "Total survey not done"];
|
|
64659
64648
|
var LABEL_NAME_PIE_CHART = ["Green", "Red", "Yellow"];
|
|
64649
|
+
var flagSurveyOptions = ["All", "Red", "Yellow", "Green"];
|
|
64660
64650
|
|
|
64661
64651
|
var useListSurvey = function useListSurvey() {
|
|
64662
64652
|
var dispatch = useDispatch();
|
|
@@ -64695,7 +64685,9 @@ var useListSurvey = function useListSurvey() {
|
|
|
64695
64685
|
startDate: moment().startOf("day").valueOf(),
|
|
64696
64686
|
endDate: moment().add(7, "days").endOf("day").valueOf(),
|
|
64697
64687
|
status: undefined,
|
|
64698
|
-
isFavorite: false
|
|
64688
|
+
isFavorite: false,
|
|
64689
|
+
isSchedule: false,
|
|
64690
|
+
flag: ""
|
|
64699
64691
|
}),
|
|
64700
64692
|
filters = _useState5[0],
|
|
64701
64693
|
setFilters = _useState5[1];
|
|
@@ -64747,6 +64739,19 @@ var useListSurvey = function useListSurvey() {
|
|
|
64747
64739
|
});
|
|
64748
64740
|
};
|
|
64749
64741
|
|
|
64742
|
+
var handleChangeFlag = function handleChangeFlag(newValue) {
|
|
64743
|
+
changeFilters({
|
|
64744
|
+
currentPage: 1,
|
|
64745
|
+
flag: newValue
|
|
64746
|
+
});
|
|
64747
|
+
};
|
|
64748
|
+
|
|
64749
|
+
var handleChangeFilter = function handleChangeFilter(event) {
|
|
64750
|
+
var _extends2;
|
|
64751
|
+
|
|
64752
|
+
setFilters(_extends({}, filters, (_extends2 = {}, _extends2[event.target.name] = event.target.checked, _extends2)));
|
|
64753
|
+
};
|
|
64754
|
+
|
|
64750
64755
|
var handleSelectFavorite = function handleSelectFavorite(isFavorite) {
|
|
64751
64756
|
changeFilters({
|
|
64752
64757
|
currentPage: 1,
|
|
@@ -64901,7 +64906,9 @@ var useListSurvey = function useListSurvey() {
|
|
|
64901
64906
|
isShowFilter: isShowFilter,
|
|
64902
64907
|
handleShowFilter: handleShowFilter,
|
|
64903
64908
|
isShowFilterCalendar: isShowFilterCalendar,
|
|
64904
|
-
handleShowFilterCalendar: handleShowFilterCalendar
|
|
64909
|
+
handleShowFilterCalendar: handleShowFilterCalendar,
|
|
64910
|
+
handleChangeFilter: handleChangeFilter,
|
|
64911
|
+
handleChangeFlag: handleChangeFlag
|
|
64905
64912
|
};
|
|
64906
64913
|
};
|
|
64907
64914
|
|
|
@@ -64945,7 +64952,12 @@ var CustomFilterComponent = function CustomFilterComponent(_ref) {
|
|
|
64945
64952
|
placeholderSearch = _ref.placeholderSearch,
|
|
64946
64953
|
handleSelectFavorite = _ref.handleSelectFavorite,
|
|
64947
64954
|
studentList = _ref.studentList,
|
|
64948
|
-
onSelectStudent = _ref.onSelectStudent
|
|
64955
|
+
onSelectStudent = _ref.onSelectStudent,
|
|
64956
|
+
toggleKeyCustom = _ref.toggleKeyCustom,
|
|
64957
|
+
handleToggleCustom = _ref.handleToggleCustom,
|
|
64958
|
+
toggleContentCustom = _ref.toggleContentCustom,
|
|
64959
|
+
optionCustomSelect = _ref.optionCustomSelect,
|
|
64960
|
+
handleChangeCustomSelect = _ref.handleChangeCustomSelect;
|
|
64949
64961
|
return React__default.createElement(Grid, {
|
|
64950
64962
|
className: "" + styles["box-filter"]
|
|
64951
64963
|
}, React__default.createElement(Grid, {
|
|
@@ -65002,6 +65014,23 @@ var CustomFilterComponent = function CustomFilterComponent(_ref) {
|
|
|
65002
65014
|
variant: "outlined"
|
|
65003
65015
|
}));
|
|
65004
65016
|
}
|
|
65017
|
+
}), !!optionCustomSelect && React__default.createElement(Autocomplete, {
|
|
65018
|
+
fullWidth: true,
|
|
65019
|
+
id: "combo-box-demo",
|
|
65020
|
+
options: optionCustomSelect,
|
|
65021
|
+
className: "" + styles["filter-item"],
|
|
65022
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
65023
|
+
return option;
|
|
65024
|
+
},
|
|
65025
|
+
onChange: function onChange(_e, newValue) {
|
|
65026
|
+
return handleChangeCustomSelect === null || handleChangeCustomSelect === void 0 ? void 0 : handleChangeCustomSelect(newValue);
|
|
65027
|
+
},
|
|
65028
|
+
renderInput: function renderInput(params) {
|
|
65029
|
+
return React__default.createElement(TextField, Object.assign({}, params, {
|
|
65030
|
+
label: "Flag",
|
|
65031
|
+
variant: "outlined"
|
|
65032
|
+
}));
|
|
65033
|
+
}
|
|
65005
65034
|
}), !!handleSelectFavorite && React__default.createElement("div", {
|
|
65006
65035
|
className: "" + styles["btn-favorite-text"]
|
|
65007
65036
|
}, React__default.createElement(Checkbox, {
|
|
@@ -65014,7 +65043,20 @@ var CustomFilterComponent = function CustomFilterComponent(_ref) {
|
|
|
65014
65043
|
}
|
|
65015
65044
|
}), React__default.createElement("div", {
|
|
65016
65045
|
className: "" + styles["btn-favorite-text"]
|
|
65017
|
-
}, "Show only favorite"))
|
|
65046
|
+
}, "Show only favorite")), !!toggleKeyCustom && React__default.createElement("div", {
|
|
65047
|
+
className: "" + styles["btn-favorite-text"]
|
|
65048
|
+
}, React__default.createElement(Checkbox, {
|
|
65049
|
+
name: "isSchedule",
|
|
65050
|
+
inputProps: {
|
|
65051
|
+
"aria-label": "uncontrolled-checkbox"
|
|
65052
|
+
},
|
|
65053
|
+
value: (filters === null || filters === void 0 ? void 0 : filters[toggleKeyCustom]) || null,
|
|
65054
|
+
onChange: function onChange(event) {
|
|
65055
|
+
return handleToggleCustom === null || handleToggleCustom === void 0 ? void 0 : handleToggleCustom(event);
|
|
65056
|
+
}
|
|
65057
|
+
}), React__default.createElement("div", {
|
|
65058
|
+
className: "" + styles["btn-favorite-text"]
|
|
65059
|
+
}, toggleContentCustom)))), React__default.createElement(Grid, {
|
|
65018
65060
|
className: "" + styles["block-right"]
|
|
65019
65061
|
}, !!isShowSelectRight && React__default.createElement(Autocomplete, {
|
|
65020
65062
|
fullWidth: true,
|
|
@@ -65078,7 +65120,12 @@ var CustomFilterMobile = function CustomFilterMobile(_ref) {
|
|
|
65078
65120
|
onShowFilter = _ref.onShowFilter,
|
|
65079
65121
|
isShowFilter = _ref.isShowFilter,
|
|
65080
65122
|
isShowCalendar = _ref.isShowCalendar,
|
|
65081
|
-
onShowFilterCalendar = _ref.onShowFilterCalendar
|
|
65123
|
+
onShowFilterCalendar = _ref.onShowFilterCalendar,
|
|
65124
|
+
optionCustomSelect = _ref.optionCustomSelect,
|
|
65125
|
+
handleChangeCustomSelect = _ref.handleChangeCustomSelect,
|
|
65126
|
+
toggleKeyCustom = _ref.toggleKeyCustom,
|
|
65127
|
+
toggleContentCustom = _ref.toggleContentCustom,
|
|
65128
|
+
handleToggleCustom = _ref.handleToggleCustom;
|
|
65082
65129
|
return React__default.createElement(Grid, {
|
|
65083
65130
|
className: "" + styles["box-filter"]
|
|
65084
65131
|
}, React__default.createElement(Grid, {
|
|
@@ -65165,6 +65212,23 @@ var CustomFilterMobile = function CustomFilterMobile(_ref) {
|
|
|
65165
65212
|
variant: "outlined"
|
|
65166
65213
|
}));
|
|
65167
65214
|
}
|
|
65215
|
+
}), !!optionCustomSelect && React__default.createElement(Autocomplete, {
|
|
65216
|
+
fullWidth: true,
|
|
65217
|
+
id: "combo-box-demo",
|
|
65218
|
+
options: optionCustomSelect,
|
|
65219
|
+
className: styles["filter-item"] + " " + styles["space-item"],
|
|
65220
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
65221
|
+
return option;
|
|
65222
|
+
},
|
|
65223
|
+
onChange: function onChange(_e, newValue) {
|
|
65224
|
+
return handleChangeCustomSelect === null || handleChangeCustomSelect === void 0 ? void 0 : handleChangeCustomSelect(newValue);
|
|
65225
|
+
},
|
|
65226
|
+
renderInput: function renderInput(params) {
|
|
65227
|
+
return React__default.createElement(TextField, Object.assign({}, params, {
|
|
65228
|
+
label: "Flag",
|
|
65229
|
+
variant: "outlined"
|
|
65230
|
+
}));
|
|
65231
|
+
}
|
|
65168
65232
|
}), !!handleSelectFavorite && React__default.createElement("div", {
|
|
65169
65233
|
className: styles["btn-favorite-text"] + " " + styles["space-item"]
|
|
65170
65234
|
}, React__default.createElement(Checkbox, {
|
|
@@ -65177,7 +65241,20 @@ var CustomFilterMobile = function CustomFilterMobile(_ref) {
|
|
|
65177
65241
|
}
|
|
65178
65242
|
}), React__default.createElement("div", {
|
|
65179
65243
|
className: "" + styles["btn-favorite-text"]
|
|
65180
|
-
}, "Show only favorite"))
|
|
65244
|
+
}, "Show only favorite")), !!toggleKeyCustom && React__default.createElement("div", {
|
|
65245
|
+
className: styles["btn-favorite-text"] + " " + styles["space-item"]
|
|
65246
|
+
}, React__default.createElement(Checkbox, {
|
|
65247
|
+
name: "isSchedule",
|
|
65248
|
+
inputProps: {
|
|
65249
|
+
"aria-label": "uncontrolled-checkbox"
|
|
65250
|
+
},
|
|
65251
|
+
value: (filters === null || filters === void 0 ? void 0 : filters[toggleKeyCustom]) || null,
|
|
65252
|
+
onChange: function onChange(event) {
|
|
65253
|
+
return handleToggleCustom === null || handleToggleCustom === void 0 ? void 0 : handleToggleCustom(event);
|
|
65254
|
+
}
|
|
65255
|
+
}), React__default.createElement("div", {
|
|
65256
|
+
className: "" + styles["btn-favorite-text"]
|
|
65257
|
+
}, toggleContentCustom))));
|
|
65181
65258
|
};
|
|
65182
65259
|
|
|
65183
65260
|
var CardSurveyMobile = function CardSurveyMobile(_ref) {
|
|
@@ -65543,7 +65620,9 @@ var ListSurveys = function ListSurveys() {
|
|
|
65543
65620
|
isShowFilter = _useListSurvey.isShowFilter,
|
|
65544
65621
|
handleShowFilter = _useListSurvey.handleShowFilter,
|
|
65545
65622
|
isShowFilterCalendar = _useListSurvey.isShowFilterCalendar,
|
|
65546
|
-
handleShowFilterCalendar = _useListSurvey.handleShowFilterCalendar
|
|
65623
|
+
handleShowFilterCalendar = _useListSurvey.handleShowFilterCalendar,
|
|
65624
|
+
handleChangeFilter = _useListSurvey.handleChangeFilter,
|
|
65625
|
+
handleChangeFlag = _useListSurvey.handleChangeFlag;
|
|
65547
65626
|
|
|
65548
65627
|
return React__default.createElement(Grid, {
|
|
65549
65628
|
className: "" + styles$N["block-list-survey"]
|
|
@@ -65565,7 +65644,12 @@ var ListSurveys = function ListSurveys() {
|
|
|
65565
65644
|
handleChangeStartDate: handleChangeStartDate,
|
|
65566
65645
|
handleChangeEndDate: handleChangeEndDate,
|
|
65567
65646
|
handleChangeStatus: handleChangeStatus,
|
|
65568
|
-
handleSelectFavorite: handleSelectFavorite
|
|
65647
|
+
handleSelectFavorite: handleSelectFavorite,
|
|
65648
|
+
handleToggleCustom: handleChangeFilter,
|
|
65649
|
+
toggleKeyCustom: "isSchedule",
|
|
65650
|
+
toggleContentCustom: "session schedule",
|
|
65651
|
+
optionCustomSelect: flagSurveyOptions,
|
|
65652
|
+
handleChangeCustomSelect: handleChangeFlag
|
|
65569
65653
|
})), React__default.createElement(Grid, {
|
|
65570
65654
|
className: "" + styles$N["filter-mobile"]
|
|
65571
65655
|
}, React__default.createElement(CustomFilterMobile, {
|
|
@@ -65579,7 +65663,12 @@ var ListSurveys = function ListSurveys() {
|
|
|
65579
65663
|
handleChangeStatus: handleChangeStatus,
|
|
65580
65664
|
handleSelectFavorite: handleSelectFavorite,
|
|
65581
65665
|
isShowCalendar: isShowFilterCalendar,
|
|
65582
|
-
onShowFilterCalendar: handleShowFilterCalendar
|
|
65666
|
+
onShowFilterCalendar: handleShowFilterCalendar,
|
|
65667
|
+
handleToggleCustom: handleChangeFilter,
|
|
65668
|
+
toggleKeyCustom: "isSchedule",
|
|
65669
|
+
toggleContentCustom: "session schedule",
|
|
65670
|
+
optionCustomSelect: flagSurveyOptions,
|
|
65671
|
+
handleChangeCustomSelect: handleChangeFlag
|
|
65583
65672
|
}))), React__default.createElement(Grid, {
|
|
65584
65673
|
className: "" + styles$N["table-desktop"]
|
|
65585
65674
|
}, React__default.createElement(TableContainer, null, React__default.createElement(Table$2, {
|
|
@@ -67224,9 +67313,7 @@ var useFormCreateSurvey = function useFormCreateSurvey(_ref) {
|
|
|
67224
67313
|
|
|
67225
67314
|
if ((dataFormCreateSurvey === null || dataFormCreateSurvey === void 0 ? void 0 : (_dataFormCreateSurvey = dataFormCreateSurvey.studentIds) === null || _dataFormCreateSurvey === void 0 ? void 0 : _dataFormCreateSurvey.length) > 0 && dataFormCreateSurvey.activeStep === 0) {
|
|
67226
67315
|
return false;
|
|
67227
|
-
} else if (dataFormCreateSurvey.activeStep === 1 && !!dataFormCreateSurvey.title.trim() && dataFormCreateSurvey.
|
|
67228
|
-
return r.questionTemplates.length > 0;
|
|
67229
|
-
})) {
|
|
67316
|
+
} else if (dataFormCreateSurvey.activeStep === 1 && !!dataFormCreateSurvey.title.trim() && dataFormCreateSurvey.additionalQuestions.length > 0 && !!dataFormCreateSurvey.deadline) {
|
|
67230
67317
|
return false;
|
|
67231
67318
|
} else if (dataFormCreateSurvey.activeStep === 2) {
|
|
67232
67319
|
return false;
|
|
@@ -68464,9 +68551,7 @@ var CreateSurveyComponent = function CreateSurveyComponent(_ref) {
|
|
|
68464
68551
|
className: "" + styles$N["box-form-input"]
|
|
68465
68552
|
}, React__default.createElement(Typography$1, {
|
|
68466
68553
|
className: "" + styles$N["form-input-title"]
|
|
68467
|
-
}, "Survey Questions", React__default.createElement(
|
|
68468
|
-
className: "" + styles$N["sup-require"]
|
|
68469
|
-
}, "*")), React__default.createElement(TextField, {
|
|
68554
|
+
}, "Survey Questions"), React__default.createElement(TextField, {
|
|
68470
68555
|
disabled: true,
|
|
68471
68556
|
fullWidth: true,
|
|
68472
68557
|
variant: "outlined",
|
|
@@ -68553,7 +68638,9 @@ var CreateSurveyComponent = function CreateSurveyComponent(_ref) {
|
|
|
68553
68638
|
className: "" + styles$N["box-form-input"]
|
|
68554
68639
|
}, React__default.createElement(Typography$1, {
|
|
68555
68640
|
className: "" + styles$N["form-input-title"]
|
|
68556
|
-
}, "Additional Question"
|
|
68641
|
+
}, "Additional Question", React__default.createElement("sup", {
|
|
68642
|
+
className: "" + styles$N["sup-require"]
|
|
68643
|
+
}, "*")), React__default.createElement("button", {
|
|
68557
68644
|
onClick: function onClick() {
|
|
68558
68645
|
return handleToggleModelAdditional();
|
|
68559
68646
|
},
|