mario-education 2.4.431-release → 2.4.433-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.
|
@@ -9,7 +9,8 @@ export declare enum RubricItemColumnOrder {
|
|
|
9
9
|
}
|
|
10
10
|
export declare type ConferenceRubric = {
|
|
11
11
|
id?: number | null;
|
|
12
|
-
|
|
12
|
+
title: string | null;
|
|
13
|
+
type: string | null;
|
|
13
14
|
instruction: string;
|
|
14
15
|
conferenceRubricItems: ConferenceRubricItem[];
|
|
15
16
|
questions: ConferenceRubricQuestion[];
|
package/dist/index.js
CHANGED
|
@@ -1185,9 +1185,6 @@ var update$1 = function update(data) {
|
|
|
1185
1185
|
var remove$1 = function remove(id) {
|
|
1186
1186
|
return marioCore.api["delete"](RUBRIC_URL + "/" + id);
|
|
1187
1187
|
};
|
|
1188
|
-
var getTypes = function getTypes() {
|
|
1189
|
-
return marioCore.api.get(RUBRIC_URL + "/types");
|
|
1190
|
-
};
|
|
1191
1188
|
var getSkills = function getSkills() {
|
|
1192
1189
|
return marioCore.api.get(SKILL_URL);
|
|
1193
1190
|
};
|
|
@@ -1323,7 +1320,8 @@ var FILTER_NAME;
|
|
|
1323
1320
|
|
|
1324
1321
|
var SMALL_FONT_DEFAULT = 12;
|
|
1325
1322
|
var LARGE_FONT_DEFAULT = 20;
|
|
1326
|
-
var studentGrades = ["All Grades", "7", "8", "9", "10", "11", "12"];
|
|
1323
|
+
var studentGrades = ["All Grades", "K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
1324
|
+
var isSaisSchool = window.location.hostname.includes('sais');
|
|
1327
1325
|
|
|
1328
1326
|
var header$1 = "Conference rubric";
|
|
1329
1327
|
|
|
@@ -1809,50 +1807,6 @@ var QuestionSelector = function QuestionSelector(_ref) {
|
|
|
1809
1807
|
});
|
|
1810
1808
|
};
|
|
1811
1809
|
|
|
1812
|
-
var ConferenceRubricTypeSelector = function ConferenceRubricTypeSelector(_ref) {
|
|
1813
|
-
var defaultValue = _ref.defaultValue,
|
|
1814
|
-
onChange = _ref.onChange;
|
|
1815
|
-
|
|
1816
|
-
var _useState = React.useState([]),
|
|
1817
|
-
types = _useState[0],
|
|
1818
|
-
setTypes = _useState[1];
|
|
1819
|
-
|
|
1820
|
-
var getData = React.useCallback(function () {
|
|
1821
|
-
try {
|
|
1822
|
-
var _temp2 = _catch(function () {
|
|
1823
|
-
return Promise.resolve(getTypes()).then(function (res) {
|
|
1824
|
-
setTypes(res.data.map(function (item) {
|
|
1825
|
-
return {
|
|
1826
|
-
label: CONFERENCE_RUBRIC_TYPES[item],
|
|
1827
|
-
value: item
|
|
1828
|
-
};
|
|
1829
|
-
}));
|
|
1830
|
-
});
|
|
1831
|
-
}, function (err) {
|
|
1832
|
-
var _err$response, _err$response$data;
|
|
1833
|
-
|
|
1834
|
-
console.error(((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message);
|
|
1835
|
-
});
|
|
1836
|
-
|
|
1837
|
-
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
1838
|
-
} catch (e) {
|
|
1839
|
-
return Promise.reject(e);
|
|
1840
|
-
}
|
|
1841
|
-
}, []);
|
|
1842
|
-
React.useEffect(function () {
|
|
1843
|
-
getData();
|
|
1844
|
-
}, []);
|
|
1845
|
-
var value = defaultValue && types.filter(function (option) {
|
|
1846
|
-
return option.value === defaultValue;
|
|
1847
|
-
}) || null;
|
|
1848
|
-
return React__default.createElement(marioCore.CustomSelector, {
|
|
1849
|
-
options: types,
|
|
1850
|
-
value: value,
|
|
1851
|
-
onChange: onChange,
|
|
1852
|
-
placeholder: "Select type"
|
|
1853
|
-
});
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
1810
|
function _extends() {
|
|
1857
1811
|
_extends = Object.assign || function (target) {
|
|
1858
1812
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -1959,7 +1913,8 @@ var RubricItemColumnOrder;
|
|
|
1959
1913
|
})(RubricItemColumnOrder || (RubricItemColumnOrder = {}));
|
|
1960
1914
|
|
|
1961
1915
|
var initValue$1 = {
|
|
1962
|
-
|
|
1916
|
+
title: null,
|
|
1917
|
+
type: null,
|
|
1963
1918
|
instruction: "",
|
|
1964
1919
|
conferenceRubricItems: [],
|
|
1965
1920
|
questions: [],
|
|
@@ -2180,7 +2135,7 @@ var useConferenceRubricDetail = function useConferenceRubricDetail(id) {
|
|
|
2180
2135
|
}, [JSON.stringify(conferenceRubricDetail)]);
|
|
2181
2136
|
var confirmData = React.useCallback(function (isLoading) {
|
|
2182
2137
|
try {
|
|
2183
|
-
var
|
|
2138
|
+
var title = conferenceRubricDetail.title,
|
|
2184
2139
|
instruction = conferenceRubricDetail.instruction,
|
|
2185
2140
|
conferenceRubricItems = conferenceRubricDetail.conferenceRubricItems,
|
|
2186
2141
|
questions = conferenceRubricDetail.questions;
|
|
@@ -2188,7 +2143,7 @@ var useConferenceRubricDetail = function useConferenceRubricDetail(id) {
|
|
|
2188
2143
|
return _catch(function () {
|
|
2189
2144
|
!isLoading && dispatch(marioCore.setLoading(true));
|
|
2190
2145
|
setChecked(true);
|
|
2191
|
-
if (!
|
|
2146
|
+
if (!title || !title.trim()) return;
|
|
2192
2147
|
if (!instruction || !instruction.trim()) return;
|
|
2193
2148
|
if (!questions.length) return;
|
|
2194
2149
|
if (!conferenceRubricItems || !conferenceRubricItems.length) return;
|
|
@@ -2490,11 +2445,40 @@ var ConferenceRubricDetail = function ConferenceRubricDetail() {
|
|
|
2490
2445
|
changeConferenceRubricItemRowGrades = _useConferenceRubricD.changeConferenceRubricItemRowGrades;
|
|
2491
2446
|
|
|
2492
2447
|
var confirmText = !!id ? t("update") : t("create");
|
|
2493
|
-
var
|
|
2494
|
-
instruction = conferenceRubricDetail.instruction,
|
|
2448
|
+
var instruction = conferenceRubricDetail.instruction,
|
|
2495
2449
|
conferenceRubricItems = conferenceRubricDetail.conferenceRubricItems,
|
|
2496
2450
|
questions = conferenceRubricDetail.questions;
|
|
2497
2451
|
var header = confirmText + " " + t("conference_rubric");
|
|
2452
|
+
|
|
2453
|
+
var _useState = React.useState(''),
|
|
2454
|
+
titleValue = _useState[0],
|
|
2455
|
+
setTitleValue = _useState[1];
|
|
2456
|
+
|
|
2457
|
+
var typingTimeoutRef = React.useRef(undefined);
|
|
2458
|
+
React.useEffect(function () {
|
|
2459
|
+
if (conferenceRubricDetail.title || conferenceRubricDetail.type) {
|
|
2460
|
+
var _conferenceRubricDeta;
|
|
2461
|
+
|
|
2462
|
+
setTitleValue((_conferenceRubricDeta = conferenceRubricDetail.title) != null ? _conferenceRubricDeta : conferenceRubricDetail.type);
|
|
2463
|
+
}
|
|
2464
|
+
}, [conferenceRubricDetail.title, conferenceRubricDetail.type]);
|
|
2465
|
+
|
|
2466
|
+
var handleInputChange = function handleInputChange(e) {
|
|
2467
|
+
var newValue = e.target.value;
|
|
2468
|
+
setTitleValue(newValue);
|
|
2469
|
+
|
|
2470
|
+
if (typingTimeoutRef.current) {
|
|
2471
|
+
clearTimeout(typingTimeoutRef.current);
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
typingTimeoutRef.current = window.setTimeout(function () {
|
|
2475
|
+
changeConferenceRubricDetail({
|
|
2476
|
+
title: newValue
|
|
2477
|
+
});
|
|
2478
|
+
setEditedTrue();
|
|
2479
|
+
}, 1000);
|
|
2480
|
+
};
|
|
2481
|
+
|
|
2498
2482
|
return React__default.createElement("div", {
|
|
2499
2483
|
className: "detail-buttons-padding"
|
|
2500
2484
|
}, !!id && React__default.createElement(reactstrap.Nav, {
|
|
@@ -2516,17 +2500,15 @@ var ConferenceRubricDetail = function ConferenceRubricDetail() {
|
|
|
2516
2500
|
}, React__default.createElement(reactstrap.Col, {
|
|
2517
2501
|
md: 8
|
|
2518
2502
|
}, React__default.createElement(marioCore.RequiredLabel, {
|
|
2519
|
-
text: t("
|
|
2520
|
-
}), React__default.createElement(
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
}), checked && (!name || !name.trim()) && React__default.createElement(marioCore.ErrorHandler, {
|
|
2529
|
-
text: t("name_is_required")
|
|
2503
|
+
text: t("title")
|
|
2504
|
+
}), React__default.createElement(reactstrap.Input, {
|
|
2505
|
+
type: "text",
|
|
2506
|
+
rows: 3,
|
|
2507
|
+
placeholder: t("title"),
|
|
2508
|
+
value: titleValue != null ? titleValue : '',
|
|
2509
|
+
onChange: handleInputChange
|
|
2510
|
+
}), checked && (!titleValue || !titleValue.trim()) && React__default.createElement(marioCore.ErrorHandler, {
|
|
2511
|
+
text: t("title_is_required")
|
|
2530
2512
|
}))), React__default.createElement(reactstrap.Row, {
|
|
2531
2513
|
className: "mb-3"
|
|
2532
2514
|
}, React__default.createElement(reactstrap.Col, {
|
|
@@ -30241,7 +30223,7 @@ var INITIAL_ACTIVITY_FRIENDS = {
|
|
|
30241
30223
|
var LEARNING_STRATEGY_INIT = {
|
|
30242
30224
|
learningStrategies: []
|
|
30243
30225
|
};
|
|
30244
|
-
var GRAGE_DEFAULT = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
30226
|
+
var GRAGE_DEFAULT = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"].concat(isSaisSchool ? ["PCS"] : []);
|
|
30245
30227
|
var INITIAL_AGE_OF_STUDENT = {
|
|
30246
30228
|
ageOfFeMaleStudent: {
|
|
30247
30229
|
nineToTwelve: 0,
|
|
@@ -38698,7 +38680,7 @@ function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
|
38698
38680
|
classNames.split(' ').forEach(function (className) {
|
|
38699
38681
|
if (registered[className] !== undefined) {
|
|
38700
38682
|
registeredStyles.push(registered[className] + ";");
|
|
38701
|
-
} else {
|
|
38683
|
+
} else if (className) {
|
|
38702
38684
|
rawClassName += className + " ";
|
|
38703
38685
|
}
|
|
38704
38686
|
});
|
|
@@ -39037,7 +39019,7 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
39037
39019
|
return string;
|
|
39038
39020
|
}
|
|
39039
39021
|
|
|
39040
|
-
var labelPattern = /label:\s*([^\s
|
|
39022
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
|
|
39041
39023
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
39042
39024
|
|
|
39043
39025
|
|
|
@@ -45889,7 +45871,7 @@ var FLAG_TYPES;
|
|
|
45889
45871
|
FLAG_TYPES[FLAG_TYPES["GREEN"] = 2] = "GREEN";
|
|
45890
45872
|
})(FLAG_TYPES || (FLAG_TYPES = {}));
|
|
45891
45873
|
|
|
45892
|
-
var GRAGE_DEFAULT$1 = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
45874
|
+
var GRAGE_DEFAULT$1 = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"].concat(isSaisSchool ? ["PCS"] : []);
|
|
45893
45875
|
var INITIAl_STUDENT_DASHBOARD$1 = {
|
|
45894
45876
|
responseRate: 0,
|
|
45895
45877
|
totalSurvey: 0
|
|
@@ -46806,7 +46788,7 @@ var useChartDatas$1 = function useChartDatas() {
|
|
|
46806
46788
|
option: [{
|
|
46807
46789
|
value: -1,
|
|
46808
46790
|
label: "All"
|
|
46809
|
-
}].concat(gradeOptions$1(
|
|
46791
|
+
}].concat(gradeOptions$1(GRAGE_DEFAULT$1, filter.studentUserId))
|
|
46810
46792
|
}];
|
|
46811
46793
|
var LIST_FILTERS_RIGHT = [{
|
|
46812
46794
|
name: FILTER_NAME.StudentName,
|
|
@@ -69102,7 +69084,8 @@ var useStudentWellness = function useStudentWellness(studentId, filterDateChart,
|
|
|
69102
69084
|
try {
|
|
69103
69085
|
var timeSearch = {
|
|
69104
69086
|
startDate: filterDateChart.startDate,
|
|
69105
|
-
endDate: filterDateChart.endDate
|
|
69087
|
+
endDate: filterDateChart.endDate,
|
|
69088
|
+
optionDate: "Month"
|
|
69106
69089
|
};
|
|
69107
69090
|
var filterParams = {
|
|
69108
69091
|
studentId: studentId,
|