@sparkle-learning/core 0.0.60 → 0.0.62
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/cjs/header-mobile-collapse_61.cjs.entry.js +7 -1
- package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +6 -0
- package/dist/collection/components/layout/facilitator/facilitator-page.js +1 -1
- package/dist/esm/header-mobile-collapse_61.entry.js +7 -1
- package/dist/sparkle-core/{p-7f5278dd.entry.js → p-7e4715f9.entry.js} +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/package.json +1 -1
@@ -12343,11 +12343,17 @@ const SparkleOnlineStudents$1 = class {
|
|
12343
12343
|
renderStudentsAssignment() {
|
12344
12344
|
var _a;
|
12345
12345
|
let assignments = (_a = facilitator_service.facilitatorStore.state.dashboardData) === null || _a === void 0 ? void 0 : _a.StudentAssignments.filter(x => this.showAllModules == true || (x.CourseModuleId == this.selectedModuleId && x.SessionId == this.selectedSessionId));
|
12346
|
+
if (!assignments || assignments.length == 0) {
|
12347
|
+
return index.h("div", { class: "text-center border py-4" }, "No Data");
|
12348
|
+
}
|
12346
12349
|
return (index.h("table", { class: "table" }, index.h("thead", null, index.h("tr", null, index.h("th", { scope: "col" }, "Name"), index.h("th", { scope: "col" }, "Email"), index.h("th", { scope: "col" }, "Assignment Name"), index.h("th", { scope: "col" }, "Submited Date"), index.h("th", { scope: "col" }, "Assignment Data"))), index.h("tbody", null, assignments.map(item => (index.h("tr", null, index.h("td", null, item.Name), index.h("td", null, item.Email), index.h("td", null, item.AssignmentName), index.h("td", null, item.SubmittedDate), index.h("td", null, item.AssignmentData)))), this.renderLoadingOrNoData(5, assignments))));
|
12347
12350
|
}
|
12348
12351
|
renderStudentsQuizResponses() {
|
12349
12352
|
var _a;
|
12350
12353
|
let quizResponse = (_a = facilitator_service.facilitatorStore.state.dashboardData) === null || _a === void 0 ? void 0 : _a.StudentQuizResponses.filter(x => this.showAllModules == true || (x.CourseModuleId == this.selectedModuleId && x.SessionId == this.selectedSessionId));
|
12354
|
+
if (!quizResponse || quizResponse.length == 0) {
|
12355
|
+
return index.h("div", { class: "text-center border py-4" }, "No Data");
|
12356
|
+
}
|
12351
12357
|
return (index.h("table", { class: "table" }, index.h("thead", null, index.h("tr", null, index.h("th", { scope: "col" }, "Name"), index.h("th", { scope: "col" }, "Email"), index.h("th", { scope: "col" }, "Response Type"), index.h("th", { scope: "col" }, "Submitted Date"), index.h("th", { scope: "col" }, "Questions"), index.h("th", { scope: "col" }, "Response"))), index.h("tbody", null, quizResponse.map(item => (index.h("tr", null, index.h("td", null, item.Name), index.h("td", null, item.Email), index.h("td", null, item.ResponseType), index.h("td", null, item.SubmittedDate), index.h("td", null, item.Question), index.h("td", null, item.Response)))), this.renderLoadingOrNoData(6, quizResponse))));
|
12352
12358
|
}
|
12353
12359
|
renderDiscussion() {
|
@@ -12547,7 +12553,7 @@ const FacilitatorPage = class {
|
|
12547
12553
|
};
|
12548
12554
|
}
|
12549
12555
|
async componentWillLoad() {
|
12550
|
-
|
12556
|
+
await this.fetchClasses();
|
12551
12557
|
return this.fetchNotesPage(this.notesPath) && this.fetchPage(this.path);
|
12552
12558
|
}
|
12553
12559
|
componentDidLoad() {
|
package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js
CHANGED
@@ -50,6 +50,9 @@ export class SparkleOnlineStudents {
|
|
50
50
|
renderStudentsAssignment() {
|
51
51
|
var _a;
|
52
52
|
let assignments = (_a = facilitatorStore.state.dashboardData) === null || _a === void 0 ? void 0 : _a.StudentAssignments.filter(x => this.showAllModules == true || (x.CourseModuleId == this.selectedModuleId && x.SessionId == this.selectedSessionId));
|
53
|
+
if (!assignments || assignments.length == 0) {
|
54
|
+
return h("div", { class: "text-center border py-4" }, "No Data");
|
55
|
+
}
|
53
56
|
return (h("table", { class: "table" },
|
54
57
|
h("thead", null,
|
55
58
|
h("tr", null,
|
@@ -70,6 +73,9 @@ export class SparkleOnlineStudents {
|
|
70
73
|
renderStudentsQuizResponses() {
|
71
74
|
var _a;
|
72
75
|
let quizResponse = (_a = facilitatorStore.state.dashboardData) === null || _a === void 0 ? void 0 : _a.StudentQuizResponses.filter(x => this.showAllModules == true || (x.CourseModuleId == this.selectedModuleId && x.SessionId == this.selectedSessionId));
|
76
|
+
if (!quizResponse || quizResponse.length == 0) {
|
77
|
+
return h("div", { class: "text-center border py-4" }, "No Data");
|
78
|
+
}
|
73
79
|
return (h("table", { class: "table" },
|
74
80
|
h("thead", null,
|
75
81
|
h("tr", null,
|
@@ -12339,11 +12339,17 @@ const SparkleOnlineStudents$1 = class {
|
|
12339
12339
|
renderStudentsAssignment() {
|
12340
12340
|
var _a;
|
12341
12341
|
let assignments = (_a = facilitatorStore.state.dashboardData) === null || _a === void 0 ? void 0 : _a.StudentAssignments.filter(x => this.showAllModules == true || (x.CourseModuleId == this.selectedModuleId && x.SessionId == this.selectedSessionId));
|
12342
|
+
if (!assignments || assignments.length == 0) {
|
12343
|
+
return h$1("div", { class: "text-center border py-4" }, "No Data");
|
12344
|
+
}
|
12342
12345
|
return (h$1("table", { class: "table" }, h$1("thead", null, h$1("tr", null, h$1("th", { scope: "col" }, "Name"), h$1("th", { scope: "col" }, "Email"), h$1("th", { scope: "col" }, "Assignment Name"), h$1("th", { scope: "col" }, "Submited Date"), h$1("th", { scope: "col" }, "Assignment Data"))), h$1("tbody", null, assignments.map(item => (h$1("tr", null, h$1("td", null, item.Name), h$1("td", null, item.Email), h$1("td", null, item.AssignmentName), h$1("td", null, item.SubmittedDate), h$1("td", null, item.AssignmentData)))), this.renderLoadingOrNoData(5, assignments))));
|
12343
12346
|
}
|
12344
12347
|
renderStudentsQuizResponses() {
|
12345
12348
|
var _a;
|
12346
12349
|
let quizResponse = (_a = facilitatorStore.state.dashboardData) === null || _a === void 0 ? void 0 : _a.StudentQuizResponses.filter(x => this.showAllModules == true || (x.CourseModuleId == this.selectedModuleId && x.SessionId == this.selectedSessionId));
|
12350
|
+
if (!quizResponse || quizResponse.length == 0) {
|
12351
|
+
return h$1("div", { class: "text-center border py-4" }, "No Data");
|
12352
|
+
}
|
12347
12353
|
return (h$1("table", { class: "table" }, h$1("thead", null, h$1("tr", null, h$1("th", { scope: "col" }, "Name"), h$1("th", { scope: "col" }, "Email"), h$1("th", { scope: "col" }, "Response Type"), h$1("th", { scope: "col" }, "Submitted Date"), h$1("th", { scope: "col" }, "Questions"), h$1("th", { scope: "col" }, "Response"))), h$1("tbody", null, quizResponse.map(item => (h$1("tr", null, h$1("td", null, item.Name), h$1("td", null, item.Email), h$1("td", null, item.ResponseType), h$1("td", null, item.SubmittedDate), h$1("td", null, item.Question), h$1("td", null, item.Response)))), this.renderLoadingOrNoData(6, quizResponse))));
|
12348
12354
|
}
|
12349
12355
|
renderDiscussion() {
|
@@ -12543,7 +12549,7 @@ const FacilitatorPage = class {
|
|
12543
12549
|
};
|
12544
12550
|
}
|
12545
12551
|
async componentWillLoad() {
|
12546
|
-
|
12552
|
+
await this.fetchClasses();
|
12547
12553
|
return this.fetchNotesPage(this.notesPath) && this.fetchPage(this.path);
|
12548
12554
|
}
|
12549
12555
|
componentDidLoad() {
|