@appcorp/fusion-storybook 0.3.72 → 0.3.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.
|
@@ -70,7 +70,23 @@ export const useStudentFeeModule = () => {
|
|
|
70
70
|
schoolId,
|
|
71
71
|
status: state.status,
|
|
72
72
|
studentProfileId: state.studentProfileId,
|
|
73
|
-
}), [
|
|
73
|
+
}), [
|
|
74
|
+
state.amount,
|
|
75
|
+
state.amountDue,
|
|
76
|
+
state.amountPaid,
|
|
77
|
+
state.discountAmount,
|
|
78
|
+
state.discountCodeId,
|
|
79
|
+
state.dueDate,
|
|
80
|
+
state.enabled,
|
|
81
|
+
state.familyId,
|
|
82
|
+
state.feeStructureId,
|
|
83
|
+
state.id,
|
|
84
|
+
state.paidAt,
|
|
85
|
+
state.remarks,
|
|
86
|
+
state.status,
|
|
87
|
+
state.studentProfileId,
|
|
88
|
+
schoolId,
|
|
89
|
+
]);
|
|
74
90
|
const byIdParams = useMemo(() => ({ id: state.id }), [state.id]);
|
|
75
91
|
const deleteParams = useMemo(() => ({ id: state.id }), [state.id]);
|
|
76
92
|
// ============================================================================
|
|
@@ -21,6 +21,10 @@ interface Props {
|
|
|
21
21
|
drawerFilterTitle: string;
|
|
22
22
|
drawerFormDescription: string;
|
|
23
23
|
drawerFormTitle: string;
|
|
24
|
+
drawerMisc1Description?: string;
|
|
25
|
+
drawerMisc1Title?: string;
|
|
26
|
+
drawerMisc2Description?: string;
|
|
27
|
+
drawerMisc2Title?: string;
|
|
24
28
|
drawerMoreActionsDescription: string;
|
|
25
29
|
drawerMoreActionsTitle: string;
|
|
26
30
|
drawerViewDescription: string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* - `StudentFeePage` — root component that wraps with StudentFeeProvider
|
|
14
14
|
*/
|
|
15
15
|
"use client";
|
|
16
|
-
import { jsx as _jsx
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
import { useMemo } from "react";
|
|
18
18
|
import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
|
|
19
19
|
import { createGenericModulePage, } from "@react-pakistan/util-functions/factory/generic-component-factory";
|
|
@@ -75,8 +75,10 @@ const createComponentInstances = () => ({
|
|
|
75
75
|
form: _jsx(StudentFeeForm, {}),
|
|
76
76
|
moreActions: _jsx(StudentFeeMoreActions, {}),
|
|
77
77
|
view: _jsx(StudentFeeView, {}),
|
|
78
|
+
misc1: _jsx(StudentFeeSingleEntry, {}),
|
|
79
|
+
misc2: _jsx(StudentFeeCreateMonthly, {}),
|
|
78
80
|
});
|
|
79
|
-
const createStudentFeeConfig = ({ dispatch, drawerButtonCancel, drawerButtonSave, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, tableColumnHeaderActions, tableColumnHeaderAmount, tableColumnHeaderAmountDue, tableColumnHeaderAmountPaid, tableColumnHeaderDueDate, tableColumnHeaderFeeStructure, tableColumnHeaderId, tableColumnHeaderRemarks, tableColumnHeaderStatus, tableColumnHeaderStudent, tableDescription, tableSearchPlaceholder, tableTitle, }) => {
|
|
81
|
+
const createStudentFeeConfig = ({ dispatch, drawerButtonCancel, drawerButtonSave, drawerFilterDescription, drawerFilterTitle, drawerFormDescription, drawerFormTitle, drawerMisc1Description, drawerMisc1Title, drawerMisc2Description, drawerMisc2Title, drawerMoreActionsDescription, drawerMoreActionsTitle, drawerViewDescription, drawerViewTitle, tableColumnHeaderActions, tableColumnHeaderAmount, tableColumnHeaderAmountDue, tableColumnHeaderAmountPaid, tableColumnHeaderDueDate, tableColumnHeaderFeeStructure, tableColumnHeaderId, tableColumnHeaderRemarks, tableColumnHeaderStatus, tableColumnHeaderStudent, tableDescription, tableSearchPlaceholder, tableTitle, }) => {
|
|
80
82
|
const components = createComponentInstances();
|
|
81
83
|
return {
|
|
82
84
|
moduleName: "studentFee",
|
|
@@ -101,6 +103,10 @@ const createStudentFeeConfig = ({ dispatch, drawerButtonCancel, drawerButtonSave
|
|
|
101
103
|
drawerMoreActionsTitle,
|
|
102
104
|
drawerViewDescription,
|
|
103
105
|
drawerViewTitle,
|
|
106
|
+
drawerMisc1Description,
|
|
107
|
+
drawerMisc1Title,
|
|
108
|
+
drawerMisc2Description,
|
|
109
|
+
drawerMisc2Title,
|
|
104
110
|
filterContent: components.filter,
|
|
105
111
|
formContent: components.form,
|
|
106
112
|
moreActionsContent: components.moreActions,
|
|
@@ -125,14 +131,18 @@ const StudentFeePageInner = (props) => {
|
|
|
125
131
|
dispatch: context.dispatch,
|
|
126
132
|
drawerButtonCancel: props.drawerButtonCancel,
|
|
127
133
|
drawerButtonSave: props.drawerButtonSave,
|
|
128
|
-
drawerFormTitle: props.drawerFormTitle,
|
|
129
|
-
drawerFormDescription: props.drawerFormDescription,
|
|
130
|
-
drawerViewTitle: props.drawerViewTitle,
|
|
131
|
-
drawerViewDescription: props.drawerViewDescription,
|
|
132
|
-
drawerFilterTitle: props.drawerFilterTitle,
|
|
133
134
|
drawerFilterDescription: props.drawerFilterDescription,
|
|
134
|
-
|
|
135
|
+
drawerFilterTitle: props.drawerFilterTitle,
|
|
136
|
+
drawerFormDescription: props.drawerFormDescription,
|
|
137
|
+
drawerFormTitle: props.drawerFormTitle,
|
|
138
|
+
drawerMisc1Description: props.drawerMisc1Description,
|
|
139
|
+
drawerMisc1Title: props.drawerMisc1Title,
|
|
140
|
+
drawerMisc2Description: props.drawerMisc1Description,
|
|
141
|
+
drawerMisc2Title: props.drawerMisc2Title,
|
|
135
142
|
drawerMoreActionsDescription: props.drawerMoreActionsDescription,
|
|
143
|
+
drawerMoreActionsTitle: props.drawerMoreActionsTitle,
|
|
144
|
+
drawerViewDescription: props.drawerViewDescription,
|
|
145
|
+
drawerViewTitle: props.drawerViewTitle,
|
|
136
146
|
tableColumnHeaderActions: props.tableColumnHeaderActions,
|
|
137
147
|
tableColumnHeaderAmount: props.tableColumnHeaderAmount,
|
|
138
148
|
tableColumnHeaderAmountDue: props.tableColumnHeaderAmountDue,
|
|
@@ -150,14 +160,17 @@ const StudentFeePageInner = (props) => {
|
|
|
150
160
|
context.dispatch,
|
|
151
161
|
props.drawerButtonCancel,
|
|
152
162
|
props.drawerButtonSave,
|
|
153
|
-
props.drawerFormTitle,
|
|
154
|
-
props.drawerFormDescription,
|
|
155
|
-
props.drawerViewTitle,
|
|
156
|
-
props.drawerViewDescription,
|
|
157
|
-
props.drawerFilterTitle,
|
|
158
163
|
props.drawerFilterDescription,
|
|
159
|
-
props.
|
|
164
|
+
props.drawerFilterTitle,
|
|
165
|
+
props.drawerFormDescription,
|
|
166
|
+
props.drawerFormTitle,
|
|
167
|
+
props.drawerMisc1Description,
|
|
168
|
+
props.drawerMisc1Title,
|
|
169
|
+
props.drawerMisc2Title,
|
|
160
170
|
props.drawerMoreActionsDescription,
|
|
171
|
+
props.drawerMoreActionsTitle,
|
|
172
|
+
props.drawerViewDescription,
|
|
173
|
+
props.drawerViewTitle,
|
|
161
174
|
props.tableColumnHeaderActions,
|
|
162
175
|
props.tableColumnHeaderAmount,
|
|
163
176
|
props.tableColumnHeaderAmountDue,
|
|
@@ -179,7 +192,7 @@ const StudentFeePageInner = (props) => {
|
|
|
179
192
|
if (!hasPermission) {
|
|
180
193
|
return _jsx(RbacNoAccess, { moduleName: "Student Fee" });
|
|
181
194
|
}
|
|
182
|
-
return (
|
|
195
|
+
return (_jsx("div", { className: "p-4", children: _jsx(GenericStudentFeePage, { overrideConfig: studentFeeConfig, context: context, tableBodyCols: tableBodyCols }) }));
|
|
183
196
|
};
|
|
184
197
|
// ============================================================================
|
|
185
198
|
// PAGE EXPORTS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/fusion-storybook",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.74",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build-storybook": "storybook build",
|
|
6
6
|
"build:next": "next build",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@appcorp/shadcn": "^2.0.
|
|
40
|
+
"@appcorp/shadcn": "^2.0.9",
|
|
41
41
|
"@chromatic-com/storybook": "^5.1.2",
|
|
42
42
|
"@commitlint/cli": "^20.5.0",
|
|
43
43
|
"@commitlint/config-conventional": "^20.5.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@radix-ui/react-slider": "^1",
|
|
56
56
|
"@radix-ui/react-slot": "^1",
|
|
57
57
|
"@radix-ui/react-toast": "^1",
|
|
58
|
-
"@react-pakistan/util-functions": "^3.0.
|
|
58
|
+
"@react-pakistan/util-functions": "^3.0.5",
|
|
59
59
|
"@storybook/addon-a11y": "^10.3.4",
|
|
60
60
|
"@storybook/addon-docs": "^10.3.4",
|
|
61
61
|
"@storybook/addon-onboarding": "^10.3.4",
|