@turquoisehealth/pit-viper 2.258.0 → 2.258.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.
Files changed (32) hide show
  1. package/_site/assets/css/pit-viper-a11y-v3.css +13 -12
  2. package/_site/assets/css/pit-viper-a11y.css +13 -12
  3. package/_site/assets/css/pit-viper-consumer.css +13 -12
  4. package/_site/assets/css/pit-viper-v2-scoped.css +10 -12
  5. package/_site/assets/css/pit-viper-v2.css +13 -12
  6. package/_site/assets/css/pit-viper-v3.css +13 -12
  7. package/_site/assets/css/pit-viper.css +13 -12
  8. package/package.json +1 -1
  9. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  10. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
  14. package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModal.vue.d.ts +1 -0
  15. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +1 -0
  16. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
  17. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +12 -4
  18. package/pv-components/dist/vue/base/components/base/PvFilterModal/PvFilterModal.vue.d.ts +1 -0
  19. package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +1 -0
  20. package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
  21. package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +12 -4
  22. package/pv-components/dist/vue/base/pv-components-base.mjs +188 -148
  23. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  24. package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +1 -0
  25. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +1 -0
  26. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
  27. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +12 -4
  28. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +48 -26
  29. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +394 -358
  30. package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +1 -1
  31. package/pv-components/dist/web/pv-components.iife.js +1 -1
  32. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}[class*=pv-status]{&[data-v-f2cf1712]:before,&[data-v-f2cf1712]:after{margin-inline-end:0}}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-select[data-v-a13ab0e8]{padding-top:4px;padding-bottom:4px}summary[data-v-dfa0b416]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-popover[data-v-951d1d02]{z-index:50}.pv-popover-list>li[data-v-951d1d02]:last-child>.pv-label{margin-block-end:0}[data-v-951d1d02] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-92e78cd3]{background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-1bc7f614]{background-image:none;padding-right:2px}[data-v-1bc7f614] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-1bc7f614]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-1bc7f614]{margin-left:auto;display:inline-flex}.pv-filter-modal-rail[data-v-e3f66d03]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-e3f66d03]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-e3f66d03]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-e3f66d03]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}[class*=pv-status]{&[data-v-f2cf1712]:before,&[data-v-f2cf1712]:after{margin-inline-end:0}}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-select[data-v-a13ab0e8]{padding-top:4px;padding-bottom:4px}summary[data-v-dfa0b416]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-popover[data-v-951d1d02]{z-index:50}.pv-popover-list>li[data-v-951d1d02]:last-child>.pv-label{margin-block-end:0}[data-v-951d1d02] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-92e78cd3]{background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.pv-filter-panel-option-row[data-v-b85834dc]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-b85834dc]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-b85834dc]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-b85834dc]{--lines:1}.pv-filter-panel-option-row-right[data-v-b85834dc]{text-align:right;flex:none}.pv-filter-panel-option-row-focus-action[data-v-b85834dc]{opacity:0;pointer-events:none}.pv-filter-panel-option-row:hover .pv-filter-panel-option-row-focus-action[data-v-b85834dc],.pv-filter-panel-option-row:focus-within .pv-filter-panel-option-row-focus-action[data-v-b85834dc],.pv-filter-panel-option-row-focus-action-always-visible[data-v-b85834dc]{opacity:1;pointer-events:auto}summary[data-v-347ad16b]{background-image:none;padding-right:2px}[data-v-347ad16b] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-347ad16b]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-347ad16b]{margin-left:auto;display:inline-flex}.pv-filter-modal-rail[data-v-fb919d6a]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-fb919d6a]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-fb919d6a]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-fb919d6a]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-c4eb41f2]{position:relative}.pv-hover-action-menu__actions[data-v-c4eb41f2]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover>.pv-hover-action-menu__actions[data-v-c4eb41f2],.pv-hover-action-menu:focus-within>.pv-hover-action-menu__actions[data-v-c4eb41f2]{display:flex}.pv-hover-action-menu--top-right>.pv-hover-action-menu__actions[data-v-c4eb41f2]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left>.pv-hover-action-menu__actions[data-v-c4eb41f2]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right>.pv-hover-action-menu__actions[data-v-c4eb41f2]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left>.pv-hover-action-menu__actions[data-v-c4eb41f2]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-c4eb41f2] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-c4eb41f2],.pv-hover-action-menu__button[data-v-c4eb41f2] button{opacity:.7}.pv-hover-action-menu__button[data-v-c4eb41f2]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-c4eb41f2] button:hover:not(:disabled){opacity:1}
2
2
  /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
3
3
  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, defineComponent as d, getCurrentInstance as f, getCurrentScope as p, guardReactiveProps as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as D, onUpdated as O, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDynamicComponent as F, shallowReactive as I, shallowRef as L, toDisplayString as R, toHandlers as z, toValue as B, unref as V, useAttrs as ee, useId as te, useModel as H, useSlots as ne, useTemplateRef as U, vModelCheckbox as W, vModelDynamic as re, vModelRadio as ie, vModelText as ae, vShow as oe, watch as G, watchEffect as se, withCtx as K, withDirectives as q, withKeys as ce, withModifiers as J } from "vue";
4
4
  import { onClickOutside as Y, onKeyStroke as le, useDebounceFn as ue, useElementBounding as de, useElementHover as fe, useElementSize as X, useMutationObserver as Z, useResizeObserver as pe, useToggle as me, useWindowSize as he, watchDebounced as ge } from "@vueuse/core";
