@turquoisehealth/pit-viper 2.74.1 → 2.75.1-dev.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.
@@ -44766,25 +44766,25 @@ const Mf = Symbol("FilterStoreKey"), Dl = Symbol("FocusStoreKey"), kf = Symbol("
44766
44766
  function kz(e, t) {
44767
44767
  return M(), V("div", Mz);
44768
44768
  }
44769
- const Az = /* @__PURE__ */ po(Pz, [["render", kz]]), Bf = () => {
44770
- const e = $([]), t = $(null), o = W(() => e.value), i = W(() => t.value), s = (c) => {
44771
- c !== t.value && (t.value = c || null, e.value = []);
44772
- }, r = (c) => t.value !== null && t.value === c, n = (c, u) => !c || !u ? !1 : e.value.includes(c) && t.value === u, a = (c) => {
44773
- e.value = e.value.filter((u) => u !== c);
44769
+ const Az = /* @__PURE__ */ po(Pz, [["render", kz]]), Bf = (e = null) => {
44770
+ const t = $(e?.focuses || []), o = $(e?.focusType || null), i = W(() => t.value), s = W(() => o.value), r = (u) => {
44771
+ u !== o.value && (o.value = u || null, t.value = []);
44772
+ }, n = (u) => o.value !== null && o.value === u, a = (u, h) => !u || !h ? !1 : t.value.includes(u) && o.value === h, l = (u) => {
44773
+ t.value = t.value.filter((h) => h !== u);
44774
44774
  };
44775
44775
  return {
44776
- computedFocuses: o,
44777
- computedFocusType: i,
44776
+ computedFocuses: i,
44777
+ computedFocusType: s,
44778
44778
  clearAllFocuses: () => {
44779
- e.value = [], t.value = null;
44779
+ t.value = [], o.value = null;
44780
44780
  },
44781
- handleFocusUpdate: (c) => {
44782
- c && t.value && (e.value.includes(c) ? a(c) : e.value = [c]);
44781
+ handleFocusUpdate: (u) => {
44782
+ u && o.value && (t.value.includes(u) ? l(u) : t.value = [u]);
44783
44783
  },
44784
- isFocused: n,
44785
- removeFocus: a,
44786
- shouldShowFocusButton: r,
44787
- setFocusType: s
44784
+ isFocused: a,
44785
+ removeFocus: l,
44786
+ shouldShowFocusButton: n,
44787
+ setFocusType: r
44788
44788
  };
44789
44789
  }, ta = () => {
44790
44790
  const e = rt(Dl, null);
@@ -45326,7 +45326,7 @@ const Au = (e, t, o) => !e || e.length === 0 ? e : e.slice().sort((i, s) => {
45326
45326
  return dr(
45327
45327
  [e, t],
45328
45328
  ([D, F], [C, m]) => {
45329
- JSON.stringify(D) !== JSON.stringify(C) && k(D || {}, C || {}), JSON.stringify(F) !== JSON.stringify(m) && (k(F || {}, e.value || {}), console.log("staged filter model changed", F));
45329
+ JSON.stringify(D) !== JSON.stringify(C) && k(D || {}, C || {}), JSON.stringify(F) !== JSON.stringify(m) && k(F || {}, e.value || {});
45330
45330
  },
45331
45331
  {
45332
45332
  deep: !0,