@sparkle-learning/core 0.0.60 → 0.0.61

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.
@@ -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() {
@@ -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() {