@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
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Label component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwLabel /> component is used to render Label - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Label
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Label
|
|
10
|
+
|
|
11
|
+
**Category:** Atom | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwLabel` component displays a styled label with optional icons and customizable colors.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwLabel` provides a badge-like label component that can display text with optional leading and trailing icons. It supports custom colors and is commonly used for tags, categories, and status indicators.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwLabel label="New" />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### With Icons
|
|
28
|
+
|
|
29
|
+
```markup
|
|
30
|
+
<AwLabel label="Featured" icon="star" />
|
|
31
|
+
<AwLabel label="Verified" icon="awesio/check" icon-second="awesio/close" />
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### With Colors
|
|
35
|
+
|
|
36
|
+
```markup
|
|
37
|
+
<AwLabel label="Success" color="success-500" />
|
|
38
|
+
<AwLabel label="Warning" color="warning-500" on-color="white" />
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Boolean Icon
|
|
42
|
+
|
|
43
|
+
```markup
|
|
44
|
+
<AwLabel label="Active" :icon="true" />
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## API
|
|
48
|
+
|
|
49
|
+
### Props
|
|
50
|
+
|
|
51
|
+
| Name | Description | Type | Required | Default |
|
|
52
|
+
|------|-------------|------|----------|---------|
|
|
53
|
+
| label | Label text | `String` | `true` | - |
|
|
54
|
+
| color | Background color | `String` | `false` | `''` |
|
|
55
|
+
| onColor | Text/icon color | `String` | `false` | `''` |
|
|
56
|
+
| icon | Leading icon (boolean for default, string for custom) | `Boolean` / `String` | `false` | `null` |
|
|
57
|
+
| iconSecond | Trailing icon name | `String` | `false` | `null` |
|
|
58
|
+
|
|
59
|
+
### Slots
|
|
60
|
+
|
|
61
|
+
| Name | Description | Props | Default Slot Content |
|
|
62
|
+
|------|-------------|-------|---------------------|
|
|
63
|
+
| default | Custom label content (replaces label prop) | - | Label text |
|
|
64
|
+
|
|
65
|
+
### Events
|
|
66
|
+
|
|
67
|
+
No events are emitted by this component.
|
|
68
|
+
|
|
69
|
+
## Related Components
|
|
70
|
+
|
|
71
|
+
- `AwTag` - Tag component
|
|
72
|
+
- `AwBadge` - Badge component
|
|
73
|
+
- `AwIcon` - Icon component
|
|
74
|
+
|
|
75
|
+
## Notes
|
|
76
|
+
|
|
77
|
+
- **Import Method:** Global - Available as atom component
|
|
78
|
+
- When `icon` is `true`, displays default circle icon
|
|
79
|
+
- When `icon` is a string, displays that icon
|
|
80
|
+
- System icons are automatically detected and use `AwIconSystemMono`
|
|
81
|
+
- Default colors are mono-900 background with mono-400 text if no colors specified
|
|
82
|
+
- Use `onColor` to override text color when using custom background color
|
|
83
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Link component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwLink /> component is used to render Link - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Link
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Link
|
|
10
|
+
|
|
11
|
+
**Category:** Atom | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwLink` component is a flexible link component that supports routing, external links, and custom styling.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwLink` provides a link component that automatically handles routing (via Vue Router) for internal links and regular anchor tags for external links. It extends the link mixin for consistent link behavior across the library.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwLink href="/page">Go to Page</AwLink>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### External Link
|
|
28
|
+
|
|
29
|
+
```markup
|
|
30
|
+
<AwLink href="https://example.com">External Link</AwLink>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### With Router
|
|
34
|
+
|
|
35
|
+
```markup
|
|
36
|
+
<AwLink :to="{ name: 'page', params: { id: 1 } }">Router Link</AwLink>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### With Custom Color
|
|
40
|
+
|
|
41
|
+
```markup
|
|
42
|
+
<AwLink href="/page" color="accent-500">Colored Link</AwLink>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Reset Styling
|
|
46
|
+
|
|
47
|
+
```markup
|
|
48
|
+
<AwLink href="/page" reset>Unstyled Link</AwLink>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## API
|
|
52
|
+
|
|
53
|
+
### Props
|
|
54
|
+
|
|
55
|
+
| Name | Description | Type | Required | Default |
|
|
56
|
+
|------|-------------|------|----------|---------|
|
|
57
|
+
| href | Link destination (string or router object) | `String` / `Object` | `false` | - |
|
|
58
|
+
| to | Router destination (alternative to href) | `String` / `Object` | `false` | - |
|
|
59
|
+
| className | CSS class name | `String` | `false` | From config |
|
|
60
|
+
| text | Link text content | `String` | `false` | - |
|
|
61
|
+
| color | Link color | `String` | `false` | `null` |
|
|
62
|
+
| reset | Remove default link styling | `Boolean` | `false` | `false` |
|
|
63
|
+
|
|
64
|
+
### Slots
|
|
65
|
+
|
|
66
|
+
| Name | Description | Props | Default Slot Content |
|
|
67
|
+
|------|-------------|-------|---------------------|
|
|
68
|
+
| default | Link content | - | Text prop value |
|
|
69
|
+
|
|
70
|
+
### Events
|
|
71
|
+
|
|
72
|
+
All standard link events are supported (e.g., `click`).
|
|
73
|
+
|
|
74
|
+
### Config Options
|
|
75
|
+
|
|
76
|
+
The component uses default configuration from `@AwConfig`:
|
|
77
|
+
|
|
78
|
+
```javascript
|
|
79
|
+
export default {
|
|
80
|
+
AwLink: {
|
|
81
|
+
routerComponent: 'router-link',
|
|
82
|
+
baseClass: 'link'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Related Components
|
|
88
|
+
|
|
89
|
+
- `AwButton` - Button component that extends AwLink
|
|
90
|
+
- `AwActionButton` - Action button component
|
|
91
|
+
|
|
92
|
+
## Notes
|
|
93
|
+
|
|
94
|
+
- **Import Method:** Global - Available as atom component
|
|
95
|
+
- Automatically uses `router-link` for internal links and `<a>` for external links
|
|
96
|
+
- External links are detected by protocol (http://, https://)
|
|
97
|
+
- Supports both `href` and `to` props for routing
|
|
98
|
+
- Color prop sets CSS custom property for link color
|
|
99
|
+
- Reset prop removes default link styling
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: List component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwList /> component is used to render List - UI Vue component for AwesCode UI.
|
|
6
|
+
title: List
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# List
|
|
10
|
+
|
|
11
|
+
**Category:** Atom | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwList` component renders an ordered list with optional items array or custom slot content.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwList` provides a styled ordered list (`<ol>`) that can either render items from an array prop or use custom slot content. It's useful for displaying structured lists with consistent styling.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example with Items Array
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwList :items="['Item 1', 'Item 2', 'Item 3']" />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### With Custom Item Slot
|
|
28
|
+
|
|
29
|
+
```markup
|
|
30
|
+
<AwList :items="items">
|
|
31
|
+
<template #item="{ item, index }">
|
|
32
|
+
<div>{{ index + 1 }}. {{ item.name }}</div>
|
|
33
|
+
</template>
|
|
34
|
+
</AwList>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### With Custom Content
|
|
38
|
+
|
|
39
|
+
```markup
|
|
40
|
+
<AwList>
|
|
41
|
+
<li>Custom item 1</li>
|
|
42
|
+
<li>Custom item 2</li>
|
|
43
|
+
<li>Custom item 3</li>
|
|
44
|
+
</AwList>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### With Item Classes
|
|
48
|
+
|
|
49
|
+
```markup
|
|
50
|
+
<AwList
|
|
51
|
+
:items="items"
|
|
52
|
+
item-class="custom-item-class"
|
|
53
|
+
/>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## API
|
|
57
|
+
|
|
58
|
+
### Props
|
|
59
|
+
|
|
60
|
+
| Name | Description | Type | Required | Default |
|
|
61
|
+
|------|-------------|------|----------|---------|
|
|
62
|
+
| items | Array of items to render | `Array` | `false` | `[]` |
|
|
63
|
+
| itemClass | CSS class(es) for each list item | `String` / `Array` / `Object` | `false` | `''` |
|
|
64
|
+
|
|
65
|
+
### Slots
|
|
66
|
+
|
|
67
|
+
| Name | Description | Props | Default Slot Content |
|
|
68
|
+
|------|-------------|-------|---------------------|
|
|
69
|
+
| default | Custom list items (replaces items array) | - | Rendered items from array |
|
|
70
|
+
| item | Custom item template when using items array | `{ item, index }` | Item value/text |
|
|
71
|
+
|
|
72
|
+
### Events
|
|
73
|
+
|
|
74
|
+
No events are emitted by this component.
|
|
75
|
+
|
|
76
|
+
## Related Components
|
|
77
|
+
|
|
78
|
+
- `AwCard` - Card component that may contain lists
|
|
79
|
+
- `AwFlow` - Flow layout for list-like layouts
|
|
80
|
+
|
|
81
|
+
## Notes
|
|
82
|
+
|
|
83
|
+
- **Import Method:** Global - Available as atom component
|
|
84
|
+
- Renders as an ordered list (`<ol>`) element
|
|
85
|
+
- When `items` prop is provided, items are rendered automatically
|
|
86
|
+
- When using default slot, provide `<li>` elements directly
|
|
87
|
+
- Use `item` slot for custom item rendering when using `items` array
|
|
88
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Progress component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwProgress /> component is used to render Progress bar - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Progress
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Progress
|
|
10
|
+
|
|
11
|
+
**Category:** Atom | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwProgress` component displays an animated progress bar with customizable color.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwProgress` provides a horizontal progress bar that animates smoothly when the progress value changes. It supports reading initial value from URL query parameters and custom colors.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwProgress :progress="75" />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### With Custom Color
|
|
28
|
+
|
|
29
|
+
```markup
|
|
30
|
+
<AwProgress :progress="50" color="success-500" />
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### With Initial Value from URL
|
|
34
|
+
|
|
35
|
+
```markup
|
|
36
|
+
<!-- URL: /page?prev_progress=30 -->
|
|
37
|
+
<AwProgress :progress="75" prev-value-param="prev_progress" />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## API
|
|
41
|
+
|
|
42
|
+
### Props
|
|
43
|
+
|
|
44
|
+
| Name | Description | Type | Required | Default |
|
|
45
|
+
|------|-------------|------|----------|---------|
|
|
46
|
+
| progress | Progress value (0-100) | `Number` | `false` | `0` |
|
|
47
|
+
| prevValueParam | URL query parameter name for initial value | `String` | `false` | `'prev_progress'` |
|
|
48
|
+
| color | Progress bar color | `String` | `false` | `'accent'` |
|
|
49
|
+
|
|
50
|
+
### Slots
|
|
51
|
+
|
|
52
|
+
No slots are available for this component.
|
|
53
|
+
|
|
54
|
+
### Events
|
|
55
|
+
|
|
56
|
+
No events are emitted by this component.
|
|
57
|
+
|
|
58
|
+
## Related Components
|
|
59
|
+
|
|
60
|
+
- `AwButton` - Button component that may show loading/progress
|
|
61
|
+
- `AwUploader` - Upload component that uses progress
|
|
62
|
+
|
|
63
|
+
## Notes
|
|
64
|
+
|
|
65
|
+
- **Import Method:** Global - Available as atom component
|
|
66
|
+
- Progress value is clamped between 0 and 100
|
|
67
|
+
- Animation duration is 1000ms with easeOutCirc easing
|
|
68
|
+
- Initial value can be read from URL query parameters
|
|
69
|
+
- Color supports theme color names (e.g., 'accent', 'success-500')
|
|
70
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Radio component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwRadio /> component is used to render Radio - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Radio
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Radio
|
|
10
|
+
|
|
11
|
+
**Category:** Atom | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwRadio` component is a styled radio button input with label support and error handling.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwRadio` provides a radio button input with consistent styling, label support, and error states. It's designed for radio button groups where only one option can be selected.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwRadio v-model="selected" value="option1" label="Option 1" />
|
|
25
|
+
<AwRadio v-model="selected" value="option2" label="Option 2" />
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Radio Group
|
|
29
|
+
|
|
30
|
+
```markup
|
|
31
|
+
<template>
|
|
32
|
+
<div>
|
|
33
|
+
<AwRadio
|
|
34
|
+
v-model="choice"
|
|
35
|
+
value="yes"
|
|
36
|
+
label="Yes"
|
|
37
|
+
/>
|
|
38
|
+
<AwRadio
|
|
39
|
+
v-model="choice"
|
|
40
|
+
value="no"
|
|
41
|
+
label="No"
|
|
42
|
+
/>
|
|
43
|
+
<AwRadio
|
|
44
|
+
v-model="choice"
|
|
45
|
+
value="maybe"
|
|
46
|
+
label="Maybe"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
export default {
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
choice: 'yes'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
</script>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### With Error
|
|
63
|
+
|
|
64
|
+
```markup
|
|
65
|
+
<AwRadio
|
|
66
|
+
v-model="selected"
|
|
67
|
+
value="option1"
|
|
68
|
+
label="Required option"
|
|
69
|
+
:error="errorMessage"
|
|
70
|
+
/>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## API
|
|
74
|
+
|
|
75
|
+
### Props
|
|
76
|
+
|
|
77
|
+
| Name | Description | Type | Required | Default |
|
|
78
|
+
|------|-------------|------|----------|---------|
|
|
79
|
+
| value | Radio button value | `String` / `Number` / `Boolean` | `false` | `'on'` |
|
|
80
|
+
| checked | Currently selected value (for v-model) | `String` / `Number` / `Boolean` | `false` | - |
|
|
81
|
+
|
|
82
|
+
All standard HTML radio attributes are supported via `$attrs` (e.g., `disabled`, `required`).
|
|
83
|
+
|
|
84
|
+
### Slots
|
|
85
|
+
|
|
86
|
+
| Name | Description | Props | Default Slot Content |
|
|
87
|
+
|------|-------------|-------|---------------------|
|
|
88
|
+
| label | Custom label content | `{ label, value, isChecked }` | Label text |
|
|
89
|
+
|
|
90
|
+
### Events
|
|
91
|
+
|
|
92
|
+
| Name | Payload | Description |
|
|
93
|
+
|------|---------|-------------|
|
|
94
|
+
| change | `value` | Emitted when radio is selected |
|
|
95
|
+
|
|
96
|
+
## Related Components
|
|
97
|
+
|
|
98
|
+
- `AwCheckbox` - Checkbox component
|
|
99
|
+
- `AwSwitcher` - Toggle switch component
|
|
100
|
+
- `AwInput` - Text input component
|
|
101
|
+
|
|
102
|
+
## Notes
|
|
103
|
+
|
|
104
|
+
- **Import Method:** Global - Available as atom component
|
|
105
|
+
- Uses v-model with `checked` prop and `change` event
|
|
106
|
+
- Only one radio in a group can be selected at a time
|
|
107
|
+
- Extends field and error mixins for label and error handling
|
|
108
|
+
- Value can be string, number, or boolean
|
|
109
|
+
- Radio buttons in the same group should share the same v-model binding
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Refresh Wrapper component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwRefreshWrapper /> component is used to render Pull-to-refresh wrapper - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Refresh Wrapper
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Refresh Wrapper
|
|
10
|
+
|
|
11
|
+
**Category:** Atom | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwRefreshWrapper` component provides pull-to-refresh functionality for mobile touch devices.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwRefreshWrapper` enables pull-to-refresh gesture on mobile devices. When the user pulls down at the top of the scrollable content, it triggers a refresh event. The component shows a loading indicator and rotating icon during the pull gesture.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwRefreshWrapper @refresh="handleRefresh">
|
|
25
|
+
<div>Scrollable content</div>
|
|
26
|
+
</AwRefreshWrapper>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### With Loading State
|
|
30
|
+
|
|
31
|
+
```markup
|
|
32
|
+
<AwRefreshWrapper :loading="isRefreshing" @refresh="handleRefresh">
|
|
33
|
+
<div>Content</div>
|
|
34
|
+
</AwRefreshWrapper>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Disable Refresh
|
|
38
|
+
|
|
39
|
+
```markup
|
|
40
|
+
<AwRefreshWrapper :ignore-refresh="true">
|
|
41
|
+
<div>Content without refresh</div>
|
|
42
|
+
</AwRefreshWrapper>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## API
|
|
46
|
+
|
|
47
|
+
### Props
|
|
48
|
+
|
|
49
|
+
| Name | Description | Type | Required | Default |
|
|
50
|
+
|------|-------------|------|----------|---------|
|
|
51
|
+
| loading | Whether refresh is in progress | `Boolean` | `false` | `false` |
|
|
52
|
+
| ignoreRefresh | Disable pull-to-refresh functionality | `Boolean` | `false` | `false` |
|
|
53
|
+
|
|
54
|
+
### Slots
|
|
55
|
+
|
|
56
|
+
| Name | Description | Props | Default Slot Content |
|
|
57
|
+
|------|-------------|-------|---------------------|
|
|
58
|
+
| default | Scrollable content | - | - |
|
|
59
|
+
| before | Content before refresh loader | - | - |
|
|
60
|
+
|
|
61
|
+
### Events
|
|
62
|
+
|
|
63
|
+
| Name | Payload | Description |
|
|
64
|
+
|------|---------|-------------|
|
|
65
|
+
| refresh | - | Emitted when user completes pull-to-refresh gesture |
|
|
66
|
+
|
|
67
|
+
## Related Components
|
|
68
|
+
|
|
69
|
+
- `AwDock` - Dock component with similar touch interactions
|
|
70
|
+
- `AwPage` - Page component that may use refresh wrapper
|
|
71
|
+
|
|
72
|
+
## Notes
|
|
73
|
+
|
|
74
|
+
- **Import Method:** Global - Available as atom component
|
|
75
|
+
- Only works on touch devices (mobile)
|
|
76
|
+
- Requires page to be at scroll position 0 (top) to trigger
|
|
77
|
+
- Minimum pull distance is 75px to trigger refresh
|
|
78
|
+
- Maximum pull distance is calculated based on viewport height
|
|
79
|
+
- Supports haptic feedback (vibration) on supported devices
|
|
80
|
+
- Icon rotates based on pull distance when not loading
|
|
81
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Select Native component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwSelectNative /> component is used to render Native Select dropdown - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Select Native
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Select Native
|
|
10
|
+
|
|
11
|
+
**Category:** Atom | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwSelectNative` component is a styled wrapper around the native HTML select element with label and error handling.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwSelectNative` provides a native select dropdown with consistent styling, label support, prefix/postfix slots, and error handling. It's useful for simple dropdowns where native behavior is preferred.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwSelectNative
|
|
25
|
+
:options="['Option 1', 'Option 2', 'Option 3']"
|
|
26
|
+
v-model="selected"
|
|
27
|
+
/>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### With Objects
|
|
31
|
+
|
|
32
|
+
```markup
|
|
33
|
+
<AwSelectNative
|
|
34
|
+
:options="options"
|
|
35
|
+
option-label="name"
|
|
36
|
+
track-by="id"
|
|
37
|
+
v-model="selected"
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### With Label and Error
|
|
42
|
+
|
|
43
|
+
```markup
|
|
44
|
+
<AwSelectNative
|
|
45
|
+
label="Choose option"
|
|
46
|
+
:options="options"
|
|
47
|
+
v-model="selected"
|
|
48
|
+
:error="error"
|
|
49
|
+
/>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### With Prefix/Postfix
|
|
53
|
+
|
|
54
|
+
```markup
|
|
55
|
+
<AwSelectNative
|
|
56
|
+
prefix="https://"
|
|
57
|
+
postfix=".com"
|
|
58
|
+
:options="domains"
|
|
59
|
+
v-model="selected"
|
|
60
|
+
/>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## API
|
|
64
|
+
|
|
65
|
+
### Props
|
|
66
|
+
|
|
67
|
+
| Name | Description | Type | Required | Default |
|
|
68
|
+
|------|-------------|------|----------|---------|
|
|
69
|
+
| options | Array of options (strings or objects) | `Array` | `false` | `[]` |
|
|
70
|
+
| value | Selected value | `String` / `Number` / `Object` | `false` | `null` |
|
|
71
|
+
| optionLabel | Property name or function to get label | `String` / `Function` | `false` | `''` |
|
|
72
|
+
| optionDisabled | Function to determine if option is disabled | `Function` | `false` | `() => false` |
|
|
73
|
+
| trackBy | Property name or function to get value | `String` / `Function` | `false` | `''` |
|
|
74
|
+
| size | Input size (sm, md) | `String` | `false` | `'md'` |
|
|
75
|
+
| prefix | Prefix text or slot content | `String` | `false` | `''` |
|
|
76
|
+
| postfix | Postfix text or slot content | `String` | `false` | `''` |
|
|
77
|
+
|
|
78
|
+
### Slots
|
|
79
|
+
|
|
80
|
+
| Name | Description | Props | Default Slot Content |
|
|
81
|
+
|------|-------------|-------|---------------------|
|
|
82
|
+
| prefix | Custom prefix content | - | Prefix text |
|
|
83
|
+
| postfix | Custom postfix content | - | Postfix text |
|
|
84
|
+
| label | Custom label content | - | Label text |
|
|
85
|
+
|
|
86
|
+
### Events
|
|
87
|
+
|
|
88
|
+
| Name | Payload | Description |
|
|
89
|
+
|------|---------|-------------|
|
|
90
|
+
| input | `value` | Emitted when selection changes |
|
|
91
|
+
|
|
92
|
+
## Related Components
|
|
93
|
+
|
|
94
|
+
- `AwSelect` - Advanced select component with search and custom options
|
|
95
|
+
- `AwSelectObject` - Select component for object options
|
|
96
|
+
- `AwInput` - Input component with similar styling
|
|
97
|
+
|
|
98
|
+
## Notes
|
|
99
|
+
|
|
100
|
+
- **Import Method:** Global - Available as atom component
|
|
101
|
+
- Uses native HTML select element for better mobile support
|
|
102
|
+
- Supports both string arrays and object arrays
|
|
103
|
+
- When using objects, provide `optionLabel` and `trackBy` props
|
|
104
|
+
- Inherits error handling from error mixin
|
|
105
|
+
- Inherits field mixin for label and ID management
|
|
106
|
+
|