ubk.erp.webpack 1.1.0 → 1.1.2
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.
- package/README.md +141 -7
- package/dist/index.cjs +12 -12
- package/dist/index.d.ts +149 -0
- package/dist/index.js +12061 -4136
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,20 @@ Install the package:
|
|
|
18
18
|
npm install ubk.erp.webpack
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
## 🔄 Update
|
|
22
|
+
|
|
23
|
+
Update to the latest published version:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install ubk.erp.webpack@latest
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or update within your existing dependency range:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm update ubk.erp.webpack
|
|
33
|
+
```
|
|
34
|
+
|
|
21
35
|
### Peer Dependencies
|
|
22
36
|
Ensure your project has the following installed:
|
|
23
37
|
- `react` >= 18
|
|
@@ -88,6 +102,58 @@ const App = () => {
|
|
|
88
102
|
export default App;
|
|
89
103
|
```
|
|
90
104
|
|
|
105
|
+
### Token
|
|
106
|
+
|
|
107
|
+
Most components accept a `token` prop and use it for API requests:
|
|
108
|
+
|
|
109
|
+
```jsx
|
|
110
|
+
import { StaffDirectory } from "ubk.erp.webpack";
|
|
111
|
+
|
|
112
|
+
export default function Page({ token }) {
|
|
113
|
+
return <StaffDirectory token={token} />;
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Routing / Navigation
|
|
118
|
+
|
|
119
|
+
This library exports React components. If you want URL pages like:
|
|
120
|
+
|
|
121
|
+
`/HumanResourceDashboard/PayrollReceiptDetails?id=1`
|
|
122
|
+
|
|
123
|
+
```jsx
|
|
124
|
+
export default function Page({ token }) {
|
|
125
|
+
return <Payroll
|
|
126
|
+
token={token}
|
|
127
|
+
onOpenReceiptDetails={(staffId) => navigate(`/HumanResourceDashboard/PayrollReceiptDetails?id=${staffId}`)}
|
|
128
|
+
/>;
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
your app must define a route for that path (React Router example):
|
|
134
|
+
|
|
135
|
+
```jsx
|
|
136
|
+
import { PayrollReceiptDetails } from "ubk.erp.webpack";
|
|
137
|
+
import { Route, Routes } from "react-router-dom";
|
|
138
|
+
|
|
139
|
+
export default function AppRoutes({ token }) {
|
|
140
|
+
return (
|
|
141
|
+
<Routes>
|
|
142
|
+
<Route
|
|
143
|
+
path="/HumanResourceDashboard/PayrollReceiptDetails"
|
|
144
|
+
element={<PayrollReceiptDetails token={token} />}
|
|
145
|
+
/>
|
|
146
|
+
<Route
|
|
147
|
+
path="/AcademicsDashboard/TimeTable"
|
|
148
|
+
element={<TimeTable token={token} />}
|
|
149
|
+
/>
|
|
150
|
+
</Routes>
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
91
157
|
### Using the Transport Module
|
|
92
158
|
|
|
93
159
|
```jsx
|
|
@@ -100,11 +166,42 @@ const TransportPage = () => {
|
|
|
100
166
|
|
|
101
167
|
## 🧩 Available Components
|
|
102
168
|
|
|
169
|
+
### Core
|
|
170
|
+
|
|
103
171
|
| Component | Description |
|
|
104
172
|
| :--- | :--- |
|
|
105
173
|
| `ErpDashboard` | Main dashboard overview. |
|
|
106
174
|
| `MenuSubmenu` | Dynamic menu and navigation component. |
|
|
107
|
-
|
|
175
|
+
|
|
176
|
+
### Front Office
|
|
177
|
+
|
|
178
|
+
| Component | Description |
|
|
179
|
+
| :--- | :--- |
|
|
180
|
+
| `AdmissionEnquiry` | Admission enquiry management. |
|
|
181
|
+
|
|
182
|
+
### Academics
|
|
183
|
+
|
|
184
|
+
| Component | Description |
|
|
185
|
+
| :--- | :--- |
|
|
186
|
+
| `Class` | Class master. |
|
|
187
|
+
| `Sections` | Section master. |
|
|
188
|
+
| `Subjects` | Subject master. |
|
|
189
|
+
| `Holidays` | Holiday master. |
|
|
190
|
+
| `AssignSubjects` | Assign subjects to class. |
|
|
191
|
+
| `AssignByClass` | Assign class/subjects to teacher. |
|
|
192
|
+
| `CreateTimeGroup` | Create time group. |
|
|
193
|
+
| `AssignTimeGroup` | Assign time group. |
|
|
194
|
+
| `PromoteStudents` | Promote students (selected students, Continue/Leave). |
|
|
195
|
+
| `CoScholasticArea` | Co-scholastic skills + category management. |
|
|
196
|
+
| `Notes` | Notes list + upload. |
|
|
197
|
+
| `Syllabus` | Syllabus list + upload. |
|
|
198
|
+
| `TransferCertificate` | Transfer certificate list + create. |
|
|
199
|
+
| `TimeTable` | Create / Routine / Teacher-wise timetable. |
|
|
200
|
+
|
|
201
|
+
### Transport
|
|
202
|
+
|
|
203
|
+
| Component | Description |
|
|
204
|
+
| :--- | :--- |
|
|
108
205
|
| `TransportRoutes` | Manage transport routes and pricing. |
|
|
109
206
|
| `TransportVehicles` | Vehicle fleet management. |
|
|
110
207
|
| `AssignVehicles` | Assign vehicles to specific routes. |
|
|
@@ -112,12 +209,49 @@ const TransportPage = () => {
|
|
|
112
209
|
| `RouteTimeTable` | Schedule management for transport routes. |
|
|
113
210
|
| `AssignStudentToTransport` | Assign students to transport routes. |
|
|
114
211
|
| `Stoppage` | Manage route stops and timings. |
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
| `
|
|
212
|
+
|
|
213
|
+
### Library
|
|
214
|
+
|
|
215
|
+
| Component | Description |
|
|
216
|
+
| :--- | :--- |
|
|
217
|
+
| `AddBook` | Add books. |
|
|
218
|
+
| `BookList` | Book list + barcode printing. |
|
|
219
|
+
| `IssueReturn` | Issue/return books. |
|
|
220
|
+
| `LibraryAssignStudent` | Assign/remove student membership. |
|
|
221
|
+
| `LibraryCategory` | Manage book categories. |
|
|
222
|
+
| `LibraryReport` | Monthly report. |
|
|
223
|
+
|
|
224
|
+
### Store
|
|
225
|
+
|
|
226
|
+
| Component | Description |
|
|
227
|
+
| :--- | :--- |
|
|
228
|
+
| `Vendor` | Manage vendors. |
|
|
229
|
+
| `Products` | Manage products. |
|
|
230
|
+
| `Category` | Manage categories. |
|
|
231
|
+
| `SubCategory` | Manage sub-categories. |
|
|
232
|
+
| `BuySellProduct` | Buy/sell products workflow. |
|
|
233
|
+
| `Unit` | Manage units. |
|
|
234
|
+
| `SellReports` | Sell reports. |
|
|
235
|
+
| `ManageStock` | Stock management. |
|
|
236
|
+
| `StockReport` | Stock report. |
|
|
237
|
+
|
|
238
|
+
### Human Resource
|
|
239
|
+
|
|
240
|
+
| Component | Description |
|
|
241
|
+
| :--- | :--- |
|
|
242
|
+
| `AddStaff` | Add staff wizard. |
|
|
243
|
+
| `StaffDirectory` | Staff list + search. |
|
|
244
|
+
| `StaffAttendance` | Mark staff attendance. |
|
|
245
|
+
| `StaffAttendanceReport` | Monthly attendance report. |
|
|
246
|
+
| `Payroll` | Payroll list by role/month/year. |
|
|
247
|
+
| `AprroveLeaveRequest` | Approve/decline leave requests. |
|
|
248
|
+
| `ApplyLeave` | Apply for leave + requests table. |
|
|
249
|
+
| `LeaveType` | Leave type master. |
|
|
250
|
+
| `Department` | Department master. |
|
|
251
|
+
| `Designation` | Designation master. |
|
|
252
|
+
| `Shift` | Shift master. |
|
|
253
|
+
| `StaffDailyAttendance` | Daily attendance report + print. |
|
|
254
|
+
| `PayrollReceiptDetails` | Payroll receipt details (page/component). |
|
|
121
255
|
|
|
122
256
|
|
|
123
257
|
## 🛠️ Development
|