ubk.erp.webpack 1.1.0 → 1.1.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.
- package/README.md +72 -0
- package/dist/index.cjs +12 -12
- package/dist/index.d.ts +89 -0
- package/dist/index.js +8341 -3868
- 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,42 @@ 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
|
+
your app must define a route for that path (React Router example):
|
|
124
|
+
|
|
125
|
+
```jsx
|
|
126
|
+
import { PayrollReceiptDetails } from "ubk.erp.webpack";
|
|
127
|
+
import { Route, Routes } from "react-router-dom";
|
|
128
|
+
|
|
129
|
+
export default function AppRoutes({ token }) {
|
|
130
|
+
return (
|
|
131
|
+
<Routes>
|
|
132
|
+
<Route
|
|
133
|
+
path="/HumanResourceDashboard/PayrollReceiptDetails"
|
|
134
|
+
element={<PayrollReceiptDetails token={token} />}
|
|
135
|
+
/>
|
|
136
|
+
</Routes>
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
91
141
|
### Using the Transport Module
|
|
92
142
|
|
|
93
143
|
```jsx
|
|
@@ -118,6 +168,28 @@ const TransportPage = () => {
|
|
|
118
168
|
| `LibraryAssignStudent` | Library: assign/remove student membership. |
|
|
119
169
|
| `LibraryCategory` | Library: manage book categories. |
|
|
120
170
|
| `LibraryReport` | Library: monthly report. |
|
|
171
|
+
| `Vendor` | Store: manage vendors. |
|
|
172
|
+
| `Products` | Store: manage products. |
|
|
173
|
+
| `Category` | Store: manage categories. |
|
|
174
|
+
| `SubCategory` | Store: manage sub-categories. |
|
|
175
|
+
| `BuySellProduct` | Store: buy/sell products workflow. |
|
|
176
|
+
| `Unit` | Store: manage units. |
|
|
177
|
+
| `SellReports` | Store: sell reports. |
|
|
178
|
+
| `ManageStock` | Store: stock management. |
|
|
179
|
+
| `StockReport` | Store: stock report. |
|
|
180
|
+
| `AddStaff` | HR: add staff wizard. |
|
|
181
|
+
| `StaffDirectory` | HR: staff list + search. |
|
|
182
|
+
| `StaffAttendance` | HR: mark staff attendance. |
|
|
183
|
+
| `StaffAttendanceReport` | HR: monthly attendance report. |
|
|
184
|
+
| `Payroll` | HR: payroll list by role/month/year. |
|
|
185
|
+
| `AprroveLeaveRequest` | HR: approve/decline leave requests. |
|
|
186
|
+
| `ApplyLeave` | HR: apply for leave + requests table. |
|
|
187
|
+
| `LeaveType` | HR: leave type master. |
|
|
188
|
+
| `Department` | HR: department master. |
|
|
189
|
+
| `Designation` | HR: designation master. |
|
|
190
|
+
| `Shift` | HR: shift master. |
|
|
191
|
+
| `StaffDailyAttendance` | HR: daily attendance report + print. |
|
|
192
|
+
| `PayrollReceiptDetails` | HR: payroll receipt details (page/component). |
|
|
121
193
|
|
|
122
194
|
|
|
123
195
|
## 🛠️ Development
|