@appcorp/fusion-storybook 0.3.35 → 0.3.36

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.
@@ -16,7 +16,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
16
16
  import { useMemo } from "react";
17
17
  import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
18
18
  import { createGenericModulePage, } from "@react-pakistan/util-functions/factory/generic-component-factory";
19
- import { DATE_FORMATS, formatDate } from "@react-pakistan/util-functions";
19
+ import { DATE_FORMATS, formatDate, VALUE_DELIMITER, } from "@react-pakistan/util-functions";
20
20
  import { useEnrollmentModule, EnrollmentProvider, ENROLLMENT_ACTION_TYPES, } from "./context";
21
21
  import { EnrollmentFilter } from "./filter";
22
22
  import { EnrollmentForm } from "./form";
@@ -35,7 +35,7 @@ const tableBodyCols = [
35
35
  textFormatter: (_, row) => {
36
36
  var _a, _b, _c, _d, _e, _f;
37
37
  const cn = (_b = (_a = row.studentProfile) === null || _a === void 0 ? void 0 : _a.computerNumber) !== null && _b !== void 0 ? _b : "";
38
- return `${(_d = (_c = row.studentProfile) === null || _c === void 0 ? void 0 : _c.familyMember) === null || _d === void 0 ? void 0 : _d.firstName} ${(_f = (_e = row.studentProfile) === null || _e === void 0 ? void 0 : _e.familyMember) === null || _f === void 0 ? void 0 : _f.lastName} - ${cn.split(':')[1] || cn}`;
38
+ return `${(_d = (_c = row.studentProfile) === null || _c === void 0 ? void 0 : _c.familyMember) === null || _d === void 0 ? void 0 : _d.firstName} ${(_f = (_e = row.studentProfile) === null || _e === void 0 ? void 0 : _e.familyMember) === null || _f === void 0 ? void 0 : _f.lastName} - ${cn.split(VALUE_DELIMITER.COLON)[1] || cn}`;
39
39
  },
40
40
  },
41
41
  {
@@ -27,6 +27,7 @@ import { StudentProfileMoreActions } from "./more-actions";
27
27
  import { StudentProfileView } from "./view";
28
28
  import { resolveRbacPermissions } from "../../utils/resolve-rbac-permissions";
29
29
  import { RbacNoAccess } from "../../components/rbac-no-access";
30
+ import { VALUE_DELIMITER } from "@react-pakistan/util-functions";
30
31
  // ============================================================================
31
32
  // TABLE COLUMN CONFIGURATION (static — no runtime deps)
32
33
  // ============================================================================
@@ -44,8 +45,12 @@ const tableBodyCols = [
44
45
  {
45
46
  componentType: COMPONENT_TYPE.TEXT,
46
47
  key: "computerNumber",
48
+ textFormatter: (val) => String(val).split(VALUE_DELIMITER.COLON)[1],
49
+ },
50
+ {
51
+ componentType: COMPONENT_TYPE.TEXT,
52
+ key: "studentCode",
47
53
  },
48
- { componentType: COMPONENT_TYPE.TEXT, key: "studentCode" },
49
54
  {
50
55
  componentType: COMPONENT_TYPE.TEXT,
51
56
  key: "enrollments",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.3.35",
3
+ "version": "0.3.36",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",