@appcorp/fusion-storybook 0.4.22 → 0.4.24
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.
- package/base-modules/student-fee/context/shared.d.ts +6 -1
- package/base-modules/student-fee/context/shared.js +3 -2
- package/base-modules/student-fee/context/use-student-fee-module.d.ts +1 -0
- package/base-modules/student-fee/view.js +5 -5
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StudentFeeBE, PAYMENT_STATUS, FEE_RISK_LEVEL } from "../../../type";
|
|
1
|
+
import { StudentFeeBE, PAYMENT_STATUS, FEE_RISK_LEVEL, FeeStructureBE } from "../../../type";
|
|
2
2
|
export declare const STUDENT_FEE_DRAWER: {
|
|
3
3
|
readonly FILTER_DRAWER: string;
|
|
4
4
|
readonly FORM_DRAWER: string;
|
|
@@ -46,6 +46,7 @@ export declare const STUDENT_FEE_ACTION_TYPES: {
|
|
|
46
46
|
enabled: boolean;
|
|
47
47
|
familyId: string;
|
|
48
48
|
feeStructureId: string;
|
|
49
|
+
feeStructure: FeeStructureBE | null;
|
|
49
50
|
id: string;
|
|
50
51
|
lastRemindedAt: Date | string | null;
|
|
51
52
|
nextFollowUpAt: Date | string | null;
|
|
@@ -88,6 +89,7 @@ export declare const STUDENT_FEE_ACTION_TYPES: {
|
|
|
88
89
|
enabled: boolean;
|
|
89
90
|
familyId: string;
|
|
90
91
|
feeStructureId: string;
|
|
92
|
+
feeStructure: FeeStructureBE | null;
|
|
91
93
|
id: string;
|
|
92
94
|
lastRemindedAt: Date | string | null;
|
|
93
95
|
nextFollowUpAt: Date | string | null;
|
|
@@ -132,6 +134,7 @@ export declare const STUDENT_FEE_ACTION_TYPES: {
|
|
|
132
134
|
enabled: boolean;
|
|
133
135
|
familyId: string;
|
|
134
136
|
feeStructureId: string;
|
|
137
|
+
feeStructure: FeeStructureBE | null;
|
|
135
138
|
id: string;
|
|
136
139
|
lastRemindedAt: Date | string | null;
|
|
137
140
|
nextFollowUpAt: Date | string | null;
|
|
@@ -174,6 +177,7 @@ export declare const STUDENT_FEE_ACTION_TYPES: {
|
|
|
174
177
|
enabled: boolean;
|
|
175
178
|
familyId: string;
|
|
176
179
|
feeStructureId: string;
|
|
180
|
+
feeStructure: FeeStructureBE | null;
|
|
177
181
|
id: string;
|
|
178
182
|
lastRemindedAt: Date | string | null;
|
|
179
183
|
nextFollowUpAt: Date | string | null;
|
|
@@ -216,6 +220,7 @@ export declare const STUDENT_FEE_ACTION_TYPES: {
|
|
|
216
220
|
enabled: boolean;
|
|
217
221
|
familyId: string;
|
|
218
222
|
feeStructureId: string;
|
|
223
|
+
feeStructure: FeeStructureBE | null;
|
|
219
224
|
id: string;
|
|
220
225
|
lastRemindedAt: Date | string | null;
|
|
221
226
|
nextFollowUpAt: Date | string | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createGenericModule } from "@react-pakistan/util-functions/factory/generic-module-factory";
|
|
3
3
|
import { DRAWER_TYPES } from "@react-pakistan/util-functions/factory/generic-component-factory";
|
|
4
|
-
import { PAYMENT_STATUS } from "../../../type";
|
|
4
|
+
import { PAYMENT_STATUS, } from "../../../type";
|
|
5
5
|
import { filterDateDefaults, pageLimit } from "../constants";
|
|
6
|
-
const { filterFromDate: defaultFilterFromDate, filterToDate: defaultFilterToDate } = filterDateDefaults();
|
|
6
|
+
const { filterFromDate: defaultFilterFromDate, filterToDate: defaultFilterToDate, } = filterDateDefaults();
|
|
7
7
|
// ============================================================================
|
|
8
8
|
// 1.1 DRAWER TYPES
|
|
9
9
|
// ============================================================================
|
|
@@ -47,6 +47,7 @@ const studentFeeConfig = {
|
|
|
47
47
|
enabled: true,
|
|
48
48
|
familyId: "",
|
|
49
49
|
feeStructureId: "",
|
|
50
|
+
feeStructure: null,
|
|
50
51
|
id: "",
|
|
51
52
|
lastRemindedAt: null,
|
|
52
53
|
nextFollowUpAt: null,
|
|
@@ -58,6 +58,7 @@ export declare const useStudentFeeModule: () => {
|
|
|
58
58
|
enabled: boolean;
|
|
59
59
|
familyId: string;
|
|
60
60
|
feeStructureId: string;
|
|
61
|
+
feeStructure: import("../../../types").FeeStructureBE | null;
|
|
61
62
|
id: string;
|
|
62
63
|
lastRemindedAt: Date | string | null;
|
|
63
64
|
nextFollowUpAt: Date | string | null;
|
|
@@ -14,7 +14,7 @@ import { useTranslations } from "next-intl";
|
|
|
14
14
|
export const StudentFeeView = () => {
|
|
15
15
|
var _a, _b, _c;
|
|
16
16
|
const { state } = useStudentFeeModule();
|
|
17
|
-
const { amount, amountDue, amountPaid, fine, dueDate, enabled,
|
|
17
|
+
const { amount, amountDue, amountPaid, fine, dueDate, enabled, feeStructure, paidAt, remarks, status, studentProfileId, } = state;
|
|
18
18
|
const workspace = getCachedWorkspaceSync();
|
|
19
19
|
const currency = (_b = (_a = workspace === null || workspace === void 0 ? void 0 : workspace.school) === null || _a === void 0 ? void 0 : _a.currency) !== null && _b !== void 0 ? _b : "";
|
|
20
20
|
const t = useTranslations("studentFee");
|
|
@@ -22,10 +22,10 @@ export const StudentFeeView = () => {
|
|
|
22
22
|
method: API_METHODS.GET,
|
|
23
23
|
params: { id: studentProfileId, workspaceId: workspace === null || workspace === void 0 ? void 0 : workspace.id },
|
|
24
24
|
});
|
|
25
|
-
const { data: feeStructure } = useFetch("/api/v1/fee-structure", {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
25
|
+
// const { data: feeStructure } = useFetch("/api/v1/fee-structure", {
|
|
26
|
+
// method: API_METHODS.GET,
|
|
27
|
+
// params: { id: feeStructureId, workspaceId: workspace?.id },
|
|
28
|
+
// });
|
|
29
29
|
return (_jsx("div", { className: "space-y-4", children: _jsxs(Card, { children: [_jsxs(CardHeader, { className: "pb-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FileText, { className: "text-primary h-5 w-5" }), _jsx(CardTitle, { className: "text-lg", children: t("viewSectionStudentFeeDetails") })] }), _jsx(CardDescription, { children: t("viewSectionReadOnlyStudentFeeInformation") })] }), _jsx(Separator, {}), _jsx(CardContent, { className: "pt-6", children: _jsxs("div", { className: "grid grid-cols-1 gap-6", children: [_jsxs("div", { className: "space-y-1", children: [_jsx("p", { className: "text-muted-foreground text-sm font-medium", children: t("formStudentLabel") }), _jsx("p", { className: "text-base", children: studentProfile
|
|
30
30
|
? `${studentProfile.firstName} ${studentProfile.lastName}`
|
|
31
31
|
: "—" })] }), _jsxs("div", { className: "space-y-1", children: [_jsx("p", { className: "text-muted-foreground text-sm font-medium", children: t("viewFieldComputerNumber") }), _jsx("p", { className: "text-base", children: ((_c = studentProfile === null || studentProfile === void 0 ? void 0 : studentProfile.computerNumber) !== null && _c !== void 0 ? _c : "").split(":")[1] ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/fusion-storybook",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.24",
|
|
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.17",
|
|
41
41
|
"@chromatic-com/storybook": "^5.1.2",
|
|
42
42
|
"@commitlint/cli": "^20.5.0",
|
|
43
43
|
"@commitlint/config-conventional": "^20.5.0",
|