ubk.erp.webpack 1.2.9 → 1.3.1

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 (34) hide show
  1. package/README.md +107 -3
  2. package/dist/Api/api.d.ts +48 -0
  3. package/dist/Layout/ExpenseDashboard/AddExpense/AddExpense.d.ts +5 -0
  4. package/dist/Layout/ExpenseDashboard/AddExpense/AddExpenseEdit.d.ts +5 -0
  5. package/dist/Layout/ExpenseDashboard/AddExpense/index.d.ts +1 -0
  6. package/dist/Layout/ExpenseDashboard/ExpenseHead/ExpenseHead.d.ts +5 -0
  7. package/dist/Layout/ExpenseDashboard/ExpenseHead/ExpenseHeadEdit.d.ts +5 -0
  8. package/dist/Layout/ExpenseDashboard/ExpenseHead/index.d.ts +1 -0
  9. package/dist/Layout/ExpenseDashboard/SearchExpense/SearchExpense.d.ts +5 -0
  10. package/dist/Layout/ExpenseDashboard/SearchExpense/index.d.ts +1 -0
  11. package/dist/Layout/ExpenseDashboard/index.d.ts +3 -0
  12. package/dist/Layout/IncomeDashboard/AddIncome/AddIncome.d.ts +5 -0
  13. package/dist/Layout/IncomeDashboard/AddIncome/AddIncomeEdit.d.ts +5 -0
  14. package/dist/Layout/IncomeDashboard/AddIncome/index.d.ts +1 -0
  15. package/dist/Layout/IncomeDashboard/IncomeHead/IncomeHead.d.ts +5 -0
  16. package/dist/Layout/IncomeDashboard/IncomeHead/IncomeHeadEdit.d.ts +5 -0
  17. package/dist/Layout/IncomeDashboard/IncomeHead/index.d.ts +1 -0
  18. package/dist/Layout/IncomeDashboard/SearchIncome/SearchIncome.d.ts +5 -0
  19. package/dist/Layout/IncomeDashboard/SearchIncome/index.d.ts +1 -0
  20. package/dist/Layout/IncomeDashboard/index.d.ts +3 -0
  21. package/dist/Layout/StudentInformation/AssignStudentSubject/AssignStudentSubject.d.ts +5 -0
  22. package/dist/Layout/StudentInformation/AssignStudentSubject/index.d.ts +1 -0
  23. package/dist/Layout/StudentInformation/BulkUpload/BulkUpload.d.ts +5 -0
  24. package/dist/Layout/StudentInformation/BulkUpload/index.d.ts +1 -0
  25. package/dist/Layout/StudentInformation/MedicalReport/MedicalReport.d.ts +5 -0
  26. package/dist/Layout/StudentInformation/MedicalReport/index.d.ts +1 -0
  27. package/dist/Layout/StudentInformation/StudentLoginCredential/StudentLoginCredential.d.ts +5 -0
  28. package/dist/Layout/StudentInformation/StudentLoginCredential/index.d.ts +1 -0
  29. package/dist/Layout/StudentInformation/index.d.ts +4 -0
  30. package/dist/Layout/Transport/BulkUpload/index.d.ts +5 -0
  31. package/dist/index.cjs +13 -13
  32. package/dist/index.d.ts +11 -0
  33. package/dist/index.js +11598 -8812
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -136,13 +136,46 @@ export default function AppRoutes({ token }) {
136
136
  ### Using the Transport Module
137
137
 
138
138
  ```jsx
139
- import { TransportRoutes } from "ubk.erp.webpack";
139
+ import {
140
+ TransportRoutes,
141
+ TransportVehicles,
142
+ AssignVehicles,
143
+ AssignStudentToTransport,
144
+ TransportBulkUpload,
145
+ } from "ubk.erp.webpack";
140
146
 
141
- const TransportPage = () => {
142
- return <TransportRoutes token="YOUR_TOKEN" />;
147
+ const TransportPage = ({ token }) => {
148
+ return (
149
+ <>
150
+ <TransportRoutes token={token} />
151
+ <TransportVehicles token={token} />
152
+ <AssignVehicles token={token} />
153
+ <AssignStudentToTransport token={token} />
154
+ <TransportBulkUpload token={token} />
155
+ </>
156
+ );
143
157
  };
144
158
  ```
145
159
 
160
+ ### Using the Transport Bulk Upload Module
161
+
162
+ The `TransportBulkUpload` component provides a multi-step wizard for bulk uploading transport assignments from Excel files:
163
+
164
+ ```jsx
165
+ import { TransportBulkUpload } from "ubk.erp.webpack";
166
+
167
+ const TransportBulkPage = ({ token }) => {
168
+ return <TransportBulkUpload token={token} />;
169
+ };
170
+ ```
171
+
172
+ **Features:**
173
+ 1. **Download Template** — Select Class and Section to download a pre-formatted Excel template
174
+ 2. **Upload & Validate** — Upload Excel file and preview validation results
175
+ 3. **Review** — View valid/invalid/duplicate rows with detailed status messages
176
+ 4. **Import** — Confirm import and download error reports for failed rows
177
+ ```
178
+
146
179
  ### Using the AttendanceDashboard Module
147
180
 
148
181
  ```jsx
@@ -275,6 +308,76 @@ const HomeworkPage = ({ token }) => {
275
308
  | `AddHomework` | Create and manage homework assignments with class, section, subject, dates, description, and attachments. |
276
309
  | `SubmissionDetails` | View homework submission details with student-wise submission status and document preview. |
277
310
 
311
+ ### Using the Income Module
312
+
313
+ ```jsx
314
+ import { AddIncome, SearchIncome, IncomeHead } from "ubk.erp.webpack";
315
+
316
+ const IncomePage = ({ token }) => {
317
+ return (
318
+ <>
319
+ <AddIncome token={token} />
320
+ <SearchIncome token={token} />
321
+ <IncomeHead token={token} />
322
+ </>
323
+ );
324
+ };
325
+ ```
326
+
327
+ ## 🧩 Available Components
328
+
329
+ ### Core
330
+
331
+ | Component | Description |
332
+ | :--- | :--- |
333
+ | `ErpDashboard` | Main dashboard overview. |
334
+ | `MenuSubmenu` | Dynamic menu and navigation component. |
335
+
336
+ ### Front Office
337
+
338
+ | Component | Description |
339
+ | :--- | :--- |
340
+ | `AdmissionEnquiry` | Admission enquiry management. |
341
+ | `VisitorBook` | Visitor entry tracking with purpose, contact, date, and image upload. |
342
+ | `PhoneCallLog` | Phone call log management with call type, follow-up date, and duration. |
343
+ | `PostalDispatch` | Postal dispatch management with reference, address, and document upload. |
344
+ | `PostalReceive` | Postal receive management with from/to title, reference, and document upload. |
345
+ | `Complain` | Complaint management with type, description, action taken, and assignment. |
346
+ | `SetupFrontOffice` | Front office setup/master data (Purpose, Complaint Type, Source, Reference). |
347
+ | `GatePass` | Student gate pass list with print support and today's gate pass summary. |
348
+
349
+ ### Homework
350
+
351
+ | Component | Description |
352
+ | :--- | :--- |
353
+ | `AddHomework` | Create and manage homework assignments with class, section, subject, dates, description, and attachments. |
354
+ | `SubmissionDetails` | View homework submission details with student-wise submission status and document preview. |
355
+
356
+ ### Income
357
+
358
+ | Component | Description |
359
+ | :--- | :--- |
360
+ | `AddIncome` | Add new income entries with income head, amount, date, invoice number, description, and document upload. |
361
+ | `SearchIncome` | Search income records by date range with paginated results. |
362
+ | `IncomeHead` | Manage income head categories with add/edit/delete and paginated list. |
363
+
364
+ ### Expense
365
+
366
+ | Component | Description |
367
+ | :--- | :--- |
368
+ | `AddExpense` | Add new expense entries with expense head, vendor, amount, date, payment mode, invoice number, description, and document upload. |
369
+ | `SearchExpense` | Search expense records by date range with paginated results. |
370
+ | `ExpenseHead` | Manage expense head categories with add/edit/delete and paginated list. |
371
+
372
+ ### Student Information
373
+
374
+ | Component | Description |
375
+ | :--- | :--- |
376
+ | `StudentLoginCredential` | View and manage student login credentials (username/password) by class and section. |
377
+ | `MedicalReport` | Manage student medical reports and medicine history with add/view functionality. |
378
+ | `AssignStudentSubject` | Assign and unassign subjects and extra-curricular activities to students. |
379
+ | `BulkUpload` | Bulk upload students from Excel file with class/section selection and sample file download. |
380
+
278
381
  ### Academics
279
382
 
280
383
  | Component | Description |
@@ -304,6 +407,7 @@ const HomeworkPage = ({ token }) => {
304
407
  | `AddDriver` | Driver information and document management. |
305
408
  | `RouteTimeTable` | Schedule management for transport routes. |
306
409
  | `AssignStudentToTransport` | Assign students to transport routes. |
410
+ | `TransportBulkUpload` | Bulk upload transport assignments from Excel with validation wizard. |
307
411
  | `Stoppage` | Manage route stops and timings. |
308
412
 
309
413
  ### Library
package/dist/Api/api.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export function setBaseUrl(url: any): void;
2
2
  export function getAssetBaseUrl(): any;
3
3
  export function addData(url: any, data: any, token: any): Promise<any>;
4
+ export function postData(url: any, data: any, token: any): Promise<any>;
4
5
  export function getNewData(url: any, token: any): Promise<any>;
5
6
  export function getMenuData(url: any, token: any): Promise<any>;
6
7
  export function addDataReturn(url: any, data: any, token: any): Promise<boolean>;
@@ -92,3 +93,50 @@ export const homeworkListUrl: "api/branchapi/homeworks/gethomeworklistByClassSec
92
93
  export const homeworkAddUrl: "api/branchapi/homeworks/addHomework";
93
94
  export const homeworkUpdateUrl: "api/student/Homework/updateHomework";
94
95
  export const homeworkDeleteUrl: "api/student/Homework/deleteHomework";
96
+ export const incomeListUrl: "api/branchapi/income/incomeTableList";
97
+ export const incomeAddUrl: "api/branchapi/income/addincome";
98
+ export const incomeUpdateUrl: "api/branchapi/income/editincome";
99
+ export const incomeDeleteUrl: "api/branchapi/income/deleteincome";
100
+ export const incomeHeadDropdownUrl: "api/branchapi/income/incomeheadDropdown";
101
+ export const incomeHeadListUrl: "api/branchapi/income/incomeheadTableList";
102
+ export const incomeHeadAddUrl: "api/branchapi/income/addincomehead";
103
+ export const incomeHeadUpdateUrl: "api/branchapi/income/editincomehead";
104
+ export const incomeHeadDeleteUrl: "api/branchapi/income/deleteincomehead";
105
+ export const incomeShowUrl: "api/branchapi/income/incomeShowdata";
106
+ export const incomeHeadShowUrl: "api/branchapi/income/incomeheadShowdata";
107
+ export const incomeSearchByDateUrl: "api/branchapi/income/searchincomebydates";
108
+ export const expenseListUrl: "api/branchapi/expense/expenseTableList";
109
+ export const expenseAddUrl: "api/branchapi/expense/addexpense";
110
+ export const expenseUpdateUrl: "api/branchapi/expense/editexpense";
111
+ export const expenseDeleteUrl: "api/branchapi/expense/deleteExpense";
112
+ export const expenseHeadDropdownUrl: "api/branchapi/expense/expenseheadDropdown";
113
+ export const expenseHeadListUrl: "api/branchapi/expense/expenseheadTableList";
114
+ export const expenseHeadAddUrl: "api/branchapi/expense/addexpensehead";
115
+ export const expenseHeadUpdateUrl: "api/branchapi/expense/editexpensehead";
116
+ export const expenseHeadDeleteUrl: "api/branchapi/expense/deleteexpensehead";
117
+ export const expenseShowUrl: "api/branchapi/expense/expenseShowdata";
118
+ export const expenseHeadShowUrl: "api/branchapi/expense/expenseheadShowdata";
119
+ export const expenseSearchByDateUrl: "api/branchapi/expense/searchexpensebydates";
120
+ export const vendorListUrl: "api/accounts/vendor/vendorlist";
121
+ export const studentLoginTableUrl: "api/student/studentDetails/studentLoginCredentialList";
122
+ export const studentListUrl: "/branchapi/student/studentlist";
123
+ export const studentSearchByKeywordUrl: "api/branchapi/student/studentsearchbyKeywords";
124
+ export const studentSearchByClassSectionUrl: "api/branchapi/student/studentsearchbyClassSection";
125
+ export const deleteStudentUrl: "branchapi/student/deleteStudent";
126
+ export const addStudentMedicineUrl: "/branchapi/student/addStudentMedicineDetails";
127
+ export const studentMedicineDetailsUrl: "/branchapi/student/StudentMedicineDetails";
128
+ export const getStudentClassSubjectUrl: "/branchapi/academy/getstudentClasssubjectByStudentId";
129
+ export const removeAssignStudentSubjectUrl: "/branchapi/academy/removeAssignStudentSubject";
130
+ export const extraCurricularActivitiesUrl: "/branchapi/feesCollection/extraCurricularActivitiesFess";
131
+ export const unAssignStudentSubjectUrl: "/branchapi/academy/unAssigneStudentSubject";
132
+ export const bulkUploadStudentUrl: "/branchapi/student/uploadstudentbyCSV";
133
+ export const categoryTableUrl: "api/branchapi/academy/categorytableList";
134
+ export const studentSampleFileUrl: "/sample_student.xlsx";
135
+ export const transportBulkUploadDownloadTemplate: "api/branchapi/transport/downloadBulkTemplate";
136
+ export const transportBulkUploadValidate: "api/branchapi/transport/validateBulkUpload";
137
+ export const transportBulkUploadConfirm: "api/branchapi/transport/confirmBulkImport";
138
+ export const transportBulkUploadErrorReport: "api/branchapi/transport/downloadBulkErrorReport";
139
+ export function downloadBulkTemplate({ class_id, section_id }: {} | undefined, token: any): Promise<any>;
140
+ export function validateBulkUpload(file: any, token: any): Promise<any>;
141
+ export function confirmBulkImport(rows: any, token: any, duplicateAction?: string): Promise<any>;
142
+ export function downloadBulkErrorReport(rows: any, token: any): Promise<any>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default AddExpense;
3
+ declare function AddExpense({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default AddExpenseEdit;
3
+ declare function AddExpenseEdit({ data }: {
4
+ data: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './AddExpense';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default ExpenseHead;
3
+ declare function ExpenseHead({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default ExpenseHeadEdit;
3
+ declare function ExpenseHeadEdit({ data }: {
4
+ data: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './ExpenseHead';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default SearchExpense;
3
+ declare function SearchExpense({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './SearchExpense';
@@ -0,0 +1,3 @@
1
+ export { default as SearchExpense } from './SearchExpense';
2
+ export { default as AddExpense } from './AddExpense';
3
+ export { default as ExpenseHead } from './ExpenseHead';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default AddIncome;
3
+ declare function AddIncome({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default AddIncomeEdit;
3
+ declare function AddIncomeEdit({ data }: {
4
+ data: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './AddIncome';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default IncomeHead;
3
+ declare function IncomeHead({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default IncomeHeadEdit;
3
+ declare function IncomeHeadEdit({ data }: {
4
+ data: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './IncomeHead';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default SearchIncome;
3
+ declare function SearchIncome({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './SearchIncome';
@@ -0,0 +1,3 @@
1
+ export { default as AddIncome } from './AddIncome';
2
+ export { default as SearchIncome } from './SearchIncome';
3
+ export { default as IncomeHead } from './IncomeHead';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default AssignStudentSubject;
3
+ declare function AssignStudentSubject({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './AssignStudentSubject';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default BulkUpload;
3
+ declare function BulkUpload({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './BulkUpload';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default MedicalReport;
3
+ declare function MedicalReport({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './MedicalReport';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default StudentLoginCredential;
3
+ declare function StudentLoginCredential({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './StudentLoginCredential';
@@ -0,0 +1,4 @@
1
+ export { default as StudentLoginCredential } from './StudentLoginCredential';
2
+ export { default as MedicalReport } from './MedicalReport';
3
+ export { default as AssignStudentSubject } from './AssignStudentSubject';
4
+ export { default as BulkUpload } from './BulkUpload';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default TransportBulkUpload;
3
+ declare function TransportBulkUpload({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;