ubk.erp.webpack 1.4.6 → 1.4.8

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 (56) hide show
  1. package/README.md +25 -2
  2. package/dist/Api/api.d.ts +11 -9
  3. package/dist/Api/apiOption.d.ts +9 -7
  4. package/dist/Api/lenientJson.d.ts +9 -0
  5. package/dist/Api/lenientJson.test.d.ts +1 -0
  6. package/dist/Layout/Exam/Components/AddAssessmentForm.d.ts +14 -0
  7. package/dist/Layout/Exam/Pages/SingleResultPage.d.ts +11 -0
  8. package/dist/Layout/Exam/ResultTemplate/Template1.d.ts +12 -0
  9. package/dist/Layout/Exam/ResultTemplate/Template10.d.ts +18 -0
  10. package/dist/Layout/Exam/ResultTemplate/Template11.d.ts +18 -0
  11. package/dist/Layout/Exam/ResultTemplate/Template12.d.ts +18 -0
  12. package/dist/Layout/Exam/ResultTemplate/Template13.d.ts +18 -0
  13. package/dist/Layout/Exam/ResultTemplate/Template14.d.ts +18 -0
  14. package/dist/Layout/Exam/ResultTemplate/Template15.d.ts +18 -0
  15. package/dist/Layout/Exam/ResultTemplate/Template2.d.ts +18 -0
  16. package/dist/Layout/Exam/ResultTemplate/Template3.d.ts +12 -0
  17. package/dist/Layout/Exam/ResultTemplate/Template4.d.ts +18 -0
  18. package/dist/Layout/Exam/ResultTemplate/Template5.d.ts +18 -0
  19. package/dist/Layout/Exam/ResultTemplate/Template6.d.ts +18 -0
  20. package/dist/Layout/Exam/ResultTemplate/Template7.d.ts +18 -0
  21. package/dist/Layout/Exam/ResultTemplate/Template8.d.ts +18 -0
  22. package/dist/Layout/Exam/ResultTemplate/Template9.d.ts +18 -0
  23. package/dist/Layout/Exam/ResultTemplate/compat.d.ts +50 -0
  24. package/dist/Layout/Exam/ResultTemplate/images/index.d.ts +1 -0
  25. package/dist/Layout/Exam/ResultTemplate/index.d.ts +43 -0
  26. package/dist/Layout/Exam/Services/examsService.d.ts +8 -4
  27. package/dist/Layout/Exam/SingleResult.d.ts +8 -0
  28. package/dist/Layout/Exam/index.d.ts +1 -0
  29. package/dist/Layout/FontOffice/AdmissionEnquiry.d.ts +10 -4
  30. package/dist/Layout/FontOffice/AdmissionEnquiryEdit.d.ts +6 -0
  31. package/dist/Layout/FontOffice/AdmissionEnquiryForm.d.ts +14 -0
  32. package/dist/Layout/FontOffice/PhoneCallLogEdit.d.ts +1 -0
  33. package/dist/Layout/FontOffice/VisitorBook.d.ts +9 -2
  34. package/dist/Layout/FontOffice/VisitorEdit.d.ts +1 -0
  35. package/dist/Layout/FontOffice/admissionEnquiryService.d.ts +12 -0
  36. package/dist/Layout/FontOffice/frontOfficeUpload.d.ts +19 -0
  37. package/dist/Layout/HumanResource/StaffAttendance/Components/AttendancePaginationTable.d.ts +2 -1
  38. package/dist/Layout/HumanResource/innerPage/StaffAttendanceSingle.d.ts +3 -1
  39. package/dist/Layout/StudentInformation/HealthReport/HealthReport.d.ts +9 -0
  40. package/dist/Layout/StudentInformation/HealthReport/index.d.ts +1 -0
  41. package/dist/Layout/StudentInformation/index.d.ts +1 -0
  42. package/dist/Layout/store/BuySellProduct/Services/buySellService.d.ts +1 -0
  43. package/dist/Layout/store/ManageStock/Services/manageStockService.d.ts +1 -0
  44. package/dist/Layout/store/Products/Services/productsService.d.ts +1 -0
  45. package/dist/Layout/store/Services/storeService.d.ts +1 -0
  46. package/dist/components/ImageServerUpload/imageServer.d.ts +21 -0
  47. package/dist/components/ImageServerUpload/index.d.ts +23 -0
  48. package/dist/components/UBKBox/index.d.ts +14 -1
  49. package/dist/components/UBKTypography/index.d.ts +7 -1
  50. package/dist/components/print/reactToPrintCompat.d.ts +10 -0
  51. package/dist/components/theme/ubkTheme.d.ts +16 -0
  52. package/dist/components/theme/ubkTheme.test.d.ts +1 -0
  53. package/dist/index.cjs +42 -14
  54. package/dist/index.d.ts +2 -0
  55. package/dist/index.js +32386 -18130
  56. package/package.json +2 -2
