mario-teacher-student-client 9000.0.3 → 9000.0.4

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.
Files changed (28) hide show
  1. package/dist/components/Card/CardConfirm.d.ts +10 -0
  2. package/dist/components/Card/CardItem.d.ts +3 -2
  3. package/dist/components/Card/CardSwitch.d.ts +2 -1
  4. package/dist/components/Dialog/ConfirmDelete.d.ts +3 -0
  5. package/dist/components/Input/UploadFileImage.d.ts +3 -1
  6. package/dist/containers/AboutMyLearning/components/AboutMyLearningDialog.d.ts +4 -0
  7. package/dist/containers/AboutMyLearning/constants/type.d.ts +12 -0
  8. package/dist/containers/AboutMyLearning/hook/useAboutMyLearning.d.ts +13 -1
  9. package/dist/containers/Accommodation/constants/type.d.ts +3 -0
  10. package/dist/containers/Accommodation/hook/useAccommodation.d.ts +13 -0
  11. package/dist/containers/Goals/hook/useGoals.d.ts +1 -0
  12. package/dist/containers/LearningStrategies/hook/LearningStrategiesService.d.ts +2 -1
  13. package/dist/containers/LearningStrategies/hook/useEditLearningStrategies.d.ts +6 -2
  14. package/dist/containers/LearningStrategies/view/LearningStrategiesDialog.d.ts +1 -1
  15. package/dist/containers/PersonalLearningPlan/PersonalInterests/apiClient/personalInterestApi.d.ts +2 -0
  16. package/dist/containers/PersonalLearningPlan/PersonalInterests/components/ListPersonalInterestHook.d.ts +2 -0
  17. package/dist/containers/PersonalLearningPlan/PersonalInterests/services/personalInterestsService.d.ts +2 -0
  18. package/dist/containers/PersonalLearningPlan/components/PersonalLearningGoal/usePersonalInterest.d.ts +6 -0
  19. package/dist/containers/StrengthsAndChallenges/hook/useStrengthsChallenges.d.ts +7 -1
  20. package/dist/containers/ThingTeachersCanHelp/hook/useThingTeachersCanHelp.d.ts +1 -0
  21. package/dist/index.css +61 -37
  22. package/dist/index.js +877 -439
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.modern.js +877 -439
  25. package/dist/index.modern.js.map +1 -1
  26. package/dist/services/MyStudent.d.ts +1 -1
  27. package/dist/services/StrengthsChallenges.d.ts +2 -0
  28. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface CONFIRM_PROPS {
3
+ handleClose: Function;
4
+ handleDelete: Function;
5
+ open: boolean;
6
+ title?: string;
7
+ id?: number;
8
+ }
9
+ declare const CardConfirm: ({ handleClose, handleDelete, open, title, id }: CONFIRM_PROPS) => JSX.Element;
10
+ export default CardConfirm;
@@ -4,10 +4,11 @@ interface Props {
4
4
  description?: string;
5
5
  status?: string;
6
6
  id?: number;
7
- handleDelete: Function;
8
7
  handleEdit: Function;
9
8
  note?: boolean;
10
9
  contentWidth?: number;
10
+ titleDelete?: string;
11
+ handleDelete: Function;
11
12
  }
12
- declare const CardItem: ({ title, description, status, id, handleDelete, handleEdit, note, contentWidth }: Props) => JSX.Element;
13
+ declare const CardItem: ({ title, description, status, id, handleEdit, note, contentWidth, titleDelete, handleDelete }: Props) => JSX.Element;
13
14
  export default CardItem;
@@ -5,6 +5,7 @@ interface Props {
5
5
  handleClickOpen: Function;
6
6
  isAllowedEdit?: boolean;
7
7
  updateAllow: Function;
8
+ isTeacher?: boolean;
8
9
  }
9
- declare const CardSwitch: ({ title, handleClickOpen, isAllowedEdit, updateAllow }: Props) => JSX.Element;
10
+ declare const CardSwitch: ({ title, handleClickOpen, isAllowedEdit, updateAllow, isTeacher }: Props) => JSX.Element;
10
11
  export default CardSwitch;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ConfirmDelete: (props: any) => JSX.Element;
