@appcorp/fusion-storybook 0.2.12 → 0.2.14

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.
Files changed (173) hide show
  1. package/base-modules/admission/context/use-admission-module.d.ts +88 -0
  2. package/base-modules/admission/context/use-admission-module.js +771 -0
  3. package/base-modules/admission/context.d.ts +1 -87
  4. package/base-modules/admission/context.js +3 -769
  5. package/base-modules/admission/filter.d.ts +1 -1
  6. package/base-modules/admission/form.d.ts +1 -1
  7. package/base-modules/admission/more-actions.d.ts +1 -1
  8. package/base-modules/admission/page.d.ts +8 -1
  9. package/base-modules/admission/page.js +25 -4
  10. package/base-modules/admission/view.d.ts +1 -1
  11. package/base-modules/attendance/form.d.ts +1 -1
  12. package/base-modules/attendance/page.d.ts +8 -1
  13. package/base-modules/attendance/page.js +25 -4
  14. package/base-modules/attendance/view.d.ts +1 -1
  15. package/base-modules/campus/filter.d.ts +1 -1
  16. package/base-modules/campus/form.d.ts +1 -1
  17. package/base-modules/campus/more-actions.d.ts +1 -1
  18. package/base-modules/campus/more-actions.js +0 -1
  19. package/base-modules/campus/page.d.ts +8 -1
  20. package/base-modules/campus/page.js +25 -4
  21. package/base-modules/campus/view.d.ts +1 -1
  22. package/base-modules/class/filter.d.ts +1 -1
  23. package/base-modules/class/form.d.ts +1 -1
  24. package/base-modules/class/more-actions.d.ts +1 -1
  25. package/base-modules/class/more-actions.js +1 -6
  26. package/base-modules/class/page.d.ts +8 -1
  27. package/base-modules/class/page.js +25 -4
  28. package/base-modules/class/view.d.ts +1 -1
  29. package/base-modules/course/filter.d.ts +1 -1
  30. package/base-modules/course/form.d.ts +1 -1
  31. package/base-modules/course/more-actions.d.ts +1 -1
  32. package/base-modules/course/page.d.ts +8 -1
  33. package/base-modules/course/page.js +25 -4
  34. package/base-modules/course/view.d.ts +1 -1
  35. package/base-modules/discount-code/filter.d.ts +2 -1
  36. package/base-modules/discount-code/form.d.ts +1 -1
  37. package/base-modules/discount-code/page.d.ts +8 -1
  38. package/base-modules/discount-code/page.js +25 -4
  39. package/base-modules/discount-code/view.d.ts +1 -1
  40. package/base-modules/enrollment/filter.d.ts +1 -1
  41. package/base-modules/enrollment/form.d.ts +1 -1
  42. package/base-modules/enrollment/more-actions.d.ts +1 -1
  43. package/base-modules/enrollment/page.d.ts +8 -1
  44. package/base-modules/enrollment/page.js +25 -4
  45. package/base-modules/enrollment/view.d.ts +1 -1
  46. package/base-modules/expense/filter.d.ts +1 -1
  47. package/base-modules/expense/form.d.ts +1 -1
  48. package/base-modules/expense/more-actions.d.ts +1 -1
  49. package/base-modules/expense/more-actions.js +1 -6
  50. package/base-modules/expense/page.d.ts +8 -1
  51. package/base-modules/expense/page.js +25 -4
  52. package/base-modules/expense/view.d.ts +1 -1
  53. package/base-modules/family/filter.d.ts +1 -1
  54. package/base-modules/family/form.d.ts +1 -1
  55. package/base-modules/family/more-actions.d.ts +1 -1
  56. package/base-modules/family/page.d.ts +8 -1
  57. package/base-modules/family/page.js +25 -4
  58. package/base-modules/family/view.d.ts +1 -1
  59. package/base-modules/family-member/filter.d.ts +1 -1
  60. package/base-modules/family-member/form.d.ts +1 -1
  61. package/base-modules/family-member/more-actions.d.ts +1 -1
  62. package/base-modules/family-member/page.d.ts +8 -1
  63. package/base-modules/family-member/page.js +25 -4
  64. package/base-modules/family-member/view.d.ts +1 -1
  65. package/base-modules/fee-structure/filter.d.ts +1 -1
  66. package/base-modules/fee-structure/form.d.ts +1 -1
  67. package/base-modules/fee-structure/more-actions.d.ts +1 -1
  68. package/base-modules/fee-structure/more-actions.js +1 -6
  69. package/base-modules/fee-structure/page.d.ts +8 -1
  70. package/base-modules/fee-structure/page.js +25 -4
  71. package/base-modules/fee-structure/view.d.ts +1 -1
  72. package/base-modules/rbac/assign-permissions.d.ts +1 -1
  73. package/base-modules/rbac/filter.d.ts +1 -1
  74. package/base-modules/rbac/form.d.ts +1 -1
  75. package/base-modules/rbac/more-actions.d.ts +1 -1
  76. package/base-modules/rbac/page.d.ts +8 -1
  77. package/base-modules/rbac/page.js +25 -4
  78. package/base-modules/rbac/view.d.ts +7 -1
  79. package/base-modules/school/drawer.d.ts +1 -1
  80. package/base-modules/school/filter.d.ts +1 -1
  81. package/base-modules/school/form.d.ts +1 -1
  82. package/base-modules/school/more-actions.d.ts +1 -1
  83. package/base-modules/school/view.d.ts +1 -1
  84. package/base-modules/section/filter.d.ts +1 -1
  85. package/base-modules/section/form.d.ts +1 -1
  86. package/base-modules/section/more-actions.d.ts +1 -1
  87. package/base-modules/section/page.d.ts +8 -1
  88. package/base-modules/section/page.js +25 -4
  89. package/base-modules/section/view.d.ts +1 -1
  90. package/base-modules/student-fee/context/shared.d.ts +178 -0
  91. package/base-modules/student-fee/context/shared.js +59 -0
  92. package/base-modules/student-fee/context/use-student-fee-module.d.ts +64 -0
  93. package/base-modules/student-fee/context/use-student-fee-module.js +610 -0
  94. package/base-modules/student-fee/context.d.ts +21 -235
  95. package/base-modules/student-fee/context.js +2 -674
  96. package/base-modules/student-fee/filter.d.ts +1 -1
  97. package/base-modules/student-fee/form.d.ts +1 -1
  98. package/base-modules/student-fee/more-actions.d.ts +1 -1
  99. package/base-modules/student-fee/more-actions.js +1 -6
  100. package/base-modules/student-fee/page.d.ts +8 -1
  101. package/base-modules/student-fee/page.js +25 -4
  102. package/base-modules/student-fee/view.d.ts +1 -1
  103. package/base-modules/student-profile/context/module-base.d.ts +187 -0
  104. package/base-modules/student-profile/context/module-base.js +50 -0
  105. package/base-modules/student-profile/context/use-student-profile-module.d.ts +70 -0
  106. package/base-modules/student-profile/context/use-student-profile-module.js +506 -0
  107. package/base-modules/student-profile/context.d.ts +20 -256
  108. package/base-modules/student-profile/context.js +2 -601
  109. package/base-modules/student-profile/filter.d.ts +1 -1
  110. package/base-modules/student-profile/form.d.ts +1 -1
  111. package/base-modules/student-profile/more-actions.d.ts +1 -1
  112. package/base-modules/student-profile/page.d.ts +8 -1
  113. package/base-modules/student-profile/page.js +25 -4
  114. package/base-modules/student-profile/view.d.ts +1 -1
  115. package/base-modules/subject/filter.d.ts +1 -1
  116. package/base-modules/subject/form.d.ts +1 -1
  117. package/base-modules/subject/more-actions.d.ts +1 -1
  118. package/base-modules/subject/page.d.ts +8 -1
  119. package/base-modules/subject/page.js +25 -4
  120. package/base-modules/subject/view.d.ts +1 -1
  121. package/base-modules/teacher/avatar-upload.js +1 -4
  122. package/base-modules/teacher/filter.d.ts +1 -1
  123. package/base-modules/teacher/form.d.ts +1 -1
  124. package/base-modules/teacher/more-actions.d.ts +1 -1
  125. package/base-modules/teacher/more-actions.js +1 -6
  126. package/base-modules/teacher/page.d.ts +8 -1
  127. package/base-modules/teacher/page.js +25 -4
  128. package/base-modules/teacher/view.d.ts +1 -1
  129. package/base-modules/user/context/use-user-module.d.ts +53 -0
  130. package/base-modules/user/context/use-user-module.js +546 -0
  131. package/base-modules/user/context.d.ts +1 -52
  132. package/base-modules/user/context.js +5 -547
  133. package/base-modules/user/drawer.d.ts +1 -1
  134. package/base-modules/user/filter.d.ts +1 -1
  135. package/base-modules/user/form.d.ts +1 -1
  136. package/base-modules/user/more-actions.d.ts +1 -1
  137. package/base-modules/user/page.d.ts +8 -1
  138. package/base-modules/user/page.js +25 -4
  139. package/base-modules/user/view.d.ts +1 -1
  140. package/base-modules/workspace/context.d.ts +1 -1
  141. package/base-modules/workspace/drawer.d.ts +1 -1
  142. package/base-modules/workspace/filter.d.ts +1 -1
  143. package/base-modules/workspace/form.d.ts +1 -1
  144. package/base-modules/workspace/more-actions.d.ts +1 -1
  145. package/base-modules/workspace/view.d.ts +1 -1
  146. package/base-modules/workspace-user/filter.d.ts +1 -1
  147. package/base-modules/workspace-user/form.d.ts +1 -1
  148. package/base-modules/workspace-user/more-actions.d.ts +1 -1
  149. package/base-modules/workspace-user/more-actions.js +1 -6
  150. package/base-modules/workspace-user/page.d.ts +8 -1
  151. package/base-modules/workspace-user/page.js +25 -4
  152. package/base-modules/workspace-user/view.d.ts +1 -1
  153. package/components/module-error.d.ts +9 -0
  154. package/components/module-error.js +3 -0
  155. package/components/timeline.d.ts +1 -1
  156. package/package.json +6 -5
  157. package/tsconfig.build.tsbuildinfo +1 -1
  158. package/type.d.ts +3 -1242
  159. package/type.js +3 -445
  160. package/types/academics.d.ts +264 -0
  161. package/types/academics.js +8 -0
  162. package/types/admission.d.ts +85 -0
  163. package/types/admission.js +6 -0
  164. package/types/communication.d.ts +165 -0
  165. package/types/communication.js +7 -0
  166. package/types/enums.d.ts +411 -0
  167. package/types/enums.js +442 -0
  168. package/types/finance.d.ts +126 -0
  169. package/types/finance.js +7 -0
  170. package/types/index.d.ts +12 -0
  171. package/types/index.js +12 -0
  172. package/types/user-management.d.ts +236 -0
  173. package/types/user-management.js +7 -0
