mario-education 2.0.223-staging → 2.0.225-staging
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/CardSurveyMobile-D-tER0E9.cjs +1 -0
- package/dist/CardSurveyMobile-DROdjmf3.js +194 -0
- package/dist/ModelLinkSurvey-BJLD-uE-.js +538 -0
- package/dist/ModelLinkSurvey-_GPN7Jux.cjs +7 -0
- package/dist/SurveyDashboardContainer-CdlwT9vo.js +2316 -0
- package/dist/SurveyDashboardContainer-cm5F45NI.cjs +10 -0
- package/dist/SurveyDetailAdmin-BOT4iw8P.cjs +1 -0
- package/dist/SurveyDetailAdmin-fUjss752.js +1771 -0
- package/dist/SurveyPortal-CgeQhXIB.js +510 -0
- package/dist/SurveyPortal-CuhJVWIN.cjs +1 -0
- package/dist/SurveyStudentFlagListAdmin-BmFWPCOL.js +342 -0
- package/dist/SurveyStudentFlagListAdmin-D1Y0G-Z4.cjs +1 -0
- package/dist/dashboard.module-CxpFAbwD.cjs +1 -0
- package/dist/dashboard.module-D0Omasa8.js +306 -0
- package/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/mario-education.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),e=require("@mui/material"),v=require("./ArrowBack-C4WIF8bZ.cjs"),w=require("./Visibility-CDU117S_.cjs"),N=require("./createSvgIcon-CRp0VXvr.cjs"),r=require("./styles.module-CHKJJ8Zm.cjs"),T=require("react-router-dom"),q=require("mario-core"),t=require("./dashboard.module-CxpFAbwD.cjs"),G=require("./ArrowForward-D4TtLiX5.cjs"),k=N.createSvgIcon(s.jsx("path",{d:"M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zM12 13 3.74 7.84 12 3l8.26 4.84z"}),"Drafts"),f=({title:h,contentButton:o,iconButton:l,isGoback:u,isGreyBackground:i,status:c,handleChangePage:n,isDisableButton:a,isPreviewSurvey:d,handlePreview:x,onHandleGoBack:y,borderNone:$,classFontSize:j,button:p,isLarge:g,onDraft:b})=>{const C=T.useNavigate(),{t:m}=q.useTranslation();return s.jsxs(e.Grid,{className:`${r.styles["custom-header"]} ${r.styles[j]} ${!!i&&r.styles["grey-background"]} ${!!$&&r.styles["border-none"]}`,children:[s.jsxs(e.Grid,{className:`${r.styles["custom-header-right"]}`,children:[!!u&&s.jsx(v.ArrowBackIcon,{className:"custom-icon-back-page",onClick:()=>y?y():C(-1)}),s.jsx(e.Typography,{className:`${r.styles["custom-header-title"]} ${g&&r.styles["custom-header-large-title"]}`,children:m(h)}),!!c&&s.jsx(e.Typography,{className:`${r.styles[`${c.toLocaleLowerCase()}`]} ${r.styles["status-default"]}`,children:c})]}),s.jsxs(e.Grid,{className:`${r.styles["block-btn-header"]}`,children:[!!b&&s.jsxs(e.Button,{disabled:!!a,className:`${r.styles["custom-preview-button"]}`,onClick:()=>b?.(!0),children:[s.jsx(e.Typography,{className:`${r.styles["custom-button-content"]}`,children:m("draft")}),s.jsx(k,{color:"primary"})]}),!!d&&s.jsxs(e.Button,{disabled:!!a,className:`${r.styles["custom-preview-button"]}`,onClick:()=>x?.(),children:[s.jsx(e.Typography,{className:`${r.styles["custom-button-content"]}`,children:m("preview_survey")}),s.jsx(w.Visibility,{color:"primary"})]}),!!o?.trim()&&s.jsxs(e.Button,{disabled:!!a,className:`${r.styles["custom-header-button"]} ${!!a&&r.styles["disable-button"]}`,onClick:()=>n?.(),children:[s.jsx(e.Typography,{className:`${r.styles["custom-button-content"]}`,children:m(o)}),!!l&&l]}),!!p&&p]})]})},I=N.createSvgIcon(s.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),M=({surveyName:h,students:o,status:l,id:u,statusDetail:i,avatar:c,customItemName:n,customItemIcon:a,colorStatusDetail:d,customIconStatus:x,handleClickAction:y,isDraft:$})=>s.jsxs(e.Grid,{className:`${t.styles["card-item-mobile"]}`,children:[s.jsxs(e.Grid,{className:`${t.styles["d-flex"]}`,children:[!!c&&s.jsx("img",{src:c,alt:"",className:`${t.styles.avatar_user}`}),s.jsxs(e.Grid,{className:`${t.styles["card-item-left"]}`,children:[s.jsx(e.Typography,{className:`${t.styles["item-name"]}`,children:h}),s.jsxs(e.Grid,{className:`${t.styles["item-detail"]}`,children:[!!n?.trim()&&s.jsxs(e.Grid,{className:`${t.styles["item-date"]}`,children:[a,s.jsx(e.Typography,{className:`${t.styles["item-date-content"]}`,children:n})]}),!!o&&s.jsxs(e.Grid,{className:`${t.styles["item-date"]}`,children:[s.jsx(I,{color:"disabled"}),s.jsx(e.Typography,{className:`${t.styles["item-date-content"]}`,children:o})]})]}),!!l&&s.jsx(e.Typography,{className:`${t.styles["table-status-mobile"]} ${t.styles[l]}`,children:l}),!!i&&s.jsx(e.Grid,{className:`${t.styles["table-class-type"]}`,children:s.jsxs(e.Typography,{className:`${t.styles["table-status-mobile"]} ${t.styles[d||i?.replace(/\s/g,"")?.toLowerCase()]}`,children:[x,i]})})]})]}),s.jsx(e.Grid,{children:s.jsx("button",{className:`${t.styles["btn-function"]}`,onClick:j=>y(j,{id:u,isDraft:$||!1}),children:s.jsx(G.ArrowForwardIcon,{})})})]});exports.CardSurveyMobile=M;exports.CustomHeaderComponent=f;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { Grid as s, Typography as l, Button as g } from "@mui/material";
|
|
3
|
+
import { A } from "./ArrowBack-DytrysgX.js";
|
|
4
|
+
import { V as I } from "./Visibility-C-IdsQr2.js";
|
|
5
|
+
import { d as k } from "./createSvgIcon-Bge4D-o7.js";
|
|
6
|
+
import { s as a } from "./styles.module-BJ4dhumc.js";
|
|
7
|
+
import { useNavigate as L } from "react-router-dom";
|
|
8
|
+
import { useTranslation as M } from "mario-core";
|
|
9
|
+
import { s as c } from "./dashboard.module-D0Omasa8.js";
|
|
10
|
+
import { A as j } from "./ArrowForward-DxhjtaZw.js";
|
|
11
|
+
const z = k(/* @__PURE__ */ e("path", {
|
|
12
|
+
d: "M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zM12 13 3.74 7.84 12 3l8.26 4.84z"
|
|
13
|
+
}), "Drafts"), K = ({
|
|
14
|
+
title: p,
|
|
15
|
+
contentButton: i,
|
|
16
|
+
iconButton: o,
|
|
17
|
+
isGoback: b,
|
|
18
|
+
isGreyBackground: n,
|
|
19
|
+
status: t,
|
|
20
|
+
handleChangePage: d,
|
|
21
|
+
isDisableButton: m,
|
|
22
|
+
isPreviewSurvey: h,
|
|
23
|
+
handlePreview: u,
|
|
24
|
+
onHandleGoBack: $,
|
|
25
|
+
borderNone: f,
|
|
26
|
+
classFontSize: C,
|
|
27
|
+
button: v,
|
|
28
|
+
isLarge: w,
|
|
29
|
+
onDraft: y
|
|
30
|
+
}) => {
|
|
31
|
+
const x = L(), { t: N } = M();
|
|
32
|
+
return /* @__PURE__ */ r(
|
|
33
|
+
s,
|
|
34
|
+
{
|
|
35
|
+
className: `${a["custom-header"]} ${a[C]} ${!!n && a["grey-background"]} ${!!f && a["border-none"]}`,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ r(s, { className: `${a["custom-header-right"]}`, children: [
|
|
38
|
+
!!b && /* @__PURE__ */ e(
|
|
39
|
+
A,
|
|
40
|
+
{
|
|
41
|
+
className: "custom-icon-back-page",
|
|
42
|
+
onClick: () => $ ? $() : x(-1)
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ e(l, { className: `${a["custom-header-title"]} ${w && a["custom-header-large-title"]}`, children: N(p) }),
|
|
46
|
+
!!t && /* @__PURE__ */ e(
|
|
47
|
+
l,
|
|
48
|
+
{
|
|
49
|
+
className: `${a[`${t.toLocaleLowerCase()}`]} ${a["status-default"]}`,
|
|
50
|
+
children: t
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ r(s, { className: `${a["block-btn-header"]}`, children: [
|
|
55
|
+
!!y && /* @__PURE__ */ r(
|
|
56
|
+
g,
|
|
57
|
+
{
|
|
58
|
+
disabled: !!m,
|
|
59
|
+
className: `${a["custom-preview-button"]}`,
|
|
60
|
+
onClick: () => y?.(!0),
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ e(
|
|
63
|
+
l,
|
|
64
|
+
{
|
|
65
|
+
className: `${a["custom-button-content"]}`,
|
|
66
|
+
children: N("draft")
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ e(z, { color: "primary" })
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
!!h && /* @__PURE__ */ r(
|
|
74
|
+
g,
|
|
75
|
+
{
|
|
76
|
+
disabled: !!m,
|
|
77
|
+
className: `${a["custom-preview-button"]}`,
|
|
78
|
+
onClick: () => u?.(),
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ e(
|
|
81
|
+
l,
|
|
82
|
+
{
|
|
83
|
+
className: `${a["custom-button-content"]}`,
|
|
84
|
+
children: N("preview_survey")
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ e(I, { color: "primary" })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
!!i?.trim() && /* @__PURE__ */ r(
|
|
92
|
+
g,
|
|
93
|
+
{
|
|
94
|
+
disabled: !!m,
|
|
95
|
+
className: `${a["custom-header-button"]} ${!!m && a["disable-button"]}`,
|
|
96
|
+
onClick: () => d?.(),
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ e(
|
|
99
|
+
l,
|
|
100
|
+
{
|
|
101
|
+
className: `${a["custom-button-content"]}`,
|
|
102
|
+
children: N(i)
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
!!o && o
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
!!v && v
|
|
110
|
+
] })
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}, P = k(/* @__PURE__ */ e("path", {
|
|
115
|
+
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
116
|
+
}), "Person"), O = ({
|
|
117
|
+
surveyName: p,
|
|
118
|
+
students: i,
|
|
119
|
+
status: o,
|
|
120
|
+
id: b,
|
|
121
|
+
statusDetail: n,
|
|
122
|
+
avatar: t,
|
|
123
|
+
customItemName: d,
|
|
124
|
+
customItemIcon: m,
|
|
125
|
+
colorStatusDetail: h,
|
|
126
|
+
customIconStatus: u,
|
|
127
|
+
handleClickAction: $,
|
|
128
|
+
isDraft: f
|
|
129
|
+
}) => /* @__PURE__ */ r(s, { className: `${c["card-item-mobile"]}`, children: [
|
|
130
|
+
/* @__PURE__ */ r(s, { className: `${c["d-flex"]}`, children: [
|
|
131
|
+
!!t && /* @__PURE__ */ e(
|
|
132
|
+
"img",
|
|
133
|
+
{
|
|
134
|
+
src: t,
|
|
135
|
+
alt: "",
|
|
136
|
+
className: `${c.avatar_user}`
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ r(s, { className: `${c["card-item-left"]}`, children: [
|
|
140
|
+
/* @__PURE__ */ e(l, { className: `${c["item-name"]}`, children: p }),
|
|
141
|
+
/* @__PURE__ */ r(s, { className: `${c["item-detail"]}`, children: [
|
|
142
|
+
!!d?.trim() && /* @__PURE__ */ r(s, { className: `${c["item-date"]}`, children: [
|
|
143
|
+
m,
|
|
144
|
+
/* @__PURE__ */ e(
|
|
145
|
+
l,
|
|
146
|
+
{
|
|
147
|
+
className: `${c["item-date-content"]}`,
|
|
148
|
+
children: d
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
] }),
|
|
152
|
+
!!i && /* @__PURE__ */ r(s, { className: `${c["item-date"]}`, children: [
|
|
153
|
+
/* @__PURE__ */ e(P, { color: "disabled" }),
|
|
154
|
+
/* @__PURE__ */ e(
|
|
155
|
+
l,
|
|
156
|
+
{
|
|
157
|
+
className: `${c["item-date-content"]}`,
|
|
158
|
+
children: i
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
] })
|
|
162
|
+
] }),
|
|
163
|
+
!!o && /* @__PURE__ */ e(
|
|
164
|
+
l,
|
|
165
|
+
{
|
|
166
|
+
className: `${c["table-status-mobile"]} ${c[o]}`,
|
|
167
|
+
children: o
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
!!n && /* @__PURE__ */ e(s, { className: `${c["table-class-type"]}`, children: /* @__PURE__ */ r(
|
|
171
|
+
l,
|
|
172
|
+
{
|
|
173
|
+
className: `${c["table-status-mobile"]} ${c[h || n?.replace(/\s/g, "")?.toLowerCase()]}`,
|
|
174
|
+
children: [
|
|
175
|
+
u,
|
|
176
|
+
n
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
) })
|
|
180
|
+
] })
|
|
181
|
+
] }),
|
|
182
|
+
/* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(
|
|
183
|
+
"button",
|
|
184
|
+
{
|
|
185
|
+
className: `${c["btn-function"]}`,
|
|
186
|
+
onClick: (C) => $(C, { id: b, isDraft: f || !1 }),
|
|
187
|
+
children: /* @__PURE__ */ e(j, {})
|
|
188
|
+
}
|
|
189
|
+
) })
|
|
190
|
+
] });
|
|
191
|
+
export {
|
|
192
|
+
O as C,
|
|
193
|
+
K as a
|
|
194
|
+
};
|