@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.
@@ -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;
@@ -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, 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, }) => {
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: labelStatus, width: "20%" },
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
- labelStatus: props.labelStatus,
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.labelStatus,
140
+ props.labelClassSection,
134
141
  props.labelStudentCode,
135
142
  props.saveLabel,
136
143
  props.searchPlaceholder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.2.73",
3
+ "version": "0.2.74",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",