@appcorp/fusion-storybook 0.2.75 → 0.2.77
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.
|
@@ -29,9 +29,9 @@ interface Props {
|
|
|
29
29
|
drawerViewTitle: string;
|
|
30
30
|
labelActions: string;
|
|
31
31
|
labelEnabled: string;
|
|
32
|
-
|
|
32
|
+
labelName: string;
|
|
33
33
|
labelId: string;
|
|
34
|
-
|
|
34
|
+
labelComputerCode: string;
|
|
35
35
|
labelClassSection: string;
|
|
36
36
|
labelStudentCode: string;
|
|
37
37
|
saveLabel: string;
|
|
@@ -32,19 +32,31 @@ import { RbacNoAccess } from "../../components/rbac-no-access";
|
|
|
32
32
|
// ============================================================================
|
|
33
33
|
const tableBodyCols = [
|
|
34
34
|
{ componentType: COMPONENT_TYPE.ID, key: "id" },
|
|
35
|
-
{
|
|
36
|
-
|
|
35
|
+
{
|
|
36
|
+
componentType: COMPONENT_TYPE.TEXT,
|
|
37
|
+
key: "familyMember",
|
|
38
|
+
textFormatter: (val, row) => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
const rowItem = row;
|
|
41
|
+
return `${((_a = rowItem.familyMember) === null || _a === void 0 ? void 0 : _a.firstName) || ""} - ${((_b = rowItem.familyMember) === null || _b === void 0 ? void 0 : _b.lastName) || ""}`;
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
componentType: COMPONENT_TYPE.TEXT,
|
|
46
|
+
key: "computerNumber",
|
|
47
|
+
},
|
|
37
48
|
{ componentType: COMPONENT_TYPE.TEXT, key: "studentCode" },
|
|
38
49
|
{
|
|
39
|
-
componentType: COMPONENT_TYPE.
|
|
40
|
-
key:
|
|
50
|
+
componentType: COMPONENT_TYPE.TEXT,
|
|
51
|
+
key: "enrollments",
|
|
41
52
|
textFormatter: (val, row) => {
|
|
42
53
|
var _a, _b, _c, _d, _e, _f;
|
|
43
|
-
console.log("Row data for class/section formatting:", row, val);
|
|
44
54
|
const rowItem = row;
|
|
45
|
-
const className = ((_c = (_b = (_a = rowItem.enrollments) === null || _a === void 0 ? void 0 : _a[
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
const className = ((_c = (_b = (_a = rowItem.enrollments) === null || _a === void 0 ? void 0 : _a[rowItem.enrollments.length - 1]) === null || _b === void 0 ? void 0 : _b.class) === null || _c === void 0 ? void 0 : _c.name) ||
|
|
56
|
+
"";
|
|
57
|
+
const sectionName = ((_f = (_e = (_d = rowItem.enrollments) === null || _d === void 0 ? void 0 : _d[rowItem.enrollments.length - 1]) === null || _e === void 0 ? void 0 : _e.section) === null || _f === void 0 ? void 0 : _f.name) ||
|
|
58
|
+
"";
|
|
59
|
+
return `${className} - ${sectionName}}`;
|
|
48
60
|
},
|
|
49
61
|
},
|
|
50
62
|
{ componentType: COMPONENT_TYPE.BOOLEAN, key: "enabled" },
|
|
@@ -59,14 +71,14 @@ const createComponentInstances = () => ({
|
|
|
59
71
|
moreActions: _jsx(StudentProfileMoreActions, {}),
|
|
60
72
|
view: _jsx(StudentProfileView, {}),
|
|
61
73
|
});
|
|
62
|
-
const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled,
|
|
74
|
+
const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled, labelName, labelId, labelComputerCode, labelClassSection, labelStudentCode, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
|
|
63
75
|
const components = createComponentInstances();
|
|
64
76
|
return {
|
|
65
77
|
moduleName: "studentProfile",
|
|
66
78
|
tableColumns: [
|
|
67
79
|
{ label: labelId, width: "5%" },
|
|
68
|
-
{ label:
|
|
69
|
-
{ label:
|
|
80
|
+
{ label: labelName, width: "15%" },
|
|
81
|
+
{ label: labelComputerCode, width: "15%" },
|
|
70
82
|
{ label: labelStudentCode, width: "15%" },
|
|
71
83
|
{ label: labelClassSection, width: "20%" },
|
|
72
84
|
{ label: labelEnabled, width: "10%" },
|
|
@@ -113,9 +125,9 @@ const StudentProfilePageInner = (props) => {
|
|
|
113
125
|
drawerMoreActionsDescription: props.drawerMoreActionsDescription,
|
|
114
126
|
labelActions: props.labelActions,
|
|
115
127
|
labelEnabled: props.labelEnabled,
|
|
116
|
-
|
|
128
|
+
labelName: props.labelName,
|
|
117
129
|
labelId: props.labelId,
|
|
118
|
-
|
|
130
|
+
labelComputerCode: props.labelComputerCode,
|
|
119
131
|
labelClassSection: props.labelClassSection,
|
|
120
132
|
labelStudentCode: props.labelStudentCode,
|
|
121
133
|
saveLabel: props.saveLabel,
|
|
@@ -135,9 +147,9 @@ const StudentProfilePageInner = (props) => {
|
|
|
135
147
|
props.drawerMoreActionsDescription,
|
|
136
148
|
props.labelActions,
|
|
137
149
|
props.labelEnabled,
|
|
138
|
-
props.
|
|
150
|
+
props.labelName,
|
|
139
151
|
props.labelId,
|
|
140
|
-
props.
|
|
152
|
+
props.labelComputerCode,
|
|
141
153
|
props.labelClassSection,
|
|
142
154
|
props.labelStudentCode,
|
|
143
155
|
props.saveLabel,
|