mario-teacher-student-client 2.0.64-release → 2.0.65-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.
- package/dist/AddNew-B1Thfo4-.js +167 -0
- package/dist/AddNew-CgjZsSDT.cjs +1 -0
- package/dist/AddNewClassReflection-DcpAkPjC.cjs +1 -0
- package/dist/AddNewClassReflection-cTnnmu7k.js +921 -0
- package/dist/CalendarIcon-Bgm-Dcv2.js +24 -0
- package/dist/CalendarIcon-DcA4xF5x.cjs +1 -0
- package/dist/CheckInProgress-DISr9AcZ.cjs +27 -0
- package/dist/CheckInProgress-gi62EZfp.js +927 -0
- package/dist/ConferenceRubric-DoPN0ygl.cjs +1 -0
- package/dist/ConferenceRubric-Dsr4ru-m.js +362 -0
- package/dist/ConfirmDeleteOneToOne-BaDC65sM.js +2084 -0
- package/dist/ConfirmDeleteOneToOne-CBf8nvVU.cjs +16 -0
- package/dist/ConfirmStartWellBeing-_cGjYqOU.cjs +1 -0
- package/dist/ConfirmStartWellBeing-aa5rImYO.js +52 -0
- package/dist/CreateQrCode-B_xUuJ7R.cjs +1 -0
- package/dist/CreateQrCode-DE1QWcet.js +67 -0
- package/dist/CreateStudent-BhNZsQZQ.js +1303 -0
- package/dist/CreateStudent-Du_wwqov.cjs +1 -0
- package/dist/CustomTab-ClHR2NpE.cjs +1 -0
- package/dist/CustomTab-d4UOd78v.js +227 -0
- package/dist/EditNote-BaieuYR0.js +178 -0
- package/dist/EditNote-D6m_NjQW.cjs +1 -0
- package/dist/EduTeacherViewDetail-CFLVtTDR.js +43 -0
- package/dist/EduTeacherViewDetail-DSNjWaZ_.cjs +1 -0
- package/dist/ExternalReflection-Va2t22Uz.js +322 -0
- package/dist/ExternalReflection-eBVtpZib.cjs +1 -0
- package/dist/GenerateChartData-CJWMBhah.js +401 -0
- package/dist/GenerateChartData-HiyZe1dX.cjs +1 -0
- package/dist/GenerateTrendQuestion-FfpVpCCI.js +1354 -0
- package/dist/GenerateTrendQuestion-dwTcujeD.cjs +2 -0
- package/dist/GuideCheckIn-BWHND13y.cjs +1 -0
- package/dist/GuideCheckIn-dV3Pa_0h.js +226 -0
- package/dist/HeaderComponent-CoIOSEMO.cjs +25 -0
- package/dist/HeaderComponent-DmJlCq2-.js +233 -0
- package/dist/HomePage-BsUAJBlu.js +3603 -0
- package/dist/HomePage-C2Jbx8FI.cjs +234 -0
- package/dist/LearningPlan-ApkT5m-r.js +3388 -0
- package/dist/LearningPlan-DP9bSlus.cjs +7 -0
- package/dist/LearningPlanChip-CDX726Z2.js +350 -0
- package/dist/LearningPlanChip-D_lxNOK0.cjs +1 -0
- package/dist/LearningStrategyComponent-3LvFQ-gi.cjs +1 -0
- package/dist/LearningStrategyComponent-D09at_uY.js +132 -0
- package/dist/ListSurveys-BkcqFZzZ.cjs +36 -0
- package/dist/ListSurveys-Cfnx9Mf1.js +1762 -0
- package/dist/LockIcon-C-rzqklE.js +107 -0
- package/dist/LockIcon-Dl-BfhZ1.cjs +1 -0
- package/dist/MainLayout-DDtLmzil.cjs +12 -0
- package/dist/MainLayout-Dk11VRd4.js +2326 -0
- package/dist/MainViewScaffolding-B8YVzetA.js +125 -0
- package/dist/MainViewScaffolding-BNKrzskM.cjs +1 -0
- package/dist/ModelStudentSession-7BPvdYyL.cjs +1 -0
- package/dist/ModelStudentSession-DFlCTc7U.js +136 -0
- package/dist/MyClassSchedule-DPwrZ6Th.js +582 -0
- package/dist/MyClassSchedule-SSNsNT60.cjs +1 -0
- package/dist/MyConversation-CcjPvR_4.cjs +1 -0
- package/dist/MyConversation-CoBNWjXX.js +2007 -0
- package/dist/MyOneToOne-Czz_vbCJ.js +1954 -0
- package/dist/MyOneToOne-DgjTEok2.cjs +1 -0
- package/dist/MyProfile-6iFjT3K0.cjs +1 -0
- package/dist/MyProfile-BCdgx_1T.cjs +1 -0
- package/dist/MyProfile-BUrH1vck.js +564 -0
- package/dist/MyProfile-Csr1PAM8.js +564 -0
- package/dist/MyStudent-CGqdlNx8.js +1397 -0
- package/dist/MyStudent-CN745nZL.cjs +1 -0
- package/dist/MyTransitionPlan-SGM6w_To.js +150 -0
- package/dist/MyTransitionPlan-yAy9nBPX.cjs +1 -0
- package/dist/MyWellBeing-DsfDOShL.js +591 -0
- package/dist/MyWellBeing-w0LNq5BP.cjs +1 -0
- package/dist/NewLearningPlan-BffVWdgm.js +2185 -0
- package/dist/NewLearningPlan-CVd0Cx19.cjs +2 -0
- package/dist/NewLearningPlanIEP-BPsIjmbO.cjs +2 -0
- package/dist/NewLearningPlanIEP-SMlwfXHi.js +559 -0
- package/dist/Note-Day3CtoT.js +1637 -0
- package/dist/Note-Dl9tU52M.cjs +2 -0
- package/dist/NoteDetail-CDppy7OX.js +367 -0
- package/dist/NoteDetail-JAhaqPmT.cjs +1 -0
- package/dist/PauseCircleOutline-B2mxgRlZ.cjs +1 -0
- package/dist/PauseCircleOutline-BqP5UO77.js +14 -0
- package/dist/PersonalLearningGoal-BELqG7NV.cjs +1 -0
- package/dist/PersonalLearningGoal-DakATB1h.js +6308 -0
- package/dist/PlpPage-CroOXc3i.cjs +12 -0
- package/dist/PlpPage-D7ip02rm.js +4327 -0
- package/dist/PreviewSurvey-BSYjsfPS.js +689 -0
- package/dist/PreviewSurvey-Ji-0Dkhq.cjs +3 -0
- package/dist/ProfileCurrentStudent-BKV_cb-j.cjs +1 -0
- package/dist/ProfileCurrentStudent-CMSfcwcy.js +1833 -0
- package/dist/ProfileCurrentStudent-DR-h7KiU.cjs +1 -0
- package/dist/ProfileCurrentStudent-DX4S1Dci.js +1833 -0
- package/dist/ResultConferenceRubric-B4SBDxfV.js +253 -0
- package/dist/ResultConferenceRubric-BWRyU3Xc.cjs +1 -0
- package/dist/ResultReflection-CI-OoEbI.js +177 -0
- package/dist/ResultReflection-DxQF3fWR.cjs +1 -0
- package/dist/RouterPrompt-D7JjaP0T.js +64 -0
- package/dist/RouterPrompt-Drlpto29.cjs +1 -0
- package/dist/ScaffoldingFloatTab-BbVDpyPz.js +1365 -0
- package/dist/ScaffoldingFloatTab-Bk7HLTbC.cjs +1 -0
- package/dist/SessionResultComponent-BWXaCJYH.js +260 -0
- package/dist/SessionResultComponent-DT98MM4U.cjs +1 -0
- package/dist/SimpleDialog-QErzkjvY.cjs +1 -0
- package/dist/SimpleDialog-TDrq1J9H.js +127 -0
- package/dist/StartReflection-BX0NWKvs.cjs +1 -0
- package/dist/StartReflection-CTFYSU-X.js +321 -0
- package/dist/StudentDetail-D-MMGF5Q.cjs +1 -0
- package/dist/StudentDetail-DG6BaHZR.js +2762 -0
- package/dist/StudentReflection-BFBJQHMt.js +1463 -0
- package/dist/StudentReflection-D8uflVwG.cjs +1 -0
- package/dist/SurveyDetail-BcZGKNZ8.js +1567 -0
- package/dist/SurveyDetail-s6mclcm9.cjs +1 -0
- package/dist/SurveyOverview-BxGBM3Om.cjs +12 -0
- package/dist/SurveyOverview-CM5WMknY.js +714 -0
- package/dist/SurveyStudentList-ZBvWFtB3.cjs +1 -0
- package/dist/SurveyStudentList-rspOwr3R.js +703 -0
- package/dist/Sync-CBUFfk-W.js +390 -0
- package/dist/Sync-lE-tnxRa.cjs +1 -0
- package/dist/UiCompletedOneToOne-5WyI5cev.cjs +1 -0
- package/dist/UiCompletedOneToOne-DVe-T8Rg.js +2373 -0
- package/dist/UpdateStudentProfile-DTBwb_af.cjs +1 -0
- package/dist/UpdateStudentProfile-Jb8-XlTO.js +1789 -0
- package/dist/ViewItemNote-BUGdcaER.cjs +1 -0
- package/dist/ViewItemNote-BjeN9o5w.js +517 -0
- package/dist/ViewSessionResultComponent-C2VPm06D.js +242 -0
- package/dist/ViewSessionResultComponent-kylPphdp.cjs +1 -0
- package/dist/WellBeingCompleted-AEnZqMmi.cjs +1 -0
- package/dist/WellBeingCompleted-D_YOLl7g.js +181 -0
- package/dist/WellBeingDashboard-D8jrExw1.js +1339 -0
- package/dist/WellBeingDashboard-DkgwSJWu.cjs +1 -0
- package/dist/WellbeingAssessment-ClTaIuMP.cjs +10 -0
- package/dist/WellbeingAssessment-DvrWvkb6.js +689 -0
- package/dist/completeOneToOne.module-D2GL40pw.js +284 -0
- package/dist/completeOneToOne.module-DQk57dSw.cjs +1 -0
- package/dist/components/Dialog/SimpleDialog.d.ts +1 -0
- package/dist/components/Dialog/SimpleDialog.d.ts.map +1 -1
- package/dist/components/Input/CustumInput.d.ts.map +1 -1
- package/dist/components/Tabs/StudentTab.d.ts.map +1 -1
- package/dist/components/layouts/HeaderSideBar.d.ts.map +1 -1
- package/dist/components/layouts/hooks/useHeaderSideBar.d.ts.map +1 -1
- package/dist/constants-CANl_Dur.cjs +1 -0
- package/dist/constants-w6g4YfJ8.js +103 -0
- package/dist/containers/ConductOneToOne/hooks/useConductOne.d.ts +1 -0
- package/dist/containers/ConductOneToOne/hooks/useConductOne.d.ts.map +1 -1
- package/dist/containers/ConductOneToOne/views/CheckInProgress.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/components/CheckInCompleted.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/components/dialog/LogOneToOne.d.ts +2 -2
- package/dist/containers/MyOneToOne/components/dialog/LogOneToOne.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/components/dialog/LogOneToOneChoice.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/components/dialog/RedirectPLPModal.d.ts +1 -0
- package/dist/containers/MyOneToOne/components/dialog/RedirectPLPModal.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/constants/constants.d.ts +16 -2
- package/dist/containers/MyOneToOne/constants/constants.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/constants/types.d.ts +10 -0
- package/dist/containers/MyOneToOne/constants/types.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/hooks/useLogOneToOne.d.ts +67 -15
- package/dist/containers/MyOneToOne/hooks/useLogOneToOne.d.ts.map +1 -1
- package/dist/containers/MyOneToOne/hooks/useSessionCompleted.d.ts +4 -1
- package/dist/containers/MyOneToOne/hooks/useSessionCompleted.d.ts.map +1 -1
- package/dist/containers/MyWellbeing/hook/useMyWellBeing.d.ts.map +1 -1
- package/dist/containers/Note/components/Note.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/apiClient/index.d.ts +1 -0
- package/dist/containers/ScaffoldingExample/apiClient/index.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/hooks/useNotes.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/services/index.d.ts +1 -0
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/services/index.d.ts.map +1 -1
- package/dist/index-BzAw3XXH.cjs +1 -0
- package/dist/index-CFof3gl0.js +272 -0
- package/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/mario-teacher-student-client.css +1 -1
- package/dist/myStudent.module-7t9yBSSi.js +232 -0
- package/dist/myStudent.module-DgzdlTmJ.cjs +1 -0
- package/dist/style.module-BVpDq9Z6.cjs +1 -0
- package/dist/style.module-Bv4lJBDk.js +51 -0
- package/dist/useConductOne-Cz59XH-7.js +652 -0
- package/dist/useConductOne-pXEczr3c.cjs +1 -0
- package/dist/useNoteAdd-Cs769z80.cjs +1 -0
- package/dist/useNoteAdd-DPE1CFfX.js +572 -0
- package/dist/useProfileDialog-BYKNmfP9.js +1191 -0
- package/dist/useProfileDialog-BsR1aHlH.cjs +2 -0
- package/dist/useTransitionPlanTab-BSbrQdVJ.cjs +11 -0
- package/dist/useTransitionPlanTab-Cc45L9gl.js +3226 -0
- package/package.json +2 -2
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Grid as i, Typography as I, Button as h, Box as w } from "@mui/material";
|
|
3
|
+
import { c as B, s as t } from "./useNoteAdd-DPE1CFfX.js";
|
|
4
|
+
import { A as F } from "./ArrowBack-B5xluQH1.js";
|
|
5
|
+
import { S as p } from "./Save-CL1mWoi8.js";
|
|
6
|
+
import { I as W } from "./InputComponent-CYCB-KG3.js";
|
|
7
|
+
import { useSelector as L } from "react-redux";
|
|
8
|
+
import { S as u } from "./Star-Dc8tm8n4.js";
|
|
9
|
+
import { S as v } from "./StarBorder-DkcstOi2.js";
|
|
10
|
+
import { useTranslation as j } from "mario-core";
|
|
11
|
+
import { u as q } from "./useAutoCompleteStyle-CL_ULKu3.js";
|
|
12
|
+
import { A as z } from "./Autocomplete-JU1FOwpT.js";
|
|
13
|
+
import { T as N } from "./TextField-yImTzIRc.js";
|
|
14
|
+
const X = () => {
|
|
15
|
+
const { t: a } = j(), {
|
|
16
|
+
handleNote: $,
|
|
17
|
+
note: f,
|
|
18
|
+
addDataNote: l,
|
|
19
|
+
title: x,
|
|
20
|
+
studentList: b,
|
|
21
|
+
handleChangeStudent: _,
|
|
22
|
+
viewListNote: C,
|
|
23
|
+
handleTitle: S,
|
|
24
|
+
errorSelect: s,
|
|
25
|
+
errorTitle: c,
|
|
26
|
+
student: T,
|
|
27
|
+
classFontSize: k,
|
|
28
|
+
handleChangeFavourite: d,
|
|
29
|
+
isFavourite: m
|
|
30
|
+
} = B(), g = q(), y = L(
|
|
31
|
+
(o) => o.common?.user?.roles[0]
|
|
32
|
+
), r = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
33
|
+
return /* @__PURE__ */ n("div", { className: `${t.noteComponent} ${t[k]}`, children: [
|
|
34
|
+
/* @__PURE__ */ e(i, { container: !0, spacing: 2, children: /* @__PURE__ */ e(i, { item: !0, xs: 12, children: /* @__PURE__ */ n("div", { className: `${t["header-page"]}`, children: [
|
|
35
|
+
/* @__PURE__ */ n(
|
|
36
|
+
I,
|
|
37
|
+
{
|
|
38
|
+
variant: "h3",
|
|
39
|
+
component: "h3",
|
|
40
|
+
className: `${t["header-text"]}`,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ e(
|
|
43
|
+
F,
|
|
44
|
+
{
|
|
45
|
+
onClick: C,
|
|
46
|
+
className: `${t["button-back"]}`
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e("span", { className: `${t["text-name-header"]}`, children: a("add_new_note") })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
r > 768 && /* @__PURE__ */ e(
|
|
54
|
+
h,
|
|
55
|
+
{
|
|
56
|
+
variant: "contained",
|
|
57
|
+
className: `${t["button-add"]}`,
|
|
58
|
+
onClick: () => l(),
|
|
59
|
+
children: /* @__PURE__ */ n(
|
|
60
|
+
"span",
|
|
61
|
+
{
|
|
62
|
+
className: `${t["text-button-header"]}`,
|
|
63
|
+
children: [
|
|
64
|
+
a("save"),
|
|
65
|
+
" ",
|
|
66
|
+
/* @__PURE__ */ e(p, {})
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
] }) }) }),
|
|
73
|
+
/* @__PURE__ */ n(i, { container: !0, spacing: 2, children: [
|
|
74
|
+
/* @__PURE__ */ n(i, { item: !0, xs: r > 768 ? 4 : 12, children: [
|
|
75
|
+
/* @__PURE__ */ e("div", { className: `${t["content-add"]}`, children: ["Teacher", "Assistant", "Counselor", "SecondaryTeacher"].includes(y) && /* @__PURE__ */ n("div", { children: [
|
|
76
|
+
/* @__PURE__ */ n("p", { className: `${t["title-select"]}`, children: [
|
|
77
|
+
" ",
|
|
78
|
+
a("select_student")
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ e(
|
|
81
|
+
z,
|
|
82
|
+
{
|
|
83
|
+
slotProps: { popper: { className: g.popper } },
|
|
84
|
+
id: "free-solo-demo",
|
|
85
|
+
className: `${t["select-name"]}`,
|
|
86
|
+
options: b,
|
|
87
|
+
disableClearable: !0,
|
|
88
|
+
value: T,
|
|
89
|
+
onChange: (o, A) => _(A),
|
|
90
|
+
getOptionLabel: (o) => o.fullName,
|
|
91
|
+
renderInput: (o) => /* @__PURE__ */ e(
|
|
92
|
+
N,
|
|
93
|
+
{
|
|
94
|
+
...o,
|
|
95
|
+
label: a("student_name"),
|
|
96
|
+
variant: "outlined",
|
|
97
|
+
error: s,
|
|
98
|
+
helperText: s && `${a("please_select_student")}!`
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
] }) }),
|
|
104
|
+
/* @__PURE__ */ n("div", { className: `${t["note-detail"]}`, children: [
|
|
105
|
+
/* @__PURE__ */ e(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: `${t["title-note-detail-container"]}`,
|
|
109
|
+
children: /* @__PURE__ */ e("p", { className: `${t["title-note-detail"]}`, children: a("note_detail") })
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
r < 768 && /* @__PURE__ */ n(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
className: `${t["favourite-checkbox-box"]}`,
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ e("div", { onClick: d, children: m ? /* @__PURE__ */ e(u, {}) : /* @__PURE__ */ e(v, {}) }),
|
|
118
|
+
/* @__PURE__ */ e("p", { children: a("mark_as_favorite") })
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
123
|
+
N,
|
|
124
|
+
{
|
|
125
|
+
label: a("note_title"),
|
|
126
|
+
variant: "outlined",
|
|
127
|
+
error: c,
|
|
128
|
+
helperText: c && "Title is required",
|
|
129
|
+
className: `${t["input-title"]}`,
|
|
130
|
+
value: x,
|
|
131
|
+
onChange: (o) => S(o)
|
|
132
|
+
}
|
|
133
|
+
) }),
|
|
134
|
+
/* @__PURE__ */ e("div", { className: `${t["input-note"]}`, children: /* @__PURE__ */ e(
|
|
135
|
+
W,
|
|
136
|
+
{
|
|
137
|
+
name: a("type_a_note"),
|
|
138
|
+
placeholder: a("type_a_note"),
|
|
139
|
+
valueText: f,
|
|
140
|
+
onChange: (o) => $(o)
|
|
141
|
+
}
|
|
142
|
+
) })
|
|
143
|
+
] })
|
|
144
|
+
] }),
|
|
145
|
+
r > 768 && /* @__PURE__ */ e(i, { item: !0, xs: 8, children: /* @__PURE__ */ n("div", { className: `${t["favourite-checkbox-box"]}`, children: [
|
|
146
|
+
/* @__PURE__ */ e("div", { onClick: d, children: m ? /* @__PURE__ */ e(u, {}) : /* @__PURE__ */ e(v, {}) }),
|
|
147
|
+
/* @__PURE__ */ e("p", { children: a("mark_as_favorite") })
|
|
148
|
+
] }) })
|
|
149
|
+
] }),
|
|
150
|
+
r < 768 && /* @__PURE__ */ e(w, { className: `${t["button-save-mobile"]}`, children: /* @__PURE__ */ e(
|
|
151
|
+
h,
|
|
152
|
+
{
|
|
153
|
+
variant: "contained",
|
|
154
|
+
className: `${t["button-add"]}`,
|
|
155
|
+
onClick: () => l(),
|
|
156
|
+
children: /* @__PURE__ */ n("span", { className: `${t["text-button-header"]}`, children: [
|
|
157
|
+
a("save"),
|
|
158
|
+
" ",
|
|
159
|
+
/* @__PURE__ */ e(p, {})
|
|
160
|
+
] })
|
|
161
|
+
}
|
|
162
|
+
) })
|
|
163
|
+
] });
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
X as default
|
|
167
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@mui/material"),t=require("./useNoteAdd-Cs769z80.cjs"),g=require("./ArrowBack-7VCmUcq8.cjs"),u=require("./Save-CtYe2Qdf.cjs"),k=require("./InputComponent-CDPQ1rak.cjs"),A=require("react-redux"),x=require("./Star-D-xVhvdA.cjs"),h=require("./StarBorder-uLKMgfof.cjs"),I=require("mario-core"),f=require("./useAutoCompleteStyle-CXreWH9v.cjs"),B=require("./Autocomplete-BHUmiAI-.cjs"),m=require("./TextField-DKwj-KwZ.cjs"),w=()=>{const{t:s}=I.useTranslation(),{handleNote:j,note:p,addDataNote:l,title:v,studentList:y,handleChangeStudent:N,viewListNote:$,handleTitle:b,errorSelect:o,errorTitle:i,student:C,classFontSize:S,handleChangeFavourite:c,isFavourite:d}=t.useNoteAdd(),_=f.useAutoCompleteStyle(),q=A.useSelector(n=>n.common?.user?.roles[0]),a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return e.jsxs("div",{className:`${t.styles.noteComponent} ${t.styles[S]}`,children:[e.jsx(r.Grid,{container:!0,spacing:2,children:e.jsx(r.Grid,{item:!0,xs:12,children:e.jsxs("div",{className:`${t.styles["header-page"]}`,children:[e.jsxs(r.Typography,{variant:"h3",component:"h3",className:`${t.styles["header-text"]}`,children:[e.jsx(g.ArrowBackIcon,{onClick:$,className:`${t.styles["button-back"]}`}),e.jsx("span",{className:`${t.styles["text-name-header"]}`,children:s("add_new_note")})]}),a>768&&e.jsx(r.Button,{variant:"contained",className:`${t.styles["button-add"]}`,onClick:()=>l(),children:e.jsxs("span",{className:`${t.styles["text-button-header"]}`,children:[s("save")," ",e.jsx(u.SaveIcon,{})]})})]})})}),e.jsxs(r.Grid,{container:!0,spacing:2,children:[e.jsxs(r.Grid,{item:!0,xs:a>768?4:12,children:[e.jsx("div",{className:`${t.styles["content-add"]}`,children:["Teacher","Assistant","Counselor","SecondaryTeacher"].includes(q)&&e.jsxs("div",{children:[e.jsxs("p",{className:`${t.styles["title-select"]}`,children:[" ",s("select_student")]}),e.jsx(B.Autocomplete,{slotProps:{popper:{className:_.popper}},id:"free-solo-demo",className:`${t.styles["select-name"]}`,options:y,disableClearable:!0,value:C,onChange:(n,T)=>N(T),getOptionLabel:n=>n.fullName,renderInput:n=>e.jsx(m.TextField,{...n,label:s("student_name"),variant:"outlined",error:o,helperText:o&&`${s("please_select_student")}!`})})]})}),e.jsxs("div",{className:`${t.styles["note-detail"]}`,children:[e.jsx("div",{className:`${t.styles["title-note-detail-container"]}`,children:e.jsx("p",{className:`${t.styles["title-note-detail"]}`,children:s("note_detail")})}),a<768&&e.jsxs("div",{className:`${t.styles["favourite-checkbox-box"]}`,children:[e.jsx("div",{onClick:c,children:d?e.jsx(x.StarIcon,{}):e.jsx(h.StarBorderIcon,{})}),e.jsx("p",{children:s("mark_as_favorite")})]}),e.jsx("div",{children:e.jsx(m.TextField,{label:s("note_title"),variant:"outlined",error:i,helperText:i&&"Title is required",className:`${t.styles["input-title"]}`,value:v,onChange:n=>b(n)})}),e.jsx("div",{className:`${t.styles["input-note"]}`,children:e.jsx(k.InputComponent,{name:s("type_a_note"),placeholder:s("type_a_note"),valueText:p,onChange:n=>j(n)})})]})]}),a>768&&e.jsx(r.Grid,{item:!0,xs:8,children:e.jsxs("div",{className:`${t.styles["favourite-checkbox-box"]}`,children:[e.jsx("div",{onClick:c,children:d?e.jsx(x.StarIcon,{}):e.jsx(h.StarBorderIcon,{})}),e.jsx("p",{children:s("mark_as_favorite")})]})})]}),a<768&&e.jsx(r.Box,{className:`${t.styles["button-save-mobile"]}`,children:e.jsx(r.Button,{variant:"contained",className:`${t.styles["button-add"]}`,onClick:()=>l(),children:e.jsxs("span",{className:`${t.styles["text-button-header"]}`,children:[s("save")," ",e.jsx(u.SaveIcon,{})]})})})]})};exports.default=w;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),S=require("@mui/x-date-pickers"),E=require("moment"),s=require("@mui/material"),t=require("./dashboardReflection.module-BtltcAOZ.cjs"),j=require("mario-core"),v=require("./ArrowDropDown-D-53OauZ.cjs"),U=require("./createSvgIcon-B0q--prM.cjs"),x=require("./HeaderUserDetail-BAzKj0jP.cjs"),T=require("./contants-CLGBKhk2.cjs"),I=require("./Close-l_LSwIM6.cjs"),z=require("./index-B8qDnyYp.cjs"),Y=require("react-router-dom"),V=require("./Send-B-J3btn4.cjs"),H=require("./useAddClassReflection-laGlaYEE.cjs"),W=require("./AddBox-DoHfpYXh.cjs"),q=require("./types-DUv1CRJR.cjs"),_=require("./constants-CyY_jzim.cjs"),J=require("./RouterPrompt-Drlpto29.cjs"),K=require("./AdapterMoment-B-q0UCj0.cjs"),X=U.createSvgIcon(e.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune"),Z=({model:l,onCLose:p,questionList:o,checkStudent:k,onSelectQuestion:g,onInputChange:h,onCheckSelectQuestion:u,onSelectGroupQuestion:y,questionChangeIds:d,onSaveChangeQuestion:f,currentName:m,isStudent:N})=>{const i=k(l?.studentEmail||""),{t:$}=j.useTranslation();return e.jsx(s.Dialog,{open:!!l,onClose:()=>p(null),maxWidth:"xl",className:`${t.styles["dialog-customize"]}`,disableEnforceFocus:!0,disableRestoreFocus:!0,children:e.jsxs(s.Grid,{className:`${t.styles["block-customize"]}`,children:[e.jsx(s.Grid,{className:`${t.styles["close-icon"]}`,children:e.jsx(I.CloseIcon,{className:`${t.styles.icon}`,onClick:()=>p(null)})}),e.jsx(x.HeaderUserDetail,{id:l?.id,studentName:N?m:i?.fullName||"",grade:i?.gradeLevel||"",classType:l?.classType||"",date:j.utcToLocalTime(new Date(l?.classDate||0).toString(),"Do MMM YYYY"),avatar:i?.profileImageFileName,optionTimes:T.optionTimes,timOfDay:l?.startOfDay,onInputChange:h}),e.jsxs(s.Typography,{className:`${t.styles.describe}`,children:[$("include_section_you_want_to_appear"),":"]}),e.jsxs(s.Grid,{children:[e.jsxs(s.Grid,{hidden:o?.questionBlock1?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{className:`${t.styles["checkbox-style"]}`,checked:u(o?.questionBlock1,l?.id),onChange:()=>y(o?.questionBlock1,l?.id),name:"checkedB"}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:o?.questionBlock1?.map(n=>e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock2?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock2,l?.id),onChange:()=>y(o?.questionBlock2,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock2?.map(n=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})})]}),o?.questionBlock3?.map(n=>e.jsxs(s.Grid,{className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:d.includes(n.id),onChange:()=>g(n.id,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})})})]},n.id)),e.jsxs(s.Grid,{hidden:o?.questionBlock4?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock4,l?.id),onChange:()=>y(o?.questionBlock4,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:o?.questionBlock4?.map(n=>e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock5?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock5,l?.id),onChange:()=>y(o?.questionBlock5,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:o?.questionBlock5?.map(n=>e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})]})]}),e.jsx(s.Button,{fullWidth:!0,className:`${t.styles["save-button"]}`,onClick:()=>f(l?.id),children:$("save")})]})})},ee=({model:l,onCLose:p,questionList:o,checkStudent:k,onSelectQuestion:g,onInputChange:h,onCheckSelectQuestion:u,onSelectGroupQuestion:y,questionChangeIds:d,onSaveChangeQuestion:f})=>{const m=k(l?.studentEmail||""),{t:N}=j.useTranslation();return e.jsx(s.Dialog,{open:!!l,onClose:()=>p(null),maxWidth:"xl",className:`${t.styles["dialog-customize"]}`,disableEnforceFocus:!0,disableRestoreFocus:!0,children:e.jsxs(s.Grid,{className:`${t.styles["block-customize"]}`,children:[e.jsx(s.Grid,{className:`${t.styles["close-icon"]}`,children:e.jsx(I.CloseIcon,{className:`${t.styles.icon}`,onClick:()=>p(null)})}),e.jsx(x.HeaderUserDetail,{id:l?.id,studentName:m?.fullName||"",grade:m?.gradeLevel||"",date:j.utcToLocalTime(new Date(l?.classDate||0).toString(),"Do MMM YYYY"),avatar:m?.profileImageFileName,optionTimes:T.optionTimes,timOfDay:l?.startOfDay,classType:l?.classType,onInputChange:h}),e.jsxs(s.Typography,{className:`${t.styles.describe}`,children:[N("include_section_you_want_to_appear"),":"]}),e.jsxs(s.Grid,{children:[o?.questionBlock1?.map(i=>e.jsxs(s.Grid,{className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:d.includes(i.id),onChange:()=>g(i.id,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})})})]},i.id)),e.jsxs(s.Grid,{hidden:o?.questionBlock2?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock2,l?.id),onChange:()=>y(o?.questionBlock2,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock2?.map(i=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})},i.id))})})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock3?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock3,l?.id),onChange:()=>y(o?.questionBlock3,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock3?.map(i=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})},i.id))})})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock4?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock4,l?.id),onChange:()=>y(o?.questionBlock4,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock4?.map(i=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})},i.id))})})]})]}),e.jsx(s.Button,{fullWidth:!0,className:`${t.styles["save-button"]}`,onClick:()=>f(l?.id),children:N("save")})]})})},se=()=>{const{t:l}=j.useTranslation(),p=Y.useNavigate(),{onSaveClassReflection:o,questionList:k,rowClassReflection:g,openModelCustom:h,setOpenModelCustom:u,addRowClassReflection:y,handleInputChange:d,listClassType:f,checkStudent:m,listStudent:N,listBandScore:i,checkBandScore:$,handleSelectQuestion:n,handleSelectGroupQuestion:B,handleCheckSelectQuestion:A,error:b,removeRowClassReflection:D,questionTeacherList:F,isStudent:C,setQuestionChangeIds:R,questionChangeIds:G,handleSaveChangeQuestion:w,handleBackPage:M,currentName:P,removeQuestLink:Q}=H.useAddClassReflection(),L=()=>{o(()=>{M()})};return e.jsxs(s.Grid,{children:[e.jsxs(s.Grid,{className:`${t.styles["header-box"]}`,children:[e.jsxs(s.Typography,{className:`${t.styles["header-box-title"]}`,children:[e.jsx(z.BiArrowBack,{onClick:()=>p(-1)}),l("reflections")]}),e.jsxs(s.Grid,{className:`${t.styles["header-box-right"]}`,children:[e.jsxs(s.Button,{onClick:()=>y(),className:`${t.styles["btn-add"]}`,children:[e.jsx(s.Typography,{className:`${t.styles["btn-add-title"]}`,children:l("add_new")}),e.jsx(W.AddBoxIcon,{className:`${t.styles["btn-add-icon"]}`})]}),e.jsxs(s.Button,{onClick:()=>L(),className:`${t.styles["btn-send"]}`,children:[e.jsx(s.Typography,{className:`${t.styles["btn-send-title"]}`,children:l(C?"start_reflection":"send_request")}),e.jsx(V.SendIcon,{className:`${t.styles["btn-send-icon"]}`})]})]})]}),e.jsx(s.Grid,{className:`${t.styles["create-reflection-box"]}`,children:g?.map((c,O)=>e.jsxs(s.Grid,{className:`${t.styles["create-item"]}`,children:[e.jsxs(s.Grid,{className:`${t.styles["create-item-header"]}`,children:[e.jsxs(s.Typography,{className:`${t.styles["req-number-item"]}`,children:[l("request_number"),": ",O+1]}),e.jsx(I.CloseIcon,{className:`${t.styles["remove-icon"]}`,onClick:()=>D(c.id)})]}),e.jsx(s.Autocomplete,{hidden:C,id:"free-solo-2-demo",fullWidth:!0,options:N,getOptionLabel:a=>a.fullName?a.fullName:"",renderOption:(a,r)=>e.jsxs("li",{...a,children:[e.jsx(s.Avatar,{className:`${t.styles["user-avatar"]}`,src:r?.profileImageFileName?.trim()?j.getFileUrl(r?.profileImageFileName):_.DEFAULT_USER_AVATAR}),r.fullName]}),onChange:(a,r)=>d(c.id,r?.email||"",q.COLUMN_ClASS.StudentEmail),popupIcon:e.jsx(v.ArrowDropDownIcon,{}),isOptionEqualToValue:(a,r)=>a.id==r.id,value:m(c.studentEmail),renderInput:a=>e.jsx(s.TextField,{...a,label:l("student"),margin:"normal",variant:"outlined",required:!0,error:!!b&&!c.studentEmail?.trim(),InputProps:{...a.InputProps,startAdornment:e.jsx(s.InputAdornment,{position:"start",children:e.jsx(s.Avatar,{src:m(c?.studentEmail)?.profileImageFileName?.trim()?j.getFileUrl(m(c?.studentEmail)?.profileImageFileName||""):_.DEFAULT_USER_AVATAR,alt:""})})}})}),e.jsxs(s.Grid,{className:`${t.styles["box-class-date-type"]}`,children:[e.jsx(s.Grid,{className:`${t.styles["select-form"]}`,children:e.jsx(S.LocalizationProvider,{dateAdapter:K.AdapterMoment,children:e.jsx(S.DateTimePicker,{className:"w-100",format:"Do MMM YYYY HH:mm",label:l("class_date"),value:c.classDateTime?E(c.classDateTime):null,onChange:a=>d(c.id,a||"",q.COLUMN_ClASS.ClassDate),slotProps:{textField:{required:!0,error:!!b&&!c.classDateTime,variant:"outlined",margin:"normal",id:"date-picker-inline"}}})})}),e.jsx(s.Autocomplete,{id:"country-select-demo",options:f,freeSolo:!0,autoHighlight:!0,forcePopupIcon:!0,className:`${t.styles["select-form"]}`,value:m(c.classType),getOptionLabel:a=>a,renderOption:(a,r)=>e.jsx("li",{...a,children:r}),onInputChange:(a,r)=>{d(c.id,r,q.COLUMN_ClASS.ClassType)},renderInput:a=>e.jsx(s.TextField,{...a,label:l("class_type"),variant:"outlined",placeholder:l("select_or_input_class_type"),inputProps:{...a.inputProps},required:!0,error:!!b&&!c.classType?.trim(),onChange:r=>{}})})]}),c.requestForm==T.requestForm[0]&&e.jsx(s.TextField,{fullWidth:!0,required:!0,id:"outlined-basic-2",label:l("teacher_email"),variant:"outlined",value:c.teacherEmail,className:`${t.styles["mb-10"]}`,error:!!b&&!c.teacherEmail?.trim(),onChange:a=>d(c.id,a.target.value,q.COLUMN_ClASS.TeacherEmail)}),e.jsx(s.TextField,{fullWidth:!0,required:!0,id:"outlined-basic-2",label:l("teacher_name"),variant:"outlined",value:c.teacherName,error:!!b&&!c.teacherName?.trim(),onChange:a=>d(c.id,a.target.value,q.COLUMN_ClASS.TeacherName)}),e.jsxs(s.Grid,{className:`${t.styles["box-class-date-type"]}`,children:[e.jsx(s.Autocomplete,{id:"free-solo-2-demo",className:`${t.styles["select-form"]}`,options:i,getOptionLabel:a=>a.label?a.label:"",onChange:(a,r)=>d(c.id,r?.label||"",q.COLUMN_ClASS.BandScore),popupIcon:e.jsx(v.ArrowDropDownIcon,{}),isOptionEqualToValue:(a,r)=>a.id==r.id||a.label==c.bandScore,value:$(c.bandScore)||null,renderInput:a=>e.jsx(s.TextField,{...a,label:l("current_grade"),margin:"normal",variant:"outlined"})}),e.jsx(s.Autocomplete,{id:"free-solo-2-demo",hidden:!!C,className:`${t.styles["select-form"]}`,options:T.requestForm,onChange:(a,r)=>{d(c.id,r||"",q.COLUMN_ClASS.RequestForm)},popupIcon:e.jsx(v.ArrowDropDownIcon,{}),value:c.requestForm,renderInput:a=>e.jsx(s.TextField,{...a,required:!0,error:!!b&&!c.requestForm?.trim(),label:l("request_from"),margin:"normal",variant:"outlined"})})]}),e.jsxs(s.Grid,{hidden:C,className:`${t.styles["custom-reflection"]}`,onClick:()=>{u(c),R(c.questionIds)},children:[e.jsx(s.Typography,{className:`${t.styles["custom-reflection-text"]}`,children:l("customize_reflection")}),e.jsx(X,{className:`${t.styles["custom-reflection-icon"]}`})]})]},c.id))}),!!h&&h?.requestForm!=T.requestForm[0]&&e.jsx(Z,{model:h,questionList:k,onCLose:u,checkStudent:m,onSelectQuestion:n,onInputChange:d,onSelectGroupQuestion:B,onCheckSelectQuestion:A,questionChangeIds:G,onSaveChangeQuestion:w,isStudent:C,currentName:P}),!!h&&h?.requestForm!=T.requestForm[1]&&e.jsx(ee,{model:h,questionList:F,onCLose:u,checkStudent:m,onSelectQuestion:n,onInputChange:d,onSelectGroupQuestion:B,onCheckSelectQuestion:A,questionChangeIds:G,onSaveChangeQuestion:w}),e.jsx(J.RouterPrompt,{content:"",skip:"start-reflection",action:Q})]})};exports.default=se;
|