@appcorp/fusion-storybook 0.2.13 → 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 (48) 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/campus/more-actions.js +0 -1
  6. package/base-modules/class/more-actions.js +1 -6
  7. package/base-modules/expense/more-actions.js +1 -6
  8. package/base-modules/fee-structure/more-actions.js +1 -6
  9. package/base-modules/student-fee/context/shared.d.ts +178 -0
  10. package/base-modules/student-fee/context/shared.js +59 -0
  11. package/base-modules/student-fee/context/use-student-fee-module.d.ts +64 -0
  12. package/base-modules/student-fee/context/use-student-fee-module.js +610 -0
  13. package/base-modules/student-fee/context.d.ts +21 -235
  14. package/base-modules/student-fee/context.js +2 -674
  15. package/base-modules/student-fee/more-actions.js +1 -6
  16. package/base-modules/student-profile/context/module-base.d.ts +187 -0
  17. package/base-modules/student-profile/context/module-base.js +50 -0
  18. package/base-modules/student-profile/context/use-student-profile-module.d.ts +70 -0
  19. package/base-modules/student-profile/context/use-student-profile-module.js +506 -0
  20. package/base-modules/student-profile/context.d.ts +20 -256
  21. package/base-modules/student-profile/context.js +2 -601
  22. package/base-modules/teacher/avatar-upload.js +1 -4
  23. package/base-modules/teacher/more-actions.js +1 -6
  24. package/base-modules/user/context/use-user-module.d.ts +53 -0
  25. package/base-modules/user/context/use-user-module.js +546 -0
  26. package/base-modules/user/context.d.ts +1 -52
  27. package/base-modules/user/context.js +5 -547
  28. package/base-modules/workspace-user/more-actions.js +1 -6
  29. package/components/module-error.d.ts +9 -0
  30. package/components/module-error.js +3 -0
  31. package/package.json +5 -4
  32. package/tsconfig.build.tsbuildinfo +1 -1
  33. package/type.d.ts +3 -1242
  34. package/type.js +3 -445
  35. package/types/academics.d.ts +264 -0
  36. package/types/academics.js +8 -0
  37. package/types/admission.d.ts +85 -0
  38. package/types/admission.js +6 -0
  39. package/types/communication.d.ts +165 -0
  40. package/types/communication.js +7 -0
  41. package/types/enums.d.ts +411 -0
  42. package/types/enums.js +442 -0
  43. package/types/finance.d.ts +126 -0
  44. package/types/finance.js +7 -0
  45. package/types/index.d.ts +12 -0
  46. package/types/index.js +12 -0
  47. package/types/user-management.d.ts +236 -0
  48. package/types/user-management.js +7 -0
@@ -0,0 +1,88 @@
1
+ import { AdmissionAIBE, AdmissionBE } from "../../../type";
2
+ import { type RowAction, type TableRow } from "@appcorp/shadcn/components/enhanced-table";
3
+ export declare const useAdmissionModule: () => {
4
+ applyFilters: () => void;
5
+ byIdLoading: boolean;
6
+ clearFilters: () => void;
7
+ deleteLoading: boolean;
8
+ handleAddStudent: (row?: unknown) => Promise<void>;
9
+ handleAnalyze: (row?: unknown) => Promise<void>;
10
+ handleChange: (field: string, value: string | number | boolean | undefined | null) => void;
11
+ handleCloseDrawer: () => void;
12
+ handleCreate: () => void;
13
+ handleDelete: (row?: TableRow) => void;
14
+ handleEdit: (row?: TableRow) => void;
15
+ handleFilters: () => void;
16
+ handlePageChange: (page: number | unknown) => void;
17
+ handlePageLimitChange: (k: string, value: object) => void;
18
+ handlePrint: (row?: TableRow) => Promise<void>;
19
+ handleSearch: (query: string) => void;
20
+ handleSetEndDate: (endDate: string) => void;
21
+ handleSetStartDate: (startDate: string) => void;
22
+ handleSubmit: () => void;
23
+ handleView: (row?: TableRow) => void;
24
+ headerActions: {
25
+ enabled: boolean;
26
+ handleOnClick: () => void;
27
+ label: string;
28
+ order: number;
29
+ icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
30
+ }[];
31
+ listLoading: boolean;
32
+ rowActions: RowAction[];
33
+ updateLoading: boolean;
34
+ state: {
35
+ items: AdmissionBE[];
36
+ count: number;
37
+ currentPage: number;
38
+ pageLimit: number;
39
+ searchQuery: string;
40
+ disableSaveButton: boolean;
41
+ drawer: string | null;
42
+ errors: Record<string, string>;
43
+ id: string;
44
+ studentIdNumber: string;
45
+ discountCode: string;
46
+ dob: string;
47
+ emergencyContact: string;
48
+ firstName: string;
49
+ gender: string;
50
+ hafiz: boolean;
51
+ lastName: string;
52
+ orphan: boolean;
53
+ registrationCode: string;
54
+ fatherIdNumber: string;
55
+ fatherFirstName: string;
56
+ fatherLastName: string;
57
+ fatherMobile: string;
58
+ fatherOccupation: string;
59
+ fatherOrganization: string;
60
+ motherIdNumber: string;
61
+ motherFirstName: string;
62
+ motherLastName: string;
63
+ motherMobile: string;
64
+ address: string;
65
+ city: string;
66
+ country: string;
67
+ postalCode: string;
68
+ state: string;
69
+ classForAdmission: string;
70
+ previousSchool: string;
71
+ siblings: string;
72
+ admissionNotes: string;
73
+ notes: string;
74
+ enabled: boolean;
75
+ status: string;
76
+ admissionStatus: string;
77
+ schoolId: string;
78
+ familyId: string | null;
79
+ aiAnalysis: AdmissionAIBE | null;
80
+ analyzeLoading: boolean;
81
+ analyzeError: string | null;
82
+ filterEnabled: boolean | undefined;
83
+ filterAdmissionStatus: string | undefined;
84
+ filterStartDate: string | undefined;
85
+ filterEndDate: string | undefined;
86
+ };
87
+ dispatch: React.Dispatch<any>;
88
+ };