@turquoisehealth/pit-viper 2.204.0 → 2.205.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/pv-components-base.mjs +253 -249
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1226 -1204
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +18 -14
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +18 -14
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +463 -459
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +826 -822
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}.pv-split-button[data-v-3689aaf0]{--flex-gap:0}[data-v-3689aaf0] .pv-split-button__action{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}[data-v-3689aaf0] .pv-split-button__menu-trigger{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;position:relative}[data-v-3689aaf0] .pv-split-button__menu-content>*{justify-content:flex-start;width:100%}[data-v-3689aaf0] .pv-split-button__menu-trigger:before{content:"";background-color:var(--color-border,#e3e7ea);pointer-events:none;width:1px;height:50%;min-height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)translate(-150%)}[class*=pv-status]{&[data-v-0324bf60]:before,&[data-v-0324bf60]:after{margin-inline-end:0}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-a93608b0]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-a93608b0]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-a93608b0]:hover,&[data-v-a93608b0]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-a93608b0]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-a93608b0]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-a93608b0]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-a93608b0]{pointer-events:auto;color:inherit}.dots-button[data-v-6c36dca2]{color:#4b595c;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-06cc192f]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-06cc192f]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-drop-zone[data-v-ecab1929]{min-height:0}.tree-item-continued[data-v-ecab1929]{position:relative}.tree-item-continued[data-v-ecab1929]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.tree-item-continued .tree-component-nested-middle-symbol[data-v-ecab1929]:before{display:none}.tree-component-end-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-end-symbol[data-v-ecab1929]:before,.tree-component-end-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute}.tree-component-end-symbol[data-v-ecab1929]:before{width:1px;height:14px;top:-6px;left:8px;transform:translate(-50%)}.tree-component-end-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:8px;left:8px}.tree-component-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-middle-symbol[data-v-ecab1929]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:28px;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-nested-middle-symbol[data-v-ecab1929]:before,.tree-component-nested-middle-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute;left:50%}.tree-component-nested-middle-symbol[data-v-ecab1929]:before{width:1px;height:28px;top:-4px;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:50%;transform:translateY(-50%)}.pv-tree-drop-zone[data-v-8e33078d],.pv-tree-drop-zone[data-v-7589558e]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-7e00be1a]{--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-7e00be1a]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-7e00be1a]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-7e00be1a]{--lines:1}.pv-filter-panel-option-row-right[data-v-7e00be1a]{text-align:right;flex:none}summary[data-v-014fc511]{background-image:none;padding-right:2px}[data-v-014fc511] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-014fc511]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-4a3b2634]{height:100%;max-height:100vh}.pv-filter-panel-actions[data-v-4a3b2634],.pv-filter-panel-header[data-v-4a3b2634],.pv-filter-panel-suggestion-tags[data-v-4a3b2634]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-4a3b2634],.pv-filter-panel-filters-view[data-v-4a3b2634]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-4a3b2634]{scrollbar-color:var(--color-border,#c1c1c1) transparent;scrollbar-gutter:stable;scrollbar-width:thin;flex:auto;min-height:0;overflow-y:auto}.pv-filter-panel-body[data-v-4a3b2634]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-4a3b2634]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-4a3b2634]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-4a3b2634]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-4a3b2634],.pv-filter-panel-footer[data-v-4a3b2634],.pv-filter-panel-suggestions[data-v-4a3b2634]{padding:12px}.pv-filter-panel-filter-list[data-v-4a3b2634]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-4a3b2634]{--flex-justify:flex-end;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-4a3b2634]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-4a3b2634]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-4a3b2634]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-4a3b2634]{margin:0}.pv-filter-panel-suggestions[data-v-4a3b2634]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-4a3b2634]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-f6b1c07d]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-f6b1c07d]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-f6b1c07d]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-f6b1c07d]{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}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}
|
|
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
|
-
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, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, onUpdated as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as ee, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, unref as P, useAttrs as
|
|
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, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, onUpdated as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as ee, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, unref as P, useAttrs as te, useId as F, useModel as I, useSlots as L, useTemplateRef as R, vModelCheckbox as z, vModelDynamic as ne, vModelRadio as re, vModelText as B, vShow as V, watch as H, watchEffect as U, withCtx as W, withDirectives as G, withKeys as ie, withModifiers as K } from "vue";
|
|
4
4
|
import { onClickOutside as ae, onKeyStroke as oe, useDebounceFn as q, useElementBounding as se, useElementHover as ce, useToggle as le, watchDebounced as ue } from "@vueuse/core";
|
|
5
5
|
import { vOnClickOutside as de } from "@vueuse/components";
|
|
6
6
|
import { useSortable as J } from "@vueuse/integrations/useSortable.mjs";
|
|
@@ -985,7 +985,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
985
985
|
}),
|
|
986
986
|
emits: ["update:modelValue"],
|
|
987
987
|
setup(e) {
|
|
988
|
-
let t = e, c =
|
|
988
|
+
let t = e, c = I(e, "modelValue"), l = O(null), u = O(null), d = O(null), f = ce(l), p = ce(d), m = {
|
|
989
989
|
"top-center": "top",
|
|
990
990
|
"bottom-center": "bottom",
|
|
991
991
|
"center-left": "left",
|
|
@@ -1005,13 +1005,13 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1005
1005
|
strategy: t.positioningStrategy,
|
|
1006
1006
|
middleware: h
|
|
1007
1007
|
});
|
|
1008
|
-
|
|
1008
|
+
H(c, (e) => {
|
|
1009
1009
|
e && u.value && d.value && _();
|
|
1010
1010
|
});
|
|
1011
1011
|
let v = se(u), y = q(() => {
|
|
1012
1012
|
c.value && _();
|
|
1013
1013
|
}, 5);
|
|
1014
|
-
|
|
1014
|
+
H([
|
|
1015
1015
|
v.top,
|
|
1016
1016
|
v.left,
|
|
1017
1017
|
v.width,
|
|
@@ -1038,7 +1038,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1038
1038
|
}, M = () => {
|
|
1039
1039
|
t.disableClickOutsideToClose || D(!1);
|
|
1040
1040
|
};
|
|
1041
|
-
return
|
|
1041
|
+
return H(ee, (e) => {
|
|
1042
1042
|
t.showOnHover && D(e);
|
|
1043
1043
|
}), w(() => {
|
|
1044
1044
|
T();
|
|
@@ -1055,7 +1055,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1055
1055
|
ref_key: "floating",
|
|
1056
1056
|
ref: d,
|
|
1057
1057
|
style: x(b.value)
|
|
1058
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1058
|
+
}, [A(r.$slots, "content")], 4), [[V, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[P(de), [M, { ignore: k.value }]]]);
|
|
1059
1059
|
}
|
|
1060
1060
|
}), Nn = ["data-variant"], Pn = /* @__PURE__ */ d({
|
|
1061
1061
|
__name: "PvTooltipV2",
|
|
@@ -1193,7 +1193,7 @@ function Hn(e, t) {
|
|
|
1193
1193
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1194
1194
|
}
|
|
1195
1195
|
function Un(e, t = {}) {
|
|
1196
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Me(), l = i ??
|
|
1196
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Me(), l = i ?? L(), u = r(() => c.value || !l ? !1 : !!l[e === "default" || e === "" ? "default" : e]), d = O(!1), f = null, p = null, m = () => {
|
|
1197
1197
|
f &&= (f.disconnect(), null), p &&= (p.removeEventListener("slotchange", h), null);
|
|
1198
1198
|
}, h = () => {
|
|
1199
1199
|
if (!c.value) {
|
|
@@ -1227,7 +1227,7 @@ function Un(e, t = {}) {
|
|
|
1227
1227
|
characterData: !0
|
|
1228
1228
|
}));
|
|
1229
1229
|
};
|
|
1230
|
-
return C(g), S(m),
|
|
1230
|
+
return C(g), S(m), H(() => P(n), () => {
|
|
1231
1231
|
c.value && g();
|
|
1232
1232
|
}), {
|
|
1233
1233
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -1544,7 +1544,7 @@ var Wn = [
|
|
|
1544
1544
|
},
|
|
1545
1545
|
emits: ["list-order-updated"],
|
|
1546
1546
|
setup(e, { expose: t, emit: n }) {
|
|
1547
|
-
let r = O(null), i =
|
|
1547
|
+
let r = O(null), i = R("popoverList"), a = e, s = n;
|
|
1548
1548
|
return a.isSortable && a.isList && J(i, [], {
|
|
1549
1549
|
animation: 150,
|
|
1550
1550
|
onUpdate: () => {
|
|
@@ -1613,7 +1613,7 @@ var Wn = [
|
|
|
1613
1613
|
}, C = () => {
|
|
1614
1614
|
p.value = !1;
|
|
1615
1615
|
};
|
|
1616
|
-
t({ closeDropdown: C }),
|
|
1616
|
+
t({ closeDropdown: C }), H(p, (e) => {
|
|
1617
1617
|
e ? v(() => {
|
|
1618
1618
|
b(), f("dropdown-open");
|
|
1619
1619
|
}) : f("dropdown-closed");
|
|
@@ -1685,7 +1685,7 @@ var Wn = [
|
|
|
1685
1685
|
}),
|
|
1686
1686
|
emits: ["update:modelValue"],
|
|
1687
1687
|
setup(e) {
|
|
1688
|
-
let n =
|
|
1688
|
+
let n = I(e, "modelValue"), r = (e) => {
|
|
1689
1689
|
e.disabled || (n.value = e.value);
|
|
1690
1690
|
};
|
|
1691
1691
|
return (a, s) => (E(), o("div", { class: y(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(E(!0), o(t, null, k(e.options, (e) => (E(), i(Pn, {
|
|
@@ -1761,7 +1761,7 @@ var Wn = [
|
|
|
1761
1761
|
"pv-icon": n.value,
|
|
1762
1762
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1763
1763
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1764
|
-
return
|
|
1764
|
+
return H(u, () => {
|
|
1765
1765
|
n.value = !0;
|
|
1766
1766
|
}), (e, t) => (E(), o("div", hr, [n.value ? (E(), o("div", {
|
|
1767
1767
|
key: 0,
|
|
@@ -1810,8 +1810,8 @@ var Wn = [
|
|
|
1810
1810
|
}),
|
|
1811
1811
|
emits: ["update:modelValue"],
|
|
1812
1812
|
setup(e) {
|
|
1813
|
-
let t = e, n =
|
|
1814
|
-
|
|
1813
|
+
let t = e, n = R("dialog"), r = I(e, "modelValue");
|
|
1814
|
+
H(() => r.value, () => {
|
|
1815
1815
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1816
1816
|
});
|
|
1817
1817
|
let i = () => {
|
|
@@ -2030,7 +2030,7 @@ var Wn = [
|
|
|
2030
2030
|
}),
|
|
2031
2031
|
emits: /* @__PURE__ */ g(["summary-mouseenter", "summary-mouseleave"], ["update:modelValue"]),
|
|
2032
2032
|
setup(e) {
|
|
2033
|
-
let n = e, c =
|
|
2033
|
+
let n = e, c = I(e, "modelValue");
|
|
2034
2034
|
n.defaultOpen !== void 0 && (c.value = n.defaultOpen);
|
|
2035
2035
|
let l = (e) => {
|
|
2036
2036
|
c.value = e.target.open;
|
|
@@ -2087,7 +2087,7 @@ var Wn = [
|
|
|
2087
2087
|
}),
|
|
2088
2088
|
emits: ["update:modelValue"],
|
|
2089
2089
|
setup(e, { expose: t }) {
|
|
2090
|
-
let n = e, i =
|
|
2090
|
+
let n = e, i = R("search-input"), c = I(e, "modelValue"), l = r(() => ({
|
|
2091
2091
|
"pv-input-search": !0,
|
|
2092
2092
|
"pv-full-width": !0,
|
|
2093
2093
|
"pv-input-padded-end": !0
|
|
@@ -2105,7 +2105,7 @@ var Wn = [
|
|
|
2105
2105
|
disabled: e.disabled,
|
|
2106
2106
|
class: y(l.value),
|
|
2107
2107
|
placeholder: e.placeholder
|
|
2108
|
-
}, null, 10, Vr), [[
|
|
2108
|
+
}, null, 10, Vr), [[B, c.value]]), e.displayShortcut ? (E(), o("kbd", Hr, N(Ur))) : a("", !0)]));
|
|
2109
2109
|
}
|
|
2110
2110
|
}), Gr = /* @__PURE__ */ d({
|
|
2111
2111
|
__name: "PvDatePicker",
|
|
@@ -2138,7 +2138,7 @@ var Wn = [
|
|
|
2138
2138
|
}),
|
|
2139
2139
|
emits: ["update:modelValue"],
|
|
2140
2140
|
setup(e) {
|
|
2141
|
-
let t =
|
|
2141
|
+
let t = I(e, "modelValue"), n = e;
|
|
2142
2142
|
return (r, a) => (E(), i(P(fe), _({
|
|
2143
2143
|
modelValue: t.value,
|
|
2144
2144
|
"onUpdate:modelValue": a[0] ||= (e) => t.value = e
|
|
@@ -2236,7 +2236,7 @@ var Kr = () => ({
|
|
|
2236
2236
|
}),
|
|
2237
2237
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
2238
2238
|
setup(e, { emit: n }) {
|
|
2239
|
-
let r = e, i = n, c =
|
|
2239
|
+
let r = e, i = n, c = R("sidePanel"), l = I(e, "searchInput"), d = I(e, "modelValue");
|
|
2240
2240
|
C(() => {
|
|
2241
2241
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
2242
2242
|
});
|
|
@@ -2247,7 +2247,7 @@ var Kr = () => ({
|
|
|
2247
2247
|
}, p = () => {
|
|
2248
2248
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
2249
2249
|
};
|
|
2250
|
-
return
|
|
2250
|
+
return H(() => d.value, () => {
|
|
2251
2251
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
2252
2252
|
}), oe("Escape", () => {
|
|
2253
2253
|
c.value && d.value && p();
|
|
@@ -2289,7 +2289,7 @@ var Kr = () => ({
|
|
|
2289
2289
|
}),
|
|
2290
2290
|
emits: ["update:modelValue"],
|
|
2291
2291
|
setup(e) {
|
|
2292
|
-
let n =
|
|
2292
|
+
let n = I(e, "modelValue"), r = (e) => {
|
|
2293
2293
|
n.value = e;
|
|
2294
2294
|
}, c = (e) => e.label === n.value ? !0 : null;
|
|
2295
2295
|
return (n, u) => (E(), o("ul", {
|
|
@@ -2643,7 +2643,7 @@ var ki = {
|
|
|
2643
2643
|
};
|
|
2644
2644
|
return C(() => {
|
|
2645
2645
|
p();
|
|
2646
|
-
}),
|
|
2646
|
+
}), H(() => n.queryText, () => {
|
|
2647
2647
|
p();
|
|
2648
2648
|
}), (n, r) => (E(), o(t, null, [
|
|
2649
2649
|
e.avatar ? (E(), i(pi, {
|
|
@@ -2726,7 +2726,7 @@ var ki = {
|
|
|
2726
2726
|
}),
|
|
2727
2727
|
emits: ["update:modelValue"],
|
|
2728
2728
|
setup(e) {
|
|
2729
|
-
let t = e.id ??
|
|
2729
|
+
let t = e.id ?? F(), n = I(e, "modelValue");
|
|
2730
2730
|
return (r, i) => (E(), o("label", {
|
|
2731
2731
|
for: P(t),
|
|
2732
2732
|
class: y(["pv-label pv-switch pv-label-hover", {
|
|
@@ -2741,7 +2741,7 @@ var ki = {
|
|
|
2741
2741
|
type: "checkbox",
|
|
2742
2742
|
role: "switch",
|
|
2743
2743
|
id: P(t)
|
|
2744
|
-
}, null, 8, Ii), [[
|
|
2744
|
+
}, null, 8, Ii), [[z, n.value]])], 10, Pi));
|
|
2745
2745
|
}
|
|
2746
2746
|
}), [["__scopeId", "data-v-73e6d2b2"]]), Ri = /* @__PURE__ */ d({
|
|
2747
2747
|
__name: "PvMenuItemAction",
|
|
@@ -2805,7 +2805,7 @@ var ki = {
|
|
|
2805
2805
|
},
|
|
2806
2806
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2807
2807
|
setup(e, { emit: t }) {
|
|
2808
|
-
let n = e, c =
|
|
2808
|
+
let n = e, c = R("inputRef"), l = m(zi, void 0), d = m(Bi, O(!1)), p = m(Vi, void 0), h = m(Hi, void 0), g = r(() => {
|
|
2809
2809
|
if (!d.value || !Ci(n)) return [];
|
|
2810
2810
|
let e = n.children ? wi(n.children) : [];
|
|
2811
2811
|
if (p?.value) {
|
|
@@ -2943,8 +2943,12 @@ var ki = {
|
|
|
2943
2943
|
}),
|
|
2944
2944
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2945
2945
|
setup(e, { emit: n }) {
|
|
2946
|
-
let i = e, s = m(zi, void 0), c =
|
|
2947
|
-
|
|
2946
|
+
let i = e, s = m(zi, void 0), c = I(e, "selectedIds"), l = m(Gi, O(!1)), d = m(Wi, O(!1)), f = m(Hi, void 0), p = m(Ui, void 0), h = O(i.defaultExpanded ?? !1);
|
|
2947
|
+
H(() => i.defaultExpanded, (e) => {
|
|
2948
|
+
e && (h.value = !0);
|
|
2949
|
+
});
|
|
2950
|
+
let g = O(!1), v = O(!1), b = O(i.children ?? []), S = O(/* @__PURE__ */ new Set());
|
|
2951
|
+
H(() => i.children, (e) => {
|
|
2948
2952
|
if (!e) {
|
|
2949
2953
|
b.value = [];
|
|
2950
2954
|
return;
|
|
@@ -2960,10 +2964,10 @@ var ki = {
|
|
|
2960
2964
|
}), D = r(() => Ci({
|
|
2961
2965
|
...i,
|
|
2962
2966
|
children: b.value
|
|
2963
|
-
}) && i.level < Qi), A = r(() => D.value ? l.value ? h.value
|
|
2967
|
+
}) && i.level < Qi), A = r(() => D.value ? l.value ? h.value : !0 : !1), j = r(() => h.value ? "chevron-down" : "chevron-right"), M = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), N = n, te = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), F = async () => {
|
|
2964
2968
|
if (g.value) return;
|
|
2965
2969
|
if (!i.handleSeeMore) {
|
|
2966
|
-
|
|
2970
|
+
N("see-more", {
|
|
2967
2971
|
parentId: i.id,
|
|
2968
2972
|
offset: b.value.length
|
|
2969
2973
|
});
|
|
@@ -2995,7 +2999,7 @@ var ki = {
|
|
|
2995
2999
|
} finally {
|
|
2996
3000
|
g.value = !1;
|
|
2997
3001
|
}
|
|
2998
|
-
},
|
|
3002
|
+
}, L = (e) => {
|
|
2999
3003
|
if (l.value && D.value && e.option.id === i.id && !d.value) {
|
|
3000
3004
|
C();
|
|
3001
3005
|
return;
|
|
@@ -3004,9 +3008,9 @@ var ki = {
|
|
|
3004
3008
|
let t = c.value.indexOf(e.option.id);
|
|
3005
3009
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
3006
3010
|
}
|
|
3007
|
-
|
|
3008
|
-
},
|
|
3009
|
-
|
|
3011
|
+
N("handle-selected", e);
|
|
3012
|
+
}, R = (e) => {
|
|
3013
|
+
N("handle-selected", e);
|
|
3010
3014
|
};
|
|
3011
3015
|
return (n, r) => {
|
|
3012
3016
|
let s = ee("PvMenuItem", !0);
|
|
@@ -3018,7 +3022,7 @@ var ki = {
|
|
|
3018
3022
|
showChevron: P(l) && D.value,
|
|
3019
3023
|
chevronIcon: j.value,
|
|
3020
3024
|
expanded: h.value,
|
|
3021
|
-
onHandleSelected:
|
|
3025
|
+
onHandleSelected: L,
|
|
3022
3026
|
onToggleExpanded: C,
|
|
3023
3027
|
selected: M(i)
|
|
3024
3028
|
}), null, 16, [
|
|
@@ -3034,7 +3038,7 @@ var ki = {
|
|
|
3034
3038
|
key: 0,
|
|
3035
3039
|
role: "list",
|
|
3036
3040
|
style: x(w.value)
|
|
3037
|
-
}, [(E(!0), o(t, null, k(b.value, (t) =>
|
|
3041
|
+
}, [(E(!0), o(t, null, k(b.value, (t) => (E(), o("li", {
|
|
3038
3042
|
key: t.id,
|
|
3039
3043
|
"data-active": M(t) ? "true" : null,
|
|
3040
3044
|
class: y(e.itemClass)
|
|
@@ -3046,8 +3050,8 @@ var ki = {
|
|
|
3046
3050
|
queryText: e.queryText,
|
|
3047
3051
|
highlightSearchText: e.highlightSearchText,
|
|
3048
3052
|
level: e.level + 1,
|
|
3049
|
-
onHandleSelected:
|
|
3050
|
-
onSeeMore: r[1] ||= (e) =>
|
|
3053
|
+
onHandleSelected: R,
|
|
3054
|
+
onSeeMore: r[1] ||= (e) => N("see-more", e)
|
|
3051
3055
|
}), null, 16, [
|
|
3052
3056
|
"disabled",
|
|
3053
3057
|
"selectedIds",
|
|
@@ -3055,13 +3059,13 @@ var ki = {
|
|
|
3055
3059
|
"queryText",
|
|
3056
3060
|
"highlightSearchText",
|
|
3057
3061
|
"level"
|
|
3058
|
-
])], 10, Xi))
|
|
3062
|
+
])], 10, Xi))), 128)), te.value ? (E(), o("li", Zi, [u(Q, {
|
|
3059
3063
|
class: "pv-text-brand",
|
|
3060
3064
|
variant: "ghost",
|
|
3061
3065
|
label: "See more",
|
|
3062
3066
|
loading: g.value,
|
|
3063
3067
|
"data-testid": "pv-menu-item-see-more",
|
|
3064
|
-
onClick:
|
|
3068
|
+
onClick: F
|
|
3065
3069
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
3066
3070
|
};
|
|
3067
3071
|
}
|
|
@@ -3088,10 +3092,10 @@ var ki = {
|
|
|
3088
3092
|
}),
|
|
3089
3093
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
3090
3094
|
setup(e, { emit: n }) {
|
|
3091
|
-
let i = e, s = n, c =
|
|
3092
|
-
|
|
3095
|
+
let i = e, s = n, c = I(e, "selectedItems"), l = M(c.value);
|
|
3096
|
+
H(c, (e) => {
|
|
3093
3097
|
l.value = e;
|
|
3094
|
-
}),
|
|
3098
|
+
}), H(l, (e) => {
|
|
3095
3099
|
e !== c.value && (c.value = e);
|
|
3096
3100
|
}), D(zi, l), D(Bi, r(() => !!i.enableCascadeSelection));
|
|
3097
3101
|
let d = m(Vi, void 0), f = m(Wi, O(!1)), p = m(Hi, void 0), h = m(Ui, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
@@ -3148,7 +3152,7 @@ var ki = {
|
|
|
3148
3152
|
"config",
|
|
3149
3153
|
"itemClass",
|
|
3150
3154
|
"queryText"
|
|
3151
|
-
])], 10, ta)), [[
|
|
3155
|
+
])], 10, ta)), [[V, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (E(), o("li", na, [u(Q, {
|
|
3152
3156
|
class: "pv-text-brand",
|
|
3153
3157
|
variant: "ghost",
|
|
3154
3158
|
label: "See more",
|
|
@@ -3301,26 +3305,26 @@ var ki = {
|
|
|
3301
3305
|
state: "deselected"
|
|
3302
3306
|
}))), t.push(r);
|
|
3303
3307
|
}
|
|
3304
|
-
for (let n of
|
|
3308
|
+
for (let n of U.value) e.has(n.id) || t.push({
|
|
3305
3309
|
id: n.id,
|
|
3306
3310
|
state: "selected"
|
|
3307
3311
|
});
|
|
3308
3312
|
return t;
|
|
3309
3313
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
3310
3314
|
let e = c.additionalCounter ?? 0;
|
|
3311
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
3312
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
3313
|
-
let t = new Set(
|
|
3315
|
+
if (c.enableCascadeSelection && c.countSelectedParents && L.value?.length) return Di(L.value) + e;
|
|
3316
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return U.value.length + e;
|
|
3317
|
+
let t = new Set(U.value.map((e) => e.id));
|
|
3314
3318
|
return Ei(c.options, t) + e;
|
|
3315
|
-
}), T = r(() =>
|
|
3319
|
+
}), T = r(() => U.value.length > 0 ? !0 : c.enableCascadeSelection && L.value?.length ? L.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3316
3320
|
g("see-more", e ?? {});
|
|
3317
|
-
}, ee =
|
|
3318
|
-
|
|
3321
|
+
}, ee = R("searchInputRef"), [j, te] = le(c.defaultOpen), F = I(e, "modelValue"), L = I(e, "selectionState"), z = I(e, "searchInput"), ne = r(() => c.menuActionsVariant === "cancel-confirm"), re = (e) => {
|
|
3322
|
+
U.value = e, ne.value || (F.value = e, L.value = S());
|
|
3323
|
+
}, B = () => {
|
|
3324
|
+
ne.value && (F.value = U.value, L.value = S());
|
|
3319
3325
|
}, V = () => {
|
|
3320
|
-
|
|
3321
|
-
},
|
|
3322
|
-
te.value && (re.value = I.value);
|
|
3323
|
-
}, re = M(I.value), G = (e) => d.value.get(e), ie = (e) => {
|
|
3326
|
+
ne.value && (U.value = F.value);
|
|
3327
|
+
}, U = M(F.value), G = (e) => d.value.get(e), ie = (e) => {
|
|
3324
3328
|
if (!c.enableCascadeSelection || !e) return;
|
|
3325
3329
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
3326
3330
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -3338,37 +3342,37 @@ var ki = {
|
|
|
3338
3342
|
}
|
|
3339
3343
|
a(G(r.id), r.id);
|
|
3340
3344
|
}
|
|
3341
|
-
f.value = t, m.value = n,
|
|
3345
|
+
f.value = t, m.value = n, U.value = r;
|
|
3342
3346
|
}, K = r({
|
|
3343
|
-
get: () =>
|
|
3347
|
+
get: () => U.value,
|
|
3344
3348
|
set: (e) => {
|
|
3345
|
-
c.readOnly ||
|
|
3349
|
+
c.readOnly || re(e);
|
|
3346
3350
|
}
|
|
3347
3351
|
}), ae = () => {
|
|
3348
|
-
|
|
3352
|
+
z.value = "", j.value = !1;
|
|
3349
3353
|
}, q = r(() => {
|
|
3350
3354
|
let e = c.size === "lg" ? 24 : 30;
|
|
3351
3355
|
return c.overlayTrigger ? -e : void 0;
|
|
3352
3356
|
});
|
|
3353
|
-
|
|
3354
|
-
if (c.enableCascadeSelection &&
|
|
3355
|
-
ie(
|
|
3357
|
+
H(() => F.value, (e) => {
|
|
3358
|
+
if (c.enableCascadeSelection && L.value?.length && e.length === 0) {
|
|
3359
|
+
ie(L.value);
|
|
3356
3360
|
return;
|
|
3357
3361
|
}
|
|
3358
|
-
|
|
3359
|
-
}),
|
|
3360
|
-
ie(
|
|
3362
|
+
U.value = e;
|
|
3363
|
+
}), H(() => [L.value, c.options], () => {
|
|
3364
|
+
ie(L.value);
|
|
3361
3365
|
}, {
|
|
3362
3366
|
deep: !0,
|
|
3363
3367
|
immediate: !0
|
|
3364
|
-
}),
|
|
3365
|
-
e ? (
|
|
3368
|
+
}), H(j, (e) => {
|
|
3369
|
+
e ? (V(), v(() => {
|
|
3366
3370
|
c.overlayTrigger && !c.disableSearchInput && ee.value?.input?.focus(), g("dropdown-open");
|
|
3367
|
-
})) : (
|
|
3371
|
+
})) : (V(), g("dropdown-closed"));
|
|
3368
3372
|
});
|
|
3369
3373
|
let se = r(() => {
|
|
3370
|
-
if (
|
|
3371
|
-
let e =
|
|
3374
|
+
if (z.value === "") return c.options;
|
|
3375
|
+
let e = z.value.toLocaleLowerCase();
|
|
3372
3376
|
return c.enableCascadeSelection ? Oi(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3373
3377
|
}), ce = () => {
|
|
3374
3378
|
if (c.enableCascadeSelection) {
|
|
@@ -3377,13 +3381,13 @@ var ki = {
|
|
|
3377
3381
|
};
|
|
3378
3382
|
t(se.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3379
3383
|
}
|
|
3380
|
-
|
|
3384
|
+
re(c.enableCascadeSelection ? wi(se.value) : se.value);
|
|
3381
3385
|
}, ue = () => {
|
|
3382
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
3386
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), re([]);
|
|
3383
3387
|
}, de = () => {
|
|
3384
|
-
H(), ae();
|
|
3385
|
-
}, J = () => {
|
|
3386
3388
|
V(), ae();
|
|
3389
|
+
}, J = () => {
|
|
3390
|
+
B(), ae();
|
|
3387
3391
|
}, fe = r(() => {
|
|
3388
3392
|
if (!c.groupings) return;
|
|
3389
3393
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3396,14 +3400,14 @@ var ki = {
|
|
|
3396
3400
|
}
|
|
3397
3401
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
3398
3402
|
return Array.from(e.entries());
|
|
3399
|
-
}), Y = r(() => c.groupings &&
|
|
3403
|
+
}), Y = r(() => c.groupings && z.value === ""), pe = r(() => ({
|
|
3400
3404
|
...c,
|
|
3401
|
-
selectedItems:
|
|
3402
|
-
searchInput:
|
|
3405
|
+
selectedItems: F.value,
|
|
3406
|
+
searchInput: z.value,
|
|
3403
3407
|
slotContext: c.slotContext,
|
|
3404
3408
|
isOpen: j.value,
|
|
3405
3409
|
isLoading: c.isLoading
|
|
3406
|
-
})), me =
|
|
3410
|
+
})), me = R("popoverContentRef"), he = r(() => {
|
|
3407
3411
|
let e = me.value?.getRootNode();
|
|
3408
3412
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3409
3413
|
}), { present: ge } = Un("header", { host: he }), { present: _e } = Un("no-results", { host: he }), { present: ve } = Un("footer", { host: he });
|
|
@@ -3428,9 +3432,9 @@ var ki = {
|
|
|
3428
3432
|
open: P(j),
|
|
3429
3433
|
"counter-value": w.value,
|
|
3430
3434
|
"counter-style": e.counterStyle,
|
|
3431
|
-
"selected-items":
|
|
3435
|
+
"selected-items": U.value,
|
|
3432
3436
|
onHandleClear: ue,
|
|
3433
|
-
onHandleToggleDropdown: r[0] ||= (e) => P(
|
|
3437
|
+
onHandleToggleDropdown: r[0] ||= (e) => P(te)()
|
|
3434
3438
|
}, null, 8, [
|
|
3435
3439
|
"variant",
|
|
3436
3440
|
"size",
|
|
@@ -3459,8 +3463,8 @@ var ki = {
|
|
|
3459
3463
|
}, [
|
|
3460
3464
|
e.disableSearchInput ? a("", !0) : (E(), o("div", ia, [u(Wr, {
|
|
3461
3465
|
ref: "searchInputRef",
|
|
3462
|
-
"model-value":
|
|
3463
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
3466
|
+
"model-value": z.value,
|
|
3467
|
+
"onUpdate:modelValue": r[1] ||= (e) => z.value = e,
|
|
3464
3468
|
class: "pv-stack-4",
|
|
3465
3469
|
placeholder: e.searchPlaceholder,
|
|
3466
3470
|
disabled: e.readOnly
|
|
@@ -3477,7 +3481,7 @@ var ki = {
|
|
|
3477
3481
|
"onUpdate:selectedItems": r[2] ||= (e) => K.value = e,
|
|
3478
3482
|
options: i,
|
|
3479
3483
|
config: l.value,
|
|
3480
|
-
queryText: e.highlightSearchText ?
|
|
3484
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
3481
3485
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
3482
3486
|
itemClass: "pv-stack-4",
|
|
3483
3487
|
isLoading: e.isLoading,
|
|
@@ -3505,7 +3509,7 @@ var ki = {
|
|
|
3505
3509
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
3506
3510
|
options: se.value,
|
|
3507
3511
|
config: l.value,
|
|
3508
|
-
queryText: e.highlightSearchText ?
|
|
3512
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
3509
3513
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3510
3514
|
itemClass: "pv-stack-4",
|
|
3511
3515
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -3589,8 +3593,8 @@ var ki = {
|
|
|
3589
3593
|
action: n.optionsAction,
|
|
3590
3594
|
variant: n.optionsVariant,
|
|
3591
3595
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3592
|
-
})), l = t, [d] = le(n.defaultOpen), f =
|
|
3593
|
-
|
|
3596
|
+
})), l = t, [d] = le(n.defaultOpen), f = I(e, "modelValue"), p = I(e, "searchInput");
|
|
3597
|
+
H(d, (e) => {
|
|
3594
3598
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3595
3599
|
});
|
|
3596
3600
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
@@ -3747,7 +3751,7 @@ var ki = {
|
|
|
3747
3751
|
}),
|
|
3748
3752
|
emits: ["update:modelValue"],
|
|
3749
3753
|
setup(e) {
|
|
3750
|
-
let { getPaginations: n } = ma({ variant: e.variant }), r =
|
|
3754
|
+
let { getPaginations: n } = ma({ variant: e.variant }), r = I(e, "modelValue");
|
|
3751
3755
|
return (i, a) => (E(), o("ol", {
|
|
3752
3756
|
role: "list",
|
|
3753
3757
|
class: "pv-pagination",
|
|
@@ -3850,7 +3854,7 @@ var ki = {
|
|
|
3850
3854
|
}),
|
|
3851
3855
|
emits: ["update:modelValue"],
|
|
3852
3856
|
setup(e) {
|
|
3853
|
-
let t =
|
|
3857
|
+
let t = R("inputRef"), n = {
|
|
3854
3858
|
h1: "ghost-input-h1",
|
|
3855
3859
|
h2: "ghost-input-h2",
|
|
3856
3860
|
h3: "ghost-input-h3",
|
|
@@ -3868,12 +3872,12 @@ var ki = {
|
|
|
3868
3872
|
"text-md": "text-medium",
|
|
3869
3873
|
"text-lg": "text-large",
|
|
3870
3874
|
caption: "caption"
|
|
3871
|
-
}, c = e, l =
|
|
3875
|
+
}, c = e, l = I(e, "modelValue"), u = O(0), d = () => {
|
|
3872
3876
|
t.value?.focus();
|
|
3873
3877
|
};
|
|
3874
3878
|
C(() => {
|
|
3875
3879
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
3876
|
-
}),
|
|
3880
|
+
}), H(() => l.value, () => {
|
|
3877
3881
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
3878
3882
|
});
|
|
3879
3883
|
let f = (e) => {
|
|
@@ -3899,7 +3903,7 @@ var ki = {
|
|
|
3899
3903
|
placeholder: e.placeholder,
|
|
3900
3904
|
disabled: e.disabled,
|
|
3901
3905
|
name: n[e.variant]
|
|
3902
|
-
}), null, 16, ka), [[
|
|
3906
|
+
}), null, 16, ka), [[B, l.value]]),
|
|
3903
3907
|
e.showEditIcon ? (E(), i(Q, {
|
|
3904
3908
|
key: 0,
|
|
3905
3909
|
"left-icon": "edit",
|
|
@@ -4023,7 +4027,7 @@ var ki = {
|
|
|
4023
4027
|
}),
|
|
4024
4028
|
emits: ["update:modelValue"],
|
|
4025
4029
|
setup(e) {
|
|
4026
|
-
let t = e, n =
|
|
4030
|
+
let t = e, n = I(e, "modelValue"), c = {
|
|
4027
4031
|
secondary: "tertiary",
|
|
4028
4032
|
tertiary: "tertiary",
|
|
4029
4033
|
ghost: "ghost"
|
|
@@ -4049,7 +4053,7 @@ var ki = {
|
|
|
4049
4053
|
value: e.value,
|
|
4050
4054
|
name: e.name,
|
|
4051
4055
|
disabled: e.disabled
|
|
4052
|
-
}, null, 8, Wa), [[
|
|
4056
|
+
}, null, 8, Wa), [[ne, n.value]]),
|
|
4053
4057
|
e.leftIcon ? (E(), i(X, {
|
|
4054
4058
|
key: 0,
|
|
4055
4059
|
name: e.leftIcon
|
|
@@ -4085,7 +4089,7 @@ var ki = {
|
|
|
4085
4089
|
}),
|
|
4086
4090
|
emits: ["update:modelValue"],
|
|
4087
4091
|
setup(e) {
|
|
4088
|
-
let n = e, r =
|
|
4092
|
+
let n = e, r = I(e, "modelValue"), c = O(`toggle-group-${Math.random().toString(36).substr(2, 9)}`), l = (e) => {
|
|
4089
4093
|
if (!e.disabled) {
|
|
4090
4094
|
if (r.value?.value === e.value) {
|
|
4091
4095
|
n.allowDeselect && (r.value = null);
|
|
@@ -4133,7 +4137,7 @@ var ki = {
|
|
|
4133
4137
|
}),
|
|
4134
4138
|
emits: ["update:modelValue"],
|
|
4135
4139
|
setup(e) {
|
|
4136
|
-
let t =
|
|
4140
|
+
let t = I(e, "modelValue");
|
|
4137
4141
|
return (n, r) => G((E(), o("input", {
|
|
4138
4142
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
4139
4143
|
class: "pv-checkbox",
|
|
@@ -4142,7 +4146,7 @@ var ki = {
|
|
|
4142
4146
|
"aria-label": e.ariaLabel,
|
|
4143
4147
|
disabled: e.disabled,
|
|
4144
4148
|
indeterminate: e.indeterminate
|
|
4145
|
-
}, null, 8, Za)), [[
|
|
4149
|
+
}, null, 8, Za)), [[z, t.value]]);
|
|
4146
4150
|
}
|
|
4147
4151
|
}), $a = ["aria-label", "aria-labelledby"], eo = ["id"], to = [
|
|
4148
4152
|
"name",
|
|
@@ -4170,7 +4174,7 @@ var ki = {
|
|
|
4170
4174
|
}),
|
|
4171
4175
|
emits: ["update:modelValue"],
|
|
4172
4176
|
setup(e) {
|
|
4173
|
-
let n = e, i =
|
|
4177
|
+
let n = e, i = I(e, "modelValue"), c = F(), u = F(), d = r(() => n.name ?? c), f = r(() => n.orientation === "vertical" ? { "--flex-align": "flex-start" } : {});
|
|
4174
4178
|
return (n, r) => (E(), o("div", {
|
|
4175
4179
|
role: "radiogroup",
|
|
4176
4180
|
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
@@ -4192,7 +4196,7 @@ var ki = {
|
|
|
4192
4196
|
name: d.value,
|
|
4193
4197
|
value: t.value,
|
|
4194
4198
|
disabled: e.disabled || t.disabled
|
|
4195
|
-
}, null, 8, to), [[
|
|
4199
|
+
}, null, 8, to), [[re, i.value]]), l(" " + N(t.label), 1)]))), 128))], 6)], 8, $a));
|
|
4196
4200
|
}
|
|
4197
4201
|
}), ro = /* @__PURE__ */ d({
|
|
4198
4202
|
__name: "PvSprite",
|
|
@@ -4273,7 +4277,7 @@ var ki = {
|
|
|
4273
4277
|
}),
|
|
4274
4278
|
emits: ["update:modelValue"],
|
|
4275
4279
|
setup(e) {
|
|
4276
|
-
let n = e, c =
|
|
4280
|
+
let n = e, c = I(e, "modelValue"), l = r(() => n.inputIcon ? { "--inset-size": "8px 12px 6px 36px" } : {});
|
|
4277
4281
|
return (n, r) => (E(), o(t, null, [
|
|
4278
4282
|
n.$slots.label || e.showLabel ? (E(), o("label", {
|
|
4279
4283
|
key: 0,
|
|
@@ -4299,7 +4303,7 @@ var ki = {
|
|
|
4299
4303
|
id: e.id,
|
|
4300
4304
|
"data-invalid": e.error ? !0 : void 0,
|
|
4301
4305
|
step: e.step
|
|
4302
|
-
}), null, 16, co), [[
|
|
4306
|
+
}), null, 16, co), [[ne, c.value]])])], 2),
|
|
4303
4307
|
e.lowerLabel ? (E(), o("p", {
|
|
4304
4308
|
key: 1,
|
|
4305
4309
|
"data-testid": "pv-input-lower-label",
|
|
@@ -4542,7 +4546,7 @@ var ki = {
|
|
|
4542
4546
|
}),
|
|
4543
4547
|
emits: ["update:modelValue"],
|
|
4544
4548
|
setup(e) {
|
|
4545
|
-
let t =
|
|
4549
|
+
let t = I(e, "modelValue");
|
|
4546
4550
|
return (n, r) => (E(), o("div", Oo, [
|
|
4547
4551
|
n.$slots.label ? (E(), o("label", {
|
|
4548
4552
|
key: 0,
|
|
@@ -4557,7 +4561,7 @@ var ki = {
|
|
|
4557
4561
|
placeholder: e.placeholder,
|
|
4558
4562
|
id: e.id,
|
|
4559
4563
|
"data-invalid": e.error ? !0 : void 0
|
|
4560
|
-
}), null, 16, Ao), [[
|
|
4564
|
+
}), null, 16, Ao), [[B, t.value]]),
|
|
4561
4565
|
e.lowerLabel ? (E(), o("p", {
|
|
4562
4566
|
key: 1,
|
|
4563
4567
|
style: { "margin-left": "12px" },
|
|
@@ -4813,7 +4817,7 @@ var ki = {
|
|
|
4813
4817
|
onMouseleave: n[2] ||= (e) => P(_)(),
|
|
4814
4818
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4815
4819
|
}, {
|
|
4816
|
-
default: W(() => [G(u(Fo, null, null, 512), [[
|
|
4820
|
+
default: W(() => [G(u(Fo, null, null, 512), [[V, P(h) === e.option.node_id && P(v)(e.isDraggable, e.settings, e.option)]]), s("div", Ko, [!A.value && k.value ? (E(), o("div", qo)) : k.value ? (E(), o("div", Jo)) : a("", !0), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4817
4821
|
key: 2,
|
|
4818
4822
|
option: e.option,
|
|
4819
4823
|
settings: e.settings,
|
|
@@ -4932,7 +4936,7 @@ var ki = {
|
|
|
4932
4936
|
onMouseleave: n[2] ||= (e) => P(d)(),
|
|
4933
4937
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4934
4938
|
}, {
|
|
4935
|
-
default: W(() => [G(u(Fo, null, null, 512), [[
|
|
4939
|
+
default: W(() => [G(u(Fo, null, null, 512), [[V, P(c) === e.option.node_id && P(p)(e.isDraggable, e.settings, e.option)]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4936
4940
|
key: 0,
|
|
4937
4941
|
option: e.option,
|
|
4938
4942
|
settings: e.settings,
|
|
@@ -5029,7 +5033,7 @@ var ki = {
|
|
|
5029
5033
|
emits: ["handle-tree-select", "update:children"],
|
|
5030
5034
|
setup(e, { emit: t }) {
|
|
5031
5035
|
let n = e, a = t, c = O(n.treeOpen ?? n.settings[n.option.field]?.defaultExpanded ?? !1);
|
|
5032
|
-
|
|
5036
|
+
H(() => n.treeOpen, (e) => {
|
|
5033
5037
|
e !== void 0 && (c.value = e);
|
|
5034
5038
|
});
|
|
5035
5039
|
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } = Wo(), { hoveredId: g, handleMouseEnter: _, handleMouseLeave: v } = Ro(), { isDragging: b, draggingGroupName: S, onDragStart: C, onDragEnd: w } = Uo(), { dragAndDropIndicatorClasses: T } = Go(), D = () => {
|
|
@@ -5045,7 +5049,7 @@ var ki = {
|
|
|
5045
5049
|
newChildren: e
|
|
5046
5050
|
});
|
|
5047
5051
|
}
|
|
5048
|
-
}),
|
|
5052
|
+
}), te = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), F = r(() => n.isParentPathOpen ?? !0 ? te.value && n.level === 0 ? c.value : !0 : !1);
|
|
5049
5053
|
return (t, n) => {
|
|
5050
5054
|
let r = ee("PvTreeItem", !0);
|
|
5051
5055
|
return e.option.children && e.option.children.length > 0 && e.settings && e.settings[e.option.field]?.accordion ? (E(), i(zr, {
|
|
@@ -5062,7 +5066,7 @@ var ki = {
|
|
|
5062
5066
|
enableTriggerFullWidth: "",
|
|
5063
5067
|
summaryStyles: {
|
|
5064
5068
|
...k(e.level),
|
|
5065
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
5069
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: F.value }) ?? {},
|
|
5066
5070
|
"justify-content": "flex-start"
|
|
5067
5071
|
},
|
|
5068
5072
|
summaryClasses: {
|
|
@@ -5075,7 +5079,7 @@ var ki = {
|
|
|
5075
5079
|
onSummaryMouseleave: n[5] ||= (e) => P(v)(),
|
|
5076
5080
|
onContextmenu: n[6] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5077
5081
|
}, {
|
|
5078
|
-
trigger: W(() => [G(u(Fo, null, null, 512), [[
|
|
5082
|
+
trigger: W(() => [G(u(Fo, null, null, 512), [[V, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
5079
5083
|
key: 0,
|
|
5080
5084
|
option: e.option,
|
|
5081
5085
|
settings: e.settings,
|
|
@@ -5173,14 +5177,14 @@ var ki = {
|
|
|
5173
5177
|
icon: e.settings[e.option.field]?.icon,
|
|
5174
5178
|
style: x({
|
|
5175
5179
|
...k(e.level),
|
|
5176
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
5180
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: F.value }) ?? {}
|
|
5177
5181
|
}),
|
|
5178
5182
|
onHandleSelected: n[9] ||= (e) => t.$emit("handle-tree-select", e),
|
|
5179
5183
|
onMouseenter: n[10] ||= (t) => P(_)(e.option.node_id),
|
|
5180
5184
|
onMouseleave: n[11] ||= (e) => P(v)(),
|
|
5181
5185
|
onContextmenu: n[12] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5182
5186
|
}, {
|
|
5183
|
-
default: W(() => [G(u(Fo, null, null, 512), [[
|
|
5187
|
+
default: W(() => [G(u(Fo, null, null, 512), [[V, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
5184
5188
|
key: 0,
|
|
5185
5189
|
option: e.option,
|
|
5186
5190
|
settings: e.settings,
|
|
@@ -5322,7 +5326,7 @@ var ki = {
|
|
|
5322
5326
|
],
|
|
5323
5327
|
setup(e) {
|
|
5324
5328
|
m(zo, null) || Ho();
|
|
5325
|
-
let n = e, i =
|
|
5329
|
+
let n = e, i = I(e, "selectedOptions"), a = I(e, "options"), c = I(e, "treeOpen"), { handleUpdateChildren: l } = is(a), d = (e, t) => {
|
|
5326
5330
|
t.metaKey ? i.value?.some((t) => t.node_id === e.node_id) ? i.value = i.value?.filter((t) => t.node_id !== e.node_id) : i.value = [...i.value || [], e] : i.value?.some((t) => t.node_id === e.node_id) ? i.value = [] : i.value = [e];
|
|
5327
5331
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
5328
5332
|
...n.defaultSettings,
|
|
@@ -5514,7 +5518,7 @@ var ki = {
|
|
|
5514
5518
|
}),
|
|
5515
5519
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
5516
5520
|
setup(e) {
|
|
5517
|
-
let t = e, n =
|
|
5521
|
+
let t = e, n = I(e, "modelValue"), c = I(e, "rangeValue"), l = te(), u = F(), d = `${u}-max`, f = `${u}-min`, p = O(""), m = O(""), h = O(null), g = O(null), v = O(!1), b = O(null), C = null, w = null, T = (e) => typeof e == "number" && Number.isFinite(e), D = (e) => T(e) ? e : null, k = (e) => {
|
|
5518
5522
|
let t = e.trim();
|
|
5519
5523
|
if (t === "") return null;
|
|
5520
5524
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
@@ -5529,7 +5533,7 @@ var ki = {
|
|
|
5529
5533
|
minimumFractionDigits: 0
|
|
5530
5534
|
}).format(e);
|
|
5531
5535
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
5532
|
-
},
|
|
5536
|
+
}, L = r(() => D(t.step)), R = r(() => L.value !== null && L.value > 0 ? L.value : 0), z = r(() => R.value > 0 ? String(R.value) : "any"), ne = r(() => L.value === null ? "1" : L.value > 0 ? String(L.value) : "any"), re = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), V = r(() => {
|
|
5533
5537
|
let e = D(t.min) ?? Cs, n = D(t.max) ?? ws;
|
|
5534
5538
|
return e > n ? {
|
|
5535
5539
|
max: e,
|
|
@@ -5541,11 +5545,11 @@ var ki = {
|
|
|
5541
5545
|
max: n,
|
|
5542
5546
|
min: e
|
|
5543
5547
|
};
|
|
5544
|
-
}),
|
|
5545
|
-
let { max: e, min: t } =
|
|
5548
|
+
}), U = r(() => D(n.value) ?? V.value.min), W = r(() => {
|
|
5549
|
+
let { max: e, min: t } = V.value, n = e - t, r = n === 0 ? 0 : (U.value - t) / n * 100;
|
|
5546
5550
|
return Math.max(0, Math.min(100, r));
|
|
5547
5551
|
}), K = r(() => ({
|
|
5548
|
-
"--range-track-color":
|
|
5552
|
+
"--range-track-color": re.value,
|
|
5549
5553
|
"--value": `${W.value}%`
|
|
5550
5554
|
})), ae = r(() => ({ left: `${W.value}%` })), oe = (e) => {
|
|
5551
5555
|
if (!Number.isFinite(e)) return 0;
|
|
@@ -5557,13 +5561,13 @@ var ki = {
|
|
|
5557
5561
|
return t.split(".")[1]?.length ?? 0;
|
|
5558
5562
|
}, q = r(() => {
|
|
5559
5563
|
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(Cs, r ?? Cs, i ?? Cs), o = n ?? Math.max(ws, r ?? ws, i ?? ws);
|
|
5560
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
5564
|
+
return a > o && ([a, o] = [o, a]), a === o && (o = a + (R.value > 0 ? R.value : 1)), {
|
|
5561
5565
|
max: o,
|
|
5562
5566
|
min: a
|
|
5563
5567
|
};
|
|
5564
5568
|
}), se = (e) => Math.max(q.value.min, Math.min(q.value.max, e)), ce = r(() => {
|
|
5565
5569
|
let e = Math.max(oe(q.value.min), oe(q.value.max));
|
|
5566
|
-
return
|
|
5570
|
+
return R.value <= 0 ? Math.max(6, e) : Math.max(e, oe(R.value));
|
|
5567
5571
|
}), le = (e) => {
|
|
5568
5572
|
let t = Math.min(20, ce.value);
|
|
5569
5573
|
return se(Number(e.toFixed(t)));
|
|
@@ -5571,13 +5575,13 @@ var ki = {
|
|
|
5571
5575
|
if (t.allowMinMaxEqual) return 0;
|
|
5572
5576
|
let e = q.value.max - q.value.min;
|
|
5573
5577
|
if (e <= 0) return 0;
|
|
5574
|
-
let n = Math.max(e / 1e6, 10 ** -ce.value), r =
|
|
5578
|
+
let n = Math.max(e / 1e6, 10 ** -ce.value), r = R.value > 0 ? R.value : n;
|
|
5575
5579
|
return Math.min(r, e);
|
|
5576
5580
|
}), de = (e, t = "nearest") => {
|
|
5577
5581
|
let n = se(e);
|
|
5578
|
-
if (
|
|
5579
|
-
let { min: r } = q.value, i = (n - r) /
|
|
5580
|
-
return le(se((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) *
|
|
5582
|
+
if (R.value <= 0) return le(n);
|
|
5583
|
+
let { min: r } = q.value, i = (n - r) / R.value;
|
|
5584
|
+
return le(se((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) * R.value + r));
|
|
5581
5585
|
}, J = (e, t) => {
|
|
5582
5586
|
let n = Math.max(q.value.min, t - ue.value);
|
|
5583
5587
|
return de(Math.min(e, n), "down");
|
|
@@ -5594,7 +5598,7 @@ var ki = {
|
|
|
5594
5598
|
let { max: t, min: n } = q.value;
|
|
5595
5599
|
return t === n ? 0 : (e - n) / (t - n) * 100;
|
|
5596
5600
|
}, me = r(() => pe(Y.value.min)), he = r(() => pe(Y.value.max)), ge = r(() => ({
|
|
5597
|
-
"--range-track-color":
|
|
5601
|
+
"--range-track-color": re.value,
|
|
5598
5602
|
"--value-max": `${he.value}%`,
|
|
5599
5603
|
"--value-min": `${me.value}%`
|
|
5600
5604
|
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), be = () => D(t.min) !== null || q.value.min === Cs, xe = () => D(t.max) !== null || q.value.max === ws, Se = (e, t) => {
|
|
@@ -5668,27 +5672,27 @@ var ki = {
|
|
|
5668
5672
|
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i);
|
|
5669
5673
|
}, e.preventDefault();
|
|
5670
5674
|
};
|
|
5671
|
-
return
|
|
5675
|
+
return H([Y, q], Ne, { immediate: !0 }), S(() => {
|
|
5672
5676
|
Be(), Oe();
|
|
5673
5677
|
}), (r, c) => e.mode === "single" ? (E(), o("div", fs, [e.showValueTooltips && v.value ? (E(), o("span", {
|
|
5674
5678
|
key: 0,
|
|
5675
5679
|
class: "pv-range-tooltip",
|
|
5676
5680
|
style: x(ae.value)
|
|
5677
|
-
}, N(M(
|
|
5681
|
+
}, N(M(U.value)), 5)) : a("", !0), G(s("input", _({ id: P(u) }, P(l), {
|
|
5678
5682
|
"onUpdate:modelValue": c[0] ||= (e) => n.value = e,
|
|
5679
5683
|
"aria-label": e.ariaLabel,
|
|
5680
5684
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
5681
5685
|
disabled: e.disabled,
|
|
5682
|
-
max:
|
|
5683
|
-
min:
|
|
5684
|
-
step:
|
|
5686
|
+
max: V.value.max,
|
|
5687
|
+
min: V.value.min,
|
|
5688
|
+
step: ne.value,
|
|
5685
5689
|
style: K.value,
|
|
5686
5690
|
type: "range",
|
|
5687
5691
|
onChange: ke,
|
|
5688
5692
|
onPointerdown: Ae,
|
|
5689
5693
|
onPointerup: ke
|
|
5690
5694
|
}), null, 16, ps), [[
|
|
5691
|
-
|
|
5695
|
+
B,
|
|
5692
5696
|
n.value,
|
|
5693
5697
|
void 0,
|
|
5694
5698
|
{ number: !0 }
|
|
@@ -5728,7 +5732,7 @@ var ki = {
|
|
|
5728
5732
|
disabled: e.disabled,
|
|
5729
5733
|
max: q.value.max,
|
|
5730
5734
|
min: q.value.min,
|
|
5731
|
-
step:
|
|
5735
|
+
step: z.value,
|
|
5732
5736
|
value: Y.value.min,
|
|
5733
5737
|
onChange: Te,
|
|
5734
5738
|
onInput: je,
|
|
@@ -5742,7 +5746,7 @@ var ki = {
|
|
|
5742
5746
|
disabled: e.disabled,
|
|
5743
5747
|
max: q.value.max,
|
|
5744
5748
|
min: q.value.min,
|
|
5745
|
-
step:
|
|
5749
|
+
step: z.value,
|
|
5746
5750
|
value: Y.value.max,
|
|
5747
5751
|
onChange: Te,
|
|
5748
5752
|
onInput: Me,
|
|
@@ -5768,7 +5772,7 @@ var ki = {
|
|
|
5768
5772
|
style: { width: "100%" },
|
|
5769
5773
|
inputmode: "decimal",
|
|
5770
5774
|
placeholder: "Min",
|
|
5771
|
-
step:
|
|
5775
|
+
step: z.value,
|
|
5772
5776
|
type: "text",
|
|
5773
5777
|
value: m.value,
|
|
5774
5778
|
onBlur: c[3] ||= (e) => Z("min"),
|
|
@@ -5793,7 +5797,7 @@ var ki = {
|
|
|
5793
5797
|
style: { width: "100%" },
|
|
5794
5798
|
inputmode: "decimal",
|
|
5795
5799
|
placeholder: "Max",
|
|
5796
|
-
step:
|
|
5800
|
+
step: z.value,
|
|
5797
5801
|
type: "text",
|
|
5798
5802
|
value: p.value,
|
|
5799
5803
|
onBlur: c[6] ||= (e) => Z("max"),
|
|
@@ -5867,7 +5871,7 @@ var ki = {
|
|
|
5867
5871
|
},
|
|
5868
5872
|
emits: ["focus-value", "toggle-value"],
|
|
5869
5873
|
setup(e, { emit: t }) {
|
|
5870
|
-
let n = e, c = t, d =
|
|
5874
|
+
let n = e, c = t, d = L(), f = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), p = r(() => !n.renderer && (f.value || !!d["result-count"])), m = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), h = r(() => ({
|
|
5871
5875
|
disabled: n.disabled,
|
|
5872
5876
|
highlightSearchText: !0,
|
|
5873
5877
|
id: n.value,
|
|
@@ -6364,7 +6368,7 @@ var ki = {
|
|
|
6364
6368
|
"search-change"
|
|
6365
6369
|
],
|
|
6366
6370
|
setup(e, { emit: n }) {
|
|
6367
|
-
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(Zc), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), v = r(() => c.filter.options ?? []), y = r(() => [...c.filter.knownOptions ?? [], ...v.value]), S = r(() => c.filter.type ?? "value"), C = r(() => S.value === "value"), w = r(() => C.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), D = r(() => p.value.trim().toLowerCase()), A = r(() => c.filter.selectedValues ?? []), ee = r(() => new Set(A.value)), M = r(() => c.filter.valueLabels?.true ?? "Yes"), P = r(() => c.filter.filterOptionsSortDescription || "Suggested"),
|
|
6371
|
+
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(Zc), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), v = r(() => c.filter.options ?? []), y = r(() => [...c.filter.knownOptions ?? [], ...v.value]), S = r(() => c.filter.type ?? "value"), C = r(() => S.value === "value"), w = r(() => C.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), D = r(() => p.value.trim().toLowerCase()), A = r(() => c.filter.selectedValues ?? []), ee = r(() => new Set(A.value)), M = r(() => c.filter.valueLabels?.true ?? "Yes"), P = r(() => c.filter.filterOptionsSortDescription || "Suggested"), te = (e) => {
|
|
6368
6372
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
6369
6373
|
return [
|
|
6370
6374
|
e.value,
|
|
@@ -6374,28 +6378,28 @@ var ki = {
|
|
|
6374
6378
|
e.matchedValue,
|
|
6375
6379
|
e.matchedField
|
|
6376
6380
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
6377
|
-
},
|
|
6381
|
+
}, F = r(() => S.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 : S.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : S.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ? jc(T.value) || void 0 : A.value.length || void 0), I = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), L = (e, t = 0) => e.flatMap((e) => [
|
|
6378
6382
|
{
|
|
6379
6383
|
depth: t,
|
|
6380
6384
|
kind: "option",
|
|
6381
6385
|
option: e
|
|
6382
6386
|
},
|
|
6383
|
-
...e.children?.length ?
|
|
6384
|
-
...
|
|
6387
|
+
...e.children?.length ? L(e.children, t + 1) : [],
|
|
6388
|
+
...I(e) ? [{
|
|
6385
6389
|
depth: t + 1,
|
|
6386
6390
|
kind: "child-load-more",
|
|
6387
6391
|
parent: e
|
|
6388
6392
|
}] : []
|
|
6389
|
-
]),
|
|
6390
|
-
let e =
|
|
6391
|
-
return t ? e.filter((e) => e.kind === "option" &&
|
|
6392
|
-
}),
|
|
6393
|
+
]), R = r(() => {
|
|
6394
|
+
let e = L(v.value), t = D.value;
|
|
6395
|
+
return t ? e.filter((e) => e.kind === "option" && te(e.option).includes(t)) : e;
|
|
6396
|
+
}), z = r(() => w.value ? [] : A.value.map((e) => f.value[e] ?? {
|
|
6393
6397
|
label: e,
|
|
6394
6398
|
value: e
|
|
6395
|
-
})),
|
|
6399
|
+
})), ne = r(() => w.value ? R.value : R.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), re = r(() => ne.value.length > m.value), B = r(() => re.value || c.filter.hasMore), V = r(() => ne.value.slice(0, m.value)), U = r(() => w.value ? Oc({
|
|
6396
6400
|
options: y.value,
|
|
6397
6401
|
state: T.value
|
|
6398
|
-
}) : /* @__PURE__ */ new Map()), G = (e) => Vs(e, c.filter.colDef), ie = (e) => Hs(e), K = (e) => w.value ?
|
|
6402
|
+
}) : /* @__PURE__ */ new Map()), G = (e) => Vs(e, c.filter.colDef), ie = (e) => Hs(e), K = (e) => w.value ? U.value.get(e.value) ?? {
|
|
6399
6403
|
indeterminate: !1,
|
|
6400
6404
|
selected: !1
|
|
6401
6405
|
} : {
|
|
@@ -6410,13 +6414,13 @@ var ki = {
|
|
|
6410
6414
|
context: e,
|
|
6411
6415
|
disabled: c.filter.disabled || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
6412
6416
|
id: e.value,
|
|
6413
|
-
searchText:
|
|
6417
|
+
searchText: te(e),
|
|
6414
6418
|
secondaryText: ie(e),
|
|
6415
6419
|
subText: e.subText,
|
|
6416
6420
|
subduedText: e.subduedText,
|
|
6417
6421
|
text: G(e),
|
|
6418
6422
|
totalChildCount: e.totalChildCount
|
|
6419
|
-
}), de = r(() => v.value.map(le)), J = r(() =>
|
|
6423
|
+
}), de = r(() => v.value.map(le)), J = r(() => z.value.map(le)), fe = r(() => ({
|
|
6420
6424
|
colDef: c.filter.colDef,
|
|
6421
6425
|
disabled: c.filter.disabled,
|
|
6422
6426
|
filter: c.filter,
|
|
@@ -6430,7 +6434,7 @@ var ki = {
|
|
|
6430
6434
|
rowsLoading: c.filter.isLoading
|
|
6431
6435
|
}
|
|
6432
6436
|
})), Y = () => {
|
|
6433
|
-
|
|
6437
|
+
re.value ? m.value += Zc : c.filter.hasMore && d("load-more", p.value.trim());
|
|
6434
6438
|
}, pe = (e) => {
|
|
6435
6439
|
d("load-more", p.value.trim(), e.value);
|
|
6436
6440
|
}, me = (e) => {
|
|
@@ -6481,7 +6485,7 @@ var ki = {
|
|
|
6481
6485
|
}, xe = () => {
|
|
6482
6486
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
6483
6487
|
};
|
|
6484
|
-
|
|
6488
|
+
H([p, () => c.filter.key], () => {
|
|
6485
6489
|
m.value = Zc;
|
|
6486
6490
|
});
|
|
6487
6491
|
let Se = () => {
|
|
@@ -6489,11 +6493,11 @@ var ki = {
|
|
|
6489
6493
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
6490
6494
|
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Qc)));
|
|
6491
6495
|
};
|
|
6492
|
-
return
|
|
6496
|
+
return H(y, () => {
|
|
6493
6497
|
c.filter.isOpen && Se();
|
|
6494
|
-
}, { immediate: !0 }),
|
|
6498
|
+
}, { immediate: !0 }), H(() => c.filter.isOpen, (e) => {
|
|
6495
6499
|
e ? Se() : f.value = {};
|
|
6496
|
-
}),
|
|
6500
|
+
}), H(() => c.filter.searchQuery, (e) => {
|
|
6497
6501
|
let t = e ?? "";
|
|
6498
6502
|
t !== p.value && (p.value = t);
|
|
6499
6503
|
}), ue(p, (e) => {
|
|
@@ -6515,9 +6519,9 @@ var ki = {
|
|
|
6515
6519
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
6516
6520
|
}, null, 8, ["name"]),
|
|
6517
6521
|
s("span", null, N(e.filter.label), 1),
|
|
6518
|
-
|
|
6522
|
+
F.value ? (E(), i(Le, {
|
|
6519
6523
|
key: 0,
|
|
6520
|
-
value:
|
|
6524
|
+
value: F.value,
|
|
6521
6525
|
size: "sm",
|
|
6522
6526
|
variant: "secondary"
|
|
6523
6527
|
}, null, 8, ["value"])) : a("", !0)
|
|
@@ -6557,7 +6561,7 @@ var ki = {
|
|
|
6557
6561
|
"disabled",
|
|
6558
6562
|
"placeholder"
|
|
6559
6563
|
]),
|
|
6560
|
-
|
|
6564
|
+
z.value.length ? (E(), o("div", Rc, [(E(!0), o(t, null, k(z.value, (t) => (E(), i(js, {
|
|
6561
6565
|
key: t.value,
|
|
6562
6566
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
6563
6567
|
"focus-text": e.filter.focusText,
|
|
@@ -6591,9 +6595,9 @@ var ki = {
|
|
|
6591
6595
|
"onToggleValue"
|
|
6592
6596
|
]))), 128))])) : a("", !0),
|
|
6593
6597
|
e.filter.isLoading ? (E(), o("div", zc, [u(Oe, { size: "sm" })])) : (E(), o(t, { key: 3 }, [
|
|
6594
|
-
!v.value.length && !
|
|
6595
|
-
|
|
6596
|
-
|
|
6598
|
+
!v.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-values" }), null, 16)) : (E(), o("p", Bc, "No values available."))], 64)) : !R.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-matches" }), null, 16)) : (E(), o("p", Vc, "No matching values."))], 64)) : a("", !0),
|
|
6599
|
+
ne.value.length || B.value ? (E(), o("div", Hc, [
|
|
6600
|
+
ne.value.length ? (E(), o("div", Uc, [e.filter.filterOptionsSortTooltip ? (E(), i(Pn, {
|
|
6597
6601
|
key: 0,
|
|
6598
6602
|
variant: "dark",
|
|
6599
6603
|
disableInteractive: !0,
|
|
@@ -6606,7 +6610,7 @@ var ki = {
|
|
|
6606
6610
|
content: W(() => [l(N(e.filter.filterOptionsSortTooltip), 1)]),
|
|
6607
6611
|
_: 1
|
|
6608
6612
|
})) : (E(), o("p", Gc, N(P.value), 1))])) : a("", !0),
|
|
6609
|
-
(E(!0), o(t, null, k(
|
|
6613
|
+
(E(!0), o(t, null, k(V.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(js, {
|
|
6610
6614
|
key: 0,
|
|
6611
6615
|
depth: n.depth,
|
|
6612
6616
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
@@ -6657,7 +6661,7 @@ var ki = {
|
|
|
6657
6661
|
"style",
|
|
6658
6662
|
"onClick"
|
|
6659
6663
|
]))], 64))), 128)),
|
|
6660
|
-
|
|
6664
|
+
B.value ? (E(), i(Q, {
|
|
6661
6665
|
key: 1,
|
|
6662
6666
|
class: "pv-text-brand",
|
|
6663
6667
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
@@ -6888,7 +6892,7 @@ var ki = {
|
|
|
6888
6892
|
}),
|
|
6889
6893
|
emits: ["update:modelValue"],
|
|
6890
6894
|
setup(e) {
|
|
6891
|
-
let n = e, c =
|
|
6895
|
+
let n = e, c = I(e, "modelValue"), l = r(() => {
|
|
6892
6896
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
6893
6897
|
for (let r of n.filters) r.category && (e.add(r.category), t.includes(r.category) || t.push(r.category));
|
|
6894
6898
|
let r = (n.categoryOrder ?? []).filter((t) => e.has(t)), i = new Set(r), a = t.filter((e) => !i.has(e));
|
|
@@ -6896,7 +6900,7 @@ var ki = {
|
|
|
6896
6900
|
}), d = (e) => {
|
|
6897
6901
|
c.value = e;
|
|
6898
6902
|
}, f = (e) => c.value === e ? "primary" : "secondary";
|
|
6899
|
-
return
|
|
6903
|
+
return H(l, (e) => {
|
|
6900
6904
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
6901
6905
|
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div", ul, [u(ll, {
|
|
6902
6906
|
ariaLabel: "Filter categories",
|
|
@@ -7371,9 +7375,9 @@ function yu(e, t, n) {
|
|
|
7371
7375
|
}
|
|
7372
7376
|
b(t, n);
|
|
7373
7377
|
};
|
|
7374
|
-
|
|
7378
|
+
H(() => e.filterOptionsHandler, (e) => {
|
|
7375
7379
|
a.setFilterOptionsHandler(e);
|
|
7376
|
-
}, { immediate: !0 }),
|
|
7380
|
+
}, { immediate: !0 }), H([
|
|
7377
7381
|
() => e.filterOptions,
|
|
7378
7382
|
m,
|
|
7379
7383
|
() => e.filterOptionsHandler
|
|
@@ -7382,7 +7386,7 @@ function yu(e, t, n) {
|
|
|
7382
7386
|
}, {
|
|
7383
7387
|
deep: !0,
|
|
7384
7388
|
immediate: !0
|
|
7385
|
-
}),
|
|
7389
|
+
}), H([
|
|
7386
7390
|
() => e.filterHasMoreMap,
|
|
7387
7391
|
m,
|
|
7388
7392
|
() => e.filterOptionsHandler
|
|
@@ -7391,7 +7395,7 @@ function yu(e, t, n) {
|
|
|
7391
7395
|
}, {
|
|
7392
7396
|
deep: !0,
|
|
7393
7397
|
immediate: !0
|
|
7394
|
-
}),
|
|
7398
|
+
}), H([
|
|
7395
7399
|
() => e.filterLoadingMap,
|
|
7396
7400
|
m,
|
|
7397
7401
|
() => e.filterOptionsHandler
|
|
@@ -7400,7 +7404,7 @@ function yu(e, t, n) {
|
|
|
7400
7404
|
}, {
|
|
7401
7405
|
deep: !0,
|
|
7402
7406
|
immediate: !0
|
|
7403
|
-
}),
|
|
7407
|
+
}), H([
|
|
7404
7408
|
() => e.filterLoadingMoreMap,
|
|
7405
7409
|
m,
|
|
7406
7410
|
() => e.filterOptionsHandler
|
|
@@ -7409,7 +7413,7 @@ function yu(e, t, n) {
|
|
|
7409
7413
|
}, {
|
|
7410
7414
|
deep: !0,
|
|
7411
7415
|
immediate: !0
|
|
7412
|
-
}),
|
|
7416
|
+
}), H([
|
|
7413
7417
|
() => e.filterSearchQueries,
|
|
7414
7418
|
m,
|
|
7415
7419
|
() => e.filterOptionsHandler
|
|
@@ -7418,7 +7422,7 @@ function yu(e, t, n) {
|
|
|
7418
7422
|
}, {
|
|
7419
7423
|
deep: !0,
|
|
7420
7424
|
immediate: !0
|
|
7421
|
-
}),
|
|
7425
|
+
}), H([
|
|
7422
7426
|
t,
|
|
7423
7427
|
m,
|
|
7424
7428
|
() => e.staged
|
|
@@ -7427,7 +7431,7 @@ function yu(e, t, n) {
|
|
|
7427
7431
|
}, {
|
|
7428
7432
|
deep: !0,
|
|
7429
7433
|
immediate: !0
|
|
7430
|
-
}),
|
|
7434
|
+
}), H([() => e.staged, p], ([e]) => {
|
|
7431
7435
|
if (e) {
|
|
7432
7436
|
i.value = t.value;
|
|
7433
7437
|
let e = p.value;
|
|
@@ -7443,7 +7447,7 @@ function yu(e, t, n) {
|
|
|
7443
7447
|
let t = T(e);
|
|
7444
7448
|
_.value === "advanced" && !t && w("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), _.value === "regular" && t && w("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
7445
7449
|
};
|
|
7446
|
-
|
|
7450
|
+
U(() => {
|
|
7447
7451
|
C("filterModel", !!((e.filterStore || o) && t.value !== null)), C("filterOptions", Object.keys(e.filterOptions).length > 0), C("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), C("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), C("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), C("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), C("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler)), (e.filterStore || o) && v.value;
|
|
7448
7452
|
});
|
|
7449
7453
|
let D = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ee = (e) => {
|
|
@@ -7457,32 +7461,32 @@ function yu(e, t, n) {
|
|
|
7457
7461
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
7458
7462
|
}, P = (t) => {
|
|
7459
7463
|
let n = D(t), r = k(t);
|
|
7460
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
7461
|
-
},
|
|
7464
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && V.value.has(r) ? !1 : !!ee(t);
|
|
7465
|
+
}, te = (e) => (p.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), F = (t) => {
|
|
7462
7466
|
let n = p.value;
|
|
7463
7467
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
7464
|
-
},
|
|
7468
|
+
}, I = (e) => p.value.filterHasMoreMap.value[e] ?? !1, L = (e) => p.value.filterLoadingMap.value[e] ?? !1, R = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1, z = (e) => p.value.filterSearchQueries.value[e] ?? "", ne = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
7465
7469
|
label: e.label,
|
|
7466
7470
|
value: e.filter.value
|
|
7467
|
-
}]),
|
|
7471
|
+
}]), re = (e) => [
|
|
7472
|
+
...ne(e),
|
|
7468
7473
|
...te(e),
|
|
7469
|
-
...F(e)
|
|
7470
|
-
|
|
7471
|
-
], V = (e) => {
|
|
7474
|
+
...F(e)
|
|
7475
|
+
], B = (e) => {
|
|
7472
7476
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
7473
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
7477
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(B) : [];
|
|
7474
7478
|
return n ? [n, ...r] : r;
|
|
7475
|
-
},
|
|
7479
|
+
}, V = r(() => {
|
|
7476
7480
|
let t = /* @__PURE__ */ new Set();
|
|
7477
7481
|
for (let n of e.colDefs) {
|
|
7478
7482
|
let e = D(n);
|
|
7479
7483
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
7480
|
-
for (let n of
|
|
7484
|
+
for (let n of B(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
7481
7485
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
7482
7486
|
}
|
|
7483
7487
|
return t;
|
|
7484
7488
|
}), W = (e) => {
|
|
7485
|
-
let t = k(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i =
|
|
7489
|
+
let t = k(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = B(n.aggregateFieldHierarchy);
|
|
7486
7490
|
return Array.from(new Set([
|
|
7487
7491
|
t,
|
|
7488
7492
|
...r,
|
|
@@ -7530,7 +7534,7 @@ function yu(e, t, n) {
|
|
|
7530
7534
|
label: q(e)?.headerName ?? e
|
|
7531
7535
|
}));
|
|
7532
7536
|
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) => Zs(J(e)?.knownOptions ?? []).find((r) => r.value === n || Qs(r, t, n, e)), Y = r(() => e.colDefs.filter(P).map((t) => {
|
|
7533
|
-
let n = k(t), r = D(t), i = j(t), a = ue(
|
|
7537
|
+
let n = k(t), r = D(t), i = j(t), a = ue(te(n), t), o = ue(re(n), t), s = {
|
|
7534
7538
|
category: M(t),
|
|
7535
7539
|
colDef: t,
|
|
7536
7540
|
dataType: r.dataType ?? null,
|
|
@@ -7548,11 +7552,11 @@ function yu(e, t, n) {
|
|
|
7548
7552
|
focusText: e.focusText,
|
|
7549
7553
|
focusedValues: e.focusedValues[n] ?? [],
|
|
7550
7554
|
focusedValuesByField: oe(t),
|
|
7551
|
-
hasMore:
|
|
7555
|
+
hasMore: I(n),
|
|
7552
7556
|
isAggregate: G(t),
|
|
7553
7557
|
isFocusable: e.enableFocusView && (!e.focusableFields.length || W(t).some((t) => e.focusableFields.includes(t))),
|
|
7554
|
-
isLoading:
|
|
7555
|
-
isLoadingMore:
|
|
7558
|
+
isLoading: L(n),
|
|
7559
|
+
isLoadingMore: R(n),
|
|
7556
7560
|
isOpen: !1,
|
|
7557
7561
|
key: n,
|
|
7558
7562
|
knownOptions: o,
|
|
@@ -7561,7 +7565,7 @@ function yu(e, t, n) {
|
|
|
7561
7565
|
rangeMin: A(r.filterPanelRange?.min),
|
|
7562
7566
|
rangeStep: A(r.filterPanelRange?.step),
|
|
7563
7567
|
searchPlaceholder: ce(t),
|
|
7564
|
-
searchQuery:
|
|
7568
|
+
searchQuery: z(n) ?? "",
|
|
7565
7569
|
type: i,
|
|
7566
7570
|
valueDecimals: r.valueDecimals ?? null,
|
|
7567
7571
|
valueLabels: N(t)
|
|
@@ -7986,31 +7990,31 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
7986
7990
|
"suggestion-click"
|
|
7987
7991
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
7988
7992
|
setup(e, { emit: n }) {
|
|
7989
|
-
let c = e, l =
|
|
7993
|
+
let c = e, l = I(e, "filterModel"), d = I(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: D, handleSuggestionClick: ee, removeAppliedFilter: j } = yu(c, l, f), M = O("filters"), te = O({}), F = O(null), L = O(!1), R = r(() => F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), z = r(() => R.value.map((e) => ({
|
|
7990
7994
|
...e,
|
|
7991
|
-
isOpen:
|
|
7992
|
-
}))),
|
|
7995
|
+
isOpen: te.value[e.key] ?? e.isOpen ?? !1
|
|
7996
|
+
}))), ne = r(() => [{
|
|
7993
7997
|
label: "Filters",
|
|
7994
7998
|
value: "filters"
|
|
7995
7999
|
}, {
|
|
7996
8000
|
label: `Applied (${h.value})`,
|
|
7997
8001
|
value: "applied"
|
|
7998
|
-
}]),
|
|
8002
|
+
}]), re = r(() => ({
|
|
7999
8003
|
"--flex-align": "stretch",
|
|
8000
8004
|
"--flex-gap": "0",
|
|
8001
8005
|
flex: `0 0 ${c.width}`,
|
|
8002
8006
|
minHeight: "0",
|
|
8003
8007
|
width: c.width
|
|
8004
|
-
})),
|
|
8008
|
+
})), B = (e) => {
|
|
8005
8009
|
(e === "filters" || e === "applied") && (M.value = e);
|
|
8006
|
-
},
|
|
8007
|
-
|
|
8008
|
-
},
|
|
8009
|
-
|
|
8010
|
+
}, H = (e, t) => {
|
|
8011
|
+
te.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
8012
|
+
}, U = () => {
|
|
8013
|
+
L.value = !1;
|
|
8010
8014
|
}, ie = () => {
|
|
8011
|
-
S(),
|
|
8015
|
+
S(), L.value = !1;
|
|
8012
8016
|
}, K = () => {
|
|
8013
|
-
|
|
8017
|
+
L.value = !0;
|
|
8014
8018
|
};
|
|
8015
8019
|
return (n, r) => (E(), o(t, null, [d.value ? a("", !0) : (E(), o("div", {
|
|
8016
8020
|
key: 0,
|
|
@@ -8018,14 +8022,14 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8018
8022
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
8019
8023
|
"data-testid": "pv-filter-panel",
|
|
8020
8024
|
"aria-label": e.ariaLabel,
|
|
8021
|
-
style: x(
|
|
8025
|
+
style: x(re.value)
|
|
8022
8026
|
}, [
|
|
8023
8027
|
s("div", xu, [u(ur, {
|
|
8024
8028
|
modelValue: M.value,
|
|
8025
|
-
options:
|
|
8029
|
+
options: ne.value,
|
|
8026
8030
|
class: "pv-filter-panel-mode-control",
|
|
8027
8031
|
size: "xl",
|
|
8028
|
-
"onUpdate:modelValue":
|
|
8032
|
+
"onUpdate:modelValue": B
|
|
8029
8033
|
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("", !0) : (E(), i(Q, {
|
|
8030
8034
|
key: 0,
|
|
8031
8035
|
ariaLabel: "Collapse filters",
|
|
@@ -8049,8 +8053,8 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8049
8053
|
]))), 128))])])) : a("", !0),
|
|
8050
8054
|
A(n.$slots, "suggestions", {}, void 0, !0),
|
|
8051
8055
|
u(fl, {
|
|
8052
|
-
modelValue:
|
|
8053
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
8056
|
+
modelValue: F.value,
|
|
8057
|
+
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
8054
8058
|
"category-order": e.categoryOrder,
|
|
8055
8059
|
filters: P(p)
|
|
8056
8060
|
}, null, 8, [
|
|
@@ -8058,14 +8062,14 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8058
8062
|
"category-order",
|
|
8059
8063
|
"filters"
|
|
8060
8064
|
]),
|
|
8061
|
-
P(p).length ?
|
|
8065
|
+
P(p).length ? R.value.length ? (E(), o("div", Ou, [(E(!0), o(t, null, k(z.value, (e) => (E(), i($c, {
|
|
8062
8066
|
key: e.key,
|
|
8063
8067
|
filter: e,
|
|
8064
8068
|
onFilterChange: (t) => P(w)(e.key, t),
|
|
8065
8069
|
onFocusChange: r[2] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
8066
8070
|
onHandleSettingsIcon: r[3] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
8067
8071
|
onLoadMore: (t, n) => P(T)(e, t, n),
|
|
8068
|
-
onOpenChange: (t) =>
|
|
8072
|
+
onOpenChange: (t) => H(e, t),
|
|
8069
8073
|
onSearchChange: (t) => P(D)(e, t)
|
|
8070
8074
|
}, null, 8, [
|
|
8071
8075
|
"filter",
|
|
@@ -8074,7 +8078,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8074
8078
|
"onOpenChange",
|
|
8075
8079
|
"onSearchChange"
|
|
8076
8080
|
]))), 128))])) : (E(), o("div", Du, " No filters in this category. ")) : (E(), o("div", Eu, " No filters available. "))
|
|
8077
|
-
], 512), [[
|
|
8081
|
+
], 512), [[V, M.value === "filters"]]), G(u(al, {
|
|
8078
8082
|
"applied-count": P(h),
|
|
8079
8083
|
"applied-groups": P(m),
|
|
8080
8084
|
"read-only": e.readOnly,
|
|
@@ -8084,7 +8088,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8084
8088
|
"applied-groups",
|
|
8085
8089
|
"read-only",
|
|
8086
8090
|
"onRemoveFilter"
|
|
8087
|
-
]), [[
|
|
8091
|
+
]), [[V, M.value === "applied"]])]),
|
|
8088
8092
|
(P(g) || e.staged) && !e.readOnly ? (E(), o("div", ku, [P(g) ? (E(), i(Q, {
|
|
8089
8093
|
key: 0,
|
|
8090
8094
|
class: "pv-text-brand",
|
|
@@ -8101,8 +8105,8 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8101
8105
|
onClick: P(y)
|
|
8102
8106
|
}, null, 8, ["label", "onClick"])])) : a("", !0)])) : a("", !0)
|
|
8103
8107
|
], 12, bu)), u(Cr, {
|
|
8104
|
-
modelValue:
|
|
8105
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
8108
|
+
modelValue: L.value,
|
|
8109
|
+
"onUpdate:modelValue": r[4] ||= (e) => L.value = e,
|
|
8106
8110
|
header: e.clearAllHeader,
|
|
8107
8111
|
style: { "--max-width": "440px" }
|
|
8108
8112
|
}, {
|
|
@@ -8110,7 +8114,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8110
8114
|
footer: W(() => [s("div", Mu, [u(Q, {
|
|
8111
8115
|
label: e.cancelLabel,
|
|
8112
8116
|
variant: "ghost",
|
|
8113
|
-
onClick:
|
|
8117
|
+
onClick: U
|
|
8114
8118
|
}, null, 8, ["label"]), u(Q, {
|
|
8115
8119
|
label: e.clearAllLabel,
|
|
8116
8120
|
variant: "primary",
|
|
@@ -8148,7 +8152,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8148
8152
|
}),
|
|
8149
8153
|
emits: ["update:modelValue"],
|
|
8150
8154
|
setup(e) {
|
|
8151
|
-
let t = e, n =
|
|
8155
|
+
let t = e, n = I(e, "modelValue"), i = r(() => t.id ? t.id : `${t.label}-${Math.random()}`);
|
|
8152
8156
|
return (t, r) => (E(), o("label", {
|
|
8153
8157
|
class: "pv-toggle-ghost",
|
|
8154
8158
|
for: i.value
|
|
@@ -8161,7 +8165,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8161
8165
|
value: e.value,
|
|
8162
8166
|
name: e.name,
|
|
8163
8167
|
disabled: e.disabled
|
|
8164
|
-
}, null, 8, Fu), [[
|
|
8168
|
+
}, null, 8, Fu), [[ne, n.value]]),
|
|
8165
8169
|
e.label ? (E(), o("span", Iu, N(e.label), 1)) : a("", !0),
|
|
8166
8170
|
s("span", Lu, N(e.rightCounterBadge), 1)
|
|
8167
8171
|
], 8, Pu));
|
|
@@ -8283,7 +8287,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8283
8287
|
"suggestion-click"
|
|
8284
8288
|
], ["update:filterModel", "update:visible"]),
|
|
8285
8289
|
setup(e, { emit: n }) {
|
|
8286
|
-
let c = e, l =
|
|
8290
|
+
let c = e, l = I(e, "filterModel"), d = I(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = yu(c, l, f), v = O(null), y = O(""), b = r(() => p.value.filter((e) => e.type === "value")), S = r(() => {
|
|
8287
8291
|
let e = b.value;
|
|
8288
8292
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
8289
8293
|
}), C = r(() => S.value?.isAggregate === !0), w = r(() => S.value?.aggregateSelectionState ?? []), T = r(() => new Set(S.value?.selectedValues ?? [])), D = r(() => y.value.trim().toLowerCase()), ee = (e) => {
|
|
@@ -8308,16 +8312,16 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8308
8312
|
}), N = r(() => C.value ? [] : (S.value?.selectedValues ?? []).map((e) => j.value[e] ?? {
|
|
8309
8313
|
label: e,
|
|
8310
8314
|
value: e
|
|
8311
|
-
})),
|
|
8315
|
+
})), te = r(() => C.value ? M.value : M.value.filter((e) => !T.value.has(e.value))), F = r(() => C.value && S.value ? Oc({
|
|
8312
8316
|
options: S.value.knownOptions ?? [],
|
|
8313
8317
|
state: w.value
|
|
8314
|
-
}) : /* @__PURE__ */ new Map()),
|
|
8318
|
+
}) : /* @__PURE__ */ new Map()), L = (e) => e.isAggregate ? jc(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, R = (e) => C.value ? F.value.get(e.value) ?? {
|
|
8315
8319
|
indeterminate: !1,
|
|
8316
8320
|
selected: !1
|
|
8317
8321
|
} : {
|
|
8318
8322
|
indeterminate: !1,
|
|
8319
8323
|
selected: T.value.has(e.value)
|
|
8320
|
-
},
|
|
8324
|
+
}, z = (e) => S.value ? Vs(e, S.value.colDef) : e.label || e.value, ne = (e) => Ys(e) ?? e.value, re = (e) => Xs(e, S.value?.key ?? ""), B = (e, t) => {
|
|
8321
8325
|
let n = S.value;
|
|
8322
8326
|
if (n) {
|
|
8323
8327
|
if (n.isAggregate) {
|
|
@@ -8334,19 +8338,19 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8334
8338
|
}
|
|
8335
8339
|
_(n.key, {
|
|
8336
8340
|
checked: t,
|
|
8337
|
-
field:
|
|
8341
|
+
field: re(e),
|
|
8338
8342
|
type: "value",
|
|
8339
|
-
value:
|
|
8343
|
+
value: ne(e)
|
|
8340
8344
|
});
|
|
8341
8345
|
}
|
|
8342
|
-
},
|
|
8343
|
-
for (let e of M.value)
|
|
8344
|
-
},
|
|
8346
|
+
}, V = () => {
|
|
8347
|
+
for (let e of M.value) R(e).selected || B(e, !0);
|
|
8348
|
+
}, U = () => {
|
|
8345
8349
|
if (C.value) {
|
|
8346
|
-
for (let e of Zs(S.value?.knownOptions ?? []))
|
|
8350
|
+
for (let e of Zs(S.value?.knownOptions ?? [])) R(e).selected && B(e, !1);
|
|
8347
8351
|
return;
|
|
8348
8352
|
}
|
|
8349
|
-
for (let e of N.value)
|
|
8353
|
+
for (let e of N.value) B(e, !1);
|
|
8350
8354
|
}, G = () => {
|
|
8351
8355
|
S.value && f("load-more", S.value.key, S.value.colDef, y.value.trim());
|
|
8352
8356
|
}, ie = r({
|
|
@@ -8355,9 +8359,9 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8355
8359
|
v.value = e;
|
|
8356
8360
|
}
|
|
8357
8361
|
});
|
|
8358
|
-
return
|
|
8362
|
+
return H(() => S.value?.key, (e) => {
|
|
8359
8363
|
y.value = S.value?.searchQuery ?? "", e && d.value && S.value && m(S.value);
|
|
8360
|
-
}),
|
|
8364
|
+
}), H(d, (e) => {
|
|
8361
8365
|
e && S.value && m(S.value);
|
|
8362
8366
|
}), ue(y, (e) => {
|
|
8363
8367
|
let t = S.value;
|
|
@@ -8390,7 +8394,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8390
8394
|
class: "pv-full-width pv-space-between",
|
|
8391
8395
|
deselect: !1,
|
|
8392
8396
|
label: e.label,
|
|
8393
|
-
"right-counter-badge":
|
|
8397
|
+
"right-counter-badge": L(e),
|
|
8394
8398
|
value: e.key
|
|
8395
8399
|
}, null, 8, [
|
|
8396
8400
|
"modelValue",
|
|
@@ -8415,15 +8419,15 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8415
8419
|
class: "pv-inset-square-8 pv-surface-highlight pv-radius"
|
|
8416
8420
|
}, [u(js, {
|
|
8417
8421
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8418
|
-
indeterminate:
|
|
8419
|
-
label:
|
|
8422
|
+
indeterminate: R(e).indeterminate,
|
|
8423
|
+
label: z(e),
|
|
8420
8424
|
"query-text": y.value,
|
|
8421
8425
|
"result-count": P(Hs)(e),
|
|
8422
8426
|
selected: !0,
|
|
8423
8427
|
"sub-text": e.subText,
|
|
8424
8428
|
"subdued-text": e.subduedText,
|
|
8425
8429
|
value: e.value,
|
|
8426
|
-
onToggleValue: (t, n) =>
|
|
8430
|
+
onToggleValue: (t, n) => B(e, n)
|
|
8427
8431
|
}, null, 8, [
|
|
8428
8432
|
"disabled",
|
|
8429
8433
|
"indeterminate",
|
|
@@ -8434,20 +8438,20 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8434
8438
|
"subdued-text",
|
|
8435
8439
|
"value",
|
|
8436
8440
|
"onToggleValue"
|
|
8437
|
-
])]))), 128)), (E(!0), o(t, null, k(
|
|
8441
|
+
])]))), 128)), (E(!0), o(t, null, k(te.value, (e) => (E(), o("div", {
|
|
8438
8442
|
key: `option-${e.value}`,
|
|
8439
8443
|
class: "pv-inset-square-8 pv-radius"
|
|
8440
8444
|
}, [u(js, {
|
|
8441
8445
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8442
|
-
indeterminate:
|
|
8443
|
-
label:
|
|
8446
|
+
indeterminate: R(e).indeterminate,
|
|
8447
|
+
label: z(e),
|
|
8444
8448
|
"query-text": y.value,
|
|
8445
8449
|
"result-count": P(Hs)(e),
|
|
8446
|
-
selected:
|
|
8450
|
+
selected: R(e).selected,
|
|
8447
8451
|
"sub-text": e.subText,
|
|
8448
8452
|
"subdued-text": e.subduedText,
|
|
8449
8453
|
value: e.value,
|
|
8450
|
-
onToggleValue: (t, n) =>
|
|
8454
|
+
onToggleValue: (t, n) => B(e, n)
|
|
8451
8455
|
}, null, 8, [
|
|
8452
8456
|
"disabled",
|
|
8453
8457
|
"indeterminate",
|
|
@@ -8460,7 +8464,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8460
8464
|
"value",
|
|
8461
8465
|
"onToggleValue"
|
|
8462
8466
|
])]))), 128))]),
|
|
8463
|
-
!N.value.length && !
|
|
8467
|
+
!N.value.length && !te.value.length ? (E(), o("p", Gu, " No matching values. ")) : a("", !0),
|
|
8464
8468
|
S.value.hasMore ? (E(), i(Q, {
|
|
8465
8469
|
key: 1,
|
|
8466
8470
|
class: "pv-text-brand",
|
|
@@ -8475,12 +8479,12 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8475
8479
|
disabled: S.value.disabled,
|
|
8476
8480
|
label: e.selectAllLabel,
|
|
8477
8481
|
variant: "ghost",
|
|
8478
|
-
onClick:
|
|
8482
|
+
onClick: V
|
|
8479
8483
|
}, null, 8, ["disabled", "label"]), u(Q, {
|
|
8480
8484
|
disabled: S.value.disabled,
|
|
8481
8485
|
label: e.clearSelectionLabel,
|
|
8482
8486
|
variant: "ghost",
|
|
8483
|
-
onClick:
|
|
8487
|
+
onClick: U
|
|
8484
8488
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
8485
8489
|
])]), e.staged ? (E(), o("div", qu, [u(Q, {
|
|
8486
8490
|
label: e.cancelLabel,
|
|
@@ -8641,7 +8645,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8641
8645
|
}),
|
|
8642
8646
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8643
8647
|
setup(e) {
|
|
8644
|
-
let n = e, s =
|
|
8648
|
+
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } = $u(), u = r(() => {
|
|
8645
8649
|
let e = s.value?.queryTerms || [];
|
|
8646
8650
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8647
8651
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -8731,7 +8735,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8731
8735
|
"update:options"
|
|
8732
8736
|
],
|
|
8733
8737
|
setup(e) {
|
|
8734
|
-
let n = e, c = { renderer: od }, l =
|
|
8738
|
+
let n = e, c = { renderer: od }, l = R("search-input"), d = I(e, "searchText"), f = I(e, "query"), p = I(e, "options"), { addQueryOption: m, containsQueryOption: h } = $u(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
8735
8739
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
8736
8740
|
};
|
|
8737
8741
|
n.enableCustomOptionsInput && oe("Enter", () => {
|
|
@@ -8742,7 +8746,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8742
8746
|
id: d.value.trim(),
|
|
8743
8747
|
text: d.value,
|
|
8744
8748
|
queryTerm: { queryText: d.value }
|
|
8745
|
-
}),
|
|
8749
|
+
}), F());
|
|
8746
8750
|
}, A = r(() => {
|
|
8747
8751
|
if (!p.value || p.value.length === 0) return [];
|
|
8748
8752
|
let e = p.value;
|
|
@@ -8755,7 +8759,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8755
8759
|
context: e.queryTerm
|
|
8756
8760
|
}));
|
|
8757
8761
|
});
|
|
8758
|
-
|
|
8762
|
+
H([
|
|
8759
8763
|
A,
|
|
8760
8764
|
d,
|
|
8761
8765
|
() => n.optionsLoading
|
|
@@ -8772,7 +8776,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8772
8776
|
queryTerm: e.context,
|
|
8773
8777
|
icon: e.icon
|
|
8774
8778
|
};
|
|
8775
|
-
f.value = m(f.value, t),
|
|
8779
|
+
f.value = m(f.value, t), F();
|
|
8776
8780
|
} catch (e) {
|
|
8777
8781
|
console.error("Error adding query option:", e);
|
|
8778
8782
|
} finally {
|
|
@@ -8783,16 +8787,16 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8783
8787
|
let t = e.target;
|
|
8784
8788
|
t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
|
|
8785
8789
|
}
|
|
8786
|
-
function
|
|
8790
|
+
function te(e) {
|
|
8787
8791
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
8788
8792
|
}
|
|
8789
|
-
let
|
|
8793
|
+
let F = () => {
|
|
8790
8794
|
d.value = "";
|
|
8791
8795
|
};
|
|
8792
8796
|
return (n, r) => G((E(), o("div", {
|
|
8793
8797
|
ref: "query-builder-input",
|
|
8794
8798
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
8795
|
-
onFocus:
|
|
8799
|
+
onFocus: te,
|
|
8796
8800
|
onClick: M
|
|
8797
8801
|
}, [
|
|
8798
8802
|
e.hideSearchIcon ? a("", !0) : (E(), i(X, {
|
|
@@ -8823,9 +8827,9 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8823
8827
|
disabled: e.disabled,
|
|
8824
8828
|
placeholder: S.value,
|
|
8825
8829
|
"data-invalid": w.value ? "true" : void 0,
|
|
8826
|
-
onFocus:
|
|
8827
|
-
onBlur:
|
|
8828
|
-
}, null, 40, cd), [[
|
|
8830
|
+
onFocus: te,
|
|
8831
|
+
onBlur: te
|
|
8832
|
+
}, null, 40, cd), [[B, d.value]])], 4),
|
|
8829
8833
|
f.value && !e.hideClearButton ? (E(), i(Q, {
|
|
8830
8834
|
key: 1,
|
|
8831
8835
|
variant: "ghost",
|
|
@@ -8868,8 +8872,8 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8868
8872
|
}),
|
|
8869
8873
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
8870
8874
|
setup(e, { emit: t }) {
|
|
8871
|
-
let n =
|
|
8872
|
-
|
|
8875
|
+
let n = I(e, "modelValue"), r = t, c = O(!1), l = null, u = f(), d = () => u?.proxy?.$el ?? null;
|
|
8876
|
+
H(n, () => {
|
|
8873
8877
|
c.value = !1;
|
|
8874
8878
|
});
|
|
8875
8879
|
let p = () => {
|
|
@@ -8916,7 +8920,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8916
8920
|
}),
|
|
8917
8921
|
emits: /* @__PURE__ */ g(["handle-select"], ["update:modelValue"]),
|
|
8918
8922
|
setup(e, { emit: n }) {
|
|
8919
|
-
let r =
|
|
8923
|
+
let r = I(e, "modelValue"), c = n, u = (e, t) => {
|
|
8920
8924
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
8921
8925
|
};
|
|
8922
8926
|
return (n, c) => (E(), o("ul", _d, [(E(!0), o(t, null, k(e.items, (e) => (E(), o("li", {
|