@awes-io/ui 2.142.0 → 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 +58 -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/AwImageUpload.vue +1 -1
- package/components/3_organisms/AwMarkdownEditor.vue +0 -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-timeline-builder.md +0 -50
- 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/nuxt/awes.config.js
CHANGED
|
@@ -2,13 +2,13 @@ import styles from '../assets/js/styles'
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
logo: {
|
|
5
|
-
src: 'https://
|
|
6
|
-
alt: '
|
|
5
|
+
src: 'https://storage2.easyweek.io/awescode_ui/awescode_logo.svg',
|
|
6
|
+
alt: 'AwesCode UI'
|
|
7
7
|
},
|
|
8
8
|
|
|
9
9
|
fullLogo: {
|
|
10
|
-
src: 'https://
|
|
11
|
-
alt: '
|
|
10
|
+
src: 'https://storage2.easyweek.io/awescode_ui/awescode_logo_full.svg',
|
|
11
|
+
alt: 'AwesCode UI'
|
|
12
12
|
},
|
|
13
13
|
|
|
14
14
|
background: {
|
|
@@ -23,13 +23,14 @@ export default {
|
|
|
23
23
|
|
|
24
24
|
export const dark = {
|
|
25
25
|
logo: {
|
|
26
|
-
src: 'https://
|
|
27
|
-
alt: '
|
|
26
|
+
src: 'https://storage2.easyweek.io/awescode_ui/awescode_logo.svg',
|
|
27
|
+
alt: 'AwesCode UI'
|
|
28
28
|
},
|
|
29
29
|
|
|
30
30
|
fullLogo: {
|
|
31
|
-
src:
|
|
32
|
-
|
|
31
|
+
src:
|
|
32
|
+
'https://storage2.easyweek.io/awescode_ui/awescode_logo_full_white.svg',
|
|
33
|
+
alt: 'AwesCode UI'
|
|
33
34
|
},
|
|
34
35
|
|
|
35
36
|
background: {
|
package/nuxt/icons.css
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "aw-icons";
|
|
3
|
+
src: url("../dist/fonts/aw-icons.woff2?c043a54b44365b2dd8b253e7b50afecf") format("woff2"),
|
|
4
|
+
url("../dist/fonts/aw-icons.woff?c043a54b44365b2dd8b253e7b50afecf") format("woff");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.aw-icon {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
line-height: 1;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.aw-icon:before {
|
|
15
|
+
font-family: aw-icons !important;
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: normal !important;
|
|
18
|
+
vertical-align: top;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aw-icon-check:before {
|
|
22
|
+
content: "\f101";
|
|
23
|
+
}
|
|
24
|
+
.aw-icon-times:before {
|
|
25
|
+
content: "\f102";
|
|
26
|
+
}
|
package/nuxt/index.js
CHANGED
|
@@ -52,14 +52,14 @@ async function AwesIoUi() {
|
|
|
52
52
|
* Check store existance
|
|
53
53
|
*/
|
|
54
54
|
if (!this.options.store) {
|
|
55
|
-
throw new Error('
|
|
55
|
+
throw new Error('AwesCode UI: Vuex store is required')
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Check components enabled
|
|
60
60
|
*/
|
|
61
61
|
if (!this.options.components) {
|
|
62
|
-
throw new Error('
|
|
62
|
+
throw new Error('AwesCode UI: Components should be enabled')
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
package/nuxt/pages/more.vue
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.143.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
"eslint-config-prettier": "^6.9.0",
|
|
93
93
|
"eslint-plugin-nuxt": "^0.5.0",
|
|
94
94
|
"eslint-plugin-prettier": "^3.1.2",
|
|
95
|
-
"nuxt": "^2.17.1",
|
|
96
95
|
"nuxt-i18n": "^6.4.1",
|
|
97
96
|
"postcss-calc": "^7.0.1",
|
|
98
97
|
"postcss-custom-properties": "^9.0.2",
|
|
@@ -114,5 +113,8 @@
|
|
|
114
113
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
115
114
|
"rollup-plugin-vue": "^5.0.1"
|
|
116
115
|
},
|
|
117
|
-
"
|
|
116
|
+
"peerDependencies": {
|
|
117
|
+
"nuxt": "^2.18.1"
|
|
118
|
+
},
|
|
119
|
+
"gitHead": "873b089186b8a4dc32b262df8ea1dfcea7b81790"
|
|
118
120
|
}
|
package/readme.md
CHANGED
|
@@ -1 +1,171 @@
|
|
|
1
|
-
|
|
1
|
+
# @awes-io/ui
|
|
2
|
+
|
|
3
|
+
UI component library for AwesCode UI applications built with Vue.js and Nuxt.js.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This package provides a comprehensive set of reusable UI components organized using atomic design principles. Components are categorized into atoms, molecules, organisms, pages, and layouts, each serving a specific purpose in building user interfaces.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @awes-io/ui
|
|
13
|
+
# or
|
|
14
|
+
yarn add @awes-io/ui
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Setup
|
|
18
|
+
|
|
19
|
+
### Nuxt.js
|
|
20
|
+
|
|
21
|
+
Add the module to your `nuxt.config.js`:
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
export default {
|
|
25
|
+
modules: [
|
|
26
|
+
'@awes-io/ui'
|
|
27
|
+
],
|
|
28
|
+
|
|
29
|
+
// Required: Enable components
|
|
30
|
+
components: true,
|
|
31
|
+
|
|
32
|
+
// Required: Enable Vuex store
|
|
33
|
+
store: true
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Configuration
|
|
38
|
+
|
|
39
|
+
Create an `awes.config.js` file in your project root to customize component defaults:
|
|
40
|
+
|
|
41
|
+
```javascript
|
|
42
|
+
export default {
|
|
43
|
+
// Default theme configuration
|
|
44
|
+
logo: {
|
|
45
|
+
src: '/logo.svg',
|
|
46
|
+
alt: 'My App'
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
// Component-specific configuration
|
|
50
|
+
AwButton: {
|
|
51
|
+
size: 'md',
|
|
52
|
+
color: 'accent',
|
|
53
|
+
theme: 'solid'
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
// Dark theme overrides
|
|
57
|
+
dark: {
|
|
58
|
+
logo: {
|
|
59
|
+
src: '/logo-dark.svg'
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Component System
|
|
66
|
+
|
|
67
|
+
### Architecture
|
|
68
|
+
|
|
69
|
+
Components are organized into 5 categories:
|
|
70
|
+
|
|
71
|
+
1. **Atoms** - Basic building blocks (inputs, buttons, icons)
|
|
72
|
+
2. **Molecules** - Simple combinations of atoms
|
|
73
|
+
3. **Organisms** - Complex, feature-specific components
|
|
74
|
+
4. **Pages** - Complete page layouts
|
|
75
|
+
5. **Layouts** - Root-level layout components
|
|
76
|
+
|
|
77
|
+
### Import Methods
|
|
78
|
+
|
|
79
|
+
- **Global**: Atoms and most molecules are automatically registered and available everywhere
|
|
80
|
+
- **Dynamic**: Organisms, pages, and layouts are dynamically imported for better performance
|
|
81
|
+
|
|
82
|
+
See [docs/index.md](docs/index.md) for complete component listing.
|
|
83
|
+
|
|
84
|
+
## Quick Start
|
|
85
|
+
|
|
86
|
+
### Basic Usage
|
|
87
|
+
|
|
88
|
+
```markup
|
|
89
|
+
<template>
|
|
90
|
+
<AwPage title="My Page">
|
|
91
|
+
<AwCard title="Card Title">
|
|
92
|
+
<AwInput v-model="name" label="Name" />
|
|
93
|
+
<AwButton @click="submit">Submit</AwButton>
|
|
94
|
+
</AwCard>
|
|
95
|
+
</AwPage>
|
|
96
|
+
</template>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### With Layout
|
|
100
|
+
|
|
101
|
+
```markup
|
|
102
|
+
<template>
|
|
103
|
+
<AwLayout>
|
|
104
|
+
<AwPage title="Dashboard">
|
|
105
|
+
<!-- page content -->
|
|
106
|
+
</AwPage>
|
|
107
|
+
</AwLayout>
|
|
108
|
+
</template>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Features
|
|
112
|
+
|
|
113
|
+
- **Atomic Design** - Organized component hierarchy
|
|
114
|
+
- **Global & Dynamic Imports** - Optimized loading strategy
|
|
115
|
+
- **Vuex Integration** - Built-in store module for navigation and state
|
|
116
|
+
- **Dark Theme Support** - Automatic theme switching
|
|
117
|
+
- **Responsive Design** - Mobile-first with breakpoint utilities
|
|
118
|
+
- **TypeScript Ready** - Full TypeScript support
|
|
119
|
+
- **Accessible** - ARIA attributes and keyboard navigation
|
|
120
|
+
- **Customizable** - Extensive configuration options
|
|
121
|
+
|
|
122
|
+
## Documentation
|
|
123
|
+
|
|
124
|
+
- **[Component Documentation](docs/index.md)** - Complete component reference
|
|
125
|
+
- **[Examples](../examples)** - Live usage examples
|
|
126
|
+
- **[Configuration Guide](components/_config.js)** - Default configurations
|
|
127
|
+
|
|
128
|
+
## Store Module
|
|
129
|
+
|
|
130
|
+
The library includes a Vuex store module (`awesIo`) that manages:
|
|
131
|
+
|
|
132
|
+
- Navigation menus
|
|
133
|
+
- Route tracking
|
|
134
|
+
- Dark theme state
|
|
135
|
+
- Screen breakpoints
|
|
136
|
+
- User profile data
|
|
137
|
+
|
|
138
|
+
Access via `$store.getters['awesIo/mainMenu']` or use the provided getters.
|
|
139
|
+
|
|
140
|
+
## Plugins
|
|
141
|
+
|
|
142
|
+
The module automatically registers several Nuxt plugins:
|
|
143
|
+
|
|
144
|
+
- **Core** - `$awes` config and `$notify` notifications
|
|
145
|
+
- **Screen** - `$screen` responsive breakpoints
|
|
146
|
+
- **Router** - Extended router methods
|
|
147
|
+
- **Dark Theme** - Theme management
|
|
148
|
+
- **Permissions** - CASL integration
|
|
149
|
+
- **Day.js** - Date handling
|
|
150
|
+
|
|
151
|
+
## Browser Support
|
|
152
|
+
|
|
153
|
+
- Chrome (latest)
|
|
154
|
+
- Firefox (latest)
|
|
155
|
+
- Safari (latest)
|
|
156
|
+
- Edge (latest)
|
|
157
|
+
|
|
158
|
+
## Development
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
# Install dependencies
|
|
162
|
+
yarn install
|
|
163
|
+
|
|
164
|
+
# Run examples
|
|
165
|
+
cd examples
|
|
166
|
+
yarn dev
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
See LICENSE file for details.
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: Accordion fold сomponent | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwAccordionFold /> component is used to render Accordion fold - UI Vue component for Awes.io.
|
|
6
|
-
title: Accordion fold
|
|
7
|
-
---
|
|
8
|
-
# Accordion fold
|
|
9
|
-
|
|
10
|
-
The `AwAccordionFold` component is used to render Accordion fold.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
Several examples how you can use `AwAccordionFold`.
|
|
15
|
-
|
|
16
|
-
### Live Example
|
|
17
|
-
<iframe
|
|
18
|
-
src='https://codesandbox.io/embed/github/awes-io/client/tree/master/examples/basic-ui?autoresize=1&fontsize=14&hidenavigation=1&initialpath=%2Faw-accordion-fold&module=%2Fpages%2Faw-accordion-fold.vue&theme=dark&view=editor'
|
|
19
|
-
style='width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;'
|
|
20
|
-
title='basic-ui'
|
|
21
|
-
allow='geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb'
|
|
22
|
-
sandbox='allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
|
|
23
|
-
></iframe>
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
Select your desired component from below and see the available props, slots, events and functions.
|
|
27
|
-
|
|
28
|
-
### Props
|
|
29
|
-
Below is a collection of Vue **props** for the `AwAccordionFold` component.
|
|
30
|
-
<!-- @vuese:AwAccordionFold:props:start -->
|
|
31
|
-
|Name|Description|Type|Required|Default|
|
|
32
|
-
|---|---|---|---|---|
|
|
33
|
-
|show|-|`Boolean`|`false`|-|
|
|
34
|
-
|tag|-|`String`|`false`|div|
|
|
35
|
-
|
|
36
|
-
<!-- @vuese:AwAccordionFold:props:end -->
|
|
37
|
-
|
|
38
|
-
### Slots
|
|
39
|
-
Below is a collection of Vue **slots** for the `AwAccordionFold` component.
|
|
40
|
-
<!-- @vuese:AwAccordionFold:slots:start -->
|
|
41
|
-
|Name|Description|Default Slot Content|
|
|
42
|
-
|---|---|---|
|
|
43
|
-
|default|-|-|
|
|
44
|
-
|
|
45
|
-
<!-- @vuese:AwAccordionFold:slots:end -->
|
|
46
|
-
|
package/docs/aw-address.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: Address сomponent | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwAddress /> component is used to render Address - UI Vue component for Awes.io.
|
|
6
|
-
title: Address
|
|
7
|
-
---
|
|
8
|
-
# Address
|
|
9
|
-
|
|
10
|
-
The `AwAddress` component is used to render Address.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
Several examples how you can use `AwAddress`.
|
|
15
|
-
|
|
16
|
-
### Live Example
|
|
17
|
-
<iframe
|
|
18
|
-
src='https://codesandbox.io/embed/github/awes-io/client/tree/master/examples/basic-ui?autoresize=1&fontsize=14&hidenavigation=1&initialpath=%2Faw-address&module=%2Fpages%2Faw-address.vue&theme=dark&view=editor'
|
|
19
|
-
style='width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;'
|
|
20
|
-
title='basic-ui'
|
|
21
|
-
allow='geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb'
|
|
22
|
-
sandbox='allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
|
|
23
|
-
></iframe>
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
Select your desired component from below and see the available props, slots, events and functions.
|
|
27
|
-
|
|
28
|
-
### Props
|
|
29
|
-
Below is a collection of Vue **props** for the `AwAddress` component.
|
|
30
|
-
<!-- @vuese:AwAddress:props:start -->
|
|
31
|
-
|Name|Description|Type|Required|Default|
|
|
32
|
-
|---|---|---|---|---|
|
|
33
|
-
|queryOptions|-|`Object`|`false`|-|
|
|
34
|
-
|
|
35
|
-
<!-- @vuese:AwAddress:props:end -->
|
|
36
|
-
|
|
37
|
-
### Events
|
|
38
|
-
Below is a collection of Vue **events** for the `AwAddress` component.
|
|
39
|
-
<!-- @vuese:AwAddress:events:start -->
|
|
40
|
-
|Event Name|Description|Parameters|
|
|
41
|
-
|---|---|---|
|
|
42
|
-
|input|-|-|
|
|
43
|
-
|
|
44
|
-
<!-- @vuese:AwAddress:events:end -->
|
package/docs/aw-avatar.md
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: Avatar сomponent | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwAvatar /> component is used to render Avatar - UI Vue component for Awes.io.
|
|
6
|
-
title: Avatar
|
|
7
|
-
---
|
|
8
|
-
# Avatar
|
|
9
|
-
|
|
10
|
-
The `AwAvatar` component is used to render Avatar.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
Several examples how you can use `AwAvatar`.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Live Example
|
|
18
|
-
<iframe
|
|
19
|
-
src='https://codesandbox.io/embed/github/awes-io/client/tree/master/examples/basic-ui?autoresize=1&fontsize=14&hidenavigation=1&initialpath=%2Faw-avatar&module=%2Fpages%2Faw-avatar.vue&theme=dark&view=editor'
|
|
20
|
-
style='width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;'
|
|
21
|
-
title='basic-ui'
|
|
22
|
-
allow='geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb'
|
|
23
|
-
sandbox='allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
|
|
24
|
-
></iframe>
|
|
25
|
-
|
|
26
|
-
## API
|
|
27
|
-
Select your desired component from below and see the available props, slots, events and functions.
|
|
28
|
-
|
|
29
|
-
### Props
|
|
30
|
-
Below is a collection of Vue **props** for the `AwAvatar` component.
|
|
31
|
-
<!-- @vuese:AwAvatar:props:start -->
|
|
32
|
-
|Name|Description|Type|Required|Default|
|
|
33
|
-
|---|---|---|---|---|
|
|
34
|
-
|src|Full URL to the picture|`String`|`false`|-|
|
|
35
|
-
|name|User name|`String`|`false`|-|
|
|
36
|
-
|size|Size of the image|`Number` / `String`|`false`|36|
|
|
37
|
-
|type|Type of the rendered image.|`String`|`false`|initials , empty, no-img|
|
|
38
|
-
|isColored|To bring the color to the rounded background.|`Boolean`|`false`|-|
|
|
39
|
-
|
|
40
|
-
<!-- @vuese:AwAvatar:props:end -->
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
## Slots
|
|
44
|
-
<!-- @vuese:AwAvatar:slots:start -->
|
|
45
|
-
|Name|Description|Default Slot Content|
|
|
46
|
-
|---|---|---|
|
|
47
|
-
|default|-|-|
|
|
48
|
-
|no-img|-|-|
|
|
49
|
-
|
|
50
|
-
<!-- @vuese:AwAvatar:slots:end -->
|
|
51
|
-
|
package/docs/aw-badge.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: AwBadge | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwBadge /> component is used to render badges - UI Vue component for Awes.io.
|
|
6
|
-
title: Badge
|
|
7
|
-
---
|
|
8
|
-
# AwBadge
|
|
9
|
-
|
|
10
|
-
## Props
|
|
11
|
-
|
|
12
|
-
<!-- @vuese:AwBadge:props:start -->
|
|
13
|
-
|Name|Description|Type|Required|Default|
|
|
14
|
-
|---|---|---|---|---|
|
|
15
|
-
|text|Text inside badge|`String` / `Number`|`false`|-|
|
|
16
|
-
|icon|Icon name inside badge. See AwIcon component for available names|`String`|`false`|-|
|
|
17
|
-
|color|Badge background color|`String`|`false`|page-bg|
|
|
18
|
-
|hideIfEmpty|When set to `true`, badge will hide if text is empty or 0|`Boolean`|`false`|-|
|
|
19
|
-
|
|
20
|
-
<!-- @vuese:AwBadge:props:end -->
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Slots
|
|
24
|
-
|
|
25
|
-
<!-- @vuese:AwBadge:slots:start -->
|
|
26
|
-
|Name|Description|Default Slot Content|
|
|
27
|
-
|---|---|---|
|
|
28
|
-
|default|Content passed to component|-|
|
|
29
|
-
|
|
30
|
-
<!-- @vuese:AwBadge:slots:end -->
|
|
31
|
-
|
|
32
|
-
|
package/docs/aw-button-nav.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: Button nav сomponent | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwButtonNav /> component is used to render Button nav - UI Vue component for Awes.io.
|
|
6
|
-
title: Button nav
|
|
7
|
-
---
|
|
8
|
-
# Button nav
|
|
9
|
-
|
|
10
|
-
The `AwButtonNav` component is used to render Button nav.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
Several examples how you can use `AwButtonNav`.
|
|
15
|
-
|
|
16
|
-
### Live Example
|
|
17
|
-
<iframe
|
|
18
|
-
src='https://codesandbox.io/embed/github/awes-io/client/tree/master/examples/basic-ui?autoresize=1&fontsize=14&hidenavigation=1&initialpath=%2Faw-button-nav&module=%2Fpages%2Faw-button-nav.vue&theme=dark&view=editor'
|
|
19
|
-
style='width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;'
|
|
20
|
-
title='basic-ui'
|
|
21
|
-
allow='geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb'
|
|
22
|
-
sandbox='allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
|
|
23
|
-
></iframe>
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
Select your desired component from below and see the available props, slots, events and functions.
|
|
27
|
-
|
|
28
|
-
### Props
|
|
29
|
-
Below is a collection of Vue **props** for the `AwButtonNav` component.
|
|
30
|
-
<!-- @vuese:AwButtonNav:props:start -->
|
|
31
|
-
|
|
32
|
-
<!-- @vuese:AwButtonNav:props:end -->
|
|
33
|
-
|
|
34
|
-
### Slots
|
|
35
|
-
Below is a collection of Vue **slots** for the `AwButtonNav` component.
|
|
36
|
-
<!-- @vuese:AwButtonNav:slots:start -->
|
|
37
|
-
|
|
38
|
-
<!-- @vuese:AwButtonNav:slots:end -->
|
|
39
|
-
|
|
40
|
-
### Events
|
|
41
|
-
Below is a collection of Vue **events** for the `AwButtonNav` component.
|
|
42
|
-
<!-- @vuese:AwButtonNav:events:start -->
|
|
43
|
-
|
|
44
|
-
<!-- @vuese:AwButtonNav:events:end -->
|
package/docs/aw-button.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: Button сomponent | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwButton /> component is used to render Button - UI Vue component for Awes.io.
|
|
6
|
-
title: Button
|
|
7
|
-
---
|
|
8
|
-
# Button
|
|
9
|
-
|
|
10
|
-
The `AwButton` component is used to render Button.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
Several examples how you can use `AwButton`.
|
|
15
|
-
|
|
16
|
-
### Live Example
|
|
17
|
-
<iframe
|
|
18
|
-
src='https://codesandbox.io/embed/github/awes-io/client/tree/master/examples/basic-ui?autoresize=1&fontsize=14&hidenavigation=1&initialpath=%2Faw-button&module=%2Fpages%2Faw-button.vue&theme=dark&view=editor'
|
|
19
|
-
style='width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;'
|
|
20
|
-
title='basic-ui'
|
|
21
|
-
allow='geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb'
|
|
22
|
-
sandbox='allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
|
|
23
|
-
></iframe>
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
Select your desired component from below and see the available props, slots, events and functions.
|
|
27
|
-
|
|
28
|
-
### Props
|
|
29
|
-
Below is a collection of Vue **props** for the `AwButton` component.
|
|
30
|
-
<!-- @vuese:AwButton:props:start -->
|
|
31
|
-
|Name|Description|Type|Required|Default|
|
|
32
|
-
|---|---|---|---|---|
|
|
33
|
-
|size|Possible values: 'sm', 'md', 'lg'|`String`|`false`|-|
|
|
34
|
-
|color|Background color of button. Possible values: 'info', 'success', 'warning', 'error'|`String`|`false`|-|
|
|
35
|
-
|theme|Possible values: outline, ghost|`String`|`false`|-|
|
|
36
|
-
|icon|Name of icon in button. Icon placed before text|`String`|`false`|-|
|
|
37
|
-
|loading|Indicates if loader spinner is shown|`Boolean` / `String`|`false`|-|
|
|
38
|
-
|contentClass|CSS class for content wrapper|`String`|`false`|-|
|
|
39
|
-
|active|Active state|`Boolean`|`false`|-|
|
|
40
|
-
|
|
41
|
-
<!-- @vuese:AwButton:props:end -->
|
|
42
|
-
|
|
43
|
-
### Slots
|
|
44
|
-
Below is a collection of Vue **slots** for the `AwButton` component.
|
|
45
|
-
<!-- @vuese:AwButton:slots:start -->
|
|
46
|
-
|Name|Description|Default Slot Content|
|
|
47
|
-
|---|---|---|
|
|
48
|
-
|default|-|-|
|
|
49
|
-
|
|
50
|
-
<!-- @vuese:AwButton:slots:end -->
|
package/docs/aw-calendar-days.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: Calendar Days | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwCalendarDays /> component is used to render Button - UI Vue component for Awes.io.
|
|
6
|
-
title: Calendar Days
|
|
7
|
-
---
|
|
8
|
-
# Calendar Days
|
|
9
|
-
|
|
10
|
-
The `AwCalendarDays` component is used to render days for calendar.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Props
|
|
14
|
-
|
|
15
|
-
<!-- @vuese:AwCalendarDays:props:start -->
|
|
16
|
-
|Name|Description|Type|Required|Default|
|
|
17
|
-
|---|---|---|---|---|
|
|
18
|
-
|year|-|`Number`|`false`|2020|
|
|
19
|
-
|month|-|`Number`|`false`|2|
|
|
20
|
-
|firstDay|-|`Number`|`false`|1|
|
|
21
|
-
|weekdays|-|`Array`|`false`|-|
|
|
22
|
-
|disabledDays|-|`Function`|`false`|-|
|
|
23
|
-
|selected|-|`Object` / `Date` / `Array`|`false`|-|
|
|
24
|
-
|
|
25
|
-
<!-- @vuese:AwCalendarDays:props:end -->
|
|
26
|
-
|
|
27
|
-
## Events
|
|
28
|
-
|
|
29
|
-
<!-- @vuese:AwCalendarDays:events:start -->
|
|
30
|
-
|Event Name|Description|Parameters|
|
|
31
|
-
|---|---|---|
|
|
32
|
-
|click:date|-|-|
|
|
33
|
-
|
|
34
|
-
<!-- @vuese:AwCalendarDays:events:end -->
|
|
35
|
-
|
|
36
|
-
## Slots
|
|
37
|
-
|
|
38
|
-
<!-- @vuese:AwCalendarDays:slots:start -->
|
|
39
|
-
|Name|Description|Default Slot Content|
|
|
40
|
-
|---|---|---|
|
|
41
|
-
|before|-|-|
|
|
42
|
-
|default|-|-|
|
|
43
|
-
|after|-|-|
|
|
44
|
-
|
|
45
|
-
<!-- @vuese:AwCalendarDays:slots:end -->
|
|
46
|
-
|
package/docs/aw-calendar-nav.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
metaTitle: Calendar Nav | Awes.io
|
|
3
|
-
meta:
|
|
4
|
-
- name: description
|
|
5
|
-
content: The <AwCalendarDays /> component is used to render Button - UI Vue component for Awes.io.
|
|
6
|
-
title: Calendar Nav
|
|
7
|
-
---
|
|
8
|
-
# Calendar Nav
|
|
9
|
-
|
|
10
|
-
The `AwCalendarNav` component is used to render navigation for calendar.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Props
|
|
14
|
-
|
|
15
|
-
<!-- @vuese:AwCalendarNav:props:start -->
|
|
16
|
-
|Name|Description|Type|Required|Default|
|
|
17
|
-
|---|---|---|---|---|
|
|
18
|
-
|year|-|`Number`|`false`|-|
|
|
19
|
-
|month|-|`Number`|`false`|-|
|
|
20
|
-
|months|-|`Array`|`false`|-|
|
|
21
|
-
|disabledPrev|-|`Boolean`|`false`|-|
|
|
22
|
-
|disabledNext|-|`Boolean`|`false`|-|
|
|
23
|
-
|
|
24
|
-
<!-- @vuese:AwCalendarNav:props:end -->
|
|
25
|
-
|