@turquoisehealth/pit-viper 2.252.0 → 2.253.0

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 (67) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +27 -7
  2. package/_site/assets/css/pit-viper-consumer.css +27 -7
  3. package/_site/assets/css/pit-viper-v2-scoped.css +25 -7
  4. package/_site/assets/css/pit-viper-v2.css +27 -7
  5. package/_site/assets/css/pit-viper.css +27 -7
  6. package/package.json +1 -1
  7. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  8. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  16. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
  17. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  18. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
  19. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  20. package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
  21. package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
  22. package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
  23. package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
  24. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  25. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  26. package/pv-components/dist/vue/ai/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
  27. package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +8 -0
  28. package/pv-components/dist/vue/ai/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
  29. package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
  30. package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +4 -0
  31. package/pv-components/dist/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
  32. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
  33. package/pv-components/dist/vue/base/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
  34. package/pv-components/dist/vue/base/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
  35. package/pv-components/dist/vue/base/components/base/PvTabs/types.d.ts +4 -0
  36. package/pv-components/dist/vue/base/pv-components-base.mjs +1023 -929
  37. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  38. package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
  39. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
  40. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
  41. package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
  42. package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +4 -0
  43. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
  44. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +5 -1
  45. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/horizontalFilterFit.d.ts +17 -0
  46. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +9 -2
  47. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2398 -2357
  48. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  49. package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +226 -223
  50. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +5 -3
  51. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1735 -1732
  52. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +356 -353
  53. package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +650 -647
  54. package/pv-components/dist/web/components/pv-menu/pv-menu.js +1241 -1238
  55. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +421 -418
  56. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +108 -106
  57. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +70 -67
  58. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +343 -340
  59. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +146 -143
  60. package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +805 -802
  61. package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +362 -359
  62. package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +694 -692
  63. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +1312 -1185
  64. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +177 -174
  65. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +227 -224
  66. package/pv-components/dist/web/pv-components.iife.js +14 -14
  67. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as e from "vue";
2
2
  import { Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, defineCustomElement as c, getCurrentInstance as l, getCurrentScope as u, mergeModels as d, nextTick as f, normalizeStyle as p, onBeforeUnmount as m, onBeforeUpdate as h, onMounted as g, onScopeDispose as _, onUnmounted as v, openBlock as y, reactive as b, readonly as x, ref as S, renderSlot as C, shallowRef as w, toValue as T, unref as E, useModel as ee, useSlots as D, vShow as te, watch as O, watchEffect as k, withDirectives as ne } from "vue";
3
3
  //#region \0rolldown/runtime.js
