mario-education 2.4.522-feedback → 2.4.523-feedback

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.
@@ -14,6 +14,7 @@ interface headerProps {
14
14
  classFontSize: string;
15
15
  button?: any;
16
16
  isLarge?: boolean;
17
+ onDraft?: Function | null;
17
18
  }
18
- declare const CustomHeaderComponent: ({ title, contentButton, iconButton, isGoback, isGreyBackground, status, handleChangePage, isDisableButton, isPreviewSurvey, handlePreview, onHandleGoBack, borderNone, classFontSize, button, isLarge }: headerProps) => JSX.Element;
19
+ declare const CustomHeaderComponent: ({ title, contentButton, iconButton, isGoback, isGreyBackground, status, handleChangePage, isDisableButton, isPreviewSurvey, handlePreview, onHandleGoBack, borderNone, classFontSize, button, isLarge, onDraft }: headerProps) => JSX.Element;
19
20
  export default CustomHeaderComponent;
@@ -16,6 +16,7 @@ export declare const shareSurvey: (data: any) => void;
16
16
  export declare const importCsv: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
17
17
  export declare const downloadTemplateFile: () => Promise<import("axios").AxiosResponse<any>>;
18
18
  export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
19
+ export declare const publishSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
19
20
  export declare const deleteSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
20
21
  export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
21
22
  export declare const getListQuestionSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,3 +1,3 @@
1
1
  import { CARD_ITEM_PROPS } from "../../configs/typeCardItem";
2
- declare const CardSurveyMobile: ({ surveyName, students, status, id, statusDetail, avatar, customItemName, customItemIcon, colorStatusDetail, customIconStatus, handleClickAction }: CARD_ITEM_PROPS) => JSX.Element;
2
+ declare const CardSurveyMobile: ({ surveyName, students, status, id, statusDetail, avatar, customItemName, customItemIcon, colorStatusDetail, customIconStatus, handleClickAction, isDraft }: CARD_ITEM_PROPS) => JSX.Element;
3
3
  export default CardSurveyMobile;
@@ -14,4 +14,5 @@ export interface CARD_ITEM_PROPS {
14
14
  customItemIcon?: HTMLProps<HTMLButtonElement>;
15
15
  customIconStatus?: HTMLProps<HTMLButtonElement>;
16
16
  handleClickAction?: any;
17
+ isDraft?: boolean;
17
18
  }
@@ -298,6 +298,7 @@ export interface SURVEY_LIST {
298
298
  createdBy: string;
299
299
  studentIds?: number[];
300
300
  anonymousKey: string;
301
+ isDraft: boolean;
301
302
  }
302
303
  export interface FILTER_OVERVIEW_SURVEY {
303
304
  startDate: number;
@@ -598,6 +599,7 @@ export interface FORM_SURVEY {
598
599
  studentIds: number[];
599
600
  staffIds: string[];
600
601
  summarizeQuestions: QuestionSummarizeType[];
602
+ id?: number;
601
603
  }
602
604
  export interface STUDENT_SURVEY {
603
605
  email: string;
@@ -637,6 +639,7 @@ export interface HOOK_FAVORITE_PROPS {
637
639
  handleresetFilterStudent?: Function;
638
640
  handleresetFilterStaff?: Function;
639
641
  students?: STUDENT_SURVEY_RESPONSE;
642
+ favoriteId?: number;
640
643
  }
641
644
  export interface STAFF_SURVEY {
642
645
  email: string;
@@ -25,7 +25,7 @@ declare const useListSurveyDetail: () => {
25
25
  setOpenModelSelectTemplate: import("react").Dispatch<import("react").SetStateAction<boolean>>;
26
26
  handleInsertQuestion: () => void;
27
27
  handleToggleButtonHeader: () => boolean;
28
- handleCreateSurvey: () => Promise<void>;
28
+ handleCreateSurvey: (isDraft?: boolean | undefined) => Promise<void>;
29
29
  handleCloseModelEdit: () => void;
30
30
  setContentModelQuestion: import("react").Dispatch<import("react").SetStateAction<CONTENT_MODEL_QUESTION>>;
31
31
  handleSelectQuestion: (question: import("../configs/types").QUESTION_TEMPLATE) => void;
@@ -1,5 +1,5 @@
1
1
  import { FILTER_SURVEY, HOOK_FAVORITE_PROPS, SURVEY_RESPONSE } from "../configs/types";
2
- declare const useListFavoriteSurvey: ({ setDataFormCreateSurvey, handleresetFilterStudent, handleresetFilterStaff, students }: HOOK_FAVORITE_PROPS) => {
2
+ declare const useListFavoriteSurvey: ({ setDataFormCreateSurvey, handleresetFilterStudent, handleresetFilterStaff, students, favoriteId }: HOOK_FAVORITE_PROPS) => {
3
3
  filterFavorite: FILTER_SURVEY;
4
4
  favoriteItem: SURVEY_RESPONSE | undefined;
5
5
  handleChangeRowsPerPageFavorite: (event: React.ChangeEvent<HTMLInputElement>) => void;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { FILTER_SURVEY, SURVEY_RESPONSE, TOTAL_TYPE } from "../configs/types";
2
+ import { FILTER_SURVEY, SURVEY_LIST, SURVEY_RESPONSE, TOTAL_TYPE } from "../configs/types";
3
3
  import { TYPE_SURVEY_OPTION } from "../configs/constants";
4
4
  import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
5
5
  declare const useListSurvey: (pageSize?: number | undefined) => {
6
- itemSelectedId: number;
6
+ itemSelected: SURVEY_LIST | null;
7
7
  itemSelectedStudentId: number;
8
8
  changeFilters: (updatedFilters: any) => void;
9
9
  filters: FILTER_SURVEY;
@@ -32,7 +32,7 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
32
32
  anchorEl: HTMLButtonElement | null;
33
33
  popoverId: string | undefined;
34
34
  openPopover: boolean;
35
- handleClickAction: (event: React.MouseEvent<HTMLButtonElement>, id: number, studentId?: number | undefined) => void;
35
+ handleClickAction: (event: React.MouseEvent<HTMLButtonElement>, survey: SURVEY_LIST, studentId?: number | undefined) => void;
36
36
  handleCloseAction: () => void;
37
37
  handleDownloadCsv: () => void;
38
38
  handleDownloadCsvSurvey: (id: number) => void;
@@ -49,5 +49,7 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
49
49
  goToSurveyList: () => void;
50
50
  handleChangeGrade: (grade: string) => void;
51
51
  onChangeOptionDate: (option: string) => void;
52
+ onEditSurvey: (id: number) => void;
53
+ handlePublishSurvey: (surveyId: any) => Promise<void>;
52
54
  };
53
55
  export default useListSurvey;
package/dist/index.css CHANGED
@@ -5154,6 +5154,11 @@ h6._3zOGW {
5154
5154
  color: #242424 !important;
5155
5155
  }
5156
5156
 
5157
+ ._32Wr6._5PwwG {
5158
+ background: #EEE8A9 !important;
5159
+ color: #242424 !important;
5160
+ }
5161
+
5157
5162
  ._2WxS_ {
5158
5163
  padding: 4px 20px !important;
5159
5164
  border-radius: 70px;