@turquoisehealth/pit-viper 2.224.0 → 2.224.1-dev.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.
Files changed (68) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +1 -0
  2. package/_site/assets/css/pit-viper-v2.css +98 -61
  3. package/package.json +1 -1
  4. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  5. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-progress-bar-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
  16. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  17. package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
  18. package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
  19. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  20. package/pv-components/dist/stats/web/pv-tooltip-stats.html +1 -1
  21. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  22. package/pv-components/dist/vue/ai/components/base/PvButton/types.d.ts +1 -1
  23. package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
  24. package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +2 -2
  25. package/pv-components/dist/vue/ai/components/base/PvProgressBar/PvProgressBar.vue.d.ts +1 -1
  26. package/pv-components/dist/vue/ai/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +9 -16
  27. package/pv-components/dist/vue/ai/components/base/PvSidebarV2/types.d.ts +14 -0
  28. package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
  29. package/pv-components/dist/vue/ai/components/base/baseProps.d.ts +1 -1
  30. package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
  31. package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +1 -1
  32. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
  33. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +2 -2
  34. package/pv-components/dist/vue/base/components/base/PvProgressBar/PvProgressBar.vue.d.ts +1 -1
  35. package/pv-components/dist/vue/base/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +9 -16
  36. package/pv-components/dist/vue/base/components/base/PvSidebarV2/types.d.ts +14 -0
  37. package/pv-components/dist/vue/base/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
  38. package/pv-components/dist/vue/base/components/base/baseProps.d.ts +1 -1
  39. package/pv-components/dist/vue/base/pv-components-base.mjs +2183 -2069
  40. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  41. package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +1 -1
  42. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
  43. package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +2 -2
  44. package/pv-components/dist/vue/visualizations/components/base/PvProgressBar/PvProgressBar.vue.d.ts +1 -1
  45. package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +9 -16
  46. package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/types.d.ts +14 -0
  47. package/pv-components/dist/vue/visualizations/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
  48. package/pv-components/dist/vue/visualizations/components/base/baseProps.d.ts +1 -1
  49. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +40 -9
  50. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  51. package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +13 -3
  52. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +41 -10
  53. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +13 -3
  54. package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +13 -3
  55. package/pv-components/dist/web/components/pv-menu/pv-menu.js +13 -3
  56. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +41 -10
  57. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +12 -2
  58. package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +175 -174
  59. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +13 -3
  60. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +13 -3
  61. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +41 -10
  62. package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +970 -877
  63. package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +12 -2
  64. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +13 -3
  65. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +425 -404
  66. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +13 -3
  67. package/pv-components/dist/web/pv-components.iife.js +14 -14
  68. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -2717,7 +2717,7 @@ var Va = /* @__PURE__ */ new Set(), Ha = (e, t) => !!t.root.value && !!e.root.va
2717
2717
  },
2718
2718
  teleportLocation: {
2719
2719
  default: "body",
2720
- type: String
2720
+ type: null
2721
2721
  },
2722
2722
  offset: { type: Number },
2723
2723
  ignoreClickOutsideClasses: { type: Array },
@@ -2749,6 +2749,8 @@ var Va = /* @__PURE__ */ new Set(), Ha = (e, t) => !!t.root.value && !!e.root.va
2749
2749
  "bottom-center": "bottom",
2750
2750
  "center-left": "left",
2751
2751
  "center-right": "right",
2752
+ "right-top": "right-start",
2753
+ "right-bottom": "right-end",
2752
2754
  "top-left": "top-start",
2753
2755
  "top-right": "top-end",
2754
2756
  "bottom-left": "bottom-start",
@@ -2770,6 +2772,14 @@ var Va = /* @__PURE__ */ new Set(), Ha = (e, t) => !!t.root.value && !!e.root.va
2770
2772
  area: "right",
2771
2773
  margin: "margin-inline-start"
2772
2774
  },
