mario-teacher-student-client 2.1.128-admin → 2.1.130-admin

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 (27) hide show
  1. package/dist/components/Header/CustomHeaderComponent.d.ts +2 -1
  2. package/dist/components/layouts/LanguageDropdown.d.ts +3 -0
  3. package/dist/components/selector/CheckboxCustom.d.ts +12 -0
  4. package/dist/containers/ActionPoint/components/Dialogs/hooks/useDialogRequest.d.ts +3 -3
  5. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useLearningStrategies.d.ts +0 -2
  6. package/dist/containers/MyStudent/hooks/useOverview.d.ts +0 -2
  7. package/dist/containers/PLP/hooks/usePlpPage.d.ts +0 -2
  8. package/dist/containers/Surveys/apiClient/surveyService.d.ts +4 -0
  9. package/dist/containers/Surveys/components/ChartOverview/BarChart.d.ts +9 -0
  10. package/dist/containers/Surveys/components/ChartOverview/components/BarAndAreaChart.d.ts +10 -0
  11. package/dist/containers/Surveys/components/ChartOverview/components/BarChart.d.ts +9 -0
  12. package/dist/containers/Surveys/components/ChartOverview/components/ChoiceChartType.d.ts +10 -0
  13. package/dist/containers/Surveys/components/ChartOverview/components/PieChart.d.ts +8 -0
  14. package/dist/containers/Surveys/components/ChartOverview/view/ChartViewDashboard.d.ts +18 -0
  15. package/dist/containers/Surveys/components/Overview.d.ts +3 -0
  16. package/dist/containers/Surveys/constants/chartOptions.d.ts +4 -0
  17. package/dist/containers/Surveys/constants/constant.d.ts +10 -0
  18. package/dist/containers/Surveys/constants/overviewFn.d.ts +16 -0
  19. package/dist/containers/Surveys/constants/types.d.ts +35 -1
  20. package/dist/containers/Surveys/hook/useOverviewSurvey.d.ts +14 -0
  21. package/dist/containers/Surveys/views/SurveyOverview.d.ts +3 -0
  22. package/dist/index.css +6 -5
  23. package/dist/index.js +443 -314
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.modern.js +443 -314
  26. package/dist/index.modern.js.map +1 -1
  27. package/package.json +1 -1
@@ -11,6 +11,7 @@ interface headerProps {
11
11
  isDisableButton?: boolean;
12
12
  isPreviewSurvey?: boolean;
13
13
  onHandleGoBack?: Function;
14
+ borderNone?: boolean;
14
15
  }
15
- declare const CustomHeaderComponent: ({ title, contentButton, iconButton, isGoback, isGreyBackground, status, handleChangePage, isDisableButton, isPreviewSurvey, handlePreview, onHandleGoBack }: headerProps) => JSX.Element;
16
+ declare const CustomHeaderComponent: ({ title, contentButton, iconButton, isGoback, isGreyBackground, status, handleChangePage, isDisableButton, isPreviewSurvey, handlePreview, onHandleGoBack, borderNone }: headerProps) => JSX.Element;
16
17
  export default CustomHeaderComponent;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const LanguageDropdown: () => JSX.Element;
