mario-education 2.4.252-release → 2.4.253-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.
Files changed (31) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/components/Select/Autocomplete.d.ts +2 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/ImportOneRoster.d.ts +6 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/RosterConfigForm.d.ts +8 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useImportOneRoster.d.ts +28 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/userRosterConfigForm.d.ts +7 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/constants.d.ts +2 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/types.d.ts +5 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/views/OneRoster.d.ts +3 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/AdditionalComponent.d.ts +2 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/AnswerList.d.ts +1 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/SliderScale.d.ts +2 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/constants.d.ts +5 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/type.d.ts +5 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +3 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/Questions/AdditionalQuestionModel.d.ts +1 -1
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/StepComponents/CreateSurveyComponent.d.ts +1 -1
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/questionModelType.d.ts +1 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts +2 -0
  19. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useAdditionalQuestion.d.ts +1 -0
  20. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useCreateSurvey.d.ts +1 -0
  21. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useListFavoriteSurvey.d.ts +1 -1
  22. package/dist/MarioFramework.Education/ClientApp/src/services/questionService.d.ts +1 -0
  23. package/dist/MarioFramework.Education/ClientApp/src/utils/function.d.ts +3 -0
  24. package/dist/index.css +5338 -5300
  25. package/dist/index.js +272 -76
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.modern.js +292 -96
  28. package/dist/index.modern.js.map +1 -1
  29. package/package.json +104 -104
  30. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/dialog/DialogChooseTeacher.d.ts +0 -10
  31. package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useAdditionalQuestionModel.d.ts +0 -5
