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
|
@@ -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(
|
|
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
|
-
|
|
174
|
+
h(ATranslation, {
|
|
175
|
+
tag: "strong",
|
|
176
|
+
safeHtml: this.currentLabel,
|
|
177
|
+
}),
|
|
185
178
|
]) : "",
|
|
186
179
|
h(
|
|
187
180
|
"div",
|