3
+ export default LanguageDropdown;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ interface IProps {
3
+ background?: string;
4
+ width?: number;
5
+ height?: number;
6
+ isActive?: boolean;
7
+ className?: string;
8
+ props?: any;
9
+ onClick?: () => void;
10
+ }
11
+ declare const CheckboxCustom: FC<IProps>;
12
+ export default CheckboxCustom;
@@ -22,11 +22,11 @@ declare const useDialogRequest: (_props: PropsType, ref: any) => {
22
22
  handleChangeNotiCount: (e: React.ChangeEvent<{
23
23
  value: unknown;
24
24
  }>) => void;
25
- handleCreate: (cb?: Function | undefined) => Promise<void>;
25
+ handleCreate: (cb?: Function | undefined, cbGetEventCalendar?: Function | undefined) => Promise<void>;
26
26
  handleClickClose: () => void;
27
27
  handleCheckbox: (e: React.ChangeEvent<HTMLInputElement>) => void;
28
- submitUpdate: (cb?: Function | undefined) => Promise<void>;
29
- handleDeleteItem: (cb?: Function | undefined) => Promise<void>;
28
+ submitUpdate: (cb?: Function | undefined, cbGetEventCalendar?: Function | undefined) => Promise<void>;
29
+ handleDeleteItem: (cb?: Function | undefined, cbGetEventCalendar?: Function | undefined) => Promise<void>;
30
30
  handleCloseNoti: () => void;
31
31
  setNotiSetting: React.Dispatch<React.SetStateAction<string>>;
32
32
  notiSetting: string;
@@ -5,8 +5,6 @@ declare const useLearningStrategies: (studentId: any, filterDateChart: any) => {
5
5
  pageSize: number;
6
6
  sortBy: string;
7
7
  sortOrder: string;
8
- startDate: any;
9
- endDate: any;
10
8
  };
11
9
  changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
12
10
  learningStrategiesData: any;
@@ -26,8 +26,6 @@ declare const useOverview: (studentId: number) => {
26
26
  pageSize: number;
27
27
  sortBy: string;
28
28
  sortOrder: string;
29
- startDate: any;
30
- endDate: any;
31
29
  };
32
30
  changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
33
31
  handleActiveColumnOneToOne: (index: any) => void;
@@ -25,8 +25,6 @@ declare const usePlpPage: () => {
25
25
  pageSize: number;
26
26
  sortBy: string;
27
27
  sortOrder: string;
28
- startDate: any;
29
- endDate: any;
30
28
  };
31
29
  changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
32
30
  handleActiveColumnOneToOne: (index: any) => void;
@@ -1,3 +1,4 @@
1
+ import { FILTER_OVERVIEW_SURVEY } from "../constants/types";
1
2
  export declare const getStudentList: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
2
3
  export declare const getTemplateSurvey: () => Promise<import("axios").AxiosResponse<any>>;
3
4
  export declare const createSurvey: (model: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -13,3 +14,6 @@ export declare const shareSurvey: (data: any) => void;
13
14
  export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
14
15
  export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
15
16
  export declare const getSurveyDetail: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
17
+ export declare const getDashboardTotalSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
18
+ export declare const getDashboardFlagSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
19
+ export declare const getDashboardTemplateSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../../constants/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ }
8
+ declare const BarChart: FC<IProps>;
9
+ export default BarChart;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../../../constants/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ isHasLineChart: boolean;
8
+ }
9
+ declare const BarAndAreaChart: FC<IProps>;
10
+ export default BarAndAreaChart;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../../../constants/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ }
8
+ declare const BarChart: FC<IProps>;
9
+ export default BarChart;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { TYPECHART } from "../../../constants/constant";
3
+ import { IChartOptions } from "../../../constants/types";
4
+ interface IChoiceChartType {
5
+ onChangeChart: Function;
6
+ typeChart?: TYPECHART[];
7
+ options: IChartOptions[];
8
+ }
9
+ declare const ChoiceChartType: ({ onChangeChart, typeChart, options }: IChoiceChartType) => JSX.Element;
10
+ export default ChoiceChartType;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { IDashboardFlag } from "../../../constants/types";
3
+ interface IProps {
4
+ data?: IDashboardFlag;
5
+ name: string;
6
+ }
7
+ declare const PieChart: FC<IProps>;
8
+ export default PieChart;
@@ -0,0 +1,18 @@
1
+ import { FC } from "react";
2
+ import { IChartOptions, ISeries } from "../../../constants/types";
3
+ import { TYPECHART } from "../../../constants/constant";
4
+ export interface IProps {
5
+ data: any;
6
+ typeChart: TYPECHART[];
7
+ onActiveColumn?: Function;
8
+ activeColumn: boolean[];
9
+ series: ISeries[];
10
+ avg?: number[];
11
+ months: any;
12
+ onChangeChart?: Function;
13
+ optionType?: IChartOptions[];
14
+ name: string;
15
+ isHiddenLabel?: boolean;
16
+ }
17
+ declare const ChartViewDashboard: FC<IProps>;
18
+ export default ChartViewDashboard;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Overview: () => JSX.Element;
3
+ export default Overview;
@@ -0,0 +1,4 @@
1
+ import { ApexOptions } from "apexcharts";
2
+ export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
3
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
4
+ export declare const pieChartOptions: ApexOptions;
@@ -63,3 +63,13 @@ export declare const initialAdditionalQuestion: {
63
63
  textAnswer: string;
64
64
  };
65
65
  export declare const charactersRandom = "0123456789";
66
+ export declare const COLOR_CHART_AND_PERCENTS: string[];
67
+ export declare enum TYPECHART {
68
+ AREA = 0,
69
+ BAR = 1,
70
+ LINE = 2,
71
+ BOTH = 3
72
+ }
73
+ export declare const COLOR_CHART_AND_PIE: string[];
74
+ export declare const optionTotalSurvey: string[];
75
+ export declare const LABEL_NAME_PIE_CHART: string[];
@@ -0,0 +1,16 @@
1
+ import { DASHBOARD_TEMPLATE, ISeries, TOTAL_DASHBOAD_SURVEY } from "./types";
2
+ export declare const handleViewSeriesActive: (active: boolean[]) => number[];
3
+ export declare const convertDataToDataChart: (data: DASHBOARD_TEMPLATE[]) => string[];
4
+ export declare const convertToSeriesTemplate: (data: DASHBOARD_TEMPLATE[]) => {
5
+ name: string;
6
+ data: number[];
7
+ }[];
8
+ export declare const convertToSeriesTotal: (data: TOTAL_DASHBOAD_SURVEY[]) => {
9
+ name: string;
10
+ data: number[];
11
+ }[];
12
+ export declare const mergeBarChartAndArea: (series: ISeries[], isHasLineChart: boolean) => {
13
+ type: string;
14
+ name: string;
15
+ data: number[];
16
+ }[];
@@ -1,4 +1,4 @@
1
- import { QuestionType } from "./constant";
1
+ import { QuestionType, TYPECHART } from "./constant";
2
2
  import { QUESTION_ADDITIONAL } from "./questionModelType";
