aloha-vue 2.87.0 → 2.87.1

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/aloha-vue.css +13827 -13827
  3. package/dist/aloha-vue.es.js +60256 -60235
  4. package/dist/aloha-vue.umd.js +319 -319
  5. package/package.json +1 -1
  6. package/scss/components/ui/ACheckbox.scss +17 -17
  7. package/scss/components/ui/AInputFile.scss +15 -15
  8. package/scss/utils/border_radius.scss +61 -61
  9. package/src/AAlert/compositionAPI/IconAPI.js +28 -28
  10. package/src/ACloak/ACloak.js +135 -135
  11. package/src/ALoading/ALoading.js +146 -146
  12. package/src/AMenu/compositionAPI/ResizeAPI.js +1 -1
  13. package/src/AMenu/compositionAPI/__tests__/ResizeAPI.test.js +33 -0
  14. package/src/ASpinner/ASpinner.js +71 -71
  15. package/src/filters/i18n/ar.json +11 -11
  16. package/src/filters/i18n/de.json +11 -11
  17. package/src/filters/i18n/en.json +11 -11
  18. package/src/filters/i18n/es.json +11 -11
  19. package/src/filters/i18n/fr.json +11 -11
  20. package/src/filters/i18n/hr.json +10 -10
  21. package/src/filters/i18n/it.json +11 -11
  22. package/src/filters/i18n/nl.json +11 -11
  23. package/src/filters/i18n/pl.json +11 -11
  24. package/src/filters/i18n/ru.json +10 -10
  25. package/src/plugins/ACloakPlugin.js +26 -26
  26. package/src/plugins/AFormPlugin.js +18 -18
  27. package/src/plugins/AGroupButtonDropdownPlugin.js +26 -26
  28. package/src/plugins/AInputNumberPlugin.js +29 -29
  29. package/src/plugins/ALoadingPlugin.js +26 -26
  30. package/src/plugins/AModalPlugin.js +41 -41
  31. package/src/plugins/ARouterLinkConfigPlugin.js +88 -88
  32. package/src/plugins/ASpinnerPlugin.js +26 -26
  33. package/src/plugins/ATablePlugin.js +28 -28
  34. package/src/ui/ACheckbox/i18n/ar.json +5 -5
  35. package/src/ui/ACheckbox/i18n/de.json +5 -5
  36. package/src/ui/ACheckbox/i18n/en.json +5 -5
  37. package/src/ui/ACheckbox/i18n/es.json +5 -5
  38. package/src/ui/ACheckbox/i18n/fr.json +5 -5
  39. package/src/ui/ACheckbox/i18n/hr.json +5 -5
  40. package/src/ui/ACheckbox/i18n/it.json +5 -5
  41. package/src/ui/ACheckbox/i18n/nl.json +4 -4
  42. package/src/ui/ACheckbox/i18n/pl.json +4 -4
  43. package/src/ui/ACheckbox/i18n/ru.json +5 -5
  44. package/src/ui/AColorPicker/AColorPicker.js +15 -11
  45. package/src/ui/AColorPicker/__tests__/AColorPicker.test.js +41 -0
  46. package/src/ui/AColorPicker/compositionAPI/ClearAPI.js +23 -0
  47. package/src/ui/AColorPicker/compositionAPI/IdAPI.js +15 -0
  48. package/src/ui/ADatepicker/compositionAPI/PlaceholderAPI.js +32 -32
  49. package/src/ui/AMultiselectOrdered/compositionAPI/TextsAPI.js +55 -55
  50. package/src/ui/ASlider/__tests__/ASlider.Form.test.js +38 -0
  51. package/src/ui/AUiComponents.js +2 -0
  52. package/src/ui/__tests__/ReadonlyValueParentClass.test.js +217 -217
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
- "version": "2.87.0",
3
+ "version": "2.87.1",
4
4
  "description": "Aloha-vue is a JavaScript library that provides a wide range of accessible components and directives for Vue.js. Accessibility is of paramount importance to us, and we have designed all our components to meet accessibility compliance criteria. This library is a valuable tool for frontend developers and has already been used in three projects, including two large-scale ones",
