aloha-vue 1.2.21 → 1.2.23

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.21",
17
+ "version": "1.2.23",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -6,6 +6,9 @@ import {
6
6
 
7
7
  import AConfirmAPI from "../../../compositionAPI/AConfirmAPI";
8
8
 
9
+ import {
10
+ getTranslatedText,
11
+ } from "../../../ATranslation/compositionAPI/UtilsAPI";
9
12
  import {
10
13
  cloneDeep,
11
14
  forEach,
@@ -94,7 +97,9 @@ export default function ActionsAPI(props, { emit }) {
94
97
  bodyHtml: "_A_TABLE_EXECUTE_MULTIPLE_ACTION_BODY_HTML_{{action}}_{{selectedRows}}_",
95
98
  saveButtonText: "_A_TABLE_EXECUTE_MULTIPLE_ACTION_BTN_SAVE_",
96
99
  extra: {
97
- action: currentMultipleActions.value.text,
100
+ action: getTranslatedText({
101
+ placeholder: currentMultipleActions.value.text,
102
+ }),
98
103
  selectedRows: selectedRows.value.length,
99
104
  },
100
105
  save: onStartModalMultipleActions,
@@ -1,8 +1,13 @@
1
1
  import {
2
- computed, ref,
2
+ computed,
3
+ ref,
3
4
  toRef,
4
5
  } from "vue";
5
6
 
7
+ import {
8
+ getTranslatedText,
9
+ } from "../../../ATranslation/compositionAPI/UtilsAPI";
10
+
6
11
  import {
7
12
  isString,
8
13
  isNumber,
@@ -12,6 +17,7 @@ export default function AttributesAPI(props, {
12
17
  currentLanguage = computed(() => ({})),
13
18
  popupVisible = ref(false),
14
19
  }) {
20
+ const extra = toRef(props, "extra");
15
21
  const id = toRef(props, "id");
16
22
  const placeholder = toRef(props, "placeholder");
17
23
  const range = toRef(props, "range");
@@ -20,7 +26,7 @@ export default function AttributesAPI(props, {
20
26
 
21
27
  const innerPlaceholder = computed(() => {
22
28
  if (isString(placeholder.value)) {
23
- return placeholder.value;
29
+ return getTranslatedText({ placeholder: placeholder.value, extra: extra.value });
24
30
  }
25
31
  if (range.value) {
26
32
  return currentLanguage.value.placeholder.dateRange;