aloha-vue 1.2.254 → 1.2.255

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/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.254",
17
+ "version": "1.2.255",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -2,7 +2,7 @@ import {
2
2
  h,
3
3
  } from "vue";
4
4
 
5
- import AButton from "../../AButton/AButton";
5
+ import AElement from "../../AElement/AElement";
6
6
  import ASelect from "../../ui/ASelect/ASelect";
7
7
  import ATranslation from "../../ATranslation/ATranslation";
8
8
 
@@ -97,7 +97,7 @@ export default {
97
97
  return h("div", {
98
98
  class: "a_pagination__count__item",
99
99
  }, [
100
- h(AButton, {
100
+ h(AElement, {
101
101
  "aria-current": IS_ACTIVE ? true : undefined,
102
102
  class: "a_btn a_btn_link a_pagination__count__button",
103
103
  disabled: IS_ACTIVE || this.disabled,
@@ -128,7 +128,7 @@ export default {
128
128
  }
129
129
  ],
130
130
  }, [
131
- h(AButton, {
131
+ h(AElement, {
132
132
  "aria-current": IS_ACTIVE ? true : undefined,
133
133
  class: "a_pagination__item__link",
134
134
  disabled: this.disabled,
@@ -142,6 +142,7 @@ export default {
142
142
  textAriaHidden: true,
143
143
  textScreenReader: "_A_COUNT_PER_PAGE_ITEM_{{count}}_",
144
144
  title: "_A_COUNT_PER_PAGE_ITEM_{{count}}_",
145
+ type: "button",
145
146
  onClick: () => this.changeLimit(count),
146
147
  onKeydown: $event => this.keyDownChangeLimit($event, count),
147
148
  }),
@@ -2,7 +2,7 @@ import {
2
2
  h,
3
3
  } from "vue";
4
4
 
5
- import AButton from "../../AButton/AButton";
5
+ import AElement from "../../AElement/AElement";
6
6
  import ATranslation from "../../ATranslation/ATranslation";
7
7
 
8
8
  import DisabledAPI from "./compositionAPI/DisabledAPI";
@@ -107,9 +107,10 @@ export default {
107
107
  }, {
108
108
  default: () => {
109
109
  if (this.mode === "loadMore") {
110
- return h(AButton, {
110
+ return h(AElement, {
111
111
  class: "a_btn a_btn_primary",
112
112
  text: "Load more",
113
+ type: "button",
113
114
  });
114
115
  }
115
116
  return [
@@ -119,13 +120,15 @@ export default {
119
120
  this.mode !== "short" ? h("li", {
120
121
  class: ["a_pagination__item", { disabled: this.disabledButtonFirstPage }]
121
122
  }, [
122
- h(AButton, {
123
- tag: "a",
123
+ h(AElement, {
124
124
  class: "a_pagination__item__link",
125
+ iconLeft: "DoubleAngleLeft",
125
126
  role: "button",
126
127
  tabindex: this.disabledButtonFirstPage ? -1 : 0,
128
+ tag: "a",
129
+ textScreenReader: "_A_PAGINATION_FIRST_PAGE_",
127
130
  title: "_A_PAGINATION_FIRST_PAGE_",
128
- iconLeft: "DoubleAngleLeft",
131
+ type: "button",
129
132
  onClick: this.updateOffsetFirst,
130
133
  onKeydown: this.keyDownUpdateOffsetFirst,
131
134
  }),
@@ -133,13 +136,15 @@ export default {
133
136
  h("li", {
134
137
  class: ["a_pagination__item", { disabled: this.disabledButtonFirstPage }]
135
138
  }, [
136
- h(AButton, {
137
- tag: "a",
139
+ h(AElement, {
138
140
  class: "a_pagination__item__link",
141
+ iconLeft: "AngleLeft",
139
142
  role: "button",
140
143
  tabindex: this.disabledButtonFirstPage ? -1 : 0,
144
+ tag: "a",
145
+ textScreenReader: "_A_PAGINATION_PREVIOUS_PAGE_",
141
146
  title: "_A_PAGINATION_PREVIOUS_PAGE_",
142
- iconLeft: "AngleLeft",
147
+ type: "button",
143
148
  onClick: this.updateOffsetPrevious,
144
149
  onKeydown: this.keyDownUpdateOffsetPrevious,
145
150
  }),
@@ -166,7 +171,7 @@ export default {
166
171
  disabled: this.disabled,
167
172
  }],
168
173
  }, [
169
- h(AButton, {
174
+ h(AElement, {
170
175
  "aria-current": IS_ACTIVE ? true : undefined,
171
176
  class: "a_pagination__item__link",
172
177
  extra: {
@@ -177,7 +182,9 @@ export default {
177
182
  tag: "a",
178
183
  text: item,
179
184
  textAriaHidden: true,
185
+ textScreenReader: "_A_PAGINATION_TO_PAGE_{{page}}_",
180
186
  title: "_A_PAGINATION_TO_PAGE_{{page}}_",
187
+ type: "button",
181
188
  onClick: () => this.updateOffset(item),
182
189
  onKeydown: $event => this.keyDownUpdateOffset($event, item),
183
190
  }),
@@ -186,13 +193,15 @@ export default {
186
193
  h("li", {
187
194
  class: ["a_pagination__item", { disabled: this.disabledButtonLastPage }]
188
195
  }, [
189
- h(AButton, {
190
- tag: "a",
196
+ h(AElement, {
191
197
  class: "a_pagination__item__link",
198
+ iconLeft: "AngleRight",
192
199
  role: "button",
193
200
  tabindex: this.disabledButtonLastPage ? -1 : 0,
201
+ tag: "a",
202
+ textScreenReader: "_A_PAGINATION_NEXT_PAGE_",
194
203
  title: "_A_PAGINATION_NEXT_PAGE_",
195
- iconLeft: "AngleRight",
204
+ type: "button",
196
205
  onClick: this.updateOffsetNext,
197
206
  onKeydown: this.keyDownUpdateOffsetNext,
198
207
  }),
@@ -200,13 +209,15 @@ export default {
200
209
  this.mode !== "short" ? h("li", {
201
210
  class: ["a_pagination__item", { disabled: this.disabledButtonLastPage }]
202
211
  }, [
203
- h(AButton, {
204
- tag: "a",
212
+ h(AElement, {
205
213
  class: "a_pagination__item__link",
214
+ iconLeft: "DoubleAngleRight",
206
215
  role: "button",
207
216
  tabindex: this.disabledButtonLastPage ? -1 : 0,
217
+ tag: "a",
218
+ textScreenReader: "_A_PAGINATION_LAST_PAGE_",
208
219
  title: "_A_PAGINATION_LAST_PAGE_",
209
- iconLeft: "DoubleAngleRight",
220
+ type: "button",
210
221
  onClick: this.updateOffsetLast,
211
222
  onKeydown: this.keyDownUpdateOffsetLast,
212
223
  }),