2775
+ "right-top": {
2776
+ area: "span-bottom right",
2777
+ margin: "margin-inline-start"
2778
+ },
2779
+ "right-bottom": {
2780
+ area: "span-top right",
2781
+ margin: "margin-inline-start"
2782
+ },
2773
2783
  "top-left": {
2774
2784
  area: "top span-right",
2775
2785
  margin: "margin-block-end"
@@ -2925,7 +2935,7 @@ var Va = /* @__PURE__ */ new Set(), Ha = (e, t) => !!t.root.value && !!e.root.va
2925
2935
  onFocusout: Se
2926
2936
  }, [ne(r.$slots, "content")], 36), [[he, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
2927
2937
  }
2928
- }), [["styles", [".pv-floating-native[data-v-ead1215b]{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-ead1215b]>.pv-popover,.pv-floating-native>slot[name=content][data-v-ead1215b]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-ead1215b"]]), qa = ["data-variant"], Ja = /* @__PURE__ */ f({
2938
+ }), [["styles", [".pv-floating-native[data-v-c13d6b59]{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-c13d6b59]>.pv-popover,.pv-floating-native>slot[name=content][data-v-c13d6b59]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-c13d6b59"]]), qa = ["data-variant"], Ja = /* @__PURE__ */ f({
2929
2939
  __name: "PvTooltipV2",
2930
2940
  props: {
2931
2941
  variant: {
@@ -2961,7 +2971,7 @@ var Va = /* @__PURE__ */ new Set(), Ha = (e, t) => !!t.root.value && !!e.root.va
2961
2971
  },
2962
2972
  closeDelay: { type: Number },
2963
2973
  zIndex: { type: Number },
2964
- teleportLocation: { type: String },
2974
+ teleportLocation: { type: null },
2965
2975
  offset: { type: Number },
2966
2976
  ignoreClickOutsideClasses: { type: Array },
2967
2977
  disabled: { type: Boolean },
@@ -1337,7 +1337,7 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
1337
1337
  },
1338
1338
  teleportLocation: {
1339
1339
  default: "body",
1340
- type: String
1340
+ type: null
1341
1341
  },
1342
1342
  offset: { type: Number },
1343
1343
  ignoreClickOutsideClasses: { type: Array },
@@ -1369,6 +1369,8 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
1369
1369
  "bottom-center": "bottom",
1370
1370
  "center-left": "left",
1371
1371
  "center-right": "right",
1372
+ "right-top": "right-start",
1373
+ "right-bottom": "right-end",
1372
1374
  "top-left": "top-start",
1373
1375
  "top-right": "top-end",
1374
1376
  "bottom-left": "bottom-start",
@@ -1390,6 +1392,14 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
1390
1392
  area: "right",
1391
1393
  margin: "margin-inline-start"
1392
1394
  },
1395
+ "right-top": {
1396
+ area: "span-bottom right",
1397
+ margin: "margin-inline-start"
1398
+ },
1399
+ "right-bottom": {
1400
+ area: "span-top right",
1401
+ margin: "margin-inline-start"
1402
+ },
1393
1403
  "top-left": {
1394
1404
  area: "top span-right",
1395
1405
  margin: "margin-block-end"
@@ -1545,7 +1555,7 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
1545
1555
  onFocusout: xe
1546
1556
  }, [A(r.$slots, "content")], 36), [[ie, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
1547
1557
  }
1548
- }), [["styles", [".pv-floating-native[data-v-ead1215b]{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-ead1215b]>.pv-popover,.pv-floating-native>slot[name=content][data-v-ead1215b]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-ead1215b"]]), Jn = ["data-variant"], Yn = /* @__PURE__ */ d({
1558
+ }), [["styles", [".pv-floating-native[data-v-c13d6b59]{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-c13d6b59]>.pv-popover,.pv-floating-native>slot[name=content][data-v-c13d6b59]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-c13d6b59"]]), Jn = ["data-variant"], Yn = /* @__PURE__ */ d({
1549
1559
  __name: "PvTooltipV2",
1550
1560
  props: {
1551
1561
  variant: {
@@ -1581,7 +1591,7 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
1581
1591
  },
1582
1592
  closeDelay: { type: Number },
1583
1593
  zIndex: { type: Number },
1584
- teleportLocation: { type: String },
1594
+ teleportLocation: { type: null },
1585
1595
  offset: { type: Number },
1586
1596
  ignoreClickOutsideClasses: { type: Array },
1587
1597
  disabled: { type: Boolean },
@@ -616,23 +616,44 @@ var Et = [
616
616
  }
617
617
  },
618
618
  setup(e) {
619
- let { present: t } = Tt("tooltip-content");
620
- return (n, r) => (k(), o("div", {
619
+ let t = e, n = ue("rootRef"), { present: i } = Tt("tooltip-content", { host: r(() => {
620
+ let e = n.value?.getRootNode();
621
+ return e instanceof ShadowRoot ? e.host : null;
622
+ }) }), s = r(() => t.delay > 0), c = M(!1), l = M(!1), u, d = () => {
623
+ u && clearTimeout(u), u = void 0;
624
+ }, f = r(() => !s.value || c.value || l.value), p = () => {
625
+ s.value && (d(), u = setTimeout(() => {
626
+ u = void 0, l.value = !0;
627
+ }, t.delay));
628
+ }, m = () => {
629
+ s.value && (d(), l.value = !1);
630
+ }, h = () => {
631
+ s.value && (c.value = !0);
632
+ }, g = () => {
633
+ s.value && (c.value = !1);
634
+ };
635
+ return w(d), (t, r) => (k(), o("div", {
636
+ ref_key: "rootRef",
637
+ ref: n,
621
638
  "data-testid": "pv-tooltip",
622
639
  class: x([{
623
- "pv-tooltip": F(t),
624
- "pv-tooltip-small": F(t) && e.size === "sm"
640
+ "pv-tooltip": F(i),
641
+ "pv-tooltip-small": F(i) && e.size === "sm"
625
642
  }]),
626
643
  "data-position": e.tooltipPosition,
627
644
  "data-style": e.variant === "white" ? "white" : "dark",
628
645
  "data-static": e.disableInteractive ? !0 : void 0,
629
- "aria-labelledby": F(t) ? e.ariaLabelledBy : void 0
630
- }, [ne(n.$slots, "label"), F(t) ? (k(), o("div", {
646
+ "aria-labelledby": F(i) ? e.ariaLabelledBy : void 0,
647
+ onMouseenter: p,
648
+ onMouseleave: m,
649
+ onFocusin: h,
650
+ onFocusout: g
651
+ }, [ne(t.$slots, "label"), F(i) ? ge((k(), o("div", {
631
652
  key: 0,
632
653
  role: "tooltip",
633
654
  id: e.ariaLabelledBy,
634
655
  "data-testid": "pv-tooltip-content"
635
- }, [ne(n.$slots, "tooltip-content")], 8, Dt)) : a("v-if", !0)], 10, Et));
656
+ }, [ne(t.$slots, "tooltip-content")], 8, Dt)), [[pe, f.value]]) : a("v-if", !0)], 42, Et));
636
657
  }
637
658
  }), kt = ["ghost"], At = {
638
659
  md: "pv-button-small",
@@ -1708,7 +1729,7 @@ var zr = /* @__PURE__ */ new Set(), Br = (e, t) => !!t.root.value && !!e.root.va
1708
1729
  },
