admins-components 5.0.21 → 5.2.0

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 CHANGED
@@ -1,5 +1,162 @@
1
- # Vue 3 + TypeScript + Vite
1
+ # Admins Components Library
2
2
 
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
3
+ > Professzionális Vue 3 komponens könyvtár Bootstrap 5 és Vueform alapokon, magyar tartalom kezelő rendszerekhez.
4
4
 
5
- Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
5
+ [![Version](https://img.shields.io/badge/version-5.1.0-blue.svg)](package.json)
6
+ [![Vue](https://img.shields.io/badge/vue-3.5+-green.svg)](https://vuejs.org/)
7
+ [![TypeScript](https://img.shields.io/badge/typescript-5.7+-blue.svg)](https://www.typescriptlang.org/)
8
+
9
+ ## 🎯 Áttekintés
10
+
11
+ Az **Admins Components** egy átfogó, újrafelhasználható Vue 3 komponens könyvtár, amely kifejezetten magyar admin felületek és tartalomkezelő rendszerek számára készült. A könyvtár két fő kategóriába szervezett komponenseket tartalmaz:
12
+
13
+ - **UI Komponensek**: Önálló, Bootstrap 5 alapú Vue komponensek
14
+ - **Vueform Elemek**: Egyedi form elemek Vueform integrációval
15
+
16
+ ### Főbb Jellemzők
17
+
18
+ ✨ **Vue 3 Composition API** - Modern `<script setup>` szintaxis
19
+ 🎨 **Bootstrap 5 Design** - Professzionális UI készlet
20
+ 📝 **Vueform Integráció** - Haladó form elemek
21
+ 🔒 **TypeScript** - Teljes típusbiztonság
22
+ 🌐 **Magyar Lokalizáció** - Minden szöveg és hibaüzenet magyarul
23
+ 🏪 **Pinia State Management** - Beépített user store
24
+ 📦 **Dual Build** - ES és UMD formátum
25
+
26
+ ## 🚀 Gyors Kezdés
27
+
28
+ ### Telepítés
29
+
30
+ ```bash
31
+ npm install admins-components
32
+ ```
33
+
34
+ ### Alapvető Használat
35
+
36
+ ```typescript
37
+ // main.ts
38
+ import { createApp } from 'vue'
39
+ import { createPinia } from 'pinia'
40
+ import AdminsComponents from 'admins-components'
41
+ import 'admins-components/dist/style.css'
42
+
43
+ const app = createApp(App)
44
+ app.use(createPinia())
45
+ app.use(AdminsComponents) // Regisztrálja az összes komponenst globálisan
46
+ app.mount('#app')
47
+ ```
48
+
49
+ ### Szelektív Import
50
+
51
+ ```vue
52
+ <script setup lang="ts">
53
+ import { TableToList, FilterControl, useCurrentUser } from 'admins-components'
54
+ </script>
55
+
56
+ <template>
57
+ <TableToList :items="items" :config="config" />
58
+ </template>
59
+ ```
60
+
61
+ ## 📚 Komponensek
62
+
63
+ ### UI Komponensek (25+)
64
+
65
+ #### Táblázatok
66
+ - **TableToList** - Reszponzív táblázat card nézettel, localStorage perzisztenciával
67
+ - **TableToListOptions** - Oszlop láthatóság beállítások
68
+ - **PaginatorControl** - Lapozó vezérlő
69
+
70
+ #### Form Kontrollok
71
+ - **DropDown** - Legördülő menü szűréssel és billentyűzet támogatással
72
+ - **DropDownButton** - Legördülő + akciógomb kombó
73
+ - **CheckBox / CheckBoxList** - Checkbox komponensek
74
+ - **RadioButton / RadioButtonGroup** - Radio gomb komponensek
75
+ - **DateRangePicker / DateTimePicker** - Dátum választók
76
+
77
+ #### Egyéb
78
+ - **HeaderComponent** - Fejléc gombok és címmel
79
+ - **ToastWrapper / ToastComponent** - Értesítések
80
+ - **FilterControl / FilterCompact** - Univerzális szűrők
81
+ - **SpinningProgress** - Betöltő animáció
82
+
83
+ ### Vueform Elemek
84
+
85
+ - **ImagePickerElement** - Kép választó külső widget integrációval
86
+ - **ArticlePickerElement** - Cikk választó
87
+ - **PartnerPickerElement** - Partner választó
88
+ - **GalleryImageSelectorElement** - Galéria kép választó
89
+ - És még sok más...
90
+
91
+ [Teljes komponens lista →](docs/COMPONENTS.md)
92
+
93
+ ## 🔧 Szolgáltatások
94
+
95
+ ### User Store (Pinia)
96
+
97
+ ```typescript
98
+ import { useCurrentUser } from 'admins-components'
99
+
100
+ const userStore = useCurrentUser()
101
+ await userStore.initialize('https://api.example.com')
102
+
103
+ // Használat (nincs .value!)
104
+ console.log(userStore.displayName)
105
+ console.log(userStore.isAuthenticated)
106
+ if (userStore.hasRole('admin')) { ... }
107
+ ```
108
+
109
+ [Részletes dokumentáció →](docs/CURRENT_USER_STORE.md)
110
+
111
+ ### HTTP Services
112
+
113
+ ```typescript
114
+ import { useArticleEditorService } from 'admins-components'
115
+
116
+ const service = useArticleEditorService('https://api.example.com')
117
+ service.searchPosts.successCallback = (data) => { ... }
118
+ service.searchPosts.execute()
119
+ ```
120
+
121
+ [Részletes dokumentáció →](docs/SERVICES.md)
122
+
123
+ ## 📖 Teljes Dokumentáció
124
+
125
+ ### 🎯 Alapvető Dokumentáció
126
+ - **[User Store](docs/CURRENT_USER_STORE.md)** - Felhasználó kezelés és jogosultságok (Pinia)
127
+ - **[Komponensek](docs/COMPONENTS.md)** - Összes komponens referencia (25+ komponens)
128
+ - **[Vueform Elemek](docs/VUEFORM_ELEMENTS.md)** - Custom form elemek (9 element)
129
+ - **[Szolgáltatások](docs/SERVICES.md)** - HTTP service layer és API integráció
130
+
131
+ ### 🔧 További Dokumentáció
132
+ - **[Segédprogramok](docs/UTILITIES.md)** - Toast, dátumkezelés, debounce, persister
133
+ - **[API Referencia](docs/API_REFERENCE.md)** - Teljes típus és interface dokumentáció
134
+ - **[Fejlesztői Útmutató](docs/DEVELOPMENT.md)** - Komponens/service hozzáadása, build folyamat
135
+ - **[Példák](docs/EXAMPLES.md)** - Komplex használati esetek és teljes munkamenet példák
136
+ - **[Hibaelhárítás](docs/TROUBLESHOOTING.md)** - Gyakori problémák és megoldások
137
+
138
+ ### 📌 Gyors Linkek
139
+ - [CRUD Táblázat Példa](docs/EXAMPLES.md#admin-táblázat-crud)
140
+ - [Vueform Integráció](docs/EXAMPLES.md#cikkválasztó-űrlap)
141
+ - [User Auth Pattern](docs/EXAMPLES.md#felhasználó-kezelés)
142
+ - [Komponens Hozzáadása](docs/DEVELOPMENT.md#komponens-hozzáadása)
143
+ - [Service Létrehozása](docs/DEVELOPMENT.md#service-hozzáadása)
144
+ - [TypeScript Típusok](docs/API_REFERENCE.md)
145
+ - [Gyakori Hibák](docs/TROUBLESHOOTING.md)
146
+
147
+ ## 🔨 Fejlesztés
148
+
149
+ ```bash
150
+ npm install # Függőségek
151
+ npm run dev # Dev szerver (App.vue demo)
152
+ npm run build # Library build
153
+ npm run preview # Preview build
154
+ ```
155
+
156
+ ## 💡 Példák
157
+
158
+ Nézd meg az `src/App.vue` fájlt működő példákért minden komponenshez!
159
+
160
+ ---
161
+
162
+ Made with ❤️ for Hungarian content management systems