mario-education 2.4.107-beta → 2.4.109-beta
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.
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/AgGridComponents.d.ts +0 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/constants.d.ts +0 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/apiClient/index.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/SelectorTemplate.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/TemplateDialogModal.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/configs/types.d.ts +12 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateBuilder.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateDetail.d.ts +20 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateList.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateStart.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateBuilderPage.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateContainer.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateIEPList.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateStartBuild.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateSystemList.d.ts +3 -0
- package/dist/index.js +23 -126
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +23 -126
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchCounselor/hooks/useSwitchAssistant.d.ts +0 -18
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/components/SwitchCounselorModal.d.ts +0 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/hooks/useSwitchCounselor.d.ts +0 -18
- /package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +0 -0
|
@@ -8,5 +8,4 @@ export declare const renderQuestionText: (params: any) => JSX.Element;
|
|
|
8
8
|
export declare const renderActions: ({ params, edit, remove }: ActionProps) => JSX.Element;
|
|
9
9
|
export declare const renderCategory: (params: any) => JSX.Element;
|
|
10
10
|
export declare const renderType: (params: any) => JSX.Element;
|
|
11
|
-
export declare const renderUserQuestion: (params: any) => JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -24,7 +24,6 @@ declare type QuestionDetail = {
|
|
|
24
24
|
subQuestions: string[];
|
|
25
25
|
isBeforeSession: boolean;
|
|
26
26
|
isDefaultQuestionSurvey: boolean;
|
|
27
|
-
userForQuestion?: string;
|
|
28
27
|
};
|
|
29
28
|
declare const useQuestionDetail: (id?: number | undefined, type?: number | undefined) => {
|
|
30
29
|
questionDetail: QuestionDetail;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/apiClient/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const get: (filter?: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
|
+
export declare const getById: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
export declare const getAllTemplatePage: (isTemplateIEP: boolean) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
|
+
export declare const updateTemplatePage: (templateId: number, subTemplateId: number) => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/configs/types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum TypeEnumTemplate {
|
|
2
|
+
Default = 0,
|
|
3
|
+
Header = 1,
|
|
4
|
+
Footer = 2,
|
|
5
|
+
Page = 3
|
|
6
|
+
}
|
|
7
|
+
export declare const typeNameTemplate: string[];
|
|
8
|
+
export declare const arrListTemplates: {
|
|
9
|
+
id: TypeEnumTemplate;
|
|
10
|
+
label: string;
|
|
11
|
+
value: TypeEnumTemplate;
|
|
12
|
+
}[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TypeEnumTemplate } from "../configs/types";
|
|
2
|
+
declare type TemplateDetail = {
|
|
3
|
+
name: string;
|
|
4
|
+
type: TypeEnumTemplate;
|
|
5
|
+
};
|
|
6
|
+
declare const useTemplateBuilder: (templateId: number) => {
|
|
7
|
+
templateDetail: TemplateDetail;
|
|
8
|
+
};
|
|
9
|
+
export default useTemplateBuilder;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypeEnumTemplate } from "../configs/types";
|
|
3
|
+
declare type TemplateDetail = {
|
|
4
|
+
name: string;
|
|
5
|
+
type: TypeEnumTemplate;
|
|
6
|
+
isTemplateIEP: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const useTemplateDetail: (isTemplateIEP: boolean) => {
|
|
9
|
+
id: number;
|
|
10
|
+
setId: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
11
|
+
templateDetail: TemplateDetail;
|
|
12
|
+
confirmData: (values: any, cb: any) => Promise<void>;
|
|
13
|
+
initValue: TemplateDetail;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
edited: boolean;
|
|
16
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
setEditedTrue: () => Promise<void>;
|
|
18
|
+
setEditedFalse: () => Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
export default useTemplateDetail;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const useTemplateList: (isTemplateIEP: boolean) => {
|
|
2
|
+
templateList: never[];
|
|
3
|
+
totalItems: number;
|
|
4
|
+
filters: import("mario-core").Filter;
|
|
5
|
+
changeFilters: (updatedFilters: any) => void;
|
|
6
|
+
getData: () => Promise<void>;
|
|
7
|
+
removeData: (id: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export default useTemplateList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const useTemplateStart: (isTemplateIEP: boolean) => {
|
|
2
|
+
templateList: never[];
|
|
3
|
+
getData: () => Promise<void>;
|
|
4
|
+
subTemplateId: number;
|
|
5
|
+
templateName: string;
|
|
6
|
+
onClickTemplate: (templateId: number, templateName: string) => void;
|
|
7
|
+
onUpdateTemplate: (subTemplateId: number) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export default useTemplateStart;
|
package/dist/index.js
CHANGED
|
@@ -19,9 +19,9 @@ var masterDetail = require('@ag-grid-enterprise/master-detail');
|
|
|
19
19
|
var clientSideRowModel = require('@ag-grid-community/client-side-row-model');
|
|
20
20
|
var fa = require('react-icons/fa');
|
|
21
21
|
var tinymceReact = require('@tinymce/tinymce-react');
|
|
22
|
-
var fi = require('react-icons/fi');
|
|
23
22
|
var Chart = _interopDefault(require('react-apexcharts'));
|
|
24
23
|
require('react-datepicker/dist/react-datepicker.css');
|
|
24
|
+
var fi = require('react-icons/fi');
|
|
25
25
|
var jsPDF = _interopDefault(require('jspdf'));
|
|
26
26
|
var html2canvas = _interopDefault(require('html2canvas'));
|
|
27
27
|
|
|
@@ -12708,17 +12708,6 @@ var TYPE_QUESTION;
|
|
|
12708
12708
|
TYPE_QUESTION[TYPE_QUESTION["Survey"] = 4] = "Survey";
|
|
12709
12709
|
})(TYPE_QUESTION || (TYPE_QUESTION = {}));
|
|
12710
12710
|
|
|
12711
|
-
var userForQuestion = [{
|
|
12712
|
-
value: "TeacherAndStudent",
|
|
12713
|
-
label: "Teacher and student"
|
|
12714
|
-
}, {
|
|
12715
|
-
value: "Teacher",
|
|
12716
|
-
label: "Teacher"
|
|
12717
|
-
}, {
|
|
12718
|
-
value: "Student",
|
|
12719
|
-
label: "Student"
|
|
12720
|
-
}];
|
|
12721
|
-
|
|
12722
12711
|
var subgridStyle = {
|
|
12723
12712
|
overflowY: "auto",
|
|
12724
12713
|
overflowX: "hidden",
|
|
@@ -12841,19 +12830,12 @@ var renderCategory = function renderCategory(params) {
|
|
|
12841
12830
|
return React__default.createElement("div", null, params === null || params === void 0 ? void 0 : (_params$data8 = params.data) === null || _params$data8 === void 0 ? void 0 : (_params$data8$categor = _params$data8.category) === null || _params$data8$categor === void 0 ? void 0 : _params$data8$categor.name);
|
|
12842
12831
|
};
|
|
12843
12832
|
var renderType = function renderType(params) {
|
|
12844
|
-
var _params$data10;
|
|
12845
|
-
|
|
12846
12833
|
var type = marioCore.QUESTION_TYPES_OPTIONS.find(function (option) {
|
|
12847
12834
|
var _params$data9;
|
|
12848
12835
|
|
|
12849
12836
|
return option.value === (params === null || params === void 0 ? void 0 : (_params$data9 = params.data) === null || _params$data9 === void 0 ? void 0 : _params$data9.type);
|
|
12850
12837
|
});
|
|
12851
|
-
return type ? React__default.createElement("div", null, type.label) : React__default.createElement("div", null
|
|
12852
|
-
};
|
|
12853
|
-
var renderUserQuestion = function renderUserQuestion(params) {
|
|
12854
|
-
var _params$data11;
|
|
12855
|
-
|
|
12856
|
-
return React__default.createElement("div", null, params === null || params === void 0 ? void 0 : (_params$data11 = params.data) === null || _params$data11 === void 0 ? void 0 : _params$data11.userForQuestion);
|
|
12838
|
+
return type ? React__default.createElement("div", null, type.label) : React__default.createElement("div", null);
|
|
12857
12839
|
};
|
|
12858
12840
|
|
|
12859
12841
|
var QUESTION_URL$1 = "/admin/question-bank";
|
|
@@ -12921,12 +12903,6 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
12921
12903
|
dispatch(marioCore.setLoading(true));
|
|
12922
12904
|
|
|
12923
12905
|
var _temp4 = _catch(function () {
|
|
12924
|
-
var filter = filters;
|
|
12925
|
-
|
|
12926
|
-
if (!!isDefaultClassReflection && !isDefaultQuestion) {
|
|
12927
|
-
delete filter.isDefaultQuestion;
|
|
12928
|
-
}
|
|
12929
|
-
|
|
12930
12906
|
return Promise.resolve(get$2(filters)).then(function (res) {
|
|
12931
12907
|
var _res$data = res.data,
|
|
12932
12908
|
items = _res$data.items,
|
|
@@ -13019,7 +12995,7 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
13019
12995
|
|
|
13020
12996
|
if (isDefaultQuestion && !isDefaultClassReflection) {
|
|
13021
12997
|
type = TYPE_QUESTION.OneToOne;
|
|
13022
|
-
} else if (isDefaultClassReflection) {
|
|
12998
|
+
} else if (isDefaultQuestion && isDefaultClassReflection) {
|
|
13023
12999
|
type = TYPE_QUESTION.ClassReflection;
|
|
13024
13000
|
} else if (isDefaultConference) {
|
|
13025
13001
|
type = TYPE_QUESTION.Conference;
|
|
@@ -13054,47 +13030,24 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
13054
13030
|
cellRendererFramework: function cellRendererFramework(params) {
|
|
13055
13031
|
return renderCategory(params);
|
|
13056
13032
|
}
|
|
13033
|
+
}, {
|
|
13034
|
+
width: 80,
|
|
13035
|
+
headerComponentParams: {
|
|
13036
|
+
template: "<div class=\"text-center w-100\">Actions</div>"
|
|
13037
|
+
},
|
|
13038
|
+
cellStyle: {
|
|
13039
|
+
textAlign: "center"
|
|
13040
|
+
},
|
|
13041
|
+
cellRendererFramework: function cellRendererFramework(params) {
|
|
13042
|
+
return renderActions({
|
|
13043
|
+
params: params,
|
|
13044
|
+
edit: goToDetail,
|
|
13045
|
+
remove: removeData
|
|
13046
|
+
});
|
|
13047
|
+
}
|
|
13057
13048
|
}];
|
|
13058
13049
|
var gridOptions = {
|
|
13059
|
-
columnDefs: isDefaultQuestion
|
|
13060
|
-
width: 80,
|
|
13061
|
-
headerComponentParams: {
|
|
13062
|
-
template: "<div class=\"text-center w-100\">Actions</div>"
|
|
13063
|
-
},
|
|
13064
|
-
cellStyle: {
|
|
13065
|
-
textAlign: "center"
|
|
13066
|
-
},
|
|
13067
|
-
cellRendererFramework: function cellRendererFramework(params) {
|
|
13068
|
-
return renderActions({
|
|
13069
|
-
params: params,
|
|
13070
|
-
edit: goToDetail,
|
|
13071
|
-
remove: removeData
|
|
13072
|
-
});
|
|
13073
|
-
}
|
|
13074
|
-
}, {
|
|
13075
|
-
headerName: "Order",
|
|
13076
|
-
rowDrag: true
|
|
13077
|
-
}]) : isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
13078
|
-
headerName: "User for",
|
|
13079
|
-
cellRendererFramework: function cellRendererFramework(params) {
|
|
13080
|
-
return renderUserQuestion(params);
|
|
13081
|
-
}
|
|
13082
|
-
}, {
|
|
13083
|
-
width: 80,
|
|
13084
|
-
headerComponentParams: {
|
|
13085
|
-
template: "<div class=\"text-center w-100\">Actions</div>"
|
|
13086
|
-
},
|
|
13087
|
-
cellStyle: {
|
|
13088
|
-
textAlign: "center"
|
|
13089
|
-
},
|
|
13090
|
-
cellRendererFramework: function cellRendererFramework(params) {
|
|
13091
|
-
return renderActions({
|
|
13092
|
-
params: params,
|
|
13093
|
-
edit: goToDetail,
|
|
13094
|
-
remove: removeData
|
|
13095
|
-
});
|
|
13096
|
-
}
|
|
13097
|
-
}, {
|
|
13050
|
+
columnDefs: isDefaultQuestion || isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
13098
13051
|
headerName: "Order",
|
|
13099
13052
|
rowDrag: true
|
|
13100
13053
|
}]) : columnDefs,
|
|
@@ -14699,7 +14652,7 @@ var AdditionalComponent = function AdditionalComponent(_ref) {
|
|
|
14699
14652
|
numberOfStars: numberOfStars,
|
|
14700
14653
|
setFieldValue: setFieldValue
|
|
14701
14654
|
});
|
|
14702
|
-
if ([marioCore.QUESTION_TYPES.SINGLE_CHOICE, marioCore.QUESTION_TYPES.MULTIPLE_CHOICE, marioCore.QUESTION_TYPES.EMOTIONAL
|
|
14655
|
+
if ([marioCore.QUESTION_TYPES.SINGLE_CHOICE, marioCore.QUESTION_TYPES.MULTIPLE_CHOICE, marioCore.QUESTION_TYPES.EMOTIONAL].includes(type)) return React__default.createElement(AnswerList, {
|
|
14703
14656
|
type: type,
|
|
14704
14657
|
answers: answers,
|
|
14705
14658
|
isSurvey: isSurvey,
|
|
@@ -14858,8 +14811,7 @@ var initValue$g = {
|
|
|
14858
14811
|
subQuestions: [],
|
|
14859
14812
|
isMandatory: false,
|
|
14860
14813
|
isBeforeSession: false,
|
|
14861
|
-
isDefaultQuestionSurvey: false
|
|
14862
|
-
userForQuestion: "TeacherAndStudent"
|
|
14814
|
+
isDefaultQuestionSurvey: false
|
|
14863
14815
|
};
|
|
14864
14816
|
var TITLE$m = "Question detail";
|
|
14865
14817
|
|
|
@@ -15024,54 +14976,6 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15024
14976
|
};
|
|
15025
14977
|
};
|
|
15026
14978
|
|
|
15027
|
-
var UserForQuestionSelect = function UserForQuestionSelect(_ref) {
|
|
15028
|
-
var _userForQuestion$find;
|
|
15029
|
-
|
|
15030
|
-
var value = _ref.value,
|
|
15031
|
-
_onChange = _ref.onChange;
|
|
15032
|
-
|
|
15033
|
-
var _useState = React.useState(false),
|
|
15034
|
-
isToggleModel = _useState[0],
|
|
15035
|
-
setIsToggleModel = _useState[1];
|
|
15036
|
-
|
|
15037
|
-
return React__default.createElement("div", null, React__default.createElement("div", {
|
|
15038
|
-
className: styles["block-filter-component"] + " "
|
|
15039
|
-
}, React__default.createElement("button", {
|
|
15040
|
-
onClick: function onClick() {
|
|
15041
|
-
return setIsToggleModel(!isToggleModel);
|
|
15042
|
-
},
|
|
15043
|
-
className: styles["btn-filter"] + " d-flex align-items-center cursor-pointer"
|
|
15044
|
-
}, React__default.createElement("p", {
|
|
15045
|
-
className: " my-0 mx-2"
|
|
15046
|
-
}, ((_userForQuestion$find = userForQuestion.find(function (r) {
|
|
15047
|
-
return r.value == value;
|
|
15048
|
-
})) === null || _userForQuestion$find === void 0 ? void 0 : _userForQuestion$find.label) || "Teacher and student"), !isToggleModel ? React__default.createElement(fi.FiChevronDown, null) : React__default.createElement(fi.FiChevronUp, null)), React__default.createElement("div", {
|
|
15049
|
-
className: styles["select-filter-component"] + " " + (!isToggleModel && "" + styles["hidden"])
|
|
15050
|
-
}, React__default.createElement(reactstrap.Form, {
|
|
15051
|
-
className: "" + styles["box-select"]
|
|
15052
|
-
}, userForQuestion.map(function (item) {
|
|
15053
|
-
return React__default.createElement(reactstrap.FormGroup, {
|
|
15054
|
-
check: true,
|
|
15055
|
-
className: "my-2 px-3",
|
|
15056
|
-
key: item.label
|
|
15057
|
-
}, React__default.createElement(reactstrap.Input, {
|
|
15058
|
-
id: item.label + "userForQuestion",
|
|
15059
|
-
name: "userForQuestion",
|
|
15060
|
-
value: item.value,
|
|
15061
|
-
type: "radio",
|
|
15062
|
-
className: "" + styles["radio-btn"],
|
|
15063
|
-
checked: value === item.value,
|
|
15064
|
-
onChange: function onChange() {
|
|
15065
|
-
return _onChange("userForQuestion", item.value);
|
|
15066
|
-
}
|
|
15067
|
-
}), React__default.createElement(reactstrap.Label, {
|
|
15068
|
-
check: true,
|
|
15069
|
-
"for": item.label + "userForQuestion",
|
|
15070
|
-
className: "" + styles["box-select-label"]
|
|
15071
|
-
}, React__default.createElement("p", null, item.label)));
|
|
15072
|
-
})))));
|
|
15073
|
-
};
|
|
15074
|
-
|
|
15075
14979
|
var CREATE_QUESTION_HEADER = "create_question";
|
|
15076
14980
|
var EDIT_QUESTION_HEADER = "edit_question";
|
|
15077
14981
|
var EMOTIONALS_LENGTH = marioCore.EMOTIONS.length;
|
|
@@ -15123,7 +15027,7 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15123
15027
|
handleSubmit = formikProps.handleSubmit;
|
|
15124
15028
|
|
|
15125
15029
|
var onChangeQuestionType = function onChangeQuestionType(e) {
|
|
15126
|
-
if (![marioCore.QUESTION_TYPES.EMOTIONAL, marioCore.QUESTION_TYPES.LEARNING_STRATEGY, marioCore.QUESTION_TYPES.RATING, marioCore.QUESTION_TYPES.SUMMARIZE, marioCore.QUESTION_TYPES.TEXT_INPUT
|
|
15030
|
+
if (![marioCore.QUESTION_TYPES.EMOTIONAL, marioCore.QUESTION_TYPES.LEARNING_STRATEGY, marioCore.QUESTION_TYPES.RATING, marioCore.QUESTION_TYPES.SUMMARIZE, marioCore.QUESTION_TYPES.TEXT_INPUT].includes(e.value)) {
|
|
15127
15031
|
setFieldValue("isDefaultQuestion", false);
|
|
15128
15032
|
}
|
|
15129
15033
|
|
|
@@ -15176,14 +15080,7 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15176
15080
|
value: values.categoryId
|
|
15177
15081
|
}), touched.categoryId && errors.categoryId && React__default.createElement(marioCore.ErrorHandler, {
|
|
15178
15082
|
text: errors.categoryId
|
|
15179
|
-
}))),
|
|
15180
|
-
md: 6
|
|
15181
|
-
}, React__default.createElement(marioCore.RequiredLabel, {
|
|
15182
|
-
text: t("user_for_question")
|
|
15183
|
-
}), React__default.createElement(UserForQuestionSelect, {
|
|
15184
|
-
onChange: setFieldValue,
|
|
15185
|
-
value: values.userForQuestion || ""
|
|
15186
|
-
}))), React__default.createElement(reactstrap.Row, {
|
|
15083
|
+
})))), React__default.createElement(reactstrap.Row, {
|
|
15187
15084
|
className: "mb-2"
|
|
15188
15085
|
}, React__default.createElement(reactstrap.Col, {
|
|
15189
15086
|
md: 12,
|