catchup-library-web 1.7.2 → 1.7.3
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/index.js
CHANGED
|
@@ -6360,38 +6360,29 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6360
6360
|
data
|
|
6361
6361
|
}) => {
|
|
6362
6362
|
if (!activityTemplateType) return;
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
}
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
if (data["fillInTheBlanksEvaluationRubricMap"])
|
|
6384
|
-
evaluationRubricMapString = data["fillInTheBlanksEvaluationRubricMap"];
|
|
6385
|
-
} else if (activityTemplateType === "OPEN_ENDED") {
|
|
6386
|
-
if (data["openEndedEvaluationRubricMap"])
|
|
6387
|
-
evaluationRubricMapString = data["openEndedEvaluationRubricMap"];
|
|
6388
|
-
} else if (activityTemplateType === "TRUE_FALSE") {
|
|
6389
|
-
if (data["trueFalseEvaluationRubricMap"])
|
|
6390
|
-
evaluationRubricMapString = data["trueFalseEvaluationRubricMap"];
|
|
6363
|
+
const evaluationRubricMapKeys = {
|
|
6364
|
+
ORDERING: "orderingEvaluationRubricMap",
|
|
6365
|
+
DROPDOWN: "dropdownEvaluationRubricMap",
|
|
6366
|
+
MCSA: "MCSAEvaluationRubricMap",
|
|
6367
|
+
MCMA: "MCMAEvaluationRubricMap",
|
|
6368
|
+
MATCHING: "matchingEvaluationRubricMap",
|
|
6369
|
+
GROUPING: "groupingEvaluationRubricMap",
|
|
6370
|
+
FILL_IN_THE_BLANKS: "fillInTheBlanksEvaluationRubricMap",
|
|
6371
|
+
OPEN_ENDED: "openEndedEvaluationRubricMap",
|
|
6372
|
+
TRUE_FALSE: "trueFalseEvaluationRubricMap"
|
|
6373
|
+
};
|
|
6374
|
+
const evaluationRubricMapKey = evaluationRubricMapKeys[activityTemplateType];
|
|
6375
|
+
if (!evaluationRubricMapKey) return null;
|
|
6376
|
+
const evaluationRubricMapString = data[evaluationRubricMapKey];
|
|
6377
|
+
let evaluationRubricMap;
|
|
6378
|
+
try {
|
|
6379
|
+
evaluationRubricMap = JSON.parse(evaluationRubricMapString);
|
|
6380
|
+
} catch (error) {
|
|
6381
|
+
console.error("Error parsing evaluation rubric map:", error);
|
|
6382
|
+
return null;
|
|
6391
6383
|
}
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
if (Object.keys(evaluationRubricMap).length === 0) return;
|
|
6384
|
+
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
6385
|
+
return null;
|
|
6395
6386
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
6396
6387
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
6397
6388
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
package/dist/index.mjs
CHANGED
|
@@ -6162,38 +6162,29 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6162
6162
|
data
|
|
6163
6163
|
}) => {
|
|
6164
6164
|
if (!activityTemplateType) return;
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
}
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
if (data["fillInTheBlanksEvaluationRubricMap"])
|
|
6186
|
-
evaluationRubricMapString = data["fillInTheBlanksEvaluationRubricMap"];
|
|
6187
|
-
} else if (activityTemplateType === "OPEN_ENDED") {
|
|
6188
|
-
if (data["openEndedEvaluationRubricMap"])
|
|
6189
|
-
evaluationRubricMapString = data["openEndedEvaluationRubricMap"];
|
|
6190
|
-
} else if (activityTemplateType === "TRUE_FALSE") {
|
|
6191
|
-
if (data["trueFalseEvaluationRubricMap"])
|
|
6192
|
-
evaluationRubricMapString = data["trueFalseEvaluationRubricMap"];
|
|
6165
|
+
const evaluationRubricMapKeys = {
|
|
6166
|
+
ORDERING: "orderingEvaluationRubricMap",
|
|
6167
|
+
DROPDOWN: "dropdownEvaluationRubricMap",
|
|
6168
|
+
MCSA: "MCSAEvaluationRubricMap",
|
|
6169
|
+
MCMA: "MCMAEvaluationRubricMap",
|
|
6170
|
+
MATCHING: "matchingEvaluationRubricMap",
|
|
6171
|
+
GROUPING: "groupingEvaluationRubricMap",
|
|
6172
|
+
FILL_IN_THE_BLANKS: "fillInTheBlanksEvaluationRubricMap",
|
|
6173
|
+
OPEN_ENDED: "openEndedEvaluationRubricMap",
|
|
6174
|
+
TRUE_FALSE: "trueFalseEvaluationRubricMap"
|
|
6175
|
+
};
|
|
6176
|
+
const evaluationRubricMapKey = evaluationRubricMapKeys[activityTemplateType];
|
|
6177
|
+
if (!evaluationRubricMapKey) return null;
|
|
6178
|
+
const evaluationRubricMapString = data[evaluationRubricMapKey];
|
|
6179
|
+
let evaluationRubricMap;
|
|
6180
|
+
try {
|
|
6181
|
+
evaluationRubricMap = JSON.parse(evaluationRubricMapString);
|
|
6182
|
+
} catch (error) {
|
|
6183
|
+
console.error("Error parsing evaluation rubric map:", error);
|
|
6184
|
+
return null;
|
|
6193
6185
|
}
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
if (Object.keys(evaluationRubricMap).length === 0) return;
|
|
6186
|
+
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
6187
|
+
return null;
|
|
6197
6188
|
return /* @__PURE__ */ jsx42("div", { className: "mx-2", children: /* @__PURE__ */ jsxs32("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
6198
6189
|
/* @__PURE__ */ jsx42("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
6199
6190
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
package/package.json
CHANGED
package/src/components/activities/evaluation-rubric-content/ActivityEvaluationRubricContent.tsx
CHANGED
|
@@ -9,39 +9,30 @@ const ActivityEvaluationRubricContent = ({
|
|
|
9
9
|
}: IActivityEvaluationRubricProps) => {
|
|
10
10
|
if (!activityTemplateType) return;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
if (data["MCMAEvaluationRubricMap"])
|
|
24
|
-
evaluationRubricMapString = data["MCMAEvaluationRubricMap"];
|
|
25
|
-
} else if (activityTemplateType === "MATCHING") {
|
|
26
|
-
if (data["matchingEvaluationRubricMap"])
|
|
27
|
-
evaluationRubricMapString = data["matchingEvaluationRubricMap"];
|
|
28
|
-
} else if (activityTemplateType === "GROUPING") {
|
|
29
|
-
if (data["groupingEvaluationRubricMap"])
|
|
30
|
-
evaluationRubricMapString = data["groupingEvaluationRubricMap"];
|
|
31
|
-
} else if (activityTemplateType === "FILL_IN_THE_BLANKS") {
|
|
32
|
-
if (data["fillInTheBlanksEvaluationRubricMap"])
|
|
33
|
-
evaluationRubricMapString = data["fillInTheBlanksEvaluationRubricMap"];
|
|
34
|
-
} else if (activityTemplateType === "OPEN_ENDED") {
|
|
35
|
-
if (data["openEndedEvaluationRubricMap"])
|
|
36
|
-
evaluationRubricMapString = data["openEndedEvaluationRubricMap"];
|
|
37
|
-
} else if (activityTemplateType === "TRUE_FALSE") {
|
|
38
|
-
if (data["trueFalseEvaluationRubricMap"])
|
|
39
|
-
evaluationRubricMapString = data["trueFalseEvaluationRubricMap"];
|
|
40
|
-
}
|
|
41
|
-
const evaluationRubricMap = JSON.parse(evaluationRubricMapString);
|
|
42
|
-
if (!evaluationRubricMap) return;
|
|
12
|
+
const evaluationRubricMapKeys: any = {
|
|
13
|
+
ORDERING: "orderingEvaluationRubricMap",
|
|
14
|
+
DROPDOWN: "dropdownEvaluationRubricMap",
|
|
15
|
+
MCSA: "MCSAEvaluationRubricMap",
|
|
16
|
+
MCMA: "MCMAEvaluationRubricMap",
|
|
17
|
+
MATCHING: "matchingEvaluationRubricMap",
|
|
18
|
+
GROUPING: "groupingEvaluationRubricMap",
|
|
19
|
+
FILL_IN_THE_BLANKS: "fillInTheBlanksEvaluationRubricMap",
|
|
20
|
+
OPEN_ENDED: "openEndedEvaluationRubricMap",
|
|
21
|
+
TRUE_FALSE: "trueFalseEvaluationRubricMap",
|
|
22
|
+
};
|
|
43
23
|
|
|
44
|
-
|
|
24
|
+
const evaluationRubricMapKey = evaluationRubricMapKeys[activityTemplateType];
|
|
25
|
+
if (!evaluationRubricMapKey) return null;
|
|
26
|
+
const evaluationRubricMapString = data[evaluationRubricMapKey];
|
|
27
|
+
let evaluationRubricMap;
|
|
28
|
+
try {
|
|
29
|
+
evaluationRubricMap = JSON.parse(evaluationRubricMapString);
|
|
30
|
+
} catch (error) {
|
|
31
|
+
console.error("Error parsing evaluation rubric map:", error);
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
35
|
+
return null;
|
|
45
36
|
|
|
46
37
|
return (
|
|
47
38
|
<div className="mx-2">
|
|
@@ -9,7 +9,6 @@ const ActivitySolutionContent = ({
|
|
|
9
9
|
}: IActivitySolutionProps) => {
|
|
10
10
|
if (!activityTemplateType) return null;
|
|
11
11
|
|
|
12
|
-
// Map activity types to their corresponding solution map keys
|
|
13
12
|
const solutionMapKeys: any = {
|
|
14
13
|
ORDERING: "orderingSolutionMap",
|
|
15
14
|
DROPDOWN: "dropdownSolutionMap",
|