@@ -8483,11 +8483,16 @@ var oo = ["title"], so = ["title"], co = { style: {
8483
8483
  type: Boolean,
8484
8484
  default: !1
8485
8485
  },
8486
- indeterminate: {
8486
+ focusActionDisabled: {
8487
8487
  type: Boolean,
8488
8488
  default: !1
8489
8489
  },
8490
+ focusActionLabel: {},
8490
8491
  focusText: { default: "Focus" },
8492
+ indeterminate: {
8493
+ type: Boolean,
8494
+ default: !1
8495
+ },
8491
8496
  isFocused: {
8492
8497
  type: Boolean,
8493
8498
  default: !1
@@ -8511,7 +8516,7 @@ var oo = ["title"], so = ["title"], co = { style: {
8511
8516
  },
8512
8517
  emits: ["focus-value", "toggle-value"],
8513
8518
  setup(e, { emit: t }) {
8514
- let n = e, c = t, u = ne(), d = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), f = r(() => !n.renderer && (d.value || !!u["result-count"])), p = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), m = r(() => ({
8519
+ let n = e, c = t, d = ne(), f = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), p = r(() => n.focusActionLabel ?? (n.isFocused ? `Remove ${n.focusText}` : `Select as ${n.focusText}`)), m = r(() => !n.renderer && (f.value || !!d["result-count"])), h = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), g = r(() => ({
8515
8520
  disabled: n.disabled,
8516
8521
  highlightSearchText: !0,
8517
8522
  id: n.value,
@@ -8525,17 +8530,17 @@ var oo = ["title"], so = ["title"], co = { style: {
8525
8530
  subduedText: n.subduedText,
8526
8531
  text: n.label,
8527
8532
  value: n.value
8528
- })), h = (e) => {
8533
+ })), _ = (e) => {
8529
8534
  n.disabled || c("toggle-value", n.value, e === !0);
8530
- }, g = (e) => {
8531
- h(e.target.checked);
8532
- }, _ = () => {
8533
- n.disabled || c("focus-value", n.value);
8535
+ }, y = (e) => {
8536
+ _(e.target.checked);
8537
+ }, C = () => {
8538
+ n.disabled || n.focusActionDisabled || c("focus-value", n.value);
8534
8539
  };
8535
8540
  return (t, n) => (k(), o("label", {
8536
8541
  class: b(["pv-filter-panel-option-row pv-flex", { "pv-filter-panel-option-row-disabled": e.disabled }]),
8537
8542
  "data-testid": "pv-filter-panel-option-row",
8538
- style: S(p.value)
8543
+ style: S(h.value)
8539
8544
  }, [
8540
8545
  e.control === "radio" ? (k(), o("input", {
8541
8546
  key: 0,
@@ -8545,42 +8550,52 @@ var oo = ["title"], so = ["title"], co = { style: {
8545
8550
  checked: e.selected,
8546
8551
  disabled: e.disabled,
8547
8552
  name: e.name,
8548
- onChange: g
8553
+ onChange: y
8549
8554
  }, null, 40, bu)) : (k(), i(Ks, {
8550
8555
  key: 1,
8551
8556
  ariaLabel: e.ariaLabel || e.label,
8552
8557
  disabled: e.disabled,
8553
8558
  indeterminate: e.indeterminate,
8554
8559
  modelValue: e.selected,
8555
- "onUpdate:modelValue": h
8560
+ "onUpdate:modelValue": _
8556
8561
  }, null, 8, [
8557
8562
  "ariaLabel",
8558
8563
  "disabled",
8559
8564
  "indeterminate",
8560
8565
  "modelValue"
8561
8566
  ])),
8562
- e.renderer ? (k(), i(F(e.renderer), x(v({ key: 2 }, m.value)), null, 16)) : (k(), o("span", xu, [
8567
+ e.renderer ? (k(), i(F(e.renderer), x(v({ key: 2 }, g.value)), null, 16)) : (k(), o("span", xu, [
8563
8568
  s("span", Su, R(e.label), 1),
8564
8569
  e.subduedText ? (k(), o("span", Cu, R(e.subduedText), 1)) : a("", !0),
8565
8570
  e.subText ? (k(), o("span", wu, R(e.subText), 1)) : a("", !0)
8566
8571
  ])),
8567
- f.value ? (k(), o("span", Tu, [N(t.$slots, "result-count", {}, () => [l("(" + R(e.resultCount) + ")", 1)], !0)])) : a("", !0),
8568
- e.showFocusAction ? (k(), i($, {
8572
+ m.value ? (k(), o("span", Tu, [N(t.$slots, "result-count", {}, () => [l("(" + R(e.resultCount) + ")", 1)], !0)])) : a("", !0),
8573
+ e.showFocusAction ? (k(), o("div", {
8569
8574
  key: 5,
8570
- ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
8571
- disabled: e.disabled,
8572
- leftIcon: "focus",
8573
- size: "md",
8574
- variant: e.isFocused ? "primary" : "ghost",
8575
- onClick: J(_, ["stop", "prevent"])
8576
- }, null, 8, [
8577
- "ariaLabel",
8578
- "disabled",
8579
- "variant"
8580
- ])) : a("", !0)
8575
+ class: b(["pv-filter-panel-option-row-focus-action", { "pv-filter-panel-option-row-focus-action-always-visible": e.isFocused }]),
8576
+ "data-testid": "pv-filter-panel-option-row-focus-action"
8577
+ }, [u(dr, {
8578
+ description: p.value,
8579
+ position: "top-right",
8580
+ size: "sm"
8581
+ }, {
8582
+ trigger: K(() => [u($, {
8583
+ ariaLabel: p.value,
8584
+ disabled: e.disabled || e.focusActionDisabled,
8585
+ leftIcon: "focus",
8586
+ size: "md",
8587
+ variant: e.isFocused ? "primary" : "ghost",
8588
+ onClick: J(C, ["stop", "prevent"])
8589
+ }, null, 8, [
8590
+ "ariaLabel",
8591
+ "disabled",
8592
+ "variant"
8593
+ ])]),
8594
+ _: 1
8595
+ }, 8, ["description"])], 2)) : a("", !0)
8581
8596
  ], 6));
8582
8597
  }
8583
- }), [["__scopeId", "data-v-d5f24abf"]]), Du = [
8598
+ }), [["__scopeId", "data-v-b85834dc"]]), Du = [
8584
8599
  "totalCount",
8585
8600
  "total_count",
8586
8601
  "resultCount",
@@ -9031,22 +9046,22 @@ var oo = ["title"], so = ["title"], co = { style: {
9031
9046
  "search-change"
9032
9047
  ],
9033
9048
  setup(e, { emit: n }) {
9034
- let c = e, d = n, f = j(null), p = j({}), m = j(0), h = te(), g = j(c.filter.searchQuery ?? ""), _ = j(Yd), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), b = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => [...c.filter.knownOptions ?? [], ...C.value]), T = r(() => c.filter.type ?? "value"), E = r(() => T.value === "value"), D = r(() => E.value && c.filter.isAggregate === !0), O = r(() => c.filter.aggregateSelectionState ?? []), A = r(() => g.value.trim().toLowerCase()), N = r(() => c.filter.selectedValues ?? []), P = r(() => new Set(N.value)), I = r(() => c.filter.valueLabels?.true ?? "Yes"), L = r(() => c.filter.filterOptionsSortDescription || "Suggested"), z = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), B = r(() => {
9049
+ let c = e, d = n, f = j(null), p = j({}), m = j(0), h = te(), g = j(c.filter.searchQuery ?? ""), _ = j(Yd), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), b = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => c.filter.focusText ?? "Focus"), T = r(() => [...c.filter.knownOptions ?? [], ...C.value]), E = r(() => c.filter.type ?? "value"), D = r(() => E.value === "value"), O = r(() => D.value && c.filter.isAggregate === !0), A = r(() => c.filter.aggregateSelectionState ?? []), N = r(() => g.value.trim().toLowerCase()), P = r(() => c.filter.selectedValues ?? []), I = r(() => new Set(P.value)), L = r(() => c.filter.valueLabels?.true ?? "Yes"), z = r(() => c.filter.filterOptionsSortDescription || "Suggested"), B = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), ee = r(() => {
9035
9050
  let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
9036
9051
  return t && !n ? [{
9037
- label: I.value,
9052
+ label: L.value,
9038
9053
  value: !0
9039
9054
  }] : n && !t ? [{
9040
9055
  label: b.value,
9041
9056
  value: !1
9042
9057
  }] : [{
9043
- label: I.value,
9058
+ label: L.value,
9044
9059
  value: !0
9045
9060
  }, {
9046
9061
  label: b.value,
9047
9062
  value: !1
9048
9063
  }];
9049
- }), ee = (e) => {
9064
+ }), H = (e) => {
9050
9065
  let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
9051
9066
  return [
9052
9067
  e.value,
@@ -9056,148 +9071,154 @@ var oo = ["title"], so = ["title"], co = { style: {
9056
9071
  e.matchedValue,
9057
9072
  e.matchedField
9058
9073
  ].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
9059
- }, H = r(() => T.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : D.value ? Ed(O.value) || void 0 : N.value.length || void 0), ne = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), U = (e, t = 0) => e.flatMap((e) => [
9074
+ }, ne = r(() => E.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : E.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : E.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ? Ed(A.value) || void 0 : P.value.length || void 0), U = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), W = (e, t = 0) => e.flatMap((e) => [
9060
9075
  {
9061
9076
  depth: t,
9062
9077
  kind: "option",
9063
9078
  option: e
9064
9079
  },
9065
- ...e.children?.length ? U(e.children, t + 1) : [],
9066
- ...ne(e) ? [{
9080
+ ...e.children?.length ? W(e.children, t + 1) : [],
9081
+ ...U(e) ? [{
9067
9082
  depth: t + 1,
9068
9083
  kind: "child-load-more",
9069
9084
  parent: e
9070
9085
  }] : []
9071
- ]), W = r(() => {
9072
- let e = U(C.value), t = A.value;
9073
- return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" && ee(e.option).includes(t));
9074
- }), re = r(() => D.value || c.filter.singleSelect ? [] : N.value.map((e) => p.value[e] ?? {
9086
+ ]), re = r(() => {
9087
+ let e = W(C.value), t = N.value;
9088
+ return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" && H(e.option).includes(t));
9089
+ }), ie = r(() => O.value || c.filter.singleSelect ? [] : P.value.map((e) => p.value[e] ?? {
9075
9090
  label: e,
9076
9091
  value: e
9077
- })), ie = j([]), ae = r(() => new Set(ie.value)), oe = r(() => ie.value.map((e) => p.value[e] ?? {
9092
+ })), ae = j([]), oe = r(() => new Set(ae.value)), q = r(() => ae.value.map((e) => p.value[e] ?? {
9078
9093
  label: e,
9079
9094
  value: e
9080
- })), q = r(() => C.value.length > 0 || oe.value.length > 0), ce = r(() => E.value && c.filter.isOpen && c.filter.isLoading === !0 && q.value), J = () => {
9081
- ie.value = D.value || c.filter.singleSelect ? [] : [...N.value];
9095
+ })), ce = r(() => C.value.length > 0 || q.value.length > 0), J = r(() => D.value && c.filter.isOpen && c.filter.isLoading === !0 && ce.value), Y = () => {
9096
+ ae.value = O.value || c.filter.singleSelect ? [] : [...P.value];
9082
9097
  };
9083
- J();
9084
- let Y = r(() => D.value || c.filter.singleSelect ? W.value : W.value.filter((e) => e.kind === "child-load-more" || !ae.value.has(e.option.value))), le = r(() => Y.value.length > _.value), ue = r(() => le.value || c.filter.hasMore), de = r(() => Y.value.slice(0, _.value)), fe = r(() => D.value ? Cd({
9085
- options: w.value,
9086
- state: O.value
9087
- }) : /* @__PURE__ */ new Map()), X = (e) => Iu(e, c.filter.colDef), Z = (e) => Lu(e), pe = (e) => D.value ? fe.value.get(e.value) ?? {
9098
+ Y();
9099
+ let le = r(() => O.value || c.filter.singleSelect ? re.value : re.value.filter((e) => e.kind === "child-load-more" || !oe.value.has(e.option.value))), ue = r(() => le.value.length > _.value), de = r(() => ue.value || c.filter.hasMore), fe = r(() => le.value.slice(0, _.value)), X = r(() => O.value ? Cd({
9100
+ options: T.value,
9101
+ state: A.value
9102
+ }) : /* @__PURE__ */ new Map()), Z = (e) => Iu(e, c.filter.colDef), pe = (e) => Lu(e), me = (e) => O.value ? X.value.get(e.value) ?? {
9088
9103
  indeterminate: !1,
9089
9104
  selected: !1
9090
9105
  } : {
9091
9106
  indeterminate: !1,
9092
- selected: P.value.has(e.value)
9093
- }, me = (e) => pe(e).selected, he = (e) => pe(e).indeterminate, _e = (e) => Wu(e) ?? e.value, ve = (e) => Gu(e, c.filter.key), ye = (e) => {
9094
- let t = ve(e), n = _e(e);
9107
+ selected: I.value.has(e.value)
9108
+ }, he = (e) => me(e).selected, _e = (e) => me(e).indeterminate, ve = (e) => Wu(e) ?? e.value, ye = (e) => Gu(e, c.filter.key), be = (e) => {
9109
+ let t = ye(e), n = ve(e);
9095
9110
  return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
9096
- }, be = (e) => ({
9111
+ }, xe = (e) => {
9112
+ let t = c.filter.focusableFields ?? [];
9113
+ return !t.length || t.includes(ye(e));
9114
+ }, Se = (e) => !xe(e) || be(e) && c.filter.canRemoveFocus === !1, Ce = (e) => {
9115
+ let t = ye(e);
9116
+ return xe(e) ? be(e) && c.filter.canRemoveFocus === !1 ? `${w.value} (required)` : be(e) ? `Remove ${w.value}` : `Select as ${w.value}` : `Group by ${c.filter.focusFieldLabels?.[t] ?? t} to enable ${w.value}`;
9117
+ }, we = (e) => ({
9097
9118
  ...e.menuOption ?? {},
9098
- children: e.children?.map(be),
9119
+ children: e.children?.map(we),
9099
9120
  context: e,
9100
- disabled: z.value || e.isSelectable === !1 || e.menuOption?.disabled,
9121
+ disabled: B.value || e.isSelectable === !1 || e.menuOption?.disabled,
9101
9122
  id: e.value,
9102
- searchText: ee(e),
9103
- secondaryText: Z(e),
9123
+ searchText: H(e),
9124
+ secondaryText: pe(e),
9104
9125
  subText: e.subText,
9105
9126
  subduedText: e.subduedText,
9106
- text: X(e),
9127
+ text: Z(e),
9107
9128
  totalChildCount: e.totalChildCount
9108
- }), xe = r(() => C.value.map(be)), Se = r(() => re.value.map(be)), Ce = r(() => ({
9129
+ }), Te = r(() => C.value.map(we)), Ee = r(() => ie.value.map(we)), De = r(() => ({
9109
9130
  colDef: c.filter.colDef,
9110
- disabled: z.value,
9131
+ disabled: B.value,
9111
9132
  filter: c.filter,
9112
9133
  isLoading: c.filter.isLoading,
9113
9134
  isOpen: c.filter.isOpen,
9114
- options: xe.value,
9135
+ options: Te.value,
9115
9136
  searchInput: g.value,
9116
- selectedItems: Se.value,
9137
+ selectedItems: Ee.value,
9117
9138
  slotContext: {
9118
9139
  colDef: c.filter.colDef,
9119
9140
  rowsLoading: c.filter.isLoading
9120
9141
  }
9121
- })), we = () => {
9122
- z.value || (le.value ? _.value += Yd : c.filter.hasMore && d("load-more", g.value.trim()));
9123
- }, Te = (e) => {
9124
- z.value || d("load-more", g.value.trim(), e.value);
9125
- }, Ee = (e) => {
9142
+ })), Oe = () => {
9143
+ B.value || (ue.value ? _.value += Yd : c.filter.hasMore && d("load-more", g.value.trim()));
9144
+ }, ke = (e) => {
9145
+ B.value || d("load-more", g.value.trim(), e.value);
9146
+ }, Ae = (e) => {
9126
9147
  let t = e.target;
9127
9148
  d("open-change", t.open);
9128
- }, De = (e) => {
9129
- z.value || d("filter-change", {
9149
+ }, je = (e) => {
9150
+ B.value || d("filter-change", {
9130
9151
  type: "boolean",
9131
9152
  value: e
9132
9153
  });
9133
- }, Oe = (e) => {
9134
- z.value || d("filter-change", {
9154
+ }, Me = (e) => {
9155
+ B.value || d("filter-change", {
9135
9156
  type: "exists",
9136
9157
  value: e === !0
9137
9158
  });
9138
- }, ke = (e) => {
9139
- z.value || d("filter-change", {
9159
+ }, Ne = (e) => {
9160
+ B.value || d("filter-change", {
9140
9161
  type: "range",
9141
9162
  value: e
9142
9163
  });
9143
- }, Ae = (e, t) => {
9144
- if (!z.value) {
9145
- if (D.value) {
9164
+ }, Pe = (e, t) => {
9165
+ if (!B.value) {
9166
+ if (O.value) {
9146
9167
  d("filter-change", {
9147
9168
  type: "aggregate-selection",
9148
9169
  value: xd({
9149
9170
  checked: t,
9150
9171
  option: e,
9151
- options: w.value,
9152
- state: O.value
9172
+ options: T.value,
9173
+ state: A.value
9153
9174
  })
9154
9175
  });
9155
9176
  return;
9156
9177
  }
9157
9178
  d("filter-change", {
9158
9179
  checked: t,
9159
- field: ve(e),
9180
+ field: ye(e),
9160
9181
  type: "value",
9161
- value: _e(e)
9182
+ value: ve(e)
9162
9183
  });
9163
9184
  }
9164
- }, je = (e) => {
9165
- z.value || d("focus-change", ve(e), _e(e), e);
9166
- }, Me = (e, t) => {
9167
- z.value || d("filter-change", {
9185
+ }, Fe = (e) => {
9186
+ B.value || Se(e) || d("focus-change", ye(e), ve(e), e);
9187
+ }, Ie = (e, t) => {
9188
+ B.value || d("filter-change", {
9168
9189
  field: e,
9169
9190
  type: "boolean",
9170
9191
  value: t ? null : !0
9171
9192
  });
9172
- }, Ne = () => {
9173
- z.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
9193
+ }, Le = () => {
9194
+ B.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
9174
9195
  };
9175
9196
  G([g, () => c.filter.key], () => {
9176
9197
  _.value = Yd;
9177
9198
  });
9178
- let Pe = () => {
9179
- let e = Ku(w.value), t = { ...p.value }, n = new Map(Object.entries(t));
9199
+ let Re = () => {
9200
+ let e = Ku(T.value), t = { ...p.value }, n = new Map(Object.entries(t));
9180
9201
  for (let t of e) n.delete(t.value), n.set(t.value, t);
9181
9202
  p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Xd)));
9182
9203
  };
9183
- G(w, () => {
9184
- c.filter.isOpen && Pe();
9204
+ G(T, () => {
9205
+ c.filter.isOpen && Re();
9185
9206
  }, { immediate: !0 });
9186
- let Fe = () => {
9207
+ let Be = () => {
9187
9208
  !c.filter.isOpen || !f.value || (m.value = Math.max(m.value, f.value.offsetHeight));
9188
9209
  };
9189
9210
  return G(() => c.filter.isLoading === !0, (e) => {
9190
- e ? Fe() : m.value = 0;
9211
+ e ? Be() : m.value = 0;
9191
9212
  }), G(C, () => {
9192
- c.filter.isLoading && Fe();
9213
+ c.filter.isLoading && Be();
9193
9214
  }), G(() => c.filter.isOpen, (e) => {
9194
- e ? (Pe(), J()) : (p.value = {}, m.value = 0);
9215
+ e ? (Re(), Y()) : (p.value = {}, m.value = 0);
9195
9216
  }), se(() => {
9196
- if (!c.filter.isOpen || D.value || c.filter.singleSelect) return;
9197
- let e = new Set(de.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = N.value.filter((t) => !ae.value.has(t) && !e.has(t));
9198
- t.length && (ie.value = [...ie.value, ...t]);
9217
+ if (!c.filter.isOpen || O.value || c.filter.singleSelect) return;
9218
+ let e = new Set(fe.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = P.value.filter((t) => !oe.value.has(t) && !e.has(t));
9219
+ t.length && (ae.value = [...ae.value, ...t]);
9199
9220
  }), ge(g, (e) => {
9200
- if (!E.value || c.filter.disabled === !0) return;
9221
+ if (!D.value || c.filter.disabled === !0) return;
9201
9222
  let t = e.trim();
9202
9223
  t !== (c.filter.searchQuery ?? "").trim() && d("search-change", t);
9203
9224
  }, {
@@ -9207,7 +9228,7 @@ var oo = ["title"], so = ["title"], co = { style: {
9207
9228
  class: "pv-accordion",
9208
9229
  "data-testid": "pv-filter-panel-accordion",
9209
9230
  open: e.filter.isOpen,
9210
- onToggle: Ee
9231
+ onToggle: Ae
9211
9232
  }, [s("summary", Od, [
9212
9233
  u(Q, {
9213
9234
  "aria-hidden": "true",
@@ -9215,13 +9236,13 @@ var oo = ["title"], so = ["title"], co = { style: {
9215
9236
  name: e.filter.isOpen ? "chevron-down" : "chevron-right"
9216
9237
  }, null, 8, ["name"]),
9217
9238
  s("span", null, R(e.filter.label), 1),
9218
- H.value ? (k(), i(Ye, {
9239
+ ne.value ? (k(), i(Ye, {
9219
9240
  key: 0,
9220
- value: H.value,
9241
+ value: ne.value,
9221
9242
  size: "sm",
9222
9243
  variant: "secondary"
9223
9244
  }, null, 8, ["value"])) : a("", !0),
9224
- ce.value ? (k(), o("span", kd, [u(ze, { size: "sm" }), s("span", Ad, R(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
9245
+ J.value ? (k(), o("span", kd, [u(ze, { size: "sm" }), s("span", Ad, R(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
9225
9246
  ]), s("div", {
9226
9247
  ref_key: "filterContent",
9227
9248
  ref: f,
@@ -9231,15 +9252,15 @@ var oo = ["title"], so = ["title"], co = { style: {
9231
9252
  "--flex-align": "stretch",
9232
9253
  minHeight: m.value ? `${m.value}px` : void 0
9233
9254
  })
9234
- }, [E.value ? (k(), o(t, { key: 0 }, [
9255
+ }, [D.value ? (k(), o(t, { key: 0 }, [
9235
9256
  e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (k(), o("div", Md, [
9236
9257
  e.filter.filterGroupOptions?.length ? (k(), o("div", Nd, [(k(!0), o(t, null, M(e.filter.filterGroupOptions, (e) => (k(), i($, {
9237
9258
  key: e.field,
9238
- disabled: z.value,
9259
+ disabled: B.value,
9239
9260
  label: e.label,
9240
9261
  size: "md",
9241
9262
  variant: e.isActive ? "primary" : "secondary",
9242
- onClick: (t) => Me(e.field, e.isActive)
9263
+ onClick: (t) => Ie(e.field, e.isActive)
9243
9264
  }, null, 8, [
9244
9265
  "disabled",
9245
9266
  "label",
@@ -9248,13 +9269,13 @@ var oo = ["title"], so = ["title"], co = { style: {
9248
9269
  ]))), 128))])) : a("", !0),
9249
9270
  e.filter.displayPreferencesIcon ? (k(), o("div", Pd, [u($, {
9250
9271
  ariaLabel: "Open preferences",
9251
- disabled: z.value,
9272
+ disabled: B.value,
9252
9273
  leftIcon: "sliders-horizontal",
9253
9274
  size: "md",
9254
9275
  variant: "ghost",
9255
- onClick: Ne
9276
+ onClick: Le
9256
9277
  }, null, 8, ["disabled"])])) : a("", !0),
9257
- e.filter.filterHeaderRenderer ? (k(), i(F(e.filter.filterHeaderRenderer), x(v({ key: 2 }, Ce.value)), null, 16)) : a("", !0)
9278
+ e.filter.filterHeaderRenderer ? (k(), i(F(e.filter.filterHeaderRenderer), x(v({ key: 2 }, De.value)), null, 16)) : a("", !0)
9258
9279
  ])) : a("", !0),
9259
9280
  e.filter.hideSearch ? a("", !0) : (k(), i(vi, {
9260
9281
  key: 1,
@@ -9268,28 +9289,32 @@ var oo = ["title"], so = ["title"], co = { style: {
9268
9289
  "disabled",
9269
9290
  "placeholder"
9270
9291
  ])),
9271
- oe.value.length ? (k(), o("div", Fd, [(k(!0), o(t, null, M(oe.value, (t) => (k(), i(Eu, {
9292
+ q.value.length ? (k(), o("div", Fd, [(k(!0), o(t, null, M(q.value, (t) => (k(), i(Eu, {
9272
9293
  key: t.value,
9273
9294
  control: e.filter.singleSelect ? "radio" : "checkbox",
9274
- disabled: z.value || t.isSelectable === !1,
9295
+ disabled: B.value || t.isSelectable === !1,
9296
+ "focus-action-disabled": Se(t),
9297
+ "focus-action-label": Ce(t),
9275
9298
  "focus-text": e.filter.focusText,
9276
- "is-focused": ye(t),
9277
- indeterminate: he(t),
9278
- label: X(t),
9299
+ "is-focused": be(t),
9300
+ indeterminate: _e(t),
9301
+ label: Z(t),
9279
9302
  name: V(h),
9280
9303
  "query-text": g.value,
9281
9304
  renderer: e.filter.filterOptionsRenderer,
9282
- "result-count": Z(t),
9283
- selected: me(t),
9305
+ "result-count": pe(t),
9306
+ selected: he(t),
9284
9307
  "show-focus-action": e.filter.isFocusable,
9285
9308
  "sub-text": t.subText,
9286
9309
  "subdued-text": t.subduedText,
9287
9310
  value: t.value,
9288
- onFocusValue: () => je(t),
9289
- onToggleValue: (e, n) => Ae(t, n)
9311
+ onFocusValue: () => Fe(t),
9312
+ onToggleValue: (e, n) => Pe(t, n)
9290
9313
  }, null, 8, [
9291
9314
  "control",
9292
9315
  "disabled",
9316
+ "focus-action-disabled",
9317
+ "focus-action-label",
9293
9318
  "focus-text",
9294
9319
  "is-focused",
9295
9320
  "indeterminate",
@@ -9306,10 +9331,10 @@ var oo = ["title"], so = ["title"], co = { style: {
9306
9331
  "onFocusValue",
9307
9332
  "onToggleValue"
9308
9333
  ]))), 128))])) : a("", !0),
9309
- e.filter.isLoading && !q.value ? (k(), o("div", Id, [u(ze, { size: "sm" }), e.filter.loadingText ? (k(), o("span", Ld, R(e.filter.loadingText), 1)) : a("", !0)])) : (k(), o(t, { key: 4 }, [
9310
- !A.value && !C.value.length && !oe.value.length && !ue.value ? (k(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, Ce.value, { "empty-reason": "no-values" }), null, 16)) : (k(), o("p", Rd, "No values available."))], 64)) : !W.value.length && !oe.value.length && !ue.value ? (k(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, Ce.value, { "empty-reason": "no-matches" }), null, 16)) : (k(), o("p", zd, "No matching values."))], 64)) : a("", !0),
9311
- Y.value.length || ue.value ? (k(), o("div", Bd, [
9312
- Y.value.length && !e.filter.hideOptionsSortDescription ? (k(), o("div", Vd, [e.filter.filterOptionsSortTooltip ? (k(), i(dr, {
9334
+ e.filter.isLoading && !ce.value ? (k(), o("div", Id, [u(ze, { size: "sm" }), e.filter.loadingText ? (k(), o("span", Ld, R(e.filter.loadingText), 1)) : a("", !0)])) : (k(), o(t, { key: 4 }, [
9335
+ !N.value && !C.value.length && !q.value.length && !de.value ? (k(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, De.value, { "empty-reason": "no-values" }), null, 16)) : (k(), o("p", Rd, "No values available."))], 64)) : !re.value.length && !q.value.length && !de.value ? (k(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, De.value, { "empty-reason": "no-matches" }), null, 16)) : (k(), o("p", zd, "No matching values."))], 64)) : a("", !0),
9336
+ le.value.length || de.value ? (k(), o("div", Bd, [
9337
+ le.value.length && !e.filter.hideOptionsSortDescription ? (k(), o("div", Vd, [e.filter.filterOptionsSortTooltip ? (k(), i(dr, {
9313
9338
  key: 0,
9314
9339
  variant: "dark",
9315
9340
  disableInteractive: !0,
@@ -9318,34 +9343,38 @@ var oo = ["title"], so = ["title"], co = { style: {
9318
9343
  "use-teleport": !0,
9319
9344
  style: { "--max-width": "200px" }
9320
9345
  }, {
9321
- trigger: K(() => [s("p", Hd, R(L.value), 1)]),
9346
+ trigger: K(() => [s("p", Hd, R(z.value), 1)]),
9322
9347
  content: K(() => [l(R(e.filter.filterOptionsSortTooltip), 1)]),
9323
9348
  _: 1
9324
- })) : (k(), o("p", Ud, R(L.value), 1))])) : a("", !0),
9325
- (k(!0), o(t, null, M(de.value, (n) => (k(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (k(), i(Eu, {
9349
+ })) : (k(), o("p", Ud, R(z.value), 1))])) : a("", !0),
9350
+ (k(!0), o(t, null, M(fe.value, (n) => (k(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (k(), i(Eu, {
9326
9351
  key: 0,
9327
9352
  control: e.filter.singleSelect ? "radio" : "checkbox",
9328
9353
  depth: n.depth,
9329
- disabled: z.value || n.option.isSelectable === !1,
9354
+ disabled: B.value || n.option.isSelectable === !1,
9355
+ "focus-action-disabled": Se(n.option),
9356
+ "focus-action-label": Ce(n.option),
9330
9357
  "focus-text": e.filter.focusText,
9331
- "is-focused": ye(n.option),
9332
- indeterminate: he(n.option),
9333
- label: X(n.option),
9358
+ "is-focused": be(n.option),
9359
+ indeterminate: _e(n.option),
9360
+ label: Z(n.option),
9334
9361
  name: V(h),
9335
9362
  "query-text": g.value,
9336
9363
  renderer: e.filter.filterOptionsRenderer,
9337
- "result-count": Z(n.option),
9338
- selected: me(n.option),
9364
+ "result-count": pe(n.option),
9365
+ selected: he(n.option),
9339
9366
  "show-focus-action": e.filter.isFocusable,
9340
9367
  "sub-text": n.option.subText,
9341
9368
  "subdued-text": n.option.subduedText,
9342
9369
  value: n.option.value,
9343
- onFocusValue: () => je(n.option),
9344
- onToggleValue: (e, t) => Ae(n.option, t)
9370
+ onFocusValue: () => Fe(n.option),
9371
+ onToggleValue: (e, t) => Pe(n.option, t)
9345
9372
  }, null, 8, [
9346
9373
  "control",
9347
9374
  "depth",
9348
9375
  "disabled",
9376
+ "focus-action-disabled",
9377
+ "focus-action-label",
9349
9378
  "focus-text",
9350
9379
  "is-focused",
9351
9380
  "indeterminate",
@@ -9364,37 +9393,37 @@ var oo = ["title"], so = ["title"], co = { style: {
9364
9393
  ])) : (k(), i($, {
9365
9394
  key: 1,
9366
9395
  class: "pv-text-brand",
9367
- disabled: z.value || e.filter.isLoadingMore,
9396
+ disabled: B.value || e.filter.isLoadingMore,
9368
9397
  label: "See more",
9369
9398
  style: S({
9370
9399
  marginLeft: `${n.depth * 1.25}rem`,
9371
9400
  width: "fit-content"
9372
9401
  }),
9373
9402
  variant: "ghost",
9374
- onClick: (e) => Te(n.parent)
9403
+ onClick: (e) => ke(n.parent)
9375
9404
  }, null, 8, [
9376
9405
  "disabled",
9377
9406
  "style",
9378
9407
  "onClick"
9379
9408
  ]))], 64))), 128)),
9380
- ue.value ? (k(), i($, {
9409
+ de.value ? (k(), i($, {
9381
9410
  key: 1,
9382
9411
  class: "pv-text-brand",
9383
- disabled: z.value || e.filter.isLoadingMore,
9412
+ disabled: B.value || e.filter.isLoadingMore,
9384
9413
  label: "See more",
9385
9414
  style: { width: "fit-content" },
9386
9415
  variant: "ghost",
9387
- onClick: we
9416
+ onClick: Oe
9388
9417
  }, null, 8, ["disabled"])) : a("", !0)
9389
9418
  ])) : a("", !0),
9390
- e.filter.filterFooterRenderer ? (k(), i(F(e.filter.filterFooterRenderer), x(v({ key: 3 }, Ce.value)), null, 16)) : a("", !0)
9419
+ e.filter.filterFooterRenderer ? (k(), i(F(e.filter.filterFooterRenderer), x(v({ key: 3 }, De.value)), null, 16)) : a("", !0)
9391
9420
  ], 64))
9392
- ], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (k(), i(yu, {
9421
+ ], 64)) : E.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (k(), i(yu, {
9393
9422
  key: 1,
9394
9423
  mode: "dual",
9395
9424
  rangeValue: e.filter.rangeValue,
9396
9425
  "data-type": e.filter.dataType,
9397
- disabled: z.value,
9426
+ disabled: B.value,
9398
9427
  "input-icon": e.filter.rangeInputIcon,
9399
9428
  label: e.filter.label,
9400
9429
  max: e.filter.rangeMax,
@@ -9403,7 +9432,7 @@ var oo = ["title"], so = ["title"], co = { style: {
9403
9432
  "slider-step": e.filter.rangeSliderStep,
9404
9433
  step: e.filter.rangeStep,
9405
9434
  "value-decimals": e.filter.valueDecimals,
9406
- "onUpdate:rangeValue": ke
9435
+ "onUpdate:rangeValue": Ne
9407
9436
  }, null, 8, [
9408
9437
  "rangeValue",
9409
9438
  "data-type",
@@ -9416,12 +9445,12 @@ var oo = ["title"], so = ["title"], co = { style: {
9416
9445
  "slider-step",
9417
9446
  "step",
9418
9447
  "value-decimals"
9419
- ])) : T.value === "range" ? (k(), o("p", Wd, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (k(), o("div", Gd, [s("div", Kd, [(k(!0), o(t, null, M(B.value, (t) => (k(), i($, {
9448
+ ])) : E.value === "range" ? (k(), o("p", Wd, " Range filters require minimum and maximum bounds. ")) : E.value === "boolean" ? (k(), o("div", Gd, [s("div", Kd, [(k(!0), o(t, null, M(ee.value, (t) => (k(), i($, {
9420
9449
  key: String(t.value),
9421
- disabled: z.value,
9450
+ disabled: B.value,
9422
9451
  label: t.label,
9423
9452
  variant: e.filter.booleanValue === t.value ? "primary" : "secondary",
9424
- onClick: (n) => De(e.filter.booleanValue === t.value ? null : t.value)
9453
+ onClick: (n) => je(e.filter.booleanValue === t.value ? null : t.value)
9425
9454
  }, null, 8, [
9426
9455
  "disabled",
9427
9456
  "label",
@@ -9430,17 +9459,17 @@ var oo = ["title"], so = ["title"], co = { style: {
9430
9459
  ]))), 128))]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (k(), i($, {
9431
9460
  key: 0,
9432
9461
  class: "pv-text-brand",
9433
- disabled: z.value,
9462
+ disabled: B.value,
9434
9463
  label: "Clear",
9435
9464
  variant: "ghost",
9436
- onClick: r[1] ||= (e) => De(null)
9437
- }, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (k(), o("label", qd, [u(Ks, {
9438
- disabled: z.value,
9465
+ onClick: r[1] ||= (e) => je(null)
9466
+ }, null, 8, ["disabled"])) : a("", !0)])) : E.value === "exists" ? (k(), o("label", qd, [u(Ks, {
9467
+ disabled: B.value,
9439
9468
  modelValue: e.filter.existsValue ?? !1,
9440
- "onUpdate:modelValue": Oe
9469
+ "onUpdate:modelValue": Me
9441
9470
  }, null, 8, ["disabled", "modelValue"]), s("span", Jd, R(y.value), 1)])) : a("", !0)], 12, jd)], 40, Dd));
9442
9471
  }
9443
- }), [["__scopeId", "data-v-1bc7f614"]]), Qd = {
9472
+ }), [["__scopeId", "data-v-347ad16b"]]), Qd = {
9444
9473
  class: "pv-flex-vertical pv-inset-square-8",
9445
9474
  "data-testid": "pv-filter-panel-applied-section",
9446
9475
  style: {
@@ -10280,6 +10309,7 @@ function bp(e, t, n) {
10280
10309
  }));
10281
10310
  }, de = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) => Ku(de(e)?.knownOptions ?? []).find((r) => r.value === n || qu(r, t, n, e)), X = r(() => e.colDefs.filter(F).map((t) => {
10282
10311
  let n = O(t), r = D(t), i = M(t), a = le(L(n), t), o = le(H(n), t), s = {
10312
+ canRemoveFocus: e.canRemoveFocus,
10283
10313
  category: N(t),
10284
10314
  clientFiltering: r.filterOptionsClientFiltering !== !1,
10285
10315
  colDef: t,
@@ -10298,6 +10328,8 @@ function bp(e, t, n) {
10298
10328
  filterSectionDefs: r.filterSectionDefs,
10299
10329
  filterOptionsSortDescription: r.filterOptionsSortDescription,
10300
10330
  filterOptionsSortTooltip: r.filterOptionsSortTooltip,
10331
+ focusFieldLabels: Object.fromEntries(W(t).map((e) => [e, ce(e)])),
10332
+ focusableFields: e.focusableFields,
10301
10333
  focusText: e.focusText,
10302
10334
  hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
10303
10335
  hideSearch: r.filterPanelHideSearch,
@@ -10697,6 +10729,10 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
10697
10729
  type: Boolean,
10698
10730
  default: void 0
10699
10731
  },
10732
+ canRemoveFocus: {
10733
+ type: Boolean,
10734
+ default: !0
10735
+ },
10700
10736
  cancelLabel: { default: "Cancel" },
10701
10737
  categoryOrder: {},
10702
10738
  collapsedFilterDisplayLabel: { default: "Additional Filters" },
@@ -11050,6 +11086,10 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
11050
11086
  type: Boolean,
11051
11087
  default: void 0
11052
11088
  },
11089
+ canRemoveFocus: {
11090
+ type: Boolean,
11091
+ default: !0
11092
+ },
11053
11093
  cancelLabel: { default: "Cancel" },
11054
11094
  categoryOrder: {},
11055
11095
  collapsedFilterDisplayLabel: {},
@@ -11415,7 +11455,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
11415
11455
  _: 3
11416
11456
  }, 8, ["modelValue"]));
11417
11457
  }
11418
- }), [["__scopeId", "data-v-e3f66d03"]]), $p = ["tabindex"], em = {
11458
+ }), [["__scopeId", "data-v-fb919d6a"]]), $p = ["tabindex"], em = {
11419
11459
  key: 0,
11420
11460
  class: "pv-hover-action-menu__actions"
11421
11461
  }, tm = { class: "pv-hover-action-menu__action-group" }, nm = /* @__PURE__ */ Je(/* @__PURE__ */ d({
@@ -11476,7 +11516,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
11476
11516
  _: 1
11477
11517
  }, 8, ["variant"])])) : a("", !0)], 10, $p));
11478
11518
  }
11479
- }), [["__scopeId", "data-v-6325cd25"]]), rm = () => {
11519
+ }), [["__scopeId", "data-v-c4eb41f2"]]), rm = () => {
11480
11520
  let e = (e, n) => {
11481
11521
  let i = e || { queryTerms: [] }, a = n.queryTerm || {};
11482
11522
  return t(n) && !r(e, n) && i.queryTerms.push(a), i;