aloha-vue 1.0.259 → 1.0.260

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.259",
4
+ "version": "1.0.260",
5
5
  "author": "Ilia Brykin",
6
6
  "scripts": {
7
7
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1"
@@ -70,6 +70,7 @@ export default {
70
70
  const {
71
71
  isCheckboxDisabled,
72
72
  isCheckboxIndeterminate,
73
+ labelCheckbox,
73
74
  modelValueCheckboxLocal,
74
75
  toggleCheckbox,
75
76
  } = CheckboxAPI(props, context);
@@ -84,6 +85,7 @@ export default {
84
85
  isCheckboxDisabled,
85
86
  isCheckboxIndeterminate,
86
87
  isDragstart,
88
+ labelCheckbox,
87
89
  modelValueCheckboxLocal,
88
90
  root,
89
91
  toggleCheckbox,
@@ -116,7 +118,7 @@ export default {
116
118
  modelValue: this.modelValueCheckboxLocal,
117
119
  indeterminate: this.isCheckboxIndeterminate,
118
120
  disabled: this.isCheckboxDisabled,
119
- label: "_TABLE_SELECT_ALL_VISIBLE_POSSIBLE_ROWS_",
121
+ label: this.labelCheckbox,
120
122
  labelClass: "a_sr_only",
121
123
  isLabelTitle: true,
122
124
  "onUpdate:modelValue": this.toggleCheckbox,
@@ -25,6 +25,11 @@ export default function CheckboxAPI(props, { emit }) {
25
25
  areAllRowsSelected.value;
26
26
  });
27
27
 
28
+ const labelCheckbox = computed(() => {
29
+ return isCheckboxIndeterminate.value || modelValueCheckboxLocal.value ?
30
+ "_TABLE_DESELECT_ALL_VISIBLE_POSSIBLE_ROWS_" : "_TABLE_SELECT_ALL_VISIBLE_POSSIBLE_ROWS_";
31
+ });
32
+
28
33
  const toggleCheckbox = () => {
29
34
  if (isCheckboxDisabled.value) {
30
35
  return;
@@ -35,6 +40,7 @@ export default function CheckboxAPI(props, { emit }) {
35
40
  return {
36
41
  isCheckboxDisabled,
37
42
  isCheckboxIndeterminate,
43
+ labelCheckbox,
38
44
  modelValueCheckboxLocal,
39
45
  toggleCheckbox,
40
46
  };
@@ -73,6 +73,7 @@ export default {
73
73
  const {
74
74
  isCheckboxDisabled,
75
75
  isRowSelected,
76
+ labelCheckbox,
76
77
  toggleCheckbox,
77
78
  } = CheckboxAPI(props, context);
78
79
 
@@ -81,6 +82,7 @@ export default {
81
82
  isBtnToggleAllColumnsVisible,
82
83
  isCheckboxDisabled,
83
84
  isRowSelected,
85
+ labelCheckbox,
84
86
  rowAttributes,
85
87
  textBtnToggleAllColumns,
86
88
  toggleAllColumnsVisibleMobile,
@@ -147,7 +149,7 @@ export default {
147
149
  isWidthAuto: true,
148
150
  modelValue: this.isRowSelected,
149
151
  disabled: this.isCheckboxDisabled,
150
- label: "_TABLE_SELECT_THIS_ROW_",
152
+ label: this.labelCheckbox,
151
153
  labelClass: "a_sr_only",
152
154
  isLabelTitle: true,
153
155
  "onUpdate:modelValue": this.toggleCheckbox,
@@ -37,6 +37,12 @@ export default function CheckboxAPI(props, { emit }) {
37
37
  return false;
38
38
  });
39
39
 
40
+ const labelCheckbox = computed(() => {
41
+ return isRowSelected.value ?
42
+ "_TABLE_DESELECT_THIS_ROW_" :
43
+ "_TABLE_SELECT_THIS_ROW_";
44
+ });
45
+
40
46
  const toggleCheckbox = () => {
41
47
  if (isCheckboxDisabled.value) {
42
48
  return;
@@ -47,6 +53,7 @@ export default function CheckboxAPI(props, { emit }) {
47
53
  return {
48
54
  isCheckboxDisabled,
49
55
  isRowSelected,
56
+ labelCheckbox,
50
57
  toggleCheckbox,
51
58
  };
52
59
  }
package/src/i18n/de.json CHANGED
@@ -7,11 +7,14 @@
7
7
  "_PAGINATION_NAVIGATION_": "Paginierungsnavigation",
8
8
  "_PREVIOUS_": "Vorherige",
9
9
  "_REMOVE_FIELD_CONTENT_": "Feldinhalt entfernen",
10
+ "_SELECT_TEXT_EMPTY_": "[Keine Auswahl]",
10
11
  "_TABLE_DESELECT_ALL_ROWS_{{countAllRows}}_": "Alle Zeilen abwählen ({{ countAllRows }})",
12
+ "_TABLE_DESELECT_ALL_VISIBLE_POSSIBLE_ROWS_": "Alle ausgewählten Zeilen abwählen",
13
+ "_TABLE_DESELECT_THIS_ROW_": "Die Zeile abwählen",
11
14
  "_TABLE_MULTIPLE_CANCEL_": "Mehrfachaktion abbrechen",
12
15
  "_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} von {{ countAllRows }} ausgewählt",
13
16
  "_TABLE_SELECT_ALL_ROWS_{{countAllRows}}_": "Alle Zeilen auswählen ({{ countAllRows }})",
14
- "_TABLE_SELECT_ALL_VISIBLE_POSSIBLE_ROWS_": "Alle sichtbaren, möglichen Zeilen auswählen",
17
+ "_TABLE_SELECT_ALL_VISIBLE_POSSIBLE_ROWS_": "Alle sichtbaren, relevanten Zeilen auswählen",
15
18
  "_TABLE_SELECT_THIS_ROW_": "Die Zeile auswählen",
16
19
  "_WIZARD_NEXT_": "Nächste",
17
20
  "_WIZARD_PREVIOUS_": "Vorherige",
package/src/i18n/en.json CHANGED
@@ -7,7 +7,10 @@
7
7
  "_PAGINATION_NAVIGATION_": "Pagination Navigation",
8
8
  "_PREVIOUS_": "Previous",
9
9
  "_REMOVE_FIELD_CONTENT_": "Remove field content",
10
+ "_SELECT_TEXT_EMPTY_": "[No selection]",
10
11
  "_TABLE_DESELECT_ALL_ROWS_{{countAllRows}}_": "Deselect all rows ({{ countAllRows }})",
12
+ "_TABLE_DESELECT_ALL_VISIBLE_POSSIBLE_ROWS_": "Deselect all selected rows",
13
+ "_TABLE_DESELECT_THIS_ROW_": "Deselect row",
11
14
  "_TABLE_MULTIPLE_CANCEL_": "Cancel multiple action",
12
15
  "_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} of {{ countAllRows }} selected",
13
16
  "_TABLE_SELECT_ALL_ROWS_{{countAllRows}}_": "Select all rows ({{ countAllRows }})",
package/src/i18n/hr.json CHANGED
@@ -7,7 +7,10 @@
7
7
  "_PAGINATION_NAVIGATION_": "Navigacija po stranicama",
8
8
  "_PREVIOUS_": "Prethodni",
9
9
  "_REMOVE_FIELD_CONTENT_": "Izbrišite sadržaj polja",
10
+ "_SELECT_TEXT_EMPTY_": "[Bez odabira]",
10
11
  "_TABLE_DESELECT_ALL_ROWS_{{countAllRows}}_": "Poništite odabir svih redaka ({{ countAllRows }})",
12
+ "_TABLE_DESELECT_ALL_VISIBLE_POSSIBLE_ROWS_": "Poništi odabir svih odabranih redaka",
13
+ "_TABLE_DESELECT_THIS_ROW_": "Poništite odabir retka",
11
14
  "_TABLE_MULTIPLE_CANCEL_": "Otkaži višestruku radnju",
12
15
  "_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} od {{ countAllRows }} odabrana",
13
16
  "_TABLE_SELECT_ALL_ROWS_{{countAllRows}}_": "Odaberite svih redaka ({{ countAllRows }})",
package/src/i18n/ru.json CHANGED
@@ -7,7 +7,10 @@
7
7
  "_PAGINATION_NAVIGATION_": "Навигация по страницам",
8
8
  "_PREVIOUS_": "Предыдущий",
9
9
  "_REMOVE_FIELD_CONTENT_": "Удалить содержимое поля",
10
+ "_SELECT_TEXT_EMPTY_": "[Нет элементов]",
10
11
  "_TABLE_DESELECT_ALL_ROWS_{{countAllRows}}_": "Отменить выбор всех строк ({{ countAllRows }})",
12
+ "_TABLE_DESELECT_ALL_VISIBLE_POSSIBLE_ROWS_": "Отменить выбор всех выбранных строк",
13
+ "_TABLE_DESELECT_THIS_ROW_": "Отменить выбор строки",
11
14
  "_TABLE_MULTIPLE_CANCEL_": "Отменить",
12
15
  "_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "выбрано {{ countSelectedRows }} из {{ countAllRows }}",
13
16
  "_TABLE_SELECT_ALL_ROWS_{{countAllRows}}_": "Выделить все строки ({{ countAllRows }})",
@@ -15,6 +15,7 @@ import ASelectElement from "./ASelectElement";
15
15
  import ASelectLabelElement from "./ASelectLabelElement";
16
16
  import ASelectValueCloseable from "./ASelectValueCloseable";
17
17
  import ASlot from "../../ASlot/ASlot";
18
+ import ATranslation from "../../ATranslation/ATranslation";
18
19
 
19
20
  import ASafeHtml from "../../directives/ASafeHtml";
20
21
 
@@ -161,6 +162,11 @@ export default {
161
162
  required: false,
162
163
  default: "Alle abwählen",
163
164
  },
165
+ textEmpty: {
166
+ type: String,
167
+ required: false,
168
+ default: "_SELECT_TEXT_EMPTY_",
169
+ },
164
170
  textSearch: {
165
171
  type: String,
166
172
  required: false,
@@ -632,9 +638,11 @@ export default {
632
638
  }, this.$slots);
633
639
  }),
634
640
  ]),
635
- this.isAllElementsHidden && h("span", {
641
+ this.isAllElementsHidden && h(ATranslation, {
642
+ tag: "span",
643
+ html: this.textEmpty,
636
644
  class: "a_select_not_items",
637
- }, "[Keine Auswahl]"),
645
+ }),
638
646
  ]),
639
647
  ]),
640
648
  ]),