@turquoisehealth/pit-viper 2.195.1-dev.3 → 2.196.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +0 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs +415 -414
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2033 -2031
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1556 -1552
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{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-e19d6d09]{font-size:.5rem;font-weight:700}.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-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{pointer-events:auto;color:inherit}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.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-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{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-e19d6d09]{font-size:.5rem;font-weight:700}.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-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{pointer-events:auto;color:inherit}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.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-492f03e3]{height:100%;max-height:100vh}.pv-filter-panel-actions[data-v-492f03e3],.pv-filter-panel-header[data-v-492f03e3],.pv-filter-panel-suggestion-tags[data-v-492f03e3]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-492f03e3],.pv-filter-panel-filters-view[data-v-492f03e3]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-492f03e3]{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-492f03e3]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-492f03e3]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-492f03e3]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-492f03e3]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-492f03e3],.pv-filter-panel-footer[data-v-492f03e3],.pv-filter-panel-suggestions[data-v-492f03e3]{padding:12px}.pv-filter-panel-filter-list[data-v-492f03e3]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-492f03e3]{--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-492f03e3]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-492f03e3]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-492f03e3]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-492f03e3]{margin:0}.pv-filter-panel-suggestions[data-v-492f03e3]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-492f03e3]{--flex-wrap:wrap}.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 te, useId as F, useModel as I, useSlots as L, useTemplateRef as R, vModelCheckbox as z, vModelDynamic as ne, vModelRadio as re, vModelText 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 ie, watch as V, watchEffect as ae, withCtx as H, withDirectives as U, withKeys as oe, withModifiers as W } from "vue";
|
|
4
4
|
import { onClickOutside as se, onKeyStroke as G, useDebounceFn as K, useElementBounding as q, 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 fe } from "@vueuse/integrations/useSortable.mjs";
|
|
@@ -1216,7 +1216,7 @@ var Un = { style: { width: "fit-content" } }, Wn = /* @__PURE__ */ d({
|
|
|
1216
1216
|
ref_key: "floating",
|
|
1217
1217
|
ref: d,
|
|
1218
1218
|
style: x(b.value)
|
|
1219
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1219
|
+
}, [A(r.$slots, "content")], 4), [[ie, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[P(de), [M, { ignore: k.value }]]]);
|
|
1220
1220
|
}
|
|
1221
1221
|
}), Gn = { class: "pv-split-button pv-flex" }, Kn = {
|
|
1222
1222
|
class: "pv-split-button__menu-content pv-surface pv-bordered pv-radius pv-inset-square-8 pv-flex-vertical",
|
|
@@ -1991,7 +1991,7 @@ var Un = { style: { width: "fit-content" } }, Wn = /* @__PURE__ */ d({
|
|
|
1991
1991
|
disabled: e.disabled,
|
|
1992
1992
|
class: y(l.value),
|
|
1993
1993
|
placeholder: e.placeholder
|
|
1994
|
-
}, null, 10, Fr), [[
|
|
1994
|
+
}, null, 10, Fr), [[B, c.value]]), e.displayShortcut ? (E(), o("kbd", Ir, N(Lr))) : a("", !0)]));
|
|
1995
1995
|
}
|
|
1996
1996
|
}), zr = /* @__PURE__ */ d({
|
|
1997
1997
|
__name: "PvDatePicker",
|
|
@@ -2943,7 +2943,7 @@ var Ci = {
|
|
|
2943
2943
|
"queryText",
|
|
2944
2944
|
"highlightSearchText",
|
|
2945
2945
|
"level"
|
|
2946
|
-
])], 10, Wi)), [[
|
|
2946
|
+
])], 10, Wi)), [[ie, !i.disabled || N(t)]])), 128)), F.value ? (E(), o("li", Gi, [u(Q, {
|
|
2947
2947
|
class: "pv-text-brand",
|
|
2948
2948
|
variant: "ghost",
|
|
2949
2949
|
label: "See more",
|
|
@@ -3036,7 +3036,7 @@ var Ci = {
|
|
|
3036
3036
|
"config",
|
|
3037
3037
|
"itemClass",
|
|
3038
3038
|
"queryText"
|
|
3039
|
-
])], 10, Yi)), [[
|
|
3039
|
+
])], 10, Yi)), [[ie, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (E(), o("li", Xi, [u(Q, {
|
|
3040
3040
|
class: "pv-text-brand",
|
|
3041
3041
|
variant: "ghost",
|
|
3042
3042
|
label: "See more",
|
|
@@ -3204,9 +3204,9 @@ var Ci = {
|
|
|
3204
3204
|
g("see-more", e ?? {});
|
|
3205
3205
|
}, 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) => {
|
|
3206
3206
|
ae.value = e, ne.value || (F.value = e, L.value = S());
|
|
3207
|
-
}, ie = () => {
|
|
3208
|
-
ne.value && (F.value = ae.value, L.value = S());
|
|
3209
3207
|
}, B = () => {
|
|
3208
|
+
ne.value && (F.value = ae.value, L.value = S());
|
|
3209
|
+
}, ie = () => {
|
|
3210
3210
|
ne.value && (ae.value = F.value);
|
|
3211
3211
|
}, ae = M(F.value), U = (e) => d.value.get(e), oe = (e) => {
|
|
3212
3212
|
if (!c.enableCascadeSelection || !e) return;
|
|
@@ -3250,9 +3250,9 @@ var Ci = {
|
|
|
3250
3250
|
deep: !0,
|
|
3251
3251
|
immediate: !0
|
|
3252
3252
|
}), V(j, (e) => {
|
|
3253
|
-
e ? (
|
|
3253
|
+
e ? (ie(), v(() => {
|
|
3254
3254
|
c.overlayTrigger && !c.disableSearchInput && ee.value?.input?.focus(), g("dropdown-open");
|
|
3255
|
-
})) : (
|
|
3255
|
+
})) : (ie(), g("dropdown-closed"));
|
|
3256
3256
|
});
|
|
3257
3257
|
let q = r(() => {
|
|
3258
3258
|
if (z.value === "") return c.options;
|
|
@@ -3269,9 +3269,9 @@ var Ci = {
|
|
|
3269
3269
|
}, ue = () => {
|
|
3270
3270
|
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), re([]);
|
|
3271
3271
|
}, de = () => {
|
|
3272
|
-
B(), se();
|
|
3273
|
-
}, fe = () => {
|
|
3274
3272
|
ie(), se();
|
|
3273
|
+
}, fe = () => {
|
|
3274
|
+
B(), se();
|
|
3275
3275
|
}, pe = r(() => {
|
|
3276
3276
|
if (!c.groupings) return;
|
|
3277
3277
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3357,7 +3357,7 @@ var Ci = {
|
|
|
3357
3357
|
"placeholder",
|
|
3358
3358
|
"disabled"
|
|
3359
3359
|
])])),
|
|
3360
|
-
P(_e) ? (E(), o("div", $i, [A(n.$slots, "header", b(p(me.value)))])) : a("", !0),
|
|
3360
|
+
n.$slots.header || P(_e) ? (E(), o("div", $i, [A(n.$slots, "header", b(p(me.value)))])) : a("", !0),
|
|
3361
3361
|
q.value.length > 0 ? (E(), o(t, { key: 2 }, [J.value ? (E(!0), o(t, { key: 0 }, k(pe.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3362
3362
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", ea, N(t), 1)),
|
|
3363
3363
|
u(Zi, {
|
|
@@ -3787,7 +3787,7 @@ var Ci = {
|
|
|
3787
3787
|
placeholder: e.placeholder,
|
|
3788
3788
|
disabled: e.disabled,
|
|
3789
3789
|
name: n[e.variant]
|
|
3790
|
-
}), null, 16, Ca), [[
|
|
3790
|
+
}), null, 16, Ca), [[B, l.value]]),
|
|
3791
3791
|
e.showEditIcon ? (E(), i(Q, {
|
|
3792
3792
|
key: 0,
|
|
3793
3793
|
"left-icon": "edit",
|
|
@@ -4426,7 +4426,7 @@ var Ci = {
|
|
|
4426
4426
|
placeholder: e.placeholder,
|
|
4427
4427
|
id: e.id,
|
|
4428
4428
|
"data-invalid": e.error ? !0 : void 0
|
|
4429
|
-
}), null, 16, xo), [[
|
|
4429
|
+
}), null, 16, xo), [[B, n.value]]),
|
|
4430
4430
|
e.lowerLabel ? (E(), o("p", {
|
|
4431
4431
|
key: 1,
|
|
4432
4432
|
style: { "margin-left": "12px" },
|
|
@@ -4682,7 +4682,7 @@ var Ci = {
|
|
|
4682
4682
|
onMouseleave: n[2] ||= (e) => P(_)(),
|
|
4683
4683
|
onContextmenu: n[3] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4684
4684
|
}, {
|
|
4685
|
-
default: H(() => [U(u(Eo, null, null, 512), [[
|
|
4685
|
+
default: H(() => [U(u(Eo, null, null, 512), [[ie, P(h) === e.option.node_id && P(v)(e.isDraggable, e.settings, e.option)]]), s("div", Lo, [!A.value && k.value ? (E(), o("div", Ro)) : k.value ? (E(), o("div", zo)) : a("", !0), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4686
4686
|
key: 2,
|
|
4687
4687
|
option: e.option,
|
|
4688
4688
|
settings: e.settings,
|
|
@@ -4801,7 +4801,7 @@ var Ci = {
|
|
|
4801
4801
|
onMouseleave: n[2] ||= (e) => P(d)(),
|
|
4802
4802
|
onContextmenu: n[3] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4803
4803
|
}, {
|
|
4804
|
-
default: H(() => [U(u(Eo, null, null, 512), [[
|
|
4804
|
+
default: H(() => [U(u(Eo, null, null, 512), [[ie, 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), {
|
|
4805
4805
|
key: 0,
|
|
4806
4806
|
option: e.option,
|
|
4807
4807
|
settings: e.settings,
|
|
@@ -4944,7 +4944,7 @@ var Ci = {
|
|
|
4944
4944
|
onSummaryMouseleave: n[5] ||= (e) => P(v)(),
|
|
4945
4945
|
onContextmenu: n[6] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4946
4946
|
}, {
|
|
4947
|
-
trigger: H(() => [U(u(Eo, null, null, 512), [[
|
|
4947
|
+
trigger: H(() => [U(u(Eo, null, null, 512), [[ie, 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), {
|
|
4948
4948
|
key: 0,
|
|
4949
4949
|
option: e.option,
|
|
4950
4950
|
settings: e.settings,
|
|
@@ -5049,7 +5049,7 @@ var Ci = {
|
|
|
5049
5049
|
onMouseleave: n[11] ||= (e) => P(v)(),
|
|
5050
5050
|
onContextmenu: n[12] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5051
5051
|
}, {
|
|
5052
|
-
default: H(() => [U(u(Eo, null, null, 512), [[
|
|
5052
|
+
default: H(() => [U(u(Eo, null, null, 512), [[ie, 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), {
|
|
5053
5053
|
key: 0,
|
|
5054
5054
|
option: e.option,
|
|
5055
5055
|
settings: e.settings,
|
|
@@ -5283,12 +5283,12 @@ var Ci = {
|
|
|
5283
5283
|
if (r.length <= 1) return "Search";
|
|
5284
5284
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
5285
5285
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
5286
|
-
}, is = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r,
|
|
5287
|
-
if (!r) return e;
|
|
5288
|
-
if (!
|
|
5289
|
-
let
|
|
5290
|
-
return
|
|
5291
|
-
},
|
|
5286
|
+
}, is = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), as = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
5287
|
+
if (!r || is(i) === is(r)) return e;
|
|
5288
|
+
if (!a || !n) return r;
|
|
5289
|
+
let o = t(n);
|
|
5290
|
+
return o ? `${o}: ${r}` : r;
|
|
5291
|
+
}, os = () => ({
|
|
5292
5292
|
booleanValue: null,
|
|
5293
5293
|
existsValue: !1,
|
|
5294
5294
|
rangeValue: {
|
|
@@ -5296,15 +5296,15 @@ var Ci = {
|
|
|
5296
5296
|
min: null
|
|
5297
5297
|
},
|
|
5298
5298
|
values: []
|
|
5299
|
-
}),
|
|
5300
|
-
conditions: e.conditions.map(
|
|
5299
|
+
}), ss = (e) => typeof e == "object" && !!e && !Array.isArray(e), cs = (e) => ss(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", ls = (e) => ss(e) && e.filterType === "join" && Array.isArray(e.conditions), us = (e) => e, ds = (e) => ls(e) ? {
|
|
5300
|
+
conditions: e.conditions.map(ds),
|
|
5301
5301
|
filterType: "join",
|
|
5302
5302
|
type: e.type
|
|
5303
|
-
} : { ...e },
|
|
5304
|
-
if (!
|
|
5305
|
-
if (
|
|
5303
|
+
} : { ...e }, fs = (e) => {
|
|
5304
|
+
if (!ss(e)) return null;
|
|
5305
|
+
if (ls(e)) {
|
|
5306
5306
|
let t = e.conditions.flatMap((e) => {
|
|
5307
|
-
let t =
|
|
5307
|
+
let t = fs(e);
|
|
5308
5308
|
return t ? [t] : [];
|
|
5309
5309
|
});
|
|
5310
5310
|
return t.length ? {
|
|
@@ -5313,43 +5313,43 @@ var Ci = {
|
|
|
5313
5313
|
type: e.type === "OR" ? "OR" : "AND"
|
|
5314
5314
|
} : null;
|
|
5315
5315
|
}
|
|
5316
|
-
return
|
|
5317
|
-
},
|
|
5316
|
+
return cs(e) ? { ...e } : null;
|
|
5317
|
+
}, ps = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ms = (e) => ss(e) && !ls(e) && !cs(e), hs = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), gs = {
|
|
5318
5318
|
number: "agNumberColumnFilter",
|
|
5319
5319
|
set: "agSetColumnFilter",
|
|
5320
5320
|
text: "agTextColumnFilter"
|
|
5321
|
-
},
|
|
5321
|
+
}, _s = (e) => {
|
|
5322
5322
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
5323
5323
|
let t = e.filterParams;
|
|
5324
5324
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
5325
|
-
}, _s = (e, t) => {
|
|
5326
|
-
let n = gs(e), r = t.filterType ? hs[t.filterType] : void 0;
|
|
5327
|
-
return r ? n.findIndex((e) => os(e) && e.filter === r) : -1;
|
|
5328
5325
|
}, vs = (e, t) => {
|
|
5329
|
-
let n =
|
|
5326
|
+
let n = _s(e), r = t.filterType ? gs[t.filterType] : void 0;
|
|
5327
|
+
return r ? n.findIndex((e) => ss(e) && e.filter === r) : -1;
|
|
5328
|
+
}, ys = (e, t) => {
|
|
5329
|
+
let n = _s(e);
|
|
5330
5330
|
if (!n.length) return null;
|
|
5331
|
-
let r = Array(n.length).fill(null), i =
|
|
5331
|
+
let r = Array(n.length).fill(null), i = vs(e, t);
|
|
5332
5332
|
return i < 0 ? null : (r[i] = t, {
|
|
5333
5333
|
filterModels: r,
|
|
5334
5334
|
filterType: "multi"
|
|
5335
5335
|
});
|
|
5336
|
-
},
|
|
5337
|
-
if (!
|
|
5336
|
+
}, bs = (e, t) => {
|
|
5337
|
+
if (!ms(e)) return null;
|
|
5338
5338
|
let n = e[t];
|
|
5339
|
-
return
|
|
5340
|
-
},
|
|
5339
|
+
return ss(n) ? n : null;
|
|
5340
|
+
}, xs = (e) => e ? hs(e) ? e.filterModels.filter((e) => ss(e)) : [e] : [], Ss = (e) => ms(e) ? { ...e } : {}, Cs = (e) => hs(e) ? {
|
|
5341
5341
|
...e,
|
|
5342
5342
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
5343
|
-
} : { ...e },
|
|
5344
|
-
let n =
|
|
5343
|
+
} : { ...e }, ws = (e, t) => {
|
|
5344
|
+
let n = Ss(e);
|
|
5345
5345
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
5346
|
-
},
|
|
5346
|
+
}, Ts = /* @__PURE__ */ new Set(), Es = (e, t) => {
|
|
5347
5347
|
let n = `${e}:${t ?? "unknown"}`;
|
|
5348
|
-
|
|
5349
|
-
},
|
|
5350
|
-
let a =
|
|
5351
|
-
if (
|
|
5352
|
-
let o =
|
|
5348
|
+
Ts.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.`), Ts.add(n));
|
|
5349
|
+
}, Ds = (e, t, n, r, i) => {
|
|
5350
|
+
let a = bs(e, t);
|
|
5351
|
+
if (hs(a) && r) {
|
|
5352
|
+
let o = Ss(e), s = Cs(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
5353
5353
|
if (!n) {
|
|
5354
5354
|
for (let e of l) c[e] = null;
|
|
5355
5355
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -5362,15 +5362,15 @@ var Ci = {
|
|
|
5362
5362
|
c[e] = n;
|
|
5363
5363
|
for (let e of t) c[e] = null;
|
|
5364
5364
|
} else {
|
|
5365
|
-
let e =
|
|
5365
|
+
let e = vs(i, n), r = c.findIndex((e) => !e), a = _s(i).length > 0;
|
|
5366
5366
|
if (e >= 0) {
|
|
5367
5367
|
for (; c.length <= e;) c.push(null);
|
|
5368
|
-
c[e] &&
|
|
5368
|
+
c[e] && Es(t, n.filterType), c[e] = n;
|
|
5369
5369
|
} else if (r >= 0) c[r] = n;
|
|
5370
5370
|
else if (!a) c.push(n);
|
|
5371
5371
|
else {
|
|
5372
5372
|
let e = Math.max(0, c.length - 1);
|
|
5373
|
-
|
|
5373
|
+
Es(t, n.filterType), c[e] = n;
|
|
5374
5374
|
}
|
|
5375
5375
|
}
|
|
5376
5376
|
return o[t] = {
|
|
@@ -5378,54 +5378,54 @@ var Ci = {
|
|
|
5378
5378
|
filterModels: c
|
|
5379
5379
|
}, o;
|
|
5380
5380
|
}
|
|
5381
|
-
if (!n) return
|
|
5382
|
-
let o =
|
|
5383
|
-
return o[t] =
|
|
5384
|
-
},
|
|
5381
|
+
if (!n) return ws(e, t);
|
|
5382
|
+
let o = Ss(e);
|
|
5383
|
+
return o[t] = ys(i, n) ?? n, o;
|
|
5384
|
+
}, Os = (e, t) => {
|
|
5385
5385
|
if (e) {
|
|
5386
|
-
if (
|
|
5387
|
-
e.conditions.forEach((e) =>
|
|
5386
|
+
if (ls(e)) {
|
|
5387
|
+
e.conditions.forEach((e) => Os(e, t));
|
|
5388
5388
|
return;
|
|
5389
5389
|
}
|
|
5390
5390
|
t(e);
|
|
5391
5391
|
}
|
|
5392
|
-
},
|
|
5393
|
-
if (!
|
|
5392
|
+
}, ks = (e, t) => ls(e) ? e.conditions.length > 0 && e.conditions.every((e) => ks(e, t)) : e.colId === t, As = (e) => {
|
|
5393
|
+
if (!ls(e)) return e.colId;
|
|
5394
5394
|
let t = /* @__PURE__ */ new Set();
|
|
5395
|
-
return
|
|
5396
|
-
},
|
|
5397
|
-
if (!e ||
|
|
5398
|
-
if (!
|
|
5399
|
-
let n = e.conditions.flatMap((e) =>
|
|
5395
|
+
return Os(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
5396
|
+
}, js = (e, t) => {
|
|
5397
|
+
if (!e || ks(e, t)) return null;
|
|
5398
|
+
if (!ls(e) || e.type !== "AND") return ds(e);
|
|
5399
|
+
let n = e.conditions.flatMap((e) => ks(e, t) ? [] : [ds(e)]);
|
|
5400
5400
|
return n.length ? n.length === 1 ? n[0] : {
|
|
5401
5401
|
conditions: n,
|
|
5402
5402
|
filterType: e.filterType,
|
|
5403
5403
|
type: e.type
|
|
5404
5404
|
} : null;
|
|
5405
|
-
},
|
|
5406
|
-
let r =
|
|
5407
|
-
return n ? r ?
|
|
5405
|
+
}, Ms = (e, t, n) => {
|
|
5406
|
+
let r = js(fs(e), t);
|
|
5407
|
+
return n ? r ? ls(r) && r.type === "AND" ? us({
|
|
5408
5408
|
...r,
|
|
5409
5409
|
conditions: [...r.conditions, n]
|
|
5410
|
-
}) :
|
|
5410
|
+
}) : us({
|
|
5411
5411
|
conditions: [r, n],
|
|
5412
5412
|
filterType: "join",
|
|
5413
5413
|
type: "AND"
|
|
5414
|
-
}) :
|
|
5415
|
-
},
|
|
5414
|
+
}) : us(n) : us(r);
|
|
5415
|
+
}, Ns = (e, t) => {
|
|
5416
5416
|
e.includes(t) || e.push(t);
|
|
5417
|
-
},
|
|
5417
|
+
}, Ps = (e) => {
|
|
5418
5418
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
5419
5419
|
let t = String(e.filter);
|
|
5420
5420
|
return t === "true" || t === "false";
|
|
5421
|
-
},
|
|
5421
|
+
}, Fs = (e) => e.filterType === "boolean" || Ps(e), Is = (e, t) => {
|
|
5422
5422
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
5423
|
-
e.values.forEach((e) =>
|
|
5423
|
+
e.values.forEach((e) => Ns(t.values, String(e)));
|
|
5424
5424
|
return;
|
|
5425
5425
|
}
|
|
5426
5426
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
5427
5427
|
let n = String(e.filter);
|
|
5428
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
5428
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ns(t.values, n);
|
|
5429
5429
|
return;
|
|
5430
5430
|
}
|
|
5431
5431
|
if (e.filterType === "boolean") {
|
|
@@ -5449,7 +5449,7 @@ var Ci = {
|
|
|
5449
5449
|
...t.rangeValue,
|
|
5450
5450
|
max: e.filter
|
|
5451
5451
|
}));
|
|
5452
|
-
},
|
|
5452
|
+
}, Ls = (e, t) => {
|
|
5453
5453
|
if (e.type === "notBlank") {
|
|
5454
5454
|
t.existsValue = !0;
|
|
5455
5455
|
return;
|
|
@@ -5459,12 +5459,12 @@ var Ci = {
|
|
|
5459
5459
|
return;
|
|
5460
5460
|
}
|
|
5461
5461
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
5462
|
-
e.values.forEach((e) =>
|
|
5462
|
+
e.values.forEach((e) => Ns(t.values, String(e)));
|
|
5463
5463
|
return;
|
|
5464
5464
|
}
|
|
5465
5465
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
5466
5466
|
let n = String(e.filter);
|
|
5467
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
5467
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ns(t.values, n);
|
|
5468
5468
|
return;
|
|
5469
5469
|
}
|
|
5470
5470
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -5477,29 +5477,29 @@ var Ci = {
|
|
|
5477
5477
|
...t.rangeValue,
|
|
5478
5478
|
max: e.filter
|
|
5479
5479
|
}));
|
|
5480
|
-
},
|
|
5480
|
+
}, Rs = (e, t = "advanced") => {
|
|
5481
5481
|
let n = /* @__PURE__ */ new Map();
|
|
5482
5482
|
if (t === "regular") {
|
|
5483
|
-
if (!
|
|
5483
|
+
if (!ms(e)) return n;
|
|
5484
5484
|
for (let [t, r] of Object.entries(e)) {
|
|
5485
|
-
let e =
|
|
5486
|
-
|
|
5485
|
+
let e = os();
|
|
5486
|
+
xs(r).forEach((t) => Is(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
5487
5487
|
}
|
|
5488
5488
|
return n;
|
|
5489
5489
|
}
|
|
5490
|
-
let r =
|
|
5490
|
+
let r = fs(e);
|
|
5491
5491
|
if (!r) return n;
|
|
5492
|
-
let i =
|
|
5492
|
+
let i = ls(r) && r.type === "AND" ? r.conditions : [r];
|
|
5493
5493
|
for (let e of i) {
|
|
5494
|
-
let t =
|
|
5494
|
+
let t = As(e);
|
|
5495
5495
|
if (!t) continue;
|
|
5496
|
-
let r = n.get(t) ??
|
|
5497
|
-
|
|
5498
|
-
e.colId === t &&
|
|
5496
|
+
let r = n.get(t) ?? os();
|
|
5497
|
+
Os(e, (e) => {
|
|
5498
|
+
e.colId === t && Ls(e, r);
|
|
5499
5499
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
5500
5500
|
}
|
|
5501
5501
|
return n;
|
|
5502
|
-
},
|
|
5502
|
+
}, zs = (e, t = "advanced") => t === "regular" ? ms(e) && Object.keys(e).length > 0 : fs(e) !== null, Bs = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Vs = (e, t, n = "advanced") => n === "regular" ? ws(e, t) : us(js(fs(e), t)), Hs = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Ds(e, t, null, Fs, a) : Vs(e, t, r) : r === "regular" ? Ds(e, t, i === "text" ? {
|
|
5503
5503
|
filter: String(n),
|
|
5504
5504
|
filterType: "text",
|
|
5505
5505
|
type: "equals"
|
|
@@ -5507,30 +5507,30 @@ var Ci = {
|
|
|
5507
5507
|
filter: n,
|
|
5508
5508
|
filterType: "boolean",
|
|
5509
5509
|
type: n ? "true" : "false"
|
|
5510
|
-
},
|
|
5510
|
+
}, Fs, a) : i === "text" ? Ms(e, t, {
|
|
5511
5511
|
colId: t,
|
|
5512
5512
|
filter: String(n),
|
|
5513
5513
|
filterType: "text",
|
|
5514
5514
|
type: "equals"
|
|
5515
|
-
}) :
|
|
5515
|
+
}) : Ms(e, t, {
|
|
5516
5516
|
colId: t,
|
|
5517
5517
|
filterType: "boolean",
|
|
5518
5518
|
type: n ? "true" : "false"
|
|
5519
|
-
}),
|
|
5519
|
+
}), Us = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Ds(e, t, {
|
|
5520
5520
|
filterType: r,
|
|
5521
5521
|
type: "notBlank"
|
|
5522
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
5522
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Ms(e, t, {
|
|
5523
5523
|
colId: t,
|
|
5524
5524
|
filterType: r,
|
|
5525
5525
|
type: "notBlank"
|
|
5526
|
-
}) : i === "regular" ?
|
|
5527
|
-
let o =
|
|
5528
|
-
if (i === "regular") return o === null && s === null ?
|
|
5526
|
+
}) : i === "regular" ? Ds(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Vs(e, t, i), Ws = (e, t, n, r, i = "advanced", a) => {
|
|
5527
|
+
let o = ps(n), s = ps(r);
|
|
5528
|
+
if (i === "regular") return o === null && s === null ? Ds(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Ds(e, t, {
|
|
5529
5529
|
filter: o,
|
|
5530
5530
|
filterTo: s,
|
|
5531
5531
|
filterType: "number",
|
|
5532
5532
|
type: "inRange"
|
|
5533
|
-
}, (e) => e.filterType === "number", a) :
|
|
5533
|
+
}, (e) => e.filterType === "number", a) : Ds(e, t, {
|
|
5534
5534
|
filter: o ?? s,
|
|
5535
5535
|
filterType: "number",
|
|
5536
5536
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -5546,29 +5546,29 @@ var Ci = {
|
|
|
5546
5546
|
filter: s,
|
|
5547
5547
|
filterType: "number",
|
|
5548
5548
|
type: "lessThanOrEqual"
|
|
5549
|
-
}), c.length ?
|
|
5549
|
+
}), c.length ? Ms(e, t, c.length === 1 ? c[0] : {
|
|
5550
5550
|
conditions: c,
|
|
5551
5551
|
filterType: "join",
|
|
5552
5552
|
type: "AND"
|
|
5553
|
-
}) :
|
|
5554
|
-
},
|
|
5553
|
+
}) : Vs(e, t);
|
|
5554
|
+
}, Gs = (e, t, n, r = "advanced", i) => {
|
|
5555
5555
|
let a = Array.from(new Set(n));
|
|
5556
|
-
if (r === "regular") return a.length ?
|
|
5556
|
+
if (r === "regular") return a.length ? Ds(e, t, {
|
|
5557
5557
|
filterType: "set",
|
|
5558
5558
|
values: a
|
|
5559
|
-
}, (e) => e.filterType === "set", i) :
|
|
5559
|
+
}, (e) => e.filterType === "set", i) : Ds(e, t, null, (e) => e.filterType === "set", i);
|
|
5560
5560
|
let o = a.map((e) => ({
|
|
5561
5561
|
colId: t,
|
|
5562
5562
|
filter: e,
|
|
5563
5563
|
filterType: "text",
|
|
5564
5564
|
type: "equals"
|
|
5565
5565
|
}));
|
|
5566
|
-
return o.length ?
|
|
5566
|
+
return o.length ? Ms(e, t, o.length === 1 ? o[0] : {
|
|
5567
5567
|
conditions: o,
|
|
5568
5568
|
filterType: "join",
|
|
5569
5569
|
type: "OR"
|
|
5570
|
-
}) :
|
|
5571
|
-
},
|
|
5570
|
+
}) : Vs(e, t);
|
|
5571
|
+
}, Ks = "__pv_filter_panel_scoped_value__", qs = (e) => typeof e == "object" && !!e, Js = (e) => {
|
|
5572
5572
|
try {
|
|
5573
5573
|
let t = JSON.parse(decodeURIComponent(e));
|
|
5574
5574
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -5582,7 +5582,7 @@ var Ci = {
|
|
|
5582
5582
|
} catch {
|
|
5583
5583
|
return [];
|
|
5584
5584
|
}
|
|
5585
|
-
},
|
|
5585
|
+
}, Ys = (e) => {
|
|
5586
5586
|
if (!e.startsWith("__")) return null;
|
|
5587
5587
|
let t = e.slice(2).split("__");
|
|
5588
5588
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -5595,76 +5595,76 @@ var Ci = {
|
|
|
5595
5595
|
pairs: n,
|
|
5596
5596
|
value: n[0].value
|
|
5597
5597
|
};
|
|
5598
|
-
},
|
|
5598
|
+
}, Xs = (e) => {
|
|
5599
5599
|
if (e == null) return null;
|
|
5600
|
-
if (!e.startsWith(
|
|
5600
|
+
if (!e.startsWith(Ks)) return Ys(e) ?? {
|
|
5601
5601
|
pairs: [],
|
|
5602
5602
|
value: e
|
|
5603
5603
|
};
|
|
5604
|
-
let t =
|
|
5604
|
+
let t = Js(e.slice(32));
|
|
5605
5605
|
return {
|
|
5606
5606
|
field: t[0]?.field,
|
|
5607
5607
|
pairs: t,
|
|
5608
5608
|
value: t[0]?.value ?? e
|
|
5609
5609
|
};
|
|
5610
|
-
},
|
|
5610
|
+
}, Zs = (e, t) => `${Ks}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Qs = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : qs(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) : Xs(e.value)?.value ?? e.value : null, $s = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Xs(e?.value)?.field ?? t, ec = (e) => e.flatMap((e) => [e, ...e.children?.length ? ec(e.children) : []]), tc = (e, t, n, r) => $s(e, r) === t && Qs(e) === n, nc = (e) => {
|
|
5611
5611
|
let t = e;
|
|
5612
5612
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
5613
|
-
},
|
|
5613
|
+
}, rc = (e) => {
|
|
5614
5614
|
let t = e;
|
|
5615
|
-
return
|
|
5615
|
+
return nc(e) ? {
|
|
5616
5616
|
...t,
|
|
5617
|
-
conditions: (t.conditions ?? []).map(
|
|
5617
|
+
conditions: (t.conditions ?? []).map(rc)
|
|
5618
5618
|
} : { ...t };
|
|
5619
|
-
},
|
|
5619
|
+
}, ic = (e, t) => {
|
|
5620
5620
|
if (!e) return null;
|
|
5621
5621
|
let n = t instanceof Set ? t : new Set(t);
|
|
5622
|
-
if (!n.size) return
|
|
5623
|
-
if (!
|
|
5622
|
+
if (!n.size) return rc(e);
|
|
5623
|
+
if (!nc(e)) {
|
|
5624
5624
|
let t = e;
|
|
5625
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
5625
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : rc(e);
|
|
5626
5626
|
}
|
|
5627
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
5627
|
+
let r = e, i = (r.conditions ?? []).map((e) => ic(e, n)).filter((e) => !!e);
|
|
5628
5628
|
return i.length ? i.length === 1 ? i[0] : {
|
|
5629
5629
|
...r,
|
|
5630
5630
|
conditions: i
|
|
5631
5631
|
} : null;
|
|
5632
|
-
},
|
|
5632
|
+
}, ac = (e) => e ? [e.field, ...(e.children ?? []).flatMap(ac)] : [], oc = (e) => e ? e.children?.length ? e.children.flatMap(oc) : [e.field] : [], sc = (e) => {
|
|
5633
5633
|
let t = e?.context ?? {};
|
|
5634
|
-
return t.aggregateFieldHierarchy ?
|
|
5635
|
-
},
|
|
5634
|
+
return t.aggregateFieldHierarchy ? ac(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
5635
|
+
}, cc = (e) => {
|
|
5636
5636
|
let t = e?.context ?? {};
|
|
5637
5637
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
5638
|
-
},
|
|
5638
|
+
}, lc = (e) => sc(e).length > 0, uc = (e, t) => {
|
|
5639
5639
|
for (let n of e ?? []) {
|
|
5640
5640
|
if (!n) continue;
|
|
5641
5641
|
if (n.value === t) return n;
|
|
5642
|
-
let e =
|
|
5642
|
+
let e = uc(n.children, t);
|
|
5643
5643
|
if (e) return e;
|
|
5644
5644
|
}
|
|
5645
|
-
},
|
|
5645
|
+
}, dc = (e, t, n = []) => {
|
|
5646
5646
|
for (let r of e ?? []) {
|
|
5647
5647
|
if (!r) continue;
|
|
5648
5648
|
let e = [...n, r];
|
|
5649
5649
|
if (r.value === t) return e;
|
|
5650
|
-
let i =
|
|
5650
|
+
let i = dc(r.children, t, e);
|
|
5651
5651
|
if (i) return i;
|
|
5652
5652
|
}
|
|
5653
|
-
},
|
|
5654
|
-
let n =
|
|
5653
|
+
}, fc = (e, t) => {
|
|
5654
|
+
let n = uc(t, e), r = n ? $s(n, "") : void 0, i = n ? Qs(n) : null;
|
|
5655
5655
|
if (r && i !== null) return {
|
|
5656
5656
|
field: r,
|
|
5657
5657
|
value: i
|
|
5658
5658
|
};
|
|
5659
|
-
let a =
|
|
5659
|
+
let a = Xs(e);
|
|
5660
5660
|
return {
|
|
5661
5661
|
field: a?.field,
|
|
5662
5662
|
value: a?.value ?? e
|
|
5663
5663
|
};
|
|
5664
|
-
},
|
|
5664
|
+
}, pc = (e, t, n) => {
|
|
5665
5665
|
let r = (e) => {
|
|
5666
5666
|
if (!e) return;
|
|
5667
|
-
let i =
|
|
5667
|
+
let i = $s(e, ""), a = Qs(e);
|
|
5668
5668
|
if (i === t && a === n) return e.value;
|
|
5669
5669
|
for (let t of e.children ?? []) {
|
|
5670
5670
|
let e = r(t);
|
|
@@ -5676,9 +5676,9 @@ var Ci = {
|
|
|
5676
5676
|
if (e) return e;
|
|
5677
5677
|
}
|
|
5678
5678
|
return `__${t}__${n}`;
|
|
5679
|
-
},
|
|
5679
|
+
}, mc = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...mc(e.children)]), hc = (e, t) => {
|
|
5680
5680
|
if (e.state !== "selected") return null;
|
|
5681
|
-
let { field: n, value: r } =
|
|
5681
|
+
let { field: n, value: r } = fc(e.id, t);
|
|
5682
5682
|
if (!n) return null;
|
|
5683
5683
|
let i = [{
|
|
5684
5684
|
colId: n,
|
|
@@ -5686,8 +5686,8 @@ var Ci = {
|
|
|
5686
5686
|
filterType: "text",
|
|
5687
5687
|
type: "equals"
|
|
5688
5688
|
}];
|
|
5689
|
-
for (let n of
|
|
5690
|
-
let e =
|
|
5689
|
+
for (let n of mc(e.children)) {
|
|
5690
|
+
let e = fc(n.id, t);
|
|
5691
5691
|
e.field && i.push({
|
|
5692
5692
|
colId: e.field,
|
|
5693
5693
|
filter: e.value,
|
|
@@ -5700,10 +5700,10 @@ var Ci = {
|
|
|
5700
5700
|
filterType: "join",
|
|
5701
5701
|
type: "AND"
|
|
5702
5702
|
};
|
|
5703
|
-
},
|
|
5704
|
-
let t =
|
|
5703
|
+
}, gc = (e) => {
|
|
5704
|
+
let t = sc(e.colDef), n = ic(e.baseModel, t);
|
|
5705
5705
|
if (!t.length) return n;
|
|
5706
|
-
let r = e.state.map((t) =>
|
|
5706
|
+
let r = e.state.map((t) => hc(t, e.options)).filter((e) => !!e);
|
|
5707
5707
|
if (!r.length) return n;
|
|
5708
5708
|
let i = r.length === 1 ? r[0] : {
|
|
5709
5709
|
conditions: r,
|
|
@@ -5715,17 +5715,17 @@ var Ci = {
|
|
|
5715
5715
|
filterType: "join",
|
|
5716
5716
|
type: "AND"
|
|
5717
5717
|
} : i;
|
|
5718
|
-
},
|
|
5718
|
+
}, _c = (e, t, n) => {
|
|
5719
5719
|
if (!e) return [];
|
|
5720
5720
|
let r = e;
|
|
5721
|
-
if (
|
|
5721
|
+
if (nc(e)) {
|
|
5722
5722
|
let e = r.conditions ?? [];
|
|
5723
5723
|
if (r.type === "AND") {
|
|
5724
5724
|
let r = e.find((e) => {
|
|
5725
5725
|
let r = e;
|
|
5726
5726
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
5727
5727
|
});
|
|
5728
|
-
return e.flatMap((e) =>
|
|
5728
|
+
return e.flatMap((e) => _c(e, t, n).map((e) => ({
|
|
5729
5729
|
...e,
|
|
5730
5730
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
5731
5731
|
colId: r.colId,
|
|
@@ -5733,20 +5733,20 @@ var Ci = {
|
|
|
5733
5733
|
} : void 0)
|
|
5734
5734
|
})));
|
|
5735
5735
|
}
|
|
5736
|
-
return e.flatMap((e) =>
|
|
5736
|
+
return e.flatMap((e) => _c(e, t, n));
|
|
5737
5737
|
}
|
|
5738
5738
|
return r.colId && t.has(r.colId) ? [{
|
|
5739
5739
|
colId: r.colId,
|
|
5740
5740
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
5741
5741
|
type: r.type
|
|
5742
5742
|
}] : [];
|
|
5743
|
-
},
|
|
5744
|
-
let t =
|
|
5743
|
+
}, vc = (e) => {
|
|
5744
|
+
let t = sc(e.colDef);
|
|
5745
5745
|
if (!t.length) return [];
|
|
5746
|
-
let n = new Set(
|
|
5746
|
+
let n = new Set(oc(e.colDef.context?.aggregateFieldHierarchy)), r = cc(e.colDef), i = _c(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
5747
5747
|
for (let t of i) {
|
|
5748
5748
|
if (!t.filter) continue;
|
|
5749
|
-
let n =
|
|
5749
|
+
let n = pc(e.options, t.colId, String(t.filter));
|
|
5750
5750
|
if (t.type === "equals") {
|
|
5751
5751
|
let e = a.get(n);
|
|
5752
5752
|
a.set(n, {
|
|
@@ -5757,7 +5757,7 @@ var Ci = {
|
|
|
5757
5757
|
continue;
|
|
5758
5758
|
}
|
|
5759
5759
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
5760
|
-
let r =
|
|
5760
|
+
let r = pc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
5761
5761
|
children: [],
|
|
5762
5762
|
id: r,
|
|
5763
5763
|
state: "selected"
|
|
@@ -5769,109 +5769,109 @@ var Ci = {
|
|
|
5769
5769
|
}
|
|
5770
5770
|
}
|
|
5771
5771
|
return [...a.values()];
|
|
5772
|
-
},
|
|
5773
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
5772
|
+
}, yc = (e) => {
|
|
5773
|
+
let t = /* @__PURE__ */ new Map(), n = sc(e.colDef);
|
|
5774
5774
|
if (!n.length) return t;
|
|
5775
|
-
let r =
|
|
5775
|
+
let r = _c(e.model, new Set(n), new Set(oc(e.colDef.context?.aggregateFieldHierarchy)));
|
|
5776
5776
|
for (let e of r) {
|
|
5777
5777
|
if (e.type !== "equals" || !e.filter) continue;
|
|
5778
5778
|
let n = t.get(e.colId) ?? [];
|
|
5779
5779
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
5780
5780
|
}
|
|
5781
5781
|
return t;
|
|
5782
|
-
},
|
|
5782
|
+
}, bc = (e) => e.map((e) => ({
|
|
5783
5783
|
...e,
|
|
5784
5784
|
children: e.children?.map((e) => ({
|
|
5785
5785
|
...e,
|
|
5786
|
-
children: e.children ?
|
|
5786
|
+
children: e.children ? bc(e.children) : void 0
|
|
5787
5787
|
}))
|
|
5788
|
-
})),
|
|
5788
|
+
})), xc = (e, t) => e.flatMap((e) => {
|
|
5789
5789
|
if (e.id === t) return [];
|
|
5790
|
-
let n = e.children ?
|
|
5790
|
+
let n = e.children ? xc(e.children, t) : void 0;
|
|
5791
5791
|
return [{
|
|
5792
5792
|
...e,
|
|
5793
5793
|
children: n?.length ? n : void 0
|
|
5794
5794
|
}];
|
|
5795
|
-
}),
|
|
5795
|
+
}), Sc = (e, t) => {
|
|
5796
5796
|
for (let n of e) {
|
|
5797
5797
|
if (n.id === t) return n;
|
|
5798
|
-
let e = n.children ?
|
|
5798
|
+
let e = n.children ? Sc(n.children, t) : void 0;
|
|
5799
5799
|
if (e) return e;
|
|
5800
5800
|
}
|
|
5801
|
-
},
|
|
5802
|
-
let r = (
|
|
5801
|
+
}, Cc = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, wc = (e, t) => [...xc(e, t.id), t], Tc = (e) => (e.children ?? []).flatMap((e) => [e.value, ...Tc(e)]), Ec = (e, t) => Tc(t).reduce((e, t) => xc(e, t), e), Dc = (e, t) => [t.value, ...Tc(t)].reduce((e, t) => xc(e, t), e), Oc = (e, t, n) => {
|
|
5802
|
+
let r = (dc(n, t.value) ?? []).slice(0, -1).reverse();
|
|
5803
5803
|
for (let t of r) {
|
|
5804
|
-
let n =
|
|
5804
|
+
let n = Sc(e, t.value);
|
|
5805
5805
|
if (n?.state === "selected") return n;
|
|
5806
5806
|
}
|
|
5807
|
-
},
|
|
5808
|
-
let t =
|
|
5807
|
+
}, kc = (e) => {
|
|
5808
|
+
let t = bc(e.state), n = Oc(t, e.option, e.options);
|
|
5809
5809
|
if (n) {
|
|
5810
5810
|
let r = n.children ?? [];
|
|
5811
|
-
return n.children = e.checked ?
|
|
5811
|
+
return n.children = e.checked ? Dc(r, e.option) : [...Dc(r, e.option), {
|
|
5812
5812
|
id: e.option.value,
|
|
5813
5813
|
state: "deselected"
|
|
5814
5814
|
}], n.children.length || delete n.children, t;
|
|
5815
5815
|
}
|
|
5816
|
-
return
|
|
5816
|
+
return Cc(e.option) ? e.checked ? wc(Ec(t, e.option), {
|
|
5817
5817
|
id: e.option.value,
|
|
5818
5818
|
state: "selected"
|
|
5819
|
-
}) :
|
|
5819
|
+
}) : xc(t, e.option.value) : e.checked ? wc(t, {
|
|
5820
5820
|
id: e.option.value,
|
|
5821
5821
|
state: "selected"
|
|
5822
|
-
}) :
|
|
5823
|
-
},
|
|
5822
|
+
}) : xc(t, e.option.value);
|
|
5823
|
+
}, Ac = (e) => {
|
|
5824
5824
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
5825
5825
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
5826
5826
|
};
|
|
5827
5827
|
return n(e), t;
|
|
5828
|
-
},
|
|
5829
|
-
let t =
|
|
5828
|
+
}, jc = (e) => {
|
|
5829
|
+
let t = Ac(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
5830
5830
|
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 = {
|
|
5831
|
-
indeterminate:
|
|
5831
|
+
indeterminate: mc(a?.children).length > 0 || !o && c || o && l,
|
|
5832
5832
|
selected: o
|
|
5833
5833
|
};
|
|
5834
5834
|
return n.set(e.value, u), u;
|
|
5835
5835
|
};
|
|
5836
5836
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
5837
5837
|
return n;
|
|
5838
|
-
},
|
|
5838
|
+
}, Mc = (e) => jc(e).get(e.option.value) ?? jc({
|
|
5839
5839
|
options: [e.option],
|
|
5840
5840
|
state: e.state
|
|
5841
5841
|
}).get(e.option.value) ?? {
|
|
5842
5842
|
indeterminate: !1,
|
|
5843
5843
|
selected: !1
|
|
5844
|
-
},
|
|
5844
|
+
}, Nc = (e) => e.state.flatMap((t) => {
|
|
5845
5845
|
if (t.state !== "selected") return [];
|
|
5846
|
-
let n =
|
|
5846
|
+
let n = uc(e.options, t.id);
|
|
5847
5847
|
if (n) return [n];
|
|
5848
|
-
let { field: r, value: i } =
|
|
5848
|
+
let { field: r, value: i } = fc(t.id, e.options);
|
|
5849
5849
|
return [{
|
|
5850
5850
|
colField: r,
|
|
5851
5851
|
label: i,
|
|
5852
5852
|
metadata: { rawValue: i },
|
|
5853
|
-
value: r ?
|
|
5853
|
+
value: r ? Zs(r, i) : t.id
|
|
5854
5854
|
}];
|
|
5855
|
-
}),
|
|
5855
|
+
}), Pc = (e) => e.filter((e) => e.state === "selected").length, Fc = [
|
|
5856
5856
|
"totalCount",
|
|
5857
5857
|
"total_count",
|
|
5858
5858
|
"resultCount",
|
|
5859
5859
|
"result_count",
|
|
5860
5860
|
"row_count",
|
|
5861
5861
|
"count"
|
|
5862
|
-
],
|
|
5862
|
+
], Ic = new Intl.NumberFormat("en-US", {
|
|
5863
5863
|
maximumFractionDigits: 1,
|
|
5864
5864
|
notation: "compact"
|
|
5865
|
-
}),
|
|
5866
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
5865
|
+
}), Lc = (e) => typeof e == "object" && !!e, Rc = (e) => {
|
|
5866
|
+
if (typeof e == "number" && Number.isFinite(e)) return Ic.format(e);
|
|
5867
5867
|
if (typeof e == "string") {
|
|
5868
5868
|
let t = e.trim();
|
|
5869
5869
|
if (!t) return;
|
|
5870
5870
|
let n = Number(t);
|
|
5871
|
-
return Number.isFinite(n) ?
|
|
5871
|
+
return Number.isFinite(n) ? Ic.format(n) : e;
|
|
5872
5872
|
}
|
|
5873
|
-
},
|
|
5874
|
-
let n =
|
|
5873
|
+
}, zc = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), Bc = (e, t = {}) => {
|
|
5874
|
+
let n = zc(t.dataType, t.valueDecimals);
|
|
5875
5875
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
5876
5876
|
currency: "USD",
|
|
5877
5877
|
maximumFractionDigits: n,
|
|
@@ -5883,11 +5883,11 @@ var Ci = {
|
|
|
5883
5883
|
minimumFractionDigits: n
|
|
5884
5884
|
}).format(e);
|
|
5885
5885
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
5886
|
-
},
|
|
5886
|
+
}, Vc = (e, t, n = {}) => e !== null && t !== null ? `${Bc(e, n)}–${Bc(t, n)}` : e === null ? t === null ? "" : `≤ ${Bc(t, n)}` : `${Bc(e, n)}+`, Hc = (e, t) => {
|
|
5887
5887
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
5888
5888
|
if (!n) return null;
|
|
5889
5889
|
try {
|
|
5890
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
5890
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : Lc(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
5891
5891
|
return n({
|
|
5892
5892
|
context: e.metadata,
|
|
5893
5893
|
value: t
|
|
@@ -5895,52 +5895,52 @@ var Ci = {
|
|
|
5895
5895
|
} catch {
|
|
5896
5896
|
return null;
|
|
5897
5897
|
}
|
|
5898
|
-
},
|
|
5898
|
+
}, Uc = (e, t) => {
|
|
5899
5899
|
let n = e.metadata;
|
|
5900
|
-
if (!
|
|
5900
|
+
if (!Lc(n)) return null;
|
|
5901
5901
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
5902
5902
|
let t = n[e];
|
|
5903
5903
|
if (t != null && String(t).trim()) return String(t);
|
|
5904
5904
|
}
|
|
5905
5905
|
return null;
|
|
5906
|
-
},
|
|
5907
|
-
let t =
|
|
5906
|
+
}, Wc = (e, t) => e.label || Uc(e, t) || Hc(e, t) || e.value, Gc = (e) => {
|
|
5907
|
+
let t = Rc(e?.resultCount);
|
|
5908
5908
|
if (t !== void 0) return t;
|
|
5909
5909
|
let n = e?.metadata;
|
|
5910
|
-
if (
|
|
5911
|
-
let t =
|
|
5910
|
+
if (Lc(n)) for (let e of Fc) {
|
|
5911
|
+
let t = Rc(n[e]);
|
|
5912
5912
|
if (t !== void 0) return t;
|
|
5913
5913
|
}
|
|
5914
|
-
return
|
|
5915
|
-
},
|
|
5914
|
+
return Rc(e?.totalChildCount);
|
|
5915
|
+
}, Kc = {
|
|
5916
5916
|
key: 0,
|
|
5917
5917
|
class: "pv-range-single-slider"
|
|
5918
|
-
},
|
|
5918
|
+
}, qc = [
|
|
5919
5919
|
"id",
|
|
5920
5920
|
"aria-label",
|
|
5921
5921
|
"disabled",
|
|
5922
5922
|
"max",
|
|
5923
5923
|
"min",
|
|
5924
5924
|
"step"
|
|
5925
|
-
],
|
|
5925
|
+
], Jc = ["aria-label"], Yc = {
|
|
5926
5926
|
key: 0,
|
|
5927
5927
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
5928
5928
|
style: { "line-height": "1" }
|
|
5929
|
-
},
|
|
5929
|
+
}, Xc = [
|
|
5930
5930
|
"aria-label",
|
|
5931
5931
|
"disabled",
|
|
5932
5932
|
"max",
|
|
5933
5933
|
"min",
|
|
5934
5934
|
"step",
|
|
5935
5935
|
"value"
|
|
5936
|
-
],
|
|
5936
|
+
], Zc = [
|
|
5937
5937
|
"aria-label",
|
|
5938
5938
|
"disabled",
|
|
5939
5939
|
"max",
|
|
5940
5940
|
"min",
|
|
5941
5941
|
"step",
|
|
5942
5942
|
"value"
|
|
5943
|
-
],
|
|
5943
|
+
], Qc = {
|
|
5944
5944
|
key: 1,
|
|
5945
5945
|
class: "pv-flex",
|
|
5946
5946
|
style: {
|
|
@@ -5948,15 +5948,15 @@ var Ci = {
|
|
|
5948
5948
|
"--flex-gap": "0.75rem",
|
|
5949
5949
|
"--flex-wrap": "wrap"
|
|
5950
5950
|
}
|
|
5951
|
-
},
|
|
5951
|
+
}, $c = { class: "pv-text-body-sm" }, el = [
|
|
5952
5952
|
"disabled",
|
|
5953
5953
|
"step",
|
|
5954
5954
|
"value"
|
|
5955
|
-
],
|
|
5955
|
+
], tl = { class: "pv-text-body-sm" }, nl = [
|
|
5956
5956
|
"disabled",
|
|
5957
5957
|
"step",
|
|
5958
5958
|
"value"
|
|
5959
|
-
],
|
|
5959
|
+
], rl = 0, il = 100, al = /* @__PURE__ */ d({
|
|
5960
5960
|
inheritAttrs: !1,
|
|
5961
5961
|
__name: "PvRange",
|
|
5962
5962
|
props: /* @__PURE__ */ g({
|
|
@@ -6032,8 +6032,8 @@ var Ci = {
|
|
|
6032
6032
|
minimumFractionDigits: 0
|
|
6033
6033
|
}).format(e);
|
|
6034
6034
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
6035
|
-
}, 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)"),
|
|
6036
|
-
let e = D(t.min) ??
|
|
6035
|
+
}, 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)"), ie = r(() => {
|
|
6036
|
+
let e = D(t.min) ?? rl, n = D(t.max) ?? il;
|
|
6037
6037
|
return e > n ? {
|
|
6038
6038
|
max: e,
|
|
6039
6039
|
min: n
|
|
@@ -6044,8 +6044,8 @@ var Ci = {
|
|
|
6044
6044
|
max: n,
|
|
6045
6045
|
min: e
|
|
6046
6046
|
};
|
|
6047
|
-
}), ae = r(() => D(n.value) ??
|
|
6048
|
-
let { max: e, min: t } =
|
|
6047
|
+
}), ae = r(() => D(n.value) ?? ie.value.min), H = r(() => {
|
|
6048
|
+
let { max: e, min: t } = ie.value, n = e - t, r = n === 0 ? 0 : (ae.value - t) / n * 100;
|
|
6049
6049
|
return Math.max(0, Math.min(100, r));
|
|
6050
6050
|
}), W = r(() => ({
|
|
6051
6051
|
"--range-track-color": re.value,
|
|
@@ -6059,7 +6059,7 @@ var Ci = {
|
|
|
6059
6059
|
}
|
|
6060
6060
|
return t.split(".")[1]?.length ?? 0;
|
|
6061
6061
|
}, K = r(() => {
|
|
6062
|
-
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(
|
|
6062
|
+
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(rl, r ?? rl, i ?? rl), o = n ?? Math.max(il, r ?? il, i ?? il);
|
|
6063
6063
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (R.value > 0 ? R.value : 1)), {
|
|
6064
6064
|
max: o,
|
|
6065
6065
|
min: a
|
|
@@ -6100,7 +6100,7 @@ var Ci = {
|
|
|
6100
6100
|
"--range-track-color": re.value,
|
|
6101
6101
|
"--value-max": `${ge.value}%`,
|
|
6102
6102
|
"--value-min": `${he.value}%`
|
|
6103
|
-
})), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => ({ left: `${ge.value}%` })), be = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), xe = () => D(t.min) !== null || K.value.min ===
|
|
6103
|
+
})), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => ({ left: `${ge.value}%` })), be = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), xe = () => D(t.min) !== null || K.value.min === rl, Se = () => D(t.max) !== null || K.value.max === il, Ce = (e, t) => {
|
|
6104
6104
|
c.value = {
|
|
6105
6105
|
max: t >= K.value.max && Se() ? null : t,
|
|
6106
6106
|
min: e <= K.value.min && xe() ? null : e
|
|
@@ -6173,7 +6173,7 @@ var Ci = {
|
|
|
6173
6173
|
};
|
|
6174
6174
|
return V([J, K], Y, { immediate: !0 }), S(() => {
|
|
6175
6175
|
Be(), ke();
|
|
6176
|
-
}), (r, c) => e.mode === "single" ? (E(), o("div",
|
|
6176
|
+
}), (r, c) => e.mode === "single" ? (E(), o("div", Kc, [e.showValueTooltips && v.value ? (E(), o("span", {
|
|
6177
6177
|
key: 0,
|
|
6178
6178
|
class: "pv-range-tooltip",
|
|
6179
6179
|
style: x(se.value)
|
|
@@ -6182,16 +6182,16 @@ var Ci = {
|
|
|
6182
6182
|
"aria-label": e.ariaLabel,
|
|
6183
6183
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
6184
6184
|
disabled: e.disabled,
|
|
6185
|
-
max:
|
|
6186
|
-
min:
|
|
6185
|
+
max: ie.value.max,
|
|
6186
|
+
min: ie.value.min,
|
|
6187
6187
|
step: ne.value,
|
|
6188
6188
|
style: W.value,
|
|
6189
6189
|
type: "range",
|
|
6190
6190
|
onChange: Ae,
|
|
6191
6191
|
onPointerdown: je,
|
|
6192
6192
|
onPointerup: Ae
|
|
6193
|
-
}), null, 16,
|
|
6194
|
-
|
|
6193
|
+
}), null, 16, qc), [[
|
|
6194
|
+
B,
|
|
6195
6195
|
n.value,
|
|
6196
6196
|
void 0,
|
|
6197
6197
|
{ number: !0 }
|
|
@@ -6205,7 +6205,7 @@ var Ci = {
|
|
|
6205
6205
|
"--flex-gap": "0"
|
|
6206
6206
|
}
|
|
6207
6207
|
}), [
|
|
6208
|
-
e.showBoundLabels ? (E(), o("div",
|
|
6208
|
+
e.showBoundLabels ? (E(), o("div", Yc, [s("span", null, N(M(K.value.min)), 1), s("span", null, N(M(K.value.max)), 1)])) : a("", !0),
|
|
6209
6209
|
s("div", {
|
|
6210
6210
|
ref_key: "sliderRef",
|
|
6211
6211
|
ref: b,
|
|
@@ -6237,7 +6237,7 @@ var Ci = {
|
|
|
6237
6237
|
onInput: Me,
|
|
6238
6238
|
onPointerdown: c[1] ||= (e) => De("min"),
|
|
6239
6239
|
onPointerup: Ee
|
|
6240
|
-
}, null, 40,
|
|
6240
|
+
}, null, 40, Xc),
|
|
6241
6241
|
s("input", {
|
|
6242
6242
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
6243
6243
|
type: "range",
|
|
@@ -6251,9 +6251,9 @@ var Ci = {
|
|
|
6251
6251
|
onInput: Ne,
|
|
6252
6252
|
onPointerdown: c[2] ||= (e) => De("max"),
|
|
6253
6253
|
onPointerup: Ee
|
|
6254
|
-
}, null, 40,
|
|
6254
|
+
}, null, 40, Zc)
|
|
6255
6255
|
], 38),
|
|
6256
|
-
e.showInputs ? (E(), o("div",
|
|
6256
|
+
e.showInputs ? (E(), o("div", Qc, [
|
|
6257
6257
|
s("label", {
|
|
6258
6258
|
class: "pv-flex-vertical",
|
|
6259
6259
|
for: f,
|
|
@@ -6264,7 +6264,7 @@ var Ci = {
|
|
|
6264
6264
|
"max-width": "75px",
|
|
6265
6265
|
"min-width": "0"
|
|
6266
6266
|
}
|
|
6267
|
-
}, [s("span",
|
|
6267
|
+
}, [s("span", $c, N(e.minLabel), 1), s("input", {
|
|
6268
6268
|
id: f,
|
|
6269
6269
|
class: "pv-input-text",
|
|
6270
6270
|
disabled: e.disabled,
|
|
@@ -6278,7 +6278,7 @@ var Ci = {
|
|
|
6278
6278
|
onFocus: c[4] ||= (e) => Ie("min"),
|
|
6279
6279
|
onInput: Fe,
|
|
6280
6280
|
onKeydown: c[5] ||= oe((e) => Le(e, "min"), ["enter"])
|
|
6281
|
-
}, null, 40,
|
|
6281
|
+
}, null, 40, el)]),
|
|
6282
6282
|
s("label", {
|
|
6283
6283
|
class: "pv-flex-vertical",
|
|
6284
6284
|
for: d,
|
|
@@ -6289,7 +6289,7 @@ var Ci = {
|
|
|
6289
6289
|
"max-width": "75px",
|
|
6290
6290
|
"min-width": "0"
|
|
6291
6291
|
}
|
|
6292
|
-
}, [s("span",
|
|
6292
|
+
}, [s("span", tl, N(e.maxLabel), 1), s("input", {
|
|
6293
6293
|
id: d,
|
|
6294
6294
|
class: "pv-input-text",
|
|
6295
6295
|
disabled: e.disabled,
|
|
@@ -6303,7 +6303,7 @@ var Ci = {
|
|
|
6303
6303
|
onFocus: c[7] ||= (e) => Ie("max"),
|
|
6304
6304
|
onInput: X,
|
|
6305
6305
|
onKeydown: c[8] ||= oe((e) => Le(e, "max"), ["enter"])
|
|
6306
|
-
}, null, 40,
|
|
6306
|
+
}, null, 40, nl)]),
|
|
6307
6307
|
e.showClear && be.value ? (E(), i(Q, {
|
|
6308
6308
|
key: 0,
|
|
6309
6309
|
class: "pv-text-brand",
|
|
@@ -6320,21 +6320,21 @@ var Ci = {
|
|
|
6320
6320
|
variant: "ghost",
|
|
6321
6321
|
onClick: Oe
|
|
6322
6322
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
6323
|
-
], 16,
|
|
6323
|
+
], 16, Jc));
|
|
6324
6324
|
}
|
|
6325
|
-
}),
|
|
6325
|
+
}), ol = {
|
|
6326
6326
|
key: 1,
|
|
6327
6327
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
6328
|
-
},
|
|
6328
|
+
}, sl = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, cl = {
|
|
6329
6329
|
key: 0,
|
|
6330
6330
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
6331
|
-
},
|
|
6331
|
+
}, ll = {
|
|
6332
6332
|
key: 1,
|
|
6333
6333
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
6334
|
-
},
|
|
6334
|
+
}, ul = {
|
|
6335
6335
|
key: 2,
|
|
6336
6336
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
6337
|
-
},
|
|
6337
|
+
}, dl = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
6338
6338
|
__name: "PvFilterPanelOptionRow",
|
|
6339
6339
|
props: {
|
|
6340
6340
|
ariaLabel: {},
|
|
@@ -6406,12 +6406,12 @@ var Ci = {
|
|
|
6406
6406
|
"indeterminate",
|
|
6407
6407
|
"modelValue"
|
|
6408
6408
|
]),
|
|
6409
|
-
e.renderer ? (E(), i(j(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span",
|
|
6410
|
-
s("span",
|
|
6411
|
-
e.subduedText ? (E(), o("span",
|
|
6412
|
-
e.subText ? (E(), o("span",
|
|
6409
|
+
e.renderer ? (E(), i(j(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span", ol, [
|
|
6410
|
+
s("span", sl, N(e.label), 1),
|
|
6411
|
+
e.subduedText ? (E(), o("span", cl, N(e.subduedText), 1)) : a("", !0),
|
|
6412
|
+
e.subText ? (E(), o("span", ll, N(e.subText), 1)) : a("", !0)
|
|
6413
6413
|
])),
|
|
6414
|
-
p.value ? (E(), o("span",
|
|
6414
|
+
p.value ? (E(), o("span", ul, [A(t.$slots, "result-count", {}, () => [l("(" + N(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
6415
6415
|
e.showFocusAction ? (E(), i(Q, {
|
|
6416
6416
|
key: 3,
|
|
6417
6417
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -6427,67 +6427,67 @@ var Ci = {
|
|
|
6427
6427
|
])) : a("", !0)
|
|
6428
6428
|
], 6));
|
|
6429
6429
|
}
|
|
6430
|
-
}), [["__scopeId", "data-v-7e00be1a"]]),
|
|
6430
|
+
}), [["__scopeId", "data-v-7e00be1a"]]), fl = ["open"], pl = {
|
|
6431
6431
|
class: "pv-flex pv-text-body-md",
|
|
6432
6432
|
style: {
|
|
6433
6433
|
"--flex-align": "center",
|
|
6434
6434
|
"--flex-gap": "0.5rem"
|
|
6435
6435
|
}
|
|
6436
|
-
},
|
|
6436
|
+
}, ml = {
|
|
6437
6437
|
class: "pv-flex-vertical pv-surface-accent pv-inset-inline-24",
|
|
6438
6438
|
style: { "--flex-align": "stretch" }
|
|
6439
|
-
},
|
|
6439
|
+
}, hl = {
|
|
6440
6440
|
key: 0,
|
|
6441
6441
|
class: "pv-flex-vertical",
|
|
6442
6442
|
style: {
|
|
6443
6443
|
"--flex-align": "stretch",
|
|
6444
6444
|
"--flex-gap": "0.5rem"
|
|
6445
6445
|
}
|
|
6446
|
-
},
|
|
6446
|
+
}, gl = {
|
|
6447
6447
|
key: 0,
|
|
6448
6448
|
class: "pv-flex",
|
|
6449
6449
|
style: {
|
|
6450
6450
|
"--flex-gap": "0.5rem",
|
|
6451
6451
|
"--flex-wrap": "wrap"
|
|
6452
6452
|
}
|
|
6453
|
-
},
|
|
6453
|
+
}, _l = {
|
|
6454
6454
|
key: 1,
|
|
6455
6455
|
class: "pv-flex",
|
|
6456
6456
|
style: { "--flex-justify": "flex-end" }
|
|
6457
|
-
},
|
|
6457
|
+
}, vl = {
|
|
6458
6458
|
key: 1,
|
|
6459
6459
|
class: "pv-flex-vertical",
|
|
6460
6460
|
style: {
|
|
6461
6461
|
"--flex-align": "stretch",
|
|
6462
6462
|
"--flex-gap": "0.5rem"
|
|
6463
6463
|
}
|
|
6464
|
-
},
|
|
6464
|
+
}, yl = { key: 2 }, bl = {
|
|
6465
6465
|
key: 1,
|
|
6466
6466
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6467
6467
|
style: { margin: "0" }
|
|
6468
|
-
},
|
|
6468
|
+
}, xl = {
|
|
6469
6469
|
key: 1,
|
|
6470
6470
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6471
6471
|
style: { margin: "0" }
|
|
6472
|
-
},
|
|
6472
|
+
}, Sl = {
|
|
6473
6473
|
key: 2,
|
|
6474
6474
|
class: "pv-flex-vertical",
|
|
6475
6475
|
style: {
|
|
6476
6476
|
"--flex-align": "stretch",
|
|
6477
6477
|
"--flex-gap": "0.5rem"
|
|
6478
6478
|
}
|
|
6479
|
-
},
|
|
6479
|
+
}, Cl = { key: 0 }, wl = {
|
|
6480
6480
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
6481
6481
|
style: { margin: "0" }
|
|
6482
|
-
},
|
|
6482
|
+
}, Tl = {
|
|
6483
6483
|
key: 1,
|
|
6484
6484
|
class: "pv-text-title-sm pv-text-subdued",
|
|
6485
6485
|
style: { margin: "0" }
|
|
6486
|
-
},
|
|
6486
|
+
}, El = {
|
|
6487
6487
|
key: 2,
|
|
6488
6488
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6489
6489
|
style: { margin: "0" }
|
|
6490
|
-
},
|
|
6490
|
+
}, Dl = {
|
|
6491
6491
|
key: 3,
|
|
6492
6492
|
class: "pv-flex-vertical",
|
|
6493
6493
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -6495,14 +6495,14 @@ var Ci = {
|
|
|
6495
6495
|
"--flex-align": "stretch",
|
|
6496
6496
|
"--flex-gap": "0.5rem"
|
|
6497
6497
|
}
|
|
6498
|
-
},
|
|
6498
|
+
}, Ol = {
|
|
6499
6499
|
class: "pv-flex",
|
|
6500
6500
|
style: {
|
|
6501
6501
|
"--flex-align": "center",
|
|
6502
6502
|
"--flex-gap": "0.5rem",
|
|
6503
6503
|
"--flex-wrap": "wrap"
|
|
6504
6504
|
}
|
|
6505
|
-
},
|
|
6505
|
+
}, kl = {
|
|
6506
6506
|
key: 4,
|
|
6507
6507
|
class: "pv-flex",
|
|
6508
6508
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -6511,7 +6511,7 @@ var Ci = {
|
|
|
6511
6511
|
"--flex-gap": "0.5rem",
|
|
6512
6512
|
cursor: "pointer"
|
|
6513
6513
|
}
|
|
6514
|
-
},
|
|
6514
|
+
}, Al = { class: "pv-text-body-sm" }, jl = 5, Ml = 500, Nl = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
6515
6515
|
__name: "PvFilterPanelAccordion",
|
|
6516
6516
|
props: { filter: {} },
|
|
6517
6517
|
emits: [
|
|
@@ -6523,7 +6523,7 @@ var Ci = {
|
|
|
6523
6523
|
"search-change"
|
|
6524
6524
|
],
|
|
6525
6525
|
setup(e, { emit: n }) {
|
|
6526
|
-
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(
|
|
6526
|
+
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(jl), 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) => {
|
|
6527
6527
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
6528
6528
|
return [
|
|
6529
6529
|
e.value,
|
|
@@ -6533,7 +6533,7 @@ var Ci = {
|
|
|
6533
6533
|
e.matchedValue,
|
|
6534
6534
|
e.matchedField
|
|
6535
6535
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
6536
|
-
}, 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 ?
|
|
6536
|
+
}, 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 ? Pc(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) => [
|
|
6537
6537
|
{
|
|
6538
6538
|
depth: t,
|
|
6539
6539
|
kind: "option",
|
|
@@ -6551,16 +6551,16 @@ var Ci = {
|
|
|
6551
6551
|
}), z = r(() => w.value ? [] : A.value.map((e) => f.value[e] ?? {
|
|
6552
6552
|
label: e,
|
|
6553
6553
|
value: e
|
|
6554
|
-
})), 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),
|
|
6554
|
+
})), 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), ie = r(() => ne.value.slice(0, m.value)), ae = r(() => w.value ? jc({
|
|
6555
6555
|
options: y.value,
|
|
6556
6556
|
state: T.value
|
|
6557
|
-
}) : /* @__PURE__ */ new Map()), U = (e) =>
|
|
6557
|
+
}) : /* @__PURE__ */ new Map()), U = (e) => Wc(e, c.filter.colDef), oe = (e) => Gc(e), W = (e) => w.value ? ae.value.get(e.value) ?? {
|
|
6558
6558
|
indeterminate: !1,
|
|
6559
6559
|
selected: !1
|
|
6560
6560
|
} : {
|
|
6561
6561
|
indeterminate: !1,
|
|
6562
6562
|
selected: ee.value.has(e.value)
|
|
6563
|
-
}, se = (e) => W(e).selected, G = (e) => W(e).indeterminate, K = (e) =>
|
|
6563
|
+
}, se = (e) => W(e).selected, G = (e) => W(e).indeterminate, K = (e) => Qs(e) ?? e.value, q = (e) => $s(e, c.filter.key), ce = (e) => {
|
|
6564
6564
|
let t = q(e), n = K(e);
|
|
6565
6565
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
6566
6566
|
}, le = (e) => ({
|
|
@@ -6589,7 +6589,7 @@ var Ci = {
|
|
|
6589
6589
|
rowsLoading: c.filter.isLoading
|
|
6590
6590
|
}
|
|
6591
6591
|
})), J = () => {
|
|
6592
|
-
re.value ? m.value +=
|
|
6592
|
+
re.value ? m.value += jl : c.filter.hasMore && d("load-more", p.value.trim());
|
|
6593
6593
|
}, me = (e) => {
|
|
6594
6594
|
d("load-more", p.value.trim(), e.value);
|
|
6595
6595
|
}, he = (e) => {
|
|
@@ -6614,7 +6614,7 @@ var Ci = {
|
|
|
6614
6614
|
if (w.value) {
|
|
6615
6615
|
d("filter-change", {
|
|
6616
6616
|
type: "aggregate-selection",
|
|
6617
|
-
value:
|
|
6617
|
+
value: kc({
|
|
6618
6618
|
checked: t,
|
|
6619
6619
|
option: e,
|
|
6620
6620
|
options: y.value,
|
|
@@ -6641,12 +6641,12 @@ var Ci = {
|
|
|
6641
6641
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
6642
6642
|
};
|
|
6643
6643
|
V([p, () => c.filter.key], () => {
|
|
6644
|
-
m.value =
|
|
6644
|
+
m.value = jl;
|
|
6645
6645
|
});
|
|
6646
6646
|
let Ce = () => {
|
|
6647
|
-
let e =
|
|
6647
|
+
let e = ec(y.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
6648
6648
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
6649
|
-
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
6649
|
+
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Ml)));
|
|
6650
6650
|
};
|
|
6651
6651
|
return V(y, () => {
|
|
6652
6652
|
c.filter.isOpen && Ce();
|
|
@@ -6667,7 +6667,7 @@ var Ci = {
|
|
|
6667
6667
|
"data-testid": "pv-filter-panel-accordion",
|
|
6668
6668
|
open: e.filter.isOpen,
|
|
6669
6669
|
onToggle: he
|
|
6670
|
-
}, [s("summary",
|
|
6670
|
+
}, [s("summary", pl, [
|
|
6671
6671
|
u(X, {
|
|
6672
6672
|
"aria-hidden": "true",
|
|
6673
6673
|
class: "pv-text-subdued",
|
|
@@ -6680,9 +6680,9 @@ var Ci = {
|
|
|
6680
6680
|
size: "sm",
|
|
6681
6681
|
variant: "secondary"
|
|
6682
6682
|
}, null, 8, ["value"])) : a("", !0)
|
|
6683
|
-
]), s("div",
|
|
6684
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div",
|
|
6685
|
-
e.filter.filterGroupOptions?.length ? (E(), o("div",
|
|
6683
|
+
]), s("div", ml, [C.value ? (E(), o(t, { key: 0 }, [
|
|
6684
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div", hl, [
|
|
6685
|
+
e.filter.filterGroupOptions?.length ? (E(), o("div", gl, [(E(!0), o(t, null, k(e.filter.filterGroupOptions, (t) => (E(), i(Q, {
|
|
6686
6686
|
key: t.field,
|
|
6687
6687
|
disabled: e.filter.disabled,
|
|
6688
6688
|
label: t.label,
|
|
@@ -6695,7 +6695,7 @@ var Ci = {
|
|
|
6695
6695
|
"variant",
|
|
6696
6696
|
"onClick"
|
|
6697
6697
|
]))), 128))])) : a("", !0),
|
|
6698
|
-
e.filter.displayPreferencesIcon ? (E(), o("div",
|
|
6698
|
+
e.filter.displayPreferencesIcon ? (E(), o("div", _l, [u(Q, {
|
|
6699
6699
|
ariaLabel: "Open preferences",
|
|
6700
6700
|
disabled: e.filter.disabled,
|
|
6701
6701
|
leftIcon: "sliders-horizontal",
|
|
@@ -6716,7 +6716,7 @@ var Ci = {
|
|
|
6716
6716
|
"disabled",
|
|
6717
6717
|
"placeholder"
|
|
6718
6718
|
]),
|
|
6719
|
-
z.value.length ? (E(), o("div",
|
|
6719
|
+
z.value.length ? (E(), o("div", vl, [(E(!0), o(t, null, k(z.value, (t) => (E(), i(dl, {
|
|
6720
6720
|
key: t.value,
|
|
6721
6721
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
6722
6722
|
"focus-text": e.filter.focusText,
|
|
@@ -6749,10 +6749,10 @@ var Ci = {
|
|
|
6749
6749
|
"onFocusValue",
|
|
6750
6750
|
"onToggleValue"
|
|
6751
6751
|
]))), 128))])) : a("", !0),
|
|
6752
|
-
e.filter.isLoading ? (E(), o("div",
|
|
6753
|
-
!v.value.length && !z.value.length && !
|
|
6754
|
-
ne.value.length ||
|
|
6755
|
-
ne.value.length ? (E(), o("div",
|
|
6752
|
+
e.filter.isLoading ? (E(), o("div", yl, [u(ke, { size: "sm" })])) : (E(), o(t, { key: 3 }, [
|
|
6753
|
+
!v.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, pe.value, { "empty-reason": "no-values" }), null, 16)) : (E(), o("p", bl, "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 }, pe.value, { "empty-reason": "no-matches" }), null, 16)) : (E(), o("p", xl, "No matching values."))], 64)) : a("", !0),
|
|
6754
|
+
ne.value.length || B.value ? (E(), o("div", Sl, [
|
|
6755
|
+
ne.value.length ? (E(), o("div", Cl, [e.filter.filterOptionsSortTooltip ? (E(), i(sr, {
|
|
6756
6756
|
key: 0,
|
|
6757
6757
|
variant: "dark",
|
|
6758
6758
|
disableInteractive: !0,
|
|
@@ -6761,11 +6761,11 @@ var Ci = {
|
|
|
6761
6761
|
"use-teleport": !0,
|
|
6762
6762
|
style: { "--max-width": "200px" }
|
|
6763
6763
|
}, {
|
|
6764
|
-
trigger: H(() => [s("p",
|
|
6764
|
+
trigger: H(() => [s("p", wl, N(P.value), 1)]),
|
|
6765
6765
|
content: H(() => [l(N(e.filter.filterOptionsSortTooltip), 1)]),
|
|
6766
6766
|
_: 1
|
|
6767
|
-
})) : (E(), o("p",
|
|
6768
|
-
(E(!0), o(t, null, k(
|
|
6767
|
+
})) : (E(), o("p", Tl, N(P.value), 1))])) : a("", !0),
|
|
6768
|
+
(E(!0), o(t, null, k(ie.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(dl, {
|
|
6769
6769
|
key: 0,
|
|
6770
6770
|
depth: n.depth,
|
|
6771
6771
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
@@ -6816,7 +6816,7 @@ var Ci = {
|
|
|
6816
6816
|
"style",
|
|
6817
6817
|
"onClick"
|
|
6818
6818
|
]))], 64))), 128)),
|
|
6819
|
-
|
|
6819
|
+
B.value ? (E(), i(Q, {
|
|
6820
6820
|
key: 1,
|
|
6821
6821
|
class: "pv-text-brand",
|
|
6822
6822
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
@@ -6828,7 +6828,7 @@ var Ci = {
|
|
|
6828
6828
|
])) : a("", !0),
|
|
6829
6829
|
e.filter.filterFooterRenderer ? (E(), i(j(e.filter.filterFooterRenderer), b(_({ key: 3 }, pe.value)), null, 16)) : a("", !0)
|
|
6830
6830
|
], 64))
|
|
6831
|
-
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(
|
|
6831
|
+
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(al, {
|
|
6832
6832
|
key: 1,
|
|
6833
6833
|
mode: "dual",
|
|
6834
6834
|
rangeValue: e.filter.rangeValue,
|
|
@@ -6849,7 +6849,7 @@ var Ci = {
|
|
|
6849
6849
|
"min",
|
|
6850
6850
|
"step",
|
|
6851
6851
|
"value-decimals"
|
|
6852
|
-
])) : S.value === "range" ? (E(), o("p",
|
|
6852
|
+
])) : S.value === "range" ? (E(), o("p", El, " Range filters require minimum and maximum bounds. ")) : S.value === "boolean" ? (E(), o("div", Dl, [s("div", Ol, [u(Q, {
|
|
6853
6853
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6854
6854
|
label: M.value,
|
|
6855
6855
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
@@ -6874,37 +6874,37 @@ var Ci = {
|
|
|
6874
6874
|
label: "Clear",
|
|
6875
6875
|
variant: "ghost",
|
|
6876
6876
|
onClick: r[3] ||= (e) => ge(null)
|
|
6877
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label",
|
|
6877
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label", kl, [u(Ka, {
|
|
6878
6878
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6879
6879
|
modelValue: e.filter.existsValue ?? !1,
|
|
6880
6880
|
"onUpdate:modelValue": _e
|
|
6881
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
6881
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Al, N(h.value), 1)])) : a("", !0)])], 40, fl));
|
|
6882
6882
|
}
|
|
6883
|
-
}), [["__scopeId", "data-v-014fc511"]]),
|
|
6883
|
+
}), [["__scopeId", "data-v-014fc511"]]), Pl = {
|
|
6884
6884
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
6885
6885
|
"data-testid": "pv-filter-panel-applied-section",
|
|
6886
6886
|
style: {
|
|
6887
6887
|
"--flex-align": "stretch",
|
|
6888
6888
|
"--flex-gap": "1rem"
|
|
6889
6889
|
}
|
|
6890
|
-
},
|
|
6890
|
+
}, Fl = {
|
|
6891
6891
|
key: 0,
|
|
6892
6892
|
class: "pv-flex-vertical",
|
|
6893
6893
|
style: {
|
|
6894
6894
|
"--flex-align": "stretch",
|
|
6895
6895
|
"--flex-gap": "1rem"
|
|
6896
6896
|
}
|
|
6897
|
-
},
|
|
6897
|
+
}, Il = { class: "pv-text-title-md pv-stack-8" }, Ll = {
|
|
6898
6898
|
class: "pv-flex",
|
|
6899
6899
|
style: {
|
|
6900
6900
|
"--flex-gap": "0.375rem",
|
|
6901
6901
|
"--flex-wrap": "wrap"
|
|
6902
6902
|
}
|
|
6903
|
-
},
|
|
6903
|
+
}, Rl = {
|
|
6904
6904
|
key: 1,
|
|
6905
6905
|
class: "pv-text-body-sm pv-text-subdued",
|
|
6906
6906
|
style: { margin: "0" }
|
|
6907
|
-
},
|
|
6907
|
+
}, zl = /* @__PURE__ */ d({
|
|
6908
6908
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
6909
6909
|
props: {
|
|
6910
6910
|
appliedCount: { default: 0 },
|
|
@@ -6919,14 +6919,14 @@ var Ci = {
|
|
|
6919
6919
|
let r = n, a = (e, t) => {
|
|
6920
6920
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
6921
6921
|
};
|
|
6922
|
-
return (n, r) => (E(), o("section",
|
|
6922
|
+
return (n, r) => (E(), o("section", Pl, [e.appliedCount ? (E(), o("div", Fl, [(E(!0), o(t, null, k(e.appliedGroups, (n) => (E(), o("div", {
|
|
6923
6923
|
key: n.key,
|
|
6924
6924
|
class: "pv-flex-vertical pv-border-bottom",
|
|
6925
6925
|
style: {
|
|
6926
6926
|
"--flex-align": "stretch",
|
|
6927
6927
|
"padding-bottom": "4px"
|
|
6928
6928
|
}
|
|
6929
|
-
}, [s("span",
|
|
6929
|
+
}, [s("span", Il, N(n.label), 1), s("div", Ll, [(E(!0), o(t, null, k(n.values, (t) => (E(), i(Xn, {
|
|
6930
6930
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
6931
6931
|
label: t.label,
|
|
6932
6932
|
showClear: !e.readOnly,
|
|
@@ -6935,9 +6935,9 @@ var Ci = {
|
|
|
6935
6935
|
"label",
|
|
6936
6936
|
"showClear",
|
|
6937
6937
|
"onHandleClose"
|
|
6938
|
-
]))), 128))])]))), 128))])) : (E(), o("p",
|
|
6938
|
+
]))), 128))])]))), 128))])) : (E(), o("p", Rl, "No filters applied yet."))]));
|
|
6939
6939
|
}
|
|
6940
|
-
}),
|
|
6940
|
+
}), Bl = { class: "pv-horizontal-scroller" }, Vl = ["aria-label"], Hl = 1, Ul = /* @__PURE__ */ d({
|
|
6941
6941
|
__name: "PvHorizontalScroller",
|
|
6942
6942
|
props: {
|
|
6943
6943
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -6961,7 +6961,7 @@ var Ci = {
|
|
|
6961
6961
|
let e = u.value;
|
|
6962
6962
|
if (!e) return;
|
|
6963
6963
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
6964
|
-
n.value = e.scrollLeft >
|
|
6964
|
+
n.value = e.scrollLeft > Hl, c.value = e.scrollLeft < t - Hl;
|
|
6965
6965
|
}, h = () => {
|
|
6966
6966
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
6967
6967
|
}, g = () => {
|
|
@@ -6981,7 +6981,7 @@ var Ci = {
|
|
|
6981
6981
|
h(), g();
|
|
6982
6982
|
}), S(() => {
|
|
6983
6983
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
6984
|
-
}), (t, r) => (E(), o("div",
|
|
6984
|
+
}), (t, r) => (E(), o("div", Bl, [
|
|
6985
6985
|
s("div", {
|
|
6986
6986
|
ref_key: "scrollContainer",
|
|
6987
6987
|
ref: u,
|
|
@@ -6992,7 +6992,7 @@ var Ci = {
|
|
|
6992
6992
|
ref_key: "contentContainer",
|
|
6993
6993
|
ref: l,
|
|
6994
6994
|
class: "pv-horizontal-scroller-content"
|
|
6995
|
-
}, [A(t.$slots, "default")], 512)], 10,
|
|
6995
|
+
}, [A(t.$slots, "default")], 512)], 10, Vl),
|
|
6996
6996
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
6997
6997
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
6998
6998
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -7025,18 +7025,18 @@ var Ci = {
|
|
|
7025
7025
|
])) : a("", !0)], 2)
|
|
7026
7026
|
]));
|
|
7027
7027
|
}
|
|
7028
|
-
}),
|
|
7028
|
+
}), Wl = {
|
|
7029
7029
|
key: 0,
|
|
7030
7030
|
class: "pv-border-bottom",
|
|
7031
7031
|
"data-testid": "pv-filter-panel-category-row"
|
|
7032
|
-
},
|
|
7032
|
+
}, Gl = {
|
|
7033
7033
|
class: "pv-flex",
|
|
7034
7034
|
style: {
|
|
7035
7035
|
"--flex-align": "center",
|
|
7036
7036
|
"--flex-gap": "8px",
|
|
7037
7037
|
padding: "8px 12px"
|
|
7038
7038
|
}
|
|
7039
|
-
},
|
|
7039
|
+
}, Kl = /* @__PURE__ */ d({
|
|
7040
7040
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
7041
7041
|
props: /* @__PURE__ */ g({
|
|
7042
7042
|
categoryOrder: {},
|
|
@@ -7057,7 +7057,7 @@ var Ci = {
|
|
|
7057
7057
|
}, f = (e) => c.value === e ? "primary" : "secondary";
|
|
7058
7058
|
return V(l, (e) => {
|
|
7059
7059
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
7060
|
-
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div",
|
|
7060
|
+
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div", Wl, [u(Ul, {
|
|
7061
7061
|
ariaLabel: "Filter categories",
|
|
7062
7062
|
buttonSize: "md",
|
|
7063
7063
|
buttonVariant: "secondary",
|
|
@@ -7066,7 +7066,7 @@ var Ci = {
|
|
|
7066
7066
|
rightAriaLabel: "Scroll filter categories right",
|
|
7067
7067
|
showFades: ""
|
|
7068
7068
|
}, {
|
|
7069
|
-
default: H(() => [s("div",
|
|
7069
|
+
default: H(() => [s("div", Gl, [u(Q, {
|
|
7070
7070
|
label: "All",
|
|
7071
7071
|
size: "md",
|
|
7072
7072
|
variant: f(null),
|
|
@@ -7085,7 +7085,7 @@ var Ci = {
|
|
|
7085
7085
|
_: 1
|
|
7086
7086
|
})])) : a("", !0);
|
|
7087
7087
|
}
|
|
7088
|
-
}),
|
|
7088
|
+
}), ql = Symbol("PvFilterStore"), Jl = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Yl = (e, t) => t ?? e, Xl = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Zl = (e) => {
|
|
7089
7089
|
let t = /* @__PURE__ */ new Map();
|
|
7090
7090
|
for (let n of e) {
|
|
7091
7091
|
if (!n) continue;
|
|
@@ -7097,34 +7097,34 @@ var Ci = {
|
|
|
7097
7097
|
t.set(n.value, {
|
|
7098
7098
|
...e,
|
|
7099
7099
|
...n,
|
|
7100
|
-
children:
|
|
7101
|
-
totalChildCount:
|
|
7100
|
+
children: Zl([...e.children ?? [], ...n.children ?? []]),
|
|
7101
|
+
totalChildCount: Yl(e.totalChildCount, n.totalChildCount)
|
|
7102
7102
|
});
|
|
7103
7103
|
}
|
|
7104
7104
|
return [...t.values()];
|
|
7105
|
-
},
|
|
7105
|
+
}, Ql = (e, t) => {
|
|
7106
7106
|
for (let n of e ?? []) {
|
|
7107
7107
|
if (!n) continue;
|
|
7108
7108
|
if (n.value === t) return n;
|
|
7109
|
-
let e =
|
|
7109
|
+
let e = Ql(n.children, t);
|
|
7110
7110
|
if (e) return e;
|
|
7111
7111
|
}
|
|
7112
|
-
},
|
|
7112
|
+
}, $l = (e, t, n) => {
|
|
7113
7113
|
if (!e || t === null) return !1;
|
|
7114
7114
|
if (e.value === t) return !0;
|
|
7115
|
-
let r =
|
|
7116
|
-
return r !== null && r === t ||
|
|
7117
|
-
},
|
|
7118
|
-
let r =
|
|
7115
|
+
let r = Qs(e);
|
|
7116
|
+
return r !== null && r === t || tc(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => $l(e, t, n)) ?? !1;
|
|
7117
|
+
}, eu = (e, t, n) => {
|
|
7118
|
+
let r = Ql(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
7119
7119
|
return e.map((e) => e && (e.value === t ? {
|
|
7120
7120
|
...e,
|
|
7121
|
-
children:
|
|
7122
|
-
totalChildCount:
|
|
7121
|
+
children: Zl([...e.children ?? [], ...i]),
|
|
7122
|
+
totalChildCount: Yl(e.totalChildCount, r?.totalChildCount)
|
|
7123
7123
|
} : e.children?.length ? {
|
|
7124
7124
|
...e,
|
|
7125
|
-
children:
|
|
7125
|
+
children: eu(e.children, t, n).filter((e) => !!e)
|
|
7126
7126
|
} : e));
|
|
7127
|
-
},
|
|
7127
|
+
}, tu = (e, t) => `${e}::${t}`, nu = () => {
|
|
7128
7128
|
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) => {
|
|
7129
7129
|
_.value = e;
|
|
7130
7130
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7133,11 +7133,11 @@ var Ci = {
|
|
|
7133
7133
|
let r = n ? o : i;
|
|
7134
7134
|
r.value[e] = t;
|
|
7135
7135
|
}, w = () => {
|
|
7136
|
-
o.value =
|
|
7136
|
+
o.value = Xl(i.value), s.value = Xl(a.value);
|
|
7137
7137
|
}, T = () => {
|
|
7138
7138
|
o.value = {}, s.value = {};
|
|
7139
7139
|
}, E = () => {
|
|
7140
|
-
i.value =
|
|
7140
|
+
i.value = Xl(o.value), a.value = Xl(s.value), T();
|
|
7141
7141
|
}, D = (e, t) => {
|
|
7142
7142
|
c.value[e] = t;
|
|
7143
7143
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7159,7 +7159,7 @@ var Ci = {
|
|
|
7159
7159
|
if (!o) return [];
|
|
7160
7160
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7161
7161
|
c.value[n.field] = s;
|
|
7162
|
-
let l = n.parentId ?
|
|
7162
|
+
let l = n.parentId ? Ql(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 ? tu(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
7163
7163
|
h.value[b] = x;
|
|
7164
7164
|
try {
|
|
7165
7165
|
let c = await o({
|
|
@@ -7170,17 +7170,17 @@ var Ci = {
|
|
|
7170
7170
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7171
7171
|
});
|
|
7172
7172
|
if (h.value[b] !== x) return [];
|
|
7173
|
-
let l =
|
|
7173
|
+
let l = Jl(c);
|
|
7174
7174
|
if (n.parentId) {
|
|
7175
|
-
let e =
|
|
7175
|
+
let e = tu(n.field, n.parentId);
|
|
7176
7176
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7177
7177
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7178
7178
|
let _ = a.value[n.field] ?? [], y;
|
|
7179
|
-
y = n.parentId ?
|
|
7179
|
+
y = n.parentId ? eu(r.value[n.field] ?? [], n.parentId, l.values) : v ? Zl([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
7180
7180
|
for (let e of _) {
|
|
7181
7181
|
if (!e) continue;
|
|
7182
|
-
let t =
|
|
7183
|
-
y.some((e) =>
|
|
7182
|
+
let t = Qs(e) ?? e.value;
|
|
7183
|
+
y.some((e) => $l(e, t, n.field)) || y.push(e);
|
|
7184
7184
|
}
|
|
7185
7185
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7186
7186
|
} finally {
|
|
@@ -7213,32 +7213,32 @@ var Ci = {
|
|
|
7213
7213
|
stagedFilterSelectedMetadataMap: s,
|
|
7214
7214
|
stagedFilterSelectedValueMap: o
|
|
7215
7215
|
};
|
|
7216
|
-
},
|
|
7217
|
-
D(
|
|
7218
|
-
},
|
|
7216
|
+
}, ru = (e) => {
|
|
7217
|
+
D(ql, e);
|
|
7218
|
+
}, iu = () => m(ql, null), au = () => iu() ?? nu(), ou = ["aria-label"], su = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, cu = { class: "pv-filter-panel-body pv-flex-vertical" }, lu = {
|
|
7219
7219
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
7220
7220
|
"data-testid": "pv-filter-panel-filters-view"
|
|
7221
|
-
},
|
|
7221
|
+
}, uu = {
|
|
7222
7222
|
key: 0,
|
|
7223
7223
|
"aria-label": "Filter suggestions",
|
|
7224
7224
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
7225
7225
|
"data-testid": "pv-filter-panel-suggestions"
|
|
7226
|
-
},
|
|
7226
|
+
}, du = { class: "pv-filter-panel-suggestion-tags pv-flex" }, fu = {
|
|
7227
7227
|
key: 1,
|
|
7228
7228
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7229
|
-
},
|
|
7229
|
+
}, pu = {
|
|
7230
7230
|
key: 2,
|
|
7231
7231
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7232
|
-
},
|
|
7232
|
+
}, mu = {
|
|
7233
7233
|
key: 3,
|
|
7234
7234
|
class: "pv-filter-panel-filter-list pv-flex-vertical"
|
|
7235
|
-
},
|
|
7235
|
+
}, hu = {
|
|
7236
7236
|
key: 0,
|
|
7237
7237
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
7238
|
-
},
|
|
7238
|
+
}, gu = {
|
|
7239
7239
|
key: 1,
|
|
7240
7240
|
class: "pv-filter-panel-actions pv-flex"
|
|
7241
|
-
},
|
|
7241
|
+
}, _u = { class: "pv-text-body-sm" }, vu = { class: "pv-filter-panel-modal-footer pv-flex" }, yu = "__range__", bu = "__boolean__", xu = "__exists__", Su = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
7242
7242
|
__name: "PvFilterPanel",
|
|
7243
7243
|
props: /* @__PURE__ */ g({
|
|
7244
7244
|
applyLabel: { default: "Apply" },
|
|
@@ -7320,10 +7320,10 @@ var Ci = {
|
|
|
7320
7320
|
"exists"
|
|
7321
7321
|
]), l = e, d = I(e, "filterModel"), p = I(e, "isCollapsed"), m = n;
|
|
7322
7322
|
f();
|
|
7323
|
-
let h = O("filters"), g = O({}), _ = O(null), v = O(!1), y = O(d.value), b =
|
|
7323
|
+
let h = O("filters"), g = O({}), _ = O(null), v = O(!1), y = O(d.value), b = nu(), C = iu(), w = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Map(), ee = r(() => !!(l.filterStore ?? C)), j = r(() => !ee.value && !!l.filterOptionsHandler), M = r(() => l.filterStore ?? C ?? b), P = r(() => M.value === b), te = r(() => ee.value || j.value), F = r(() => l.filterModelType ?? M.value?.filterModelType.value), L = r(() => F.value ?? "advanced"), R = r(() => {
|
|
7324
7324
|
let e = M.value;
|
|
7325
7325
|
return e ? l.staged ? e.stagedFilterModel.value : e.filterModel.value : l.staged ? y.value : d.value;
|
|
7326
|
-
}), z = r(() =>
|
|
7326
|
+
}), z = r(() => Rs(R.value, L.value)), ne = (e, t) => {
|
|
7327
7327
|
let n = e.applyFilterModel;
|
|
7328
7328
|
if (typeof n == "function") {
|
|
7329
7329
|
n(t);
|
|
@@ -7400,7 +7400,7 @@ var Ci = {
|
|
|
7400
7400
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections());
|
|
7401
7401
|
}
|
|
7402
7402
|
}, { immediate: !0 });
|
|
7403
|
-
let
|
|
7403
|
+
let B = (e, t) => {
|
|
7404
7404
|
!te.value || !t || w.has(e) || (console.warn(`PvFilterPanel: "${e}" is ignored when filterStore/filterOptionsHandler store mode is active.`), w.add(e));
|
|
7405
7405
|
}, oe = (e, t) => {
|
|
7406
7406
|
T.has(e) || (console.warn(t), T.add(e));
|
|
@@ -7410,7 +7410,7 @@ var Ci = {
|
|
|
7410
7410
|
L.value === "advanced" && !t && oe("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), L.value === "regular" && t && oe("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
7411
7411
|
};
|
|
7412
7412
|
ae(() => {
|
|
7413
|
-
|
|
7413
|
+
B("filterModel", !!((l.filterStore || C) && d.value !== null)), B("filterOptions", Object.keys(l.filterOptions).length > 0), B("filterLoadingMap", Object.keys(l.filterLoadingMap).length > 0), B("filterLoadingMoreMap", Object.keys(l.filterLoadingMoreMap).length > 0), B("filterHasMoreMap", Object.keys(l.filterHasMoreMap).length > 0), B("filterSearchQueries", Object.keys(l.filterSearchQueries).length > 0), B("filterOptionsHandler", !!(l.filterStore && l.filterOptionsHandler)), (l.filterStore || C) && R.value;
|
|
7414
7414
|
});
|
|
7415
7415
|
let G = (e) => e.context ?? {}, K = (e) => e.colId || e.field || "", q = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ce = (e) => {
|
|
7416
7416
|
let t = G(e), n = t.filterPanelType;
|
|
@@ -7454,34 +7454,35 @@ var Ci = {
|
|
|
7454
7454
|
...r,
|
|
7455
7455
|
...i
|
|
7456
7456
|
].filter(Boolean)));
|
|
7457
|
-
}, Ce = (e) => L.value === "advanced" &&
|
|
7457
|
+
}, Ce = (e) => L.value === "advanced" && lc(e), we = (e, t) => Ce(e) ? yc({
|
|
7458
7458
|
colDef: e,
|
|
7459
7459
|
model: R.value,
|
|
7460
7460
|
options: t
|
|
7461
7461
|
}) : new Map(Se(e).map((e) => [e, z.value.get(e)?.values ?? []])), Te = (e, t, n, r) => {
|
|
7462
7462
|
let i = /* @__PURE__ */ new Set();
|
|
7463
|
-
for (let t of
|
|
7463
|
+
for (let t of ec(r)) for (let [r, a] of n) for (let n of a) tc(t, r, n, e) && i.add(`${r}:${n}`);
|
|
7464
7464
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
7465
7465
|
colField: t === e ? void 0 : t,
|
|
7466
7466
|
label: n,
|
|
7467
7467
|
metadata: { rawValue: n },
|
|
7468
|
-
value: t === e ? n :
|
|
7468
|
+
value: t === e ? n : Zs(t, n)
|
|
7469
7469
|
}]));
|
|
7470
7470
|
}, Ee = (e, t, n) => {
|
|
7471
7471
|
let r = /* @__PURE__ */ new Set();
|
|
7472
|
-
for (let i of
|
|
7473
|
-
let n =
|
|
7472
|
+
for (let i of ec(n)) {
|
|
7473
|
+
let n = $s(i, e), a = Qs(i);
|
|
7474
7474
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
7475
7475
|
}
|
|
7476
7476
|
return Array.from(r);
|
|
7477
7477
|
}, De = (e) => Object.fromEntries(Se(e).map((e) => [e, l.focusedValues[e] ?? []])), Oe = (e) => l.colDefs.find((t) => K(t) === e || t.field === e || t.colId === e), ke = (e) => Oe(e)?.headerName ?? e, Ae = (e) => {
|
|
7478
7478
|
let t = G(e);
|
|
7479
7479
|
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : rs(K(e), t.queryColIds, ke);
|
|
7480
|
-
}, je = (e, t) =>
|
|
7480
|
+
}, je = (e, t) => as({
|
|
7481
7481
|
fallbackSubText: e.subText,
|
|
7482
7482
|
getDisplayName: ke,
|
|
7483
7483
|
matchedField: e.matchedField,
|
|
7484
7484
|
matchedValue: e.matchedValue,
|
|
7485
|
+
primaryText: e.label,
|
|
7485
7486
|
showPrefix: G(t).showSearchMatchSubTextPrefix !== !1
|
|
7486
7487
|
}), Me = (e, t) => e.map((e) => ({
|
|
7487
7488
|
...e,
|
|
@@ -7494,7 +7495,7 @@ var Ci = {
|
|
|
7494
7495
|
isActive: z.value.get(e)?.booleanValue === !0,
|
|
7495
7496
|
label: Oe(e)?.headerName ?? e
|
|
7496
7497
|
}));
|
|
7497
|
-
}, Y = (e) => Fe.value.find((t) => t.key === e) ?? Fe.value.find((t) => Se(t.colDef).includes(e)), Pe = (e, t, n) =>
|
|
7498
|
+
}, Y = (e) => Fe.value.find((t) => t.key === e) ?? Fe.value.find((t) => Se(t.colDef).includes(e)), Pe = (e, t, n) => ec(Y(e)?.knownOptions ?? []).find((r) => r.value === n || tc(r, t, n, e)), Fe = r(() => l.colDefs.filter(fe).map((e) => {
|
|
7498
7499
|
let t = K(e), n = G(e), r = le(e), i = Me(pe(t), e), a = Me(ye(t), e), o = {
|
|
7499
7500
|
category: ue(e),
|
|
7500
7501
|
colDef: e,
|
|
@@ -7546,7 +7547,7 @@ var Ci = {
|
|
|
7546
7547
|
...o,
|
|
7547
7548
|
existsValue: z.value.get(t)?.existsValue ?? !1
|
|
7548
7549
|
};
|
|
7549
|
-
let s = a, c = we(e, s), u = Te(t, e, c, s), d = [...s, ...u], f = Ce(e) ?
|
|
7550
|
+
let s = a, c = we(e, s), u = Te(t, e, c, s), d = [...s, ...u], f = Ce(e) ? vc({
|
|
7550
7551
|
colDef: e,
|
|
7551
7552
|
model: R.value,
|
|
7552
7553
|
options: d
|
|
@@ -7568,7 +7569,7 @@ var Ci = {
|
|
|
7568
7569
|
})), Z = r(() => Ie.value.reduce((e, t) => e + t.values.length, 0)), Le = r(() => X.value.map((e) => ({
|
|
7569
7570
|
...e,
|
|
7570
7571
|
isOpen: g.value[e.key] ?? e.isOpen ?? !1
|
|
7571
|
-
}))), Re = r(() =>
|
|
7572
|
+
}))), Re = r(() => zs(R.value, L.value)), ze = r(() => [{
|
|
7572
7573
|
label: "Filters",
|
|
7573
7574
|
value: "filters"
|
|
7574
7575
|
}, {
|
|
@@ -7585,14 +7586,14 @@ var Ci = {
|
|
|
7585
7586
|
if (!t || t.type !== e.filter.type) return !0;
|
|
7586
7587
|
if (e.filter.type === "value") {
|
|
7587
7588
|
if (t.isAggregate && e.option) {
|
|
7588
|
-
let { selected: n } =
|
|
7589
|
+
let { selected: n } = Mc({
|
|
7589
7590
|
option: e.option,
|
|
7590
7591
|
options: t.knownOptions ?? [],
|
|
7591
7592
|
state: t.aggregateSelectionState ?? []
|
|
7592
7593
|
});
|
|
7593
7594
|
return e.filter.checked ? n : !n;
|
|
7594
7595
|
}
|
|
7595
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
7596
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Qs(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
7596
7597
|
return e.filter.checked ? a : !a;
|
|
7597
7598
|
}
|
|
7598
7599
|
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;
|
|
@@ -7606,14 +7607,14 @@ var Ci = {
|
|
|
7606
7607
|
i.setFilterSelectedValues(t, n, l.staged);
|
|
7607
7608
|
let a = l.staged ? i.stagedFilterSelectedMetadataMap : i.filterSelectedMetadataMap, o = a.value[e] ?? [], s = new Set(n), c = o.filter((n) => {
|
|
7608
7609
|
if (!n) return !1;
|
|
7609
|
-
let r =
|
|
7610
|
+
let r = $s(n, e), i = Qs(n) ?? n.value;
|
|
7610
7611
|
return r !== t || s.has(i);
|
|
7611
7612
|
});
|
|
7612
7613
|
if (r) {
|
|
7613
|
-
let t =
|
|
7614
|
+
let t = Qs(r) ?? r.value, n = $s(r, e);
|
|
7614
7615
|
c.some((r) => {
|
|
7615
|
-
let i =
|
|
7616
|
-
return
|
|
7616
|
+
let i = Qs(r) ?? r.value;
|
|
7617
|
+
return $s(r, e) === n && i === t;
|
|
7617
7618
|
}) || c.push(r);
|
|
7618
7619
|
}
|
|
7619
7620
|
a.value[e] = c;
|
|
@@ -7623,7 +7624,7 @@ var Ci = {
|
|
|
7623
7624
|
let r = t.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
7624
7625
|
n.setFilterSelectedValues(e.key, r, l.staged);
|
|
7625
7626
|
let i = l.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap;
|
|
7626
|
-
i.value[e.key] =
|
|
7627
|
+
i.value[e.key] = Nc({
|
|
7627
7628
|
options: e.knownOptions ?? [],
|
|
7628
7629
|
state: t
|
|
7629
7630
|
});
|
|
@@ -7652,48 +7653,48 @@ var Ci = {
|
|
|
7652
7653
|
return t === null ? [] : [{
|
|
7653
7654
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
7654
7655
|
type: "boolean",
|
|
7655
|
-
value:
|
|
7656
|
+
value: bu
|
|
7656
7657
|
}];
|
|
7657
7658
|
}, Xe = (e) => e.existsValue ? [{
|
|
7658
7659
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
7659
7660
|
type: "exists",
|
|
7660
|
-
value:
|
|
7661
|
+
value: xu
|
|
7661
7662
|
}] : [], Ze = (e) => {
|
|
7662
7663
|
let t = e.rangeValue ?? {
|
|
7663
7664
|
max: null,
|
|
7664
7665
|
min: null
|
|
7665
7666
|
};
|
|
7666
7667
|
return t.min === null && t.max === null ? [] : [{
|
|
7667
|
-
label:
|
|
7668
|
+
label: Vc(t.min, t.max, {
|
|
7668
7669
|
dataType: e.dataType,
|
|
7669
7670
|
valueDecimals: e.valueDecimals
|
|
7670
7671
|
}),
|
|
7671
7672
|
type: "range",
|
|
7672
|
-
value:
|
|
7673
|
+
value: yu
|
|
7673
7674
|
}];
|
|
7674
7675
|
}, Qe = (e, t, n) => {
|
|
7675
7676
|
let r = n.get(t) ?? null;
|
|
7676
7677
|
return {
|
|
7677
|
-
field: r ?
|
|
7678
|
-
label: r ?
|
|
7679
|
-
resultCount:
|
|
7678
|
+
field: r ? $s(r, e.key) : void 0,
|
|
7679
|
+
label: r ? Wc(r, e.colDef) : t,
|
|
7680
|
+
resultCount: Gc(r),
|
|
7680
7681
|
subText: r?.subText,
|
|
7681
7682
|
subduedText: r?.subduedText,
|
|
7682
7683
|
type: "value",
|
|
7683
|
-
value: r ?
|
|
7684
|
+
value: r ? Qs(r) ?? r.value : t
|
|
7684
7685
|
};
|
|
7685
7686
|
}, $e = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
7686
7687
|
field: e.field,
|
|
7687
7688
|
label: e.label,
|
|
7688
7689
|
type: "boolean",
|
|
7689
|
-
value:
|
|
7690
|
-
}] : []), et = (e) =>
|
|
7690
|
+
value: bu
|
|
7691
|
+
}] : []), et = (e) => Nc({
|
|
7691
7692
|
options: e.knownOptions ?? [],
|
|
7692
7693
|
state: e.aggregateSelectionState ?? []
|
|
7693
7694
|
}).map((t) => ({
|
|
7694
7695
|
field: e.key,
|
|
7695
|
-
label:
|
|
7696
|
-
resultCount:
|
|
7696
|
+
label: Wc(t, e.colDef),
|
|
7697
|
+
resultCount: Gc(t),
|
|
7697
7698
|
subText: t.subText,
|
|
7698
7699
|
subduedText: t.subduedText,
|
|
7699
7700
|
type: "value",
|
|
@@ -7703,7 +7704,7 @@ var Ci = {
|
|
|
7703
7704
|
if (e.type === "boolean") return Ye(e);
|
|
7704
7705
|
if (e.type === "exists") return Xe(e);
|
|
7705
7706
|
if (e.isAggregate) return [...et(e), ...$e(e)];
|
|
7706
|
-
let t = new Map(
|
|
7707
|
+
let t = new Map(ec(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
7707
7708
|
return [...(e.selectedValues ?? []).map((n) => Qe(e, n, t)), ...$e(e)];
|
|
7708
7709
|
}, nt = () => {
|
|
7709
7710
|
v.value = !1;
|
|
@@ -7719,9 +7720,9 @@ var Ci = {
|
|
|
7719
7720
|
ht();
|
|
7720
7721
|
let e = M.value;
|
|
7721
7722
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), y.value = d.value, m("cancel");
|
|
7722
|
-
}, st = (e) =>
|
|
7723
|
+
}, st = (e) => Bs(Y(e)?.dataType), ct = (e, t, n = "value-toggle") => {
|
|
7723
7724
|
let r = Y(e);
|
|
7724
|
-
r?.isAggregate && (Ke(r, t), Je(
|
|
7725
|
+
r?.isAggregate && (Ke(r, t), Je(gc({
|
|
7725
7726
|
baseModel: R.value,
|
|
7726
7727
|
colDef: r.colDef,
|
|
7727
7728
|
options: r.knownOptions ?? [],
|
|
@@ -7736,7 +7737,7 @@ var Ci = {
|
|
|
7736
7737
|
if (t.type === "value") {
|
|
7737
7738
|
let r = Y(e), i = Pe(e, n, t.value);
|
|
7738
7739
|
if (r?.isAggregate && i) {
|
|
7739
|
-
ct(e,
|
|
7740
|
+
ct(e, kc({
|
|
7740
7741
|
checked: t.checked,
|
|
7741
7742
|
option: i,
|
|
7742
7743
|
options: r.knownOptions ?? [],
|
|
@@ -7752,10 +7753,10 @@ var Ci = {
|
|
|
7752
7753
|
return;
|
|
7753
7754
|
}
|
|
7754
7755
|
if (t.type === "boolean") {
|
|
7755
|
-
Je(
|
|
7756
|
+
Je(Hs(R.value, n, t.value, L.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
7756
7757
|
return;
|
|
7757
7758
|
}
|
|
7758
|
-
Je(
|
|
7759
|
+
Je(Us(R.value, n, t.value, st(n), L.value, r), "exists-change", n, "exists");
|
|
7759
7760
|
}, ut = (e, t, n, r) => {
|
|
7760
7761
|
let i = M.value;
|
|
7761
7762
|
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;
|
|
@@ -7777,7 +7778,7 @@ var Ci = {
|
|
|
7777
7778
|
}, pt = (e) => {
|
|
7778
7779
|
(e === "filters" || e === "applied") && (h.value = e);
|
|
7779
7780
|
}, mt = (e, t, n) => {
|
|
7780
|
-
Je(
|
|
7781
|
+
Je(Ws(R.value, e, t.min, t.max, L.value, n), "range-change", e, "range");
|
|
7781
7782
|
}, ht = () => {
|
|
7782
7783
|
for (let { timer: e } of D.values()) window.clearTimeout(e);
|
|
7783
7784
|
D.clear();
|
|
@@ -7808,11 +7809,11 @@ var Ci = {
|
|
|
7808
7809
|
g.value[e.key] = t, m("open-change", e.key, t, e.colDef), t && dt(e, e.searchQuery ?? "", "open");
|
|
7809
7810
|
}, bt = (e, t, n, r, i) => {
|
|
7810
7811
|
let a = z.value.get(t)?.values ?? [], o = r ? Array.from(new Set([...a, n])) : a.filter((e) => e !== n);
|
|
7811
|
-
Ge(e, t, o, r ? i : void 0), Je(
|
|
7812
|
+
Ge(e, t, o, r ? i : void 0), Je(Gs(R.value, t, o, L.value, Oe(t) ?? Y(e)?.colDef), "value-toggle", t, "value");
|
|
7812
7813
|
}, xt = (e) => {
|
|
7813
7814
|
if (e.filter.type === "value" && e.option) {
|
|
7814
|
-
let t = Y(e.field), n =
|
|
7815
|
-
t?.isAggregate ? ct(e.field,
|
|
7815
|
+
let t = Y(e.field), n = $s(e.option, e.field), r = Qs(e.option) ?? e.filter.value;
|
|
7816
|
+
t?.isAggregate ? ct(e.field, kc({
|
|
7816
7817
|
checked: e.filter.checked,
|
|
7817
7818
|
option: e.option,
|
|
7818
7819
|
options: t.knownOptions ?? [],
|
|
@@ -7822,21 +7823,21 @@ var Ci = {
|
|
|
7822
7823
|
m("suggestion-click", e);
|
|
7823
7824
|
}, St = (e, t, n) => {
|
|
7824
7825
|
let r = n ?? Y(e)?.type ?? "value";
|
|
7825
|
-
if (r === "range" || !n && t ===
|
|
7826
|
-
Je(
|
|
7826
|
+
if (r === "range" || !n && t === yu) {
|
|
7827
|
+
Je(Ws(R.value, e, null, null, L.value, Oe(e) ?? Y(e)?.colDef), "remove-filter", e, "range");
|
|
7827
7828
|
return;
|
|
7828
7829
|
}
|
|
7829
|
-
if (r === "boolean" || !n && t ===
|
|
7830
|
-
Je(
|
|
7830
|
+
if (r === "boolean" || !n && t === bu) {
|
|
7831
|
+
Je(Hs(R.value, e, null, L.value, "boolean", Oe(e) ?? Y(e)?.colDef), "remove-filter", e, "boolean");
|
|
7831
7832
|
return;
|
|
7832
7833
|
}
|
|
7833
|
-
if (r === "exists" || !n && t ===
|
|
7834
|
-
Je(
|
|
7834
|
+
if (r === "exists" || !n && t === xu) {
|
|
7835
|
+
Je(Us(R.value, e, !1, "text", L.value, Oe(e) ?? Y(e)?.colDef), "remove-filter", e, "exists");
|
|
7835
7836
|
return;
|
|
7836
7837
|
}
|
|
7837
7838
|
let i = Y(e);
|
|
7838
7839
|
if (r === "value" && i?.isAggregate) {
|
|
7839
|
-
let e =
|
|
7840
|
+
let e = uc(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? kc({
|
|
7840
7841
|
checked: !1,
|
|
7841
7842
|
option: e,
|
|
7842
7843
|
options: i.knownOptions ?? [],
|
|
@@ -7846,7 +7847,7 @@ var Ci = {
|
|
|
7846
7847
|
return;
|
|
7847
7848
|
}
|
|
7848
7849
|
let a = (z.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
7849
|
-
Ge(Y(e)?.key ?? e, e, a), Je(
|
|
7850
|
+
Ge(Y(e)?.key ?? e, e, a), Je(Gs(R.value, e, a, L.value, Oe(e) ?? Y(e)?.colDef), "remove-filter", e, "value");
|
|
7850
7851
|
}, Ct = () => {
|
|
7851
7852
|
v.value = !0;
|
|
7852
7853
|
};
|
|
@@ -7858,7 +7859,7 @@ var Ci = {
|
|
|
7858
7859
|
"aria-label": e.ariaLabel,
|
|
7859
7860
|
style: x(Be.value)
|
|
7860
7861
|
}, [
|
|
7861
|
-
s("div",
|
|
7862
|
+
s("div", su, [u(cr, {
|
|
7862
7863
|
modelValue: h.value,
|
|
7863
7864
|
options: ze.value,
|
|
7864
7865
|
class: "pv-filter-panel-mode-control",
|
|
@@ -7872,8 +7873,8 @@ var Ci = {
|
|
|
7872
7873
|
variant: "secondary",
|
|
7873
7874
|
onClick: r[0] ||= (e) => p.value = !0
|
|
7874
7875
|
}))]),
|
|
7875
|
-
s("div",
|
|
7876
|
-
!e.readOnly && Ue.value.length ? (E(), o("section",
|
|
7876
|
+
s("div", cu, [U(s("div", lu, [
|
|
7877
|
+
!e.readOnly && Ue.value.length ? (E(), o("section", uu, [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(Ue.value, (e) => (E(), i(jr, {
|
|
7877
7878
|
key: We(e),
|
|
7878
7879
|
icon: e.icon,
|
|
7879
7880
|
"icon-classes": e.iconClasses,
|
|
@@ -7886,7 +7887,7 @@ var Ci = {
|
|
|
7886
7887
|
"onHandleClick"
|
|
7887
7888
|
]))), 128))])])) : a("", !0),
|
|
7888
7889
|
A(n.$slots, "suggestions", {}, void 0, !0),
|
|
7889
|
-
u(
|
|
7890
|
+
u(Kl, {
|
|
7890
7891
|
modelValue: _.value,
|
|
7891
7892
|
"onUpdate:modelValue": r[1] ||= (e) => _.value = e,
|
|
7892
7893
|
"category-order": e.categoryOrder,
|
|
@@ -7896,7 +7897,7 @@ var Ci = {
|
|
|
7896
7897
|
"category-order",
|
|
7897
7898
|
"filters"
|
|
7898
7899
|
]),
|
|
7899
|
-
Fe.value.length ? X.value.length ? (E(), o("div",
|
|
7900
|
+
Fe.value.length ? X.value.length ? (E(), o("div", mu, [(E(!0), o(t, null, k(Le.value, (e) => (E(), i(Nl, {
|
|
7900
7901
|
key: e.key,
|
|
7901
7902
|
filter: e,
|
|
7902
7903
|
onFilterChange: (t) => lt(e.key, t),
|
|
@@ -7911,8 +7912,8 @@ var Ci = {
|
|
|
7911
7912
|
"onLoadMore",
|
|
7912
7913
|
"onOpenChange",
|
|
7913
7914
|
"onSearchChange"
|
|
7914
|
-
]))), 128))])) : (E(), o("div",
|
|
7915
|
-
], 512), [[
|
|
7915
|
+
]))), 128))])) : (E(), o("div", pu, " No filters in this category. ")) : (E(), o("div", fu, " No filters available. "))
|
|
7916
|
+
], 512), [[ie, h.value === "filters"]]), U(u(zl, {
|
|
7916
7917
|
"applied-count": Z.value,
|
|
7917
7918
|
"applied-groups": Ie.value,
|
|
7918
7919
|
"read-only": e.readOnly,
|
|
@@ -7921,14 +7922,14 @@ var Ci = {
|
|
|
7921
7922
|
"applied-count",
|
|
7922
7923
|
"applied-groups",
|
|
7923
7924
|
"read-only"
|
|
7924
|
-
]), [[
|
|
7925
|
-
(Ve.value || e.staged) && !e.readOnly ? (E(), o("div",
|
|
7925
|
+
]), [[ie, h.value === "applied"]])]),
|
|
7926
|
+
(Ve.value || e.staged) && !e.readOnly ? (E(), o("div", hu, [Ve.value ? (E(), i(Q, {
|
|
7926
7927
|
key: 0,
|
|
7927
7928
|
class: "pv-text-brand",
|
|
7928
7929
|
label: e.clearAllLabel,
|
|
7929
7930
|
variant: "ghost",
|
|
7930
7931
|
onClick: Ct
|
|
7931
|
-
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div",
|
|
7932
|
+
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div", gu, [u(Q, {
|
|
7932
7933
|
label: e.cancelLabel,
|
|
7933
7934
|
variant: "ghost",
|
|
7934
7935
|
onClick: ot
|
|
@@ -7937,14 +7938,14 @@ var Ci = {
|
|
|
7937
7938
|
variant: "primary",
|
|
7938
7939
|
onClick: at
|
|
7939
7940
|
}, null, 8, ["label"])])) : a("", !0)])) : a("", !0)
|
|
7940
|
-
], 12,
|
|
7941
|
+
], 12, ou)), u(xr, {
|
|
7941
7942
|
modelValue: v.value,
|
|
7942
7943
|
"onUpdate:modelValue": r[4] ||= (e) => v.value = e,
|
|
7943
7944
|
header: e.clearAllHeader,
|
|
7944
7945
|
style: { "--max-width": "440px" }
|
|
7945
7946
|
}, {
|
|
7946
|
-
body: H(() => [s("p",
|
|
7947
|
-
footer: H(() => [s("div",
|
|
7947
|
+
body: H(() => [s("p", _u, N(e.clearAllBody), 1)]),
|
|
7948
|
+
footer: H(() => [s("div", vu, [u(Q, {
|
|
7948
7949
|
label: e.cancelLabel,
|
|
7949
7950
|
variant: "ghost",
|
|
7950
7951
|
onClick: nt
|
|
@@ -7956,7 +7957,7 @@ var Ci = {
|
|
|
7956
7957
|
_: 1
|
|
7957
7958
|
}, 8, ["modelValue", "header"])], 64));
|
|
7958
7959
|
}
|
|
7959
|
-
}), [["__scopeId", "data-v-
|
|
7960
|
+
}), [["__scopeId", "data-v-492f03e3"]]), Cu = () => {
|
|
7960
7961
|
let e = (e, n) => {
|
|
7961
7962
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
7962
7963
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -7970,13 +7971,13 @@ var Ci = {
|
|
|
7970
7971
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
7971
7972
|
}
|
|
7972
7973
|
};
|
|
7973
|
-
},
|
|
7974
|
+
}, wu = { class: "pv-flex" }, Tu = { class: "pv-text-body-md" }, Eu = ["textContent"], Du = {
|
|
7974
7975
|
key: 0,
|
|
7975
7976
|
class: "pv-text-body-xs"
|
|
7976
|
-
},
|
|
7977
|
+
}, Ou = { key: 0 }, ku = {
|
|
7977
7978
|
class: "pv-text-subdued pv-text-body-xs",
|
|
7978
7979
|
style: { "font-weight": "500" }
|
|
7979
|
-
},
|
|
7980
|
+
}, Au = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
7980
7981
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
7981
7982
|
props: {
|
|
7982
7983
|
id: {},
|
|
@@ -8022,13 +8023,13 @@ var Ci = {
|
|
|
8022
8023
|
bold: !1
|
|
8023
8024
|
}), n;
|
|
8024
8025
|
});
|
|
8025
|
-
return (e, n) => (E(), o("div", null, [s("div",
|
|
8026
|
+
return (e, n) => (E(), o("div", null, [s("div", wu, [u(X, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", Tu, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
8026
8027
|
key: t,
|
|
8027
8028
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
8028
8029
|
textContent: N(e.text)
|
|
8029
|
-
}, null, 12,
|
|
8030
|
+
}, null, 12, Eu))), 128))]), f.value ? (E(), o("p", Du, [c.value ? a("", !0) : (E(), o("span", Ou, "Search in ")), s("span", ku, N(f.value), 1)])) : a("", !0)])])]));
|
|
8030
8031
|
}
|
|
8031
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
8032
|
+
}), [["__scopeId", "data-v-ff951d17"]]), ju = /* @__PURE__ */ d({
|
|
8032
8033
|
__name: "QueryFormatter",
|
|
8033
8034
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
8034
8035
|
modelValue: { required: !0 },
|
|
@@ -8042,7 +8043,7 @@ var Ci = {
|
|
|
8042
8043
|
}),
|
|
8043
8044
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8044
8045
|
setup(e) {
|
|
8045
|
-
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } =
|
|
8046
|
+
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } = Cu(), u = r(() => {
|
|
8046
8047
|
let e = s.value?.queryTerms || [];
|
|
8047
8048
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8048
8049
|
}), 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) => {
|
|
@@ -8074,17 +8075,17 @@ var Ci = {
|
|
|
8074
8075
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
8075
8076
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
8076
8077
|
}
|
|
8077
|
-
}),
|
|
8078
|
+
}), Mu = [
|
|
8078
8079
|
"disabled",
|
|
8079
8080
|
"placeholder",
|
|
8080
8081
|
"data-invalid"
|
|
8081
|
-
],
|
|
8082
|
+
], Nu = {
|
|
8082
8083
|
key: 2,
|
|
8083
8084
|
class: "pv-text-red pv-text-body-xs"
|
|
8084
|
-
},
|
|
8085
|
+
}, Pu = {
|
|
8085
8086
|
key: 1,
|
|
8086
8087
|
class: "pv-text-center"
|
|
8087
|
-
},
|
|
8088
|
+
}, Fu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8088
8089
|
__name: "PvQueryBuilderInput",
|
|
8089
8090
|
props: /* @__PURE__ */ g({
|
|
8090
8091
|
placeholder: { default: "Search" },
|
|
@@ -8132,7 +8133,7 @@ var Ci = {
|
|
|
8132
8133
|
"update:options"
|
|
8133
8134
|
],
|
|
8134
8135
|
setup(e) {
|
|
8135
|
-
let n = e, c = { renderer:
|
|
8136
|
+
let n = e, c = { renderer: Au }, l = R("search-input"), d = I(e, "searchText"), f = I(e, "query"), p = I(e, "options"), { addQueryOption: m, containsQueryOption: h } = Cu(), 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 = () => {
|
|
8136
8137
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
8137
8138
|
};
|
|
8138
8139
|
n.enableCustomOptionsInput && G("Enter", () => {
|
|
@@ -8206,7 +8207,7 @@ var Ci = {
|
|
|
8206
8207
|
"--inset-size": "4px",
|
|
8207
8208
|
"--flex-gap": "4px"
|
|
8208
8209
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
8209
|
-
}, [u(
|
|
8210
|
+
}, [u(ju, {
|
|
8210
8211
|
modelValue: f.value,
|
|
8211
8212
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
8212
8213
|
"wrap-content": b.value,
|
|
@@ -8226,7 +8227,7 @@ var Ci = {
|
|
|
8226
8227
|
"data-invalid": w.value ? "true" : void 0,
|
|
8227
8228
|
onFocus: te,
|
|
8228
8229
|
onBlur: te
|
|
8229
|
-
}, null, 40,
|
|
8230
|
+
}, null, 40, Mu), [[B, d.value]])], 4),
|
|
8230
8231
|
f.value && !e.hideClearButton ? (E(), i(Q, {
|
|
8231
8232
|
key: 1,
|
|
8232
8233
|
variant: "ghost",
|
|
@@ -8234,7 +8235,7 @@ var Ci = {
|
|
|
8234
8235
|
size: "md",
|
|
8235
8236
|
onClick: T
|
|
8236
8237
|
})) : a("", !0),
|
|
8237
|
-
w.value ? (E(), o("p",
|
|
8238
|
+
w.value ? (E(), o("p", Nu, N(C.value), 1)) : a("", !0),
|
|
8238
8239
|
A.value.length > 0 || e.optionsLoading ? (E(), i($n, {
|
|
8239
8240
|
key: 3,
|
|
8240
8241
|
class: y({ "pv-hide": !g.value }),
|
|
@@ -8244,7 +8245,7 @@ var Ci = {
|
|
|
8244
8245
|
},
|
|
8245
8246
|
isList: !0
|
|
8246
8247
|
}, {
|
|
8247
|
-
default: H(() => [e.optionsLoading ? (E(), o("div",
|
|
8248
|
+
default: H(() => [e.optionsLoading ? (E(), o("div", Pu, [u(ke, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(qi, _({
|
|
8248
8249
|
key: `${t}-${e.searchText}`,
|
|
8249
8250
|
ref_for: !0
|
|
8250
8251
|
}, e, {
|
|
@@ -8255,11 +8256,11 @@ var Ci = {
|
|
|
8255
8256
|
}, 8, ["class"])) : a("", !0)
|
|
8256
8257
|
], 32)), [[P(de), ee]]);
|
|
8257
8258
|
}
|
|
8258
|
-
}), [["__scopeId", "data-v-4decbec2"]]),
|
|
8259
|
+
}), [["__scopeId", "data-v-4decbec2"]]), Iu = {
|
|
8259
8260
|
class: "pv-toc",
|
|
8260
8261
|
role: "list",
|
|
8261
8262
|
style: { "min-width": "160px" }
|
|
8262
|
-
},
|
|
8263
|
+
}, Lu = ["aria-current"], Ru = ["href", "onClick"], zu = /* @__PURE__ */ d({
|
|
8263
8264
|
__name: "PvTableOfContents",
|
|
8264
8265
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
8265
8266
|
modelValue: { required: !1 },
|
|
@@ -8270,7 +8271,7 @@ var Ci = {
|
|
|
8270
8271
|
let r = I(e, "modelValue"), c = n, u = (e, t) => {
|
|
8271
8272
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
8272
8273
|
};
|
|
8273
|
-
return (n, c) => (E(), o("ul",
|
|
8274
|
+
return (n, c) => (E(), o("ul", Iu, [(E(!0), o(t, null, k(e.items, (e) => (E(), o("li", {
|
|
8274
8275
|
key: e.id,
|
|
8275
8276
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
8276
8277
|
}, [s("a", {
|
|
@@ -8279,9 +8280,9 @@ var Ci = {
|
|
|
8279
8280
|
}, [e.icon ? (E(), i(X, {
|
|
8280
8281
|
key: 0,
|
|
8281
8282
|
name: e.icon
|
|
8282
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8,
|
|
8283
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8, Ru)], 8, Lu))), 128))]));
|
|
8283
8284
|
}
|
|
8284
|
-
}),
|
|
8285
|
+
}), Bu = { class: "pv-flex" }, Vu = ["data-clickable", "onClick"], Hu = /* @__PURE__ */ d({
|
|
8285
8286
|
__name: "PvStepper",
|
|
8286
8287
|
props: {
|
|
8287
8288
|
count: { default: 5 },
|
|
@@ -8294,14 +8295,14 @@ var Ci = {
|
|
|
8294
8295
|
emits: ["update:active"],
|
|
8295
8296
|
setup(e) {
|
|
8296
8297
|
let n = e;
|
|
8297
|
-
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",
|
|
8298
|
+
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", Bu, [(E(!0), o(t, null, k(e.count, (t, r) => (E(), o("div", {
|
|
8298
8299
|
key: r,
|
|
8299
8300
|
"data-clickable": e.clickable,
|
|
8300
8301
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
8301
8302
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
8302
|
-
}, null, 10,
|
|
8303
|
+
}, null, 10, Vu))), 128))]));
|
|
8303
8304
|
}
|
|
8304
|
-
}),
|
|
8305
|
+
}), Uu = { theme: {
|
|
8305
8306
|
preset: xe,
|
|
8306
8307
|
options: {
|
|
8307
8308
|
darkModeSelector: "none",
|
|
@@ -8310,10 +8311,10 @@ var Ci = {
|
|
|
8310
8311
|
order: "pit-viper-v2, primevue"
|
|
8311
8312
|
}
|
|
8312
8313
|
}
|
|
8313
|
-
} },
|
|
8314
|
-
e.use(be,
|
|
8314
|
+
} }, Wu = (e) => {
|
|
8315
|
+
e.use(be, Uu);
|
|
8315
8316
|
};
|
|
8316
8317
|
//#endregion
|
|
8317
|
-
export { Nr as PvAccordion, yo as PvActionBar, He as PvAiButton, si as PvAvatar, Ia as PvAvatarGroup, Dr as PvBanner, ni as PvBreadcrumbs, Q as PvButton, Ze as PvButtonWithTooltip, ao as PvCard, Ka as PvCheckbox, Ma as PvCompanyLabel, hr as PvCompanyLogo, Or as PvCompanyTag, Le as PvCounterBadge, zr as PvDatePicker, Vr as PvDateTime, ns as PvDistributionBar, Xr as PvDrawer, rr as PvDropdown, ho as PvExpandableContent,
|
|
8318
|
+
export { Nr as PvAccordion, yo as PvActionBar, He as PvAiButton, si as PvAvatar, Ia as PvAvatarGroup, Dr as PvBanner, ni as PvBreadcrumbs, Q as PvButton, Ze as PvButtonWithTooltip, ao as PvCard, Ka as PvCheckbox, Ma as PvCompanyLabel, hr as PvCompanyLogo, Or as PvCompanyTag, Le as PvCounterBadge, zr as PvDatePicker, Vr as PvDateTime, ns as PvDistributionBar, Xr as PvDrawer, rr as PvDropdown, ho as PvExpandableContent, Su as PvFilterPanel, wa as PvGhostInput, Aa as PvHeader, Ul as PvHorizontalScroller, X as PvIcon, to as PvInput, mo as PvInsightCard, Zi as PvMenu, qi as PvMenuItem, xr as PvModal, ia as PvMultiSelectButton, pa as PvPagination, Zn as PvPill, $n as PvPopover, ar as PvPopoverMenu, Wn as PvPopoverV2, es as PvProgressBar, Fu as PvQueryBuilderInput, Xa as PvRadioGroup, al as PvRange, io as PvRating, Jn as PvReleaseBadge, Rr as PvSearchInput, cr as PvSegmentedControl, oa as PvSelectButton, ga as PvSelectableCard, xa as PvSidePanel, Qa as PvSkeleton, ke as PvSpinner, qn as PvSplitButton, Za as PvSprite, Hu as PvStepper, jr as PvSuggestionTag, ji as PvSwitch, fr as PvTabList, zu as PvTableOfContents, $r as PvTabs, Xn as PvTag, So as PvTextArea, _o as PvToast, Ba as PvToggleButton, Wa as PvToggleGroup, Ye as PvTooltip, sr as PvTooltipV2, Xo as PvTree, Zo as PvTreeGroup, oo as PvWidget, nu as createPvFilterStore, ru as providePvFilterStore, Br as useDateTime, iu as useOptionalPvFilterStore, Wu as usePvComponents, au as usePvFilterStore };
|
|
8318
8319
|
|
|
8319
8320
|
//# sourceMappingURL=pv-components-base.mjs.map
|