aloha-vue 1.2.276 → 1.2.278

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 CHANGED
@@ -7,6 +7,15 @@
7
7
  ---
8
8
  # Versions
9
9
 
10
+ ## 1.2.278
11
+
12
+ - Fixed the `disabled` state handling for elements with `type="link"` in the `AElement` component.
13
+
14
+ ## 1.2.277
15
+
16
+ - Removed the unnecessary `role="button"` attribute from buttons in`AInputCurrency` and `AInputNumber` components.
17
+ - Added `title` and `textScreenReader` props for buttons in `AInputCurrency` and `AInputNumber` to enhance accessibility and screen reader support.
18
+
10
19
  ## 1.2.276
11
20
 
12
21
  - Fixed the `aria-describedby` attribute for UI components to ensure proper association with error messages, improving accessibility.
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.276",
17
+ "version": "1.2.278",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -10,6 +10,7 @@ import AriaLabelAPI from "../ATranslation/compositionAPI/AriaLabelAPI";
10
10
  import AttributesAPI from "./comositionAPI/AttributesAPI";
11
11
  import ClickAPI from "./comositionAPI/ClickAPI";
12
12
  import ComponentLocalAPI from "./comositionAPI/ComponentLocalAPI";
13
+ import DisabledAPI from "./comositionAPI/DisabledAPI";
13
14
  import HtmlTitleAPI from "./comositionAPI/HtmlTitleAPI";
14
15
  import LoadingAPI from "./comositionAPI/LoadingAPI";
15
16
  import RouterLinkAPI from "./comositionAPI/RouterLinkAPI";
@@ -286,6 +287,10 @@ export default {
286
287
  isRouterLink,
287
288
  } = RouterLinkAPI(props);
288
289
 
