@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, customRef as d, defineComponent as f, defineCustomElement as p, getCurrentInstance as m, getCurrentScope as h, guardReactiveProps as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, openBlock as D, reactive as O, readonly as k, ref as A, renderList as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, customRef as d, defineComponent as f, defineCustomElement as p, getCurrentInstance as m, getCurrentScope as h, guardReactiveProps as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, openBlock as D, reactive as O, readonly as k, ref as A, renderList as j, renderSlot as te, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as M, toDisplayString as N, toRef as ie, toValue as P, unref as ae, useId as oe, useModel as se, useTemplateRef as ce, vModelCheckbox as le, vModelText as ue, vShow as de, watch as F, watchEffect as fe, withCtx as pe, withDirectives as me, withModifiers as he } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var ge = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, ve = Object.getOwnPropertyNames, ye = Object.prototype.hasOwnProperty, be = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -1021,8 +1021,8 @@ J.prototype = {
|
|
|
1021
1021
|
hn = n, gn = x;
|
|
1022
1022
|
var k = n.nextElementSibling, A = !1;
|
|
1023
1023
|
A = x === 1;
|
|
1024
|
-
var
|
|
1025
|
-
if (
|
|
1024
|
+
var j = Ln(W, t, V, r, n, i, e, A);
|
|
1025
|
+
if (j !== !1) return (j === 1 || j === -1) && (A = j === 1), xn = !0, setTimeout(zn, 30), g(), A && !k ? t.appendChild(V) : n.parentNode.insertBefore(V, A ? k : n), E && Lt(E, 0, ee - E.scrollTop), H = V.parentNode, S !== void 0 && !vn && (yn = Math.abs(S - z(n)[T])), v(), _(!0);
|
|
1026
1026
|
}
|
|
1027
1027
|
if (t.contains(V)) return _(!1);
|
|
1028
1028
|
}
|
|
@@ -1438,7 +1438,7 @@ var fr = ["data-align"], pr = /* @__PURE__ */ f({
|
|
|
1438
1438
|
role: "list",
|
|
1439
1439
|
class: "pv-popover-list",
|
|
1440
1440
|
style: w(e.cssCustomListProperties)
|
|
1441
|
-
}, [
|
|
1441
|
+
}, [te(t.$slots, "default", {}, void 0, !0)], 4)) : te(t.$slots, "default", { key: 1 }, void 0, !0)], 12, fr));
|
|
1442
1442
|
}
|
|
1443
1443
|
}), mr = ".pv-popover-list[data-v-c6181252]{font-size:14px}", hr = (e, t) => {
|
|
1444
1444
|
let n = e.__vccOpts || e;
|
|
@@ -2788,7 +2788,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
|
|
|
2788
2788
|
return e.push(".p-datepicker-panel"), t.ignoreClickOutsideClasses && e.push(...t.ignoreClickOutsideClasses.map((e) => `.${e}`)), e;
|
|
2789
2789
|
}), O = r(() => t.showOnHover ? t.disableInteractive ? f.value : f.value || p.value : !1), k = () => {
|
|
2790
2790
|
t.showOnHover || C(x ? !1 : !c.value);
|
|
2791
|
-
},
|
|
2791
|
+
}, j = () => {
|
|
2792
2792
|
t.disableClickOutsideToClose || C(!1);
|
|
2793
2793
|
};
|
|
2794
2794
|
return F(O, (e) => {
|
|
@@ -2799,7 +2799,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
|
|
|
2799
2799
|
ref_key: "triggerWrapper",
|
|
2800
2800
|
ref: l,
|
|
2801
2801
|
onClick: k
|
|
2802
|
-
}, [
|
|
2802
|
+
}, [te(r.$slots, "trigger")], 512), r.$slots.content ? (D(), i(n, {
|
|
2803
2803
|
key: 0,
|
|
2804
2804
|
to: e.teleportLocation,
|
|
2805
2805
|
disabled: !t.useTeleport
|
|
@@ -2808,7 +2808,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
|
|
|
2808
2808
|
ref_key: "floating",
|
|
2809
2809
|
ref: d,
|
|
2810
2810
|
style: w(b.value)
|
|
2811
|
-
}, [
|
|
2811
|
+
}, [te(r.$slots, "content")], 4), [[de, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)])), [[ae(Ra), [j, { ignore: E.value }]]]);
|
|
2812
2812
|
}
|
|
2813
2813
|
}), qa = ["data-variant"], Ja = /* @__PURE__ */ f({
|
|
2814
2814
|
__name: "PvTooltipV2",
|
|
@@ -2850,7 +2850,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
|
|
|
2850
2850
|
},
|
|
2851
2851
|
setup(e) {
|
|
2852
2852
|
return (t, n) => (D(), i(Ka, C(g(t.$props)), c({
|
|
2853
|
-
trigger: pe(() => [
|
|
2853
|
+
trigger: pe(() => [te(t.$slots, "trigger", {}, () => [s("p", null, N(e.label), 1)])]),
|
|
2854
2854
|
_: 2
|
|
2855
2855
|
}, [t.$slots.content || e.description ? {
|
|
2856
2856
|
name: "content",
|
|
@@ -2858,7 +2858,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
|
|
|
2858
2858
|
class: S(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2859
2859
|
role: "tooltip",
|
|
2860
2860
|
"data-variant": e.variant
|
|
2861
|
-
}, [
|
|
2861
|
+
}, [te(t.$slots, "content", {}, () => [l(N(e.description), 1)])], 10, qa)]),
|
|
2862
2862
|
key: "0"
|
|
2863
2863
|
} : void 0]), 1040));
|
|
2864
2864
|
}
|
|
@@ -3086,7 +3086,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3086
3086
|
})), ee = r(() => {
|
|
3087
3087
|
let e = n.menuOptionConfig?.variant;
|
|
3088
3088
|
return e !== "checkbox" && e !== "radio";
|
|
3089
|
-
}), O = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${O.value}-${m()?.uid}`,
|
|
3089
|
+
}), O = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${O.value}-${m()?.uid}`, j = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), te = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), ne = t, M = (e) => {
|
|
3090
3090
|
n.disabled || (ne("handle-selected", {
|
|
3091
3091
|
option: { ...n },
|
|
3092
3092
|
event: e
|
|
@@ -3101,7 +3101,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3101
3101
|
paddingTop: e.subText ? "4px" : void 0,
|
|
3102
3102
|
paddingBottom: e.subText ? "4px" : void 0
|
|
3103
3103
|
}]),
|
|
3104
|
-
"data-testid":
|
|
3104
|
+
"data-testid": te.value
|
|
3105
3105
|
}, [
|
|
3106
3106
|
s("input", {
|
|
3107
3107
|
ref_key: "inputRef",
|
|
@@ -3111,7 +3111,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3111
3111
|
name: k,
|
|
3112
3112
|
checked: g.value,
|
|
3113
3113
|
indeterminate: v.value,
|
|
3114
|
-
class: S(
|
|
3114
|
+
class: S(j.value),
|
|
3115
3115
|
disabled: e.disabled,
|
|
3116
3116
|
onChange: M
|
|
3117
3117
|
}, null, 42, mo),
|
|
@@ -3190,81 +3190,72 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3190
3190
|
}),
|
|
3191
3191
|
emits: /* @__PURE__ */ y(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
3192
3192
|
setup(e, { emit: n }) {
|
|
3193
|
-
let i = e, s = _(ao, void 0), c = se(e, "selectedIds"), l = _(fo, A(!1)), d = _(uo, A(!1)), f = _(co, void 0), p = _(lo, void 0), m = A(i.defaultExpanded ?? !1), h = A(!1), g = A(
|
|
3193
|
+
let i = e, s = _(ao, void 0), c = se(e, "selectedIds"), l = _(fo, A(!1)), d = _(uo, A(!1)), f = _(co, void 0), p = _(lo, void 0), m = A(i.defaultExpanded ?? !1), h = A(!1), g = A(i.children ?? []), v = A(/* @__PURE__ */ new Set());
|
|
3194
3194
|
F(() => i.children, (e) => {
|
|
3195
3195
|
if (!e) {
|
|
3196
|
-
|
|
3196
|
+
g.value = [];
|
|
3197
3197
|
return;
|
|
3198
3198
|
}
|
|
3199
|
-
let t =
|
|
3200
|
-
|
|
3199
|
+
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));
|
|
3200
|
+
g.value = [...e, ...r];
|
|
3201
3201
|
});
|
|
3202
|
-
let
|
|
3202
|
+
let y = () => {
|
|
3203
3203
|
m.value = !m.value;
|
|
3204
|
-
},
|
|
3204
|
+
}, x = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), C = r(() => {
|
|
3205
3205
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
3206
3206
|
return r;
|
|
3207
|
-
}),
|
|
3207
|
+
}), T = r(() => g.value.length > 0 && i.level < yo), E = r(() => T.value ? l.value ? m.value : !0 : !1), ee = r(() => m.value ? "chevron-down" : "chevron-right"), O = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), k = n, te = r(() => i.totalChildCount == null ? !1 : i.totalChildCount > g.value.length), re = async () => {
|
|
3208
3208
|
if (h.value) return;
|
|
3209
3209
|
if (!i.handleSeeMore) {
|
|
3210
|
-
|
|
3211
|
-
parentId: i.id,
|
|
3212
|
-
offset: v.value.length
|
|
3213
|
-
});
|
|
3210
|
+
k("see-more", { parentId: i.id });
|
|
3214
3211
|
return;
|
|
3215
3212
|
}
|
|
3216
3213
|
let e = f?.value?.has(i.id) ?? !1;
|
|
3217
3214
|
h.value = !0;
|
|
3218
3215
|
try {
|
|
3219
|
-
let t = await i.handleSeeMore({
|
|
3220
|
-
parentId: i.id,
|
|
3221
|
-
offset: v.value.length
|
|
3222
|
-
});
|
|
3216
|
+
let t = await i.handleSeeMore({ parentId: i.id });
|
|
3223
3217
|
if (Array.isArray(t) && t.length > 0) {
|
|
3224
|
-
let n = new Set(
|
|
3225
|
-
if (r.length === 0)
|
|
3226
|
-
|
|
3227
|
-
return;
|
|
3228
|
-
}
|
|
3229
|
-
let a = new Set(y.value);
|
|
3218
|
+
let n = new Set(g.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
3219
|
+
if (r.length === 0) return;
|
|
3220
|
+
let a = new Set(v.value);
|
|
3230
3221
|
for (let e of r) a.add(e.id);
|
|
3231
|
-
if (
|
|
3222
|
+
if (v.value = a, g.value = [...g.value, ...r], e && s?.value) {
|
|
3232
3223
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
3233
3224
|
if (t.length > 0) {
|
|
3234
3225
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
3235
3226
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
3236
3227
|
}
|
|
3237
3228
|
}
|
|
3238
|
-
}
|
|
3229
|
+
}
|
|
3239
3230
|
} finally {
|
|
3240
3231
|
h.value = !1;
|
|
3241
3232
|
}
|
|
3242
|
-
},
|
|
3243
|
-
if (l.value &&
|
|
3244
|
-
|
|
3233
|
+
}, M = (e) => {
|
|
3234
|
+
if (l.value && T.value && e.option.id === i.id && !d.value) {
|
|
3235
|
+
y();
|
|
3245
3236
|
return;
|
|
3246
3237
|
}
|
|
3247
3238
|
if (!s) {
|
|
3248
3239
|
let t = c.value.indexOf(e.option.id);
|
|
3249
3240
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
3250
3241
|
}
|
|
3251
|
-
|
|
3252
|
-
},
|
|
3253
|
-
|
|
3242
|
+
k("handle-selected", e);
|
|
3243
|
+
}, N = (e) => {
|
|
3244
|
+
k("handle-selected", e);
|
|
3254
3245
|
};
|
|
3255
3246
|
return (n, r) => {
|
|
3256
3247
|
let s = ne("PvMenuItem", !0);
|
|
3257
|
-
return D(), o(t, null, [u(go, b(
|
|
3258
|
-
children:
|
|
3248
|
+
return D(), o(t, null, [u(go, b(C.value, {
|
|
3249
|
+
children: g.value,
|
|
3259
3250
|
menuOptionConfig: e.config,
|
|
3260
3251
|
queryText: e.queryText,
|
|
3261
3252
|
highlightSearchText: e.highlightSearchText,
|
|
3262
|
-
showChevron: ae(l) &&
|
|
3263
|
-
chevronIcon:
|
|
3253
|
+
showChevron: ae(l) && T.value,
|
|
3254
|
+
chevronIcon: ee.value,
|
|
3264
3255
|
expanded: m.value,
|
|
3265
|
-
onHandleSelected:
|
|
3266
|
-
onToggleExpanded:
|
|
3267
|
-
selected:
|
|
3256
|
+
onHandleSelected: M,
|
|
3257
|
+
onToggleExpanded: y,
|
|
3258
|
+
selected: O(i)
|
|
3268
3259
|
}), null, 16, [
|
|
3269
3260
|
"children",
|
|
3270
3261
|
"menuOptionConfig",
|
|
@@ -3274,13 +3265,13 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3274
3265
|
"chevronIcon",
|
|
3275
3266
|
"expanded",
|
|
3276
3267
|
"selected"
|
|
3277
|
-
]),
|
|
3268
|
+
]), E.value ? (D(), o("ul", {
|
|
3278
3269
|
key: 0,
|
|
3279
3270
|
role: "list",
|
|
3280
|
-
style: w(
|
|
3281
|
-
}, [(D(!0), o(t, null,
|
|
3271
|
+
style: w(x.value)
|
|
3272
|
+
}, [(D(!0), o(t, null, j(g.value, (t) => (D(), o("li", {
|
|
3282
3273
|
key: t.id,
|
|
3283
|
-
"data-active":
|
|
3274
|
+
"data-active": O(t) ? "true" : null,
|
|
3284
3275
|
class: S(e.itemClass)
|
|
3285
3276
|
}, [u(s, b({ ref_for: !0 }, t, {
|
|
3286
3277
|
selectedIds: c.value,
|
|
@@ -3289,21 +3280,21 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3289
3280
|
queryText: e.queryText,
|
|
3290
3281
|
highlightSearchText: e.highlightSearchText,
|
|
3291
3282
|
level: e.level + 1,
|
|
3292
|
-
onHandleSelected:
|
|
3293
|
-
onSeeMore: r[1] ||= (e) =>
|
|
3283
|
+
onHandleSelected: N,
|
|
3284
|
+
onSeeMore: r[1] ||= (e) => k("see-more", e)
|
|
3294
3285
|
}), null, 16, [
|
|
3295
3286
|
"selectedIds",
|
|
3296
3287
|
"config",
|
|
3297
3288
|
"queryText",
|
|
3298
3289
|
"highlightSearchText",
|
|
3299
3290
|
"level"
|
|
3300
|
-
])], 10, _o))), 128)),
|
|
3291
|
+
])], 10, _o))), 128)), te.value ? (D(), o("li", vo, [u(to, {
|
|
3301
3292
|
class: "pv-text-brand",
|
|
3302
3293
|
variant: "ghost",
|
|
3303
3294
|
label: "See more",
|
|
3304
3295
|
loading: h.value,
|
|
3305
3296
|
"data-testid": "pv-menu-item-see-more",
|
|
3306
|
-
onClick:
|
|
3297
|
+
onClick: re
|
|
3307
3298
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
3308
3299
|
};
|
|
3309
3300
|
}
|
|
@@ -3452,7 +3443,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3452
3443
|
};
|
|
3453
3444
|
l(s.value, t);
|
|
3454
3445
|
};
|
|
3455
|
-
return (e, n) => (D(), o(t, null, [(D(!0), o(t, null,
|
|
3446
|
+
return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, j(u.value, (e, t) => (D(), i(Do, {
|
|
3456
3447
|
key: `${t}-${e.queryText}`,
|
|
3457
3448
|
variant: p(e),
|
|
3458
3449
|
label: f(e),
|
|
@@ -3583,7 +3574,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3583
3574
|
g.value = !1, _.value = !1;
|
|
3584
3575
|
}
|
|
3585
3576
|
};
|
|
3586
|
-
function
|
|
3577
|
+
function te(e) {
|
|
3587
3578
|
let t = e.target;
|
|
3588
3579
|
t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
|
|
3589
3580
|
}
|
|
@@ -3597,7 +3588,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3597
3588
|
ref: "query-builder-input",
|
|
3598
3589
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3599
3590
|
onFocus: ne,
|
|
3600
|
-
onClick:
|
|
3591
|
+
onClick: te
|
|
3601
3592
|
}, [
|
|
3602
3593
|
e.hideSearchIcon ? a("v-if", !0) : (D(), i(xr, {
|
|
3603
3594
|
key: 0,
|
|
@@ -3647,7 +3638,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
|
|
|
3647
3638
|
},
|
|
3648
3639
|
isList: !0
|
|
3649
3640
|
}, {
|
|
3650
|
-
default: pe(() => [e.optionsLoading ? (D(), o("div", jo, [u(Ya, { variant: "dark" })])) : (D(!0), o(t, { key: 0 },
|
|
3641
|
+
default: pe(() => [e.optionsLoading ? (D(), o("div", jo, [u(Ya, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, j(ee.value, (e, t) => (D(), i(bo, b({
|
|
3651
3642
|
key: `${t}-${e.searchText}`,
|
|
3652
3643
|
ref_for: !0
|
|
3653
3644
|
}, e, {
|
|
@@ -3991,7 +3982,7 @@ var Ms = {
|
|
|
3991
3982
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
3992
3983
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
3993
3984
|
if (Z(a) && o.transform !== "strict") {
|
|
3994
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ps(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = y || {}, { dark: T } = w, E = ps(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {}, A = Z(b) ? this._toVariables({ semantic: b }, o) : {},
|
|
3985
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ps(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = y || {}, { dark: T } = w, E = ps(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {}, A = Z(b) ? this._toVariables({ semantic: b }, o) : {}, j = Z(E) ? this._toVariables({ light: E }, o) : {}, te = Z(T) ? this._toVariables({ dark: T }, o) : {}, [ne, re] = [ee.declarations ?? "", ee.tokens], [M, N] = [D.declarations ?? "", D.tokens || []], [ie, P] = [O.declarations ?? "", O.tokens || []], [ae, oe] = [k.declarations ?? "", k.tokens || []], [se, ce] = [A.declarations ?? "", A.tokens || []], [le, ue] = [j.declarations ?? "", j.tokens || []], [de, F] = [te.declarations ?? "", te.tokens || []];
|
|
3995
3986
|
s = this.transformCSS(e, ne, "light", "variable", o, r, i), c = re, l = `${this.transformCSS(e, `${M}${ie}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ae}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
3996
3987
|
...N,
|
|
3997
3988
|
...P,
|
|
@@ -4025,11 +4016,11 @@ var Ms = {
|
|
|
4025
4016
|
"colorScheme",
|
|
4026
4017
|
"extend",
|
|
4027
4018
|
"css"
|
|
4028
|
-
]), h = f || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ps(v, ["dark"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ds(ds({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ds(ds({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ds(ds({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A,
|
|
4019
|
+
]), h = f || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ps(v, ["dark"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ds(ds({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ds(ds({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ds(ds({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
|
|
4029
4020
|
s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
4030
4021
|
...D,
|
|
4031
4022
|
...k,
|
|
4032
|
-
...
|
|
4023
|
+
...j
|
|
4033
4024
|
])], l = Wo(p, { dt: Os });
|
|
4034
4025
|
}
|
|
4035
4026
|
return {
|
|
@@ -4388,7 +4379,7 @@ function Bs(e) {
|
|
|
4388
4379
|
}
|
|
4389
4380
|
var Vs = 0;
|
|
4390
4381
|
function Hs(e) {
|
|
4391
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(!1), r = A(e), i = A(null), a = ns() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Vs}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D,
|
|
4382
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(!1), r = A(e), i = A(null), a = ns() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Vs}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, j = function() {}, te = function(t) {
|
|
4392
4383
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4393
4384
|
if (s) {
|
|
4394
4385
|
var o = Is(Is({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
@@ -4399,20 +4390,20 @@ function Hs(e) {
|
|
|
4399
4390
|
nonce: u
|
|
4400
4391
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), rs(i.value, "data-primevue-style-id", c), ts(i.value, o), i.value.onload = function(e) {
|
|
4401
4392
|
return ee?.(e, { name: c });
|
|
4402
|
-
}, C?.(c)), !n.value && (
|
|
4393
|
+
}, C?.(c)), !n.value && (j = F(r, function(e) {
|
|
4403
4394
|
i.value.textContent = e, T?.(c);
|
|
4404
4395
|
}, { immediate: !0 }), n.value = !0);
|
|
4405
4396
|
}
|
|
4406
4397
|
};
|
|
4407
|
-
return l && !d && Bs(
|
|
4398
|
+
return l && !d && Bs(te), {
|
|
4408
4399
|
id: h,
|
|
4409
4400
|
name: p,
|
|
4410
4401
|
el: i,
|
|
4411
4402
|
css: r,
|
|
4412
4403
|
unload: function() {
|
|
4413
|
-
!s || !n.value || (
|
|
4404
|
+
!s || !n.value || (j(), $o(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
4414
4405
|
},
|
|
4415
|
-
load:
|
|
4406
|
+
load: te,
|
|
4416
4407
|
isLoaded: k(n)
|
|
4417
4408
|
};
|
|
4418
4409
|
}
|
|
@@ -2258,81 +2258,72 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
|
|
|
2258
2258
|
}),
|
|
2259
2259
|
emits: /* @__PURE__ */ y(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2260
2260
|
setup(e, { emit: n }) {
|
|
2261
|
-
let i = e, s = _(ii, void 0), c = se(e, "selectedIds"), l = _(ui, j(!1)), d = _(li, j(!1)), f = _(si, void 0), p = _(ci, void 0), m = j(i.defaultExpanded ?? !1), h = j(!1), g = j(
|
|
2261
|
+
let i = e, s = _(ii, void 0), c = se(e, "selectedIds"), l = _(ui, j(!1)), d = _(li, j(!1)), f = _(si, void 0), p = _(ci, void 0), m = j(i.defaultExpanded ?? !1), h = j(!1), g = j(i.children ?? []), v = j(/* @__PURE__ */ new Set());
|
|
2262
2262
|
L(() => i.children, (e) => {
|
|
2263
2263
|
if (!e) {
|
|
2264
|
-
|
|
2264
|
+
g.value = [];
|
|
2265
2265
|
return;
|
|
2266
2266
|
}
|
|
2267
|
-
let t =
|
|
2268
|
-
|
|
2267
|
+
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));
|
|
2268
|
+
g.value = [...e, ...r];
|
|
2269
2269
|
});
|
|
2270
|
-
let
|
|
2270
|
+
let y = () => {
|
|
2271
2271
|
m.value = !m.value;
|
|
2272
|
-
},
|
|
2272
|
+
}, x = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), C = r(() => {
|
|
2273
2273
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2274
2274
|
return r;
|
|
2275
|
-
}),
|
|
2275
|
+
}), T = r(() => g.value.length > 0 && i.level < _i), E = r(() => T.value ? l.value ? m.value : !0 : !1), ee = r(() => m.value ? "chevron-down" : "chevron-right"), D = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), k = n, A = r(() => i.totalChildCount == null ? !1 : i.totalChildCount > g.value.length), te = async () => {
|
|
2276
2276
|
if (h.value) return;
|
|
2277
2277
|
if (!i.handleSeeMore) {
|
|
2278
|
-
|
|
2279
|
-
parentId: i.id,
|
|
2280
|
-
offset: v.value.length
|
|
2281
|
-
});
|
|
2278
|
+
k("see-more", { parentId: i.id });
|
|
2282
2279
|
return;
|
|
2283
2280
|
}
|
|
2284
2281
|
let e = f?.value?.has(i.id) ?? !1;
|
|
2285
2282
|
h.value = !0;
|
|
2286
2283
|
try {
|
|
2287
|
-
let t = await i.handleSeeMore({
|
|
2288
|
-
parentId: i.id,
|
|
2289
|
-
offset: v.value.length
|
|
2290
|
-
});
|
|
2284
|
+
let t = await i.handleSeeMore({ parentId: i.id });
|
|
2291
2285
|
if (Array.isArray(t) && t.length > 0) {
|
|
2292
|
-
let n = new Set(
|
|
2293
|
-
if (r.length === 0)
|
|
2294
|
-
|
|
2295
|
-
return;
|
|
2296
|
-
}
|
|
2297
|
-
let a = new Set(y.value);
|
|
2286
|
+
let n = new Set(g.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2287
|
+
if (r.length === 0) return;
|
|
2288
|
+
let a = new Set(v.value);
|
|
2298
2289
|
for (let e of r) a.add(e.id);
|
|
2299
|
-
if (
|
|
2290
|
+
if (v.value = a, g.value = [...g.value, ...r], e && s?.value) {
|
|
2300
2291
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
2301
2292
|
if (t.length > 0) {
|
|
2302
2293
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
2303
2294
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
2304
2295
|
}
|
|
2305
2296
|
}
|
|
2306
|
-
}
|
|
2297
|
+
}
|
|
2307
2298
|
} finally {
|
|
2308
2299
|
h.value = !1;
|
|
2309
2300
|
}
|
|
2310
|
-
},
|
|
2311
|
-
if (l.value &&
|
|
2312
|
-
|
|
2301
|
+
}, M = (e) => {
|
|
2302
|
+
if (l.value && T.value && e.option.id === i.id && !d.value) {
|
|
2303
|
+
y();
|
|
2313
2304
|
return;
|
|
2314
2305
|
}
|
|
2315
2306
|
if (!s) {
|
|
2316
2307
|
let t = c.value.indexOf(e.option.id);
|
|
2317
2308
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2318
2309
|
}
|
|
2319
|
-
|
|
2320
|
-
},
|
|
2321
|
-
|
|
2310
|
+
k("handle-selected", e);
|
|
2311
|
+
}, ie = (e) => {
|
|
2312
|
+
k("handle-selected", e);
|
|
2322
2313
|
};
|
|
2323
2314
|
return (n, r) => {
|
|
2324
2315
|
let s = re("PvMenuItem", !0);
|
|
2325
|
-
return O(), o(t, null, [u(mi, b(
|
|
2326
|
-
children:
|
|
2316
|
+
return O(), o(t, null, [u(mi, b(C.value, {
|
|
2317
|
+
children: g.value,
|
|
2327
2318
|
menuOptionConfig: e.config,
|
|
2328
2319
|
queryText: e.queryText,
|
|
2329
2320
|
highlightSearchText: e.highlightSearchText,
|
|
2330
|
-
showChevron: I(l) &&
|
|
2331
|
-
chevronIcon:
|
|
2321
|
+
showChevron: I(l) && T.value,
|
|
2322
|
+
chevronIcon: ee.value,
|
|
2332
2323
|
expanded: m.value,
|
|
2333
|
-
onHandleSelected:
|
|
2334
|
-
onToggleExpanded:
|
|
2335
|
-
selected:
|
|
2324
|
+
onHandleSelected: M,
|
|
2325
|
+
onToggleExpanded: y,
|
|
2326
|
+
selected: D(i)
|
|
2336
2327
|
}), null, 16, [
|
|
2337
2328
|
"children",
|
|
2338
2329
|
"menuOptionConfig",
|
|
@@ -2342,13 +2333,13 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
|
|
|
2342
2333
|
"chevronIcon",
|
|
2343
2334
|
"expanded",
|
|
2344
2335
|
"selected"
|
|
2345
|
-
]),
|
|
2336
|
+
]), E.value ? (O(), o("ul", {
|
|
2346
2337
|
key: 0,
|
|
2347
2338
|
role: "list",
|
|
2348
|
-
style: w(
|
|
2349
|
-
}, [(O(!0), o(t, null, ne(
|
|
2339
|
+
style: w(x.value)
|
|
2340
|
+
}, [(O(!0), o(t, null, ne(g.value, (t) => (O(), o("li", {
|
|
2350
2341
|
key: t.id,
|
|
2351
|
-
"data-active":
|
|
2342
|
+
"data-active": D(t) ? "true" : null,
|
|
2352
2343
|
class: S(e.itemClass)
|
|
2353
2344
|
}, [u(s, b({ ref_for: !0 }, t, {
|
|
2354
2345
|
selectedIds: c.value,
|
|
@@ -2357,21 +2348,21 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
|
|
|
2357
2348
|
queryText: e.queryText,
|
|
2358
2349
|
highlightSearchText: e.highlightSearchText,
|
|
2359
2350
|
level: e.level + 1,
|
|
2360
|
-
onHandleSelected:
|
|
2361
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2351
|
+
onHandleSelected: ie,
|
|
2352
|
+
onSeeMore: r[1] ||= (e) => k("see-more", e)
|
|
2362
2353
|
}), null, 16, [
|
|
2363
2354
|
"selectedIds",
|
|
2364
2355
|
"config",
|
|
2365
2356
|
"queryText",
|
|
2366
2357
|
"highlightSearchText",
|
|
2367
2358
|
"level"
|
|
2368
|
-
])], 10, hi))), 128)),
|
|
2359
|
+
])], 10, hi))), 128)), A.value ? (O(), o("li", gi, [u(ei, {
|
|
2369
2360
|
class: "pv-text-brand",
|
|
2370
2361
|
variant: "ghost",
|
|
2371
2362
|
label: "See more",
|
|
2372
2363
|
loading: h.value,
|
|
2373
2364
|
"data-testid": "pv-menu-item-see-more",
|
|
2374
|
-
onClick:
|
|
2365
|
+
onClick: te
|
|
2375
2366
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
2376
2367
|
};
|
|
2377
2368
|
}
|