3
+ export default ConfirmDelete;
@@ -12,6 +12,8 @@ interface Props {
12
12
  data?: any;
13
13
  imageFileName?: any;
14
14
  imageFile?: any;
15
+ isCheckPoint?: boolean;
16
+ index?: number;
15
17
  }
16
- declare const UploadFileImage: ({ title, description, color, setFileImage, name, setFieldValue, data, handleSetNameFile, indexValue, imageFile }: Props) => JSX.Element;
18
+ declare const UploadFileImage: ({ title, description, color, setFileImage, name, setFieldValue, data, handleSetNameFile, indexValue, imageFile, isCheckPoint, index }: Props) => JSX.Element;
17
19
  export default UploadFileImage;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ABOUT_MY_LEARNING_DIALOG } from "../constants/type";
3
+ declare const AboutMyLearningDialog: (props: ABOUT_MY_LEARNING_DIALOG) => JSX.Element;
4
+ export default AboutMyLearningDialog;
@@ -5,3 +5,15 @@ export interface ABOUT_MY_LEARNING {
5
5
  type: string;
6
6
  sectionFields: any;
7
7
  }
8
+ export interface ABOUT_MY_LEARNING_DIALOG {
9
+ onClose: Function;
10
+ setOpen: Function;
11
+ selectedValue?: string;
12
+ open: boolean;
13
+ idItem?: number;
14
+ create: Function;
15
+ update: Function;
16
+ getById: Function;
17
+ dataItem: any;
18
+ setDataItem: any;
19
+ }
@@ -6,9 +6,21 @@ declare const useAboutMyLearning: () => {
6
6
  deleteById: (id: number) => Promise<void>;
7
7
  updateAllow: (data: any) => Promise<void>;
8
8
  listData: any;
9
- getOneData: any;
9
+ dataItem: {
10
+ title: string;
11
+ sectionFields: {
12
+ title: string;
13
+ }[];
14
+ };
10
15
  isAllowedEdit: boolean;
11
16
  setIsAllowedEdit: import("react").Dispatch<import("react").SetStateAction<boolean>>;
12
17
  studentId: any;
18
+ isTeacher: any;
19
+ setDataItem: import("react").Dispatch<import("react").SetStateAction<{
20
+ title: string;
21
+ sectionFields: {
22
+ title: string;
23
+ }[];
24
+ }>>;
13
25
  };
14
26
  export default useAboutMyLearning;
@@ -14,4 +14,7 @@ export interface SIMPLE_DIALOG_TYPE {
14
14
  update: Function;
15
15
  getById: Function;
16
16
  studentId: string;
17
+ dataItem: any;
18
+ typeItem: string;
19
+ setDataItem: any;
17
20
  }
@@ -9,5 +9,18 @@ declare const useAccommodation: () => {
9
9
  accommodationData: any;
10
10
  isAllowedEdit: boolean;
11
11
  studentId: any;
12
+ isTeacher: any;
13
+ dataItem: {
14
+ title: string;
15
+ description: string;
16
+ studentId: number;
17
+ type: number;
18
+ };
19
+ setDataItem: import("react").Dispatch<import("react").SetStateAction<{
20
+ title: string;
21
+ description: string;
22
+ studentId: number;
23
+ type: number;
24
+ }>>;
12
25
  };
13
26
  export default useAccommodation;
@@ -5,5 +5,6 @@ declare const useGoals: () => {
5
5
  listData: any;
6
6
  isAllowedEdit: boolean;
7
7
  setIsAllowedEdit: import("react").Dispatch<import("react").SetStateAction<boolean>>;
8
+ isTeacher: any;
8
9
  };
9
10
  export default useGoals;
