@turquoisehealth/pit-viper 2.252.0 → 2.252.1
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 +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +73 -70
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +415 -412
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +226 -223
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1735 -1732
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +356 -353
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +650 -647
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1241 -1238
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +421 -418
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +108 -106
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +70 -67
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +343 -340
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +146 -143
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +805 -802
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +362 -359
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +694 -692
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +736 -734
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +177 -174
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +227 -224
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -2573,7 +2573,7 @@ function Pa(e, t = {}) {
|
|
|
2573
2573
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
2574
2574
|
var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
2575
2575
|
let n = t.root.value;
|
|
2576
|
-
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
|
|
2576
|
+
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
2577
2577
|
}, La = (e) => (k(() => Fa.delete(e)), (t) => {
|
|
2578
2578
|
if (!t) {
|
|
2579
2579
|
Fa.delete(e);
|
|
@@ -2600,6 +2600,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2600
2600
|
type: Boolean,
|
|
2601
2601
|
default: !1
|
|
2602
2602
|
},
|
|
2603
|
+
hoverTarget: { type: String },
|
|
2603
2604
|
disableInteractive: {
|
|
2604
2605
|
type: Boolean,
|
|
2605
2606
|
default: !1
|
|
@@ -2658,11 +2659,12 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2658
2659
|
"position-try-fallbacks: flip-block",
|
|
2659
2660
|
"position-visibility: anchors-visible",
|
|
2660
2661
|
`anchor-scope: ${za}`
|
|
2661
|
-
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), b = M(null), S =
|
|
2662
|
+
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), b = M(null), S = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), C = tt(S), T = tt(b), E = M(!1), O = M(!1), j = M(!1), ee = La({
|
|
2662
2663
|
root: _,
|
|
2663
2664
|
floating: b,
|
|
2664
|
-
|
|
2665
|
-
|
|
2665
|
+
hoverArea: r(() => t.hoverTarget ? S.value : null),
|
|
2666
|
+
close: () => t.disableClickOutsideToClose ? !1 : (he(), !0)
|
|
2667
|
+
}), te = {
|
|
2666
2668
|
"top-center": "top",
|
|
2667
2669
|
"bottom-center": "bottom",
|
|
2668
2670
|
"center-left": "left",
|
|
@@ -2673,7 +2675,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2673
2675
|
"top-right": "top-end",
|
|
2674
2676
|
"bottom-left": "bottom-start",
|
|
2675
2677
|
"bottom-right": "bottom-end"
|
|
2676
|
-
},
|
|
2678
|
+
}, ne = {
|
|
2677
2679
|
"top-center": {
|
|
2678
2680
|
area: "top",
|
|
2679
2681
|
margin: "margin-block-end"
|
|
@@ -2714,30 +2716,30 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2714
2716
|
area: "bottom span-left",
|
|
2715
2717
|
margin: "margin-block-start"
|
|
2716
2718
|
}
|
|
2717
|
-
},
|
|
2719
|
+
}, re = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), P = r(() => ({
|
|
2718
2720
|
width: "fit-content",
|
|
2719
2721
|
...h ? { "anchor-scope": za } : void 0,
|
|
2720
2722
|
...t.cssCustomProperties
|
|
2721
|
-
})),
|
|
2722
|
-
let e =
|
|
2723
|
+
})), F = r(() => h ? { "anchor-name": za } : void 0), ie = r(() => {
|
|
2724
|
+
let e = ne[t.position];
|
|
2723
2725
|
return {
|
|
2724
2726
|
"position-anchor": za,
|
|
2725
2727
|
"position-area": e.area,
|
|
2726
2728
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
2727
2729
|
[e.margin]: `${t.offset ?? 0}px`
|
|
2728
2730
|
};
|
|
2729
|
-
}),
|
|
2731
|
+
}), I = () => {}, oe = () => ({});
|
|
2730
2732
|
if (!h) {
|
|
2731
2733
|
let e = [];
|
|
2732
2734
|
t.disableAutoPlacement || e.push(ga({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(ha(t.offset));
|
|
2733
2735
|
let n = Da(y, b, {
|
|
2734
|
-
placement:
|
|
2736
|
+
placement: te[t.position],
|
|
2735
2737
|
strategy: t.positioningStrategy,
|
|
2736
2738
|
middleware: e
|
|
2737
2739
|
});
|
|
2738
|
-
|
|
2740
|
+
I = n.update, oe = () => n.floatingStyles.value;
|
|
2739
2741
|
let i = et(y), a = /* @__PURE__ */ Re(() => {
|
|
2740
|
-
c.value &&
|
|
2742
|
+
c.value && I();
|
|
2741
2743
|
}, 5);
|
|
2742
2744
|
L([
|
|
2743
2745
|
i.top,
|
|
@@ -2745,110 +2747,110 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2745
2747
|
i.width,
|
|
2746
2748
|
i.height
|
|
2747
2749
|
], a), Ke(_, () => {
|
|
2748
|
-
t.disableClickOutsideToClose ||
|
|
2750
|
+
t.disableClickOutsideToClose || me(!1);
|
|
2749
2751
|
}, { ignore: r(() => [
|
|
2750
2752
|
b.value,
|
|
2751
2753
|
".p-datepicker-panel",
|
|
2752
2754
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
2753
2755
|
]) });
|
|
2754
2756
|
}
|
|
2755
|
-
let
|
|
2756
|
-
...
|
|
2757
|
+
let se = r(() => ({
|
|
2758
|
+
...oe(),
|
|
2757
2759
|
zIndex: t.zIndex
|
|
2758
|
-
})),
|
|
2759
|
-
se && clearTimeout(se), se = void 0;
|
|
2760
|
-
}, de = () => {
|
|
2760
|
+
})), le, ue, de = () => {
|
|
2761
2761
|
le && clearTimeout(le), le = void 0;
|
|
2762
|
-
}, fe = (
|
|
2763
|
-
ue
|
|
2764
|
-
|
|
2762
|
+
}, fe = () => {
|
|
2763
|
+
ue && clearTimeout(ue), ue = void 0;
|
|
2764
|
+
}, me = (e) => {
|
|
2765
|
+
de(), fe(), !(e && (t.disabled || !p.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? le = setTimeout(() => {
|
|
2766
|
+
c.value = !0, le = void 0;
|
|
2765
2767
|
}, t.delay) : c.value = e);
|
|
2766
|
-
}, me = () => {
|
|
2767
|
-
ue(), de(), c.value = !1;
|
|
2768
2768
|
}, he = () => {
|
|
2769
|
+
de(), fe(), c.value = !1;
|
|
2770
|
+
}, _e = () => {
|
|
2769
2771
|
let e = b.value;
|
|
2770
2772
|
!e || !g.value || !p.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
2771
|
-
},
|
|
2773
|
+
}, ve = r(() => !!c.value && (T.value || O.value)), ye = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? C.value || E.value : C.value || E.value || ve.value);
|
|
2772
2774
|
L([
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2775
|
+
C,
|
|
2776
|
+
E,
|
|
2777
|
+
O
|
|
2776
2778
|
], ([e, t, n]) => {
|
|
2777
|
-
!e && !t && !n && (
|
|
2779
|
+
!e && !t && !n && (j.value = !1);
|
|
2778
2780
|
});
|
|
2779
|
-
let
|
|
2780
|
-
T.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2781
|
-
}, be = ({ target: e }) => {
|
|
2781
|
+
let be = ({ target: e }) => {
|
|
2782
2782
|
E.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2783
|
-
}, xe = () => {
|
|
2784
|
-
|
|
2783
|
+
}, xe = ({ target: e }) => {
|
|
2784
|
+
O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2785
2785
|
}, Se = () => {
|
|
2786
|
+
O.value = !1;
|
|
2787
|
+
}, Ce = () => {
|
|
2786
2788
|
if (t.showOnHover) {
|
|
2787
2789
|
if (t.disableClickOutsideToClose) return;
|
|
2788
|
-
if (!c.value && !
|
|
2789
|
-
|
|
2790
|
+
if (!c.value && !le && t.enableClickToggle) {
|
|
2791
|
+
j.value = !1, me(!0);
|
|
2790
2792
|
return;
|
|
2791
2793
|
}
|
|
2792
|
-
|
|
2794
|
+
j.value = !0, he();
|
|
2793
2795
|
return;
|
|
2794
2796
|
}
|
|
2795
|
-
|
|
2796
|
-
},
|
|
2797
|
+
me(le ? !1 : !c.value);
|
|
2798
|
+
}, we = (e) => {
|
|
2797
2799
|
let t = e.newState === "open";
|
|
2798
2800
|
c.value !== t && (c.value = t);
|
|
2799
|
-
},
|
|
2800
|
-
h &&
|
|
2801
|
+
}, Te = (e) => {
|
|
2802
|
+
h && re.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), me(!1));
|
|
2801
2803
|
};
|
|
2802
2804
|
return L(c, async (e) => {
|
|
2803
|
-
if (t.showOnHover && t.enableGroupSync &&
|
|
2804
|
-
e &&
|
|
2805
|
+
if (t.showOnHover && t.enableGroupSync && ee(!!e), !h) {
|
|
2806
|
+
e && I();
|
|
2805
2807
|
return;
|
|
2806
2808
|
}
|
|
2807
|
-
await x(),
|
|
2808
|
-
}), L(
|
|
2809
|
+
await x(), _e();
|
|
2810
|
+
}), L(ye, (e) => {
|
|
2809
2811
|
if (t.showOnHover) {
|
|
2810
2812
|
if (e) {
|
|
2811
|
-
|
|
2813
|
+
me(!0);
|
|
2812
2814
|
return;
|
|
2813
2815
|
}
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
}, t.closeDelay)) :
|
|
2816
|
+
de(), t.closeDelay > 0 ? (fe(), ue = setTimeout(() => {
|
|
2817
|
+
ue = void 0, ye.value || me(!1);
|
|
2818
|
+
}, t.closeDelay)) : me(!1);
|
|
2817
2819
|
}
|
|
2818
2820
|
}), L(p, (e) => {
|
|
2819
|
-
e ? h && c.value && x(
|
|
2821
|
+
e ? h && c.value && x(_e) : he();
|
|
2820
2822
|
}), D(() => {
|
|
2821
|
-
y.value = v.value, g.value = !0, c.value && x(() => h ?
|
|
2823
|
+
y.value = v.value, g.value = !0, c.value && x(() => h ? _e() : I());
|
|
2822
2824
|
}), k(() => {
|
|
2823
|
-
|
|
2825
|
+
de(), fe();
|
|
2824
2826
|
}), L(() => t.disabled, (e) => {
|
|
2825
2827
|
if (!e) {
|
|
2826
|
-
|
|
2828
|
+
ye.value && me(!0);
|
|
2827
2829
|
return;
|
|
2828
2830
|
}
|
|
2829
|
-
|
|
2831
|
+
E.value &&= !1, O.value &&= !1, me(!1);
|
|
2830
2832
|
}), (r, l) => (A(), o("div", {
|
|
2831
2833
|
ref_key: "root",
|
|
2832
2834
|
ref: _,
|
|
2833
|
-
style: w(
|
|
2834
|
-
onKeydown:
|
|
2835
|
+
style: w(P.value),
|
|
2836
|
+
onKeydown: Te
|
|
2835
2837
|
}, [s("div", {
|
|
2836
2838
|
ref_key: "triggerWrapper",
|
|
2837
2839
|
ref: v,
|
|
2838
|
-
style: w(
|
|
2839
|
-
onClick:
|
|
2840
|
-
onFocusin:
|
|
2841
|
-
onFocusout: l[0] ||= (e) =>
|
|
2840
|
+
style: w(F.value),
|
|
2841
|
+
onClick: Ce,
|
|
2842
|
+
onFocusin: be,
|
|
2843
|
+
onFocusout: l[0] ||= (e) => E.value = !1
|
|
2842
2844
|
}, [N(r.$slots, "trigger")], 36), g.value && ae(h) && p.value ? (A(), o("div", {
|
|
2843
2845
|
key: 0,
|
|
2844
2846
|
ref_key: "floating",
|
|
2845
2847
|
ref: b,
|
|
2846
2848
|
class: "pv-floating pv-floating-native",
|
|
2847
|
-
popover:
|
|
2848
|
-
style: w(
|
|
2849
|
-
onToggle:
|
|
2850
|
-
onFocusin:
|
|
2851
|
-
onFocusout:
|
|
2849
|
+
popover: re.value,
|
|
2850
|
+
style: w(ie.value),
|
|
2851
|
+
onToggle: we,
|
|
2852
|
+
onFocusin: xe,
|
|
2853
|
+
onFocusout: Se
|
|
2852
2854
|
}, [e.disabled ? a("v-if", !0) : N(r.$slots, "content", { key: 0 })], 44, Ra)) : p.value ? (A(), i(n, {
|
|
2853
2855
|
key: 1,
|
|
2854
2856
|
to: e.teleportLocation,
|
|
@@ -2857,9 +2859,9 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2857
2859
|
ref_key: "floating",
|
|
2858
2860
|
ref: b,
|
|
2859
2861
|
class: "pv-floating",
|
|
2860
|
-
style: w(
|
|
2861
|
-
onFocusin:
|
|
2862
|
-
onFocusout:
|
|
2862
|
+
style: w(se.value),
|
|
2863
|
+
onFocusin: xe,
|
|
2864
|
+
onFocusout: Se
|
|
2863
2865
|
}, [N(r.$slots, "content")], 36), [[pe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
2864
2866
|
}
|
|
2865
2867
|
}), Va = ["data-variant"], Ha = /* @__PURE__ */ f({
|
|
@@ -2885,6 +2887,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2885
2887
|
type: Boolean,
|
|
2886
2888
|
default: !0
|
|
2887
2889
|
},
|
|
2890
|
+
hoverTarget: { type: String },
|
|
2888
2891
|
disableInteractive: {
|
|
2889
2892
|
type: Boolean,
|
|
2890
2893
|
default: !1
|