@appcorp/fusion-storybook 0.2.73 → 0.2.74
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.
|
@@ -38,6 +38,13 @@ const tableBodyCols = [
|
|
|
38
38
|
{
|
|
39
39
|
componentType: COMPONENT_TYPE.OBJECT,
|
|
40
40
|
key: ["enrollments[0]:class:name", "enrollments[0]:section:name"],
|
|
41
|
+
textFormatter: (val, row) => {
|
|
42
|
+
var _a, _b, _c, _d, _e, _f;
|
|
43
|
+
const rowItem = row;
|
|
44
|
+
const className = ((_c = (_b = (_a = rowItem.enrollments) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.class) === null || _c === void 0 ? void 0 : _c.name) || "";
|
|
45
|
+
const sectionName = ((_f = (_e = (_d = rowItem.enrollments) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.section) === null || _f === void 0 ? void 0 : _f.name) || "";
|
|
46
|
+
return `${className}${sectionName ? ` - ${sectionName}` : ""}`;
|
|
47
|
+
},
|
|
41
48
|
},
|
|
42
49
|
{ componentType: COMPONENT_TYPE.BOOLEAN, key: "enabled" },
|
|
43
50
|
{ componentType: COMPONENT_TYPE.ACTIONS },
|
|
@@ -51,7 +58,7 @@ const createComponentInstances = () => ({
|
|
|
51
58
|
moreActions: _jsx(StudentProfileMoreActions, {}),
|
|
52
59
|
view: _jsx(StudentProfileView, {}),
|
|
53
60
|
});
|
|
54
|
-
const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled, labelFirstName, labelId, labelLastName,
|
|
61
|
+
const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled, labelFirstName, labelId, labelLastName, labelClassSection, labelStudentCode, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
|
|
55
62
|
const components = createComponentInstances();
|
|
56
63
|
return {
|
|
57
64
|
moduleName: "studentProfile",
|
|
@@ -60,7 +67,7 @@ const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescrip
|
|
|
60
67
|
{ label: labelFirstName, width: "15%" },
|
|
61
68
|
{ label: labelLastName, width: "15%" },
|
|
62
69
|
{ label: labelStudentCode, width: "15%" },
|
|
63
|
-
{ label:
|
|
70
|
+
{ label: labelClassSection, width: "20%" },
|
|
64
71
|
{ label: labelEnabled, width: "10%" },
|
|
65
72
|
{ label: labelActions, width: "5%" },
|
|
66
73
|
],
|
|
@@ -108,7 +115,7 @@ const StudentProfilePageInner = (props) => {
|
|
|
108
115
|
labelFirstName: props.labelFirstName,
|
|
109
116
|
labelId: props.labelId,
|
|
110
117
|
labelLastName: props.labelLastName,
|
|
111
|
-
|
|
118
|
+
labelClassSection: props.labelClassSection,
|
|
112
119
|
labelStudentCode: props.labelStudentCode,
|
|
113
120
|
saveLabel: props.saveLabel,
|
|
114
121
|
searchPlaceholder: props.searchPlaceholder,
|
|
@@ -130,7 +137,7 @@ const StudentProfilePageInner = (props) => {
|
|
|
130
137
|
props.labelFirstName,
|
|
131
138
|
props.labelId,
|
|
132
139
|
props.labelLastName,
|
|
133
|
-
props.
|
|
140
|
+
props.labelClassSection,
|
|
134
141
|
props.labelStudentCode,
|
|
135
142
|
props.saveLabel,
|
|
136
143
|
props.searchPlaceholder,
|