mario-education 2.4.576-feedback → 2.4.578-feedback
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/layouts/constants/constants.d.ts +1 -1
- package/dist/containers/Dashboard/configs/types.d.ts +1 -0
- package/dist/containers/FrequencyAndSetup/components/ContactFlowInformation.d.ts +3 -3
- package/dist/containers/FrequencyAndSetup/components/FrequencyModeDetail.d.ts +2 -5
- package/dist/containers/FrequencyAndSetup/components/SortableItem.d.ts +3 -2
- package/dist/containers/FrequencyAndSetup/configs/constants.d.ts +3 -8
- package/dist/containers/FrequencyAndSetup/configs/type.d.ts +30 -9
- package/dist/containers/FrequencyAndSetup/hooks/useFrequencyAndSetup.d.ts +6 -13
- package/dist/index.css +2 -1
- package/dist/index.js +41 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +41 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/services/wellbeingService.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWellBeingFlowContact } from '../configs/type';
|
|
2
2
|
interface IProps {
|
|
3
|
-
|
|
3
|
+
contacts: IWellBeingFlowContact[];
|
|
4
4
|
handleAddContactFlow: Function;
|
|
5
5
|
handleDeleteContactFlow: any;
|
|
6
6
|
handleChangeValueContact: Function;
|
|
@@ -8,5 +8,5 @@ interface IProps {
|
|
|
8
8
|
openModalDelete: boolean;
|
|
9
9
|
setOpenModalDelete: Function;
|
|
10
10
|
}
|
|
11
|
-
declare const ContactFlowInformation: ({
|
|
11
|
+
declare const ContactFlowInformation: ({ contacts, handleAddContactFlow, handleDeleteContactFlow, handleChangeValueContact, contactIdToDeleteRef, openModalDelete, setOpenModalDelete }: IProps) => JSX.Element;
|
|
12
12
|
export default ContactFlowInformation;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
setListSort: any;
|
|
4
|
-
}
|
|
5
|
-
declare const FrequencyModeDetail: ({ listSort, setListSort }: IProps) => JSX.Element;
|
|
1
|
+
import { IFrequencyModeDetail } from '../configs/type';
|
|
2
|
+
declare const FrequencyModeDetail: ({ sections, onChange }: IFrequencyModeDetail) => JSX.Element;
|
|
6
3
|
export default FrequencyModeDetail;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup } from "./type";
|
|
2
2
|
export declare const FrequencyMode: {
|
|
3
3
|
value: Frequency_Mode;
|
|
4
4
|
title: string;
|
|
@@ -8,10 +8,5 @@ export declare const FrequencySetting: {
|
|
|
8
8
|
value: Frequency_Setting;
|
|
9
9
|
title: string;
|
|
10
10
|
}[];
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
order: number;
|
|
16
|
-
}[];
|
|
17
|
-
export declare const InitialContactFlow: ContactFlow;
|
|
11
|
+
export declare const InitialContactFlow: IWellBeingFlowContact;
|
|
12
|
+
export declare const initSetup: IWellBeingSetup;
|
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
export declare enum Frequency_Mode {
|
|
2
|
-
Bulk =
|
|
3
|
-
Detailed =
|
|
2
|
+
Bulk = "Bulk",
|
|
3
|
+
Detailed = "Detailed"
|
|
4
4
|
}
|
|
5
5
|
export declare enum Frequency_Setting {
|
|
6
|
-
Weekly =
|
|
7
|
-
Monthly =
|
|
8
|
-
Custom =
|
|
6
|
+
Weekly = "Weekly",
|
|
7
|
+
Monthly = "Monthly",
|
|
8
|
+
Custom = "Custom"
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface IWellBeingSetup {
|
|
11
11
|
id: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
frequencyMode: Frequency_Mode;
|
|
13
|
+
frequencyType: Frequency_Setting;
|
|
14
|
+
customFrequencyDays: number | null;
|
|
15
|
+
isContactFlowEnabled: boolean;
|
|
16
|
+
sections: IWellBeingSection[];
|
|
17
|
+
contacts: IWellBeingFlowContact[];
|
|
18
|
+
}
|
|
19
|
+
export interface IWellBeingSection {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
iconUrl: string;
|
|
24
|
+
order: number;
|
|
25
|
+
defaultOrder: number;
|
|
26
|
+
}
|
|
27
|
+
export interface IWellBeingFlowContact {
|
|
28
|
+
id: number;
|
|
29
|
+
name: string;
|
|
30
|
+
role: string;
|
|
31
|
+
email: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IFrequencyModeDetail {
|
|
34
|
+
sections: IWellBeingSection[];
|
|
35
|
+
onChange: Function;
|
|
15
36
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { IWellBeingFlowContact, IWellBeingSection, IWellBeingSetup } from "../configs/type";
|
|
3
3
|
declare const useFrequencyAndSetup: () => {
|
|
4
|
-
frequencyMode: Frequency_Mode;
|
|
5
|
-
setFrequencyMode: import("react").Dispatch<import("react").SetStateAction<Frequency_Mode>>;
|
|
6
|
-
frequencySetting: Frequency_Setting;
|
|
7
|
-
setFrequencySetting: import("react").Dispatch<import("react").SetStateAction<Frequency_Setting>>;
|
|
8
|
-
listSort: any[];
|
|
9
|
-
setListSort: import("react").Dispatch<import("react").SetStateAction<any[]>>;
|
|
10
|
-
valueSettingCustom: number;
|
|
11
|
-
setValueSettingCustom: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
12
|
-
switchContactFlow: boolean;
|
|
13
|
-
setSwitchContactFlow: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
14
|
-
listContactFlow: ContactFlow[];
|
|
15
|
-
setListContactFlow: import("react").Dispatch<import("react").SetStateAction<ContactFlow[]>>;
|
|
16
4
|
handleAddContactFlow: () => void;
|
|
17
5
|
handleDeleteContactFlow: (id: number) => void;
|
|
18
6
|
handleChangeValueContact: (id: number, key: string, value: string) => void;
|
|
19
7
|
contactIdToDeleteRef: import("react").MutableRefObject<number>;
|
|
20
8
|
openModalDelete: boolean;
|
|
21
9
|
setOpenModalDelete: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
setup: IWellBeingSetup;
|
|
11
|
+
onChangeSetup: <K extends "id" | "frequencyMode" | "frequencyType" | "customFrequencyDays" | "isContactFlowEnabled" | "sections" | "contacts">(key: K, value: IWellBeingSetup[K]) => void;
|
|
12
|
+
contacts: IWellBeingFlowContact[];
|
|
13
|
+
sections: IWellBeingSection[];
|
|
14
|
+
onChangeSections: (orderSections: IWellBeingSection[]) => void;
|
|
22
15
|
};
|
|
23
16
|
export default useFrequencyAndSetup;
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -30172,7 +30172,7 @@ var INITIAL_STUDENT_SKILL_QUESTION = {
|
|
|
30172
30172
|
var DEFAULT_START_DATE$1 = moment().subtract(2, 'months').startOf("day").valueOf();
|
|
30173
30173
|
var DEFAULT_END_DATE$1 = moment().endOf("day").valueOf();
|
|
30174
30174
|
|
|
30175
|
-
var HEADER_DESKTOP_HEIGHT =
|
|
30175
|
+
var HEADER_DESKTOP_HEIGHT = 68;
|
|
30176
30176
|
var HEADER_MOBILE_HEIGHT = 55;
|
|
30177
30177
|
var NOTIFICATION_HEIGHT = 36;
|
|
30178
30178
|
var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
@@ -33384,10 +33384,16 @@ var EducatorConversationModal = function EducatorConversationModal(_ref) {
|
|
|
33384
33384
|
}, React__default.createElement("div", {
|
|
33385
33385
|
className: "" + styles$3["item"],
|
|
33386
33386
|
style: {
|
|
33387
|
-
maxWidth: "
|
|
33387
|
+
maxWidth: "30%",
|
|
33388
33388
|
textTransform: 'capitalize'
|
|
33389
33389
|
}
|
|
33390
33390
|
}, t("teacher")), React__default.createElement("div", {
|
|
33391
|
+
className: "" + styles$3["item"],
|
|
33392
|
+
style: {
|
|
33393
|
+
maxWidth: "30%",
|
|
33394
|
+
textTransform: 'capitalize'
|
|
33395
|
+
}
|
|
33396
|
+
}, t("Roles")), React__default.createElement("div", {
|
|
33391
33397
|
className: styles$3["item"] + " " + styles$3["grade"],
|
|
33392
33398
|
style: {
|
|
33393
33399
|
maxWidth: "20%"
|
|
@@ -33395,7 +33401,7 @@ var EducatorConversationModal = function EducatorConversationModal(_ref) {
|
|
|
33395
33401
|
}, t("number_of_conversations")), React__default.createElement("div", {
|
|
33396
33402
|
className: styles$3["item"] + " " + styles$3["grade"],
|
|
33397
33403
|
style: {
|
|
33398
|
-
maxWidth: "
|
|
33404
|
+
maxWidth: "20%"
|
|
33399
33405
|
}
|
|
33400
33406
|
}, t("number_of_expected_conversations_based_on_the_goal"))), React__default.createElement("div", {
|
|
33401
33407
|
className: styles$3["metric-modal__body--content"]
|
|
@@ -33406,12 +33412,17 @@ var EducatorConversationModal = function EducatorConversationModal(_ref) {
|
|
|
33406
33412
|
}, React__default.createElement("div", {
|
|
33407
33413
|
className: styles$3["item__data"] + " " + styles$3["item__not-grade"] + " " + styles$3["item__student-information"],
|
|
33408
33414
|
style: {
|
|
33409
|
-
maxWidth: '
|
|
33415
|
+
maxWidth: '30%'
|
|
33410
33416
|
}
|
|
33411
33417
|
}, React__default.createElement("img", {
|
|
33412
33418
|
src: !!(e !== null && e !== void 0 && e.educatorProfileImage) ? marioCore.getFileUrl(e === null || e === void 0 ? void 0 : e.educatorProfileImage) : DEFAULT_USER_AVATAR$3,
|
|
33413
33419
|
alt: e === null || e === void 0 ? void 0 : e.educatorName
|
|
33414
33420
|
}), e === null || e === void 0 ? void 0 : e.educatorName), React__default.createElement("div", {
|
|
33421
|
+
className: styles$3["item__data"] + " " + styles$3["item__grade"],
|
|
33422
|
+
style: {
|
|
33423
|
+
maxWidth: "30%"
|
|
33424
|
+
}
|
|
33425
|
+
}, e === null || e === void 0 ? void 0 : e.roles.join(', ')), React__default.createElement("div", {
|
|
33415
33426
|
className: styles$3["item__data"] + " " + styles$3["item__grade"],
|
|
33416
33427
|
style: {
|
|
33417
33428
|
maxWidth: "20%"
|
|
@@ -33419,7 +33430,7 @@ var EducatorConversationModal = function EducatorConversationModal(_ref) {
|
|
|
33419
33430
|
}, e === null || e === void 0 ? void 0 : e.numberOfConversation), React__default.createElement("div", {
|
|
33420
33431
|
className: styles$3["item__data"] + " " + styles$3["item__grade"],
|
|
33421
33432
|
style: {
|
|
33422
|
-
maxWidth: "
|
|
33433
|
+
maxWidth: "20%"
|
|
33423
33434
|
}
|
|
33424
33435
|
}, e === null || e === void 0 ? void 0 : e.numberOfExpectedConversation));
|
|
33425
33436
|
})))));
|
|
@@ -35567,6 +35578,7 @@ var BarChart = function BarChart(_ref) {
|
|
|
35567
35578
|
if (dataPointIndex != undefined && dataPointIndex !== (currentTooltip === null || currentTooltip === void 0 ? void 0 : currentTooltip.dataPointIndex) && !(currentTooltip !== null && currentTooltip !== void 0 && currentTooltip.isSelect)) {
|
|
35568
35579
|
if (dataPointIndex != -1) {
|
|
35569
35580
|
showTooltipAtIndex(dataPointIndex);
|
|
35581
|
+
selectedBarRef.current = dataPointIndex;
|
|
35570
35582
|
barEls.forEach(function (bar, i) {
|
|
35571
35583
|
if (i === dataPointIndex) {
|
|
35572
35584
|
bar.setAttribute("fill", "#316CD9");
|
|
@@ -35671,6 +35683,29 @@ var BarChart = function BarChart(_ref) {
|
|
|
35671
35683
|
React.useEffect(function () {
|
|
35672
35684
|
tooltipDataRef.current = tooltipData;
|
|
35673
35685
|
}, [tooltipData]);
|
|
35686
|
+
React.useEffect(function () {
|
|
35687
|
+
var handleClickOutside = function handleClickOutside(e) {
|
|
35688
|
+
if (open) return;
|
|
35689
|
+
var chartEl = document.querySelector("#apexchartsmy-bar-chart");
|
|
35690
|
+
if (!chartEl) return;
|
|
35691
|
+
|
|
35692
|
+
if (!chartEl.contains(e.target)) {
|
|
35693
|
+
var barEls = chartEl.querySelectorAll(".apexcharts-bar-series path");
|
|
35694
|
+
var selectedIndex = selectedBarRef.current;
|
|
35695
|
+
|
|
35696
|
+
if (selectedIndex !== null && barEls[selectedIndex]) {
|
|
35697
|
+
barEls[selectedIndex].setAttribute("fill", "#C4D4F3");
|
|
35698
|
+
selectedBarRef.current = null;
|
|
35699
|
+
setTooltipData(null);
|
|
35700
|
+
}
|
|
35701
|
+
}
|
|
35702
|
+
};
|
|
35703
|
+
|
|
35704
|
+
document.addEventListener("click", handleClickOutside);
|
|
35705
|
+
return function () {
|
|
35706
|
+
document.removeEventListener("click", handleClickOutside);
|
|
35707
|
+
};
|
|
35708
|
+
}, [open]);
|
|
35674
35709
|
return React__default.createElement("div", null, React__default.createElement("div", {
|
|
35675
35710
|
ref: chartWrapperRef,
|
|
35676
35711
|
style: {
|
|
@@ -38171,7 +38206,7 @@ var Dashboard = function Dashboard() {
|
|
|
38171
38206
|
handleHoverTooltip: handleHoverTooltip
|
|
38172
38207
|
})
|
|
38173
38208
|
}];
|
|
38174
|
-
}, [lowMetricStudents, studentSkillQuestion.responseStudentSafety, studentSkillQuestion.responseStudentStress, studentSkillQuestion.studentPercentageStress, studentSkillQuestion.studentPercentageUnsafe, studentSkillQuestion.studentSafetyQuestionCount, studentSkillQuestion.studentStressQuestionCount, studentPressure, avgQuestionLastMonth, stressData, safetyData, successIndicatorsData, successIndicatorWeeklyData, topLearningStrategies, summarizeQuestions, preparednessData, readinessToLearning, dataOverallReadyToLearn, preparednessWeeklyData, filter, activeColumnReadiness, activeColumnIndicators]);
|
|
38209
|
+
}, [lowMetricStudents, studentSkillQuestion.responseStudentSafety, studentSkillQuestion.responseStudentStress, studentSkillQuestion.studentPercentageStress, studentSkillQuestion.studentPercentageUnsafe, studentSkillQuestion.studentSafetyQuestionCount, studentSkillQuestion.studentStressQuestionCount, studentPressure, avgQuestionLastMonth, stressData, safetyData, successIndicatorsData, successIndicatorWeeklyData, topLearningStrategies, summarizeQuestions, preparednessData, readinessToLearning, dataOverallReadyToLearn, preparednessWeeklyData, filter, activeColumnReadiness, activeColumnIndicators, conversationKpi]);
|
|
38175
38210
|
return React__default.createElement(core$1.Grid, {
|
|
38176
38211
|
className: "" + styles$3["plp-container"]
|
|
38177
38212
|
}, React__default.createElement(core$1.Grid, {
|