@awes-io/ui 2.142.3 → 2.143.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/CHANGELOG.md +24 -0
- package/assets/css/components/_index.css +7 -1
- package/assets/css/components/animation.css +38 -32
- package/assets/css/components/content-placeholder.css +103 -0
- package/assets/css/components/empty-container.css +69 -1
- package/assets/css/components/filter-chosen.css +6 -0
- package/assets/css/components/filter-date-range.css +17 -1
- package/assets/css/components/filter-month.css +23 -17
- package/assets/css/components/filter-select.css +11 -0
- package/assets/css/components/layout.css +1 -32
- package/assets/css/components/modal.css +1 -1
- package/assets/css/components/number.css +12 -0
- package/assets/css/components/page-aside.css +54 -0
- package/assets/js/css.js +1 -1
- package/assets/js/icons/mono.js +59 -91
- package/assets/js/icons/multicolor.js +1 -31
- package/components/1_atoms/AwContentPlaceholder.vue +60 -0
- package/components/1_atoms/AwFlow.vue +21 -48
- package/components/1_atoms/AwLabel.vue +1 -1
- package/components/2_molecules/AwButton.vue +1 -1
- package/components/2_molecules/AwEmptyContainer.vue +74 -72
- package/components/2_molecules/AwNumber.vue +180 -0
- package/components/2_molecules/AwSelect.vue +11 -4
- package/components/3_organisms/AwFilterChosen.vue +73 -0
- package/components/3_organisms/AwFilterDateRange.vue +177 -0
- package/components/3_organisms/AwFilterMonth.vue +37 -40
- package/components/3_organisms/AwFilterSelect.vue +368 -0
- package/components/3_organisms/AwMultiBlockBuilder.vue +1 -1
- package/components/3_organisms/AwTable/AwTableBuilder.vue +12 -60
- package/components/4_pages/AwPageAside.vue +108 -0
- package/components/5_layouts/AwLayoutCenter.vue +3 -8
- package/components/5_layouts/_AwUserMenu.vue +1 -1
- package/dist/css/aw-icons.css +26 -0
- package/dist/fonts/aw-icons.svg +18 -0
- package/dist/fonts/aw-icons.ttf +0 -0
- package/dist/fonts/aw-icons.woff +0 -0
- package/dist/fonts/aw-icons.woff2 +0 -0
- package/docs/_template.md +80 -0
- package/docs/components/atoms/aw-accordion-fold.md +91 -0
- package/docs/components/atoms/aw-action-card-body.md +67 -0
- package/docs/components/atoms/aw-action-card.md +94 -0
- package/docs/components/atoms/aw-action-icon.md +88 -0
- package/docs/components/atoms/aw-avatar.md +106 -0
- package/docs/components/atoms/aw-card.md +112 -0
- package/docs/components/atoms/aw-checkbox.md +112 -0
- package/docs/components/atoms/aw-content-placeholder.md +116 -0
- package/docs/components/atoms/aw-description.md +83 -0
- package/docs/components/atoms/aw-dock.md +84 -0
- package/docs/components/atoms/aw-dropdown-button.md +94 -0
- package/docs/components/atoms/aw-dropdown.md +128 -0
- package/docs/components/atoms/aw-file.md +73 -0
- package/docs/components/atoms/aw-flow.md +92 -0
- package/docs/components/atoms/aw-grid.md +91 -0
- package/docs/components/atoms/aw-headline.md +71 -0
- package/docs/components/atoms/aw-icon-system-color.md +121 -0
- package/docs/components/atoms/aw-icon-system-mono.md +205 -0
- package/docs/components/atoms/aw-icon.md +235 -0
- package/docs/components/atoms/aw-info.md +85 -0
- package/docs/components/atoms/aw-input.md +120 -0
- package/docs/components/atoms/aw-label.md +83 -0
- package/docs/components/atoms/aw-link.md +99 -0
- package/docs/components/atoms/aw-list.md +88 -0
- package/docs/components/atoms/aw-progress.md +70 -0
- package/docs/components/atoms/aw-radio.md +109 -0
- package/docs/components/atoms/aw-refresh-wrapper.md +81 -0
- package/docs/components/atoms/aw-select-native.md +106 -0
- package/docs/components/atoms/aw-slider.md +82 -0
- package/docs/components/atoms/aw-sub-headline.md +73 -0
- package/docs/components/atoms/aw-switcher.md +115 -0
- package/docs/components/atoms/aw-tag.md +80 -0
- package/docs/components/atoms/aw-title.md +70 -0
- package/docs/components/atoms/aw-toggler.md +69 -0
- package/docs/components/layouts/aw-layout-center.md +168 -0
- package/docs/components/layouts/aw-layout-error.md +153 -0
- package/docs/components/layouts/aw-layout-provider.md +238 -0
- package/docs/components/layouts/aw-layout.md +88 -0
- package/docs/components/molecules/aw-action-button.md +91 -0
- package/docs/components/molecules/aw-alert.md +96 -0
- package/docs/components/molecules/aw-badge.md +108 -0
- package/docs/components/molecules/aw-banner-text.md +90 -0
- package/docs/components/molecules/aw-button-nav.md +46 -0
- package/docs/components/molecules/aw-button.md +123 -0
- package/docs/components/molecules/aw-description-input.md +67 -0
- package/docs/components/molecules/aw-empty-container.md +86 -0
- package/docs/components/molecules/aw-island.md +234 -0
- package/docs/components/molecules/aw-number.md +138 -0
- package/docs/components/molecules/aw-select-object.md +401 -0
- package/docs/components/molecules/aw-select.md +215 -0
- package/docs/components/molecules/aw-tab-nav.md +108 -0
- package/docs/components/molecules/aw-tel.md +129 -0
- package/docs/components/molecules/aw-textarea.md +83 -0
- package/docs/components/molecules/aw-userpic.md +115 -0
- package/docs/components/organisms/aw-address-block.md +64 -0
- package/docs/components/organisms/aw-address.md +132 -0
- package/docs/components/organisms/aw-birthday-picker.md +73 -0
- package/docs/components/organisms/aw-bottom-bar.md +66 -0
- package/docs/components/organisms/aw-calendar-days.md +115 -0
- package/docs/components/organisms/aw-calendar-nav.md +98 -0
- package/docs/components/organisms/aw-calendar-view.md +98 -0
- package/docs/components/organisms/aw-calendar.md +166 -0
- package/docs/components/organisms/aw-chart.md +154 -0
- package/docs/components/organisms/aw-chip-select.md +164 -0
- package/docs/components/organisms/aw-chip.md +126 -0
- package/docs/components/organisms/aw-code-snippet.md +94 -0
- package/docs/components/organisms/aw-code.md +132 -0
- package/docs/components/organisms/aw-context-menu.md +117 -0
- package/docs/components/organisms/aw-cropper.md +151 -0
- package/docs/components/organisms/aw-date.md +161 -0
- package/docs/components/organisms/aw-display-date.md +33 -0
- package/docs/components/organisms/aw-download-link.md +46 -0
- package/docs/components/organisms/aw-fetch-data.md +161 -0
- package/docs/components/organisms/aw-filter-chosen.md +226 -0
- package/docs/components/organisms/aw-filter-date-range.md +205 -0
- package/docs/components/organisms/aw-filter-month.md +43 -0
- package/docs/components/organisms/aw-filter-select.md +225 -0
- package/docs/components/organisms/aw-form.md +174 -0
- package/docs/components/organisms/aw-gmap-marker.md +86 -0
- package/docs/components/organisms/aw-gmap.md +90 -0
- package/docs/components/organisms/aw-image-upload.md +56 -0
- package/docs/components/organisms/aw-island-avatar.md +87 -0
- package/docs/components/organisms/aw-markdown-editor.md +104 -0
- package/docs/components/organisms/aw-modal-buttons.md +57 -0
- package/docs/components/organisms/aw-modal.md +246 -0
- package/docs/components/organisms/aw-model-edit.md +74 -0
- package/docs/components/organisms/aw-money.md +53 -0
- package/docs/components/organisms/aw-multi-block-builder.md +165 -0
- package/docs/components/organisms/aw-pagination.md +121 -0
- package/docs/components/organisms/aw-password.md +103 -0
- package/docs/components/organisms/aw-preview-card.md +45 -0
- package/docs/components/organisms/aw-search.md +116 -0
- package/docs/components/organisms/aw-subnav.md +122 -0
- package/docs/components/organisms/aw-table-builder.md +165 -0
- package/docs/components/organisms/aw-table-col.md +123 -0
- package/docs/components/organisms/aw-table-head.md +92 -0
- package/docs/components/organisms/aw-table-row.md +91 -0
- package/docs/components/organisms/aw-table.md +172 -0
- package/docs/components/organisms/aw-tags.md +54 -0
- package/docs/components/organisms/aw-toggle-show-aside.md +43 -0
- package/docs/components/organisms/aw-uploader-files.md +125 -0
- package/docs/components/organisms/aw-uploader.md +163 -0
- package/docs/components/organisms/aw-user-menu.md +87 -0
- package/docs/components/pages/aw-page-aside.md +296 -0
- package/docs/components/pages/aw-page-menu-buttons.md +172 -0
- package/docs/components/pages/aw-page-modal.md +198 -0
- package/docs/components/pages/aw-page-single.md +253 -0
- package/docs/components/pages/aw-page.md +194 -0
- package/docs/configuration.md +493 -0
- package/docs/cookbook/advanced-patterns.md +1388 -0
- package/docs/cookbook/common-patterns.md +965 -0
- package/docs/cookbook/index.md +786 -0
- package/docs/getting-started.md +596 -0
- package/docs/guides/best-practices.md +1106 -0
- package/docs/guides/data-fetching.md +852 -0
- package/docs/guides/error-handling.md +1172 -0
- package/docs/guides/forms-guide.md +1329 -0
- package/docs/guides/mobile-subnavigation.md +359 -0
- package/docs/guides/page-patterns/aside-pages.md +1418 -0
- package/docs/guides/page-patterns/dashboard-pages.md +990 -0
- package/docs/guides/page-patterns/detail-pages.md +1493 -0
- package/docs/guides/page-patterns/list-pages.md +1094 -0
- package/docs/index.md +263 -1
- package/docs/integrations.md +870 -0
- package/docs/reference/menu.md +462 -0
- package/docs/reference/plugins.md +970 -0
- package/docs/reference/troubleshooting.md +945 -0
- package/nuxt/awes.config.js +9 -8
- package/nuxt/icons.css +26 -0
- package/nuxt/index.js +2 -2
- package/nuxt/pages/more.vue +1 -1
- package/package.json +5 -3
- package/readme.md +171 -1
- package/docs/aw-accordion-fold.md +0 -46
- package/docs/aw-address.md +0 -44
- package/docs/aw-avatar.md +0 -51
- package/docs/aw-badge.md +0 -32
- package/docs/aw-button-nav.md +0 -44
- package/docs/aw-button.md +0 -50
- package/docs/aw-calendar-days.md +0 -46
- package/docs/aw-calendar-nav.md +0 -25
- package/docs/aw-calendar-view.md +0 -12
- package/docs/aw-calendar.md +0 -59
- package/docs/aw-card.md +0 -48
- package/docs/aw-chart.md +0 -51
- package/docs/aw-checkbox.md +0 -56
- package/docs/aw-chip-select.md +0 -46
- package/docs/aw-chip.md +0 -53
- package/docs/aw-code-snippet.md +0 -18
- package/docs/aw-code.md +0 -56
- package/docs/aw-content-wrapper.md +0 -40
- package/docs/aw-context-menu.md +0 -31
- package/docs/aw-cropper.md +0 -60
- package/docs/aw-dashboard-card.md +0 -37
- package/docs/aw-dashboard-donut.md +0 -30
- package/docs/aw-dashboard-line.md +0 -20
- package/docs/aw-dashboard-progress.md +0 -33
- package/docs/aw-dashboard-section.md +0 -32
- package/docs/aw-dashboard-speed.md +0 -30
- package/docs/aw-date.md +0 -52
- package/docs/aw-dropdown-button.md +0 -31
- package/docs/aw-dropdown.md +0 -69
- package/docs/aw-fetch-data.md +0 -45
- package/docs/aw-form.md +0 -52
- package/docs/aw-grid.md +0 -48
- package/docs/aw-icon.md +0 -50
- package/docs/aw-info.md +0 -53
- package/docs/aw-input.md +0 -55
- package/docs/aw-layout-default.md +0 -30
- package/docs/aw-layout-frame-center.md +0 -29
- package/docs/aw-layout-simple.md +0 -49
- package/docs/aw-link.md +0 -54
- package/docs/aw-markdown-editor.md +0 -51
- package/docs/aw-modal.md +0 -63
- package/docs/aw-multi-block-builder.md +0 -66
- package/docs/aw-page.md +0 -36
- package/docs/aw-pagination.md +0 -54
- package/docs/aw-password.md +0 -48
- package/docs/aw-radio.md +0 -54
- package/docs/aw-search.md +0 -49
- package/docs/aw-select.md +0 -93
- package/docs/aw-slider.md +0 -40
- package/docs/aw-svg-image.md +0 -19
- package/docs/aw-switcher.md +0 -51
- package/docs/aw-tab-nav.md +0 -55
- package/docs/aw-table-builder.md +0 -58
- package/docs/aw-table-col.md +0 -33
- package/docs/aw-table-head.md +0 -28
- package/docs/aw-table-row.md +0 -33
- package/docs/aw-table.md +0 -59
- package/docs/aw-tel.md +0 -47
- package/docs/aw-textarea.md +0 -47
- package/docs/aw-toggler.md +0 -41
- package/docs/aw-uploader-files.md +0 -20
- package/docs/aw-uploader.md +0 -60
- package/docs/aw-user-menu.md +0 -34
- package/docs/aw-userpic.md +0 -34
- /package/components/{3_organisms → 2_molecules}/AwTel.vue +0 -0
package/docs/index.md
CHANGED
|
@@ -1 +1,263 @@
|
|
|
1
|
-
# UI Component
|
|
1
|
+
# AwesCode UI Component Library
|
|
2
|
+
|
|
3
|
+
Comprehensive documentation for all UI components in the AwesCode UI component library.
|
|
4
|
+
|
|
5
|
+
## Documentation Structure
|
|
6
|
+
|
|
7
|
+
This documentation is organized into the following sections:
|
|
8
|
+
|
|
9
|
+
- **[Getting Started](./getting-started.md)** - Installation, setup, and quick start
|
|
10
|
+
- **[Framework Integration](./integrations.md)** - How all packages work together
|
|
11
|
+
- **[Guides](./guides/)** - Page patterns, best practices, data fetching, error handling
|
|
12
|
+
- **[Cookbook](./cookbook/)** - Common and advanced patterns with examples
|
|
13
|
+
- **[Components](./components/)** - Complete component reference (atoms, molecules, organisms, pages, layouts)
|
|
14
|
+
- **[Reference](./reference/)** - Plugins, utilities, troubleshooting
|
|
15
|
+
|
|
16
|
+
## Quick Navigation
|
|
17
|
+
|
|
18
|
+
**Building Common Pages:**
|
|
19
|
+
- [List Page with Table](./guides/page-patterns/list-pages.md) - Browse and search data
|
|
20
|
+
- [Detail/Edit Page](./guides/page-patterns/detail-pages.md) - Create and edit records
|
|
21
|
+
- [Page with Aside Sidebar](./guides/page-patterns/aside-pages.md) - Forms with summary or contextual info
|
|
22
|
+
- [Dashboard Page](./guides/page-patterns/dashboard-pages.md) - Metrics and charts
|
|
23
|
+
|
|
24
|
+
**Learning the Framework:**
|
|
25
|
+
- [Best Practices](./guides/best-practices.md) - Patterns and conventions
|
|
26
|
+
- [Data Fetching](./guides/data-fetching.md) - Collections and models
|
|
27
|
+
- [Error Handling](./guides/error-handling.md) - Validation and API errors
|
|
28
|
+
- [Mobile Subnavigation](./guides/mobile-subnavigation.md) - Mobile navigation hubs with submenus
|
|
29
|
+
- [Menu Configuration](./reference/menu.md) - Navigation menu setup and patterns
|
|
30
|
+
- [Plugins & Utilities](./reference/plugins.md) - $notify, $dayjs, $screen, etc.
|
|
31
|
+
|
|
32
|
+
**Integration with Other Packages:**
|
|
33
|
+
- [Vue-MC Documentation](../../vue-mc/docs/) - Models and collections for API data
|
|
34
|
+
- [Nuxt-Auth Documentation](../../nuxt-auth/docs/) - Authentication, 2FA, OAuth
|
|
35
|
+
- [Nuxt-Laravel Documentation](../../nuxt-laravel/docs/) - Laravel backend integration
|
|
36
|
+
|
|
37
|
+
## Component System Architecture
|
|
38
|
+
|
|
39
|
+
The component library is organized into 5 categories following atomic design principles:
|
|
40
|
+
|
|
41
|
+
### 1. Atoms (`1_atoms/`)
|
|
42
|
+
Simple, reusable components that are wrappers around HTML elements with consistent styling. These components are **globally imported** and always available.
|
|
43
|
+
|
|
44
|
+
**Import Method:** Global (automatically registered)
|
|
45
|
+
|
|
46
|
+
**Components:**
|
|
47
|
+
- [AwAccordionFold](components/atoms/aw-accordion-fold.md) - Collapsible content wrapper
|
|
48
|
+
- [AwActionCard](components/atoms/aw-action-card.md) - Card with title and action button
|
|
49
|
+
- [AwActionCardBody](components/atoms/aw-action-card-body.md) - Body section for action cards
|
|
50
|
+
- [AwActionIcon](components/atoms/aw-action-icon.md) - Icon with optional text
|
|
51
|
+
- [AwAvatar](components/atoms/aw-avatar.md) - User avatar component
|
|
52
|
+
- [AwCard](components/atoms/aw-card.md) - Basic card container
|
|
53
|
+
- [AwCheckbox](components/atoms/aw-checkbox.md) - Checkbox input
|
|
54
|
+
- [AwContentPlaceholder](components/atoms/aw-content-placeholder.md) - Loading placeholder with shimmer effect
|
|
55
|
+
- [AwDescription](components/atoms/aw-description.md) - Description text wrapper
|
|
56
|
+
- [AwDock](components/atoms/aw-dock.md) - Slide-up panel component
|
|
57
|
+
- [AwDropdown](components/atoms/aw-dropdown.md) - Dropdown menu
|
|
58
|
+
- [AwDropdownButton](components/atoms/aw-dropdown-button.md) - Dropdown trigger button
|
|
59
|
+
- [AwFile](components/atoms/aw-file.md) - File input wrapper
|
|
60
|
+
- [AwFlow](components/atoms/aw-flow.md) - Flow layout component
|
|
61
|
+
- [AwGrid](components/atoms/aw-grid.md) - Grid layout component
|
|
62
|
+
- [AwHeadline](components/atoms/aw-headline.md) - Heading component
|
|
63
|
+
- [AwIcon](components/atoms/aw-icon.md) - Icon component
|
|
64
|
+
- [AwIconSystemColor](components/atoms/aw-icon-system-color.md) - Multicolor system icons
|
|
65
|
+
- [AwIconSystemMono](components/atoms/aw-icon-system-mono.md) - Monochrome system icons
|
|
66
|
+
- [AwInfo](components/atoms/aw-info.md) - Info display component
|
|
67
|
+
- [AwInput](components/atoms/aw-input.md) - Text input component
|
|
68
|
+
- [AwLabel](components/atoms/aw-label.md) - Label/badge component
|
|
69
|
+
- [AwLink](components/atoms/aw-link.md) - Link component
|
|
70
|
+
- [AwList](components/atoms/aw-list.md) - List component
|
|
71
|
+
- [AwProgress](components/atoms/aw-progress.md) - Progress bar
|
|
72
|
+
- [AwRadio](components/atoms/aw-radio.md) - Radio button input
|
|
73
|
+
- [AwRefreshWrapper](components/atoms/aw-refresh-wrapper.md) - Pull-to-refresh wrapper
|
|
74
|
+
- [AwSelectNative](components/atoms/aw-select-native.md) - Native select dropdown
|
|
75
|
+
- [AwSlider](components/atoms/aw-slider.md) - Slider input
|
|
76
|
+
- [AwSubHeadline](components/atoms/aw-sub-headline.md) - Sub-heading component
|
|
77
|
+
- [AwSwitcher](components/atoms/aw-switcher.md) - Toggle switch
|
|
78
|
+
- [AwTag](components/atoms/aw-tag.md) - Tag component
|
|
79
|
+
- [AwTitle](components/atoms/aw-title.md) - Title component
|
|
80
|
+
- [AwToggler](components/atoms/aw-toggler.md) - Toggleable content wrapper
|
|
81
|
+
|
|
82
|
+
### 2. Molecules (`2_molecules/`)
|
|
83
|
+
Components that combine atoms with additional logic. Most are **dynamically imported**, except `AwSelect` which is global for compatibility.
|
|
84
|
+
|
|
85
|
+
**Import Method:** Global (most), Dynamic (some)
|
|
86
|
+
|
|
87
|
+
**Components:**
|
|
88
|
+
- [AwActionButton](components/molecules/aw-action-button.md) - Action button with icon and descriptions
|
|
89
|
+
- [AwAlert](components/molecules/aw-alert.md) - Alert message component
|
|
90
|
+
- [AwBadge](components/molecules/aw-badge.md) - Badge component
|
|
91
|
+
- [AwBannerText](components/molecules/aw-banner-text.md) - Banner with icon and text
|
|
92
|
+
- [AwButton](components/molecules/aw-button.md) - Button component
|
|
93
|
+
- [AwButtonNav](components/molecules/aw-button-nav.md) - Navigation button
|
|
94
|
+
- [AwDescriptionInput](components/molecules/aw-description-input.md) - Input with description
|
|
95
|
+
- [AwEmptyContainer](components/molecules/aw-empty-container.md) - Empty state container
|
|
96
|
+
- [AwIsland](components/molecules/aw-island.md) - Island component
|
|
97
|
+
- [AwSelect](components/molecules/aw-select.md) - Advanced select component (global)
|
|
98
|
+
- [AwSelectObject](components/molecules/aw-select-object.md) - Select for object options
|
|
99
|
+
- [AwTabNav](components/molecules/aw-tab-nav.md) - Tab navigation
|
|
100
|
+
- [AwTel](components/molecules/aw-tel.md) - Telephone input
|
|
101
|
+
- [AwTextarea](components/molecules/aw-textarea.md) - Textarea input
|
|
102
|
+
- [AwUserpic](components/molecules/aw-userpic.md) - User picture component
|
|
103
|
+
|
|
104
|
+
### 3. Organisms (`3_organisms/`)
|
|
105
|
+
Complex components built for specific tasks, combining atoms and molecules. These are **dynamically imported**.
|
|
106
|
+
|
|
107
|
+
**Import Method:** Dynamic
|
|
108
|
+
|
|
109
|
+
**Components:**
|
|
110
|
+
- [AwAddress](components/organisms/aw-address.md) - Address input component
|
|
111
|
+
- [AwAddressBlock](components/organisms/aw-address-block.md) - Address display block
|
|
112
|
+
- [AwBirthdayPicker](components/organisms/aw-birthday-picker.md) - Birthday date picker
|
|
113
|
+
- [AwBottomBar](components/organisms/aw-bottom-bar.md) - Bottom action bar
|
|
114
|
+
- [AwCalendar](components/organisms/aw-calendar.md) - Calendar component
|
|
115
|
+
- [AwChart](components/organisms/aw-chart.md) - Chart component
|
|
116
|
+
- [AwChip](components/organisms/aw-chip.md) - Chip component
|
|
117
|
+
- [AwChipSelect](components/organisms/aw-chip-select.md) - Chip selection component
|
|
118
|
+
- [AwCode](components/organisms/aw-code.md) - Code input component
|
|
119
|
+
- [AwCodeSnippet](components/organisms/aw-code-snippet.md) - Code snippet display
|
|
120
|
+
- [AwContextMenu](components/organisms/aw-context-menu.md) - Context menu
|
|
121
|
+
- [AwCropper](components/organisms/aw-cropper.md) - Image cropper
|
|
122
|
+
- [AwDate](components/organisms/aw-date.md) - Date input
|
|
123
|
+
- [AwDisplayDate](components/organisms/aw-display-date.md) - Date display
|
|
124
|
+
- [AwDownloadLink](components/organisms/aw-download-link.md) - Download link
|
|
125
|
+
- [AwFetchData](components/organisms/aw-fetch-data.md) - Data fetching wrapper
|
|
126
|
+
- [AwFilterChosen](components/organisms/aw-filter-chosen.md) - Display active filters as chips
|
|
127
|
+
- [AwFilterDateRange](components/organisms/aw-filter-date-range.md) - Date range filter
|
|
128
|
+
- [AwFilterMonth](components/organisms/aw-filter-month.md) - Month filter
|
|
129
|
+
- [AwFilterSelect](components/organisms/aw-filter-select.md) - Dropdown filter
|
|
130
|
+
- [AwForm](components/organisms/aw-form.md) - Form component
|
|
131
|
+
- [AwGmap](components/organisms/aw-gmap.md) - Google Maps component
|
|
132
|
+
- [AwGmapMarker](components/organisms/aw-gmap-marker.md) - Google Maps marker
|
|
133
|
+
- [AwImageUpload](components/organisms/aw-image-upload.md) - Image upload component
|
|
134
|
+
- [AwIslandAvatar](components/organisms/aw-island-avatar.md) - Avatar in island
|
|
135
|
+
- [AwMarkdownEditor](components/organisms/aw-markdown-editor.md) - Markdown editor
|
|
136
|
+
- [AwModal](components/organisms/aw-modal.md) - Modal dialog
|
|
137
|
+
- [AwModalButtons](components/organisms/aw-modal-buttons.md) - Modal button group
|
|
138
|
+
- [AwModelEdit](components/organisms/aw-model-edit.md) - Model edit form
|
|
139
|
+
- [AwMoney](components/organisms/aw-money.md) - Money input
|
|
140
|
+
- [AwMultiBlockBuilder](components/organisms/aw-multi-block-builder.md) - Multi-block builder
|
|
141
|
+
- [AwPagination](components/organisms/aw-pagination.md) - Pagination component
|
|
142
|
+
- [AwPassword](components/organisms/aw-password.md) - Password input
|
|
143
|
+
- [AwPreviewCard](components/organisms/aw-preview-card.md) - Preview card
|
|
144
|
+
- [AwSearch](components/organisms/aw-search.md) - Search input
|
|
145
|
+
- [AwSubnav](components/organisms/aw-subnav.md) - Sub-navigation
|
|
146
|
+
- [AwTable](components/organisms/aw-table.md) - Table component
|
|
147
|
+
- [AwTableBuilder](components/organisms/aw-table-builder.md) - Table builder
|
|
148
|
+
- [AwTags](components/organisms/aw-tags.md) - Tags component
|
|
149
|
+
- [AwToggleShowAside](components/organisms/aw-toggle-show-aside.md) - Toggle aside navigation
|
|
150
|
+
- [AwUploader](components/organisms/aw-uploader.md) - File uploader
|
|
151
|
+
- [AwUploaderFiles](components/organisms/aw-uploader-files.md) - Uploaded files display
|
|
152
|
+
|
|
153
|
+
### 4. Pages (`4_pages/`)
|
|
154
|
+
Top-level components for building complete pages. These are **dynamically imported**.
|
|
155
|
+
|
|
156
|
+
**Import Method:** Dynamic
|
|
157
|
+
|
|
158
|
+
**Components:**
|
|
159
|
+
- [AwPage](components/pages/aw-page.md) - Main page component
|
|
160
|
+
- [AwPageAside](components/pages/aw-page-aside.md) - Page layout with sidebar
|
|
161
|
+
- [AwPageMenuButtons](components/pages/aw-page-menu-buttons.md) - Page menu buttons
|
|
162
|
+
- ~~[AwPageModal](components/pages/aw-page-modal.md)~~ - (deprecated, not commonly used)
|
|
163
|
+
- [AwPageSingle](components/pages/aw-page-single.md) - Single page layout
|
|
164
|
+
|
|
165
|
+
### 5. Layouts (`5_layouts/`)
|
|
166
|
+
Root-level components that control the overall page layout and navigation. These are **dynamically imported**.
|
|
167
|
+
|
|
168
|
+
**Import Method:** Dynamic
|
|
169
|
+
|
|
170
|
+
**Components:**
|
|
171
|
+
- [AwLayout](components/layouts/aw-layout.md) - Default layout with navigation
|
|
172
|
+
- [AwLayoutCenter](components/layouts/aw-layout-center.md) - Centered layout
|
|
173
|
+
- [AwLayoutError](components/layouts/aw-layout-error.md) - Error page layout
|
|
174
|
+
- [AwLayoutProvider](components/layouts/aw-layout-provider.md) - Layout provider (menu management)
|
|
175
|
+
|
|
176
|
+
## Import Methods
|
|
177
|
+
|
|
178
|
+
### Global Components
|
|
179
|
+
Atoms and most molecules are registered globally via the Nuxt module. They can be used directly in templates without importing:
|
|
180
|
+
|
|
181
|
+
```markup
|
|
182
|
+
<template>
|
|
183
|
+
<AwButton>Click me</AwButton>
|
|
184
|
+
<AwInput v-model="value" />
|
|
185
|
+
</template>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Dynamic Components
|
|
189
|
+
Organisms, pages, and layouts are dynamically imported. They can be used in two ways:
|
|
190
|
+
|
|
191
|
+
1. **Direct usage** (Nuxt auto-imports):
|
|
192
|
+
```markup
|
|
193
|
+
<template>
|
|
194
|
+
<AwForm url="/api/submit">
|
|
195
|
+
<!-- form content -->
|
|
196
|
+
</AwForm>
|
|
197
|
+
</template>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
2. **Explicit import** (for better tree-shaking):
|
|
201
|
+
```markup
|
|
202
|
+
<script>
|
|
203
|
+
export default {
|
|
204
|
+
components: {
|
|
205
|
+
AwForm: () => import('@awes-io/ui/components/3_organisms/AwForm.vue')
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
</script>
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Configuration
|
|
212
|
+
|
|
213
|
+
Components can be configured globally via `awes.config.js` in your project:
|
|
214
|
+
|
|
215
|
+
```javascript
|
|
216
|
+
export default {
|
|
217
|
+
AwButton: {
|
|
218
|
+
size: 'md',
|
|
219
|
+
color: 'accent',
|
|
220
|
+
theme: 'solid'
|
|
221
|
+
},
|
|
222
|
+
AwInput: {
|
|
223
|
+
baseClass: 'aw-text-field',
|
|
224
|
+
sizes: ['sm', 'md']
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
See individual component documentation for available configuration options.
|
|
230
|
+
|
|
231
|
+
## Store Integration
|
|
232
|
+
|
|
233
|
+
The library integrates with Vuex via the `awesIo` store module, which manages:
|
|
234
|
+
- Navigation menus (main, secondary, user, tertiary)
|
|
235
|
+
- Route tracking
|
|
236
|
+
- Dark theme state
|
|
237
|
+
- Screen breakpoints
|
|
238
|
+
- Logo configuration
|
|
239
|
+
- User profile information
|
|
240
|
+
|
|
241
|
+
See [packages/ui/store/awesIo.js](../store/awesIo.js) for details.
|
|
242
|
+
|
|
243
|
+
## Plugins
|
|
244
|
+
|
|
245
|
+
The Nuxt module provides several plugins:
|
|
246
|
+
- **core.plugin.js** - Core utilities (`$awes`, `$notify`)
|
|
247
|
+
- **store.plugin.js** - Vuex store integration
|
|
248
|
+
- **screen.plugin.js** - Responsive screen breakpoints (`$screen`)
|
|
249
|
+
- **router.plugin.js** - Router extensions (`router.setBack`, `router.pushBack`)
|
|
250
|
+
- **dark-theme.plugin.js** - Dark theme management
|
|
251
|
+
- **permissions.plugin.js** - CASL permissions integration
|
|
252
|
+
- **dayjs.plugin.js** - Day.js date library integration
|
|
253
|
+
- **directives.plugin.js** - Vue directives (tooltip)
|
|
254
|
+
|
|
255
|
+
## Usage Examples
|
|
256
|
+
|
|
257
|
+
See the [examples](../examples) folder for live usage examples of each component.
|
|
258
|
+
|
|
259
|
+
## Related Documentation
|
|
260
|
+
|
|
261
|
+
- [Component Configuration](../components/_config.js) - Default component configurations
|
|
262
|
+
- [Store Module](../store/awesIo.js) - Vuex store module
|
|
263
|
+
- [Nuxt Module](../nuxt/index.js) - Module registration and setup
|