@turquoisehealth/pit-viper 2.209.2 → 2.210.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 (39) hide show
  1. package/package.json +1 -1
  2. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  4. package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  16. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  17. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
  18. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
  19. package/pv-components/dist/vue/base/pv-components-base.mjs +35 -21
  20. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  21. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
  22. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
  23. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +35 -21
  24. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  25. package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +426 -409
  26. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +36 -20
  27. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +589 -572
  28. package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +626 -609
  29. package/pv-components/dist/web/components/pv-menu/pv-menu.js +49 -32
  30. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +523 -506
  31. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +399 -383
  32. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +37 -20
  33. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +620 -603
  34. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +37 -20
  35. package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +519 -503
  36. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +600 -583
  37. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +124 -107
  38. package/pv-components/dist/web/pv-components.iife.js +16 -16
  39. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,20 +1,20 @@
1
1
  import * as e from "vue";
2
- import { Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, defineComponent as l, defineCustomElement as u, getCurrentInstance as d, getCurrentScope as f, guardReactiveProps as p, mergeModels as m, nextTick as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as y, onBeforeUpdate as b, onMounted as x, onScopeDispose as S, onUnmounted as C, openBlock as w, reactive as T, readonly as E, ref as D, renderSlot as O, shallowRef as k, toDisplayString as A, toValue as j, unref as M, useModel as ee, useSlots as te, vShow as ne, watch as N, watchEffect as re, withCtx as ie, withDirectives as ae } from "vue";
2
+ import { Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, defineComponent as l, defineCustomElement as u, getCurrentInstance as d, getCurrentScope as f, guardReactiveProps as p, mergeModels as m, nextTick as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as y, onBeforeUpdate as b, onMounted as x, onScopeDispose as S, onUnmounted as C, openBlock as w, reactive as T, readonly as E, ref as D, renderSlot as O, shallowRef as k, toDisplayString as ee, toValue as A, unref as j, useModel as te, useSlots as ne, vShow as re, watch as M, watchEffect as ie, withCtx as ae, withDirectives as oe } from "vue";
3
3
  //#region \0rolldown/runtime.js