1709
1730
  teleportLocation: {
1710
1731
  default: "body",
1711
- type: String
1732
+ type: null
1712
1733
  },
1713
1734
  offset: { type: Number },
1714
1735
  ignoreClickOutsideClasses: { type: Array },
@@ -1740,6 +1761,8 @@ var zr = /* @__PURE__ */ new Set(), Br = (e, t) => !!t.root.value && !!e.root.va
1740
1761
  "bottom-center": "bottom",
1741
1762
  "center-left": "left",
1742
1763
  "center-right": "right",
1764
+ "right-top": "right-start",
1765
+ "right-bottom": "right-end",
1743
1766
  "top-left": "top-start",
1744
1767
  "top-right": "top-end",
1745
1768
  "bottom-left": "bottom-start",
@@ -1761,6 +1784,14 @@ var zr = /* @__PURE__ */ new Set(), Br = (e, t) => !!t.root.value && !!e.root.va
1761
1784
  area: "right",
1762
1785
  margin: "margin-inline-start"
1763
1786
  },
1787
+ "right-top": {
1788
+ area: "span-bottom right",
1789
+ margin: "margin-inline-start"
1790
+ },
1791
+ "right-bottom": {
1792
+ area: "span-top right",
1793
+ margin: "margin-inline-start"
1794
+ },
1764
1795
  "top-left": {
1765
1796
  area: "top span-right",
1766
1797
  margin: "margin-block-end"
@@ -1916,7 +1947,7 @@ var zr = /* @__PURE__ */ new Set(), Br = (e, t) => !!t.root.value && !!e.root.va
1916
1947
  onFocusout: xe
1917
1948
  }, [ne(r.$slots, "content")], 36), [[pe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
1918
1949
  }
1919
- }), [["styles", [".pv-floating-native[data-v-ead1215b]{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-ead1215b]>.pv-popover,.pv-floating-native>slot[name=content][data-v-ead1215b]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-ead1215b"]]);
1950
+ }), [["styles", [".pv-floating-native[data-v-c13d6b59]{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-c13d6b59]>.pv-popover,.pv-floating-native>slot[name=content][data-v-c13d6b59]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-c13d6b59"]]);
1920
1951
  //#endregion
1921
1952
  //#region src/components/base/PvMenu/cascadeUtils.ts
1922
1953
  function Gr(e) {
@@ -2120,7 +2151,7 @@ var Jr = {
2120
2151
  },
2121
2152
  closeDelay: { type: Number },
2122
2153
  zIndex: { type: Number },
2123
- teleportLocation: { type: String },
2154
+ teleportLocation: { type: null },
2124
2155
  offset: { type: Number },
2125
2156
  ignoreClickOutsideClasses: { type: Array },
2126
2157
  disabled: { type: Boolean },