mario-education 2.4.440-release → 2.4.442-release

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.
@@ -7,6 +7,7 @@ interface Props {
7
7
  teacherUserId?: string;
8
8
  placeholder?: string;
9
9
  isDeleted?: boolean;
10
+ connectionString?: string;
10
11
  }
11
12
  export interface Student {
12
13
  studentId: number;
@@ -42,6 +42,8 @@ export interface ITopLearningStrategy {
42
42
  }
43
43
  export interface IReadinessToLearning {
44
44
  questionText: string;
45
+ templateName: string;
46
+ avr: number;
45
47
  studentPercentQuestion: IStudentPercentQuestion[];
46
48
  }
47
49
  export interface ISeries {
@@ -18,16 +18,16 @@ export declare const downloadTemplateFile: () => Promise<import("axios").AxiosRe
18
18
  export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
19
19
  export declare const deleteSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
20
20
  export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
21
- export declare const getListQuestionSurvey: (params: any, surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
21
+ export declare const getListQuestionSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
22
22
  export declare const getSurveyDetail: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
23
23
  export declare const getDashboardTotalSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
24
24
  export declare const getDashboardFlagSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
25
25
  export declare const getDashboardTemplateSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
26
26
  export declare const getSurveysExport: (filter: FILTER_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
27
27
  export declare const getStudentSurveysExport: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
28
- export declare const getRatingsOfQuestions: (surveyId: number, isExternal: boolean) => Promise<import("axios").AxiosResponse<any>>;
29
- export declare const getTotalByQuestion: (surveyId: number, questionId: number, isExternal: boolean) => Promise<import("axios").AxiosResponse<any>>;
30
- export declare const getResponsesDistribution: (surveyId: number, isExternal: boolean) => Promise<import("axios").AxiosResponse<any>>;
28
+ export declare const getRatingsOfQuestions: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
29
+ export declare const getTotalByQuestion: (surveyId: number, questionId: number) => Promise<import("axios").AxiosResponse<any>>;
30
+ export declare const getResponsesDistribution: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
31
31
  export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
32
32
  export declare const getRatingLabelSurvey: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
33
- export declare const getAnswerChart: (surveyId: number, isExternalSurvey: boolean, isQuestionDropDown: boolean) => Promise<import("axios").AxiosResponse<any>>;
33
+ export declare const getAnswerChart: (surveyId: number, isQuestionDropDown: boolean) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,3 +1 @@
1
- export default function AllQuestionSurvey({ tabIndex }: {
2
- tabIndex: number;
3
- }): JSX.Element;
1
+ export default function AllQuestionSurvey(): JSX.Element;
@@ -1,3 +1,3 @@
1
- import { IBarChartQuestionAnswers } from "../configs/types";
2
- declare const AnswerQuestionInput: ({ response, onChangeOption, questionAnswers }: IBarChartQuestionAnswers) => JSX.Element;
1
+ import { IAnswerQuestionInput } from "../configs/types";
2
+ declare const AnswerQuestionInput: ({ handleClickCollapse, openIndexField, setOpenIndexField, questionsByCategoryField, categoryFieldChose, setCategoryFieldChose, categoriesField }: IAnswerQuestionInput) => JSX.Element;
3
3
  export default AnswerQuestionInput;
@@ -1,3 +1,3 @@
1
1
  import { IBarChartQuestionAnswers } from "../configs/types";
2
- declare const BarChartQuestionAnswers: ({ response, isFullScreen, onChangeOption, questionAnswers }: IBarChartQuestionAnswers) => JSX.Element;
2
+ declare const BarChartQuestionAnswers: ({ response, isFullScreen, onChangeOption, questionAnswers, categoryDropdownOptions, categoryDropdownChose, setCategoryDropdownChose }: IBarChartQuestionAnswers) => JSX.Element;
3
3
  export default BarChartQuestionAnswers;
@@ -1,3 +1,3 @@
1
1
  import { IRatingOfQuestions } from "../configs/types";
2
- declare const RatingOfQuestions: ({ avgQuestionRating, selectQuestion, ratingQuestions, totalByQuestion, setSelectQuestion, generateAvrByQuestion, questionRatingConvert, activeColumnQuestionRating, onActiveColumnQuestionRating, onToggleResponseModel, isExternal }: IRatingOfQuestions) => JSX.Element;
2
+ declare const RatingOfQuestions: ({ avgQuestionRating, ratingQuestions, totalByQuestion, setSelectQuestion, generateAvrByQuestion, questionRatingConvert, activeColumnQuestionRating, onActiveColumnQuestionRating, onToggleResponseModel, isExternal, categoryRatingChose, setCategoryRatingChose, questionRatingResponseSelected, setQuestionRatingResponseSelected, categoriesOptions, categoryRatingResponseChose, setCategoryRatingResponseChose, questionRatingSelected, setQuestionRatingSelected, }: IRatingOfQuestions) => JSX.Element;
3
3
  export default RatingOfQuestions;
@@ -1,5 +1,4 @@
1
1
  import { IStudentByAge, ITopMostSurveyUsed, FlagTab, FilterStudentFlag } from "./types";
2
- import { ITab } from "../../../utils/type";
3
2
  import { IAnswer } from "./questionModelType";
4
3
  export declare const colors: string[];
5
4
  export declare const INITIAL_BEST_FRIENDS: {
@@ -81,7 +80,6 @@ export declare const initialFilterSurvey: {
81
80
  sortOrder: string;
82
81
  };
83
82
  export declare const ratingOfQuestionColors: string[];
84
- export declare const surveyDetailTabs: ITab[];
85
83
  export declare const tooltipLabel = "you_can_only_select_number_kpis_at_a_time_To_select_a_new_one_please_switch_off_one_of_the_previous_ones";
86
84
  export declare enum FLAG_TYPES {
87
85
  RED = 0,
@@ -138,9 +138,14 @@ export declare const tableResponseSurvey: {
138
138
  sortName: null;
139
139
  align: string;
140
140
  }[];
141
- export declare const tableAllQuestionSurvey: {
141
+ export declare const tableAllQuestionSurvey: ({
142
142
  name: string;
143
143
  tableWidth: number;
144
144
  sortName: null;
145
145
  align: string;
146
- }[];
146
+ } | {
147
+ name: string;
148
+ tableWidth: number;
149
+ sortName: string;
150
+ align: string;
151
+ })[];
@@ -407,10 +407,12 @@ export interface DETAIL {
407
407
  status: string;
408
408
  studentIds: number[];
409
409
  title: string;
410
+ externalCount: number;
410
411
  }
411
412
  export interface IQuestionDto {
412
413
  questionId: number;
413
414
  text: string;
415
+ templateName: string;
414
416
  }
415
417
  export interface IQuestionResponse {
416
418
  questionId: number;
@@ -494,7 +496,19 @@ export interface IRatingOfQuestions {
494
496
  questionRatingConvert: string[];
495
497
  activeColumnQuestionRating: boolean[];
496
498
  onActiveColumnQuestionRating: Function;
499
+ setActiveColumnQuestionRating: Function;
500
+ categoryRatingChose: string;
501
+ setCategoryRatingChose: Function;
502
+ questionRatingResponseSelected: any;
503
+ setQuestionRatingResponseSelected: Function;
504
+ categoriesOptions: any[];
505
+ setCategoriesOptions: Function;
506
+ categoryRatingResponseChose: string;
507
+ setCategoryRatingResponseChose: Function;
508
+ questionRatingSelected: any[];
509
+ setQuestionRatingSelected: Function;
497
510
  isExternal?: boolean;
511
+ flag?: boolean;
498
512
  }
499
513
  export interface IConductSurveyModel {
500
514
  open: boolean;
@@ -778,6 +792,21 @@ export interface IBarChartQuestionAnswers {
778
792
  response: IBarChartQuestion | null;
779
793
  onChangeOption: Function;
780
794
  questionAnswers: IBarChartQuestion[];
795
+ categoryDropdownOptions: string[];
796
+ categoryDropdownChose: string;
797
+ setCategoryDropdownChose: Function;
798
+ }
799
+ export interface IAnswerQuestionInput {
800
+ isFullScreen: boolean;
801
+ handleClickCollapse: Function;
802
+ openIndexField: number[];
803
+ setOpenIndexField: Function;
804
+ questionsByCategoryField: any[];
805
+ setQuestionsByCategoryField: Function;
806
+ categoryFieldChose: string;
807
+ setCategoryFieldChose: Function;
808
+ categoriesField: any[];
809
+ setCategoriesField: Function;
781
810
  }
782
811
  export interface IAnswers {
783
812
  name: string;
@@ -793,7 +822,9 @@ export interface IStudentAnswers {
793
822
  export interface IBarChartQuestion {
794
823
  id: number;
795
824
  name: string;
825
+ category: string;
796
826
  answers: IAnswers[];
827
+ templateName: string;
797
828
  studentAnswers: IStudentAnswers[];
798
829
  }
799
830
  export {};
@@ -1,8 +1,8 @@
1
- import { FILTER_SURVEY, QUESTION_SURVEY_LIST } from "../configs/types";
2
- declare const useListQuestionSurvey: (tabIndex: number) => {
3
- questionSurvey: QUESTION_SURVEY_LIST | undefined;
4
- filterQuestion: FILTER_SURVEY;
5
- handleChangePage: (_event: unknown, newPage: number) => void;
6
- handleChangeRowsPerPage: (event: React.ChangeEvent<HTMLInputElement>) => void;
1
+ /// <reference types="react" />
2
+ declare const useListQuestionSurvey: () => {
3
+ categoryChose: any;
4
+ setCategoryChose: import("react").Dispatch<any>;
5
+ categories: any[];
6
+ questionsByCategory: any[];
7
7
  };
8
8
  export default useListQuestionSurvey;
@@ -23,13 +23,38 @@ declare const useSurveyDetail: () => {
23
23
  distributionQuestions: string[];
24
24
  activeColumnDistribution: boolean[];
25
25
  handleActiveColumnDistribution: (index: number) => void;
26
- tabIndex: number;
27
- handelSwitchTab: (tab: number) => void;
28
26
  barChartQuestions: IBarChartQuestion[];
29
27
  response: IBarChartQuestion | null;
30
- handelChangeOption: (value: IBarChartQuestion) => void;
31
- responseTextInput: IBarChartQuestion | null;
28
+ handelChangeOption: (value: IBarChartQuestion | null) => void;
32
29
  textInputQuestions: IBarChartQuestion[];
33
- handelChangeOptionTextInput: (value: IBarChartQuestion) => void;
30
+ setCategoryChose: import("react").Dispatch<import("react").SetStateAction<string>>;
31
+ categoryChose: string;
32
+ categoryComparisonsOptions: string[];
33
+ handleStopSelect: () => void;
34
+ questionSelected: any[];
35
+ setQuestionSelected: import("react").Dispatch<import("react").SetStateAction<any[]>>;
36
+ setActiveColumnQuestionRating: import("react").Dispatch<import("react").SetStateAction<boolean[]>>;
37
+ handleClickCollapse: (idx: number) => void;
38
+ openIndexField: number[];
39
+ setOpenIndexField: import("react").Dispatch<import("react").SetStateAction<number[]>>;
40
+ questionsByCategoryField: IBarChartQuestion[];
41
+ setQuestionsByCategoryField: import("react").Dispatch<import("react").SetStateAction<IBarChartQuestion[]>>;
42
+ categoryFieldChose: string;
43
+ setCategoryFieldChose: import("react").Dispatch<import("react").SetStateAction<string>>;
44
+ categoriesField: string[];
45
+ setCategoriesField: import("react").Dispatch<import("react").SetStateAction<string[]>>;
46
+ categoryRatingChose: string;
47
+ setCategoryRatingChose: import("react").Dispatch<import("react").SetStateAction<string>>;
48
+ questionRatingResponseSelected: any;
49
+ setQuestionRatingResponseSelected: import("react").Dispatch<any>;
50
+ categoriesOptions: string[];
51
+ setCategoriesOptions: import("react").Dispatch<import("react").SetStateAction<string[]>>;
52
+ categoryRatingResponseChose: string;
53
+ setCategoryRatingResponseChose: import("react").Dispatch<import("react").SetStateAction<string>>;
54
+ questionRatingSelected: any[];
55
+ setQuestionRatingSelected: import("react").Dispatch<import("react").SetStateAction<any[]>>;
56
+ categoryDropdownOptions: string[];
57
+ categoryDropdownChose: string;
58
+ setCategoryDropdownChose: import("react").Dispatch<import("react").SetStateAction<string>>;
34
59
  };
35
60
  export default useSurveyDetail;