@appcorp/fusion-storybook 0.2.13 → 0.2.15

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 (58) 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/attendance/more-actions.js +7 -2
  6. package/base-modules/campus/more-actions.js +0 -1
  7. package/base-modules/class/more-actions.js +1 -6
  8. package/base-modules/enrollment/context.d.ts +1 -13
  9. package/base-modules/enrollment/context.js +0 -3
  10. package/base-modules/enrollment/form.js +2 -6
  11. package/base-modules/enrollment/page.d.ts +0 -1
  12. package/base-modules/enrollment/page.js +5 -13
  13. package/base-modules/enrollment/validate.d.ts +0 -1
  14. package/base-modules/enrollment/validate.js +0 -1
  15. package/base-modules/enrollment/view.js +4 -7
  16. package/base-modules/expense/more-actions.js +1 -6
  17. package/base-modules/fee-structure/more-actions.js +1 -6
  18. package/base-modules/student-fee/context/shared.d.ts +178 -0
  19. package/base-modules/student-fee/context/shared.js +59 -0
  20. package/base-modules/student-fee/context/use-student-fee-module.d.ts +64 -0
  21. package/base-modules/student-fee/context/use-student-fee-module.js +610 -0
  22. package/base-modules/student-fee/context.d.ts +21 -235
  23. package/base-modules/student-fee/context.js +2 -674
  24. package/base-modules/student-fee/more-actions.js +1 -6
  25. package/base-modules/student-profile/constants.js +7 -3
  26. package/base-modules/student-profile/context/module-base.d.ts +187 -0
  27. package/base-modules/student-profile/context/module-base.js +50 -0
  28. package/base-modules/student-profile/context/use-student-profile-module.d.ts +70 -0
  29. package/base-modules/student-profile/context/use-student-profile-module.js +506 -0
  30. package/base-modules/student-profile/context.d.ts +20 -256
  31. package/base-modules/student-profile/context.js +2 -601
  32. package/base-modules/teacher/avatar-upload.js +1 -4
  33. package/base-modules/teacher/more-actions.js +1 -6
  34. package/base-modules/user/context/use-user-module.d.ts +53 -0
  35. package/base-modules/user/context/use-user-module.js +546 -0
  36. package/base-modules/user/context.d.ts +1 -52
  37. package/base-modules/user/context.js +5 -547
  38. package/base-modules/workspace-user/more-actions.js +1 -6
  39. package/components/module-error.d.ts +9 -0
  40. package/components/module-error.js +3 -0
  41. package/package.json +5 -4
  42. package/tsconfig.build.tsbuildinfo +1 -1
  43. package/type.d.ts +3 -1242
  44. package/type.js +3 -445
  45. package/types/academics.d.ts +262 -0
  46. package/types/academics.js +8 -0
  47. package/types/admission.d.ts +85 -0
  48. package/types/admission.js +6 -0
  49. package/types/communication.d.ts +165 -0
  50. package/types/communication.js +7 -0
  51. package/types/enums.d.ts +411 -0
  52. package/types/enums.js +442 -0
  53. package/types/finance.d.ts +126 -0
  54. package/types/finance.js +7 -0
  55. package/types/index.d.ts +12 -0
  56. package/types/index.js +12 -0
  57. package/types/user-management.d.ts +236 -0
  58. package/types/user-management.js +7 -0
@@ -1,5 +1,4 @@
1
1
  import { AdmissionAIBE, AdmissionBE } from "../../type";
2
- import { type RowAction, type TableRow } from "@appcorp/shadcn/components/enhanced-table";
3
2
  export declare const ADMISSION_DRAWER: {
4
3
  readonly FILTER_DRAWER: string;
5
4
  readonly FORM_DRAWER: string;
@@ -281,89 +280,4 @@ export declare const ADMISSION_ACTION_TYPES: {
281
280
  filterStartDate: string | undefined;
282
281
  filterEndDate: string | undefined;
283
282
  }>;
284
- export declare const useAdmissionModule: () => {
285
- applyFilters: () => void;
286
- byIdLoading: boolean;
287
- clearFilters: () => void;
288
- deleteLoading: boolean;
289
- handleAddStudent: (row?: unknown) => Promise<void>;
290
- handleAnalyze: (row?: unknown) => Promise<void>;
291
- handleChange: (field: string, value: string | number | boolean | undefined | null) => void;
292
- handleCloseDrawer: () => void;
293
- handleCreate: () => void;
294
- handleDelete: (row?: TableRow) => void;
295
- handleEdit: (row?: TableRow) => void;
296
- handleFilters: () => void;
297
- handlePageChange: (page: number | unknown) => void;
298
- handlePageLimitChange: (k: string, value: object) => void;
299
- handlePrint: (row?: TableRow) => Promise<void>;
300
- handleSearch: (query: string) => void;
301
- handleSetEndDate: (endDate: string) => void;
302
- handleSetStartDate: (startDate: string) => void;
303
- handleSubmit: () => void;
304
- handleView: (row?: TableRow) => void;
305
- headerActions: {
306
- enabled: boolean;
307
- handleOnClick: () => void;
308
- label: string;
309
- order: number;
310
- icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
311
- }[];
312
- listLoading: boolean;
313
- rowActions: RowAction[];
314
- updateLoading: boolean;
315
- state: {
316
- items: AdmissionBE[];
317
- count: number;
318
- currentPage: number;
319
- pageLimit: number;
320
- searchQuery: string;
321
- disableSaveButton: boolean;
322
- drawer: string | null;
323
- errors: Record<string, string>;
324
- id: string;
325
- studentIdNumber: string;
326
- discountCode: string;
327
- dob: string;
328
- emergencyContact: string;
329
- firstName: string;
330
- gender: string;
331
- hafiz: boolean;
332
- lastName: string;
333
- orphan: boolean;
334
- registrationCode: string;
335
- fatherIdNumber: string;
336
- fatherFirstName: string;
337
- fatherLastName: string;
338
- fatherMobile: string;
339
- fatherOccupation: string;
340
- fatherOrganization: string;
341
- motherIdNumber: string;
342
- motherFirstName: string;
343
- motherLastName: string;
344
- motherMobile: string;
345
- address: string;
346
- city: string;
347
- country: string;
348
- postalCode: string;
349
- state: string;
350
- classForAdmission: string;
351
- previousSchool: string;
352
- siblings: string;
353
- admissionNotes: string;
354
- notes: string;
355
- enabled: boolean;
356
- status: string;
357
- admissionStatus: string;
358
- schoolId: string;
359
- familyId: string | null;
360
- aiAnalysis: AdmissionAIBE | null;
361
- analyzeLoading: boolean;
362
- analyzeError: string | null;
363
- filterEnabled: boolean | undefined;
364
- filterAdmissionStatus: string | undefined;
365
- filterStartDate: string | undefined;
366
- filterEndDate: string | undefined;
367
- };
368
- dispatch: React.Dispatch<any>;
369
- };
283
+ export { useAdmissionModule } from "./context/use-admission-module";