mario-education 2.4.251-release → 2.4.252-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.
@@ -29,3 +29,4 @@ export declare const getRatingsOfQuestions: (surveyId: number, isExternal: boole
29
29
  export declare const getTotalByQuestion: (surveyId: number, questionId: number, isExternal: boolean) => Promise<import("axios").AxiosResponse<any>>;
30
30
  export declare const getResponsesDistribution: (surveyId: number, isExternal: boolean) => Promise<import("axios").AxiosResponse<any>>;
31
31
  export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
32
+ export declare const getRatingLabelSurvey: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,3 +1,3 @@
1
1
  import { IQuestionModel } from "../../configs/questionModelType";
2
- declare const AdditionalQuestionModel: ({ open, onClose, additionalQuestionForm, onChangeAdditionalQuestion, onAddAdditionalQuestion, onRemoveAdditionalQuestion, onEditAdditionalQuestion, onChangeAdditionalType, onCheckFormConfirm, onAddAnswerQuestion, onRemoveAnswer, onSelectOptionSingleChoice, onCheckSelectOptionSingleChoice, onRecordChangeQuestionText }: IQuestionModel) => JSX.Element;
2
+ declare const AdditionalQuestionModel: ({ open, onClose, additionalQuestionForm, onChangeAdditionalQuestion, onAddAdditionalQuestion, onRemoveAdditionalQuestion, onEditAdditionalQuestion, onChangeAdditionalType, onCheckFormConfirm, onAddAnswerQuestion, onRemoveAnswer, onSelectOptionSingleChoice, onCheckSelectOptionSingleChoice, onRecordChangeQuestionText, formTextList, toTextList, onChangeAdditionalRatingQuestion }: IQuestionModel) => JSX.Element;
3
3
  export default AdditionalQuestionModel;
@@ -1,3 +1,3 @@
1
1
  import { CREATE_SURVEY_PROPS } from "../../configs/types";
2
- declare const CreateSurveyComponent: ({ dataFormCreateSurvey, onChangeValueForm, onRecordChangeTitle, handleChangeDate, handleChangeFavorite, templateSurvey, handleToggleModel, openModelSelectTemplate, handleSelectTemplate, openCollapseId, setOpenCollapseId, handleInsertQuestion, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion, handleCheckSelectQuestion, handleSelectQuestionCollapse, handleCheckTypeQuestion, handleCheckCountQuestionByType, handleCheckInsertQuestion, handleCheckSelectTemplate, handleInsertAllQuestion, favoriteItem, handleDuplicateSurvey, handleAddAdditionalQuestion, handleChangeAdditionalQuestion, handleRecordChangeQuestionText, handleRemoveAdditionalQuestion, handleEditAdditionalQuestion, handleFindAdditionalQuestion, handleToggleModelAdditional, openModelAdditional, additionalQuestionForm, handleChangeAdditionalType, handleCheckFormConfirm, handleAddAnswerQuestion, handleRemoveAnswer, filterFavorite, handleSortTableFavorite, handleChangeRowsPerPageFavorite, handleChangePageFavorite, handleSelectOptionSingleChoice, handleCheckSelectOptionSingleChoice }: CREATE_SURVEY_PROPS) => JSX.Element;
2
+ declare const CreateSurveyComponent: ({ dataFormCreateSurvey, onChangeValueForm, onRecordChangeTitle, handleChangeDate, handleChangeFavorite, templateSurvey, handleToggleModel, openModelSelectTemplate, handleSelectTemplate, openCollapseId, setOpenCollapseId, handleInsertQuestion, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion, handleCheckSelectQuestion, handleSelectQuestionCollapse, handleCheckTypeQuestion, handleCheckCountQuestionByType, handleCheckInsertQuestion, handleCheckSelectTemplate, handleInsertAllQuestion, favoriteItem, handleDuplicateSurvey, handleAddAdditionalQuestion, handleChangeAdditionalQuestion, handleRecordChangeQuestionText, handleRemoveAdditionalQuestion, handleEditAdditionalQuestion, handleFindAdditionalQuestion, handleToggleModelAdditional, openModelAdditional, additionalQuestionForm, handleChangeAdditionalType, handleCheckFormConfirm, handleAddAnswerQuestion, handleRemoveAnswer, filterFavorite, handleSortTableFavorite, handleChangeRowsPerPageFavorite, handleChangePageFavorite, handleSelectOptionSingleChoice, handleCheckSelectOptionSingleChoice, formTextList, toTextList, handleChangeAdditionalRatingQuestion }: CREATE_SURVEY_PROPS) => JSX.Element;
3
3
  export default CreateSurveyComponent;
@@ -14,6 +14,9 @@ export interface IQuestionModel {
14
14
  onSelectOptionSingleChoice: Function;
15
15
  onCheckSelectOptionSingleChoice: Function;
16
16
  onRecordChangeQuestionText: Function;
17
+ formTextList?: string[];
18
+ toTextList?: string[];
19
+ onChangeAdditionalRatingQuestion?: Function;
17
20
  }
18
21
  export interface IAnswer {
19
22
  text: string;
@@ -690,6 +690,9 @@ export interface CREATE_SURVEY_PROPS {
690
690
  handleSelectOptionSingleChoice: Function;
691
691
  handleCheckSelectOptionSingleChoice: Function;
692
692
  onRecordChangeTitle?: Function;
693
+ formTextList?: string[];
694
+ toTextList?: string[];
695
+ handleChangeAdditionalRatingQuestion?: Function;
693
696
  }
694
697
  export interface REVIEW_SURVEY_PROPS {
695
698
  dataFormCreateSurvey: FORM_SURVEY;
@@ -24,5 +24,8 @@ declare const useAdditionalQuestion: ({ setAdditionalQuestionForm, dataFormCreat
24
24
  handleSelectOptionSingleChoice: (event: React.ChangeEvent<HTMLInputElement>) => void;
25
25
  handleCheckSelectOptionSingleChoice: () => optionSingleChoice;
26
26
  handleRecordChangeQuestionText: (value: string) => void;
27
+ formTextList: string[];
28
+ toTextList: string[];
29
+ handleChangeAdditionalRatingQuestion: (key: string, value: string) => void;
27
30
  };
28
31
  export default useAdditionalQuestion;
@@ -0,0 +1,5 @@
1
+ declare const useAdditionalQuestionModel: ({ open }: any) => {
2
+ formTextList: string[];
3
+ toTextList: string[];
4
+ };
5
+ export default useAdditionalQuestionModel;
@@ -92,5 +92,8 @@ declare const useListSurveyDetail: () => {
92
92
  handleChangeInputStaff: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
93
93
  importEmailCsv: (file: any) => Promise<void>;
94
94
  downloadTemplate: () => Promise<void>;
95
+ formTextList: string[];
96
+ toTextList: string[];
97
+ handleChangeAdditionalRatingQuestion: (key: string, value: string) => void;
95
98
  };
96
99
  export default useListSurveyDetail;
package/dist/index.js CHANGED
@@ -28900,6 +28900,9 @@ var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
28900
28900
  !!student && history.push("/student-detail/overview/" + student[student.length - 1] + "?isReadOnly=true");
28901
28901
  },
28902
28902
  mouseMove: function mouseMove(_event, _chartContext, config) {
28903
+ var _config$config;
28904
+
28905
+ var dataConfigs = (config === null || config === void 0 ? void 0 : (_config$config = config.config) === null || _config$config === void 0 ? void 0 : _config$config.series) || [];
28903
28906
  var seriesIndex = config.seriesIndex != -1 ? config.seriesIndex : 0;
28904
28907
  var chartBubbleCustom = document.getElementById("chart_bubble_custom");
28905
28908
  var seriesCount = data.length;
@@ -28926,13 +28929,14 @@ var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
28926
28929
  if (tooltips.length < seriesCount) {
28927
28930
  for (var j = 0; j < seriesCount; j++) {
28928
28931
  if (j != seriesIndex) {
28929
- var _data$j, _data$j$studentPercen;
28932
+ var _dataConfigs$j, _dataConfigs$j$data;
28930
28933
 
28931
- var value = (_data$j = data[j]) === null || _data$j === void 0 ? void 0 : (_data$j$studentPercen = _data$j.studentPercentQuestion) === null || _data$j$studentPercen === void 0 ? void 0 : _data$j$studentPercen[config.dataPointIndex];
28934
+ var value = (_dataConfigs$j = dataConfigs[j]) === null || _dataConfigs$j === void 0 ? void 0 : (_dataConfigs$j$data = _dataConfigs$j.data) === null || _dataConfigs$j$data === void 0 ? void 0 : _dataConfigs$j$data[config.dataPointIndex];
28932
28935
  var newTooltip = activeTooltip.cloneNode(true);
28933
28936
  newTooltip.style.top = "80px";
28934
28937
  newTooltip.style.left = x * j + x / 3 + "px";
28935
28938
  newTooltip.classList.add("custom-tooltip-clone");
28939
+ newTooltip.classList.add("custom-" + j);
28936
28940
  var seriesGroup = newTooltip.getElementsByClassName("apexcharts-tooltip-series-group") || [];
28937
28941
 
28938
28942
  for (var index = 0; index < seriesGroup.length; index++) {
@@ -28949,22 +28953,57 @@ var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
28949
28953
  }
28950
28954
 
28951
28955
  if (!!innerLabel) {
28952
- var _value$percentQuestio;
28956
+ var _value$;
28953
28957
 
28954
- innerLabel.innerHTML = (parseFloat(value === null || value === void 0 ? void 0 : (_value$percentQuestio = value.percentQuestion) === null || _value$percentQuestio === void 0 ? void 0 : _value$percentQuestio.toFixed(2)).toString() || 0) + "%";
28958
+ innerLabel.innerHTML = (parseFloat(value === null || value === void 0 ? void 0 : (_value$ = value[1]) === null || _value$ === void 0 ? void 0 : _value$.toFixed(2)).toString() || 0) + "%";
28955
28959
  }
28956
28960
 
28957
28961
  if (!!innerStudent) {
28958
- innerStudent.innerHTML = (value === null || value === void 0 ? void 0 : value.studentName) || "";
28962
+ innerStudent.innerHTML = (value === null || value === void 0 ? void 0 : value[2]) || "";
28959
28963
  }
28960
28964
  }
28961
28965
 
28962
28966
  element.appendChild(newTooltip);
28963
28967
  }
28964
28968
  }
28969
+ } else if (tooltips.length == seriesCount) {
28970
+ for (var _j = 0; _j < seriesCount; _j++) {
28971
+ if (_j != seriesIndex) {
28972
+ var _dataConfigs$_j, _dataConfigs$_j$data;
28973
+
28974
+ var _value = (_dataConfigs$_j = dataConfigs[_j]) === null || _dataConfigs$_j === void 0 ? void 0 : (_dataConfigs$_j$data = _dataConfigs$_j.data) === null || _dataConfigs$_j$data === void 0 ? void 0 : _dataConfigs$_j$data[config.dataPointIndex];
28975
+
28976
+ var tooltipQuery = element.getElementsByClassName("custom-" + _j);
28977
+
28978
+ if (tooltipQuery && tooltipQuery.length > 0) {
28979
+ var _seriesGroup = tooltipQuery[0].getElementsByClassName("apexcharts-tooltip-series-group") || [];
28980
+
28981
+ for (var _index = 0; _index < _seriesGroup.length; _index++) {
28982
+ var _series = _seriesGroup[_index];
28983
+
28984
+ var _labels = _series.getElementsByClassName("apexcharts-tooltip-text-value") || [];
28985
+
28986
+ var _students = _series.getElementsByClassName("apexcharts-tooltip-text-z-value") || [];
28987
+
28988
+ var _innerLabel = _labels[0];
28989
+ var _innerStudent = _students[0];
28990
+
28991
+ if (!!_innerLabel) {
28992
+ var _value$2;
28993
+
28994
+ _innerLabel.innerHTML = (parseFloat(_value === null || _value === void 0 ? void 0 : (_value$2 = _value[1]) === null || _value$2 === void 0 ? void 0 : _value$2.toFixed(2)).toString() || 0) + "%";
28995
+ }
28996
+
28997
+ if (!!_innerStudent) {
28998
+ _innerStudent.innerHTML = (_value === null || _value === void 0 ? void 0 : _value[2]) || "";
28999
+ }
29000
+ }
29001
+ }
29002
+ }
29003
+ }
28965
29004
  } else if (tooltips.length > seriesCount) {
28966
- for (var _j = tooltips.length - 1; _j >= seriesCount; _j--) {
28967
- tooltips[_j].remove();
29005
+ for (var _j2 = tooltips.length - 1; _j2 >= seriesCount; _j2--) {
29006
+ tooltips[_j2].remove();
28968
29007
  }
28969
29008
  }
28970
29009
  }
@@ -45225,6 +45264,13 @@ var getResponsesDistribution = function getResponsesDistribution(surveyId, isExt
45225
45264
  }
45226
45265
  });
45227
45266
  };