290
+ const {
291
+ disabledLocal,
292
+ } = DisabledAPI(props);
293
+
289
294
  const {
290
295
  tagLocal,
291
296
  } = TagAPI(props, {
@@ -344,6 +349,7 @@ export default {
344
349
  ariaLabelAttributes,
345
350
  attributesToExcludeFromRender,
346
351
  componentLocal,
352
+ disabledLocal,
347
353
  elementRef,
348
354
  htmlTitleAttributes,
349
355
  isLoadingLeft,
@@ -377,7 +383,7 @@ export default {
377
383
  ],
378
384
  type: this.typeAttribut,
379
385
  tabindex: this.tabindex,
380
- disabled: this.disabled,
386
+ disabled: this.disabledLocal,
381
387
  ariaDisabled: this.ariaDisabled,
382
388
  "aria-pressed": this.isSwitchActive,
383
389
  isAllRowsSelected: undefined, // TODO: ATable
@@ -0,0 +1,22 @@
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ export default function DisabledAPI(props) {
7
+ const type = toRef(props, "type");
8
+ const disabled = toRef(props, "disabled");
9
+
10
+ const disabledLocal = computed(() => {
11
+ if (["button", "submit", "reset"].indexOf(type.value) !== -1 &&
12
+ disabled.value) {
13
+ return true;
14
+ }
15
+
16
+ return undefined;
17
+ });
18
+
19
+ return {
20
+ disabledLocal,
21
+ };
22
+ }
@@ -31,6 +31,8 @@ import ASpinnerI18n from "../ASpinner/i18n/ASpinnerI18n";
31
31
  import ALoadingI18n from "../ALoading/i18n/ALoadingI18n";
32
32
  import ACloakI18n from "../ACloak/i18n/ACloakI18n";
33
33
  import ARequiredI18n from "../ui/ARequired/i18n/ARequiredI18n";
34
+ import AInputNumberI18n from "../ui/AInputNumber/i18n/AInputNumberI18n";
35
+ import AInputCurrencyI18n from "../ui/AInputCurrency/i18n/AInputCurrencyI18n";
34
36
 
35
37
  export const ar = {
36
38
  ...arJson,
@@ -58,6 +60,8 @@ export const ar = {
58
60
  ...ALoadingI18n.ar,
59
61
  ...ACloakI18n.ar,
60
62
  ...ARequiredI18n.ar,
63
+ ...AInputNumberI18n.ar,
64
+ ...AInputCurrencyI18n.ar,
61
65
  };
62
66
  export const de = {
63
67
  ...deJson,
@@ -85,6 +89,8 @@ export const de = {
85
89
  ...ALoadingI18n.de,
86
90
  ...ACloakI18n.de,
87
91
  ...ARequiredI18n.de,
92
+ ...AInputNumberI18n.de,
93
+ ...AInputCurrencyI18n.de,
88
94
  };
89
95
  export const en = {
90
96
  ...enJson,
@@ -112,6 +118,8 @@ export const en = {
112
118
  ...ALoadingI18n.en,
113
119
  ...ACloakI18n.en,
114
120
  ...ARequiredI18n.en,
121
+ ...AInputNumberI18n.en,
122
+ ...AInputCurrencyI18n.en,
115
123
  };
116
124
  export const es = {
117
125
  ...esJson,
@@ -139,6 +147,8 @@ export const es = {
139
147
  ...ALoadingI18n.es,
140
148
  ...ACloakI18n.es,
141
149
  ...ARequiredI18n.es,
150
+ ...AInputNumberI18n.es,
151
+ ...AInputCurrencyI18n.es,
142
152
  };
143
153
  export const fr = {
144
154
  ...frJson,
@@ -166,6 +176,8 @@ export const fr = {
166
176
  ...ALoadingI18n.fr,
167
177
  ...ACloakI18n.fr,
168
178
  ...ARequiredI18n.fr,
179
+ ...AInputNumberI18n.fr,
180
+ ...AInputCurrencyI18n.fr,
169
181
  };
170
182
  export const hr = {
171
183
  ...hrJson,
@@ -193,6 +205,8 @@ export const hr = {
193
205
  ...ALoadingI18n.hr,
194
206
  ...ACloakI18n.hr,
195
207
  ...ARequiredI18n.hr,
208
+ ...AInputNumberI18n.hr,
209
+ ...AInputCurrencyI18n.hr,
196
210
  };
197
211
  export const it = {
198
212
  ...itJson,
@@ -220,6 +234,8 @@ export const it = {
220
234
  ...ALoadingI18n.it,
221
235
  ...ACloakI18n.it,
222
236
  ...ARequiredI18n.it,
237
+ ...AInputNumberI18n.it,
238
+ ...AInputCurrencyI18n.it,
223
239
  };
224
240
  export const ru = {
225
241
  ...ruJson,
@@ -247,6 +263,8 @@ export const ru = {
247
263
  ...ALoadingI18n.ru,
248
264
  ...ACloakI18n.ru,
249
265
  ...ARequiredI18n.ru,
266
+ ...AInputNumberI18n.ru,
267
+ ...AInputCurrencyI18n.ru,
250
268
  };
251
269
 
252
270
  export default {
@@ -498,20 +498,18 @@ export default {
498
498
  class: "a_btn a_btn_outline_secondary",
499
499
  iconLeft: "Minus",
500
500
  tabindex: -1,
501
- attributes: {
502
- role: "button",
503
- },
504
501
  disabled: this.disabled,
502
+ title: "_A_INPUT_CURRENCY_BTN_DECREASE_",
503
+ textScreenReader: "_A_INPUT_CURRENCY_BTN_DECREASE_",
505
504
  onClick: this.decrease,
506
505
  }),
507
506
  h(AButton, {
508
507
  class: "a_btn a_btn_outline_secondary",
509
508
  iconLeft: "Plus",
510
509
  tabindex: -1,
511
- attributes: {
512
- role: "button",
513
- },
514
510
  disabled: this.disabled,
511
+ title: "_A_INPUT_CURRENCY_BTN_INCREASE_",
512
+ textScreenReader: "_A_INPUT_CURRENCY_BTN_INCREASE_",
515
513
  onClick: this.increase,
516
514
  }),
517
515
  ]),
@@ -0,0 +1,19 @@
1
+ import ar from "./ar.json";
2
+ import de from "./de.json";
3
+ import en from "./en.json";
4
+ import es from "./es.json";
5
+ import fr from "./fr.json";
6
+ import hr from "./hr.json";
7
+ import it from "./it.json";
8
+ import ru from "./ru.json";
9
+
10
+ export default {
11
+ ar,
12
+ de,
13
+ en,
14
+ es,
15
+ fr,
16
+ hr,
17
+ it,
18
+ ru,
19
+ };
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "تقليل القيمة",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "زيادة القيمة"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "Wert verringern",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "Wert erhöhen"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "Decrease value",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "Increase value"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "Disminuir valor",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "Aumentar valor"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "Diminuer la valeur",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "Augmenter la valeur"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "Smanji vrijednost",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "Povećaj vrijednost"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "Diminuisci valore",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "Aumenta valore"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_CURRENCY_BTN_DECREASE_": "Уменьшить значение",
3
+ "_A_INPUT_CURRENCY_BTN_INCREASE_": "Увеличить значение"
4
+ }
@@ -397,10 +397,9 @@ export default {
397
397
  class: "a_btn a_btn_outline_secondary",
398
398
  iconLeft: "Minus",
399
399
  tabindex: -1,
400
- attributes: {
401
- role: "button",
402
- },
403
400
  disabled: this.disabled,
401
+ title: "_A_INPUT_NUMBER_BTN_DECREASE_",
402
+ textScreenReader: "_A_INPUT_NUMBER_BTN_DECREASE_",
404
403
  onClick: this.decrease,
405
404
  }),
406
405
  h(AButton, {
@@ -408,10 +407,9 @@ export default {
408
407
  class: "a_btn a_btn_outline_secondary",
409
408
  iconLeft: "Plus",
410
409
  tabindex: -1,
411
- attributes: {
412
- role: "button",
413
- },
414
410
  disabled: this.disabled,
411
+ title: "_A_INPUT_NUMBER_BTN_INCREASE_",
412
+ textScreenReader: "_A_INPUT_NUMBER_BTN_INCREASE_",
415
413
  onClick: this.increase,
416
414
  }),
417
415
  ]),
@@ -0,0 +1,19 @@
1
+ import ar from "./ar.json";
2
+ import de from "./de.json";
3
+ import en from "./en.json";
4
+ import es from "./es.json";
5
+ import fr from "./fr.json";
6
+ import hr from "./hr.json";
7
+ import it from "./it.json";
8
+ import ru from "./ru.json";
9
+
10
+ export default {
11
+ ar,
12
+ de,
13
+ en,
14
+ es,
15
+ fr,
16
+ hr,
17
+ it,
18
+ ru,
19
+ };
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "تقليل القيمة",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "زيادة القيمة"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "Wert verringern",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "Wert erhöhen"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "Decrease value",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "Increase value"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "Disminuir valor",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "Aumentar valor"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "Diminuer la valeur",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "Augmenter la valeur"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "Smanji vrijednost",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "Povećaj vrijednost"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "Diminuisci valore",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "Aumenta valore"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_A_INPUT_NUMBER_BTN_DECREASE_": "Уменьшить значение",
3
+ "_A_INPUT_NUMBER_BTN_INCREASE_": "Увеличить значение"
4
+ }