@turquoisehealth/pit-viper 2.182.1-dev.1 → 2.182.1-dev.3
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.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +39 -36
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +44 -42
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +39 -36
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +39 -36
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +63 -60
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +39 -36
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1971,26 +1971,26 @@ var Ar = Symbol("SelectedItemsKey"), jr = Symbol("EnableCascadeSelectionKey"), M
|
|
|
1971
1971
|
}),
|
|
1972
1972
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
1973
1973
|
setup(e, { emit: n }) {
|
|
1974
|
-
let i = e, s = _(Ar, void 0), c = ae(e, "selectedIds"), l = _(Ir, j(!1)), d = _(Fr, j(!1)), f = _(Nr, void 0), p = _(Pr, void 0), m = j(i.defaultExpanded ?? !1), h = j(!1), g = j(i.children ?? []),
|
|
1974
|
+
let i = e, s = _(Ar, void 0), c = ae(e, "selectedIds"), l = _(Ir, j(!1)), d = _(Fr, j(!1)), f = _(Nr, void 0), p = _(Pr, void 0), m = j(i.defaultExpanded ?? !1), h = j(!1), g = j(!1), v = j(i.children ?? []), b = j(/* @__PURE__ */ new Set());
|
|
1975
1975
|
L(() => i.children, (e) => {
|
|
1976
1976
|
if (!e) {
|
|
1977
|
-
|
|
1977
|
+
v.value = [];
|
|
1978
1978
|
return;
|
|
1979
1979
|
}
|
|
1980
|
-
let t =
|
|
1981
|
-
|
|
1980
|
+
let t = v.value.filter((e) => b.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
1981
|
+
v.value = [...e, ...r], g.value = !1;
|
|
1982
1982
|
});
|
|
1983
|
-
let
|
|
1983
|
+
let S = () => {
|
|
1984
1984
|
m.value = !m.value;
|
|
1985
|
-
},
|
|
1985
|
+
}, w = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
|
|
1986
1986
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
1987
1987
|
return r;
|
|
1988
|
-
}),
|
|
1988
|
+
}), E = r(() => (v.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < Ur), O = r(() => E.value ? l.value ? m.value : !0 : !1), k = 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), N = n, te = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), P = async () => {
|
|
1989
1989
|
if (h.value) return;
|
|
1990
1990
|
if (!i.handleSeeMore) {
|
|
1991
|
-
|
|
1991
|
+
N("see-more", {
|
|
1992
1992
|
parentId: i.id,
|
|
1993
|
-
offset:
|
|
1993
|
+
offset: v.value.length
|
|
1994
1994
|
});
|
|
1995
1995
|
return;
|
|
1996
1996
|
}
|
|
@@ -1999,50 +1999,53 @@ var Ar = Symbol("SelectedItemsKey"), jr = Symbol("EnableCascadeSelectionKey"), M
|
|
|
1999
1999
|
try {
|
|
2000
2000
|
let t = await i.handleSeeMore({
|
|
2001
2001
|
parentId: i.id,
|
|
2002
|
-
offset:
|
|
2002
|
+
offset: v.value.length
|
|
2003
2003
|
});
|
|
2004
2004
|
if (Array.isArray(t) && t.length > 0) {
|
|
2005
|
-
let n = new Set(
|
|
2006
|
-
if (r.length === 0)
|
|
2007
|
-
|
|
2005
|
+
let n = new Set(v.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2006
|
+
if (r.length === 0) {
|
|
2007
|
+
g.value = !0;
|
|
2008
|
+
return;
|
|
2009
|
+
}
|
|
2010
|
+
let a = new Set(b.value);
|
|
2008
2011
|
for (let e of r) a.add(e.id);
|
|
2009
|
-
if (
|
|
2012
|
+
if (b.value = a, v.value = [...v.value, ...r], e && s?.value) {
|
|
2010
2013
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
2011
2014
|
if (t.length > 0) {
|
|
2012
2015
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
2013
2016
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
2014
2017
|
}
|
|
2015
2018
|
}
|
|
2016
|
-
}
|
|
2019
|
+
} else Array.isArray(t) && (g.value = !0);
|
|
2017
2020
|
} finally {
|
|
2018
2021
|
h.value = !1;
|
|
2019
2022
|
}
|
|
2020
|
-
},
|
|
2021
|
-
if (l.value &&
|
|
2022
|
-
|
|
2023
|
+
}, F = (e) => {
|
|
2024
|
+
if (l.value && E.value && e.option.id === i.id && !d.value) {
|
|
2025
|
+
S();
|
|
2023
2026
|
return;
|
|
2024
2027
|
}
|
|
2025
2028
|
if (!s) {
|
|
2026
2029
|
let t = c.value.indexOf(e.option.id);
|
|
2027
2030
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2028
2031
|
}
|
|
2029
|
-
|
|
2030
|
-
},
|
|
2031
|
-
|
|
2032
|
+
N("handle-selected", e);
|
|
2033
|
+
}, ne = (e) => {
|
|
2034
|
+
N("handle-selected", e);
|
|
2032
2035
|
};
|
|
2033
2036
|
return (n, r) => {
|
|
2034
2037
|
let s = ee("PvMenuItem", !0);
|
|
2035
|
-
return D(), o(t, null, [u(Br, y(
|
|
2036
|
-
children:
|
|
2038
|
+
return D(), o(t, null, [u(Br, y(T.value, {
|
|
2039
|
+
children: v.value,
|
|
2037
2040
|
menuOptionConfig: e.config,
|
|
2038
2041
|
queryText: e.queryText,
|
|
2039
2042
|
highlightSearchText: e.highlightSearchText,
|
|
2040
|
-
showChevron: re(l) &&
|
|
2041
|
-
chevronIcon:
|
|
2043
|
+
showChevron: re(l) && E.value,
|
|
2044
|
+
chevronIcon: k.value,
|
|
2042
2045
|
expanded: m.value,
|
|
2043
|
-
onHandleSelected:
|
|
2044
|
-
onToggleExpanded:
|
|
2045
|
-
selected:
|
|
2046
|
+
onHandleSelected: F,
|
|
2047
|
+
onToggleExpanded: S,
|
|
2048
|
+
selected: A(i)
|
|
2046
2049
|
}), null, 16, [
|
|
2047
2050
|
"children",
|
|
2048
2051
|
"menuOptionConfig",
|
|
@@ -2052,13 +2055,13 @@ var Ar = Symbol("SelectedItemsKey"), jr = Symbol("EnableCascadeSelectionKey"), M
|
|
|
2052
2055
|
"chevronIcon",
|
|
2053
2056
|
"expanded",
|
|
2054
2057
|
"selected"
|
|
2055
|
-
]),
|
|
2058
|
+
]), O.value ? (D(), o("ul", {
|
|
2056
2059
|
key: 0,
|
|
2057
2060
|
role: "list",
|
|
2058
|
-
style: C(
|
|
2059
|
-
}, [(D(!0), o(t, null, M(
|
|
2061
|
+
style: C(w.value)
|
|
2062
|
+
}, [(D(!0), o(t, null, M(v.value, (t) => (D(), o("li", {
|
|
2060
2063
|
key: t.id,
|
|
2061
|
-
"data-active":
|
|
2064
|
+
"data-active": A(t) ? "true" : null,
|
|
2062
2065
|
class: x(e.itemClass)
|
|
2063
2066
|
}, [u(s, y({ ref_for: !0 }, t, {
|
|
2064
2067
|
selectedIds: c.value,
|
|
@@ -2067,21 +2070,21 @@ var Ar = Symbol("SelectedItemsKey"), jr = Symbol("EnableCascadeSelectionKey"), M
|
|
|
2067
2070
|
queryText: e.queryText,
|
|
2068
2071
|
highlightSearchText: e.highlightSearchText,
|
|
2069
2072
|
level: e.level + 1,
|
|
2070
|
-
onHandleSelected:
|
|
2071
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2073
|
+
onHandleSelected: ne,
|
|
2074
|
+
onSeeMore: r[1] ||= (e) => N("see-more", e)
|
|
2072
2075
|
}), null, 16, [
|
|
2073
2076
|
"selectedIds",
|
|
2074
2077
|
"config",
|
|
2075
2078
|
"queryText",
|
|
2076
2079
|
"highlightSearchText",
|
|
2077
2080
|
"level"
|
|
2078
|
-
])], 10, Vr))), 128)),
|
|
2081
|
+
])], 10, Vr))), 128)), te.value ? (D(), o("li", Hr, [u(Er, {
|
|
2079
2082
|
class: "pv-text-brand",
|
|
2080
2083
|
variant: "ghost",
|
|
2081
2084
|
label: "See more",
|
|
2082
2085
|
loading: h.value,
|
|
2083
2086
|
"data-testid": "pv-menu-item-see-more",
|
|
2084
|
-
onClick:
|
|
2087
|
+
onClick: P
|
|
2085
2088
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
2086
2089
|
};
|
|
2087
2090
|
}
|
|
@@ -2330,26 +2330,26 @@ var ci = Symbol("SelectedItemsKey"), li = Symbol("EnableCascadeSelectionKey"), u
|
|
|
2330
2330
|
}),
|
|
2331
2331
|
emits: /* @__PURE__ */ y(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2332
2332
|
setup(e, { emit: n }) {
|
|
2333
|
-
let i = e, s = _(ci, void 0), c = ae(e, "selectedIds"), l = _(mi, M(!1)), d = _(pi, M(!1)), f = _(di, void 0), p = _(fi, void 0), m = M(i.defaultExpanded ?? !1), h = M(!1), g = M(i.children ?? []),
|
|
2333
|
+
let i = e, s = _(ci, void 0), c = ae(e, "selectedIds"), l = _(mi, M(!1)), d = _(pi, M(!1)), f = _(di, void 0), p = _(fi, void 0), m = M(i.defaultExpanded ?? !1), h = M(!1), g = M(!1), v = M(i.children ?? []), y = M(/* @__PURE__ */ new Set());
|
|
2334
2334
|
B(() => i.children, (e) => {
|
|
2335
2335
|
if (!e) {
|
|
2336
|
-
|
|
2336
|
+
v.value = [];
|
|
2337
2337
|
return;
|
|
2338
2338
|
}
|
|
2339
|
-
let t =
|
|
2340
|
-
|
|
2339
|
+
let t = v.value.filter((e) => y.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2340
|
+
v.value = [...e, ...r], g.value = !1;
|
|
2341
2341
|
});
|
|
2342
|
-
let
|
|
2342
|
+
let x = () => {
|
|
2343
2343
|
m.value = !m.value;
|
|
2344
|
-
},
|
|
2344
|
+
}, C = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
|
|
2345
2345
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2346
2346
|
return r;
|
|
2347
|
-
}),
|
|
2347
|
+
}), E = r(() => (v.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < xi), ee = r(() => E.value ? l.value ? m.value : !0 : !1), D = 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), A = n, j = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), N = async () => {
|
|
2348
2348
|
if (h.value) return;
|
|
2349
2349
|
if (!i.handleSeeMore) {
|
|
2350
|
-
|
|
2350
|
+
A("see-more", {
|
|
2351
2351
|
parentId: i.id,
|
|
2352
|
-
offset:
|
|
2352
|
+
offset: v.value.length
|
|
2353
2353
|
});
|
|
2354
2354
|
return;
|
|
2355
2355
|
}
|
|
@@ -2358,50 +2358,53 @@ var ci = Symbol("SelectedItemsKey"), li = Symbol("EnableCascadeSelectionKey"), u
|
|
|
2358
2358
|
try {
|
|
2359
2359
|
let t = await i.handleSeeMore({
|
|
2360
2360
|
parentId: i.id,
|
|
2361
|
-
offset:
|
|
2361
|
+
offset: v.value.length
|
|
2362
2362
|
});
|
|
2363
2363
|
if (Array.isArray(t) && t.length > 0) {
|
|
2364
|
-
let n = new Set(
|
|
2365
|
-
if (r.length === 0)
|
|
2366
|
-
|
|
2364
|
+
let n = new Set(v.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2365
|
+
if (r.length === 0) {
|
|
2366
|
+
g.value = !0;
|
|
2367
|
+
return;
|
|
2368
|
+
}
|
|
2369
|
+
let a = new Set(y.value);
|
|
2367
2370
|
for (let e of r) a.add(e.id);
|
|
2368
|
-
if (
|
|
2371
|
+
if (y.value = a, v.value = [...v.value, ...r], e && s?.value) {
|
|
2369
2372
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
2370
2373
|
if (t.length > 0) {
|
|
2371
2374
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
2372
2375
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
2373
2376
|
}
|
|
2374
2377
|
}
|
|
2375
|
-
}
|
|
2378
|
+
} else Array.isArray(t) && (g.value = !0);
|
|
2376
2379
|
} finally {
|
|
2377
2380
|
h.value = !1;
|
|
2378
2381
|
}
|
|
2379
|
-
},
|
|
2380
|
-
if (l.value &&
|
|
2381
|
-
|
|
2382
|
+
}, ne = (e) => {
|
|
2383
|
+
if (l.value && E.value && e.option.id === i.id && !d.value) {
|
|
2384
|
+
x();
|
|
2382
2385
|
return;
|
|
2383
2386
|
}
|
|
2384
2387
|
if (!s) {
|
|
2385
2388
|
let t = c.value.indexOf(e.option.id);
|
|
2386
2389
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2387
2390
|
}
|
|
2388
|
-
|
|
2389
|
-
},
|
|
2390
|
-
|
|
2391
|
+
A("handle-selected", e);
|
|
2392
|
+
}, F = (e) => {
|
|
2393
|
+
A("handle-selected", e);
|
|
2391
2394
|
};
|
|
2392
2395
|
return (n, r) => {
|
|
2393
2396
|
let s = P("PvMenuItem", !0);
|
|
2394
|
-
return O(), o(t, null, [u(vi, b(
|
|
2395
|
-
children:
|
|
2397
|
+
return O(), o(t, null, [u(vi, b(T.value, {
|
|
2398
|
+
children: v.value,
|
|
2396
2399
|
menuOptionConfig: e.config,
|
|
2397
2400
|
queryText: e.queryText,
|
|
2398
2401
|
highlightSearchText: e.highlightSearchText,
|
|
2399
|
-
showChevron: R(l) &&
|
|
2400
|
-
chevronIcon:
|
|
2402
|
+
showChevron: R(l) && E.value,
|
|
2403
|
+
chevronIcon: D.value,
|
|
2401
2404
|
expanded: m.value,
|
|
2402
|
-
onHandleSelected:
|
|
2403
|
-
onToggleExpanded:
|
|
2404
|
-
selected:
|
|
2405
|
+
onHandleSelected: ne,
|
|
2406
|
+
onToggleExpanded: x,
|
|
2407
|
+
selected: k(i)
|
|
2405
2408
|
}), null, 16, [
|
|
2406
2409
|
"children",
|
|
2407
2410
|
"menuOptionConfig",
|
|
@@ -2411,13 +2414,13 @@ var ci = Symbol("SelectedItemsKey"), li = Symbol("EnableCascadeSelectionKey"), u
|
|
|
2411
2414
|
"chevronIcon",
|
|
2412
2415
|
"expanded",
|
|
2413
2416
|
"selected"
|
|
2414
|
-
]),
|
|
2417
|
+
]), ee.value ? (O(), o("ul", {
|
|
2415
2418
|
key: 0,
|
|
2416
2419
|
role: "list",
|
|
2417
|
-
style: w(
|
|
2418
|
-
}, [(O(!0), o(t, null, te(
|
|
2420
|
+
style: w(C.value)
|
|
2421
|
+
}, [(O(!0), o(t, null, te(v.value, (t) => (O(), o("li", {
|
|
2419
2422
|
key: t.id,
|
|
2420
|
-
"data-active":
|
|
2423
|
+
"data-active": k(t) ? "true" : null,
|
|
2421
2424
|
class: S(e.itemClass)
|
|
2422
2425
|
}, [u(s, b({ ref_for: !0 }, t, {
|
|
2423
2426
|
selectedIds: c.value,
|
|
@@ -2426,21 +2429,21 @@ var ci = Symbol("SelectedItemsKey"), li = Symbol("EnableCascadeSelectionKey"), u
|
|
|
2426
2429
|
queryText: e.queryText,
|
|
2427
2430
|
highlightSearchText: e.highlightSearchText,
|
|
2428
2431
|
level: e.level + 1,
|
|
2429
|
-
onHandleSelected:
|
|
2430
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2432
|
+
onHandleSelected: F,
|
|
2433
|
+
onSeeMore: r[1] ||= (e) => A("see-more", e)
|
|
2431
2434
|
}), null, 16, [
|
|
2432
2435
|
"selectedIds",
|
|
2433
2436
|
"config",
|
|
2434
2437
|
"queryText",
|
|
2435
2438
|
"highlightSearchText",
|
|
2436
2439
|
"level"
|
|
2437
|
-
])], 10, yi))), 128)),
|
|
2440
|
+
])], 10, yi))), 128)), j.value ? (O(), o("li", bi, [u(lt, {
|
|
2438
2441
|
class: "pv-text-brand",
|
|
2439
2442
|
variant: "ghost",
|
|
2440
2443
|
label: "See more",
|
|
2441
2444
|
loading: h.value,
|
|
2442
2445
|
"data-testid": "pv-menu-item-see-more",
|
|
2443
|
-
onClick:
|
|
2446
|
+
onClick: N
|
|
2444
2447
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
2445
2448
|
};
|
|
2446
2449
|
}
|