@turquoisehealth/pit-viper 2.199.1 → 2.199.2-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.
@@ -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 || !!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 () => {
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 () => {
2030
2030
  if (h.value) return;
2031
2031
  if (!i.handleSeeMore) {
2032
- ne("see-more", {
2032
+ M("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
- }, re = (e) => {
2064
+ }, P = (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
- ne("handle-selected", e);
2074
- }, F = (e) => {
2075
- ne("handle-selected", e);
2073
+ M("handle-selected", e);
2074
+ }, re = (e) => {
2075
+ M("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: re,
2087
+ onHandleSelected: P,
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) => fe((D(), o("li", {
2103
+ }, [(D(!0), o(t, null, j(v.value, (t) => (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: F,
2116
- onSeeMore: r[1] ||= (e) => ne("see-more", e)
2115
+ onHandleSelected: re,
2116
+ onSeeMore: r[1] ||= (e) => M("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)), [[le, !i.disabled || M(t)]])), 128)), N.value ? (D(), o("li", Hr, [u(Br, {
2124
+ ])], 10, Vr))), 128)), ne.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: P
2130
+ onClick: N
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 || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (D(), o("li", qr, [u(Br, {
2217
+ ])], 10, Kr)), [[le, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (D(), o("li", qr, [u(Br, {
2218
2218
  class: "pv-text-brand",
2219
2219
  variant: "ghost",
2220
2220
  label: "See more",
@@ -719,12 +719,12 @@ var Et = [
719
719
  "data-testid": "pv-tooltip-content"
720
720
  }, [P(n.$slots, "tooltip-content")], 8, Dt)) : a("v-if", !0)], 10, Et));
721
721
  }
722
- }), kt = ["disabled"], At = { class: "pv-flex" }, jt = {
722
+ }), kt = ["disabled"], At = { class: "pv-flex pv-select-button-trigger-content" }, jt = {
723
723
  key: 0,
724
724
  "data-testid": "pv-select-prefix-label",
725
725
  class: "pv-border-right pv-text-quaternary",
726
726
  style: { "padding-right": "4px" }
727
- }, Mt = { key: 3 }, Nt = /* @__PURE__ */ it(/* @__PURE__ */ f({
727
+ }, Mt = ["title"], Nt = /* @__PURE__ */ it(/* @__PURE__ */ f({
728
728
  __name: "PvSelectButtonTrigger",
729
729
  props: {
730
730
  avatar: { type: Object },
@@ -821,7 +821,11 @@ var Et = [
821
821
  "variant",
822
822
  "shape"
823
823
  ])) : a("v-if", !0),
824
- e.isLoading || e.label ? (k(), o("span", Mt, L(d.value), 1)) : a("v-if", !0)
824
+ e.isLoading || e.label ? (k(), o("span", {
825
+ key: 3,
826
+ class: "pv-truncate pv-select-button-trigger-label",
827
+ title: d.value
828
+ }, L(d.value), 9, Mt)) : a("v-if", !0)
825
829
  ], 64)),
826
830
  e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (k(), i(at, {
827
831
  key: 4,
@@ -858,7 +862,7 @@ var Et = [
858
862
  })) : a("v-if", !0)
859
863
  ], 10, kt));
860
864
  }
861
- }), [["styles", [".pv-select-button-trigger-avatar[data-v-e19d6d09]{font-size:.5rem;font-weight:700}"]], ["__scopeId", "data-v-e19d6d09"]]), Pt = {}, Ft = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
865
+ }), [["styles", [".pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}"]], ["__scopeId", "data-v-5b922a5f"]]), Pt = {}, Ft = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
862
866
  function It(e, t) {
863
867
  return k(), o("div", Ft, "No Results Found");
864
868
  }
