@appcorp/fusion-storybook 0.2.72 → 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.
@@ -32,7 +32,7 @@ interface Props {
32
32
  labelFirstName: string;
33
33
  labelId: string;
34
34
  labelLastName: string;
35
- labelStatus: string;
35
+ labelClassSection: string;
36
36
  labelStudentCode: string;
37
37
  saveLabel: string;
38
38
  searchPlaceholder: string;
@@ -35,7 +35,17 @@ const tableBodyCols = [
35
35
  { componentType: COMPONENT_TYPE.OBJECT, key: ["familyMember:firstName"] },
36
36
  { componentType: COMPONENT_TYPE.OBJECT, key: ["familyMember:lastName"] },
37
37
  { componentType: COMPONENT_TYPE.TEXT, key: "studentCode" },
38
- { componentType: COMPONENT_TYPE.TEXT, key: "status" },
38
+ {
39
+ componentType: COMPONENT_TYPE.OBJECT,
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
+ },
48
+ },
39
49
  { componentType: COMPONENT_TYPE.BOOLEAN, key: "enabled" },
40
50
  { componentType: COMPONENT_TYPE.ACTIONS },
41
51
  ];
@@ -48,7 +58,7 @@ const createComponentInstances = () => ({
48
58
  moreActions: _jsx(StudentProfileMoreActions, {}),
49
59
  view: _jsx(StudentProfileView, {}),
50
60
  });
51
- const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled, labelFirstName, labelId, labelLastName, labelStatus, labelStudentCode, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
61
+ const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelEnabled, labelFirstName, labelId, labelLastName, labelClassSection, labelStudentCode, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
52
62
  const components = createComponentInstances();
53
63
  return {
54
64
  moduleName: "studentProfile",
@@ -57,7 +67,7 @@ const createStudentProfileConfig = ({ cancelLabel, dispatch, drawerFilterDescrip
57
67
  { label: labelFirstName, width: "15%" },
58
68
  { label: labelLastName, width: "15%" },
59
69
  { label: labelStudentCode, width: "15%" },
60
- { label: labelStatus, width: "20%" },
70
+ { label: labelClassSection, width: "20%" },
61
71
  { label: labelEnabled, width: "10%" },
62
72
  { label: labelActions, width: "5%" },
63
73
  ],
@@ -105,7 +115,7 @@ const StudentProfilePageInner = (props) => {
105
115
  labelFirstName: props.labelFirstName,
106
116
  labelId: props.labelId,
107
117
  labelLastName: props.labelLastName,
108
- labelStatus: props.labelStatus,
118
+ labelClassSection: props.labelClassSection,
109
119
  labelStudentCode: props.labelStudentCode,
110
120
  saveLabel: props.saveLabel,
111
121
  searchPlaceholder: props.searchPlaceholder,
@@ -127,7 +137,7 @@ const StudentProfilePageInner = (props) => {
127
137
  props.labelFirstName,
128
138
  props.labelId,
129
139
  props.labelLastName,
130
- props.labelStatus,
140
+ props.labelClassSection,
131
141
  props.labelStudentCode,
132
142
  props.saveLabel,
133
143
  props.searchPlaceholder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.2.72",
3
+ "version": "0.2.74",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",