package/README.md CHANGED
@@ -80,6 +80,24 @@ import { setBaseUrl } from "ubk.erp.webpack";
80
80
  // Set your base URL once
81
81
  setBaseUrl("https://your-api-domain.com/");
82
82
  ```
83
+
84
+ ### Theme (header colours)
85
+
86
+ Section headers use theme colours (`info` by default: `#5080f8 → #3b5de7`). Change them at runtime — every mounted component updates immediately:
87
+
88
+ ```jsx
89
+ import { setUbkTheme, resetUbkTheme } from "ubk.erp.webpack";
90
+
91
+ setUbkTheme({
92
+ info: { start: "#0ea5e9", end: "#0369a1" }, // gradient ends
93
+ success: "#16a34a", // one value = flat colour
94
+ radius: { lg: 12 }, // corner radius in px
95
+ });
96
+
97
+ resetUbkTheme(); // back to the defaults
98
+ ```
99
+
100
+ Colour names: `primary`, `secondary`, `info`, `success`, `warning`, `error`, `light`, `dark`. The values are CSS variables (`--ubk-info-start`, `--ubk-info-end`, `--ubk-radius-lg`, …), so you can also set them in your own CSS.
83
101
  ## 🛠️ Usage
84
102
 
85
103
  ### Basic Component Integration
