aloha-vue 2.85.0 → 2.86.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 +1208 -1200
- package/README.md +117 -117
- package/dist/aloha-vue.css +13806 -13601
- package/dist/aloha-vue.css.map +1 -1
- package/dist/aloha-vue.es.js +60168 -57401
- package/dist/aloha-vue.umd.js +319 -319
- package/package.json +1 -1
- package/scss/components/AButton.scss +6 -6
- package/scss/components/ADivider.scss +9 -9
- package/scss/components/AElement.scss +6 -6
- package/scss/components/AGroupButtonDropdown.scss +4 -4
- package/scss/components/AIcon.scss +17 -17
- package/scss/components/ALoading.scss +18 -18
- package/scss/components/AMenu.scss +634 -634
- package/scss/components/AProgressCirle.scss +43 -43
- package/scss/components/AShowMore.scss +9 -9
- package/scss/components/ATableForm.scss +7 -7
- package/scss/components/ATabs.scss +186 -186
- package/scss/components/ui/AColorPicker.scss +223 -0
- package/scss/components/ui/AJson.scss +11 -11
- package/scss/components/ui/ui.scss +1 -0
- package/scss/text/text_line_height.scss +17 -17
- package/scss/text/text_size.scss +88 -88
- package/scss/utils/acordion.scss +173 -173
- package/scss/utils/alert.scss +81 -81
- package/scss/utils/aloha_prefix.scss +1 -1
- package/scss/utils/backdrop.scss +24 -24
- package/scss/utils/border.scss +65 -65
- package/scss/utils/breakpoint.scss +48 -48
- package/scss/utils/button_close.scss +22 -22
- package/scss/utils/button_group.scss +69 -69
- package/scss/utils/color_utils.scss +234 -234
- package/scss/utils/display.scss +67 -67
- package/scss/utils/flex.scss +141 -141
- package/scss/utils/float.scss +10 -10
- package/scss/utils/global.scss +44 -44
- package/scss/utils/global_variables.scss +26 -26
- package/scss/utils/grid.scss +95 -95
- package/scss/utils/list_columns.scss +31 -31
- package/scss/utils/list_group.scss +127 -127
- package/scss/utils/notification.scss +36 -36
- package/scss/utils/overflow.scss +40 -40
- package/scss/utils/pagination.scss +94 -94
- package/scss/utils/position.scss +90 -90
- package/scss/utils/progress.scss +70 -70
- package/scss/utils/screenreader.scss +16 -16
- package/scss/utils/spinner.scss +35 -35
- package/scss/utils/utils.scss +19 -19
- package/scss/utils/vars_global.scss +12 -12
- package/src/AAlert/i18n/AAlertI18n.js +4 -0
- package/src/AAlert/i18n/nl.json +3 -0
- package/src/AAlert/i18n/pl.json +3 -0
- package/src/ACarousel/i18n/ACarouselI18n.js +4 -0
- package/src/ACarousel/i18n/nl.json +9 -0
- package/src/ACarousel/i18n/pl.json +9 -0
- package/src/ACloak/i18n/ACloakI18n.js +4 -0
- package/src/ACloak/i18n/nl.json +3 -0
- package/src/ACloak/i18n/pl.json +3 -0
- package/src/ADisclosure/i18n/ADisclosureI18n.js +4 -0
- package/src/ADisclosure/i18n/nl.json +4 -0
- package/src/ADisclosure/i18n/pl.json +4 -0
- package/src/AFilters/i18n/AFiltersI18n.js +4 -0
- package/src/AFilters/i18n/nl.json +30 -0
- package/src/AFilters/i18n/pl.json +30 -0
- package/src/AGroupButtonDropdown/AGroupButtonDropdown.js +119 -119
- package/src/ALinkCopy/i18n/ALinkCopyI18n.js +4 -0
- package/src/ALinkCopy/i18n/nl.json +4 -0
- package/src/ALinkCopy/i18n/pl.json +4 -0
- package/src/ALoading/i18n/ALoadingI18n.js +4 -0
- package/src/ALoading/i18n/nl.json +3 -0
- package/src/ALoading/i18n/pl.json +3 -0
- package/src/AMenu/i18n/AMenu2I18n.js +4 -0
- package/src/AMenu/i18n/nl.json +14 -0
- package/src/AMenu/i18n/pl.json +14 -0
- package/src/AModal/compositionAPI/ZIndexAPI.js +48 -48
- package/src/AModal/i18n/AModalI18n.js +4 -0
- package/src/AModal/i18n/nl.json +7 -0
- package/src/AModal/i18n/pl.json +7 -0
- package/src/APagination/i18n/APaginationI18n.js +4 -0
- package/src/APagination/i18n/nl.json +12 -0
- package/src/APagination/i18n/pl.json +12 -0
- package/src/AProgress/AProgress.js +141 -141
- package/src/AProgressCircle/AProgressCircle.js +160 -160
- package/src/AShowMore/i18n/AShowMoreI18n.js +4 -0
- package/src/AShowMore/i18n/nl.json +6 -0
- package/src/AShowMore/i18n/pl.json +6 -0
- package/src/ASpinner/i18n/ASpinnerI18n.js +4 -0
- package/src/ASpinner/i18n/nl.json +3 -0
- package/src/ASpinner/i18n/pl.json +3 -0
- package/src/ATable/ATableHeaderTh/ATableHeaderTh.js +188 -188
- package/src/ATable/i18n/ATableI18n.js +4 -0
- package/src/ATable/i18n/nl.json +54 -0
- package/src/ATable/i18n/pl.json +54 -0
- package/src/ATableForm/i18n/ATableFormI18n.js +4 -0
- package/src/ATableForm/i18n/nl.json +18 -0
- package/src/ATableForm/i18n/pl.json +18 -0
- package/src/ATranslation/compositionAPI/UtilsAPI.js +6 -1
- package/src/ATranslation/compositionAPI/__tests__/UtilsAPI.getTranslatedText.test.js +38 -0
- package/src/AVerticalScroll/i18n/AVerticalScrollI18n.js +4 -0
- package/src/AVerticalScroll/i18n/nl.json +4 -0
- package/src/AVerticalScroll/i18n/pl.json +4 -0
- package/src/AWizard/i18n/AWizardI18n.js +4 -0
- package/src/AWizard/i18n/nl.json +16 -0
- package/src/AWizard/i18n/pl.json +16 -0
- package/src/PVP/new.txt +39 -39
- package/src/PuxDatepicker/PuxDatepicker.js +670 -670
- package/src/PuxDatepicker/PuxDatepicker.pug +131 -131
- package/src/PuxDatepicker/PuxDatepicker.vue +2 -2
- package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.pug +136 -136
- package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.vue +2 -2
- package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.js +30 -30
- package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.pug +6 -6
- package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.vue +2 -2
- package/src/PuxDatepicker/locale/languages.js +174 -174
- package/src/PuxDatepicker/mixins/PanelMixin.js +76 -76
- package/src/PuxDatepicker/panel/PanelDate/PanelDate.pug +41 -41
- package/src/PuxDatepicker/panel/PanelDate/PanelDate.vue +2 -2
- package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.pug +16 -16
- package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.vue +2 -2
- package/src/PuxDatepicker/panel/PanelTime/PanelTime.pug +20 -20
- package/src/PuxDatepicker/panel/PanelTime/PanelTime.vue +2 -2
- package/src/PuxDatepicker/panel/PanelYear/PanelYear.pug +16 -16
- package/src/PuxDatepicker/panel/PanelYear/PanelYear.vue +2 -2
- package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.js +55 -55
- package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.pug +9 -9
- package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.vue +2 -2
- package/src/PuxDatepicker/utils/keysCode.js +9 -9
- package/src/PuxDatepicker/utils/scroll-into-view.js +23 -23
- package/src/PuxDatepicker/utils/transform.js +23 -23
- package/src/filters/i18n/Filters18n.js +4 -0
- package/src/filters/i18n/nl.json +11 -0
- package/src/filters/i18n/pl.json +11 -0
- package/src/i18n/allLanguages.js +96 -0
- package/src/i18n/nl.json +4 -0
- package/src/i18n/pl.json +4 -0
- package/src/index.js +4 -0
- package/src/ui/ACheckbox/ACheckbox.js +5 -0
- package/src/ui/ACheckbox/i18n/ACheckboxI18n.js +4 -0
- package/src/ui/ACheckbox/i18n/nl.json +5 -0
- package/src/ui/ACheckbox/i18n/pl.json +5 -0
- package/src/ui/AColorPicker/AColorPicker.js +697 -0
- package/src/ui/AColorPicker/AColorPickerSaturation/AColorPickerSaturation.js +102 -0
- package/src/ui/AColorPicker/AColorPickerSaturation/compositionAPI/SaturationAPI.js +77 -0
- package/src/ui/AColorPicker/AColorPickerSlider/AColorPickerSlider.js +125 -0
- package/src/ui/AColorPicker/AColorPickerSlider/compositionAPI/SliderAPI.js +73 -0
- package/src/ui/AColorPicker/__tests__/AColorPicker.test.js +139 -0
- package/src/ui/AColorPicker/__tests__/colorUtils.test.js +92 -0
- package/src/ui/AColorPicker/compositionAPI/ColorStateAPI.js +108 -0
- package/src/ui/AColorPicker/compositionAPI/ConfirmAPI.js +36 -0
- package/src/ui/AColorPicker/compositionAPI/InputAPI.js +63 -0
- package/src/ui/AColorPicker/compositionAPI/KeyboardStepAPI.js +42 -0
- package/src/ui/AColorPicker/compositionAPI/PointerDragAPI.js +70 -0
- package/src/ui/AColorPicker/compositionAPI/PopoverAPI.js +179 -0
- package/src/ui/AColorPicker/compositionAPI/PredefineAPI.js +42 -0
- package/src/ui/AColorPicker/compositionAPI/ToggleClassAPI.js +24 -0
- package/src/ui/AColorPicker/i18n/AColorPickerI18n.js +25 -0
- package/src/ui/AColorPicker/i18n/ar.json +13 -0
- package/src/ui/AColorPicker/i18n/de.json +13 -0
- package/src/ui/AColorPicker/i18n/en.json +13 -0
- package/src/ui/AColorPicker/i18n/es.json +13 -0
- package/src/ui/AColorPicker/i18n/fr.json +13 -0
- package/src/ui/AColorPicker/i18n/hr.json +13 -0
- package/src/ui/AColorPicker/i18n/it.json +13 -0
- package/src/ui/AColorPicker/i18n/nl.json +13 -0
- package/src/ui/AColorPicker/i18n/pl.json +13 -0
- package/src/ui/AColorPicker/i18n/ru.json +13 -0
- package/src/ui/AColorPicker/i18n/uk.json +13 -0
- package/src/ui/AColorPicker/utils/colorUtils.js +281 -0
- package/src/ui/ADatepicker/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +68 -68
- package/src/ui/ADatepicker/i18n/ADatepickerI18n.js +4 -0
- package/src/ui/ADatepicker/i18n/nl.json +58 -0
- package/src/ui/ADatepicker/i18n/pl.json +58 -0
- package/src/ui/ADatepicker/panel/APanelTime/APanelTime.js +147 -147
- package/src/ui/ADatepicker/panel/APanelYear/APanelYear.js +123 -123
- package/src/ui/ADatepickerAlt/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +804 -804
- package/src/ui/ADatepickerAlt/panel/APanelDate/APanelDate.js +353 -353
- package/src/ui/ADatepickerAlt/panel/APanelMonth/APanelMonth.js +187 -187
- package/src/ui/ADatepickerAlt/panel/APanelTime/APanelTime.js +303 -303
- package/src/ui/ADatepickerAlt/panel/APanelYear/APanelYear.js +162 -162
- package/src/ui/ADatepickerRange/i18n/ADatepickerRangeI18n.js +4 -0
- package/src/ui/ADatepickerRange/i18n/nl.json +4 -0
- package/src/ui/ADatepickerRange/i18n/pl.json +4 -0
- package/src/ui/AErrors/i18n/AErrorsI18n.js +4 -0
- package/src/ui/AErrors/i18n/nl.json +3 -0
- package/src/ui/AErrors/i18n/pl.json +3 -0
- package/src/ui/AFieldset/__tests__/AFieldset.ClassColumn.test.js +1 -0
- package/src/ui/AFieldset/i18n/AFieldsetI18n.js +4 -0
- package/src/ui/AFieldset/i18n/nl.json +4 -0
- package/src/ui/AFieldset/i18n/pl.json +4 -0
- package/src/ui/AFormElementBtnClear/i18n/AFormElementBtnClearI18n.js +4 -0
- package/src/ui/AFormElementBtnClear/i18n/nl.json +3 -0
- package/src/ui/AFormElementBtnClear/i18n/pl.json +3 -0
- package/src/ui/AInput/i18n/AInputI18n.js +4 -0
- package/src/ui/AInput/i18n/nl.json +4 -0
- package/src/ui/AInput/i18n/pl.json +4 -0
- package/src/ui/AInputCurrency/i18n/AInputCurrencyI18n.js +4 -0
- package/src/ui/AInputCurrency/i18n/nl.json +4 -0
- package/src/ui/AInputCurrency/i18n/pl.json +4 -0
- package/src/ui/AInputNumber/i18n/AInputNumberI18n.js +4 -0
- package/src/ui/AInputNumber/i18n/nl.json +4 -0
- package/src/ui/AInputNumber/i18n/pl.json +4 -0
- package/src/ui/AInputNumberRange/i18n/AInputNumberRangeI18n.js +4 -0
- package/src/ui/AInputNumberRange/i18n/nl.json +4 -0
- package/src/ui/AInputNumberRange/i18n/pl.json +4 -0
- package/src/ui/AJson/i18n/AJsonI18n.js +4 -0
- package/src/ui/AJson/i18n/nl.json +8 -0
- package/src/ui/AJson/i18n/pl.json +8 -0
- package/src/ui/AMultiselectOrdered/i18n/AMultiselectOrderedI18n.js +4 -0
- package/src/ui/AMultiselectOrdered/i18n/nl.json +12 -0
- package/src/ui/AMultiselectOrdered/i18n/pl.json +12 -0
- package/src/ui/ARadio/i18n/ARadioI18n.js +4 -0
- package/src/ui/ARadio/i18n/nl.json +5 -0
- package/src/ui/ARadio/i18n/pl.json +5 -0
- package/src/ui/ARequired/i18n/ARequiredI18n.js +4 -0
- package/src/ui/ARequired/i18n/nl.json +3 -0
- package/src/ui/ARequired/i18n/pl.json +3 -0
- package/src/ui/ARouterLinkConfig/i18n/ARouterLinkConfigI18n.js +4 -0
- package/src/ui/ARouterLinkConfig/i18n/nl.json +14 -0
- package/src/ui/ARouterLinkConfig/i18n/pl.json +14 -0
- package/src/ui/ASelect/i18n/ASelectI18n.js +4 -0
- package/src/ui/ASelect/i18n/ar.json +5 -5
- package/src/ui/ASelect/i18n/de.json +4 -4
- package/src/ui/ASelect/i18n/en.json +5 -5
- package/src/ui/ASelect/i18n/es.json +5 -5
- package/src/ui/ASelect/i18n/fr.json +5 -5
- package/src/ui/ASelect/i18n/hr.json +5 -5
- package/src/ui/ASelect/i18n/it.json +5 -5
- package/src/ui/ASelect/i18n/nl.json +11 -0
- package/src/ui/ASelect/i18n/pl.json +11 -0
- package/src/ui/ASelect/i18n/ru.json +5 -5
- package/src/ui/ASelectStyle/i18n/ASelectStyleI18n.js +4 -0
- package/src/ui/ASelectStyle/i18n/nl.json +292 -0
- package/src/ui/ASelectStyle/i18n/pl.json +292 -0
- package/src/ui/ASlider/i18n/ASliderI18n.js +4 -0
- package/src/ui/ASlider/i18n/nl.json +5 -0
- package/src/ui/ASlider/i18n/pl.json +5 -0
- package/src/ui/ASwitch/i18n/ASwitchI18n.js +4 -0
- package/src/ui/ASwitch/i18n/nl.json +5 -0
- package/src/ui/ASwitch/i18n/pl.json +5 -0
- package/src/ui/AUiComponents.js +2 -0
- package/src/ui/AValidatedJson/i18n/AValidatedJsonI18n.js +4 -0
- package/src/ui/AValidatedJson/i18n/nl.json +25 -0
- package/src/ui/AValidatedJson/i18n/pl.json +25 -0
- package/src/ui/compositionApi/__tests__/UiStyleHideAPI.test.js +9 -4
package/README.md
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-

