mario-education 2.4.106-beta → 2.4.108-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/LearningStrategy/hooks/useStrategyDetail.d.ts +1 -0
- 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 +42 -129
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +43 -130
- 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
|
|
|
@@ -3001,7 +3001,8 @@ var StrategyDetailModal = function StrategyDetailModal(props, ref) {
|
|
|
3001
3001
|
handleChange = formProps.handleChange,
|
|
3002
3002
|
handleBlur = formProps.handleBlur,
|
|
3003
3003
|
handleSubmit = formProps.handleSubmit,
|
|
3004
|
-
resetForm = formProps.resetForm
|
|
3004
|
+
resetForm = formProps.resetForm,
|
|
3005
|
+
setFieldValue = formProps.setFieldValue;
|
|
3005
3006
|
return React__default.createElement(marioCore.CommonModal, {
|
|
3006
3007
|
header: header,
|
|
3007
3008
|
confirmText: confirmText,
|
|
@@ -3072,7 +3073,21 @@ var StrategyDetailModal = function StrategyDetailModal(props, ref) {
|
|
|
3072
3073
|
setEditedTrue();
|
|
3073
3074
|
},
|
|
3074
3075
|
onBlur: handleBlur("bestfit")
|
|
3075
|
-
}))
|
|
3076
|
+
})), React__default.createElement(reactstrap.Col, {
|
|
3077
|
+
md: 12,
|
|
3078
|
+
className: "mt-2"
|
|
3079
|
+
}, React__default.createElement(reactstrap.Form, null, React__default.createElement(reactstrap.FormGroup, {
|
|
3080
|
+
check: true,
|
|
3081
|
+
inline: true
|
|
3082
|
+
}, React__default.createElement(reactstrap.Input, {
|
|
3083
|
+
type: "checkbox",
|
|
3084
|
+
checked: values === null || values === void 0 ? void 0 : values.isOneToOneQuestion,
|
|
3085
|
+
onChange: function onChange() {
|
|
3086
|
+
return setFieldValue("isOneToOneQuestion", !(values !== null && values !== void 0 && values.isOneToOneQuestion));
|
|
3087
|
+
}
|
|
3088
|
+
}), React__default.createElement(reactstrap.Label, {
|
|
3089
|
+
check: true
|
|
3090
|
+
}, "One to one"))))));
|
|
3076
3091
|
});
|
|
3077
3092
|
};
|
|
3078
3093
|
|
|
@@ -3222,7 +3237,8 @@ var initValue$3 = {
|
|
|
3222
3237
|
name: "",
|
|
3223
3238
|
description: "",
|
|
3224
3239
|
bestfit: "",
|
|
3225
|
-
questionText: ""
|
|
3240
|
+
questionText: "",
|
|
3241
|
+
isOneToOneQuestion: false
|
|
3226
3242
|
};
|
|
3227
3243
|
|
|
3228
3244
|
var useStrategyDetail = function useStrategyDetail() {
|
|
@@ -12692,17 +12708,6 @@ var TYPE_QUESTION;
|
|
|
12692
12708
|
TYPE_QUESTION[TYPE_QUESTION["Survey"] = 4] = "Survey";
|
|
12693
12709
|
})(TYPE_QUESTION || (TYPE_QUESTION = {}));
|
|
12694
12710
|
|
|
12695
|
-
var userForQuestion = [{
|
|
12696
|
-
value: "TeacherAndStudent",
|
|
12697
|
-
label: "Teacher and student"
|
|
12698
|
-
}, {
|
|
12699
|
-
value: "Teacher",
|
|
12700
|
-
label: "Teacher"
|
|
12701
|
-
}, {
|
|
12702
|
-
value: "Student",
|
|
12703
|
-
label: "Student"
|
|
12704
|
-
}];
|
|
12705
|
-
|
|
12706
12711
|
var subgridStyle = {
|
|
12707
12712
|
overflowY: "auto",
|
|
12708
12713
|
overflowX: "hidden",
|
|
@@ -12825,19 +12830,12 @@ var renderCategory = function renderCategory(params) {
|
|
|
12825
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);
|
|
12826
12831
|
};
|
|
12827
12832
|
var renderType = function renderType(params) {
|
|
12828
|
-
var _params$data10;
|
|
12829
|
-
|
|
12830
12833
|
var type = marioCore.QUESTION_TYPES_OPTIONS.find(function (option) {
|
|
12831
12834
|
var _params$data9;
|
|
12832
12835
|
|
|
12833
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);
|
|
12834
12837
|
});
|
|
12835
|
-
return type ? React__default.createElement("div", null, type.label) : React__default.createElement("div", null
|
|
12836
|
-
};
|
|
12837
|
-
var renderUserQuestion = function renderUserQuestion(params) {
|
|
12838
|
-
var _params$data11;
|
|
12839
|
-
|
|
12840
|
-
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);
|
|
12841
12839
|
};
|
|
12842
12840
|
|
|
12843
12841
|
var QUESTION_URL$1 = "/admin/question-bank";
|
|
@@ -12905,12 +12903,6 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
12905
12903
|
dispatch(marioCore.setLoading(true));
|
|
12906
12904
|
|
|
12907
12905
|
var _temp4 = _catch(function () {
|
|
12908
|
-
var filter = filters;
|
|
12909
|
-
|
|
12910
|
-
if (!!isDefaultClassReflection && !isDefaultQuestion) {
|
|
12911
|
-
delete filter.isDefaultQuestion;
|
|
12912
|
-
}
|
|
12913
|
-
|
|
12914
12906
|
return Promise.resolve(get$2(filters)).then(function (res) {
|
|
12915
12907
|
var _res$data = res.data,
|
|
12916
12908
|
items = _res$data.items,
|
|
@@ -13003,7 +12995,7 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
13003
12995
|
|
|
13004
12996
|
if (isDefaultQuestion && !isDefaultClassReflection) {
|
|
13005
12997
|
type = TYPE_QUESTION.OneToOne;
|
|
13006
|
-
} else if (isDefaultClassReflection) {
|
|
12998
|
+
} else if (isDefaultQuestion && isDefaultClassReflection) {
|
|
13007
12999
|
type = TYPE_QUESTION.ClassReflection;
|
|
13008
13000
|
} else if (isDefaultConference) {
|
|
13009
13001
|
type = TYPE_QUESTION.Conference;
|
|
@@ -13038,47 +13030,24 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
13038
13030
|
cellRendererFramework: function cellRendererFramework(params) {
|
|
13039
13031
|
return renderCategory(params);
|
|
13040
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
|
+
}
|
|
13041
13048
|
}];
|
|
13042
13049
|
var gridOptions = {
|
|
13043
|
-
columnDefs: isDefaultQuestion
|
|
13044
|
-
width: 80,
|
|
13045
|
-
headerComponentParams: {
|
|
13046
|
-
template: "<div class=\"text-center w-100\">Actions</div>"
|
|
13047
|
-
},
|
|
13048
|
-
cellStyle: {
|
|
13049
|
-
textAlign: "center"
|
|
13050
|
-
},
|
|
13051
|
-
cellRendererFramework: function cellRendererFramework(params) {
|
|
13052
|
-
return renderActions({
|
|
13053
|
-
params: params,
|
|
13054
|
-
edit: goToDetail,
|
|
13055
|
-
remove: removeData
|
|
13056
|
-
});
|
|
13057
|
-
}
|
|
13058
|
-
}, {
|
|
13059
|
-
headerName: "Order",
|
|
13060
|
-
rowDrag: true
|
|
13061
|
-
}]) : isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
13062
|
-
headerName: "User for",
|
|
13063
|
-
cellRendererFramework: function cellRendererFramework(params) {
|
|
13064
|
-
return renderUserQuestion(params);
|
|
13065
|
-
}
|
|
13066
|
-
}, {
|
|
13067
|
-
width: 80,
|
|
13068
|
-
headerComponentParams: {
|
|
13069
|
-
template: "<div class=\"text-center w-100\">Actions</div>"
|
|
13070
|
-
},
|
|
13071
|
-
cellStyle: {
|
|
13072
|
-
textAlign: "center"
|
|
13073
|
-
},
|
|
13074
|
-
cellRendererFramework: function cellRendererFramework(params) {
|
|
13075
|
-
return renderActions({
|
|
13076
|
-
params: params,
|
|
13077
|
-
edit: goToDetail,
|
|
13078
|
-
remove: removeData
|
|
13079
|
-
});
|
|
13080
|
-
}
|
|
13081
|
-
}, {
|
|
13050
|
+
columnDefs: isDefaultQuestion || isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
13082
13051
|
headerName: "Order",
|
|
13083
13052
|
rowDrag: true
|
|
13084
13053
|
}]) : columnDefs,
|
|
@@ -14683,7 +14652,7 @@ var AdditionalComponent = function AdditionalComponent(_ref) {
|
|
|
14683
14652
|
numberOfStars: numberOfStars,
|
|
14684
14653
|
setFieldValue: setFieldValue
|
|
14685
14654
|
});
|
|
14686
|
-
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, {
|
|
14687
14656
|
type: type,
|
|
14688
14657
|
answers: answers,
|
|
14689
14658
|
isSurvey: isSurvey,
|
|
@@ -14842,8 +14811,7 @@ var initValue$g = {
|
|
|
14842
14811
|
subQuestions: [],
|
|
14843
14812
|
isMandatory: false,
|
|
14844
14813
|
isBeforeSession: false,
|
|
14845
|
-
isDefaultQuestionSurvey: false
|
|
14846
|
-
userForQuestion: "TeacherAndStudent"
|
|
14814
|
+
isDefaultQuestionSurvey: false
|
|
14847
14815
|
};
|
|
14848
14816
|
var TITLE$m = "Question detail";
|
|
14849
14817
|
|
|
@@ -15008,54 +14976,6 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15008
14976
|
};
|
|
15009
14977
|
};
|
|
15010
14978
|
|
|
15011
|
-
var UserForQuestionSelect = function UserForQuestionSelect(_ref) {
|
|
15012
|
-
var _userForQuestion$find;
|
|
15013
|
-
|
|
15014
|
-
var value = _ref.value,
|
|
15015
|
-
_onChange = _ref.onChange;
|
|
15016
|
-
|
|
15017
|
-
var _useState = React.useState(false),
|
|
15018
|
-
isToggleModel = _useState[0],
|
|
15019
|
-
setIsToggleModel = _useState[1];
|
|
15020
|
-
|
|
15021
|
-
return React__default.createElement("div", null, React__default.createElement("div", {
|
|
15022
|
-
className: styles["block-filter-component"] + " "
|
|
15023
|
-
}, React__default.createElement("button", {
|
|
15024
|
-
onClick: function onClick() {
|
|
15025
|
-
return setIsToggleModel(!isToggleModel);
|
|
15026
|
-
},
|
|
15027
|
-
className: styles["btn-filter"] + " d-flex align-items-center cursor-pointer"
|
|
15028
|
-
}, React__default.createElement("p", {
|
|
15029
|
-
className: " my-0 mx-2"
|
|
15030
|
-
}, ((_userForQuestion$find = userForQuestion.find(function (r) {
|
|
15031
|
-
return r.value == value;
|
|
15032
|
-
})) === 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", {
|
|
15033
|
-
className: styles["select-filter-component"] + " " + (!isToggleModel && "" + styles["hidden"])
|
|
15034
|
-
}, React__default.createElement(reactstrap.Form, {
|
|
15035
|
-
className: "" + styles["box-select"]
|
|
15036
|
-
}, userForQuestion.map(function (item) {
|
|
15037
|
-
return React__default.createElement(reactstrap.FormGroup, {
|
|
15038
|
-
check: true,
|
|
15039
|
-
className: "my-2 px-3",
|
|
15040
|
-
key: item.label
|
|
15041
|
-
}, React__default.createElement(reactstrap.Input, {
|
|
15042
|
-
id: item.label + "userForQuestion",
|
|
15043
|
-
name: "userForQuestion",
|
|
15044
|
-
value: item.value,
|
|
15045
|
-
type: "radio",
|
|
15046
|
-
className: "" + styles["radio-btn"],
|
|
15047
|
-
checked: value === item.value,
|
|
15048
|
-
onChange: function onChange() {
|
|
15049
|
-
return _onChange("userForQuestion", item.value);
|
|
15050
|
-
}
|
|
15051
|
-
}), React__default.createElement(reactstrap.Label, {
|
|
15052
|
-
check: true,
|
|
15053
|
-
"for": item.label + "userForQuestion",
|
|
15054
|
-
className: "" + styles["box-select-label"]
|
|
15055
|
-
}, React__default.createElement("p", null, item.label)));
|
|
15056
|
-
})))));
|
|
15057
|
-
};
|
|
15058
|
-
|
|
15059
14979
|
var CREATE_QUESTION_HEADER = "create_question";
|
|
15060
14980
|
var EDIT_QUESTION_HEADER = "edit_question";
|
|
15061
14981
|
var EMOTIONALS_LENGTH = marioCore.EMOTIONS.length;
|
|
@@ -15107,7 +15027,7 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15107
15027
|
handleSubmit = formikProps.handleSubmit;
|
|
15108
15028
|
|
|
15109
15029
|
var onChangeQuestionType = function onChangeQuestionType(e) {
|
|
15110
|
-
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)) {
|
|
15111
15031
|
setFieldValue("isDefaultQuestion", false);
|
|
15112
15032
|
}
|
|
15113
15033
|
|
|
@@ -15160,14 +15080,7 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15160
15080
|
value: values.categoryId
|
|
15161
15081
|
}), touched.categoryId && errors.categoryId && React__default.createElement(marioCore.ErrorHandler, {
|
|
15162
15082
|
text: errors.categoryId
|
|
15163
|
-
}))),
|
|
15164
|
-
md: 6
|
|
15165
|
-
}, React__default.createElement(marioCore.RequiredLabel, {
|
|
15166
|
-
text: t("user_for_question")
|
|
15167
|
-
}), React__default.createElement(UserForQuestionSelect, {
|
|
15168
|
-
onChange: setFieldValue,
|
|
15169
|
-
value: values.userForQuestion || ""
|
|
15170
|
-
}))), React__default.createElement(reactstrap.Row, {
|
|
15083
|
+
})))), React__default.createElement(reactstrap.Row, {
|
|
15171
15084
|
className: "mb-2"
|
|
15172
15085
|
}, React__default.createElement(reactstrap.Col, {
|
|
15173
15086
|
md: 12,
|