@@ -2426,10 +2430,10 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2426
2430
  }), E = r(() => Rt({
2427
2431
  ...i,
2428
2432
  children: v.value
2429
- }) && 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 () => {
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 () => {
2430
2434
  if (h.value) return;
2431
2435
  if (!i.handleSeeMore) {
2432
- M("see-more", {
2436
+ j("see-more", {
2433
2437
  parentId: i.id,
2434
2438
  offset: v.value.length
2435
2439
  });
@@ -2461,7 +2465,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2461
2465
  } finally {
2462
2466
  h.value = !1;
2463
2467
  }
2464
- }, I = (e) => {
2468
+ }, te = (e) => {
2465
2469
  if (l.value && E.value && e.option.id === i.id && !d.value) {
2466
2470
  x();
2467
2471
  return;
@@ -2470,9 +2474,9 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2470
2474
  let t = c.value.indexOf(e.option.id);
2471
2475
  t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
2472
2476
  }
2473
- M("handle-selected", e);
2474
- }, L = (e) => {
2475
- M("handle-selected", e);
2477
+ j("handle-selected", e);
2478
+ }, I = (e) => {
2479
+ j("handle-selected", e);
2476
2480
  };
2477
2481
  return (n, r) => {
2478
2482
  let s = F("PvMenuItem", !0);
@@ -2484,7 +2488,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2484
2488
  showChevron: z(l) && E.value,
2485
2489
  chevronIcon: O.value,
2486
2490
  expanded: m.value,
2487
- onHandleSelected: I,
2491
+ onHandleSelected: te,
2488
2492
  onToggleExpanded: x,
2489
2493
  selected: A(i)
2490
2494
  }), null, 16, [
@@ -2500,7 +2504,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2500
2504
  key: 0,
2501
2505
  role: "list",
2502
2506
  style: w(C.value)
2503
- }, [(k(!0), o(t, null, ee(v.value, (t) => de((k(), o("li", {
2507
+ }, [(k(!0), o(t, null, ee(v.value, (t) => (k(), o("li", {
2504
2508
  key: t.id,
2505
2509
  "data-active": A(t) ? "true" : null,
2506
2510
  class: S(e.itemClass)
@@ -2512,8 +2516,8 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2512
2516
  queryText: e.queryText,
2513
2517
  highlightSearchText: e.highlightSearchText,
2514
2518
  level: e.level + 1,
2515
- onHandleSelected: L,
2516
- onSeeMore: r[1] ||= (e) => M("see-more", e)
2519
+ onHandleSelected: I,
2520
+ onSeeMore: r[1] ||= (e) => j("see-more", e)
2517
2521
  }), null, 16, [
2518
2522
  "disabled",
2519
2523
  "selectedIds",
@@ -2521,13 +2525,13 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2521
2525
  "queryText",
2522
2526
  "highlightSearchText",
2523
2527
  "level"
2524
- ])], 10, _i)), [[ce, !i.disabled || j(t)]])), 128)), P.value ? (k(), o("li", vi, [u(ct, {
2528
+ ])], 10, _i))), 128)), M.value ? (k(), o("li", vi, [u(ct, {
2525
2529
  class: "pv-text-brand",
2526
2530
  variant: "ghost",
2527
2531
  label: "See more",
2528
2532
  loading: h.value,
2529
2533
  "data-testid": "pv-menu-item-see-more",
2530
- onClick: te
2534
+ onClick: P
2531
2535
  }, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
2532
2536
  };
2533
2537
  }
@@ -2614,7 +2618,7 @@ var $r = { style: { width: "fit-content" } }, ei = /* @__PURE__ */ f({
2614
2618
  "config",
2615
2619
  "itemClass",
2616
2620
  "queryText"
2617
- ])], 10, Si)), [[ce, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (k(), o("li", Ci, [u(ct, {
2621
+ ])], 10, Si)), [[ce, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (k(), o("li", Ci, [u(ct, {
2618
2622
  class: "pv-text-brand",
2619
2623
  variant: "ghost",
2620
2624
  label: "See more",