@@ -433,6 +451,7 @@ const IncomePage = ({ token }) => {
433
451
  | `MedicalReport` | Manage student medical reports and medicine history with add/view functionality. |
434
452
  | `AssignStudentSubject` | Assign and unassign subjects and extra-curricular activities to students. |
435
453
  | `BulkUpload` | Bulk upload students from Excel file with class/section selection and sample file download. |
454
+ | `HealthReport` | Report of medicines given to students (from Medical Report) for a date range, filtered by class, section and student. |
436
455
 
437
456
  ### Academics
438
457
 
@@ -547,6 +566,8 @@ const LibraryPage = ({ token }) => {
547
566
 
548
567
  ## Behavior
549
568
 
569
+ - **Pay Later:** when `onReturn` is passed, Pay Later hands `{ member_id, collection_type: "FINE_PAY_LATER", amount: 0, books }` to it; call `ref.current.reloadPayLater()` once the host has handled it. Without `onReturn`, Pay Later returns the books itself with the fine marked pay-later (old ERP behaviour).
570
+ - Modes: **Issue**, **Return** (with fine collection), and **Renewal** (checks eligibility per selected book via `getRenewalInfo`, then renews via `renewBook`).
550
571
  - `onReturn` is only called when the return API responds with `Status: "Success"`.
551
572
  - It is **not** called if the API returns `Failed`.
552
573
  - The callback receives **one object per returned book**, mapped from the current return selection.
@@ -828,7 +849,8 @@ const CommunicatePage = ({ token }) => {
828
849
  | `AssignMarks` | Enter exam marks for students. |
829
850
  | `CoScholasticAreaMarks` | Search by Class / Section / Exam / Co-Scholastic Category, then enter a grade per student per skill and save. |
830
851
  | `StudentResult` | Search by Class / Section / Exam to see each student's marks, percentage, marks-entry progress, meetings and attendance. Edit remarks, meeting dates, attendance and result per student. |
831
- | `MarksReport` | Marks report. |
852
+ | `MarksReport` | Search by Class / Section / Exam / Template, then **Generate Report Cards** to render each student's card in the chosen template (1–15) and **Print all**. |
853
+ | `SingleResult` | One student's report card: `<SingleResult token={token} studentId={id} examId={examId} />`. Uses the class's assigned template; switchable from the Template dropdown. |
832
854
  | `AdmitCardSetting` | Admit card settings (photo, room no, subject list, exam time, invigilator and Exam I/C signature toggles). |
833
855
  | `AdmitPrint` | Search by Class / Section / Exam and print admit cards using one of three templates. The class's assigned template is preselected. |
834
856
  | `RoomManagment` | Add/delete exam rooms, and assign rooms with roll-number ranges per section for a class and exam. |
@@ -866,7 +888,8 @@ const ExamPage = ({ token }) => {
866
888
  **Notes:**
867
889
  - `AdmitPrint` reads the session name from `localStorage.academy_session` (templates 2 and 3). Set it in the host app, otherwise the session shows as blank / `-`.
868
890
  - `AdmitPrint` requests `per_page=10` students per search.
869
- - The **View Result** button in `StudentResult` navigates to `/ExamDashboard/SingleResult?id=…&exam_id=…`, which is not part of this library yet.
891
+ - The **View Result** button in `StudentResult` opens the student's report card (`SingleResult`) in a drawer.
892
+ - Report-card templates read the school logo/name from `localStorage.genrall_settings`, and images from `https://image.ubkerp.com/uploads/`.
870
893
  - `RoomManagment` is spelled as in the original project (no "e" after "g").
871
894
 
872
895
  **Endpoint overrides** — each Exam endpoint has a built-in default and can be overridden with a `VITE_*` variable in `.env`, for example:
package/dist/Api/api.d.ts CHANGED
@@ -54,8 +54,8 @@ export const visitorDeleteUrl: "api/branchapi/frontoffice/deletevisitors";
54
54
  export const visitorUploadUrl: "api/branchapi/frontoffice/uploadfrontofficeDocument";
55
55
  export const generalcallUrl: "api/branchapi/frontoffice/generalcallsShowdata";
56
56
  export const generalcallAddUrl: "api/branchapi/frontoffice/addgenaralcalls";
57
- export const generalcallUpdateUrl: "api/branchapi/frontoffice/editgeneralcall";
58
- export const generalcallDeleteUrl: "api/branchapi/frontoffice/deletegeneralcall";
57
+ export const generalcallUpdateUrl: "api/branchapi/frontoffice/editgenaralcall";
58
+ export const generalcallDeleteUrl: "api/branchapi/frontoffice/deletegeneralcalls";
59
59
  export const postalDispatchUrl: "api/branchapi/frontoffice/postaldispatchtablelist";
60
60
  export const postalDispatchAddUrl: "api/branchapi/frontoffice/addpostaldispatch";
61
61
  export const postalDispatchUpdateUrl: "api/branchapi/frontoffice/editpostaldispatch";
@@ -133,17 +133,19 @@ export const expenseHeadShowUrl: "api/branchapi/expense/expenseheadShowdata";
133
133
  export const expenseSearchByDateUrl: "api/branchapi/expense/searchexpensebydates";
134
134
  export const vendorListUrl: "api/accounts/vendor/vendorlist";
135
135
  export const studentLoginTableUrl: "api/student/studentDetails/studentLoginCredentialList";
136
- export const studentListUrl: "/branchapi/student/studentlist";
136
+ export const studentListUrl: "api/branchapi/student/studentlist";
137
137
  export const studentListUrl1: "api/branchapi/student/studentlist";
138
138
  export const studentSearchByKeywordUrl: "api/branchapi/student/studentsearchbyKeywords";
139
139
  export const studentSearchByClassSectionUrl: "api/branchapi/student/studentsearchbyClassSection";
140
140
  export const deleteStudentUrl: "branchapi/student/deleteStudent";
141
- export const addStudentMedicineUrl: "/branchapi/student/addStudentMedicineDetails";
142
- export const studentMedicineDetailsUrl: "/branchapi/student/StudentMedicineDetails";
143
- export const getStudentClassSubjectUrl: "/branchapi/academy/getstudentClasssubjectByStudentId";
144
- export const removeAssignStudentSubjectUrl: "/branchapi/academy/removeAssignStudentSubject";
145
- export const extraCurricularActivitiesUrl: "/branchapi/feesCollection/extraCurricularActivitiesFess";
146
- export const unAssignStudentSubjectUrl: "/branchapi/academy/unAssigneStudentSubject";
141
+ export const addStudentMedicineUrl: "api/branchapi/student/addStudentMedicineDetails";
142
+ export const studentMedicineDetailsUrl: "api/branchapi/student/StudentMedicineDetails";
143
+ export const getStudentClassSubjectUrl: "api/branchapi/academy/getstudentClasssubjectByStudentId";
144
+ export const healthReportUrl: "api/report/AdmissionReports/medicalReport";
145
+ export const studentDropdownUrl: "api/branchapi/student/studentDropdown";
146
+ export const removeAssignStudentSubjectUrl: "api/branchapi/academy/removeAssignStudentSubject";
147
+ export const extraCurricularActivitiesUrl: "api/branchapi/feesCollection/extraCurricularActivitiesFess";
148
+ export const unAssignStudentSubjectUrl: "api/branchapi/academy/unAssigneStudentSubject";
147
149
  export const bulkUploadStudentUrl: "/branchapi/student/uploadstudentbyCSV";
148
150
  export const categoryTableUrl: "api/branchapi/academy/categorytableList";
149
151
  export const studentSampleFileUrl: "/sample_student.xlsx";
@@ -1,12 +1,14 @@
1
- export function addOptions(newTodo: any): {
2
- optimisticData: (data: any) => any[];
3
- populateCache: (added: any, data: any) => any[];
1
+ export function addOptions(): {
2
+ populateCache: boolean;
3
+ revalidate: boolean;
4
4
  };
5
- export function addOptionsTest(newTodo: any): {
6
- optimisticData: (data: any) => any[];
7
- populateCache: (added: any, data: any) => any[];
5
+ export function addOptionsTest(): {
6
+ populateCache: boolean;
7
+ revalidate: boolean;
8
8
  };
9
9
  export function deleteTodoOptions(id: any): {
10
10
  optimisticData: (data: any) => any;
11
- populateCache: (emptyResponseObj: any, data: any) => any;
11
+ rollbackOnError: boolean;
12
+ populateCache: boolean;
13
+ revalidate: boolean;
12
14
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Some backend endpoints echo their JSON reply twice (e.g. addSyllabus returns
3
+ * `{"Status":"Success",...}{"Status":"Success",...}`), which is not valid JSON, so axios leaves the
4
+ * body as a string and callers see "Request failed" although the request succeeded.
5
+ *
6
+ * parseLenientJson() returns the parsed value for valid JSON, and otherwise the FIRST complete JSON
7
+ * object/array at the start of the text. Anything else is returned unchanged.
8
+ */
9
+ export function parseLenientJson(text: any): any;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ export default AddAssessmentForm;
3
+ /**
4
+ * Add Assessment (port of the old ERP PopupAssessment).
5
+ * The class's marksheet template decides the layout:
6
+ * - subject_wise → per Main subject: a title + skills with marks
7
+ * - only_assessment → per Main subject: skills (marks fixed at 100)
8
+ * - Exam_wise → one list of skill + marks rows
9
+ * Exam type 2 clones an earlier exam's assessment (Previous Exam).
10
+ */
11
+ declare function AddAssessmentForm({ token, onSaved }: {
12
+ token: any;
13
+ onSaved: any;
14
+ }): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export default SingleResultPage;
3
+ /**
4
+ * One student's report card for an exam (port of the old ERP SingleResult page).
5
+ * Opens in the template assigned to the student's class; the Template select switches it.
6
+ */
7
+ declare function SingleResultPage({ token, studentId, examId }: {
8
+ token: any;
9
+ studentId: any;
10
+ examId: any;
11
+ }): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export default Template1;
3
+ declare function Template1({ newData2, template }: {
4
+ newData2?: {} | undefined;
5
+ template: any;
6
+ }): React.JSX.Element;
7
+ declare namespace Template1 {
8
+ namespace propTypes {
9
+ let newData2: any;
10
+ let template: any;
11
+ }
12
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template10;
3
+ declare function Template10({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template10 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template5;
3
+ declare function Template5({ receipt_id, newData2, template, isLoading, error }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ template: any;
7
+ isLoading: any;
8
+ error: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template5 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template1;
3
+ declare function Template1({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template1 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template1;
3
+ declare function Template1({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template1 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template1;
3
+ declare function Template1({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template1 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template1;
3
+ declare function Template1({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template1 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template2;
3
+ declare function Template2({ receipt_id, newData2, template, isLoading, error }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ template: any;
7
+ isLoading: any;
8
+ error: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template2 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export default Template3;
3
+ declare function Template3({ newData2, template }: {
4
+ newData2: any;
5
+ template: any;
6
+ }): React.JSX.Element;
7
+ declare namespace Template3 {
8
+ namespace propTypes {
9
+ let newData2: any;
10
+ let template: any;
11
+ }
12
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template3;
3
+ declare function Template3({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template3 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template5;
3
+ declare function Template5({ receipt_id, newData2, template, isLoading, error }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ template: any;
7
+ isLoading: any;
8
+ error: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template5 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template5;
3
+ declare function Template5({ receipt_id, newData2, template, isLoading, error }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ template: any;
7
+ isLoading: any;
8
+ error: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template5 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template1;
3
+ declare function Template1({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template1 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template8;
3
+ declare function Template8({ receipt_id, newData2, isLoading, error, template }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ isLoading: any;
7
+ error: any;
8
+ template: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template8 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export default Template2;
3
+ declare function Template2({ receipt_id, newData2, template, isLoading, error }: {
4
+ receipt_id: any;
5
+ newData2: any;
6
+ template: any;
7
+ isLoading: any;
8
+ error: any;
9
+ }): React.JSX.Element;
10
+ declare namespace Template2 {
11
+ namespace propTypes {
12
+ let receipt_id: any;
13
+ let newData2: any;
14
+ let isLoading: any;
15
+ let error: any;
16
+ let template: any;
17
+ }
18
+ }
@@ -0,0 +1,50 @@
1
+ import { default as React } from 'react';
2
+ /** MUI v5 Grid (legacy): container = flex wrap with negative margins, items get spacing padding. */
3
+ export function Grid({ container, item, xs, sm, md, lg, xl, spacing, rowSpacing, columnSpacing, direction, style, children, ...props }: {
4
+ [x: string]: any;
5
+ container: any;
6
+ item: any;
7
+ xs: any;
8
+ sm: any;
9
+ md: any;
10
+ lg: any;
11
+ xl: any;
12
+ spacing: any;
13
+ rowSpacing: any;
14
+ columnSpacing: any;
15
+ direction: any;
16
+ style: any;
17
+ children: any;
18
+ }): React.JSX.Element;
19
+ /** Old MDBox (MUI Box + theme props) on top of UBKBox. */
20
+ export function MDBox({ variant, bgColor, color, borderRadius, coloredShadow, style, children, ...props }: {
21
+ [x: string]: any;
22
+ variant: any;
23
+ bgColor: any;
24
+ color: any;
25
+ borderRadius: any;
26
+ coloredShadow: any;
27
+ style: any;
28
+ children: any;
29
+ }): React.JSX.Element;
30
+ /** Renders children with the template CSS available (also copied into the print window). */
31
+ export function ResultTemplateStyles({ children }: {
32
+ children: any;
33
+ }): React.JSX.Element;
34
+ /** Class on the report-card wrapper and on the print window body, so template CSS applies in both. */
35
+ export const RT_CLASS: "ubk-rt";
36
+ export namespace ConfigFile {
37
+ const ImageUrl: string;
38
+ const studentImage: string;
39
+ }
40
+ /** Old app context; the templates only read `generalSetting` (live from localStorage). */
41
+ export const MyContext: React.Context<{
42
+ readonly generalSetting: any;
43
+ }>;
44
+ export function useReactToPrint(options?: {}): () => void;
45
+ export function ReactToPrint(props: any): React.JSX.Element;
46
+ export namespace numberToWords {
47
+ function toWords(value: any): string;
48
+ }
49
+ /** CSS the templates relied on (old App.css / ubkstyle.css + the Bootstrap classes they use), scoped. */
50
+ export const RESULT_TEMPLATE_CSS: "\n.ubk-rt .forGrid { display: flex; justify-content: center; align-items: center; }\n.ubk-rt .forGrid2 { display: flex; flex-direction: column; justify-content: center; align-items: center; }\n.ubk-rt .marksit_table { width: 100%; text-align: center; border-collapse: collapse; }\n.ubk-rt .marksit_table th, .ubk-rt .marksit_table td { border: 1px solid black; border-collapse: collapse; }\n.ubk-rt .borderLeftMarsit { border-left: 1px solid black !important; }\n.ubk-rt .marksit_table_dav { width: 100%; text-align: center; border-collapse: collapse; border-left: none !important; border-right: none !important; }\n.ubk-rt .marksit_table_dav th, .ubk-rt .marksit_table_dav td { border: 1px solid black; border-collapse: collapse; }\n.ubk-rt .marksit_table_dav tr th:first-child, .ubk-rt .marksit_table_dav tr td:first-child { border-left: none !important; }\n.ubk-rt .marksit_table_dav tr th:last-child, .ubk-rt .marksit_table_dav tr td:last-child { border-right: none !important; }\n.ubk-rt .row { display: flex; flex-wrap: wrap; }\n.ubk-rt .col-lg-12 { flex: 0 0 100%; max-width: 100%; }\n.ubk-rt .container { width: 100%; margin: 0 auto; }\n.ubk-rt .card { position: relative; background: #fff; }\n.ubk-rt .mt-4 { margin-top: 1.5rem; }\n.ubk-rt .me-1 { margin-right: 0.25rem; }\n.ubk-rt .float-end { float: right; }\n.ubk-rt .btn { display: inline-block; padding: 6px 12px; font-size: 14px; line-height: 1.5; border-radius: 6px; border: 1px solid transparent; cursor: pointer; }\n.ubk-rt .btn-success { color: #fff; background-color: #198754; border-color: #198754; }\n@media print {\n .ubk-rt .d-print-none { display: none !important; }\n .ubk-rt .marksit_table, .ubk-rt .marksit_table tr th:first-child, .ubk-rt .marksit_table tr td:first-child,\n .ubk-rt .marksit_table tfoot tr th:first-child { border-left: none !important; }\n .ubk-rt .marksit_table, .ubk-rt .marksit_table tr th:last-child, .ubk-rt .marksit_table tr td:last-child,\n .ubk-rt .marksit_table tfoot tr th:last-child, .ubk-rt .marksit_table tfoot tr td:last-child { border-right: none !important; }\n}\n";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { default as Template1 } from './Template1';
3
+ import { default as Template2 } from './Template2';
4
+ import { default as Template3 } from './Template3';
5
+ import { default as Template4 } from './Template4';
6
+ import { default as Template5 } from './Template5';
7
+ import { default as Template6 } from './Template6';
8
+ import { default as Template7 } from './Template7';
9
+ import { default as Template8 } from './Template8';
10
+ import { default as Template9 } from './Template9';
11
+ import { default as Template10 } from './Template10';
12
+ import { default as Template11 } from './Template11';
13
+ import { default as Template12 } from './Template12';
14
+ import { default as Template13 } from './Template13';
15
+ import { default as Template14 } from './Template14';
16
+ import { default as Template15 } from './Template15';
17
+ import { ResultTemplateStyles } from './compat';
18
+ export function ResultTemplate({ templateId, withStyles, ...props }: {
19
+ [x: string]: any;
20
+ templateId: any;
21
+ withStyles?: boolean | undefined;
22
+ }): React.JSX.Element;
23
+ /** Report-card templates by id (the `ui_id` a class's marksheet template is assigned). */
24
+ export const RESULT_TEMPLATES: {
25
+ 1: typeof Template1;
26
+ 2: typeof Template2;
27
+ 3: typeof Template3;
28
+ 4: typeof Template4;
29
+ 5: typeof Template5;
30
+ 6: typeof Template6;
31
+ 7: typeof Template7;
32
+ 8: typeof Template8;
33
+ 9: typeof Template9;
34
+ 10: typeof Template10;
35
+ 11: typeof Template11;
36
+ 12: typeof Template12;
37
+ 13: typeof Template13;
38
+ 14: typeof Template14;
39
+ 15: typeof Template15;
40
+ };
41
+ export const RESULT_TEMPLATE_IDS: string[];
42
+ export { ResultTemplateStyles };
43
+ export default ResultTemplate;
@@ -67,6 +67,10 @@ export namespace endpoints {
67
67
  let getById_1: any;
68
68
  export { getById_1 as getById };
69
69
  export let dropdownSelect: any;
70
+ let add_5: any;
71
+ export { add_5 as add };
72
+ export let clone: any;
73
+ export let templateByClass: any;
70
74
  }
71
75
  export namespace studentResult {
72
76
  let marklistUrl: any;
@@ -99,8 +103,8 @@ export namespace endpoints {
99
103
  let remove_3: any;
100
104
  export { remove_3 as remove };
101
105
  export let assign: any;
102
- let add_5: any;
103
- export { add_5 as add };
106
+ let add_6: any;
107
+ export { add_6 as add };
104
108
  export let roomDropdown: any;
105
109
  }
106
110
  let examDropdown_1: any;
@@ -114,8 +118,8 @@ export namespace endpoints {
114
118
  export let deleteType: any;
115
119
  export let editType: any;
116
120
  export let addType: any;
117
- let add_6: any;
118
- export { add_6 as add };
121
+ let add_7: any;
122
+ export { add_7 as add };
119
123
  }
120
124
  export let coscholasticCategoryDropdown: any;
121
125
  export namespace coScholasticMarks {
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export default SingleResult;
3
+ /** One student's report card: <SingleResult token studentId examId />. */
4
+ declare function SingleResult({ token, studentId, examId }: {
5
+ token: any;
6
+ studentId: any;
7
+ examId: any;
8
+ }): React.JSX.Element;
@@ -2,6 +2,7 @@ export { default as StudentResult } from './StudentResult';
2
2
  export { default as Exam } from './Exam';
3
3
  export { default as ExamList } from './ExamList';
4
4
  export { default as ExamType } from './ExamType';
5
+ export { default as SingleResult } from './SingleResult';
5
6
  export { default as Grade } from './Grade';
6
7
  export { default as AdmitPrint } from './AdmitPrint';
7
8
  export { default as CoScholasticAreaGrade } from './CoScholasticAreaGrade';
@@ -1,5 +1,11 @@
1
+ import { default as React } from 'react';
1
2
  export default AdmissionEnquiry;
2
- declare function AdmissionEnquiry({ token, type }: {
3
- token: any;
4
- type: any;
5
- }): import("react").JSX.Element;
3
+ /**
4
+ * @param {object} props
5
+ * @param {string} props.token
6
+ * @param {React.CSSProperties} [props.style] Style for the section header bars; its `color` sets the header text colour.
7
+ */
8
+ declare function AdmissionEnquiry({ token, style }: {
9
+ token: string;
10
+ style?: React.CSSProperties | undefined;
11
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export default AdmissionEnquiryEdit;
3
+ /** Edit drawer content: loads the enquiry for the row being edited (RowId) and saves via onSave(formData). */
4
+ declare function AdmissionEnquiryEdit({ data }: {
5
+ data: any;
6
+ }): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ export default AdmissionEnquiryForm;
3
+ /**
4
+ * Enquiry fields shared by Add and Edit. Posts the same field names as the old ERP page:
5
+ * name, phone, email, address, description, note, date, next_follow_date, reference, source,
6
+ * class, num_child (+ id and assigned when editing).
7
+ */
8
+ declare function AdmissionEnquiryForm({ token, initial, onSubmit, submitLabel, showAssigned }: {
9
+ token: any;
10
+ initial: any;
11
+ onSubmit: any;
12
+ submitLabel?: string | undefined;
13
+ showAssigned?: boolean | undefined;
14
+ }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ export function phoneCallShowKey(id: any, token: any): any[];
2
3
  export default PhoneCallLogEdit;
3
4
  declare function PhoneCallLogEdit({ data }: {
4
5
  data: any;