mario-education 2.4.575-feedback → 2.4.577-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.
@@ -10,6 +10,10 @@ interface PROPS_TABLE {
10
10
  listTableCell: TABLE_CELL[];
11
11
  filters: FILTER_SURVEY;
12
12
  handleSort?: Function;
13
+ hasCheckbox?: boolean;
14
+ dataSelect?: any[];
15
+ selectedIds?: number[];
16
+ handleSelectAll?: any;
13
17
  }
14
- declare const TableCells: ({ listTableCell, filters, handleSort }: PROPS_TABLE) => JSX.Element;
18
+ declare const TableCells: ({ listTableCell, filters, handleSort, hasCheckbox, dataSelect, selectedIds, handleSelectAll }: PROPS_TABLE) => JSX.Element;
15
19
  export default TableCells;
@@ -1,4 +1,4 @@
1
- export declare const HEADER_DESKTOP_HEIGHT = 57;
1
+ export declare const HEADER_DESKTOP_HEIGHT = 68;
2
2
  export declare const HEADER_MOBILE_HEIGHT = 55;
3
3
  export declare const NOTIFICATION_HEIGHT = 36;
4
4
  export declare const NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
@@ -33,6 +33,8 @@ interface PROPS_FILTER {
33
33
  onChangeOptionDate?: Function;
34
34
  renderOption?: string;
35
35
  isSelectMulti?: boolean;
36
+ handleOpenModalDelete?: any;
37
+ selectedIds?: number[];
36
38
  }
37
- declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, }: PROPS_FILTER) => JSX.Element;
39
+ declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, handleOpenModalDelete, selectedIds }: PROPS_FILTER) => JSX.Element;
38
40
  export default CustomFilterComponent;
@@ -32,3 +32,4 @@ export declare const getResponsesDistribution: (surveyId: number, params: any) =
32
32
  export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
33
33
  export declare const getRatingLabelSurvey: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
34
34
  export declare const getAnswerChart: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
35
+ export declare const deleteSelectedSurveyApi: (ids: number[]) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare type IProps = {
3
+ isOpen: boolean;
4
+ onClose: Function;
5
+ handleDelete: () => Promise<void>;
6
+ selectedIds: number[];
7
+ };
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;
@@ -53,5 +53,12 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
53
53
  handleChangeStudent: (studentId?: number | undefined) => void;
54
54
  onEditSurvey: (id: number) => void;
55
55
  handlePublishSurvey: (surveyId: any) => Promise<void>;
56
+ selectedIds: number[];
57
+ handleToggleSelect: (id: number) => void;
58
+ handleSelectAll: (checked: boolean) => void;
59
+ handleDeleteSelected: () => Promise<void>;
60
+ handleOpenModalDelete: () => void;
61
+ openSelectedModal: boolean;
62
+ handleCloseModalDelete: () => void;
56
63
  };
57
64
  export default useListSurvey;