@turquoisehealth/pit-viper 2.199.2-dev.2 → 2.201.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/_site/assets/css/pit-viper-a11y.css +1 -1
  2. package/_site/assets/css/pit-viper-consumer.css +1 -1
  3. package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
  4. package/_site/assets/css/pit-viper-v2.css +1 -1
  5. package/_site/assets/css/pit-viper.css +1 -1
  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-banner-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-card-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-input-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-insight-card-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-query-builder-input-stats.html +1 -1
  17. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  18. package/pv-components/dist/stats/web/pv-widget-stats.html +1 -1
  19. package/pv-components/dist/vue/base/pv-components-base.mjs +276 -259
  20. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  21. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/chartTypeRegistry.d.ts +13 -1
  22. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +2 -0
  23. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +1 -1
  24. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/PvDataWidget.vue.d.ts +1 -1
  25. package/pv-components/dist/vue/visualizations/components/charts/PvDataWidget/helpers.d.ts +3 -1
  26. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1605 -1487
  27. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  28. package/pv-components/dist/web/components/pv-banner/pv-banner.js +1 -1
  29. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +1 -1
  30. package/pv-components/dist/web/components/pv-card/pv-card.js +1 -1
  31. package/pv-components/dist/web/components/pv-input/pv-input.js +3 -3
  32. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +1 -1
  33. package/pv-components/dist/web/components/pv-menu/pv-menu.js +13 -13
  34. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +20 -15
  35. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +459 -459
  36. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +822 -822
  37. package/pv-components/dist/web/components/pv-widget/pv-widget.js +1 -1
  38. package/pv-components/dist/web/pv-components.iife.js +3 -3
  39. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -68,7 +68,7 @@ var b = [
68
68
  name: e.icon
69
69
  }, null, 8, ["name"])) : n("v-if", !0),