4
- var A = Object.defineProperty, re = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, ie = Object.prototype.hasOwnProperty, ae = (e, t) => {
4
+ var A = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ie = Object.getOwnPropertyNames, j = Object.prototype.hasOwnProperty, ae = (e, t) => {
5
5
  let n = {};
6
6
  for (var r in e) A(n, r, {
7
7
  get: e[r],
@@ -9,33 +9,33 @@ var A = Object.defineProperty, re = Object.getOwnPropertyDescriptor, j = Object.
9
9
  });
10
10
  return t || A(n, Symbol.toStringTag, { value: "Module" }), n;
11
11
  }, oe = (e, t, n, r) => {
12
- if (t && typeof t == "object" || typeof t == "function") for (var i = j(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ie.call(e, s) && s !== n && A(e, s, {
12
+ if (t && typeof t == "object" || typeof t == "function") for (var i = ie(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !j.call(e, s) && s !== n && A(e, s, {
13
13
  get: ((e) => t[e]).bind(null, s),
14
14
  enumerable: !(r = re(t, s)) || r.enumerable
15
15
  });
16
16
  return e;
17
- }, se = (e, t, n) => (oe(e, t, "default"), n && oe(n, t, "default")), ce = Math.min, M = Math.max, le = Math.round, N = (e) => ({
17
+ }, se = (e, t, n) => (oe(e, t, "default"), n && oe(n, t, "default")), ce = Math.min, le = Math.max, ue = Math.round, M = (e) => ({
18
18
  x: e,
19
19
  y: e
20
- }), ue = {
20
+ }), de = {
21
21
  left: "right",
22
22
  right: "left",
23
23
  bottom: "top",
24
24
  top: "bottom"
25
25
  };
26
- function de(e, t) {
26
+ function fe(e, t) {
27
27
  return typeof e == "function" ? e(t) : e;
28
28
  }
29
- function P(e) {
29
+ function N(e) {
30
30
  return e.split("-")[0];
31
31
  }
32
- function fe(e) {
32
+ function pe(e) {
33
33
  return e.split("-")[1];
34
34
  }
35
- function pe(e) {
35
+ function me(e) {
36
36
  return e === "x" ? "y" : "x";
37
37
  }
38
- function me(e) {
38
+ function P(e) {
39
39
  return e === "y" ? "height" : "width";
40
40
  }
41
41
  function F(e) {
@@ -43,14 +43,14 @@ function F(e) {
43
43
  return t === "t" || t === "b" ? "y" : "x";
44
44
  }
45
45
  function he(e) {
46
- return pe(F(e));
46
+ return me(F(e));
47
47
  }
48
- function I(e, t, n) {
48
+ function ge(e, t, n) {
49
49
  n === void 0 && (n = !1);
50
- let r = fe(e), i = he(e), a = me(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
50
+ let r = pe(e), i = he(e), a = P(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
51
51
  return t.reference[a] > t.floating[a] && (o = we(o)), [o, we(o)];
52
52
  }
53
- function ge(e) {
53
+ function I(e) {
54
54
  let t = we(e);
55
55
  return [
56
56
  _e(e),
@@ -72,12 +72,12 @@ function Se(e, t, n) {
72
72
  }
73
73
  }
74
74
  function Ce(e, t, n, r) {
75
- let i = fe(e), a = Se(P(e), n === "start", r);
75
+ let i = pe(e), a = Se(N(e), n === "start", r);
76
76
  return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(_e)))), a;
77
77
  }
78
78
  function we(e) {
79
- let t = P(e);
80
- return ue[t] + e.slice(t.length);
79
+ let t = N(e);
80
+ return de[t] + e.slice(t.length);
81
81
  }
82
82
  function Te(e) {
83
83
  return {
@@ -112,7 +112,7 @@ function De(e) {
112
112
  //#endregion
113
113
  //#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
114
114
  function Oe(e, t, n) {
115
- let { reference: r, floating: i } = e, a = F(t), o = he(t), s = me(o), c = P(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
115
+ let { reference: r, floating: i } = e, a = F(t), o = he(t), s = P(o), c = N(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
116
116
  switch (c) {
117
117
  case "top":
118
118
  p = {
@@ -143,7 +143,7 @@ function Oe(e, t, n) {
143
143
  y: r.y
144
144
  };
145
145
  }
146
- switch (fe(t)) {
146
+ switch (pe(t)) {
147
147
  case "start":
148
148
  p[o] -= f * (n && l ? -1 : 1);
149
149
  break;
@@ -155,7 +155,7 @@ function Oe(e, t, n) {
155
155
  }
156
156
  async function ke(e, t) {
157
157
  t === void 0 && (t = {});
158
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = de(t, e), p = Ee(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = De(await i.getClippingRect({
158
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = fe(t, e), p = Ee(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = De(await i.getClippingRect({
159
159
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
160
160
  boundary: c,
161
161
  rootBoundary: l,
@@ -229,13 +229,13 @@ var Ae = 50, je = async (e, t, n) => {
229
229
  options: e,
230
230
  async fn(t) {
231
231
  var n;
232
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = de(e, t);
232
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = fe(e, t);
233
233
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
234
- let g = P(r), _ = F(o), v = P(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [we(o)] : ge(o)), x = p !== "none";
234
+ let g = N(r), _ = F(o), v = N(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [we(o)] : I(o)), x = p !== "none";
235
235
  !d && x && b.push(...Ce(o, m, p, y));
236
236
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
237
237
  if (l && w.push(C[g]), u) {
238
- let e = I(r, a, y);
238
+ let e = ge(r, a, y);
239
239
  w.push(C[e[0]], C[e[1]]);
240
240
  }
241
241
  if (T = [...T, {
@@ -274,7 +274,7 @@ var Ae = 50, je = async (e, t, n) => {
274
274
  };
275
275
  }, Ne = /* @__PURE__ */ new Set(["left", "top"]);
276
276
  async function Pe(e, t) {
277
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = P(n), s = fe(n), c = F(n) === "y", l = Ne.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = de(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
277
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = N(n), s = pe(n), c = F(n) === "y", l = Ne.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = fe(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
278
278
  mainAxis: d,
279
279
  crossAxis: 0,
280
280
  alignmentAxis: null
@@ -408,7 +408,7 @@ function et(e) {
408
408
  //#endregion
409
409
  //#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
410
410
  function tt(e) {
411
- let t = V(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = B(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = le(n) !== a || le(r) !== o;
411
+ let t = V(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = B(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ue(n) !== a || ue(r) !== o;
412
412
  return s && (n = a, r = o), {
413
413
  width: n,
414
414
  height: r,
@@ -420,14 +420,14 @@ function nt(e) {
420
420
  }
421
421
  function rt(e) {
422
422
  let t = nt(e);
423
- if (!B(t)) return N(1);
424
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = tt(t), o = (a ? le(n.width) : n.width) / r, s = (a ? le(n.height) : n.height) / i;
423
+ if (!B(t)) return M(1);
424
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = tt(t), o = (a ? ue(n.width) : n.width) / r, s = (a ? ue(n.height) : n.height) / i;
425
425
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
426
426
  x: o,
427
427
  y: s
428
428
  };
429
429
  }
430
- var it = /* @__PURE__ */ N(0);
430
+ var it = /* @__PURE__ */ M(0);
431
431
  function at(e) {
432
432
  let t = L(e);
433
433
  return !Ye() || !t.visualViewport ? it : {
@@ -440,9 +440,9 @@ function ot(e, t, n) {
440
440
  }
441
441
  function st(e, t, n, r) {
442
442
  t === void 0 && (t = !1), n === void 0 && (n = !1);
443
- let i = e.getBoundingClientRect(), a = nt(e), o = N(1);
443
+ let i = e.getBoundingClientRect(), a = nt(e), o = M(1);
444
444
  t && (r ? z(r) && (o = rt(r)) : o = rt(e));
445
- let s = ot(a, n, r) ? at(a) : N(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
445
+ let s = ot(a, n, r) ? at(a) : M(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
446
446
  if (a) {
447
447
  let e = L(a), t = r && z(r) ? L(r) : r, n = e, i = et(n);
448
448
  for (; i && r && t !== n;) {
@@ -474,12 +474,12 @@ function ut(e) {
474
474
  let c = {
475
475
  scrollLeft: 0,
476
476
  scrollTop: 0
477
- }, l = N(1), u = N(0), d = B(r);
477
+ }, l = M(1), u = M(0), d = B(r);
478
478
  if ((d || !d && !a) && ((Le(r) !== "body" || Be(o)) && (c = Ze(r)), d)) {
479
479
  let e = st(r);
480
480
  l = rt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
481
481
  }
482
- let f = o && !d && !a ? lt(o, c) : N(0);
482
+ let f = o && !d && !a ? lt(o, c) : M(0);
483
483
  return {
484
484
  width: n.width * l.x,
485
485
  height: n.height * l.y,
@@ -491,8 +491,8 @@ function dt(e) {
491
491
  return Array.from(e.getClientRects());
492
492
  }
493
493
  function ft(e) {
494
- let t = R(e), n = Ze(e), r = e.ownerDocument.body, i = M(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = M(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ct(e), s = -n.scrollTop;
495
- return V(r).direction === "rtl" && (o += M(t.clientWidth, r.clientWidth) - i), {
494
+ let t = R(e), n = Ze(e), r = e.ownerDocument.body, i = le(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = le(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ct(e), s = -n.scrollTop;
495
+ return V(r).direction === "rtl" && (o += le(t.clientWidth, r.clientWidth) - i), {
496
496
  width: i,
497
497
  height: a,
498
498
  x: o,
@@ -520,7 +520,7 @@ function mt(e, t) {
520
520
  };
521
521
  }
522
522
  function ht(e, t) {
523
- let n = st(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = B(e) ? rt(e) : N(1);
523
+ let n = st(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = B(e) ? rt(e) : M(1);
524
524
  return {
525
525
  width: e.clientWidth * a.x,
526
526
  height: e.clientHeight * a.y,
@@ -562,7 +562,7 @@ function yt(e) {
562
562
  let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? He(t) ? [] : vt(t, this._c) : [].concat(n), r], o = gt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
563
563
  for (let e = 1; e < a.length; e++) {
564
564
  let n = gt(t, a[e], i);
565
- s = M(n.top, s), c = ce(n.right, c), l = ce(n.bottom, l), u = M(n.left, u);
565
+ s = le(n.top, s), c = ce(n.right, c), l = ce(n.bottom, l), u = le(n.left, u);
566
566
  }
567
567
  return {
568
568
  width: c - u,
@@ -582,7 +582,7 @@ function xt(e, t, n) {
582
582
  let r = B(t), i = R(t), a = n === "fixed", o = st(e, !0, a, t), s = {
583
583
  scrollLeft: 0,
584
584
  scrollTop: 0
585
- }, c = N(0);
585
+ }, c = M(0);
586
586
  function l() {
587
587
  c.x = ct(i);
588
588
  }
@@ -591,7 +591,7 @@ function xt(e, t, n) {
591
591
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
592
592
  } else i && l();
593
593
  a && !r && i && l();
594
- let u = i && !r && !a ? lt(i, s) : N(0);
594
+ let u = i && !r && !a ? lt(i, s) : M(0);
595
595
  return {
596
596
  x: o.left + s.scrollLeft - c.x - u.x,
597
597
  y: o.top + s.scrollTop - c.y - u.y,
@@ -1120,7 +1120,7 @@ function bn(e, t = {}) {
1120
1120
  //#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
1121
1121
  var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
1122
1122
  let n = t.root.value;
1123
- return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
1123
+ return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
1124
1124
  }, Cn = (e) => (v(() => xn.delete(e)), (t) => {
1125
1125
  if (!t) {
1126
1126
  xn.delete(e);
@@ -1147,6 +1147,7 @@ var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
1147
1147
  type: Boolean,
1148
1148
  default: !1
1149
1149
  },
1150
+ hoverTarget: { type: String },
1150
1151
  disableInteractive: {
1151
1152
  type: Boolean,
1152
1153
  default: !1
@@ -1205,11 +1206,12 @@ var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
1205
1206
  "position-try-fallbacks: flip-block",
1206
1207
  "position-visibility: anchors-visible",
1207
1208
  `anchor-scope: ${Tn}`
1208
- ].every((e) => CSS.supports(e)), x = S(!1), w = S(null), T = S(null), D = S(null), k = S(null), A = fn(T), re = fn(k), j = S(!1), ie = S(!1), ae = S(!1), oe = Cn({
1209
+ ].every((e) => CSS.supports(e)), x = S(!1), w = S(null), T = S(null), D = S(null), k = S(null), A = n(() => s.hoverTarget && T.value?.closest(s.hoverTarget) || T.value), re = fn(A), ie = fn(k), j = S(!1), ae = S(!1), oe = S(!1), se = Cn({
1209
1210
  root: w,
1210
1211
  floating: k,
1211
- close: () => s.disableClickOutsideToClose ? !1 : (ge(), !0)
1212
- }), se = {
1212
+ hoverArea: n(() => s.hoverTarget ? A.value : null),
1213
+ close: () => s.disableClickOutsideToClose ? !1 : (_e(), !0)
1214
+ }), ce = {
1213
1215
  "top-center": "top",
1214
1216
  "bottom-center": "bottom",
1215
1217
  "center-left": "left",
@@ -1220,7 +1222,7 @@ var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
1220
1222
  "top-right": "top-end",
1221
1223
  "bottom-left": "bottom-start",
1222
1224
  "bottom-right": "bottom-end"
1223
- }, ce = {
1225
+ }, le = {
1224
1226
  "top-center": {
1225
1227
  area: "top",
1226
1228
  margin: "margin-block-end"
@@ -1261,30 +1263,30 @@ var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
1261
1263
  area: "bottom span-left",
1262
1264
  margin: "margin-block-start"
1263
1265
  }
1264
- }, M = n(() => s.showOnHover || s.disableClickOutsideToClose ? "manual" : "auto"), le = n(() => ({
1266
+ }, ue = n(() => s.showOnHover || s.disableClickOutsideToClose ? "manual" : "auto"), M = n(() => ({
1265
1267
  width: "fit-content",
1266
1268
  ...b ? { "anchor-scope": Tn } : void 0,
1267
1269
  ...s.cssCustomProperties
1268
- })), N = n(() => b ? { "anchor-name": Tn } : void 0), ue = n(() => {
1269
- let e = ce[s.position];
1270
+ })), de = n(() => b ? { "anchor-name": Tn } : void 0), fe = n(() => {
1271
+ let e = le[s.position];
1270
1272
  return {
1271
1273
  "position-anchor": Tn,
1272
1274
  "position-area": e.area,
1273
1275
  "position-try-fallbacks": s.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
1274
1276
  [e.margin]: `${s.offset ?? 0}px`
1275
1277
  };
1276
- }), de = () => {}, P = () => ({});
1278
+ }), N = () => {}, pe = () => ({});
1277
1279
  if (!b) {
1278
1280
  let e = [];
1279
1281
  s.disableAutoPlacement || e.push(kt({ fallbackStrategy: "initialPlacement" })), s.offset && e.push(Ot(s.offset));
1280
1282
  let t = Bt(D, k, {
1281
- placement: se[s.position],
1283
+ placement: ce[s.position],
1282
1284
  strategy: s.positioningStrategy,
1283
1285
  middleware: e
1284
1286
  });
1285
- de = t.update, P = () => t.floatingStyles.value;
1287
+ N = t.update, pe = () => t.floatingStyles.value;
1286
1288
  let r = dn(D), i = /* @__PURE__ */ Qt(() => {
1287
- c.value && de();
1289
+ c.value && N();
1288
1290
  }, 5);
1289
1291
  O([
1290
1292
  r.top,
@@ -1299,103 +1301,103 @@ var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
1299
1301
  ...s.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
1300
1302
  ]) });
1301
1303
  }
1302
- let fe = n(() => ({
1303
- ...P(),
1304
+ let me = n(() => ({
1305
+ ...pe(),
1304
1306
  zIndex: s.zIndex
1305
- })), pe, me, F = () => {
1306
- pe && clearTimeout(pe), pe = void 0;
1307
- }, he = () => {
1308
- me && clearTimeout(me), me = void 0;
1307
+ })), P, F, he = () => {
1308
+ P && clearTimeout(P), P = void 0;
1309
+ }, ge = () => {
1310
+ F && clearTimeout(F), F = void 0;
1309
1311
  }, I = (e) => {
1310
- F(), he(), !(e && (s.disabled || !_.value)) && (e && s.delay > 0 && (s.showOnHover || !b) ? pe = setTimeout(() => {
1311
- c.value = !0, pe = void 0;
1312
+ he(), ge(), !(e && (s.disabled || !_.value)) && (e && s.delay > 0 && (s.showOnHover || !b) ? P = setTimeout(() => {
1313
+ c.value = !0, P = void 0;
1312
1314
  }, s.delay) : c.value = e);
1313
- }, ge = () => {
1314
- F(), he(), c.value = !1;
1315
1315
  }, _e = () => {
1316
+ he(), ge(), c.value = !1;
1317
+ }, ve = () => {
1316
1318
  let e = k.value;
1317
1319
  !e || !x.value || !_.value || (c.value ? e.showPopover() : e.hidePopover());
1318
- }, ve = n(() => !!c.value && (re.value || ie.value)), ye = n(() => !s.showOnHover || ae.value ? !1 : s.disableInteractive ? A.value || j.value : A.value || j.value || ve.value);
1320
+ }, ye = n(() => !!c.value && (ie.value || ae.value)), be = n(() => !s.showOnHover || oe.value ? !1 : s.disableInteractive ? re.value || j.value : re.value || j.value || ye.value);
1319
1321
  O([
1320
- A,
1322
+ re,
1321
1323
  j,
1322
- ie
1324
+ ae
1323
1325
  ], ([e, t, n]) => {
1324
- !e && !t && !n && (ae.value = !1);
1326
+ !e && !t && !n && (oe.value = !1);
1325
1327
  });
1326
- let be = ({ target: e }) => {
1328
+ let xe = ({ target: e }) => {
1327
1329
  j.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
1328
- }, xe = ({ target: e }) => {
1329
- ie.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
1330
- }, Se = () => {
1331
- ie.value = !1;
1330
+ }, Se = ({ target: e }) => {
1331
+ ae.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
1332
1332
  }, Ce = () => {
1333
+ ae.value = !1;
1334
+ }, we = () => {
1333
1335
  if (s.showOnHover) {
1334
1336
  if (s.disableClickOutsideToClose) return;
1335
- if (!c.value && !pe && s.enableClickToggle) {
1336
- ae.value = !1, I(!0);
1337
+ if (!c.value && !P && s.enableClickToggle) {
1338
+ oe.value = !1, I(!0);
1337
1339
  return;
1338
1340
  }
1339
- ae.value = !0, ge();
1341
+ oe.value = !0, _e();
1340
1342
  return;
1341
1343
  }
1342
- I(pe ? !1 : !c.value);
1343
- }, we = (e) => {
1344
+ I(P ? !1 : !c.value);
1345
+ }, Te = (e) => {
1344
1346
  let t = e.newState === "open";
1345
1347
  c.value !== t && (c.value = t);
1346
- }, Te = (e) => {
1347
- b && M.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), I(!1));
1348
+ }, Ee = (e) => {
1349
+ b && ue.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), I(!1));
1348
1350
  };
1349
1351
  return O(c, async (e) => {
1350
- if (s.showOnHover && s.enableGroupSync && oe(!!e), !b) {
1351
- e && de();
1352
+ if (s.showOnHover && s.enableGroupSync && se(!!e), !b) {
1353
+ e && N();
1352
1354
  return;
1353
1355
  }
1354
- await f(), _e();
1355
- }), O(ye, (e) => {
1356
+ await f(), ve();
1357
+ }), O(be, (e) => {
1356
1358
  if (s.showOnHover) {
1357
1359
  if (e) {
1358
1360
  I(!0);
1359
1361
  return;
1360
1362
  }
1361
- F(), s.closeDelay > 0 ? (he(), me = setTimeout(() => {
1362
- me = void 0, ye.value || I(!1);
1363
+ he(), s.closeDelay > 0 ? (ge(), F = setTimeout(() => {
1364
+ F = void 0, be.value || I(!1);
1363
1365
  }, s.closeDelay)) : I(!1);
1364
1366
  }
1365
1367
  }), O(_, (e) => {
1366
- e ? b && c.value && f(_e) : ge();
1368
+ e ? b && c.value && f(ve) : _e();
1367
1369
  }), g(() => {
1368
- D.value = T.value, x.value = !0, c.value && f(() => b ? _e() : de());
1370
+ D.value = T.value, x.value = !0, c.value && f(() => b ? ve() : N());
1369
1371
  }), v(() => {
1370
- F(), he();
1372
+ he(), ge();
1371
1373
  }), O(() => s.disabled, (e) => {
1372
1374
  if (!e) {
1373
- ye.value && I(!0);
1375
+ be.value && I(!0);
1374
1376
  return;
1375
1377
  }
1376
- j.value &&= !1, ie.value &&= !1, I(!1);
1378
+ j.value &&= !1, ae.value &&= !1, I(!1);
1377
1379
  }), (n, l) => (y(), a("div", {
1378
1380
  ref_key: "root",
1379
1381
  ref: w,
1380
- style: p(le.value),
1381
- onKeydown: Te
1382
+ style: p(M.value),
1383
+ onKeydown: Ee
1382
1384
  }, [o("div", {
1383
1385
  ref_key: "triggerWrapper",
1384
1386
  ref: T,
1385
- style: p(N.value),
1386
- onClick: Ce,
1387
- onFocusin: be,
1387
+ style: p(de.value),
1388
+ onClick: we,
1389
+ onFocusin: xe,
1388
1390
  onFocusout: l[0] ||= (e) => j.value = !1
1389
1391
  }, [C(n.$slots, "trigger")], 36), x.value && E(b) && _.value ? (y(), a("div", {
1390
1392
  key: 0,
1391
1393
  ref_key: "floating",
1392
1394
  ref: k,
1393
1395
  class: "pv-floating pv-floating-native",
1394
- popover: M.value,
1395
- style: p(ue.value),
1396
- onToggle: we,
1397
- onFocusin: xe,
1398
- onFocusout: Se
1396
+ popover: ue.value,
1397
+ style: p(fe.value),
1398
+ onToggle: Te,
1399
+ onFocusin: Se,
1400
+ onFocusout: Ce
1399
1401
  }, [e.disabled ? i("v-if", !0) : C(n.$slots, "content", { key: 0 })], 44, wn)) : _.value ? (y(), r(t, {
1400
1402
  key: 1,
1401
1403
  to: e.teleportLocation,
@@ -1404,9 +1406,9 @@ var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
1404
1406
  ref_key: "floating",
1405
1407
  ref: k,
1406
1408
  class: "pv-floating",
1407
- style: p(fe.value),
1408
- onFocusin: xe,
1409
- onFocusout: Se
1409
+ style: p(me.value),
1410
+ onFocusin: Se,
1411
+ onFocusout: Ce
1410
1412
  }, [C(n.$slots, "content")], 36), [[te, c.value]])], 8, ["to", "disabled"])) : i("v-if", !0)], 36));
1411
1413
  }
1412
1414
  }), Dn = Object.defineProperty, On = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, jn = (e, t, n) => t in e ? Dn(e, t, {
@@ -1742,15 +1744,15 @@ var Q = {
1742
1744
  getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
1743
1745
  let { preset: a, options: o } = t, s, c, l, u, d, f, p;
1744
1746
  if (K(a) && o.transform !== "strict") {
1745
- let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = X(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = X(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = X(x, ["dark"]), w = y || {}, { dark: T } = w, E = X(w, ["dark"]), ee = K(t) ? this._toVariables({ primitive: t }, o) : {}, D = K(_) ? this._toVariables({ semantic: _ }, o) : {}, te = K(C) ? this._toVariables({ light: C }, o) : {}, O = K(S) ? this._toVariables({ dark: S }, o) : {}, k = K(b) ? this._toVariables({ semantic: b }, o) : {}, ne = K(E) ? this._toVariables({ light: E }, o) : {}, A = K(T) ? this._toVariables({ dark: T }, o) : {}, [re, j] = [ee.declarations ?? "", ee.tokens], [ie, ae] = [D.declarations ?? "", D.tokens || []], [oe, se] = [te.declarations ?? "", te.tokens || []], [ce, M] = [O.declarations ?? "", O.tokens || []], [le, N] = [k.declarations ?? "", k.tokens || []], [ue, de] = [ne.declarations ?? "", ne.tokens || []], [P, fe] = [A.declarations ?? "", A.tokens || []];
1746
- s = this.transformCSS(e, re, "light", "variable", o, r, i), c = j, l = `${this.transformCSS(e, `${ie}${oe}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ce}`, "dark", "variable", o, r, i)}`, u = [...new Set([
1747
+ let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = X(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = X(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = X(x, ["dark"]), w = y || {}, { dark: T } = w, E = X(w, ["dark"]), ee = K(t) ? this._toVariables({ primitive: t }, o) : {}, D = K(_) ? this._toVariables({ semantic: _ }, o) : {}, te = K(C) ? this._toVariables({ light: C }, o) : {}, O = K(S) ? this._toVariables({ dark: S }, o) : {}, k = K(b) ? this._toVariables({ semantic: b }, o) : {}, ne = K(E) ? this._toVariables({ light: E }, o) : {}, A = K(T) ? this._toVariables({ dark: T }, o) : {}, [re, ie] = [ee.declarations ?? "", ee.tokens], [j, ae] = [D.declarations ?? "", D.tokens || []], [oe, se] = [te.declarations ?? "", te.tokens || []], [ce, le] = [O.declarations ?? "", O.tokens || []], [ue, M] = [k.declarations ?? "", k.tokens || []], [de, fe] = [ne.declarations ?? "", ne.tokens || []], [N, pe] = [A.declarations ?? "", A.tokens || []];
1748
+ s = this.transformCSS(e, re, "light", "variable", o, r, i), c = ie, l = `${this.transformCSS(e, `${j}${oe}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ce}`, "dark", "variable", o, r, i)}`, u = [...new Set([
1747
1749
  ...ae,
1748
1750
  ...se,
1749
- ...M
1750
- ])], d = `${this.transformCSS(e, `${le}${ue}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${P}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
1751
- ...N,
1752
- ...de,
1753
- ...fe
1751
+ ...le
1752
+ ])], d = `${this.transformCSS(e, `${ue}${de}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${N}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
1753
+ ...M,
1754
+ ...fe,
1755
+ ...pe
1754
1756
  ])], p = q(a.css, { dt: vr });
1755
1757
  }
1756
1758
  return {