@@ -1 +1 @@
1
- export declare const StudentFeeMoreActions: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const StudentFeeMoreActions: () => import("react").JSX.Element;
@@ -33,7 +33,6 @@ export const StudentFeeMoreActions = () => {
33
33
  {
34
34
  id: "3",
35
35
  title: t("uploadTheCompletedCsvToTheSystem"),
36
- handleOnClick: () => console.log("clicked"),
37
36
  },
38
37
  ];
39
38
  const update = [
@@ -46,11 +45,7 @@ export const StudentFeeMoreActions = () => {
46
45
  },
47
46
  },
48
47
  { id: "2", title: t("updateYourDataInTheCsv") },
49
- {
50
- id: "3",
51
- title: t("uploadTheCompletedCsvToTheSystem"),
52
- handleOnClick: () => console.log("clicked"),
53
- },
48
+ { id: "3", title: t("uploadTheCompletedCsvToTheSystem") },
54
49
  ];
55
50
  return (_jsxs("div", { className: "space-y-4", children: [_jsx(Timeline, { events: create, heading: t("bulkCreate") }), _jsx(Timeline, { events: update, heading: t("bulkUpdate") })] }));
56
51
  };
@@ -16,7 +16,14 @@ import { FC } from "react";
16
16
  import { USER_ROLE } from "../../type";