4
- var oe = Object.defineProperty, se = Object.getOwnPropertyDescriptor, ce = Object.getOwnPropertyNames, le = Object.prototype.hasOwnProperty, ue = (e, t) => {
4
+ var se = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, le = Object.getOwnPropertyNames, ue = Object.prototype.hasOwnProperty, de = (e, t) => {
5
5
  let n = {};
6
- for (var r in e) oe(n, r, {
6
+ for (var r in e) se(n, r, {
7
7
  get: e[r],
8
8
  enumerable: !0
9
9
  });
10
- return t || oe(n, Symbol.toStringTag, { value: "Module" }), n;
11
- }, P = (e, t, n, r) => {
12
- if (t && typeof t == "object" || typeof t == "function") for (var i = ce(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !le.call(e, s) && s !== n && oe(e, s, {
10
+ return t || se(n, Symbol.toStringTag, { value: "Module" }), n;
11
+ }, N = (e, t, n, r) => {
12
+ if (t && typeof t == "object" || typeof t == "function") for (var i = le(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ue.call(e, s) && s !== n && se(e, s, {
13
13
  get: ((e) => t[e]).bind(null, s),
14
- enumerable: !(r = se(t, s)) || r.enumerable
14
+ enumerable: !(r = ce(t, s)) || r.enumerable
15
15
  });
16
16
  return e;
17
- }, de = (e, t, n) => (P(e, t, "default"), n && P(n, t, "default")), fe = Math.min, F = Math.max, pe = Math.round, I = (e) => ({
17
+ }, fe = (e, t, n) => (N(e, t, "default"), n && N(n, t, "default")), pe = Math.min, P = Math.max, F = Math.round, I = (e) => ({
18
18
  x: e,
19
19
  y: e
20
20
  }), me = {
@@ -408,7 +408,7 @@ function st(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 ct(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 = pe(n) !== a || pe(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 = F(n) !== a || F(r) !== o;
412
412
  return s && (n = a, r = o), {
413
413
  width: n,
414
414
  height: r,
@@ -421,7 +421,7 @@ function lt(e) {
421
421
  function ut(e) {
422
422
  let t = lt(e);
423
423
  if (!B(t)) return I(1);
424
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ct(t), o = (a ? pe(n.width) : n.width) / r, s = (a ? pe(n.height) : n.height) / i;
424
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ct(t), o = (a ? F(n.width) : n.width) / r, s = (a ? F(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
@@ -491,8 +491,8 @@ function vt(e) {
491
491
  return Array.from(e.getClientRects());
492
492
  }
493
493
  function yt(e) {
494
- let t = R(e), n = it(e), r = e.ownerDocument.body, i = F(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = F(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ht(e), s = -n.scrollTop;
495
- return V(r).direction === "rtl" && (o += F(t.clientWidth, r.clientWidth) - i), {
494
+ let t = R(e), n = it(e), r = e.ownerDocument.body, i = P(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = P(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ht(e), s = -n.scrollTop;
495
+ return V(r).direction === "rtl" && (o += P(t.clientWidth, r.clientWidth) - i), {
496
496
  width: i,
497
497
  height: a,
498
498
  x: o,
@@ -562,7 +562,7 @@ function Et(e) {
562
562
  let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ye(t) ? [] : Tt(t, this._c) : [].concat(n), r], o = Ct(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 = Ct(t, a[e], i);
565
- s = F(n.top, s), c = fe(n.right, c), l = fe(n.bottom, l), u = F(n.left, u);
565
+ s = P(n.top, s), c = pe(n.right, c), l = pe(n.bottom, l), u = P(n.left, u);
566
566
  }
567
567
  return {
568
568
  width: c - u,
@@ -661,7 +661,7 @@ var Pt = {
661
661
  ...i,
662
662
  platform: a
663
663
  });
664
- }, U = /* @__PURE__ */ ue({
664
+ }, U = /* @__PURE__ */ de({
665
665
  Vue: () => e,
666
666
  Vue2: () => void 0,
667
667
  del: () => Vt,
@@ -671,7 +671,7 @@ var Pt = {
671
671
  set: () => Bt
672
672
  });
673
673
  import * as Rt from "vue";
674
- de(U, Rt);
674
+ fe(U, Rt);
675
675
  function zt() {}
676
676
  function Bt(e, t, n) {
677
677
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
@@ -796,7 +796,7 @@ function nn(e, t = {}) {
796
796
  clearTimeout(e), i(), i = W;
797
797
  }, o;
798
798
  return (s) => {
799
- let c = j(e), l = j(t.maxWait);
799
+ let c = A(e), l = A(t.maxWait);
800
800
  return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
801
801
  i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
802
802
  n && a(n), r = void 0, e(o());
@@ -820,7 +820,7 @@ function sn(e, t = !0, n) {
820
820
  an(n) ? x(e, n) : t ? e() : h(e);
821
821
  }
822
822
  function cn(e, t, n) {
823
- return N(e, t, {
823
+ return M(e, t, {
824
824
  ...n,
825
825
  immediate: !0
826
826
  });
@@ -830,20 +830,20 @@ function cn(e, t, n) {
830
830
  var ln = Yt ? window : void 0;
831
831
  Yt && window.document, Yt && window.navigator, Yt && window.location;
832
832
  function G(e) {
833
- let t = j(e);
833
+ let t = A(e);
834
834
  return t?.$el ?? t;
835
835
  }
836
836
  function un(...e) {
837
837
  let t = [], r = () => {
838
838
  t.forEach((e) => e()), t.length = 0;
839
839
  }, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = n(() => {
840
- let t = rn(j(e[0])).filter((e) => e != null);
840
+ let t = rn(A(e[0])).filter((e) => e != null);
841
841
  return t.every((e) => typeof e != "string") ? t : void 0;
842
842
  }), o = cn(() => [
843
843
  a.value?.map((e) => G(e)) ?? [ln].filter((e) => e != null),
844
- rn(j(a.value ? e[1] : e[0])),
845
- rn(M(a.value ? e[2] : e[1])),
846
- j(a.value ? e[3] : e[2])
844
+ rn(A(a.value ? e[1] : e[0])),
845
+ rn(j(a.value ? e[2] : e[1])),
846
+ A(a.value ? e[3] : e[2])
847
847
  ], ([e, n, a, o]) => {
848
848
  if (r(), !e?.length || !n?.length || !a?.length) return;
849
849
  let s = Qt(o) ? { ...o } : o;
@@ -866,7 +866,7 @@ function fn(e, t, n = {}) {
866
866
  let e = { passive: !0 };
867
867
  Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", W, e)), r.document.documentElement.addEventListener("click", W, e);
868
868
  }
869
- let c = !0, l = (e) => j(i).some((t) => {
869
+ let c = !0, l = (e) => A(i).some((t) => {
870
870
  if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
871
871
  {
872
872
  let n = G(t);
@@ -874,11 +874,11 @@ function fn(e, t, n = {}) {
874
874
  }
875
875
  });
876
876
  function u(e) {
877
- let t = j(e);
877
+ let t = A(e);
878
878
  return t && t.$.subTree.shapeFlag === 16;
879
879
  }
880
880
  function d(e, t) {
881
- let n = j(e), r = n.$.subTree && n.$.subTree.children;
881
+ let n = A(e), r = n.$.subTree && n.$.subTree.children;
882
882
  return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
883
883
  }
884
884
  let f = (n) => {
@@ -935,8 +935,8 @@ function mn(e) {
935
935
  function hn(e, t, r = {}) {
936
936
  let { window: i = ln, ...a } = r, o, s = /* @__PURE__ */ mn(() => i && "MutationObserver" in i), c = () => {
937
937
  o &&= (o.disconnect(), void 0);
938
- }, l = N(n(() => {
939
- let t = rn(j(e)).map(G).filter(Xt);
938
+ }, l = M(n(() => {
939
+ let t = rn(A(e)).map(G).filter(Xt);
940
940
  return new Set(t);
941
941
  }), (e) => {
942
942
  c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
@@ -957,7 +957,7 @@ function gn(e, t, n = {}) {
957
957
  if (!r || !i) return W;
958
958
  let o, s = (e) => {
959
959
  o?.(), o = e;
960
- }, c = re(() => {
960
+ }, c = ie(() => {
961
961
  let n = G(e);
962
962
  if (n) {
963
963
  let { stop: e } = hn(i, (e) => {
@@ -977,8 +977,8 @@ function gn(e, t, n = {}) {
977
977
  function _n(e, t, r = {}) {
978
978
  let { window: i = ln, ...a } = r, o, s = /* @__PURE__ */ mn(() => i && "ResizeObserver" in i), c = () => {
979
979
  o &&= (o.disconnect(), void 0);
980
- }, l = N(n(() => {
981
- let t = j(e);
980
+ }, l = M(n(() => {
981
+ let t = A(e);
982
982
  return Array.isArray(t) ? t.map((e) => G(e)) : [G(t)];
983
983
  }), (e) => {
984
984
  if (c(), s.value && i) {
@@ -1010,7 +1010,7 @@ function vn(e, t = {}) {
1010
1010
  function g() {
1011
1011
  o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
1012
1012
  }
1013
- return _n(e, g), N(() => G(e), (e) => !e && g()), hn(e, g, { attributeFilter: ["style", "class"] }), i && un("scroll", g, {
1013
+ return _n(e, g), M(() => G(e), (e) => !e && g()), hn(e, g, { attributeFilter: ["style", "class"] }), i && un("scroll", g, {
1014
1014
  capture: !0,
1015
1015
  passive: !0
1016
1016
  }), r && un("resize", g, { passive: !0 }), sn(() => {
@@ -1056,7 +1056,7 @@ function Cn(e, t) {
1056
1056
  return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
1057
1057
  }
1058
1058
  function wn(e, t = {}) {
1059
- let { host: r, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = bn(), l = i ?? te(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = D(d());
1059
+ let { host: r, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = bn(), l = i ?? ne(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = D(d());
1060
1060
  b(() => {
1061
1061
  f.value = d();
1062
1062
  });
@@ -1067,7 +1067,7 @@ function wn(e, t = {}) {
1067
1067
  p.value = !1;
1068
1068
  return;
1069
1069
  }
1070
- let t = M(r);
1070
+ let t = j(r);
1071
1071
  if (!t) {
1072
1072
  p.value = !1;
1073
1073
  return;
@@ -1081,7 +1081,7 @@ function wn(e, t = {}) {
1081
1081
  }, v = () => {
1082
1082
  if (!c.value) return;
1083
1083
  g();
1084
- let t = M(r);
1084
+ let t = j(r);
1085
1085
  if (!t) {
1086
1086
  p.value = !1;
1087
1087
  return;
@@ -1094,7 +1094,7 @@ function wn(e, t = {}) {
1094
1094
  characterData: !0
1095
1095
  }));
1096
1096
  };
1097
- return x(v), y(g), N(() => M(r), () => {
1097
+ return x(v), y(g), M(() => j(r), () => {
1098
1098
  c.value && v();
1099
1099
  }), {
1100
1100
  present: n(() => c.value ? p.value : f.value),
@@ -1144,6 +1144,10 @@ var Tn = ["popover"], En = 0, Dn = /* @__PURE__ */ ((e, t) => {
1144
1144
  default: 25,
1145
1145
  type: Number
1146
1146
  },
1147
+ closeDelay: {
1148
+ default: 200,
1149
+ type: Number
1150
+ },
1147
1151
  zIndex: {
1148
1152
  default: 10,
1149
1153
  type: Number
@@ -1160,12 +1164,12 @@ var Tn = ["popover"], En = 0, Dn = /* @__PURE__ */ ((e, t) => {
1160
1164
  }),
1161
1165
  emits: ["update:modelValue"],
1162
1166
  setup(e) {
1163
- let s = e, c = ee(e, "modelValue"), l = d(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: f, hasNativeSlot: p } = wn("content", { host: u }), m = n(() => u ? p.value : f.value), g = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
1167
+ let s = e, c = te(e, "modelValue"), l = d(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: f, hasNativeSlot: p } = wn("content", { host: u }), m = n(() => u ? p.value : f.value), g = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
1164
1168
  "anchor-name: --pv-anchor",
1165
1169
  "position-area: bottom",
1166
1170
  "position-try-fallbacks: flip-block",
1167
1171
  "position-visibility: anchors-visible"
1168
- ].every((e) => CSS.supports(e)), _ = D(!1), y = D(null), b = D(null), S = D(null), T = D(null), E = D(""), k = yn(b), A = yn(T), j = D(!1), te = {
1172
+ ].every((e) => CSS.supports(e)), _ = D(!1), y = D(null), b = D(null), S = D(null), T = D(null), E = D(""), k = yn(b), ee = yn(T), A = D(!1), ne = {
1169
1173
  "top-center": "top",
1170
1174
  "bottom-center": "bottom",
1171
1175
  "center-left": "left",
@@ -1174,7 +1178,7 @@ var Tn = ["popover"], En = 0, Dn = /* @__PURE__ */ ((e, t) => {
1174
1178
  "top-right": "top-end",
1175
1179
  "bottom-left": "bottom-start",
1176
1180
  "bottom-right": "bottom-end"
1177
- }, re = {
1181
+ }, ie = {
1178
1182
  "top-center": {
1179
1183
  area: "top",
1180
1184
  margin: "margin-block-end"
@@ -1207,104 +1211,116 @@ var Tn = ["popover"], En = 0, Dn = /* @__PURE__ */ ((e, t) => {
1207
1211
  area: "bottom span-left",
1208
1212
  margin: "margin-block-start"
1209
1213
  }
1210
- }, ie = n(() => s.showOnHover || s.disableClickOutsideToClose ? "manual" : "auto"), oe = n(() => g ? { "anchor-name": E.value } : void 0), se = n(() => {
1211
- let e = re[s.position];
1214
+ }, ae = n(() => s.showOnHover || s.disableClickOutsideToClose ? "manual" : "auto"), se = n(() => g ? { "anchor-name": E.value } : void 0), ce = n(() => {
1215
+ let e = ie[s.position];
1212
1216
  return {
1213
1217
  "position-anchor": E.value,
1214
1218
  "position-area": e.area,
1215
1219
  "position-try-fallbacks": s.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
1216
1220
  [e.margin]: `${s.offset ?? 0}px`
1217
1221
  };
1218
- }), ce = () => {}, le = () => ({});
1222
+ }), le = () => {}, ue = () => ({});
1219
1223
  if (!g) {
1220
1224
  let e = [];
1221
1225
  s.disableAutoPlacement || e.push(It({ fallbackStrategy: "initialPlacement" })), s.offset && e.push(Ft(s.offset));
1222
1226
  let t = qt(S, T, {
1223
- placement: te[s.position],
1227
+ placement: ne[s.position],
1224
1228
  strategy: s.positioningStrategy,
1225
1229
  middleware: e
1226
1230
  });
1227
- ce = t.update, le = () => t.floatingStyles.value;
1231
+ le = t.update, ue = () => t.floatingStyles.value;
1228
1232
  let r = vn(S), i = /* @__PURE__ */ on(() => {
1229
- c.value && ce();
1233
+ c.value && le();
1230
1234
  }, 5);
1231
- N([
1235
+ M([
1232
1236
  r.top,
1233
1237
  r.left,
1234
1238
  r.width,
1235
1239
  r.height
1236
1240
  ], i), fn(y, () => {
1237
- s.disableClickOutsideToClose || fe(!1);
1241
+ s.disableClickOutsideToClose || F(!1);
1238
1242
  }, { ignore: n(() => [
1239
1243
  T.value,
1240
1244
  ".p-datepicker-panel",
1241
1245
  ...s.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
1242
1246
  ]) });
1243
1247
  }
1244
- let ue = n(() => ({
1245
- ...le(),
1248
+ let de = n(() => ({
1249
+ ...ue(),
1246
1250
  zIndex: s.zIndex
1247
- })), P, de = () => {
1248
- P && clearTimeout(P), P = void 0;
1249
- }, fe = (e) => {
1250
- de(), !(e && !m.value) && (e && s.delay > 0 && (s.showOnHover || !g) ? P = setTimeout(() => {
1251
- c.value = !0, P = void 0;
1251
+ })), N, fe, pe = () => {
1252
+ N && clearTimeout(N), N = void 0;
1253
+ }, P = () => {
1254
+ fe && clearTimeout(fe), fe = void 0;
1255
+ }, F = (e) => {
1256
+ pe(), P(), !(e && !m.value) && (e && s.delay > 0 && (s.showOnHover || !g) ? N = setTimeout(() => {
1257
+ c.value = !0, N = void 0;
1252
1258
  }, s.delay) : c.value = e);
1253
- }, F = () => {
1259
+ }, I = () => {
1254
1260
  let e = T.value;
1255
1261
  !e || !_.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
1256
- }, pe = n(() => s.showOnHover ? s.disableInteractive ? k.value || j.value : k.value || A.value || j.value : !1), I = () => {
1257
- s.showOnHover || fe(P ? !1 : !c.value);
1258
- }, me = (e) => {
1262
+ }, me = n(() => s.showOnHover ? s.disableInteractive ? k.value || A.value : k.value || ee.value || A.value : !1), he = () => {
1263
+ s.showOnHover || F(N ? !1 : !c.value);
1264
+ }, ge = (e) => {
1259
1265
  let t = e.newState === "open";
1260
1266
  c.value !== t && (c.value = t);
1261
- }, he = (e) => {
1262
- g && ie.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), fe(!1));
1267
+ }, _e = (e) => {
1268
+ g && ae.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), F(!1));
1263
1269
  };
1264
- return N(c, async (e) => {
1270
+ return M(c, async (e) => {
1265
1271
  if (!g) {
1266
- e && ce();
1272
+ e && le();
1267
1273
  return;
1268
1274
  }
1269
- await h(), F();
1270
- }), N(pe, (e) => {
1271
- s.showOnHover && fe(e);
1272
- }), N(m, (e) => {
1273
- e ? g && c.value && h(F) : (de(), c.value = !1);
1275
+ await h(), I();
1276
+ }), M(me, (e) => {
1277
+ if (s.showOnHover) {
1278
+ if (e) {
1279
+ F(!0);
1280
+ return;
1281
+ }
1282
+ pe(), s.closeDelay > 0 ? (P(), fe = setTimeout(() => {
1283
+ fe = void 0, me.value || F(!1);
1284
+ }, s.closeDelay)) : F(!1);
1285
+ }
1286
+ }), M(m, (e) => {
1287
+ e ? g && c.value && h(I) : (pe(), P(), c.value = !1);
1274
1288
  }), x(() => {
1275
- S.value = b.value, g && (E.value = `--pv-popover-v2-${++En}`), _.value = !0, c.value && h(() => g ? F() : ce());
1276
- }), C(de), (n, l) => (w(), a("div", {
1289
+ S.value = b.value, g && (E.value = `--pv-popover-v2-${++En}`), _.value = !0, c.value && h(() => g ? I() : le());
1290
+ }), C(() => {
1291
+ pe(), P();
1292
+ }), (n, l) => (w(), a("div", {
1277
1293
  ref_key: "root",
1278
1294
  ref: y,
1279
1295
  style: { width: "fit-content" },
1280
- onKeydown: he
1296
+ onKeydown: _e
1281
1297
  }, [o("div", {
1282
1298
  ref_key: "triggerWrapper",
1283
1299
  ref: b,
1284
- style: v(oe.value),
1285
- onClick: I,
1286
- onFocusin: l[0] ||= (e) => j.value = !0,
1287
- onFocusout: l[1] ||= (e) => j.value = !1
1288
- }, [O(n.$slots, "trigger")], 36), _.value && M(g) && m.value ? (w(), a("div", {
1300
+ style: v(se.value),
1301
+ onClick: he,
1302
+ onFocusin: l[0] ||= (e) => A.value = !0,
1303
+ onFocusout: l[1] ||= (e) => A.value = !1
1304
+ }, [O(n.$slots, "trigger")], 36), _.value && j(g) && m.value ? (w(), a("div", {
1289
1305
  key: 0,
1290
1306
  ref_key: "floating",
1291
1307
  ref: T,
1292
1308
  class: "pv-floating pv-floating-native",
1293
- popover: ie.value,
1294
- style: v(se.value),
1295
- onToggle: me
1309
+ popover: ae.value,
1310
+ style: v(ce.value),
1311
+ onToggle: ge
1296
1312
  }, [O(n.$slots, "content")], 44, Tn)) : m.value ? (w(), r(t, {
1297
1313
  key: 1,
1298
1314
  to: e.teleportLocation,
1299
1315
  disabled: !s.useTeleport
1300
- }, [ae(o("div", {
1316
+ }, [oe(o("div", {
1301
1317
  ref_key: "floating",
1302
1318
  ref: T,
1303
1319
  class: "pv-floating",
1304
- style: v(ue.value)
1305
- }, [O(n.$slots, "content")], 4), [[ne, c.value]])], 8, ["to", "disabled"])) : i("v-if", !0)], 544));
1320
+ style: v(de.value)
1321
+ }, [O(n.$slots, "content")], 4), [[re, c.value]])], 8, ["to", "disabled"])) : i("v-if", !0)], 544));
1306
1322
  }
1307
- }), [["styles", [".pv-floating-native[data-v-146d33b3]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-146d33b3]>.pv-popover,.pv-floating-native>slot[name=content][data-v-146d33b3]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-146d33b3"]]), On = ["data-variant"], kn = /* @__PURE__ */ l({
1323
+ }), [["styles", [".pv-floating-native[data-v-97886581]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-97886581]>.pv-popover,.pv-floating-native>slot[name=content][data-v-97886581]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-97886581"]]), On = ["data-variant"], kn = /* @__PURE__ */ l({
1308
1324
  __name: "PvTooltipV2",
1309
1325
  props: {
1310
1326
  variant: {
@@ -1337,6 +1353,7 @@ var Tn = ["popover"], En = 0, Dn = /* @__PURE__ */ ((e, t) => {
1337
1353
  default: 0,
1338
1354
  type: Number
1339
1355
  },
1356
+ closeDelay: { type: Number },
1340
1357
  zIndex: { type: Number },
1341
1358
  teleportLocation: { type: String },
1342
1359
  offset: { type: Number },
@@ -1345,15 +1362,15 @@ var Tn = ["popover"], En = 0, Dn = /* @__PURE__ */ ((e, t) => {
1345
1362
  setup(e) {
1346
1363
  let t = e, i = d(), a = typeof HTMLElement < "u" && i && "ce" in i && i.ce instanceof HTMLElement ? i.ce : void 0, { hasVueSlot: l, hasNativeSlot: u } = wn("content", { host: a }), f = n(() => a ? u.value : l.value), m = n(() => !!t.description || f.value);
1347
1364
  return (t, n) => (w(), r(Dn, _(p(t.$props)), s({
1348
- trigger: ie(() => [O(t.$slots, "trigger", {}, () => [o("p", null, A(e.label), 1)])]),
1365
+ trigger: ae(() => [O(t.$slots, "trigger", {}, () => [o("p", null, ee(e.label), 1)])]),
1349
1366
  _: 2
1350
1367
  }, [m.value ? {
1351
1368
  name: "content",
1352
- fn: ie(() => [o("div", {
1369
+ fn: ae(() => [o("div", {
1353
1370
  class: g(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
1354
1371
  role: "tooltip",
1355
1372
  "data-variant": e.variant
1356
- }, [O(t.$slots, "content", {}, () => [c(A(e.description), 1)])], 10, On)]),
1373
+ }, [O(t.$slots, "content", {}, () => [c(ee(e.description), 1)])], 10, On)]),
1357
1374
  key: "0"
1358
1375
  } : void 0]), 1040));
1359
1376
  }
@@ -1690,15 +1707,15 @@ var Z = {
1690
1707
  getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
1691
1708
  let { preset: a, options: o } = t, s, c, l, u, d, f, p;
1692
1709
  if (K(a) && o.transform !== "strict") {
1693
- let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Y(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Y(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Y(x, ["dark"]), w = y || {}, { dark: T } = w, E = Y(w, ["dark"]), D = K(t) ? this._toVariables({ primitive: t }, o) : {}, O = K(_) ? this._toVariables({ semantic: _ }, o) : {}, k = K(C) ? this._toVariables({ light: C }, o) : {}, A = K(S) ? this._toVariables({ dark: S }, o) : {}, j = K(b) ? this._toVariables({ semantic: b }, o) : {}, M = K(E) ? this._toVariables({ light: E }, o) : {}, ee = K(T) ? this._toVariables({ dark: T }, o) : {}, [te, ne] = [D.declarations ?? "", D.tokens], [N, re] = [O.declarations ?? "", O.tokens || []], [ie, ae] = [k.declarations ?? "", k.tokens || []], [oe, se] = [A.declarations ?? "", A.tokens || []], [ce, le] = [j.declarations ?? "", j.tokens || []], [ue, P] = [M.declarations ?? "", M.tokens || []], [de, fe] = [ee.declarations ?? "", ee.tokens || []];
1694
- s = this.transformCSS(e, te, "light", "variable", o, r, i), c = ne, l = `${this.transformCSS(e, `${N}${ie}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${oe}`, "dark", "variable", o, r, i)}`, u = [...new Set([
1695
- ...re,
1696
- ...ae,
1697
- ...se
1698
- ])], d = `${this.transformCSS(e, `${ce}${ue}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${de}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
1699
- ...le,
1700
- ...P,
1701
- ...fe
1710
+ let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Y(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Y(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Y(x, ["dark"]), w = y || {}, { dark: T } = w, E = Y(w, ["dark"]), D = K(t) ? this._toVariables({ primitive: t }, o) : {}, O = K(_) ? this._toVariables({ semantic: _ }, o) : {}, k = K(C) ? this._toVariables({ light: C }, o) : {}, ee = K(S) ? this._toVariables({ dark: S }, o) : {}, A = K(b) ? this._toVariables({ semantic: b }, o) : {}, j = K(E) ? this._toVariables({ light: E }, o) : {}, te = K(T) ? this._toVariables({ dark: T }, o) : {}, [ne, re] = [D.declarations ?? "", D.tokens], [M, ie] = [O.declarations ?? "", O.tokens || []], [ae, oe] = [k.declarations ?? "", k.tokens || []], [se, ce] = [ee.declarations ?? "", ee.tokens || []], [le, ue] = [A.declarations ?? "", A.tokens || []], [de, N] = [j.declarations ?? "", j.tokens || []], [fe, pe] = [te.declarations ?? "", te.tokens || []];
1711
+ s = this.transformCSS(e, ne, "light", "variable", o, r, i), c = re, l = `${this.transformCSS(e, `${M}${ae}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${se}`, "dark", "variable", o, r, i)}`, u = [...new Set([
1712
+ ...ie,
1713
+ ...oe,
1714
+ ...ce
1715
+ ])], d = `${this.transformCSS(e, `${le}${de}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${fe}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
1716
+ ...ue,
1717
+ ...N,
1718
+ ...pe
1702
1719
  ])], p = Vn(a.css, { dt: Sr });
1703
1720
  }
1704
1721
  return {
@@ -1724,11 +1741,11 @@ var Z = {
1724
1741
  "colorScheme",
1725
1742
  "extend",
1726
1743
  "css"
1727
- ]), h = f || {}, { colorScheme: g } = h, _ = Y(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Y(v, ["dark"]), x = g || {}, { dark: S } = x, C = Y(x, ["dark"]), w = K(m) ? this._toVariables({ [r]: J(J({}, m), _) }, n) : {}, T = K(b) ? this._toVariables({ [r]: J(J({}, b), C) }, n) : {}, E = K(y) ? this._toVariables({ [r]: J(J({}, y), S) }, n) : {}, [D, O] = [w.declarations ?? "", w.tokens || []], [k, A] = [T.declarations ?? "", T.tokens || []], [j, M] = [E.declarations ?? "", E.tokens || []];
1728
- s = `${this.transformCSS(r, `${D}${k}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, j, "dark", "variable", n, i, a, o)}`, c = [...new Set([
1744
+ ]), h = f || {}, { colorScheme: g } = h, _ = Y(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Y(v, ["dark"]), x = g || {}, { dark: S } = x, C = Y(x, ["dark"]), w = K(m) ? this._toVariables({ [r]: J(J({}, m), _) }, n) : {}, T = K(b) ? this._toVariables({ [r]: J(J({}, b), C) }, n) : {}, E = K(y) ? this._toVariables({ [r]: J(J({}, y), S) }, n) : {}, [D, O] = [w.declarations ?? "", w.tokens || []], [k, ee] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
1745
+ s = `${this.transformCSS(r, `${D}${k}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
1729
1746
  ...O,
1730
- ...A,
1731
- ...M
1747
+ ...ee,
1748
+ ...j
1732
1749
  ])], l = Vn(p, { dt: Sr });
1733
1750
  }
1734
1751
  return {
@@ -2087,10 +2104,10 @@ function Nr(e) {
2087
2104
  }
2088
2105
  var Pr = 0;
2089
2106
  function Fr(e) {
2090
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = D(!1), r = D(e), i = D(null), a = $n() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Pr}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, O = t.onLoad, k = O === void 0 ? void 0 : O, A = t.props, j = A === void 0 ? {} : A, M = function() {}, ee = function(t) {
2107
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = D(!1), r = D(e), i = D(null), a = $n() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Pr}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, O = t.onLoad, k = O === void 0 ? void 0 : O, ee = t.props, A = ee === void 0 ? {} : ee, j = function() {}, te = function(t) {
2091
2108
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2092
2109
  if (s) {
2093
- var o = kr(kr({}, j), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
2110
+ var o = kr(kr({}, A), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
2094
2111
  i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, Qn(i.value, {
2095
2112
  type: "text/css",
2096
2113
  id: l,
@@ -2098,20 +2115,20 @@ function Fr(e) {
2098
2115
  nonce: u
2099
2116
  }), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), er(i.value, "data-primevue-style-id", c), Qn(i.value, o), i.value.onload = function(e) {
2100
2117
  return k?.(e, { name: c });
2101
- }, C?.(c)), !n.value && (M = N(r, function(e) {
2118
+ }, C?.(c)), !n.value && (j = M(r, function(e) {
2102
2119
  i.value.textContent = e, T?.(c);
2103
2120
  }, { immediate: !0 }), n.value = !0);
2104
2121
  }
2105
2122
  };
2106
- return l && !d && Nr(ee), {
2123
+ return l && !d && Nr(te), {
2107
2124
  id: h,
2108
2125
  name: p,
2109
2126
  el: i,
2110
2127
  css: r,
2111
2128
  unload: function() {
2112
- !s || !n.value || (M(), Xn(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
2129
+ !s || !n.value || (j(), Xn(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
2113
2130
  },
2114
- load: ee,
2131
+ load: te,
2115
2132
  isLoaded: E(n)
2116
2133
  };
2117
2134
  }
@@ -2609,7 +2626,7 @@ function di(e, t) {
2609
2626
  X.on("theme:change", function(t) {
2610
2627
  n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
2611
2628
  });
2612
- var i = N(t.config, function(e, t) {
2629
+ var i = M(t.config, function(e, t) {
2613
2630
  $r.emit("config:change", {
2614
2631
  newValue: e,
2615
2632
  oldValue: t
@@ -2617,7 +2634,7 @@ function di(e, t) {
2617
2634
  }, {
2618
2635
  immediate: !0,
2619
2636
  deep: !0
2620
- }), a = N(function() {
2637
+ }), a = M(function() {
2621
2638
  return t.config.ripple;
2622
2639
  }, function(e, t) {
2623
2640
  $r.emit("config:ripple:change", {
@@ -2627,7 +2644,7 @@ function di(e, t) {
2627
2644
  }, {
2628
2645
  immediate: !0,
2629
2646
  deep: !0
2630
- }), o = N(function() {
2647
+ }), o = M(function() {
2631
2648
  return t.config.theme;
2632
2649
  }, function(e, i) {
2633
2650
  n.value || Q.setTheme(e), t.config.unstyled || r(), n.value = !1, $r.emit("config:theme:change", {
@@ -2637,7 +2654,7 @@ function di(e, t) {
2637
2654
  }, {
2638
2655
  immediate: !0,
2639
2656
  deep: !1
2640
- }), s = N(function() {
2657
+ }), s = M(function() {
2641
2658
  return t.config.unstyled;
2642
2659
  }, function(e, n) {
2643
2660
  !e && t.config.theme && r(), $r.emit("config:unstyled:change", {