|
|
2
|
-

|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
# aloha-vue
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
Aloha is a Vue.js-based, highly customizable, internationalized framework for helping developers write code faster and more efficiently, with a special focus on accessibility.
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
Aloha-vue can be installed using npm, yarn, or pnpm:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
# Using npm
|
|
19
|
-
$ npm install aloha-vue
|
|
20
|
-
|
|
21
|
-
# Using yarn
|
|
22
|
-
$ yarn add aloha-vue
|
|
23
|
-
|
|
24
|
-
# Using pnpm
|
|
25
|
-
$ pnpm add aloha-vue
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Styles
|
|
29
|
-
|
|
30
|
-
The styles for aloha-vue are provided in two formats:
|
|
31
|
-
|
|
32
|
-
- Precompiled CSS: `dist/aloha-vue.css`
|
|
33
|
-
- SCSS source: `scss/aloha-vue.scss`
|
|
34
|
-
|
|
35
|
-
### Example: Adding styles in `main.js`
|
|
36
|
-
|
|
37
|
-
```javascript
|
|
38
|
-
import { createApp } from "vue";
|
|
39
|
-
import App from "./App.vue";
|
|
40
|
-
import "aloha-vue/dist/aloha-vue.css";
|
|
41
|
-
|
|
42
|
-
const app = createApp(App);
|
|
43
|
-
app.mount("#app");
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Usage
|
|
47
|
-
|
|
48
|
-
### Example: Importing and using a simple component (AButton)
|
|
49
|
-
|
|
50
|
-
```javascript
|
|
51
|
-
import { createApp } from "vue";
|
|
52
|
-
import App from "./App.vue";
|
|
53
|
-
import { AButton } from "aloha-vue";
|
|
54
|
-
import "aloha-vue/dist/aloha-vue.css";
|
|
55
|
-
|
|
56
|
-
const app = createApp(App);
|
|
57
|
-
|
|
58
|
-
app.component("AButton", AButton);
|
|
59
|
-
|
|
60
|
-
app.mount("#app");
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
In your Vue template:
|
|
64
|
-
|
|
65
|
-
```html
|
|
66
|
-
<template>
|
|
67
|
-
<div>
|
|
68
|
-
<a-button @click="onClick">Click Me</a-button>
|
|
69
|
-
</div>
|
|
70
|
-
</template>
|
|
71
|
-
|
|
72
|
-
<script>
|
|
73
|
-
export default {
|
|
74
|
-
methods: {
|
|
75
|
-
onClick() {
|
|
76
|
-
alert("Button clicked!");
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
</script>
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Development
|
|
84
|
-
|
|
85
|
-
### Documentation
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# Serve with hot reloading at localhost:9000
|
|
89
|
-
# Requires Node.js v22.12.0
|
|
90
|
-
$ cd docs
|
|
91
|
-
$ npm i
|
|
92
|
-
$ npm run dev
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Documentation
|
|
96
|
-
|
|
97
|
-
The documentation can be found in [DOCS](https://ilia-brykin.github.io/aloha/). Each component has a dedicated demo page outlining both basic and advanced usage, along with an overview table.
|
|
98
|
-
|
|
99
|
-
[Aloha documentation](https://ilia-brykin.github.io/aloha/) is available in English, German, Spanish, French, Arabic, Italian, Russian, and
|
|
100
|
-
|
|
101
|
-
## Tests
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
# Start all tests
|
|
105
|
-
$ npm run test
|
|
106
|
-
|
|
107
|
-
# Start one test
|
|
108
|
-
$ npm run test src/filters/__tests__/filterList.test.js
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## Sponsor / Support
|
|
112
|
-
|
|
113
|
-
[PROUNIX](https://prounix.de/)
|
|
114
|
-
|
|
115
|
-
## License
|
|
116
|
-
|
|
117
|
-
aloha-vue is released under the [MIT](https://github.com/ilia-brykin/aloha/blob/master/LICENSE) license.
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
# aloha-vue
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Aloha is a Vue.js-based, highly customizable, internationalized framework for helping developers write code faster and more efficiently, with a special focus on accessibility.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Aloha-vue can be installed using npm, yarn, or pnpm:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Using npm
|
|
19
|
+
$ npm install aloha-vue
|
|
20
|
+
|
|
21
|
+
# Using yarn
|
|
22
|
+
$ yarn add aloha-vue
|
|
23
|
+
|
|
24
|
+
# Using pnpm
|
|
25
|
+
$ pnpm add aloha-vue
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Styles
|
|
29
|
+
|
|
30
|
+
The styles for aloha-vue are provided in two formats:
|
|
31
|
+
|
|
32
|
+
- Precompiled CSS: `dist/aloha-vue.css`
|
|
33
|
+
- SCSS source: `scss/aloha-vue.scss`
|
|
34
|
+
|
|
35
|
+
### Example: Adding styles in `main.js`
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
import { createApp } from "vue";
|
|
39
|
+
import App from "./App.vue";
|
|
40
|
+
import "aloha-vue/dist/aloha-vue.css";
|
|
41
|
+
|
|
42
|
+
const app = createApp(App);
|
|
43
|
+
app.mount("#app");
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
### Example: Importing and using a simple component (AButton)
|
|
49
|
+
|
|
50
|
+
```javascript
|
|
51
|
+
import { createApp } from "vue";
|
|
52
|
+
import App from "./App.vue";
|
|
53
|
+
import { AButton } from "aloha-vue";
|
|
54
|
+
import "aloha-vue/dist/aloha-vue.css";
|
|
55
|
+
|
|
56
|
+
const app = createApp(App);
|
|
57
|
+
|
|
58
|
+
app.component("AButton", AButton);
|
|
59
|
+
|
|
60
|
+
app.mount("#app");
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
In your Vue template:
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<template>
|
|
67
|
+
<div>
|
|
68
|
+
<a-button @click="onClick">Click Me</a-button>
|
|
69
|
+
</div>
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<script>
|
|
73
|
+
export default {
|
|
74
|
+
methods: {
|
|
75
|
+
onClick() {
|
|
76
|
+
alert("Button clicked!");
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
</script>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Development
|
|
84
|
+
|
|
85
|
+
### Documentation
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# Serve with hot reloading at localhost:9000
|
|
89
|
+
# Requires Node.js v22.12.0
|
|
90
|
+
$ cd docs
|
|
91
|
+
$ npm i
|
|
92
|
+
$ npm run dev
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Documentation
|
|
96
|
+
|
|
97
|
+
The documentation can be found in [DOCS](https://ilia-brykin.github.io/aloha/). Each component has a dedicated demo page outlining both basic and advanced usage, along with an overview table.
|
|
98
|
+
|
|
99
|
+
[Aloha documentation](https://ilia-brykin.github.io/aloha/) is available in English, German, Spanish, French, Arabic, Italian, Russian, Croatian, Ukrainian, Dutch, and Polish.
|
|
100
|
+
|
|
101
|
+
## Tests
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Start all tests
|
|
105
|
+
$ npm run test
|
|
106
|
+
|
|
107
|
+
# Start one test
|
|
108
|
+
$ npm run test src/filters/__tests__/filterList.test.js
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Sponsor / Support
|
|
112
|
+
|
|
113
|
+
[PROUNIX](https://prounix.de/)
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
aloha-vue is released under the [MIT](https://github.com/ilia-brykin/aloha/blob/master/LICENSE) license.
|