mario-core 2.9.139-up → 2.9.141-level
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/components/Alerts/ReactNotification.d.ts +2 -2
- package/dist/components/Image/UploadImage.d.ts +2 -2
- package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -2
- package/dist/components/Modals/NotificationModal.d.ts +2 -2
- package/dist/components/Others/QuitPrompt.d.ts +2 -2
- package/dist/components/Pagination/CustomPagination.d.ts +2 -2
- package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
- package/dist/components/Selectors/CategorySelector.d.ts +2 -2
- package/dist/components/Selectors/CreatableSelector.d.ts +2 -2
- package/dist/components/Selectors/CustomSelector.d.ts +2 -2
- package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -2
- package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -2
- package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -2
- package/dist/components/Selectors/StarRatingSelector.d.ts +2 -2
- package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -2
- package/dist/components/Tabs/CustomTab.d.ts +2 -2
- package/dist/containers/Login/constant/type.d.ts +5 -0
- package/dist/containers/Login/views/Dashboard.d.ts +2 -2
- package/dist/containers/Login/views/Login.d.ts +2 -2
- package/dist/containers/Login/views/ModelSelectRole.d.ts +4 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -2
- package/dist/containers/Notifications/views/NotificationList.d.ts +2 -2
- package/dist/containers/Skill/components/SkillSelector.d.ts +2 -2
- package/dist/containers/User/views/UserDetail.d.ts +2 -2
- package/dist/containers/User/views/UserList.d.ts +2 -2
- package/dist/index.css +3 -3
- package/dist/index.js +45 -79
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +45 -79
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheContent.d.ts +1 -1
- package/dist/layouts/TheFooter.d.ts +1 -1
- package/dist/layouts/TheHeader.d.ts +2 -2
- package/dist/layouts/TheHeaderDropdown.d.ts +2 -2
- package/dist/layouts/TheLanguageDropdown.d.ts +2 -2
- package/dist/layouts/TheLayout.d.ts +2 -2
- package/dist/layouts/TheSidebar.d.ts +2 -2
- package/dist/redux/assessments/reducer.d.ts +2 -2
- package/dist/redux/assignment/reducer.d.ts +1 -1
- package/dist/redux/assistants/reducer.d.ts +1 -1
- package/dist/redux/badges/reducer.d.ts +1 -1
- package/dist/redux/bandScores/reducer.d.ts +1 -1
- package/dist/redux/certificate/reducer.d.ts +1 -1
- package/dist/redux/classes/reducer.d.ts +1 -1
- package/dist/redux/commons/reducer.d.ts +1 -1
- package/dist/redux/conferenceRubrics/reducer.d.ts +1 -1
- package/dist/redux/customAlert/reducer.d.ts +1 -1
- package/dist/redux/dashboard/reducer.d.ts +1 -1
- package/dist/redux/dataPlayer/reducer.d.ts +1 -1
- package/dist/redux/emailTemplates/reducer.d.ts +1 -1
- package/dist/redux/faqs/reducer.d.ts +1 -1
- package/dist/redux/feedback/reducer.d.ts +1 -1
- package/dist/redux/gallery/reducer.d.ts +1 -1
- package/dist/redux/goalExamples/reducer.d.ts +1 -1
- package/dist/redux/improveMyClass/reducer.d.ts +1 -1
- package/dist/redux/learningStrategies/reducer.d.ts +1 -1
- package/dist/redux/learningSupportCategories/reducer.d.ts +1 -1
- package/dist/redux/mailCategories/reducer.d.ts +1 -1
- package/dist/redux/navMobile/reducer.d.ts +1 -1
- package/dist/redux/notifications/reducer.d.ts +1 -1
- package/dist/redux/questionBanks/reducer.d.ts +1 -1
- package/dist/redux/questionByCategory/reducer.d.ts +1 -1
- package/dist/redux/questionCategory/reducer.d.ts +1 -1
- package/dist/redux/reflectionForms/reducer.d.ts +1 -1
- package/dist/redux/reflectionResults/reducer.d.ts +1 -1
- package/dist/redux/schoolBlankDays/reducer.d.ts +1 -1
- package/dist/redux/semester/reducer.d.ts +1 -1
- package/dist/redux/sessionPlayers/reducer.d.ts +1 -1
- package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +1 -1
- package/dist/redux/sessionTemplates/reducer.d.ts +1 -1
- package/dist/redux/skills/reducer.d.ts +1 -1
- package/dist/redux/subjects/reducer.d.ts +1 -1
- package/dist/redux/suggestionBanks/reducer.d.ts +1 -1
- package/dist/redux/teacher/myStudent/reducer.d.ts +1 -1
- package/dist/redux/tutorialScreen/reducer.d.ts +2 -2
- package/dist/redux/users/reducer.d.ts +1 -1
- package/dist/redux/widget/reducer.d.ts +1 -1
- package/dist/utils/amplitude.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -32,6 +32,7 @@ import Creatable from 'react-select/creatable';
|
|
|
32
32
|
import ReactNotification$1 from 'react-notifications-component';
|
|
33
33
|
import 'react-notifications-component/dist/theme.css';
|
|
34
34
|
import { AiOutlineEye } from 'react-icons/ai';
|
|
35
|
+
import 'symbol-observable';
|
|
35
36
|
|
|
36
37
|
var dashboard = "Dashboard";
|
|
37
38
|
var user = "User";
|
|
@@ -693,6 +694,10 @@ var students_who_are_not_feeling_safe = "Students who are not feeling safe";
|
|
|
693
694
|
var students_missing_a_weekly_check_in = "Students missing a weekly check-in";
|
|
694
695
|
var student_stress_by_zone = "Student Stress by Zone";
|
|
695
696
|
var student_distribution = "Student Distribution";
|
|
697
|
+
var surveys_flags = "Survey's flags";
|
|
698
|
+
var yellow_flags = "Yellow flags";
|
|
699
|
+
var green_flags = "Green flags";
|
|
700
|
+
var red_flags = "Red flags";
|
|
696
701
|
var lang_us = {
|
|
697
702
|
dashboard: dashboard,
|
|
698
703
|
user: user,
|
|
@@ -1365,7 +1370,11 @@ var lang_us = {
|
|
|
1365
1370
|
students_who_are_not_feeling_safe: students_who_are_not_feeling_safe,
|
|
1366
1371
|
students_missing_a_weekly_check_in: students_missing_a_weekly_check_in,
|
|
1367
1372
|
student_stress_by_zone: student_stress_by_zone,
|
|
1368
|
-
student_distribution: student_distribution
|
|
1373
|
+
student_distribution: student_distribution,
|
|
1374
|
+
surveys_flags: surveys_flags,
|
|
1375
|
+
yellow_flags: yellow_flags,
|
|
1376
|
+
green_flags: green_flags,
|
|
1377
|
+
red_flags: red_flags
|
|
1369
1378
|
};
|
|
1370
1379
|
|
|
1371
1380
|
var dashboard$1 = "Dashboard";
|
|
@@ -2030,6 +2039,10 @@ var students_who_are_not_feeling_safe$1 = "Students who are not feeling safe";
|
|
|
2030
2039
|
var students_missing_a_weekly_check_in$1 = "Students missing a weekly check-in";
|
|
2031
2040
|
var student_stress_by_zone$1 = "Student Stress by Zone";
|
|
2032
2041
|
var student_distribution$1 = "Student Distribution";
|
|
2042
|
+
var surveys_flags$1 = "Survey's flags";
|
|
2043
|
+
var yellow_flags$1 = "Yellow flags";
|
|
2044
|
+
var green_flags$1 = "Green flags";
|
|
2045
|
+
var red_flags$1 = "Red flags";
|
|
2033
2046
|
var lang_uk = {
|
|
2034
2047
|
dashboard: dashboard$1,
|
|
2035
2048
|
user: user$1,
|
|
@@ -2702,7 +2715,11 @@ var lang_uk = {
|
|
|
2702
2715
|
students_who_are_not_feeling_safe: students_who_are_not_feeling_safe$1,
|
|
2703
2716
|
students_missing_a_weekly_check_in: students_missing_a_weekly_check_in$1,
|
|
2704
2717
|
student_stress_by_zone: student_stress_by_zone$1,
|
|
2705
|
-
student_distribution: student_distribution$1
|
|
2718
|
+
student_distribution: student_distribution$1,
|
|
2719
|
+
surveys_flags: surveys_flags$1,
|
|
2720
|
+
yellow_flags: yellow_flags$1,
|
|
2721
|
+
green_flags: green_flags$1,
|
|
2722
|
+
red_flags: red_flags$1
|
|
2706
2723
|
};
|
|
2707
2724
|
|
|
2708
2725
|
var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
|
|
@@ -7284,7 +7301,7 @@ var UserDetail = function UserDetail() {
|
|
|
7284
7301
|
}, React.createElement(CustomInput, {
|
|
7285
7302
|
type: "checkbox",
|
|
7286
7303
|
id: "role-checkbox-" + role,
|
|
7287
|
-
label: role,
|
|
7304
|
+
label: role === "SecondaryTeacher" ? "SupportTeacher" : "" + role,
|
|
7288
7305
|
checked: values.roles.includes(role),
|
|
7289
7306
|
onChange: function onChange() {
|
|
7290
7307
|
toggleRoles(role);
|
|
@@ -9192,17 +9209,6 @@ var reduxLogger = createCommonjsModule(function (module, exports) {
|
|
|
9192
9209
|
|
|
9193
9210
|
var logger = unwrapExports(reduxLogger);
|
|
9194
9211
|
|
|
9195
|
-
/**
|
|
9196
|
-
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
|
|
9197
|
-
*
|
|
9198
|
-
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
|
|
9199
|
-
* during build.
|
|
9200
|
-
* @param {number} code
|
|
9201
|
-
*/
|
|
9202
|
-
function formatProdErrorMessage(code) {
|
|
9203
|
-
return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
|
|
9204
|
-
}
|
|
9205
|
-
|
|
9206
9212
|
/**
|
|
9207
9213
|
* These are private action types reserved by Redux.
|
|
9208
9214
|
* For any unknown actions, you must return the current state.
|
|
@@ -9236,65 +9242,6 @@ function isPlainObject(obj) {
|
|
|
9236
9242
|
return Object.getPrototypeOf(obj) === proto;
|
|
9237
9243
|
}
|
|
9238
9244
|
|
|
9239
|
-
// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
|
|
9240
|
-
function miniKindOf(val) {
|
|
9241
|
-
if (val === void 0) return 'undefined';
|
|
9242
|
-
if (val === null) return 'null';
|
|
9243
|
-
var type = typeof val;
|
|
9244
|
-
|
|
9245
|
-
switch (type) {
|
|
9246
|
-
case 'boolean':
|
|
9247
|
-
case 'string':
|
|
9248
|
-
case 'number':
|
|
9249
|
-
case 'symbol':
|
|
9250
|
-
case 'function':
|
|
9251
|
-
{
|
|
9252
|
-
return type;
|
|
9253
|
-
}
|
|
9254
|
-
}
|
|
9255
|
-
|
|
9256
|
-
if (Array.isArray(val)) return 'array';
|
|
9257
|
-
if (isDate(val)) return 'date';
|
|
9258
|
-
if (isError(val)) return 'error';
|
|
9259
|
-
var constructorName = ctorName(val);
|
|
9260
|
-
|
|
9261
|
-
switch (constructorName) {
|
|
9262
|
-
case 'Symbol':
|
|
9263
|
-
case 'Promise':
|
|
9264
|
-
case 'WeakMap':
|
|
9265
|
-
case 'WeakSet':
|
|
9266
|
-
case 'Map':
|
|
9267
|
-
case 'Set':
|
|
9268
|
-
return constructorName;
|
|
9269
|
-
} // other
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
|
|
9273
|
-
}
|
|
9274
|
-
|
|
9275
|
-
function ctorName(val) {
|
|
9276
|
-
return typeof val.constructor === 'function' ? val.constructor.name : null;
|
|
9277
|
-
}
|
|
9278
|
-
|
|
9279
|
-
function isError(val) {
|
|
9280
|
-
return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
|
|
9281
|
-
}
|
|
9282
|
-
|
|
9283
|
-
function isDate(val) {
|
|
9284
|
-
if (val instanceof Date) return true;
|
|
9285
|
-
return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
|
|
9286
|
-
}
|
|
9287
|
-
|
|
9288
|
-
function kindOf(val) {
|
|
9289
|
-
var typeOfVal = typeof val;
|
|
9290
|
-
|
|
9291
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
9292
|
-
typeOfVal = miniKindOf(val);
|
|
9293
|
-
}
|
|
9294
|
-
|
|
9295
|
-
return typeOfVal;
|
|
9296
|
-
}
|
|
9297
|
-
|
|
9298
9245
|
/**
|
|
9299
9246
|
* Prints a warning in the console if it exists.
|
|
9300
9247
|
*
|
|
@@ -9318,6 +9265,12 @@ function warning(message) {
|
|
|
9318
9265
|
|
|
9319
9266
|
}
|
|
9320
9267
|
|
|
9268
|
+
function getUndefinedStateErrorMessage(key, action) {
|
|
9269
|
+
var actionType = action && action.type;
|
|
9270
|
+
var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
|
|
9271
|
+
return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
|
|
9272
|
+
}
|
|
9273
|
+
|
|
9321
9274
|
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
|
|
9322
9275
|
var reducerKeys = Object.keys(reducers);
|
|
9323
9276
|
var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
|
|
@@ -9327,7 +9280,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|
|
9327
9280
|
}
|
|
9328
9281
|
|
|
9329
9282
|
if (!isPlainObject(inputState)) {
|
|
9330
|
-
return "The " + argumentName + " has unexpected type of \"" +
|
|
9283
|
+
return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
|
|
9331
9284
|
}
|
|
9332
9285
|
|
|
9333
9286
|
var unexpectedKeys = Object.keys(inputState).filter(function (key) {
|
|
@@ -9351,13 +9304,13 @@ function assertReducerShape(reducers) {
|
|
|
9351
9304
|
});
|
|
9352
9305
|
|
|
9353
9306
|
if (typeof initialState === 'undefined') {
|
|
9354
|
-
throw new Error(
|
|
9307
|
+
throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
|
|
9355
9308
|
}
|
|
9356
9309
|
|
|
9357
9310
|
if (typeof reducer(undefined, {
|
|
9358
9311
|
type: ActionTypes.PROBE_UNKNOWN_ACTION()
|
|
9359
9312
|
}) === 'undefined') {
|
|
9360
|
-
throw new Error(
|
|
9313
|
+
throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
|
|
9361
9314
|
}
|
|
9362
9315
|
});
|
|
9363
9316
|
}
|
|
@@ -9441,8 +9394,8 @@ function combineReducers(reducers) {
|
|
|
9441
9394
|
var nextStateForKey = reducer(previousStateForKey, action);
|
|
9442
9395
|
|
|
9443
9396
|
if (typeof nextStateForKey === 'undefined') {
|
|
9444
|
-
var
|
|
9445
|
-
throw new Error(
|
|
9397
|
+
var errorMessage = getUndefinedStateErrorMessage(_key, action);
|
|
9398
|
+
throw new Error(errorMessage);
|
|
9446
9399
|
}
|
|
9447
9400
|
|
|
9448
9401
|
nextState[_key] = nextStateForKey;
|
|
@@ -9454,6 +9407,17 @@ function combineReducers(reducers) {
|
|
|
9454
9407
|
};
|
|
9455
9408
|
}
|
|
9456
9409
|
|
|
9410
|
+
/*
|
|
9411
|
+
* This is a dummy function to check if the function name has been altered by minification.
|
|
9412
|
+
* If the function has been minified and NODE_ENV !== 'production', warn the user.
|
|
9413
|
+
*/
|
|
9414
|
+
|
|
9415
|
+
function isCrushed() {}
|
|
9416
|
+
|
|
9417
|
+
if (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
|
|
9418
|
+
warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
|
|
9419
|
+
}
|
|
9420
|
+
|
|
9457
9421
|
var _localStorage$getItem;
|
|
9458
9422
|
var initialState = {
|
|
9459
9423
|
sidebarShow: "responsive",
|
|
@@ -10723,7 +10687,9 @@ var UserList = function UserList() {
|
|
|
10723
10687
|
className: "align-middle"
|
|
10724
10688
|
}, differenceInCalendarYears(new Date(), new Date(record.dateOfBirth))), React.createElement("td", {
|
|
10725
10689
|
className: "align-middle"
|
|
10726
|
-
}, !!record.roles && record.roles.
|
|
10690
|
+
}, !!record.roles && record.roles.map(function (role) {
|
|
10691
|
+
return role === "SecondaryTeacher" ? "SupportTeacher" : role;
|
|
10692
|
+
}).join(", ")), React.createElement("td", {
|
|
10727
10693
|
className: "align-middle"
|
|
10728
10694
|
}, record.isActive ? t("active") : t("inactive")), React.createElement("td", {
|
|
10729
10695
|
className: "align-middle"
|