aloha-vue 2.32.0 → 2.32.2

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/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@
7
7
  ---
8
8
  # Versions
9
9
 
10
+ ## 2.32.2
11
+
12
+ - Fixed: Add defensive checks for `getBoundingClientRect` across components to improve stability when handling DOM elements
13
+
14
+ ## 2.32.1
15
+
16
+ - Feature: Add `aria-hidden` attribute to divider type in `ADropdownAction` for improved accessibility
17
+
10
18
  ## 2.32.0
11
19
 
12
20
  - Feature: Add `selectRoute` and `multiselectRoute` types to `ARouterLinkConfig`
@@ -8780,6 +8780,8 @@ function zt({ element: e, selector: t }) {
8780
8780
  _ && (_.hasAttribute("tabindex") ? _.focus() : (_.setAttribute("tabindex", "-1"), _.focus(), _.removeAttribute("tabindex")));
8781
8781
  }
8782
8782
  function Bh(e) {
8783
+ if (!(e != null && e.getBoundingClientRect))
8784
+ return !1;
8783
8785
  const t = e.getBoundingClientRect();
8784
8786
  return t.width > 0 && t.height > 0;
8785
8787
  }
@@ -16467,6 +16469,7 @@ const k0 = {
16467
16469
  onClick: this.action.callback
16468
16470
  })
16469
16471
  ]) : this.action.type === "divider" ? d("li", {
16472
+ "aria-hidden": !0,
16470
16473
  class: [
16471
16474
  "a_dropdown__divider",
16472
16475
  this.action.liClass
@@ -47948,9 +47951,10 @@ function mk({
47948
47951
  }) {
47949
47952
  return {
47950
47953
  scrollToTable: () => {
47951
- if (e.value) {
47952
- let r = e.value.getBoundingClientRect().top + window.scrollY - window.innerHeight / 2;
47953
- r < 0 && (r = 0), document.documentElement.scrollTop = r;
47954
+ var n;
47955
+ if (e.value && ((n = e.value) != null && n.getBoundingClientRect)) {
47956
+ let s = e.value.getBoundingClientRect().top + window.scrollY - window.innerHeight / 2;
47957
+ s < 0 && (s = 0), document.documentElement.scrollTop = s;
47954
47958
  }
47955
47959
  },
47956
47960
  setFocusToTable: () => {
@@ -48107,6 +48111,9 @@ function Nk(e, { emit: t }, {
48107
48111
  } = bp(), o = 200, c = 50;
48108
48112
  let S, T = 0, A = 0, f = 0;
48109
48113
  const h = () => {
48114
+ var B;
48115
+ if (!((B = _.value) != null && B.getBoundingClientRect))
48116
+ return;
48110
48117
  A = _.value.getBoundingClientRect().left;
48111
48118
  }, p = ({ clientWidth: U }) => {
48112
48119
  T = U, S = U / 100 * c, h();