5
5
  "keywords": [
6
6
  "accessibility compliance criteria",
@@ -1,18 +1,18 @@
1
- .a_checkbox_inline {
2
- .a_checkbox__data_extra,
3
- .a_checkbox_data,
4
- .a_checkbox_radio_group__data {
5
- display: flex;
6
- flex-wrap: wrap;
7
- }
8
- }
9
- .a_checkbox_control {
10
- margin-top: 1rem;
11
- .a_checkbox_data {
12
- margin-top: 0.5rem;
13
- }
14
- .a_fieldset .a_fieldset {
15
- margin-top: 1.5rem;
16
- --a_fieldset_padding_top: 1.5rem;
17
- }
1
+ .a_checkbox_inline {
2
+ .a_checkbox__data_extra,
3
+ .a_checkbox_data,
4
+ .a_checkbox_radio_group__data {
5
+ display: flex;
6
+ flex-wrap: wrap;
7
+ }
8
+ }
9
+ .a_checkbox_control {
10
+ margin-top: 1rem;
11
+ .a_checkbox_data {
12
+ margin-top: 0.5rem;
13
+ }
14
+ .a_fieldset .a_fieldset {
15
+ margin-top: 1.5rem;
16
+ --a_fieldset_padding_top: 1.5rem;
17
+ }
18
18
  }
@@ -1,16 +1,16 @@
1
- .a_file__label {
2
- display: inline-block;
3
- cursor: pointer;
4
- overflow: hidden;
5
- position: relative;
6
- width: auto;
7
- line-height: 1;
8
- }
9
- .a_file__input {
10
- overflow: hidden;
11
- position: fixed;
12
- width: 1px;
13
- height: 1px;
14
- z-index: -1;
15
- opacity: 0;
1
+ .a_file__label {
2
+ display: inline-block;
3
+ cursor: pointer;
4
+ overflow: hidden;
5
+ position: relative;
6
+ width: auto;
7
+ line-height: 1;
8
+ }
9
+ .a_file__input {
10
+ overflow: hidden;
11
+ position: fixed;
12
+ width: 1px;
13
+ height: 1px;
14
+ z-index: -1;
15
+ opacity: 0;
16
16
  }
@@ -1,62 +1,62 @@
1
- .a_rounded_inherit {
2
- border-radius: inherit !important;
3
- }
4
- .a_rounded_top_inherit {
5
- border-top-left-radius: inherit !important;
6
- border-top-right-radius: inherit !important;
7
- }
8
- .a_rounded_right_inherit {
9
- border-top-right-radius: inherit !important;
10
- border-bottom-right-radius: inherit !important;
11
- }
12
- .a_rounded_bottom_inherit {
13
- border-bottom-left-radius: inherit !important;
14
- border-bottom-right-radius: inherit !important;
15
- }
16
- .a_rounded_left_inherit {
17
- border-top-left-radius: inherit !important;
18
- border-bottom-left-radius: inherit !important;
19
- }
20
- .a_rounded_top_left_inherit {
21
- border-top-left-radius: inherit !important;
22
- }
23
- .a_rounded_top_right_inherit {
24
- border-top-right-radius: inherit !important;
25
- }
26
- .a_rounded_bottom_right_inherit {
27
- border-bottom-right-radius: inherit !important;
28
- }
29
- .a_rounded_bottom_left_inherit {
30
- border-bottom-left-radius: inherit !important;
31
- }
32
- .a_rounded_0 {
33
- border-radius: 0 !important;
34
- }
35
- .a_rounded_top_0 {
36
- border-top-left-radius: 0 !important;
37
- border-top-right-radius: 0 !important;
38
- }
39
- .a_rounded_right_0 {
40
- border-top-right-radius: 0 !important;
41
- border-bottom-right-radius: 0 !important;
42
- }
43
- .a_rounded_bottom_0 {
44
- border-bottom-left-radius: 0 !important;
45
- border-bottom-right-radius: 0 !important;
46
- }
47
- .a_rounded_left_0 {
48
- border-top-left-radius: 0 !important;
49
- border-bottom-left-radius: 0 !important;
50
- }
51
- .a_rounded_top_left_0 {
52
- border-top-left-radius: 0 !important;
53
- }
54
- .a_rounded_top_right_0 {
55
- border-top-right-radius: 0 !important;
56
- }
57
- .a_rounded_bottom_right_0 {
58
- border-bottom-right-radius: 0 !important;
59
- }
60
- .a_rounded_bottom_left_0 {
61
- border-bottom-left-radius: 0 !important;
1
+ .a_rounded_inherit {
2
+ border-radius: inherit !important;
3
+ }
4
+ .a_rounded_top_inherit {
5
+ border-top-left-radius: inherit !important;
6
+ border-top-right-radius: inherit !important;
7
+ }
8
+ .a_rounded_right_inherit {
9
+ border-top-right-radius: inherit !important;
10
+ border-bottom-right-radius: inherit !important;
11
+ }
12
+ .a_rounded_bottom_inherit {
13
+ border-bottom-left-radius: inherit !important;
14
+ border-bottom-right-radius: inherit !important;
15
+ }
16
+ .a_rounded_left_inherit {
17
+ border-top-left-radius: inherit !important;
18
+ border-bottom-left-radius: inherit !important;
19
+ }
20
+ .a_rounded_top_left_inherit {
21
+ border-top-left-radius: inherit !important;
22
+ }
23
+ .a_rounded_top_right_inherit {
24
+ border-top-right-radius: inherit !important;
25
+ }
26
+ .a_rounded_bottom_right_inherit {
27
+ border-bottom-right-radius: inherit !important;
28
+ }
29
+ .a_rounded_bottom_left_inherit {
30
+ border-bottom-left-radius: inherit !important;
31
+ }
32
+ .a_rounded_0 {
33
+ border-radius: 0 !important;
34
+ }
35
+ .a_rounded_top_0 {
36
+ border-top-left-radius: 0 !important;
37
+ border-top-right-radius: 0 !important;
38
+ }
39
+ .a_rounded_right_0 {
40
+ border-top-right-radius: 0 !important;
41
+ border-bottom-right-radius: 0 !important;
42
+ }
43
+ .a_rounded_bottom_0 {
44
+ border-bottom-left-radius: 0 !important;
45
+ border-bottom-right-radius: 0 !important;
46
+ }
47
+ .a_rounded_left_0 {
48
+ border-top-left-radius: 0 !important;
49
+ border-bottom-left-radius: 0 !important;
50
+ }
51
+ .a_rounded_top_left_0 {
52
+ border-top-left-radius: 0 !important;
53
+ }
54
+ .a_rounded_top_right_0 {
55
+ border-top-right-radius: 0 !important;
56
+ }
57
+ .a_rounded_bottom_right_0 {
58
+ border-bottom-right-radius: 0 !important;
59
+ }
60
+ .a_rounded_bottom_left_0 {
61
+ border-bottom-left-radius: 0 !important;
62
62
  }
@@ -1,28 +1,28 @@
1
- import {
2
- computed,
3
- toRef,
4
- } from "vue";
5
-
6
- import {
7
- alertPluginOptions,
8
- } from "../../plugins/AAlertPlugin";
9
-
10
- export default function IconAPI(props) {
11
- const icon = toRef(props, "icon");
12
- const showIcon = toRef(props, "showIcon");
13
- const type = toRef(props, "type");
14
-
15
- const iconLocal = computed(() => {
16
- if (!showIcon.value) {
17
- return undefined;
18
- }
19
- if (icon.value) {
20
- return icon.value;
21
- }
22
- return alertPluginOptions.value.icons[type.value];
23
- });
24
-
25
- return {
26
- iconLocal,
27
- };
28
- }
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ import {
7
+ alertPluginOptions,
8
+ } from "../../plugins/AAlertPlugin";
9
+
10
+ export default function IconAPI(props) {
11
+ const icon = toRef(props, "icon");
12
+ const showIcon = toRef(props, "showIcon");
13
+ const type = toRef(props, "type");
14
+
15
+ const iconLocal = computed(() => {
16
+ if (!showIcon.value) {
17
+ return undefined;
18
+ }
19
+ if (icon.value) {
20
+ return icon.value;
21
+ }
22
+ return alertPluginOptions.value.icons[type.value];
23
+ });
24
+
25
+ return {
26
+ iconLocal,
27
+ };
28
+ }
@@ -1,135 +1,135 @@
1
- import {
2
- h,
3
- } from "vue";
4
- import {
5
- ASpinner,
6
- ATranslation,
7
- } from "../index";
8
-
9
- import ClassAPI from "./compositionAPI/ClassAPI";
10
-
11
- import {
12
- cloakPluginOptions,
13
- } from "../plugins/ACloakPlugin";
14
- import {
15
- spinnerPluginOptions,
16
- } from "../plugins/ASpinnerPlugin";
17
-
18
- export default {
19
- name: "ACloak",
20
- props: {
21
- align: {
22
- type: String,
23
- required: false,
24
- default: () => cloakPluginOptions.value.propsDefault.align,
25
- validator: value => ["left", "center", "right"].indexOf(value) !== -1,
26
- },
27
- alwaysTranslate: {
28
- type: Boolean,
29
- required: false,
30
- },
31
- extra: {
32
- type: Object,
33
- required: false,
34
- default: cloakPluginOptions.value.propsDefault.extra,
35
- },
36
- size: {
37
- type: [String, Number],
38
- required: false,
39
- default: () => cloakPluginOptions.value.propsDefault.size,
40
- validator: size => ["1", "2", "3", "4", "5", "6", "7"].indexOf(`${ size }`) !== -1,
41
- },
42
- spinnerClass: {
43
- type: [String, Object],
44
- required: false,
45
- default: () => spinnerPluginOptions.value.propsDefault.class,
46
- },
47
- spinnerSafeHtml: {
48
- type: String,
49
- required: false,
50
- default: () => spinnerPluginOptions.value.propsDefault.safeHtml,
51
- },
52
- spinnerTag: {
53
- type: String,
54
- required: false,
55
- default: () => spinnerPluginOptions.value.propsDefault.tag,
56
- },
57
- tag: {
58
- type: String,
59
- required: false,
60
- default: () => cloakPluginOptions.value.propsDefault.tag,
61
- },
62
- text: {
63
- type: String,
64
- required: false,
65
- default: () => cloakPluginOptions.value.propsDefault.text,
66
- },
67
- textAlign: {
68
- type: String,
69
- required: false,
70
- default: () => cloakPluginOptions.value.propsDefault.textAlign,
71
- validator: value => ["left", "right"].indexOf(value) !== -1,
72
- },
73
- },
74
- setup(props) {
75
- const {
76
- classAlign,
77
- classForBox,
78
- classTextSize,
79
- } = ClassAPI(props);
80
-
81
- return {
82
- classAlign,
83
- classForBox,
84
- classTextSize,
85
- };
86
- },
87
- render() {
88
- const IS_TEXT_LEFT = this.textAlign === "left";
89
-
90
- const BOX_TEXT = h(ATranslation, {
91
- alwaysTranslate: this.alwaysTranslate,
92
- tag: "span",
93
- class: [
94
- "a_cloak__text",
95
- IS_TEXT_LEFT ?
96
- "a_cloak__text_left" :
97
- "a_cloak__text_right",
98
- this.classTextSize,
99
- ],
100
- text: this.text,
101
- extra: this.extra,
102
- });
103
-
104
- return h(
105
- this.tag,
106
- {
107
- role: "status",
108
- class: this.classAlign,
109
- },
110
- [
111
- h("div", {
112
- class: ["a_cloak__box", this.classForBox],
113
- }, [
114
- IS_TEXT_LEFT ?
115
- BOX_TEXT :
116
- "",
117
- h(ASpinner, {
118
- alwaysTranslate: this.alwaysTranslate,
119
- class: [
120
- "a_cloak__spinner",
121
- this.spinnerClass,
122
- ],
123
- "aria-hidden": "true",
124
- safeHtml: this.spinnerSafeHtml,
125
- size: this.size,
126
- tag: this.spinnerTag,
127
- }),
128
- !IS_TEXT_LEFT ?
129
- BOX_TEXT :
130
- "",
131
- ]),
132
- ],
133
- );
134
- },
135
- };
1
+ import {
2
+ h,
3
+ } from "vue";
4
+ import {
5
+ ASpinner,
6
+ ATranslation,
7
+ } from "../index";
8
+
9
+ import ClassAPI from "./compositionAPI/ClassAPI";
10
+
11
+ import {
12
+ cloakPluginOptions,
13
+ } from "../plugins/ACloakPlugin";
14
+ import {
15
+ spinnerPluginOptions,
16
+ } from "../plugins/ASpinnerPlugin";
17
+
18
+ export default {
19
+ name: "ACloak",
20
+ props: {
21
+ align: {
22
+ type: String,
23
+ required: false,
24
+ default: () => cloakPluginOptions.value.propsDefault.align,
25
+ validator: value => ["left", "center", "right"].indexOf(value) !== -1,
26
+ },
27
+ alwaysTranslate: {
28
+ type: Boolean,
29
+ required: false,
30
+ },
31
+ extra: {
32
+ type: Object,
33
+ required: false,
34
+ default: cloakPluginOptions.value.propsDefault.extra,
35
+ },
36
+ size: {
37
+ type: [String, Number],
38
+ required: false,
39
+ default: () => cloakPluginOptions.value.propsDefault.size,
40
+ validator: size => ["1", "2", "3", "4", "5", "6", "7"].indexOf(`${ size }`) !== -1,
41
+ },
42
+ spinnerClass: {
43
+ type: [String, Object],
44
+ required: false,
45
+ default: () => spinnerPluginOptions.value.propsDefault.class,
46
+ },
47
+ spinnerSafeHtml: {
48
+ type: String,
49
+ required: false,
50
+ default: () => spinnerPluginOptions.value.propsDefault.safeHtml,
51
+ },
52
+ spinnerTag: {
53
+ type: String,
54
+ required: false,
55
+ default: () => spinnerPluginOptions.value.propsDefault.tag,
56
+ },
57
+ tag: {
58
+ type: String,
59
+ required: false,
60
+ default: () => cloakPluginOptions.value.propsDefault.tag,
61
+ },
62
+ text: {
63
+ type: String,
64
+ required: false,
65
+ default: () => cloakPluginOptions.value.propsDefault.text,
66
+ },
67
+ textAlign: {
68
+ type: String,
69
+ required: false,
70
+ default: () => cloakPluginOptions.value.propsDefault.textAlign,
71
+ validator: value => ["left", "right"].indexOf(value) !== -1,
72
+ },
73
+ },
74
+ setup(props) {
75
+ const {
76
+ classAlign,
77
+ classForBox,
78
+ classTextSize,
79
+ } = ClassAPI(props);
80
+
81
+ return {
82
+ classAlign,
83
+ classForBox,
84
+ classTextSize,
85
+ };
86
+ },
87
+ render() {
88
+ const IS_TEXT_LEFT = this.textAlign === "left";
89
+
90
+ const BOX_TEXT = h(ATranslation, {
91
+ alwaysTranslate: this.alwaysTranslate,
92
+ tag: "span",
93
+ class: [
94
+ "a_cloak__text",
95
+ IS_TEXT_LEFT ?
96
+ "a_cloak__text_left" :
97
+ "a_cloak__text_right",
98
+ this.classTextSize,
99
+ ],
100
+ text: this.text,
101
+ extra: this.extra,
102
+ });
103
+
104
+ return h(
105
+ this.tag,
106
+ {
107
+ role: "status",
108
+ class: this.classAlign,
109
+ },
110
+ [
111
+ h("div", {
112
+ class: ["a_cloak__box", this.classForBox],
113
+ }, [
114
+ IS_TEXT_LEFT ?
115
+ BOX_TEXT :
116
+ "",
117
+ h(ASpinner, {
118
+ alwaysTranslate: this.alwaysTranslate,
119
+ class: [
120
+ "a_cloak__spinner",
121
+ this.spinnerClass,
122
+ ],
123
+ "aria-hidden": "true",
124
+ safeHtml: this.spinnerSafeHtml,
125
+ size: this.size,
126
+ tag: this.spinnerTag,
127
+ }),
128
+ !IS_TEXT_LEFT ?
129
+ BOX_TEXT :
130
+ "",
131
+ ]),
132
+ ],
133
+ );
134
+ },
135
+ };