@turquoisehealth/pit-viper 2.183.0 → 2.183.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.
Files changed (38) hide show
  1. package/claude-plugin/skills/pit-viper/SKILL.md +28 -31
  2. package/package.json +1 -1
  3. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  4. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  9. package/pv-components/dist/vue/base/components/base/PvMenu/cascadeUtils.d.ts +2 -1
  10. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
  11. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +3 -1
  12. package/pv-components/dist/vue/base/pv-components-base.mjs +924 -871
  13. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  14. package/pv-components/dist/vue/base/types.d.ts +6 -4
  15. package/pv-components/dist/vue/visualizations/components/base/PvMenu/cascadeUtils.d.ts +2 -1
  16. package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
  17. package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +3 -1
  18. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +5 -1
  19. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +21 -0
  20. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +33 -17
  21. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +4 -0
  22. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +11 -8
  23. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2287 -1802
  24. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  25. package/pv-components/dist/vue/visualizations/types.d.ts +6 -4
  26. package/pv-components/dist/web/components/pv-menu/pv-menu.js +44 -35
  27. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1016 -963
  28. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +68 -59
  29. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +44 -35
  30. package/pv-components/dist/web/pv-components.iife.js +20 -20
  31. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
  32. package/claude-plugin/skills/pit-viper/references/design-language.md +0 -80
  33. package/claude-plugin/skills/pit-viper/references/design-rules.md +0 -265
  34. package/claude-plugin/skills/pit-viper/references/html-patterns.md +0 -468
  35. package/claude-plugin/skills/pit-viper/references/layout-patterns.md +0 -367
  36. package/claude-plugin/skills/pit-viper/references/patterns-core.md +0 -97
  37. package/claude-plugin/skills/pit-viper/references/theme-guide.md +0 -160
  38. package/claude-plugin/skills/pit-viper/references/vue-guidelines.md +0 -526
@@ -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 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";
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 te, renderSlot as j, 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 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);
1024
+ var te = Ln(W, t, V, r, n, i, e, A);
1025
+ if (te !== !1) return (te === 1 || te === -1) && (A = te === 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
- }, [te(t.$slots, "default", {}, void 0, !0)], 4)) : te(t.$slots, "default", { key: 1 }, void 0, !0)], 12, fr));
1441
+ }, [j(t.$slots, "default", {}, void 0, !0)], 4)) : j(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
- }, j = () => {
2791
+ }, te = () => {
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
- }, [te(r.$slots, "trigger")], 512), r.$slots.content ? (D(), i(n, {
2802
+ }, [j(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
- }, [te(r.$slots, "content")], 4), [[de, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)])), [[ae(Ra), [j, { ignore: E.value }]]]);
2811
+ }, [j(r.$slots, "content")], 4), [[de, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)])), [[ae(Ra), [te, { 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(() => [te(t.$slots, "trigger", {}, () => [s("p", null, N(e.label), 1)])]),
2853
+ trigger: pe(() => [j(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
- }, [te(t.$slots, "content", {}, () => [l(N(e.description), 1)])], 10, qa)]),
2861
+ }, [j(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}`, 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) => {
3089
+ }), O = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${O.value}-${m()?.uid}`, te = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), j = 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": te.value
3104
+ "data-testid": j.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(j.value),
3114
+ class: S(te.value),
3115
3115
  disabled: e.disabled,
3116
3116
  onChange: M
3117
3117
  }, null, 42, mo),
@@ -3190,72 +3190,81 @@ 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(i.children ?? []), v = A(/* @__PURE__ */ new Set());
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(!1), v = A(i.children ?? []), y = A(/* @__PURE__ */ new Set());
3194
3194
  F(() => i.children, (e) => {
3195
3195
  if (!e) {
3196
- g.value = [];
3196
+ v.value = [];
3197
3197
  return;
3198
3198
  }
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];
3199
+ 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));
3200
+ v.value = [...e, ...r], g.value = !1;
3201
3201
  });
