aloha-vue 1.2.167 → 1.2.169

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.167",
17
+ "version": "1.2.169",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -53,6 +53,7 @@ export default function AttributesAPI(props, {
53
53
  const dropdownAttributesLocal = computed(() => {
54
54
  const DROPDOWN_ATTRIBUTES = cloneDeep(dropdownAttributes.value);
55
55
  DROPDOWN_ATTRIBUTES.ref = "dropdownRef";
56
+ DROPDOWN_ATTRIBUTES.role = "application";
56
57
  DROPDOWN_ATTRIBUTES["aria-labelledby"] = idLocal.value;
57
58
  DROPDOWN_ATTRIBUTES["aria-hidden"] = !statusExpanded.value;
58
59
  DROPDOWN_ATTRIBUTES.class = ["a_dropdown__menu", dropdownClass.value, {
@@ -714,7 +714,7 @@ export default {
714
714
  });
715
715
 
716
716
  watch(isColumnActionWide, (newValue, oldValue) => {
717
- if (newValue === oldValue) {
717
+ if (newValue !== oldValue) {
718
718
  checkVisibleColumns();
719
719
  }
720
720
  });
@@ -31,6 +31,9 @@ export default function ScrollControlAPI(props, { emit }, {
31
31
  const isActionColumnVisible = toRef(props, "isActionColumnVisible");
32
32
  const isSimpleTable = toRef(props, "isSimpleTable");
33
33
 
34
+ const aTableRef = ref(undefined);
35
+ const columnsVisibleAdditionalSpaceForOneGrow = ref(0);
36
+ const tableWidth = ref(undefined);
34
37
  let changingTableWidth = false;
35
38
 
36
39
  const columnActionsWidthMinLocal = computed(() => {
@@ -39,15 +42,13 @@ export default function ScrollControlAPI(props, { emit }, {
39
42
  }
40
43
  return 0;
41
44
  });
45
+
42
46
  const columnsSpecialWidth = computed(() => {
43
47
  const columnMultipleActionsWidth = isMultipleActionsActive.value ? columnActionsWidthMin.value : 0;
44
48
  const scrollBarWidth = isSimpleTable.value ? 0 : 10; // delta for table resize when scrollbar appears
45
49
  return columnMultipleActionsWidth + scrollBarWidth;
46
50
  });
47
51
 
48
- const tableWidth = ref(undefined);
49
- const aTableRef = ref(undefined);
50
- const columnsVisibleAdditionalSpaceForOneGrow = ref(0);
51
52
 
52
53
  const setAdditionalSpaceColumnsForOneGrow = ({
53
54
  sumGrows = 0,