aloha-vue 1.2.230 → 1.2.232

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.230",
17
+ "version": "1.2.232",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -32,6 +32,7 @@
32
32
  width: var(--a_input_number_width);
33
33
  max-width: var(--a_input_number_max_width);
34
34
  min-width: var(--a_input_number_min_width);
35
+ z-index: 1;
35
36
  }
36
37
 
37
38
  .a_form_element_number__currency_symbol {
@@ -3,13 +3,11 @@ import {
3
3
  h,
4
4
  resolveComponent,
5
5
  toRef,
6
- withDirectives,
7
6
  } from "vue";
8
7
 
8
+ import AElement from "../../../AElement/AElement";
9
9
  import ATranslation from "../../../ATranslation/ATranslation";
10
10
 
11
- import ASafeHtml from "../../../directives/ASafeHtml";
12
-
13
11
  import AKeysCode from "../../../const/AKeysCode";
14
12
  import {
15
13
  setFocusToTinymce
@@ -132,15 +130,6 @@ export default {
132
130
  }
133
131
  };
134
132
 
135
- const labelHtml = computed(() => {
136
- return currentLabel.value && h("strong", null, [
137
- withDirectives(h("span"), [
138
- [ASafeHtml, currentLabel.value],
139
- ]),
140
- h("span", null, ":"),
141
- ]);
142
- });
143
-
144
133
  const onKeydown = $event => {
145
134
  if ($event.keyCode === AKeysCode.enter ||
146
135
  $event.keyCode === AKeysCode.space) {
@@ -158,7 +147,6 @@ export default {
158
147
  isErrorLinkLocal,
159
148
  isErrorObject,
160
149
  isErrorString,
161
- labelHtml,
162
150
  onKeydown,
163
151
  };
164
152
  },
@@ -168,20 +156,25 @@ export default {
168
156
  }, [
169
157
  this.isErrorString ?
170
158
  this.isErrorLinkLocal ?
171
- h("a", {
159
+ h(AElement, {
160
+ type: "link",
172
161
  class: "a_errors__label a_btn a_btn_link a_p_0",
173
162
  tabindex: 0,
174
163
  "aria-describedby": this.id,
164
+ safeHtml: this.currentLabel,
165
+ textTag: "strong",
166
+ textAfter: ":",
175
167
  onClick: this.goToErrorLocal,
176
168
  onKeydown: this.onKeydown,
177
- }, [
178
- this.labelHtml,
179
- ]) :
169
+ }) :
180
170
  h("div", {
181
171
  class: "a_errors__label",
182
172
  "aria-describedby": this.id,
183
173
  }, [
184
- this.labelHtml,
174
+ h(ATranslation, {
175
+ tag: "strong",
176
+ safeHtml: this.currentLabel,
177
+ }),
185
178
  ]) : "",
186
179
  h(
187
180
  "div",
@@ -372,7 +372,7 @@ export default {
372
372
  }, [
373
373
  h(AFormElementBtnClear, {
374
374
  alwaysTranslate: this.alwaysTranslate,
375
- disabled: this.disabledClearButton,
375
+ disabled: this.disabled,
376
376
  class: this.clearButtonClass,
377
377
  onClear: this.clearModel,
378
378
  }),