17
17
  interface Props {
18
18
  cancelLabel: string;
19
- drawerTitle: string;
19
+ drawerFilterDescription: string;
20
+ drawerFilterTitle: string;
21
+ drawerFormDescription: string;
22
+ drawerFormTitle: string;
23
+ drawerMoreActionsDescription: string;
24
+ drawerMoreActionsTitle: string;
25
+ drawerViewDescription: string;
26
+ drawerViewTitle: string;
20
27
  labelActions: string;
21
28
  labelAmount: string;
22
29
  labelAmountDue: string;
@@ -74,7 +74,7 @@ const createComponentInstances = () => ({
74
74
  moreActions: _jsx(StudentFeeMoreActions, {}),
75
75
  view: _jsx(StudentFeeView, {}),
76
76
  });
77
- const createStudentFeeConfig = ({ cancelLabel, dispatch, drawerTitle, labelActions, labelAmount, labelAmountDue, labelAmountPaid, labelDueDate, labelFeeStructure, labelId, labelRemarks, labelStatus, labelStudent, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
77
+ const createStudentFeeConfig = ({ cancelLabel, dispatch, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, labelActions, labelAmount, labelAmountDue, labelAmountPaid, labelDueDate, labelFeeStructure, labelId, labelRemarks, labelStatus, labelStudent, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
78
78
  const components = createComponentInstances();
79
79
  return {
80
80
  moduleName: "studentFee",
@@ -91,7 +91,14 @@ const createStudentFeeConfig = ({ cancelLabel, dispatch, drawerTitle, labelActio
91
91
  { label: labelActions, width: "5%" },
92
92
  ],
93
93
  cancelLabel,
94
- drawerTitle,
94
+ drawerFilterDescription,
95
+ drawerFilterTitle,
96
+ drawerFormDescription,
97
+ drawerFormTitle,
98
+ drawerMoreActionsDescription,
99
+ drawerMoreActionsTitle,
100
+ drawerViewDescription,
101
+ drawerViewTitle,
95
102
  filterContent: components.filter,
96
103
  formContent: components.form,
97
104
  moreActionsContent: components.moreActions,
@@ -115,7 +122,14 @@ const StudentFeePageInner = (props) => {
115
122
  const studentFeeConfig = useMemo(() => createStudentFeeConfig({
116
123
  dispatch: context.dispatch,
117
124
  cancelLabel: props.cancelLabel,
118
- drawerTitle: props.drawerTitle,
125
+ drawerFormTitle: props.drawerFormTitle,
126
+ drawerFormDescription: props.drawerFormDescription,
127
+ drawerViewTitle: props.drawerViewTitle,
128
+ drawerViewDescription: props.drawerViewDescription,
129
+ drawerFilterTitle: props.drawerFilterTitle,
130
+ drawerFilterDescription: props.drawerFilterDescription,
131
+ drawerMoreActionsTitle: props.drawerMoreActionsTitle,
132
+ drawerMoreActionsDescription: props.drawerMoreActionsDescription,
119
133
  labelActions: props.labelActions,
120
134
  labelAmount: props.labelAmount,
121
135
  labelAmountDue: props.labelAmountDue,
@@ -133,7 +147,14 @@ const StudentFeePageInner = (props) => {
133
147
  }), [
134
148
  context.dispatch,
135
149
  props.cancelLabel,
136
- props.drawerTitle,
150
+ props.drawerFormTitle,
151
+ props.drawerFormDescription,
152
+ props.drawerViewTitle,
153
+ props.drawerViewDescription,
154
+ props.drawerFilterTitle,
155
+ props.drawerFilterDescription,
156
+ props.drawerMoreActionsTitle,
157
+ props.drawerMoreActionsDescription,
137
158
  props.labelActions,
138
159
  props.labelAmount,
139
160
  props.labelAmountDue,
@@ -1 +1 @@
1
- export declare const StudentFeeView: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const StudentFeeView: () => import("react").JSX.Element;
@@ -0,0 +1,187 @@
1
+ import { StudentProfileBE } from "../../../type";
2
+ export declare const STUDENT_PROFILE_DRAWER: {
3
+ readonly FILTER_DRAWER: string;
4
+ readonly FORM_DRAWER: string;
5
+ readonly MORE_ACTIONS_DRAWER: string;
6
+ readonly VIEW_DRAWER: string;
7
+ };
8
+ export declare const STUDENT_PROFILE_ACTION_TYPES: {
9
+ readonly RESET_FORM: "RESET_FORM";
10
+ readonly SET_CURRENT_PAGE: "SET_CURRENT_PAGE";
11
+ readonly SET_PAGE_LIMIT: "SET_PAGE_LIMIT";
12
+ readonly SET_SEARCH_QUERY: "SET_SEARCH_QUERY";
13
+ readonly SET_DRAWER: "SET_DRAWER";
14
+ readonly SET_ITEMS: "SET_ITEMS";
15
+ readonly SET_FORM_DATA: "SET_FORM_DATA";
16
+ readonly SET_DISABLE_SAVE_BUTTON: "SET_DISABLE_SAVE_BUTTON";
17
+ readonly SET_INPUT_FIELD: "SET_INPUT_FIELD";
18
+ readonly SET_ERRORS: "SET_ERRORS";
19
+ readonly SET_FILTERS: "SET_FILTERS";
20
+ }, studentProfileModuleConfig: import("@react-pakistan/util-functions/factory/generic-module-factory").ModuleConfig<{
21
+ items: StudentProfileBE[];
22
+ count: number;
23
+ currentPage: number;
24
+ pageLimit: number;
25
+ searchQuery: string;
26
+ disableSaveButton: boolean;
27
+ drawer: string | null;
28
+ errors: Record<string, string>;
29
+ id: string;
30
+ familyMemberId: string;
31
+ studentCode: string;
32
+ status: string;
33
+ enabled: boolean;
34
+ remarks: string | null;
35
+ firstName: string;
36
+ lastName: string;
37
+ dateOfBirth: string | Date | null;
38
+ gender: string | null;
39
+ bloodGroup: string | null;
40
+ phone: string | null;
41
+ email: string | null;
42
+ emergencyPhone: string | null;
43
+ avatar: string | null;
44
+ familyId: string;
45
+ address: string | null;
46
+ city: string | null;
47
+ state: string | null;
48
+ country: string | null;
49
+ postalCode: string | null;
50
+ filterEnabled: boolean | undefined;
51
+ filterGender: string | undefined;
52
+ filterStatus: string | undefined;
53
+ }>, initialStudentProfileState: {
54
+ items: StudentProfileBE[];
55
+ count: number;
56
+ currentPage: number;
57
+ pageLimit: number;
58
+ searchQuery: string;
59
+ disableSaveButton: boolean;
60
+ drawer: string | null;
61
+ errors: Record<string, string>;
62
+ id: string;
63
+ familyMemberId: string;
64
+ studentCode: string;
65
+ status: string;
66
+ enabled: boolean;
67
+ remarks: string | null;
68
+ firstName: string;
69
+ lastName: string;
70
+ dateOfBirth: string | Date | null;
71
+ gender: string | null;
72
+ bloodGroup: string | null;
73
+ phone: string | null;
74
+ email: string | null;
75
+ emergencyPhone: string | null;
76
+ avatar: string | null;
77
+ familyId: string;
78
+ address: string | null;
79
+ city: string | null;
80
+ state: string | null;
81
+ country: string | null;
82
+ postalCode: string | null;
83
+ filterEnabled: boolean | undefined;
84
+ filterGender: string | undefined;
85
+ filterStatus: string | undefined;
86
+ }, StudentProfileProvider: import("react").FC<{
87
+ children: React.ReactNode;
88
+ }>, studentProfileReducer: (state: {
89
+ items: StudentProfileBE[];
90
+ count: number;
91
+ currentPage: number;
92
+ pageLimit: number;
93
+ searchQuery: string;
94
+ disableSaveButton: boolean;
95
+ drawer: string | null;
96
+ errors: Record<string, string>;
97
+ id: string;
98
+ familyMemberId: string;
99
+ studentCode: string;
100
+ status: string;
101
+ enabled: boolean;
102
+ remarks: string | null;
103
+ firstName: string;
104
+ lastName: string;
105
+ dateOfBirth: string | Date | null;
106
+ gender: string | null;
107
+ bloodGroup: string | null;
108
+ phone: string | null;
109
+ email: string | null;
110
+ emergencyPhone: string | null;
111
+ avatar: string | null;
112
+ familyId: string;
113
+ address: string | null;
114
+ city: string | null;
115
+ state: string | null;
116
+ country: string | null;
117
+ postalCode: string | null;
118
+ filterEnabled: boolean | undefined;
119
+ filterGender: string | undefined;
120
+ filterStatus: string | undefined;
121
+ }, action: any) => {
122
+ items: StudentProfileBE[];
123
+ count: number;
124
+ currentPage: number;
125
+ pageLimit: number;
126
+ searchQuery: string;
127
+ disableSaveButton: boolean;
128
+ drawer: string | null;
129
+ errors: Record<string, string>;
130
+ id: string;
131
+ familyMemberId: string;
132
+ studentCode: string;
133
+ status: string;
134
+ enabled: boolean;
135
+ remarks: string | null;
136
+ firstName: string;
137
+ lastName: string;
138
+ dateOfBirth: string | Date | null;
139
+ gender: string | null;
140
+ bloodGroup: string | null;
141
+ phone: string | null;
142
+ email: string | null;
143
+ emergencyPhone: string | null;
144
+ avatar: string | null;
145
+ familyId: string;
146
+ address: string | null;
147
+ city: string | null;
148
+ state: string | null;
149
+ country: string | null;
150
+ postalCode: string | null;
151
+ filterEnabled: boolean | undefined;
152
+ filterGender: string | undefined;
153
+ filterStatus: string | undefined;
154
+ }, useStudentProfileContext: () => import("@react-pakistan/util-functions/factory/generic-module-factory").GenericModuleContext<{
155
+ items: StudentProfileBE[];
156
+ count: number;
157
+ currentPage: number;
158
+ pageLimit: number;
159
+ searchQuery: string;
160
+ disableSaveButton: boolean;
161
+ drawer: string | null;
162
+ errors: Record<string, string>;
163
+ id: string;
164
+ familyMemberId: string;
165
+ studentCode: string;
166
+ status: string;
167
+ enabled: boolean;
168
+ remarks: string | null;
169
+ firstName: string;
170
+ lastName: string;
171
+ dateOfBirth: string | Date | null;
172
+ gender: string | null;
173
+ bloodGroup: string | null;
174
+ phone: string | null;
175
+ email: string | null;
176
+ emergencyPhone: string | null;
177
+ avatar: string | null;
178
+ familyId: string;
179
+ address: string | null;
180
+ city: string | null;
181
+ state: string | null;
182
+ country: string | null;
183
+ postalCode: string | null;
184
+ filterEnabled: boolean | undefined;
185
+ filterGender: string | undefined;
186
+ filterStatus: string | undefined;
187
+ }>;
@@ -0,0 +1,50 @@
1
+ import { createGenericModule } from "@react-pakistan/util-functions/factory/generic-module-factory";
2
+ import { DRAWER_TYPES } from "@react-pakistan/util-functions/factory/generic-component-factory";
3
+ import { STUDENT_STATUS } from "../../../type";
4
+ import { pageLimit } from "../constants";
5
+ export const STUDENT_PROFILE_DRAWER = {
6
+ FILTER_DRAWER: DRAWER_TYPES.FILTER_DRAWER,
7
+ FORM_DRAWER: DRAWER_TYPES.FORM_DRAWER,
8
+ MORE_ACTIONS_DRAWER: DRAWER_TYPES.MORE_ACTIONS_DRAWER,
9
+ VIEW_DRAWER: DRAWER_TYPES.VIEW_DRAWER,
10
+ };
11
+ const studentProfileConfig = {
12
+ name: "StudentProfile",
13
+ displayName: "Student Profile",
14
+ drawerTypes: DRAWER_TYPES,
15
+ initialState: {
16
+ items: [],
17
+ count: 0,
18
+ currentPage: 1,
19
+ pageLimit,
20
+ searchQuery: "",
21
+ disableSaveButton: false,
22
+ drawer: null,
23
+ errors: {},
24
+ id: "",
25
+ familyMemberId: "",
26
+ studentCode: "",
27
+ status: STUDENT_STATUS.ACTIVE,
28
+ enabled: true,
29
+ remarks: "",
30
+ firstName: "",
31
+ lastName: "",
32
+ dateOfBirth: "",
33
+ gender: "",
34
+ bloodGroup: "",
35
+ phone: "",
36
+ email: "",
37
+ emergencyPhone: "",
38
+ avatar: "",
39
+ familyId: "",
40
+ address: "",
41
+ city: "",
42
+ state: "",
43
+ country: "",
44
+ postalCode: "",
45
+ filterEnabled: undefined,
46
+ filterGender: undefined,
47
+ filterStatus: undefined,
48
+ },
49
+ };
50
+ export const { actionTypes: STUDENT_PROFILE_ACTION_TYPES, config: studentProfileModuleConfig, initialState: initialStudentProfileState, Provider: StudentProfileProvider, reducer: studentProfileReducer, useContext: useStudentProfileContext, } = createGenericModule(studentProfileConfig);
@@ -0,0 +1,70 @@
1
+ import { StudentProfileBE } from "../../../type";
2
+ import { type RowAction, type TableRow } from "@appcorp/shadcn/components/enhanced-table";
3
+ export declare const useStudentProfileModule: () => {
4
+ applyFilters: () => void;
5
+ byIdLoading: boolean;
6
+ clearFilters: () => void;
7
+ clearSearch: () => void;
8
+ closeDrawer: () => void;
9
+ deleteLoading: boolean;
10
+ handleAvatar: (files: File[]) => void;
11
+ handleChange: (field: string, value: string | number | boolean | undefined | null) => void;
12
+ handleCreate: () => void;
13
+ handleDelete: (row?: TableRow) => void;
14
+ handleEdit: (row?: TableRow) => void;
15
+ handleFilters: () => void;
16
+ handleMoreActions: () => void;
17
+ handlePageChange: (page: number | unknown) => void;
18
+ handlePageLimitChange: (k: string, value: object) => void;
19
+ handleReAdmitStudent: (row?: TableRow) => Promise<void>;
20
+ handleSearch: (query: string) => void;
21
+ handleSubmit: () => void;
22
+ handleView: (row?: TableRow) => void;
23
+ handleWithdrawStudent: () => Promise<void>;
24
+ headerActions: {
25
+ enabled: boolean;
26
+ handleOnClick: () => void;
27
+ label: string;
28
+ order: number;
29
+ }[];
30
+ listFetchNow: (url?: string, config?: import("@react-pakistan/util-functions/hooks/use-fetch").FetchConfig) => void;
31
+ listLoading: boolean;
32
+ rowActions: RowAction[];
33
+ toggleStatus: (row?: TableRow) => void;
34
+ updateLoading: boolean;
35
+ state: {
36
+ items: StudentProfileBE[];
37
+ count: number;
38
+ currentPage: number;
39
+ pageLimit: number;
40
+ searchQuery: string;
41
+ disableSaveButton: boolean;
42
+ drawer: string | null;
43
+ errors: Record<string, string>;
44
+ id: string;
45
+ familyMemberId: string;
46
+ studentCode: string;
47
+ status: string;
48
+ enabled: boolean;
49
+ remarks: string | null;
50
+ firstName: string;
51
+ lastName: string;
52
+ dateOfBirth: string | Date | null;
53
+ gender: string | null;
54
+ bloodGroup: string | null;
55
+ phone: string | null;
56
+ email: string | null;
57
+ emergencyPhone: string | null;
58
+ avatar: string | null;
59
+ familyId: string;
60
+ address: string | null;
61
+ city: string | null;
62
+ state: string | null;
63
+ country: string | null;
64
+ postalCode: string | null;
65
+ filterEnabled: boolean | undefined;
66
+ filterGender: string | undefined;
67
+ filterStatus: string | undefined;
68
+ };
69
+ dispatch: React.Dispatch<any>;
70
+ };