45267
+ var getRatingLabelSurvey = function getRatingLabelSurvey(isAdmin) {
45268
+ return marioCore.api.get(SURVEY_API + "/rating-label-survey", {
45269
+ params: {
45270
+ isAdmin: isAdmin
45271
+ }
45272
+ });
45273
+ };
45228
45274
 
45229
45275
  var CSV_PREFIX$1 = "data:text/csv;charset=utf-8,";
45230
45276
 
@@ -78175,7 +78221,6 @@ var PreviewSurveyAdmin = function PreviewSurveyAdmin() {
78175
78221
  listStudent = _usePreviewSurvey.listStudent,
78176
78222
  studentShareId = _usePreviewSurvey.studentShareId,
78177
78223
  setStudentShareId = _usePreviewSurvey.setStudentShareId,
78178
- teacherUserId = _usePreviewSurvey.teacherUserId,
78179
78224
  isPreviewSurvey = _usePreviewSurvey.isPreviewSurvey;
78180
78225
 
78181
78226
  var _useTranslation = marioCore.useTranslation(),
@@ -78184,7 +78229,7 @@ var PreviewSurveyAdmin = function PreviewSurveyAdmin() {
78184
78229
  var history = reactRouterDom.useHistory();
78185
78230
 
78186
78231
  var goBack = function goBack() {
78187
- !surveyId ? history.push("/admin/create-survey?createContinue=true&teacherUserId=" + teacherUserId) : history.goBack();
78232
+ !surveyId ? history.push("/admin/create-survey?createContinue=true") : history.goBack();
78188
78233
  };
78189
78234
 
78190
78235
  return React__default.createElement("div", {
@@ -81323,8 +81368,7 @@ var useSelectStudent = function useSelectStudent(_ref) {
81323
81368
  return selectIds.indexOf(v) == i;
81324
81369
  });
81325
81370
  setDataFormCreateSurvey(_extends({}, dataFormCreateSurvey, {
81326
- studentIds: result,
81327
- activeStep: 0
81371
+ studentIds: result
81328
81372
  }));
81329
81373
  }, [students, dataFormCreateSurvey]);
81330
81374
  return {
@@ -81526,6 +81570,16 @@ var useAdditionalQuestion = function useAdditionalQuestion(_ref) {
81526
81570
  openModelAdditional = _ref.openModelAdditional,
81527
81571
  setOpenModelAdditional = _ref.setOpenModelAdditional;
81528
81572
 
81573
+ var _useState = React.useState([]),
81574
+ formTextList = _useState[0],
81575
+ setFormTextList = _useState[1];
81576
+
81577
+ var _useState2 = React.useState([]),
81578
+ toTextList = _useState2[0],
81579
+ setToTextList = _useState2[1];
81580
+
81581
+ var dispatch = reactRedux.useDispatch();
81582
+
81529
81583
  var additionalDataFormByType = function additionalDataFormByType(additionalQuestionForm) {
81530
81584
  var question = _extends({}, initialAdditionalQuestion, {
81531
81585
  type: additionalQuestionForm.type,
@@ -81683,6 +81737,48 @@ var useAdditionalQuestion = function useAdditionalQuestion(_ref) {
81683
81737
  return optionSingleChoice.Other;
81684
81738
  }
81685
81739
  }, [additionalQuestionForm]);
81740
+
81741
+ var handleChangeAdditionalRatingQuestion = function handleChangeAdditionalRatingQuestion(key, value) {
81742
+ if (key.includes("fromLabel")) {
81743
+ setAdditionalQuestionForm(_extends({}, additionalQuestionForm, {
81744
+ fromLabel: value
81745
+ }));
81746
+ } else {
81747
+ setAdditionalQuestionForm(_extends({}, additionalQuestionForm, {
81748
+ toLabel: value
81749
+ }));
81750
+ }
81751
+ };
81752
+
81753
+ var getRatingLabelSurveyInit = function getRatingLabelSurveyInit() {
81754
+ try {
81755
+ var _temp3 = function _temp3() {
81756
+ dispatch(marioCore.setLoading(false));
81757
+ };
81758
+
81759
+ dispatch(marioCore.setLoading(true));
81760
+
81761
+ var _temp4 = _catch(function () {
81762
+ return Promise.resolve(getRatingLabelSurvey(true)).then(function (res) {
81763
+ setFormTextList(res.data.fromText);
81764
+ setToTextList(res.data.toText);
81765
+ });
81766
+ }, function (err) {
81767
+ dispatch(marioCore.setAlert({
81768
+ type: "danger",
81769
+ message: err.message
81770
+ }));
81771
+ });
81772
+
81773
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
81774
+ } catch (e) {
81775
+ return Promise.reject(e);
81776
+ }
81777
+ };
81778
+
81779
+ React.useEffect(function () {
81780
+ getRatingLabelSurveyInit();
81781
+ }, []);
81686
81782
  return {
81687
81783
  handleAddAdditionalQuestion: handleAddAdditionalQuestion,
81688
81784
  handleChangeAdditionalQuestion: handleChangeAdditionalQuestion,
@@ -81696,7 +81792,10 @@ var useAdditionalQuestion = function useAdditionalQuestion(_ref) {
81696
81792
  handleRemoveAnswer: handleRemoveAnswer,
81697
81793
  handleSelectOptionSingleChoice: handleSelectOptionSingleChoice,
81698
81794
  handleCheckSelectOptionSingleChoice: handleCheckSelectOptionSingleChoice,
81699
- handleRecordChangeQuestionText: handleRecordChangeQuestionText
81795
+ handleRecordChangeQuestionText: handleRecordChangeQuestionText,
81796
+ formTextList: formTextList,
81797
+ toTextList: toTextList,
81798
+ handleChangeAdditionalRatingQuestion: handleChangeAdditionalRatingQuestion
81700
81799
  };
81701
81800
  };
81702
81801
 
@@ -81989,7 +82088,10 @@ var useListSurveyDetail$1 = function useListSurveyDetail() {
81989
82088
  handleAddAnswerQuestion = _useAdditionalQuestio.handleAddAnswerQuestion,
81990
82089
  handleRemoveAnswer = _useAdditionalQuestio.handleRemoveAnswer,
81991
82090
  handleSelectOptionSingleChoice = _useAdditionalQuestio.handleSelectOptionSingleChoice,
81992
- handleCheckSelectOptionSingleChoice = _useAdditionalQuestio.handleCheckSelectOptionSingleChoice;
82091
+ handleCheckSelectOptionSingleChoice = _useAdditionalQuestio.handleCheckSelectOptionSingleChoice,
82092
+ formTextList = _useAdditionalQuestio.formTextList,
82093
+ toTextList = _useAdditionalQuestio.toTextList,
82094
+ handleChangeAdditionalRatingQuestion = _useAdditionalQuestio.handleChangeAdditionalRatingQuestion;
81993
82095
 
81994
82096
  var _useListFavoriteSurve = useListFavoriteSurvey({
81995
82097
  setDataFormCreateSurvey: setDataFormCreateSurvey,
@@ -82202,7 +82304,10 @@ var useListSurveyDetail$1 = function useListSurveyDetail() {
82202
82304
  inputSearchStaff: inputSearchStaff,
82203
82305
  handleChangeInputStaff: handleChangeInputStaff,
82204
82306
  importEmailCsv: importEmailCsv,
82205
- downloadTemplate: downloadTemplate
82307
+ downloadTemplate: downloadTemplate,
82308
+ formTextList: formTextList,
82309
+ toTextList: toTextList,
82310
+ handleChangeAdditionalRatingQuestion: handleChangeAdditionalRatingQuestion
82206
82311
  };
82207
82312
  };
82208
82313
 
@@ -82697,7 +82802,10 @@ var AdditionalQuestionModel = function AdditionalQuestionModel(_ref) {
82697
82802
  onRemoveAnswer = _ref.onRemoveAnswer,
82698
82803
  onSelectOptionSingleChoice = _ref.onSelectOptionSingleChoice,
82699
82804
  onCheckSelectOptionSingleChoice = _ref.onCheckSelectOptionSingleChoice,
82700
- onRecordChangeQuestionText = _ref.onRecordChangeQuestionText;
82805
+ onRecordChangeQuestionText = _ref.onRecordChangeQuestionText,
82806
+ formTextList = _ref.formTextList,
82807
+ toTextList = _ref.toTextList,
82808
+ onChangeAdditionalRatingQuestion = _ref.onChangeAdditionalRatingQuestion;
82701
82809
 
82702
82810
  var _useTranslation = marioCore.useTranslation(),
82703
82811
  t = _useTranslation.t;
@@ -82758,30 +82866,61 @@ var AdditionalQuestionModel = function AdditionalQuestionModel(_ref) {
82758
82866
  className: "" + styles$3["box-input"]
82759
82867
  }, React__default.createElement(core$1.Typography, {
82760
82868
  className: "" + styles$3["input-title"]
82761
- }, t("scale")), React__default.createElement(core$1.Grid, null, React__default.createElement(core$1.TextField, {
82869
+ }, t("scale")), React__default.createElement(core$1.Grid, {
82870
+ className: "d-flex"
82871
+ }, React__default.createElement(lab.Autocomplete, {
82762
82872
  id: "outlined-number",
82763
- name: "fromLabel",
82764
- label: t("from"),
82765
- InputLabelProps: {
82766
- shrink: true
82873
+ style: {
82874
+ width: "48%",
82875
+ margin: "15px 10px 0px 0px"
82876
+ },
82877
+ options: formTextList || [],
82878
+ freeSolo: true,
82879
+ autoHighlight: true,
82880
+ getOptionLabel: function getOptionLabel(option) {
82881
+ return option || "";
82882
+ },
82883
+ renderOption: function renderOption(option) {
82884
+ return React__default.createElement(React__default.Fragment, null, option);
82767
82885
  },
82768
- variant: "outlined",
82769
82886
  value: additionalQuestionForm.fromLabel,
82770
- onChange: function onChange(event) {
82771
- return onChangeAdditionalQuestion(event);
82887
+ onInputChange: function onInputChange(_e, newValue) {
82888
+ onChangeAdditionalRatingQuestion === null || onChangeAdditionalRatingQuestion === void 0 ? void 0 : onChangeAdditionalRatingQuestion('fromLabel', newValue);
82889
+ },
82890
+ renderInput: function renderInput(params) {
82891
+ return React__default.createElement(core$1.TextField, Object.assign({}, params, {
82892
+ label: t("from"),
82893
+ name: "fromLabel",
82894
+ variant: "outlined",
82895
+ inputProps: _extends({}, params.inputProps)
82896
+ }));
82772
82897
  }
82773
- }), React__default.createElement(core$1.TextField, {
82898
+ }), React__default.createElement(lab.Autocomplete, {
82774
82899
  id: "outlined-number",
82775
- label: t("to"),
82776
- name: "toLabel",
82900
+ style: {
82901
+ width: "48%",
82902
+ margin: "15px 10px 0px 0px"
82903
+ },
82904
+ options: toTextList || [],
82905
+ freeSolo: true,
82906
+ autoHighlight: true,
82907
+ getOptionLabel: function getOptionLabel(option) {
82908
+ return option || "";
82909
+ },
82910
+ renderOption: function renderOption(option) {
82911
+ return React__default.createElement(React__default.Fragment, null, option);
82912
+ },
82777
82913
  value: additionalQuestionForm.toLabel,
82778
- InputLabelProps: {
82779
- shrink: true
82914
+ onInputChange: function onInputChange(_e, newValue) {
82915
+ onChangeAdditionalRatingQuestion === null || onChangeAdditionalRatingQuestion === void 0 ? void 0 : onChangeAdditionalRatingQuestion('toLabel', newValue);
82780
82916
  },
82781
- variant: "outlined",
82782
- className: "" + styles$3["ml-10"],
82783
- onChange: function onChange(event) {
82784
- return onChangeAdditionalQuestion(event);
82917
+ renderInput: function renderInput(params) {
82918
+ return React__default.createElement(core$1.TextField, Object.assign({}, params, {
82919
+ label: t("to"),
82920
+ name: "toLabel",
82921
+ variant: "outlined",
82922
+ inputProps: _extends({}, params.inputProps)
82923
+ }));
82785
82924
  }
82786
82925
  }))), additionalQuestionForm.type == QuestionType$1.SingleChoice && React__default.createElement(core$1.Grid, {
82787
82926
  className: "" + styles$3["box-input"]
@@ -82924,7 +83063,10 @@ var CreateSurveyComponent = function CreateSurveyComponent(_ref) {
82924
83063
  handleChangeRowsPerPageFavorite = _ref.handleChangeRowsPerPageFavorite,
82925
83064
  handleChangePageFavorite = _ref.handleChangePageFavorite,
82926
83065
  handleSelectOptionSingleChoice = _ref.handleSelectOptionSingleChoice,
82927
- handleCheckSelectOptionSingleChoice = _ref.handleCheckSelectOptionSingleChoice;
83066
+ handleCheckSelectOptionSingleChoice = _ref.handleCheckSelectOptionSingleChoice,
83067
+ formTextList = _ref.formTextList,
83068
+ toTextList = _ref.toTextList,
83069
+ handleChangeAdditionalRatingQuestion = _ref.handleChangeAdditionalRatingQuestion;
82928
83070
 
82929
83071
  var _useTranslation = marioCore.useTranslation(),
82930
83072
  t = _useTranslation.t;
@@ -83067,7 +83209,10 @@ var CreateSurveyComponent = function CreateSurveyComponent(_ref) {
83067
83209
  onAddAnswerQuestion: handleAddAnswerQuestion,
83068
83210
  onRemoveAnswer: handleRemoveAnswer,
83069
83211
  onSelectOptionSingleChoice: handleSelectOptionSingleChoice,
83070
- onCheckSelectOptionSingleChoice: handleCheckSelectOptionSingleChoice
83212
+ onCheckSelectOptionSingleChoice: handleCheckSelectOptionSingleChoice,
83213
+ formTextList: formTextList,
83214
+ toTextList: toTextList,
83215
+ onChangeAdditionalRatingQuestion: handleChangeAdditionalRatingQuestion
83071
83216
  }), dataFormCreateSurvey.additionalQuestions.map(function (r, index) {
83072
83217
  var _questionTypeAddition;
83073
83218
 
@@ -83741,7 +83886,10 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
83741
83886
  inputStaff = _useCreateSurvey.inputStaff,
83742
83887
  inputSearchStaff = _useCreateSurvey.inputSearchStaff,
83743
83888
  handleChangeInputStaff = _useCreateSurvey.handleChangeInputStaff,
83744
- onRecordChangeTitle = _useCreateSurvey.onRecordChangeTitle;
83889
+ onRecordChangeTitle = _useCreateSurvey.onRecordChangeTitle,
83890
+ formTextList = _useCreateSurvey.formTextList,
83891
+ toTextList = _useCreateSurvey.toTextList,
83892
+ handleChangeAdditionalRatingQuestion = _useCreateSurvey.handleChangeAdditionalRatingQuestion;
83745
83893
 
83746
83894
  var goback = function goback() {
83747
83895
  history.push("/admin/survey-dashboard/list-survey");
@@ -83826,6 +83974,7 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
83826
83974
  handleChangeModelQuestion: handleChangeModelQuestion,
83827
83975
  handleSelectQuestion: handleSelectQuestion,
83828
83976
  handleCheckSelectQuestion: handleCheckSelectQuestion,
83977
+ handleChangeAdditionalRatingQuestion: handleChangeAdditionalRatingQuestion,
83829
83978
  handleSelectQuestionCollapse: handleSelectQuestionCollapse,
83830
83979
  handleCheckTypeQuestion: handleCheckTypeQuestion,
83831
83980
  handleCheckCountQuestionByType: handleCheckCountQuestionByType,
@@ -83852,7 +84001,9 @@ var CreateSurveyAdmin = function CreateSurveyAdmin() {
83852
84001
  handleChangeRowsPerPageFavorite: handleChangeRowsPerPageFavorite,
83853
84002
  handleChangePageFavorite: handleChangePageFavorite,
83854
84003
  handleSelectOptionSingleChoice: handleSelectOptionSingleChoice,
83855
- handleCheckSelectOptionSingleChoice: handleCheckSelectOptionSingleChoice
84004
+ handleCheckSelectOptionSingleChoice: handleCheckSelectOptionSingleChoice,
84005
+ formTextList: formTextList,
84006
+ toTextList: toTextList
83856
84007
  })), React__default.createElement(core$1.Grid, {
83857
84008
  hidden: dataFormCreateSurvey.activeStep !== 3
83858
84009
  }, React__default.createElement(ReviewSurveyDetail, {