@goodhood-web/nebenan-base 2.0.0 → 2.0.1-development.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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +3 -3
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -51942,7 +51942,7 @@ function ib(n) {
51942
51942
  };
51943
51943
  function r(h) {
51944
51944
  let g;
51945
- return h && typeof h == "string" && e.isElement && (g = e.el.querySelector(h), g) ? g : (h && (typeof h == "string" && (g = [...document.querySelectorAll(h)]), e.params.uniqueNavElements && typeof h == "string" && g && g.length > 1 && e.el.querySelectorAll(h).length === 1 ? g = e.el.querySelector(h) : g && g.length === 1 && (g = g[0])), h && !g ? h : g);
51945
+ return h && typeof h == "string" && e.isElement && (g = e.el.querySelector(h) || e.hostEl.querySelector(h), g) ? g : (h && (typeof h == "string" && (g = [...document.querySelectorAll(h)]), e.params.uniqueNavElements && typeof h == "string" && g && g.length > 1 && e.el.querySelectorAll(h).length === 1 ? g = e.el.querySelector(h) : g && g.length === 1 && (g = g[0])), h && !g ? h : g);
51946
51946
  }
51947
51947
  function s(h, g) {
51948
51948
  const p = e.params.navigation;
@@ -53386,7 +53386,7 @@ function Zb(n) {
53386
53386
  startMoving: void 0
53387
53387
  }), s.startX = m, s.startY = h, a.touchStartTime = wa(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (a.allowThresholdMove = !1);
53388
53388
  let g = !0;
53389
- f.matches(a.focusableElements) && (g = !1, f.nodeName === "SELECT" && (a.isTouched = !1)), i.activeElement && i.activeElement.matches(a.focusableElements) && i.activeElement !== f && i.activeElement.blur();
53389
+ f.matches(a.focusableElements) && (g = !1, f.nodeName === "SELECT" && (a.isTouched = !1)), i.activeElement && i.activeElement.matches(a.focusableElements) && i.activeElement !== f && (t.pointerType === "mouse" || t.pointerType !== "mouse" && !f.matches(a.focusableElements)) && i.activeElement.blur();
53390
53390
  const p = g && e.allowTouchMove && r.touchStartPreventDefault;
53391
53391
  (r.touchStartForcePreventDefault || p) && !f.isContentEditable && t.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", t);
53392
53392
  }
@@ -53433,7 +53433,7 @@ function qb(n) {
53433
53433
  } else if (d < r.startX && i.translate <= i.maxTranslate() || d > r.startX && i.translate >= i.minTranslate())
53434
53434
  return;
53435
53435
  }
53436
- if (e.activeElement && f.target === e.activeElement && f.target.matches(t.focusableElements)) {
53436
+ if (e.activeElement && e.activeElement.matches(t.focusableElements) && e.activeElement !== f.target && f.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && f.target === e.activeElement && f.target.matches(t.focusableElements)) {
53437
53437
  t.isMoved = !0, i.allowClick = !1;
53438
53438
  return;
53439
53439
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-development.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",