@turquoisehealth/pit-viper 2.182.1-dev.4 → 2.183.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.
- 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/components/base/PvMenu/cascadeUtils.d.ts +1 -2
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -3
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +1 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs +871 -924
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +4 -6
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/cascadeUtils.d.ts +1 -2
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -3
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +1 -3
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +1 -5
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +17 -24
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +8 -10
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1355 -1656
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +4 -6
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +35 -44
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +963 -1016
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +59 -68
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +35 -44
- package/pv-components/dist/web/pv-components.iife.js +20 -20
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -56,14 +56,12 @@ export interface MenuOptionSelectedEvent {
|
|
|
56
56
|
}
|
|
57
57
|
export interface SeeMoreEvent {
|
|
58
58
|
parentId?: string;
|
|
59
|
-
offset?: number;
|
|
60
59
|
}
|
|
61
|
-
export interface
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
export interface MultiSelectState {
|
|
61
|
+
selectedParentIds: string[];
|
|
62
|
+
selectedChildrenIds: string[];
|
|
63
|
+
deselectedChildrenIds: string[];
|
|
65
64
|
}
|
|
66
|
-
export type MultiSelectState = SelectionNode[];
|
|
67
65
|
export declare enum MenuItemType {
|
|
68
66
|
simple = "simple",
|
|
69
67
|
checkbox = "checkbox",
|
|
@@ -1971,81 +1971,72 @@ 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(
|
|
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 ?? []), v = j(/* @__PURE__ */ new Set());
|
|
1975
1975
|
L(() => i.children, (e) => {
|
|
1976
1976
|
if (!e) {
|
|
1977
|
-
|
|
1977
|
+
g.value = [];
|
|
1978
1978
|
return;
|
|
1979
1979
|
}
|
|
1980
|
-
let t =
|
|
1981
|
-
|
|
1980
|
+
let t = g.value.filter((e) => v.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
1981
|
+
g.value = [...e, ...r];
|
|
1982
1982
|
});
|
|
1983
|
-
let
|
|
1983
|
+
let b = () => {
|
|
1984
1984
|
m.value = !m.value;
|
|
1985
|
-
},
|
|
1985
|
+
}, S = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), w = r(() => {
|
|
1986
1986
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
1987
1987
|
return r;
|
|
1988
|
-
}),
|
|
1988
|
+
}), T = r(() => g.value.length > 0 && i.level < Ur), E = r(() => T.value ? l.value ? m.value : !0 : !1), O = 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, N = r(() => i.totalChildCount == null ? !1 : i.totalChildCount > g.value.length), te = async () => {
|
|
1989
1989
|
if (h.value) return;
|
|
1990
1990
|
if (!i.handleSeeMore) {
|
|
1991
|
-
|
|
1992
|
-
parentId: i.id,
|
|
1993
|
-
offset: v.value.length
|
|
1994
|
-
});
|
|
1991
|
+
A("see-more", { parentId: i.id });
|
|
1995
1992
|
return;
|
|
1996
1993
|
}
|
|
1997
1994
|
let e = f?.value?.has(i.id) ?? !1;
|
|
1998
1995
|
h.value = !0;
|
|
1999
1996
|
try {
|
|
2000
|
-
let t = await i.handleSeeMore({
|
|
2001
|
-
parentId: i.id,
|
|
2002
|
-
offset: v.value.length
|
|
2003
|
-
});
|
|
1997
|
+
let t = await i.handleSeeMore({ parentId: i.id });
|
|
2004
1998
|
if (Array.isArray(t) && t.length > 0) {
|
|
2005
|
-
let n = new Set(
|
|
2006
|
-
if (r.length === 0)
|
|
2007
|
-
|
|
2008
|
-
return;
|
|
2009
|
-
}
|
|
2010
|
-
let a = new Set(b.value);
|
|
1999
|
+
let n = new Set(g.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2000
|
+
if (r.length === 0) return;
|
|
2001
|
+
let a = new Set(v.value);
|
|
2011
2002
|
for (let e of r) a.add(e.id);
|
|
2012
|
-
if (
|
|
2003
|
+
if (v.value = a, g.value = [...g.value, ...r], e && s?.value) {
|
|
2013
2004
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
2014
2005
|
if (t.length > 0) {
|
|
2015
2006
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
2016
2007
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
2017
2008
|
}
|
|
2018
2009
|
}
|
|
2019
|
-
}
|
|
2010
|
+
}
|
|
2020
2011
|
} finally {
|
|
2021
2012
|
h.value = !1;
|
|
2022
2013
|
}
|
|
2023
|
-
},
|
|
2024
|
-
if (l.value &&
|
|
2025
|
-
|
|
2014
|
+
}, P = (e) => {
|
|
2015
|
+
if (l.value && T.value && e.option.id === i.id && !d.value) {
|
|
2016
|
+
b();
|
|
2026
2017
|
return;
|
|
2027
2018
|
}
|
|
2028
2019
|
if (!s) {
|
|
2029
2020
|
let t = c.value.indexOf(e.option.id);
|
|
2030
2021
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2031
2022
|
}
|
|
2032
|
-
|
|
2033
|
-
},
|
|
2034
|
-
|
|
2023
|
+
A("handle-selected", e);
|
|
2024
|
+
}, F = (e) => {
|
|
2025
|
+
A("handle-selected", e);
|
|
2035
2026
|
};
|
|
2036
2027
|
return (n, r) => {
|
|
2037
2028
|
let s = ee("PvMenuItem", !0);
|
|
2038
|
-
return D(), o(t, null, [u(Br, y(
|
|
2039
|
-
children:
|
|
2029
|
+
return D(), o(t, null, [u(Br, y(w.value, {
|
|
2030
|
+
children: g.value,
|
|
2040
2031
|
menuOptionConfig: e.config,
|
|
2041
2032
|
queryText: e.queryText,
|
|
2042
2033
|
highlightSearchText: e.highlightSearchText,
|
|
2043
|
-
showChevron: re(l) &&
|
|
2044
|
-
chevronIcon:
|
|
2034
|
+
showChevron: re(l) && T.value,
|
|
2035
|
+
chevronIcon: O.value,
|
|
2045
2036
|
expanded: m.value,
|
|
2046
|
-
onHandleSelected:
|
|
2047
|
-
onToggleExpanded:
|
|
2048
|
-
selected:
|
|
2037
|
+
onHandleSelected: P,
|
|
2038
|
+
onToggleExpanded: b,
|
|
2039
|
+
selected: k(i)
|
|
2049
2040
|
}), null, 16, [
|
|
2050
2041
|
"children",
|
|
2051
2042
|
"menuOptionConfig",
|
|
@@ -2055,13 +2046,13 @@ var Ar = Symbol("SelectedItemsKey"), jr = Symbol("EnableCascadeSelectionKey"), M
|
|
|
2055
2046
|
"chevronIcon",
|
|
2056
2047
|
"expanded",
|
|
2057
2048
|
"selected"
|
|
2058
|
-
]),
|
|
2049
|
+
]), E.value ? (D(), o("ul", {
|
|
2059
2050
|
key: 0,
|
|
2060
2051
|
role: "list",
|
|
2061
|
-
style: C(
|
|
2062
|
-
}, [(D(!0), o(t, null, M(
|
|
2052
|
+
style: C(S.value)
|
|
2053
|
+
}, [(D(!0), o(t, null, M(g.value, (t) => (D(), o("li", {
|
|
2063
2054
|
key: t.id,
|
|
2064
|
-
"data-active":
|
|
2055
|
+
"data-active": k(t) ? "true" : null,
|
|
2065
2056
|
class: x(e.itemClass)
|
|
2066
2057
|
}, [u(s, y({ ref_for: !0 }, t, {
|
|
2067
2058
|
selectedIds: c.value,
|
|
@@ -2070,21 +2061,21 @@ var Ar = Symbol("SelectedItemsKey"), jr = Symbol("EnableCascadeSelectionKey"), M
|
|
|
2070
2061
|
queryText: e.queryText,
|
|
2071
2062
|
highlightSearchText: e.highlightSearchText,
|
|
2072
2063
|
level: e.level + 1,
|
|
2073
|
-
onHandleSelected:
|
|
2074
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2064
|
+
onHandleSelected: F,
|
|
2065
|
+
onSeeMore: r[1] ||= (e) => A("see-more", e)
|
|
2075
2066
|
}), null, 16, [
|
|
2076
2067
|
"selectedIds",
|
|
2077
2068
|
"config",
|
|
2078
2069
|
"queryText",
|
|
2079
2070
|
"highlightSearchText",
|
|
2080
2071
|
"level"
|
|
2081
|
-
])], 10, Vr))), 128)),
|
|
2072
|
+
])], 10, Vr))), 128)), N.value ? (D(), o("li", Hr, [u(Er, {
|
|
2082
2073
|
class: "pv-text-brand",
|
|
2083
2074
|
variant: "ghost",
|
|
2084
2075
|
label: "See more",
|
|
2085
2076
|
loading: h.value,
|
|
2086
2077
|
"data-testid": "pv-menu-item-see-more",
|
|
2087
|
-
onClick:
|
|
2078
|
+
onClick: te
|
|
2088
2079
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
2089
2080
|
};
|
|
2090
2081
|
}
|