vlite3 1.5.11 → 1.5.13
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 +20 -8
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/CategoryManager/CategoryManager2.vue.js +1 -1
- package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +2 -2
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/index2.vue.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +7 -7
- package/components/PanZoomViewport/PanZoomViewport.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Splitter/Splitter.vue.d.ts +7 -0
- package/components/Splitter/Splitter.vue.js +33 -29
- package/components/Tabes/Tabes.vue.js +2 -2
- package/docs/README.md +17 -0
- package/docs/all-components.md +89 -0
- package/docs/component-index.md +313 -0
- package/docs/components/accordion.md +52 -0
- package/docs/components/alert.md +34 -0
- package/docs/components/app-shell.md +371 -0
- package/docs/components/async-select.md +264 -0
- package/docs/components/attachments-list.md +231 -0
- package/docs/components/avatar-group.md +74 -0
- package/docs/components/avatar-uploader.md +61 -0
- package/docs/components/avatar.md +28 -0
- package/docs/components/badge.md +81 -0
- package/docs/components/barcode.md +42 -0
- package/docs/components/beacon.md +29 -0
- package/docs/components/breadcrumb.md +317 -0
- package/docs/components/button-group.md +35 -0
- package/docs/components/button.md +86 -0
- package/docs/components/calendar.md +95 -0
- package/docs/components/carousel.md +122 -0
- package/docs/components/cart.md +533 -0
- package/docs/components/category-manager.md +269 -0
- package/docs/components/category-menu.md +251 -0
- package/docs/components/charts.md +1456 -0
- package/docs/components/chat.md +330 -0
- package/docs/components/checkbox.md +31 -0
- package/docs/components/chip.md +137 -0
- package/docs/components/choice-box.md +40 -0
- package/docs/components/clipboard.md +105 -0
- package/docs/components/clock.md +70 -0
- package/docs/components/color-picker.md +82 -0
- package/docs/components/command-palette.md +214 -0
- package/docs/components/comment-thread.md +171 -0
- package/docs/components/confirmation-modal.md +50 -0
- package/docs/components/custom-fields-display.md +94 -0
- package/docs/components/custom-fields.md +97 -0
- package/docs/components/data-list.md +93 -0
- package/docs/components/data-table.md +922 -0
- package/docs/components/date-picker.md +58 -0
- package/docs/components/date-range-picker.md +24 -0
- package/docs/components/date-time.md +104 -0
- package/docs/components/dropdown.md +740 -0
- package/docs/components/empty.md +100 -0
- package/docs/components/export-data.md +320 -0
- package/docs/components/file-picker.md +83 -0
- package/docs/components/file-preview.md +42 -0
- package/docs/components/file-tree.md +144 -0
- package/docs/components/footer.md +251 -0
- package/docs/components/forms.md +776 -0
- package/docs/components/gantt-chart.md +767 -0
- package/docs/components/google-login.md +67 -0
- package/docs/components/google-map.md +128 -0
- package/docs/components/heatmap.md +80 -0
- package/docs/components/icon-picker.md +58 -0
- package/docs/components/icon.md +176 -0
- package/docs/components/image-comparison.md +51 -0
- package/docs/components/image-magnifier.md +26 -0
- package/docs/components/import-data.md +521 -0
- package/docs/components/input.md +58 -0
- package/docs/components/invoice.md +339 -0
- package/docs/components/kanban.md +302 -0
- package/docs/components/label.md +25 -0
- package/docs/components/list.md +419 -0
- package/docs/components/masonry.md +55 -0
- package/docs/components/modal.md +133 -0
- package/docs/components/multi-select.md +54 -0
- package/docs/components/navbar.md +403 -0
- package/docs/components/number-input.md +41 -0
- package/docs/components/otp-input.md +68 -0
- package/docs/components/pagination.md +83 -0
- package/docs/components/pan-zoom-viewport.md +245 -0
- package/docs/components/permission-editor.md +322 -0
- package/docs/components/persona.md +56 -0
- package/docs/components/price.md +106 -0
- package/docs/components/pricing-plan.md +68 -0
- package/docs/components/progress-bar.md +53 -0
- package/docs/components/qr-code.md +59 -0
- package/docs/components/rating.md +59 -0
- package/docs/components/rich-text-editor.md +210 -0
- package/docs/components/scale-generator.md +101 -0
- package/docs/components/screen.md +208 -0
- package/docs/components/seo-provider.md +189 -0
- package/docs/components/side-panel.md +94 -0
- package/docs/components/sidebar-menu.md +422 -0
- package/docs/components/skeleton.md +115 -0
- package/docs/components/slider.md +48 -0
- package/docs/components/spinner.md +27 -0
- package/docs/components/splitter.md +97 -0
- package/docs/components/stats.md +234 -0
- package/docs/components/status-chip.md +232 -0
- package/docs/components/switch.md +23 -0
- package/docs/components/tabs.md +335 -0
- package/docs/components/tag-input.md +55 -0
- package/docs/components/textarea.md +31 -0
- package/docs/components/theme-provider.md +130 -0
- package/docs/components/theme-toggle.md +36 -0
- package/docs/components/thumbnail-selector.md +186 -0
- package/docs/components/timeline.md +225 -0
- package/docs/components/toast-notification.md +89 -0
- package/docs/components/tooltip.md +31 -0
- package/docs/components/workbook.md +102 -0
- package/docs/composables/use-theme.md +59 -0
- package/docs/getting-started/setup.md +176 -0
- package/docs/guides/draggable.md +211 -0
- package/docs/guides/internationalization.md +281 -0
- package/docs/guides/performance.md +118 -0
- package/docs/guides/testing-forms.md +154 -0
- package/docs/guides/testing-overlays.md +131 -0
- package/docs/guides/theming.md +124 -0
- package/docs/utilities/search.md +580 -0
- package/docs/utilities/utilities.md +371 -0
- package/docs-manifest.json +339 -0
- package/package.json +6 -15
- package/scripts/generate-docs-manifest.js +207 -0
- package/scripts/sync-docs.js +754 -0
- package/style.css +1 -1
- /package/components/Dropdown/{DropdownMenu2.vue.js → DropdownMenu3.vue.js} +0 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
# vlite3 — Complete Component & Docs Index
|
|
2
|
+
|
|
3
|
+
Single entry point for AI agents and developers. Find any vlite3 / ERP UI doc from this file — do not hunt folder by folder.
|
|
4
|
+
|
|
5
|
+
**Import pattern:**
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { Button, Input, Form } from 'vlite3'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## How to use this file
|
|
14
|
+
|
|
15
|
+
1. Search this page for the component or topic name.
|
|
16
|
+
2. Read **Purpose** / **Use when** to confirm it fits the job.
|
|
17
|
+
3. Open the linked doc for props, API, and examples.
|
|
18
|
+
4. Prefer the linked source of truth over inventing APIs.
|
|
19
|
+
|
|
20
|
+
| Area | Path |
|
|
21
|
+
| :--- | :--- |
|
|
22
|
+
| Components | [`components/`](./components/) |
|
|
23
|
+
| Testing guides | [`guides/`](./guides/) |
|
|
24
|
+
| Platform / ERP docs | [`./`](./) (root of `docs/erp`) |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Quick lookup (A–Z)
|
|
29
|
+
|
|
30
|
+
| Name | Kind | Purpose (one line) | Doc |
|
|
31
|
+
| :--- | :--- | :--- | :--- |
|
|
32
|
+
| Accordion | Core | Show/hide long content sections without leaving the page | [Accordion.md](./components/accordion.md) |
|
|
33
|
+
| Alert | Core | Inline success/warning/error/info banners on a page or form | [Alert.md](./components/alert.md) |
|
|
34
|
+
| AppShell | Advanced | Full app chrome: sidebar + header + content + mobile drawer | [AppShell.md](./components/app-shell.md) |
|
|
35
|
+
| AsyncSelect | Core | Searchable dropdown that loads large lists from the API | [AsyncSelect.md](./components/async-select.md) · [1-Selects.md](./1-Selects.md) |
|
|
36
|
+
| AttachmentsList | Core | Show uploaded files with download + inline preview | [AttachmentsList.md](./components/attachments-list.md) |
|
|
37
|
+
| Avatar | Core | Show a user’s photo or initials | [Avatar.md](./components/avatar.md) |
|
|
38
|
+
| AvatarGroup | Core | Stack many people (team, assignees) with “+N” overflow | [AvatarGroup.md](./components/avatar-group.md) |
|
|
39
|
+
| AvatarUploader | Core | Let a user crop/upload a profile picture | [AvatarUploader.md](./components/avatar-uploader.md) |
|
|
40
|
+
| Badge | Core | Tiny status/count label next to text or icons | [Badge.md](./components/badge.md) |
|
|
41
|
+
| Barcode | Core | Render product/SKU barcodes for print or screen | [Barcode.md](./components/barcode.md) |
|
|
42
|
+
| Beacon | Core | Pulsing “new / attention” dot on icons or menus | [Beacon.md](./components/beacon.md) |
|
|
43
|
+
| Breadcrumb | Core | Show where the user is in the page hierarchy | [Breadcrumb.md](./components/breadcrumb.md) |
|
|
44
|
+
| Button | Core | Primary UI actions (save, submit, navigate) | [Button.md](./components/button.md) |
|
|
45
|
+
| ButtonGroup | Core | Related actions packed as one control | [ButtonGroup.md](./components/button-group.md) |
|
|
46
|
+
| Calendar | Advanced | Schedule/events UI (month, week, day + drag) | [Calendar.md](./components/calendar.md) |
|
|
47
|
+
| Carousel | Core | Swipe/slide through images or cards | [Carousel.md](./components/carousel.md) |
|
|
48
|
+
| Cart | Advanced | Shopping / POS cart with totals and variants | [Cart.md](./components/cart.md) |
|
|
49
|
+
| CategoryManager | Advanced | Create/edit/reorder nested category trees | [CategoryManager.md](./components/category-manager.md) |
|
|
50
|
+
| CategoryMenu | Advanced | Read-only category navigation (tabs, mega, sidebar) | [CategoryMenu.md](./components/category-menu.md) |
|
|
51
|
+
| Charts | Advanced | Dashboards: line, bar, pie, gauge, etc. (SVG) | [Charts.md](./components/charts.md) |
|
|
52
|
+
| Chat | Core | Real-time or threaded messaging UI | [Chat.md](./components/chat.md) |
|
|
53
|
+
| CheckBox | Core | Yes/no or multi-option toggles in forms | [CheckBox.md](./components/checkbox.md) |
|
|
54
|
+
| Chip | Core | Compact filter/tag/status pill | [Chip.md](./components/chip.md) |
|
|
55
|
+
| ChoiceBox | Core | Pick one (or styled) option from a set of choices | [ChoiceBox.md](./components/choice-box.md) |
|
|
56
|
+
| Clipboard | Core | One-click copy (IDs, codes, links) with feedback | [Clipboard.md](./components/clipboard.md) |
|
|
57
|
+
| Clock | Core | Live clock/date display (dashboards, kiosks) | [Clock.md](./components/clock.md) |
|
|
58
|
+
| ColorPicker | Core | Choose a brand/theme/status color | [ColorPicker.md](./components/color-picker.md) |
|
|
59
|
+
| CommandPalette | Advanced | ⌘K jump-to-page / run action search | [CommandPalette.md](./components/command-palette.md) |
|
|
60
|
+
| CommentThread | Core | Nested comments (tickets, PRs, docs) | [CommentThread.md](./components/comment-thread.md) |
|
|
61
|
+
| ConfirmationModal | Core | “Are you sure?” before delete/approve/etc. | [ConfirmationModal.md](./components/confirmation-modal.md) |
|
|
62
|
+
| CustomFields | Core | Edit dynamic key/value or repeater field rows | [CustomFields.md](./components/custom-fields.md) |
|
|
63
|
+
| CustomFieldsDisplay | Advanced | Read-only view of custom field values | [CustomFieldsDisplay.md](./components/custom-fields-display.md) |
|
|
64
|
+
| DataList | Core | Card/list rendering of many items with slots | [DataList.md](./components/data-list.md) |
|
|
65
|
+
| DataTable | Core | Enterprise tables: sort, filter, select, tree, pages | [DataTable.md](./components/data-table.md) |
|
|
66
|
+
| DatePicker | Core | Pick a date (or week) in forms/filters | [DatePicker.md](./components/date-picker.md) |
|
|
67
|
+
| DateRangePicker | Advanced | Pick a start–end date range (reports, filters) | [DateRangePicker.md](./components/date-range-picker.md) |
|
|
68
|
+
| DateTime | Core | Format and display dates/times consistently | [DateTime.md](./components/date-time.md) |
|
|
69
|
+
| Dropdown | Core | Single-select menus, nested actions, remote search | [Dropdown.md](./components/dropdown.md) |
|
|
70
|
+
| Empty | Core | Friendly “no data yet” placeholders | [Empty.md](./components/empty.md) |
|
|
71
|
+
| ExportData | Advanced | Download table data as Excel / CSV / JSON | [ExportData.md](./components/export-data.md) |
|
|
72
|
+
| FilePicker | Core | Upload one or many files from the device | [FilePicker.md](./components/file-picker.md) |
|
|
73
|
+
| FilePreview | Core | Preview PDF/images inside the app | [FilePreview.md](./components/file-preview.md) |
|
|
74
|
+
| FileTree | Advanced | Browse folders/files with select + search | [FileTree.md](./components/file-tree.md) |
|
|
75
|
+
| Footer | Advanced | Site footer: links, brand, social, legal | [Footer.md](./components/footer.md) |
|
|
76
|
+
| Form / Forms | Core | Schema-driven create/edit forms & wizards | [Forms.md](./components/forms.md) |
|
|
77
|
+
| GanttChart | Advanced | Project timeline / dependency schedule | [GanttChart.md](./components/gantt-chart.md) |
|
|
78
|
+
| GoogleLogin | Advanced | “Sign in with Google” button | [GoogleLogin.md](./components/google-login.md) |
|
|
79
|
+
| GoogleMap | Advanced | Embed maps with markers | [GoogleMap.md](./components/google-map.md) |
|
|
80
|
+
| Heatmap | Advanced | Activity density (GitHub-style or grid) | [Heatmap.md](./components/heatmap.md) |
|
|
81
|
+
| Icon | Core | Render lucide/iconify icons consistently | [Icon.md](./components/icon.md) |
|
|
82
|
+
| IconPicker | Core | Let admins pick an icon for a menu/status | [IconPicker.md](./components/icon-picker.md) |
|
|
83
|
+
| ImageComparison | Core | Before/after slider (AI edits, photo compare) | [ImageComparison.md](./components/image-comparison.md) |
|
|
84
|
+
| ImageMagnifier | Advanced | Hover/zoom product detail images | [ImageMagnifier.md](./components/image-magnifier.md) |
|
|
85
|
+
| ImportData | Advanced | Guided CSV/TSV bulk import wizard | [ImportData.md](./components/import-data.md) |
|
|
86
|
+
| Input | Core | Single-line text fields in forms | [Input.md](./components/input.md) |
|
|
87
|
+
| Invoice | Advanced | Printable invoice / receipt layouts | [Invoice.md](./components/invoice.md) |
|
|
88
|
+
| Kanban | Advanced | Drag cards across workflow columns | [Kanban.md](./components/kanban.md) |
|
|
89
|
+
| Label | Core | Accessible field labels | [Label.md](./components/label.md) |
|
|
90
|
+
| List | Core | Detail-page key/value info grids | [List.md](./components/list.md) |
|
|
91
|
+
| Masonry | Advanced | Pinterest-style uneven image/card grids | [Masonry.md](./components/masonry.md) |
|
|
92
|
+
| Modal | Core | Dialogs for forms, details, or confirmations | [Modal.md](./components/modal.md) |
|
|
93
|
+
| MultiSelect | Core | Pick many values from a list | [MultiSelect.md](./components/multi-select.md) |
|
|
94
|
+
| Navbar | Advanced | Top horizontal navigation bar | [Navbar.md](./components/navbar.md) |
|
|
95
|
+
| NumberInput | Core | Numeric amounts with steppers/validation | [NumberInput.md](./components/number-input.md) |
|
|
96
|
+
| OTPInput | Core | SMS/email verification code entry | [OTPInput.md](./components/otp-input.md) |
|
|
97
|
+
| Pagination | Core | Move between pages of results | [Pagination.md](./components/pagination.md) |
|
|
98
|
+
| PermissionEditor | Advanced | Grant/revoke role permissions in admin | [PermissionEditor.md](./components/permission-editor.md) |
|
|
99
|
+
| Persona | Core | Person cell: avatar + name + presence | [Persona.md](./components/persona.md) |
|
|
100
|
+
| Price | Core | Display money in the right currency format | [Price.md](./components/price.md) |
|
|
101
|
+
| PricingPlan | Advanced | SaaS pricing cards / plan comparison | [PricingPlan.md](./components/pricing-plan.md) |
|
|
102
|
+
| ProgressBar | Core | Show % complete or indeterminate loading | [ProgressBar.md](./components/progress-bar.md) |
|
|
103
|
+
| QRCode | Core | Generate/show QR codes (payments, links) | [QRCode.md](./components/qr-code.md) |
|
|
104
|
+
| Rating | Core | Star ratings and review summaries | [Rating.md](./components/rating.md) |
|
|
105
|
+
| RichTextEditor | Advanced | WYSIWYG HTML notes / descriptions | [RichTextEditor.md](./components/rich-text-editor.md) |
|
|
106
|
+
| Screen | Core | Standard list/CRUD page shell (search, filters, add) | [Screen.md](./components/screen.md) |
|
|
107
|
+
| SidebarMenu | Core | Nested app sidebar navigation | [SidebarMenu.md](./components/sidebar-menu.md) |
|
|
108
|
+
| SidePanel | Core | Slide-over panel for filters/details/forms | [SidePanel.md](./components/side-panel.md) |
|
|
109
|
+
| Skeleton | Core | Loading placeholders shaped like real UI | [Skeleton.md](./components/skeleton.md) |
|
|
110
|
+
| Slider | Core | Drag to pick a numeric range/value | [Slider.md](./components/slider.md) |
|
|
111
|
+
| Spinner | Core | Small loading indicator | [Spinner.md](./components/spinner.md) |
|
|
112
|
+
| Splitter | Core | Resizable two-pane layouts (IDE-style) | [Splitter.md](./components/splitter.md) |
|
|
113
|
+
| Stats | Core | KPI / metric cards on dashboards | [Stats.md](./components/stats.md) |
|
|
114
|
+
| StatusActionMenu | ERP | Change status / approve / reject with optional form | [0-StatusActionMenu.md](./0-StatusActionMenu.md) |
|
|
115
|
+
| StatusChip | Core | Map status strings → colored chips automatically | [StatusChip.md](./components/status-chip.md) |
|
|
116
|
+
| Switch | Core | On/off settings toggles | [Switch.md](./components/switch.md) |
|
|
117
|
+
| Tabes | Core | Switch views/modes with tabs | [Tabes.md](./components/tabs.md) |
|
|
118
|
+
| TagInput | Core | Enter free-form tags/keywords | [TagInput.md](./components/tag-input.md) |
|
|
119
|
+
| Textarea | Core | Multi-line notes/comments | [Textarea.md](./components/textarea.md) |
|
|
120
|
+
| ThemeToggle | Core | Switch light ↔ dark theme | [ThemeToggle.md](./components/theme-toggle.md) |
|
|
121
|
+
| ThumbnailSelector | Advanced | Upload/reorder product images + pick primary | [ThumbnailSelector.md](./components/thumbnail-selector.md) |
|
|
122
|
+
| Timeline | Core | History of events / approval steps | [Timeline.md](./components/timeline.md) |
|
|
123
|
+
| ToastNotification | Core | Temporary success/error toasts after actions | [ToastNotification.md](./components/toast-notification.md) |
|
|
124
|
+
| Tooltip | Core | Extra hint on hover/focus | [Tooltip.md](./components/tooltip.md) |
|
|
125
|
+
| Workbook | Advanced | Multi-sheet tabs like a spreadsheet workbook | [Workbook.md](./components/workbook.md) |
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 1. Core components
|
|
130
|
+
|
|
131
|
+
### Actions & navigation
|
|
132
|
+
|
|
133
|
+
| Component | Purpose | Use when… | Doc |
|
|
134
|
+
| :--- | :--- | :--- | :--- |
|
|
135
|
+
| **Button** | Clickable action control with variants, icons, loading | Submitting forms, opening modals, navigation CTAs | [Button.md](./components/button.md) |
|
|
136
|
+
| **ButtonGroup** | Visually groups related buttons as one unit | Export / print / more actions that belong together | [ButtonGroup.md](./components/button-group.md) |
|
|
137
|
+
| **Breadcrumb** | Shows the path from home → current page | Deep modules (Inventory → Warehouses → Bin detail) | [Breadcrumb.md](./components/breadcrumb.md) |
|
|
138
|
+
| **Clipboard** | Copies text and shows brief success feedback | Copying invoice #, tracking ID, API keys, share links | [Clipboard.md](./components/clipboard.md) |
|
|
139
|
+
| **SidebarMenu** | Recursive left/top navigation tree | App modules, nested menus, badges for counts | [SidebarMenu.md](./components/sidebar-menu.md) |
|
|
140
|
+
| **SidePanel** | Slide-over panel from the edge of the screen | Filters, quick edit, details without leaving the list | [SidePanel.md](./components/side-panel.md) |
|
|
141
|
+
| **Tabes** | Segmented tabs to switch modes/views | List vs board, Overview vs Settings, dropdown-tabs | [Tabes.md](./components/tabs.md) |
|
|
142
|
+
| **ThemeToggle** | Toggles light/dark using `useTheme` | Settings header, user preference controls | [ThemeToggle.md](./components/theme-toggle.md) |
|
|
143
|
+
|
|
144
|
+
### Inputs & forms
|
|
145
|
+
|
|
146
|
+
| Component | Purpose | Use when… | Doc |
|
|
147
|
+
| :--- | :--- | :--- | :--- |
|
|
148
|
+
| **Input** | Single-line text entry | Names, emails, codes, search boxes | [Input.md](./components/input.md) |
|
|
149
|
+
| **Textarea** | Multi-line text entry | Notes, descriptions, rejection reasons | [Textarea.md](./components/textarea.md) |
|
|
150
|
+
| **NumberInput** | Numeric entry with constraints | Qty, rates, percentages, sequenced numbers | [NumberInput.md](./components/number-input.md) |
|
|
151
|
+
| **CheckBox** | Boolean or multi-check options | Agree terms, select rows, feature flags | [CheckBox.md](./components/checkbox.md) |
|
|
152
|
+
| **Switch** | Immediate on/off toggle | Enable notifications, active/inactive flags | [Switch.md](./components/switch.md) |
|
|
153
|
+
| **ChoiceBox** | Styled option picker for a fixed set | Payment method, shipping type, plan tier | [ChoiceBox.md](./components/choice-box.md) |
|
|
154
|
+
| **Slider** | Drag to choose a number in a range | Discount %, opacity, volume, score filters | [Slider.md](./components/slider.md) |
|
|
155
|
+
| **OTPInput** | Digit boxes for one-time codes | Login 2FA, phone verify, password reset | [OTPInput.md](./components/otp-input.md) |
|
|
156
|
+
| **DatePicker** | Calendar date (or week) selection | Due dates, DOB, posting date, week filters | [DatePicker.md](./components/date-picker.md) |
|
|
157
|
+
| **ColorPicker** | Pick a color value | Status colors, brand themes, labels | [ColorPicker.md](./components/color-picker.md) |
|
|
158
|
+
| **FilePicker** | Select files from the device | Attachments on forms, document upload | [FilePicker.md](./components/file-picker.md) |
|
|
159
|
+
| **AvatarUploader** | Upload/crop a profile image | User settings, employee photo, org logo | [AvatarUploader.md](./components/avatar-uploader.md) |
|
|
160
|
+
| **IconPicker** | Browse and pick an icon | Custom menus, category icons, status icons | [IconPicker.md](./components/icon-picker.md) |
|
|
161
|
+
| **MultiSelect** | Select many items from options | Tags, roles, warehouses, multi-assignees | [MultiSelect.md](./components/multi-select.md) |
|
|
162
|
+
| **Dropdown** | Rich single-select / action menu | Status menus, nested actions, remote search lists | [Dropdown.md](./components/dropdown.md) |
|
|
163
|
+
| **AsyncSelect** | Paginated, searchable API-backed select | Customers, products, employees (thousands of rows) | [AsyncSelect.md](./components/async-select.md) |
|
|
164
|
+
| **TagInput** | Free-form list of string tags | Keywords, labels, skill tags, hashtags | [TagInput.md](./components/tag-input.md) |
|
|
165
|
+
| **Rating** | Collect or display star/icon scores | Product reviews, CSAT, quality scores | [Rating.md](./components/rating.md) |
|
|
166
|
+
| **CustomFields** | Edit schema-driven repeater / dynamic fields | Extra attributes that differ per tenant/module | [CustomFields.md](./components/custom-fields.md) |
|
|
167
|
+
| **Form** | Full schema form builder (validate, steps, deps) | Create/edit records, multi-step wizards, settings | [Forms.md](./components/forms.md) |
|
|
168
|
+
|
|
169
|
+
### Data display
|
|
170
|
+
|
|
171
|
+
| Component | Purpose | Use when… | Doc |
|
|
172
|
+
| :--- | :--- | :--- | :--- |
|
|
173
|
+
| **Accordion** | Expand/collapse content blocks | FAQs, dense settings groups, long side panels | [Accordion.md](./components/accordion.md) |
|
|
174
|
+
| **Avatar** | Face/initials of a person or entity | Tables, comments, headers, chat | [Avatar.md](./components/avatar.md) |
|
|
175
|
+
| **AvatarGroup** | Overlapping avatars + overflow count | Assignees, meeting attendees, team members | [AvatarGroup.md](./components/avatar-group.md) |
|
|
176
|
+
| **Badge** | Small colored count/status label | Unread counts, “New”, category marks | [Badge.md](./components/badge.md) |
|
|
177
|
+
| **Barcode** | Draw barcodes in many formats | Labels, packing slips, inventory SKUs | [Barcode.md](./components/barcode.md) |
|
|
178
|
+
| **Carousel** | Cycle through slides | Product galleries, banners, onboarding tips | [Carousel.md](./components/carousel.md) |
|
|
179
|
+
| **Chip** | Compact pill for status/filter/tag | Filters, removable tags, soft status labels | [Chip.md](./components/chip.md) |
|
|
180
|
+
| **StatusChip** | Auto-maps status text → color + icon | `pending`, `approved`, `in_progress` in tables | [StatusChip.md](./components/status-chip.md) |
|
|
181
|
+
| **DataList** | Flexible item list with custom item slots | Card grids, notification lists, simple feeds | [DataList.md](./components/data-list.md) |
|
|
182
|
+
| **DataTable** | Full-featured data grid | Master lists, reports, selectable bulk actions | [DataTable.md](./components/data-table.md) |
|
|
183
|
+
| **DateTime** | Consistent date/time formatting | Columns, detail pages, activity logs | [DateTime.md](./components/date-time.md) |
|
|
184
|
+
| **Empty** | Polished empty-state UI | First-use screens, zero search results | [Empty.md](./components/empty.md) |
|
|
185
|
+
| **FilePreview** | Inline viewer for files | Preview PDF/image in modal without download | [FilePreview.md](./components/file-preview.md) |
|
|
186
|
+
| **AttachmentsList** | List attachments with download + preview | Order docs, ticket files, expense receipts | [AttachmentsList.md](./components/attachments-list.md) |
|
|
187
|
+
| **Icon** | Consistent icon rendering | Buttons, menus, empty states, status icons | [Icon.md](./components/icon.md) |
|
|
188
|
+
| **ImageComparison** | Before/after image slider | AI generate vs original, photo retouch demos | [ImageComparison.md](./components/image-comparison.md) |
|
|
189
|
+
| **Label** | Text label for inputs | Accessibility + form field labeling | [Label.md](./components/label.md) |
|
|
190
|
+
| **List** | Schema-driven key/value detail layout | Record detail pages, customer profile summary | [List.md](./components/list.md) |
|
|
191
|
+
| **Pagination** | Page navigation controls | Tables, search results, feeds | [Pagination.md](./components/pagination.md) |
|
|
192
|
+
| **Persona** | Avatar + name + optional online status | Mentions, owners, chat headers | [Persona.md](./components/persona.md) |
|
|
193
|
+
| **Price** | Locale-aware currency display | Amounts in tables, carts, invoices | [Price.md](./components/price.md) |
|
|
194
|
+
| **QRCode** | Generate or show a QR image | Payment links, ticket check-in, share URLs | [QRCode.md](./components/qr-code.md) |
|
|
195
|
+
| **Stats** | Metric / KPI cards | Dashboard totals, trends, comparisons | [Stats.md](./components/stats.md) |
|
|
196
|
+
| **Timeline** | Ordered event/history trail | Approvals, shipment tracking, audit trail | [Timeline.md](./components/timeline.md) |
|
|
197
|
+
| **Clock** | Live updating clock | POS terminals, dashboards, attendance screens | [Clock.md](./components/clock.md) |
|
|
198
|
+
|
|
199
|
+
### Feedback & overlays
|
|
200
|
+
|
|
201
|
+
| Component | Purpose | Use when… | Doc |
|
|
202
|
+
| :--- | :--- | :--- | :--- |
|
|
203
|
+
| **Alert** | Persistent inline message banner | Form errors, policy notices, success on page | [Alert.md](./components/alert.md) |
|
|
204
|
+
| **Beacon** | Pulsing attention indicator | “New feature”, unread bell badge, tips | [Beacon.md](./components/beacon.md) |
|
|
205
|
+
| **Modal** | Centered dialog overlay | Create/edit forms, detail popups, wizards | [Modal.md](./components/modal.md) |
|
|
206
|
+
| **ConfirmationModal** | Confirm before a destructive/important action | Delete, void invoice, reject with certainty | [ConfirmationModal.md](./components/confirmation-modal.md) |
|
|
207
|
+
| **ToastNotification** | Short global toast via `showToast` | Saved, failed API, copied, background job done | [ToastNotification.md](./components/toast-notification.md) |
|
|
208
|
+
| **Tooltip** | Extra help on hover/focus | Truncated text, icon-only buttons, abbreviations | [Tooltip.md](./components/tooltip.md) |
|
|
209
|
+
| **ProgressBar** | Visual progress (linear/circular) | Uploads, imports, multi-step completion | [ProgressBar.md](./components/progress-bar.md) |
|
|
210
|
+
| **Spinner** | Compact loading spinner | Button loading, section fetch, overlays | [Spinner.md](./components/spinner.md) |
|
|
211
|
+
| **Skeleton** | Layout-shaped loading placeholders | Avoid layout jump while data loads | [Skeleton.md](./components/skeleton.md) |
|
|
212
|
+
|
|
213
|
+
### Layout & communication
|
|
214
|
+
|
|
215
|
+
| Component | Purpose | Use when… | Doc |
|
|
216
|
+
| :--- | :--- | :--- | :--- |
|
|
217
|
+
| **Screen** | Standard ERP list/CRUD page shell | Almost every module list page (search, filters, add, empty) | [Screen.md](./components/screen.md) |
|
|
218
|
+
| **Splitter** | User-resizable side-by-side panels | Master-detail, code+preview, map+list | [Splitter.md](./components/splitter.md) |
|
|
219
|
+
| **Chat** | Flat messaging UI with attachments & edit/delete | Support chat, internal messaging, AI assistants | [Chat.md](./components/chat.md) |
|
|
220
|
+
| **CommentThread** | Nested reply trees (not flat chat) | Tickets, PRs, document review discussions | [CommentThread.md](./components/comment-thread.md) |
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## 2. Advanced components
|
|
225
|
+
|
|
226
|
+
| Component | Purpose | Use when… | Doc |
|
|
227
|
+
| :--- | :--- | :--- | :--- |
|
|
228
|
+
| **AppShell** | Orchestrates whole-app layout (sidebar, header, content, mobile drawer) | Building the authenticated app frame once | [AppShell.md](./components/app-shell.md) |
|
|
229
|
+
| **Navbar** | Horizontal top navigation only | Landing pages, simple dashboards (prefer AppShell for full apps) | [Navbar.md](./components/navbar.md) |
|
|
230
|
+
| **Footer** | Data-driven site footer | Marketing sites, public portals, help centers | [Footer.md](./components/footer.md) |
|
|
231
|
+
| **CommandPalette** | Keyboard-first search to jump to pages/actions | Power-user navigation across a large ERP | [CommandPalette.md](./components/command-palette.md) |
|
|
232
|
+
| **Calendar** | Event calendar with month/week/day + drag-drop | Appointments, leave, production schedules | [Calendar.md](./components/calendar.md) |
|
|
233
|
+
| **Cart** | Cart with line items, quantities, totals (e‑com + POS variants) | Checkout, POS selling, quote builders | [Cart.md](./components/cart.md) |
|
|
234
|
+
| **CategoryManager** | Admin UI to CRUD nested categories | Product categories, chart of accounts folders, menus | [CategoryManager.md](./components/category-manager.md) |
|
|
235
|
+
| **CategoryMenu** | Read-only presentation of a category tree | Storefront nav, mega menus, sidebar browse | [CategoryMenu.md](./components/category-menu.md) |
|
|
236
|
+
| **Charts** | SVG chart suite (line, bar, pie, gauge, …) | Analytics dashboards without heavy chart libs | [Charts.md](./components/charts.md) |
|
|
237
|
+
| **CustomFieldsDisplay** | Read-only layouts for custom field values | Detail pages after saving CustomFields data | [CustomFieldsDisplay.md](./components/custom-fields-display.md) |
|
|
238
|
+
| **DateRangePicker** | Pick inclusive start and end dates | Reports, ledgers, attendance ranges | [DateRangePicker.md](./components/date-range-picker.md) |
|
|
239
|
+
| **ExportData** | Export arrays to Excel / CSV / JSON (browser or backend) | “Download report”, table export buttons | [ExportData.md](./components/export-data.md) |
|
|
240
|
+
| **ImportData** | Multi-step CSV/TSV import (map → validate → batch) | Bulk customer/product/opening-balance import | [ImportData.md](./components/import-data.md) |
|
|
241
|
+
| **FileTree** | Hierarchical file/folder browser | Document repos, media libraries, org trees | [FileTree.md](./components/file-tree.md) |
|
|
242
|
+
| **GanttChart** | Project schedule bars over time | Project plans, resource timelines | [GanttChart.md](./components/gantt-chart.md) |
|
|
243
|
+
| **GoogleLogin** | Google OAuth sign-in button | Login / signup with Google | [GoogleLogin.md](./components/google-login.md) |
|
|
244
|
+
| **GoogleMap** | Embed Google Maps + markers | Delivery locations, store finder, geotags | [GoogleMap.md](./components/google-map.md) |
|
|
245
|
+
| **Heatmap** | Density / activity visualization | Usage calendars, warehouse occupancy, intensity maps | [Heatmap.md](./components/heatmap.md) |
|
|
246
|
+
| **ImageMagnifier** | Zoom into an image on hover/interaction | Product detail pages, quality inspection | [ImageMagnifier.md](./components/image-magnifier.md) |
|
|
247
|
+
| **Invoice** | Invoice/receipt rendering engine (multiple print layouts) | Sales invoices, POS receipts, service bills | [Invoice.md](./components/invoice.md) |
|
|
248
|
+
| **Kanban** | Drag cards across columns with infinite scroll | Task boards, deal pipelines, production stages | [Kanban.md](./components/kanban.md) |
|
|
249
|
+
| **Masonry** | Uneven-height responsive grid | Galleries, media browsers, Pinterest-like UIs | [Masonry.md](./components/masonry.md) |
|
|
250
|
+
| **PermissionEditor** | Edit one role’s granted permissions | Admin → Roles → Permissions screen | [PermissionEditor.md](./components/permission-editor.md) |
|
|
251
|
+
| **PricingPlan** | Compare subscription/pricing plans | Billing pages, plan upgrade screens | [PricingPlan.md](./components/pricing-plan.md) |
|
|
252
|
+
| **RichTextEditor** | Lightweight HTML WYSIWYG (+ reader) | Product descriptions, knowledge base, emails | [RichTextEditor.md](./components/rich-text-editor.md) |
|
|
253
|
+
| **ThumbnailSelector** | Multi-image upload, reorder, set primary thumb | Product images, listing media, gallery manage | [ThumbnailSelector.md](./components/thumbnail-selector.md) |
|
|
254
|
+
| **Workbook** | Spreadsheet-like sheet tabs (rename, reorder, duplicate) | Multi-sheet reports, Excel-like UIs | [Workbook.md](./components/workbook.md) |
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## 3. Guides (`guides/`)
|
|
259
|
+
|
|
260
|
+
| Guide | Purpose | Use when… | Doc |
|
|
261
|
+
| :--- | :--- | :--- | :--- |
|
|
262
|
+
| **Testing Forms** | How vlite3 auto `data-testid`s make forms testable | Writing Playwright / Vitest tests for Form fields | [Testing-Forms.md](./guides/testing-forms.md) |
|
|
263
|
+
| **Testing Overlays** | How to query teleported Modal / SidePanel / Confirm | E2E tests that open overlays outside the Vue root | [Testing-Overlays.md](./guides/testing-overlays.md) |
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## 4. Platform, utilities & ERP docs
|
|
268
|
+
|
|
269
|
+
| Doc | Purpose | Use when… | Link |
|
|
270
|
+
| :--- | :--- | :--- | :--- |
|
|
271
|
+
| **ERP Web** | Frontend architecture, modules, patterns for agents | Starting any new ERP frontend feature | [0-erp-web.md](./0-erp-web.md) |
|
|
272
|
+
| **Apollo / GraphQL** | vue-apollo-client setup (typed ops, tokens, SSR) | Queries, mutations, auth cookies | [0-Apollo-setup.md](./0-Apollo-setup.md), [0-Apollo.md](./0-Apollo.md) |
|
|
273
|
+
| **StatusActionMenu** | Standardized status / approve / reject menu (ERP) | Row actions that change workflow status | [0-StatusActionMenu.md](./0-StatusActionMenu.md) |
|
|
274
|
+
| **Selects** | Deep dive for AsyncSelect patterns | Building customer/product async dropdowns | [1-Selects.md](./1-Selects.md) |
|
|
275
|
+
| **Theming** | Design tokens, Tailwind v4, dark mode | Changing brand colors / theme behavior | [2-theming.md](./guides/theming.md) |
|
|
276
|
+
| **Utility / Composables** | Shared composables (`useKeyStroke`, etc.) | Keyboard shortcuts and reusable logic | [5-utility.md](./utilities/utilities.md) |
|
|
277
|
+
| **Performance** | Strict Vue 3 performance rules for this repo | Writing or reviewing Vue code | [6-performance.md](./guides/performance.md) |
|
|
278
|
+
| **i18n** | Register a translation handler for vlite3 | Multi-language apps | [7-i18n-setup.md](./7-i18n-setup.md), [7-i18n.md](./guides/internationalization.md) |
|
|
279
|
+
| **Search util** | Fast typed `search` / `lazySearch` utilities | Client-side search indexes | [8-search-util.md](./utilities/search.md) |
|
|
280
|
+
| **Draggable** | Vue draggable patterns | Sortable lists, Kanban-like reorder | [9-draggable.md](./guides/draggable.md) |
|
|
281
|
+
| **Design** | Design-system tokens | Visual consistency / token reference | [Design.md](./Design.md) |
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Related pairs (pick the right tool)
|
|
286
|
+
|
|
287
|
+
| Need | Prefer | Also see |
|
|
288
|
+
| :--- | :--- | :--- |
|
|
289
|
+
| Full authenticated app chrome | [AppShell](./components/app-shell.md) | [Navbar](./components/navbar.md), [SidebarMenu](./components/sidebar-menu.md), [SidePanel](./components/side-panel.md) |
|
|
290
|
+
| Standard list / CRUD page | [Screen](./components/screen.md) | [DataTable](./components/data-table.md), [Empty](./components/empty.md) |
|
|
291
|
+
| Create/edit record form | [Forms](./components/forms.md) | [CustomFields](./components/custom-fields.md), [Testing-Forms](./guides/testing-forms.md) |
|
|
292
|
+
| Large API-backed dropdown | [AsyncSelect](./components/async-select.md) | [1-Selects.md](./1-Selects.md), [Dropdown](./components/dropdown.md) |
|
|
293
|
+
| Edit categories vs browse them | [CategoryManager](./components/category-manager.md) | [CategoryMenu](./components/category-menu.md) |
|
|
294
|
+
| Edit custom fields vs show them | [CustomFields](./components/custom-fields.md) | [CustomFieldsDisplay](./components/custom-fields-display.md) |
|
|
295
|
+
| Bulk import vs export | [ImportData](./components/import-data.md) | [ExportData](./components/export-data.md) |
|
|
296
|
+
| Flat chat vs nested discussion | [Chat](./components/chat.md) | [CommentThread](./components/comment-thread.md) |
|
|
297
|
+
| Show status vs change status | [StatusChip](./components/status-chip.md) | [StatusActionMenu](./0-StatusActionMenu.md) |
|
|
298
|
+
| Overlay testing | [Testing-Overlays](./guides/testing-overlays.md) | [Modal](./components/modal.md), [ConfirmationModal](./components/confirmation-modal.md) |
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Counts
|
|
303
|
+
|
|
304
|
+
| Section | Docs |
|
|
305
|
+
| :--- | ---: |
|
|
306
|
+
| Core components | 66 |
|
|
307
|
+
| Advanced components | 27 |
|
|
308
|
+
| Guides | 2 |
|
|
309
|
+
| Platform / utilities | 11 |
|
|
310
|
+
| **Total linked from this index** | **106** |
|
|
311
|
+
|
|
312
|
+
# Usage for agents
|
|
313
|
+
open the file to discover component.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Accordion
|
|
2
|
+
|
|
3
|
+
**Import:** `import { Accordion } from 'vlite3'`
|
|
4
|
+
|
|
5
|
+
### Props
|
|
6
|
+
|
|
7
|
+
| Prop | Type | Default | Description |
|
|
8
|
+
| :------------------ | :---------------------- | :-------- | :-------------------------------- |
|
|
9
|
+
| `modelValue` | `string \| string[]` | `[]` | Controlled value for open items |
|
|
10
|
+
| `defaultValue` | `string \| string[]` | `[]` | Initial value for open items |
|
|
11
|
+
| `items` | `AccordionItemSchema[]` | `[]` | Data source for items |
|
|
12
|
+
| `allowMultiple` | `boolean` | `false` | Allow multiple items open at once |
|
|
13
|
+
| `variant` | `AccordionVariant` | `default` | Visual style |
|
|
14
|
+
| `size` | `AccordionSize` | `md` | Size of trigger/content |
|
|
15
|
+
| `attached` | `boolean` | `false` | Remove spacing between items |
|
|
16
|
+
| `disabled` | `boolean` | `false` | Disable all interaction |
|
|
17
|
+
| `showIndex` | `boolean` | `false` | Show item number (1, 2...) |
|
|
18
|
+
| `openIcon` | `string` | — | Icon when open |
|
|
19
|
+
| `closeIcon` | `string` | — | Icon when closed |
|
|
20
|
+
| `iconVariant` | `IconVariant` | `simple` | Style of the toggle icon |
|
|
21
|
+
| `activeIconVariant` | `IconVariant` | — | Style when active |
|
|
22
|
+
| `class` | `string` | — | Custom class for container |
|
|
23
|
+
| `triggerClass` | `string` | — | Custom class for trigger |
|
|
24
|
+
| `contentClass` | `string` | — | Custom class for content |
|
|
25
|
+
| `itemClass` | `string` | — | Custom class for item wrapper |
|
|
26
|
+
|
|
27
|
+
### Types
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
export interface AccordionItemSchema {
|
|
31
|
+
id: string
|
|
32
|
+
title: string
|
|
33
|
+
titleI18n?: string
|
|
34
|
+
description?: string
|
|
35
|
+
descriptionI18n?: string
|
|
36
|
+
content?: string
|
|
37
|
+
icon?: string
|
|
38
|
+
disabled?: boolean
|
|
39
|
+
bodyComponent?: Component | any
|
|
40
|
+
[key: string]: any
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type AccordionVariant = 'default' | 'solid' | 'outline' | 'separated' | 'ghost'
|
|
44
|
+
export type AccordionSize = 'sm' | 'md' | 'lg'
|
|
45
|
+
export type IconVariant = 'simple' | 'solid' | 'outline' | 'primary' | 'ghost'
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Usage
|
|
49
|
+
|
|
50
|
+
```vue
|
|
51
|
+
<Accordion :items="items" variant="outline" allow-multiple attached show-index />
|
|
52
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Alert
|
|
2
|
+
|
|
3
|
+
**Import:** `import { Alert } from 'vlite3'`
|
|
4
|
+
|
|
5
|
+
### Props
|
|
6
|
+
|
|
7
|
+
| Prop | Type | Default | Description |
|
|
8
|
+
| :---------------- | :------------------------------ | :-------- | :----------------------------------- |
|
|
9
|
+
| `title` | `string` | — | Alert title |
|
|
10
|
+
| `titleI18n` | `string` | — | I18n translation key for title |
|
|
11
|
+
| `description` | `string` | — | Alert description |
|
|
12
|
+
| `descriptionI18n` | `string` | — | I18n key for description |
|
|
13
|
+
| `icon` | `string` | — | Custom icon (overrides variant icon) |
|
|
14
|
+
| `variant` | `AlertVariant` | `primary` | Visual style theme |
|
|
15
|
+
| `closable` | `boolean` | `false` | Show close button |
|
|
16
|
+
| `role` | `'alert' \| 'status' \| 'none'` | — | ARIA role |
|
|
17
|
+
| `class` | `string` | — | Custom classes |
|
|
18
|
+
|
|
19
|
+
### Types
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
export type AlertVariant = 'primary' | 'success' | 'warning' | 'danger'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Usage
|
|
26
|
+
|
|
27
|
+
```vue
|
|
28
|
+
<Alert
|
|
29
|
+
title="Payment Success"
|
|
30
|
+
description="Your transaction has been processed."
|
|
31
|
+
variant="success"
|
|
32
|
+
closable
|
|
33
|
+
@close="onClose" />
|
|
34
|
+
```
|