catchup-library-web 1.15.8 → 1.15.10
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 +14 -11
- package/dist/index.mjs +17 -14
- package/package.json +1 -1
- package/src/components/activities/ActivityPreviewByData.tsx +20 -16
package/dist/index.js
CHANGED
|
@@ -6997,18 +6997,21 @@ var ActivityPreviewByData = ({
|
|
|
6997
6997
|
if (!data) return;
|
|
6998
6998
|
const answer = constructAnswerBasedOnData(data);
|
|
6999
6999
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { children: [
|
|
7000
|
-
showType ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7000
|
+
showType ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
7001
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "mb-4", children: [
|
|
7002
|
+
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7003
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
7004
|
+
SelectionBox_default,
|
|
7005
|
+
{
|
|
7006
|
+
optionList,
|
|
7007
|
+
selectedId: selectedType,
|
|
7008
|
+
handleSelectOnClick: (itemId) => {
|
|
7009
|
+
setSelectedType(itemId);
|
|
7010
|
+
}
|
|
7009
7011
|
}
|
|
7010
|
-
|
|
7011
|
-
)
|
|
7012
|
+
)
|
|
7013
|
+
] }),
|
|
7014
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DividerLine_default, {})
|
|
7012
7015
|
] }) : null,
|
|
7013
7016
|
selectedType ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
7014
7017
|
OrderingActivityContent_default,
|
package/dist/index.mjs
CHANGED
|
@@ -6728,7 +6728,7 @@ var SelectionBox = ({
|
|
|
6728
6728
|
var SelectionBox_default = SelectionBox;
|
|
6729
6729
|
|
|
6730
6730
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
6731
|
-
import { jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6731
|
+
import { Fragment as Fragment10, jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6732
6732
|
var ActivityPreviewByData = ({
|
|
6733
6733
|
data,
|
|
6734
6734
|
showType,
|
|
@@ -6787,18 +6787,21 @@ var ActivityPreviewByData = ({
|
|
|
6787
6787
|
if (!data) return;
|
|
6788
6788
|
const answer = constructAnswerBasedOnData(data);
|
|
6789
6789
|
return /* @__PURE__ */ jsxs36("div", { children: [
|
|
6790
|
-
showType ? /* @__PURE__ */ jsxs36(
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6790
|
+
showType ? /* @__PURE__ */ jsxs36(Fragment10, { children: [
|
|
6791
|
+
/* @__PURE__ */ jsxs36("div", { className: "mb-4", children: [
|
|
6792
|
+
showDescription ? /* @__PURE__ */ jsx48("div", { className: "my-2", children: /* @__PURE__ */ jsx48("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
6793
|
+
/* @__PURE__ */ jsx48(
|
|
6794
|
+
SelectionBox_default,
|
|
6795
|
+
{
|
|
6796
|
+
optionList,
|
|
6797
|
+
selectedId: selectedType,
|
|
6798
|
+
handleSelectOnClick: (itemId) => {
|
|
6799
|
+
setSelectedType(itemId);
|
|
6800
|
+
}
|
|
6799
6801
|
}
|
|
6800
|
-
|
|
6801
|
-
)
|
|
6802
|
+
)
|
|
6803
|
+
] }),
|
|
6804
|
+
/* @__PURE__ */ jsx48(DividerLine_default, {})
|
|
6802
6805
|
] }) : null,
|
|
6803
6806
|
selectedType ? /* @__PURE__ */ jsx48("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ jsx48(
|
|
6804
6807
|
OrderingActivityContent_default,
|
|
@@ -6944,7 +6947,7 @@ var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
|
6944
6947
|
|
|
6945
6948
|
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
6946
6949
|
import { useEffect as useEffect15, useState as useState25 } from "react";
|
|
6947
|
-
import { Fragment as
|
|
6950
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6948
6951
|
var ActivityPreviewByAnswerData = ({
|
|
6949
6952
|
data,
|
|
6950
6953
|
showType = true,
|
|
@@ -7080,7 +7083,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7080
7083
|
};
|
|
7081
7084
|
if (!data) return null;
|
|
7082
7085
|
return /* @__PURE__ */ jsxs37("div", { children: [
|
|
7083
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(
|
|
7086
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7084
7087
|
/* @__PURE__ */ jsxs37("div", { className: "mb-4", children: [
|
|
7085
7088
|
showDescription ? /* @__PURE__ */ jsx49("div", { className: "my-2", children: /* @__PURE__ */ jsx49("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7086
7089
|
/* @__PURE__ */ jsx49(
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ import { IActivityPreviewByDataProps } from "../../properties/ActivityProperties
|
|
|
17
17
|
import ActivitySolutionContent from "./solution-content/ActivitySolutionContent";
|
|
18
18
|
import i18n from "../../language/i18n";
|
|
19
19
|
import ActivityEvaluationRubricContent from "./evaluation-rubric-content/ActivityEvaluationRubricContent";
|
|
20
|
+
import DividerLine from "../dividers/DividerLine";
|
|
20
21
|
|
|
21
22
|
const ActivityPreviewByData = ({
|
|
22
23
|
data,
|
|
@@ -84,23 +85,26 @@ const ActivityPreviewByData = ({
|
|
|
84
85
|
return (
|
|
85
86
|
<div key={key}>
|
|
86
87
|
{showType ? (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
<>
|
|
89
|
+
<div className="mb-4">
|
|
90
|
+
{showDescription ? (
|
|
91
|
+
<div className="my-2">
|
|
92
|
+
<p className="font-semibold text-lg">
|
|
93
|
+
{i18n.t("activity_template")}
|
|
94
|
+
</p>
|
|
95
|
+
</div>
|
|
96
|
+
) : null}
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
<SelectionBox
|
|
99
|
+
optionList={optionList}
|
|
100
|
+
selectedId={selectedType}
|
|
101
|
+
handleSelectOnClick={(itemId) => {
|
|
102
|
+
setSelectedType(itemId);
|
|
103
|
+
}}
|
|
104
|
+
/>
|
|
105
|
+
</div>
|
|
106
|
+
<DividerLine />
|
|
107
|
+
</>
|
|
104
108
|
) : null}
|
|
105
109
|
{selectedType ? (
|
|
106
110
|
<div key={selectedType} className="">
|