aloha-vue 1.0.356 → 1.0.358
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
package/src/AModal/AModal.js
CHANGED
|
@@ -18,9 +18,7 @@ import {
|
|
|
18
18
|
} from "../const/AFocusableElements";
|
|
19
19
|
import {
|
|
20
20
|
cloneDeep,
|
|
21
|
-
filter,
|
|
22
21
|
forEach,
|
|
23
|
-
get,
|
|
24
22
|
isArray,
|
|
25
23
|
isFunction,
|
|
26
24
|
isString,
|
|
@@ -210,36 +208,6 @@ export default {
|
|
|
210
208
|
};
|
|
211
209
|
},
|
|
212
210
|
computed: {
|
|
213
|
-
listFiltered() {
|
|
214
|
-
return filter(this.options.list, item => !item.readonly);
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
confirmOkLabel() {
|
|
218
|
-
return this.confirmOptions.okLabel || "_BTN_SAVE_";
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
confirmCancelLabel() {
|
|
222
|
-
return this.confirmOptions.cancelLabel || "_BTN_CANCEL_";
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
cancelLabel() {
|
|
226
|
-
return this.options.cancelLabel || "_BTN_CANCEL_";
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
autocomplete() {
|
|
230
|
-
return this.options.autocomplete || "on";
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
dependencyValues() {
|
|
234
|
-
const DEPS = {};
|
|
235
|
-
forEach(this.listFiltered, item => {
|
|
236
|
-
if (item.dependency) {
|
|
237
|
-
DEPS[item.id] = get(this.model, item.dependency);
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
return DEPS;
|
|
241
|
-
},
|
|
242
|
-
|
|
243
211
|
modalClassSize() {
|
|
244
212
|
if (this.size) {
|
|
245
213
|
return `a_modal_${ this.size }`;
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "lodash-es";
|
|
9
9
|
|
|
10
10
|
const language = ref("de");
|
|
11
|
-
|
|
11
|
+
let i18n = {};
|
|
12
12
|
export const isTranslate = ref(true);
|
|
13
13
|
|
|
14
14
|
export const translation = computed(() => {
|
|
15
15
|
if (isTranslate.value) {
|
|
16
|
-
return i18n
|
|
16
|
+
return i18n[language.value];
|
|
17
17
|
}
|
|
18
18
|
return {};
|
|
19
19
|
});
|
|
@@ -31,7 +31,7 @@ export default function ATranslationAPI() {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export function setI18n(i18nLocal = {}) {
|
|
34
|
-
i18n
|
|
34
|
+
i18n = i18nLocal;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export function setLanguage(languageLocal = "") {
|