mario-education 2.4.97-beta → 2.4.99-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/Dashboard/components/ReadinessToLearn.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/AgGridComponents.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/components/UserForQuestion.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/constants.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
- package/dist/index.js +92 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +93 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/apiClient/index.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/SelectorTemplate.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/components/TemplateDialogModal.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/configs/types.d.ts +0 -12
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateBuilder.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateDetail.d.ts +0 -20
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateList.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/hooks/useTemplateStart.d.ts +0 -9
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateBuilderPage.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateContainer.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateIEPList.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateStartBuild.d.ts +0 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSystem/views/TemplateSystemList.d.ts +0 -3
- /package/dist/MarioFramework.Education/ClientApp/src/utils/{serviceType.interface.d.ts → servicetype.interface.d.ts} +0 -0
package/dist/index.modern.js
CHANGED
|
@@ -2,7 +2,7 @@ import { api, BASE_URL, setAlert, CustomSelector, LinkEditButton, DeleteButtonIc
|
|
|
2
2
|
import { LicenseManager } from '@ag-grid-enterprise/core';
|
|
3
3
|
import React, { useState, useRef, useCallback, useEffect, forwardRef, useMemo, Fragment, memo } from 'react';
|
|
4
4
|
import { useDispatch, useSelector } from 'react-redux';
|
|
5
|
-
import { Table, Row, Col, Input, Label, Button, CustomInput, Card, CardBody, CardTitle, FormGroup, Alert, Modal, ModalHeader, ModalBody, ModalFooter, Progress,
|
|
5
|
+
import { Table, Row, Col, Input, Label, Button, CustomInput, Card, CardBody, CardTitle, FormGroup, Alert, Modal, ModalHeader, ModalBody, ModalFooter, Progress, Form, Tooltip, Collapse } from 'reactstrap';
|
|
6
6
|
import { Formik } from 'formik';
|
|
7
7
|
import { object, string, array, number, boolean } from 'yup';
|
|
8
8
|
import { useHistory, useParams, useLocation } from 'react-router-dom';
|
|
@@ -16,9 +16,9 @@ import { MasterDetailModule } from '@ag-grid-enterprise/master-detail';
|
|
|
16
16
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
17
17
|
import { FaCheck, FaTimes, FaCaretDown, FaCaretRight, FaRegEdit } from 'react-icons/fa';
|
|
18
18
|
import { Editor } from '@tinymce/tinymce-react';
|
|
19
|
+
import { FiChevronDown, FiChevronUp } from 'react-icons/fi';
|
|
19
20
|
import Chart from 'react-apexcharts';
|
|
20
21
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
21
|
-
import { FiChevronDown, FiChevronUp } from 'react-icons/fi';
|
|
22
22
|
import jsPDF from 'jspdf';
|
|
23
23
|
import html2canvas from 'html2canvas';
|
|
24
24
|
|
|
@@ -11840,6 +11840,17 @@ var TYPE_QUESTION;
|
|
|
11840
11840
|
TYPE_QUESTION[TYPE_QUESTION["Survey"] = 4] = "Survey";
|
|
11841
11841
|
})(TYPE_QUESTION || (TYPE_QUESTION = {}));
|
|
11842
11842
|
|
|
11843
|
+
var userForQuestion = [{
|
|
11844
|
+
value: "TeacherAndStudent",
|
|
11845
|
+
label: "Teacher and student"
|
|
11846
|
+
}, {
|
|
11847
|
+
value: "Teacher",
|
|
11848
|
+
label: "Teacher"
|
|
11849
|
+
}, {
|
|
11850
|
+
value: "Student",
|
|
11851
|
+
label: "Student"
|
|
11852
|
+
}];
|
|
11853
|
+
|
|
11843
11854
|
var subgridStyle = {
|
|
11844
11855
|
overflowY: "auto",
|
|
11845
11856
|
overflowX: "hidden",
|
|
@@ -11969,6 +11980,11 @@ var renderType = function renderType(params) {
|
|
|
11969
11980
|
});
|
|
11970
11981
|
return type ? React.createElement("div", null, type.label) : React.createElement("div", null);
|
|
11971
11982
|
};
|
|
11983
|
+
var renderUserQuestion = function renderUserQuestion(params) {
|
|
11984
|
+
var _params$data10;
|
|
11985
|
+
|
|
11986
|
+
return React.createElement("div", null, params === null || params === void 0 ? void 0 : (_params$data10 = params.data) === null || _params$data10 === void 0 ? void 0 : _params$data10.userForQuestion);
|
|
11987
|
+
};
|
|
11972
11988
|
|
|
11973
11989
|
var QUESTION_URL$1 = "/admin/question-bank";
|
|
11974
11990
|
var CREATE_QUESTION_URL = "/admin/create-question";
|
|
@@ -12035,6 +12051,12 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
12035
12051
|
dispatch(setLoading(true));
|
|
12036
12052
|
|
|
12037
12053
|
var _temp4 = _catch(function () {
|
|
12054
|
+
var filter = filters;
|
|
12055
|
+
|
|
12056
|
+
if (!!isDefaultClassReflection && !isDefaultQuestion) {
|
|
12057
|
+
delete filter.isDefaultQuestion;
|
|
12058
|
+
}
|
|
12059
|
+
|
|
12038
12060
|
return Promise.resolve(get$2(filters)).then(function (res) {
|
|
12039
12061
|
var _res$data = res.data,
|
|
12040
12062
|
items = _res$data.items,
|
|
@@ -12127,7 +12149,7 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
12127
12149
|
|
|
12128
12150
|
if (isDefaultQuestion && !isDefaultClassReflection) {
|
|
12129
12151
|
type = TYPE_QUESTION.OneToOne;
|
|
12130
|
-
} else if (
|
|
12152
|
+
} else if (isDefaultClassReflection) {
|
|
12131
12153
|
type = TYPE_QUESTION.ClassReflection;
|
|
12132
12154
|
} else if (isDefaultConference) {
|
|
12133
12155
|
type = TYPE_QUESTION.Conference;
|
|
@@ -12179,7 +12201,15 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
12179
12201
|
}
|
|
12180
12202
|
}];
|
|
12181
12203
|
var gridOptions = {
|
|
12182
|
-
columnDefs: isDefaultQuestion
|
|
12204
|
+
columnDefs: isDefaultQuestion && !isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
12205
|
+
headerName: "Order",
|
|
12206
|
+
rowDrag: true
|
|
12207
|
+
}]) : isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
12208
|
+
headerName: "User for",
|
|
12209
|
+
cellRendererFramework: function cellRendererFramework(params) {
|
|
12210
|
+
return renderUserQuestion(params);
|
|
12211
|
+
}
|
|
12212
|
+
}, {
|
|
12183
12213
|
headerName: "Order",
|
|
12184
12214
|
rowDrag: true
|
|
12185
12215
|
}]) : columnDefs,
|
|
@@ -13943,7 +13973,8 @@ var initValue$g = {
|
|
|
13943
13973
|
subQuestions: [],
|
|
13944
13974
|
isMandatory: false,
|
|
13945
13975
|
isBeforeSession: false,
|
|
13946
|
-
isDefaultQuestionSurvey: false
|
|
13976
|
+
isDefaultQuestionSurvey: false,
|
|
13977
|
+
userForQuestion: "TeacherAndStudent"
|
|
13947
13978
|
};
|
|
13948
13979
|
var TITLE$k = "Question detail";
|
|
13949
13980
|
|
|
@@ -14108,6 +14139,54 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
14108
14139
|
};
|
|
14109
14140
|
};
|
|
14110
14141
|
|
|
14142
|
+
var UserForQuestionSelect = function UserForQuestionSelect(_ref) {
|
|
14143
|
+
var _userForQuestion$find;
|
|
14144
|
+
|
|
14145
|
+
var value = _ref.value,
|
|
14146
|
+
_onChange = _ref.onChange;
|
|
14147
|
+
|
|
14148
|
+
var _useState = useState(false),
|
|
14149
|
+
isToggleModel = _useState[0],
|
|
14150
|
+
setIsToggleModel = _useState[1];
|
|
14151
|
+
|
|
14152
|
+
return React.createElement("div", null, React.createElement("div", {
|
|
14153
|
+
className: styles["block-filter-component"] + " "
|
|
14154
|
+
}, React.createElement("button", {
|
|
14155
|
+
onClick: function onClick() {
|
|
14156
|
+
return setIsToggleModel(!isToggleModel);
|
|
14157
|
+
},
|
|
14158
|
+
className: styles["btn-filter"] + " d-flex align-items-center cursor-pointer"
|
|
14159
|
+
}, React.createElement("p", {
|
|
14160
|
+
className: " my-0 mx-2"
|
|
14161
|
+
}, ((_userForQuestion$find = userForQuestion.find(function (r) {
|
|
14162
|
+
return r.value == value;
|
|
14163
|
+
})) === null || _userForQuestion$find === void 0 ? void 0 : _userForQuestion$find.label) || "Teacher and student"), !isToggleModel ? React.createElement(FiChevronDown, null) : React.createElement(FiChevronUp, null)), React.createElement("div", {
|
|
14164
|
+
className: styles["select-filter-component"] + " " + (!isToggleModel && "" + styles["hidden"])
|
|
14165
|
+
}, React.createElement(Form, {
|
|
14166
|
+
className: "" + styles["box-select"]
|
|
14167
|
+
}, userForQuestion.map(function (item) {
|
|
14168
|
+
return React.createElement(FormGroup, {
|
|
14169
|
+
check: true,
|
|
14170
|
+
className: "my-2 px-3",
|
|
14171
|
+
key: item.label
|
|
14172
|
+
}, React.createElement(Input, {
|
|
14173
|
+
id: item.label + "userForQuestion",
|
|
14174
|
+
name: "userForQuestion",
|
|
14175
|
+
value: item.value,
|
|
14176
|
+
type: "radio",
|
|
14177
|
+
className: "" + styles["radio-btn"],
|
|
14178
|
+
checked: value === item.value,
|
|
14179
|
+
onChange: function onChange() {
|
|
14180
|
+
return _onChange("userForQuestion", item.value);
|
|
14181
|
+
}
|
|
14182
|
+
}), React.createElement(Label, {
|
|
14183
|
+
check: true,
|
|
14184
|
+
"for": item.label + "userForQuestion",
|
|
14185
|
+
className: "" + styles["box-select-label"]
|
|
14186
|
+
}, React.createElement("p", null, item.label)));
|
|
14187
|
+
})))));
|
|
14188
|
+
};
|
|
14189
|
+
|
|
14111
14190
|
var CREATE_QUESTION_HEADER = "create_question";
|
|
14112
14191
|
var EDIT_QUESTION_HEADER = "edit_question";
|
|
14113
14192
|
var EMOTIONALS_LENGTH = EMOTIONS.length;
|
|
@@ -14212,7 +14291,14 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
14212
14291
|
value: values.categoryId
|
|
14213
14292
|
}), touched.categoryId && errors.categoryId && React.createElement(ErrorHandler, {
|
|
14214
14293
|
text: errors.categoryId
|
|
14215
|
-
})))
|
|
14294
|
+
}))), parseInt(type) == TYPE_QUESTION.ClassReflection && React.createElement(Col, {
|
|
14295
|
+
md: 6
|
|
14296
|
+
}, React.createElement(RequiredLabel, {
|
|
14297
|
+
text: t("user_for_question")
|
|
14298
|
+
}), React.createElement(UserForQuestionSelect, {
|
|
14299
|
+
onChange: setFieldValue,
|
|
14300
|
+
value: values.userForQuestion || ""
|
|
14301
|
+
}))), React.createElement(Row, {
|
|
14216
14302
|
className: "mb-2"
|
|
14217
14303
|
}, React.createElement(Col, {
|
|
14218
14304
|
md: 12,
|
|
@@ -15837,7 +15923,7 @@ var tabs$3 = [{
|
|
|
15837
15923
|
title: "Class Reflection Question",
|
|
15838
15924
|
component: function component() {
|
|
15839
15925
|
return React.createElement(QuestionBankList, {
|
|
15840
|
-
isDefaultQuestion:
|
|
15926
|
+
isDefaultQuestion: false,
|
|
15841
15927
|
isDefaultClassReflection: true
|
|
15842
15928
|
});
|
|
15843
15929
|
}
|