70
70
  i("div", null, [i("p", {
71
- class: l([" pv-text-title-md pv-line-clamp", { "pv-stack-4": e.description }]),
71
+ class: l(["pv-text-title-md pv-line-clamp", { "pv-stack-4": e.description }]),
72
72
  style: {
73
73
  "--lines": "2",
74
74
  "font-weight": "500"
@@ -8,7 +8,7 @@ var h = {
8
8
  __name: "PvBreadcrumbs",
9
9
  props: { options: { type: Array } },
10
10
  setup(r) {
11
- return (i, a) => (c(), t("ul", h, [(c(!0), t(e, null, f(r.options, (r) => (c(), t("li", { key: r.label }, [r.href ? (c(), t("a", {
11
+ return (i, a) => (c(), t("ul", h, [(c(!0), t(e, null, f(r.options, (r, i) => (c(), t("li", { key: `${i}-${r.label}` }, [r.href ? (c(), t("a", {
12
12
  key: 0,
13
13
  href: r.href
14
14
  }, p(r.label), 9, g)) : (c(), t(e, { key: 1 }, [n(p(r.label), 1)], 64))]))), 128))]));
@@ -15,7 +15,7 @@ var g = /* @__PURE__ */ n({
15
15
  }
16
16
  },
17
17
  setup(n) {
18
- let r = n, i = e(() => r.href ? "a" : r.interactive ? "button" : "div"), a = e(() => r.href || r.interactive ? "button" : "div");
18
+ let r = n, i = e(() => r.href ? "a" : r.interactive ? "button" : "div"), a = e(() => !r.href && r.interactive ? "button" : void 0);
19
19
  return (e, r) => (c(), t(p(i.value), {
20
20
  href: n.href,
21
21
  type: a.value,
@@ -35,7 +35,7 @@ var w = [
35
35
  key: 0,
36
36
  class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
37
37
  style: { "--inset-size": "6px 10px" }
38
- }, k = { class: "pv-relative" }, A = [
38
+ }, k = { class: "pv-relative pv-flex-item" }, A = [
39
39
  "disabled",
40
40
  "type",
41
41
  "placeholder",
@@ -83,7 +83,7 @@ var w = [
83
83
  class: "pv-label pv-stack-8",
84
84
  for: o.id
85
85
  }, [_(t.$slots, "label")], 8, D)) : r("v-if", !0),
86
- a("div", { class: f(["pv-flex", { "pv-stack-8": o.lowerLabel }]) }, [o.prefixLabel ? (m(), i("div", O, v(o.prefixLabel), 1)) : r("v-if", !0), a("div", k, [o.inputIcon ? (m(), n(E, {
86
+ a("div", { class: f(["pv-flex pv-flex-item", { "pv-stack-8": o.lowerLabel }]) }, [o.prefixLabel ? (m(), i("div", O, v(o.prefixLabel), 1)) : r("v-if", !0), a("div", k, [o.inputIcon ? (m(), n(E, {
87
87
  key: 0,
88
88
  class: "pv-absolute input-icon-position",
89
89
  name: o.inputIcon
@@ -94,7 +94,7 @@ var w = [
94
94
  "pv-inset-square": o.inputIcon,
95
95
  "pv-surface-accent": o.variant === "grey"
96
96
  }],
97
- style: l.value,
97
+ style: [l.value, { width: "100%" }],
98
98
  disabled: o.disabled,
99
99
  type: o.type,
100
100
  placeholder: o.placeholder,
@@ -15,7 +15,7 @@ var C = /* @__PURE__ */ o({
15
15
  }
16
16
  },
17
17
  setup(e) {
18
- let r = e, i = t(() => r.href ? "a" : r.interactive ? "button" : "div"), a = t(() => r.href || r.interactive ? "button" : "div");
18
+ let r = e, i = t(() => r.href ? "a" : r.interactive ? "button" : "div"), a = t(() => !r.href && r.interactive ? "button" : void 0);
19
19
  return (t, r) => (p(), n(v(i.value), {
20
20
  href: e.href,
21
21
  type: a.value,
@@ -2026,10 +2026,10 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2026
2026
  }), E = r(() => xe({
2027
2027
  ...i,
2028
2028
  children: v.value
2029
- }) && i.level < Ur), O = r(() => E.value ? l.value ? m.value : !0 : !1), ee = r(() => m.value ? "chevron-down" : "chevron-right"), k = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), M = n, ne = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), N = async () => {
2029
+ }) && i.level < Ur), O = r(() => E.value ? l.value ? m.value || !!i.disabled : !0 : !1), ee = r(() => m.value ? "chevron-down" : "chevron-right"), k = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), M = (e) => k(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, ne = n, N = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), P = async () => {
2030
2030
  if (h.value) return;
2031
2031
  if (!i.handleSeeMore) {
2032
- M("see-more", {
2032
+ ne("see-more", {
2033
2033
  parentId: i.id,
2034
2034
  offset: v.value.length
2035
2035
  });
@@ -2061,7 +2061,7 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2061
2061
  } finally {
2062
2062
  h.value = !1;
2063
2063
  }
2064
- }, P = (e) => {
2064
+ }, re = (e) => {
2065
2065
  if (l.value && E.value && e.option.id === i.id && !d.value) {
2066
2066
  S();
2067
2067
  return;
@@ -2070,9 +2070,9 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2070
2070
  let t = c.value.indexOf(e.option.id);
2071
2071
  t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
2072
2072
  }
2073
- M("handle-selected", e);
2074
- }, re = (e) => {
2075
- M("handle-selected", e);
2073
+ ne("handle-selected", e);
2074
+ }, F = (e) => {
2075
+ ne("handle-selected", e);
2076
2076
  };
2077
2077
  return (n, r) => {
2078
2078
  let s = te("PvMenuItem", !0);
@@ -2084,7 +2084,7 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2084
2084
  showChevron: ie(l) && E.value,
2085
2085
  chevronIcon: ee.value,
2086
2086
  expanded: m.value,
2087
- onHandleSelected: P,
2087
+ onHandleSelected: re,
2088
2088
  onToggleExpanded: S,
2089
2089
  selected: k(i)
2090
2090
  }), null, 16, [
@@ -2100,7 +2100,7 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2100
2100
  key: 0,
2101
2101
  role: "list",
2102
2102
  style: C(w.value)
2103
- }, [(D(!0), o(t, null, j(v.value, (t) => (D(), o("li", {
2103
+ }, [(D(!0), o(t, null, j(v.value, (t) => fe((D(), o("li", {
2104
2104
  key: t.id,
2105
2105
  "data-active": k(t) ? "true" : null,
2106
2106
  class: x(e.itemClass)
@@ -2112,8 +2112,8 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2112
2112
  queryText: e.queryText,
2113
2113
  highlightSearchText: e.highlightSearchText,
2114
2114
  level: e.level + 1,
2115
- onHandleSelected: re,
2116
- onSeeMore: r[1] ||= (e) => M("see-more", e)
2115
+ onHandleSelected: F,
2116
+ onSeeMore: r[1] ||= (e) => ne("see-more", e)
2117
2117
  }), null, 16, [
2118
2118
  "disabled",
2119
2119
  "selectedIds",
@@ -2121,13 +2121,13 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2121
2121
  "queryText",
2122
2122
  "highlightSearchText",
2123
2123
  "level"
2124
- ])], 10, Vr))), 128)), ne.value ? (D(), o("li", Hr, [u(Br, {
2124
+ ])], 10, Vr)), [[le, !i.disabled || M(t)]])), 128)), N.value ? (D(), o("li", Hr, [u(Br, {
2125
2125
  class: "pv-text-brand",
2126
2126
  variant: "ghost",
2127
2127
  label: "See more",
2128
2128
  loading: h.value,
2129
2129
  "data-testid": "pv-menu-item-see-more",
2130
- onClick: N
2130
+ onClick: P
2131
2131
  }, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
2132
2132
  };
2133
2133
  }
@@ -2214,7 +2214,7 @@ var gr = { style: { width: "fit-content" } }, _r = /* @__PURE__ */ f({
2214
2214
  "config",
2215
2215
  "itemClass",
2216
2216
  "queryText"
2217
- ])], 10, Kr)), [[le, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (D(), o("li", qr, [u(Br, {
2217
+ ])], 10, Kr)), [[le, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (D(), o("li", qr, [u(Br, {
2218
2218
  class: "pv-text-brand",
2219
2219
  variant: "ghost",
2220
2220
  label: "See more",
@@ -2430,10 +2430,10 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2430
2430
  }), E = r(() => Rt({
2431
2431
  ...i,
2432
2432
  children: v.value
2433
- }) && i.level < yi), D = r(() => E.value ? l.value ? m.value : !0 : !1), O = r(() => m.value ? "chevron-down" : "chevron-right"), A = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), j = n, M = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), P = async () => {
2433
+ }) && i.level < yi), D = r(() => E.value ? l.value ? m.value || !!i.disabled : !0 : !1), O = r(() => m.value ? "chevron-down" : "chevron-right"), A = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), j = (e) => A(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, M = n, P = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), te = async () => {
2434
2434
  if (h.value) return;
2435
2435
  if (!i.handleSeeMore) {
2436
- j("see-more", {
2436
+ M("see-more", {
2437
2437
  parentId: i.id,
2438
2438
  offset: v.value.length
2439
2439
  });
@@ -2465,7 +2465,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2465
2465
  } finally {
2466
2466
  h.value = !1;
2467
2467
  }
2468
- }, te = (e) => {
2468
+ }, I = (e) => {
2469
2469
  if (l.value && E.value && e.option.id === i.id && !d.value) {
2470
2470
  x();
2471
2471
  return;
@@ -2474,9 +2474,9 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2474
2474
  let t = c.value.indexOf(e.option.id);
2475
2475
  t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
2476
2476
  }
2477
- j("handle-selected", e);
2478
- }, I = (e) => {
2479
- j("handle-selected", e);
2477
+ M("handle-selected", e);
2478
+ }, L = (e) => {
2479
+ M("handle-selected", e);
2480
2480
  };
2481
2481
  return (n, r) => {
2482
2482
  let s = F("PvMenuItem", !0);
@@ -2488,7 +2488,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2488
2488
  showChevron: z(l) && E.value,
2489
2489
  chevronIcon: O.value,
2490
2490
  expanded: m.value,
2491
- onHandleSelected: te,
2491
+ onHandleSelected: I,
2492
2492
  onToggleExpanded: x,
2493
2493
  selected: A(i)
2494
2494
  }), null, 16, [
@@ -2504,7 +2504,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2504
2504
  key: 0,
2505
2505
  role: "list",
2506
2506
  style: w(C.value)
2507
- }, [(k(!0), o(t, null, ee(v.value, (t) => (k(), o("li", {
2507
+ }, [(k(!0), o(t, null, ee(v.value, (t) => de((k(), o("li", {
2508
2508
  key: t.id,
2509
2509
  "data-active": A(t) ? "true" : null,
2510
2510
  class: S(e.itemClass)
@@ -2516,8 +2516,8 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2516
2516
  queryText: e.queryText,
2517
2517
  highlightSearchText: e.highlightSearchText,
2518
2518
  level: e.level + 1,
2519
- onHandleSelected: I,
2520
- onSeeMore: r[1] ||= (e) => j("see-more", e)
2519
+ onHandleSelected: L,
2520
+ onSeeMore: r[1] ||= (e) => M("see-more", e)
2521
2521
  }), null, 16, [
2522
2522
  "disabled",
2523
2523
  "selectedIds",
@@ -2525,13 +2525,13 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2525
2525
  "queryText",
2526
2526
  "highlightSearchText",
2527
2527
  "level"
2528
- ])], 10, _i))), 128)), M.value ? (k(), o("li", vi, [u(ct, {
2528
+ ])], 10, _i)), [[ce, !i.disabled || j(t)]])), 128)), P.value ? (k(), o("li", vi, [u(ct, {
2529
2529
  class: "pv-text-brand",
2530
2530
  variant: "ghost",
2531
2531
  label: "See more",
2532
2532
  loading: h.value,
2533
2533
  "data-testid": "pv-menu-item-see-more",
2534
- onClick: P
2534
+ onClick: te
2535
2535
  }, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
2536
2536
  };
2537
2537
  }
@@ -2618,7 +2618,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2618
2618
  "config",
2619
2619
  "itemClass",
2620
2620
  "queryText"
2621
- ])], 10, Si)), [[ce, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (k(), o("li", Ci, [u(ct, {
2621
+ ])], 10, Si)), [[ce, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (k(), o("li", Ci, [u(ct, {
2622
2622
  class: "pv-text-brand",
2623
2623
  variant: "ghost",
2624
2624
  label: "See more",
@@ -2956,8 +2956,13 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2956
2956
  "model-value": F.value,
2957
2957
  "onUpdate:modelValue": r[1] ||= (e) => F.value = e,
2958
2958
  class: "pv-stack-4",
2959
- placeholder: e.searchPlaceholder
2960
- }, null, 8, ["model-value", "placeholder"])])),
2959
+ placeholder: e.searchPlaceholder,
2960
+ disabled: e.readOnly
2961
+ }, null, 8, [
2962
+ "model-value",
2963
+ "placeholder",
2964
+ "disabled"
2965
+ ])])),
2961
2966
  n.$slots.header || z(Se) ? (k(), o("div", Ei, [P(n.$slots, "header", C(g(ye.value)))])) : a("v-if", !0),
2962
2967
  fe.value.length > 0 ? (k(), o(t, { key: 2 }, [ve.value ? (k(!0), o(t, { key: 0 }, ee(_e.value, ([t, i], s) => (k(), o("div", { key: t }, [
2963
2968
  n.$slots[t] ? P(n.$slots, t, { key: 0 }) : t === "other" ? a("v-if", !0) : (k(), o("span", Di, L(t), 1)),