@turquoisehealth/pit-viper 2.211.4-dev.1 → 2.211.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +4 -0
- package/_site/assets/css/pit-viper-consumer.css +4 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +3 -0
- package/_site/assets/css/pit-viper-v2.css +5 -0
- package/_site/assets/css/pit-viper.css +4 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-accordion-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-horizontal-scroller-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-range-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvHeader/PvHeader.vue.d.ts +6 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs +578 -569
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvHeader/PvHeader.vue.d.ts +6 -2
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +1 -22
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +0 -6
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1943 -1966
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +3 -3
- package/pv-components/dist/web/components/pv-button/pv-button.js +2 -2
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -2
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +2 -2
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +3 -3
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +3 -3
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +3 -3
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +2 -2
- package/pv-components/dist/web/components/pv-header/pv-header.js +580 -505
- package/pv-components/dist/web/components/pv-horizontal-scroller/pv-horizontal-scroller.js +2 -2
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +3 -3
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +3 -3
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +3 -3
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +3 -3
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +3 -3
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +3 -3
- package/pv-components/dist/web/components/pv-range/pv-range.js +2 -2
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +3 -3
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +3 -3
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +2 -2
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +3 -3
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +2 -2
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +2 -2
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +2 -2
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +3 -3
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}.pv-floating-native[data-v-08e2d92a]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-08e2d92a]>.pv-popover,.pv-floating-native>slot[name=content][data-v-08e2d92a]::slotted(.pv-popover){position:static!important}.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-246a9400]{font-size:14px}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-menu-popover[data-v-04937b69]{z-index:50}.pv-popover-list>li[data-v-04937b69]:last-child>.pv-label{margin-block-end:0}[data-v-04937b69] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-06cc192f]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-06cc192f]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-drop-zone[data-v-ecab1929]{min-height:0}.tree-item-continued[data-v-ecab1929]{position:relative}.tree-item-continued[data-v-ecab1929]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.tree-item-continued .tree-component-nested-middle-symbol[data-v-ecab1929]:before{display:none}.tree-component-end-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-end-symbol[data-v-ecab1929]:before,.tree-component-end-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute}.tree-component-end-symbol[data-v-ecab1929]:before{width:1px;height:14px;top:-6px;left:8px;transform:translate(-50%)}.tree-component-end-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:8px;left:8px}.tree-component-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-middle-symbol[data-v-ecab1929]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:28px;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-nested-middle-symbol[data-v-ecab1929]:before,.tree-component-nested-middle-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute;left:50%}.tree-component-nested-middle-symbol[data-v-ecab1929]:before{width:1px;height:28px;top:-4px;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:50%;transform:translateY(-50%)}.pv-tree-drop-zone[data-v-8e33078d],.pv-tree-drop-zone[data-v-7589558e]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-9a452be9]{background-image:none;padding-right:2px}[data-v-9a452be9] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-9a452be9]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-bc38ed4b]{min-height:0;max-height:100dvh;overflow:hidden}.pv-filter-panel-actions[data-v-bc38ed4b],.pv-filter-panel-header[data-v-bc38ed4b],.pv-filter-panel-suggestion-tags[data-v-bc38ed4b]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-bc38ed4b],.pv-filter-panel-filters-view[data-v-bc38ed4b]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-bc38ed4b]{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-bc38ed4b]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-bc38ed4b]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-bc38ed4b]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-bc38ed4b]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-bc38ed4b],.pv-filter-panel-footer[data-v-bc38ed4b],.pv-filter-panel-suggestions[data-v-bc38ed4b]{padding:12px}.pv-filter-panel-filter-list[data-v-bc38ed4b]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-bc38ed4b]{--flex-justify:space-between;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-bc38ed4b]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-bc38ed4b]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-bc38ed4b]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-bc38ed4b]{margin:0}.pv-filter-panel-suggestions[data-v-bc38ed4b]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-bc38ed4b]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-79f344ac]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-79f344ac]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-79f344ac]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-79f344ac]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-37925d70]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-L,8px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-37925d70]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-37925d70]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-37925d70]:focus-within{border:2px solid #36c5ba}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-floating-native[data-v-08e2d92a]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-08e2d92a]>.pv-popover,.pv-floating-native>slot[name=content][data-v-08e2d92a]::slotted(.pv-popover){position:static!important}.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-246a9400]{font-size:14px}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-menu-popover[data-v-04937b69]{z-index:50}.pv-popover-list>li[data-v-04937b69]:last-child>.pv-label{margin-block-end:0}[data-v-04937b69] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-06cc192f]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-06cc192f]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-drop-zone[data-v-ecab1929]{min-height:0}.tree-item-continued[data-v-ecab1929]{position:relative}.tree-item-continued[data-v-ecab1929]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.tree-item-continued .tree-component-nested-middle-symbol[data-v-ecab1929]:before{display:none}.tree-component-end-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-end-symbol[data-v-ecab1929]:before,.tree-component-end-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute}.tree-component-end-symbol[data-v-ecab1929]:before{width:1px;height:14px;top:-6px;left:8px;transform:translate(-50%)}.tree-component-end-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:8px;left:8px}.tree-component-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-middle-symbol[data-v-ecab1929]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:28px;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-nested-middle-symbol[data-v-ecab1929]:before,.tree-component-nested-middle-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute;left:50%}.tree-component-nested-middle-symbol[data-v-ecab1929]:before{width:1px;height:28px;top:-4px;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:50%;transform:translateY(-50%)}.pv-tree-drop-zone[data-v-8e33078d],.pv-tree-drop-zone[data-v-7589558e]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-9a452be9]{background-image:none;padding-right:2px}[data-v-9a452be9] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-9a452be9]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-bc38ed4b]{min-height:0;max-height:100dvh;overflow:hidden}.pv-filter-panel-actions[data-v-bc38ed4b],.pv-filter-panel-header[data-v-bc38ed4b],.pv-filter-panel-suggestion-tags[data-v-bc38ed4b]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-bc38ed4b],.pv-filter-panel-filters-view[data-v-bc38ed4b]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-bc38ed4b]{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-bc38ed4b]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-bc38ed4b]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-bc38ed4b]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-bc38ed4b]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-bc38ed4b],.pv-filter-panel-footer[data-v-bc38ed4b],.pv-filter-panel-suggestions[data-v-bc38ed4b]{padding:12px}.pv-filter-panel-filter-list[data-v-bc38ed4b]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-bc38ed4b]{--flex-justify:space-between;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-bc38ed4b]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-bc38ed4b]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-bc38ed4b]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-bc38ed4b]{margin:0}.pv-filter-panel-suggestions[data-v-bc38ed4b]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-bc38ed4b]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-79f344ac]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-79f344ac]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-79f344ac]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-79f344ac]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-37925d70]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-L,8px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-37925d70]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-37925d70]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-37925d70]: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
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, onBeforeUpdate as C, onMounted as w, onUnmounted as T, onUpdated as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as ee, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, unref as F, useAttrs as I, useId as L, useModel as R, useSlots as z, useTemplateRef as te, vModelCheckbox as B, vModelDynamic as V, vModelRadio as ne, vModelText as H, vShow as U, watch as W, watchEffect as re, withCtx as G, withDirectives as K, withKeys as ie, withModifiers as q } from "vue";
|
|
4
4
|
import { onClickOutside as ae, onKeyStroke as J, useDebounceFn as oe, useElementBounding as se, useElementHover as ce, useToggle as le, watchDebounced as ue } from "@vueuse/core";
|
|
@@ -114,7 +114,7 @@ var Pe = {
|
|
|
114
114
|
"pv-surface-brand-inverse pv-text-inverse": t.variant == "primary",
|
|
115
115
|
"pv-badge-secondary": t.variant == "secondary",
|
|
116
116
|
"pv-surface-lighten-5": t.variant == "tertiary",
|
|
117
|
-
"pv-text-
|
|
117
|
+
"pv-text-tertiary": t.variant == "ghost" || t.variant == "tertiary",
|
|
118
118
|
"pv-surface": t.variant == "ghost"
|
|
119
119
|
}));
|
|
120
120
|
return (e, t) => (D(), o("div", {
|
|
@@ -126,7 +126,7 @@ var Pe = {
|
|
|
126
126
|
let n = e.__vccOpts || e;
|
|
127
127
|
for (let [e, r] of t) n[e] = r;
|
|
128
128
|
return n;
|
|
129
|
-
}, Re = /* @__PURE__ */ Z(Le, [["__scopeId", "data-v-
|
|
129
|
+
}, Re = /* @__PURE__ */ Z(Le, [["__scopeId", "data-v-013a5d76"]]), ze = ["disabled", "aria-label"], Be = {
|
|
130
130
|
key: 2,
|
|
131
131
|
"data-testid": "pv-button-label"
|
|
132
132
|
}, Q = /* @__PURE__ */ d({
|
|
@@ -4495,11 +4495,7 @@ var Li = {
|
|
|
4495
4495
|
}), qa = {
|
|
4496
4496
|
key: 0,
|
|
4497
4497
|
class: "pv-heading-2"
|
|
4498
|
-
}, Ja = ["id"], Ya = { class: "pv-flex" }, Xa = ["id"], Za = {
|
|
4499
|
-
key: 0,
|
|
4500
|
-
class: "pv-border-left",
|
|
4501
|
-
style: { "padding-inline-start": "0.5rem" }
|
|
4502
|
-
}, Qa = /* @__PURE__ */ d({
|
|
4498
|
+
}, Ja = ["id"], Ya = { class: "pv-flex" }, Xa = ["id"], Za = /* @__PURE__ */ d({
|
|
4503
4499
|
__name: "PvHeader",
|
|
4504
4500
|
props: {
|
|
4505
4501
|
title: {},
|
|
@@ -4513,24 +4509,37 @@ var Li = {
|
|
|
4513
4509
|
}
|
|
4514
4510
|
},
|
|
4515
4511
|
setup(e) {
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4512
|
+
let t = te("rootRef"), { present: n } = Hn("right", { host: r(() => {
|
|
4513
|
+
let e = t.value?.getRootNode();
|
|
4514
|
+
return e instanceof ShadowRoot ? e.host : null;
|
|
4515
|
+
}) });
|
|
4516
|
+
return (r, i) => (D(), o("div", {
|
|
4517
|
+
ref_key: "rootRef",
|
|
4518
|
+
ref: t,
|
|
4519
|
+
class: y(["pv-inset-square pv-flex pv-space-between pv-surface pv-border-bottom", { "pv-sticky": e.sticky }]),
|
|
4520
|
+
style: {
|
|
4521
|
+
"--inset-size": "0.75rem 1rem",
|
|
4522
|
+
"background-color": "#fdfdfc"
|
|
4523
|
+
}
|
|
4519
4524
|
}, [e.title ? (D(), o("span", qa, P(e.title), 1)) : (D(), o("div", {
|
|
4520
4525
|
key: 1,
|
|
4521
4526
|
id: e.headerTitleId,
|
|
4522
4527
|
class: "pv-flex"
|
|
4523
|
-
}, [j(
|
|
4528
|
+
}, [j(r.$slots, "left")], 8, Ja)), s("div", Ya, [s("div", {
|
|
4524
4529
|
id: e.headerActionsId,
|
|
4525
4530
|
class: "pv-flex"
|
|
4526
|
-
}, [j(
|
|
4531
|
+
}, [j(r.$slots, "right")], 8, Xa), e.showAskTqButton ? (D(), o("div", {
|
|
4532
|
+
key: 0,
|
|
4533
|
+
class: y({ "pv-border-left": F(n) }),
|
|
4534
|
+
style: { "padding-inline-start": "0.5rem" }
|
|
4535
|
+
}, [u(Qn, {
|
|
4527
4536
|
id: e.askTqButtonId,
|
|
4528
4537
|
label: "AskTQ",
|
|
4529
4538
|
size: "xl",
|
|
4530
4539
|
"hide-icon": ""
|
|
4531
|
-
}, null, 8, ["id"])])) : a("", !0)])], 2));
|
|
4540
|
+
}, null, 8, ["id"])], 2)) : a("", !0)])], 2));
|
|
4532
4541
|
}
|
|
4533
|
-
}),
|
|
4542
|
+
}), Qa = { class: "pv-flex" }, $a = /* @__PURE__ */ d({
|
|
4534
4543
|
__name: "PvCompanyLabel",
|
|
4535
4544
|
props: {
|
|
4536
4545
|
size: { default: "md" },
|
|
@@ -4543,12 +4552,12 @@ var Li = {
|
|
|
4543
4552
|
sm: "pv-text-body-md",
|
|
4544
4553
|
md: "pv-text-body-md"
|
|
4545
4554
|
};
|
|
4546
|
-
return (n, r) => (D(), o("div",
|
|
4555
|
+
return (n, r) => (D(), o("div", Qa, [u(Tr, {
|
|
4547
4556
|
name: e.logo ? e.logo : e.label,
|
|
4548
4557
|
size: e.size
|
|
4549
4558
|
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) }, P(e.label), 3)]));
|
|
4550
4559
|
}
|
|
4551
|
-
}),
|
|
4560
|
+
}), eo = ["data-more"], to = ["src", "alt"], no = /* @__PURE__ */ d({
|
|
4552
4561
|
__name: "PvAvatarGroup",
|
|
4553
4562
|
props: {
|
|
4554
4563
|
items: {},
|
|
@@ -4577,18 +4586,18 @@ var Li = {
|
|
|
4577
4586
|
key: 1,
|
|
4578
4587
|
src: e.image,
|
|
4579
4588
|
alt: e.alt ?? ""
|
|
4580
|
-
}, null, 8,
|
|
4589
|
+
}, null, 8, to)) : (D(), o("div", {
|
|
4581
4590
|
key: 2,
|
|
4582
4591
|
class: y(c.value)
|
|
4583
|
-
}, null, 2))]))), 128))], 10,
|
|
4592
|
+
}, null, 2))]))), 128))], 10, eo));
|
|
4584
4593
|
}
|
|
4585
|
-
}),
|
|
4594
|
+
}), ro = ["for"], io = [
|
|
4586
4595
|
"id",
|
|
4587
4596
|
"type",
|
|
4588
4597
|
"value",
|
|
4589
4598
|
"name",
|
|
4590
4599
|
"disabled"
|
|
4591
|
-
],
|
|
4600
|
+
], ao = { key: 1 }, oo = /* @__PURE__ */ d({
|
|
4592
4601
|
__name: "PvToggleButton",
|
|
4593
4602
|
props: /* @__PURE__ */ g({
|
|
4594
4603
|
size: { default: "xl" },
|
|
@@ -4638,12 +4647,12 @@ var Li = {
|
|
|
4638
4647
|
value: e.value,
|
|
4639
4648
|
name: e.name,
|
|
4640
4649
|
disabled: e.disabled
|
|
4641
|
-
}, null, 8,
|
|
4650
|
+
}, null, 8, io), [[V, n.value]]),
|
|
4642
4651
|
e.leftIcon ? (D(), i(X, {
|
|
4643
4652
|
key: 0,
|
|
4644
4653
|
name: e.leftIcon
|
|
4645
4654
|
}, null, 8, ["name"])) : a("", !0),
|
|
4646
|
-
e.label ? (D(), o("span",
|
|
4655
|
+
e.label ? (D(), o("span", ao, P(e.label), 1)) : a("", !0),
|
|
4647
4656
|
e.rightIcon ? (D(), i(X, {
|
|
4648
4657
|
key: 2,
|
|
4649
4658
|
name: e.rightIcon
|
|
@@ -4653,15 +4662,15 @@ var Li = {
|
|
|
4653
4662
|
value: e.rightCounterBadge,
|
|
4654
4663
|
variant: u.value
|
|
4655
4664
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
4656
|
-
], 10,
|
|
4665
|
+
], 10, ro));
|
|
4657
4666
|
}
|
|
4658
|
-
}),
|
|
4667
|
+
}), so = { class: "pv-flex" }, co = [
|
|
4659
4668
|
"name",
|
|
4660
4669
|
"value",
|
|
4661
4670
|
"checked",
|
|
4662
4671
|
"disabled",
|
|
4663
4672
|
"onChange"
|
|
4664
|
-
],
|
|
4673
|
+
], lo = { key: 1 }, uo = /* @__PURE__ */ d({
|
|
4665
4674
|
__name: "PvToggleGroup",
|
|
4666
4675
|
props: /* @__PURE__ */ g({
|
|
4667
4676
|
disabled: { type: Boolean },
|
|
@@ -4683,7 +4692,7 @@ var Li = {
|
|
|
4683
4692
|
r.value = e;
|
|
4684
4693
|
}
|
|
4685
4694
|
};
|
|
4686
|
-
return (n, u) => (D(), o("div",
|
|
4695
|
+
return (n, u) => (D(), o("div", so, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(qn, {
|
|
4687
4696
|
key: t.value,
|
|
4688
4697
|
description: e.hideLabels ? t.label : ""
|
|
4689
4698
|
}, {
|
|
@@ -4696,21 +4705,21 @@ var Li = {
|
|
|
4696
4705
|
class: "pv-radio",
|
|
4697
4706
|
disabled: e.disabled || t.disabled,
|
|
4698
4707
|
onChange: (e) => l(t)
|
|
4699
|
-
}, null, 40,
|
|
4708
|
+
}, null, 40, co),
|
|
4700
4709
|
t.icon ? (D(), i(X, {
|
|
4701
4710
|
key: 0,
|
|
4702
4711
|
name: t.icon
|
|
4703
4712
|
}, null, 8, ["name"])) : a("", !0),
|
|
4704
|
-
e.hideLabels ? a("", !0) : (D(), o("span",
|
|
4713
|
+
e.hideLabels ? a("", !0) : (D(), o("span", lo, P(t.label), 1))
|
|
4705
4714
|
], 2)]),
|
|
4706
4715
|
_: 2
|
|
4707
4716
|
}, 1032, ["description"]))), 128))]));
|
|
4708
4717
|
}
|
|
4709
|
-
}),
|
|
4718
|
+
}), fo = [
|
|
4710
4719
|
"aria-label",
|
|
4711
4720
|
"disabled",
|
|
4712
4721
|
"indeterminate"
|
|
4713
|
-
],
|
|
4722
|
+
], po = /* @__PURE__ */ d({
|
|
4714
4723
|
__name: "PvCheckbox",
|
|
4715
4724
|
props: /* @__PURE__ */ g({
|
|
4716
4725
|
ariaLabel: {},
|
|
@@ -4731,13 +4740,13 @@ var Li = {
|
|
|
4731
4740
|
"aria-label": e.ariaLabel,
|
|
4732
4741
|
disabled: e.disabled,
|
|
4733
4742
|
indeterminate: e.indeterminate
|
|
4734
|
-
}, null, 8,
|
|
4743
|
+
}, null, 8, fo)), [[B, t.value]]);
|
|
4735
4744
|
}
|
|
4736
|
-
}),
|
|
4745
|
+
}), mo = ["aria-label", "aria-labelledby"], ho = ["id"], go = [
|
|
4737
4746
|
"name",
|
|
4738
4747
|
"value",
|
|
4739
4748
|
"disabled"
|
|
4740
|
-
],
|
|
4749
|
+
], _o = /* @__PURE__ */ d({
|
|
4741
4750
|
__name: "PvRadioGroup",
|
|
4742
4751
|
props: /* @__PURE__ */ g({
|
|
4743
4752
|
ariaLabel: {},
|
|
@@ -4768,7 +4777,7 @@ var Li = {
|
|
|
4768
4777
|
key: 0,
|
|
4769
4778
|
id: F(u),
|
|
4770
4779
|
class: "pv-label pv-stack-8"
|
|
4771
|
-
}, P(e.label), 9,
|
|
4780
|
+
}, P(e.label), 9, ho)) : a("", !0), s("div", {
|
|
4772
4781
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
4773
4782
|
style: x(f.value)
|
|
4774
4783
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -4781,9 +4790,9 @@ var Li = {
|
|
|
4781
4790
|
name: d.value,
|
|
4782
4791
|
value: t.value,
|
|
4783
4792
|
disabled: e.disabled || t.disabled
|
|
4784
|
-
}, null, 8,
|
|
4793
|
+
}, null, 8, go), [[ne, i.value]]), l(" " + P(t.label), 1)]))), 128))], 6)], 8, mo));
|
|
4785
4794
|
}
|
|
4786
|
-
}),
|
|
4795
|
+
}), vo = /* @__PURE__ */ d({
|
|
4787
4796
|
__name: "PvSprite",
|
|
4788
4797
|
props: {
|
|
4789
4798
|
src: {},
|
|
@@ -4804,7 +4813,7 @@ var Li = {
|
|
|
4804
4813
|
id: "pv-sprite-content"
|
|
4805
4814
|
}, null, -1)]));
|
|
4806
4815
|
}
|
|
4807
|
-
}),
|
|
4816
|
+
}), yo = /* @__PURE__ */ d({
|
|
4808
4817
|
__name: "PvSkeleton",
|
|
4809
4818
|
props: {
|
|
4810
4819
|
size: { default: "md" },
|
|
@@ -4831,18 +4840,18 @@ var Li = {
|
|
|
4831
4840
|
"width"
|
|
4832
4841
|
]));
|
|
4833
4842
|
}
|
|
4834
|
-
}),
|
|
4843
|
+
}), bo = ["for"], xo = {
|
|
4835
4844
|
key: 0,
|
|
4836
4845
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
4837
4846
|
style: { "--inset-size": "6px 10px" }
|
|
4838
|
-
},
|
|
4847
|
+
}, So = { class: "pv-relative pv-flex-item" }, Co = [
|
|
4839
4848
|
"disabled",
|
|
4840
4849
|
"type",
|
|
4841
4850
|
"placeholder",
|
|
4842
4851
|
"id",
|
|
4843
4852
|
"data-invalid",
|
|
4844
4853
|
"step"
|
|
4845
|
-
],
|
|
4854
|
+
], wo = /* @__PURE__ */ d({
|
|
4846
4855
|
__name: "PvInput",
|
|
4847
4856
|
props: /* @__PURE__ */ g({
|
|
4848
4857
|
showLabel: { type: Boolean },
|
|
@@ -4869,8 +4878,8 @@ var Li = {
|
|
|
4869
4878
|
"data-testid": "pv-input-label",
|
|
4870
4879
|
class: "pv-label pv-stack-8",
|
|
4871
4880
|
for: e.id
|
|
4872
|
-
}, [j(n.$slots, "label")], 8,
|
|
4873
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div",
|
|
4881
|
+
}, [j(n.$slots, "label")], 8, bo)) : a("", !0),
|
|
4882
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", xo, P(e.prefixLabel), 1)) : a("", !0), s("div", So, [e.inputIcon ? (D(), i(X, {
|
|
4874
4883
|
key: 0,
|
|
4875
4884
|
class: "pv-absolute input-icon-position",
|
|
4876
4885
|
name: e.inputIcon
|
|
@@ -4888,7 +4897,7 @@ var Li = {
|
|
|
4888
4897
|
id: e.id,
|
|
4889
4898
|
"data-invalid": e.error ? !0 : void 0,
|
|
4890
4899
|
step: e.step
|
|
4891
|
-
}), null, 16,
|
|
4900
|
+
}), null, 16, Co), [[V, c.value]])])], 2),
|
|
4892
4901
|
e.lowerLabel ? (D(), o("p", {
|
|
4893
4902
|
key: 1,
|
|
4894
4903
|
"data-testid": "pv-input-lower-label",
|
|
@@ -4900,7 +4909,7 @@ var Li = {
|
|
|
4900
4909
|
}, P(e.lowerLabel), 3)) : a("", !0)
|
|
4901
4910
|
], 64));
|
|
4902
4911
|
}
|
|
4903
|
-
}),
|
|
4912
|
+
}), To = ["data-rating"], Eo = ["value"], Do = /* @__PURE__ */ d({
|
|
4904
4913
|
__name: "PvRating",
|
|
4905
4914
|
props: {
|
|
4906
4915
|
variant: { default: "dot" },
|
|
@@ -4919,9 +4928,9 @@ var Li = {
|
|
|
4919
4928
|
min: "0",
|
|
4920
4929
|
max: "5",
|
|
4921
4930
|
value: e.value
|
|
4922
|
-
}, "4.0 stars", 8,
|
|
4931
|
+
}, "4.0 stars", 8, Eo)], 12, To));
|
|
4923
4932
|
}
|
|
4924
|
-
}),
|
|
4933
|
+
}), Oo = /* @__PURE__ */ d({
|
|
4925
4934
|
__name: "PvCard",
|
|
4926
4935
|
props: {
|
|
4927
4936
|
href: {},
|
|
@@ -4947,34 +4956,34 @@ var Li = {
|
|
|
4947
4956
|
"class"
|
|
4948
4957
|
]));
|
|
4949
4958
|
}
|
|
4950
|
-
}),
|
|
4959
|
+
}), ko = /* @__PURE__ */ d({
|
|
4951
4960
|
__name: "PvWidget",
|
|
4952
4961
|
setup(e) {
|
|
4953
|
-
return (e, t) => (D(), i(
|
|
4962
|
+
return (e, t) => (D(), i(Oo, { class: "pv-inset-square-16" }, {
|
|
4954
4963
|
default: G(() => [j(e.$slots, "default")]),
|
|
4955
4964
|
_: 3
|
|
4956
4965
|
}));
|
|
4957
4966
|
}
|
|
4958
|
-
}),
|
|
4967
|
+
}), Ao = {
|
|
4959
4968
|
class: "pv-flex-vertical",
|
|
4960
4969
|
style: {
|
|
4961
4970
|
"--flex-align": "flex-start",
|
|
4962
4971
|
"--flex-gap": "0.25rem"
|
|
4963
4972
|
}
|
|
4964
|
-
},
|
|
4973
|
+
}, jo = {
|
|
4965
4974
|
key: 0,
|
|
4966
4975
|
class: "pv-flex",
|
|
4967
4976
|
style: { "--flex-gap": "0.25rem" }
|
|
4968
|
-
},
|
|
4977
|
+
}, Mo = { class: "pv-text-body-sm" }, No = {
|
|
4969
4978
|
key: 1,
|
|
4970
4979
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
4971
|
-
},
|
|
4980
|
+
}, Po = {
|
|
4972
4981
|
key: 2,
|
|
4973
4982
|
class: "pv-heading-2"
|
|
4974
|
-
},
|
|
4983
|
+
}, Fo = {
|
|
4975
4984
|
key: 3,
|
|
4976
4985
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
4977
|
-
},
|
|
4986
|
+
}, Io = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4978
4987
|
__name: "PvInsightCard",
|
|
4979
4988
|
props: {
|
|
4980
4989
|
icon: { default: "ai" },
|
|
@@ -4994,22 +5003,22 @@ var Li = {
|
|
|
4994
5003
|
emits: ["click", "icon-click"],
|
|
4995
5004
|
setup(e) {
|
|
4996
5005
|
let t = e, n = r(() => t.icon || t.insight);
|
|
4997
|
-
return (t, r) => (D(), i(
|
|
5006
|
+
return (t, r) => (D(), i(Oo, {
|
|
4998
5007
|
variant: "secondary",
|
|
4999
5008
|
interactive: e.interactive,
|
|
5000
5009
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
5001
5010
|
class: "pv-relative"
|
|
5002
5011
|
}, {
|
|
5003
|
-
default: G(() => [s("div",
|
|
5004
|
-
n.value ? (D(), o("div",
|
|
5012
|
+
default: G(() => [s("div", Ao, [
|
|
5013
|
+
n.value ? (D(), o("div", jo, [e.icon ? (D(), i(X, {
|
|
5005
5014
|
key: 0,
|
|
5006
5015
|
style: { color: "#218c88" },
|
|
5007
5016
|
name: e.icon,
|
|
5008
5017
|
size: 12
|
|
5009
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
5010
|
-
e.upperLabel ? (D(), o("span",
|
|
5011
|
-
e.title ? (D(), o("span",
|
|
5012
|
-
e.description ? (D(), o("span",
|
|
5018
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Mo, P(e.insight), 1)])) : a("", !0),
|
|
5019
|
+
e.upperLabel ? (D(), o("span", No, P(e.upperLabel), 1)) : a("", !0),
|
|
5020
|
+
e.title ? (D(), o("span", Po, P(e.title), 1)) : a("", !0),
|
|
5021
|
+
e.description ? (D(), o("span", Fo, P(e.description), 1)) : a("", !0)
|
|
5013
5022
|
]), e.showButton ? (D(), i(Q, {
|
|
5014
5023
|
key: 0,
|
|
5015
5024
|
"left-icon": "new-tab",
|
|
@@ -5022,7 +5031,7 @@ var Li = {
|
|
|
5022
5031
|
_: 1
|
|
5023
5032
|
}, 8, ["interactive"]));
|
|
5024
5033
|
}
|
|
5025
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
5034
|
+
}), [["__scopeId", "data-v-c1185c07"]]), Lo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5026
5035
|
__name: "PvExpandableContent",
|
|
5027
5036
|
props: {
|
|
5028
5037
|
lines: { default: 4 },
|
|
@@ -5060,7 +5069,7 @@ var Li = {
|
|
|
5060
5069
|
"left-icon": i.value ? "chevron-up" : "chevron-down"
|
|
5061
5070
|
}, null, 8, ["label", "left-icon"])], 6));
|
|
5062
5071
|
}
|
|
5063
|
-
}), [["__scopeId", "data-v-06cc192f"]]),
|
|
5072
|
+
}), [["__scopeId", "data-v-06cc192f"]]), Ro = { class: "pv-text-body-md" }, zo = /* @__PURE__ */ d({
|
|
5064
5073
|
__name: "PvToast",
|
|
5065
5074
|
props: {
|
|
5066
5075
|
variant: { default: "info" },
|
|
@@ -5085,7 +5094,7 @@ var Li = {
|
|
|
5085
5094
|
name: e.icon ? e.icon : n[e.variant],
|
|
5086
5095
|
size: 20
|
|
5087
5096
|
}, null, 8, ["name"]),
|
|
5088
|
-
s("p",
|
|
5097
|
+
s("p", Ro, P(e.label), 1),
|
|
5089
5098
|
j(r.$slots, "default"),
|
|
5090
5099
|
u(Q, {
|
|
5091
5100
|
variant: "ghost",
|
|
@@ -5097,25 +5106,25 @@ var Li = {
|
|
|
5097
5106
|
}, null, 8, ["inverse"])
|
|
5098
5107
|
], 2));
|
|
5099
5108
|
}
|
|
5100
|
-
}),
|
|
5109
|
+
}), Bo = ["data-style"], Vo = /* @__PURE__ */ d({
|
|
5101
5110
|
__name: "PvActionBar",
|
|
5102
5111
|
props: { variant: { default: "white" } },
|
|
5103
5112
|
setup(e) {
|
|
5104
5113
|
return (t, n) => (D(), o("div", {
|
|
5105
5114
|
class: "pv-action-bar-container",
|
|
5106
5115
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
5107
|
-
}, [j(t.$slots, "default")], 8,
|
|
5116
|
+
}, [j(t.$slots, "default")], 8, Bo));
|
|
5108
5117
|
}
|
|
5109
|
-
}),
|
|
5118
|
+
}), Ho = {
|
|
5110
5119
|
class: "pv-flex-vertical",
|
|
5111
5120
|
style: { "--flex-align": "flex-start" }
|
|
5112
|
-
},
|
|
5121
|
+
}, Uo = ["for"], Wo = [
|
|
5113
5122
|
"rows",
|
|
5114
5123
|
"disabled",
|
|
5115
5124
|
"placeholder",
|
|
5116
5125
|
"id",
|
|
5117
5126
|
"data-invalid"
|
|
5118
|
-
],
|
|
5127
|
+
], Go = /* @__PURE__ */ d({
|
|
5119
5128
|
__name: "PvTextArea",
|
|
5120
5129
|
props: /* @__PURE__ */ g({
|
|
5121
5130
|
error: { type: Boolean },
|
|
@@ -5132,12 +5141,12 @@ var Li = {
|
|
|
5132
5141
|
emits: ["update:modelValue"],
|
|
5133
5142
|
setup(e) {
|
|
5134
5143
|
let t = R(e, "modelValue");
|
|
5135
|
-
return (n, r) => (D(), o("div",
|
|
5144
|
+
return (n, r) => (D(), o("div", Ho, [
|
|
5136
5145
|
n.$slots.label ? (D(), o("label", {
|
|
5137
5146
|
key: 0,
|
|
5138
5147
|
class: "pv-label",
|
|
5139
5148
|
for: e.id
|
|
5140
|
-
}, [j(n.$slots, "label")], 8,
|
|
5149
|
+
}, [j(n.$slots, "label")], 8, Uo)) : a("", !0),
|
|
5141
5150
|
K(s("textarea", _(n.$attrs, {
|
|
5142
5151
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
5143
5152
|
class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
|
|
@@ -5146,7 +5155,7 @@ var Li = {
|
|
|
5146
5155
|
placeholder: e.placeholder,
|
|
5147
5156
|
id: e.id,
|
|
5148
5157
|
"data-invalid": e.error ? !0 : void 0
|
|
5149
|
-
}), null, 16,
|
|
5158
|
+
}), null, 16, Wo), [[H, t.value]]),
|
|
5150
5159
|
e.lowerLabel ? (D(), o("p", {
|
|
5151
5160
|
key: 1,
|
|
5152
5161
|
style: { "margin-left": "12px" },
|
|
@@ -5157,20 +5166,20 @@ var Li = {
|
|
|
5157
5166
|
}, P(e.lowerLabel), 3)) : a("", !0)
|
|
5158
5167
|
]));
|
|
5159
5168
|
}
|
|
5160
|
-
}),
|
|
5169
|
+
}), Ko = {
|
|
5161
5170
|
class: "pv-flex pv-truncate",
|
|
5162
5171
|
style: {
|
|
5163
5172
|
"min-width": "0",
|
|
5164
5173
|
"min-height": "20px"
|
|
5165
5174
|
}
|
|
5166
|
-
},
|
|
5175
|
+
}, qo = ["title"], Jo = /* @__PURE__ */ d({
|
|
5167
5176
|
__name: "PvSimpleItemTree",
|
|
5168
5177
|
props: {
|
|
5169
5178
|
label: {},
|
|
5170
5179
|
icon: {}
|
|
5171
5180
|
},
|
|
5172
5181
|
setup(e) {
|
|
5173
|
-
return (t, n) => (D(), o("div",
|
|
5182
|
+
return (t, n) => (D(), o("div", Ko, [e.icon ? (D(), i(X, {
|
|
5174
5183
|
key: 0,
|
|
5175
5184
|
name: e.icon
|
|
5176
5185
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -5180,9 +5189,9 @@ var Li = {
|
|
|
5180
5189
|
"min-width": "0"
|
|
5181
5190
|
},
|
|
5182
5191
|
title: e.label
|
|
5183
|
-
}, P(e.label), 9,
|
|
5192
|
+
}, P(e.label), 9, qo)]));
|
|
5184
5193
|
}
|
|
5185
|
-
}),
|
|
5194
|
+
}), Yo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5186
5195
|
__name: "PvTreeReorderIcon",
|
|
5187
5196
|
setup(e) {
|
|
5188
5197
|
return (e, t) => (D(), i(X, {
|
|
@@ -5190,7 +5199,7 @@ var Li = {
|
|
|
5190
5199
|
class: "reorder-icon pv-text-tertiary"
|
|
5191
5200
|
}));
|
|
5192
5201
|
}
|
|
5193
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
5202
|
+
}), [["__scopeId", "data-v-1efb9068"]]), Xo = /* @__PURE__ */ d({
|
|
5194
5203
|
__name: "PvButtonTreeItem",
|
|
5195
5204
|
props: {
|
|
5196
5205
|
selected: { type: Boolean },
|
|
@@ -5225,7 +5234,7 @@ var Li = {
|
|
|
5225
5234
|
_: 3
|
|
5226
5235
|
}, 8, ["class"]));
|
|
5227
5236
|
}
|
|
5228
|
-
}),
|
|
5237
|
+
}), Zo = /* @__PURE__ */ d({
|
|
5229
5238
|
__name: "PvCheckboxTreeItem",
|
|
5230
5239
|
props: {
|
|
5231
5240
|
selected: { type: Boolean },
|
|
@@ -5254,13 +5263,13 @@ var Li = {
|
|
|
5254
5263
|
"pv-tree-item-selected": e.selected,
|
|
5255
5264
|
"pv-tree-item-disabled": e.disableSelection
|
|
5256
5265
|
}
|
|
5257
|
-
]) }, [e.disableSelection ? a("", !0) : (D(), i(
|
|
5266
|
+
]) }, [e.disableSelection ? a("", !0) : (D(), i(po, {
|
|
5258
5267
|
key: 0,
|
|
5259
5268
|
checked: e.selected,
|
|
5260
5269
|
onClick: s
|
|
5261
5270
|
}, null, 8, ["checked"])), j(t.$slots, "default")], 2));
|
|
5262
5271
|
}
|
|
5263
|
-
}),
|
|
5272
|
+
}), Qo = () => {
|
|
5264
5273
|
let e = k(null);
|
|
5265
5274
|
return {
|
|
5266
5275
|
hoveredId: e,
|
|
@@ -5271,15 +5280,15 @@ var Li = {
|
|
|
5271
5280
|
e.value = null;
|
|
5272
5281
|
}
|
|
5273
5282
|
};
|
|
5274
|
-
},
|
|
5283
|
+
}, $o = Symbol("DraggingStateKey"), es = Symbol("DraggingGroupNameKey"), ts = Symbol("DropIndicatorKey"), ns = () => {
|
|
5275
5284
|
let e = k(!1), t = k(null), n = k(null);
|
|
5276
|
-
return O(
|
|
5285
|
+
return O($o, e), O(es, t), O(ts, n), {
|
|
5277
5286
|
isDragging: e,
|
|
5278
5287
|
draggingGroupName: t,
|
|
5279
5288
|
dropIndicator: n
|
|
5280
5289
|
};
|
|
5281
|
-
},
|
|
5282
|
-
let e = m(
|
|
5290
|
+
}, rs = () => {
|
|
5291
|
+
let e = m($o, k(!1)), t = m(es, k(null)), n = m(ts, k(null)), r = (n) => {
|
|
5283
5292
|
e.value = !0, t.value = n ?? null;
|
|
5284
5293
|
}, i = () => {
|
|
5285
5294
|
e.value = !1, t.value = null, o();
|
|
@@ -5301,8 +5310,8 @@ var Li = {
|
|
|
5301
5310
|
onDragStart: r,
|
|
5302
5311
|
onDragEnd: i
|
|
5303
5312
|
};
|
|
5304
|
-
},
|
|
5305
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
5313
|
+
}, is = () => {
|
|
5314
|
+
let { setDropIndicator: e, clearDropIndicator: t } = rs();
|
|
5306
5315
|
return {
|
|
5307
5316
|
getDragGroupConfig: (e, t) => {
|
|
5308
5317
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -5337,8 +5346,8 @@ var Li = {
|
|
|
5337
5346
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
5338
5347
|
}
|
|
5339
5348
|
};
|
|
5340
|
-
},
|
|
5341
|
-
let { dropIndicator: e } =
|
|
5349
|
+
}, as = () => {
|
|
5350
|
+
let { dropIndicator: e } = rs();
|
|
5342
5351
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
5343
5352
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
5344
5353
|
return {
|
|
@@ -5347,13 +5356,13 @@ var Li = {
|
|
|
5347
5356
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
5348
5357
|
};
|
|
5349
5358
|
} };
|
|
5350
|
-
},
|
|
5359
|
+
}, os = { class: "pv-flex pv-full-width" }, ss = {
|
|
5351
5360
|
key: 0,
|
|
5352
5361
|
class: "tree-component-nested-middle-symbol"
|
|
5353
|
-
},
|
|
5362
|
+
}, cs = {
|
|
5354
5363
|
key: 1,
|
|
5355
5364
|
class: "tree-component-end-symbol"
|
|
5356
|
-
},
|
|
5365
|
+
}, ls = ["data-parent-id"], us = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5357
5366
|
__name: "PvSimpleNestedTreeItem",
|
|
5358
5367
|
props: {
|
|
5359
5368
|
option: {},
|
|
@@ -5370,9 +5379,9 @@ var Li = {
|
|
|
5370
5379
|
},
|
|
5371
5380
|
emits: ["handle-tree-select", "update:children"],
|
|
5372
5381
|
setup(e, { emit: t }) {
|
|
5373
|
-
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } =
|
|
5382
|
+
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } = rs(), { dragAndDropIndicatorClasses: m } = as(), { hoveredId: h, handleMouseEnter: g, handleMouseLeave: _ } = Qo(), { canItemBeDragged: v, getDragAndDropDisabled: b, handleMoveCallback: S, getDragGroupConfig: C, canAcceptDrop: w } = is(), T = () => {
|
|
5374
5383
|
f(C(n.settings, n.option).name);
|
|
5375
|
-
}, E = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ?
|
|
5384
|
+
}, E = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ? Zo : Xo), k = r(() => n.settings[n.parentField]?.showNestedTree), A = r(() => n.index === n.totalSiblings - 1), j = r({
|
|
5376
5385
|
get: () => [...n.option.children || []],
|
|
5377
5386
|
set: (e) => {
|
|
5378
5387
|
c("update:children", {
|
|
@@ -5402,7 +5411,7 @@ var Li = {
|
|
|
5402
5411
|
onMouseleave: n[2] ||= (e) => F(_)(),
|
|
5403
5412
|
onContextmenu: n[3] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5404
5413
|
}, {
|
|
5405
|
-
default: G(() => [K(u(
|
|
5414
|
+
default: G(() => [K(u(Yo, null, null, 512), [[U, F(h) === e.option.node_id && F(v)(e.isDraggable, e.settings, e.option)]]), s("div", os, [!A.value && k.value ? (D(), o("div", ss)) : k.value ? (D(), o("div", cs)) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(M(e.settings[e.option.field]?.renderer), {
|
|
5406
5415
|
key: 2,
|
|
5407
5416
|
option: e.option,
|
|
5408
5417
|
settings: e.settings,
|
|
@@ -5413,7 +5422,7 @@ var Li = {
|
|
|
5413
5422
|
"settings",
|
|
5414
5423
|
"is-draggable",
|
|
5415
5424
|
"params"
|
|
5416
|
-
])) : (D(), i(
|
|
5425
|
+
])) : (D(), i(Jo, {
|
|
5417
5426
|
key: 3,
|
|
5418
5427
|
label: e.option.label,
|
|
5419
5428
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5475,13 +5484,13 @@ var Li = {
|
|
|
5475
5484
|
"class",
|
|
5476
5485
|
"onEnd",
|
|
5477
5486
|
"onAdd"
|
|
5478
|
-
])], 8,
|
|
5487
|
+
])], 8, ls)], 6);
|
|
5479
5488
|
};
|
|
5480
5489
|
}
|
|
5481
|
-
}), [["__scopeId", "data-v-ecab1929"]]),
|
|
5490
|
+
}), [["__scopeId", "data-v-ecab1929"]]), ds = {
|
|
5482
5491
|
class: "pv-flow",
|
|
5483
5492
|
style: { "--flow-size": "0px" }
|
|
5484
|
-
},
|
|
5493
|
+
}, fs = ["data-parent-id"], ps = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5485
5494
|
__name: "PvSimpleNestedTree",
|
|
5486
5495
|
props: {
|
|
5487
5496
|
option: {},
|
|
@@ -5494,9 +5503,9 @@ var Li = {
|
|
|
5494
5503
|
},
|
|
5495
5504
|
emits: ["handle-tree-select", "update:children"],
|
|
5496
5505
|
setup(e, { emit: t }) {
|
|
5497
|
-
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
5506
|
+
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = Qo(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = is(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = rs(), { dragAndDropIndicatorClasses: C } = as(), w = () => {
|
|
5498
5507
|
b(h(n.settings, n.option).name);
|
|
5499
|
-
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), E = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ?
|
|
5508
|
+
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), E = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ? Zo : Xo, A = r({
|
|
5500
5509
|
get: () => [...n.option.children || []],
|
|
5501
5510
|
set: (e) => {
|
|
5502
5511
|
a("update:children", {
|
|
@@ -5505,7 +5514,7 @@ var Li = {
|
|
|
5505
5514
|
});
|
|
5506
5515
|
}
|
|
5507
5516
|
}), j = r(() => n.isParentPathOpen ?? !0);
|
|
5508
|
-
return (t, n) => (D(), o("div",
|
|
5517
|
+
return (t, n) => (D(), o("div", ds, [(D(), i(M(k(e.option)), {
|
|
5509
5518
|
option: e.option,
|
|
5510
5519
|
selected: O(e.option.node_id),
|
|
5511
5520
|
"disable-selection": e.disableSelection,
|
|
@@ -5521,7 +5530,7 @@ var Li = {
|
|
|
5521
5530
|
onMouseleave: n[2] ||= (e) => F(d)(),
|
|
5522
5531
|
onContextmenu: n[3] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5523
5532
|
}, {
|
|
5524
|
-
default: G(() => [K(u(
|
|
5533
|
+
default: G(() => [K(u(Yo, null, null, 512), [[U, F(c) === e.option.node_id && F(p)(e.isDraggable, e.settings, e.option)]]), e.settings[e.option.field]?.renderer ? (D(), i(M(e.settings[e.option.field]?.renderer), {
|
|
5525
5534
|
key: 0,
|
|
5526
5535
|
option: e.option,
|
|
5527
5536
|
settings: e.settings,
|
|
@@ -5532,7 +5541,7 @@ var Li = {
|
|
|
5532
5541
|
"settings",
|
|
5533
5542
|
"selected",
|
|
5534
5543
|
"params"
|
|
5535
|
-
])) : (D(), i(
|
|
5544
|
+
])) : (D(), i(Jo, {
|
|
5536
5545
|
key: 1,
|
|
5537
5546
|
label: e.option.label,
|
|
5538
5547
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5559,7 +5568,7 @@ var Li = {
|
|
|
5559
5568
|
onEnd: F(S),
|
|
5560
5569
|
onAdd: F(S)
|
|
5561
5570
|
}, {
|
|
5562
|
-
item: G(({ element: r, index: i }) => [u(
|
|
5571
|
+
item: G(({ element: r, index: i }) => [u(us, {
|
|
5563
5572
|
"is-parent-path-open": e.isParentPathOpen,
|
|
5564
5573
|
option: r,
|
|
5565
5574
|
settings: e.settings,
|
|
@@ -5594,9 +5603,9 @@ var Li = {
|
|
|
5594
5603
|
"class",
|
|
5595
5604
|
"onEnd",
|
|
5596
5605
|
"onAdd"
|
|
5597
|
-
])], 8,
|
|
5606
|
+
])], 8, fs)]));
|
|
5598
5607
|
}
|
|
5599
|
-
}), [["__scopeId", "data-v-8e33078d"]]),
|
|
5608
|
+
}), [["__scopeId", "data-v-8e33078d"]]), ms = ["data-parent-id"], hs = { key: 2 }, gs = ["data-parent-id"], _s = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5600
5609
|
__name: "PvTreeItem",
|
|
5601
5610
|
props: {
|
|
5602
5611
|
option: {},
|
|
@@ -5621,12 +5630,12 @@ var Li = {
|
|
|
5621
5630
|
W(() => n.treeOpen, (e) => {
|
|
5622
5631
|
e !== void 0 && (c.value = e);
|
|
5623
5632
|
});
|
|
5624
|
-
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } =
|
|
5633
|
+
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } = is(), { hoveredId: g, handleMouseEnter: _, handleMouseLeave: v } = Qo(), { isDragging: b, draggingGroupName: S, onDragStart: C, onDragEnd: w } = rs(), { dragAndDropIndicatorClasses: T } = as(), E = () => {
|
|
5625
5634
|
C(l(n.settings, n.option).name);
|
|
5626
5635
|
}, O = (e) => ({
|
|
5627
5636
|
paddingLeft: `${e * 24 + (n.settings[n.option.field]?.additionalNestingLevel ?? 0) * 24}px`,
|
|
5628
5637
|
"--border-color": "#121313"
|
|
5629
|
-
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ?
|
|
5638
|
+
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? Zo : Xo), N = r({
|
|
5630
5639
|
get: () => [...n.option.children || []],
|
|
5631
5640
|
set: (e) => {
|
|
5632
5641
|
a("update:children", {
|
|
@@ -5664,7 +5673,7 @@ var Li = {
|
|
|
5664
5673
|
onSummaryMouseleave: n[5] ||= (e) => F(v)(),
|
|
5665
5674
|
onContextmenu: n[6] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5666
5675
|
}, {
|
|
5667
|
-
trigger: G(() => [K(u(
|
|
5676
|
+
trigger: G(() => [K(u(Yo, null, null, 512), [[U, F(g) === e.option.node_id && F(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (D(), i(M(e.settings[e.option.field]?.renderer), {
|
|
5668
5677
|
key: 0,
|
|
5669
5678
|
option: e.option,
|
|
5670
5679
|
settings: e.settings,
|
|
@@ -5675,7 +5684,7 @@ var Li = {
|
|
|
5675
5684
|
"settings",
|
|
5676
5685
|
"selected",
|
|
5677
5686
|
"params"
|
|
5678
|
-
])) : (D(), i(
|
|
5687
|
+
])) : (D(), i(Jo, {
|
|
5679
5688
|
key: 1,
|
|
5680
5689
|
label: e.option.label,
|
|
5681
5690
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5724,7 +5733,7 @@ var Li = {
|
|
|
5724
5733
|
"class",
|
|
5725
5734
|
"onEnd",
|
|
5726
5735
|
"onAdd"
|
|
5727
|
-
])], 8,
|
|
5736
|
+
])], 8, ms)]),
|
|
5728
5737
|
_: 1
|
|
5729
5738
|
}, 8, [
|
|
5730
5739
|
"modelValue",
|
|
@@ -5732,7 +5741,7 @@ var Li = {
|
|
|
5732
5741
|
"summaryStyles",
|
|
5733
5742
|
"summaryClasses",
|
|
5734
5743
|
"defaultOpen"
|
|
5735
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(
|
|
5744
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(ps, {
|
|
5736
5745
|
key: 1,
|
|
5737
5746
|
"is-parent-path-open": e.isParentPathOpen,
|
|
5738
5747
|
"selected-options": e.selectedOptions,
|
|
@@ -5753,7 +5762,7 @@ var Li = {
|
|
|
5753
5762
|
"is-draggable",
|
|
5754
5763
|
"disable-selection",
|
|
5755
5764
|
"is-last-root-item"
|
|
5756
|
-
])) : (D(), o("div",
|
|
5765
|
+
])) : (D(), o("div", hs, [(D(), i(M(j.value), {
|
|
5757
5766
|
class: y({ ...F(T)(e.option) }),
|
|
5758
5767
|
option: e.option,
|
|
5759
5768
|
selected: A(e.option.node_id),
|
|
@@ -5769,7 +5778,7 @@ var Li = {
|
|
|
5769
5778
|
onMouseleave: n[11] ||= (e) => F(v)(),
|
|
5770
5779
|
onContextmenu: n[12] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5771
5780
|
}, {
|
|
5772
|
-
default: G(() => [K(u(
|
|
5781
|
+
default: G(() => [K(u(Yo, null, null, 512), [[U, F(g) === e.option.node_id && F(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (D(), i(M(e.settings[e.option.field]?.renderer), {
|
|
5773
5782
|
key: 0,
|
|
5774
5783
|
option: e.option,
|
|
5775
5784
|
settings: e.settings,
|
|
@@ -5778,7 +5787,7 @@ var Li = {
|
|
|
5778
5787
|
"option",
|
|
5779
5788
|
"settings",
|
|
5780
5789
|
"params"
|
|
5781
|
-
])) : (D(), i(
|
|
5790
|
+
])) : (D(), i(Jo, {
|
|
5782
5791
|
key: 1,
|
|
5783
5792
|
label: e.option.label,
|
|
5784
5793
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5834,10 +5843,10 @@ var Li = {
|
|
|
5834
5843
|
"class",
|
|
5835
5844
|
"onEnd",
|
|
5836
5845
|
"onAdd"
|
|
5837
|
-
])], 8,
|
|
5846
|
+
])], 8, gs)]));
|
|
5838
5847
|
};
|
|
5839
5848
|
}
|
|
5840
|
-
}), [["__scopeId", "data-v-7589558e"]]),
|
|
5849
|
+
}), [["__scopeId", "data-v-7589558e"]]), vs = (e) => {
|
|
5841
5850
|
let t = [], n = !1;
|
|
5842
5851
|
function r(e) {
|
|
5843
5852
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -5880,7 +5889,7 @@ var Li = {
|
|
|
5880
5889
|
newChildren: r
|
|
5881
5890
|
}), n || (n = !0, v(i));
|
|
5882
5891
|
} };
|
|
5883
|
-
},
|
|
5892
|
+
}, ys = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5884
5893
|
__name: "PvTree",
|
|
5885
5894
|
props: /* @__PURE__ */ g({
|
|
5886
5895
|
settings: {},
|
|
@@ -5910,14 +5919,14 @@ var Li = {
|
|
|
5910
5919
|
"update:treeOpen"
|
|
5911
5920
|
],
|
|
5912
5921
|
setup(e) {
|
|
5913
|
-
m(
|
|
5914
|
-
let n = e, i = R(e, "selectedOptions"), a = R(e, "options"), c = R(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
5922
|
+
m($o, null) || ns();
|
|
5923
|
+
let n = e, i = R(e, "selectedOptions"), a = R(e, "options"), c = R(e, "treeOpen"), { handleUpdateChildren: l } = vs(a), d = (e, t) => {
|
|
5915
5924
|
t.metaKey ? i.value?.some((t) => t.node_id === e.node_id) ? i.value = i.value?.filter((t) => t.node_id !== e.node_id) : i.value = [...i.value || [], e] : i.value?.some((t) => t.node_id === e.node_id) ? i.value = [] : i.value = [e];
|
|
5916
5925
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
5917
5926
|
...n.defaultSettings,
|
|
5918
5927
|
...n.settings[t]
|
|
5919
5928
|
}, e), {}));
|
|
5920
|
-
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(
|
|
5929
|
+
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(_s, {
|
|
5921
5930
|
"is-last-root-item": n === a.value.length - 1,
|
|
5922
5931
|
"is-parent-path-open": !0,
|
|
5923
5932
|
"tree-open": c.value,
|
|
@@ -5940,15 +5949,15 @@ var Li = {
|
|
|
5940
5949
|
"onUpdate:children"
|
|
5941
5950
|
])]))), 128))], 2)]));
|
|
5942
5951
|
}
|
|
5943
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
5952
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), bs = /* @__PURE__ */ d({
|
|
5944
5953
|
__name: "PvTreeGroup",
|
|
5945
5954
|
setup(e) {
|
|
5946
|
-
return
|
|
5955
|
+
return ns(), (e, t) => j(e.$slots, "default");
|
|
5947
5956
|
}
|
|
5948
|
-
}),
|
|
5957
|
+
}), xs = {
|
|
5949
5958
|
key: 0,
|
|
5950
5959
|
class: "pv-text-brand pv-text-title-sm pv-stack-4"
|
|
5951
|
-
},
|
|
5960
|
+
}, Ss = ["data-disabled"], Cs = /* @__PURE__ */ d({
|
|
5952
5961
|
__name: "PvProgressBar",
|
|
5953
5962
|
props: {
|
|
5954
5963
|
disabled: {
|
|
@@ -5963,19 +5972,19 @@ var Li = {
|
|
|
5963
5972
|
},
|
|
5964
5973
|
setup(e) {
|
|
5965
5974
|
let n = e, i = r(() => Math.min(100, Math.max(0, n.progress)));
|
|
5966
|
-
return (e, r) => (D(), o(t, null, [n.showLabel ? (D(), o("p",
|
|
5975
|
+
return (e, r) => (D(), o(t, null, [n.showLabel ? (D(), o("p", xs, P(i.value) + "% Complete", 1)) : a("", !0), s("div", {
|
|
5967
5976
|
class: "pv-progress-bar",
|
|
5968
5977
|
"data-disabled": n.disabled ? !0 : void 0,
|
|
5969
5978
|
style: x({ "--progress": `${i.value}%` })
|
|
5970
|
-
}, null, 12,
|
|
5979
|
+
}, null, 12, Ss)], 64));
|
|
5971
5980
|
}
|
|
5972
|
-
}),
|
|
5981
|
+
}), ws = {
|
|
5973
5982
|
class: "pv-flex",
|
|
5974
5983
|
style: {
|
|
5975
5984
|
"--flex-gap": "4px",
|
|
5976
5985
|
height: "24px"
|
|
5977
5986
|
}
|
|
5978
|
-
},
|
|
5987
|
+
}, Ts = /* @__PURE__ */ d({
|
|
5979
5988
|
__name: "PvDistributionBar",
|
|
5980
5989
|
props: { values: {} },
|
|
5981
5990
|
setup(e) {
|
|
@@ -5998,41 +6007,41 @@ var Li = {
|
|
|
5998
6007
|
default: return "pv-data-surface-visualization-1";
|
|
5999
6008
|
}
|
|
6000
6009
|
};
|
|
6001
|
-
return (n, r) => (D(), o("div",
|
|
6010
|
+
return (n, r) => (D(), o("div", ws, [(D(!0), o(t, null, A(e.values, (e, t) => (D(), o("div", {
|
|
6002
6011
|
key: t,
|
|
6003
6012
|
class: y([l(t)]),
|
|
6004
6013
|
style: x(c(e, t))
|
|
6005
6014
|
}, null, 6))), 128))]));
|
|
6006
6015
|
}
|
|
6007
|
-
}),
|
|
6016
|
+
}), Es = {
|
|
6008
6017
|
key: 0,
|
|
6009
6018
|
class: "pv-range-single-slider"
|
|
6010
|
-
},
|
|
6019
|
+
}, Ds = [
|
|
6011
6020
|
"id",
|
|
6012
6021
|
"aria-label",
|
|
6013
6022
|
"disabled",
|
|
6014
6023
|
"max",
|
|
6015
6024
|
"min",
|
|
6016
6025
|
"step"
|
|
6017
|
-
],
|
|
6026
|
+
], Os = ["aria-label"], ks = {
|
|
6018
6027
|
key: 0,
|
|
6019
6028
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
6020
6029
|
style: { "line-height": "1" }
|
|
6021
|
-
},
|
|
6030
|
+
}, As = [
|
|
6022
6031
|
"aria-label",
|
|
6023
6032
|
"disabled",
|
|
6024
6033
|
"max",
|
|
6025
6034
|
"min",
|
|
6026
6035
|
"step",
|
|
6027
6036
|
"value"
|
|
6028
|
-
],
|
|
6037
|
+
], js = [
|
|
6029
6038
|
"aria-label",
|
|
6030
6039
|
"disabled",
|
|
6031
6040
|
"max",
|
|
6032
6041
|
"min",
|
|
6033
6042
|
"step",
|
|
6034
6043
|
"value"
|
|
6035
|
-
],
|
|
6044
|
+
], Ms = {
|
|
6036
6045
|
key: 1,
|
|
6037
6046
|
class: "pv-flex",
|
|
6038
6047
|
style: {
|
|
@@ -6040,15 +6049,15 @@ var Li = {
|
|
|
6040
6049
|
"--flex-gap": "0.75rem",
|
|
6041
6050
|
"--flex-wrap": "wrap"
|
|
6042
6051
|
}
|
|
6043
|
-
},
|
|
6052
|
+
}, Ns = { class: "pv-text-body-sm" }, Ps = [
|
|
6044
6053
|
"disabled",
|
|
6045
6054
|
"step",
|
|
6046
6055
|
"value"
|
|
6047
|
-
],
|
|
6056
|
+
], Fs = { class: "pv-text-body-sm" }, Is = [
|
|
6048
6057
|
"disabled",
|
|
6049
6058
|
"step",
|
|
6050
6059
|
"value"
|
|
6051
|
-
],
|
|
6060
|
+
], Ls = 0, Rs = 100, zs = /* @__PURE__ */ d({
|
|
6052
6061
|
inheritAttrs: !1,
|
|
6053
6062
|
__name: "PvRange",
|
|
6054
6063
|
props: /* @__PURE__ */ g({
|
|
@@ -6125,7 +6134,7 @@ var Li = {
|
|
|
6125
6134
|
}).format(e);
|
|
6126
6135
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
6127
6136
|
}, N = r(() => E(t.step)), z = r(() => N.value !== null && N.value > 0 ? N.value : 0), te = r(() => z.value > 0 ? String(z.value) : "any"), B = r(() => N.value === null ? "1" : N.value > 0 ? String(N.value) : "any"), V = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), ne = r(() => {
|
|
6128
|
-
let e = E(t.min) ??
|
|
6137
|
+
let e = E(t.min) ?? Ls, n = E(t.max) ?? Rs;
|
|
6129
6138
|
return e > n ? {
|
|
6130
6139
|
max: e,
|
|
6131
6140
|
min: n
|
|
@@ -6151,7 +6160,7 @@ var Li = {
|
|
|
6151
6160
|
}
|
|
6152
6161
|
return t.split(".")[1]?.length ?? 0;
|
|
6153
6162
|
}, J = r(() => {
|
|
6154
|
-
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(
|
|
6163
|
+
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Ls, r ?? Ls, i ?? Ls), o = n ?? Math.max(Rs, r ?? Rs, i ?? Rs);
|
|
6155
6164
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (z.value > 0 ? z.value : 1)), {
|
|
6156
6165
|
max: o,
|
|
6157
6166
|
min: a
|
|
@@ -6192,7 +6201,7 @@ var Li = {
|
|
|
6192
6201
|
"--range-track-color": V.value,
|
|
6193
6202
|
"--value-max": `${he.value}%`,
|
|
6194
6203
|
"--value-min": `${me.value}%`
|
|
6195
|
-
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), be = () => E(t.min) !== null || J.value.min ===
|
|
6204
|
+
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), be = () => E(t.min) !== null || J.value.min === Ls, xe = () => E(t.max) !== null || J.value.max === Rs, Se = (e, t) => {
|
|
6196
6205
|
c.value = {
|
|
6197
6206
|
max: t >= J.value.max && xe() ? null : t,
|
|
6198
6207
|
min: e <= J.value.min && be() ? null : e
|
|
@@ -6265,7 +6274,7 @@ var Li = {
|
|
|
6265
6274
|
};
|
|
6266
6275
|
return W([fe, J], Ne, { immediate: !0 }), S(() => {
|
|
6267
6276
|
Be(), Oe();
|
|
6268
|
-
}), (r, c) => e.mode === "single" ? (D(), o("div",
|
|
6277
|
+
}), (r, c) => e.mode === "single" ? (D(), o("div", Es, [e.showValueTooltips && v.value ? (D(), o("span", {
|
|
6269
6278
|
key: 0,
|
|
6270
6279
|
class: "pv-range-tooltip",
|
|
6271
6280
|
style: x(q.value)
|
|
@@ -6282,7 +6291,7 @@ var Li = {
|
|
|
6282
6291
|
onChange: ke,
|
|
6283
6292
|
onPointerdown: Ae,
|
|
6284
6293
|
onPointerup: ke
|
|
6285
|
-
}), null, 16,
|
|
6294
|
+
}), null, 16, Ds), [[
|
|
6286
6295
|
H,
|
|
6287
6296
|
n.value,
|
|
6288
6297
|
void 0,
|
|
@@ -6297,7 +6306,7 @@ var Li = {
|
|
|
6297
6306
|
"--flex-gap": "0"
|
|
6298
6307
|
}
|
|
6299
6308
|
}), [
|
|
6300
|
-
e.showBoundLabels ? (D(), o("div",
|
|
6309
|
+
e.showBoundLabels ? (D(), o("div", ks, [s("span", null, P(M(J.value.min)), 1), s("span", null, P(M(J.value.max)), 1)])) : a("", !0),
|
|
6301
6310
|
s("div", {
|
|
6302
6311
|
ref_key: "sliderRef",
|
|
6303
6312
|
ref: b,
|
|
@@ -6329,7 +6338,7 @@ var Li = {
|
|
|
6329
6338
|
onInput: je,
|
|
6330
6339
|
onPointerdown: c[1] ||= (e) => Ee("min"),
|
|
6331
6340
|
onPointerup: Te
|
|
6332
|
-
}, null, 40,
|
|
6341
|
+
}, null, 40, As),
|
|
6333
6342
|
s("input", {
|
|
6334
6343
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
6335
6344
|
type: "range",
|
|
@@ -6343,9 +6352,9 @@ var Li = {
|
|
|
6343
6352
|
onInput: Me,
|
|
6344
6353
|
onPointerdown: c[2] ||= (e) => Ee("max"),
|
|
6345
6354
|
onPointerup: Te
|
|
6346
|
-
}, null, 40,
|
|
6355
|
+
}, null, 40, js)
|
|
6347
6356
|
], 38),
|
|
6348
|
-
e.showInputs ? (D(), o("div",
|
|
6357
|
+
e.showInputs ? (D(), o("div", Ms, [
|
|
6349
6358
|
s("label", {
|
|
6350
6359
|
class: "pv-flex-vertical",
|
|
6351
6360
|
for: f,
|
|
@@ -6356,7 +6365,7 @@ var Li = {
|
|
|
6356
6365
|
"max-width": "75px",
|
|
6357
6366
|
"min-width": "0"
|
|
6358
6367
|
}
|
|
6359
|
-
}, [s("span",
|
|
6368
|
+
}, [s("span", Ns, P(e.minLabel), 1), s("input", {
|
|
6360
6369
|
id: f,
|
|
6361
6370
|
class: "pv-input-text",
|
|
6362
6371
|
disabled: e.disabled,
|
|
@@ -6370,7 +6379,7 @@ var Li = {
|
|
|
6370
6379
|
onFocus: c[4] ||= (e) => X("min"),
|
|
6371
6380
|
onInput: Fe,
|
|
6372
6381
|
onKeydown: c[5] ||= ie((e) => Z(e, "min"), ["enter"])
|
|
6373
|
-
}, null, 40,
|
|
6382
|
+
}, null, 40, Ps)]),
|
|
6374
6383
|
s("label", {
|
|
6375
6384
|
class: "pv-flex-vertical",
|
|
6376
6385
|
for: d,
|
|
@@ -6381,7 +6390,7 @@ var Li = {
|
|
|
6381
6390
|
"max-width": "75px",
|
|
6382
6391
|
"min-width": "0"
|
|
6383
6392
|
}
|
|
6384
|
-
}, [s("span",
|
|
6393
|
+
}, [s("span", Fs, P(e.maxLabel), 1), s("input", {
|
|
6385
6394
|
id: d,
|
|
6386
6395
|
class: "pv-input-text",
|
|
6387
6396
|
disabled: e.disabled,
|
|
@@ -6395,7 +6404,7 @@ var Li = {
|
|
|
6395
6404
|
onFocus: c[7] ||= (e) => X("max"),
|
|
6396
6405
|
onInput: Ie,
|
|
6397
6406
|
onKeydown: c[8] ||= ie((e) => Z(e, "max"), ["enter"])
|
|
6398
|
-
}, null, 40,
|
|
6407
|
+
}, null, 40, Is)]),
|
|
6399
6408
|
e.showClear && ye.value ? (D(), i(Q, {
|
|
6400
6409
|
key: 0,
|
|
6401
6410
|
class: "pv-text-brand",
|
|
@@ -6412,26 +6421,26 @@ var Li = {
|
|
|
6412
6421
|
variant: "ghost",
|
|
6413
6422
|
onClick: De
|
|
6414
6423
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
6415
|
-
], 16,
|
|
6424
|
+
], 16, Os));
|
|
6416
6425
|
}
|
|
6417
|
-
}),
|
|
6426
|
+
}), Bs = [
|
|
6418
6427
|
"aria-label",
|
|
6419
6428
|
"checked",
|
|
6420
6429
|
"disabled",
|
|
6421
6430
|
"name"
|
|
6422
|
-
],
|
|
6431
|
+
], Vs = {
|
|
6423
6432
|
key: 3,
|
|
6424
6433
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
6425
|
-
},
|
|
6434
|
+
}, Hs = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Us = {
|
|
6426
6435
|
key: 0,
|
|
6427
6436
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
6428
|
-
},
|
|
6437
|
+
}, Ws = {
|
|
6429
6438
|
key: 1,
|
|
6430
6439
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
6431
|
-
},
|
|
6440
|
+
}, Gs = {
|
|
6432
6441
|
key: 4,
|
|
6433
6442
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
6434
|
-
},
|
|
6443
|
+
}, Ks = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
6435
6444
|
__name: "PvFilterPanelOptionRow",
|
|
6436
6445
|
props: {
|
|
6437
6446
|
ariaLabel: {},
|
|
@@ -6504,7 +6513,7 @@ var Li = {
|
|
|
6504
6513
|
disabled: e.disabled,
|
|
6505
6514
|
name: e.name,
|
|
6506
6515
|
onChange: g
|
|
6507
|
-
}, null, 40,
|
|
6516
|
+
}, null, 40, Bs)) : (D(), i(po, {
|
|
6508
6517
|
key: 1,
|
|
6509
6518
|
ariaLabel: e.ariaLabel || e.label,
|
|
6510
6519
|
disabled: e.disabled,
|
|
@@ -6517,12 +6526,12 @@ var Li = {
|
|
|
6517
6526
|
"indeterminate",
|
|
6518
6527
|
"modelValue"
|
|
6519
6528
|
])),
|
|
6520
|
-
e.renderer ? (D(), i(M(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span",
|
|
6521
|
-
s("span",
|
|
6522
|
-
e.subduedText ? (D(), o("span",
|
|
6523
|
-
e.subText ? (D(), o("span",
|
|
6529
|
+
e.renderer ? (D(), i(M(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span", Vs, [
|
|
6530
|
+
s("span", Hs, P(e.label), 1),
|
|
6531
|
+
e.subduedText ? (D(), o("span", Us, P(e.subduedText), 1)) : a("", !0),
|
|
6532
|
+
e.subText ? (D(), o("span", Ws, P(e.subText), 1)) : a("", !0)
|
|
6524
6533
|
])),
|
|
6525
|
-
f.value ? (D(), o("span",
|
|
6534
|
+
f.value ? (D(), o("span", Gs, [j(t.$slots, "result-count", {}, () => [l("(" + P(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
6526
6535
|
e.showFocusAction ? (D(), i(Q, {
|
|
6527
6536
|
key: 5,
|
|
6528
6537
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -6538,26 +6547,26 @@ var Li = {
|
|
|
6538
6547
|
])) : a("", !0)
|
|
6539
6548
|
], 6));
|
|
6540
6549
|
}
|
|
6541
|
-
}), [["__scopeId", "data-v-d5f24abf"]]),
|
|
6550
|
+
}), [["__scopeId", "data-v-d5f24abf"]]), qs = [
|
|
6542
6551
|
"totalCount",
|
|
6543
6552
|
"total_count",
|
|
6544
6553
|
"resultCount",
|
|
6545
6554
|
"result_count",
|
|
6546
6555
|
"row_count",
|
|
6547
6556
|
"count"
|
|
6548
|
-
],
|
|
6557
|
+
], Js = new Intl.NumberFormat("en-US", {
|
|
6549
6558
|
maximumFractionDigits: 1,
|
|
6550
6559
|
notation: "compact"
|
|
6551
|
-
}),
|
|
6552
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
6560
|
+
}), Ys = (e) => typeof e == "object" && !!e, Xs = (e) => {
|
|
6561
|
+
if (typeof e == "number" && Number.isFinite(e)) return Js.format(e);
|
|
6553
6562
|
if (typeof e == "string") {
|
|
6554
6563
|
let t = e.trim();
|
|
6555
6564
|
if (!t) return;
|
|
6556
6565
|
let n = Number(t);
|
|
6557
|
-
return Number.isFinite(n) ?
|
|
6566
|
+
return Number.isFinite(n) ? Js.format(n) : e;
|
|
6558
6567
|
}
|
|
6559
|
-
},
|
|
6560
|
-
let n =
|
|
6568
|
+
}, Zs = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), Qs = (e, t = {}) => {
|
|
6569
|
+
let n = Zs(t.dataType, t.valueDecimals);
|
|
6561
6570
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
6562
6571
|
currency: "USD",
|
|
6563
6572
|
maximumFractionDigits: n,
|
|
@@ -6569,11 +6578,11 @@ var Li = {
|
|
|
6569
6578
|
minimumFractionDigits: n
|
|
6570
6579
|
}).format(e);
|
|
6571
6580
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
6572
|
-
},
|
|
6581
|
+
}, $s = (e, t, n = {}) => e !== null && t !== null ? `${Qs(e, n)}–${Qs(t, n)}` : e === null ? t === null ? "" : `≤ ${Qs(t, n)}` : `${Qs(e, n)}+`, ec = (e, t) => {
|
|
6573
6582
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
6574
6583
|
if (!n) return null;
|
|
6575
6584
|
try {
|
|
6576
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
6585
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : Ys(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
6577
6586
|
return n({
|
|
6578
6587
|
context: e.metadata,
|
|
6579
6588
|
value: t
|
|
@@ -6581,24 +6590,24 @@ var Li = {
|
|
|
6581
6590
|
} catch {
|
|
6582
6591
|
return null;
|
|
6583
6592
|
}
|
|
6584
|
-
},
|
|
6593
|
+
}, tc = (e, t) => {
|
|
6585
6594
|
let n = e.metadata;
|
|
6586
|
-
if (!
|
|
6595
|
+
if (!Ys(n)) return null;
|
|
6587
6596
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
6588
6597
|
let t = n[e];
|
|
6589
6598
|
if (t != null && String(t).trim()) return String(t);
|
|
6590
6599
|
}
|
|
6591
6600
|
return null;
|
|
6592
|
-
},
|
|
6593
|
-
let t =
|
|
6601
|
+
}, nc = (e, t) => e.label || tc(e, t) || ec(e, t) || e.value, rc = (e) => {
|
|
6602
|
+
let t = Xs(e?.resultCount);
|
|
6594
6603
|
if (t !== void 0) return t;
|
|
6595
6604
|
let n = e?.metadata;
|
|
6596
|
-
if (
|
|
6597
|
-
let t =
|
|
6605
|
+
if (Ys(n)) for (let e of qs) {
|
|
6606
|
+
let t = Xs(n[e]);
|
|
6598
6607
|
if (t !== void 0) return t;
|
|
6599
6608
|
}
|
|
6600
|
-
return
|
|
6601
|
-
},
|
|
6609
|
+
return Xs(e?.totalChildCount);
|
|
6610
|
+
}, ic = "__pv_filter_panel_scoped_value__", ac = (e) => typeof e == "object" && !!e, oc = (e) => {
|
|
6602
6611
|
try {
|
|
6603
6612
|
let t = JSON.parse(decodeURIComponent(e));
|
|
6604
6613
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -6612,7 +6621,7 @@ var Li = {
|
|
|
6612
6621
|
} catch {
|
|
6613
6622
|
return [];
|
|
6614
6623
|
}
|
|
6615
|
-
},
|
|
6624
|
+
}, sc = (e) => {
|
|
6616
6625
|
if (!e.startsWith("__")) return null;
|
|
6617
6626
|
let t = e.slice(2).split("__");
|
|
6618
6627
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -6625,76 +6634,76 @@ var Li = {
|
|
|
6625
6634
|
pairs: n,
|
|
6626
6635
|
value: n[0].value
|
|
6627
6636
|
};
|
|
6628
|
-
},
|
|
6637
|
+
}, cc = (e) => {
|
|
6629
6638
|
if (e == null) return null;
|
|
6630
|
-
if (!e.startsWith(
|
|
6639
|
+
if (!e.startsWith(ic)) return sc(e) ?? {
|
|
6631
6640
|
pairs: [],
|
|
6632
6641
|
value: e
|
|
6633
6642
|
};
|
|
6634
|
-
let t =
|
|
6643
|
+
let t = oc(e.slice(32));
|
|
6635
6644
|
return {
|
|
6636
6645
|
field: t[0]?.field,
|
|
6637
6646
|
pairs: t,
|
|
6638
6647
|
value: t[0]?.value ?? e
|
|
6639
6648
|
};
|
|
6640
|
-
},
|
|
6649
|
+
}, lc = (e, t) => `${ic}${encodeURIComponent(JSON.stringify([[e, t]]))}`, uc = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : ac(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) : cc(e.value)?.value ?? e.value : null, dc = (e, t) => e?.field ? e.field : e?.colField ? e.colField : cc(e?.value)?.field ?? t, fc = (e) => e.flatMap((e) => [e, ...e.children?.length ? fc(e.children) : []]), pc = (e, t, n, r) => dc(e, r) === t && uc(e) === n, mc = (e) => {
|
|
6641
6650
|
let t = e;
|
|
6642
6651
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
6643
|
-
},
|
|
6652
|
+
}, hc = (e) => {
|
|
6644
6653
|
let t = e;
|
|
6645
|
-
return
|
|
6654
|
+
return mc(e) ? {
|
|
6646
6655
|
...t,
|
|
6647
|
-
conditions: (t.conditions ?? []).map(
|
|
6656
|
+
conditions: (t.conditions ?? []).map(hc)
|
|
6648
6657
|
} : { ...t };
|
|
6649
|
-
},
|
|
6658
|
+
}, gc = (e, t) => {
|
|
6650
6659
|
if (!e) return null;
|
|
6651
6660
|
let n = t instanceof Set ? t : new Set(t);
|
|
6652
|
-
if (!n.size) return
|
|
6653
|
-
if (!
|
|
6661
|
+
if (!n.size) return hc(e);
|
|
6662
|
+
if (!mc(e)) {
|
|
6654
6663
|
let t = e;
|
|
6655
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
6664
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : hc(e);
|
|
6656
6665
|
}
|
|
6657
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
6666
|
+
let r = e, i = (r.conditions ?? []).map((e) => gc(e, n)).filter((e) => !!e);
|
|
6658
6667
|
return i.length ? i.length === 1 ? i[0] : {
|
|
6659
6668
|
...r,
|
|
6660
6669
|
conditions: i
|
|
6661
6670
|
} : null;
|
|
6662
|
-
},
|
|
6671
|
+
}, _c = (e) => e ? [e.field, ...(e.children ?? []).flatMap(_c)] : [], vc = (e) => e ? e.children?.length ? e.children.flatMap(vc) : [e.field] : [], yc = (e) => {
|
|
6663
6672
|
let t = e?.context ?? {};
|
|
6664
|
-
return t.aggregateFieldHierarchy ?
|
|
6665
|
-
},
|
|
6673
|
+
return t.aggregateFieldHierarchy ? _c(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
6674
|
+
}, bc = (e) => {
|
|
6666
6675
|
let t = e?.context ?? {};
|
|
6667
6676
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6668
|
-
},
|
|
6677
|
+
}, xc = (e) => yc(e).length > 0, Sc = (e, t) => {
|
|
6669
6678
|
for (let n of e ?? []) {
|
|
6670
6679
|
if (!n) continue;
|
|
6671
6680
|
if (n.value === t) return n;
|
|
6672
|
-
let e =
|
|
6681
|
+
let e = Sc(n.children, t);
|
|
6673
6682
|
if (e) return e;
|
|
6674
6683
|
}
|
|
6675
|
-
},
|
|
6684
|
+
}, Cc = (e, t, n = []) => {
|
|
6676
6685
|
for (let r of e ?? []) {
|
|
6677
6686
|
if (!r) continue;
|
|
6678
6687
|
let e = [...n, r];
|
|
6679
6688
|
if (r.value === t) return e;
|
|
6680
|
-
let i =
|
|
6689
|
+
let i = Cc(r.children, t, e);
|
|
6681
6690
|
if (i) return i;
|
|
6682
6691
|
}
|
|
6683
|
-
},
|
|
6684
|
-
let n =
|
|
6692
|
+
}, wc = (e, t) => {
|
|
6693
|
+
let n = Sc(t, e), r = n ? dc(n, "") : void 0, i = n ? uc(n) : null;
|
|
6685
6694
|
if (r && i !== null) return {
|
|
6686
6695
|
field: r,
|
|
6687
6696
|
value: i
|
|
6688
6697
|
};
|
|
6689
|
-
let a =
|
|
6698
|
+
let a = cc(e);
|
|
6690
6699
|
return {
|
|
6691
6700
|
field: a?.field,
|
|
6692
6701
|
value: a?.value ?? e
|
|
6693
6702
|
};
|
|
6694
|
-
},
|
|
6703
|
+
}, Tc = (e, t, n) => {
|
|
6695
6704
|
let r = (e) => {
|
|
6696
6705
|
if (!e) return;
|
|
6697
|
-
let i =
|
|
6706
|
+
let i = dc(e, ""), a = uc(e);
|
|
6698
6707
|
if (i === t && a === n) return e.value;
|
|
6699
6708
|
for (let t of e.children ?? []) {
|
|
6700
6709
|
let e = r(t);
|
|
@@ -6706,9 +6715,9 @@ var Li = {
|
|
|
6706
6715
|
if (e) return e;
|
|
6707
6716
|
}
|
|
6708
6717
|
return `__${t}__${n}`;
|
|
6709
|
-
},
|
|
6718
|
+
}, Ec = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...Ec(e.children)]), Dc = (e, t) => {
|
|
6710
6719
|
if (e.state !== "selected") return null;
|
|
6711
|
-
let { field: n, value: r } =
|
|
6720
|
+
let { field: n, value: r } = wc(e.id, t);
|
|
6712
6721
|
if (!n) return null;
|
|
6713
6722
|
let i = [{
|
|
6714
6723
|
colId: n,
|
|
@@ -6716,8 +6725,8 @@ var Li = {
|
|
|
6716
6725
|
filterType: "text",
|
|
6717
6726
|
type: "equals"
|
|
6718
6727
|
}];
|
|
6719
|
-
for (let n of
|
|
6720
|
-
let e =
|
|
6728
|
+
for (let n of Ec(e.children)) {
|
|
6729
|
+
let e = wc(n.id, t);
|
|
6721
6730
|
e.field && i.push({
|
|
6722
6731
|
colId: e.field,
|
|
6723
6732
|
filter: e.value,
|
|
@@ -6730,10 +6739,10 @@ var Li = {
|
|
|
6730
6739
|
filterType: "join",
|
|
6731
6740
|
type: "AND"
|
|
6732
6741
|
};
|
|
6733
|
-
},
|
|
6734
|
-
let t =
|
|
6742
|
+
}, Oc = (e) => {
|
|
6743
|
+
let t = yc(e.colDef), n = gc(e.baseModel, t);
|
|
6735
6744
|
if (!t.length) return n;
|
|
6736
|
-
let r = e.state.map((t) =>
|
|
6745
|
+
let r = e.state.map((t) => Dc(t, e.options)).filter((e) => !!e);
|
|
6737
6746
|
if (!r.length) return n;
|
|
6738
6747
|
let i = r.length === 1 ? r[0] : {
|
|
6739
6748
|
conditions: r,
|
|
@@ -6745,17 +6754,17 @@ var Li = {
|
|
|
6745
6754
|
filterType: "join",
|
|
6746
6755
|
type: "AND"
|
|
6747
6756
|
} : i;
|
|
6748
|
-
},
|
|
6757
|
+
}, kc = (e, t, n) => {
|
|
6749
6758
|
if (!e) return [];
|
|
6750
6759
|
let r = e;
|
|
6751
|
-
if (
|
|
6760
|
+
if (mc(e)) {
|
|
6752
6761
|
let e = r.conditions ?? [];
|
|
6753
6762
|
if (r.type === "AND") {
|
|
6754
6763
|
let r = e.find((e) => {
|
|
6755
6764
|
let r = e;
|
|
6756
6765
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
6757
6766
|
});
|
|
6758
|
-
return e.flatMap((e) =>
|
|
6767
|
+
return e.flatMap((e) => kc(e, t, n).map((e) => ({
|
|
6759
6768
|
...e,
|
|
6760
6769
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
6761
6770
|
colId: r.colId,
|
|
@@ -6763,20 +6772,20 @@ var Li = {
|
|
|
6763
6772
|
} : void 0)
|
|
6764
6773
|
})));
|
|
6765
6774
|
}
|
|
6766
|
-
return e.flatMap((e) =>
|
|
6775
|
+
return e.flatMap((e) => kc(e, t, n));
|
|
6767
6776
|
}
|
|
6768
6777
|
return r.colId && t.has(r.colId) ? [{
|
|
6769
6778
|
colId: r.colId,
|
|
6770
6779
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
6771
6780
|
type: r.type
|
|
6772
6781
|
}] : [];
|
|
6773
|
-
},
|
|
6774
|
-
let t =
|
|
6782
|
+
}, Ac = (e) => {
|
|
6783
|
+
let t = yc(e.colDef);
|
|
6775
6784
|
if (!t.length) return [];
|
|
6776
|
-
let n = new Set(
|
|
6785
|
+
let n = new Set(vc(e.colDef.context?.aggregateFieldHierarchy)), r = bc(e.colDef), i = kc(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
6777
6786
|
for (let t of i) {
|
|
6778
6787
|
if (!t.filter) continue;
|
|
6779
|
-
let n =
|
|
6788
|
+
let n = Tc(e.options, t.colId, String(t.filter));
|
|
6780
6789
|
if (t.type === "equals") {
|
|
6781
6790
|
let e = a.get(n);
|
|
6782
6791
|
a.set(n, {
|
|
@@ -6787,7 +6796,7 @@ var Li = {
|
|
|
6787
6796
|
continue;
|
|
6788
6797
|
}
|
|
6789
6798
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
6790
|
-
let r =
|
|
6799
|
+
let r = Tc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
6791
6800
|
children: [],
|
|
6792
6801
|
id: r,
|
|
6793
6802
|
state: "selected"
|
|
@@ -6799,150 +6808,150 @@ var Li = {
|
|
|
6799
6808
|
}
|
|
6800
6809
|
}
|
|
6801
6810
|
return [...a.values()];
|
|
6802
|
-
},
|
|
6803
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
6811
|
+
}, jc = (e) => {
|
|
6812
|
+
let t = /* @__PURE__ */ new Map(), n = yc(e.colDef);
|
|
6804
6813
|
if (!n.length) return t;
|
|
6805
|
-
let r =
|
|
6814
|
+
let r = kc(e.model, new Set(n), new Set(vc(e.colDef.context?.aggregateFieldHierarchy)));
|
|
6806
6815
|
for (let e of r) {
|
|
6807
6816
|
if (e.type !== "equals" || !e.filter) continue;
|
|
6808
6817
|
let n = t.get(e.colId) ?? [];
|
|
6809
6818
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
6810
6819
|
}
|
|
6811
6820
|
return t;
|
|
6812
|
-
},
|
|
6821
|
+
}, Mc = (e) => e.map((e) => ({
|
|
6813
6822
|
...e,
|
|
6814
6823
|
children: e.children?.map((e) => ({
|
|
6815
6824
|
...e,
|
|
6816
|
-
children: e.children ?
|
|
6825
|
+
children: e.children ? Mc(e.children) : void 0
|
|
6817
6826
|
}))
|
|
6818
|
-
})),
|
|
6827
|
+
})), Nc = (e, t) => e.flatMap((e) => {
|
|
6819
6828
|
if (e.id === t) return [];
|
|
6820
|
-
let n = e.children ?
|
|
6829
|
+
let n = e.children ? Nc(e.children, t) : void 0;
|
|
6821
6830
|
return [{
|
|
6822
6831
|
...e,
|
|
6823
6832
|
children: n?.length ? n : void 0
|
|
6824
6833
|
}];
|
|
6825
|
-
}),
|
|
6834
|
+
}), Pc = (e, t) => {
|
|
6826
6835
|
for (let n of e) {
|
|
6827
6836
|
if (n.id === t) return n;
|
|
6828
|
-
let e = n.children ?
|
|
6837
|
+
let e = n.children ? Pc(n.children, t) : void 0;
|
|
6829
6838
|
if (e) return e;
|
|
6830
6839
|
}
|
|
6831
|
-
},
|
|
6832
|
-
let r = (
|
|
6840
|
+
}, Fc = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, Ic = (e, t) => [...Nc(e, t.id), t], Lc = (e) => (e.children ?? []).flatMap((e) => [e.value, ...Lc(e)]), Rc = (e, t) => Lc(t).reduce((e, t) => Nc(e, t), e), zc = (e, t) => [t.value, ...Lc(t)].reduce((e, t) => Nc(e, t), e), Bc = (e, t, n) => {
|
|
6841
|
+
let r = (Cc(n, t.value) ?? []).slice(0, -1).reverse();
|
|
6833
6842
|
for (let t of r) {
|
|
6834
|
-
let n =
|
|
6843
|
+
let n = Pc(e, t.value);
|
|
6835
6844
|
if (n?.state === "selected") return n;
|
|
6836
6845
|
}
|
|
6837
|
-
},
|
|
6838
|
-
let t =
|
|
6846
|
+
}, Vc = (e) => {
|
|
6847
|
+
let t = Mc(e.state), n = Bc(t, e.option, e.options);
|
|
6839
6848
|
if (n) {
|
|
6840
6849
|
let r = n.children ?? [];
|
|
6841
|
-
return n.children = e.checked ?
|
|
6850
|
+
return n.children = e.checked ? zc(r, e.option) : [...zc(r, e.option), {
|
|
6842
6851
|
id: e.option.value,
|
|
6843
6852
|
state: "deselected"
|
|
6844
6853
|
}], n.children.length || delete n.children, t;
|
|
6845
6854
|
}
|
|
6846
|
-
return
|
|
6855
|
+
return Fc(e.option) ? e.checked ? Ic(Rc(t, e.option), {
|
|
6847
6856
|
id: e.option.value,
|
|
6848
6857
|
state: "selected"
|
|
6849
|
-
}) :
|
|
6858
|
+
}) : Nc(t, e.option.value) : e.checked ? Ic(t, {
|
|
6850
6859
|
id: e.option.value,
|
|
6851
6860
|
state: "selected"
|
|
6852
|
-
}) :
|
|
6853
|
-
},
|
|
6861
|
+
}) : Nc(t, e.option.value);
|
|
6862
|
+
}, Hc = (e) => {
|
|
6854
6863
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
6855
6864
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
6856
6865
|
};
|
|
6857
6866
|
return n(e), t;
|
|
6858
|
-
},
|
|
6859
|
-
let t =
|
|
6867
|
+
}, Uc = (e) => {
|
|
6868
|
+
let t = Hc(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
6860
6869
|
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 = {
|
|
6861
|
-
indeterminate:
|
|
6870
|
+
indeterminate: Ec(a?.children).length > 0 || !o && c || o && l,
|
|
6862
6871
|
selected: o
|
|
6863
6872
|
};
|
|
6864
6873
|
return n.set(e.value, u), u;
|
|
6865
6874
|
};
|
|
6866
6875
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
6867
6876
|
return n;
|
|
6868
|
-
},
|
|
6877
|
+
}, Wc = (e) => Uc(e).get(e.option.value) ?? Uc({
|
|
6869
6878
|
options: [e.option],
|
|
6870
6879
|
state: e.state
|
|
6871
6880
|
}).get(e.option.value) ?? {
|
|
6872
6881
|
indeterminate: !1,
|
|
6873
6882
|
selected: !1
|
|
6874
|
-
},
|
|
6883
|
+
}, Gc = (e) => e.state.flatMap((t) => {
|
|
6875
6884
|
if (t.state !== "selected") return [];
|
|
6876
|
-
let n =
|
|
6885
|
+
let n = Sc(e.options, t.id);
|
|
6877
6886
|
if (n) return [n];
|
|
6878
|
-
let { field: r, value: i } =
|
|
6887
|
+
let { field: r, value: i } = wc(t.id, e.options);
|
|
6879
6888
|
return [{
|
|
6880
6889
|
colField: r,
|
|
6881
6890
|
label: i,
|
|
6882
6891
|
metadata: { rawValue: i },
|
|
6883
|
-
value: r ?
|
|
6892
|
+
value: r ? lc(r, i) : t.id
|
|
6884
6893
|
}];
|
|
6885
|
-
}),
|
|
6894
|
+
}), Kc = (e) => e.filter((e) => e.state === "selected").length, qc = ["open"], Jc = {
|
|
6886
6895
|
class: "pv-flex pv-text-body-md",
|
|
6887
6896
|
style: {
|
|
6888
6897
|
"--flex-align": "center",
|
|
6889
6898
|
"--flex-gap": "0.5rem"
|
|
6890
6899
|
}
|
|
6891
|
-
},
|
|
6900
|
+
}, Yc = {
|
|
6892
6901
|
class: "pv-flex-vertical pv-surface-accent pv-inset-inline-24",
|
|
6893
6902
|
style: { "--flex-align": "stretch" }
|
|
6894
|
-
},
|
|
6903
|
+
}, Xc = {
|
|
6895
6904
|
key: 0,
|
|
6896
6905
|
class: "pv-flex-vertical",
|
|
6897
6906
|
style: {
|
|
6898
6907
|
"--flex-align": "stretch",
|
|
6899
6908
|
"--flex-gap": "0.5rem"
|
|
6900
6909
|
}
|
|
6901
|
-
},
|
|
6910
|
+
}, Zc = {
|
|
6902
6911
|
key: 0,
|
|
6903
6912
|
class: "pv-flex",
|
|
6904
6913
|
style: {
|
|
6905
6914
|
"--flex-gap": "0.5rem",
|
|
6906
6915
|
"--flex-wrap": "wrap"
|
|
6907
6916
|
}
|
|
6908
|
-
},
|
|
6917
|
+
}, Qc = {
|
|
6909
6918
|
key: 1,
|
|
6910
6919
|
class: "pv-flex",
|
|
6911
6920
|
style: { "--flex-justify": "flex-end" }
|
|
6912
|
-
},
|
|
6921
|
+
}, $c = {
|
|
6913
6922
|
key: 2,
|
|
6914
6923
|
class: "pv-flex-vertical",
|
|
6915
6924
|
style: {
|
|
6916
6925
|
"--flex-align": "stretch",
|
|
6917
6926
|
"--flex-gap": "0.5rem"
|
|
6918
6927
|
}
|
|
6919
|
-
},
|
|
6928
|
+
}, el = { key: 3 }, tl = {
|
|
6920
6929
|
key: 1,
|
|
6921
6930
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6922
6931
|
style: { margin: "0" }
|
|
6923
|
-
},
|
|
6932
|
+
}, nl = {
|
|
6924
6933
|
key: 1,
|
|
6925
6934
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6926
6935
|
style: { margin: "0" }
|
|
6927
|
-
},
|
|
6936
|
+
}, rl = {
|
|
6928
6937
|
key: 2,
|
|
6929
6938
|
class: "pv-flex-vertical",
|
|
6930
6939
|
style: {
|
|
6931
6940
|
"--flex-align": "stretch",
|
|
6932
6941
|
"--flex-gap": "0.5rem"
|
|
6933
6942
|
}
|
|
6934
|
-
},
|
|
6943
|
+
}, il = { key: 0 }, al = {
|
|
6935
6944
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
6936
6945
|
style: { margin: "0" }
|
|
6937
|
-
},
|
|
6946
|
+
}, ol = {
|
|
6938
6947
|
key: 1,
|
|
6939
6948
|
class: "pv-text-title-sm pv-text-subdued",
|
|
6940
6949
|
style: { margin: "0" }
|
|
6941
|
-
},
|
|
6950
|
+
}, sl = {
|
|
6942
6951
|
key: 2,
|
|
6943
6952
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6944
6953
|
style: { margin: "0" }
|
|
6945
|
-
},
|
|
6954
|
+
}, cl = {
|
|
6946
6955
|
key: 3,
|
|
6947
6956
|
class: "pv-flex-vertical",
|
|
6948
6957
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -6950,14 +6959,14 @@ var Li = {
|
|
|
6950
6959
|
"--flex-align": "stretch",
|
|
6951
6960
|
"--flex-gap": "0.5rem"
|
|
6952
6961
|
}
|
|
6953
|
-
},
|
|
6962
|
+
}, ll = {
|
|
6954
6963
|
class: "pv-flex",
|
|
6955
6964
|
style: {
|
|
6956
6965
|
"--flex-align": "center",
|
|
6957
6966
|
"--flex-gap": "0.5rem",
|
|
6958
6967
|
"--flex-wrap": "wrap"
|
|
6959
6968
|
}
|
|
6960
|
-
},
|
|
6969
|
+
}, ul = {
|
|
6961
6970
|
key: 4,
|
|
6962
6971
|
class: "pv-flex",
|
|
6963
6972
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -6966,7 +6975,7 @@ var Li = {
|
|
|
6966
6975
|
"--flex-gap": "0.5rem",
|
|
6967
6976
|
cursor: "pointer"
|
|
6968
6977
|
}
|
|
6969
|
-
},
|
|
6978
|
+
}, dl = { class: "pv-text-body-sm" }, fl = 5, pl = 500, ml = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
6970
6979
|
__name: "PvFilterPanelAccordion",
|
|
6971
6980
|
props: { filter: {} },
|
|
6972
6981
|
emits: [
|
|
@@ -6978,7 +6987,7 @@ var Li = {
|
|
|
6978
6987
|
"search-change"
|
|
6979
6988
|
],
|
|
6980
6989
|
setup(e, { emit: n }) {
|
|
6981
|
-
let c = e, d = n, f = k({}), p = L(), m = k(c.filter.searchQuery ?? ""), h = k(
|
|
6990
|
+
let c = e, d = n, f = k({}), p = L(), m = k(c.filter.searchQuery ?? ""), h = k(fl), g = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), v = r(() => c.filter.valueLabels?.false ?? "No"), y = r(() => c.filter.options ?? []), S = r(() => [...c.filter.knownOptions ?? [], ...y.value]), C = r(() => c.filter.type ?? "value"), w = r(() => C.value === "value"), T = r(() => w.value && c.filter.isAggregate === !0), E = r(() => c.filter.aggregateSelectionState ?? []), O = r(() => m.value.trim().toLowerCase()), j = r(() => c.filter.selectedValues ?? []), ee = r(() => new Set(j.value)), N = r(() => c.filter.valueLabels?.true ?? "Yes"), I = r(() => c.filter.filterOptionsSortDescription || "Suggested"), R = (e) => {
|
|
6982
6991
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
6983
6992
|
return [
|
|
6984
6993
|
e.value,
|
|
@@ -6988,7 +6997,7 @@ var Li = {
|
|
|
6988
6997
|
e.matchedValue,
|
|
6989
6998
|
e.matchedField
|
|
6990
6999
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
6991
|
-
}, z = r(() => C.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 : C.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : C.value === "exists" ? c.filter.existsValue ? 1 : void 0 : T.value ?
|
|
7000
|
+
}, z = r(() => C.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 : C.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : C.value === "exists" ? c.filter.existsValue ? 1 : void 0 : T.value ? Kc(E.value) || void 0 : j.value.length || void 0), te = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), B = (e, t = 0) => e.flatMap((e) => [
|
|
6992
7001
|
{
|
|
6993
7002
|
depth: t,
|
|
6994
7003
|
kind: "option",
|
|
@@ -7006,16 +7015,16 @@ var Li = {
|
|
|
7006
7015
|
}), ne = r(() => T.value || c.filter.singleSelect ? [] : j.value.map((e) => f.value[e] ?? {
|
|
7007
7016
|
label: e,
|
|
7008
7017
|
value: e
|
|
7009
|
-
})), H = r(() => T.value || c.filter.singleSelect ? V.value : V.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), U = r(() => H.value.length > h.value), re = r(() => U.value || c.filter.hasMore), K = r(() => H.value.slice(0, h.value)), ie = r(() => T.value ?
|
|
7018
|
+
})), H = r(() => T.value || c.filter.singleSelect ? V.value : V.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), U = r(() => H.value.length > h.value), re = r(() => U.value || c.filter.hasMore), K = r(() => H.value.slice(0, h.value)), ie = r(() => T.value ? Uc({
|
|
7010
7019
|
options: S.value,
|
|
7011
7020
|
state: E.value
|
|
7012
|
-
}) : /* @__PURE__ */ new Map()), q = (e) =>
|
|
7021
|
+
}) : /* @__PURE__ */ new Map()), q = (e) => nc(e, c.filter.colDef), ae = (e) => rc(e), J = (e) => T.value ? ie.value.get(e.value) ?? {
|
|
7013
7022
|
indeterminate: !1,
|
|
7014
7023
|
selected: !1
|
|
7015
7024
|
} : {
|
|
7016
7025
|
indeterminate: !1,
|
|
7017
7026
|
selected: ee.value.has(e.value)
|
|
7018
|
-
}, oe = (e) => J(e).selected, se = (e) => J(e).indeterminate, ce = (e) =>
|
|
7027
|
+
}, oe = (e) => J(e).selected, se = (e) => J(e).indeterminate, ce = (e) => uc(e) ?? e.value, le = (e) => dc(e, c.filter.key), Y = (e) => {
|
|
7019
7028
|
let t = le(e), n = ce(e);
|
|
7020
7029
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
7021
7030
|
}, de = (e) => ({
|
|
@@ -7044,7 +7053,7 @@ var Li = {
|
|
|
7044
7053
|
rowsLoading: c.filter.isLoading
|
|
7045
7054
|
}
|
|
7046
7055
|
})), he = () => {
|
|
7047
|
-
U.value ? h.value +=
|
|
7056
|
+
U.value ? h.value += fl : c.filter.hasMore && d("load-more", m.value.trim());
|
|
7048
7057
|
}, ge = (e) => {
|
|
7049
7058
|
d("load-more", m.value.trim(), e.value);
|
|
7050
7059
|
}, _e = (e) => {
|
|
@@ -7069,7 +7078,7 @@ var Li = {
|
|
|
7069
7078
|
if (T.value) {
|
|
7070
7079
|
d("filter-change", {
|
|
7071
7080
|
type: "aggregate-selection",
|
|
7072
|
-
value:
|
|
7081
|
+
value: Vc({
|
|
7073
7082
|
checked: t,
|
|
7074
7083
|
option: e,
|
|
7075
7084
|
options: S.value,
|
|
@@ -7096,12 +7105,12 @@ var Li = {
|
|
|
7096
7105
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
7097
7106
|
};
|
|
7098
7107
|
W([m, () => c.filter.key], () => {
|
|
7099
|
-
h.value =
|
|
7108
|
+
h.value = fl;
|
|
7100
7109
|
});
|
|
7101
7110
|
let Te = () => {
|
|
7102
|
-
let e =
|
|
7111
|
+
let e = fc(S.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
7103
7112
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
7104
|
-
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
7113
|
+
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - pl)));
|
|
7105
7114
|
};
|
|
7106
7115
|
return W(S, () => {
|
|
7107
7116
|
c.filter.isOpen && Te();
|
|
@@ -7122,7 +7131,7 @@ var Li = {
|
|
|
7122
7131
|
"data-testid": "pv-filter-panel-accordion",
|
|
7123
7132
|
open: e.filter.isOpen,
|
|
7124
7133
|
onToggle: _e
|
|
7125
|
-
}, [s("summary",
|
|
7134
|
+
}, [s("summary", Jc, [
|
|
7126
7135
|
u(X, {
|
|
7127
7136
|
"aria-hidden": "true",
|
|
7128
7137
|
class: "pv-text-subdued",
|
|
@@ -7135,9 +7144,9 @@ var Li = {
|
|
|
7135
7144
|
size: "sm",
|
|
7136
7145
|
variant: "secondary"
|
|
7137
7146
|
}, null, 8, ["value"])) : a("", !0)
|
|
7138
|
-
]), s("div",
|
|
7139
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div",
|
|
7140
|
-
e.filter.filterGroupOptions?.length ? (D(), o("div",
|
|
7147
|
+
]), s("div", Yc, [w.value ? (D(), o(t, { key: 0 }, [
|
|
7148
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div", Xc, [
|
|
7149
|
+
e.filter.filterGroupOptions?.length ? (D(), o("div", Zc, [(D(!0), o(t, null, A(e.filter.filterGroupOptions, (t) => (D(), i(Q, {
|
|
7141
7150
|
key: t.field,
|
|
7142
7151
|
disabled: e.filter.disabled,
|
|
7143
7152
|
label: t.label,
|
|
@@ -7150,7 +7159,7 @@ var Li = {
|
|
|
7150
7159
|
"variant",
|
|
7151
7160
|
"onClick"
|
|
7152
7161
|
]))), 128))])) : a("", !0),
|
|
7153
|
-
e.filter.displayPreferencesIcon ? (D(), o("div",
|
|
7162
|
+
e.filter.displayPreferencesIcon ? (D(), o("div", Qc, [u(Q, {
|
|
7154
7163
|
ariaLabel: "Open preferences",
|
|
7155
7164
|
disabled: e.filter.disabled,
|
|
7156
7165
|
leftIcon: "sliders-horizontal",
|
|
@@ -7172,7 +7181,7 @@ var Li = {
|
|
|
7172
7181
|
"disabled",
|
|
7173
7182
|
"placeholder"
|
|
7174
7183
|
])),
|
|
7175
|
-
ne.value.length ? (D(), o("div",
|
|
7184
|
+
ne.value.length ? (D(), o("div", $c, [(D(!0), o(t, null, A(ne.value, (t) => (D(), i(Ks, {
|
|
7176
7185
|
key: t.value,
|
|
7177
7186
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
7178
7187
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
@@ -7209,10 +7218,10 @@ var Li = {
|
|
|
7209
7218
|
"onFocusValue",
|
|
7210
7219
|
"onToggleValue"
|
|
7211
7220
|
]))), 128))])) : a("", !0),
|
|
7212
|
-
e.filter.isLoading ? (D(), o("div",
|
|
7213
|
-
!y.value.length && !ne.value.length && !re.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(M(e.filter.emptyResultsRenderer), _({ key: 0 }, me.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p",
|
|
7214
|
-
H.value.length || re.value ? (D(), o("div",
|
|
7215
|
-
H.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div",
|
|
7221
|
+
e.filter.isLoading ? (D(), o("div", el, [u(ke, { size: "sm" })])) : (D(), o(t, { key: 4 }, [
|
|
7222
|
+
!y.value.length && !ne.value.length && !re.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(M(e.filter.emptyResultsRenderer), _({ key: 0 }, me.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", tl, "No values available."))], 64)) : !V.value.length && !ne.value.length && !re.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(M(e.filter.emptyResultsRenderer), _({ key: 0 }, me.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", nl, "No matching values."))], 64)) : a("", !0),
|
|
7223
|
+
H.value.length || re.value ? (D(), o("div", rl, [
|
|
7224
|
+
H.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", il, [e.filter.filterOptionsSortTooltip ? (D(), i(qn, {
|
|
7216
7225
|
key: 0,
|
|
7217
7226
|
variant: "dark",
|
|
7218
7227
|
disableInteractive: !0,
|
|
@@ -7221,11 +7230,11 @@ var Li = {
|
|
|
7221
7230
|
"use-teleport": !0,
|
|
7222
7231
|
style: { "--max-width": "200px" }
|
|
7223
7232
|
}, {
|
|
7224
|
-
trigger: G(() => [s("p",
|
|
7233
|
+
trigger: G(() => [s("p", al, P(I.value), 1)]),
|
|
7225
7234
|
content: G(() => [l(P(e.filter.filterOptionsSortTooltip), 1)]),
|
|
7226
7235
|
_: 1
|
|
7227
|
-
})) : (D(), o("p",
|
|
7228
|
-
(D(!0), o(t, null, A(K.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(
|
|
7236
|
+
})) : (D(), o("p", ol, P(I.value), 1))])) : a("", !0),
|
|
7237
|
+
(D(!0), o(t, null, A(K.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(Ks, {
|
|
7229
7238
|
key: 0,
|
|
7230
7239
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
7231
7240
|
depth: n.depth,
|
|
@@ -7292,7 +7301,7 @@ var Li = {
|
|
|
7292
7301
|
])) : a("", !0),
|
|
7293
7302
|
e.filter.filterFooterRenderer ? (D(), i(M(e.filter.filterFooterRenderer), b(_({ key: 3 }, me.value)), null, 16)) : a("", !0)
|
|
7294
7303
|
], 64))
|
|
7295
|
-
], 64)) : C.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(
|
|
7304
|
+
], 64)) : C.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(zs, {
|
|
7296
7305
|
key: 1,
|
|
7297
7306
|
mode: "dual",
|
|
7298
7307
|
rangeValue: e.filter.rangeValue,
|
|
@@ -7313,7 +7322,7 @@ var Li = {
|
|
|
7313
7322
|
"min",
|
|
7314
7323
|
"step",
|
|
7315
7324
|
"value-decimals"
|
|
7316
|
-
])) : C.value === "range" ? (D(), o("p",
|
|
7325
|
+
])) : C.value === "range" ? (D(), o("p", sl, " Range filters require minimum and maximum bounds. ")) : C.value === "boolean" ? (D(), o("div", cl, [s("div", ll, [u(Q, {
|
|
7317
7326
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
7318
7327
|
label: N.value,
|
|
7319
7328
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
@@ -7338,37 +7347,37 @@ var Li = {
|
|
|
7338
7347
|
label: "Clear",
|
|
7339
7348
|
variant: "ghost",
|
|
7340
7349
|
onClick: r[3] ||= (e) => ve(null)
|
|
7341
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : C.value === "exists" ? (D(), o("label",
|
|
7350
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : C.value === "exists" ? (D(), o("label", ul, [u(po, {
|
|
7342
7351
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
7343
7352
|
modelValue: e.filter.existsValue ?? !1,
|
|
7344
7353
|
"onUpdate:modelValue": ye
|
|
7345
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
7354
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", dl, P(g.value), 1)])) : a("", !0)])], 40, qc));
|
|
7346
7355
|
}
|
|
7347
|
-
}), [["__scopeId", "data-v-9a452be9"]]),
|
|
7356
|
+
}), [["__scopeId", "data-v-9a452be9"]]), hl = {
|
|
7348
7357
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
7349
7358
|
"data-testid": "pv-filter-panel-applied-section",
|
|
7350
7359
|
style: {
|
|
7351
7360
|
"--flex-align": "stretch",
|
|
7352
7361
|
"--flex-gap": "1rem"
|
|
7353
7362
|
}
|
|
7354
|
-
},
|
|
7363
|
+
}, gl = {
|
|
7355
7364
|
key: 0,
|
|
7356
7365
|
class: "pv-flex-vertical",
|
|
7357
7366
|
style: {
|
|
7358
7367
|
"--flex-align": "stretch",
|
|
7359
7368
|
"--flex-gap": "1rem"
|
|
7360
7369
|
}
|
|
7361
|
-
},
|
|
7370
|
+
}, _l = { class: "pv-text-title-md" }, vl = {
|
|
7362
7371
|
class: "pv-flex",
|
|
7363
7372
|
style: {
|
|
7364
7373
|
"--flex-gap": "0.375rem",
|
|
7365
7374
|
"--flex-wrap": "wrap"
|
|
7366
7375
|
}
|
|
7367
|
-
},
|
|
7376
|
+
}, yl = {
|
|
7368
7377
|
key: 1,
|
|
7369
7378
|
class: "pv-text-body-sm pv-text-subdued",
|
|
7370
7379
|
style: { margin: "0" }
|
|
7371
|
-
},
|
|
7380
|
+
}, bl = /* @__PURE__ */ d({
|
|
7372
7381
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
7373
7382
|
props: {
|
|
7374
7383
|
appliedCount: { default: 0 },
|
|
@@ -7383,7 +7392,7 @@ var Li = {
|
|
|
7383
7392
|
let r = n, a = (e, t) => {
|
|
7384
7393
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
7385
7394
|
};
|
|
7386
|
-
return (n, r) => (D(), o("section",
|
|
7395
|
+
return (n, r) => (D(), o("section", hl, [e.appliedCount ? (D(), o("div", gl, [(D(!0), o(t, null, A(e.appliedGroups, (n) => (D(), o("div", {
|
|
7387
7396
|
key: n.key,
|
|
7388
7397
|
class: "pv-flex-vertical pv-border-bottom",
|
|
7389
7398
|
style: {
|
|
@@ -7391,7 +7400,7 @@ var Li = {
|
|
|
7391
7400
|
"--flex-gap": "12px",
|
|
7392
7401
|
"padding-bottom": "12px"
|
|
7393
7402
|
}
|
|
7394
|
-
}, [s("span",
|
|
7403
|
+
}, [s("span", _l, P(n.label), 1), s("div", vl, [(D(!0), o(t, null, A(n.values, (t) => (D(), i(lr, {
|
|
7395
7404
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
7396
7405
|
label: t.label,
|
|
7397
7406
|
showClear: !e.readOnly,
|
|
@@ -7400,9 +7409,9 @@ var Li = {
|
|
|
7400
7409
|
"label",
|
|
7401
7410
|
"showClear",
|
|
7402
7411
|
"onHandleClose"
|
|
7403
|
-
]))), 128))])]))), 128))])) : (D(), o("p",
|
|
7412
|
+
]))), 128))])]))), 128))])) : (D(), o("p", yl, "No filters applied yet."))]));
|
|
7404
7413
|
}
|
|
7405
|
-
}),
|
|
7414
|
+
}), xl = { class: "pv-horizontal-scroller" }, Sl = ["aria-label"], Cl = 1, wl = /* @__PURE__ */ d({
|
|
7406
7415
|
__name: "PvHorizontalScroller",
|
|
7407
7416
|
props: {
|
|
7408
7417
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -7426,7 +7435,7 @@ var Li = {
|
|
|
7426
7435
|
let e = u.value;
|
|
7427
7436
|
if (!e) return;
|
|
7428
7437
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
7429
|
-
n.value = e.scrollLeft >
|
|
7438
|
+
n.value = e.scrollLeft > Cl, c.value = e.scrollLeft < t - Cl;
|
|
7430
7439
|
}, h = () => {
|
|
7431
7440
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
7432
7441
|
}, g = () => {
|
|
@@ -7446,7 +7455,7 @@ var Li = {
|
|
|
7446
7455
|
h(), g();
|
|
7447
7456
|
}), S(() => {
|
|
7448
7457
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
7449
|
-
}), (t, r) => (D(), o("div",
|
|
7458
|
+
}), (t, r) => (D(), o("div", xl, [
|
|
7450
7459
|
s("div", {
|
|
7451
7460
|
ref_key: "scrollContainer",
|
|
7452
7461
|
ref: u,
|
|
@@ -7457,7 +7466,7 @@ var Li = {
|
|
|
7457
7466
|
ref_key: "contentContainer",
|
|
7458
7467
|
ref: l,
|
|
7459
7468
|
class: "pv-horizontal-scroller-content"
|
|
7460
|
-
}, [j(t.$slots, "default")], 512)], 10,
|
|
7469
|
+
}, [j(t.$slots, "default")], 512)], 10, Sl),
|
|
7461
7470
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
7462
7471
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
7463
7472
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -7490,18 +7499,18 @@ var Li = {
|
|
|
7490
7499
|
])) : a("", !0)], 2)
|
|
7491
7500
|
]));
|
|
7492
7501
|
}
|
|
7493
|
-
}),
|
|
7502
|
+
}), Tl = {
|
|
7494
7503
|
key: 0,
|
|
7495
7504
|
class: "pv-border-bottom",
|
|
7496
7505
|
"data-testid": "pv-filter-panel-category-row"
|
|
7497
|
-
},
|
|
7506
|
+
}, El = {
|
|
7498
7507
|
class: "pv-flex",
|
|
7499
7508
|
style: {
|
|
7500
7509
|
"--flex-align": "center",
|
|
7501
7510
|
"--flex-gap": "8px",
|
|
7502
7511
|
padding: "8px 12px"
|
|
7503
7512
|
}
|
|
7504
|
-
},
|
|
7513
|
+
}, Dl = /* @__PURE__ */ d({
|
|
7505
7514
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
7506
7515
|
props: /* @__PURE__ */ g({
|
|
7507
7516
|
categoryOrder: {},
|
|
@@ -7522,7 +7531,7 @@ var Li = {
|
|
|
7522
7531
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
7523
7532
|
return W(l, (e) => {
|
|
7524
7533
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
7525
|
-
}, { immediate: !0 }), (e, n) => l.value.length ? (D(), o("div",
|
|
7534
|
+
}, { immediate: !0 }), (e, n) => l.value.length ? (D(), o("div", Tl, [u(wl, {
|
|
7526
7535
|
ariaLabel: "Filter categories",
|
|
7527
7536
|
buttonSize: "md",
|
|
7528
7537
|
buttonVariant: "ghost",
|
|
@@ -7531,7 +7540,7 @@ var Li = {
|
|
|
7531
7540
|
rightAriaLabel: "Scroll filter categories right",
|
|
7532
7541
|
showFades: ""
|
|
7533
7542
|
}, {
|
|
7534
|
-
default: G(() => [s("div",
|
|
7543
|
+
default: G(() => [s("div", El, [u(Q, {
|
|
7535
7544
|
label: "All",
|
|
7536
7545
|
size: "md",
|
|
7537
7546
|
variant: f(null),
|
|
@@ -7550,17 +7559,17 @@ var Li = {
|
|
|
7550
7559
|
_: 1
|
|
7551
7560
|
})])) : a("", !0);
|
|
7552
7561
|
}
|
|
7553
|
-
}),
|
|
7562
|
+
}), Ol = (e, t, n) => {
|
|
7554
7563
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
7555
7564
|
if (r.length <= 1) return "Search";
|
|
7556
7565
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
7557
7566
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
7558
|
-
},
|
|
7559
|
-
if (!r ||
|
|
7567
|
+
}, kl = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Al = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
7568
|
+
if (!r || kl(i) === kl(r)) return e;
|
|
7560
7569
|
if (!a || !n) return r;
|
|
7561
7570
|
let o = t(n);
|
|
7562
7571
|
return o ? `${o}: ${r}` : r;
|
|
7563
|
-
},
|
|
7572
|
+
}, jl = () => ({
|
|
7564
7573
|
booleanValue: null,
|
|
7565
7574
|
existsValue: !1,
|
|
7566
7575
|
rangeValue: {
|
|
@@ -7568,15 +7577,15 @@ var Li = {
|
|
|
7568
7577
|
min: null
|
|
7569
7578
|
},
|
|
7570
7579
|
values: []
|
|
7571
|
-
}),
|
|
7572
|
-
conditions: e.conditions.map(
|
|
7580
|
+
}), Ml = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nl = (e) => Ml(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", Pl = (e) => Ml(e) && e.filterType === "join" && Array.isArray(e.conditions), Fl = (e) => e, Il = (e) => Pl(e) ? {
|
|
7581
|
+
conditions: e.conditions.map(Il),
|
|
7573
7582
|
filterType: "join",
|
|
7574
7583
|
type: e.type
|
|
7575
|
-
} : { ...e },
|
|
7576
|
-
if (!
|
|
7577
|
-
if (
|
|
7584
|
+
} : { ...e }, Ll = (e) => {
|
|
7585
|
+
if (!Ml(e)) return null;
|
|
7586
|
+
if (Pl(e)) {
|
|
7578
7587
|
let t = e.conditions.flatMap((e) => {
|
|
7579
|
-
let t =
|
|
7588
|
+
let t = Ll(e);
|
|
7580
7589
|
return t ? [t] : [];
|
|
7581
7590
|
});
|
|
7582
7591
|
return t.length ? {
|
|
@@ -7585,43 +7594,43 @@ var Li = {
|
|
|
7585
7594
|
type: e.type === "OR" ? "OR" : "AND"
|
|
7586
7595
|
} : null;
|
|
7587
7596
|
}
|
|
7588
|
-
return
|
|
7589
|
-
},
|
|
7597
|
+
return Nl(e) ? { ...e } : null;
|
|
7598
|
+
}, Rl = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, zl = (e) => Ml(e) && !Pl(e) && !Nl(e), Bl = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), Vl = {
|
|
7590
7599
|
number: "agNumberColumnFilter",
|
|
7591
7600
|
set: "agSetColumnFilter",
|
|
7592
7601
|
text: "agTextColumnFilter"
|
|
7593
|
-
},
|
|
7602
|
+
}, Hl = (e) => {
|
|
7594
7603
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
7595
7604
|
let t = e.filterParams;
|
|
7596
7605
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
7606
|
+
}, Ul = (e, t) => {
|
|
7607
|
+
let n = Hl(e), r = t.filterType ? Vl[t.filterType] : void 0;
|
|
7608
|
+
return r ? n.findIndex((e) => Ml(e) && e.filter === r) : -1;
|
|
7597
7609
|
}, Wl = (e, t) => {
|
|
7598
|
-
let n =
|
|
7599
|
-
return r ? n.findIndex((e) => Nl(e) && e.filter === r) : -1;
|
|
7600
|
-
}, Gl = (e, t) => {
|
|
7601
|
-
let n = Ul(e);
|
|
7610
|
+
let n = Hl(e);
|
|
7602
7611
|
if (!n.length) return null;
|
|
7603
|
-
let r = Array(n.length).fill(null), i =
|
|
7612
|
+
let r = Array(n.length).fill(null), i = Ul(e, t);
|
|
7604
7613
|
return i < 0 ? null : (r[i] = t, {
|
|
7605
7614
|
filterModels: r,
|
|
7606
7615
|
filterType: "multi"
|
|
7607
7616
|
});
|
|
7608
|
-
},
|
|
7609
|
-
if (!
|
|
7617
|
+
}, Gl = (e, t) => {
|
|
7618
|
+
if (!zl(e)) return null;
|
|
7610
7619
|
let n = e[t];
|
|
7611
|
-
return
|
|
7612
|
-
},
|
|
7620
|
+
return Ml(n) ? n : null;
|
|
7621
|
+
}, Kl = (e) => e ? Bl(e) ? e.filterModels.filter((e) => Ml(e)) : [e] : [], ql = (e) => zl(e) ? { ...e } : {}, Jl = (e) => Bl(e) ? {
|
|
7613
7622
|
...e,
|
|
7614
7623
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
7615
|
-
} : { ...e },
|
|
7616
|
-
let n =
|
|
7624
|
+
} : { ...e }, Yl = (e, t) => {
|
|
7625
|
+
let n = ql(e);
|
|
7617
7626
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
7618
|
-
},
|
|
7627
|
+
}, Xl = /* @__PURE__ */ new Set(), Zl = (e, t) => {
|
|
7619
7628
|
let n = `${e}:${t ?? "unknown"}`;
|
|
7620
|
-
|
|
7621
|
-
},
|
|
7622
|
-
let a =
|
|
7623
|
-
if (
|
|
7624
|
-
let o =
|
|
7629
|
+
Xl.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.`), Xl.add(n));
|
|
7630
|
+
}, Ql = (e, t, n, r, i) => {
|
|
7631
|
+
let a = Gl(e, t);
|
|
7632
|
+
if (Bl(a) && r) {
|
|
7633
|
+
let o = ql(e), s = Jl(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
7625
7634
|
if (!n) {
|
|
7626
7635
|
for (let e of l) c[e] = null;
|
|
7627
7636
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -7634,15 +7643,15 @@ var Li = {
|
|
|
7634
7643
|
c[e] = n;
|
|
7635
7644
|
for (let e of t) c[e] = null;
|
|
7636
7645
|
} else {
|
|
7637
|
-
let e =
|
|
7646
|
+
let e = Ul(i, n), r = c.findIndex((e) => !e), a = Hl(i).length > 0;
|
|
7638
7647
|
if (e >= 0) {
|
|
7639
7648
|
for (; c.length <= e;) c.push(null);
|
|
7640
|
-
c[e] &&
|
|
7649
|
+
c[e] && Zl(t, n.filterType), c[e] = n;
|
|
7641
7650
|
} else if (r >= 0) c[r] = n;
|
|
7642
7651
|
else if (!a) c.push(n);
|
|
7643
7652
|
else {
|
|
7644
7653
|
let e = Math.max(0, c.length - 1);
|
|
7645
|
-
|
|
7654
|
+
Zl(t, n.filterType), c[e] = n;
|
|
7646
7655
|
}
|
|
7647
7656
|
}
|
|
7648
7657
|
return o[t] = {
|
|
@@ -7650,54 +7659,54 @@ var Li = {
|
|
|
7650
7659
|
filterModels: c
|
|
7651
7660
|
}, o;
|
|
7652
7661
|
}
|
|
7653
|
-
if (!n) return
|
|
7654
|
-
let o =
|
|
7655
|
-
return o[t] =
|
|
7656
|
-
},
|
|
7662
|
+
if (!n) return Yl(e, t);
|
|
7663
|
+
let o = ql(e);
|
|
7664
|
+
return o[t] = Wl(i, n) ?? n, o;
|
|
7665
|
+
}, $l = (e, t) => {
|
|
7657
7666
|
if (e) {
|
|
7658
|
-
if (
|
|
7659
|
-
e.conditions.forEach((e) =>
|
|
7667
|
+
if (Pl(e)) {
|
|
7668
|
+
e.conditions.forEach((e) => $l(e, t));
|
|
7660
7669
|
return;
|
|
7661
7670
|
}
|
|
7662
7671
|
t(e);
|
|
7663
7672
|
}
|
|
7664
|
-
},
|
|
7665
|
-
if (!
|
|
7673
|
+
}, eu = (e, t) => Pl(e) ? e.conditions.length > 0 && e.conditions.every((e) => eu(e, t)) : e.colId === t, tu = (e) => {
|
|
7674
|
+
if (!Pl(e)) return e.colId;
|
|
7666
7675
|
let t = /* @__PURE__ */ new Set();
|
|
7667
|
-
return
|
|
7668
|
-
},
|
|
7669
|
-
if (!e ||
|
|
7670
|
-
if (!
|
|
7671
|
-
let n = e.conditions.flatMap((e) =>
|
|
7676
|
+
return $l(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
7677
|
+
}, nu = (e, t) => {
|
|
7678
|
+
if (!e || eu(e, t)) return null;
|
|
7679
|
+
if (!Pl(e) || e.type !== "AND") return Il(e);
|
|
7680
|
+
let n = e.conditions.flatMap((e) => eu(e, t) ? [] : [Il(e)]);
|
|
7672
7681
|
return n.length ? n.length === 1 ? n[0] : {
|
|
7673
7682
|
conditions: n,
|
|
7674
7683
|
filterType: e.filterType,
|
|
7675
7684
|
type: e.type
|
|
7676
7685
|
} : null;
|
|
7677
|
-
},
|
|
7678
|
-
let r =
|
|
7679
|
-
return n ? r ?
|
|
7686
|
+
}, ru = (e, t, n) => {
|
|
7687
|
+
let r = nu(Ll(e), t);
|
|
7688
|
+
return n ? r ? Pl(r) && r.type === "AND" ? Fl({
|
|
7680
7689
|
...r,
|
|
7681
7690
|
conditions: [...r.conditions, n]
|
|
7682
|
-
}) :
|
|
7691
|
+
}) : Fl({
|
|
7683
7692
|
conditions: [r, n],
|
|
7684
7693
|
filterType: "join",
|
|
7685
7694
|
type: "AND"
|
|
7686
|
-
}) :
|
|
7687
|
-
},
|
|
7695
|
+
}) : Fl(n) : Fl(r);
|
|
7696
|
+
}, iu = (e, t) => {
|
|
7688
7697
|
e.includes(t) || e.push(t);
|
|
7689
|
-
},
|
|
7698
|
+
}, au = (e) => {
|
|
7690
7699
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
7691
7700
|
let t = String(e.filter);
|
|
7692
7701
|
return t === "true" || t === "false";
|
|
7693
|
-
},
|
|
7702
|
+
}, ou = (e) => e.filterType === "boolean" || au(e), su = (e, t) => {
|
|
7694
7703
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7695
|
-
e.values.forEach((e) =>
|
|
7704
|
+
e.values.forEach((e) => iu(t.values, String(e)));
|
|
7696
7705
|
return;
|
|
7697
7706
|
}
|
|
7698
7707
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7699
7708
|
let n = String(e.filter);
|
|
7700
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7709
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), iu(t.values, n);
|
|
7701
7710
|
return;
|
|
7702
7711
|
}
|
|
7703
7712
|
if (e.filterType === "boolean") {
|
|
@@ -7721,7 +7730,7 @@ var Li = {
|
|
|
7721
7730
|
...t.rangeValue,
|
|
7722
7731
|
max: e.filter
|
|
7723
7732
|
}));
|
|
7724
|
-
},
|
|
7733
|
+
}, cu = (e, t) => {
|
|
7725
7734
|
if (e.type === "notBlank") {
|
|
7726
7735
|
t.existsValue = !0;
|
|
7727
7736
|
return;
|
|
@@ -7731,12 +7740,12 @@ var Li = {
|
|
|
7731
7740
|
return;
|
|
7732
7741
|
}
|
|
7733
7742
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7734
|
-
e.values.forEach((e) =>
|
|
7743
|
+
e.values.forEach((e) => iu(t.values, String(e)));
|
|
7735
7744
|
return;
|
|
7736
7745
|
}
|
|
7737
7746
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7738
7747
|
let n = String(e.filter);
|
|
7739
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7748
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), iu(t.values, n);
|
|
7740
7749
|
return;
|
|
7741
7750
|
}
|
|
7742
7751
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -7749,29 +7758,29 @@ var Li = {
|
|
|
7749
7758
|
...t.rangeValue,
|
|
7750
7759
|
max: e.filter
|
|
7751
7760
|
}));
|
|
7752
|
-
},
|
|
7761
|
+
}, lu = (e, t = "advanced") => {
|
|
7753
7762
|
let n = /* @__PURE__ */ new Map();
|
|
7754
7763
|
if (t === "regular") {
|
|
7755
|
-
if (!
|
|
7764
|
+
if (!zl(e)) return n;
|
|
7756
7765
|
for (let [t, r] of Object.entries(e)) {
|
|
7757
|
-
let e =
|
|
7758
|
-
|
|
7766
|
+
let e = jl();
|
|
7767
|
+
Kl(r).forEach((t) => su(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
7759
7768
|
}
|
|
7760
7769
|
return n;
|
|
7761
7770
|
}
|
|
7762
|
-
let r =
|
|
7771
|
+
let r = Ll(e);
|
|
7763
7772
|
if (!r) return n;
|
|
7764
|
-
let i =
|
|
7773
|
+
let i = Pl(r) && r.type === "AND" ? r.conditions : [r];
|
|
7765
7774
|
for (let e of i) {
|
|
7766
|
-
let t =
|
|
7775
|
+
let t = tu(e);
|
|
7767
7776
|
if (!t) continue;
|
|
7768
|
-
let r = n.get(t) ??
|
|
7769
|
-
|
|
7770
|
-
e.colId === t &&
|
|
7777
|
+
let r = n.get(t) ?? jl();
|
|
7778
|
+
$l(e, (e) => {
|
|
7779
|
+
e.colId === t && cu(e, r);
|
|
7771
7780
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
7772
7781
|
}
|
|
7773
7782
|
return n;
|
|
7774
|
-
},
|
|
7783
|
+
}, uu = (e, t = "advanced") => t === "regular" ? zl(e) && Object.keys(e).length > 0 : Ll(e) !== null, du = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", fu = (e, t, n = "advanced") => n === "regular" ? Yl(e, t) : Fl(nu(Ll(e), t)), pu = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Ql(e, t, null, ou, a) : fu(e, t, r) : r === "regular" ? Ql(e, t, i === "text" ? {
|
|
7775
7784
|
filter: String(n),
|
|
7776
7785
|
filterType: "text",
|
|
7777
7786
|
type: "equals"
|
|
@@ -7779,30 +7788,30 @@ var Li = {
|
|
|
7779
7788
|
filter: n,
|
|
7780
7789
|
filterType: "boolean",
|
|
7781
7790
|
type: n ? "true" : "false"
|
|
7782
|
-
},
|
|
7791
|
+
}, ou, a) : i === "text" ? ru(e, t, {
|
|
7783
7792
|
colId: t,
|
|
7784
7793
|
filter: String(n),
|
|
7785
7794
|
filterType: "text",
|
|
7786
7795
|
type: "equals"
|
|
7787
|
-
}) :
|
|
7796
|
+
}) : ru(e, t, {
|
|
7788
7797
|
colId: t,
|
|
7789
7798
|
filterType: "boolean",
|
|
7790
7799
|
type: n ? "true" : "false"
|
|
7791
|
-
}),
|
|
7800
|
+
}), mu = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Ql(e, t, {
|
|
7792
7801
|
filterType: r,
|
|
7793
7802
|
type: "notBlank"
|
|
7794
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
7803
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : ru(e, t, {
|
|
7795
7804
|
colId: t,
|
|
7796
7805
|
filterType: r,
|
|
7797
7806
|
type: "notBlank"
|
|
7798
|
-
}) : i === "regular" ?
|
|
7799
|
-
let o =
|
|
7800
|
-
if (i === "regular") return o === null && s === null ?
|
|
7807
|
+
}) : i === "regular" ? Ql(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : fu(e, t, i), hu = (e, t, n, r, i = "advanced", a) => {
|
|
7808
|
+
let o = Rl(n), s = Rl(r);
|
|
7809
|
+
if (i === "regular") return o === null && s === null ? Ql(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Ql(e, t, {
|
|
7801
7810
|
filter: o,
|
|
7802
7811
|
filterTo: s,
|
|
7803
7812
|
filterType: "number",
|
|
7804
7813
|
type: "inRange"
|
|
7805
|
-
}, (e) => e.filterType === "number", a) :
|
|
7814
|
+
}, (e) => e.filterType === "number", a) : Ql(e, t, {
|
|
7806
7815
|
filter: o ?? s,
|
|
7807
7816
|
filterType: "number",
|
|
7808
7817
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -7818,29 +7827,29 @@ var Li = {
|
|
|
7818
7827
|
filter: s,
|
|
7819
7828
|
filterType: "number",
|
|
7820
7829
|
type: "lessThanOrEqual"
|
|
7821
|
-
}), c.length ?
|
|
7830
|
+
}), c.length ? ru(e, t, c.length === 1 ? c[0] : {
|
|
7822
7831
|
conditions: c,
|
|
7823
7832
|
filterType: "join",
|
|
7824
7833
|
type: "AND"
|
|
7825
|
-
}) :
|
|
7826
|
-
},
|
|
7834
|
+
}) : fu(e, t);
|
|
7835
|
+
}, gu = (e, t, n, r = "advanced", i) => {
|
|
7827
7836
|
let a = Array.from(new Set(n));
|
|
7828
|
-
if (r === "regular") return a.length ?
|
|
7837
|
+
if (r === "regular") return a.length ? Ql(e, t, {
|
|
7829
7838
|
filterType: "set",
|
|
7830
7839
|
values: a
|
|
7831
|
-
}, (e) => e.filterType === "set", i) :
|
|
7840
|
+
}, (e) => e.filterType === "set", i) : Ql(e, t, null, (e) => e.filterType === "set", i);
|
|
7832
7841
|
let o = a.map((e) => ({
|
|
7833
7842
|
colId: t,
|
|
7834
7843
|
filter: e,
|
|
7835
7844
|
filterType: "text",
|
|
7836
7845
|
type: "equals"
|
|
7837
7846
|
}));
|
|
7838
|
-
return o.length ?
|
|
7847
|
+
return o.length ? ru(e, t, o.length === 1 ? o[0] : {
|
|
7839
7848
|
conditions: o,
|
|
7840
7849
|
filterType: "join",
|
|
7841
7850
|
type: "OR"
|
|
7842
|
-
}) :
|
|
7843
|
-
},
|
|
7851
|
+
}) : fu(e, t);
|
|
7852
|
+
}, _u = Symbol("PvFilterStore"), vu = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, yu = (e, t) => t ?? e, bu = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), xu = (e) => {
|
|
7844
7853
|
let t = /* @__PURE__ */ new Map();
|
|
7845
7854
|
for (let n of e) {
|
|
7846
7855
|
if (!n) continue;
|
|
@@ -7852,34 +7861,34 @@ var Li = {
|
|
|
7852
7861
|
t.set(n.value, {
|
|
7853
7862
|
...e,
|
|
7854
7863
|
...n,
|
|
7855
|
-
children:
|
|
7856
|
-
totalChildCount:
|
|
7864
|
+
children: xu([...e.children ?? [], ...n.children ?? []]),
|
|
7865
|
+
totalChildCount: yu(e.totalChildCount, n.totalChildCount)
|
|
7857
7866
|
});
|
|
7858
7867
|
}
|
|
7859
7868
|
return [...t.values()];
|
|
7860
|
-
},
|
|
7869
|
+
}, Su = (e, t) => {
|
|
7861
7870
|
for (let n of e ?? []) {
|
|
7862
7871
|
if (!n) continue;
|
|
7863
7872
|
if (n.value === t) return n;
|
|
7864
|
-
let e =
|
|
7873
|
+
let e = Su(n.children, t);
|
|
7865
7874
|
if (e) return e;
|
|
7866
7875
|
}
|
|
7867
|
-
},
|
|
7876
|
+
}, Cu = (e, t, n) => {
|
|
7868
7877
|
if (!e || t === null) return !1;
|
|
7869
7878
|
if (e.value === t) return !0;
|
|
7870
|
-
let r =
|
|
7871
|
-
return r !== null && r === t ||
|
|
7872
|
-
},
|
|
7873
|
-
let r =
|
|
7879
|
+
let r = uc(e);
|
|
7880
|
+
return r !== null && r === t || pc(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Cu(e, t, n)) ?? !1;
|
|
7881
|
+
}, wu = (e, t, n) => {
|
|
7882
|
+
let r = Su(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
7874
7883
|
return e.map((e) => e && (e.value === t ? {
|
|
7875
7884
|
...e,
|
|
7876
|
-
children:
|
|
7877
|
-
totalChildCount:
|
|
7885
|
+
children: xu([...e.children ?? [], ...i]),
|
|
7886
|
+
totalChildCount: yu(e.totalChildCount, r?.totalChildCount)
|
|
7878
7887
|
} : e.children?.length ? {
|
|
7879
7888
|
...e,
|
|
7880
|
-
children:
|
|
7889
|
+
children: wu(e.children, t, n).filter((e) => !!e)
|
|
7881
7890
|
} : e));
|
|
7882
|
-
},
|
|
7891
|
+
}, Tu = (e, t) => `${e}::${t}`, Eu = () => {
|
|
7883
7892
|
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k(), v = k({}), y = (e) => {
|
|
7884
7893
|
_.value = e;
|
|
7885
7894
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7888,11 +7897,11 @@ var Li = {
|
|
|
7888
7897
|
let r = n ? o : i;
|
|
7889
7898
|
r.value[e] = t;
|
|
7890
7899
|
}, w = () => {
|
|
7891
|
-
o.value =
|
|
7900
|
+
o.value = bu(i.value), s.value = bu(a.value);
|
|
7892
7901
|
}, T = () => {
|
|
7893
7902
|
o.value = {}, s.value = {};
|
|
7894
7903
|
}, E = () => {
|
|
7895
|
-
i.value =
|
|
7904
|
+
i.value = bu(o.value), a.value = bu(s.value), T();
|
|
7896
7905
|
}, D = (e, t) => {
|
|
7897
7906
|
c.value[e] = t;
|
|
7898
7907
|
}, O = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7914,7 +7923,7 @@ var Li = {
|
|
|
7914
7923
|
if (!o) return [];
|
|
7915
7924
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7916
7925
|
c.value[n.field] = s;
|
|
7917
|
-
let l = n.parentId ?
|
|
7926
|
+
let l = n.parentId ? Su(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? Tu(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
7918
7927
|
h.value[b] = x;
|
|
7919
7928
|
try {
|
|
7920
7929
|
let c = await o({
|
|
@@ -7925,17 +7934,17 @@ var Li = {
|
|
|
7925
7934
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7926
7935
|
});
|
|
7927
7936
|
if (h.value[b] !== x) return [];
|
|
7928
|
-
let l =
|
|
7937
|
+
let l = vu(c);
|
|
7929
7938
|
if (n.parentId) {
|
|
7930
|
-
let e =
|
|
7939
|
+
let e = Tu(n.field, n.parentId);
|
|
7931
7940
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7932
7941
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7933
7942
|
let _ = a.value[n.field] ?? [], y;
|
|
7934
|
-
y = n.parentId ?
|
|
7943
|
+
y = n.parentId ? wu(r.value[n.field] ?? [], n.parentId, l.values) : v ? xu([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
7935
7944
|
for (let e of _) {
|
|
7936
7945
|
if (!e) continue;
|
|
7937
|
-
let t =
|
|
7938
|
-
y.some((e) =>
|
|
7946
|
+
let t = uc(e) ?? e.value;
|
|
7947
|
+
y.some((e) => Cu(e, t, n.field)) || y.push(e);
|
|
7939
7948
|
}
|
|
7940
7949
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7941
7950
|
} finally {
|
|
@@ -7968,20 +7977,20 @@ var Li = {
|
|
|
7968
7977
|
stagedFilterSelectedMetadataMap: s,
|
|
7969
7978
|
stagedFilterSelectedValueMap: o
|
|
7970
7979
|
};
|
|
7971
|
-
},
|
|
7972
|
-
O(
|
|
7973
|
-
},
|
|
7980
|
+
}, Du = (e) => {
|
|
7981
|
+
O(_u, e);
|
|
7982
|
+
}, Ou = () => m(_u, null), ku = () => Ou() ?? Eu(), Au = "__range__", ju = "__boolean__", Mu = "__exists__", Nu = new Set([
|
|
7974
7983
|
"value",
|
|
7975
7984
|
"range",
|
|
7976
7985
|
"boolean",
|
|
7977
7986
|
"exists"
|
|
7978
7987
|
]);
|
|
7979
|
-
function
|
|
7988
|
+
function Pu(e, t, n) {
|
|
7980
7989
|
f();
|
|
7981
|
-
let i = k(t.value), a =
|
|
7990
|
+
let i = k(t.value), a = Eu(), o = Ou(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), u = r(() => !!(e.filterStore ?? o)), d = r(() => !u.value && !!e.filterOptionsHandler), p = r(() => e.filterStore ?? o ?? a), m = r(() => p.value === a), h = r(() => u.value || d.value), g = r(() => e.filterModelType ?? p.value?.filterModelType.value), _ = r(() => g.value ?? "advanced"), v = r(() => {
|
|
7982
7991
|
let n = p.value;
|
|
7983
7992
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
7984
|
-
}), y = r(() =>
|
|
7993
|
+
}), y = r(() => lu(v.value, _.value)), b = (e, t) => {
|
|
7985
7994
|
let n = e.applyFilterModel;
|
|
7986
7995
|
if (typeof n == "function") {
|
|
7987
7996
|
n(t);
|
|
@@ -8072,7 +8081,7 @@ function Fu(e, t, n) {
|
|
|
8072
8081
|
});
|
|
8073
8082
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
8074
8083
|
let t = D(e), n = t.filterPanelType;
|
|
8075
|
-
if (n &&
|
|
8084
|
+
if (n && Nu.has(n)) return n;
|
|
8076
8085
|
if (t.filterPanelRange) return "range";
|
|
8077
8086
|
if (t.dataType === "boolean") return "boolean";
|
|
8078
8087
|
if (e.filter) return "value";
|
|
@@ -8112,30 +8121,30 @@ function Fu(e, t, n) {
|
|
|
8112
8121
|
...r,
|
|
8113
8122
|
...i
|
|
8114
8123
|
].filter(Boolean)));
|
|
8115
|
-
}, G = (e) => _.value === "advanced" &&
|
|
8124
|
+
}, G = (e) => _.value === "advanced" && xc(e), K = (e, t) => G(e) ? jc({
|
|
8116
8125
|
colDef: e,
|
|
8117
8126
|
model: v.value,
|
|
8118
8127
|
options: t
|
|
8119
8128
|
}) : new Map(U(e).map((e) => [e, y.value.get(e)?.values ?? []])), ie = (e, t, n, r) => {
|
|
8120
8129
|
let i = /* @__PURE__ */ new Set();
|
|
8121
|
-
for (let t of
|
|
8130
|
+
for (let t of fc(r)) for (let [r, a] of n) for (let n of a) pc(t, r, n, e) && i.add(`${r}:${n}`);
|
|
8122
8131
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
8123
8132
|
colField: t === e ? void 0 : t,
|
|
8124
8133
|
label: n,
|
|
8125
8134
|
metadata: { rawValue: n },
|
|
8126
|
-
value: t === e ? n :
|
|
8135
|
+
value: t === e ? n : lc(t, n)
|
|
8127
8136
|
}]));
|
|
8128
8137
|
}, q = (e, t, n) => {
|
|
8129
8138
|
let r = /* @__PURE__ */ new Set();
|
|
8130
|
-
for (let i of
|
|
8131
|
-
let n =
|
|
8139
|
+
for (let i of fc(n)) {
|
|
8140
|
+
let n = dc(i, e), a = uc(i);
|
|
8132
8141
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
8133
8142
|
}
|
|
8134
8143
|
return Array.from(r);
|
|
8135
8144
|
}, ae = (t) => Object.fromEntries(U(t).map((t) => [t, e.focusedValues[t] ?? []])), J = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), oe = (e) => J(e)?.headerName ?? e, se = (e) => {
|
|
8136
8145
|
let t = D(e);
|
|
8137
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
8138
|
-
}, ce = (e, t) =>
|
|
8146
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Ol(O(e), t.queryColIds, oe);
|
|
8147
|
+
}, ce = (e, t) => Al({
|
|
8139
8148
|
fallbackSubText: e.subText,
|
|
8140
8149
|
getDisplayName: oe,
|
|
8141
8150
|
matchedField: e.matchedField,
|
|
@@ -8153,7 +8162,7 @@ function Fu(e, t, n) {
|
|
|
8153
8162
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
8154
8163
|
label: J(e)?.headerName ?? e
|
|
8155
8164
|
}));
|
|
8156
|
-
}, Y = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) => U(t.colDef).includes(e)), de = (e, t, n) =>
|
|
8165
|
+
}, Y = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) => U(t.colDef).includes(e)), de = (e, t, n) => fc(Y(e)?.knownOptions ?? []).find((r) => r.value === n || pc(r, t, n, e)), fe = r(() => e.colDefs.filter(P).map((t) => {
|
|
8157
8166
|
let n = O(t), r = D(t), i = ee(t), a = le(F(n), t), o = le(V(n), t), s = {
|
|
8158
8167
|
category: M(t),
|
|
8159
8168
|
colDef: t,
|
|
@@ -8209,7 +8218,7 @@ function Fu(e, t, n) {
|
|
|
8209
8218
|
...s,
|
|
8210
8219
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
8211
8220
|
};
|
|
8212
|
-
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) : K(t, c), d = ie(n, t, u, c), f = [...c, ...d], p = G(t) ?
|
|
8221
|
+
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) : K(t, c), d = ie(n, t, u, c), f = [...c, ...d], p = G(t) ? Ac({
|
|
8213
8222
|
colDef: t,
|
|
8214
8223
|
model: v.value,
|
|
8215
8224
|
options: f
|
|
@@ -8229,19 +8238,19 @@ function Fu(e, t, n) {
|
|
|
8229
8238
|
label: e.label,
|
|
8230
8239
|
values: t
|
|
8231
8240
|
}] : [];
|
|
8232
|
-
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() =>
|
|
8241
|
+
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => uu(v.value, _.value)), ge = r(() => he.value || me.value > 0), _e = (e) => {
|
|
8233
8242
|
let t = Y(e.field);
|
|
8234
8243
|
if (!t || t.type !== e.filter.type) return !0;
|
|
8235
8244
|
if (e.filter.type === "value") {
|
|
8236
8245
|
if (t.isAggregate && e.option) {
|
|
8237
|
-
let { selected: n } =
|
|
8246
|
+
let { selected: n } = Wc({
|
|
8238
8247
|
option: e.option,
|
|
8239
8248
|
options: t.knownOptions ?? [],
|
|
8240
8249
|
state: t.aggregateSelectionState ?? []
|
|
8241
8250
|
});
|
|
8242
8251
|
return e.filter.checked ? n : !n;
|
|
8243
8252
|
}
|
|
8244
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
8253
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? uc(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
8245
8254
|
return e.filter.checked ? a : !a;
|
|
8246
8255
|
}
|
|
8247
8256
|
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;
|
|
@@ -8255,14 +8264,14 @@ function Fu(e, t, n) {
|
|
|
8255
8264
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
8256
8265
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
8257
8266
|
if (!e) return !1;
|
|
8258
|
-
let r =
|
|
8267
|
+
let r = dc(e, t), i = uc(e) ?? e.value;
|
|
8259
8268
|
return r !== n || c.has(i);
|
|
8260
8269
|
});
|
|
8261
8270
|
if (i) {
|
|
8262
|
-
let e =
|
|
8271
|
+
let e = uc(i) ?? i.value, n = dc(i, t);
|
|
8263
8272
|
l.some((r) => {
|
|
8264
|
-
let i =
|
|
8265
|
-
return
|
|
8273
|
+
let i = uc(r) ?? r.value;
|
|
8274
|
+
return dc(r, t) === n && i === e;
|
|
8266
8275
|
}) || l.push(i);
|
|
8267
8276
|
}
|
|
8268
8277
|
o.value[t] = l;
|
|
@@ -8272,7 +8281,7 @@ function Fu(e, t, n) {
|
|
|
8272
8281
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
8273
8282
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
8274
8283
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
8275
|
-
a.value[t.key] =
|
|
8284
|
+
a.value[t.key] = Gc({
|
|
8276
8285
|
options: t.knownOptions ?? [],
|
|
8277
8286
|
state: n
|
|
8278
8287
|
});
|
|
@@ -8301,48 +8310,48 @@ function Fu(e, t, n) {
|
|
|
8301
8310
|
return t === null ? [] : [{
|
|
8302
8311
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
8303
8312
|
type: "boolean",
|
|
8304
|
-
value:
|
|
8313
|
+
value: ju
|
|
8305
8314
|
}];
|
|
8306
8315
|
}, Te = (e) => e.existsValue ? [{
|
|
8307
8316
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
8308
8317
|
type: "exists",
|
|
8309
|
-
value:
|
|
8318
|
+
value: Mu
|
|
8310
8319
|
}] : [], Ee = (e) => {
|
|
8311
8320
|
let t = e.rangeValue ?? {
|
|
8312
8321
|
max: null,
|
|
8313
8322
|
min: null
|
|
8314
8323
|
};
|
|
8315
8324
|
return t.min === null && t.max === null ? [] : [{
|
|
8316
|
-
label:
|
|
8325
|
+
label: $s(t.min, t.max, {
|
|
8317
8326
|
dataType: e.dataType,
|
|
8318
8327
|
valueDecimals: e.valueDecimals
|
|
8319
8328
|
}),
|
|
8320
8329
|
type: "range",
|
|
8321
|
-
value:
|
|
8330
|
+
value: Au
|
|
8322
8331
|
}];
|
|
8323
8332
|
}, De = (e, t, n) => {
|
|
8324
8333
|
let r = n.get(t) ?? null;
|
|
8325
8334
|
return {
|
|
8326
|
-
field: r ?
|
|
8327
|
-
label: r ?
|
|
8328
|
-
resultCount:
|
|
8335
|
+
field: r ? dc(r, e.key) : void 0,
|
|
8336
|
+
label: r ? nc(r, e.colDef) : t,
|
|
8337
|
+
resultCount: rc(r),
|
|
8329
8338
|
subText: r?.subText,
|
|
8330
8339
|
subduedText: r?.subduedText,
|
|
8331
8340
|
type: "value",
|
|
8332
|
-
value: r ?
|
|
8341
|
+
value: r ? uc(r) ?? r.value : t
|
|
8333
8342
|
};
|
|
8334
8343
|
}, Oe = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
8335
8344
|
field: e.field,
|
|
8336
8345
|
label: e.label,
|
|
8337
8346
|
type: "boolean",
|
|
8338
|
-
value:
|
|
8339
|
-
}] : []), ke = (e) =>
|
|
8347
|
+
value: ju
|
|
8348
|
+
}] : []), ke = (e) => Gc({
|
|
8340
8349
|
options: e.knownOptions ?? [],
|
|
8341
8350
|
state: e.aggregateSelectionState ?? []
|
|
8342
8351
|
}).map((t) => ({
|
|
8343
8352
|
field: e.key,
|
|
8344
|
-
label:
|
|
8345
|
-
resultCount:
|
|
8353
|
+
label: nc(t, e.colDef),
|
|
8354
|
+
resultCount: rc(t),
|
|
8346
8355
|
subText: t.subText,
|
|
8347
8356
|
subduedText: t.subduedText,
|
|
8348
8357
|
type: "value",
|
|
@@ -8353,7 +8362,7 @@ function Fu(e, t, n) {
|
|
|
8353
8362
|
if (e.type === "boolean") return we(e);
|
|
8354
8363
|
if (e.type === "exists") return Te(e);
|
|
8355
8364
|
if (e.isAggregate) return [...ke(e), ...Oe(e)];
|
|
8356
|
-
let t = new Map(
|
|
8365
|
+
let t = new Map(fc(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
8357
8366
|
return [...(e.selectedValues ?? []).map((n) => De(e, n, t)), ...Oe(e)];
|
|
8358
8367
|
}, je = () => {
|
|
8359
8368
|
ze(), Ce(null, "clear-all");
|
|
@@ -8365,9 +8374,9 @@ function Fu(e, t, n) {
|
|
|
8365
8374
|
ze();
|
|
8366
8375
|
let e = p.value;
|
|
8367
8376
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
8368
|
-
}, Pe = (e) =>
|
|
8377
|
+
}, Pe = (e) => du(Y(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
8369
8378
|
let r = Y(e);
|
|
8370
|
-
r?.isAggregate && (xe(r, t), Ce(
|
|
8379
|
+
r?.isAggregate && (xe(r, t), Ce(Oc({
|
|
8371
8380
|
baseModel: v.value,
|
|
8372
8381
|
colDef: r.colDef,
|
|
8373
8382
|
options: r.knownOptions ?? [],
|
|
@@ -8382,7 +8391,7 @@ function Fu(e, t, n) {
|
|
|
8382
8391
|
if (t.type === "value") {
|
|
8383
8392
|
let r = Y(e), i = de(e, n, t.value);
|
|
8384
8393
|
if (r?.isAggregate && i) {
|
|
8385
|
-
Fe(e,
|
|
8394
|
+
Fe(e, Vc({
|
|
8386
8395
|
checked: t.checked,
|
|
8387
8396
|
option: i,
|
|
8388
8397
|
options: r.knownOptions ?? [],
|
|
@@ -8398,10 +8407,10 @@ function Fu(e, t, n) {
|
|
|
8398
8407
|
return;
|
|
8399
8408
|
}
|
|
8400
8409
|
if (t.type === "boolean") {
|
|
8401
|
-
Ce(
|
|
8410
|
+
Ce(pu(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
8402
8411
|
return;
|
|
8403
8412
|
}
|
|
8404
|
-
Ce(
|
|
8413
|
+
Ce(mu(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
8405
8414
|
}, X = (e, t, n, r) => {
|
|
8406
8415
|
let i = p.value;
|
|
8407
8416
|
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;
|
|
@@ -8421,7 +8430,7 @@ function Fu(e, t, n) {
|
|
|
8421
8430
|
}, Z = (e, t, r) => {
|
|
8422
8431
|
n("load-more", e.key, e.colDef, t, r), Le(e, t, r ? "child-load-more" : "load-more", r);
|
|
8423
8432
|
}, Re = (e, t, n) => {
|
|
8424
|
-
Ce(
|
|
8433
|
+
Ce(hu(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
8425
8434
|
}, ze = () => {
|
|
8426
8435
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
8427
8436
|
l.clear();
|
|
@@ -8456,7 +8465,7 @@ function Fu(e, t, n) {
|
|
|
8456
8465
|
n("controlled-change", t, l, s.colDef);
|
|
8457
8466
|
return;
|
|
8458
8467
|
}
|
|
8459
|
-
be(t, r, l, a ? o : void 0), Ce(
|
|
8468
|
+
be(t, r, l, a ? o : void 0), Ce(gu(v.value, r, l, _.value, J(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
8460
8469
|
};
|
|
8461
8470
|
return {
|
|
8462
8471
|
resolvedFilters: fe,
|
|
@@ -8480,8 +8489,8 @@ function Fu(e, t, n) {
|
|
|
8480
8489
|
handleSearchChange: Ve,
|
|
8481
8490
|
handleSuggestionClick: (e) => {
|
|
8482
8491
|
if (e.filter.type === "value" && e.option) {
|
|
8483
|
-
let t = Y(e.field), n =
|
|
8484
|
-
t?.isAggregate ? Fe(e.field,
|
|
8492
|
+
let t = Y(e.field), n = dc(e.option, e.field), r = uc(e.option) ?? e.filter.value;
|
|
8493
|
+
t?.isAggregate ? Fe(e.field, Vc({
|
|
8485
8494
|
checked: e.filter.checked,
|
|
8486
8495
|
option: e.option,
|
|
8487
8496
|
options: t.knownOptions ?? [],
|
|
@@ -8492,21 +8501,21 @@ function Fu(e, t, n) {
|
|
|
8492
8501
|
},
|
|
8493
8502
|
removeAppliedFilter: (e, t, n) => {
|
|
8494
8503
|
let r = n ?? Y(e)?.type ?? "value";
|
|
8495
|
-
if (r === "range" || !n && t ===
|
|
8496
|
-
Ce(
|
|
8504
|
+
if (r === "range" || !n && t === Au) {
|
|
8505
|
+
Ce(hu(v.value, e, null, null, _.value, J(e) ?? Y(e)?.colDef), "remove-filter", e, "range");
|
|
8497
8506
|
return;
|
|
8498
8507
|
}
|
|
8499
|
-
if (r === "boolean" || !n && t ===
|
|
8500
|
-
Ce(
|
|
8508
|
+
if (r === "boolean" || !n && t === ju) {
|
|
8509
|
+
Ce(pu(v.value, e, null, _.value, "boolean", J(e) ?? Y(e)?.colDef), "remove-filter", e, "boolean");
|
|
8501
8510
|
return;
|
|
8502
8511
|
}
|
|
8503
|
-
if (r === "exists" || !n && t ===
|
|
8504
|
-
Ce(
|
|
8512
|
+
if (r === "exists" || !n && t === Mu) {
|
|
8513
|
+
Ce(mu(v.value, e, !1, "text", _.value, J(e) ?? Y(e)?.colDef), "remove-filter", e, "exists");
|
|
8505
8514
|
return;
|
|
8506
8515
|
}
|
|
8507
8516
|
let i = Y(e);
|
|
8508
8517
|
if (r === "value" && i?.isAggregate) {
|
|
8509
|
-
let e =
|
|
8518
|
+
let e = Sc(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? Vc({
|
|
8510
8519
|
checked: !1,
|
|
8511
8520
|
option: e,
|
|
8512
8521
|
options: i.knownOptions ?? [],
|
|
@@ -8516,34 +8525,34 @@ function Fu(e, t, n) {
|
|
|
8516
8525
|
return;
|
|
8517
8526
|
}
|
|
8518
8527
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
8519
|
-
be(Y(e)?.key ?? e, e, a), Ce(
|
|
8528
|
+
be(Y(e)?.key ?? e, e, a), Ce(gu(v.value, e, a, _.value, J(e) ?? Y(e)?.colDef), "remove-filter", e, "value");
|
|
8520
8529
|
}
|
|
8521
8530
|
};
|
|
8522
8531
|
}
|
|
8523
8532
|
//#endregion
|
|
8524
8533
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
8525
|
-
var
|
|
8534
|
+
var Fu = ["aria-label"], Iu = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, Lu = { class: "pv-filter-panel-body pv-flex-vertical" }, Ru = {
|
|
8526
8535
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
8527
8536
|
"data-testid": "pv-filter-panel-filters-view"
|
|
8528
|
-
},
|
|
8537
|
+
}, zu = {
|
|
8529
8538
|
key: 0,
|
|
8530
8539
|
"aria-label": "Filter suggestions",
|
|
8531
8540
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
8532
8541
|
"data-testid": "pv-filter-panel-suggestions"
|
|
8533
|
-
},
|
|
8542
|
+
}, Bu = { class: "pv-filter-panel-suggestion-tags pv-flex" }, Vu = {
|
|
8534
8543
|
key: 1,
|
|
8535
8544
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
8536
|
-
},
|
|
8545
|
+
}, Hu = {
|
|
8537
8546
|
key: 2,
|
|
8538
8547
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
8539
|
-
},
|
|
8548
|
+
}, Uu = {
|
|
8540
8549
|
key: 3,
|
|
8541
8550
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
8542
8551
|
style: { "--inset-size": "8px" }
|
|
8543
|
-
},
|
|
8552
|
+
}, Wu = {
|
|
8544
8553
|
key: 0,
|
|
8545
8554
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
8546
|
-
},
|
|
8555
|
+
}, Gu = { class: "pv-filter-panel-actions pv-flex" }, Ku = { class: "pv-filter-panel-actions pv-flex" }, qu = { class: "pv-text-body-sm" }, Ju = { class: "pv-filter-panel-modal-footer pv-flex" }, Yu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8547
8556
|
__name: "PvFilterPanel",
|
|
8548
8557
|
props: /* @__PURE__ */ g({
|
|
8549
8558
|
applyLabel: { default: "Apply" },
|
|
@@ -8621,7 +8630,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8621
8630
|
"suggestion-click"
|
|
8622
8631
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
8623
8632
|
setup(e, { emit: n }) {
|
|
8624
|
-
let c = e, l = R(e, "filterModel"), d = R(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: ee } =
|
|
8633
|
+
let c = e, l = R(e, "filterModel"), d = R(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: ee } = Pu(c, l, f), M = k("filters"), N = k({}), I = k(null), L = k(!1), z = k(!1), te = (e) => e.colDef.context?.filterCollapsedByDefault === !0, B = r(() => I.value === null ? p.value : p.value.filter((e) => e.category === I.value)), V = r(() => B.value.filter((e) => !te(e))), ne = r(() => B.value.filter(te)), H = r(() => L.value ? [...V.value, ...ne.value] : V.value), W = r(() => `${L.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), re = r(() => M.value === "filters" && ne.value.length > 0), ie = r(() => re.value || !c.readOnly && (g.value || c.staged)), q = r(() => H.value.map((e) => ({
|
|
8625
8634
|
...e,
|
|
8626
8635
|
isOpen: N.value[e.key] ?? e.isOpen ?? !1
|
|
8627
8636
|
}))), ae = r(() => [{
|
|
@@ -8655,7 +8664,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8655
8664
|
"aria-label": e.ariaLabel,
|
|
8656
8665
|
style: x(J.value)
|
|
8657
8666
|
}, [
|
|
8658
|
-
s("div",
|
|
8667
|
+
s("div", Iu, [u(vr, {
|
|
8659
8668
|
modelValue: M.value,
|
|
8660
8669
|
options: ae.value,
|
|
8661
8670
|
class: "pv-filter-panel-mode-control",
|
|
@@ -8669,8 +8678,8 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8669
8678
|
variant: "secondary",
|
|
8670
8679
|
onClick: r[0] ||= (e) => d.value = !0
|
|
8671
8680
|
}))]),
|
|
8672
|
-
s("div",
|
|
8673
|
-
!e.readOnly && F(_).length ? (D(), o("section",
|
|
8681
|
+
s("div", Lu, [K(s("div", Ru, [
|
|
8682
|
+
!e.readOnly && F(_).length ? (D(), o("section", zu, [r[6] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Bu, [(D(!0), o(t, null, A(F(_), (e) => (D(), i(Gr, {
|
|
8674
8683
|
key: F(C)(e),
|
|
8675
8684
|
icon: e.icon,
|
|
8676
8685
|
"icon-classes": e.iconClasses,
|
|
@@ -8683,7 +8692,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8683
8692
|
"onHandleClick"
|
|
8684
8693
|
]))), 128))])])) : a("", !0),
|
|
8685
8694
|
j(n.$slots, "suggestions", {}, void 0, !0),
|
|
8686
|
-
u(
|
|
8695
|
+
u(Dl, {
|
|
8687
8696
|
modelValue: I.value,
|
|
8688
8697
|
"onUpdate:modelValue": r[1] ||= (e) => I.value = e,
|
|
8689
8698
|
"category-order": e.categoryOrder,
|
|
@@ -8693,7 +8702,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8693
8702
|
"category-order",
|
|
8694
8703
|
"filters"
|
|
8695
8704
|
]),
|
|
8696
|
-
F(p).length ? B.value.length ? (D(), o("div",
|
|
8705
|
+
F(p).length ? B.value.length ? (D(), o("div", Uu, [(D(!0), o(t, null, A(q.value, (e) => (D(), i(ml, {
|
|
8697
8706
|
key: e.key,
|
|
8698
8707
|
filter: e,
|
|
8699
8708
|
onFilterChange: (t) => F(w)(e.key, t),
|
|
@@ -8708,8 +8717,8 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8708
8717
|
"onLoadMore",
|
|
8709
8718
|
"onOpenChange",
|
|
8710
8719
|
"onSearchChange"
|
|
8711
|
-
]))), 128))])) : (D(), o("div",
|
|
8712
|
-
], 512), [[U, M.value === "filters"]]), K(u(
|
|
8720
|
+
]))), 128))])) : (D(), o("div", Hu, " No filters in this category. ")) : (D(), o("div", Vu, " No filters available. "))
|
|
8721
|
+
], 512), [[U, M.value === "filters"]]), K(u(bl, {
|
|
8713
8722
|
"applied-count": F(h),
|
|
8714
8723
|
"applied-groups": F(m),
|
|
8715
8724
|
"read-only": e.readOnly,
|
|
@@ -8720,13 +8729,13 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8720
8729
|
"read-only",
|
|
8721
8730
|
"onRemoveFilter"
|
|
8722
8731
|
]), [[U, M.value === "applied"]])]),
|
|
8723
|
-
ie.value ? (D(), o("div",
|
|
8732
|
+
ie.value ? (D(), o("div", Wu, [s("div", Gu, [re.value ? (D(), i(Q, {
|
|
8724
8733
|
key: 0,
|
|
8725
8734
|
class: "pv-text-brand",
|
|
8726
8735
|
label: W.value,
|
|
8727
8736
|
variant: "ghost",
|
|
8728
8737
|
onClick: r[4] ||= (e) => L.value = !L.value
|
|
8729
|
-
}, null, 8, ["label"])) : a("", !0)]), s("div",
|
|
8738
|
+
}, null, 8, ["label"])) : a("", !0)]), s("div", Ku, [F(g) && !e.readOnly ? (D(), i(Q, {
|
|
8730
8739
|
key: 0,
|
|
8731
8740
|
class: "pv-text-brand",
|
|
8732
8741
|
label: e.clearAllLabel,
|
|
@@ -8741,14 +8750,14 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8741
8750
|
variant: "primary",
|
|
8742
8751
|
onClick: F(y)
|
|
8743
8752
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
8744
|
-
], 12,
|
|
8753
|
+
], 12, Fu)), u(jr, {
|
|
8745
8754
|
modelValue: z.value,
|
|
8746
8755
|
"onUpdate:modelValue": r[5] ||= (e) => z.value = e,
|
|
8747
8756
|
header: e.clearAllHeader,
|
|
8748
8757
|
style: { "--max-width": "440px" }
|
|
8749
8758
|
}, {
|
|
8750
|
-
body: G(() => [s("p",
|
|
8751
|
-
footer: G(() => [s("div",
|
|
8759
|
+
body: G(() => [s("p", qu, P(e.clearAllBody), 1)]),
|
|
8760
|
+
footer: G(() => [s("div", Ju, [u(Q, {
|
|
8752
8761
|
label: e.cancelLabel,
|
|
8753
8762
|
variant: "ghost",
|
|
8754
8763
|
onClick: ce
|
|
@@ -8760,16 +8769,16 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8760
8769
|
_: 1
|
|
8761
8770
|
}, 8, ["modelValue", "header"])], 64));
|
|
8762
8771
|
}
|
|
8763
|
-
}), [["__scopeId", "data-v-bc38ed4b"]]),
|
|
8772
|
+
}), [["__scopeId", "data-v-bc38ed4b"]]), Xu = ["for"], Zu = [
|
|
8764
8773
|
"id",
|
|
8765
8774
|
"type",
|
|
8766
8775
|
"value",
|
|
8767
8776
|
"name",
|
|
8768
8777
|
"disabled"
|
|
8769
|
-
],
|
|
8778
|
+
], Qu = { key: 0 }, $u = {
|
|
8770
8779
|
class: "pv-inset-square",
|
|
8771
8780
|
style: { "--inset-size": "0px 2px" }
|
|
8772
|
-
},
|
|
8781
|
+
}, ed = /* @__PURE__ */ d({
|
|
8773
8782
|
__name: "PvFilterModalSelectItem",
|
|
8774
8783
|
props: /* @__PURE__ */ g({
|
|
8775
8784
|
rounded: { type: Boolean },
|
|
@@ -8802,44 +8811,44 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8802
8811
|
value: e.value,
|
|
8803
8812
|
name: e.name,
|
|
8804
8813
|
disabled: e.disabled
|
|
8805
|
-
}, null, 8,
|
|
8806
|
-
e.label ? (D(), o("span",
|
|
8807
|
-
s("span",
|
|
8808
|
-
], 8,
|
|
8814
|
+
}, null, 8, Zu), [[V, n.value]]),
|
|
8815
|
+
e.label ? (D(), o("span", Qu, P(e.label), 1)) : a("", !0),
|
|
8816
|
+
s("span", $u, P(e.rightCounterBadge), 1)
|
|
8817
|
+
], 8, Xu));
|
|
8809
8818
|
}
|
|
8810
|
-
}),
|
|
8819
|
+
}), td = ["aria-label"], nd = {
|
|
8811
8820
|
class: "pv-filter-modal pv-flex",
|
|
8812
8821
|
style: {
|
|
8813
8822
|
"--flex-align": "stretch",
|
|
8814
8823
|
"--flex-gap": "0"
|
|
8815
8824
|
}
|
|
8816
|
-
},
|
|
8825
|
+
}, rd = {
|
|
8817
8826
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
8818
8827
|
"aria-label": "Filter categories",
|
|
8819
8828
|
style: { "--flex-gap": "0.25rem" }
|
|
8820
|
-
},
|
|
8829
|
+
}, id = {
|
|
8821
8830
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
8822
8831
|
style: {
|
|
8823
8832
|
"--flex-align": "stretch",
|
|
8824
8833
|
"--flex-gap": "0.75rem"
|
|
8825
8834
|
}
|
|
8826
|
-
},
|
|
8835
|
+
}, ad = {
|
|
8827
8836
|
key: 0,
|
|
8828
8837
|
class: "pv-inset-square-8"
|
|
8829
|
-
},
|
|
8838
|
+
}, od = {
|
|
8830
8839
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
8831
8840
|
style: {
|
|
8832
8841
|
"--flex-align": "stretch",
|
|
8833
8842
|
"--flex-gap": "0.25rem"
|
|
8834
8843
|
}
|
|
8835
|
-
},
|
|
8844
|
+
}, sd = {
|
|
8836
8845
|
key: 0,
|
|
8837
8846
|
class: "pv-text-body-xs pv-text-subdued",
|
|
8838
8847
|
style: { margin: "0" }
|
|
8839
|
-
},
|
|
8848
|
+
}, cd = {
|
|
8840
8849
|
key: 2,
|
|
8841
8850
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
8842
|
-
},
|
|
8851
|
+
}, ld = {
|
|
8843
8852
|
key: 0,
|
|
8844
8853
|
class: "pv-flex pv-border-top",
|
|
8845
8854
|
style: {
|
|
@@ -8848,7 +8857,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8848
8857
|
"margin-top": "0.75rem",
|
|
8849
8858
|
"padding-top": "0.75rem"
|
|
8850
8859
|
}
|
|
8851
|
-
},
|
|
8860
|
+
}, ud = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8852
8861
|
__name: "PvFilterModal",
|
|
8853
8862
|
props: /* @__PURE__ */ g({
|
|
8854
8863
|
header: { default: "Filters" },
|
|
@@ -8927,7 +8936,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8927
8936
|
"suggestion-click"
|
|
8928
8937
|
], ["update:filterModel", "update:visible"]),
|
|
8929
8938
|
setup(e, { emit: n }) {
|
|
8930
|
-
let c = e, l = R(e, "filterModel"), d = R(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } =
|
|
8939
|
+
let c = e, l = R(e, "filterModel"), d = R(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = Pu(c, l, f), v = k(null), y = L(), b = k(""), S = r(() => p.value.filter((e) => e.type === "value")), C = r(() => {
|
|
8931
8940
|
let e = S.value;
|
|
8932
8941
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
8933
8942
|
}), w = r(() => C.value?.isAggregate === !0), T = r(() => C.value?.aggregateSelectionState ?? []), E = r(() => new Set(C.value?.selectedValues ?? [])), O = r(() => b.value.trim().toLowerCase()), ee = (e) => {
|
|
@@ -8944,7 +8953,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8944
8953
|
let e = C.value;
|
|
8945
8954
|
if (!e) return {};
|
|
8946
8955
|
let t = {};
|
|
8947
|
-
for (let n of
|
|
8956
|
+
for (let n of fc([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
8948
8957
|
return t;
|
|
8949
8958
|
}), N = r(() => {
|
|
8950
8959
|
let e = C.value?.options ?? [], t = O.value;
|
|
@@ -8952,22 +8961,22 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8952
8961
|
}), P = r(() => w.value || C.value?.singleSelect ? [] : (C.value?.selectedValues ?? []).map((e) => M.value[e] ?? {
|
|
8953
8962
|
label: e,
|
|
8954
8963
|
value: e
|
|
8955
|
-
})), I = r(() => w.value || C.value?.singleSelect ? N.value : N.value.filter((e) => !E.value.has(e.value))), z = r(() => w.value && C.value ?
|
|
8964
|
+
})), I = r(() => w.value || C.value?.singleSelect ? N.value : N.value.filter((e) => !E.value.has(e.value))), z = r(() => w.value && C.value ? Uc({
|
|
8956
8965
|
options: C.value.knownOptions ?? [],
|
|
8957
8966
|
state: T.value
|
|
8958
|
-
}) : /* @__PURE__ */ new Map()), te = (e) => e.isAggregate ?
|
|
8967
|
+
}) : /* @__PURE__ */ new Map()), te = (e) => e.isAggregate ? Kc(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, B = (e) => w.value ? z.value.get(e.value) ?? {
|
|
8959
8968
|
indeterminate: !1,
|
|
8960
8969
|
selected: !1
|
|
8961
8970
|
} : {
|
|
8962
8971
|
indeterminate: !1,
|
|
8963
8972
|
selected: E.value.has(e.value)
|
|
8964
|
-
}, V = (e) => C.value ?
|
|
8973
|
+
}, V = (e) => C.value ? nc(e, C.value.colDef) : e.label || e.value, ne = (e) => uc(e) ?? e.value, H = (e) => dc(e, C.value?.key ?? ""), U = (e, t) => {
|
|
8965
8974
|
let n = C.value;
|
|
8966
8975
|
if (n) {
|
|
8967
8976
|
if (n.isAggregate) {
|
|
8968
8977
|
_(n.key, {
|
|
8969
8978
|
type: "aggregate-selection",
|
|
8970
|
-
value:
|
|
8979
|
+
value: Vc({
|
|
8971
8980
|
checked: t,
|
|
8972
8981
|
option: e,
|
|
8973
8982
|
options: n.knownOptions ?? [],
|
|
@@ -8987,7 +8996,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8987
8996
|
for (let e of N.value) B(e).selected || U(e, !0);
|
|
8988
8997
|
}, K = () => {
|
|
8989
8998
|
if (w.value) {
|
|
8990
|
-
for (let e of
|
|
8999
|
+
for (let e of fc(C.value?.knownOptions ?? [])) B(e).selected && U(e, !1);
|
|
8991
9000
|
return;
|
|
8992
9001
|
}
|
|
8993
9002
|
for (let e of P.value) U(e, !1);
|
|
@@ -9027,7 +9036,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9027
9036
|
width: e.maxWidth,
|
|
9028
9037
|
maxWidth: e.maxWidth
|
|
9029
9038
|
})
|
|
9030
|
-
}, [s("div",
|
|
9039
|
+
}, [s("div", nd, [s("nav", rd, [(D(!0), o(t, null, A(S.value, (e) => (D(), i(ed, {
|
|
9031
9040
|
key: e.key,
|
|
9032
9041
|
modelValue: q.value,
|
|
9033
9042
|
"onUpdate:modelValue": r[0] ||= (e) => q.value = e,
|
|
@@ -9041,7 +9050,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9041
9050
|
"label",
|
|
9042
9051
|
"right-counter-badge",
|
|
9043
9052
|
"value"
|
|
9044
|
-
]))), 128))]), s("div",
|
|
9053
|
+
]))), 128))]), s("div", id, [
|
|
9045
9054
|
u(Qr, {
|
|
9046
9055
|
modelValue: b.value,
|
|
9047
9056
|
"onUpdate:modelValue": r[1] ||= (e) => b.value = e,
|
|
@@ -9053,18 +9062,18 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9053
9062
|
"disabled",
|
|
9054
9063
|
"placeholder"
|
|
9055
9064
|
]),
|
|
9056
|
-
C.value?.isLoading ? (D(), o("div",
|
|
9057
|
-
s("div",
|
|
9065
|
+
C.value?.isLoading ? (D(), o("div", ad, [u(ke, { size: "sm" })])) : C.value ? (D(), o(t, { key: 1 }, [
|
|
9066
|
+
s("div", od, [(D(!0), o(t, null, A(P.value, (e) => (D(), o("div", {
|
|
9058
9067
|
key: `selected-${e.value}`,
|
|
9059
9068
|
class: "pv-inset-square-8 pv-surface-highlight pv-radius"
|
|
9060
|
-
}, [u(
|
|
9069
|
+
}, [u(Ks, {
|
|
9061
9070
|
control: C.value.singleSelect ? "radio" : "checkbox",
|
|
9062
9071
|
disabled: C.value.disabled || e.isSelectable === !1,
|
|
9063
9072
|
indeterminate: B(e).indeterminate,
|
|
9064
9073
|
label: V(e),
|
|
9065
9074
|
name: F(y),
|
|
9066
9075
|
"query-text": b.value,
|
|
9067
|
-
"result-count": F(
|
|
9076
|
+
"result-count": F(rc)(e),
|
|
9068
9077
|
selected: !0,
|
|
9069
9078
|
"sub-text": e.subText,
|
|
9070
9079
|
"subdued-text": e.subduedText,
|
|
@@ -9085,14 +9094,14 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9085
9094
|
])]))), 128)), (D(!0), o(t, null, A(I.value, (e) => (D(), o("div", {
|
|
9086
9095
|
key: `option-${e.value}`,
|
|
9087
9096
|
class: "pv-inset-square-8 pv-radius"
|
|
9088
|
-
}, [u(
|
|
9097
|
+
}, [u(Ks, {
|
|
9089
9098
|
control: C.value.singleSelect ? "radio" : "checkbox",
|
|
9090
9099
|
disabled: C.value.disabled || e.isSelectable === !1,
|
|
9091
9100
|
indeterminate: B(e).indeterminate,
|
|
9092
9101
|
label: V(e),
|
|
9093
9102
|
name: F(y),
|
|
9094
9103
|
"query-text": b.value,
|
|
9095
|
-
"result-count": F(
|
|
9104
|
+
"result-count": F(rc)(e),
|
|
9096
9105
|
selected: B(e).selected,
|
|
9097
9106
|
"sub-text": e.subText,
|
|
9098
9107
|
"subdued-text": e.subduedText,
|
|
@@ -9112,7 +9121,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9112
9121
|
"value",
|
|
9113
9122
|
"onToggleValue"
|
|
9114
9123
|
])]))), 128))]),
|
|
9115
|
-
!P.value.length && !I.value.length ? (D(), o("p",
|
|
9124
|
+
!P.value.length && !I.value.length ? (D(), o("p", sd, " No matching values. ")) : a("", !0),
|
|
9116
9125
|
C.value.hasMore ? (D(), i(Q, {
|
|
9117
9126
|
key: 1,
|
|
9118
9127
|
class: "pv-text-brand",
|
|
@@ -9123,7 +9132,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9123
9132
|
onClick: ie
|
|
9124
9133
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
9125
9134
|
], 64)) : a("", !0),
|
|
9126
|
-
C.value && !e.readOnly ? (D(), o("div",
|
|
9135
|
+
C.value && !e.readOnly ? (D(), o("div", cd, [C.value.singleSelect ? a("", !0) : (D(), i(Q, {
|
|
9127
9136
|
key: 0,
|
|
9128
9137
|
disabled: C.value.disabled,
|
|
9129
9138
|
label: e.selectAllLabel,
|
|
@@ -9135,7 +9144,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9135
9144
|
variant: "ghost",
|
|
9136
9145
|
onClick: K
|
|
9137
9146
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
9138
|
-
])]), e.staged ? (D(), o("div",
|
|
9147
|
+
])]), e.staged ? (D(), o("div", ld, [u(Q, {
|
|
9139
9148
|
label: e.cancelLabel,
|
|
9140
9149
|
variant: "ghost",
|
|
9141
9150
|
onClick: F(g)
|
|
@@ -9143,14 +9152,14 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9143
9152
|
label: e.applyLabel,
|
|
9144
9153
|
variant: "primary",
|
|
9145
9154
|
onClick: F(h)
|
|
9146
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
9155
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, td)]),
|
|
9147
9156
|
_: 3
|
|
9148
9157
|
}, 8, ["modelValue"]));
|
|
9149
9158
|
}
|
|
9150
|
-
}), [["__scopeId", "data-v-79f344ac"]]),
|
|
9159
|
+
}), [["__scopeId", "data-v-79f344ac"]]), dd = ["tabindex"], fd = {
|
|
9151
9160
|
key: 0,
|
|
9152
9161
|
class: "pv-hover-action-menu__actions"
|
|
9153
|
-
},
|
|
9162
|
+
}, pd = { class: "pv-hover-action-menu__action-group" }, md = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
9154
9163
|
__name: "PvHoverActionMenu",
|
|
9155
9164
|
props: {
|
|
9156
9165
|
disabled: {
|
|
@@ -9173,12 +9182,12 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9173
9182
|
class: y(["pv-hover-action-menu", d.value]),
|
|
9174
9183
|
tabindex: e.options.length ? 0 : void 0,
|
|
9175
9184
|
"data-testid": "pv-hover-action-menu"
|
|
9176
|
-
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div",
|
|
9185
|
+
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", fd, [u(Vo, {
|
|
9177
9186
|
variant: e.variant,
|
|
9178
9187
|
"data-testid": "pv-hover-action-menu-actions",
|
|
9179
9188
|
onClick: r[0] ||= q(() => {}, ["stop"])
|
|
9180
9189
|
}, {
|
|
9181
|
-
default: G(() => [s("div",
|
|
9190
|
+
default: G(() => [s("div", pd, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(qn, {
|
|
9182
9191
|
key: t.id,
|
|
9183
9192
|
variant: "dark",
|
|
9184
9193
|
position: "top-center",
|
|
@@ -9206,9 +9215,9 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9206
9215
|
_: 2
|
|
9207
9216
|
}, 1032, ["description"]))), 128))])]),
|
|
9208
9217
|
_: 1
|
|
9209
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
9218
|
+
}, 8, ["variant"])])) : a("", !0)], 10, dd));
|
|
9210
9219
|
}
|
|
9211
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
9220
|
+
}), [["__scopeId", "data-v-6325cd25"]]), hd = () => {
|
|
9212
9221
|
let e = (e, n) => {
|
|
9213
9222
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
9214
9223
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -9221,13 +9230,13 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9221
9230
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
9222
9231
|
} : null
|
|
9223
9232
|
};
|
|
9224
|
-
},
|
|
9233
|
+
}, gd = { class: "pv-flex" }, _d = { class: "pv-text-body-md" }, vd = ["textContent"], yd = {
|
|
9225
9234
|
key: 0,
|
|
9226
9235
|
class: "pv-text-body-xs"
|
|
9227
|
-
},
|
|
9236
|
+
}, bd = { key: 0 }, xd = {
|
|
9228
9237
|
class: "pv-text-subdued pv-text-body-xs",
|
|
9229
9238
|
style: { "font-weight": "500" }
|
|
9230
|
-
},
|
|
9239
|
+
}, Sd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
9231
9240
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
9232
9241
|
props: {
|
|
9233
9242
|
id: {},
|
|
@@ -9277,13 +9286,13 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9277
9286
|
bold: !1
|
|
9278
9287
|
}), n;
|
|
9279
9288
|
});
|
|
9280
|
-
return (e, n) => (D(), o("div", null, [s("div",
|
|
9289
|
+
return (e, n) => (D(), o("div", null, [s("div", gd, [u(X, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", _d, [(D(!0), o(t, null, A(m.value, (e, t) => (D(), o("span", {
|
|
9281
9290
|
key: t,
|
|
9282
9291
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
9283
9292
|
textContent: P(e.text)
|
|
9284
|
-
}, null, 12,
|
|
9293
|
+
}, null, 12, vd))), 128))]), f.value ? (D(), o("p", yd, [c.value ? a("", !0) : (D(), o("span", bd, "Search in ")), s("span", xd, P(f.value), 1)])) : a("", !0)])])]));
|
|
9285
9294
|
}
|
|
9286
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
9295
|
+
}), [["__scopeId", "data-v-ff951d17"]]), Cd = /* @__PURE__ */ d({
|
|
9287
9296
|
__name: "QueryFormatter",
|
|
9288
9297
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
9289
9298
|
modelValue: { required: !0 },
|
|
@@ -9297,7 +9306,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9297
9306
|
}),
|
|
9298
9307
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
9299
9308
|
setup(e) {
|
|
9300
|
-
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } =
|
|
9309
|
+
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } = hd(), u = r(() => {
|
|
9301
9310
|
let e = s.value?.queryTerms || [];
|
|
9302
9311
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
9303
9312
|
}), 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) => {
|
|
@@ -9329,17 +9338,17 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9329
9338
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
9330
9339
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
9331
9340
|
}
|
|
9332
|
-
}),
|
|
9341
|
+
}), wd = [
|
|
9333
9342
|
"disabled",
|
|
9334
9343
|
"placeholder",
|
|
9335
9344
|
"data-invalid"
|
|
9336
|
-
],
|
|
9345
|
+
], Td = {
|
|
9337
9346
|
key: 2,
|
|
9338
9347
|
class: "pv-text-red pv-text-body-xs"
|
|
9339
|
-
},
|
|
9348
|
+
}, Ed = {
|
|
9340
9349
|
key: 1,
|
|
9341
9350
|
class: "pv-text-center"
|
|
9342
|
-
},
|
|
9351
|
+
}, Dd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
9343
9352
|
__name: "PvQueryBuilderInput",
|
|
9344
9353
|
props: /* @__PURE__ */ g({
|
|
9345
9354
|
placeholder: { default: "Search" },
|
|
@@ -9387,7 +9396,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9387
9396
|
"update:options"
|
|
9388
9397
|
],
|
|
9389
9398
|
setup(e) {
|
|
9390
|
-
let n = e, c = { renderer:
|
|
9399
|
+
let n = e, c = { renderer: Sd }, l = te("search-input"), d = R(e, "searchText"), f = R(e, "query"), p = R(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = hd(), v = k(!1), b = k(!1), S = k(!1), C = r(() => f.value === null ? n.placeholder : ""), w = k(null), T = r(() => w.value !== null && w.value !== "" && !b.value), E = () => {
|
|
9391
9400
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
9392
9401
|
};
|
|
9393
9402
|
n.enableCustomOptionsInput && J("Enter", () => {
|
|
@@ -9471,7 +9480,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9471
9480
|
"--inset-size": "4px",
|
|
9472
9481
|
"--flex-gap": "4px"
|
|
9473
9482
|
}, e.enableWrapQueryTerms || S.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
9474
|
-
}, [u(
|
|
9483
|
+
}, [u(Cd, {
|
|
9475
9484
|
modelValue: f.value,
|
|
9476
9485
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
9477
9486
|
"wrap-content": S.value,
|
|
@@ -9492,7 +9501,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9492
9501
|
style: x(d.value ? "min-width: 8rem;" : void 0),
|
|
9493
9502
|
onFocus: I,
|
|
9494
9503
|
onBlur: I
|
|
9495
|
-
}, null, 44,
|
|
9504
|
+
}, null, 44, wd), [[H, d.value]])], 4),
|
|
9496
9505
|
f.value && !e.hideClearButton ? (D(), i(Q, {
|
|
9497
9506
|
key: 1,
|
|
9498
9507
|
variant: "ghost",
|
|
@@ -9500,7 +9509,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9500
9509
|
size: "md",
|
|
9501
9510
|
onClick: E
|
|
9502
9511
|
})) : a("", !0),
|
|
9503
|
-
T.value ? (D(), o("p",
|
|
9512
|
+
T.value ? (D(), o("p", Td, P(w.value), 1)) : a("", !0),
|
|
9504
9513
|
j.value.length > 0 || e.optionsLoading ? (D(), i(fr, {
|
|
9505
9514
|
key: 3,
|
|
9506
9515
|
class: y({ "pv-hide": !v.value }),
|
|
@@ -9510,7 +9519,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9510
9519
|
},
|
|
9511
9520
|
isList: !0
|
|
9512
9521
|
}, {
|
|
9513
|
-
default: G(() => [e.optionsLoading ? (D(), o("div",
|
|
9522
|
+
default: G(() => [e.optionsLoading ? (D(), o("div", Ed, [u(ke, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, A(j.value, (e, t) => (D(), i(da, _({
|
|
9514
9523
|
key: `${t}-${e.searchText}`,
|
|
9515
9524
|
ref_for: !0
|
|
9516
9525
|
}, e, {
|
|
@@ -9521,7 +9530,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9521
9530
|
}, 8, ["class"])) : a("", !0)
|
|
9522
9531
|
], 32)), [[F(de), ee]]);
|
|
9523
9532
|
}
|
|
9524
|
-
}), [["__scopeId", "data-v-37925d70"]]),
|
|
9533
|
+
}), [["__scopeId", "data-v-37925d70"]]), Od = { class: "sidebar-header" }, kd = { class: "sidebar-header-content" }, Ad = { class: "content-panel" }, jd = 300, Md = /* @__PURE__ */ d({
|
|
9525
9534
|
__name: "PvSidebar",
|
|
9526
9535
|
props: /* @__PURE__ */ g({
|
|
9527
9536
|
disableToggle: { type: Boolean },
|
|
@@ -9547,7 +9556,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9547
9556
|
}, m = () => {
|
|
9548
9557
|
n.value && (l && clearTimeout(l), l = setTimeout(() => {
|
|
9549
9558
|
c.value = !0;
|
|
9550
|
-
},
|
|
9559
|
+
}, jd));
|
|
9551
9560
|
}, h = () => {
|
|
9552
9561
|
l &&= (clearTimeout(l), null), p(), c.value = !1;
|
|
9553
9562
|
}, g = () => {
|
|
@@ -9562,20 +9571,20 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9562
9571
|
onMouseenter: m,
|
|
9563
9572
|
onMouseleave: h,
|
|
9564
9573
|
onFocusin: m
|
|
9565
|
-
}, [s("div",
|
|
9574
|
+
}, [s("div", Od, [s("div", kd, [j(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (D(), i(Q, {
|
|
9566
9575
|
key: 0,
|
|
9567
9576
|
class: "sidebar-toggle",
|
|
9568
9577
|
"left-icon": n.value ? "panel-left-open" : "panel-left-close",
|
|
9569
9578
|
"aria-label": n.value ? "Open sidebar" : "Close sidebar",
|
|
9570
9579
|
variant: "secondary",
|
|
9571
9580
|
onClick: g
|
|
9572
|
-
}, null, 8, ["left-icon", "aria-label"]))]), j(t.$slots, "sidebar")], 32), s("div",
|
|
9581
|
+
}, null, 8, ["left-icon", "aria-label"]))]), j(t.$slots, "sidebar")], 32), s("div", Ad, [j(t.$slots, "default")])], 2));
|
|
9573
9582
|
}
|
|
9574
|
-
}),
|
|
9583
|
+
}), Nd = {
|
|
9575
9584
|
class: "pv-toc",
|
|
9576
9585
|
role: "list",
|
|
9577
9586
|
style: { "min-width": "160px" }
|
|
9578
|
-
},
|
|
9587
|
+
}, Pd = ["aria-current"], Fd = ["href", "onClick"], Id = /* @__PURE__ */ d({
|
|
9579
9588
|
__name: "PvTableOfContents",
|
|
9580
9589
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
9581
9590
|
modelValue: { required: !1 },
|
|
@@ -9586,7 +9595,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9586
9595
|
let r = R(e, "modelValue"), c = n, u = (e, t) => {
|
|
9587
9596
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
9588
9597
|
};
|
|
9589
|
-
return (n, c) => (D(), o("ul",
|
|
9598
|
+
return (n, c) => (D(), o("ul", Nd, [(D(!0), o(t, null, A(e.items, (e) => (D(), o("li", {
|
|
9590
9599
|
key: e.id,
|
|
9591
9600
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
9592
9601
|
}, [s("a", {
|
|
@@ -9595,9 +9604,9 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9595
9604
|
}, [e.icon ? (D(), i(X, {
|
|
9596
9605
|
key: 0,
|
|
9597
9606
|
name: e.icon
|
|
9598
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + P(e.label), 1)], 8,
|
|
9607
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + P(e.label), 1)], 8, Fd)], 8, Pd))), 128))]));
|
|
9599
9608
|
}
|
|
9600
|
-
}),
|
|
9609
|
+
}), Ld = { class: "pv-flex" }, Rd = ["data-clickable", "onClick"], zd = /* @__PURE__ */ d({
|
|
9601
9610
|
__name: "PvStepper",
|
|
9602
9611
|
props: {
|
|
9603
9612
|
count: { default: 5 },
|
|
@@ -9610,14 +9619,14 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9610
9619
|
emits: ["update:active"],
|
|
9611
9620
|
setup(e) {
|
|
9612
9621
|
let n = e;
|
|
9613
|
-
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (D(), o("div",
|
|
9622
|
+
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (D(), o("div", Ld, [(D(!0), o(t, null, A(e.count, (t, r) => (D(), o("div", {
|
|
9614
9623
|
key: r,
|
|
9615
9624
|
"data-clickable": e.clickable,
|
|
9616
9625
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
9617
9626
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
9618
|
-
}, null, 10,
|
|
9627
|
+
}, null, 10, Rd))), 128))]));
|
|
9619
9628
|
}
|
|
9620
|
-
}),
|
|
9629
|
+
}), Bd = { theme: {
|
|
9621
9630
|
preset: xe,
|
|
9622
9631
|
options: {
|
|
9623
9632
|
darkModeSelector: "none",
|
|
@@ -9626,15 +9635,15 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9626
9635
|
order: "pit-viper-v2, primevue"
|
|
9627
9636
|
}
|
|
9628
9637
|
}
|
|
9629
|
-
} },
|
|
9630
|
-
e.use(be,
|
|
9631
|
-
},
|
|
9632
|
-
let e = m(
|
|
9638
|
+
} }, Vd = (e) => {
|
|
9639
|
+
e.use(be, Bd);
|
|
9640
|
+
}, Hd = Symbol.for("pv.rum-context"), Ud = () => {
|
|
9641
|
+
let e = m(Hd, void 0);
|
|
9633
9642
|
return () => {
|
|
9634
9643
|
let t = e?.value;
|
|
9635
9644
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
9636
9645
|
};
|
|
9637
|
-
},
|
|
9646
|
+
}, Wd = (e, t = {}, n = {}) => {
|
|
9638
9647
|
try {
|
|
9639
9648
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
9640
9649
|
let r = n.consumer == null ? t : {
|
|
@@ -9643,7 +9652,7 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9643
9652
|
};
|
|
9644
9653
|
window.DD_RUM.addAction(e, r);
|
|
9645
9654
|
} catch {}
|
|
9646
|
-
},
|
|
9655
|
+
}, Gd = (e) => {
|
|
9647
9656
|
queueMicrotask(() => {
|
|
9648
9657
|
try {
|
|
9649
9658
|
e();
|
|
@@ -9651,6 +9660,6 @@ var Iu = ["aria-label"], Lu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9651
9660
|
});
|
|
9652
9661
|
};
|
|
9653
9662
|
//#endregion
|
|
9654
|
-
export { qr as PvAccordion,
|
|
9663
|
+
export { qr as PvAccordion, Vo as PvActionBar, Yn as PvActionButton, Qn as PvAiButton, xi as PvAvatar, no as PvAvatarGroup, Lr as PvBanner, gi as PvBreadcrumbs, Q as PvButton, rr as PvButtonWithTooltip, Oo as PvCard, po as PvCheckbox, $a as PvCompanyLabel, Tr as PvCompanyLogo, Hr as PvCompanyTag, Re as PvCounterBadge, $r as PvDatePicker, ti as PvDateTime, Ts as PvDistributionBar, ui as PvDrawer, hr as PvDropdown, Vr as PvEmptyErrorState, Lo as PvExpandableContent, ud as PvFilterModal, Yu as PvFilterPanel, Ka as PvGhostInput, Za as PvHeader, wl as PvHorizontalScroller, md as PvHoverActionMenu, X as PvIcon, wo as PvInput, Io as PvInsightCard, ya as PvMenu, da as PvMenuItem, jr as PvModal, Ea as PvMultiSelectButton, Fa as PvPagination, ur as PvPill, fr as PvPopover, _r as PvPopoverMenu, Gn as PvPopoverV2, Cs as PvProgressBar, Dd as PvQueryBuilderInput, _o as PvRadioGroup, zs as PvRange, Do as PvRating, sr as PvReleaseBadge, Qr as PvSearchInput, vr as PvSegmentedControl, Oa as PvSelectButton, Ra as PvSelectableCard, Ua as PvSidePanel, Md as PvSidebar, yo as PvSkeleton, ke as PvSpinner, or as PvSplitButton, vo as PvSprite, zd as PvStepper, Gr as PvSuggestionTag, Gi as PvSwitch, Sr as PvTabList, Id as PvTableOfContents, pi as PvTabs, lr as PvTag, Go as PvTextArea, zo as PvToast, oo as PvToggleButton, uo as PvToggleGroup, tr as PvTooltip, qn as PvTooltipV2, ys as PvTree, bs as PvTreeGroup, ko as PvWidget, Hd as RumContextKey, Wd as addRumAction, Eu as createPvFilterStore, Gd as deferRumTask, Du as providePvFilterStore, ei as useDateTime, Ou as useOptionalPvFilterStore, Vd as usePvComponents, ku as usePvFilterStore, Ud as useRumContext };
|
|
9655
9664
|
|
|
9656
9665
|
//# sourceMappingURL=pv-components-base.mjs.map
|