@@ -0,0 +1,2 @@
1
+ declare const Autocomplete: () => JSX.Element;
2
+ export default Autocomplete;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ errorImportRest?: string | null;
4
+ }
5
+ declare const ImportOneRoster: FC<Props>;
6
+ export default ImportOneRoster;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { ROSTER_CONFIG } from "../utils/types";
3
+ interface Props {
4
+ rosterConfig: ROSTER_CONFIG;
5
+ updateData: Function;
6
+ }
7
+ declare const RosterConfigForm: FC<Props>;
8
+ export default RosterConfigForm;
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ interface UploadInfo {
3
+ error?: string;
4
+ success?: boolean;
5
+ isUploading?: boolean;
6
+ importedFiles?: string;
7
+ rejectedFiles?: string;
8
+ comment?: string;
9
+ }
10
+ declare const useImportOneRoster: ({ errorImportRest }: {
11
+ errorImportRest: any;
12
+ }) => {
13
+ inputRef: React.RefObject<HTMLInputElement>;
14
+ fileProgress: number;
15
+ uploadInfo: UploadInfo | undefined;
16
+ uploadIcon: JSX.Element | undefined;
17
+ uploadMessage: JSX.Element | undefined;
18
+ importIcon: JSX.Element | undefined;
19
+ importMessage: JSX.Element | undefined;
20
+ restApiInfo: object | undefined;
21
+ restApiProgress: JSX.Element[] | undefined;
22
+ setFileProgress: React.Dispatch<React.SetStateAction<number>>;
23
+ handleFileChange: () => Promise<void>;
24
+ importRosterZipFile: (file: File) => Promise<void>;
25
+ handleChooseZipFile: () => void;
26
+ handleImportFromRestfulApi: () => Promise<void>;
27
+ };
28
+ export default useImportOneRoster;
@@ -0,0 +1,7 @@
1
+ import { ROSTER_CONFIG } from "../utils/types";
2
+ declare const useRosterConfigForm: () => {
3
+ rosterConfig: ROSTER_CONFIG;
4
+ errorImportRest: string | null;
5
+ updateData: (values: any) => Promise<void>;
6
+ };
7
+ export default useRosterConfigForm;
@@ -0,0 +1,2 @@
1
+ export declare const CSV_FILE_NAMES: string[];
2
+ export declare const INVALID_CLIENT_ROSTER_CONFIG = "Response status code does not indicate success: 403 ().";
@@ -0,0 +1,5 @@
1
+ export declare type ROSTER_CONFIG = {
2
+ clientId: string;
3
+ clientSecret: string;
4
+ endPointUrl: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const OneRoster: () => JSX.Element;
3
+ export default OneRoster;
@@ -1,7 +1,9 @@
1
1
  import { FC } from "react";
2
+ import { IQuestionLabel } from "../configs/type";
2
3
  interface Props {
3
4
  values: any;
4
5
  setFieldValue: any;
6
+ labelQuestions?: IQuestionLabel;
5
7
  }
6
8
  declare const AdditionalComponent: FC<Props>;
7
9
  export default AdditionalComponent;
@@ -5,6 +5,7 @@ interface Props {
5
5
  setFieldValue: () => any;
6
6
  isSurvey: boolean;
7
7
  isMultipleChoice?: boolean;
8
+ answerLabels: string[];
8
9
  }
9
10
  declare const AnswerList: FC<Props>;
10
11
  export default AnswerList;
@@ -3,6 +3,8 @@ interface Props {
3
3
  fromLabel: string;
4
4
  toLabel: string;
5
5
  setFieldValue: any;
6
+ fromLabels: string[];
7
+ toLabels: string[];
6
8
  }
7
9
  declare const _default: React.NamedExoticComponent<Props>;
8
10
  export default _default;
@@ -9,3 +9,8 @@ export declare const userForQuestion: {
9
9
  value: string;
10
10
  label: string;
11
11
  }[];
12
+ export declare const initialLabelQuestions: {
13
+ choiceLabels: never[];
14
+ fromLabels: never[];
15
+ toLabels: never[];
16
+ };
@@ -0,0 +1,5 @@
1
+ export interface IQuestionLabel {
2
+ choiceLabels: string[];
3
+ fromLabels: string[];
4
+ toLabels: string[];
5
+ }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { IQuestionLabel } from "../configs/type";
2
3
  declare type Answer = {
3
4
  text: string;
4
5
  isCorrectAnswer: boolean;
@@ -35,5 +36,7 @@ declare const useQuestionDetail: (id?: number | undefined, type?: number | undef
35
36
  edited: boolean;
36
37
  setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
37
38
  setEditedTrue: () => Promise<void>;
39
+ handleGetLabelQuestions: (questionType: any) => Promise<void>;
40
+ labelQuestions: IQuestionLabel;
38
41
  };
39
42
  export default useQuestionDetail;
@@ -1,3 +1,3 @@
1
1
  import { IQuestionModel } from "../../configs/questionModelType";
2
- declare const AdditionalQuestionModel: ({ open, onClose, additionalQuestionForm, onChangeAdditionalQuestion, onAddAdditionalQuestion, onRemoveAdditionalQuestion, onEditAdditionalQuestion, onChangeAdditionalType, onCheckFormConfirm, onAddAnswerQuestion, onRemoveAnswer, onSelectOptionSingleChoice, onCheckSelectOptionSingleChoice, onRecordChangeQuestionText, formTextList, toTextList, onChangeAdditionalRatingQuestion }: IQuestionModel) => JSX.Element;
2
+ declare const AdditionalQuestionModel: ({ open, onClose, additionalQuestionForm, onChangeAdditionalQuestion, onAddAdditionalQuestion, onRemoveAdditionalQuestion, onEditAdditionalQuestion, onChangeAdditionalType, onCheckFormConfirm, onAddAnswerQuestion, onRemoveAnswer, onSelectOptionSingleChoice, onCheckSelectOptionSingleChoice, onRecordChangeQuestionText, questionAdditionalType, formTextList, toTextList, onChangeAdditionalRatingQuestion }: IQuestionModel) => JSX.Element;
3
3
  export default AdditionalQuestionModel;
@@ -1,3 +1,3 @@
1
1
  import { CREATE_SURVEY_PROPS } from "../../configs/types";
2
- declare const CreateSurveyComponent: ({ dataFormCreateSurvey, onChangeValueForm, onRecordChangeTitle, handleChangeDate, handleChangeFavorite, templateSurvey, handleToggleModel, openModelSelectTemplate, handleSelectTemplate, openCollapseId, setOpenCollapseId, handleInsertQuestion, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion, handleCheckSelectQuestion, handleSelectQuestionCollapse, handleCheckTypeQuestion, handleCheckCountQuestionByType, handleCheckInsertQuestion, handleCheckSelectTemplate, handleInsertAllQuestion, favoriteItem, handleDuplicateSurvey, handleAddAdditionalQuestion, handleChangeAdditionalQuestion, handleRecordChangeQuestionText, handleRemoveAdditionalQuestion, handleEditAdditionalQuestion, handleFindAdditionalQuestion, handleToggleModelAdditional, openModelAdditional, additionalQuestionForm, handleChangeAdditionalType, handleCheckFormConfirm, handleAddAnswerQuestion, handleRemoveAnswer, filterFavorite, handleSortTableFavorite, handleChangeRowsPerPageFavorite, handleChangePageFavorite, handleSelectOptionSingleChoice, handleCheckSelectOptionSingleChoice, formTextList, toTextList, handleChangeAdditionalRatingQuestion }: CREATE_SURVEY_PROPS) => JSX.Element;
2
+ declare const CreateSurveyComponent: ({ dataFormCreateSurvey, onChangeValueForm, onRecordChangeTitle, handleChangeDate, handleChangeFavorite, templateSurvey, handleToggleModel, openModelSelectTemplate, handleSelectTemplate, openCollapseId, setOpenCollapseId, handleInsertQuestion, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion, handleCheckSelectQuestion, handleSelectQuestionCollapse, handleCheckTypeQuestion, handleCheckCountQuestionByType, handleCheckInsertQuestion, handleCheckSelectTemplate, handleInsertAllQuestion, favoriteItem, handleDuplicateSurvey, handleAddAdditionalQuestion, handleChangeAdditionalQuestion, handleRecordChangeQuestionText, handleRemoveAdditionalQuestion, handleEditAdditionalQuestion, handleFindAdditionalQuestion, handleToggleModelAdditional, openModelAdditional, additionalQuestionForm, handleChangeAdditionalType, handleCheckFormConfirm, handleAddAnswerQuestion, handleRemoveAnswer, filterFavorite, handleSortTableFavorite, handleChangeRowsPerPageFavorite, handleChangePageFavorite, handleSelectOptionSingleChoice, handleCheckSelectOptionSingleChoice, formTextList, toTextList, handleChangeAdditionalRatingQuestion, questionAdditionalType }: CREATE_SURVEY_PROPS) => JSX.Element;
3
3
  export default CreateSurveyComponent;
@@ -17,6 +17,7 @@ export interface IQuestionModel {
17
17
  formTextList?: string[];
18
18
  toTextList?: string[];
19
19
  onChangeAdditionalRatingQuestion?: Function;
20
+ questionAdditionalType?: any;
20
21
  }
21
22
  export interface IAnswer {
22
23
  text: string;
@@ -612,6 +612,7 @@ export interface HOOK_FAVORITE_PROPS {
612
612
  setDataFormCreateSurvey: Function;
613
613
  handleresetFilterStudent?: Function;
614
614
  handleresetFilterStaff?: Function;
615
+ students?: STUDENT_SURVEY_RESPONSE;
615
616
  }
616
617
  export interface STAFF_SURVEY {
617
618
  email: string;
@@ -693,6 +694,7 @@ export interface CREATE_SURVEY_PROPS {
693
694
  formTextList?: string[];
694
695
  toTextList?: string[];
695
696
  handleChangeAdditionalRatingQuestion?: Function;
697
+ questionAdditionalType?: any;
696
698
  }
697
699
  export interface REVIEW_SURVEY_PROPS {
698
700
  dataFormCreateSurvey: FORM_SURVEY;
@@ -27,5 +27,6 @@ declare const useAdditionalQuestion: ({ setAdditionalQuestionForm, dataFormCreat
27
27
  formTextList: string[];
28
28
  toTextList: string[];
29
29
  handleChangeAdditionalRatingQuestion: (key: string, value: string) => void;
30
+ questionAdditionalType: any;
30
31
  };
31
32
  export default useAdditionalQuestion;
@@ -95,5 +95,6 @@ declare const useListSurveyDetail: () => {
95
95
  formTextList: string[];
96
96
  toTextList: string[];
97
97
  handleChangeAdditionalRatingQuestion: (key: string, value: string) => void;
98
+ questionAdditionalType: any;
98
99
  };
99
100
  export default useListSurveyDetail;
@@ -1,5 +1,5 @@
1
1
  import { FILTER_SURVEY, HOOK_FAVORITE_PROPS, SURVEY_RESPONSE } from "../configs/types";
2
- declare const useListFavoriteSurvey: ({ setDataFormCreateSurvey, handleresetFilterStudent, handleresetFilterStaff }: HOOK_FAVORITE_PROPS) => {
2
+ declare const useListFavoriteSurvey: ({ setDataFormCreateSurvey, handleresetFilterStudent, handleresetFilterStaff, students }: HOOK_FAVORITE_PROPS) => {
3
3
  filterFavorite: FILTER_SURVEY;
4
4
  favoriteItem: SURVEY_RESPONSE | undefined;
5
5
  handleChangeRowsPerPageFavorite: (event: React.ChangeEvent<HTMLInputElement>) => void;
@@ -6,3 +6,4 @@ export declare const update: (data: any, type: number) => Promise<import("axios"
6
6
  export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
7
7
  export declare const getDefaultQuestions: () => Promise<import("axios").AxiosResponse<any>>;
8
8
  export declare const updateOrderDragQuestions: (data: any, isDefaulClassReflection: any) => Promise<import("axios").AxiosResponse<any>>;
9
+ export declare const getLabelQuestions: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,3 @@
1
+ export declare const convertText: (text: string) => string;
2
+ export declare const convertKeyTranslate: (text: string) => string;
3
+ export declare const convertKeyTranslateHtmlTag: (text: string) => string;