mario-teacher-student-client 9000.0.8 → 9000.0.9

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.
@@ -3,5 +3,5 @@ export declare const postDataActionPointApi: (data: any) => Promise<import("axio
3
3
  export declare const getDataClassNameApi: () => Promise<import("axios").AxiosResponse<any>>;
4
4
  export declare const getDataActionPointByIdApi: (id: any) => Promise<import("axios").AxiosResponse<any>>;
5
5
  export declare const putActionPointApi: (id: any, formData: any) => Promise<import("axios").AxiosResponse<any>>;
6
- export declare const putIsDoneApi: (id: any, isDone: any) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const putIsDoneApi: (id: any) => Promise<import("axios").AxiosResponse<any>>;
7
7
  export declare const deleteActionPointApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,7 +1,7 @@
1
1
  declare const useCardItem: (actionPoints: any) => {
2
2
  clickOpenEdit: (actionPointId: any, refConduct: any) => Promise<void>;
3
3
  actionId: number;
4
- handleChangeIsDone: (_id: any, index: any) => Promise<void>;
4
+ handleChangeIsDone: (id: any) => Promise<void>;
5
5
  data: any;
6
6
  };
7
7
  export default useCardItem;
@@ -1 +1 @@
1
- export declare const updateIsDone: (dispatch: any, id: any, isDone: any) => Promise<void>;
1
+ export declare const updateIsDone: (dispatch: any, id: any) => Promise<void>;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- declare const useCard: (actionPoints: any) => {
2
+ declare const useCard: () => {
3
3
  actionId: number;
4
4
  clickOpenEdit: (actionPointId: any) => Promise<void>;
5
- handleChangeIsDone: (_id: any, index: any) => Promise<void>;
5
+ handleChangeIsDone: (_id: any, onReloading: Function) => Promise<void>;
6
6
  refConduct: import("react").MutableRefObject<any>;
7
7
  };
8
8
  export default useCard;
package/dist/index.js CHANGED
@@ -75,8 +75,8 @@ var Slider = _interopDefault(require('@material-ui/core/Slider'));
75
75
  var ReactApexChart = _interopDefault(require('react-apexcharts'));
76
76
  var InfoOutlinedIcon = _interopDefault(require('@material-ui/icons/InfoOutlined'));
77
77
  var MoreHorizOutlinedIcon = _interopDefault(require('@material-ui/icons/MoreHorizOutlined'));
78
- var UnfoldMoreIcon = _interopDefault(require('@material-ui/icons/UnfoldMore'));
79
78
  var AppsIcon = _interopDefault(require('@material-ui/icons/Apps'));
79
+ var UnfoldMoreIcon = _interopDefault(require('@material-ui/icons/UnfoldMore'));
80
80
  var cloneDeep = _interopDefault(require('lodash/cloneDeep'));
81
81
  var formik = require('formik');
82
82
  var yup = require('yup');
@@ -475,7 +475,7 @@ var useStyles = styles$z.makeStyles(function (theme) {
475
475
  }
476
476
  },
477
477
  header: {
478
- zIndex: 1000,
478
+ zIndex: 1500,
479
479
  background: "#156DA1"
480
480
  },
481
481
  dropdown: {
@@ -888,7 +888,9 @@ var CurrentFullCalendar = function CurrentFullCalendar(props) {
888
888
  }
889
889
  };
890
890
 
891
- return React__default.createElement(FullCalendar, {
891
+ return React__default.createElement("div", {
892
+ className: "calendar-custom"
893
+ }, React__default.createElement(FullCalendar, {
892
894
  plugins: [dayGridPlugin],
893
895
  initialView: "dayGridMonth",
894
896
  events: map,
@@ -900,7 +902,7 @@ var CurrentFullCalendar = function CurrentFullCalendar(props) {
900
902
  right: ""
901
903
  },
902
904
  eventClick: handleDateClick
903
- });
905
+ }));
904
906
  };
905
907
 
906
908
  var getEventFullCalendar = function getEventFullCalendar(userId, year, month) {
@@ -959,8 +961,8 @@ var getDataActionPointByIdApi = function getDataActionPointByIdApi(id) {
959
961
  var putActionPointApi = function putActionPointApi(id, formData) {
960
962
  return marioCore.api.put(ACTION_POINT + "/" + id, formData);
961
963
  };
962
- var putIsDoneApi = function putIsDoneApi(id, isDone) {
963
- return marioCore.api.put(ACTION_POINT + "/update-isdone/" + id, isDone);
964
+ var putIsDoneApi = function putIsDoneApi(id) {
965
+ return marioCore.api.put(ACTION_POINT + "/update-isdone/" + id);
964
966
  };
965
967
  var deleteActionPointApi = function deleteActionPointApi(id) {
966
968
  return marioCore.api["delete"](ACTION_POINT + "/" + id);
@@ -1022,10 +1024,7 @@ var useActionPointsDB = function useActionPointsDB() {
1022
1024
 
1023
1025
  var queryRequest = {
1024
1026
  startTime: Date.now(),
1025
- endTime: undefined,
1026
- searchString: undefined,
1027
- isDone: false,
1028
- className: undefined
1027
+ endTime: moment().add(7, "days").valueOf()
1029
1028
  };
1030
1029
 
1031
1030
  var getData = function getData() {
@@ -1529,7 +1528,7 @@ var useDialogRequest = function useDialogRequest(_props, ref) {
1529
1528
  setOpen(true);
1530
1529
  };
1531
1530
 
1532
- var getDataActionPoint = function getDataActionPoint() {
1531
+ var getDataActionPoint = function getDataActionPoint(actionId) {
1533
1532
  try {
1534
1533
  return Promise.resolve(getActionPointById(dispatch, actionId)).then(function (data) {
1535
1534
  !!data && setFormData({
@@ -1847,7 +1846,7 @@ var DialogRequestActionPoint = function DialogRequestActionPoint(_props, ref) {
1847
1846
 
1848
1847
  var DialogRequestActionPoint$1 = React.forwardRef(DialogRequestActionPoint);
1849
1848
 
1850
- var updateIsDone = function updateIsDone(dispatch, id, isDone) {
1849
+ var updateIsDone = function updateIsDone(dispatch, id) {
1851
1850
  try {
1852
1851
  var _temp3 = function _temp3() {
1853
1852
  dispatch(marioCore.setLoading(false));
@@ -1856,7 +1855,7 @@ var updateIsDone = function updateIsDone(dispatch, id, isDone) {
1856
1855
  dispatch(marioCore.setLoading(true));
1857
1856
 
1858
1857
  var _temp4 = _catch(function () {
1859
- return Promise.resolve(putIsDoneApi(id, isDone)).then(function () {});
1858
+ return Promise.resolve(putIsDoneApi(id)).then(function () {});
1860
1859
  }, function (e) {
1861
1860
  dispatch(marioCore.setAlert({
1862
1861
  type: "error",
@@ -1870,17 +1869,12 @@ var updateIsDone = function updateIsDone(dispatch, id, isDone) {
1870
1869
  }
1871
1870
  };
1872
1871
 
1873
- var useCard = function useCard(actionPoints) {
1872
+ var useCard = function useCard() {
1874
1873
  var _useState = React.useState(0),
1875
1874
  actionId = _useState[0],
1876
1875
  setActionId = _useState[1];
1877
1876
 
1878
1877
  var dispatch = reactRedux.useDispatch();
1879
-
1880
- var _useState2 = React.useState(),
1881
- data = _useState2[0],
1882
- setData = _useState2[1];
1883
-
1884
1878
  var refConduct = React.useRef();
1885
1879
 
1886
1880
  var clickOpenEdit = function clickOpenEdit(actionPointId) {
@@ -1888,7 +1882,7 @@ var useCard = function useCard(actionPoints) {
1888
1882
  var _refConduct$current;
1889
1883
 
1890
1884
  !!actionPointId ? setActionId(actionPointId) : setActionId(0);
1891
- return Promise.resolve(refConduct === null || refConduct === void 0 ? void 0 : (_refConduct$current = refConduct.current) === null || _refConduct$current === void 0 ? void 0 : _refConduct$current.getDataActionPoint()).then(function () {
1885
+ return Promise.resolve(refConduct === null || refConduct === void 0 ? void 0 : (_refConduct$current = refConduct.current) === null || _refConduct$current === void 0 ? void 0 : _refConduct$current.getDataActionPoint(actionPointId)).then(function () {
1892
1886
  var _refConduct$current2;
1893
1887
 
1894
1888
  refConduct === null || refConduct === void 0 ? void 0 : (_refConduct$current2 = refConduct.current) === null || _refConduct$current2 === void 0 ? void 0 : _refConduct$current2.openModal();
@@ -1898,14 +1892,11 @@ var useCard = function useCard(actionPoints) {
1898
1892
  }
1899
1893
  };
1900
1894
 
1901
- React.useEffect(function () {
1902
- !!actionPoints && setData(actionPoints);
1903
- }, [actionPoints]);
1904
-
1905
- var handleChangeIsDone = function handleChangeIsDone(_id, index) {
1895
+ var handleChangeIsDone = function handleChangeIsDone(_id, onReloading) {
1906
1896
  try {
1907
- var result = !data[index].isDone;
1908
- return Promise.resolve(updateIsDone(dispatch, _id, result)).then(function () {});
1897
+ return Promise.resolve(updateIsDone(dispatch, _id)).then(function () {
1898
+ onReloading();
1899
+ });
1909
1900
  } catch (e) {
1910
1901
  return Promise.reject(e);
1911
1902
  }
@@ -1919,12 +1910,54 @@ var useCard = function useCard(actionPoints) {
1919
1910
  };
1920
1911
  };
1921
1912
 
1913
+ var useStyles$2 = core.makeStyles({
1914
+ root: {
1915
+ cursor: "pointer",
1916
+ display: "inline-flex",
1917
+ alignItems: "center",
1918
+ margin: "0",
1919
+ verticalAlign: "middle",
1920
+ paddingLeft: "10px",
1921
+ height: "32px",
1922
+ backgroundColor: "rgba(0, 0, 0, 0.1)",
1923
+ borderRadius: "70px",
1924
+ color: "black"
1925
+ },
1926
+ rootChecked: {
1927
+ cursor: "pointer",
1928
+ display: "inline-flex",
1929
+ alignItems: "center",
1930
+ margin: "0",
1931
+ verticalAlign: "middle",
1932
+ paddingLeft: "10px",
1933
+ height: "32px",
1934
+ backgroundColor: "#0a4da2",
1935
+ borderRadius: "70px",
1936
+ color: "white"
1937
+ },
1938
+ rootCheckBox: {
1939
+ color: "grey"
1940
+ },
1941
+ title: {
1942
+ fontSize: "16px",
1943
+ fontWeight: 500,
1944
+ marginBottom: "14px"
1945
+ },
1946
+ titleOverLine: {
1947
+ fontSize: "16px",
1948
+ fontWeight: 500,
1949
+ marginBottom: "14px",
1950
+ textDecoration: "line-through"
1951
+ }
1952
+ });
1953
+
1922
1954
  var Card = function Card(props) {
1955
+ var classes = useStyles$2();
1923
1956
  var date = props.date,
1924
1957
  actionPointsList = props.actionPointsList,
1925
1958
  onReloading = props.onReloading;
1926
1959
 
1927
- var _useCard = useCard(actionPointsList),
1960
+ var _useCard = useCard(),
1928
1961
  actionId = _useCard.actionId,
1929
1962
  clickOpenEdit = _useCard.clickOpenEdit,
1930
1963
  refConduct = _useCard.refConduct,
@@ -1944,13 +1977,27 @@ var Card = function Card(props) {
1944
1977
  }, React__default.createElement("div", {
1945
1978
  className: "" + styles$1["content"]
1946
1979
  }, React__default.createElement(core.Typography, {
1947
- className: "" + styles$1["title"]
1980
+ classes: i.isDone ? {
1981
+ root: classes.titleOverLine
1982
+ } : {
1983
+ root: classes.title
1984
+ }
1948
1985
  }, i.title), React__default.createElement("div", {
1949
1986
  className: "" + styles$1["infor-box"]
1950
1987
  }, React__default.createElement(core.Typography, {
1951
- className: "" + styles$1["time"]
1988
+ className: "" + styles$1["time"],
1989
+ classes: i.isDone ? {
1990
+ root: classes.titleOverLine
1991
+ } : {
1992
+ root: classes.title
1993
+ }
1952
1994
  }, marioCore.utcToLocalTime(i.deadlineDate, "hh:mm A")), !!i["class"] && React__default.createElement(core.Typography, {
1953
- className: "" + styles$1["class"]
1995
+ className: "" + styles$1["class"],
1996
+ classes: i.isDone ? {
1997
+ root: classes.titleOverLine
1998
+ } : {
1999
+ root: classes.title
2000
+ }
1954
2001
  }, i["class"]))), React__default.createElement("div", {
1955
2002
  className: "" + styles$1["action"]
1956
2003
  }, React__default.createElement(core.IconButton, {
@@ -1960,8 +2007,9 @@ var Card = function Card(props) {
1960
2007
  }
1961
2008
  }, React__default.createElement(EditIcon, null)), React__default.createElement(core.Checkbox, {
1962
2009
  color: "primary",
2010
+ checked: i.isDone,
1963
2011
  onChange: function onChange() {
1964
- return handleChangeIsDone(i.id, _index);
2012
+ return handleChangeIsDone(i.id, onReloading);
1965
2013
  },
1966
2014
  inputProps: {
1967
2015
  "aria-label": "secondary checkbox"
@@ -6418,7 +6466,7 @@ var ConductTop = function ConductTop(_ref) {
6418
6466
  })));
6419
6467
  };
6420
6468
 
6421
- var useStyles$2 = core.makeStyles(function () {
6469
+ var useStyles$3 = core.makeStyles(function () {
6422
6470
  return {
6423
6471
  root: {
6424
6472
  "& > *": {
@@ -6433,7 +6481,7 @@ var TextFieldComponent = function TextFieldComponent(_ref) {
6433
6481
  valueText = _ref.valueText,
6434
6482
  onChangeQuestionAnswer = _ref.onChangeQuestionAnswer,
6435
6483
  isPageResult = _ref.isPageResult;
6436
- var classes = useStyles$2();
6484
+ var classes = useStyles$3();
6437
6485
  var currentUser = reactRedux.useSelector(function (state) {
6438
6486
  var _state$common;
6439
6487
 
@@ -7478,7 +7526,7 @@ var useProfileDialog = function useProfileDialog() {
7478
7526
  var _excluded$2 = ["children", "value", "index"];
7479
7527
  var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
7480
7528
  var DEFAULT_USER_AVATAR$4 = "/images/image-default.png";
7481
- var useStyles$3 = styles$z.makeStyles(function () {
7529
+ var useStyles$4 = styles$z.makeStyles(function () {
7482
7530
  return {
7483
7531
  header: {
7484
7532
  display: "flex",
@@ -7658,7 +7706,7 @@ var ProfileDialog = function ProfileDialog(props, ref) {
7658
7706
  open = _useState[0],
7659
7707
  setOpen = _useState[1];
7660
7708
 
7661
- var classes = useStyles$3();
7709
+ var classes = useStyles$4();
7662
7710
 
7663
7711
  var _useState2 = React.useState(0),
7664
7712
  value = _useState2[0],
@@ -8098,7 +8146,7 @@ var a11yProps$1 = function a11yProps(index) {
8098
8146
  };
8099
8147
  };
8100
8148
 
8101
- var useStyles$4 = styles$z.makeStyles(function () {
8149
+ var useStyles$5 = styles$z.makeStyles(function () {
8102
8150
  return {
8103
8151
  header: {
8104
8152
  display: "flex",
@@ -8178,7 +8226,7 @@ var useStyles$4 = styles$z.makeStyles(function () {
8178
8226
  var CustomTabNote = function CustomTabNote(props) {
8179
8227
  var _props$teacherNoteDat, _props$studentNoteDat;
8180
8228
 
8181
- var classes = useStyles$4();
8229
+ var classes = useStyles$5();
8182
8230
 
8183
8231
  var _useState = React.useState(0),
8184
8232
  value = _useState[0],
@@ -8761,7 +8809,7 @@ var SelectQuestionNodes = function SelectQuestionNodes(props) {
8761
8809
  }) : React__default.createElement("div", null, "No question"))));
8762
8810
  };
8763
8811
 
8764
- var useStyles$5 = styles$z.makeStyles(function () {
8812
+ var useStyles$6 = styles$z.makeStyles(function () {
8765
8813
  return {
8766
8814
  noBorder: {
8767
8815
  border: "none"
@@ -8771,7 +8819,7 @@ var useStyles$5 = styles$z.makeStyles(function () {
8771
8819
 
8772
8820
  var DialogNodes = function DialogNodes(props) {
8773
8821
  var dispatch = reactRedux.useDispatch();
8774
- var classes = useStyles$5();
8822
+ var classes = useStyles$6();
8775
8823
 
8776
8824
  var _useUpComing = useUpComing(),
8777
8825
  getAllNoteSession = _useUpComing.getAllNoteSession,
@@ -9152,7 +9200,7 @@ var ConductIndex = function ConductIndex() {
9152
9200
  informationUser: informationUser,
9153
9201
  partnerData: partnerData
9154
9202
  };
9155
- var avatarUrl = isTeacher ? informationUser.studentProfileImage : informationUser.teacherProfileImage;
9203
+ var avatarUrl = isTeacher ? informationUser.teacherProfileImage : informationUser.studentProfileImage;
9156
9204
 
9157
9205
  var clickOpenProfileDialog = function clickOpenProfileDialog() {
9158
9206
  var _refConduct$current;
@@ -9701,7 +9749,7 @@ var EndType;
9701
9749
  EndType["After"] = "After";
9702
9750
  })(EndType || (EndType = {}));
9703
9751
 
9704
- var useStyles$6 = styles$z.makeStyles(function (theme) {
9752
+ var useStyles$7 = styles$z.makeStyles(function (theme) {
9705
9753
  return {
9706
9754
  formControl: {
9707
9755
  margin: theme.spacing(1),
@@ -9718,7 +9766,7 @@ var Recurrence = function Recurrence(_ref) {
9718
9766
  handleClose = _ref.handleClose,
9719
9767
  applyValue = _ref.applyValue,
9720
9768
  selectedDate = _ref.selectedDate;
9721
- var classes = useStyles$6();
9769
+ var classes = useStyles$7();
9722
9770
 
9723
9771
  var _useState = React.useState(""),
9724
9772
  chooseEndDate = _useState[0],
@@ -9804,9 +9852,14 @@ var Recurrence = function Recurrence(_ref) {
9804
9852
  }));
9805
9853
  };
9806
9854
 
9807
- var handleGetDate = function handleGetDate() {
9855
+ var handleGetDate = function handleGetDate(isAfter) {
9808
9856
  var date = new Date(moment(selectedDate).format());
9809
- var nextDay = new Date(date.setDate(date.getDate() + 7 * recurrenceValue.repeatEveryCount - 7 + (_.parseInt(recurrenceValue.repeatOn) + (7 - date.getDay())) % 7));
9857
+ var nextDay = date;
9858
+
9859
+ if (recurrenceValue.repeatOn !== "") {
9860
+ isAfter ? nextDay = new Date(date.setDate(date.getDate() + 7 * recurrenceValue.repeatEveryCount)) : nextDay = new Date(date.setDate(date.getDate() + 7 * recurrenceValue.repeatEveryCount - 7 + (_.parseInt(recurrenceValue.repeatOn) + (7 - date.getDay())) % 7));
9861
+ }
9862
+
9810
9863
  var shortDate = nextDay.getDate() + " " + nextDay.toLocaleString("default", {
9811
9864
  month: "short"
9812
9865
  }) + " " + date.getFullYear();
@@ -9837,6 +9890,7 @@ var Recurrence = function Recurrence(_ref) {
9837
9890
  className: classes.formControl + " " + stylesOto["box-select"]
9838
9891
  }, React__default.createElement(core.Select, {
9839
9892
  "native": true,
9893
+ disabled: true,
9840
9894
  value: "week",
9841
9895
  inputProps: {
9842
9896
  name: "age",
@@ -9902,7 +9956,7 @@ var Recurrence = function Recurrence(_ref) {
9902
9956
  label: "After"
9903
9957
  }))), React__default.createElement(core.Grid, {
9904
9958
  className: "" + stylesOto["date-box"]
9905
- }, React__default.createElement(core.Typography, null, handleGetDate()), React__default.createElement(core.Typography, null, handleGetDate()))))), React__default.createElement(core.DialogActions, null, React__default.createElement(core.Button, {
9959
+ }, React__default.createElement(core.Typography, null, handleGetDate(true)), React__default.createElement(core.Typography, null, handleGetDate()))))), React__default.createElement(core.DialogActions, null, React__default.createElement(core.Button, {
9906
9960
  onClick: function onClick() {
9907
9961
  return handleClose();
9908
9962
  },
@@ -10629,7 +10683,7 @@ var SessionDetail = function SessionDetail() {
10629
10683
  learningSupportCategoryId: null,
10630
10684
  genereatedUntil: "",
10631
10685
  repeatOn: "",
10632
- sessionType: "General"
10686
+ time: dataSession && new Date(dataSession.bookedDate).getTime()
10633
10687
  }),
10634
10688
  data = _useState9[0],
10635
10689
  setData = _useState9[1];
@@ -11079,7 +11133,7 @@ var SessionDetail = function SessionDetail() {
11079
11133
  })))))));
11080
11134
  };
11081
11135
 
11082
- var useStyles$7 = styles$z.makeStyles(function () {
11136
+ var useStyles$8 = styles$z.makeStyles(function () {
11083
11137
  return {
11084
11138
  noBorder: {
11085
11139
  border: "none"
@@ -11090,7 +11144,7 @@ var useStyles$7 = styles$z.makeStyles(function () {
11090
11144
  var SessionResultComponent = function SessionResultComponent() {
11091
11145
  var _questionSummarize$, _questionSummarize$2, _questionSummarize$2$, _questionSummarize$3;
11092
11146
 
11093
- var classes = useStyles$7();
11147
+ var classes = useStyles$8();
11094
11148
  var dispatch = reactRedux.useDispatch();
11095
11149
 
11096
11150
  var _useConductOne = useConductOne(),
@@ -11128,6 +11182,8 @@ var SessionResultComponent = function SessionResultComponent() {
11128
11182
  inputValue = _React$useState3[0],
11129
11183
  setInputValue = _React$useState3[1];
11130
11184
 
11185
+ var avatarUrl = isTeacher ? informationUser.teacherProfileImage : informationUser.studentProfileImage;
11186
+
11131
11187
  var handleChange = function handleChange(event) {
11132
11188
  setInputValue(event.target.value);
11133
11189
  };
@@ -11276,12 +11332,14 @@ var SessionResultComponent = function SessionResultComponent() {
11276
11332
  }, (_questionSummarize$3 = questionSummarize[0]) === null || _questionSummarize$3 === void 0 ? void 0 : _questionSummarize$3.answer))), React__default.createElement("div", {
11277
11333
  className: styles$4["block-question"]
11278
11334
  }, React__default.createElement(QuestionConduct, {
11335
+ avatar: avatarUrl,
11279
11336
  questionName: "How are you feeling about each area right now?",
11280
11337
  questionList: questionRatings,
11281
11338
  isPageSessionResult: true
11282
11339
  })), React__default.createElement("div", {
11283
11340
  className: styles$4["block-question"] + " " + styles["question-today"]
11284
11341
  }, React__default.createElement(QuestionConduct, {
11342
+ avatar: avatarUrl,
11285
11343
  questionName: "Overall, how are you feeling today?",
11286
11344
  questionList: questionBlock2,
11287
11345
  isPageSessionResult: true
@@ -11315,6 +11373,7 @@ var SessionResultComponent = function SessionResultComponent() {
11315
11373
  }, React__default.createElement(TimelineIcon, null)), React__default.createElement("div", {
11316
11374
  className: styles$4["text-after"]
11317
11375
  }, React__default.createElement("p", null, "After session")))), React__default.createElement("div", null, React__default.createElement(QuestionConduct, {
11376
+ avatar: avatarUrl,
11318
11377
  questionName: "",
11319
11378
  questionList: questionBlock4,
11320
11379
  isPageSessionResult: true
@@ -13920,7 +13979,7 @@ var useGoalProgress = function useGoalProgress() {
13920
13979
  };
13921
13980
  };
13922
13981
 
13923
- var useStyles$8 = styles$z.makeStyles(function (theme) {
13982
+ var useStyles$9 = styles$z.makeStyles(function (theme) {
13924
13983
  return {
13925
13984
  root: {
13926
13985
  width: 300 + theme.spacing(3) * 2,
@@ -13936,7 +13995,7 @@ function CheckPoint(_ref) {
13936
13995
  status = _ref.status,
13937
13996
  isProgress = _ref.isProgress,
13938
13997
  target = _ref.target;
13939
- var classes = useStyles$8();
13998
+ var classes = useStyles$9();
13940
13999
  var PrettoSlider = styles$z.withStyles({
13941
14000
  root: {
13942
14001
  color: "#52af77",
@@ -14057,7 +14116,7 @@ var GoalProgress = function GoalProgress(_ref) {
14057
14116
  var _excluded$8 = ["children", "value", "index"];
14058
14117
  var DEFAULT_USER_AVATAR$6 = "/images/image-default.png";
14059
14118
  var screenWidth$1 = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
14060
- var useStyles$9 = styles$z.makeStyles(function () {
14119
+ var useStyles$a = styles$z.makeStyles(function () {
14061
14120
  var _span, _tabLabel;
14062
14121
 
14063
14122
  return {
@@ -14174,7 +14233,7 @@ var OverviewLeft = function OverviewLeft(props) {
14174
14233
  var history = reactRouterDom.useHistory();
14175
14234
  var partnerData = props.partnerData,
14176
14235
  studentId = props.studentId;
14177
- var classes = useStyles$9();
14236
+ var classes = useStyles$a();
14178
14237
 
14179
14238
  var _useState = React.useState(0),
14180
14239
  value = _useState[0],
@@ -15155,16 +15214,10 @@ var TopLearningStrategiesChart = function TopLearningStrategiesChart(studentId)
15155
15214
  open: Boolean(anchorEl),
15156
15215
  onClose: handleClose
15157
15216
  }, React__default.createElement(core.MenuItem, {
15158
- onClick: handleClose
15159
- }, React__default.createElement(UnfoldMoreIcon, {
15160
- className: "rotate-45"
15161
- }), " Expand"), React__default.createElement(core.MenuItem, {
15162
15217
  onClick: function onClick() {
15163
15218
  handleOpenDialog();
15164
15219
  }
15165
- }, React__default.createElement(AppsIcon, null), "View data"), React__default.createElement(core.MenuItem, {
15166
- onClick: handleClose
15167
- }, React__default.createElement(SaveIcon, null), " Export")))), React__default.createElement(LearningStrategyDialog, {
15220
+ }, React__default.createElement(AppsIcon, null), "View data")))), React__default.createElement(LearningStrategyDialog, {
15168
15221
  open: open,
15169
15222
  filters: filters,
15170
15223
  handleClose: handleCloseDialog,
@@ -22309,7 +22362,7 @@ var useNoteConferences = function useNoteConferences() {
22309
22362
  };
22310
22363
  };
22311
22364
 
22312
- var useStyles$a = styles$z.makeStyles(function () {
22365
+ var useStyles$b = styles$z.makeStyles(function () {
22313
22366
  return {
22314
22367
  noBorder: {
22315
22368
  border: "none"
@@ -22321,7 +22374,7 @@ var ResultConferenceRubric = function ResultConferenceRubric() {
22321
22374
  var _listLearningStratego;
22322
22375
 
22323
22376
  var dispatch = reactRedux.useDispatch();
22324
- var classes = useStyles$a();
22377
+ var classes = useStyles$b();
22325
22378
 
22326
22379
  var _useConferenceRubric = useConferenceRubric(),
22327
22380
  answerConferenceRubric = _useConferenceRubric.answerConferenceRubric,
@@ -29004,7 +29057,7 @@ var AccomondationList = function AccomondationList() {
29004
29057
  idItem = _useState2[0],
29005
29058
  setIdItem = _useState2[1];
29006
29059
 
29007
- var _useState3 = React.useState("IEF"),
29060
+ var _useState3 = React.useState("IEP"),
29008
29061
  typeItem = _useState3[0],
29009
29062
  setTypeItem = _useState3[1];
29010
29063
 
@@ -33899,7 +33952,7 @@ var useCardItem = function useCardItem(actionPoints) {
33899
33952
 
33900
33953
  var dispatch = reactRedux.useDispatch();
33901
33954
 
33902
- var _useState2 = React.useState(),
33955
+ var _useState2 = React.useState([]),
33903
33956
  data = _useState2[0],
33904
33957
  setData = _useState2[1];
33905
33958
 
@@ -33908,8 +33961,11 @@ var useCardItem = function useCardItem(actionPoints) {
33908
33961
  var _refConduct$current;
33909
33962
 
33910
33963
  !!actionPointId ? setActionId(actionPointId) : setActionId(0);
33911
- refConduct === null || refConduct === void 0 ? void 0 : (_refConduct$current = refConduct.current) === null || _refConduct$current === void 0 ? void 0 : _refConduct$current.openModal();
33912
- return Promise.resolve();
33964
+ return Promise.resolve(refConduct === null || refConduct === void 0 ? void 0 : (_refConduct$current = refConduct.current) === null || _refConduct$current === void 0 ? void 0 : _refConduct$current.getDataActionPoint(actionPointId)).then(function () {
33965
+ var _refConduct$current2;
33966
+
33967
+ refConduct === null || refConduct === void 0 ? void 0 : (_refConduct$current2 = refConduct.current) === null || _refConduct$current2 === void 0 ? void 0 : _refConduct$current2.openModal();
33968
+ });
33913
33969
  } catch (e) {
33914
33970
  return Promise.reject(e);
33915
33971
  }
@@ -33919,10 +33975,9 @@ var useCardItem = function useCardItem(actionPoints) {
33919
33975
  !!actionPoints && setData(actionPoints);
33920
33976
  }, [actionPoints]);
33921
33977
 
33922
- var handleChangeIsDone = function handleChangeIsDone(_id, index) {
33978
+ var handleChangeIsDone = function handleChangeIsDone(id) {
33923
33979
  try {
33924
- var result = !data[index].isDone;
33925
- return Promise.resolve(updateIsDone(dispatch, _id, result)).then(function () {});
33980
+ return Promise.resolve(updateIsDone(dispatch, id)).then(function () {});
33926
33981
  } catch (e) {
33927
33982
  return Promise.reject(e);
33928
33983
  }
@@ -33936,7 +33991,7 @@ var useCardItem = function useCardItem(actionPoints) {
33936
33991
  };
33937
33992
  };
33938
33993
 
33939
- var useStyles$b = core.makeStyles({
33994
+ var useStyles$c = core.makeStyles({
33940
33995
  root: {
33941
33996
  cursor: "pointer",
33942
33997
  display: "inline-flex",
@@ -33989,7 +34044,25 @@ var CardItem$1 = function CardItem(props) {
33989
34044
  data = _useCardItem.data,
33990
34045
  handleChangeIsDone = _useCardItem.handleChangeIsDone;
33991
34046
 
33992
- var classes = useStyles$b();
34047
+ var classes = useStyles$c();
34048
+
34049
+ var _useState = React.useState([]),
34050
+ copyData = _useState[0],
34051
+ setCopyData = _useState[1];
34052
+
34053
+ var changeCopyData = function changeCopyData(id) {
34054
+ var newData = copyData.map(function (item) {
34055
+ return _extends({}, item, {
34056
+ isDone: id === item.id ? !item.isDone : item.isDone
34057
+ });
34058
+ });
34059
+ setCopyData([].concat(newData));
34060
+ handleChangeIsDone(id);
34061
+ };
34062
+
34063
+ React.useEffect(function () {
34064
+ setCopyData(data);
34065
+ }, [data]);
33993
34066
  var refConduct = React.useRef();
33994
34067
  return React__default.createElement("div", {
33995
34068
  className: "" + styles$w["card-item"]
@@ -33999,7 +34072,7 @@ var CardItem$1 = function CardItem(props) {
33999
34072
  reloadRef: reloadRef
34000
34073
  }), React__default.createElement(core.Typography, {
34001
34074
  className: "" + styles$w["milestones"]
34002
- }, marioCore.utcToLocalTime(date, "Do MMMM yyyy")), !!data && data.map(function (i, index) {
34075
+ }, marioCore.utcToLocalTime(date, "Do MMMM yyyy")), !!copyData && copyData.map(function (i) {
34003
34076
  return React__default.createElement("div", {
34004
34077
  className: "" + styles$w["card-content"]
34005
34078
  }, React__default.createElement("div", {
@@ -34041,7 +34114,7 @@ var CardItem$1 = function CardItem(props) {
34041
34114
  control: React__default.createElement(core.Checkbox, {
34042
34115
  checked: i.isDone,
34043
34116
  onChange: function onChange() {
34044
- handleChangeIsDone(i.id, index);
34117
+ changeCopyData(i.id);
34045
34118
  },
34046
34119
  className: "checkbox-custom",
34047
34120
  classes: {
@@ -35142,6 +35215,11 @@ var EditBaseLine = function EditBaseLine(props) {
35142
35215
  setGoalBaseLineItem(tempItems);
35143
35216
  };
35144
35217
 
35218
+ var handleDeleteBaseLine = function handleDeleteBaseLine() {
35219
+ updateBaseLine(id, []);
35220
+ handleClose();
35221
+ };
35222
+
35145
35223
  return React__default.createElement(core.Dialog, {
35146
35224
  onClose: handleClose,
35147
35225
  "aria-labelledby": "simple-dialog-title",
@@ -35199,7 +35277,9 @@ var EditBaseLine = function EditBaseLine(props) {
35199
35277
  }))), React__default.createElement(core.Grid, {
35200
35278
  className: "" + styles$6["dialog-box-button"]
35201
35279
  }, React__default.createElement(core.Typography, {
35202
- onClick: handleClose,
35280
+ onClick: function onClick() {
35281
+ return handleDeleteBaseLine();
35282
+ },
35203
35283
  className: "" + styles$6["dialog-button-cancel"]
35204
35284
  }, "DELETE"), React__default.createElement(core.Grid, {
35205
35285
  onClick: function onClick() {