@turquoisehealth/pit-viper 2.203.1-dev.0 → 2.204.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/_site/assets/css/pit-viper-a11y.css +7 -5
- package/_site/assets/css/pit-viper-consumer.css +7 -5
- package/_site/assets/css/pit-viper-v2-scoped.css +7 -5
- package/_site/assets/css/pit-viper-v2.css +7 -5
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/symbols.d.ts +0 -2
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +0 -4
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -3
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -4
- package/pv-components/dist/vue/base/pv-components-base.mjs +859 -868
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/symbols.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -3
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1299 -1301
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1002 -1003
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +489 -498
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +898 -898
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1032 -1033
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- 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 F, useId as I, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as B, vModelDynamic as te, vModelRadio as ne, vModelText as V, vShow as H, watch as U, watchEffect as re, 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 = L(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
|
+
U(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
|
+
U([
|
|
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 U(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), [[H, 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 ?? R(), 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), U(() => 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 = z("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 }), U(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 = L(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 U(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 = z("dialog"), r = L(e, "modelValue");
|
|
1814
|
+
U(() => 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 = L(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 = z("search-input"), c = L(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), [[V, 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 = L(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 = z("sidePanel"), l = L(e, "searchInput"), d = L(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 U(() => 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 = L(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
|
+
}), U(() => 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 ?? I(), n = L(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), [[B, n.value]])], 10, Pi));
|
|
2745
2745
|
}
|
|
2746
2746
|
}), [["__scopeId", "data-v-73e6d2b2"]]), Ri = /* @__PURE__ */ d({
|
|
2747
2747
|
__name: "PvMenuItemAction",
|
|
@@ -2767,13 +2767,13 @@ var ki = {
|
|
|
2767
2767
|
"always-show"
|
|
2768
2768
|
]));
|
|
2769
2769
|
}
|
|
2770
|
-
}), zi = Symbol("SelectedItemsKey"), Bi = Symbol("EnableCascadeSelectionKey"), Vi = Symbol("OriginalOptionsMapKey"), Hi = Symbol("CascadeSelectedParentIdsKey"), Ui = Symbol("CascadeDeselectedChildIdsKey"), Wi = Symbol("ParentSelectsAllChildrenKey"), Gi = Symbol("EnableChildExpansionKey"), Ki =
|
|
2770
|
+
}), zi = Symbol("SelectedItemsKey"), Bi = Symbol("EnableCascadeSelectionKey"), Vi = Symbol("OriginalOptionsMapKey"), Hi = Symbol("CascadeSelectedParentIdsKey"), Ui = Symbol("CascadeDeselectedChildIdsKey"), Wi = Symbol("ParentSelectsAllChildrenKey"), Gi = Symbol("EnableChildExpansionKey"), Ki = ["data-testid"], qi = [
|
|
2771
2771
|
"hidden",
|
|
2772
2772
|
"type",
|
|
2773
2773
|
"checked",
|
|
2774
2774
|
"indeterminate",
|
|
2775
2775
|
"disabled"
|
|
2776
|
-
],
|
|
2776
|
+
], Ji = ["aria-label", "aria-expanded"], Yi = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
2777
2777
|
__name: "PvMenuItemVariant",
|
|
2778
2778
|
props: {
|
|
2779
2779
|
selected: { type: Boolean },
|
|
@@ -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 = z("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) {
|
|
@@ -2870,7 +2870,7 @@ var ki = {
|
|
|
2870
2870
|
class: y(ee.value),
|
|
2871
2871
|
disabled: e.disabled,
|
|
2872
2872
|
onChange: P
|
|
2873
|
-
}, null, 42,
|
|
2873
|
+
}, null, 42, qi),
|
|
2874
2874
|
e.menuOptionConfig?.renderer ? (E(), i(j(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: b.value }), null, 16, ["selected"])) : (E(), i(Ni, _({ key: 1 }, T.value, {
|
|
2875
2875
|
menuOptionConfig: e.menuOptionConfig,
|
|
2876
2876
|
queryText: e.queryText,
|
|
@@ -2908,10 +2908,10 @@ var ki = {
|
|
|
2908
2908
|
}, [u(X, {
|
|
2909
2909
|
name: e.chevronIcon ?? "chevron-right",
|
|
2910
2910
|
size: 12
|
|
2911
|
-
}, null, 8, ["name"])], 8,
|
|
2912
|
-
], 14,
|
|
2911
|
+
}, null, 8, ["name"])], 8, Ji)) : a("", !0)
|
|
2912
|
+
], 14, Ki));
|
|
2913
2913
|
}
|
|
2914
|
-
}), [["__scopeId", "data-v-a93608b0"]]),
|
|
2914
|
+
}), [["__scopeId", "data-v-a93608b0"]]), Xi = ["data-active"], Zi = { key: 0 }, Qi = 4, $i = /* @__PURE__ */ d({
|
|
2915
2915
|
inheritAttrs: !1,
|
|
2916
2916
|
__name: "PvMenuItem",
|
|
2917
2917
|
props: /* @__PURE__ */ g({
|
|
@@ -2943,84 +2943,84 @@ 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 = L(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), g = O(!1), v = O(!1), b = O(i.children ?? []), S = O(/* @__PURE__ */ new Set());
|
|
2947
|
+
U(() => i.children, (e) => {
|
|
2948
2948
|
if (!e) {
|
|
2949
|
-
|
|
2949
|
+
b.value = [];
|
|
2950
2950
|
return;
|
|
2951
2951
|
}
|
|
2952
|
-
let t =
|
|
2953
|
-
|
|
2952
|
+
let t = b.value.filter((e) => S.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2953
|
+
b.value = [...e, ...r], v.value = !1;
|
|
2954
2954
|
});
|
|
2955
|
-
let
|
|
2956
|
-
|
|
2957
|
-
},
|
|
2955
|
+
let C = () => {
|
|
2956
|
+
h.value = !h.value;
|
|
2957
|
+
}, w = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
|
|
2958
2958
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2959
2959
|
return r;
|
|
2960
|
-
}),
|
|
2960
|
+
}), D = r(() => Ci({
|
|
2961
2961
|
...i,
|
|
2962
|
-
children:
|
|
2963
|
-
}) && i.level <
|
|
2964
|
-
if (
|
|
2962
|
+
children: b.value
|
|
2963
|
+
}) && i.level < Qi), A = r(() => D.value ? l.value ? h.value || !!i.disabled : !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 = (e) => M(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, F = n, I = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), R = async () => {
|
|
2964
|
+
if (g.value) return;
|
|
2965
2965
|
if (!i.handleSeeMore) {
|
|
2966
|
-
|
|
2966
|
+
F("see-more", {
|
|
2967
2967
|
parentId: i.id,
|
|
2968
|
-
offset:
|
|
2968
|
+
offset: b.value.length
|
|
2969
2969
|
});
|
|
2970
2970
|
return;
|
|
2971
2971
|
}
|
|
2972
2972
|
let e = f?.value?.has(i.id) ?? !1;
|
|
2973
|
-
|
|
2973
|
+
g.value = !0;
|
|
2974
2974
|
try {
|
|
2975
2975
|
let t = await i.handleSeeMore({
|
|
2976
2976
|
parentId: i.id,
|
|
2977
|
-
offset:
|
|
2977
|
+
offset: b.value.length
|
|
2978
2978
|
});
|
|
2979
2979
|
if (Array.isArray(t) && t.length > 0) {
|
|
2980
|
-
let n = new Set(
|
|
2980
|
+
let n = new Set(b.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2981
2981
|
if (r.length === 0) {
|
|
2982
|
-
|
|
2982
|
+
v.value = !0;
|
|
2983
2983
|
return;
|
|
2984
2984
|
}
|
|
2985
|
-
let a = new Set(
|
|
2985
|
+
let a = new Set(S.value);
|
|
2986
2986
|
for (let e of r) a.add(e.id);
|
|
2987
|
-
if (
|
|
2987
|
+
if (S.value = a, b.value = [...b.value, ...r], e && s?.value) {
|
|
2988
2988
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
2989
2989
|
if (t.length > 0) {
|
|
2990
2990
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
2991
2991
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
|
-
} else Array.isArray(t) && (
|
|
2994
|
+
} else Array.isArray(t) && (v.value = !0);
|
|
2995
2995
|
} finally {
|
|
2996
|
-
|
|
2996
|
+
g.value = !1;
|
|
2997
2997
|
}
|
|
2998
|
-
},
|
|
2999
|
-
if (l.value &&
|
|
3000
|
-
|
|
2998
|
+
}, z = (e) => {
|
|
2999
|
+
if (l.value && D.value && e.option.id === i.id && !d.value) {
|
|
3000
|
+
C();
|
|
3001
3001
|
return;
|
|
3002
3002
|
}
|
|
3003
3003
|
if (!s) {
|
|
3004
3004
|
let t = c.value.indexOf(e.option.id);
|
|
3005
3005
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
3006
3006
|
}
|
|
3007
|
-
|
|
3008
|
-
},
|
|
3009
|
-
|
|
3007
|
+
F("handle-selected", e);
|
|
3008
|
+
}, B = (e) => {
|
|
3009
|
+
F("handle-selected", e);
|
|
3010
3010
|
};
|
|
3011
3011
|
return (n, r) => {
|
|
3012
3012
|
let s = ee("PvMenuItem", !0);
|
|
3013
|
-
return E(), o(t, null, [u(
|
|
3014
|
-
children:
|
|
3013
|
+
return E(), o(t, null, [u(Yi, _(T.value, {
|
|
3014
|
+
children: b.value,
|
|
3015
3015
|
menuOptionConfig: e.config,
|
|
3016
3016
|
queryText: e.queryText,
|
|
3017
3017
|
highlightSearchText: e.highlightSearchText,
|
|
3018
|
-
showChevron: P(l) &&
|
|
3019
|
-
chevronIcon:
|
|
3020
|
-
expanded:
|
|
3021
|
-
onHandleSelected:
|
|
3022
|
-
onToggleExpanded:
|
|
3023
|
-
selected:
|
|
3018
|
+
showChevron: P(l) && D.value,
|
|
3019
|
+
chevronIcon: j.value,
|
|
3020
|
+
expanded: h.value,
|
|
3021
|
+
onHandleSelected: z,
|
|
3022
|
+
onToggleExpanded: C,
|
|
3023
|
+
selected: M(i)
|
|
3024
3024
|
}), null, 16, [
|
|
3025
3025
|
"children",
|
|
3026
3026
|
"menuOptionConfig",
|
|
@@ -3030,13 +3030,13 @@ var ki = {
|
|
|
3030
3030
|
"chevronIcon",
|
|
3031
3031
|
"expanded",
|
|
3032
3032
|
"selected"
|
|
3033
|
-
]),
|
|
3033
|
+
]), A.value ? (E(), o("ul", {
|
|
3034
3034
|
key: 0,
|
|
3035
3035
|
role: "list",
|
|
3036
|
-
style: x(
|
|
3037
|
-
}, [(E(!0), o(t, null, k(
|
|
3036
|
+
style: x(w.value)
|
|
3037
|
+
}, [(E(!0), o(t, null, k(b.value, (t) => G((E(), o("li", {
|
|
3038
3038
|
key: t.id,
|
|
3039
|
-
"data-active":
|
|
3039
|
+
"data-active": M(t) ? "true" : null,
|
|
3040
3040
|
class: y(e.itemClass)
|
|
3041
3041
|
}, [u(s, _({ ref_for: !0 }, t, {
|
|
3042
3042
|
disabled: i.disabled || t.disabled,
|
|
@@ -3046,8 +3046,8 @@ var ki = {
|
|
|
3046
3046
|
queryText: e.queryText,
|
|
3047
3047
|
highlightSearchText: e.highlightSearchText,
|
|
3048
3048
|
level: e.level + 1,
|
|
3049
|
-
onHandleSelected:
|
|
3050
|
-
onSeeMore: r[1] ||= (e) =>
|
|
3049
|
+
onHandleSelected: B,
|
|
3050
|
+
onSeeMore: r[1] ||= (e) => F("see-more", e)
|
|
3051
3051
|
}), null, 16, [
|
|
3052
3052
|
"disabled",
|
|
3053
3053
|
"selectedIds",
|
|
@@ -3055,20 +3055,20 @@ var ki = {
|
|
|
3055
3055
|
"queryText",
|
|
3056
3056
|
"highlightSearchText",
|
|
3057
3057
|
"level"
|
|
3058
|
-
])], 10,
|
|
3058
|
+
])], 10, Xi)), [[H, !i.disabled || N(t)]])), 128)), I.value ? (E(), o("li", Zi, [u(Q, {
|
|
3059
3059
|
class: "pv-text-brand",
|
|
3060
3060
|
variant: "ghost",
|
|
3061
3061
|
label: "See more",
|
|
3062
|
-
loading:
|
|
3062
|
+
loading: g.value,
|
|
3063
3063
|
"data-testid": "pv-menu-item-see-more",
|
|
3064
|
-
onClick:
|
|
3064
|
+
onClick: R
|
|
3065
3065
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}),
|
|
3068
|
+
}), ea = {
|
|
3069
3069
|
role: "list",
|
|
3070
3070
|
class: "pv-popover-list"
|
|
3071
|
-
},
|
|
3071
|
+
}, ta = ["data-active", "data-testid"], na = { key: 0 }, ra = /* @__PURE__ */ d({
|
|
3072
3072
|
__name: "PvMenu",
|
|
3073
3073
|
props: /* @__PURE__ */ g({
|
|
3074
3074
|
options: {},
|
|
@@ -3081,20 +3081,19 @@ var ki = {
|
|
|
3081
3081
|
singleSelect: { type: Boolean },
|
|
3082
3082
|
enableCascadeSelection: { type: Boolean },
|
|
3083
3083
|
hasMoreOptions: { type: Boolean },
|
|
3084
|
-
readOnly: { type: Boolean }
|
|
3085
|
-
hideUnselectedInReadOnly: { type: Boolean }
|
|
3084
|
+
readOnly: { type: Boolean }
|
|
3086
3085
|
}, {
|
|
3087
3086
|
selectedItems: { default: () => [] },
|
|
3088
3087
|
selectedItemsModifiers: {}
|
|
3089
3088
|
}),
|
|
3090
3089
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
3091
3090
|
setup(e, { emit: n }) {
|
|
3092
|
-
let i = e, s = n, c =
|
|
3093
|
-
|
|
3091
|
+
let i = e, s = n, c = L(e, "selectedItems"), l = M(c.value);
|
|
3092
|
+
U(c, (e) => {
|
|
3094
3093
|
l.value = e;
|
|
3095
|
-
}),
|
|
3094
|
+
}), U(l, (e) => {
|
|
3096
3095
|
e !== c.value && (c.value = e);
|
|
3097
|
-
}), D(zi, l), D(Bi, r(() => !!i.enableCascadeSelection))
|
|
3096
|
+
}), D(zi, l), D(Bi, r(() => !!i.enableCascadeSelection));
|
|
3098
3097
|
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) => {
|
|
3099
3098
|
if (i.readOnly) return;
|
|
3100
3099
|
let t = e.option, n;
|
|
@@ -3131,13 +3130,13 @@ var ki = {
|
|
|
3131
3130
|
}, b = r(() => new Set(l.value.map((e) => e.id))), x = (e) => {
|
|
3132
3131
|
for (let t of e) if (b.value.has(t.id) || t.children?.length && x(t.children)) return !0;
|
|
3133
3132
|
return !1;
|
|
3134
|
-
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C =
|
|
3135
|
-
return (n, r) => (E(), o("ul",
|
|
3133
|
+
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => !!(!t || b.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && x(e.children));
|
|
3134
|
+
return (n, r) => (E(), o("ul", ea, [(E(!0), o(t, null, k(e.options, (t) => G((E(), o("li", {
|
|
3136
3135
|
key: t.id,
|
|
3137
3136
|
"data-active": S(t),
|
|
3138
3137
|
"data-testid": e.itemTestId,
|
|
3139
3138
|
class: y(e.itemClass)
|
|
3140
|
-
}, [u(
|
|
3139
|
+
}, [u($i, _({ ref_for: !0 }, t, {
|
|
3141
3140
|
disabled: i.readOnly || t.disabled,
|
|
3142
3141
|
config: e.config,
|
|
3143
3142
|
itemClass: e.itemClass,
|
|
@@ -3149,7 +3148,7 @@ var ki = {
|
|
|
3149
3148
|
"config",
|
|
3150
3149
|
"itemClass",
|
|
3151
3150
|
"queryText"
|
|
3152
|
-
])], 10,
|
|
3151
|
+
])], 10, ta)), [[H, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (E(), o("li", na, [u(Q, {
|
|
3153
3152
|
class: "pv-text-brand",
|
|
3154
3153
|
variant: "ghost",
|
|
3155
3154
|
label: "See more",
|
|
@@ -3159,34 +3158,34 @@ var ki = {
|
|
|
3159
3158
|
onClick: r[1] ||= (e) => s("see-more", { parentId: void 0 })
|
|
3160
3159
|
}, null, 8, ["loading", "disabled"])])) : a("", !0)]));
|
|
3161
3160
|
}
|
|
3162
|
-
}),
|
|
3161
|
+
}), ia = {
|
|
3163
3162
|
key: 0,
|
|
3164
3163
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
3165
|
-
},
|
|
3164
|
+
}, aa = {
|
|
3166
3165
|
key: 1,
|
|
3167
3166
|
class: "pv-inset-square-8"
|
|
3168
|
-
},
|
|
3167
|
+
}, oa = {
|
|
3169
3168
|
key: 1,
|
|
3170
3169
|
class: "pv-text-body-sm pv-inset-inline",
|
|
3171
3170
|
style: {
|
|
3172
3171
|
color: "#89989b",
|
|
3173
3172
|
"--inset-size": "8px"
|
|
3174
3173
|
}
|
|
3175
|
-
},
|
|
3174
|
+
}, sa = {
|
|
3176
3175
|
key: 2,
|
|
3177
3176
|
class: "pv-border-top",
|
|
3178
3177
|
style: { margin: "8px 0" }
|
|
3179
|
-
},
|
|
3178
|
+
}, ca = {
|
|
3180
3179
|
key: 3,
|
|
3181
3180
|
class: "pv-flex pv-inset-square-8",
|
|
3182
3181
|
style: { "justify-content": "center" }
|
|
3183
|
-
},
|
|
3182
|
+
}, la = {
|
|
3184
3183
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
3185
3184
|
style: {
|
|
3186
3185
|
"--flex-justify": "space-between",
|
|
3187
3186
|
"--bottom": "0"
|
|
3188
3187
|
}
|
|
3189
|
-
},
|
|
3188
|
+
}, ua = /* @__PURE__ */ d({
|
|
3190
3189
|
__name: "PvMultiSelectButton",
|
|
3191
3190
|
props: /* @__PURE__ */ g({
|
|
3192
3191
|
companyLogo: {},
|
|
@@ -3211,10 +3210,6 @@ var ki = {
|
|
|
3211
3210
|
type: Boolean,
|
|
3212
3211
|
default: !1
|
|
3213
3212
|
},
|
|
3214
|
-
hideUnselectedInReadOnly: {
|
|
3215
|
-
type: Boolean,
|
|
3216
|
-
default: !1
|
|
3217
|
-
},
|
|
3218
3213
|
enableCascadeSelection: {
|
|
3219
3214
|
type: Boolean,
|
|
3220
3215
|
default: !1
|
|
@@ -3306,26 +3301,26 @@ var ki = {
|
|
|
3306
3301
|
state: "deselected"
|
|
3307
3302
|
}))), t.push(r);
|
|
3308
3303
|
}
|
|
3309
|
-
for (let n of
|
|
3304
|
+
for (let n of re.value) e.has(n.id) || t.push({
|
|
3310
3305
|
id: n.id,
|
|
3311
3306
|
state: "selected"
|
|
3312
3307
|
});
|
|
3313
3308
|
return t;
|
|
3314
3309
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
3315
3310
|
let e = c.additionalCounter ?? 0;
|
|
3316
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
3317
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
3318
|
-
let t = new Set(
|
|
3311
|
+
if (c.enableCascadeSelection && c.countSelectedParents && R.value?.length) return Di(R.value) + e;
|
|
3312
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return re.value.length + e;
|
|
3313
|
+
let t = new Set(re.value.map((e) => e.id));
|
|
3319
3314
|
return Ei(c.options, t) + e;
|
|
3320
|
-
}), T = r(() =>
|
|
3315
|
+
}), T = r(() => re.value.length > 0 ? !0 : c.enableCascadeSelection && R.value?.length ? R.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3321
3316
|
g("see-more", e ?? {});
|
|
3322
|
-
}, ee =
|
|
3323
|
-
|
|
3324
|
-
}, B = () => {
|
|
3325
|
-
ne.value && (F.value = U.value, L.value = S());
|
|
3317
|
+
}, ee = z("searchInputRef"), [j, F] = le(c.defaultOpen), I = L(e, "modelValue"), R = L(e, "selectionState"), B = L(e, "searchInput"), te = r(() => c.menuActionsVariant === "cancel-confirm"), ne = (e) => {
|
|
3318
|
+
re.value = e, te.value || (I.value = e, R.value = S());
|
|
3326
3319
|
}, V = () => {
|
|
3327
|
-
|
|
3328
|
-
},
|
|
3320
|
+
te.value && (I.value = re.value, R.value = S());
|
|
3321
|
+
}, H = () => {
|
|
3322
|
+
te.value && (re.value = I.value);
|
|
3323
|
+
}, re = M(I.value), G = (e) => d.value.get(e), ie = (e) => {
|
|
3329
3324
|
if (!c.enableCascadeSelection || !e) return;
|
|
3330
3325
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
3331
3326
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -3343,37 +3338,37 @@ var ki = {
|
|
|
3343
3338
|
}
|
|
3344
3339
|
a(G(r.id), r.id);
|
|
3345
3340
|
}
|
|
3346
|
-
f.value = t, m.value = n,
|
|
3341
|
+
f.value = t, m.value = n, re.value = r;
|
|
3347
3342
|
}, K = r({
|
|
3348
|
-
get: () =>
|
|
3343
|
+
get: () => re.value,
|
|
3349
3344
|
set: (e) => {
|
|
3350
|
-
c.readOnly ||
|
|
3345
|
+
c.readOnly || ne(e);
|
|
3351
3346
|
}
|
|
3352
3347
|
}), ae = () => {
|
|
3353
|
-
|
|
3348
|
+
B.value = "", j.value = !1;
|
|
3354
3349
|
}, q = r(() => {
|
|
3355
3350
|
let e = c.size === "lg" ? 24 : 30;
|
|
3356
3351
|
return c.overlayTrigger ? -e : void 0;
|
|
3357
3352
|
});
|
|
3358
|
-
|
|
3359
|
-
if (c.enableCascadeSelection &&
|
|
3360
|
-
ie(
|
|
3353
|
+
U(() => I.value, (e) => {
|
|
3354
|
+
if (c.enableCascadeSelection && R.value?.length && e.length === 0) {
|
|
3355
|
+
ie(R.value);
|
|
3361
3356
|
return;
|
|
3362
3357
|
}
|
|
3363
|
-
|
|
3364
|
-
}),
|
|
3365
|
-
ie(
|
|
3358
|
+
re.value = e;
|
|
3359
|
+
}), U(() => [R.value, c.options], () => {
|
|
3360
|
+
ie(R.value);
|
|
3366
3361
|
}, {
|
|
3367
3362
|
deep: !0,
|
|
3368
3363
|
immediate: !0
|
|
3369
|
-
}),
|
|
3370
|
-
e ? (
|
|
3364
|
+
}), U(j, (e) => {
|
|
3365
|
+
e ? (H(), v(() => {
|
|
3371
3366
|
c.overlayTrigger && !c.disableSearchInput && ee.value?.input?.focus(), g("dropdown-open");
|
|
3372
|
-
})) : (
|
|
3367
|
+
})) : (H(), g("dropdown-closed"));
|
|
3373
3368
|
});
|
|
3374
3369
|
let se = r(() => {
|
|
3375
|
-
if (
|
|
3376
|
-
let e =
|
|
3370
|
+
if (B.value === "") return c.options;
|
|
3371
|
+
let e = B.value.toLocaleLowerCase();
|
|
3377
3372
|
return c.enableCascadeSelection ? Oi(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3378
3373
|
}), ce = () => {
|
|
3379
3374
|
if (c.enableCascadeSelection) {
|
|
@@ -3382,13 +3377,13 @@ var ki = {
|
|
|
3382
3377
|
};
|
|
3383
3378
|
t(se.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3384
3379
|
}
|
|
3385
|
-
|
|
3380
|
+
ne(c.enableCascadeSelection ? wi(se.value) : se.value);
|
|
3386
3381
|
}, ue = () => {
|
|
3387
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
3382
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), ne([]);
|
|
3388
3383
|
}, de = () => {
|
|
3389
|
-
|
|
3384
|
+
H(), ae();
|
|
3390
3385
|
}, J = () => {
|
|
3391
|
-
|
|
3386
|
+
V(), ae();
|
|
3392
3387
|
}, fe = r(() => {
|
|
3393
3388
|
if (!c.groupings) return;
|
|
3394
3389
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3401,14 +3396,14 @@ var ki = {
|
|
|
3401
3396
|
}
|
|
3402
3397
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
3403
3398
|
return Array.from(e.entries());
|
|
3404
|
-
}), Y = r(() => c.groupings &&
|
|
3399
|
+
}), Y = r(() => c.groupings && B.value === ""), pe = r(() => ({
|
|
3405
3400
|
...c,
|
|
3406
|
-
selectedItems:
|
|
3407
|
-
searchInput:
|
|
3401
|
+
selectedItems: I.value,
|
|
3402
|
+
searchInput: B.value,
|
|
3408
3403
|
slotContext: c.slotContext,
|
|
3409
3404
|
isOpen: j.value,
|
|
3410
3405
|
isLoading: c.isLoading
|
|
3411
|
-
})), me =
|
|
3406
|
+
})), me = z("popoverContentRef"), he = r(() => {
|
|
3412
3407
|
let e = me.value?.getRootNode();
|
|
3413
3408
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3414
3409
|
}), { present: ge } = Un("header", { host: he }), { present: _e } = Un("no-results", { host: he }), { present: ve } = Un("footer", { host: he });
|
|
@@ -3433,9 +3428,9 @@ var ki = {
|
|
|
3433
3428
|
open: P(j),
|
|
3434
3429
|
"counter-value": w.value,
|
|
3435
3430
|
"counter-style": e.counterStyle,
|
|
3436
|
-
"selected-items":
|
|
3431
|
+
"selected-items": re.value,
|
|
3437
3432
|
onHandleClear: ue,
|
|
3438
|
-
onHandleToggleDropdown: r[0] ||= (e) => P(
|
|
3433
|
+
onHandleToggleDropdown: r[0] ||= (e) => P(F)()
|
|
3439
3434
|
}, null, 8, [
|
|
3440
3435
|
"variant",
|
|
3441
3436
|
"size",
|
|
@@ -3462,10 +3457,10 @@ var ki = {
|
|
|
3462
3457
|
...e.popoverCssProperties
|
|
3463
3458
|
})
|
|
3464
3459
|
}, [
|
|
3465
|
-
e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
3460
|
+
e.disableSearchInput ? a("", !0) : (E(), o("div", ia, [u(Wr, {
|
|
3466
3461
|
ref: "searchInputRef",
|
|
3467
|
-
"model-value":
|
|
3468
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
3462
|
+
"model-value": B.value,
|
|
3463
|
+
"onUpdate:modelValue": r[1] ||= (e) => B.value = e,
|
|
3469
3464
|
class: "pv-stack-4",
|
|
3470
3465
|
placeholder: e.searchPlaceholder,
|
|
3471
3466
|
disabled: e.readOnly
|
|
@@ -3474,15 +3469,15 @@ var ki = {
|
|
|
3474
3469
|
"placeholder",
|
|
3475
3470
|
"disabled"
|
|
3476
3471
|
])])),
|
|
3477
|
-
n.$slots.header || P(ge) ? (E(), o("div",
|
|
3472
|
+
n.$slots.header || P(ge) ? (E(), o("div", aa, [A(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
3478
3473
|
se.value.length > 0 ? (E(), o(t, { key: 2 }, [Y.value ? (E(!0), o(t, { key: 0 }, k(fe.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3479
|
-
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span",
|
|
3480
|
-
u(
|
|
3474
|
+
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", oa, N(t), 1)),
|
|
3475
|
+
u(ra, {
|
|
3481
3476
|
selectedItems: K.value,
|
|
3482
3477
|
"onUpdate:selectedItems": r[2] ||= (e) => K.value = e,
|
|
3483
3478
|
options: i,
|
|
3484
3479
|
config: l.value,
|
|
3485
|
-
queryText: e.highlightSearchText ?
|
|
3480
|
+
queryText: e.highlightSearchText ? B.value : null,
|
|
3486
3481
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
3487
3482
|
itemClass: "pv-stack-4",
|
|
3488
3483
|
isLoading: e.isLoading,
|
|
@@ -3490,7 +3485,6 @@ var ki = {
|
|
|
3490
3485
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3491
3486
|
hasMoreOptions: s === fe.value.length - 1 && C.value && !e.isLoading,
|
|
3492
3487
|
readOnly: e.readOnly,
|
|
3493
|
-
hideUnselectedInReadOnly: e.hideUnselectedInReadOnly,
|
|
3494
3488
|
onSeeMore: O
|
|
3495
3489
|
}, null, 8, [
|
|
3496
3490
|
"selectedItems",
|
|
@@ -3502,24 +3496,22 @@ var ki = {
|
|
|
3502
3496
|
"isSeeMoreLoading",
|
|
3503
3497
|
"enableCascadeSelection",
|
|
3504
3498
|
"hasMoreOptions",
|
|
3505
|
-
"readOnly"
|
|
3506
|
-
"hideUnselectedInReadOnly"
|
|
3499
|
+
"readOnly"
|
|
3507
3500
|
]),
|
|
3508
|
-
fe.value && s !== fe.value.length - 1 ? (E(), o("div",
|
|
3509
|
-
]))), 128)) : (E(), i(
|
|
3501
|
+
fe.value && s !== fe.value.length - 1 ? (E(), o("div", sa)) : a("", !0)
|
|
3502
|
+
]))), 128)) : (E(), i(ra, {
|
|
3510
3503
|
key: 1,
|
|
3511
3504
|
selectedItems: K.value,
|
|
3512
3505
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
3513
3506
|
options: se.value,
|
|
3514
3507
|
config: l.value,
|
|
3515
|
-
queryText: e.highlightSearchText ?
|
|
3508
|
+
queryText: e.highlightSearchText ? B.value : null,
|
|
3516
3509
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3517
3510
|
itemClass: "pv-stack-4",
|
|
3518
3511
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3519
3512
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
3520
3513
|
hasMoreOptions: C.value && !e.isLoading,
|
|
3521
3514
|
readOnly: e.readOnly,
|
|
3522
|
-
hideUnselectedInReadOnly: e.hideUnselectedInReadOnly,
|
|
3523
3515
|
onSeeMore: O
|
|
3524
3516
|
}, null, 8, [
|
|
3525
3517
|
"selectedItems",
|
|
@@ -3530,11 +3522,10 @@ var ki = {
|
|
|
3530
3522
|
"enableCascadeSelection",
|
|
3531
3523
|
"isSeeMoreLoading",
|
|
3532
3524
|
"hasMoreOptions",
|
|
3533
|
-
"readOnly"
|
|
3534
|
-
"hideUnselectedInReadOnly"
|
|
3525
|
+
"readOnly"
|
|
3535
3526
|
]))], 64)) : a("", !0),
|
|
3536
|
-
e.isLoading ? (E(), o("div",
|
|
3537
|
-
s("div",
|
|
3527
|
+
e.isLoading ? (E(), o("div", ca, [u(Oe, { variant: "dark" })])) : se.value.length === 0 ? (E(), o(t, { key: 4 }, [P(_e) ? A(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (E(), i(Si, { key: 1 }))], 64)) : a("", !0),
|
|
3528
|
+
s("div", la, [P(ve) ? A(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(ui, {
|
|
3538
3529
|
key: 1,
|
|
3539
3530
|
variant: e.menuActionsVariant,
|
|
3540
3531
|
disabled: e.isLoading,
|
|
@@ -3547,10 +3538,10 @@ var ki = {
|
|
|
3547
3538
|
_: 3
|
|
3548
3539
|
}, 16, ["modelValue", "offset"]));
|
|
3549
3540
|
}
|
|
3550
|
-
}),
|
|
3541
|
+
}), da = {
|
|
3551
3542
|
key: 0,
|
|
3552
3543
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
3553
|
-
},
|
|
3544
|
+
}, fa = /* @__PURE__ */ d({
|
|
3554
3545
|
__name: "PvSelectButton",
|
|
3555
3546
|
props: /* @__PURE__ */ g({
|
|
3556
3547
|
defaultOpen: { type: Boolean },
|
|
@@ -3598,8 +3589,8 @@ var ki = {
|
|
|
3598
3589
|
action: n.optionsAction,
|
|
3599
3590
|
variant: n.optionsVariant,
|
|
3600
3591
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3601
|
-
})), l = t, [d] = le(n.defaultOpen), f =
|
|
3602
|
-
|
|
3592
|
+
})), l = t, [d] = le(n.defaultOpen), f = L(e, "modelValue"), p = L(e, "searchInput");
|
|
3593
|
+
U(d, (e) => {
|
|
3603
3594
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3604
3595
|
});
|
|
3605
3596
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
@@ -3686,12 +3677,12 @@ var ki = {
|
|
|
3686
3677
|
class: "pv-popover",
|
|
3687
3678
|
"data-test-id": "pv-popover",
|
|
3688
3679
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
3689
|
-
}, [e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
3680
|
+
}, [e.disableSearchInput ? a("", !0) : (E(), o("div", da, [u(Wr, {
|
|
3690
3681
|
"model-value": p.value,
|
|
3691
3682
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
3692
3683
|
class: "pv-stack-4",
|
|
3693
3684
|
placeholder: e.searchPlaceholder
|
|
3694
|
-
}, null, 8, ["model-value", "placeholder"])])), b.value.length > 0 ? (E(), i(
|
|
3685
|
+
}, null, 8, ["model-value", "placeholder"])])), b.value.length > 0 ? (E(), i(ra, {
|
|
3695
3686
|
key: 1,
|
|
3696
3687
|
selectedItems: S.value,
|
|
3697
3688
|
"onUpdate:selectedItems": n[1] ||= (e) => S.value = e,
|
|
@@ -3709,18 +3700,18 @@ var ki = {
|
|
|
3709
3700
|
_: 1
|
|
3710
3701
|
}, 16, ["modelValue"]));
|
|
3711
3702
|
}
|
|
3712
|
-
}),
|
|
3703
|
+
}), pa = {
|
|
3713
3704
|
short: 5,
|
|
3714
3705
|
long: 7
|
|
3715
|
-
},
|
|
3716
|
-
if (n <=
|
|
3706
|
+
}, ma = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
3707
|
+
if (n <= pa[e]) return Array.from({ length: n }, (e, t) => ({
|
|
3717
3708
|
page: t + 1,
|
|
3718
3709
|
label: (t + 1).toString()
|
|
3719
3710
|
}));
|
|
3720
3711
|
let r = [{
|
|
3721
3712
|
page: 1,
|
|
3722
3713
|
label: "1"
|
|
3723
|
-
}], i =
|
|
3714
|
+
}], i = pa[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
3724
3715
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
3725
3716
|
page: 0,
|
|
3726
3717
|
label: "..."
|
|
@@ -3739,11 +3730,11 @@ var ki = {
|
|
|
3739
3730
|
page: n,
|
|
3740
3731
|
label: n.toString()
|
|
3741
3732
|
}), r;
|
|
3742
|
-
} }),
|
|
3733
|
+
} }), ha = ["data-style"], ga = ["data-testid", "aria-current"], _a = {
|
|
3743
3734
|
key: 0,
|
|
3744
3735
|
class: "dots-button",
|
|
3745
3736
|
disabled: ""
|
|
3746
|
-
},
|
|
3737
|
+
}, va = ["onClick"], ya = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
3747
3738
|
__name: "PvPagination",
|
|
3748
3739
|
props: /* @__PURE__ */ g({
|
|
3749
3740
|
size: { default: "lg" },
|
|
@@ -3756,7 +3747,7 @@ var ki = {
|
|
|
3756
3747
|
}),
|
|
3757
3748
|
emits: ["update:modelValue"],
|
|
3758
3749
|
setup(e) {
|
|
3759
|
-
let { getPaginations: n } =
|
|
3750
|
+
let { getPaginations: n } = ma({ variant: e.variant }), r = L(e, "modelValue");
|
|
3760
3751
|
return (i, a) => (E(), o("ol", {
|
|
3761
3752
|
role: "list",
|
|
3762
3753
|
class: "pv-pagination",
|
|
@@ -3778,10 +3769,10 @@ var ki = {
|
|
|
3778
3769
|
key: e.page,
|
|
3779
3770
|
"data-testid": `pagination-button-${e.page}`,
|
|
3780
3771
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
3781
|
-
}, [e.label === "..." ? (E(), o("button",
|
|
3772
|
+
}, [e.label === "..." ? (E(), o("button", _a, N(e.label), 1)) : (E(), o("button", {
|
|
3782
3773
|
key: 1,
|
|
3783
3774
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
3784
|
-
}, N(e.label), 9,
|
|
3775
|
+
}, N(e.label), 9, va))], 8, ga))), 128)),
|
|
3785
3776
|
s("li", null, [u(Q, {
|
|
3786
3777
|
"data-testid": "pagination-right-arrow-icon",
|
|
3787
3778
|
disabled: r.value === e.maxPages,
|
|
@@ -3790,14 +3781,14 @@ var ki = {
|
|
|
3790
3781
|
variant: "ghost",
|
|
3791
3782
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
3792
3783
|
}, null, 8, ["disabled"])])
|
|
3793
|
-
], 8,
|
|
3784
|
+
], 8, ha));
|
|
3794
3785
|
}
|
|
3795
|
-
}), [["__scopeId", "data-v-6c36dca2"]]),
|
|
3786
|
+
}), [["__scopeId", "data-v-6c36dca2"]]), ba = ["for"], xa = [
|
|
3796
3787
|
"checked",
|
|
3797
3788
|
"type",
|
|
3798
3789
|
"value",
|
|
3799
3790
|
"id"
|
|
3800
|
-
],
|
|
3791
|
+
], Sa = /* @__PURE__ */ d({
|
|
3801
3792
|
__name: "PvSelectableCard",
|
|
3802
3793
|
props: {
|
|
3803
3794
|
variant: { default: "default" },
|
|
@@ -3819,34 +3810,34 @@ var ki = {
|
|
|
3819
3810
|
type: e.deselect ? "checkbox" : "radio",
|
|
3820
3811
|
value: e.value,
|
|
3821
3812
|
id: t.value
|
|
3822
|
-
}, null, 8,
|
|
3813
|
+
}, null, 8, xa), A(n.$slots, "default")], 10, ba));
|
|
3823
3814
|
}
|
|
3824
|
-
}),
|
|
3815
|
+
}), Ca = { class: "pv-layout-two-sidebar" }, wa = ["data-hidden"], Ta = { "data-layout": "main-section" }, Ea = ["data-hidden"], Da = /* @__PURE__ */ d({
|
|
3825
3816
|
__name: "PvSidePanel",
|
|
3826
3817
|
props: {
|
|
3827
3818
|
showLeftSidebar: { type: Boolean },
|
|
3828
3819
|
showRightSidebar: { type: Boolean }
|
|
3829
3820
|
},
|
|
3830
3821
|
setup(e) {
|
|
3831
|
-
return (t, n) => (E(), o("div",
|
|
3822
|
+
return (t, n) => (E(), o("div", Ca, [
|
|
3832
3823
|
s("div", {
|
|
3833
3824
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
3834
3825
|
"data-testid": "pv-side-panel-left",
|
|
3835
3826
|
"data-layout": "left-sidebar"
|
|
3836
|
-
}, [A(t.$slots, "left-sidebar")], 8,
|
|
3837
|
-
s("div",
|
|
3827
|
+
}, [A(t.$slots, "left-sidebar")], 8, wa),
|
|
3828
|
+
s("div", Ta, [A(t.$slots, "main")]),
|
|
3838
3829
|
s("div", {
|
|
3839
3830
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
3840
3831
|
"data-testid": "pv-side-panel-right",
|
|
3841
3832
|
"data-layout": "right-sidebar"
|
|
3842
|
-
}, [A(t.$slots, "right-sidebar")], 8,
|
|
3833
|
+
}, [A(t.$slots, "right-sidebar")], 8, Ea)
|
|
3843
3834
|
]));
|
|
3844
3835
|
}
|
|
3845
|
-
}),
|
|
3836
|
+
}), Oa = ["data-style"], ka = [
|
|
3846
3837
|
"placeholder",
|
|
3847
3838
|
"disabled",
|
|
3848
3839
|
"name"
|
|
3849
|
-
],
|
|
3840
|
+
], Aa = /* @__PURE__ */ d({
|
|
3850
3841
|
__name: "PvGhostInput",
|
|
3851
3842
|
props: /* @__PURE__ */ g({
|
|
3852
3843
|
variant: { default: "h1" },
|
|
@@ -3859,7 +3850,7 @@ var ki = {
|
|
|
3859
3850
|
}),
|
|
3860
3851
|
emits: ["update:modelValue"],
|
|
3861
3852
|
setup(e) {
|
|
3862
|
-
let t =
|
|
3853
|
+
let t = z("inputRef"), n = {
|
|
3863
3854
|
h1: "ghost-input-h1",
|
|
3864
3855
|
h2: "ghost-input-h2",
|
|
3865
3856
|
h3: "ghost-input-h3",
|
|
@@ -3877,12 +3868,12 @@ var ki = {
|
|
|
3877
3868
|
"text-md": "text-medium",
|
|
3878
3869
|
"text-lg": "text-large",
|
|
3879
3870
|
caption: "caption"
|
|
3880
|
-
}, c = e, l =
|
|
3871
|
+
}, c = e, l = L(e, "modelValue"), u = O(0), d = () => {
|
|
3881
3872
|
t.value?.focus();
|
|
3882
3873
|
};
|
|
3883
3874
|
C(() => {
|
|
3884
3875
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
3885
|
-
}),
|
|
3876
|
+
}), U(() => l.value, () => {
|
|
3886
3877
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
3887
3878
|
});
|
|
3888
3879
|
let f = (e) => {
|
|
@@ -3908,7 +3899,7 @@ var ki = {
|
|
|
3908
3899
|
placeholder: e.placeholder,
|
|
3909
3900
|
disabled: e.disabled,
|
|
3910
3901
|
name: n[e.variant]
|
|
3911
|
-
}), null, 16,
|
|
3902
|
+
}), null, 16, ka), [[V, l.value]]),
|
|
3912
3903
|
e.showEditIcon ? (E(), i(Q, {
|
|
3913
3904
|
key: 0,
|
|
3914
3905
|
"left-icon": "edit",
|
|
@@ -3916,16 +3907,16 @@ var ki = {
|
|
|
3916
3907
|
variant: "ghost",
|
|
3917
3908
|
onClick: d
|
|
3918
3909
|
})) : a("", !0)
|
|
3919
|
-
], 8,
|
|
3910
|
+
], 8, Oa));
|
|
3920
3911
|
}
|
|
3921
|
-
}),
|
|
3912
|
+
}), ja = {
|
|
3922
3913
|
key: 0,
|
|
3923
3914
|
class: "pv-text-title-lg"
|
|
3924
|
-
},
|
|
3915
|
+
}, Ma = ["id"], Na = { class: "pv-flex" }, Pa = ["id"], Fa = {
|
|
3925
3916
|
key: 0,
|
|
3926
3917
|
class: "pv-border-left",
|
|
3927
3918
|
style: { "padding-inline-start": "0.5rem" }
|
|
3928
|
-
},
|
|
3919
|
+
}, Ia = /* @__PURE__ */ d({
|
|
3929
3920
|
__name: "PvHeader",
|
|
3930
3921
|
props: {
|
|
3931
3922
|
title: {},
|
|
@@ -3942,21 +3933,21 @@ var ki = {
|
|
|
3942
3933
|
return (t, n) => (E(), o("div", {
|
|
3943
3934
|
class: y(["pv-inset-square pv-flex pv-space-between pv-border-bottom pv-surface", { "pv-sticky": e.sticky }]),
|
|
3944
3935
|
style: { "--inset-size": "0.5rem 1rem" }
|
|
3945
|
-
}, [e.title ? (E(), o("span",
|
|
3936
|
+
}, [e.title ? (E(), o("span", ja, N(e.title), 1)) : (E(), o("div", {
|
|
3946
3937
|
key: 1,
|
|
3947
3938
|
id: e.headerTitleId,
|
|
3948
3939
|
class: "pv-flex"
|
|
3949
|
-
}, [A(t.$slots, "left")], 8,
|
|
3940
|
+
}, [A(t.$slots, "left")], 8, Ma)), s("div", Na, [s("div", {
|
|
3950
3941
|
id: e.headerActionsId,
|
|
3951
3942
|
class: "pv-flex"
|
|
3952
|
-
}, [A(t.$slots, "right")], 8,
|
|
3943
|
+
}, [A(t.$slots, "right")], 8, Pa), e.showAskTqButton ? (E(), o("div", Fa, [u(zn, {
|
|
3953
3944
|
id: e.askTqButtonId,
|
|
3954
3945
|
label: "AskTQ",
|
|
3955
3946
|
size: "lg",
|
|
3956
3947
|
"hide-icon": ""
|
|
3957
3948
|
}, null, 8, ["id"])])) : a("", !0)])], 2));
|
|
3958
3949
|
}
|
|
3959
|
-
}),
|
|
3950
|
+
}), La = { class: "pv-flex" }, Ra = /* @__PURE__ */ d({
|
|
3960
3951
|
__name: "PvCompanyLabel",
|
|
3961
3952
|
props: {
|
|
3962
3953
|
size: { default: "md" },
|
|
@@ -3969,15 +3960,15 @@ var ki = {
|
|
|
3969
3960
|
sm: "pv-text-body-md",
|
|
3970
3961
|
md: "pv-text-body-md"
|
|
3971
3962
|
};
|
|
3972
|
-
return (n, r) => (E(), o("div",
|
|
3963
|
+
return (n, r) => (E(), o("div", La, [u(_r, {
|
|
3973
3964
|
name: e.logo ? e.logo : e.label,
|
|
3974
3965
|
size: e.size
|
|
3975
3966
|
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) }, N(e.label), 3)]));
|
|
3976
3967
|
}
|
|
3977
|
-
}),
|
|
3968
|
+
}), za = ["data-more"], Ba = ["src", "alt"], Va = {
|
|
3978
3969
|
key: 2,
|
|
3979
3970
|
class: "pv-avatar-sm"
|
|
3980
|
-
},
|
|
3971
|
+
}, Ha = /* @__PURE__ */ d({
|
|
3981
3972
|
__name: "PvAvatarGroup",
|
|
3982
3973
|
props: {
|
|
3983
3974
|
items: {},
|
|
@@ -4000,15 +3991,15 @@ var ki = {
|
|
|
4000
3991
|
key: 1,
|
|
4001
3992
|
src: e.image,
|
|
4002
3993
|
alt: e.alt ?? ""
|
|
4003
|
-
}, null, 8,
|
|
3994
|
+
}, null, 8, Ba)) : (E(), o("div", Va))]))), 128))], 8, za));
|
|
4004
3995
|
}
|
|
4005
|
-
}),
|
|
3996
|
+
}), Ua = ["for"], Wa = [
|
|
4006
3997
|
"id",
|
|
4007
3998
|
"type",
|
|
4008
3999
|
"value",
|
|
4009
4000
|
"name",
|
|
4010
4001
|
"disabled"
|
|
4011
|
-
],
|
|
4002
|
+
], Ga = { key: 1 }, Ka = /* @__PURE__ */ d({
|
|
4012
4003
|
__name: "PvToggleButton",
|
|
4013
4004
|
props: /* @__PURE__ */ g({
|
|
4014
4005
|
size: { default: "xl" },
|
|
@@ -4032,7 +4023,7 @@ var ki = {
|
|
|
4032
4023
|
}),
|
|
4033
4024
|
emits: ["update:modelValue"],
|
|
4034
4025
|
setup(e) {
|
|
4035
|
-
let t = e, n =
|
|
4026
|
+
let t = e, n = L(e, "modelValue"), c = {
|
|
4036
4027
|
secondary: "tertiary",
|
|
4037
4028
|
tertiary: "tertiary",
|
|
4038
4029
|
ghost: "ghost"
|
|
@@ -4058,12 +4049,12 @@ var ki = {
|
|
|
4058
4049
|
value: e.value,
|
|
4059
4050
|
name: e.name,
|
|
4060
4051
|
disabled: e.disabled
|
|
4061
|
-
}, null, 8,
|
|
4052
|
+
}, null, 8, Wa), [[te, n.value]]),
|
|
4062
4053
|
e.leftIcon ? (E(), i(X, {
|
|
4063
4054
|
key: 0,
|
|
4064
4055
|
name: e.leftIcon
|
|
4065
4056
|
}, null, 8, ["name"])) : a("", !0),
|
|
4066
|
-
e.label ? (E(), o("span",
|
|
4057
|
+
e.label ? (E(), o("span", Ga, N(e.label), 1)) : a("", !0),
|
|
4067
4058
|
e.rightIcon ? (E(), i(X, {
|
|
4068
4059
|
key: 2,
|
|
4069
4060
|
name: e.rightIcon
|
|
@@ -4073,15 +4064,15 @@ var ki = {
|
|
|
4073
4064
|
value: e.rightCounterBadge,
|
|
4074
4065
|
variant: u.value
|
|
4075
4066
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
4076
|
-
], 10,
|
|
4067
|
+
], 10, Ua));
|
|
4077
4068
|
}
|
|
4078
|
-
}),
|
|
4069
|
+
}), qa = { class: "pv-flex" }, Ja = [
|
|
4079
4070
|
"name",
|
|
4080
4071
|
"value",
|
|
4081
4072
|
"checked",
|
|
4082
4073
|
"disabled",
|
|
4083
4074
|
"onChange"
|
|
4084
|
-
],
|
|
4075
|
+
], Ya = { key: 1 }, Xa = /* @__PURE__ */ d({
|
|
4085
4076
|
__name: "PvToggleGroup",
|
|
4086
4077
|
props: /* @__PURE__ */ g({
|
|
4087
4078
|
disabled: { type: Boolean },
|
|
@@ -4094,7 +4085,7 @@ var ki = {
|
|
|
4094
4085
|
}),
|
|
4095
4086
|
emits: ["update:modelValue"],
|
|
4096
4087
|
setup(e) {
|
|
4097
|
-
let n = e, r =
|
|
4088
|
+
let n = e, r = L(e, "modelValue"), c = O(`toggle-group-${Math.random().toString(36).substr(2, 9)}`), l = (e) => {
|
|
4098
4089
|
if (!e.disabled) {
|
|
4099
4090
|
if (r.value?.value === e.value) {
|
|
4100
4091
|
n.allowDeselect && (r.value = null);
|
|
@@ -4103,7 +4094,7 @@ var ki = {
|
|
|
4103
4094
|
r.value = e;
|
|
4104
4095
|
}
|
|
4105
4096
|
};
|
|
4106
|
-
return (n, u) => (E(), o("div",
|
|
4097
|
+
return (n, u) => (E(), o("div", qa, [(E(!0), o(t, null, k(e.options, (t) => (E(), i(Pn, {
|
|
4107
4098
|
key: t.value,
|
|
4108
4099
|
description: e.hideLabels ? t.label : ""
|
|
4109
4100
|
}, {
|
|
@@ -4116,21 +4107,21 @@ var ki = {
|
|
|
4116
4107
|
class: "pv-radio",
|
|
4117
4108
|
disabled: e.disabled || t.disabled,
|
|
4118
4109
|
onChange: (e) => l(t)
|
|
4119
|
-
}, null, 40,
|
|
4110
|
+
}, null, 40, Ja),
|
|
4120
4111
|
t.icon ? (E(), i(X, {
|
|
4121
4112
|
key: 0,
|
|
4122
4113
|
name: t.icon
|
|
4123
4114
|
}, null, 8, ["name"])) : a("", !0),
|
|
4124
|
-
e.hideLabels ? a("", !0) : (E(), o("span",
|
|
4115
|
+
e.hideLabels ? a("", !0) : (E(), o("span", Ya, N(t.label), 1))
|
|
4125
4116
|
], 2)]),
|
|
4126
4117
|
_: 2
|
|
4127
4118
|
}, 1032, ["description"]))), 128))]));
|
|
4128
4119
|
}
|
|
4129
|
-
}),
|
|
4120
|
+
}), Za = [
|
|
4130
4121
|
"aria-label",
|
|
4131
4122
|
"disabled",
|
|
4132
4123
|
"indeterminate"
|
|
4133
|
-
],
|
|
4124
|
+
], Qa = /* @__PURE__ */ d({
|
|
4134
4125
|
__name: "PvCheckbox",
|
|
4135
4126
|
props: /* @__PURE__ */ g({
|
|
4136
4127
|
ariaLabel: {},
|
|
@@ -4142,7 +4133,7 @@ var ki = {
|
|
|
4142
4133
|
}),
|
|
4143
4134
|
emits: ["update:modelValue"],
|
|
4144
4135
|
setup(e) {
|
|
4145
|
-
let t =
|
|
4136
|
+
let t = L(e, "modelValue");
|
|
4146
4137
|
return (n, r) => G((E(), o("input", {
|
|
4147
4138
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
4148
4139
|
class: "pv-checkbox",
|
|
@@ -4151,13 +4142,13 @@ var ki = {
|
|
|
4151
4142
|
"aria-label": e.ariaLabel,
|
|
4152
4143
|
disabled: e.disabled,
|
|
4153
4144
|
indeterminate: e.indeterminate
|
|
4154
|
-
}, null, 8,
|
|
4145
|
+
}, null, 8, Za)), [[B, t.value]]);
|
|
4155
4146
|
}
|
|
4156
|
-
}),
|
|
4147
|
+
}), $a = ["aria-label", "aria-labelledby"], eo = ["id"], to = [
|
|
4157
4148
|
"name",
|
|
4158
4149
|
"value",
|
|
4159
4150
|
"disabled"
|
|
4160
|
-
],
|
|
4151
|
+
], no = /* @__PURE__ */ d({
|
|
4161
4152
|
__name: "PvRadioGroup",
|
|
4162
4153
|
props: /* @__PURE__ */ g({
|
|
4163
4154
|
options: { default: () => [] },
|
|
@@ -4179,7 +4170,7 @@ var ki = {
|
|
|
4179
4170
|
}),
|
|
4180
4171
|
emits: ["update:modelValue"],
|
|
4181
4172
|
setup(e) {
|
|
4182
|
-
let n = e, i =
|
|
4173
|
+
let n = e, i = L(e, "modelValue"), c = I(), u = I(), d = r(() => n.name ?? c), f = r(() => n.orientation === "vertical" ? { "--flex-align": "flex-start" } : {});
|
|
4183
4174
|
return (n, r) => (E(), o("div", {
|
|
4184
4175
|
role: "radiogroup",
|
|
4185
4176
|
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
@@ -4188,7 +4179,7 @@ var ki = {
|
|
|
4188
4179
|
key: 0,
|
|
4189
4180
|
id: P(u),
|
|
4190
4181
|
class: "pv-label pv-stack-8"
|
|
4191
|
-
}, N(e.label), 9,
|
|
4182
|
+
}, N(e.label), 9, eo)) : a("", !0), s("div", {
|
|
4192
4183
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
4193
4184
|
style: x(f.value)
|
|
4194
4185
|
}, [(E(!0), o(t, null, k(e.options, (t) => (E(), o("label", {
|
|
@@ -4201,9 +4192,9 @@ var ki = {
|
|
|
4201
4192
|
name: d.value,
|
|
4202
4193
|
value: t.value,
|
|
4203
4194
|
disabled: e.disabled || t.disabled
|
|
4204
|
-
}, null, 8,
|
|
4195
|
+
}, null, 8, to), [[ne, i.value]]), l(" " + N(t.label), 1)]))), 128))], 6)], 8, $a));
|
|
4205
4196
|
}
|
|
4206
|
-
}),
|
|
4197
|
+
}), ro = /* @__PURE__ */ d({
|
|
4207
4198
|
__name: "PvSprite",
|
|
4208
4199
|
props: {
|
|
4209
4200
|
src: {},
|
|
@@ -4224,7 +4215,7 @@ var ki = {
|
|
|
4224
4215
|
id: "pv-sprite-content"
|
|
4225
4216
|
}, null, -1)]));
|
|
4226
4217
|
}
|
|
4227
|
-
}),
|
|
4218
|
+
}), io = /* @__PURE__ */ d({
|
|
4228
4219
|
__name: "PvSkeleton",
|
|
4229
4220
|
props: {
|
|
4230
4221
|
size: { default: "md" },
|
|
@@ -4251,18 +4242,18 @@ var ki = {
|
|
|
4251
4242
|
"width"
|
|
4252
4243
|
]));
|
|
4253
4244
|
}
|
|
4254
|
-
}),
|
|
4245
|
+
}), ao = ["for"], oo = {
|
|
4255
4246
|
key: 0,
|
|
4256
4247
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
4257
4248
|
style: { "--inset-size": "6px 10px" }
|
|
4258
|
-
},
|
|
4249
|
+
}, so = { class: "pv-relative pv-flex-item" }, co = [
|
|
4259
4250
|
"disabled",
|
|
4260
4251
|
"type",
|
|
4261
4252
|
"placeholder",
|
|
4262
4253
|
"id",
|
|
4263
4254
|
"data-invalid",
|
|
4264
4255
|
"step"
|
|
4265
|
-
],
|
|
4256
|
+
], lo = /* @__PURE__ */ d({
|
|
4266
4257
|
__name: "PvInput",
|
|
4267
4258
|
props: /* @__PURE__ */ g({
|
|
4268
4259
|
showLabel: { type: Boolean },
|
|
@@ -4282,15 +4273,15 @@ var ki = {
|
|
|
4282
4273
|
}),
|
|
4283
4274
|
emits: ["update:modelValue"],
|
|
4284
4275
|
setup(e) {
|
|
4285
|
-
let n = e, c =
|
|
4276
|
+
let n = e, c = L(e, "modelValue"), l = r(() => n.inputIcon ? { "--inset-size": "8px 12px 6px 36px" } : {});
|
|
4286
4277
|
return (n, r) => (E(), o(t, null, [
|
|
4287
4278
|
n.$slots.label || e.showLabel ? (E(), o("label", {
|
|
4288
4279
|
key: 0,
|
|
4289
4280
|
"data-testid": "pv-input-label",
|
|
4290
4281
|
class: "pv-label pv-stack-8",
|
|
4291
4282
|
for: e.id
|
|
4292
|
-
}, [A(n.$slots, "label")], 8,
|
|
4293
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div",
|
|
4283
|
+
}, [A(n.$slots, "label")], 8, ao)) : a("", !0),
|
|
4284
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div", oo, N(e.prefixLabel), 1)) : a("", !0), s("div", so, [e.inputIcon ? (E(), i(X, {
|
|
4294
4285
|
key: 0,
|
|
4295
4286
|
class: "pv-absolute input-icon-position",
|
|
4296
4287
|
name: e.inputIcon
|
|
@@ -4308,7 +4299,7 @@ var ki = {
|
|
|
4308
4299
|
id: e.id,
|
|
4309
4300
|
"data-invalid": e.error ? !0 : void 0,
|
|
4310
4301
|
step: e.step
|
|
4311
|
-
}), null, 16,
|
|
4302
|
+
}), null, 16, co), [[te, c.value]])])], 2),
|
|
4312
4303
|
e.lowerLabel ? (E(), o("p", {
|
|
4313
4304
|
key: 1,
|
|
4314
4305
|
"data-testid": "pv-input-lower-label",
|
|
@@ -4320,7 +4311,7 @@ var ki = {
|
|
|
4320
4311
|
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4321
4312
|
], 64));
|
|
4322
4313
|
}
|
|
4323
|
-
}),
|
|
4314
|
+
}), uo = ["data-rating"], fo = ["value"], po = /* @__PURE__ */ d({
|
|
4324
4315
|
__name: "PvRating",
|
|
4325
4316
|
props: {
|
|
4326
4317
|
variant: { default: "dot" },
|
|
@@ -4339,9 +4330,9 @@ var ki = {
|
|
|
4339
4330
|
min: "0",
|
|
4340
4331
|
max: "5",
|
|
4341
4332
|
value: e.value
|
|
4342
|
-
}, "4.0 stars", 8,
|
|
4333
|
+
}, "4.0 stars", 8, fo)], 12, uo));
|
|
4343
4334
|
}
|
|
4344
|
-
}),
|
|
4335
|
+
}), mo = /* @__PURE__ */ d({
|
|
4345
4336
|
__name: "PvCard",
|
|
4346
4337
|
props: {
|
|
4347
4338
|
href: {},
|
|
@@ -4367,34 +4358,34 @@ var ki = {
|
|
|
4367
4358
|
"class"
|
|
4368
4359
|
]));
|
|
4369
4360
|
}
|
|
4370
|
-
}),
|
|
4361
|
+
}), ho = /* @__PURE__ */ d({
|
|
4371
4362
|
__name: "PvWidget",
|
|
4372
4363
|
setup(e) {
|
|
4373
|
-
return (e, t) => (E(), i(
|
|
4364
|
+
return (e, t) => (E(), i(mo, { class: "pv-inset-square-16" }, {
|
|
4374
4365
|
default: W(() => [A(e.$slots, "default")]),
|
|
4375
4366
|
_: 3
|
|
4376
4367
|
}));
|
|
4377
4368
|
}
|
|
4378
|
-
}),
|
|
4369
|
+
}), go = {
|
|
4379
4370
|
class: "pv-flex-vertical",
|
|
4380
4371
|
style: {
|
|
4381
4372
|
"--flex-align": "flex-start",
|
|
4382
4373
|
"--flex-gap": "0.25rem"
|
|
4383
4374
|
}
|
|
4384
|
-
},
|
|
4375
|
+
}, _o = {
|
|
4385
4376
|
key: 0,
|
|
4386
4377
|
class: "pv-flex",
|
|
4387
4378
|
style: { "--flex-gap": "0.25rem" }
|
|
4388
|
-
},
|
|
4379
|
+
}, vo = { class: "pv-text-body-sm" }, yo = {
|
|
4389
4380
|
key: 1,
|
|
4390
4381
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
4391
|
-
},
|
|
4382
|
+
}, bo = {
|
|
4392
4383
|
key: 2,
|
|
4393
4384
|
class: "pv-heading-2"
|
|
4394
|
-
},
|
|
4385
|
+
}, xo = {
|
|
4395
4386
|
key: 3,
|
|
4396
4387
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
4397
|
-
},
|
|
4388
|
+
}, So = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4398
4389
|
__name: "PvInsightCard",
|
|
4399
4390
|
props: {
|
|
4400
4391
|
icon: { default: "ai" },
|
|
@@ -4414,22 +4405,22 @@ var ki = {
|
|
|
4414
4405
|
emits: ["click", "icon-click"],
|
|
4415
4406
|
setup(e) {
|
|
4416
4407
|
let t = e, n = r(() => t.icon || t.insight);
|
|
4417
|
-
return (t, r) => (E(), i(
|
|
4408
|
+
return (t, r) => (E(), i(mo, {
|
|
4418
4409
|
variant: "secondary",
|
|
4419
4410
|
interactive: e.interactive,
|
|
4420
4411
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
4421
4412
|
class: "pv-relative"
|
|
4422
4413
|
}, {
|
|
4423
|
-
default: W(() => [s("div",
|
|
4424
|
-
n.value ? (E(), o("div",
|
|
4414
|
+
default: W(() => [s("div", go, [
|
|
4415
|
+
n.value ? (E(), o("div", _o, [e.icon ? (E(), i(X, {
|
|
4425
4416
|
key: 0,
|
|
4426
4417
|
style: { color: "#218c88" },
|
|
4427
4418
|
name: e.icon,
|
|
4428
4419
|
size: 12
|
|
4429
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
4430
|
-
e.upperLabel ? (E(), o("span",
|
|
4431
|
-
e.title ? (E(), o("span",
|
|
4432
|
-
e.description ? (E(), o("span",
|
|
4420
|
+
}, null, 8, ["name"])) : a("", !0), s("span", vo, N(e.insight), 1)])) : a("", !0),
|
|
4421
|
+
e.upperLabel ? (E(), o("span", yo, N(e.upperLabel), 1)) : a("", !0),
|
|
4422
|
+
e.title ? (E(), o("span", bo, N(e.title), 1)) : a("", !0),
|
|
4423
|
+
e.description ? (E(), o("span", xo, N(e.description), 1)) : a("", !0)
|
|
4433
4424
|
]), e.showButton ? (E(), i(Q, {
|
|
4434
4425
|
key: 0,
|
|
4435
4426
|
"left-icon": "new-tab",
|
|
@@ -4442,7 +4433,7 @@ var ki = {
|
|
|
4442
4433
|
_: 1
|
|
4443
4434
|
}, 8, ["interactive"]));
|
|
4444
4435
|
}
|
|
4445
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
4436
|
+
}), [["__scopeId", "data-v-c1185c07"]]), Co = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4446
4437
|
__name: "PvExpandableContent",
|
|
4447
4438
|
props: {
|
|
4448
4439
|
lines: { default: 4 },
|
|
@@ -4480,7 +4471,7 @@ var ki = {
|
|
|
4480
4471
|
"left-icon": i.value ? "chevron-up" : "chevron-down"
|
|
4481
4472
|
}, null, 8, ["label", "left-icon"])], 6));
|
|
4482
4473
|
}
|
|
4483
|
-
}), [["__scopeId", "data-v-06cc192f"]]),
|
|
4474
|
+
}), [["__scopeId", "data-v-06cc192f"]]), wo = { class: "pv-text-body-md" }, To = /* @__PURE__ */ d({
|
|
4484
4475
|
__name: "PvToast",
|
|
4485
4476
|
props: {
|
|
4486
4477
|
variant: { default: "info" },
|
|
@@ -4505,7 +4496,7 @@ var ki = {
|
|
|
4505
4496
|
name: e.icon ? e.icon : n[e.variant],
|
|
4506
4497
|
size: 20
|
|
4507
4498
|
}, null, 8, ["name"]),
|
|
4508
|
-
s("p",
|
|
4499
|
+
s("p", wo, N(e.label), 1),
|
|
4509
4500
|
A(r.$slots, "default"),
|
|
4510
4501
|
u(Q, {
|
|
4511
4502
|
variant: "ghost",
|
|
@@ -4517,25 +4508,25 @@ var ki = {
|
|
|
4517
4508
|
}, null, 8, ["inverse"])
|
|
4518
4509
|
], 2));
|
|
4519
4510
|
}
|
|
4520
|
-
}),
|
|
4511
|
+
}), Eo = ["data-style"], Do = /* @__PURE__ */ d({
|
|
4521
4512
|
__name: "PvActionBar",
|
|
4522
4513
|
props: { variant: { default: "white" } },
|
|
4523
4514
|
setup(e) {
|
|
4524
4515
|
return (t, n) => (E(), o("div", {
|
|
4525
4516
|
class: "pv-action-bar-container",
|
|
4526
4517
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
4527
|
-
}, [A(t.$slots, "default")], 8,
|
|
4518
|
+
}, [A(t.$slots, "default")], 8, Eo));
|
|
4528
4519
|
}
|
|
4529
|
-
}),
|
|
4520
|
+
}), Oo = {
|
|
4530
4521
|
class: "pv-flex-vertical",
|
|
4531
4522
|
style: { "--flex-align": "flex-start" }
|
|
4532
|
-
},
|
|
4523
|
+
}, ko = ["for"], Ao = [
|
|
4533
4524
|
"rows",
|
|
4534
4525
|
"disabled",
|
|
4535
4526
|
"placeholder",
|
|
4536
4527
|
"id",
|
|
4537
4528
|
"data-invalid"
|
|
4538
|
-
],
|
|
4529
|
+
], jo = /* @__PURE__ */ d({
|
|
4539
4530
|
__name: "PvTextArea",
|
|
4540
4531
|
props: /* @__PURE__ */ g({
|
|
4541
4532
|
error: { type: Boolean },
|
|
@@ -4551,13 +4542,13 @@ var ki = {
|
|
|
4551
4542
|
}),
|
|
4552
4543
|
emits: ["update:modelValue"],
|
|
4553
4544
|
setup(e) {
|
|
4554
|
-
let t =
|
|
4555
|
-
return (n, r) => (E(), o("div",
|
|
4545
|
+
let t = L(e, "modelValue");
|
|
4546
|
+
return (n, r) => (E(), o("div", Oo, [
|
|
4556
4547
|
n.$slots.label ? (E(), o("label", {
|
|
4557
4548
|
key: 0,
|
|
4558
4549
|
class: "pv-label",
|
|
4559
4550
|
for: e.id
|
|
4560
|
-
}, [A(n.$slots, "label")], 8,
|
|
4551
|
+
}, [A(n.$slots, "label")], 8, ko)) : a("", !0),
|
|
4561
4552
|
G(s("textarea", _(n.$attrs, {
|
|
4562
4553
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
4563
4554
|
class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
|
|
@@ -4566,7 +4557,7 @@ var ki = {
|
|
|
4566
4557
|
placeholder: e.placeholder,
|
|
4567
4558
|
id: e.id,
|
|
4568
4559
|
"data-invalid": e.error ? !0 : void 0
|
|
4569
|
-
}), null, 16,
|
|
4560
|
+
}), null, 16, Ao), [[V, t.value]]),
|
|
4570
4561
|
e.lowerLabel ? (E(), o("p", {
|
|
4571
4562
|
key: 1,
|
|
4572
4563
|
style: { "margin-left": "12px" },
|
|
@@ -4577,20 +4568,20 @@ var ki = {
|
|
|
4577
4568
|
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4578
4569
|
]));
|
|
4579
4570
|
}
|
|
4580
|
-
}),
|
|
4571
|
+
}), Mo = {
|
|
4581
4572
|
class: "pv-flex pv-truncate",
|
|
4582
4573
|
style: {
|
|
4583
4574
|
"min-width": "0",
|
|
4584
4575
|
"min-height": "20px"
|
|
4585
4576
|
}
|
|
4586
|
-
},
|
|
4577
|
+
}, No = ["title"], Po = /* @__PURE__ */ d({
|
|
4587
4578
|
__name: "PvSimpleItemTree",
|
|
4588
4579
|
props: {
|
|
4589
4580
|
label: {},
|
|
4590
4581
|
icon: {}
|
|
4591
4582
|
},
|
|
4592
4583
|
setup(e) {
|
|
4593
|
-
return (t, n) => (E(), o("div",
|
|
4584
|
+
return (t, n) => (E(), o("div", Mo, [e.icon ? (E(), i(X, {
|
|
4594
4585
|
key: 0,
|
|
4595
4586
|
name: e.icon
|
|
4596
4587
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -4600,9 +4591,9 @@ var ki = {
|
|
|
4600
4591
|
"min-width": "0"
|
|
4601
4592
|
},
|
|
4602
4593
|
title: e.label
|
|
4603
|
-
}, N(e.label), 9,
|
|
4594
|
+
}, N(e.label), 9, No)]));
|
|
4604
4595
|
}
|
|
4605
|
-
}),
|
|
4596
|
+
}), Fo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4606
4597
|
__name: "PvTreeReorderIcon",
|
|
4607
4598
|
setup(e) {
|
|
4608
4599
|
return (e, t) => (E(), i(X, {
|
|
@@ -4610,7 +4601,7 @@ var ki = {
|
|
|
4610
4601
|
class: "reorder-icon pv-text-tertiary"
|
|
4611
4602
|
}));
|
|
4612
4603
|
}
|
|
4613
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
4604
|
+
}), [["__scopeId", "data-v-1efb9068"]]), Io = /* @__PURE__ */ d({
|
|
4614
4605
|
__name: "PvButtonTreeItem",
|
|
4615
4606
|
props: {
|
|
4616
4607
|
selected: { type: Boolean },
|
|
@@ -4645,7 +4636,7 @@ var ki = {
|
|
|
4645
4636
|
_: 3
|
|
4646
4637
|
}, 8, ["class"]));
|
|
4647
4638
|
}
|
|
4648
|
-
}),
|
|
4639
|
+
}), Lo = /* @__PURE__ */ d({
|
|
4649
4640
|
__name: "PvCheckboxTreeItem",
|
|
4650
4641
|
props: {
|
|
4651
4642
|
selected: { type: Boolean },
|
|
@@ -4674,13 +4665,13 @@ var ki = {
|
|
|
4674
4665
|
"pv-tree-item-selected": e.selected,
|
|
4675
4666
|
"pv-tree-item-disabled": e.disableSelection
|
|
4676
4667
|
}
|
|
4677
|
-
]) }, [e.disableSelection ? a("", !0) : (E(), i(
|
|
4668
|
+
]) }, [e.disableSelection ? a("", !0) : (E(), i(Qa, {
|
|
4678
4669
|
key: 0,
|
|
4679
4670
|
checked: e.selected,
|
|
4680
4671
|
onClick: s
|
|
4681
4672
|
}, null, 8, ["checked"])), A(t.$slots, "default")], 2));
|
|
4682
4673
|
}
|
|
4683
|
-
}),
|
|
4674
|
+
}), Ro = () => {
|
|
4684
4675
|
let e = O(null);
|
|
4685
4676
|
return {
|
|
4686
4677
|
hoveredId: e,
|
|
@@ -4691,15 +4682,15 @@ var ki = {
|
|
|
4691
4682
|
e.value = null;
|
|
4692
4683
|
}
|
|
4693
4684
|
};
|
|
4694
|
-
},
|
|
4685
|
+
}, zo = Symbol("DraggingStateKey"), Bo = Symbol("DraggingGroupNameKey"), Vo = Symbol("DropIndicatorKey"), Ho = () => {
|
|
4695
4686
|
let e = O(!1), t = O(null), n = O(null);
|
|
4696
|
-
return D(
|
|
4687
|
+
return D(zo, e), D(Bo, t), D(Vo, n), {
|
|
4697
4688
|
isDragging: e,
|
|
4698
4689
|
draggingGroupName: t,
|
|
4699
4690
|
dropIndicator: n
|
|
4700
4691
|
};
|
|
4701
|
-
},
|
|
4702
|
-
let e = m(
|
|
4692
|
+
}, Uo = () => {
|
|
4693
|
+
let e = m(zo, O(!1)), t = m(Bo, O(null)), n = m(Vo, O(null)), r = (n) => {
|
|
4703
4694
|
e.value = !0, t.value = n ?? null;
|
|
4704
4695
|
}, i = () => {
|
|
4705
4696
|
e.value = !1, t.value = null, o();
|
|
@@ -4721,8 +4712,8 @@ var ki = {
|
|
|
4721
4712
|
onDragStart: r,
|
|
4722
4713
|
onDragEnd: i
|
|
4723
4714
|
};
|
|
4724
|
-
},
|
|
4725
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
4715
|
+
}, Wo = () => {
|
|
4716
|
+
let { setDropIndicator: e, clearDropIndicator: t } = Uo();
|
|
4726
4717
|
return {
|
|
4727
4718
|
getDragGroupConfig: (e, t) => {
|
|
4728
4719
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -4757,8 +4748,8 @@ var ki = {
|
|
|
4757
4748
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
4758
4749
|
}
|
|
4759
4750
|
};
|
|
4760
|
-
},
|
|
4761
|
-
let { dropIndicator: e } =
|
|
4751
|
+
}, Go = () => {
|
|
4752
|
+
let { dropIndicator: e } = Uo();
|
|
4762
4753
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
4763
4754
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
4764
4755
|
return {
|
|
@@ -4767,13 +4758,13 @@ var ki = {
|
|
|
4767
4758
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
4768
4759
|
};
|
|
4769
4760
|
} };
|
|
4770
|
-
},
|
|
4761
|
+
}, Ko = { class: "pv-flex pv-full-width" }, qo = {
|
|
4771
4762
|
key: 0,
|
|
4772
4763
|
class: "tree-component-nested-middle-symbol"
|
|
4773
|
-
},
|
|
4764
|
+
}, Jo = {
|
|
4774
4765
|
key: 1,
|
|
4775
4766
|
class: "tree-component-end-symbol"
|
|
4776
|
-
},
|
|
4767
|
+
}, Yo = ["data-parent-id"], Xo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4777
4768
|
__name: "PvSimpleNestedTreeItem",
|
|
4778
4769
|
props: {
|
|
4779
4770
|
option: {},
|
|
@@ -4790,9 +4781,9 @@ var ki = {
|
|
|
4790
4781
|
},
|
|
4791
4782
|
emits: ["handle-tree-select", "update:children"],
|
|
4792
4783
|
setup(e, { emit: t }) {
|
|
4793
|
-
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } =
|
|
4784
|
+
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } = Uo(), { dragAndDropIndicatorClasses: m } = Go(), { hoveredId: h, handleMouseEnter: g, handleMouseLeave: _ } = Ro(), { canItemBeDragged: v, getDragAndDropDisabled: b, handleMoveCallback: S, getDragGroupConfig: C, canAcceptDrop: w } = Wo(), T = () => {
|
|
4794
4785
|
f(C(n.settings, n.option).name);
|
|
4795
|
-
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ?
|
|
4786
|
+
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ? Lo : Io), k = r(() => n.settings[n.parentField]?.showNestedTree), A = r(() => n.index === n.totalSiblings - 1), M = r({
|
|
4796
4787
|
get: () => [...n.option.children || []],
|
|
4797
4788
|
set: (e) => {
|
|
4798
4789
|
c("update:children", {
|
|
@@ -4822,7 +4813,7 @@ var ki = {
|
|
|
4822
4813
|
onMouseleave: n[2] ||= (e) => P(_)(),
|
|
4823
4814
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4824
4815
|
}, {
|
|
4825
|
-
default: W(() => [G(u(
|
|
4816
|
+
default: W(() => [G(u(Fo, null, null, 512), [[H, 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), {
|
|
4826
4817
|
key: 2,
|
|
4827
4818
|
option: e.option,
|
|
4828
4819
|
settings: e.settings,
|
|
@@ -4833,7 +4824,7 @@ var ki = {
|
|
|
4833
4824
|
"settings",
|
|
4834
4825
|
"is-draggable",
|
|
4835
4826
|
"params"
|
|
4836
|
-
])) : (E(), i(
|
|
4827
|
+
])) : (E(), i(Po, {
|
|
4837
4828
|
key: 3,
|
|
4838
4829
|
label: e.option.label,
|
|
4839
4830
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4895,13 +4886,13 @@ var ki = {
|
|
|
4895
4886
|
"class",
|
|
4896
4887
|
"onEnd",
|
|
4897
4888
|
"onAdd"
|
|
4898
|
-
])], 8,
|
|
4889
|
+
])], 8, Yo)], 6);
|
|
4899
4890
|
};
|
|
4900
4891
|
}
|
|
4901
|
-
}), [["__scopeId", "data-v-ecab1929"]]),
|
|
4892
|
+
}), [["__scopeId", "data-v-ecab1929"]]), Zo = {
|
|
4902
4893
|
class: "pv-flow",
|
|
4903
4894
|
style: { "--flow-size": "0px" }
|
|
4904
|
-
},
|
|
4895
|
+
}, Qo = ["data-parent-id"], $o = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4905
4896
|
__name: "PvSimpleNestedTree",
|
|
4906
4897
|
props: {
|
|
4907
4898
|
option: {},
|
|
@@ -4914,9 +4905,9 @@ var ki = {
|
|
|
4914
4905
|
},
|
|
4915
4906
|
emits: ["handle-tree-select", "update:children"],
|
|
4916
4907
|
setup(e, { emit: t }) {
|
|
4917
|
-
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
4908
|
+
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = Ro(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = Wo(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = Uo(), { dragAndDropIndicatorClasses: C } = Go(), w = () => {
|
|
4918
4909
|
b(h(n.settings, n.option).name);
|
|
4919
|
-
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ?
|
|
4910
|
+
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ? Lo : Io, A = r({
|
|
4920
4911
|
get: () => [...n.option.children || []],
|
|
4921
4912
|
set: (e) => {
|
|
4922
4913
|
a("update:children", {
|
|
@@ -4925,7 +4916,7 @@ var ki = {
|
|
|
4925
4916
|
});
|
|
4926
4917
|
}
|
|
4927
4918
|
}), ee = r(() => n.isParentPathOpen ?? !0);
|
|
4928
|
-
return (t, n) => (E(), o("div",
|
|
4919
|
+
return (t, n) => (E(), o("div", Zo, [(E(), i(j(k(e.option)), {
|
|
4929
4920
|
option: e.option,
|
|
4930
4921
|
selected: O(e.option.node_id),
|
|
4931
4922
|
"disable-selection": e.disableSelection,
|
|
@@ -4941,7 +4932,7 @@ var ki = {
|
|
|
4941
4932
|
onMouseleave: n[2] ||= (e) => P(d)(),
|
|
4942
4933
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4943
4934
|
}, {
|
|
4944
|
-
default: W(() => [G(u(
|
|
4935
|
+
default: W(() => [G(u(Fo, null, null, 512), [[H, 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), {
|
|
4945
4936
|
key: 0,
|
|
4946
4937
|
option: e.option,
|
|
4947
4938
|
settings: e.settings,
|
|
@@ -4952,7 +4943,7 @@ var ki = {
|
|
|
4952
4943
|
"settings",
|
|
4953
4944
|
"selected",
|
|
4954
4945
|
"params"
|
|
4955
|
-
])) : (E(), i(
|
|
4946
|
+
])) : (E(), i(Po, {
|
|
4956
4947
|
key: 1,
|
|
4957
4948
|
label: e.option.label,
|
|
4958
4949
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4979,7 +4970,7 @@ var ki = {
|
|
|
4979
4970
|
onEnd: P(S),
|
|
4980
4971
|
onAdd: P(S)
|
|
4981
4972
|
}, {
|
|
4982
|
-
item: W(({ element: r, index: i }) => [u(
|
|
4973
|
+
item: W(({ element: r, index: i }) => [u(Xo, {
|
|
4983
4974
|
"is-parent-path-open": e.isParentPathOpen,
|
|
4984
4975
|
option: r,
|
|
4985
4976
|
settings: e.settings,
|
|
@@ -5014,9 +5005,9 @@ var ki = {
|
|
|
5014
5005
|
"class",
|
|
5015
5006
|
"onEnd",
|
|
5016
5007
|
"onAdd"
|
|
5017
|
-
])], 8,
|
|
5008
|
+
])], 8, Qo)]));
|
|
5018
5009
|
}
|
|
5019
|
-
}), [["__scopeId", "data-v-8e33078d"]]),
|
|
5010
|
+
}), [["__scopeId", "data-v-8e33078d"]]), es = ["data-parent-id"], ts = { key: 2 }, ns = ["data-parent-id"], rs = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5020
5011
|
__name: "PvTreeItem",
|
|
5021
5012
|
props: {
|
|
5022
5013
|
option: {},
|
|
@@ -5038,15 +5029,15 @@ var ki = {
|
|
|
5038
5029
|
emits: ["handle-tree-select", "update:children"],
|
|
5039
5030
|
setup(e, { emit: t }) {
|
|
5040
5031
|
let n = e, a = t, c = O(n.treeOpen ?? n.settings[n.option.field]?.defaultExpanded ?? !1);
|
|
5041
|
-
|
|
5032
|
+
U(() => n.treeOpen, (e) => {
|
|
5042
5033
|
e !== void 0 && (c.value = e);
|
|
5043
5034
|
});
|
|
5044
|
-
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } =
|
|
5035
|
+
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
5036
|
C(l(n.settings, n.option).name);
|
|
5046
5037
|
}, k = (e) => ({
|
|
5047
5038
|
paddingLeft: `${e * 24 + (n.settings[n.option.field]?.additionalNestingLevel ?? 0) * 24}px`,
|
|
5048
5039
|
"--border-color": "#121313"
|
|
5049
|
-
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), M = r(() => n.settings[n.option.field]?.checkbox ?
|
|
5040
|
+
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), M = r(() => n.settings[n.option.field]?.checkbox ? Lo : Io), N = r({
|
|
5050
5041
|
get: () => [...n.option.children || []],
|
|
5051
5042
|
set: (e) => {
|
|
5052
5043
|
a("update:children", {
|
|
@@ -5054,7 +5045,7 @@ var ki = {
|
|
|
5054
5045
|
newChildren: e
|
|
5055
5046
|
});
|
|
5056
5047
|
}
|
|
5057
|
-
}),
|
|
5048
|
+
}), F = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), I = r(() => n.isParentPathOpen ?? !0 ? F.value && n.level === 0 ? c.value : !0 : !1);
|
|
5058
5049
|
return (t, n) => {
|
|
5059
5050
|
let r = ee("PvTreeItem", !0);
|
|
5060
5051
|
return e.option.children && e.option.children.length > 0 && e.settings && e.settings[e.option.field]?.accordion ? (E(), i(zr, {
|
|
@@ -5071,7 +5062,7 @@ var ki = {
|
|
|
5071
5062
|
enableTriggerFullWidth: "",
|
|
5072
5063
|
summaryStyles: {
|
|
5073
5064
|
...k(e.level),
|
|
5074
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
5065
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: I.value }) ?? {},
|
|
5075
5066
|
"justify-content": "flex-start"
|
|
5076
5067
|
},
|
|
5077
5068
|
summaryClasses: {
|
|
@@ -5084,7 +5075,7 @@ var ki = {
|
|
|
5084
5075
|
onSummaryMouseleave: n[5] ||= (e) => P(v)(),
|
|
5085
5076
|
onContextmenu: n[6] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5086
5077
|
}, {
|
|
5087
|
-
trigger: W(() => [G(u(
|
|
5078
|
+
trigger: W(() => [G(u(Fo, null, null, 512), [[H, 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), {
|
|
5088
5079
|
key: 0,
|
|
5089
5080
|
option: e.option,
|
|
5090
5081
|
settings: e.settings,
|
|
@@ -5095,7 +5086,7 @@ var ki = {
|
|
|
5095
5086
|
"settings",
|
|
5096
5087
|
"selected",
|
|
5097
5088
|
"params"
|
|
5098
|
-
])) : (E(), i(
|
|
5089
|
+
])) : (E(), i(Po, {
|
|
5099
5090
|
key: 1,
|
|
5100
5091
|
label: e.option.label,
|
|
5101
5092
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5144,7 +5135,7 @@ var ki = {
|
|
|
5144
5135
|
"class",
|
|
5145
5136
|
"onEnd",
|
|
5146
5137
|
"onAdd"
|
|
5147
|
-
])], 8,
|
|
5138
|
+
])], 8, es)]),
|
|
5148
5139
|
_: 1
|
|
5149
5140
|
}, 8, [
|
|
5150
5141
|
"modelValue",
|
|
@@ -5152,7 +5143,7 @@ var ki = {
|
|
|
5152
5143
|
"summaryStyles",
|
|
5153
5144
|
"summaryClasses",
|
|
5154
5145
|
"defaultOpen"
|
|
5155
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (E(), i(
|
|
5146
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (E(), i($o, {
|
|
5156
5147
|
key: 1,
|
|
5157
5148
|
"is-parent-path-open": e.isParentPathOpen,
|
|
5158
5149
|
"selected-options": e.selectedOptions,
|
|
@@ -5173,7 +5164,7 @@ var ki = {
|
|
|
5173
5164
|
"is-draggable",
|
|
5174
5165
|
"disable-selection",
|
|
5175
5166
|
"is-last-root-item"
|
|
5176
|
-
])) : (E(), o("div",
|
|
5167
|
+
])) : (E(), o("div", ts, [(E(), i(j(M.value), {
|
|
5177
5168
|
class: y({ ...P(T)(e.option) }),
|
|
5178
5169
|
option: e.option,
|
|
5179
5170
|
selected: A(e.option.node_id),
|
|
@@ -5182,14 +5173,14 @@ var ki = {
|
|
|
5182
5173
|
icon: e.settings[e.option.field]?.icon,
|
|
5183
5174
|
style: x({
|
|
5184
5175
|
...k(e.level),
|
|
5185
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
5176
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: I.value }) ?? {}
|
|
5186
5177
|
}),
|
|
5187
5178
|
onHandleSelected: n[9] ||= (e) => t.$emit("handle-tree-select", e),
|
|
5188
5179
|
onMouseenter: n[10] ||= (t) => P(_)(e.option.node_id),
|
|
5189
5180
|
onMouseleave: n[11] ||= (e) => P(v)(),
|
|
5190
5181
|
onContextmenu: n[12] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5191
5182
|
}, {
|
|
5192
|
-
default: W(() => [G(u(
|
|
5183
|
+
default: W(() => [G(u(Fo, null, null, 512), [[H, 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), {
|
|
5193
5184
|
key: 0,
|
|
5194
5185
|
option: e.option,
|
|
5195
5186
|
settings: e.settings,
|
|
@@ -5198,7 +5189,7 @@ var ki = {
|
|
|
5198
5189
|
"option",
|
|
5199
5190
|
"settings",
|
|
5200
5191
|
"params"
|
|
5201
|
-
])) : (E(), i(
|
|
5192
|
+
])) : (E(), i(Po, {
|
|
5202
5193
|
key: 1,
|
|
5203
5194
|
label: e.option.label,
|
|
5204
5195
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5254,10 +5245,10 @@ var ki = {
|
|
|
5254
5245
|
"class",
|
|
5255
5246
|
"onEnd",
|
|
5256
5247
|
"onAdd"
|
|
5257
|
-
])], 8,
|
|
5248
|
+
])], 8, ns)]));
|
|
5258
5249
|
};
|
|
5259
5250
|
}
|
|
5260
|
-
}), [["__scopeId", "data-v-7589558e"]]),
|
|
5251
|
+
}), [["__scopeId", "data-v-7589558e"]]), is = (e) => {
|
|
5261
5252
|
let t = [], n = !1;
|
|
5262
5253
|
function r(e) {
|
|
5263
5254
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -5300,7 +5291,7 @@ var ki = {
|
|
|
5300
5291
|
newChildren: r
|
|
5301
5292
|
}), n || (n = !0, v(i));
|
|
5302
5293
|
} };
|
|
5303
|
-
},
|
|
5294
|
+
}, as = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5304
5295
|
__name: "PvTree",
|
|
5305
5296
|
props: /* @__PURE__ */ g({
|
|
5306
5297
|
settings: {},
|
|
@@ -5330,14 +5321,14 @@ var ki = {
|
|
|
5330
5321
|
"update:treeOpen"
|
|
5331
5322
|
],
|
|
5332
5323
|
setup(e) {
|
|
5333
|
-
m(
|
|
5334
|
-
let n = e, i =
|
|
5324
|
+
m(zo, null) || Ho();
|
|
5325
|
+
let n = e, i = L(e, "selectedOptions"), a = L(e, "options"), c = L(e, "treeOpen"), { handleUpdateChildren: l } = is(a), d = (e, t) => {
|
|
5335
5326
|
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];
|
|
5336
5327
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
5337
5328
|
...n.defaultSettings,
|
|
5338
5329
|
...n.settings[t]
|
|
5339
5330
|
}, e), {}));
|
|
5340
|
-
return (n, r) => (E(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(E(!0), o(t, null, k(a.value, (t, n) => (E(), o("div", { key: t.node_id }, [u(
|
|
5331
|
+
return (n, r) => (E(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(E(!0), o(t, null, k(a.value, (t, n) => (E(), o("div", { key: t.node_id }, [u(rs, {
|
|
5341
5332
|
"is-last-root-item": n === a.value.length - 1,
|
|
5342
5333
|
"is-parent-path-open": !0,
|
|
5343
5334
|
"tree-open": c.value,
|
|
@@ -5360,15 +5351,15 @@ var ki = {
|
|
|
5360
5351
|
"onUpdate:children"
|
|
5361
5352
|
])]))), 128))], 2)]));
|
|
5362
5353
|
}
|
|
5363
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
5354
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), os = /* @__PURE__ */ d({
|
|
5364
5355
|
__name: "PvTreeGroup",
|
|
5365
5356
|
setup(e) {
|
|
5366
|
-
return
|
|
5357
|
+
return Ho(), (e, t) => A(e.$slots, "default");
|
|
5367
5358
|
}
|
|
5368
|
-
}),
|
|
5359
|
+
}), ss = {
|
|
5369
5360
|
key: 0,
|
|
5370
5361
|
class: "pv-text-brand pv-text-title-sm pv-stack-4"
|
|
5371
|
-
},
|
|
5362
|
+
}, cs = ["data-disabled"], ls = /* @__PURE__ */ d({
|
|
5372
5363
|
__name: "PvProgressBar",
|
|
5373
5364
|
props: {
|
|
5374
5365
|
progress: {},
|
|
@@ -5377,19 +5368,19 @@ var ki = {
|
|
|
5377
5368
|
},
|
|
5378
5369
|
setup(e) {
|
|
5379
5370
|
let n = e;
|
|
5380
|
-
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p",
|
|
5371
|
+
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p", ss, N(n.progress) + "% Complete", 1)) : a("", !0), s("div", {
|
|
5381
5372
|
class: "pv-progress-bar",
|
|
5382
5373
|
"data-disabled": n.disabled ? !0 : void 0,
|
|
5383
5374
|
style: x({ "--progress": `${n.progress}%` })
|
|
5384
|
-
}, null, 12,
|
|
5375
|
+
}, null, 12, cs)], 64));
|
|
5385
5376
|
}
|
|
5386
|
-
}),
|
|
5377
|
+
}), us = {
|
|
5387
5378
|
class: "pv-flex",
|
|
5388
5379
|
style: {
|
|
5389
5380
|
"--flex-gap": "4px",
|
|
5390
5381
|
height: "24px"
|
|
5391
5382
|
}
|
|
5392
|
-
},
|
|
5383
|
+
}, ds = /* @__PURE__ */ d({
|
|
5393
5384
|
__name: "PvDistributionBar",
|
|
5394
5385
|
props: { values: {} },
|
|
5395
5386
|
setup(e) {
|
|
@@ -5412,41 +5403,41 @@ var ki = {
|
|
|
5412
5403
|
default: return "pv-data-surface-visualization-1";
|
|
5413
5404
|
}
|
|
5414
5405
|
};
|
|
5415
|
-
return (n, r) => (E(), o("div",
|
|
5406
|
+
return (n, r) => (E(), o("div", us, [(E(!0), o(t, null, k(e.values, (e, t) => (E(), o("div", {
|
|
5416
5407
|
key: t,
|
|
5417
5408
|
class: y([s(t)]),
|
|
5418
5409
|
style: x(a(e, t))
|
|
5419
5410
|
}, null, 6))), 128))]));
|
|
5420
5411
|
}
|
|
5421
|
-
}),
|
|
5412
|
+
}), fs = {
|
|
5422
5413
|
key: 0,
|
|
5423
5414
|
class: "pv-range-single-slider"
|
|
5424
|
-
},
|
|
5415
|
+
}, ps = [
|
|
5425
5416
|
"id",
|
|
5426
5417
|
"aria-label",
|
|
5427
5418
|
"disabled",
|
|
5428
5419
|
"max",
|
|
5429
5420
|
"min",
|
|
5430
5421
|
"step"
|
|
5431
|
-
],
|
|
5422
|
+
], ms = ["aria-label"], hs = {
|
|
5432
5423
|
key: 0,
|
|
5433
5424
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
5434
5425
|
style: { "line-height": "1" }
|
|
5435
|
-
},
|
|
5426
|
+
}, gs = [
|
|
5436
5427
|
"aria-label",
|
|
5437
5428
|
"disabled",
|
|
5438
5429
|
"max",
|
|
5439
5430
|
"min",
|
|
5440
5431
|
"step",
|
|
5441
5432
|
"value"
|
|
5442
|
-
],
|
|
5433
|
+
], _s = [
|
|
5443
5434
|
"aria-label",
|
|
5444
5435
|
"disabled",
|
|
5445
5436
|
"max",
|
|
5446
5437
|
"min",
|
|
5447
5438
|
"step",
|
|
5448
5439
|
"value"
|
|
5449
|
-
],
|
|
5440
|
+
], vs = {
|
|
5450
5441
|
key: 1,
|
|
5451
5442
|
class: "pv-flex",
|
|
5452
5443
|
style: {
|
|
@@ -5454,15 +5445,15 @@ var ki = {
|
|
|
5454
5445
|
"--flex-gap": "0.75rem",
|
|
5455
5446
|
"--flex-wrap": "wrap"
|
|
5456
5447
|
}
|
|
5457
|
-
},
|
|
5448
|
+
}, ys = { class: "pv-text-body-sm" }, bs = [
|
|
5458
5449
|
"disabled",
|
|
5459
5450
|
"step",
|
|
5460
5451
|
"value"
|
|
5461
|
-
],
|
|
5452
|
+
], xs = { class: "pv-text-body-sm" }, Ss = [
|
|
5462
5453
|
"disabled",
|
|
5463
5454
|
"step",
|
|
5464
5455
|
"value"
|
|
5465
|
-
],
|
|
5456
|
+
], Cs = 0, ws = 100, Ts = /* @__PURE__ */ d({
|
|
5466
5457
|
inheritAttrs: !1,
|
|
5467
5458
|
__name: "PvRange",
|
|
5468
5459
|
props: /* @__PURE__ */ g({
|
|
@@ -5523,7 +5514,7 @@ var ki = {
|
|
|
5523
5514
|
}),
|
|
5524
5515
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
5525
5516
|
setup(e) {
|
|
5526
|
-
let t = e, n =
|
|
5517
|
+
let t = e, n = L(e, "modelValue"), c = L(e, "rangeValue"), l = F(), u = I(), 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) => {
|
|
5527
5518
|
let t = e.trim();
|
|
5528
5519
|
if (t === "") return null;
|
|
5529
5520
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
@@ -5538,8 +5529,8 @@ var ki = {
|
|
|
5538
5529
|
minimumFractionDigits: 0
|
|
5539
5530
|
}).format(e);
|
|
5540
5531
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
5541
|
-
},
|
|
5542
|
-
let e = D(t.min) ??
|
|
5532
|
+
}, R = r(() => D(t.step)), z = r(() => R.value !== null && R.value > 0 ? R.value : 0), B = r(() => z.value > 0 ? String(z.value) : "any"), te = r(() => R.value === null ? "1" : R.value > 0 ? String(R.value) : "any"), ne = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), H = r(() => {
|
|
5533
|
+
let e = D(t.min) ?? Cs, n = D(t.max) ?? ws;
|
|
5543
5534
|
return e > n ? {
|
|
5544
5535
|
max: e,
|
|
5545
5536
|
min: n
|
|
@@ -5550,11 +5541,11 @@ var ki = {
|
|
|
5550
5541
|
max: n,
|
|
5551
5542
|
min: e
|
|
5552
5543
|
};
|
|
5553
|
-
}),
|
|
5554
|
-
let { max: e, min: t } =
|
|
5544
|
+
}), re = r(() => D(n.value) ?? H.value.min), W = r(() => {
|
|
5545
|
+
let { max: e, min: t } = H.value, n = e - t, r = n === 0 ? 0 : (re.value - t) / n * 100;
|
|
5555
5546
|
return Math.max(0, Math.min(100, r));
|
|
5556
5547
|
}), K = r(() => ({
|
|
5557
|
-
"--range-track-color":
|
|
5548
|
+
"--range-track-color": ne.value,
|
|
5558
5549
|
"--value": `${W.value}%`
|
|
5559
5550
|
})), ae = r(() => ({ left: `${W.value}%` })), oe = (e) => {
|
|
5560
5551
|
if (!Number.isFinite(e)) return 0;
|
|
@@ -5565,14 +5556,14 @@ var ki = {
|
|
|
5565
5556
|
}
|
|
5566
5557
|
return t.split(".")[1]?.length ?? 0;
|
|
5567
5558
|
}, q = r(() => {
|
|
5568
|
-
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(
|
|
5569
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
5559
|
+
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 + (z.value > 0 ? z.value : 1)), {
|
|
5570
5561
|
max: o,
|
|
5571
5562
|
min: a
|
|
5572
5563
|
};
|
|
5573
5564
|
}), se = (e) => Math.max(q.value.min, Math.min(q.value.max, e)), ce = r(() => {
|
|
5574
5565
|
let e = Math.max(oe(q.value.min), oe(q.value.max));
|
|
5575
|
-
return
|
|
5566
|
+
return z.value <= 0 ? Math.max(6, e) : Math.max(e, oe(z.value));
|
|
5576
5567
|
}), le = (e) => {
|
|
5577
5568
|
let t = Math.min(20, ce.value);
|
|
5578
5569
|
return se(Number(e.toFixed(t)));
|
|
@@ -5580,13 +5571,13 @@ var ki = {
|
|
|
5580
5571
|
if (t.allowMinMaxEqual) return 0;
|
|
5581
5572
|
let e = q.value.max - q.value.min;
|
|
5582
5573
|
if (e <= 0) return 0;
|
|
5583
|
-
let n = Math.max(e / 1e6, 10 ** -ce.value), r =
|
|
5574
|
+
let n = Math.max(e / 1e6, 10 ** -ce.value), r = z.value > 0 ? z.value : n;
|
|
5584
5575
|
return Math.min(r, e);
|
|
5585
5576
|
}), de = (e, t = "nearest") => {
|
|
5586
5577
|
let n = se(e);
|
|
5587
|
-
if (
|
|
5588
|
-
let { min: r } = q.value, i = (n - r) /
|
|
5589
|
-
return le(se((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) *
|
|
5578
|
+
if (z.value <= 0) return le(n);
|
|
5579
|
+
let { min: r } = q.value, i = (n - r) / z.value;
|
|
5580
|
+
return le(se((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) * z.value + r));
|
|
5590
5581
|
}, J = (e, t) => {
|
|
5591
5582
|
let n = Math.max(q.value.min, t - ue.value);
|
|
5592
5583
|
return de(Math.min(e, n), "down");
|
|
@@ -5603,10 +5594,10 @@ var ki = {
|
|
|
5603
5594
|
let { max: t, min: n } = q.value;
|
|
5604
5595
|
return t === n ? 0 : (e - n) / (t - n) * 100;
|
|
5605
5596
|
}, me = r(() => pe(Y.value.min)), he = r(() => pe(Y.value.max)), ge = r(() => ({
|
|
5606
|
-
"--range-track-color":
|
|
5597
|
+
"--range-track-color": ne.value,
|
|
5607
5598
|
"--value-max": `${he.value}%`,
|
|
5608
5599
|
"--value-min": `${me.value}%`
|
|
5609
|
-
})), _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 ===
|
|
5600
|
+
})), _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) => {
|
|
5610
5601
|
c.value = {
|
|
5611
5602
|
max: t >= q.value.max && xe() ? null : t,
|
|
5612
5603
|
min: e <= q.value.min && be() ? null : e
|
|
@@ -5677,27 +5668,27 @@ var ki = {
|
|
|
5677
5668
|
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i);
|
|
5678
5669
|
}, e.preventDefault();
|
|
5679
5670
|
};
|
|
5680
|
-
return
|
|
5671
|
+
return U([Y, q], Ne, { immediate: !0 }), S(() => {
|
|
5681
5672
|
Be(), Oe();
|
|
5682
|
-
}), (r, c) => e.mode === "single" ? (E(), o("div",
|
|
5673
|
+
}), (r, c) => e.mode === "single" ? (E(), o("div", fs, [e.showValueTooltips && v.value ? (E(), o("span", {
|
|
5683
5674
|
key: 0,
|
|
5684
5675
|
class: "pv-range-tooltip",
|
|
5685
5676
|
style: x(ae.value)
|
|
5686
|
-
}, N(M(
|
|
5677
|
+
}, N(M(re.value)), 5)) : a("", !0), G(s("input", _({ id: P(u) }, P(l), {
|
|
5687
5678
|
"onUpdate:modelValue": c[0] ||= (e) => n.value = e,
|
|
5688
5679
|
"aria-label": e.ariaLabel,
|
|
5689
5680
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
5690
5681
|
disabled: e.disabled,
|
|
5691
|
-
max:
|
|
5692
|
-
min:
|
|
5693
|
-
step:
|
|
5682
|
+
max: H.value.max,
|
|
5683
|
+
min: H.value.min,
|
|
5684
|
+
step: te.value,
|
|
5694
5685
|
style: K.value,
|
|
5695
5686
|
type: "range",
|
|
5696
5687
|
onChange: ke,
|
|
5697
5688
|
onPointerdown: Ae,
|
|
5698
5689
|
onPointerup: ke
|
|
5699
|
-
}), null, 16,
|
|
5700
|
-
|
|
5690
|
+
}), null, 16, ps), [[
|
|
5691
|
+
V,
|
|
5701
5692
|
n.value,
|
|
5702
5693
|
void 0,
|
|
5703
5694
|
{ number: !0 }
|
|
@@ -5711,7 +5702,7 @@ var ki = {
|
|
|
5711
5702
|
"--flex-gap": "0"
|
|
5712
5703
|
}
|
|
5713
5704
|
}), [
|
|
5714
|
-
e.showBoundLabels ? (E(), o("div",
|
|
5705
|
+
e.showBoundLabels ? (E(), o("div", hs, [s("span", null, N(M(q.value.min)), 1), s("span", null, N(M(q.value.max)), 1)])) : a("", !0),
|
|
5715
5706
|
s("div", {
|
|
5716
5707
|
ref_key: "sliderRef",
|
|
5717
5708
|
ref: b,
|
|
@@ -5737,13 +5728,13 @@ var ki = {
|
|
|
5737
5728
|
disabled: e.disabled,
|
|
5738
5729
|
max: q.value.max,
|
|
5739
5730
|
min: q.value.min,
|
|
5740
|
-
step:
|
|
5731
|
+
step: B.value,
|
|
5741
5732
|
value: Y.value.min,
|
|
5742
5733
|
onChange: Te,
|
|
5743
5734
|
onInput: je,
|
|
5744
5735
|
onPointerdown: c[1] ||= (e) => Ee("min"),
|
|
5745
5736
|
onPointerup: Te
|
|
5746
|
-
}, null, 40,
|
|
5737
|
+
}, null, 40, gs),
|
|
5747
5738
|
s("input", {
|
|
5748
5739
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
5749
5740
|
type: "range",
|
|
@@ -5751,15 +5742,15 @@ var ki = {
|
|
|
5751
5742
|
disabled: e.disabled,
|
|
5752
5743
|
max: q.value.max,
|
|
5753
5744
|
min: q.value.min,
|
|
5754
|
-
step:
|
|
5745
|
+
step: B.value,
|
|
5755
5746
|
value: Y.value.max,
|
|
5756
5747
|
onChange: Te,
|
|
5757
5748
|
onInput: Me,
|
|
5758
5749
|
onPointerdown: c[2] ||= (e) => Ee("max"),
|
|
5759
5750
|
onPointerup: Te
|
|
5760
|
-
}, null, 40,
|
|
5751
|
+
}, null, 40, _s)
|
|
5761
5752
|
], 38),
|
|
5762
|
-
e.showInputs ? (E(), o("div",
|
|
5753
|
+
e.showInputs ? (E(), o("div", vs, [
|
|
5763
5754
|
s("label", {
|
|
5764
5755
|
class: "pv-flex-vertical",
|
|
5765
5756
|
for: f,
|
|
@@ -5770,21 +5761,21 @@ var ki = {
|
|
|
5770
5761
|
"max-width": "75px",
|
|
5771
5762
|
"min-width": "0"
|
|
5772
5763
|
}
|
|
5773
|
-
}, [s("span",
|
|
5764
|
+
}, [s("span", ys, N(e.minLabel), 1), s("input", {
|
|
5774
5765
|
id: f,
|
|
5775
5766
|
class: "pv-input-text",
|
|
5776
5767
|
disabled: e.disabled,
|
|
5777
5768
|
style: { width: "100%" },
|
|
5778
5769
|
inputmode: "decimal",
|
|
5779
5770
|
placeholder: "Min",
|
|
5780
|
-
step:
|
|
5771
|
+
step: B.value,
|
|
5781
5772
|
type: "text",
|
|
5782
5773
|
value: m.value,
|
|
5783
5774
|
onBlur: c[3] ||= (e) => Z("min"),
|
|
5784
5775
|
onFocus: c[4] ||= (e) => Ie("min"),
|
|
5785
5776
|
onInput: Fe,
|
|
5786
5777
|
onKeydown: c[5] ||= ie((e) => Le(e, "min"), ["enter"])
|
|
5787
|
-
}, null, 40,
|
|
5778
|
+
}, null, 40, bs)]),
|
|
5788
5779
|
s("label", {
|
|
5789
5780
|
class: "pv-flex-vertical",
|
|
5790
5781
|
for: d,
|
|
@@ -5795,21 +5786,21 @@ var ki = {
|
|
|
5795
5786
|
"max-width": "75px",
|
|
5796
5787
|
"min-width": "0"
|
|
5797
5788
|
}
|
|
5798
|
-
}, [s("span",
|
|
5789
|
+
}, [s("span", xs, N(e.maxLabel), 1), s("input", {
|
|
5799
5790
|
id: d,
|
|
5800
5791
|
class: "pv-input-text",
|
|
5801
5792
|
disabled: e.disabled,
|
|
5802
5793
|
style: { width: "100%" },
|
|
5803
5794
|
inputmode: "decimal",
|
|
5804
5795
|
placeholder: "Max",
|
|
5805
|
-
step:
|
|
5796
|
+
step: B.value,
|
|
5806
5797
|
type: "text",
|
|
5807
5798
|
value: p.value,
|
|
5808
5799
|
onBlur: c[6] ||= (e) => Z("max"),
|
|
5809
5800
|
onFocus: c[7] ||= (e) => Ie("max"),
|
|
5810
5801
|
onInput: X,
|
|
5811
5802
|
onKeydown: c[8] ||= ie((e) => Le(e, "max"), ["enter"])
|
|
5812
|
-
}, null, 40,
|
|
5803
|
+
}, null, 40, Ss)]),
|
|
5813
5804
|
e.showClear && ye.value ? (E(), i(Q, {
|
|
5814
5805
|
key: 0,
|
|
5815
5806
|
class: "pv-text-brand",
|
|
@@ -5826,21 +5817,21 @@ var ki = {
|
|
|
5826
5817
|
variant: "ghost",
|
|
5827
5818
|
onClick: De
|
|
5828
5819
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
5829
|
-
], 16,
|
|
5820
|
+
], 16, ms));
|
|
5830
5821
|
}
|
|
5831
|
-
}),
|
|
5822
|
+
}), Es = {
|
|
5832
5823
|
key: 1,
|
|
5833
5824
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
5834
|
-
},
|
|
5825
|
+
}, Ds = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Os = {
|
|
5835
5826
|
key: 0,
|
|
5836
5827
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
5837
|
-
},
|
|
5828
|
+
}, ks = {
|
|
5838
5829
|
key: 1,
|
|
5839
5830
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
5840
|
-
},
|
|
5831
|
+
}, As = {
|
|
5841
5832
|
key: 2,
|
|
5842
5833
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
5843
|
-
},
|
|
5834
|
+
}, js = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5844
5835
|
__name: "PvFilterPanelOptionRow",
|
|
5845
5836
|
props: {
|
|
5846
5837
|
ariaLabel: {},
|
|
@@ -5876,7 +5867,7 @@ var ki = {
|
|
|
5876
5867
|
},
|
|
5877
5868
|
emits: ["focus-value", "toggle-value"],
|
|
5878
5869
|
setup(e, { emit: t }) {
|
|
5879
|
-
let n = e, c = t, d =
|
|
5870
|
+
let n = e, c = t, d = R(), 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(() => ({
|
|
5880
5871
|
disabled: n.disabled,
|
|
5881
5872
|
highlightSearchText: !0,
|
|
5882
5873
|
id: n.value,
|
|
@@ -5900,7 +5891,7 @@ var ki = {
|
|
|
5900
5891
|
"data-testid": "pv-filter-panel-option-row",
|
|
5901
5892
|
style: x(m.value)
|
|
5902
5893
|
}, [
|
|
5903
|
-
u(
|
|
5894
|
+
u(Qa, {
|
|
5904
5895
|
ariaLabel: e.ariaLabel || e.label,
|
|
5905
5896
|
disabled: e.disabled,
|
|
5906
5897
|
indeterminate: e.indeterminate,
|
|
@@ -5912,12 +5903,12 @@ var ki = {
|
|
|
5912
5903
|
"indeterminate",
|
|
5913
5904
|
"modelValue"
|
|
5914
5905
|
]),
|
|
5915
|
-
e.renderer ? (E(), i(j(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span",
|
|
5916
|
-
s("span",
|
|
5917
|
-
e.subduedText ? (E(), o("span",
|
|
5918
|
-
e.subText ? (E(), o("span",
|
|
5906
|
+
e.renderer ? (E(), i(j(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span", Es, [
|
|
5907
|
+
s("span", Ds, N(e.label), 1),
|
|
5908
|
+
e.subduedText ? (E(), o("span", Os, N(e.subduedText), 1)) : a("", !0),
|
|
5909
|
+
e.subText ? (E(), o("span", ks, N(e.subText), 1)) : a("", !0)
|
|
5919
5910
|
])),
|
|
5920
|
-
p.value ? (E(), o("span",
|
|
5911
|
+
p.value ? (E(), o("span", As, [A(t.$slots, "result-count", {}, () => [l("(" + N(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
5921
5912
|
e.showFocusAction ? (E(), i(Q, {
|
|
5922
5913
|
key: 3,
|
|
5923
5914
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -5933,26 +5924,26 @@ var ki = {
|
|
|
5933
5924
|
])) : a("", !0)
|
|
5934
5925
|
], 6));
|
|
5935
5926
|
}
|
|
5936
|
-
}), [["__scopeId", "data-v-7e00be1a"]]),
|
|
5927
|
+
}), [["__scopeId", "data-v-7e00be1a"]]), Ms = [
|
|
5937
5928
|
"totalCount",
|
|
5938
5929
|
"total_count",
|
|
5939
5930
|
"resultCount",
|
|
5940
5931
|
"result_count",
|
|
5941
5932
|
"row_count",
|
|
5942
5933
|
"count"
|
|
5943
|
-
],
|
|
5934
|
+
], Ns = new Intl.NumberFormat("en-US", {
|
|
5944
5935
|
maximumFractionDigits: 1,
|
|
5945
5936
|
notation: "compact"
|
|
5946
|
-
}),
|
|
5947
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
5937
|
+
}), Ps = (e) => typeof e == "object" && !!e, Fs = (e) => {
|
|
5938
|
+
if (typeof e == "number" && Number.isFinite(e)) return Ns.format(e);
|
|
5948
5939
|
if (typeof e == "string") {
|
|
5949
5940
|
let t = e.trim();
|
|
5950
5941
|
if (!t) return;
|
|
5951
5942
|
let n = Number(t);
|
|
5952
|
-
return Number.isFinite(n) ?
|
|
5943
|
+
return Number.isFinite(n) ? Ns.format(n) : e;
|
|
5953
5944
|
}
|
|
5954
|
-
},
|
|
5955
|
-
let n =
|
|
5945
|
+
}, Is = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), Ls = (e, t = {}) => {
|
|
5946
|
+
let n = Is(t.dataType, t.valueDecimals);
|
|
5956
5947
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
5957
5948
|
currency: "USD",
|
|
5958
5949
|
maximumFractionDigits: n,
|
|
@@ -5964,11 +5955,11 @@ var ki = {
|
|
|
5964
5955
|
minimumFractionDigits: n
|
|
5965
5956
|
}).format(e);
|
|
5966
5957
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
5967
|
-
},
|
|
5958
|
+
}, Rs = (e, t, n = {}) => e !== null && t !== null ? `${Ls(e, n)}–${Ls(t, n)}` : e === null ? t === null ? "" : `≤ ${Ls(t, n)}` : `${Ls(e, n)}+`, zs = (e, t) => {
|
|
5968
5959
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
5969
5960
|
if (!n) return null;
|
|
5970
5961
|
try {
|
|
5971
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
5962
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : Ps(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
5972
5963
|
return n({
|
|
5973
5964
|
context: e.metadata,
|
|
5974
5965
|
value: t
|
|
@@ -5976,24 +5967,24 @@ var ki = {
|
|
|
5976
5967
|
} catch {
|
|
5977
5968
|
return null;
|
|
5978
5969
|
}
|
|
5979
|
-
},
|
|
5970
|
+
}, Bs = (e, t) => {
|
|
5980
5971
|
let n = e.metadata;
|
|
5981
|
-
if (!
|
|
5972
|
+
if (!Ps(n)) return null;
|
|
5982
5973
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
5983
5974
|
let t = n[e];
|
|
5984
5975
|
if (t != null && String(t).trim()) return String(t);
|
|
5985
5976
|
}
|
|
5986
5977
|
return null;
|
|
5987
|
-
},
|
|
5988
|
-
let t =
|
|
5978
|
+
}, Vs = (e, t) => e.label || Bs(e, t) || zs(e, t) || e.value, Hs = (e) => {
|
|
5979
|
+
let t = Fs(e?.resultCount);
|
|
5989
5980
|
if (t !== void 0) return t;
|
|
5990
5981
|
let n = e?.metadata;
|
|
5991
|
-
if (
|
|
5992
|
-
let t =
|
|
5982
|
+
if (Ps(n)) for (let e of Ms) {
|
|
5983
|
+
let t = Fs(n[e]);
|
|
5993
5984
|
if (t !== void 0) return t;
|
|
5994
5985
|
}
|
|
5995
|
-
return
|
|
5996
|
-
},
|
|
5986
|
+
return Fs(e?.totalChildCount);
|
|
5987
|
+
}, Us = "__pv_filter_panel_scoped_value__", Ws = (e) => typeof e == "object" && !!e, Gs = (e) => {
|
|
5997
5988
|
try {
|
|
5998
5989
|
let t = JSON.parse(decodeURIComponent(e));
|
|
5999
5990
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -6007,7 +5998,7 @@ var ki = {
|
|
|
6007
5998
|
} catch {
|
|
6008
5999
|
return [];
|
|
6009
6000
|
}
|
|
6010
|
-
},
|
|
6001
|
+
}, Ks = (e) => {
|
|
6011
6002
|
if (!e.startsWith("__")) return null;
|
|
6012
6003
|
let t = e.slice(2).split("__");
|
|
6013
6004
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -6020,76 +6011,76 @@ var ki = {
|
|
|
6020
6011
|
pairs: n,
|
|
6021
6012
|
value: n[0].value
|
|
6022
6013
|
};
|
|
6023
|
-
},
|
|
6014
|
+
}, qs = (e) => {
|
|
6024
6015
|
if (e == null) return null;
|
|
6025
|
-
if (!e.startsWith(
|
|
6016
|
+
if (!e.startsWith(Us)) return Ks(e) ?? {
|
|
6026
6017
|
pairs: [],
|
|
6027
6018
|
value: e
|
|
6028
6019
|
};
|
|
6029
|
-
let t =
|
|
6020
|
+
let t = Gs(e.slice(32));
|
|
6030
6021
|
return {
|
|
6031
6022
|
field: t[0]?.field,
|
|
6032
6023
|
pairs: t,
|
|
6033
6024
|
value: t[0]?.value ?? e
|
|
6034
6025
|
};
|
|
6035
|
-
},
|
|
6026
|
+
}, Js = (e, t) => `${Us}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Ys = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : Ws(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : qs(e.value)?.value ?? e.value : null, Xs = (e, t) => e?.field ? e.field : e?.colField ? e.colField : qs(e?.value)?.field ?? t, Zs = (e) => e.flatMap((e) => [e, ...e.children?.length ? Zs(e.children) : []]), Qs = (e, t, n, r) => Xs(e, r) === t && Ys(e) === n, $s = (e) => {
|
|
6036
6027
|
let t = e;
|
|
6037
6028
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
6038
|
-
},
|
|
6029
|
+
}, ec = (e) => {
|
|
6039
6030
|
let t = e;
|
|
6040
|
-
return
|
|
6031
|
+
return $s(e) ? {
|
|
6041
6032
|
...t,
|
|
6042
|
-
conditions: (t.conditions ?? []).map(
|
|
6033
|
+
conditions: (t.conditions ?? []).map(ec)
|
|
6043
6034
|
} : { ...t };
|
|
6044
|
-
},
|
|
6035
|
+
}, tc = (e, t) => {
|
|
6045
6036
|
if (!e) return null;
|
|
6046
6037
|
let n = t instanceof Set ? t : new Set(t);
|
|
6047
|
-
if (!n.size) return
|
|
6048
|
-
if (
|
|
6038
|
+
if (!n.size) return ec(e);
|
|
6039
|
+
if (!$s(e)) {
|
|
6049
6040
|
let t = e;
|
|
6050
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
6041
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : ec(e);
|
|
6051
6042
|
}
|
|
6052
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
6043
|
+
let r = e, i = (r.conditions ?? []).map((e) => tc(e, n)).filter((e) => !!e);
|
|
6053
6044
|
return i.length ? i.length === 1 ? i[0] : {
|
|
6054
6045
|
...r,
|
|
6055
6046
|
conditions: i
|
|
6056
6047
|
} : null;
|
|
6057
|
-
},
|
|
6048
|
+
}, nc = (e) => e ? [e.field, ...(e.children ?? []).flatMap(nc)] : [], rc = (e) => e ? e.children?.length ? e.children.flatMap(rc) : [e.field] : [], ic = (e) => {
|
|
6058
6049
|
let t = e?.context ?? {};
|
|
6059
|
-
return t.aggregateFieldHierarchy ?
|
|
6060
|
-
},
|
|
6050
|
+
return t.aggregateFieldHierarchy ? nc(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
6051
|
+
}, ac = (e) => {
|
|
6061
6052
|
let t = e?.context ?? {};
|
|
6062
6053
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6063
|
-
},
|
|
6054
|
+
}, oc = (e) => ic(e).length > 0, sc = (e, t) => {
|
|
6064
6055
|
for (let n of e ?? []) {
|
|
6065
6056
|
if (!n) continue;
|
|
6066
6057
|
if (n.value === t) return n;
|
|
6067
|
-
let e =
|
|
6058
|
+
let e = sc(n.children, t);
|
|
6068
6059
|
if (e) return e;
|
|
6069
6060
|
}
|
|
6070
|
-
},
|
|
6061
|
+
}, cc = (e, t, n = []) => {
|
|
6071
6062
|
for (let r of e ?? []) {
|
|
6072
6063
|
if (!r) continue;
|
|
6073
6064
|
let e = [...n, r];
|
|
6074
6065
|
if (r.value === t) return e;
|
|
6075
|
-
let i =
|
|
6066
|
+
let i = cc(r.children, t, e);
|
|
6076
6067
|
if (i) return i;
|
|
6077
6068
|
}
|
|
6078
|
-
},
|
|
6079
|
-
let n =
|
|
6069
|
+
}, lc = (e, t) => {
|
|
6070
|
+
let n = sc(t, e), r = n ? Xs(n, "") : void 0, i = n ? Ys(n) : null;
|
|
6080
6071
|
if (r && i !== null) return {
|
|
6081
6072
|
field: r,
|
|
6082
6073
|
value: i
|
|
6083
6074
|
};
|
|
6084
|
-
let a =
|
|
6075
|
+
let a = qs(e);
|
|
6085
6076
|
return {
|
|
6086
6077
|
field: a?.field,
|
|
6087
6078
|
value: a?.value ?? e
|
|
6088
6079
|
};
|
|
6089
|
-
},
|
|
6080
|
+
}, uc = (e, t, n) => {
|
|
6090
6081
|
let r = (e) => {
|
|
6091
6082
|
if (!e) return;
|
|
6092
|
-
let i =
|
|
6083
|
+
let i = Xs(e, ""), a = Ys(e);
|
|
6093
6084
|
if (i === t && a === n) return e.value;
|
|
6094
6085
|
for (let t of e.children ?? []) {
|
|
6095
6086
|
let e = r(t);
|
|
@@ -6101,9 +6092,9 @@ var ki = {
|
|
|
6101
6092
|
if (e) return e;
|
|
6102
6093
|
}
|
|
6103
6094
|
return `__${t}__${n}`;
|
|
6104
|
-
},
|
|
6095
|
+
}, dc = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...dc(e.children)]), fc = (e, t) => {
|
|
6105
6096
|
if (e.state !== "selected") return null;
|
|
6106
|
-
let { field: n, value: r } =
|
|
6097
|
+
let { field: n, value: r } = lc(e.id, t);
|
|
6107
6098
|
if (!n) return null;
|
|
6108
6099
|
let i = [{
|
|
6109
6100
|
colId: n,
|
|
@@ -6111,8 +6102,8 @@ var ki = {
|
|
|
6111
6102
|
filterType: "text",
|
|
6112
6103
|
type: "equals"
|
|
6113
6104
|
}];
|
|
6114
|
-
for (let n of
|
|
6115
|
-
let e =
|
|
6105
|
+
for (let n of dc(e.children)) {
|
|
6106
|
+
let e = lc(n.id, t);
|
|
6116
6107
|
e.field && i.push({
|
|
6117
6108
|
colId: e.field,
|
|
6118
6109
|
filter: e.value,
|
|
@@ -6125,10 +6116,10 @@ var ki = {
|
|
|
6125
6116
|
filterType: "join",
|
|
6126
6117
|
type: "AND"
|
|
6127
6118
|
};
|
|
6128
|
-
},
|
|
6129
|
-
let t =
|
|
6119
|
+
}, pc = (e) => {
|
|
6120
|
+
let t = ic(e.colDef), n = tc(e.baseModel, t);
|
|
6130
6121
|
if (!t.length) return n;
|
|
6131
|
-
let r = e.state.map((t) =>
|
|
6122
|
+
let r = e.state.map((t) => fc(t, e.options)).filter((e) => !!e);
|
|
6132
6123
|
if (!r.length) return n;
|
|
6133
6124
|
let i = r.length === 1 ? r[0] : {
|
|
6134
6125
|
conditions: r,
|
|
@@ -6140,17 +6131,17 @@ var ki = {
|
|
|
6140
6131
|
filterType: "join",
|
|
6141
6132
|
type: "AND"
|
|
6142
6133
|
} : i;
|
|
6143
|
-
},
|
|
6134
|
+
}, mc = (e, t, n) => {
|
|
6144
6135
|
if (!e) return [];
|
|
6145
6136
|
let r = e;
|
|
6146
|
-
if (
|
|
6137
|
+
if ($s(e)) {
|
|
6147
6138
|
let e = r.conditions ?? [];
|
|
6148
6139
|
if (r.type === "AND") {
|
|
6149
6140
|
let r = e.find((e) => {
|
|
6150
6141
|
let r = e;
|
|
6151
6142
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
6152
6143
|
});
|
|
6153
|
-
return e.flatMap((e) =>
|
|
6144
|
+
return e.flatMap((e) => mc(e, t, n).map((e) => ({
|
|
6154
6145
|
...e,
|
|
6155
6146
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
6156
6147
|
colId: r.colId,
|
|
@@ -6158,20 +6149,20 @@ var ki = {
|
|
|
6158
6149
|
} : void 0)
|
|
6159
6150
|
})));
|
|
6160
6151
|
}
|
|
6161
|
-
return e.flatMap((e) =>
|
|
6152
|
+
return e.flatMap((e) => mc(e, t, n));
|
|
6162
6153
|
}
|
|
6163
6154
|
return r.colId && t.has(r.colId) ? [{
|
|
6164
6155
|
colId: r.colId,
|
|
6165
6156
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
6166
6157
|
type: r.type
|
|
6167
6158
|
}] : [];
|
|
6168
|
-
},
|
|
6169
|
-
let t =
|
|
6159
|
+
}, hc = (e) => {
|
|
6160
|
+
let t = ic(e.colDef);
|
|
6170
6161
|
if (!t.length) return [];
|
|
6171
|
-
let n = new Set(
|
|
6162
|
+
let n = new Set(rc(e.colDef.context?.aggregateFieldHierarchy)), r = ac(e.colDef), i = mc(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
6172
6163
|
for (let t of i) {
|
|
6173
6164
|
if (!t.filter) continue;
|
|
6174
|
-
let n =
|
|
6165
|
+
let n = uc(e.options, t.colId, String(t.filter));
|
|
6175
6166
|
if (t.type === "equals") {
|
|
6176
6167
|
let e = a.get(n);
|
|
6177
6168
|
a.set(n, {
|
|
@@ -6182,7 +6173,7 @@ var ki = {
|
|
|
6182
6173
|
continue;
|
|
6183
6174
|
}
|
|
6184
6175
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
6185
|
-
let r =
|
|
6176
|
+
let r = uc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
6186
6177
|
children: [],
|
|
6187
6178
|
id: r,
|
|
6188
6179
|
state: "selected"
|
|
@@ -6194,150 +6185,150 @@ var ki = {
|
|
|
6194
6185
|
}
|
|
6195
6186
|
}
|
|
6196
6187
|
return [...a.values()];
|
|
6197
|
-
},
|
|
6198
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
6188
|
+
}, gc = (e) => {
|
|
6189
|
+
let t = /* @__PURE__ */ new Map(), n = ic(e.colDef);
|
|
6199
6190
|
if (!n.length) return t;
|
|
6200
|
-
let r =
|
|
6191
|
+
let r = mc(e.model, new Set(n), new Set(rc(e.colDef.context?.aggregateFieldHierarchy)));
|
|
6201
6192
|
for (let e of r) {
|
|
6202
6193
|
if (e.type !== "equals" || !e.filter) continue;
|
|
6203
6194
|
let n = t.get(e.colId) ?? [];
|
|
6204
6195
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
6205
6196
|
}
|
|
6206
6197
|
return t;
|
|
6207
|
-
},
|
|
6198
|
+
}, _c = (e) => e.map((e) => ({
|
|
6208
6199
|
...e,
|
|
6209
6200
|
children: e.children?.map((e) => ({
|
|
6210
6201
|
...e,
|
|
6211
|
-
children: e.children ?
|
|
6202
|
+
children: e.children ? _c(e.children) : void 0
|
|
6212
6203
|
}))
|
|
6213
|
-
})),
|
|
6204
|
+
})), vc = (e, t) => e.flatMap((e) => {
|
|
6214
6205
|
if (e.id === t) return [];
|
|
6215
|
-
let n = e.children ?
|
|
6206
|
+
let n = e.children ? vc(e.children, t) : void 0;
|
|
6216
6207
|
return [{
|
|
6217
6208
|
...e,
|
|
6218
6209
|
children: n?.length ? n : void 0
|
|
6219
6210
|
}];
|
|
6220
|
-
}),
|
|
6211
|
+
}), yc = (e, t) => {
|
|
6221
6212
|
for (let n of e) {
|
|
6222
6213
|
if (n.id === t) return n;
|
|
6223
|
-
let e = n.children ?
|
|
6214
|
+
let e = n.children ? yc(n.children, t) : void 0;
|
|
6224
6215
|
if (e) return e;
|
|
6225
6216
|
}
|
|
6226
|
-
},
|
|
6227
|
-
let r = (
|
|
6217
|
+
}, bc = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, xc = (e, t) => [...vc(e, t.id), t], Sc = (e) => (e.children ?? []).flatMap((e) => [e.value, ...Sc(e)]), Cc = (e, t) => Sc(t).reduce((e, t) => vc(e, t), e), wc = (e, t) => [t.value, ...Sc(t)].reduce((e, t) => vc(e, t), e), Tc = (e, t, n) => {
|
|
6218
|
+
let r = (cc(n, t.value) ?? []).slice(0, -1).reverse();
|
|
6228
6219
|
for (let t of r) {
|
|
6229
|
-
let n =
|
|
6220
|
+
let n = yc(e, t.value);
|
|
6230
6221
|
if (n?.state === "selected") return n;
|
|
6231
6222
|
}
|
|
6232
|
-
},
|
|
6233
|
-
let t =
|
|
6223
|
+
}, Ec = (e) => {
|
|
6224
|
+
let t = _c(e.state), n = Tc(t, e.option, e.options);
|
|
6234
6225
|
if (n) {
|
|
6235
6226
|
let r = n.children ?? [];
|
|
6236
|
-
return n.children = e.checked ?
|
|
6227
|
+
return n.children = e.checked ? wc(r, e.option) : [...wc(r, e.option), {
|
|
6237
6228
|
id: e.option.value,
|
|
6238
6229
|
state: "deselected"
|
|
6239
6230
|
}], n.children.length || delete n.children, t;
|
|
6240
6231
|
}
|
|
6241
|
-
return
|
|
6232
|
+
return bc(e.option) ? e.checked ? xc(Cc(t, e.option), {
|
|
6242
6233
|
id: e.option.value,
|
|
6243
6234
|
state: "selected"
|
|
6244
|
-
}) :
|
|
6235
|
+
}) : vc(t, e.option.value) : e.checked ? xc(t, {
|
|
6245
6236
|
id: e.option.value,
|
|
6246
6237
|
state: "selected"
|
|
6247
|
-
}) :
|
|
6248
|
-
},
|
|
6238
|
+
}) : vc(t, e.option.value);
|
|
6239
|
+
}, Dc = (e) => {
|
|
6249
6240
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
6250
6241
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
6251
6242
|
};
|
|
6252
6243
|
return n(e), t;
|
|
6253
|
-
},
|
|
6254
|
-
let t =
|
|
6244
|
+
}, Oc = (e) => {
|
|
6245
|
+
let t = Dc(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
6255
6246
|
let a = t.get(e.value), o = a?.state === "selected" || i && a?.state !== "deselected", s = (e.children ?? []).map((e) => r(e, o)), c = s.some((e) => e.selected || e.indeterminate), l = s.some((e) => !e.selected || e.indeterminate), u = {
|
|
6256
|
-
indeterminate:
|
|
6247
|
+
indeterminate: dc(a?.children).length > 0 || !o && c || o && l,
|
|
6257
6248
|
selected: o
|
|
6258
6249
|
};
|
|
6259
6250
|
return n.set(e.value, u), u;
|
|
6260
6251
|
};
|
|
6261
6252
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
6262
6253
|
return n;
|
|
6263
|
-
},
|
|
6254
|
+
}, kc = (e) => Oc(e).get(e.option.value) ?? Oc({
|
|
6264
6255
|
options: [e.option],
|
|
6265
6256
|
state: e.state
|
|
6266
6257
|
}).get(e.option.value) ?? {
|
|
6267
6258
|
indeterminate: !1,
|
|
6268
6259
|
selected: !1
|
|
6269
|
-
},
|
|
6260
|
+
}, Ac = (e) => e.state.flatMap((t) => {
|
|
6270
6261
|
if (t.state !== "selected") return [];
|
|
6271
|
-
let n =
|
|
6262
|
+
let n = sc(e.options, t.id);
|
|
6272
6263
|
if (n) return [n];
|
|
6273
|
-
let { field: r, value: i } =
|
|
6264
|
+
let { field: r, value: i } = lc(t.id, e.options);
|
|
6274
6265
|
return [{
|
|
6275
6266
|
colField: r,
|
|
6276
6267
|
label: i,
|
|
6277
6268
|
metadata: { rawValue: i },
|
|
6278
|
-
value: r ?
|
|
6269
|
+
value: r ? Js(r, i) : t.id
|
|
6279
6270
|
}];
|
|
6280
|
-
}),
|
|
6271
|
+
}), jc = (e) => e.filter((e) => e.state === "selected").length, Mc = ["open"], Nc = {
|
|
6281
6272
|
class: "pv-flex pv-text-body-md",
|
|
6282
6273
|
style: {
|
|
6283
6274
|
"--flex-align": "center",
|
|
6284
6275
|
"--flex-gap": "0.5rem"
|
|
6285
6276
|
}
|
|
6286
|
-
},
|
|
6277
|
+
}, Pc = {
|
|
6287
6278
|
class: "pv-flex-vertical pv-surface-accent pv-inset-inline-24",
|
|
6288
6279
|
style: { "--flex-align": "stretch" }
|
|
6289
|
-
},
|
|
6280
|
+
}, Fc = {
|
|
6290
6281
|
key: 0,
|
|
6291
6282
|
class: "pv-flex-vertical",
|
|
6292
6283
|
style: {
|
|
6293
6284
|
"--flex-align": "stretch",
|
|
6294
6285
|
"--flex-gap": "0.5rem"
|
|
6295
6286
|
}
|
|
6296
|
-
},
|
|
6287
|
+
}, Ic = {
|
|
6297
6288
|
key: 0,
|
|
6298
6289
|
class: "pv-flex",
|
|
6299
6290
|
style: {
|
|
6300
6291
|
"--flex-gap": "0.5rem",
|
|
6301
6292
|
"--flex-wrap": "wrap"
|
|
6302
6293
|
}
|
|
6303
|
-
},
|
|
6294
|
+
}, Lc = {
|
|
6304
6295
|
key: 1,
|
|
6305
6296
|
class: "pv-flex",
|
|
6306
6297
|
style: { "--flex-justify": "flex-end" }
|
|
6307
|
-
},
|
|
6298
|
+
}, Rc = {
|
|
6308
6299
|
key: 1,
|
|
6309
6300
|
class: "pv-flex-vertical",
|
|
6310
6301
|
style: {
|
|
6311
6302
|
"--flex-align": "stretch",
|
|
6312
6303
|
"--flex-gap": "0.5rem"
|
|
6313
6304
|
}
|
|
6314
|
-
},
|
|
6305
|
+
}, zc = { key: 2 }, Bc = {
|
|
6315
6306
|
key: 1,
|
|
6316
6307
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6317
6308
|
style: { margin: "0" }
|
|
6318
|
-
},
|
|
6309
|
+
}, Vc = {
|
|
6319
6310
|
key: 1,
|
|
6320
6311
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6321
6312
|
style: { margin: "0" }
|
|
6322
|
-
},
|
|
6313
|
+
}, Hc = {
|
|
6323
6314
|
key: 2,
|
|
6324
6315
|
class: "pv-flex-vertical",
|
|
6325
6316
|
style: {
|
|
6326
6317
|
"--flex-align": "stretch",
|
|
6327
6318
|
"--flex-gap": "0.5rem"
|
|
6328
6319
|
}
|
|
6329
|
-
},
|
|
6320
|
+
}, Uc = { key: 0 }, Wc = {
|
|
6330
6321
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
6331
6322
|
style: { margin: "0" }
|
|
6332
|
-
},
|
|
6323
|
+
}, Gc = {
|
|
6333
6324
|
key: 1,
|
|
6334
6325
|
class: "pv-text-title-sm pv-text-subdued",
|
|
6335
6326
|
style: { margin: "0" }
|
|
6336
|
-
},
|
|
6327
|
+
}, Kc = {
|
|
6337
6328
|
key: 2,
|
|
6338
6329
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6339
6330
|
style: { margin: "0" }
|
|
6340
|
-
},
|
|
6331
|
+
}, qc = {
|
|
6341
6332
|
key: 3,
|
|
6342
6333
|
class: "pv-flex-vertical",
|
|
6343
6334
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -6345,14 +6336,14 @@ var ki = {
|
|
|
6345
6336
|
"--flex-align": "stretch",
|
|
6346
6337
|
"--flex-gap": "0.5rem"
|
|
6347
6338
|
}
|
|
6348
|
-
},
|
|
6339
|
+
}, Jc = {
|
|
6349
6340
|
class: "pv-flex",
|
|
6350
6341
|
style: {
|
|
6351
6342
|
"--flex-align": "center",
|
|
6352
6343
|
"--flex-gap": "0.5rem",
|
|
6353
6344
|
"--flex-wrap": "wrap"
|
|
6354
6345
|
}
|
|
6355
|
-
},
|
|
6346
|
+
}, Yc = {
|
|
6356
6347
|
key: 4,
|
|
6357
6348
|
class: "pv-flex",
|
|
6358
6349
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -6361,7 +6352,7 @@ var ki = {
|
|
|
6361
6352
|
"--flex-gap": "0.5rem",
|
|
6362
6353
|
cursor: "pointer"
|
|
6363
6354
|
}
|
|
6364
|
-
},
|
|
6355
|
+
}, Xc = { class: "pv-text-body-sm" }, Zc = 5, Qc = 500, $c = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
6365
6356
|
__name: "PvFilterPanelAccordion",
|
|
6366
6357
|
props: { filter: {} },
|
|
6367
6358
|
emits: [
|
|
@@ -6373,7 +6364,7 @@ var ki = {
|
|
|
6373
6364
|
"search-change"
|
|
6374
6365
|
],
|
|
6375
6366
|
setup(e, { emit: n }) {
|
|
6376
|
-
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(
|
|
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"), F = (e) => {
|
|
6377
6368
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
6378
6369
|
return [
|
|
6379
6370
|
e.value,
|
|
@@ -6383,34 +6374,34 @@ var ki = {
|
|
|
6383
6374
|
e.matchedValue,
|
|
6384
6375
|
e.matchedField
|
|
6385
6376
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
6386
|
-
},
|
|
6377
|
+
}, I = 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), L = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), R = (e, t = 0) => e.flatMap((e) => [
|
|
6387
6378
|
{
|
|
6388
6379
|
depth: t,
|
|
6389
6380
|
kind: "option",
|
|
6390
6381
|
option: e
|
|
6391
6382
|
},
|
|
6392
|
-
...e.children?.length ?
|
|
6393
|
-
...
|
|
6383
|
+
...e.children?.length ? R(e.children, t + 1) : [],
|
|
6384
|
+
...L(e) ? [{
|
|
6394
6385
|
depth: t + 1,
|
|
6395
6386
|
kind: "child-load-more",
|
|
6396
6387
|
parent: e
|
|
6397
6388
|
}] : []
|
|
6398
|
-
]),
|
|
6399
|
-
let e =
|
|
6400
|
-
return t ? e.filter((e) => e.kind === "option" &&
|
|
6401
|
-
}),
|
|
6389
|
+
]), z = r(() => {
|
|
6390
|
+
let e = R(v.value), t = D.value;
|
|
6391
|
+
return t ? e.filter((e) => e.kind === "option" && F(e.option).includes(t)) : e;
|
|
6392
|
+
}), B = r(() => w.value ? [] : A.value.map((e) => f.value[e] ?? {
|
|
6402
6393
|
label: e,
|
|
6403
6394
|
value: e
|
|
6404
|
-
})),
|
|
6395
|
+
})), te = r(() => w.value ? z.value : z.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), ne = r(() => te.value.length > m.value), V = r(() => ne.value || c.filter.hasMore), H = r(() => te.value.slice(0, m.value)), re = r(() => w.value ? Oc({
|
|
6405
6396
|
options: y.value,
|
|
6406
6397
|
state: T.value
|
|
6407
|
-
}) : /* @__PURE__ */ new Map()), G = (e) =>
|
|
6398
|
+
}) : /* @__PURE__ */ new Map()), G = (e) => Vs(e, c.filter.colDef), ie = (e) => Hs(e), K = (e) => w.value ? re.value.get(e.value) ?? {
|
|
6408
6399
|
indeterminate: !1,
|
|
6409
6400
|
selected: !1
|
|
6410
6401
|
} : {
|
|
6411
6402
|
indeterminate: !1,
|
|
6412
6403
|
selected: ee.value.has(e.value)
|
|
6413
|
-
}, ae = (e) => K(e).selected, oe = (e) => K(e).indeterminate, q = (e) =>
|
|
6404
|
+
}, ae = (e) => K(e).selected, oe = (e) => K(e).indeterminate, q = (e) => Ys(e) ?? e.value, se = (e) => Xs(e, c.filter.key), ce = (e) => {
|
|
6414
6405
|
let t = se(e), n = q(e);
|
|
6415
6406
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
6416
6407
|
}, le = (e) => ({
|
|
@@ -6419,13 +6410,13 @@ var ki = {
|
|
|
6419
6410
|
context: e,
|
|
6420
6411
|
disabled: c.filter.disabled || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
6421
6412
|
id: e.value,
|
|
6422
|
-
searchText:
|
|
6413
|
+
searchText: F(e),
|
|
6423
6414
|
secondaryText: ie(e),
|
|
6424
6415
|
subText: e.subText,
|
|
6425
6416
|
subduedText: e.subduedText,
|
|
6426
6417
|
text: G(e),
|
|
6427
6418
|
totalChildCount: e.totalChildCount
|
|
6428
|
-
}), de = r(() => v.value.map(le)), J = r(() =>
|
|
6419
|
+
}), de = r(() => v.value.map(le)), J = r(() => B.value.map(le)), fe = r(() => ({
|
|
6429
6420
|
colDef: c.filter.colDef,
|
|
6430
6421
|
disabled: c.filter.disabled,
|
|
6431
6422
|
filter: c.filter,
|
|
@@ -6439,7 +6430,7 @@ var ki = {
|
|
|
6439
6430
|
rowsLoading: c.filter.isLoading
|
|
6440
6431
|
}
|
|
6441
6432
|
})), Y = () => {
|
|
6442
|
-
|
|
6433
|
+
ne.value ? m.value += Zc : c.filter.hasMore && d("load-more", p.value.trim());
|
|
6443
6434
|
}, pe = (e) => {
|
|
6444
6435
|
d("load-more", p.value.trim(), e.value);
|
|
6445
6436
|
}, me = (e) => {
|
|
@@ -6464,7 +6455,7 @@ var ki = {
|
|
|
6464
6455
|
if (w.value) {
|
|
6465
6456
|
d("filter-change", {
|
|
6466
6457
|
type: "aggregate-selection",
|
|
6467
|
-
value:
|
|
6458
|
+
value: Ec({
|
|
6468
6459
|
checked: t,
|
|
6469
6460
|
option: e,
|
|
6470
6461
|
options: y.value,
|
|
@@ -6490,19 +6481,19 @@ var ki = {
|
|
|
6490
6481
|
}, xe = () => {
|
|
6491
6482
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
6492
6483
|
};
|
|
6493
|
-
|
|
6494
|
-
m.value =
|
|
6484
|
+
U([p, () => c.filter.key], () => {
|
|
6485
|
+
m.value = Zc;
|
|
6495
6486
|
});
|
|
6496
6487
|
let Se = () => {
|
|
6497
|
-
let e =
|
|
6488
|
+
let e = Zs(y.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
6498
6489
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
6499
|
-
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
6490
|
+
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Qc)));
|
|
6500
6491
|
};
|
|
6501
|
-
return
|
|
6492
|
+
return U(y, () => {
|
|
6502
6493
|
c.filter.isOpen && Se();
|
|
6503
|
-
}, { immediate: !0 }),
|
|
6494
|
+
}, { immediate: !0 }), U(() => c.filter.isOpen, (e) => {
|
|
6504
6495
|
e ? Se() : f.value = {};
|
|
6505
|
-
}),
|
|
6496
|
+
}), U(() => c.filter.searchQuery, (e) => {
|
|
6506
6497
|
let t = e ?? "";
|
|
6507
6498
|
t !== p.value && (p.value = t);
|
|
6508
6499
|
}), ue(p, (e) => {
|
|
@@ -6517,22 +6508,22 @@ var ki = {
|
|
|
6517
6508
|
"data-testid": "pv-filter-panel-accordion",
|
|
6518
6509
|
open: e.filter.isOpen,
|
|
6519
6510
|
onToggle: me
|
|
6520
|
-
}, [s("summary",
|
|
6511
|
+
}, [s("summary", Nc, [
|
|
6521
6512
|
u(X, {
|
|
6522
6513
|
"aria-hidden": "true",
|
|
6523
6514
|
class: "pv-text-subdued",
|
|
6524
6515
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
6525
6516
|
}, null, 8, ["name"]),
|
|
6526
6517
|
s("span", null, N(e.filter.label), 1),
|
|
6527
|
-
|
|
6518
|
+
I.value ? (E(), i(Le, {
|
|
6528
6519
|
key: 0,
|
|
6529
|
-
value:
|
|
6520
|
+
value: I.value,
|
|
6530
6521
|
size: "sm",
|
|
6531
6522
|
variant: "secondary"
|
|
6532
6523
|
}, null, 8, ["value"])) : a("", !0)
|
|
6533
|
-
]), s("div",
|
|
6534
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div",
|
|
6535
|
-
e.filter.filterGroupOptions?.length ? (E(), o("div",
|
|
6524
|
+
]), s("div", Pc, [C.value ? (E(), o(t, { key: 0 }, [
|
|
6525
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div", Fc, [
|
|
6526
|
+
e.filter.filterGroupOptions?.length ? (E(), o("div", Ic, [(E(!0), o(t, null, k(e.filter.filterGroupOptions, (t) => (E(), i(Q, {
|
|
6536
6527
|
key: t.field,
|
|
6537
6528
|
disabled: e.filter.disabled,
|
|
6538
6529
|
label: t.label,
|
|
@@ -6545,7 +6536,7 @@ var ki = {
|
|
|
6545
6536
|
"variant",
|
|
6546
6537
|
"onClick"
|
|
6547
6538
|
]))), 128))])) : a("", !0),
|
|
6548
|
-
e.filter.displayPreferencesIcon ? (E(), o("div",
|
|
6539
|
+
e.filter.displayPreferencesIcon ? (E(), o("div", Lc, [u(Q, {
|
|
6549
6540
|
ariaLabel: "Open preferences",
|
|
6550
6541
|
disabled: e.filter.disabled,
|
|
6551
6542
|
leftIcon: "sliders-horizontal",
|
|
@@ -6566,7 +6557,7 @@ var ki = {
|
|
|
6566
6557
|
"disabled",
|
|
6567
6558
|
"placeholder"
|
|
6568
6559
|
]),
|
|
6569
|
-
|
|
6560
|
+
B.value.length ? (E(), o("div", Rc, [(E(!0), o(t, null, k(B.value, (t) => (E(), i(js, {
|
|
6570
6561
|
key: t.value,
|
|
6571
6562
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
6572
6563
|
"focus-text": e.filter.focusText,
|
|
@@ -6599,10 +6590,10 @@ var ki = {
|
|
|
6599
6590
|
"onFocusValue",
|
|
6600
6591
|
"onToggleValue"
|
|
6601
6592
|
]))), 128))])) : a("", !0),
|
|
6602
|
-
e.filter.isLoading ? (E(), o("div",
|
|
6603
|
-
!v.value.length && !
|
|
6604
|
-
|
|
6605
|
-
|
|
6593
|
+
e.filter.isLoading ? (E(), o("div", zc, [u(Oe, { size: "sm" })])) : (E(), o(t, { key: 3 }, [
|
|
6594
|
+
!v.value.length && !B.value.length && !V.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)) : !z.value.length && !B.value.length && !V.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),
|
|
6595
|
+
te.value.length || V.value ? (E(), o("div", Hc, [
|
|
6596
|
+
te.value.length ? (E(), o("div", Uc, [e.filter.filterOptionsSortTooltip ? (E(), i(Pn, {
|
|
6606
6597
|
key: 0,
|
|
6607
6598
|
variant: "dark",
|
|
6608
6599
|
disableInteractive: !0,
|
|
@@ -6611,11 +6602,11 @@ var ki = {
|
|
|
6611
6602
|
"use-teleport": !0,
|
|
6612
6603
|
style: { "--max-width": "200px" }
|
|
6613
6604
|
}, {
|
|
6614
|
-
trigger: W(() => [s("p",
|
|
6605
|
+
trigger: W(() => [s("p", Wc, N(P.value), 1)]),
|
|
6615
6606
|
content: W(() => [l(N(e.filter.filterOptionsSortTooltip), 1)]),
|
|
6616
6607
|
_: 1
|
|
6617
|
-
})) : (E(), o("p",
|
|
6618
|
-
(E(!0), o(t, null, k(
|
|
6608
|
+
})) : (E(), o("p", Gc, N(P.value), 1))])) : a("", !0),
|
|
6609
|
+
(E(!0), o(t, null, k(H.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(js, {
|
|
6619
6610
|
key: 0,
|
|
6620
6611
|
depth: n.depth,
|
|
6621
6612
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
@@ -6666,7 +6657,7 @@ var ki = {
|
|
|
6666
6657
|
"style",
|
|
6667
6658
|
"onClick"
|
|
6668
6659
|
]))], 64))), 128)),
|
|
6669
|
-
|
|
6660
|
+
V.value ? (E(), i(Q, {
|
|
6670
6661
|
key: 1,
|
|
6671
6662
|
class: "pv-text-brand",
|
|
6672
6663
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
@@ -6678,7 +6669,7 @@ var ki = {
|
|
|
6678
6669
|
])) : a("", !0),
|
|
6679
6670
|
e.filter.filterFooterRenderer ? (E(), i(j(e.filter.filterFooterRenderer), b(_({ key: 3 }, fe.value)), null, 16)) : a("", !0)
|
|
6680
6671
|
], 64))
|
|
6681
|
-
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(
|
|
6672
|
+
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(Ts, {
|
|
6682
6673
|
key: 1,
|
|
6683
6674
|
mode: "dual",
|
|
6684
6675
|
rangeValue: e.filter.rangeValue,
|
|
@@ -6699,7 +6690,7 @@ var ki = {
|
|
|
6699
6690
|
"min",
|
|
6700
6691
|
"step",
|
|
6701
6692
|
"value-decimals"
|
|
6702
|
-
])) : S.value === "range" ? (E(), o("p",
|
|
6693
|
+
])) : S.value === "range" ? (E(), o("p", Kc, " Range filters require minimum and maximum bounds. ")) : S.value === "boolean" ? (E(), o("div", qc, [s("div", Jc, [u(Q, {
|
|
6703
6694
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6704
6695
|
label: M.value,
|
|
6705
6696
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
@@ -6724,37 +6715,37 @@ var ki = {
|
|
|
6724
6715
|
label: "Clear",
|
|
6725
6716
|
variant: "ghost",
|
|
6726
6717
|
onClick: r[3] ||= (e) => he(null)
|
|
6727
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label",
|
|
6718
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label", Yc, [u(Qa, {
|
|
6728
6719
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6729
6720
|
modelValue: e.filter.existsValue ?? !1,
|
|
6730
6721
|
"onUpdate:modelValue": ge
|
|
6731
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
6722
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Xc, N(h.value), 1)])) : a("", !0)])], 40, Mc));
|
|
6732
6723
|
}
|
|
6733
|
-
}), [["__scopeId", "data-v-014fc511"]]),
|
|
6724
|
+
}), [["__scopeId", "data-v-014fc511"]]), el = {
|
|
6734
6725
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
6735
6726
|
"data-testid": "pv-filter-panel-applied-section",
|
|
6736
6727
|
style: {
|
|
6737
6728
|
"--flex-align": "stretch",
|
|
6738
6729
|
"--flex-gap": "1rem"
|
|
6739
6730
|
}
|
|
6740
|
-
},
|
|
6731
|
+
}, tl = {
|
|
6741
6732
|
key: 0,
|
|
6742
6733
|
class: "pv-flex-vertical",
|
|
6743
6734
|
style: {
|
|
6744
6735
|
"--flex-align": "stretch",
|
|
6745
6736
|
"--flex-gap": "1rem"
|
|
6746
6737
|
}
|
|
6747
|
-
},
|
|
6738
|
+
}, nl = { class: "pv-text-title-md pv-stack-8" }, rl = {
|
|
6748
6739
|
class: "pv-flex",
|
|
6749
6740
|
style: {
|
|
6750
6741
|
"--flex-gap": "0.375rem",
|
|
6751
6742
|
"--flex-wrap": "wrap"
|
|
6752
6743
|
}
|
|
6753
|
-
},
|
|
6744
|
+
}, il = {
|
|
6754
6745
|
key: 1,
|
|
6755
6746
|
class: "pv-text-body-sm pv-text-subdued",
|
|
6756
6747
|
style: { margin: "0" }
|
|
6757
|
-
},
|
|
6748
|
+
}, al = /* @__PURE__ */ d({
|
|
6758
6749
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
6759
6750
|
props: {
|
|
6760
6751
|
appliedCount: { default: 0 },
|
|
@@ -6769,14 +6760,14 @@ var ki = {
|
|
|
6769
6760
|
let r = n, a = (e, t) => {
|
|
6770
6761
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
6771
6762
|
};
|
|
6772
|
-
return (n, r) => (E(), o("section",
|
|
6763
|
+
return (n, r) => (E(), o("section", el, [e.appliedCount ? (E(), o("div", tl, [(E(!0), o(t, null, k(e.appliedGroups, (n) => (E(), o("div", {
|
|
6773
6764
|
key: n.key,
|
|
6774
6765
|
class: "pv-flex-vertical pv-border-bottom",
|
|
6775
6766
|
style: {
|
|
6776
6767
|
"--flex-align": "stretch",
|
|
6777
6768
|
"padding-bottom": "4px"
|
|
6778
6769
|
}
|
|
6779
|
-
}, [s("span",
|
|
6770
|
+
}, [s("span", nl, N(n.label), 1), s("div", rl, [(E(!0), o(t, null, k(n.values, (t) => (E(), i(er, {
|
|
6780
6771
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
6781
6772
|
label: t.label,
|
|
6782
6773
|
showClear: !e.readOnly,
|
|
@@ -6785,9 +6776,9 @@ var ki = {
|
|
|
6785
6776
|
"label",
|
|
6786
6777
|
"showClear",
|
|
6787
6778
|
"onHandleClose"
|
|
6788
|
-
]))), 128))])]))), 128))])) : (E(), o("p",
|
|
6779
|
+
]))), 128))])]))), 128))])) : (E(), o("p", il, "No filters applied yet."))]));
|
|
6789
6780
|
}
|
|
6790
|
-
}),
|
|
6781
|
+
}), ol = { class: "pv-horizontal-scroller" }, sl = ["aria-label"], cl = 1, ll = /* @__PURE__ */ d({
|
|
6791
6782
|
__name: "PvHorizontalScroller",
|
|
6792
6783
|
props: {
|
|
6793
6784
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -6811,7 +6802,7 @@ var ki = {
|
|
|
6811
6802
|
let e = u.value;
|
|
6812
6803
|
if (!e) return;
|
|
6813
6804
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
6814
|
-
n.value = e.scrollLeft >
|
|
6805
|
+
n.value = e.scrollLeft > cl, c.value = e.scrollLeft < t - cl;
|
|
6815
6806
|
}, h = () => {
|
|
6816
6807
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
6817
6808
|
}, g = () => {
|
|
@@ -6831,7 +6822,7 @@ var ki = {
|
|
|
6831
6822
|
h(), g();
|
|
6832
6823
|
}), S(() => {
|
|
6833
6824
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
6834
|
-
}), (t, r) => (E(), o("div",
|
|
6825
|
+
}), (t, r) => (E(), o("div", ol, [
|
|
6835
6826
|
s("div", {
|
|
6836
6827
|
ref_key: "scrollContainer",
|
|
6837
6828
|
ref: u,
|
|
@@ -6842,7 +6833,7 @@ var ki = {
|
|
|
6842
6833
|
ref_key: "contentContainer",
|
|
6843
6834
|
ref: l,
|
|
6844
6835
|
class: "pv-horizontal-scroller-content"
|
|
6845
|
-
}, [A(t.$slots, "default")], 512)], 10,
|
|
6836
|
+
}, [A(t.$slots, "default")], 512)], 10, sl),
|
|
6846
6837
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
6847
6838
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
6848
6839
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -6875,18 +6866,18 @@ var ki = {
|
|
|
6875
6866
|
])) : a("", !0)], 2)
|
|
6876
6867
|
]));
|
|
6877
6868
|
}
|
|
6878
|
-
}),
|
|
6869
|
+
}), ul = {
|
|
6879
6870
|
key: 0,
|
|
6880
6871
|
class: "pv-border-bottom",
|
|
6881
6872
|
"data-testid": "pv-filter-panel-category-row"
|
|
6882
|
-
},
|
|
6873
|
+
}, dl = {
|
|
6883
6874
|
class: "pv-flex",
|
|
6884
6875
|
style: {
|
|
6885
6876
|
"--flex-align": "center",
|
|
6886
6877
|
"--flex-gap": "8px",
|
|
6887
6878
|
padding: "8px 12px"
|
|
6888
6879
|
}
|
|
6889
|
-
},
|
|
6880
|
+
}, fl = /* @__PURE__ */ d({
|
|
6890
6881
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
6891
6882
|
props: /* @__PURE__ */ g({
|
|
6892
6883
|
categoryOrder: {},
|
|
@@ -6897,7 +6888,7 @@ var ki = {
|
|
|
6897
6888
|
}),
|
|
6898
6889
|
emits: ["update:modelValue"],
|
|
6899
6890
|
setup(e) {
|
|
6900
|
-
let n = e, c =
|
|
6891
|
+
let n = e, c = L(e, "modelValue"), l = r(() => {
|
|
6901
6892
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
6902
6893
|
for (let r of n.filters) r.category && (e.add(r.category), t.includes(r.category) || t.push(r.category));
|
|
6903
6894
|
let r = (n.categoryOrder ?? []).filter((t) => e.has(t)), i = new Set(r), a = t.filter((e) => !i.has(e));
|
|
@@ -6905,9 +6896,9 @@ var ki = {
|
|
|
6905
6896
|
}), d = (e) => {
|
|
6906
6897
|
c.value = e;
|
|
6907
6898
|
}, f = (e) => c.value === e ? "primary" : "secondary";
|
|
6908
|
-
return
|
|
6899
|
+
return U(l, (e) => {
|
|
6909
6900
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
6910
|
-
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div",
|
|
6901
|
+
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div", ul, [u(ll, {
|
|
6911
6902
|
ariaLabel: "Filter categories",
|
|
6912
6903
|
buttonSize: "md",
|
|
6913
6904
|
buttonVariant: "secondary",
|
|
@@ -6916,7 +6907,7 @@ var ki = {
|
|
|
6916
6907
|
rightAriaLabel: "Scroll filter categories right",
|
|
6917
6908
|
showFades: ""
|
|
6918
6909
|
}, {
|
|
6919
|
-
default: W(() => [s("div",
|
|
6910
|
+
default: W(() => [s("div", dl, [u(Q, {
|
|
6920
6911
|
label: "All",
|
|
6921
6912
|
size: "md",
|
|
6922
6913
|
variant: f(null),
|
|
@@ -6935,17 +6926,17 @@ var ki = {
|
|
|
6935
6926
|
_: 1
|
|
6936
6927
|
})])) : a("", !0);
|
|
6937
6928
|
}
|
|
6938
|
-
}),
|
|
6929
|
+
}), pl = (e, t, n) => {
|
|
6939
6930
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
6940
6931
|
if (r.length <= 1) return "Search";
|
|
6941
6932
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
6942
6933
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
6943
|
-
},
|
|
6944
|
-
if (!r ||
|
|
6934
|
+
}, ml = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), hl = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
6935
|
+
if (!r || ml(i) === ml(r)) return e;
|
|
6945
6936
|
if (!a || !n) return r;
|
|
6946
6937
|
let o = t(n);
|
|
6947
6938
|
return o ? `${o}: ${r}` : r;
|
|
6948
|
-
},
|
|
6939
|
+
}, gl = () => ({
|
|
6949
6940
|
booleanValue: null,
|
|
6950
6941
|
existsValue: !1,
|
|
6951
6942
|
rangeValue: {
|
|
@@ -6953,15 +6944,15 @@ var ki = {
|
|
|
6953
6944
|
min: null
|
|
6954
6945
|
},
|
|
6955
6946
|
values: []
|
|
6956
|
-
}),
|
|
6957
|
-
conditions: e.conditions.map(
|
|
6947
|
+
}), _l = (e) => typeof e == "object" && !!e && !Array.isArray(e), vl = (e) => _l(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", yl = (e) => _l(e) && e.filterType === "join" && Array.isArray(e.conditions), bl = (e) => e, xl = (e) => yl(e) ? {
|
|
6948
|
+
conditions: e.conditions.map(xl),
|
|
6958
6949
|
filterType: "join",
|
|
6959
6950
|
type: e.type
|
|
6960
|
-
} : { ...e },
|
|
6961
|
-
if (!
|
|
6962
|
-
if (
|
|
6951
|
+
} : { ...e }, Sl = (e) => {
|
|
6952
|
+
if (!_l(e)) return null;
|
|
6953
|
+
if (yl(e)) {
|
|
6963
6954
|
let t = e.conditions.flatMap((e) => {
|
|
6964
|
-
let t =
|
|
6955
|
+
let t = Sl(e);
|
|
6965
6956
|
return t ? [t] : [];
|
|
6966
6957
|
});
|
|
6967
6958
|
return t.length ? {
|
|
@@ -6970,43 +6961,43 @@ var ki = {
|
|
|
6970
6961
|
type: e.type === "OR" ? "OR" : "AND"
|
|
6971
6962
|
} : null;
|
|
6972
6963
|
}
|
|
6973
|
-
return
|
|
6974
|
-
},
|
|
6964
|
+
return vl(e) ? { ...e } : null;
|
|
6965
|
+
}, Cl = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, wl = (e) => _l(e) && !yl(e) && !vl(e), Tl = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), El = {
|
|
6975
6966
|
number: "agNumberColumnFilter",
|
|
6976
6967
|
set: "agSetColumnFilter",
|
|
6977
6968
|
text: "agTextColumnFilter"
|
|
6978
|
-
},
|
|
6969
|
+
}, Dl = (e) => {
|
|
6979
6970
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
6980
6971
|
let t = e.filterParams;
|
|
6981
6972
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
6982
|
-
},
|
|
6983
|
-
let n =
|
|
6984
|
-
return r ? n.findIndex((e) =>
|
|
6985
|
-
},
|
|
6986
|
-
let n =
|
|
6973
|
+
}, Ol = (e, t) => {
|
|
6974
|
+
let n = Dl(e), r = t.filterType ? El[t.filterType] : void 0;
|
|
6975
|
+
return r ? n.findIndex((e) => _l(e) && e.filter === r) : -1;
|
|
6976
|
+
}, kl = (e, t) => {
|
|
6977
|
+
let n = Dl(e);
|
|
6987
6978
|
if (!n.length) return null;
|
|
6988
|
-
let r = Array(n.length).fill(null), i =
|
|
6979
|
+
let r = Array(n.length).fill(null), i = Ol(e, t);
|
|
6989
6980
|
return i < 0 ? null : (r[i] = t, {
|
|
6990
6981
|
filterModels: r,
|
|
6991
6982
|
filterType: "multi"
|
|
6992
6983
|
});
|
|
6993
|
-
},
|
|
6994
|
-
if (!
|
|
6984
|
+
}, Al = (e, t) => {
|
|
6985
|
+
if (!wl(e)) return null;
|
|
6995
6986
|
let n = e[t];
|
|
6996
|
-
return
|
|
6997
|
-
},
|
|
6987
|
+
return _l(n) ? n : null;
|
|
6988
|
+
}, jl = (e) => e ? Tl(e) ? e.filterModels.filter((e) => _l(e)) : [e] : [], Ml = (e) => wl(e) ? { ...e } : {}, Nl = (e) => Tl(e) ? {
|
|
6998
6989
|
...e,
|
|
6999
6990
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
7000
|
-
} : { ...e },
|
|
7001
|
-
let n =
|
|
6991
|
+
} : { ...e }, Pl = (e, t) => {
|
|
6992
|
+
let n = Ml(e);
|
|
7002
6993
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
7003
|
-
},
|
|
6994
|
+
}, Fl = /* @__PURE__ */ new Set(), Il = (e, t) => {
|
|
7004
6995
|
let n = `${e}:${t ?? "unknown"}`;
|
|
7005
|
-
|
|
7006
|
-
},
|
|
7007
|
-
let a =
|
|
7008
|
-
if (
|
|
7009
|
-
let o =
|
|
6996
|
+
Fl.has(n) || (console.warn(`PvFilterPanel: overwriting an occupied regular multi-filter slot for "${e}" because the target slot was occupied or no empty slot was available.`), Fl.add(n));
|
|
6997
|
+
}, Ll = (e, t, n, r, i) => {
|
|
6998
|
+
let a = Al(e, t);
|
|
6999
|
+
if (Tl(a) && r) {
|
|
7000
|
+
let o = Ml(e), s = Nl(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
7010
7001
|
if (!n) {
|
|
7011
7002
|
for (let e of l) c[e] = null;
|
|
7012
7003
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -7019,15 +7010,15 @@ var ki = {
|
|
|
7019
7010
|
c[e] = n;
|
|
7020
7011
|
for (let e of t) c[e] = null;
|
|
7021
7012
|
} else {
|
|
7022
|
-
let e =
|
|
7013
|
+
let e = Ol(i, n), r = c.findIndex((e) => !e), a = Dl(i).length > 0;
|
|
7023
7014
|
if (e >= 0) {
|
|
7024
7015
|
for (; c.length <= e;) c.push(null);
|
|
7025
|
-
c[e] &&
|
|
7016
|
+
c[e] && Il(t, n.filterType), c[e] = n;
|
|
7026
7017
|
} else if (r >= 0) c[r] = n;
|
|
7027
7018
|
else if (!a) c.push(n);
|
|
7028
7019
|
else {
|
|
7029
7020
|
let e = Math.max(0, c.length - 1);
|
|
7030
|
-
|
|
7021
|
+
Il(t, n.filterType), c[e] = n;
|
|
7031
7022
|
}
|
|
7032
7023
|
}
|
|
7033
7024
|
return o[t] = {
|
|
@@ -7035,54 +7026,54 @@ var ki = {
|
|
|
7035
7026
|
filterModels: c
|
|
7036
7027
|
}, o;
|
|
7037
7028
|
}
|
|
7038
|
-
if (!n) return
|
|
7039
|
-
let o =
|
|
7040
|
-
return o[t] =
|
|
7041
|
-
},
|
|
7029
|
+
if (!n) return Pl(e, t);
|
|
7030
|
+
let o = Ml(e);
|
|
7031
|
+
return o[t] = kl(i, n) ?? n, o;
|
|
7032
|
+
}, Rl = (e, t) => {
|
|
7042
7033
|
if (e) {
|
|
7043
|
-
if (
|
|
7044
|
-
e.conditions.forEach((e) =>
|
|
7034
|
+
if (yl(e)) {
|
|
7035
|
+
e.conditions.forEach((e) => Rl(e, t));
|
|
7045
7036
|
return;
|
|
7046
7037
|
}
|
|
7047
7038
|
t(e);
|
|
7048
7039
|
}
|
|
7049
|
-
},
|
|
7050
|
-
if (!
|
|
7040
|
+
}, zl = (e, t) => yl(e) ? e.conditions.length > 0 && e.conditions.every((e) => zl(e, t)) : e.colId === t, Bl = (e) => {
|
|
7041
|
+
if (!yl(e)) return e.colId;
|
|
7051
7042
|
let t = /* @__PURE__ */ new Set();
|
|
7052
|
-
return
|
|
7053
|
-
},
|
|
7054
|
-
if (!e ||
|
|
7055
|
-
if (!
|
|
7056
|
-
let n = e.conditions.flatMap((e) =>
|
|
7043
|
+
return Rl(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
7044
|
+
}, Vl = (e, t) => {
|
|
7045
|
+
if (!e || zl(e, t)) return null;
|
|
7046
|
+
if (!yl(e) || e.type !== "AND") return xl(e);
|
|
7047
|
+
let n = e.conditions.flatMap((e) => zl(e, t) ? [] : [xl(e)]);
|
|
7057
7048
|
return n.length ? n.length === 1 ? n[0] : {
|
|
7058
7049
|
conditions: n,
|
|
7059
7050
|
filterType: e.filterType,
|
|
7060
7051
|
type: e.type
|
|
7061
7052
|
} : null;
|
|
7062
|
-
},
|
|
7063
|
-
let r =
|
|
7064
|
-
return n ? r ?
|
|
7053
|
+
}, Hl = (e, t, n) => {
|
|
7054
|
+
let r = Vl(Sl(e), t);
|
|
7055
|
+
return n ? r ? yl(r) && r.type === "AND" ? bl({
|
|
7065
7056
|
...r,
|
|
7066
7057
|
conditions: [...r.conditions, n]
|
|
7067
|
-
}) :
|
|
7058
|
+
}) : bl({
|
|
7068
7059
|
conditions: [r, n],
|
|
7069
7060
|
filterType: "join",
|
|
7070
7061
|
type: "AND"
|
|
7071
|
-
}) :
|
|
7072
|
-
},
|
|
7062
|
+
}) : bl(n) : bl(r);
|
|
7063
|
+
}, Ul = (e, t) => {
|
|
7073
7064
|
e.includes(t) || e.push(t);
|
|
7074
|
-
},
|
|
7065
|
+
}, Wl = (e) => {
|
|
7075
7066
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
7076
7067
|
let t = String(e.filter);
|
|
7077
7068
|
return t === "true" || t === "false";
|
|
7078
|
-
},
|
|
7069
|
+
}, Gl = (e) => e.filterType === "boolean" || Wl(e), Kl = (e, t) => {
|
|
7079
7070
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7080
|
-
e.values.forEach((e) =>
|
|
7071
|
+
e.values.forEach((e) => Ul(t.values, String(e)));
|
|
7081
7072
|
return;
|
|
7082
7073
|
}
|
|
7083
7074
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7084
7075
|
let n = String(e.filter);
|
|
7085
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7076
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ul(t.values, n);
|
|
7086
7077
|
return;
|
|
7087
7078
|
}
|
|
7088
7079
|
if (e.filterType === "boolean") {
|
|
@@ -7106,7 +7097,7 @@ var ki = {
|
|
|
7106
7097
|
...t.rangeValue,
|
|
7107
7098
|
max: e.filter
|
|
7108
7099
|
}));
|
|
7109
|
-
},
|
|
7100
|
+
}, ql = (e, t) => {
|
|
7110
7101
|
if (e.type === "notBlank") {
|
|
7111
7102
|
t.existsValue = !0;
|
|
7112
7103
|
return;
|
|
@@ -7116,12 +7107,12 @@ var ki = {
|
|
|
7116
7107
|
return;
|
|
7117
7108
|
}
|
|
7118
7109
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7119
|
-
e.values.forEach((e) =>
|
|
7110
|
+
e.values.forEach((e) => Ul(t.values, String(e)));
|
|
7120
7111
|
return;
|
|
7121
7112
|
}
|
|
7122
7113
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7123
7114
|
let n = String(e.filter);
|
|
7124
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7115
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ul(t.values, n);
|
|
7125
7116
|
return;
|
|
7126
7117
|
}
|
|
7127
7118
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -7134,29 +7125,29 @@ var ki = {
|
|
|
7134
7125
|
...t.rangeValue,
|
|
7135
7126
|
max: e.filter
|
|
7136
7127
|
}));
|
|
7137
|
-
},
|
|
7128
|
+
}, Jl = (e, t = "advanced") => {
|
|
7138
7129
|
let n = /* @__PURE__ */ new Map();
|
|
7139
7130
|
if (t === "regular") {
|
|
7140
|
-
if (!
|
|
7131
|
+
if (!wl(e)) return n;
|
|
7141
7132
|
for (let [t, r] of Object.entries(e)) {
|
|
7142
|
-
let e =
|
|
7143
|
-
|
|
7133
|
+
let e = gl();
|
|
7134
|
+
jl(r).forEach((t) => Kl(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
7144
7135
|
}
|
|
7145
7136
|
return n;
|
|
7146
7137
|
}
|
|
7147
|
-
let r =
|
|
7138
|
+
let r = Sl(e);
|
|
7148
7139
|
if (!r) return n;
|
|
7149
|
-
let i =
|
|
7140
|
+
let i = yl(r) && r.type === "AND" ? r.conditions : [r];
|
|
7150
7141
|
for (let e of i) {
|
|
7151
|
-
let t =
|
|
7142
|
+
let t = Bl(e);
|
|
7152
7143
|
if (!t) continue;
|
|
7153
|
-
let r = n.get(t) ??
|
|
7154
|
-
|
|
7155
|
-
e.colId === t &&
|
|
7144
|
+
let r = n.get(t) ?? gl();
|
|
7145
|
+
Rl(e, (e) => {
|
|
7146
|
+
e.colId === t && ql(e, r);
|
|
7156
7147
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
7157
7148
|
}
|
|
7158
7149
|
return n;
|
|
7159
|
-
},
|
|
7150
|
+
}, Yl = (e, t = "advanced") => t === "regular" ? wl(e) && Object.keys(e).length > 0 : Sl(e) !== null, Xl = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Zl = (e, t, n = "advanced") => n === "regular" ? Pl(e, t) : bl(Vl(Sl(e), t)), Ql = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Ll(e, t, null, Gl, a) : Zl(e, t, r) : r === "regular" ? Ll(e, t, i === "text" ? {
|
|
7160
7151
|
filter: String(n),
|
|
7161
7152
|
filterType: "text",
|
|
7162
7153
|
type: "equals"
|
|
@@ -7164,30 +7155,30 @@ var ki = {
|
|
|
7164
7155
|
filter: n,
|
|
7165
7156
|
filterType: "boolean",
|
|
7166
7157
|
type: n ? "true" : "false"
|
|
7167
|
-
},
|
|
7158
|
+
}, Gl, a) : i === "text" ? Hl(e, t, {
|
|
7168
7159
|
colId: t,
|
|
7169
7160
|
filter: String(n),
|
|
7170
7161
|
filterType: "text",
|
|
7171
7162
|
type: "equals"
|
|
7172
|
-
}) :
|
|
7163
|
+
}) : Hl(e, t, {
|
|
7173
7164
|
colId: t,
|
|
7174
7165
|
filterType: "boolean",
|
|
7175
7166
|
type: n ? "true" : "false"
|
|
7176
|
-
}),
|
|
7167
|
+
}), $l = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Ll(e, t, {
|
|
7177
7168
|
filterType: r,
|
|
7178
7169
|
type: "notBlank"
|
|
7179
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
7170
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Hl(e, t, {
|
|
7180
7171
|
colId: t,
|
|
7181
7172
|
filterType: r,
|
|
7182
7173
|
type: "notBlank"
|
|
7183
|
-
}) : i === "regular" ?
|
|
7184
|
-
let o =
|
|
7185
|
-
if (i === "regular") return o === null && s === null ?
|
|
7174
|
+
}) : i === "regular" ? Ll(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Zl(e, t, i), eu = (e, t, n, r, i = "advanced", a) => {
|
|
7175
|
+
let o = Cl(n), s = Cl(r);
|
|
7176
|
+
if (i === "regular") return o === null && s === null ? Ll(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Ll(e, t, {
|
|
7186
7177
|
filter: o,
|
|
7187
7178
|
filterTo: s,
|
|
7188
7179
|
filterType: "number",
|
|
7189
7180
|
type: "inRange"
|
|
7190
|
-
}, (e) => e.filterType === "number", a) :
|
|
7181
|
+
}, (e) => e.filterType === "number", a) : Ll(e, t, {
|
|
7191
7182
|
filter: o ?? s,
|
|
7192
7183
|
filterType: "number",
|
|
7193
7184
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -7203,29 +7194,29 @@ var ki = {
|
|
|
7203
7194
|
filter: s,
|
|
7204
7195
|
filterType: "number",
|
|
7205
7196
|
type: "lessThanOrEqual"
|
|
7206
|
-
}), c.length ?
|
|
7197
|
+
}), c.length ? Hl(e, t, c.length === 1 ? c[0] : {
|
|
7207
7198
|
conditions: c,
|
|
7208
7199
|
filterType: "join",
|
|
7209
7200
|
type: "AND"
|
|
7210
|
-
}) :
|
|
7211
|
-
},
|
|
7201
|
+
}) : Zl(e, t);
|
|
7202
|
+
}, tu = (e, t, n, r = "advanced", i) => {
|
|
7212
7203
|
let a = Array.from(new Set(n));
|
|
7213
|
-
if (r === "regular") return a.length ?
|
|
7204
|
+
if (r === "regular") return a.length ? Ll(e, t, {
|
|
7214
7205
|
filterType: "set",
|
|
7215
7206
|
values: a
|
|
7216
|
-
}, (e) => e.filterType === "set", i) :
|
|
7207
|
+
}, (e) => e.filterType === "set", i) : Ll(e, t, null, (e) => e.filterType === "set", i);
|
|
7217
7208
|
let o = a.map((e) => ({
|
|
7218
7209
|
colId: t,
|
|
7219
7210
|
filter: e,
|
|
7220
7211
|
filterType: "text",
|
|
7221
7212
|
type: "equals"
|
|
7222
7213
|
}));
|
|
7223
|
-
return o.length ?
|
|
7214
|
+
return o.length ? Hl(e, t, o.length === 1 ? o[0] : {
|
|
7224
7215
|
conditions: o,
|
|
7225
7216
|
filterType: "join",
|
|
7226
7217
|
type: "OR"
|
|
7227
|
-
}) :
|
|
7228
|
-
},
|
|
7218
|
+
}) : Zl(e, t);
|
|
7219
|
+
}, nu = Symbol("PvFilterStore"), ru = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, iu = (e, t) => t ?? e, au = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), ou = (e) => {
|
|
7229
7220
|
let t = /* @__PURE__ */ new Map();
|
|
7230
7221
|
for (let n of e) {
|
|
7231
7222
|
if (!n) continue;
|
|
@@ -7237,34 +7228,34 @@ var ki = {
|
|
|
7237
7228
|
t.set(n.value, {
|
|
7238
7229
|
...e,
|
|
7239
7230
|
...n,
|
|
7240
|
-
children:
|
|
7241
|
-
totalChildCount:
|
|
7231
|
+
children: ou([...e.children ?? [], ...n.children ?? []]),
|
|
7232
|
+
totalChildCount: iu(e.totalChildCount, n.totalChildCount)
|
|
7242
7233
|
});
|
|
7243
7234
|
}
|
|
7244
7235
|
return [...t.values()];
|
|
7245
|
-
},
|
|
7236
|
+
}, su = (e, t) => {
|
|
7246
7237
|
for (let n of e ?? []) {
|
|
7247
7238
|
if (!n) continue;
|
|
7248
7239
|
if (n.value === t) return n;
|
|
7249
|
-
let e =
|
|
7240
|
+
let e = su(n.children, t);
|
|
7250
7241
|
if (e) return e;
|
|
7251
7242
|
}
|
|
7252
|
-
},
|
|
7243
|
+
}, cu = (e, t, n) => {
|
|
7253
7244
|
if (!e || t === null) return !1;
|
|
7254
7245
|
if (e.value === t) return !0;
|
|
7255
|
-
let r =
|
|
7256
|
-
return r !== null && r === t ||
|
|
7257
|
-
},
|
|
7258
|
-
let r =
|
|
7246
|
+
let r = Ys(e);
|
|
7247
|
+
return r !== null && r === t || Qs(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => cu(e, t, n)) ?? !1;
|
|
7248
|
+
}, lu = (e, t, n) => {
|
|
7249
|
+
let r = su(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
7259
7250
|
return e.map((e) => e && (e.value === t ? {
|
|
7260
7251
|
...e,
|
|
7261
|
-
children:
|
|
7262
|
-
totalChildCount:
|
|
7252
|
+
children: ou([...e.children ?? [], ...i]),
|
|
7253
|
+
totalChildCount: iu(e.totalChildCount, r?.totalChildCount)
|
|
7263
7254
|
} : e.children?.length ? {
|
|
7264
7255
|
...e,
|
|
7265
|
-
children:
|
|
7256
|
+
children: lu(e.children, t, n).filter((e) => !!e)
|
|
7266
7257
|
} : e));
|
|
7267
|
-
},
|
|
7258
|
+
}, uu = (e, t) => `${e}::${t}`, du = () => {
|
|
7268
7259
|
let e = O(null), t = O(null), n = O(), r = O({}), i = O({}), a = O({}), o = O({}), s = O({}), c = O({}), l = O({}), u = O({}), d = O({}), f = O({}), p = O({}), m = O({}), h = O({}), g = O({}), _ = O(), v = O({}), y = (e) => {
|
|
7269
7260
|
_.value = e;
|
|
7270
7261
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7273,11 +7264,11 @@ var ki = {
|
|
|
7273
7264
|
let r = n ? o : i;
|
|
7274
7265
|
r.value[e] = t;
|
|
7275
7266
|
}, w = () => {
|
|
7276
|
-
o.value =
|
|
7267
|
+
o.value = au(i.value), s.value = au(a.value);
|
|
7277
7268
|
}, T = () => {
|
|
7278
7269
|
o.value = {}, s.value = {};
|
|
7279
7270
|
}, E = () => {
|
|
7280
|
-
i.value =
|
|
7271
|
+
i.value = au(o.value), a.value = au(s.value), T();
|
|
7281
7272
|
}, D = (e, t) => {
|
|
7282
7273
|
c.value[e] = t;
|
|
7283
7274
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7299,7 +7290,7 @@ var ki = {
|
|
|
7299
7290
|
if (!o) return [];
|
|
7300
7291
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7301
7292
|
c.value[n.field] = s;
|
|
7302
|
-
let l = n.parentId ?
|
|
7293
|
+
let l = n.parentId ? su(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? uu(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
7303
7294
|
h.value[b] = x;
|
|
7304
7295
|
try {
|
|
7305
7296
|
let c = await o({
|
|
@@ -7310,17 +7301,17 @@ var ki = {
|
|
|
7310
7301
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7311
7302
|
});
|
|
7312
7303
|
if (h.value[b] !== x) return [];
|
|
7313
|
-
let l =
|
|
7304
|
+
let l = ru(c);
|
|
7314
7305
|
if (n.parentId) {
|
|
7315
|
-
let e =
|
|
7306
|
+
let e = uu(n.field, n.parentId);
|
|
7316
7307
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7317
7308
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7318
7309
|
let _ = a.value[n.field] ?? [], y;
|
|
7319
|
-
y = n.parentId ?
|
|
7310
|
+
y = n.parentId ? lu(r.value[n.field] ?? [], n.parentId, l.values) : v ? ou([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
7320
7311
|
for (let e of _) {
|
|
7321
7312
|
if (!e) continue;
|
|
7322
|
-
let t =
|
|
7323
|
-
y.some((e) =>
|
|
7313
|
+
let t = Ys(e) ?? e.value;
|
|
7314
|
+
y.some((e) => cu(e, t, n.field)) || y.push(e);
|
|
7324
7315
|
}
|
|
7325
7316
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7326
7317
|
} finally {
|
|
@@ -7353,20 +7344,20 @@ var ki = {
|
|
|
7353
7344
|
stagedFilterSelectedMetadataMap: s,
|
|
7354
7345
|
stagedFilterSelectedValueMap: o
|
|
7355
7346
|
};
|
|
7356
|
-
},
|
|
7357
|
-
D(
|
|
7358
|
-
},
|
|
7347
|
+
}, fu = (e) => {
|
|
7348
|
+
D(nu, e);
|
|
7349
|
+
}, pu = () => m(nu, null), mu = () => pu() ?? du(), hu = "__range__", gu = "__boolean__", _u = "__exists__", vu = new Set([
|
|
7359
7350
|
"value",
|
|
7360
7351
|
"range",
|
|
7361
7352
|
"boolean",
|
|
7362
7353
|
"exists"
|
|
7363
7354
|
]);
|
|
7364
|
-
function
|
|
7355
|
+
function yu(e, t, n) {
|
|
7365
7356
|
f();
|
|
7366
|
-
let i = O(t.value), a =
|
|
7357
|
+
let i = O(t.value), a = du(), o = pu(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), u = r(() => !!(e.filterStore ?? o)), d = r(() => !u.value && !!e.filterOptionsHandler), p = r(() => e.filterStore ?? o ?? a), m = r(() => p.value === a), h = r(() => u.value || d.value), g = r(() => e.filterModelType ?? p.value?.filterModelType.value), _ = r(() => g.value ?? "advanced"), v = r(() => {
|
|
7367
7358
|
let n = p.value;
|
|
7368
7359
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
7369
|
-
}), y = r(() =>
|
|
7360
|
+
}), y = r(() => Jl(v.value, _.value)), b = (e, t) => {
|
|
7370
7361
|
let n = e.applyFilterModel;
|
|
7371
7362
|
if (typeof n == "function") {
|
|
7372
7363
|
n(t);
|
|
@@ -7380,9 +7371,9 @@ function xu(e, t, n) {
|
|
|
7380
7371
|
}
|
|
7381
7372
|
b(t, n);
|
|
7382
7373
|
};
|
|
7383
|
-
|
|
7374
|
+
U(() => e.filterOptionsHandler, (e) => {
|
|
7384
7375
|
a.setFilterOptionsHandler(e);
|
|
7385
|
-
}, { immediate: !0 }),
|
|
7376
|
+
}, { immediate: !0 }), U([
|
|
7386
7377
|
() => e.filterOptions,
|
|
7387
7378
|
m,
|
|
7388
7379
|
() => e.filterOptionsHandler
|
|
@@ -7391,7 +7382,7 @@ function xu(e, t, n) {
|
|
|
7391
7382
|
}, {
|
|
7392
7383
|
deep: !0,
|
|
7393
7384
|
immediate: !0
|
|
7394
|
-
}),
|
|
7385
|
+
}), U([
|
|
7395
7386
|
() => e.filterHasMoreMap,
|
|
7396
7387
|
m,
|
|
7397
7388
|
() => e.filterOptionsHandler
|
|
@@ -7400,7 +7391,7 @@ function xu(e, t, n) {
|
|
|
7400
7391
|
}, {
|
|
7401
7392
|
deep: !0,
|
|
7402
7393
|
immediate: !0
|
|
7403
|
-
}),
|
|
7394
|
+
}), U([
|
|
7404
7395
|
() => e.filterLoadingMap,
|
|
7405
7396
|
m,
|
|
7406
7397
|
() => e.filterOptionsHandler
|
|
@@ -7409,7 +7400,7 @@ function xu(e, t, n) {
|
|
|
7409
7400
|
}, {
|
|
7410
7401
|
deep: !0,
|
|
7411
7402
|
immediate: !0
|
|
7412
|
-
}),
|
|
7403
|
+
}), U([
|
|
7413
7404
|
() => e.filterLoadingMoreMap,
|
|
7414
7405
|
m,
|
|
7415
7406
|
() => e.filterOptionsHandler
|
|
@@ -7418,7 +7409,7 @@ function xu(e, t, n) {
|
|
|
7418
7409
|
}, {
|
|
7419
7410
|
deep: !0,
|
|
7420
7411
|
immediate: !0
|
|
7421
|
-
}),
|
|
7412
|
+
}), U([
|
|
7422
7413
|
() => e.filterSearchQueries,
|
|
7423
7414
|
m,
|
|
7424
7415
|
() => e.filterOptionsHandler
|
|
@@ -7427,7 +7418,7 @@ function xu(e, t, n) {
|
|
|
7427
7418
|
}, {
|
|
7428
7419
|
deep: !0,
|
|
7429
7420
|
immediate: !0
|
|
7430
|
-
}),
|
|
7421
|
+
}), U([
|
|
7431
7422
|
t,
|
|
7432
7423
|
m,
|
|
7433
7424
|
() => e.staged
|
|
@@ -7436,7 +7427,7 @@ function xu(e, t, n) {
|
|
|
7436
7427
|
}, {
|
|
7437
7428
|
deep: !0,
|
|
7438
7429
|
immediate: !0
|
|
7439
|
-
}),
|
|
7430
|
+
}), U([() => e.staged, p], ([e]) => {
|
|
7440
7431
|
if (e) {
|
|
7441
7432
|
i.value = t.value;
|
|
7442
7433
|
let e = p.value;
|
|
@@ -7452,12 +7443,12 @@ function xu(e, t, n) {
|
|
|
7452
7443
|
let t = T(e);
|
|
7453
7444
|
_.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\".");
|
|
7454
7445
|
};
|
|
7455
|
-
|
|
7446
|
+
re(() => {
|
|
7456
7447
|
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;
|
|
7457
7448
|
});
|
|
7458
7449
|
let D = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ee = (e) => {
|
|
7459
7450
|
let t = D(e), n = t.filterPanelType;
|
|
7460
|
-
if (n &&
|
|
7451
|
+
if (n && vu.has(n)) return n;
|
|
7461
7452
|
if (t.filterPanelRange) return "range";
|
|
7462
7453
|
if (t.dataType === "boolean") return "boolean";
|
|
7463
7454
|
if (e.filter) return "value";
|
|
@@ -7466,61 +7457,61 @@ function xu(e, t, n) {
|
|
|
7466
7457
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
7467
7458
|
}, P = (t) => {
|
|
7468
7459
|
let n = D(t), r = k(t);
|
|
7469
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
7470
|
-
},
|
|
7460
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && H.value.has(r) ? !1 : !!ee(t);
|
|
7461
|
+
}, F = (e) => (p.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), I = (t) => {
|
|
7471
7462
|
let n = p.value;
|
|
7472
7463
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
7473
|
-
},
|
|
7464
|
+
}, L = (e) => p.value.filterHasMoreMap.value[e] ?? !1, R = (e) => p.value.filterLoadingMap.value[e] ?? !1, z = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1, B = (e) => p.value.filterSearchQueries.value[e] ?? "", te = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
7474
7465
|
label: e.label,
|
|
7475
7466
|
value: e.filter.value
|
|
7476
|
-
}]),
|
|
7477
|
-
...ne(e),
|
|
7467
|
+
}]), ne = (e) => [
|
|
7478
7468
|
...te(e),
|
|
7479
|
-
...F(e)
|
|
7480
|
-
|
|
7469
|
+
...F(e),
|
|
7470
|
+
...I(e)
|
|
7471
|
+
], V = (e) => {
|
|
7481
7472
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
7482
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
7473
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(V) : [];
|
|
7483
7474
|
return n ? [n, ...r] : r;
|
|
7484
|
-
},
|
|
7475
|
+
}, H = r(() => {
|
|
7485
7476
|
let t = /* @__PURE__ */ new Set();
|
|
7486
7477
|
for (let n of e.colDefs) {
|
|
7487
7478
|
let e = D(n);
|
|
7488
7479
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
7489
|
-
for (let n of
|
|
7480
|
+
for (let n of V(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
7490
7481
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
7491
7482
|
}
|
|
7492
7483
|
return t;
|
|
7493
7484
|
}), W = (e) => {
|
|
7494
|
-
let t = k(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i =
|
|
7485
|
+
let t = k(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = V(n.aggregateFieldHierarchy);
|
|
7495
7486
|
return Array.from(new Set([
|
|
7496
7487
|
t,
|
|
7497
7488
|
...r,
|
|
7498
7489
|
...i
|
|
7499
7490
|
].filter(Boolean)));
|
|
7500
|
-
}, G = (e) => _.value === "advanced" &&
|
|
7491
|
+
}, G = (e) => _.value === "advanced" && oc(e), ie = (e, t) => G(e) ? gc({
|
|
7501
7492
|
colDef: e,
|
|
7502
7493
|
model: v.value,
|
|
7503
7494
|
options: t
|
|
7504
7495
|
}) : new Map(W(e).map((e) => [e, y.value.get(e)?.values ?? []])), K = (e, t, n, r) => {
|
|
7505
7496
|
let i = /* @__PURE__ */ new Set();
|
|
7506
|
-
for (let t of
|
|
7497
|
+
for (let t of Zs(r)) for (let [r, a] of n) for (let n of a) Qs(t, r, n, e) && i.add(`${r}:${n}`);
|
|
7507
7498
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
7508
7499
|
colField: t === e ? void 0 : t,
|
|
7509
7500
|
label: n,
|
|
7510
7501
|
metadata: { rawValue: n },
|
|
7511
|
-
value: t === e ? n :
|
|
7502
|
+
value: t === e ? n : Js(t, n)
|
|
7512
7503
|
}]));
|
|
7513
7504
|
}, ae = (e, t, n) => {
|
|
7514
7505
|
let r = /* @__PURE__ */ new Set();
|
|
7515
|
-
for (let i of
|
|
7516
|
-
let n =
|
|
7506
|
+
for (let i of Zs(n)) {
|
|
7507
|
+
let n = Xs(i, e), a = Ys(i);
|
|
7517
7508
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
7518
7509
|
}
|
|
7519
7510
|
return Array.from(r);
|
|
7520
7511
|
}, oe = (t) => Object.fromEntries(W(t).map((t) => [t, e.focusedValues[t] ?? []])), q = (t) => e.colDefs.find((e) => k(e) === t || e.field === t || e.colId === t), se = (e) => q(e)?.headerName ?? e, ce = (e) => {
|
|
7521
7512
|
let t = D(e);
|
|
7522
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
7523
|
-
}, le = (e, t) =>
|
|
7513
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : pl(k(e), t.queryColIds, se);
|
|
7514
|
+
}, le = (e, t) => hl({
|
|
7524
7515
|
fallbackSubText: e.subText,
|
|
7525
7516
|
getDisplayName: se,
|
|
7526
7517
|
matchedField: e.matchedField,
|
|
@@ -7538,8 +7529,8 @@ function xu(e, t, n) {
|
|
|
7538
7529
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
7539
7530
|
label: q(e)?.headerName ?? e
|
|
7540
7531
|
}));
|
|
7541
|
-
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) =>
|
|
7542
|
-
let n = k(t), r = D(t), i = j(t), a = ue(
|
|
7532
|
+
}, 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(F(n), t), o = ue(ne(n), t), s = {
|
|
7543
7534
|
category: M(t),
|
|
7544
7535
|
colDef: t,
|
|
7545
7536
|
dataType: r.dataType ?? null,
|
|
@@ -7557,11 +7548,11 @@ function xu(e, t, n) {
|
|
|
7557
7548
|
focusText: e.focusText,
|
|
7558
7549
|
focusedValues: e.focusedValues[n] ?? [],
|
|
7559
7550
|
focusedValuesByField: oe(t),
|
|
7560
|
-
hasMore:
|
|
7551
|
+
hasMore: L(n),
|
|
7561
7552
|
isAggregate: G(t),
|
|
7562
7553
|
isFocusable: e.enableFocusView && (!e.focusableFields.length || W(t).some((t) => e.focusableFields.includes(t))),
|
|
7563
|
-
isLoading:
|
|
7564
|
-
isLoadingMore:
|
|
7554
|
+
isLoading: R(n),
|
|
7555
|
+
isLoadingMore: z(n),
|
|
7565
7556
|
isOpen: !1,
|
|
7566
7557
|
key: n,
|
|
7567
7558
|
knownOptions: o,
|
|
@@ -7570,7 +7561,7 @@ function xu(e, t, n) {
|
|
|
7570
7561
|
rangeMin: A(r.filterPanelRange?.min),
|
|
7571
7562
|
rangeStep: A(r.filterPanelRange?.step),
|
|
7572
7563
|
searchPlaceholder: ce(t),
|
|
7573
|
-
searchQuery:
|
|
7564
|
+
searchQuery: B(n) ?? "",
|
|
7574
7565
|
type: i,
|
|
7575
7566
|
valueDecimals: r.valueDecimals ?? null,
|
|
7576
7567
|
valueLabels: N(t)
|
|
@@ -7590,7 +7581,7 @@ function xu(e, t, n) {
|
|
|
7590
7581
|
...s,
|
|
7591
7582
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
7592
7583
|
};
|
|
7593
|
-
let c = o, l = ie(t, c), u = K(n, t, l, c), d = [...c, ...u], f = G(t) ?
|
|
7584
|
+
let c = o, l = ie(t, c), u = K(n, t, l, c), d = [...c, ...u], f = G(t) ? hc({
|
|
7594
7585
|
colDef: t,
|
|
7595
7586
|
model: v.value,
|
|
7596
7587
|
options: d
|
|
@@ -7609,19 +7600,19 @@ function xu(e, t, n) {
|
|
|
7609
7600
|
label: e.label,
|
|
7610
7601
|
values: t
|
|
7611
7602
|
}] : [];
|
|
7612
|
-
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() =>
|
|
7603
|
+
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => Yl(v.value, _.value)), ge = r(() => he.value || me.value > 0), _e = (e) => {
|
|
7613
7604
|
let t = J(e.field);
|
|
7614
7605
|
if (!t || t.type !== e.filter.type) return !0;
|
|
7615
7606
|
if (e.filter.type === "value") {
|
|
7616
7607
|
if (t.isAggregate && e.option) {
|
|
7617
|
-
let { selected: n } =
|
|
7608
|
+
let { selected: n } = kc({
|
|
7618
7609
|
option: e.option,
|
|
7619
7610
|
options: t.knownOptions ?? [],
|
|
7620
7611
|
state: t.aggregateSelectionState ?? []
|
|
7621
7612
|
});
|
|
7622
7613
|
return e.filter.checked ? n : !n;
|
|
7623
7614
|
}
|
|
7624
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
7615
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Ys(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
7625
7616
|
return e.filter.checked ? a : !a;
|
|
7626
7617
|
}
|
|
7627
7618
|
return e.filter.type === "range" ? t.rangeValue?.min === e.filter.value.min && t.rangeValue?.max === e.filter.value.max : e.filter.type === "boolean" ? t.booleanValue === e.filter.value : (t.existsValue ?? !1) === e.filter.value;
|
|
@@ -7635,14 +7626,14 @@ function xu(e, t, n) {
|
|
|
7635
7626
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
7636
7627
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
7637
7628
|
if (!e) return !1;
|
|
7638
|
-
let r =
|
|
7629
|
+
let r = Xs(e, t), i = Ys(e) ?? e.value;
|
|
7639
7630
|
return r !== n || c.has(i);
|
|
7640
7631
|
});
|
|
7641
7632
|
if (i) {
|
|
7642
|
-
let e =
|
|
7633
|
+
let e = Ys(i) ?? i.value, n = Xs(i, t);
|
|
7643
7634
|
l.some((r) => {
|
|
7644
|
-
let i =
|
|
7645
|
-
return
|
|
7635
|
+
let i = Ys(r) ?? r.value;
|
|
7636
|
+
return Xs(r, t) === n && i === e;
|
|
7646
7637
|
}) || l.push(i);
|
|
7647
7638
|
}
|
|
7648
7639
|
o.value[t] = l;
|
|
@@ -7652,7 +7643,7 @@ function xu(e, t, n) {
|
|
|
7652
7643
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
7653
7644
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
7654
7645
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
7655
|
-
a.value[t.key] =
|
|
7646
|
+
a.value[t.key] = Ac({
|
|
7656
7647
|
options: t.knownOptions ?? [],
|
|
7657
7648
|
state: n
|
|
7658
7649
|
});
|
|
@@ -7681,48 +7672,48 @@ function xu(e, t, n) {
|
|
|
7681
7672
|
return t === null ? [] : [{
|
|
7682
7673
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
7683
7674
|
type: "boolean",
|
|
7684
|
-
value:
|
|
7675
|
+
value: gu
|
|
7685
7676
|
}];
|
|
7686
7677
|
}, Te = (e) => e.existsValue ? [{
|
|
7687
7678
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
7688
7679
|
type: "exists",
|
|
7689
|
-
value:
|
|
7680
|
+
value: _u
|
|
7690
7681
|
}] : [], Ee = (e) => {
|
|
7691
7682
|
let t = e.rangeValue ?? {
|
|
7692
7683
|
max: null,
|
|
7693
7684
|
min: null
|
|
7694
7685
|
};
|
|
7695
7686
|
return t.min === null && t.max === null ? [] : [{
|
|
7696
|
-
label:
|
|
7687
|
+
label: Rs(t.min, t.max, {
|
|
7697
7688
|
dataType: e.dataType,
|
|
7698
7689
|
valueDecimals: e.valueDecimals
|
|
7699
7690
|
}),
|
|
7700
7691
|
type: "range",
|
|
7701
|
-
value:
|
|
7692
|
+
value: hu
|
|
7702
7693
|
}];
|
|
7703
7694
|
}, De = (e, t, n) => {
|
|
7704
7695
|
let r = n.get(t) ?? null;
|
|
7705
7696
|
return {
|
|
7706
|
-
field: r ?
|
|
7707
|
-
label: r ?
|
|
7708
|
-
resultCount:
|
|
7697
|
+
field: r ? Xs(r, e.key) : void 0,
|
|
7698
|
+
label: r ? Vs(r, e.colDef) : t,
|
|
7699
|
+
resultCount: Hs(r),
|
|
7709
7700
|
subText: r?.subText,
|
|
7710
7701
|
subduedText: r?.subduedText,
|
|
7711
7702
|
type: "value",
|
|
7712
|
-
value: r ?
|
|
7703
|
+
value: r ? Ys(r) ?? r.value : t
|
|
7713
7704
|
};
|
|
7714
7705
|
}, Oe = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
7715
7706
|
field: e.field,
|
|
7716
7707
|
label: e.label,
|
|
7717
7708
|
type: "boolean",
|
|
7718
|
-
value:
|
|
7719
|
-
}] : []), ke = (e) =>
|
|
7709
|
+
value: gu
|
|
7710
|
+
}] : []), ke = (e) => Ac({
|
|
7720
7711
|
options: e.knownOptions ?? [],
|
|
7721
7712
|
state: e.aggregateSelectionState ?? []
|
|
7722
7713
|
}).map((t) => ({
|
|
7723
7714
|
field: e.key,
|
|
7724
|
-
label:
|
|
7725
|
-
resultCount:
|
|
7715
|
+
label: Vs(t, e.colDef),
|
|
7716
|
+
resultCount: Hs(t),
|
|
7726
7717
|
subText: t.subText,
|
|
7727
7718
|
subduedText: t.subduedText,
|
|
7728
7719
|
type: "value",
|
|
@@ -7732,7 +7723,7 @@ function xu(e, t, n) {
|
|
|
7732
7723
|
if (e.type === "boolean") return we(e);
|
|
7733
7724
|
if (e.type === "exists") return Te(e);
|
|
7734
7725
|
if (e.isAggregate) return [...ke(e), ...Oe(e)];
|
|
7735
|
-
let t = new Map(
|
|
7726
|
+
let t = new Map(Zs(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
7736
7727
|
return [...(e.selectedValues ?? []).map((n) => De(e, n, t)), ...Oe(e)];
|
|
7737
7728
|
}, je = () => {
|
|
7738
7729
|
ze(), Ce(null, "clear-all");
|
|
@@ -7744,9 +7735,9 @@ function xu(e, t, n) {
|
|
|
7744
7735
|
ze();
|
|
7745
7736
|
let e = p.value;
|
|
7746
7737
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
7747
|
-
}, Pe = (e) =>
|
|
7738
|
+
}, Pe = (e) => Xl(J(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
7748
7739
|
let r = J(e);
|
|
7749
|
-
r?.isAggregate && (xe(r, t), Ce(
|
|
7740
|
+
r?.isAggregate && (xe(r, t), Ce(pc({
|
|
7750
7741
|
baseModel: v.value,
|
|
7751
7742
|
colDef: r.colDef,
|
|
7752
7743
|
options: r.knownOptions ?? [],
|
|
@@ -7761,7 +7752,7 @@ function xu(e, t, n) {
|
|
|
7761
7752
|
if (t.type === "value") {
|
|
7762
7753
|
let r = J(e), i = fe(e, n, t.value);
|
|
7763
7754
|
if (r?.isAggregate && i) {
|
|
7764
|
-
Fe(e,
|
|
7755
|
+
Fe(e, Ec({
|
|
7765
7756
|
checked: t.checked,
|
|
7766
7757
|
option: i,
|
|
7767
7758
|
options: r.knownOptions ?? [],
|
|
@@ -7777,10 +7768,10 @@ function xu(e, t, n) {
|
|
|
7777
7768
|
return;
|
|
7778
7769
|
}
|
|
7779
7770
|
if (t.type === "boolean") {
|
|
7780
|
-
Ce(
|
|
7771
|
+
Ce(Ql(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
7781
7772
|
return;
|
|
7782
7773
|
}
|
|
7783
|
-
Ce(
|
|
7774
|
+
Ce($l(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
7784
7775
|
}, Ie = (e, t, n, r) => {
|
|
7785
7776
|
let i = p.value;
|
|
7786
7777
|
return !i || e.type !== "value" ? !1 : n !== "open" || r ? !0 : i.filterLoadingMap.value[e.key] ? !1 : i.filterStaleMap.value[e.key] || !(i.filterOptionsMap.value[e.key] ?? []).length ? !0 : (i.filterSearchQueries.value[e.key] ?? "") !== t;
|
|
@@ -7800,7 +7791,7 @@ function xu(e, t, n) {
|
|
|
7800
7791
|
}, Le = (e, t, r) => {
|
|
7801
7792
|
n("load-more", e.key, e.colDef, t, r), Z(e, t, r ? "child-load-more" : "load-more", r);
|
|
7802
7793
|
}, Re = (e, t, n) => {
|
|
7803
|
-
Ce(
|
|
7794
|
+
Ce(eu(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
7804
7795
|
}, ze = () => {
|
|
7805
7796
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
7806
7797
|
l.clear();
|
|
@@ -7831,7 +7822,7 @@ function xu(e, t, n) {
|
|
|
7831
7822
|
Z(e, t, "open");
|
|
7832
7823
|
}, Ue = (e, t, n, r, i) => {
|
|
7833
7824
|
let a = y.value.get(t)?.values ?? [], o = r ? Array.from(new Set([...a, n])) : a.filter((e) => e !== n);
|
|
7834
|
-
be(e, t, o, r ? i : void 0), Ce(
|
|
7825
|
+
be(e, t, o, r ? i : void 0), Ce(tu(v.value, t, o, _.value, q(t) ?? J(e)?.colDef), "value-toggle", t, "value");
|
|
7835
7826
|
};
|
|
7836
7827
|
return {
|
|
7837
7828
|
resolvedFilters: Y,
|
|
@@ -7855,8 +7846,8 @@ function xu(e, t, n) {
|
|
|
7855
7846
|
handleSearchChange: Ve,
|
|
7856
7847
|
handleSuggestionClick: (e) => {
|
|
7857
7848
|
if (e.filter.type === "value" && e.option) {
|
|
7858
|
-
let t = J(e.field), n =
|
|
7859
|
-
t?.isAggregate ? Fe(e.field,
|
|
7849
|
+
let t = J(e.field), n = Xs(e.option, e.field), r = Ys(e.option) ?? e.filter.value;
|
|
7850
|
+
t?.isAggregate ? Fe(e.field, Ec({
|
|
7860
7851
|
checked: e.filter.checked,
|
|
7861
7852
|
option: e.option,
|
|
7862
7853
|
options: t.knownOptions ?? [],
|
|
@@ -7867,21 +7858,21 @@ function xu(e, t, n) {
|
|
|
7867
7858
|
},
|
|
7868
7859
|
removeAppliedFilter: (e, t, n) => {
|
|
7869
7860
|
let r = n ?? J(e)?.type ?? "value";
|
|
7870
|
-
if (r === "range" || !n && t ===
|
|
7871
|
-
Ce(
|
|
7861
|
+
if (r === "range" || !n && t === hu) {
|
|
7862
|
+
Ce(eu(v.value, e, null, null, _.value, q(e) ?? J(e)?.colDef), "remove-filter", e, "range");
|
|
7872
7863
|
return;
|
|
7873
7864
|
}
|
|
7874
|
-
if (r === "boolean" || !n && t ===
|
|
7875
|
-
Ce(
|
|
7865
|
+
if (r === "boolean" || !n && t === gu) {
|
|
7866
|
+
Ce(Ql(v.value, e, null, _.value, "boolean", q(e) ?? J(e)?.colDef), "remove-filter", e, "boolean");
|
|
7876
7867
|
return;
|
|
7877
7868
|
}
|
|
7878
|
-
if (r === "exists" || !n && t ===
|
|
7879
|
-
Ce(
|
|
7869
|
+
if (r === "exists" || !n && t === _u) {
|
|
7870
|
+
Ce($l(v.value, e, !1, "text", _.value, q(e) ?? J(e)?.colDef), "remove-filter", e, "exists");
|
|
7880
7871
|
return;
|
|
7881
7872
|
}
|
|
7882
7873
|
let i = J(e);
|
|
7883
7874
|
if (r === "value" && i?.isAggregate) {
|
|
7884
|
-
let e =
|
|
7875
|
+
let e = sc(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? Ec({
|
|
7885
7876
|
checked: !1,
|
|
7886
7877
|
option: e,
|
|
7887
7878
|
options: i.knownOptions ?? [],
|
|
@@ -7891,36 +7882,36 @@ function xu(e, t, n) {
|
|
|
7891
7882
|
return;
|
|
7892
7883
|
}
|
|
7893
7884
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
7894
|
-
be(J(e)?.key ?? e, e, a), Ce(
|
|
7885
|
+
be(J(e)?.key ?? e, e, a), Ce(tu(v.value, e, a, _.value, q(e) ?? J(e)?.colDef), "remove-filter", e, "value");
|
|
7895
7886
|
}
|
|
7896
7887
|
};
|
|
7897
7888
|
}
|
|
7898
7889
|
//#endregion
|
|
7899
7890
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7900
|
-
var
|
|
7891
|
+
var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, Su = { class: "pv-filter-panel-body pv-flex-vertical" }, Cu = {
|
|
7901
7892
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
7902
7893
|
"data-testid": "pv-filter-panel-filters-view"
|
|
7903
|
-
},
|
|
7894
|
+
}, wu = {
|
|
7904
7895
|
key: 0,
|
|
7905
7896
|
"aria-label": "Filter suggestions",
|
|
7906
7897
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
7907
7898
|
"data-testid": "pv-filter-panel-suggestions"
|
|
7908
|
-
},
|
|
7899
|
+
}, Tu = { class: "pv-filter-panel-suggestion-tags pv-flex" }, Eu = {
|
|
7909
7900
|
key: 1,
|
|
7910
7901
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7911
|
-
},
|
|
7902
|
+
}, Du = {
|
|
7912
7903
|
key: 2,
|
|
7913
7904
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7914
|
-
},
|
|
7905
|
+
}, Ou = {
|
|
7915
7906
|
key: 3,
|
|
7916
7907
|
class: "pv-filter-panel-filter-list pv-flex-vertical"
|
|
7917
|
-
},
|
|
7908
|
+
}, ku = {
|
|
7918
7909
|
key: 0,
|
|
7919
7910
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
7920
|
-
},
|
|
7911
|
+
}, Au = {
|
|
7921
7912
|
key: 1,
|
|
7922
7913
|
class: "pv-filter-panel-actions pv-flex"
|
|
7923
|
-
},
|
|
7914
|
+
}, ju = { class: "pv-text-body-sm" }, Mu = { class: "pv-filter-panel-modal-footer pv-flex" }, Nu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
7924
7915
|
__name: "PvFilterPanel",
|
|
7925
7916
|
props: /* @__PURE__ */ g({
|
|
7926
7917
|
applyLabel: { default: "Apply" },
|
|
@@ -7995,31 +7986,31 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
7995
7986
|
"suggestion-click"
|
|
7996
7987
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
7997
7988
|
setup(e, { emit: n }) {
|
|
7998
|
-
let c = e, l =
|
|
7989
|
+
let c = e, l = L(e, "filterModel"), d = L(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"), F = O({}), I = O(null), R = O(!1), z = r(() => I.value === null ? p.value : p.value.filter((e) => e.category === I.value)), B = r(() => z.value.map((e) => ({
|
|
7999
7990
|
...e,
|
|
8000
|
-
isOpen:
|
|
8001
|
-
}))),
|
|
7991
|
+
isOpen: F.value[e.key] ?? e.isOpen ?? !1
|
|
7992
|
+
}))), te = r(() => [{
|
|
8002
7993
|
label: "Filters",
|
|
8003
7994
|
value: "filters"
|
|
8004
7995
|
}, {
|
|
8005
7996
|
label: `Applied (${h.value})`,
|
|
8006
7997
|
value: "applied"
|
|
8007
|
-
}]),
|
|
7998
|
+
}]), ne = r(() => ({
|
|
8008
7999
|
"--flex-align": "stretch",
|
|
8009
8000
|
"--flex-gap": "0",
|
|
8010
8001
|
flex: `0 0 ${c.width}`,
|
|
8011
8002
|
minHeight: "0",
|
|
8012
8003
|
width: c.width
|
|
8013
|
-
})),
|
|
8004
|
+
})), V = (e) => {
|
|
8014
8005
|
(e === "filters" || e === "applied") && (M.value = e);
|
|
8015
|
-
},
|
|
8016
|
-
|
|
8017
|
-
},
|
|
8018
|
-
|
|
8006
|
+
}, U = (e, t) => {
|
|
8007
|
+
F.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
8008
|
+
}, re = () => {
|
|
8009
|
+
R.value = !1;
|
|
8019
8010
|
}, ie = () => {
|
|
8020
|
-
S(),
|
|
8011
|
+
S(), R.value = !1;
|
|
8021
8012
|
}, K = () => {
|
|
8022
|
-
|
|
8013
|
+
R.value = !0;
|
|
8023
8014
|
};
|
|
8024
8015
|
return (n, r) => (E(), o(t, null, [d.value ? a("", !0) : (E(), o("div", {
|
|
8025
8016
|
key: 0,
|
|
@@ -8027,14 +8018,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8027
8018
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
8028
8019
|
"data-testid": "pv-filter-panel",
|
|
8029
8020
|
"aria-label": e.ariaLabel,
|
|
8030
|
-
style: x(
|
|
8021
|
+
style: x(ne.value)
|
|
8031
8022
|
}, [
|
|
8032
|
-
s("div",
|
|
8023
|
+
s("div", xu, [u(ur, {
|
|
8033
8024
|
modelValue: M.value,
|
|
8034
|
-
options:
|
|
8025
|
+
options: te.value,
|
|
8035
8026
|
class: "pv-filter-panel-mode-control",
|
|
8036
8027
|
size: "xl",
|
|
8037
|
-
"onUpdate:modelValue":
|
|
8028
|
+
"onUpdate:modelValue": V
|
|
8038
8029
|
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("", !0) : (E(), i(Q, {
|
|
8039
8030
|
key: 0,
|
|
8040
8031
|
ariaLabel: "Collapse filters",
|
|
@@ -8043,8 +8034,8 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8043
8034
|
variant: "secondary",
|
|
8044
8035
|
onClick: r[0] ||= (e) => d.value = !0
|
|
8045
8036
|
}))]),
|
|
8046
|
-
s("div",
|
|
8047
|
-
!e.readOnly && P(_).length ? (E(), o("section",
|
|
8037
|
+
s("div", Su, [G(s("div", Cu, [
|
|
8038
|
+
!e.readOnly && P(_).length ? (E(), o("section", wu, [r[5] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Tu, [(E(!0), o(t, null, k(P(_), (e) => (E(), i(Lr, {
|
|
8048
8039
|
key: P(C)(e),
|
|
8049
8040
|
icon: e.icon,
|
|
8050
8041
|
"icon-classes": e.iconClasses,
|
|
@@ -8057,9 +8048,9 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8057
8048
|
"onHandleClick"
|
|
8058
8049
|
]))), 128))])])) : a("", !0),
|
|
8059
8050
|
A(n.$slots, "suggestions", {}, void 0, !0),
|
|
8060
|
-
u(
|
|
8061
|
-
modelValue:
|
|
8062
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
8051
|
+
u(fl, {
|
|
8052
|
+
modelValue: I.value,
|
|
8053
|
+
"onUpdate:modelValue": r[1] ||= (e) => I.value = e,
|
|
8063
8054
|
"category-order": e.categoryOrder,
|
|
8064
8055
|
filters: P(p)
|
|
8065
8056
|
}, null, 8, [
|
|
@@ -8067,14 +8058,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8067
8058
|
"category-order",
|
|
8068
8059
|
"filters"
|
|
8069
8060
|
]),
|
|
8070
|
-
P(p).length ?
|
|
8061
|
+
P(p).length ? z.value.length ? (E(), o("div", Ou, [(E(!0), o(t, null, k(B.value, (e) => (E(), i($c, {
|
|
8071
8062
|
key: e.key,
|
|
8072
8063
|
filter: e,
|
|
8073
8064
|
onFilterChange: (t) => P(w)(e.key, t),
|
|
8074
8065
|
onFocusChange: r[2] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
8075
8066
|
onHandleSettingsIcon: r[3] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
8076
8067
|
onLoadMore: (t, n) => P(T)(e, t, n),
|
|
8077
|
-
onOpenChange: (t) =>
|
|
8068
|
+
onOpenChange: (t) => U(e, t),
|
|
8078
8069
|
onSearchChange: (t) => P(D)(e, t)
|
|
8079
8070
|
}, null, 8, [
|
|
8080
8071
|
"filter",
|
|
@@ -8082,8 +8073,8 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8082
8073
|
"onLoadMore",
|
|
8083
8074
|
"onOpenChange",
|
|
8084
8075
|
"onSearchChange"
|
|
8085
|
-
]))), 128))])) : (E(), o("div",
|
|
8086
|
-
], 512), [[
|
|
8076
|
+
]))), 128))])) : (E(), o("div", Du, " No filters in this category. ")) : (E(), o("div", Eu, " No filters available. "))
|
|
8077
|
+
], 512), [[H, M.value === "filters"]]), G(u(al, {
|
|
8087
8078
|
"applied-count": P(h),
|
|
8088
8079
|
"applied-groups": P(m),
|
|
8089
8080
|
"read-only": e.readOnly,
|
|
@@ -8093,14 +8084,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8093
8084
|
"applied-groups",
|
|
8094
8085
|
"read-only",
|
|
8095
8086
|
"onRemoveFilter"
|
|
8096
|
-
]), [[
|
|
8097
|
-
(P(g) || e.staged) && !e.readOnly ? (E(), o("div",
|
|
8087
|
+
]), [[H, M.value === "applied"]])]),
|
|
8088
|
+
(P(g) || e.staged) && !e.readOnly ? (E(), o("div", ku, [P(g) ? (E(), i(Q, {
|
|
8098
8089
|
key: 0,
|
|
8099
8090
|
class: "pv-text-brand",
|
|
8100
8091
|
label: e.clearAllLabel,
|
|
8101
8092
|
variant: "ghost",
|
|
8102
8093
|
onClick: K
|
|
8103
|
-
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div",
|
|
8094
|
+
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div", Au, [u(Q, {
|
|
8104
8095
|
label: e.cancelLabel,
|
|
8105
8096
|
variant: "ghost",
|
|
8106
8097
|
onClick: P(b)
|
|
@@ -8109,17 +8100,17 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8109
8100
|
variant: "primary",
|
|
8110
8101
|
onClick: P(y)
|
|
8111
8102
|
}, null, 8, ["label", "onClick"])])) : a("", !0)])) : a("", !0)
|
|
8112
|
-
], 12,
|
|
8113
|
-
modelValue:
|
|
8114
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
8103
|
+
], 12, bu)), u(Cr, {
|
|
8104
|
+
modelValue: R.value,
|
|
8105
|
+
"onUpdate:modelValue": r[4] ||= (e) => R.value = e,
|
|
8115
8106
|
header: e.clearAllHeader,
|
|
8116
8107
|
style: { "--max-width": "440px" }
|
|
8117
8108
|
}, {
|
|
8118
|
-
body: W(() => [s("p",
|
|
8119
|
-
footer: W(() => [s("div",
|
|
8109
|
+
body: W(() => [s("p", ju, N(e.clearAllBody), 1)]),
|
|
8110
|
+
footer: W(() => [s("div", Mu, [u(Q, {
|
|
8120
8111
|
label: e.cancelLabel,
|
|
8121
8112
|
variant: "ghost",
|
|
8122
|
-
onClick:
|
|
8113
|
+
onClick: re
|
|
8123
8114
|
}, null, 8, ["label"]), u(Q, {
|
|
8124
8115
|
label: e.clearAllLabel,
|
|
8125
8116
|
variant: "primary",
|
|
@@ -8128,16 +8119,16 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8128
8119
|
_: 1
|
|
8129
8120
|
}, 8, ["modelValue", "header"])], 64));
|
|
8130
8121
|
}
|
|
8131
|
-
}), [["__scopeId", "data-v-4a3b2634"]]),
|
|
8122
|
+
}), [["__scopeId", "data-v-4a3b2634"]]), Pu = ["for"], Fu = [
|
|
8132
8123
|
"id",
|
|
8133
8124
|
"type",
|
|
8134
8125
|
"value",
|
|
8135
8126
|
"name",
|
|
8136
8127
|
"disabled"
|
|
8137
|
-
],
|
|
8128
|
+
], Iu = { key: 0 }, Lu = {
|
|
8138
8129
|
class: "pv-inset-square",
|
|
8139
8130
|
style: { "--inset-size": "0px 2px" }
|
|
8140
|
-
},
|
|
8131
|
+
}, Ru = /* @__PURE__ */ d({
|
|
8141
8132
|
__name: "PvFilterModalSelectItem",
|
|
8142
8133
|
props: /* @__PURE__ */ g({
|
|
8143
8134
|
rounded: { type: Boolean },
|
|
@@ -8157,7 +8148,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8157
8148
|
}),
|
|
8158
8149
|
emits: ["update:modelValue"],
|
|
8159
8150
|
setup(e) {
|
|
8160
|
-
let t = e, n =
|
|
8151
|
+
let t = e, n = L(e, "modelValue"), i = r(() => t.id ? t.id : `${t.label}-${Math.random()}`);
|
|
8161
8152
|
return (t, r) => (E(), o("label", {
|
|
8162
8153
|
class: "pv-toggle-ghost",
|
|
8163
8154
|
for: i.value
|
|
@@ -8170,44 +8161,44 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8170
8161
|
value: e.value,
|
|
8171
8162
|
name: e.name,
|
|
8172
8163
|
disabled: e.disabled
|
|
8173
|
-
}, null, 8,
|
|
8174
|
-
e.label ? (E(), o("span",
|
|
8175
|
-
s("span",
|
|
8176
|
-
], 8,
|
|
8164
|
+
}, null, 8, Fu), [[te, n.value]]),
|
|
8165
|
+
e.label ? (E(), o("span", Iu, N(e.label), 1)) : a("", !0),
|
|
8166
|
+
s("span", Lu, N(e.rightCounterBadge), 1)
|
|
8167
|
+
], 8, Pu));
|
|
8177
8168
|
}
|
|
8178
|
-
}),
|
|
8169
|
+
}), zu = ["aria-label"], Bu = {
|
|
8179
8170
|
class: "pv-filter-modal pv-flex",
|
|
8180
8171
|
style: {
|
|
8181
8172
|
"--flex-align": "stretch",
|
|
8182
8173
|
"--flex-gap": "0"
|
|
8183
8174
|
}
|
|
8184
|
-
},
|
|
8175
|
+
}, Vu = {
|
|
8185
8176
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
8186
8177
|
"aria-label": "Filter categories",
|
|
8187
8178
|
style: { "--flex-gap": "0.25rem" }
|
|
8188
|
-
},
|
|
8179
|
+
}, Hu = {
|
|
8189
8180
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
8190
8181
|
style: {
|
|
8191
8182
|
"--flex-align": "stretch",
|
|
8192
8183
|
"--flex-gap": "0.75rem"
|
|
8193
8184
|
}
|
|
8194
|
-
},
|
|
8185
|
+
}, Uu = {
|
|
8195
8186
|
key: 0,
|
|
8196
8187
|
class: "pv-inset-square-8"
|
|
8197
|
-
},
|
|
8188
|
+
}, Wu = {
|
|
8198
8189
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
8199
8190
|
style: {
|
|
8200
8191
|
"--flex-align": "stretch",
|
|
8201
8192
|
"--flex-gap": "0.25rem"
|
|
8202
8193
|
}
|
|
8203
|
-
},
|
|
8194
|
+
}, Gu = {
|
|
8204
8195
|
key: 0,
|
|
8205
8196
|
class: "pv-text-body-xs pv-text-subdued",
|
|
8206
8197
|
style: { margin: "0" }
|
|
8207
|
-
},
|
|
8198
|
+
}, Ku = {
|
|
8208
8199
|
key: 2,
|
|
8209
8200
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
8210
|
-
},
|
|
8201
|
+
}, qu = {
|
|
8211
8202
|
key: 0,
|
|
8212
8203
|
class: "pv-flex pv-border-top",
|
|
8213
8204
|
style: {
|
|
@@ -8216,7 +8207,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8216
8207
|
"margin-top": "0.75rem",
|
|
8217
8208
|
"padding-top": "0.75rem"
|
|
8218
8209
|
}
|
|
8219
|
-
},
|
|
8210
|
+
}, Ju = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8220
8211
|
__name: "PvFilterModal",
|
|
8221
8212
|
props: /* @__PURE__ */ g({
|
|
8222
8213
|
header: { default: "Filters" },
|
|
@@ -8292,7 +8283,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8292
8283
|
"suggestion-click"
|
|
8293
8284
|
], ["update:filterModel", "update:visible"]),
|
|
8294
8285
|
setup(e, { emit: n }) {
|
|
8295
|
-
let c = e, l =
|
|
8286
|
+
let c = e, l = L(e, "filterModel"), d = L(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(() => {
|
|
8296
8287
|
let e = b.value;
|
|
8297
8288
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
8298
8289
|
}), 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) => {
|
|
@@ -8309,7 +8300,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8309
8300
|
let e = S.value;
|
|
8310
8301
|
if (!e) return {};
|
|
8311
8302
|
let t = {};
|
|
8312
|
-
for (let n of
|
|
8303
|
+
for (let n of Zs([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
8313
8304
|
return t;
|
|
8314
8305
|
}), M = r(() => {
|
|
8315
8306
|
let e = S.value?.options ?? [], t = D.value;
|
|
@@ -8317,22 +8308,22 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8317
8308
|
}), N = r(() => C.value ? [] : (S.value?.selectedValues ?? []).map((e) => j.value[e] ?? {
|
|
8318
8309
|
label: e,
|
|
8319
8310
|
value: e
|
|
8320
|
-
})),
|
|
8311
|
+
})), F = r(() => C.value ? M.value : M.value.filter((e) => !T.value.has(e.value))), I = r(() => C.value && S.value ? Oc({
|
|
8321
8312
|
options: S.value.knownOptions ?? [],
|
|
8322
8313
|
state: w.value
|
|
8323
|
-
}) : /* @__PURE__ */ new Map()),
|
|
8314
|
+
}) : /* @__PURE__ */ new Map()), R = (e) => e.isAggregate ? jc(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, z = (e) => C.value ? I.value.get(e.value) ?? {
|
|
8324
8315
|
indeterminate: !1,
|
|
8325
8316
|
selected: !1
|
|
8326
8317
|
} : {
|
|
8327
8318
|
indeterminate: !1,
|
|
8328
8319
|
selected: T.value.has(e.value)
|
|
8329
|
-
},
|
|
8320
|
+
}, B = (e) => S.value ? Vs(e, S.value.colDef) : e.label || e.value, te = (e) => Ys(e) ?? e.value, ne = (e) => Xs(e, S.value?.key ?? ""), V = (e, t) => {
|
|
8330
8321
|
let n = S.value;
|
|
8331
8322
|
if (n) {
|
|
8332
8323
|
if (n.isAggregate) {
|
|
8333
8324
|
_(n.key, {
|
|
8334
8325
|
type: "aggregate-selection",
|
|
8335
|
-
value:
|
|
8326
|
+
value: Ec({
|
|
8336
8327
|
checked: t,
|
|
8337
8328
|
option: e,
|
|
8338
8329
|
options: n.knownOptions ?? [],
|
|
@@ -8343,19 +8334,19 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8343
8334
|
}
|
|
8344
8335
|
_(n.key, {
|
|
8345
8336
|
checked: t,
|
|
8346
|
-
field:
|
|
8337
|
+
field: ne(e),
|
|
8347
8338
|
type: "value",
|
|
8348
|
-
value:
|
|
8339
|
+
value: te(e)
|
|
8349
8340
|
});
|
|
8350
8341
|
}
|
|
8351
|
-
},
|
|
8352
|
-
for (let e of M.value)
|
|
8353
|
-
},
|
|
8342
|
+
}, H = () => {
|
|
8343
|
+
for (let e of M.value) z(e).selected || V(e, !0);
|
|
8344
|
+
}, re = () => {
|
|
8354
8345
|
if (C.value) {
|
|
8355
|
-
for (let e of
|
|
8346
|
+
for (let e of Zs(S.value?.knownOptions ?? [])) z(e).selected && V(e, !1);
|
|
8356
8347
|
return;
|
|
8357
8348
|
}
|
|
8358
|
-
for (let e of N.value)
|
|
8349
|
+
for (let e of N.value) V(e, !1);
|
|
8359
8350
|
}, G = () => {
|
|
8360
8351
|
S.value && f("load-more", S.value.key, S.value.colDef, y.value.trim());
|
|
8361
8352
|
}, ie = r({
|
|
@@ -8364,9 +8355,9 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8364
8355
|
v.value = e;
|
|
8365
8356
|
}
|
|
8366
8357
|
});
|
|
8367
|
-
return
|
|
8358
|
+
return U(() => S.value?.key, (e) => {
|
|
8368
8359
|
y.value = S.value?.searchQuery ?? "", e && d.value && S.value && m(S.value);
|
|
8369
|
-
}),
|
|
8360
|
+
}), U(d, (e) => {
|
|
8370
8361
|
e && S.value && m(S.value);
|
|
8371
8362
|
}), ue(y, (e) => {
|
|
8372
8363
|
let t = S.value;
|
|
@@ -8392,21 +8383,21 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8392
8383
|
width: e.maxWidth,
|
|
8393
8384
|
maxWidth: e.maxWidth
|
|
8394
8385
|
})
|
|
8395
|
-
}, [s("div",
|
|
8386
|
+
}, [s("div", Bu, [s("nav", Vu, [(E(!0), o(t, null, k(b.value, (e) => (E(), i(Ru, {
|
|
8396
8387
|
key: e.key,
|
|
8397
8388
|
modelValue: ie.value,
|
|
8398
8389
|
"onUpdate:modelValue": r[0] ||= (e) => ie.value = e,
|
|
8399
8390
|
class: "pv-full-width pv-space-between",
|
|
8400
8391
|
deselect: !1,
|
|
8401
8392
|
label: e.label,
|
|
8402
|
-
"right-counter-badge":
|
|
8393
|
+
"right-counter-badge": R(e),
|
|
8403
8394
|
value: e.key
|
|
8404
8395
|
}, null, 8, [
|
|
8405
8396
|
"modelValue",
|
|
8406
8397
|
"label",
|
|
8407
8398
|
"right-counter-badge",
|
|
8408
8399
|
"value"
|
|
8409
|
-
]))), 128))]), s("div",
|
|
8400
|
+
]))), 128))]), s("div", Hu, [
|
|
8410
8401
|
u(Wr, {
|
|
8411
8402
|
modelValue: y.value,
|
|
8412
8403
|
"onUpdate:modelValue": r[1] ||= (e) => y.value = e,
|
|
@@ -8418,21 +8409,21 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8418
8409
|
"disabled",
|
|
8419
8410
|
"placeholder"
|
|
8420
8411
|
]),
|
|
8421
|
-
S.value?.isLoading ? (E(), o("div",
|
|
8422
|
-
s("div",
|
|
8412
|
+
S.value?.isLoading ? (E(), o("div", Uu, [u(Oe, { size: "sm" })])) : S.value ? (E(), o(t, { key: 1 }, [
|
|
8413
|
+
s("div", Wu, [(E(!0), o(t, null, k(N.value, (e) => (E(), o("div", {
|
|
8423
8414
|
key: `selected-${e.value}`,
|
|
8424
8415
|
class: "pv-inset-square-8 pv-surface-highlight pv-radius"
|
|
8425
|
-
}, [u(
|
|
8416
|
+
}, [u(js, {
|
|
8426
8417
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8427
|
-
indeterminate:
|
|
8428
|
-
label:
|
|
8418
|
+
indeterminate: z(e).indeterminate,
|
|
8419
|
+
label: B(e),
|
|
8429
8420
|
"query-text": y.value,
|
|
8430
|
-
"result-count": P(
|
|
8421
|
+
"result-count": P(Hs)(e),
|
|
8431
8422
|
selected: !0,
|
|
8432
8423
|
"sub-text": e.subText,
|
|
8433
8424
|
"subdued-text": e.subduedText,
|
|
8434
8425
|
value: e.value,
|
|
8435
|
-
onToggleValue: (t, n) =>
|
|
8426
|
+
onToggleValue: (t, n) => V(e, n)
|
|
8436
8427
|
}, null, 8, [
|
|
8437
8428
|
"disabled",
|
|
8438
8429
|
"indeterminate",
|
|
@@ -8443,20 +8434,20 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8443
8434
|
"subdued-text",
|
|
8444
8435
|
"value",
|
|
8445
8436
|
"onToggleValue"
|
|
8446
|
-
])]))), 128)), (E(!0), o(t, null, k(
|
|
8437
|
+
])]))), 128)), (E(!0), o(t, null, k(F.value, (e) => (E(), o("div", {
|
|
8447
8438
|
key: `option-${e.value}`,
|
|
8448
8439
|
class: "pv-inset-square-8 pv-radius"
|
|
8449
|
-
}, [u(
|
|
8440
|
+
}, [u(js, {
|
|
8450
8441
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8451
|
-
indeterminate:
|
|
8452
|
-
label:
|
|
8442
|
+
indeterminate: z(e).indeterminate,
|
|
8443
|
+
label: B(e),
|
|
8453
8444
|
"query-text": y.value,
|
|
8454
|
-
"result-count": P(
|
|
8455
|
-
selected:
|
|
8445
|
+
"result-count": P(Hs)(e),
|
|
8446
|
+
selected: z(e).selected,
|
|
8456
8447
|
"sub-text": e.subText,
|
|
8457
8448
|
"subdued-text": e.subduedText,
|
|
8458
8449
|
value: e.value,
|
|
8459
|
-
onToggleValue: (t, n) =>
|
|
8450
|
+
onToggleValue: (t, n) => V(e, n)
|
|
8460
8451
|
}, null, 8, [
|
|
8461
8452
|
"disabled",
|
|
8462
8453
|
"indeterminate",
|
|
@@ -8469,7 +8460,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8469
8460
|
"value",
|
|
8470
8461
|
"onToggleValue"
|
|
8471
8462
|
])]))), 128))]),
|
|
8472
|
-
!N.value.length && !
|
|
8463
|
+
!N.value.length && !F.value.length ? (E(), o("p", Gu, " No matching values. ")) : a("", !0),
|
|
8473
8464
|
S.value.hasMore ? (E(), i(Q, {
|
|
8474
8465
|
key: 1,
|
|
8475
8466
|
class: "pv-text-brand",
|
|
@@ -8480,18 +8471,18 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8480
8471
|
onClick: G
|
|
8481
8472
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
8482
8473
|
], 64)) : a("", !0),
|
|
8483
|
-
S.value && !e.readOnly ? (E(), o("div",
|
|
8474
|
+
S.value && !e.readOnly ? (E(), o("div", Ku, [u(Q, {
|
|
8484
8475
|
disabled: S.value.disabled,
|
|
8485
8476
|
label: e.selectAllLabel,
|
|
8486
8477
|
variant: "ghost",
|
|
8487
|
-
onClick:
|
|
8478
|
+
onClick: H
|
|
8488
8479
|
}, null, 8, ["disabled", "label"]), u(Q, {
|
|
8489
8480
|
disabled: S.value.disabled,
|
|
8490
8481
|
label: e.clearSelectionLabel,
|
|
8491
8482
|
variant: "ghost",
|
|
8492
|
-
onClick:
|
|
8483
|
+
onClick: re
|
|
8493
8484
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
8494
|
-
])]), e.staged ? (E(), o("div",
|
|
8485
|
+
])]), e.staged ? (E(), o("div", qu, [u(Q, {
|
|
8495
8486
|
label: e.cancelLabel,
|
|
8496
8487
|
variant: "ghost",
|
|
8497
8488
|
onClick: P(g)
|
|
@@ -8499,14 +8490,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8499
8490
|
label: e.applyLabel,
|
|
8500
8491
|
variant: "primary",
|
|
8501
8492
|
onClick: P(h)
|
|
8502
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
8493
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, zu)]),
|
|
8503
8494
|
_: 3
|
|
8504
8495
|
}, 8, ["modelValue"]));
|
|
8505
8496
|
}
|
|
8506
|
-
}), [["__scopeId", "data-v-f6b1c07d"]]),
|
|
8497
|
+
}), [["__scopeId", "data-v-f6b1c07d"]]), Yu = ["tabindex"], Xu = {
|
|
8507
8498
|
key: 0,
|
|
8508
8499
|
class: "pv-hover-action-menu__actions"
|
|
8509
|
-
},
|
|
8500
|
+
}, Zu = { class: "pv-hover-action-menu__action-group" }, Qu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8510
8501
|
__name: "PvHoverActionMenu",
|
|
8511
8502
|
props: {
|
|
8512
8503
|
disabled: {
|
|
@@ -8529,12 +8520,12 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8529
8520
|
class: y(["pv-hover-action-menu", d.value]),
|
|
8530
8521
|
tabindex: e.options.length ? 0 : void 0,
|
|
8531
8522
|
"data-testid": "pv-hover-action-menu"
|
|
8532
|
-
}, [A(n.$slots, "default", {}, void 0, !0), e.options.length ? (E(), o("div",
|
|
8523
|
+
}, [A(n.$slots, "default", {}, void 0, !0), e.options.length ? (E(), o("div", Xu, [u(Do, {
|
|
8533
8524
|
variant: e.variant,
|
|
8534
8525
|
"data-testid": "pv-hover-action-menu-actions",
|
|
8535
8526
|
onClick: r[0] ||= K(() => {}, ["stop"])
|
|
8536
8527
|
}, {
|
|
8537
|
-
default: W(() => [s("div",
|
|
8528
|
+
default: W(() => [s("div", Zu, [(E(!0), o(t, null, k(e.options, (t) => (E(), i(Pn, {
|
|
8538
8529
|
key: t.id,
|
|
8539
8530
|
variant: "dark",
|
|
8540
8531
|
position: "top-center",
|
|
@@ -8562,9 +8553,9 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8562
8553
|
_: 2
|
|
8563
8554
|
}, 1032, ["description"]))), 128))])]),
|
|
8564
8555
|
_: 1
|
|
8565
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
8556
|
+
}, 8, ["variant"])])) : a("", !0)], 10, Yu));
|
|
8566
8557
|
}
|
|
8567
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
8558
|
+
}), [["__scopeId", "data-v-6325cd25"]]), $u = () => {
|
|
8568
8559
|
let e = (e, n) => {
|
|
8569
8560
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
8570
8561
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -8578,13 +8569,13 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8578
8569
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
8579
8570
|
}
|
|
8580
8571
|
};
|
|
8581
|
-
},
|
|
8572
|
+
}, ed = { class: "pv-flex" }, td = { class: "pv-text-body-md" }, nd = ["textContent"], rd = {
|
|
8582
8573
|
key: 0,
|
|
8583
8574
|
class: "pv-text-body-xs"
|
|
8584
|
-
},
|
|
8575
|
+
}, id = { key: 0 }, ad = {
|
|
8585
8576
|
class: "pv-text-subdued pv-text-body-xs",
|
|
8586
8577
|
style: { "font-weight": "500" }
|
|
8587
|
-
},
|
|
8578
|
+
}, od = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8588
8579
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
8589
8580
|
props: {
|
|
8590
8581
|
id: {},
|
|
@@ -8630,13 +8621,13 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8630
8621
|
bold: !1
|
|
8631
8622
|
}), n;
|
|
8632
8623
|
});
|
|
8633
|
-
return (e, n) => (E(), o("div", null, [s("div",
|
|
8624
|
+
return (e, n) => (E(), o("div", null, [s("div", ed, [u(X, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", td, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
8634
8625
|
key: t,
|
|
8635
8626
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
8636
8627
|
textContent: N(e.text)
|
|
8637
|
-
}, null, 12,
|
|
8628
|
+
}, null, 12, nd))), 128))]), f.value ? (E(), o("p", rd, [c.value ? a("", !0) : (E(), o("span", id, "Search in ")), s("span", ad, N(f.value), 1)])) : a("", !0)])])]));
|
|
8638
8629
|
}
|
|
8639
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
8630
|
+
}), [["__scopeId", "data-v-ff951d17"]]), sd = /* @__PURE__ */ d({
|
|
8640
8631
|
__name: "QueryFormatter",
|
|
8641
8632
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
8642
8633
|
modelValue: { required: !0 },
|
|
@@ -8650,7 +8641,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8650
8641
|
}),
|
|
8651
8642
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8652
8643
|
setup(e) {
|
|
8653
|
-
let n = e, s =
|
|
8644
|
+
let n = e, s = L(e, "modelValue"), c = L(e, "wrap-content"), { removeQueryOption: l } = $u(), u = r(() => {
|
|
8654
8645
|
let e = s.value?.queryTerms || [];
|
|
8655
8646
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8656
8647
|
}), 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) => {
|
|
@@ -8682,17 +8673,17 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8682
8673
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
8683
8674
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
8684
8675
|
}
|
|
8685
|
-
}),
|
|
8676
|
+
}), cd = [
|
|
8686
8677
|
"disabled",
|
|
8687
8678
|
"placeholder",
|
|
8688
8679
|
"data-invalid"
|
|
8689
|
-
],
|
|
8680
|
+
], ld = {
|
|
8690
8681
|
key: 2,
|
|
8691
8682
|
class: "pv-text-red pv-text-body-xs"
|
|
8692
|
-
},
|
|
8683
|
+
}, ud = {
|
|
8693
8684
|
key: 1,
|
|
8694
8685
|
class: "pv-text-center"
|
|
8695
|
-
},
|
|
8686
|
+
}, dd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8696
8687
|
__name: "PvQueryBuilderInput",
|
|
8697
8688
|
props: /* @__PURE__ */ g({
|
|
8698
8689
|
placeholder: { default: "Search" },
|
|
@@ -8740,7 +8731,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8740
8731
|
"update:options"
|
|
8741
8732
|
],
|
|
8742
8733
|
setup(e) {
|
|
8743
|
-
let n = e, c = { renderer:
|
|
8734
|
+
let n = e, c = { renderer: od }, l = z("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(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 = () => {
|
|
8744
8735
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
8745
8736
|
};
|
|
8746
8737
|
n.enableCustomOptionsInput && oe("Enter", () => {
|
|
@@ -8751,7 +8742,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8751
8742
|
id: d.value.trim(),
|
|
8752
8743
|
text: d.value,
|
|
8753
8744
|
queryTerm: { queryText: d.value }
|
|
8754
|
-
}),
|
|
8745
|
+
}), I());
|
|
8755
8746
|
}, A = r(() => {
|
|
8756
8747
|
if (!p.value || p.value.length === 0) return [];
|
|
8757
8748
|
let e = p.value;
|
|
@@ -8764,7 +8755,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8764
8755
|
context: e.queryTerm
|
|
8765
8756
|
}));
|
|
8766
8757
|
});
|
|
8767
|
-
|
|
8758
|
+
U([
|
|
8768
8759
|
A,
|
|
8769
8760
|
d,
|
|
8770
8761
|
() => n.optionsLoading
|
|
@@ -8781,7 +8772,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8781
8772
|
queryTerm: e.context,
|
|
8782
8773
|
icon: e.icon
|
|
8783
8774
|
};
|
|
8784
|
-
f.value = m(f.value, t),
|
|
8775
|
+
f.value = m(f.value, t), I();
|
|
8785
8776
|
} catch (e) {
|
|
8786
8777
|
console.error("Error adding query option:", e);
|
|
8787
8778
|
} finally {
|
|
@@ -8792,16 +8783,16 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8792
8783
|
let t = e.target;
|
|
8793
8784
|
t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
|
|
8794
8785
|
}
|
|
8795
|
-
function
|
|
8786
|
+
function F(e) {
|
|
8796
8787
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
8797
8788
|
}
|
|
8798
|
-
let
|
|
8789
|
+
let I = () => {
|
|
8799
8790
|
d.value = "";
|
|
8800
8791
|
};
|
|
8801
8792
|
return (n, r) => G((E(), o("div", {
|
|
8802
8793
|
ref: "query-builder-input",
|
|
8803
8794
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
8804
|
-
onFocus:
|
|
8795
|
+
onFocus: F,
|
|
8805
8796
|
onClick: M
|
|
8806
8797
|
}, [
|
|
8807
8798
|
e.hideSearchIcon ? a("", !0) : (E(), i(X, {
|
|
@@ -8814,7 +8805,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8814
8805
|
"--inset-size": "4px",
|
|
8815
8806
|
"--flex-gap": "4px"
|
|
8816
8807
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
8817
|
-
}, [u(
|
|
8808
|
+
}, [u(sd, {
|
|
8818
8809
|
modelValue: f.value,
|
|
8819
8810
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
8820
8811
|
"wrap-content": b.value,
|
|
@@ -8832,9 +8823,9 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8832
8823
|
disabled: e.disabled,
|
|
8833
8824
|
placeholder: S.value,
|
|
8834
8825
|
"data-invalid": w.value ? "true" : void 0,
|
|
8835
|
-
onFocus:
|
|
8836
|
-
onBlur:
|
|
8837
|
-
}, null, 40,
|
|
8826
|
+
onFocus: F,
|
|
8827
|
+
onBlur: F
|
|
8828
|
+
}, null, 40, cd), [[V, d.value]])], 4),
|
|
8838
8829
|
f.value && !e.hideClearButton ? (E(), i(Q, {
|
|
8839
8830
|
key: 1,
|
|
8840
8831
|
variant: "ghost",
|
|
@@ -8842,7 +8833,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8842
8833
|
size: "md",
|
|
8843
8834
|
onClick: T
|
|
8844
8835
|
})) : a("", !0),
|
|
8845
|
-
w.value ? (E(), o("p",
|
|
8836
|
+
w.value ? (E(), o("p", ld, N(C.value), 1)) : a("", !0),
|
|
8846
8837
|
A.value.length > 0 || e.optionsLoading ? (E(), i(rr, {
|
|
8847
8838
|
key: 3,
|
|
8848
8839
|
class: y({ "pv-hide": !g.value }),
|
|
@@ -8852,7 +8843,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8852
8843
|
},
|
|
8853
8844
|
isList: !0
|
|
8854
8845
|
}, {
|
|
8855
|
-
default: W(() => [e.optionsLoading ? (E(), o("div",
|
|
8846
|
+
default: W(() => [e.optionsLoading ? (E(), o("div", ud, [u(Oe, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i($i, _({
|
|
8856
8847
|
key: `${t}-${e.searchText}`,
|
|
8857
8848
|
ref_for: !0
|
|
8858
8849
|
}, e, {
|
|
@@ -8863,7 +8854,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8863
8854
|
}, 8, ["class"])) : a("", !0)
|
|
8864
8855
|
], 32)), [[P(de), ee]]);
|
|
8865
8856
|
}
|
|
8866
|
-
}), [["__scopeId", "data-v-4decbec2"]]),
|
|
8857
|
+
}), [["__scopeId", "data-v-4decbec2"]]), fd = { class: "sidebar-header" }, pd = { class: "sidebar-header-content" }, md = { class: "content-panel" }, hd = 300, gd = /* @__PURE__ */ d({
|
|
8867
8858
|
__name: "PvSidebar",
|
|
8868
8859
|
props: /* @__PURE__ */ g({
|
|
8869
8860
|
disableToggle: { type: Boolean },
|
|
@@ -8877,8 +8868,8 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8877
8868
|
}),
|
|
8878
8869
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
8879
8870
|
setup(e, { emit: t }) {
|
|
8880
|
-
let n =
|
|
8881
|
-
|
|
8871
|
+
let n = L(e, "modelValue"), r = t, c = O(!1), l = null, u = f(), d = () => u?.proxy?.$el ?? null;
|
|
8872
|
+
U(n, () => {
|
|
8882
8873
|
c.value = !1;
|
|
8883
8874
|
});
|
|
8884
8875
|
let p = () => {
|
|
@@ -8889,7 +8880,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8889
8880
|
}, m = () => {
|
|
8890
8881
|
n.value && (l && clearTimeout(l), l = setTimeout(() => {
|
|
8891
8882
|
c.value = !0;
|
|
8892
|
-
},
|
|
8883
|
+
}, hd));
|
|
8893
8884
|
}, h = () => {
|
|
8894
8885
|
l &&= (clearTimeout(l), null), p(), c.value = !1;
|
|
8895
8886
|
}, g = () => {
|
|
@@ -8904,20 +8895,20 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8904
8895
|
onMouseenter: m,
|
|
8905
8896
|
onMouseleave: h,
|
|
8906
8897
|
onFocusin: m
|
|
8907
|
-
}, [s("div",
|
|
8898
|
+
}, [s("div", fd, [s("div", pd, [A(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (E(), i(Q, {
|
|
8908
8899
|
key: 0,
|
|
8909
8900
|
class: "sidebar-toggle",
|
|
8910
8901
|
"left-icon": n.value ? "panel-left-open" : "panel-left-close",
|
|
8911
8902
|
"aria-label": n.value ? "Open sidebar" : "Close sidebar",
|
|
8912
8903
|
variant: "secondary",
|
|
8913
8904
|
onClick: g
|
|
8914
|
-
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div",
|
|
8905
|
+
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div", md, [A(t.$slots, "default")])], 2));
|
|
8915
8906
|
}
|
|
8916
|
-
}),
|
|
8907
|
+
}), _d = {
|
|
8917
8908
|
class: "pv-toc",
|
|
8918
8909
|
role: "list",
|
|
8919
8910
|
style: { "min-width": "160px" }
|
|
8920
|
-
},
|
|
8911
|
+
}, vd = ["aria-current"], yd = ["href", "onClick"], bd = /* @__PURE__ */ d({
|
|
8921
8912
|
__name: "PvTableOfContents",
|
|
8922
8913
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
8923
8914
|
modelValue: { required: !1 },
|
|
@@ -8925,10 +8916,10 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8925
8916
|
}),
|
|
8926
8917
|
emits: /* @__PURE__ */ g(["handle-select"], ["update:modelValue"]),
|
|
8927
8918
|
setup(e, { emit: n }) {
|
|
8928
|
-
let r =
|
|
8919
|
+
let r = L(e, "modelValue"), c = n, u = (e, t) => {
|
|
8929
8920
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
8930
8921
|
};
|
|
8931
|
-
return (n, c) => (E(), o("ul",
|
|
8922
|
+
return (n, c) => (E(), o("ul", _d, [(E(!0), o(t, null, k(e.items, (e) => (E(), o("li", {
|
|
8932
8923
|
key: e.id,
|
|
8933
8924
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
8934
8925
|
}, [s("a", {
|
|
@@ -8937,9 +8928,9 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8937
8928
|
}, [e.icon ? (E(), i(X, {
|
|
8938
8929
|
key: 0,
|
|
8939
8930
|
name: e.icon
|
|
8940
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8,
|
|
8931
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8, yd)], 8, vd))), 128))]));
|
|
8941
8932
|
}
|
|
8942
|
-
}),
|
|
8933
|
+
}), xd = { class: "pv-flex" }, Sd = ["data-clickable", "onClick"], Cd = /* @__PURE__ */ d({
|
|
8943
8934
|
__name: "PvStepper",
|
|
8944
8935
|
props: {
|
|
8945
8936
|
count: { default: 5 },
|
|
@@ -8952,14 +8943,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8952
8943
|
emits: ["update:active"],
|
|
8953
8944
|
setup(e) {
|
|
8954
8945
|
let n = e;
|
|
8955
|
-
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div",
|
|
8946
|
+
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div", xd, [(E(!0), o(t, null, k(e.count, (t, r) => (E(), o("div", {
|
|
8956
8947
|
key: r,
|
|
8957
8948
|
"data-clickable": e.clickable,
|
|
8958
8949
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
8959
8950
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
8960
|
-
}, null, 10,
|
|
8951
|
+
}, null, 10, Sd))), 128))]));
|
|
8961
8952
|
}
|
|
8962
|
-
}),
|
|
8953
|
+
}), wd = { theme: {
|
|
8963
8954
|
preset: be,
|
|
8964
8955
|
options: {
|
|
8965
8956
|
darkModeSelector: "none",
|
|
@@ -8968,10 +8959,10 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8968
8959
|
order: "pit-viper-v2, primevue"
|
|
8969
8960
|
}
|
|
8970
8961
|
}
|
|
8971
|
-
} },
|
|
8972
|
-
e.use(ye,
|
|
8962
|
+
} }, Td = (e) => {
|
|
8963
|
+
e.use(ye, wd);
|
|
8973
8964
|
};
|
|
8974
8965
|
//#endregion
|
|
8975
|
-
export { zr as PvAccordion,
|
|
8966
|
+
export { zr as PvAccordion, Do as PvActionBar, In as PvActionButton, zn as PvAiButton, pi as PvAvatar, Ha as PvAvatarGroup, kr as PvBanner, ci as PvBreadcrumbs, Q as PvButton, Jn as PvButtonWithTooltip, mo as PvCard, Qa as PvCheckbox, Ra as PvCompanyLabel, _r as PvCompanyLogo, Pr as PvCompanyTag, Le as PvCounterBadge, Gr as PvDatePicker, qr as PvDateTime, ds as PvDistributionBar, ni as PvDrawer, sr as PvDropdown, Nr as PvEmptyErrorState, Co as PvExpandableContent, Ju as PvFilterModal, Nu as PvFilterPanel, Aa as PvGhostInput, Ia as PvHeader, ll as PvHorizontalScroller, Qu as PvHoverActionMenu, X as PvIcon, lo as PvInput, So as PvInsightCard, ra as PvMenu, $i as PvMenuItem, Cr as PvModal, ua as PvMultiSelectButton, ya as PvPagination, tr as PvPill, rr as PvPopover, lr as PvPopoverMenu, Mn as PvPopoverV2, ls as PvProgressBar, dd as PvQueryBuilderInput, no as PvRadioGroup, Ts as PvRange, po as PvRating, Qn as PvReleaseBadge, Wr as PvSearchInput, ur as PvSegmentedControl, fa as PvSelectButton, Sa as PvSelectableCard, Da as PvSidePanel, gd as PvSidebar, io as PvSkeleton, Oe as PvSpinner, Zn as PvSplitButton, ro as PvSprite, Cd as PvStepper, Lr as PvSuggestionTag, Li as PvSwitch, mr as PvTabList, bd as PvTableOfContents, ai as PvTabs, er as PvTag, jo as PvTextArea, To as PvToast, Ka as PvToggleButton, Xa as PvToggleGroup, Kn as PvTooltip, Pn as PvTooltipV2, as as PvTree, os as PvTreeGroup, ho as PvWidget, du as createPvFilterStore, fu as providePvFilterStore, Kr as useDateTime, pu as useOptionalPvFilterStore, Td as usePvComponents, mu as usePvFilterStore };
|
|
8976
8967
|
|
|
8977
8968
|
//# sourceMappingURL=pv-components-base.mjs.map
|