3
3
  export interface FILTER_SURVEY {
4
4
  currentPage: number;
@@ -12,6 +12,11 @@ export interface FILTER_SURVEY {
12
12
  isFavorite?: boolean;
13
13
  type?: number;
14
14
  }
15
+ export interface FILTER_OVERVIEW_SURVEY {
16
+ searchString: string;
17
+ startDate: number;
18
+ endDate: number;
19
+ }
15
20
  export interface SURVEY_LIST {
16
21
  id: number;
17
22
  title: string;
@@ -306,3 +311,32 @@ export interface FAVORITE_PROPS {
306
311
  export interface HOOK_FAVORITE_PROPS {
307
312
  setDataFormCreateSurvey: Function;
308
313
  }
314
+ export interface NUMBER_SURVEY {
315
+ numberTotalSurveyDone: number;
316
+ numberTotalSurveyNotDone: number;
317
+ }
318
+ export interface TOTAL_DASHBOAD_SURVEY {
319
+ month: string;
320
+ numberSurveys: NUMBER_SURVEY;
321
+ }
322
+ export interface ISurveyTemplate {
323
+ avgTemplateSurvey: number;
324
+ templateName: string;
325
+ }
326
+ export interface DASHBOARD_TEMPLATE {
327
+ month: string;
328
+ surveyTemplate: ISurveyTemplate[];
329
+ }
330
+ export interface ISeries {
331
+ name: string;
332
+ data: number[];
333
+ }
334
+ export interface IChartOptions {
335
+ value: TYPECHART;
336
+ label: string;
337
+ }
338
+ export interface IDashboardFlag {
339
+ numberSurveyBlue?: number;
340
+ numberSurveyRed?: number;
341
+ numberSurveyYellow?: number;
342
+ }
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { DASHBOARD_TEMPLATE, FILTER_OVERVIEW_SURVEY, IDashboardFlag, TOTAL_DASHBOAD_SURVEY } from "../constants/types";
3
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
4
+ declare const useOverviewSurvey: () => {
5
+ inputSearch: import("react").MutableRefObject<any>;
6
+ filters: FILTER_OVERVIEW_SURVEY;
7
+ handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
8
+ handleChangeStartDate: (date: MaterialUiPickersDate | null) => void;
9
+ handleChangeEndDate: (date: MaterialUiPickersDate | null) => void;
10
+ totalSurvey: TOTAL_DASHBOAD_SURVEY[];
11
+ templateSurveyDashboard: DASHBOARD_TEMPLATE[];
12
+ surveyFlagData: IDashboardFlag | undefined;
13
+ };
14
+ export default useOverviewSurvey;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SurveyOverview: () => JSX.Element;
3
+ export default SurveyOverview;
package/dist/index.css CHANGED
@@ -3119,7 +3119,7 @@ h2._1OAmb {
3119
3119
  margin-top: 10px; }
3120
3120
  ._gOdCz ._smLhQ ._1MX_1 {
3121
3121
  overflow: auto;
3122
- max-height: 20vh; }
3122
+ height: 20vh; }
3123
3123
  ._gOdCz ._smLhQ ._1MX_1 ._3tmRq {
3124
3124
  display: flex;
3125
3125
  align-items: center;
@@ -4775,8 +4775,7 @@ h2._1OAmb {
4775
4775
  min-height: 180px;
4776
4776
  height: 100%;
4777
4777
  max-height: 100vh;
4778
- overflow: scroll;
4779
- overflow-x: hidden; }
4778
+ overflow: auto; }
4780
4779
  ._S0bRu ._2z0d_ {
4781
4780
  font-size: 16px;
4782
4781
  font-style: normal;
@@ -13911,7 +13910,9 @@ h2._1KpSK {
13911
13910
  ._1VfS9 ._3s-7D {
13912
13911
  display: flex;
13913
13912
  width: 100%;
13914
- justify-content: flex-end; }
13913
+ justify-content: flex-start;
13914
+ margin-bottom: 20px;
13915
+ margin-left: 10px; }
13915
13916
 
13916
13917
  ._1MqAT ._2cDXH {
13917
13918
  display: flex;
@@ -13922,7 +13923,7 @@ h2._1KpSK {
13922
13923
  margin-right: 20px; }
13923
13924
  ._1MqAT ._2cDXH ._3C3be ._1fkiB, ._1MqAT ._2cDXH ._JeKAW ._1fkiB {
13924
13925
  margin-bottom: 0 !important;
13925
- font-size: 18px;
13926
+ font-size: 15px;
13926
13927
  margin-right: 10px;
13927
13928
  color: #242424; }
13928
13929