@turquoisehealth/pit-viper 2.186.1-dev.0 → 2.186.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.
|
@@ -4539,7 +4539,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4539
4539
|
filterModel: l.value ?? void 0,
|
|
4540
4540
|
useStaged: K.value
|
|
4541
4541
|
});
|
|
4542
|
-
x(W.value, e), S.value[W.value] = !1;
|
|
4542
|
+
x(W.value, e), S.value[W.value] = !1, rt();
|
|
4543
4543
|
}
|
|
4544
4544
|
return;
|
|
4545
4545
|
}
|
|
@@ -4555,7 +4555,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4555
4555
|
let t = p(W.value, e);
|
|
4556
4556
|
return !t && J.value && e && (t = ze(e)), t;
|
|
4557
4557
|
}, Ee = (e, t) => t?.metadata?.rawValue == null ? e : t.metadata.rawValue, De = (e, t) => {
|
|
4558
|
-
if (!e || !t) return e;
|
|
4558
|
+
if (!e || !t || e.label && e.metadata?.rawValue == null) return e;
|
|
4559
4559
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
4560
4560
|
return n ? {
|
|
4561
4561
|
...e,
|
|
@@ -4742,6 +4742,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4742
4742
|
}),
|
|
4743
4743
|
set: (e) => {
|
|
4744
4744
|
if (J.value) {
|
|
4745
|
+
if (e.length === 0 && !ae.value && w.value && !K.value) {
|
|
4746
|
+
$e([]);
|
|
4747
|
+
return;
|
|
4748
|
+
}
|
|
4745
4749
|
i?.();
|
|
4746
4750
|
return;
|
|
4747
4751
|
}
|
|
@@ -4987,6 +4991,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4987
4991
|
}
|
|
4988
4992
|
let o = [...a.values()];
|
|
4989
4993
|
JSON.stringify(Y.value) !== JSON.stringify(o) && (Y.value = o), He(o);
|
|
4994
|
+
}, nt = () => J.value ? Y.value.some((e) => {
|
|
4995
|
+
let { field: t, value: n } = Pe(e.id);
|
|
4996
|
+
return t ? Re(t, n) !== e.id : !1;
|
|
4997
|
+
}) : !1, rt = () => {
|
|
4998
|
+
!J.value || !z.value || nt() && tt(l.value);
|
|
4990
4999
|
};
|
|
4991
5000
|
return V(Y, (e) => {
|
|
4992
5001
|
J.value && (He(e), !(w.value && !K.value) && $e(e));
|