mario-education 2.4.19-beta → 2.4.20-beta
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/MarioFramework.Education/ClientApp/src/containers/Classes/components/StudentItemSelector.d.ts +2 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +1 -1
- package/dist/index.css +10 -3
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +28 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export declare const activityCircleItems: ({ like, love, interested, curious }:
|
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
20
|
}[];
|
|
21
|
-
export declare const gradeOptions: (grades: string[]) => IOptionSelector[];
|
|
21
|
+
export declare const gradeOptions: (grades: string[], studentUserId?: string | undefined) => IOptionSelector[];
|
|
22
22
|
export declare const genderOptions: {
|
|
23
23
|
value: LegalGenderType;
|
|
24
24
|
label: string;
|
package/dist/index.css
CHANGED
|
@@ -293,8 +293,15 @@ h6._3zOGW {
|
|
|
293
293
|
|
|
294
294
|
._2PMoX {
|
|
295
295
|
height: auto;
|
|
296
|
-
width:
|
|
297
|
-
|
|
296
|
+
width: 100%;
|
|
297
|
+
-o-object-fit: scale-down;
|
|
298
|
+
object-fit: scale-down;
|
|
299
|
+
}
|
|
300
|
+
._2PMoX._3ZX0b {
|
|
301
|
+
height: 300px;
|
|
302
|
+
width: 100%;
|
|
303
|
+
-o-object-fit: scale-down;
|
|
304
|
+
object-fit: scale-down;
|
|
298
305
|
}
|
|
299
306
|
|
|
300
307
|
._2asi- ._muT01 ._35BzZ {
|
|
@@ -310,7 +317,7 @@ h6._3zOGW {
|
|
|
310
317
|
max-width: 60%;
|
|
311
318
|
}
|
|
312
319
|
._16MpB {
|
|
313
|
-
max-width:
|
|
320
|
+
max-width: 55%;
|
|
314
321
|
}
|
|
315
322
|
}
|
|
316
323
|
|
package/dist/index.js
CHANGED
|
@@ -19336,7 +19336,7 @@ var useDashboard = function useDashboard() {
|
|
|
19336
19336
|
};
|
|
19337
19337
|
};
|
|
19338
19338
|
|
|
19339
|
-
var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk"};
|
|
19339
|
+
var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","image-grade":"_3ZX0b","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk"};
|
|
19340
19340
|
|
|
19341
19341
|
var DashboardCard = function DashboardCard(_ref) {
|
|
19342
19342
|
var label = _ref.label,
|
|
@@ -19430,8 +19430,8 @@ var activityCircleItems = function activityCircleItems(_ref2) {
|
|
|
19430
19430
|
height: 150
|
|
19431
19431
|
}];
|
|
19432
19432
|
};
|
|
19433
|
-
var gradeOptions = function gradeOptions(grades) {
|
|
19434
|
-
var result = GRAGE_DEFAULT.filter(function (val) {
|
|
19433
|
+
var gradeOptions = function gradeOptions(grades, studentUserId) {
|
|
19434
|
+
var result = !studentUserId ? GRAGE_DEFAULT : GRAGE_DEFAULT.filter(function (val) {
|
|
19435
19435
|
return grades.indexOf(val) != -1;
|
|
19436
19436
|
});
|
|
19437
19437
|
return result.map(function (grade, index) {
|
|
@@ -20168,7 +20168,7 @@ var StudentByGrade = function StudentByGrade(_ref) {
|
|
|
20168
20168
|
}) : React__default.createElement("div", {
|
|
20169
20169
|
className: "d-flex justify-content-center align-items-center"
|
|
20170
20170
|
}, React__default.createElement("img", {
|
|
20171
|
-
className: "" + styles$1["image-
|
|
20171
|
+
className: styles$1["image-no-data"] + " " + styles$1["image-grade"],
|
|
20172
20172
|
src: "images/grade.png"
|
|
20173
20173
|
})));
|
|
20174
20174
|
};
|
|
@@ -20597,7 +20597,9 @@ var StudentItemSelector = function StudentItemSelector(_ref) {
|
|
|
20597
20597
|
studentId: student.studentId,
|
|
20598
20598
|
email: student.email,
|
|
20599
20599
|
fullName: student.fullName,
|
|
20600
|
-
id: student.id
|
|
20600
|
+
id: student.id,
|
|
20601
|
+
gender: student.gender,
|
|
20602
|
+
mtss: student.mtss
|
|
20601
20603
|
};
|
|
20602
20604
|
});
|
|
20603
20605
|
return React__default.createElement(marioCore.CustomSelector, {
|
|
@@ -20653,6 +20655,14 @@ var Dashboard = function Dashboard() {
|
|
|
20653
20655
|
studentDefault = _useState[0],
|
|
20654
20656
|
setStudentDefault = _useState[1];
|
|
20655
20657
|
|
|
20658
|
+
var _useState2 = React.useState(""),
|
|
20659
|
+
genderOfStudent = _useState2[0],
|
|
20660
|
+
setGenderOfStudent = _useState2[1];
|
|
20661
|
+
|
|
20662
|
+
var _useState3 = React.useState(""),
|
|
20663
|
+
mtss = _useState3[0],
|
|
20664
|
+
setMtss = _useState3[1];
|
|
20665
|
+
|
|
20656
20666
|
var questionOneToOne = ["Well-being", "Growth", "Relations", "Productivity", "Academic", "Self-Efficacy", "Happiness", "Energy", "Focus"];
|
|
20657
20667
|
var questionClassReflection = ["Focus", "Energy", "Happiness", "Stress", "Productivity"];
|
|
20658
20668
|
var questionConferences = ["Organization", "Self-Awareness", "Self-Directed Learning", "Self-Management", "Self-Advocacy", "Goal Progress"];
|
|
@@ -20837,6 +20847,8 @@ var Dashboard = function Dashboard() {
|
|
|
20837
20847
|
setStudentUserId(option.id);
|
|
20838
20848
|
setTeacherId(0);
|
|
20839
20849
|
setStudentId(option.value);
|
|
20850
|
+
setGenderOfStudent(option.gender);
|
|
20851
|
+
setMtss(option.mtss);
|
|
20840
20852
|
setStudentDefault(option);
|
|
20841
20853
|
setFilter(_extends({}, filter, {
|
|
20842
20854
|
gender: [LegalGenderType.Male, LegalGenderType.Female],
|
|
@@ -20849,7 +20861,9 @@ var Dashboard = function Dashboard() {
|
|
|
20849
20861
|
}
|
|
20850
20862
|
|
|
20851
20863
|
setStudentId(0);
|
|
20864
|
+
setMtss("");
|
|
20852
20865
|
setStudentUserId("");
|
|
20866
|
+
setGenderOfStudent("");
|
|
20853
20867
|
setStudentDefault(undefined);
|
|
20854
20868
|
setFilter(_extends({}, filter, {
|
|
20855
20869
|
gender: [LegalGenderType.Male, LegalGenderType.Female],
|
|
@@ -20926,20 +20940,26 @@ var Dashboard = function Dashboard() {
|
|
|
20926
20940
|
})), React__default.createElement("div", {
|
|
20927
20941
|
className: "" + styles$1["form-filter-left"]
|
|
20928
20942
|
}, React__default.createElement(InputSelector, {
|
|
20929
|
-
options: genderOptions
|
|
20943
|
+
options: !genderOfStudent ? genderOptions : [{
|
|
20944
|
+
value: 1,
|
|
20945
|
+
label: genderOfStudent
|
|
20946
|
+
}],
|
|
20930
20947
|
onChange: handleFilterGender,
|
|
20931
20948
|
placeholder: "Select Gender"
|
|
20932
20949
|
})), React__default.createElement("div", {
|
|
20933
20950
|
className: "" + styles$1["form-filter-left"]
|
|
20934
20951
|
}, React__default.createElement(InputSelector, {
|
|
20935
|
-
options: gradeOptions(grades),
|
|
20952
|
+
options: gradeOptions(grades, studentUserId),
|
|
20936
20953
|
onChange: handleFilterGrades,
|
|
20937
20954
|
placeholder: "Select Grade",
|
|
20938
20955
|
isMultiSelect: true
|
|
20939
20956
|
})), React__default.createElement("div", {
|
|
20940
20957
|
className: "" + styles$1["form-filter-left"]
|
|
20941
20958
|
}, React__default.createElement(InputSelector, {
|
|
20942
|
-
options: mtssOptions
|
|
20959
|
+
options: !mtss ? mtssOptions : [{
|
|
20960
|
+
label: mtss,
|
|
20961
|
+
value: 1
|
|
20962
|
+
}],
|
|
20943
20963
|
onChange: handleFilterMtss,
|
|
20944
20964
|
placeholder: "Select MTSS"
|
|
20945
20965
|
})), React__default.createElement("div", {
|