@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
@@ -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";