ubk.erp.webpack 1.0.8 → 1.0.9
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 +19 -4
- package/dist/index.cjs +12 -26
- package/dist/index.d.ts +33 -8
- package/dist/index.js +4656 -3475
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ A professional React component library for UBK ERP systems, built with Vite and
|
|
|
12
12
|
|
|
13
13
|
## 📦 Installation
|
|
14
14
|
|
|
15
|
-
Install the package
|
|
15
|
+
Install the package:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
npm install ubk.erp.webpack
|
|
@@ -22,9 +22,14 @@ npm install ubk.erp.webpack
|
|
|
22
22
|
Ensure your project has the following installed:
|
|
23
23
|
- `react` >= 18
|
|
24
24
|
- `react-dom` >= 18
|
|
25
|
+
- `@ant-design/icons` >= 5
|
|
25
26
|
- `antd` >= 5
|
|
27
|
+
- `dayjs` >= 1.11
|
|
28
|
+
- `react-hot-toast` >= 2
|
|
29
|
+
- `react-select` >= 5
|
|
30
|
+
- `react-to-print` >= 3
|
|
31
|
+
- `react-barcode` >= 1
|
|
26
32
|
- `swr` >= 2
|
|
27
|
-
- `axios` >= 1
|
|
28
33
|
|
|
29
34
|
## ⚙️ Configuration
|
|
30
35
|
|
|
@@ -56,7 +61,10 @@ REACT_APP_API_URL=https://npmapi.ubkerp.com/
|
|
|
56
61
|
# API Endpoints
|
|
57
62
|
VITE_MENU_URL=api/sdk/Menus
|
|
58
63
|
VITE_ADMISSION_ENQUIRY_URL=api/branchapi/frontoffice/enquirytablelist
|
|
59
|
-
#
|
|
64
|
+
# Library endpoints (examples)
|
|
65
|
+
VITE_LIBRARY_ADD_CATEGORY_URL=api/branchapi/library/addBookCategory
|
|
66
|
+
VITE_LIBRARY_DELETE_CATEGORY_URL=api/branchapi/library/deleteBookCategory
|
|
67
|
+
VITE_LIBRARY_MONTHLY_REPORT_URL=api/branchapi/library/libraryReport
|
|
60
68
|
```
|
|
61
69
|
|
|
62
70
|
## 🛠️ Usage
|
|
@@ -103,13 +111,20 @@ const TransportPage = () => {
|
|
|
103
111
|
| `AddDriver` | Driver information and document management. |
|
|
104
112
|
| `RouteTimeTable` | Schedule management for transport routes. |
|
|
105
113
|
| `Stoppage` | Manage route stops and timings. |
|
|
114
|
+
| `AddBook` | Library: add books. |
|
|
115
|
+
| `BookList` | Library: book list + barcode printing. |
|
|
116
|
+
| `IssueReturn` | Library: issue/return books. |
|
|
117
|
+
| `LibraryAssignStudent` | Library: assign/remove student membership. |
|
|
118
|
+
| `LibraryCategory` | Library: manage book categories. |
|
|
119
|
+
| `LibraryReport` | Library: monthly report. |
|
|
120
|
+
|
|
106
121
|
|
|
107
122
|
## 🛠️ Development
|
|
108
123
|
|
|
109
124
|
### Setup
|
|
110
125
|
1. Clone the repository
|
|
111
126
|
2. Install dependencies: `npm install`
|
|
112
|
-
3.
|
|
127
|
+
3. Create a `.env` file and configure `VITE_*` variables as needed.
|
|
113
128
|
|
|
114
129
|
### Build
|
|
115
130
|
To build the library for production:
|