@@ -5,7 +5,8 @@ declare const useLearningStrategy: () => {
5
5
  setGetOneData: import("react").Dispatch<any>;
6
6
  getAllow: (studentId: number) => Promise<void>;
7
7
  getOneData: any;
8
- toggleAllow: any;
8
+ toggleAllow: boolean;
9
+ setToggleAllow: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
10
  getById: (id: number, studentId: number) => Promise<void>;
10
11
  getAll: (filters: any) => Promise<void>;
11
12
  create: (data: any, studentId: string) => Promise<void>;
@@ -6,9 +6,13 @@ declare const useEditLearningStrategies: () => {
6
6
  learningStrategyData: any;
7
7
  handleDelete: (id: number) => Promise<void>;
8
8
  handleUpdateAllow: (e: boolean) => void;
9
- toggleAllow: any;
9
+ toggleAllow: boolean;
10
10
  studentId: any;
11
11
  getOneData: any;
12
- updateItem: () => void;
12
+ updateItem: () => Promise<void>;
13
+ handleOpenConfirmDeleteDialog: (id: number) => void;
14
+ handleCloseConfirmDeleteDialog: () => void;
15
+ openConfirmDelete: boolean;
16
+ idItem: any;
13
17
  };
14
18
  export default useEditLearningStrategies;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const DialogEditLearningStrategy: ({ id, handleClose, open, getOneData, handleChangeNote, handleDelete, updateItem, handleBestFit }: any) => JSX.Element;
2
+ declare const DialogEditLearningStrategy: ({ id, handleClose, open, getOneData, handleChangeNote, updateItem, handleBestFit, handleOpenConfirmDeleteDialog }: any) => JSX.Element;
3
3
  export default DialogEditLearningStrategy;
@@ -4,3 +4,5 @@ export declare const getDataPersonalInterestApi: (id: number) => Promise<import(
4
4
  export declare const editDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
5
5
  export declare const updateDataPersonalInterestApi: (id: number, body: any) => Promise<import("axios").AxiosResponse<any>>;
6
6
  export declare const deleteDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
7
+ export declare const allowEdit: (id: number, data: any) => Promise<import("axios").AxiosResponse<any>>;
8
+ export declare const getAllowEdit: (id: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -32,5 +32,7 @@ declare const usePersonalInterest: (studentId: number) => {
32
32
  onChangeSetDataEdit: (e: any) => void;
33
33
  onChangeSetDataEditNote: (e: any) => void;
34
34
  deleteDataItemEdit: () => Promise<void>;
35
+ isAllowedEdit: boolean;
36
+ updateAllowToEdit: (event: React.ChangeEvent<HTMLInputElement>) => void;
35
37
  };
36
38
  export default usePersonalInterest;
@@ -4,3 +4,5 @@ export declare const upDateDataPersonalInterest: (dispatch: any, idupdate: numbe
4
4
  export declare const deleteataPersonalInterest: (dispatch: any, iddelete: number) => Promise<void>;
5
5
  export declare const uploadFilePersonalInterest: (dispatch: any, file: string) => Promise<any>;
6
6
  export declare const editDataPersonalInterest: (dispatch: any, id: number) => Promise<any>;
7
+ export declare const updateAllow: (dispatch: any, studentId: any, data: any) => Promise<void>;
8
+ export declare const getAllow: (dispatch: any, studentId: any) => Promise<any>;
@@ -1,5 +1,11 @@
1
+ declare type AllowToEdit = {
2
+ PersonalInterest: boolean;
3
+ LearningStrategie: boolean;
4
+ };
1
5
  declare const usePersonalInterest: (studentId: number) => {
2
6
  listPersonalInterest: any;
3
7
  listLearningStrategories: any;
8
+ allowToEdit: AllowToEdit;
9
+ updateAllowToEdit: (event: React.ChangeEvent<HTMLInputElement>) => void;
4
10
  };
5
11
  export default usePersonalInterest;
@@ -1,8 +1,14 @@
1
1
  declare const useStrengthsChallenges: () => {
2
2
  strengthsChallengesData: any;
3
- getStrengthChallenge: (studentId: any) => Promise<void>;
3
+ getStrengthChallenge: () => Promise<void>;
4
4
  postStrengthChallenge: (formData: any) => Promise<void>;
5
5
  putStrengthChallenge: (id: any, formData: any) => Promise<void>;
6
6
  deleteStrengthChallenge: (id: any) => Promise<void>;
7
+ goBack: () => void;
8
+ isTeacher: any;
9
+ currentId: any;
10
+ studentId: any;
11
+ handleUpdateAllow: (event: React.ChangeEvent<HTMLInputElement>) => void;
12
+ isAllowedEdit: boolean;
7
13
  };
8
14
  export default useStrengthsChallenges;
@@ -10,5 +10,6 @@ declare const useThingTeachersCanHelp: () => {
10
10
  isAllowedEdit: boolean;
11
11
  setIsAllowedEdit: import("react").Dispatch<import("react").SetStateAction<boolean>>;
12
12
  studentId: any;
13
+ isTeacher: any;
13
14
  };
14
15
  export default useThingTeachersCanHelp;
package/dist/index.css CHANGED
@@ -344,9 +344,6 @@ p._1YLGi {
344
344
  @media (max-width: 1025px) {
345
345
  ._1DtTP ._2qhHZ ._3fJXr {
346
346
  display: none; } }
347
- @media (min-width: 1024px) {
348
- ._1DtTP ._1fpsj {
349
- width: 50%; } }
350
347
  ._1DtTP ._1fpsj ._2INhO {
351
348
  font-size: 16px;
352
349
  font-weight: 700;
@@ -6631,6 +6628,9 @@ h2._1KpSK {
6631
6628
  ._3_em5 ._1r6DT > p {
6632
6629
  margin-right: 5px; }
6633
6630
 
6631
+ ._QCm7u {
6632
+ color: red; }
6633
+
6634
6634
  @font-face {
6635
6635
  font-family: "Lato-Regular";
6636
6636
  src: url("/fonts/Lato-Regular.ttf");
@@ -6773,6 +6773,9 @@ h2._1KpSK {
6773
6773
  ._37y9j {
6774
6774
  margin: 20px 0; }
6775
6775
 
6776
+ ._2T-ZP {
6777
+ color: red; }
6778
+
6776
6779
  ._miWXB {
6777
6780
  padding: 24px 16px;
6778
6781
  display: flex;
@@ -7767,11 +7770,16 @@ button._kb6Ui {
7767
7770
  padding: 0 24px; }
7768
7771
  ._3BrUK h3 svg {
7769
7772
  cursor: pointer; }
7773
+ ._3BrUK ._1Nutt:hover {
7774
+ background: #22663e; }
7770
7775
  ._3BrUK ._4QvPn {
7771
7776
  font-size: 24px;
7772
7777
  font-weight: bold; }
7773
7778
  ._3BrUK ._19Tc8 {
7774
- padding: 16px; }
7779
+ padding: 16px;
7780
+ display: flex; }
7781
+ ._3BrUK ._19Tc8 > svg {
7782
+ margin-left: 5px; }
7775
7783
 
7776
7784
  ._26Nh9 {
7777
7785
  background: #efefef;
@@ -7790,7 +7798,8 @@ button._kb6Ui {
7790
7798
  ._26Nh9 ._3WDKx ._1CkZq {
7791
7799
  background: #308252;
7792
7800
  color: white;
7793
- padding: 0 24px; }
7801
+ padding: 0 24px;
7802
+ cursor: pointer; }
7794
7803
  ._26Nh9 ._4gDYn {
7795
7804
  display: flex;
7796
7805
  justify-content: space-between; }
@@ -7809,30 +7818,36 @@ button._kb6Ui {
7809
7818
  height: 32px;
7810
7819
  border-radius: 12px;
7811
7820
  align-items: center; }
7821
+ ._26Nh9 ._4gDYn div ._3yMlb > svg,
7822
+ ._26Nh9 ._4gDYn div ._1CkZq > svg {
7823
+ margin-left: 5px; }
7812
7824
  ._26Nh9 ._4gDYn div ._3yMlb {
7813
7825
  color: #e53e3e;
7814
7826
  padding: 0 10px;
7815
- border: 1px solid #e53e3e; }
7816
- ._26Nh9 .__6xEm div {
7827
+ border: 1px solid #e53e3e;
7828
+ cursor: pointer; }
7829
+ ._26Nh9 .__6xEm h4 {
7817
7830
  font-size: 16px;
7818
7831
  font-weight: bold; }
7819
7832
  ._26Nh9 .__6xEm p {
7820
7833
  font-size: 15px;
7821
7834
  font-weight: 500; }
7822
- ._26Nh9 ._1ax5- ._29V7x {
7823
- font-size: 16px;
7824
- font-weight: bold;
7825
- margin-bottom: 8px; }
7826
- ._26Nh9 ._1ax5- div {
7827
- flex-wrap: wrap;
7828
- display: flex; }
7829
- ._26Nh9 ._1ax5- div p {
7830
- background: #ebf8ff;
7831
- font-size: 13px;
7832
- padding: 5px 13px;
7833
- margin-right: 10px;
7834
- border-radius: 10px;
7835
- color: #0a4da2; }
7835
+ ._26Nh9 ._1ax5- {
7836
+ padding-left: 50px; }
7837
+ ._26Nh9 ._1ax5- ._29V7x {
7838
+ font-size: 16px;
7839
+ font-weight: bold;
7840
+ margin-bottom: 8px; }
7841
+ ._26Nh9 ._1ax5- div {
7842
+ flex-wrap: wrap;
7843
+ display: flex; }
7844
+ ._26Nh9 ._1ax5- div p {
7845
+ background: #ebf8ff;
7846
+ font-size: 13px;
7847
+ padding: 5px 13px;
7848
+ margin-right: 10px;
7849
+ border-radius: 10px;
7850
+ color: #0a4da2; }
7836
7851
 
7837
7852
  ._VflFq {
7838
7853
  font-weight: bold;
@@ -7881,7 +7896,10 @@ button._kb6Ui {
7881
7896
 
7882
7897
  ._PvIMZ {
7883
7898
  display: flex;
7884
- justify-content: flex-end; }
7899
+ justify-content: flex-end;
7900
+ background: #efefef; }
7901
+ ._PvIMZ ._2ogUR {
7902
+ margin-top: 10px; }
7885
7903
 
7886
7904
  ._21KWj {
7887
7905
  padding: 24px 16px;
@@ -7928,29 +7946,35 @@ button._kb6Ui {
7928
7946
  font-weight: bold;
7929
7947
  font-size: 20px;
7930
7948
  margin-top: 5px; }
7949
+ ._3skwb ._2A1eY {
7950
+ padding-left: 48px !important; }
7931
7951
  ._3skwb ._20EgS {
7932
7952
  margin-top: 10px; }
7933
- ._3skwb ._20EgS div {
7953
+ ._3skwb ._20EgS h4 {
7934
7954
  font-size: 16px;
7935
7955
  font-weight: bold; }
7956
+ ._3skwb ._20EgS p {
7957
+ font-size: 15px; }
7936
7958
  ._3skwb ._20EgS ._2OYUY {
7937
7959
  padding-bottom: 12px; }
7938
7960
  ._3skwb ._20EgS ._2PW5B {
7939
7961
  background-color: #EDF2F7; }
7940
- ._3skwb ._3FzHK ._3vhrw {
7941
- font-size: 16px;
7942
- font-weight: bold;
7943
- margin-bottom: 8px; }
7944
- ._3skwb ._3FzHK div {
7945
- flex-wrap: wrap;
7946
- display: flex; }
7947
- ._3skwb ._3FzHK div p {
7948
- background: #EBF8FF;
7949
- font-size: 13px;
7950
- padding: 5px 13px;
7951
- margin-right: 10px;
7952
- border-radius: 10px;
7953
- color: #0A4DA2; }
7962
+ ._3skwb ._3FzHK {
7963
+ margin-left: 50px; }
7964
+ ._3skwb ._3FzHK ._3vhrw {
7965
+ font-size: 16px;
7966
+ font-weight: bold;
7967
+ margin-bottom: 8px; }
7968
+ ._3skwb ._3FzHK div {
7969
+ flex-wrap: wrap;
7970
+ display: flex; }
7971
+ ._3skwb ._3FzHK div p {
7972
+ background: #EBF8FF;
7973
+ font-size: 13px;
7974
+ padding: 5px 13px;
7975
+ margin-right: 10px;
7976
+ border-radius: 10px;
7977
+ color: #0A4DA2; }
7954
7978
 
7955
7979
  ._3qmW0 {
7956
7980
  display: flex;