3202
- let y = () => {
3202
+ let x = () => {
3203
3203
  m.value = !m.value;
3204
- }, x = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), C = r(() => {
3204
+ }, C = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
3205
3205
  let { level: e, config: t, itemClass: n, ...r } = i;
3206
3206
  return r;
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 () => {
3207
+ }), E = r(() => (v.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < yo), ee = r(() => E.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), j = n, re = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), M = async () => {
3208
3208
  if (h.value) return;
3209
3209
  if (!i.handleSeeMore) {
3210
- k("see-more", { parentId: i.id });
3210
+ j("see-more", {
3211
+ parentId: i.id,
3212
+ offset: v.value.length
3213
+ });
3211
3214
  return;
3212
3215
  }
3213
3216
  let e = f?.value?.has(i.id) ?? !1;
3214
3217
  h.value = !0;
3215
3218
  try {
3216
- let t = await i.handleSeeMore({ parentId: i.id });
3219
+ let t = await i.handleSeeMore({
3220
+ parentId: i.id,
3221
+ offset: v.value.length
3222
+ });
3217
3223
  if (Array.isArray(t) && t.length > 0) {
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);
3224
+ let n = new Set(v.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
3225
+ if (r.length === 0) {
3226
+ g.value = !0;
3227
+ return;
3228
+ }
3229
+ let a = new Set(y.value);
3221
3230
  for (let e of r) a.add(e.id);
3222
- if (v.value = a, g.value = [...g.value, ...r], e && s?.value) {
3231
+ if (y.value = a, v.value = [...v.value, ...r], e && s?.value) {
3223
3232
  let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
3224
3233
  if (t.length > 0) {
3225
3234
  let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
3226
3235
  n.length > 0 && (s.value = [...s.value, ...n]);
3227
3236
  }
3228
3237
  }
3229
- }
3238
+ } else Array.isArray(t) && (g.value = !0);
3230
3239
  } finally {
3231
3240
  h.value = !1;
3232
3241
  }
3233
- }, M = (e) => {
3234
- if (l.value && T.value && e.option.id === i.id && !d.value) {
3235
- y();
3242
+ }, N = (e) => {
3243
+ if (l.value && E.value && e.option.id === i.id && !d.value) {
3244
+ x();
3236
3245
  return;
3237
3246
  }
3238
3247
  if (!s) {
3239
3248
  let t = c.value.indexOf(e.option.id);
3240
3249
  t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
3241
3250
  }
3242
- k("handle-selected", e);
3243
- }, N = (e) => {
3244
- k("handle-selected", e);
3251
+ j("handle-selected", e);
3252
+ }, ie = (e) => {
3253
+ j("handle-selected", e);
3245
3254
  };
3246
3255
  return (n, r) => {
3247
3256
  let s = ne("PvMenuItem", !0);
3248
- return D(), o(t, null, [u(go, b(C.value, {
3249
- children: g.value,
3257
+ return D(), o(t, null, [u(go, b(T.value, {
3258
+ children: v.value,
3250
3259
  menuOptionConfig: e.config,
3251
3260
  queryText: e.queryText,
3252
3261
  highlightSearchText: e.highlightSearchText,
3253
- showChevron: ae(l) && T.value,
3254
- chevronIcon: ee.value,
3262
+ showChevron: ae(l) && E.value,
3263
+ chevronIcon: O.value,
3255
3264
  expanded: m.value,
3256
- onHandleSelected: M,
3257
- onToggleExpanded: y,
3258
- selected: O(i)
3265
+ onHandleSelected: N,
3266
+ onToggleExpanded: x,
3267
+ selected: k(i)
3259
3268
  }), null, 16, [
3260
3269
  "children",
3261
3270
  "menuOptionConfig",
@@ -3265,13 +3274,13 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3265
3274
  "chevronIcon",
3266
3275
  "expanded",
3267
3276
  "selected"
3268
- ]), E.value ? (D(), o("ul", {
3277
+ ]), ee.value ? (D(), o("ul", {
3269
3278
  key: 0,
3270
3279
  role: "list",
3271
- style: w(x.value)
3272
- }, [(D(!0), o(t, null, j(g.value, (t) => (D(), o("li", {
3280
+ style: w(C.value)
3281
+ }, [(D(!0), o(t, null, te(v.value, (t) => (D(), o("li", {
3273
3282
  key: t.id,
3274
- "data-active": O(t) ? "true" : null,
3283
+ "data-active": k(t) ? "true" : null,
3275
3284
  class: S(e.itemClass)
3276
3285
  }, [u(s, b({ ref_for: !0 }, t, {
3277
3286
  selectedIds: c.value,
@@ -3280,21 +3289,21 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3280
3289
  queryText: e.queryText,
3281
3290
  highlightSearchText: e.highlightSearchText,
3282
3291
  level: e.level + 1,
3283
- onHandleSelected: N,
3284
- onSeeMore: r[1] ||= (e) => k("see-more", e)
3292
+ onHandleSelected: ie,
3293
+ onSeeMore: r[1] ||= (e) => j("see-more", e)
3285
3294
  }), null, 16, [
3286
3295
  "selectedIds",
3287
3296
  "config",
3288
3297
  "queryText",
3289
3298
  "highlightSearchText",
3290
3299
  "level"
3291
- ])], 10, _o))), 128)), te.value ? (D(), o("li", vo, [u(to, {
3300
+ ])], 10, _o))), 128)), re.value ? (D(), o("li", vo, [u(to, {
3292
3301
  class: "pv-text-brand",
3293
3302
  variant: "ghost",
3294
3303
  label: "See more",
3295
3304
  loading: h.value,
3296
3305
  "data-testid": "pv-menu-item-see-more",
3297
- onClick: re
3306
+ onClick: M
3298
3307
  }, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
3299
3308
  };
3300
3309
  }
@@ -3443,7 +3452,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3443
3452
  };
3444
3453
  l(s.value, t);
3445
3454
  };
3446
- return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, j(u.value, (e, t) => (D(), i(Do, {
3455
+ return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, te(u.value, (e, t) => (D(), i(Do, {
3447
3456
  key: `${t}-${e.queryText}`,
3448
3457
  variant: p(e),
3449
3458
  label: f(e),
@@ -3574,7 +3583,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3574
3583
  g.value = !1, _.value = !1;
3575
3584
  }
3576
3585
  };
3577
- function te(e) {
3586
+ function j(e) {
3578
3587
  let t = e.target;
3579
3588
  t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
3580
3589
  }
@@ -3588,7 +3597,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3588
3597
  ref: "query-builder-input",
3589
3598
  class: "pv-relative pv-query-builder-input-wrapper",
3590
3599
  onFocus: ne,
3591
- onClick: te
3600
+ onClick: j
3592
3601
  }, [
3593
3602
  e.hideSearchIcon ? a("v-if", !0) : (D(), i(xr, {
3594
3603
  key: 0,
@@ -3638,7 +3647,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3638
3647
  },
3639
3648
  isList: !0
3640
3649
  }, {
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({
3650
+ default: pe(() => [e.optionsLoading ? (D(), o("div", jo, [u(Ya, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, te(ee.value, (e, t) => (D(), i(bo, b({
3642
3651
  key: `${t}-${e.searchText}`,
3643
3652
  ref_for: !0
3644
3653
  }, e, {
@@ -3982,7 +3991,7 @@ var Ms = {
3982
3991
  getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
3983
3992
  let { preset: a, options: o } = t, s, c, l, u, d, f, p;
3984
3993
  if (Z(a) && o.transform !== "strict") {
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 || []];
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) : {}, te = Z(E) ? this._toVariables({ light: E }, o) : {}, j = 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] = [te.declarations ?? "", te.tokens || []], [de, F] = [j.declarations ?? "", j.tokens || []];
3986
3995
  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([
3987
3996
  ...N,
3988
3997
  ...P,
@@ -4016,11 +4025,11 @@ var Ms = {
4016
4025
  "colorScheme",
4017
4026
  "extend",
4018
4027
  "css"
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 || []];
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, te] = [E.declarations ?? "", E.tokens || []];
4020
4029
  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([
4021
4030
  ...D,
4022
4031
  ...k,
4023
- ...j
4032
+ ...te
4024
4033
  ])], l = Wo(p, { dt: Os });
4025
4034
  }
4026
4035
  return {
@@ -4379,7 +4388,7 @@ function Bs(e) {
4379
4388
  }
4380
4389
  var Vs = 0;
4381
4390
  function Hs(e) {
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) {
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, te = function() {}, j = function(t) {
4383
4392
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4384
4393
  if (s) {
4385
4394
  var o = Is(Is({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
@@ -4390,20 +4399,20 @@ function Hs(e) {
4390
4399
  nonce: u
4391
4400
  }), 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) {
4392
4401
  return ee?.(e, { name: c });
4393
- }, C?.(c)), !n.value && (j = F(r, function(e) {
4402
+ }, C?.(c)), !n.value && (te = F(r, function(e) {
4394
4403
  i.value.textContent = e, T?.(c);
4395
4404
  }, { immediate: !0 }), n.value = !0);
4396
4405
  }
4397
4406
  };
4398
- return l && !d && Bs(te), {
4407
+ return l && !d && Bs(j), {
4399
4408
  id: h,
4400
4409
  name: p,
4401
4410
  el: i,
4402
4411
  css: r,
4403
4412
  unload: function() {
4404
- !s || !n.value || (j(), $o(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
4413
+ !s || !n.value || (te(), $o(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
4405
4414
  },
4406
- load: te,
4415
+ load: j,
4407
4416
  isLoaded: k(n)
4408
4417
  };
4409
4418
  }
@@ -2258,72 +2258,81 @@ 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(i.children ?? []), v = j(/* @__PURE__ */ new Set());
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(!1), v = j(i.children ?? []), y = j(/* @__PURE__ */ new Set());
2262
2262
  L(() => i.children, (e) => {
2263
2263
  if (!e) {
2264
- g.value = [];
2264
+ v.value = [];
2265
2265
  return;
2266
2266
  }
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];
2267
+ 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));
2268
+ v.value = [...e, ...r], g.value = !1;
2269
2269
  });
2270
- let y = () => {
2270
+ let x = () => {
2271
2271
  m.value = !m.value;
2272
- }, x = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), C = r(() => {
2272
+ }, C = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
2273
2273
  let { level: e, config: t, itemClass: n, ...r } = i;
2274
2274
  return r;
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 () => {
2275
+ }), E = r(() => (v.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < _i), 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, te = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), M = async () => {
2276
2276
  if (h.value) return;
2277
2277
  if (!i.handleSeeMore) {
2278
- k("see-more", { parentId: i.id });
2278
+ A("see-more", {
2279
+ parentId: i.id,
2280
+ offset: v.value.length
2281
+ });
2279
2282
  return;
2280
2283
  }
2281
2284
  let e = f?.value?.has(i.id) ?? !1;
2282
2285
  h.value = !0;
2283
2286
  try {
2284
- let t = await i.handleSeeMore({ parentId: i.id });
2287
+ let t = await i.handleSeeMore({
2288
+ parentId: i.id,
2289
+ offset: v.value.length
2290
+ });
2285
2291
  if (Array.isArray(t) && t.length > 0) {
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);
2292
+ let n = new Set(v.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
2293
+ if (r.length === 0) {
2294
+ g.value = !0;
2295
+ return;
2296
+ }
2297
+ let a = new Set(y.value);
2289
2298
  for (let e of r) a.add(e.id);
2290
- if (v.value = a, g.value = [...g.value, ...r], e && s?.value) {
2299
+ if (y.value = a, v.value = [...v.value, ...r], e && s?.value) {
2291
2300
  let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
2292
2301
  if (t.length > 0) {
2293
2302
  let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
2294
2303
  n.length > 0 && (s.value = [...s.value, ...n]);
2295
2304
  }
2296
2305
  }
2297
- }
2306
+ } else Array.isArray(t) && (g.value = !0);
2298
2307
  } finally {
2299
2308
  h.value = !1;
2300
2309
  }
2301
- }, M = (e) => {
2302
- if (l.value && T.value && e.option.id === i.id && !d.value) {
2303
- y();
2310
+ }, ie = (e) => {
2311
+ if (l.value && E.value && e.option.id === i.id && !d.value) {
2312
+ x();
2304
2313
  return;
2305
2314
  }
2306
2315
  if (!s) {
2307
2316
  let t = c.value.indexOf(e.option.id);
2308
2317
  t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
2309
2318
  }
2310
- k("handle-selected", e);
2311
- }, ie = (e) => {
2312
- k("handle-selected", e);
2319
+ A("handle-selected", e);
2320
+ }, N = (e) => {
2321
+ A("handle-selected", e);
2313
2322
  };
2314
2323
  return (n, r) => {
2315
2324
  let s = re("PvMenuItem", !0);
2316
- return O(), o(t, null, [u(mi, b(C.value, {
2317
- children: g.value,
2325
+ return O(), o(t, null, [u(mi, b(T.value, {
2326
+ children: v.value,
2318
2327
  menuOptionConfig: e.config,
2319
2328
  queryText: e.queryText,
2320
2329
  highlightSearchText: e.highlightSearchText,
2321
- showChevron: I(l) && T.value,
2322
- chevronIcon: ee.value,
2330
+ showChevron: I(l) && E.value,
2331
+ chevronIcon: D.value,
2323
2332
  expanded: m.value,
2324
- onHandleSelected: M,
2325
- onToggleExpanded: y,
2326
- selected: D(i)
2333
+ onHandleSelected: ie,
2334
+ onToggleExpanded: x,
2335
+ selected: k(i)
2327
2336
  }), null, 16, [
2328
2337
  "children",
2329
2338
  "menuOptionConfig",
@@ -2333,13 +2342,13 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
2333
2342
  "chevronIcon",
2334
2343
  "expanded",
2335
2344
  "selected"
2336
- ]), E.value ? (O(), o("ul", {
2345
+ ]), ee.value ? (O(), o("ul", {
2337
2346
  key: 0,
2338
2347
  role: "list",
2339
- style: w(x.value)
2340
- }, [(O(!0), o(t, null, ne(g.value, (t) => (O(), o("li", {
2348
+ style: w(C.value)
2349
+ }, [(O(!0), o(t, null, ne(v.value, (t) => (O(), o("li", {
2341
2350
  key: t.id,
2342
- "data-active": D(t) ? "true" : null,
2351
+ "data-active": k(t) ? "true" : null,
2343
2352
  class: S(e.itemClass)
2344
2353
  }, [u(s, b({ ref_for: !0 }, t, {
2345
2354
  selectedIds: c.value,
@@ -2348,21 +2357,21 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
2348
2357
  queryText: e.queryText,
2349
2358
  highlightSearchText: e.highlightSearchText,
2350
2359
  level: e.level + 1,
2351
- onHandleSelected: ie,
2352
- onSeeMore: r[1] ||= (e) => k("see-more", e)
2360
+ onHandleSelected: N,
2361
+ onSeeMore: r[1] ||= (e) => A("see-more", e)
2353
2362
  }), null, 16, [
2354
2363
  "selectedIds",
2355
2364
  "config",
2356
2365
  "queryText",
2357
2366
  "highlightSearchText",
2358
2367
  "level"
2359
- ])], 10, hi))), 128)), A.value ? (O(), o("li", gi, [u(ei, {
2368
+ ])], 10, hi))), 128)), te.value ? (O(), o("li", gi, [u(ei, {
2360
2369
  class: "pv-text-brand",
2361
2370
  variant: "ghost",
2362
2371
  label: "See more",
2363
2372
  loading: h.value,
2364
2373
  "data-testid": "pv-menu-item-see-more",
2365
- onClick: te
2374
+ onClick: M
2366
2375
  }, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
2367
2376
  };
2368
2377
  }