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