@turquoisehealth/pit-viper 2.224.1-dev.0 → 2.224.1-dev.2
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 +1 -1
- package/_site/assets/css/pit-viper-consumer.css +1 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
- package/_site/assets/css/pit-viper-v2.css +1 -1
- 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-drawer-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-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-search-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/base/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs +727 -689
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/crosslineHelpers.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +3 -2
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/useBenchmarkOverlays.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2531 -2483
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +2 -0
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +554 -549
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +837 -800
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +632 -623
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +21 -15
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1732 -1696
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +21 -15
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +17 -8
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +110 -75
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +425 -404
- 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-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-c13d6b59]{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-c13d6b59]>.pv-popover,.pv-floating-native>slot[name=content][data-v-c13d6b59]::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-a64056ef]{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-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .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-connector-middle[data-v-2a7afaff],.pv-tree-connector-end[data-v-2a7afaff]{width:16px;min-width:16px;height:16px;position:relative}.pv-tree-connector-middle[data-v-2a7afaff]:after,.pv-tree-connector-end[data-v-2a7afaff]:after{content:"";background:var(--tree-connector-color,#d2d8dc);width:8px;height:1px;position:absolute;top:50%;left:50%;transform:translateY(-50%)}.pv-tree-connector-end[data-v-2a7afaff]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:14px;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.pv-tree-connector-line[data-v-fb9813d5]{position:relative}.pv-tree-connector-line[data-v-fb9813d5]: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%)}.pv-tree-drop-zone[data-v-f706f606],.pv-tree-drop-zone[data-v-26eb4678],.pv-tree-drop-zone[data-v-eb5f5907]{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-2ad285b3]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-2ad285b3]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-2ad285b3]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-2ad285b3]{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-c13d6b59]{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-c13d6b59]>.pv-popover,.pv-floating-native>slot[name=content][data-v-c13d6b59]::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-a64056ef]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-content[data-v-0de70d6d]{min-width:0}.pv-select-button-trigger-label[data-v-0de70d6d]{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-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .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-connector-middle[data-v-2a7afaff],.pv-tree-connector-end[data-v-2a7afaff]{width:16px;min-width:16px;height:16px;position:relative}.pv-tree-connector-middle[data-v-2a7afaff]:after,.pv-tree-connector-end[data-v-2a7afaff]:after{content:"";background:var(--tree-connector-color,#d2d8dc);width:8px;height:1px;position:absolute;top:50%;left:50%;transform:translateY(-50%)}.pv-tree-connector-end[data-v-2a7afaff]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:14px;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.pv-tree-connector-line[data-v-fb9813d5]{position:relative}.pv-tree-connector-line[data-v-fb9813d5]: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%)}.pv-tree-drop-zone[data-v-f706f606],.pv-tree-drop-zone[data-v-26eb4678],.pv-tree-drop-zone[data-v-eb5f5907]{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-3ed68672]{background-image:none;padding-right:2px}[data-v-3ed68672] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-3ed68672]{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-2ad285b3]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-2ad285b3]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-2ad285b3]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-2ad285b3]{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 M, resolveDynamicComponent as N, shallowRef as P, toDisplayString as F, unref as I, useAttrs as L, useId as R, useModel as z, useSlots as B, useTemplateRef as V, vModelCheckbox as ee, vModelDynamic as te, vModelRadio as H, vModelText as U, vShow as W, watch as G, watchEffect as ne, withCtx as K, withDirectives as q, withKeys as re, withModifiers as J } from "vue";
|
|
4
4
|
import { onClickOutside as ie, onKeyStroke as Y, useDebounceFn as ae, useElementBounding as oe, useElementHover as se, useToggle as ce, watchDebounced as le } from "@vueuse/core";
|
|
@@ -1520,23 +1520,44 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1520
1520
|
delay: { default: 0 }
|
|
1521
1521
|
},
|
|
1522
1522
|
setup(e) {
|
|
1523
|
-
let { present:
|
|
1524
|
-
|
|
1523
|
+
let t = e, n = V("rootRef"), { present: i } = Un("tooltip-content", { host: r(() => {
|
|
1524
|
+
let e = n.value?.getRootNode();
|
|
1525
|
+
return e instanceof ShadowRoot ? e.host : null;
|
|
1526
|
+
}) }), s = r(() => t.delay > 0), c = k(!1), l = k(!1), u, d = () => {
|
|
1527
|
+
u && clearTimeout(u), u = void 0;
|
|
1528
|
+
}, f = r(() => !s.value || c.value || l.value), p = () => {
|
|
1529
|
+
s.value && (d(), u = setTimeout(() => {
|
|
1530
|
+
u = void 0, l.value = !0;
|
|
1531
|
+
}, t.delay));
|
|
1532
|
+
}, m = () => {
|
|
1533
|
+
s.value && (d(), l.value = !1);
|
|
1534
|
+
}, h = () => {
|
|
1535
|
+
s.value && (c.value = !0);
|
|
1536
|
+
}, g = () => {
|
|
1537
|
+
s.value && (c.value = !1);
|
|
1538
|
+
};
|
|
1539
|
+
return S(d), (t, r) => (D(), o("div", {
|
|
1540
|
+
ref_key: "rootRef",
|
|
1541
|
+
ref: n,
|
|
1525
1542
|
"data-testid": "pv-tooltip",
|
|
1526
1543
|
class: y([{
|
|
1527
|
-
"pv-tooltip": I(
|
|
1528
|
-
"pv-tooltip-small": I(
|
|
1544
|
+
"pv-tooltip": I(i),
|
|
1545
|
+
"pv-tooltip-small": I(i) && e.size === "sm"
|
|
1529
1546
|
}]),
|
|
1530
1547
|
"data-position": e.tooltipPosition,
|
|
1531
1548
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
1532
1549
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
1533
|
-
"aria-labelledby": I(
|
|
1534
|
-
|
|
1550
|
+
"aria-labelledby": I(i) ? e.ariaLabelledBy : void 0,
|
|
1551
|
+
onMouseenter: p,
|
|
1552
|
+
onMouseleave: m,
|
|
1553
|
+
onFocusin: h,
|
|
1554
|
+
onFocusout: g
|
|
1555
|
+
}, [j(t.$slots, "label"), I(i) ? q((D(), o("div", {
|
|
1535
1556
|
key: 0,
|
|
1536
1557
|
role: "tooltip",
|
|
1537
1558
|
id: e.ariaLabelledBy,
|
|
1538
1559
|
"data-testid": "pv-tooltip-content"
|
|
1539
|
-
}, [j(
|
|
1560
|
+
}, [j(t.$slots, "tooltip-content")], 8, ir)), [[W, f.value]]) : a("", !0)], 42, rr));
|
|
1540
1561
|
}
|
|
1541
1562
|
}), or = { class: "pv-text-body-sm" }, sr = /* @__PURE__ */ d({
|
|
1542
1563
|
__name: "PvButtonWithTooltip",
|
|
@@ -2361,15 +2382,16 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2361
2382
|
key: 0,
|
|
2362
2383
|
"data-testid": "pv-search-input-shortcut",
|
|
2363
2384
|
class: "pv-kbd"
|
|
2364
|
-
}, ti = "/", ni = /* @__PURE__ */ d({
|
|
2385
|
+
}, ti = "/", ni = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
2365
2386
|
__name: "PvSearchInput",
|
|
2366
2387
|
props: /* @__PURE__ */ g({
|
|
2367
|
-
placeholder: { default: "Search" },
|
|
2368
2388
|
disabled: {
|
|
2369
2389
|
type: Boolean,
|
|
2370
2390
|
default: !1
|
|
2371
2391
|
},
|
|
2372
|
-
displayShortcut: { type: Boolean }
|
|
2392
|
+
displayShortcut: { type: Boolean },
|
|
2393
|
+
placeholder: { default: "Search" },
|
|
2394
|
+
size: { default: "xl" }
|
|
2373
2395
|
}, {
|
|
2374
2396
|
modelValue: {
|
|
2375
2397
|
required: !1,
|
|
@@ -2382,7 +2404,8 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2382
2404
|
let n = e, i = V("search-input"), c = z(e, "modelValue"), l = r(() => ({
|
|
2383
2405
|
"pv-input-search": !0,
|
|
2384
2406
|
"pv-full-width": !0,
|
|
2385
|
-
"pv-input-padded-end": !0
|
|
2407
|
+
"pv-input-padded-end": !0,
|
|
2408
|
+
"pv-input-small": n.size === "lg"
|
|
2386
2409
|
}));
|
|
2387
2410
|
return w(() => {
|
|
2388
2411
|
n.displayShortcut && Y(ti, (e) => {
|
|
@@ -2399,7 +2422,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2399
2422
|
placeholder: e.placeholder
|
|
2400
2423
|
}, null, 10, $r), [[U, c.value]]), e.displayShortcut ? (D(), o("kbd", ei, F(ti))) : a("", !0)]));
|
|
2401
2424
|
}
|
|
2402
|
-
}), ri = /^\d{4}-\d{2}-\d{2}$/;
|
|
2425
|
+
}), [["__scopeId", "data-v-9e0c84d9"]]), ri = /^\d{4}-\d{2}-\d{2}$/;
|
|
2403
2426
|
function ii(e) {
|
|
2404
2427
|
if (ri.test(e)) {
|
|
2405
2428
|
let [t, n, r] = e.split("-").map(Number), i = new Date(t, n - 1, r);
|
|
@@ -3413,7 +3436,7 @@ var ui = () => ({
|
|
|
3413
3436
|
n.inverse && Ae.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
3414
3437
|
let t = Me(n.size);
|
|
3415
3438
|
return t && e.push(t), e;
|
|
3416
|
-
}), d = r(() => n.isLoading ? "Loading..." : n.selectedItems && n.selectedItems.length > 0 && n.counterStyle === "secondary" ? n.selectedItems[0].text : n.label),
|
|
3439
|
+
}), d = r(() => n.size === "xl" ? "lg" : "sm"), f = r(() => n.size === "xl" ? 20 : void 0), p = r(() => n.isLoading ? "Loading..." : n.selectedItems && n.selectedItems.length > 0 && n.counterStyle === "secondary" ? n.selectedItems[0].text : n.label), m = r(() => {
|
|
3417
3440
|
if (n.selectedOption) return {
|
|
3418
3441
|
...n.selectedOption,
|
|
3419
3442
|
menuOptionConfig: n.menuOptionConfig,
|
|
@@ -3436,12 +3459,13 @@ var ui = () => ({
|
|
|
3436
3459
|
variant: e.counterBadgeVariant,
|
|
3437
3460
|
size: "sm"
|
|
3438
3461
|
}, null, 8, ["value", "variant"])) : a("", !0),
|
|
3439
|
-
!e.isLoading && e.renderer &&
|
|
3462
|
+
!e.isLoading && e.renderer && m.value ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o(t, { key: 3 }, [
|
|
3440
3463
|
e.icon ? (D(), i(Z, {
|
|
3441
3464
|
key: 0,
|
|
3442
3465
|
"data-testid": "pv-multi-select-button-icon",
|
|
3443
|
-
name: e.icon
|
|
3444
|
-
|
|
3466
|
+
name: e.icon,
|
|
3467
|
+
size: f.value
|
|
3468
|
+
}, null, 8, ["name", "size"])) : a("", !0),
|
|
3445
3469
|
e.companyLogo ? (D(), i(kr, {
|
|
3446
3470
|
key: 1,
|
|
3447
3471
|
name: e.companyLogo,
|
|
@@ -3455,18 +3479,19 @@ var ui = () => ({
|
|
|
3455
3479
|
image: e.avatar.image,
|
|
3456
3480
|
variant: e.avatar.variant,
|
|
3457
3481
|
shape: e.avatar.shape,
|
|
3458
|
-
size:
|
|
3482
|
+
size: d.value
|
|
3459
3483
|
}, null, 8, [
|
|
3460
3484
|
"initials",
|
|
3461
3485
|
"image",
|
|
3462
3486
|
"variant",
|
|
3463
|
-
"shape"
|
|
3487
|
+
"shape",
|
|
3488
|
+
"size"
|
|
3464
3489
|
])) : a("", !0),
|
|
3465
3490
|
e.isLoading || e.label ? (D(), o("span", {
|
|
3466
3491
|
key: 3,
|
|
3467
|
-
class: "pv-truncate pv-select-button-trigger-label",
|
|
3468
|
-
title:
|
|
3469
|
-
}, F(
|
|
3492
|
+
class: "pv-text-body-md pv-text-regular pv-truncate pv-select-button-trigger-label",
|
|
3493
|
+
title: p.value
|
|
3494
|
+
}, F(p.value), 9, ba)) : a("", !0)
|
|
3470
3495
|
], 64)),
|
|
3471
3496
|
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (D(), i(Re, {
|
|
3472
3497
|
key: 4,
|
|
@@ -3503,7 +3528,7 @@ var ui = () => ({
|
|
|
3503
3528
|
})) : a("", !0)
|
|
3504
3529
|
], 10, _a));
|
|
3505
3530
|
}
|
|
3506
|
-
}), [["__scopeId", "data-v-
|
|
3531
|
+
}), [["__scopeId", "data-v-0de70d6d"]]), Sa = {}, Ca = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
3507
3532
|
function wa(e, t) {
|
|
3508
3533
|
return D(), o("div", Ca, "No Results Found");
|
|
3509
3534
|
}
|
|
@@ -3592,19 +3617,19 @@ var Ma = {
|
|
|
3592
3617
|
config: {}
|
|
3593
3618
|
},
|
|
3594
3619
|
setup(e) {
|
|
3595
|
-
let n = e, c = k(null), l = k(null), u = r(() => n.subText || null),
|
|
3596
|
-
let r =
|
|
3620
|
+
let n = e, c = k(null), l = k(null), u = r(() => n.menuOptionConfig?.size === "lg" ? "sm" : "lg"), d = r(() => n.menuOptionConfig?.size === "xl" ? 20 : void 0), f = r(() => n.subText || null), p = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), m = (e, t, n) => {
|
|
3621
|
+
let r = p(n), i = RegExp(`(${r})`, "gi");
|
|
3597
3622
|
e.innerHTML = t.replace(i, "<span data-test-id=\"pv-matched-text\" style=\"font-weight: bold;\">$1</span>");
|
|
3598
|
-
},
|
|
3623
|
+
}, h = () => {
|
|
3599
3624
|
if (n.queryText) {
|
|
3600
|
-
let e = new RegExp(
|
|
3601
|
-
c.value &&
|
|
3602
|
-
} else c.value && (c.value.textContent = n.text), l.value &&
|
|
3625
|
+
let e = new RegExp(p(n.queryText), "gi").test(n.text);
|
|
3626
|
+
c.value && m(c.value, n.text, n.queryText), l.value && f.value && (e ? l.value.textContent = f.value : m(l.value, f.value, n.queryText));
|
|
3627
|
+
} else c.value && (c.value.textContent = n.text), l.value && f.value && (l.value.textContent = f.value);
|
|
3603
3628
|
};
|
|
3604
3629
|
return w(() => {
|
|
3605
|
-
|
|
3630
|
+
h();
|
|
3606
3631
|
}), G(() => n.queryText, () => {
|
|
3607
|
-
|
|
3632
|
+
h();
|
|
3608
3633
|
}), (n, r) => (D(), o(t, null, [
|
|
3609
3634
|
e.avatar ? (D(), i(ga, {
|
|
3610
3635
|
key: 0,
|
|
@@ -3612,18 +3637,24 @@ var Ma = {
|
|
|
3612
3637
|
image: e.avatar.image,
|
|
3613
3638
|
variant: e.avatar.variant,
|
|
3614
3639
|
shape: e.avatar.shape,
|
|
3615
|
-
size:
|
|
3640
|
+
size: u.value
|
|
3616
3641
|
}, null, 8, [
|
|
3617
3642
|
"initials",
|
|
3618
3643
|
"image",
|
|
3619
3644
|
"variant",
|
|
3620
|
-
"shape"
|
|
3645
|
+
"shape",
|
|
3646
|
+
"size"
|
|
3621
3647
|
])) : a("", !0),
|
|
3622
3648
|
e.icon ? (D(), i(Z, {
|
|
3623
3649
|
key: 1,
|
|
3624
3650
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
3625
|
-
name: e.icon
|
|
3626
|
-
|
|
3651
|
+
name: e.icon,
|
|
3652
|
+
size: d.value
|
|
3653
|
+
}, null, 8, [
|
|
3654
|
+
"class",
|
|
3655
|
+
"name",
|
|
3656
|
+
"size"
|
|
3657
|
+
])) : a("", !0),
|
|
3627
3658
|
e.companyName ? (D(), i(kr, {
|
|
3628
3659
|
key: 2,
|
|
3629
3660
|
name: e.companyName,
|
|
@@ -3639,7 +3670,7 @@ var Ma = {
|
|
|
3639
3670
|
key: 0,
|
|
3640
3671
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
3641
3672
|
style: { "padding-left": "4px" }
|
|
3642
|
-
}, F(e.subduedText), 3)) : a("", !0)], 8, Na),
|
|
3673
|
+
}, F(e.subduedText), 3)) : a("", !0)], 8, Na), f.value ? (D(), o("span", {
|
|
3643
3674
|
key: 0,
|
|
3644
3675
|
ref_key: "subText",
|
|
3645
3676
|
ref: l,
|
|
@@ -3649,8 +3680,8 @@ var Ma = {
|
|
|
3649
3680
|
"pv-truncate",
|
|
3650
3681
|
{ "pv-text-subdued": !e.disabled }
|
|
3651
3682
|
]),
|
|
3652
|
-
title: e.hoverTitle ??
|
|
3653
|
-
}, F(
|
|
3683
|
+
title: e.hoverTitle ?? f.value
|
|
3684
|
+
}, F(f.value), 11, Pa)) : a("", !0)]),
|
|
3654
3685
|
e.secondaryText && typeof e.secondaryText == "number" ? (D(), i(Re, {
|
|
3655
3686
|
key: 3,
|
|
3656
3687
|
value: e.secondaryText,
|
|
@@ -4474,15 +4505,15 @@ var Ma = {
|
|
|
4474
4505
|
style: { margin: "8px 0" }
|
|
4475
4506
|
}, bo = {
|
|
4476
4507
|
key: 3,
|
|
4477
|
-
class: "pv-flex pv-inset-square-8",
|
|
4508
|
+
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
4478
4509
|
style: { "justify-content": "center" }
|
|
4479
|
-
}, xo = {
|
|
4510
|
+
}, xo = { key: 0 }, So = {
|
|
4480
4511
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
4481
4512
|
style: {
|
|
4482
4513
|
"--flex-justify": "space-between",
|
|
4483
4514
|
"--bottom": "0"
|
|
4484
4515
|
}
|
|
4485
|
-
},
|
|
4516
|
+
}, Co = /* @__PURE__ */ d({
|
|
4486
4517
|
__name: "PvMultiSelectButton",
|
|
4487
4518
|
props: /* @__PURE__ */ g({
|
|
4488
4519
|
companyLogo: {},
|
|
@@ -4522,6 +4553,7 @@ var Ma = {
|
|
|
4522
4553
|
isSeeMoreLoading: { type: Boolean },
|
|
4523
4554
|
hasMoreOptions: { type: Boolean },
|
|
4524
4555
|
label: { default: "Select" },
|
|
4556
|
+
loadingText: {},
|
|
4525
4557
|
menuActionsVariant: { default: "select-clear" },
|
|
4526
4558
|
options: { default: () => [] },
|
|
4527
4559
|
optionsAction: {},
|
|
@@ -4572,7 +4604,8 @@ var Ma = {
|
|
|
4572
4604
|
renderer: c.optionsRenderer,
|
|
4573
4605
|
action: c.optionsAction,
|
|
4574
4606
|
variant: c.optionsVariant,
|
|
4575
|
-
counterBadgeVariant: c.counterBadgeVariant
|
|
4607
|
+
counterBadgeVariant: c.counterBadgeVariant,
|
|
4608
|
+
size: c.size
|
|
4576
4609
|
})), d = r(() => {
|
|
4577
4610
|
let e = /* @__PURE__ */ new Map(), t = (n) => {
|
|
4578
4611
|
for (let r of n) e.set(r.id, r), r.children?.length && t(r.children);
|
|
@@ -4822,8 +4855,8 @@ var Ma = {
|
|
|
4822
4855
|
"isSeeMoreLoading",
|
|
4823
4856
|
"hasMoreOptions"
|
|
4824
4857
|
]))], 64)) : a("", !0),
|
|
4825
|
-
e.isLoading ? (D(), o("div", bo, [u(ke, { variant: "dark" })])) : ae.value.length === 0 ? (D(), o(t, { key: 4 }, [I(ve) ? j(n.$slots, "no-results", b(_({ key: 0 }, fe.value))) : (D(), i(Ta, { key: 1 }))], 64)) : a("", !0),
|
|
4826
|
-
s("div",
|
|
4858
|
+
e.isLoading ? (D(), o("div", bo, [u(ke, { variant: "dark" }), e.loadingText ? (D(), o("span", xo, F(e.loadingText), 1)) : a("", !0)])) : ae.value.length === 0 ? (D(), o(t, { key: 4 }, [I(ve) ? j(n.$slots, "no-results", b(_({ key: 0 }, fe.value))) : (D(), i(Ta, { key: 1 }))], 64)) : a("", !0),
|
|
4859
|
+
s("div", So, [I(ye) ? j(n.$slots, "footer", b(_({ key: 0 }, fe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(pa, {
|
|
4827
4860
|
key: 1,
|
|
4828
4861
|
variant: e.menuActionsVariant,
|
|
4829
4862
|
disabled: e.isLoading,
|
|
@@ -4841,10 +4874,10 @@ var Ma = {
|
|
|
4841
4874
|
_: 3
|
|
4842
4875
|
}, 16, ["modelValue", "offset"]));
|
|
4843
4876
|
}
|
|
4844
|
-
}),
|
|
4877
|
+
}), wo = {
|
|
4845
4878
|
key: 0,
|
|
4846
4879
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
4847
|
-
},
|
|
4880
|
+
}, To = /* @__PURE__ */ d({
|
|
4848
4881
|
__name: "PvSelectButton",
|
|
4849
4882
|
props: /* @__PURE__ */ g({
|
|
4850
4883
|
defaultOpen: { type: Boolean },
|
|
@@ -4901,7 +4934,8 @@ var Ma = {
|
|
|
4901
4934
|
renderer: n.optionsRenderer,
|
|
4902
4935
|
action: n.optionsAction,
|
|
4903
4936
|
variant: n.optionsVariant,
|
|
4904
|
-
counterBadgeVariant: n.counterBadgeVariant
|
|
4937
|
+
counterBadgeVariant: n.counterBadgeVariant,
|
|
4938
|
+
size: n.size
|
|
4905
4939
|
})), d = t, [f] = ce(n.defaultOpen), p = z(e, "modelValue"), m = z(e, "searchInput");
|
|
4906
4940
|
G(f, (e) => {
|
|
4907
4941
|
d(e ? "dropdown-open" : "dropdown-closed");
|
|
@@ -4992,7 +5026,7 @@ var Ma = {
|
|
|
4992
5026
|
class: "pv-popover",
|
|
4993
5027
|
"data-test-id": "pv-popover",
|
|
4994
5028
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
4995
|
-
}, [e.disableSearchInput ? a("", !0) : (D(), o("div",
|
|
5029
|
+
}, [e.disableSearchInput ? a("", !0) : (D(), o("div", wo, [u(ni, {
|
|
4996
5030
|
"model-value": m.value,
|
|
4997
5031
|
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
4998
5032
|
class: "pv-stack-4",
|
|
@@ -5019,18 +5053,18 @@ var Ma = {
|
|
|
5019
5053
|
_: 1
|
|
5020
5054
|
}, 16, ["modelValue"]));
|
|
5021
5055
|
}
|
|
5022
|
-
}),
|
|
5056
|
+
}), Eo = {
|
|
5023
5057
|
short: 5,
|
|
5024
5058
|
long: 7
|
|
5025
|
-
},
|
|
5026
|
-
if (n <=
|
|
5059
|
+
}, Do = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
5060
|
+
if (n <= Eo[e]) return Array.from({ length: n }, (e, t) => ({
|
|
5027
5061
|
page: t + 1,
|
|
5028
5062
|
label: (t + 1).toString()
|
|
5029
5063
|
}));
|
|
5030
5064
|
let r = [{
|
|
5031
5065
|
page: 1,
|
|
5032
5066
|
label: "1"
|
|
5033
|
-
}], i =
|
|
5067
|
+
}], i = Eo[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
5034
5068
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
5035
5069
|
page: 0,
|
|
5036
5070
|
label: "..."
|
|
@@ -5049,11 +5083,11 @@ var Ma = {
|
|
|
5049
5083
|
page: n,
|
|
5050
5084
|
label: n.toString()
|
|
5051
5085
|
}), r;
|
|
5052
|
-
} }),
|
|
5086
|
+
} }), Oo = ["data-style"], ko = ["data-testid", "aria-current"], Ao = {
|
|
5053
5087
|
key: 0,
|
|
5054
5088
|
class: "dots-button",
|
|
5055
5089
|
disabled: ""
|
|
5056
|
-
},
|
|
5090
|
+
}, jo = ["onClick"], Mo = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5057
5091
|
__name: "PvPagination",
|
|
5058
5092
|
props: /* @__PURE__ */ g({
|
|
5059
5093
|
size: { default: "lg" },
|
|
@@ -5066,7 +5100,7 @@ var Ma = {
|
|
|
5066
5100
|
}),
|
|
5067
5101
|
emits: ["update:modelValue"],
|
|
5068
5102
|
setup(e) {
|
|
5069
|
-
let { getPaginations: n } =
|
|
5103
|
+
let { getPaginations: n } = Do({ variant: e.variant }), r = z(e, "modelValue");
|
|
5070
5104
|
return (i, a) => (D(), o("ol", {
|
|
5071
5105
|
role: "list",
|
|
5072
5106
|
class: "pv-pagination",
|
|
@@ -5088,10 +5122,10 @@ var Ma = {
|
|
|
5088
5122
|
key: e.page,
|
|
5089
5123
|
"data-testid": `pagination-button-${e.page}`,
|
|
5090
5124
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
5091
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
5125
|
+
}, [e.label === "..." ? (D(), o("button", Ao, F(e.label), 1)) : (D(), o("button", {
|
|
5092
5126
|
key: 1,
|
|
5093
5127
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
5094
|
-
}, F(e.label), 9,
|
|
5128
|
+
}, F(e.label), 9, jo))], 8, ko))), 128)),
|
|
5095
5129
|
s("li", null, [u($, {
|
|
5096
5130
|
"data-testid": "pagination-right-arrow-icon",
|
|
5097
5131
|
disabled: r.value === e.maxPages,
|
|
@@ -5100,14 +5134,14 @@ var Ma = {
|
|
|
5100
5134
|
variant: "ghost",
|
|
5101
5135
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
5102
5136
|
}, null, 8, ["disabled"])])
|
|
5103
|
-
], 8,
|
|
5137
|
+
], 8, Oo));
|
|
5104
5138
|
}
|
|
5105
|
-
}), [["__scopeId", "data-v-6c36dca2"]]),
|
|
5139
|
+
}), [["__scopeId", "data-v-6c36dca2"]]), No = ["for"], Po = [
|
|
5106
5140
|
"checked",
|
|
5107
5141
|
"type",
|
|
5108
5142
|
"value",
|
|
5109
5143
|
"id"
|
|
5110
|
-
],
|
|
5144
|
+
], Fo = /* @__PURE__ */ d({
|
|
5111
5145
|
__name: "PvSelectableCard",
|
|
5112
5146
|
props: {
|
|
5113
5147
|
variant: { default: "default" },
|
|
@@ -5129,34 +5163,34 @@ var Ma = {
|
|
|
5129
5163
|
type: e.deselect ? "checkbox" : "radio",
|
|
5130
5164
|
value: e.value,
|
|
5131
5165
|
id: t.value
|
|
5132
|
-
}, null, 8,
|
|
5166
|
+
}, null, 8, Po), j(n.$slots, "default")], 10, No));
|
|
5133
5167
|
}
|
|
5134
|
-
}),
|
|
5168
|
+
}), Io = { class: "pv-layout-two-sidebar" }, Lo = ["data-hidden"], Ro = { "data-layout": "main-section" }, zo = ["data-hidden"], Bo = /* @__PURE__ */ d({
|
|
5135
5169
|
__name: "PvSidePanel",
|
|
5136
5170
|
props: {
|
|
5137
5171
|
showLeftSidebar: { type: Boolean },
|
|
5138
5172
|
showRightSidebar: { type: Boolean }
|
|
5139
5173
|
},
|
|
5140
5174
|
setup(e) {
|
|
5141
|
-
return (t, n) => (D(), o("div",
|
|
5175
|
+
return (t, n) => (D(), o("div", Io, [
|
|
5142
5176
|
s("div", {
|
|
5143
5177
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
5144
5178
|
"data-testid": "pv-side-panel-left",
|
|
5145
5179
|
"data-layout": "left-sidebar"
|
|
5146
|
-
}, [j(t.$slots, "left-sidebar")], 8,
|
|
5147
|
-
s("div",
|
|
5180
|
+
}, [j(t.$slots, "left-sidebar")], 8, Lo),
|
|
5181
|
+
s("div", Ro, [j(t.$slots, "main")]),
|
|
5148
5182
|
s("div", {
|
|
5149
5183
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
5150
5184
|
"data-testid": "pv-side-panel-right",
|
|
5151
5185
|
"data-layout": "right-sidebar"
|
|
5152
|
-
}, [j(t.$slots, "right-sidebar")], 8,
|
|
5186
|
+
}, [j(t.$slots, "right-sidebar")], 8, zo)
|
|
5153
5187
|
]));
|
|
5154
5188
|
}
|
|
5155
|
-
}),
|
|
5189
|
+
}), Vo = ["data-style"], Ho = [
|
|
5156
5190
|
"placeholder",
|
|
5157
5191
|
"disabled",
|
|
5158
5192
|
"name"
|
|
5159
|
-
],
|
|
5193
|
+
], Uo = /* @__PURE__ */ d({
|
|
5160
5194
|
__name: "PvGhostInput",
|
|
5161
5195
|
props: /* @__PURE__ */ g({
|
|
5162
5196
|
variant: { default: "h1" },
|
|
@@ -5218,7 +5252,7 @@ var Ma = {
|
|
|
5218
5252
|
placeholder: e.placeholder,
|
|
5219
5253
|
disabled: e.disabled,
|
|
5220
5254
|
name: n[e.variant]
|
|
5221
|
-
}), null, 16,
|
|
5255
|
+
}), null, 16, Ho), [[U, l.value]]),
|
|
5222
5256
|
e.showEditIcon ? (D(), i($, {
|
|
5223
5257
|
key: 0,
|
|
5224
5258
|
"left-icon": "edit",
|
|
@@ -5226,12 +5260,12 @@ var Ma = {
|
|
|
5226
5260
|
variant: "ghost",
|
|
5227
5261
|
onClick: d
|
|
5228
5262
|
})) : a("", !0)
|
|
5229
|
-
], 8,
|
|
5263
|
+
], 8, Vo));
|
|
5230
5264
|
}
|
|
5231
|
-
}),
|
|
5265
|
+
}), Wo = {
|
|
5232
5266
|
key: 0,
|
|
5233
5267
|
class: "pv-heading-2"
|
|
5234
|
-
},
|
|
5268
|
+
}, Go = ["id"], Ko = { class: "pv-flex" }, qo = ["id"], Jo = /* @__PURE__ */ d({
|
|
5235
5269
|
__name: "PvHeader",
|
|
5236
5270
|
props: {
|
|
5237
5271
|
title: {},
|
|
@@ -5257,14 +5291,14 @@ var Ma = {
|
|
|
5257
5291
|
"--inset-size": "0.75rem 1rem",
|
|
5258
5292
|
"background-color": "#fdfdfc"
|
|
5259
5293
|
}
|
|
5260
|
-
}, [e.title ? (D(), o("span",
|
|
5294
|
+
}, [e.title ? (D(), o("span", Wo, F(e.title), 1)) : (D(), o("div", {
|
|
5261
5295
|
key: 1,
|
|
5262
5296
|
id: e.headerTitleId,
|
|
5263
5297
|
class: "pv-flex"
|
|
5264
|
-
}, [j(r.$slots, "left")], 8,
|
|
5298
|
+
}, [j(r.$slots, "left")], 8, Go)), s("div", Ko, [s("div", {
|
|
5265
5299
|
id: e.headerActionsId,
|
|
5266
5300
|
class: "pv-flex"
|
|
5267
|
-
}, [j(r.$slots, "right")], 8,
|
|
5301
|
+
}, [j(r.$slots, "right")], 8, qo), e.showAskTqButton ? (D(), o("div", {
|
|
5268
5302
|
key: 0,
|
|
5269
5303
|
class: y({ "pv-border-left": I(n) }),
|
|
5270
5304
|
style: { "padding-inline-start": "0.5rem" }
|
|
@@ -5275,7 +5309,7 @@ var Ma = {
|
|
|
5275
5309
|
"hide-icon": ""
|
|
5276
5310
|
}, null, 8, ["id"])], 2)) : a("", !0)])], 2));
|
|
5277
5311
|
}
|
|
5278
|
-
}),
|
|
5312
|
+
}), Yo = ["data-more"], Xo = ["src", "alt"], Zo = /* @__PURE__ */ d({
|
|
5279
5313
|
__name: "PvAvatarGroup",
|
|
5280
5314
|
props: {
|
|
5281
5315
|
items: {},
|
|
@@ -5304,18 +5338,18 @@ var Ma = {
|
|
|
5304
5338
|
key: 1,
|
|
5305
5339
|
src: e.image,
|
|
5306
5340
|
alt: e.alt ?? ""
|
|
5307
|
-
}, null, 8,
|
|
5341
|
+
}, null, 8, Xo)) : (D(), o("div", {
|
|
5308
5342
|
key: 2,
|
|
5309
5343
|
class: y(c.value)
|
|
5310
|
-
}, null, 2))]))), 128))], 10,
|
|
5344
|
+
}, null, 2))]))), 128))], 10, Yo));
|
|
5311
5345
|
}
|
|
5312
|
-
}),
|
|
5346
|
+
}), Qo = { class: "pv-flex" }, $o = [
|
|
5313
5347
|
"name",
|
|
5314
5348
|
"value",
|
|
5315
5349
|
"checked",
|
|
5316
5350
|
"disabled",
|
|
5317
5351
|
"onChange"
|
|
5318
|
-
],
|
|
5352
|
+
], es = { key: 1 }, ts = /* @__PURE__ */ d({
|
|
5319
5353
|
__name: "PvToggleGroup",
|
|
5320
5354
|
props: /* @__PURE__ */ g({
|
|
5321
5355
|
disabled: { type: Boolean },
|
|
@@ -5337,7 +5371,7 @@ var Ma = {
|
|
|
5337
5371
|
r.value = e;
|
|
5338
5372
|
}
|
|
5339
5373
|
};
|
|
5340
|
-
return (n, u) => (D(), o("div",
|
|
5374
|
+
return (n, u) => (D(), o("div", Qo, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(Zn, {
|
|
5341
5375
|
key: t.value,
|
|
5342
5376
|
description: e.hideLabels ? t.label : ""
|
|
5343
5377
|
}, {
|
|
@@ -5350,21 +5384,21 @@ var Ma = {
|
|
|
5350
5384
|
class: "pv-radio",
|
|
5351
5385
|
disabled: e.disabled || t.disabled,
|
|
5352
5386
|
onChange: (e) => l(t)
|
|
5353
|
-
}, null, 40,
|
|
5387
|
+
}, null, 40, $o),
|
|
5354
5388
|
t.icon ? (D(), i(Z, {
|
|
5355
5389
|
key: 0,
|
|
5356
5390
|
name: t.icon
|
|
5357
5391
|
}, null, 8, ["name"])) : a("", !0),
|
|
5358
|
-
e.hideLabels ? a("", !0) : (D(), o("span",
|
|
5392
|
+
e.hideLabels ? a("", !0) : (D(), o("span", es, F(t.label), 1))
|
|
5359
5393
|
], 2)]),
|
|
5360
5394
|
_: 2
|
|
5361
5395
|
}, 1032, ["description"]))), 128))]));
|
|
5362
5396
|
}
|
|
5363
|
-
}),
|
|
5397
|
+
}), ns = [
|
|
5364
5398
|
"aria-label",
|
|
5365
5399
|
"disabled",
|
|
5366
5400
|
"indeterminate"
|
|
5367
|
-
],
|
|
5401
|
+
], rs = /* @__PURE__ */ d({
|
|
5368
5402
|
__name: "PvCheckbox",
|
|
5369
5403
|
props: /* @__PURE__ */ g({
|
|
5370
5404
|
ariaLabel: {},
|
|
@@ -5385,13 +5419,13 @@ var Ma = {
|
|
|
5385
5419
|
"aria-label": e.ariaLabel,
|
|
5386
5420
|
disabled: e.disabled,
|
|
5387
5421
|
indeterminate: e.indeterminate
|
|
5388
|
-
}, null, 8,
|
|
5422
|
+
}, null, 8, ns)), [[ee, t.value]]);
|
|
5389
5423
|
}
|
|
5390
|
-
}),
|
|
5424
|
+
}), is = ["aria-label", "aria-labelledby"], as = ["id"], os = [
|
|
5391
5425
|
"name",
|
|
5392
5426
|
"value",
|
|
5393
5427
|
"disabled"
|
|
5394
|
-
],
|
|
5428
|
+
], ss = /* @__PURE__ */ d({
|
|
5395
5429
|
__name: "PvRadioGroup",
|
|
5396
5430
|
props: /* @__PURE__ */ g({
|
|
5397
5431
|
ariaLabel: {},
|
|
@@ -5422,7 +5456,7 @@ var Ma = {
|
|
|
5422
5456
|
key: 0,
|
|
5423
5457
|
id: I(u),
|
|
5424
5458
|
class: "pv-label pv-stack-8"
|
|
5425
|
-
}, F(e.label), 9,
|
|
5459
|
+
}, F(e.label), 9, as)) : a("", !0), s("div", {
|
|
5426
5460
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
5427
5461
|
style: x(f.value)
|
|
5428
5462
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -5435,9 +5469,9 @@ var Ma = {
|
|
|
5435
5469
|
name: d.value,
|
|
5436
5470
|
value: t.value,
|
|
5437
5471
|
disabled: e.disabled || t.disabled
|
|
5438
|
-
}, null, 8,
|
|
5472
|
+
}, null, 8, os), [[H, i.value]]), l(" " + F(t.label), 1)]))), 128))], 6)], 8, is));
|
|
5439
5473
|
}
|
|
5440
|
-
}),
|
|
5474
|
+
}), cs = /* @__PURE__ */ d({
|
|
5441
5475
|
__name: "PvSprite",
|
|
5442
5476
|
props: {
|
|
5443
5477
|
src: {},
|
|
@@ -5458,7 +5492,7 @@ var Ma = {
|
|
|
5458
5492
|
id: "pv-sprite-content"
|
|
5459
5493
|
}, null, -1)]));
|
|
5460
5494
|
}
|
|
5461
|
-
}),
|
|
5495
|
+
}), ls = /* @__PURE__ */ d({
|
|
5462
5496
|
__name: "PvSkeleton",
|
|
5463
5497
|
props: {
|
|
5464
5498
|
size: { default: "md" },
|
|
@@ -5485,18 +5519,18 @@ var Ma = {
|
|
|
5485
5519
|
"width"
|
|
5486
5520
|
]));
|
|
5487
5521
|
}
|
|
5488
|
-
}),
|
|
5522
|
+
}), us = ["for"], ds = {
|
|
5489
5523
|
key: 0,
|
|
5490
5524
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
5491
5525
|
style: { "--inset-size": "6px 10px" }
|
|
5492
|
-
},
|
|
5526
|
+
}, fs = { class: "pv-relative pv-flex-item" }, ps = [
|
|
5493
5527
|
"disabled",
|
|
5494
5528
|
"type",
|
|
5495
5529
|
"placeholder",
|
|
5496
5530
|
"id",
|
|
5497
5531
|
"data-invalid",
|
|
5498
5532
|
"step"
|
|
5499
|
-
],
|
|
5533
|
+
], ms = /* @__PURE__ */ d({
|
|
5500
5534
|
__name: "PvInput",
|
|
5501
5535
|
props: /* @__PURE__ */ g({
|
|
5502
5536
|
showLabel: { type: Boolean },
|
|
@@ -5523,8 +5557,8 @@ var Ma = {
|
|
|
5523
5557
|
"data-testid": "pv-input-label",
|
|
5524
5558
|
class: "pv-label pv-stack-8",
|
|
5525
5559
|
for: e.id
|
|
5526
|
-
}, [j(n.$slots, "label")], 8,
|
|
5527
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div",
|
|
5560
|
+
}, [j(n.$slots, "label")], 8, us)) : a("", !0),
|
|
5561
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", ds, F(e.prefixLabel), 1)) : a("", !0), s("div", fs, [e.inputIcon ? (D(), i(Z, {
|
|
5528
5562
|
key: 0,
|
|
5529
5563
|
class: "pv-absolute input-icon-position",
|
|
5530
5564
|
name: e.inputIcon
|
|
@@ -5542,7 +5576,7 @@ var Ma = {
|
|
|
5542
5576
|
id: e.id,
|
|
5543
5577
|
"data-invalid": e.error ? !0 : void 0,
|
|
5544
5578
|
step: e.step
|
|
5545
|
-
}), null, 16,
|
|
5579
|
+
}), null, 16, ps), [[te, c.value]])])], 2),
|
|
5546
5580
|
e.lowerLabel ? (D(), o("p", {
|
|
5547
5581
|
key: 1,
|
|
5548
5582
|
"data-testid": "pv-input-lower-label",
|
|
@@ -5554,15 +5588,15 @@ var Ma = {
|
|
|
5554
5588
|
}, F(e.lowerLabel), 3)) : a("", !0)
|
|
5555
5589
|
], 64));
|
|
5556
5590
|
}
|
|
5557
|
-
}),
|
|
5591
|
+
}), hs = { class: "pv-stack-8" }, gs = { class: "pv-input-file" }, _s = [
|
|
5558
5592
|
"id",
|
|
5559
5593
|
"accept",
|
|
5560
5594
|
"disabled",
|
|
5561
5595
|
"multiple"
|
|
5562
|
-
],
|
|
5596
|
+
], vs = ["for"], ys = {
|
|
5563
5597
|
key: 0,
|
|
5564
5598
|
class: "pv-stack-8"
|
|
5565
|
-
},
|
|
5599
|
+
}, bs = { class: "pv-flex-item pv-truncate pv-text-body-sm" }, xs = /* @__PURE__ */ d({
|
|
5566
5600
|
__name: "PvFileInput",
|
|
5567
5601
|
props: /* @__PURE__ */ g({
|
|
5568
5602
|
helperText: {},
|
|
@@ -5588,7 +5622,7 @@ var Ma = {
|
|
|
5588
5622
|
}, m = (e) => {
|
|
5589
5623
|
d.value = d.value.filter((t) => t !== e);
|
|
5590
5624
|
}, h = r(() => !c.showSelectedFile || d.value.length === 0 ? c.helperText : d.value.length === 1 ? d.value[0].name : `${d.value.length} files selected`);
|
|
5591
|
-
return (n, r) => (D(), o("div",
|
|
5625
|
+
return (n, r) => (D(), o("div", hs, [s("div", gs, [
|
|
5592
5626
|
s("input", {
|
|
5593
5627
|
id: I(f),
|
|
5594
5628
|
type: "file",
|
|
@@ -5597,11 +5631,11 @@ var Ma = {
|
|
|
5597
5631
|
disabled: e.disabled,
|
|
5598
5632
|
multiple: e.multiple,
|
|
5599
5633
|
onChange: p
|
|
5600
|
-
}, null, 40,
|
|
5634
|
+
}, null, 40, _s),
|
|
5601
5635
|
s("label", {
|
|
5602
5636
|
for: I(f),
|
|
5603
5637
|
class: "pv-label"
|
|
5604
|
-
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8,
|
|
5638
|
+
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8, vs),
|
|
5605
5639
|
s("p", { class: y(["pv-text-body-sm", e.showSelectedFile && d.value.length ? "pv-flex-item pv-truncate" : "pv-text-subdued"]) }, F(h.value), 3),
|
|
5606
5640
|
e.showSelectedFile && d.value.length === 1 ? (D(), i($, {
|
|
5607
5641
|
key: 0,
|
|
@@ -5611,10 +5645,10 @@ var Ma = {
|
|
|
5611
5645
|
"aria-label": "Remove file",
|
|
5612
5646
|
onClick: r[0] ||= (e) => m(d.value[0])
|
|
5613
5647
|
})) : a("", !0)
|
|
5614
|
-
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul",
|
|
5648
|
+
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul", ys, [(D(!0), o(t, null, A(d.value, (e) => (D(), o("li", {
|
|
5615
5649
|
key: e.name,
|
|
5616
5650
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
5617
|
-
}, [s("p",
|
|
5651
|
+
}, [s("p", bs, F(e.name), 1), u($, {
|
|
5618
5652
|
"left-icon": "trash",
|
|
5619
5653
|
variant: "destructive",
|
|
5620
5654
|
size: "md",
|
|
@@ -5622,7 +5656,7 @@ var Ma = {
|
|
|
5622
5656
|
onClick: (t) => m(e)
|
|
5623
5657
|
}, null, 8, ["onClick"])]))), 128))])) : a("", !0)]));
|
|
5624
5658
|
}
|
|
5625
|
-
}),
|
|
5659
|
+
}), Ss = ["data-rating"], Cs = ["value"], ws = /* @__PURE__ */ d({
|
|
5626
5660
|
__name: "PvRating",
|
|
5627
5661
|
props: {
|
|
5628
5662
|
variant: { default: "dot" },
|
|
@@ -5641,9 +5675,9 @@ var Ma = {
|
|
|
5641
5675
|
min: "0",
|
|
5642
5676
|
max: "5",
|
|
5643
5677
|
value: e.value
|
|
5644
|
-
}, "4.0 stars", 8,
|
|
5678
|
+
}, "4.0 stars", 8, Cs)], 12, Ss));
|
|
5645
5679
|
}
|
|
5646
|
-
}),
|
|
5680
|
+
}), Ts = /* @__PURE__ */ d({
|
|
5647
5681
|
__name: "PvCard",
|
|
5648
5682
|
props: {
|
|
5649
5683
|
href: {},
|
|
@@ -5669,34 +5703,34 @@ var Ma = {
|
|
|
5669
5703
|
"class"
|
|
5670
5704
|
]));
|
|
5671
5705
|
}
|
|
5672
|
-
}),
|
|
5706
|
+
}), Es = /* @__PURE__ */ d({
|
|
5673
5707
|
__name: "PvWidget",
|
|
5674
5708
|
setup(e) {
|
|
5675
|
-
return (e, t) => (D(), i(
|
|
5709
|
+
return (e, t) => (D(), i(Ts, { class: "pv-inset-square-16" }, {
|
|
5676
5710
|
default: K(() => [j(e.$slots, "default")]),
|
|
5677
5711
|
_: 3
|
|
5678
5712
|
}));
|
|
5679
5713
|
}
|
|
5680
|
-
}),
|
|
5714
|
+
}), Ds = {
|
|
5681
5715
|
class: "pv-flex-vertical",
|
|
5682
5716
|
style: {
|
|
5683
5717
|
"--flex-align": "flex-start",
|
|
5684
5718
|
"--flex-gap": "0.25rem"
|
|
5685
5719
|
}
|
|
5686
|
-
},
|
|
5720
|
+
}, Os = {
|
|
5687
5721
|
key: 0,
|
|
5688
5722
|
class: "pv-flex",
|
|
5689
5723
|
style: { "--flex-gap": "0.25rem" }
|
|
5690
|
-
},
|
|
5724
|
+
}, ks = { class: "pv-text-body-sm" }, As = {
|
|
5691
5725
|
key: 1,
|
|
5692
5726
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
5693
|
-
},
|
|
5727
|
+
}, js = {
|
|
5694
5728
|
key: 2,
|
|
5695
5729
|
class: "pv-heading-2"
|
|
5696
|
-
},
|
|
5730
|
+
}, Ms = {
|
|
5697
5731
|
key: 3,
|
|
5698
5732
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
5699
|
-
},
|
|
5733
|
+
}, Ns = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5700
5734
|
__name: "PvInsightCard",
|
|
5701
5735
|
props: {
|
|
5702
5736
|
icon: { default: "ai" },
|
|
@@ -5716,22 +5750,22 @@ var Ma = {
|
|
|
5716
5750
|
emits: ["click", "icon-click"],
|
|
5717
5751
|
setup(e) {
|
|
5718
5752
|
let t = e, n = r(() => t.icon || t.insight);
|
|
5719
|
-
return (t, r) => (D(), i(
|
|
5753
|
+
return (t, r) => (D(), i(Ts, {
|
|
5720
5754
|
variant: "secondary",
|
|
5721
5755
|
interactive: e.interactive,
|
|
5722
5756
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
5723
5757
|
class: "pv-relative"
|
|
5724
5758
|
}, {
|
|
5725
|
-
default: K(() => [s("div",
|
|
5726
|
-
n.value ? (D(), o("div",
|
|
5759
|
+
default: K(() => [s("div", Ds, [
|
|
5760
|
+
n.value ? (D(), o("div", Os, [e.icon ? (D(), i(Z, {
|
|
5727
5761
|
key: 0,
|
|
5728
5762
|
style: { color: "#218c88" },
|
|
5729
5763
|
name: e.icon,
|
|
5730
5764
|
size: 12
|
|
5731
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
5732
|
-
e.upperLabel ? (D(), o("span",
|
|
5733
|
-
e.title ? (D(), o("span",
|
|
5734
|
-
e.description ? (D(), o("span",
|
|
5765
|
+
}, null, 8, ["name"])) : a("", !0), s("span", ks, F(e.insight), 1)])) : a("", !0),
|
|
5766
|
+
e.upperLabel ? (D(), o("span", As, F(e.upperLabel), 1)) : a("", !0),
|
|
5767
|
+
e.title ? (D(), o("span", js, F(e.title), 1)) : a("", !0),
|
|
5768
|
+
e.description ? (D(), o("span", Ms, F(e.description), 1)) : a("", !0)
|
|
5735
5769
|
]), e.showButton ? (D(), i($, {
|
|
5736
5770
|
key: 0,
|
|
5737
5771
|
"left-icon": "new-tab",
|
|
@@ -5744,7 +5778,7 @@ var Ma = {
|
|
|
5744
5778
|
_: 1
|
|
5745
5779
|
}, 8, ["interactive"]));
|
|
5746
5780
|
}
|
|
5747
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
5781
|
+
}), [["__scopeId", "data-v-c1185c07"]]), Ps = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5748
5782
|
__name: "PvExpandableContent",
|
|
5749
5783
|
props: {
|
|
5750
5784
|
lines: { default: 4 },
|
|
@@ -5782,7 +5816,7 @@ var Ma = {
|
|
|
5782
5816
|
"left-icon": i.value ? "chevron-up" : "chevron-down"
|
|
5783
5817
|
}, null, 8, ["label", "left-icon"])], 6));
|
|
5784
5818
|
}
|
|
5785
|
-
}), [["__scopeId", "data-v-06cc192f"]]),
|
|
5819
|
+
}), [["__scopeId", "data-v-06cc192f"]]), Fs = { class: "pv-text-body-md" }, Is = /* @__PURE__ */ d({
|
|
5786
5820
|
__name: "PvToast",
|
|
5787
5821
|
props: {
|
|
5788
5822
|
variant: { default: "info" },
|
|
@@ -5807,7 +5841,7 @@ var Ma = {
|
|
|
5807
5841
|
name: e.icon ? e.icon : n[e.variant],
|
|
5808
5842
|
size: 20
|
|
5809
5843
|
}, null, 8, ["name"]),
|
|
5810
|
-
s("p",
|
|
5844
|
+
s("p", Fs, F(e.label), 1),
|
|
5811
5845
|
j(r.$slots, "default"),
|
|
5812
5846
|
u($, {
|
|
5813
5847
|
variant: "ghost",
|
|
@@ -5819,29 +5853,29 @@ var Ma = {
|
|
|
5819
5853
|
}, null, 8, ["inverse"])
|
|
5820
5854
|
], 2));
|
|
5821
5855
|
}
|
|
5822
|
-
}),
|
|
5856
|
+
}), Ls = ["data-style"], Rs = /* @__PURE__ */ d({
|
|
5823
5857
|
__name: "PvActionBar",
|
|
5824
5858
|
props: { variant: { default: "white" } },
|
|
5825
5859
|
setup(e) {
|
|
5826
5860
|
return (t, n) => (D(), o("div", {
|
|
5827
5861
|
class: "pv-action-bar-container",
|
|
5828
5862
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
5829
|
-
}, [j(t.$slots, "default")], 8,
|
|
5863
|
+
}, [j(t.$slots, "default")], 8, Ls));
|
|
5830
5864
|
}
|
|
5831
|
-
}),
|
|
5865
|
+
}), zs = {
|
|
5832
5866
|
class: "pv-flex pv-truncate",
|
|
5833
5867
|
style: {
|
|
5834
5868
|
"min-width": "0",
|
|
5835
5869
|
"min-height": "20px"
|
|
5836
5870
|
}
|
|
5837
|
-
},
|
|
5871
|
+
}, Bs = ["title"], Vs = /* @__PURE__ */ d({
|
|
5838
5872
|
__name: "PvSimpleItemTree",
|
|
5839
5873
|
props: {
|
|
5840
5874
|
label: {},
|
|
5841
5875
|
icon: {}
|
|
5842
5876
|
},
|
|
5843
5877
|
setup(e) {
|
|
5844
|
-
return (t, n) => (D(), o("div",
|
|
5878
|
+
return (t, n) => (D(), o("div", zs, [e.icon ? (D(), i(Z, {
|
|
5845
5879
|
key: 0,
|
|
5846
5880
|
name: e.icon
|
|
5847
5881
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -5851,9 +5885,9 @@ var Ma = {
|
|
|
5851
5885
|
"min-width": "0"
|
|
5852
5886
|
},
|
|
5853
5887
|
title: e.label
|
|
5854
|
-
}, F(e.label), 9,
|
|
5888
|
+
}, F(e.label), 9, Bs)]));
|
|
5855
5889
|
}
|
|
5856
|
-
}),
|
|
5890
|
+
}), Hs = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5857
5891
|
__name: "PvTreeReorderIcon",
|
|
5858
5892
|
setup(e) {
|
|
5859
5893
|
return (e, t) => (D(), i(Z, {
|
|
@@ -5861,7 +5895,7 @@ var Ma = {
|
|
|
5861
5895
|
class: "reorder-icon pv-text-tertiary"
|
|
5862
5896
|
}));
|
|
5863
5897
|
}
|
|
5864
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
5898
|
+
}), [["__scopeId", "data-v-1efb9068"]]), Us = /* @__PURE__ */ d({
|
|
5865
5899
|
__name: "PvButtonTreeItem",
|
|
5866
5900
|
props: {
|
|
5867
5901
|
selected: { type: Boolean },
|
|
@@ -5896,7 +5930,7 @@ var Ma = {
|
|
|
5896
5930
|
_: 3
|
|
5897
5931
|
}, 8, ["class"]));
|
|
5898
5932
|
}
|
|
5899
|
-
}),
|
|
5933
|
+
}), Ws = /* @__PURE__ */ d({
|
|
5900
5934
|
__name: "PvCheckboxTreeItem",
|
|
5901
5935
|
props: {
|
|
5902
5936
|
selected: { type: Boolean },
|
|
@@ -5925,38 +5959,38 @@ var Ma = {
|
|
|
5925
5959
|
"pv-tree-item-selected": e.selected,
|
|
5926
5960
|
"pv-tree-item-disabled": e.disableSelection
|
|
5927
5961
|
}
|
|
5928
|
-
]) }, [e.disableSelection ? a("", !0) : (D(), i(
|
|
5962
|
+
]) }, [e.disableSelection ? a("", !0) : (D(), i(rs, {
|
|
5929
5963
|
key: 0,
|
|
5930
5964
|
checked: e.selected,
|
|
5931
5965
|
onClick: s
|
|
5932
5966
|
}, null, 8, ["checked"])), j(t.$slots, "default")], 2));
|
|
5933
5967
|
}
|
|
5934
|
-
}),
|
|
5968
|
+
}), Gs = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5935
5969
|
__name: "PvTreeConnector",
|
|
5936
5970
|
props: { isLast: { type: Boolean } },
|
|
5937
5971
|
setup(e) {
|
|
5938
5972
|
return (t, n) => (D(), o("div", { class: y(e.isLast ? "pv-tree-connector-end" : "pv-tree-connector-middle") }, null, 2));
|
|
5939
5973
|
}
|
|
5940
|
-
}), [["__scopeId", "data-v-2a7afaff"]]),
|
|
5974
|
+
}), [["__scopeId", "data-v-2a7afaff"]]), Ks = () => ({
|
|
5941
5975
|
indentPadding: (e, t = 0) => `${(e + t) * 24}px`,
|
|
5942
5976
|
connectorOffset: (e) => `${e * 24 + 8}px`,
|
|
5943
5977
|
showsConnector: (e, t) => !!(t && e[t]?.showNestedTree),
|
|
5944
5978
|
showsChildConnectors: (e, t) => !!e[t]?.showNestedTree,
|
|
5945
5979
|
childLevel: ({ level: e, showNestedTree: t, childrenShowNestedTree: n, additionalNestingLevel: r = 0 }) => e + (n && !t ? 0 : 1) + r
|
|
5946
|
-
}),
|
|
5980
|
+
}), qs = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5947
5981
|
__name: "PvTreeConnectorGroup",
|
|
5948
5982
|
props: {
|
|
5949
5983
|
active: { type: Boolean },
|
|
5950
5984
|
level: {}
|
|
5951
5985
|
},
|
|
5952
5986
|
setup(e) {
|
|
5953
|
-
let t = e, { connectorOffset: n } =
|
|
5987
|
+
let t = e, { connectorOffset: n } = Ks(), i = r(() => t.active ? { "--tree-connector-left": n(t.level) } : {});
|
|
5954
5988
|
return (t, n) => (D(), o("div", {
|
|
5955
5989
|
class: y({ "pv-tree-connector-line": e.active }),
|
|
5956
5990
|
style: x(i.value)
|
|
5957
5991
|
}, [j(t.$slots, "default", {}, void 0, !0)], 6));
|
|
5958
5992
|
}
|
|
5959
|
-
}), [["__scopeId", "data-v-fb9813d5"]]),
|
|
5993
|
+
}), [["__scopeId", "data-v-fb9813d5"]]), Js = () => {
|
|
5960
5994
|
let e = k(null);
|
|
5961
5995
|
return {
|
|
5962
5996
|
hoveredId: e,
|
|
@@ -5967,15 +6001,15 @@ var Ma = {
|
|
|
5967
6001
|
e.value = null;
|
|
5968
6002
|
}
|
|
5969
6003
|
};
|
|
5970
|
-
},
|
|
6004
|
+
}, Ys = Symbol("DraggingStateKey"), Xs = Symbol("DraggingGroupNameKey"), Zs = Symbol("DropIndicatorKey"), Qs = () => {
|
|
5971
6005
|
let e = k(!1), t = k(null), n = k(null);
|
|
5972
|
-
return O(
|
|
6006
|
+
return O(Ys, e), O(Xs, t), O(Zs, n), {
|
|
5973
6007
|
isDragging: e,
|
|
5974
6008
|
draggingGroupName: t,
|
|
5975
6009
|
dropIndicator: n
|
|
5976
6010
|
};
|
|
5977
|
-
},
|
|
5978
|
-
let e = m(
|
|
6011
|
+
}, $s = () => {
|
|
6012
|
+
let e = m(Ys, k(!1)), t = m(Xs, k(null)), n = m(Zs, k(null)), r = (n) => {
|
|
5979
6013
|
e.value = !0, t.value = n ?? null;
|
|
5980
6014
|
}, i = () => {
|
|
5981
6015
|
e.value = !1, t.value = null, o();
|
|
@@ -5997,8 +6031,8 @@ var Ma = {
|
|
|
5997
6031
|
onDragStart: r,
|
|
5998
6032
|
onDragEnd: i
|
|
5999
6033
|
};
|
|
6000
|
-
},
|
|
6001
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
6034
|
+
}, ec = () => {
|
|
6035
|
+
let { setDropIndicator: e, clearDropIndicator: t } = $s();
|
|
6002
6036
|
return {
|
|
6003
6037
|
getDragGroupConfig: (e, t) => {
|
|
6004
6038
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -6033,8 +6067,8 @@ var Ma = {
|
|
|
6033
6067
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
6034
6068
|
}
|
|
6035
6069
|
};
|
|
6036
|
-
},
|
|
6037
|
-
let { dropIndicator: e } =
|
|
6070
|
+
}, tc = () => {
|
|
6071
|
+
let { dropIndicator: e } = $s();
|
|
6038
6072
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
6039
6073
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
6040
6074
|
return {
|
|
@@ -6043,7 +6077,7 @@ var Ma = {
|
|
|
6043
6077
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
6044
6078
|
};
|
|
6045
6079
|
} };
|
|
6046
|
-
},
|
|
6080
|
+
}, nc = { class: "pv-flex pv-full-width" }, rc = ["data-parent-id"], ic = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6047
6081
|
__name: "PvSimpleNestedTreeItem",
|
|
6048
6082
|
props: {
|
|
6049
6083
|
option: {},
|
|
@@ -6059,9 +6093,9 @@ var Ma = {
|
|
|
6059
6093
|
},
|
|
6060
6094
|
emits: ["handle-tree-select", "update:children"],
|
|
6061
6095
|
setup(e, { emit: t }) {
|
|
6062
|
-
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } =
|
|
6096
|
+
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } = $s(), { dragAndDropIndicatorClasses: p } = tc(), { hoveredId: m, handleMouseEnter: h, handleMouseLeave: g } = Js(), { canItemBeDragged: _, getDragAndDropDisabled: v, handleMoveCallback: b, getDragGroupConfig: S, canAcceptDrop: C } = ec(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = Ks(), k = () => {
|
|
6063
6097
|
d(S(n.settings, n.option).name);
|
|
6064
|
-
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6098
|
+
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? Ws : Us), P = r(() => T(n.settings, n.parentField)), F = r(() => n.index === n.totalSiblings - 1), L = r(() => P.value && !F.value), R = r(() => O({
|
|
6065
6099
|
level: n.level,
|
|
6066
6100
|
showNestedTree: P.value,
|
|
6067
6101
|
childrenShowNestedTree: E(n.settings, n.option.field)
|
|
@@ -6076,7 +6110,7 @@ var Ma = {
|
|
|
6076
6110
|
}), B = r(() => n.isParentPathOpen ?? !0);
|
|
6077
6111
|
return (t, n) => {
|
|
6078
6112
|
let r = M("PvSimpleNestedTreeItem", !0);
|
|
6079
|
-
return D(), i(
|
|
6113
|
+
return D(), i(qs, {
|
|
6080
6114
|
active: L.value,
|
|
6081
6115
|
level: e.level
|
|
6082
6116
|
}, {
|
|
@@ -6096,7 +6130,7 @@ var Ma = {
|
|
|
6096
6130
|
onMouseleave: n[2] ||= (e) => I(g)(),
|
|
6097
6131
|
onContextmenu: n[3] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6098
6132
|
}, {
|
|
6099
|
-
default: K(() => [q(u(
|
|
6133
|
+
default: K(() => [q(u(Hs, null, null, 512), [[W, I(m) === e.option.node_id && I(_)(e.isDraggable, e.settings, e.option)]]), s("div", nc, [P.value ? (D(), i(Gs, {
|
|
6100
6134
|
key: 0,
|
|
6101
6135
|
"is-last": F.value
|
|
6102
6136
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
@@ -6110,7 +6144,7 @@ var Ma = {
|
|
|
6110
6144
|
"settings",
|
|
6111
6145
|
"is-draggable",
|
|
6112
6146
|
"params"
|
|
6113
|
-
])) : (D(), i(
|
|
6147
|
+
])) : (D(), i(Vs, {
|
|
6114
6148
|
key: 2,
|
|
6115
6149
|
label: e.option.label,
|
|
6116
6150
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6172,12 +6206,12 @@ var Ma = {
|
|
|
6172
6206
|
"class",
|
|
6173
6207
|
"onEnd",
|
|
6174
6208
|
"onAdd"
|
|
6175
|
-
])], 8,
|
|
6209
|
+
])], 8, rc)]),
|
|
6176
6210
|
_: 1
|
|
6177
6211
|
}, 8, ["active", "level"]);
|
|
6178
6212
|
};
|
|
6179
6213
|
}
|
|
6180
|
-
}), [["__scopeId", "data-v-f706f606"]]),
|
|
6214
|
+
}), [["__scopeId", "data-v-f706f606"]]), ac = ["data-parent-id"], oc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6181
6215
|
__name: "PvSimpleNestedTree",
|
|
6182
6216
|
props: {
|
|
6183
6217
|
option: {},
|
|
@@ -6193,14 +6227,14 @@ var Ma = {
|
|
|
6193
6227
|
},
|
|
6194
6228
|
emits: ["handle-tree-select", "update:children"],
|
|
6195
6229
|
setup(e, { emit: t }) {
|
|
6196
|
-
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
6230
|
+
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = Js(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = ec(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = $s(), { dragAndDropIndicatorClasses: C } = tc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = Ks(), k = () => {
|
|
6197
6231
|
b(h(n.settings, n.option).name);
|
|
6198
6232
|
}, A = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), j = r(() => T(n.settings, n.parentField)), M = r(() => O({
|
|
6199
6233
|
level: n.level,
|
|
6200
6234
|
showNestedTree: j.value,
|
|
6201
6235
|
childrenShowNestedTree: E(n.settings, n.option.field),
|
|
6202
6236
|
additionalNestingLevel: A.value
|
|
6203
|
-
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ?
|
|
6237
|
+
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ? Ws : Us, L = r({
|
|
6204
6238
|
get: () => [...n.option.children || []],
|
|
6205
6239
|
set: (e) => {
|
|
6206
6240
|
o("update:children", {
|
|
@@ -6209,7 +6243,7 @@ var Ma = {
|
|
|
6209
6243
|
});
|
|
6210
6244
|
}
|
|
6211
6245
|
}), R = r(() => n.isParentPathOpen ?? !0), z = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), B = r(() => j.value && !z.value);
|
|
6212
|
-
return (t, n) => (D(), i(
|
|
6246
|
+
return (t, n) => (D(), i(qs, {
|
|
6213
6247
|
class: "pv-flow",
|
|
6214
6248
|
style: { "--flow-size": "0px" },
|
|
6215
6249
|
active: B.value,
|
|
@@ -6232,8 +6266,8 @@ var Ma = {
|
|
|
6232
6266
|
onContextmenu: n[3] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6233
6267
|
}, {
|
|
6234
6268
|
default: K(() => [
|
|
6235
|
-
q(u(
|
|
6236
|
-
j.value ? (D(), i(
|
|
6269
|
+
q(u(Hs, null, null, 512), [[W, I(c) === e.option.node_id && I(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6270
|
+
j.value ? (D(), i(Gs, {
|
|
6237
6271
|
key: 0,
|
|
6238
6272
|
"is-last": z.value
|
|
6239
6273
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6248,7 +6282,7 @@ var Ma = {
|
|
|
6248
6282
|
"settings",
|
|
6249
6283
|
"selected",
|
|
6250
6284
|
"params"
|
|
6251
|
-
])) : (D(), i(
|
|
6285
|
+
])) : (D(), i(Vs, {
|
|
6252
6286
|
key: 2,
|
|
6253
6287
|
label: e.option.label,
|
|
6254
6288
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6276,7 +6310,7 @@ var Ma = {
|
|
|
6276
6310
|
onEnd: I(S),
|
|
6277
6311
|
onAdd: I(S)
|
|
6278
6312
|
}, {
|
|
6279
|
-
item: K(({ element: r, index: i }) => [u(
|
|
6313
|
+
item: K(({ element: r, index: i }) => [u(ic, {
|
|
6280
6314
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6281
6315
|
option: r,
|
|
6282
6316
|
settings: e.settings,
|
|
@@ -6311,11 +6345,11 @@ var Ma = {
|
|
|
6311
6345
|
"class",
|
|
6312
6346
|
"onEnd",
|
|
6313
6347
|
"onAdd"
|
|
6314
|
-
])], 8,
|
|
6348
|
+
])], 8, ac)]),
|
|
6315
6349
|
_: 1
|
|
6316
6350
|
}, 8, ["active", "level"]));
|
|
6317
6351
|
}
|
|
6318
|
-
}), [["__scopeId", "data-v-26eb4678"]]),
|
|
6352
|
+
}), [["__scopeId", "data-v-26eb4678"]]), sc = ["data-parent-id"], cc = { key: 2 }, lc = ["data-parent-id"], uc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6319
6353
|
__name: "PvTreeItem",
|
|
6320
6354
|
props: {
|
|
6321
6355
|
option: {},
|
|
@@ -6343,12 +6377,12 @@ var Ma = {
|
|
|
6343
6377
|
G(() => n.treeOpen, (e) => {
|
|
6344
6378
|
e !== void 0 && (l.value = e);
|
|
6345
6379
|
});
|
|
6346
|
-
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } =
|
|
6380
|
+
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } = ec(), { hoveredId: _, handleMouseEnter: v, handleMouseLeave: b } = Js(), { isDragging: S, draggingGroupName: C, onDragStart: w, onDragEnd: T } = $s(), { dragAndDropIndicatorClasses: E } = tc(), { indentPadding: O, showsConnector: A } = Ks(), j = () => {
|
|
6347
6381
|
w(d(n.settings, n.option).name);
|
|
6348
6382
|
}, P = (e) => ({
|
|
6349
6383
|
paddingLeft: O(e, n.settings[n.option.field]?.additionalNestingLevel ?? 0),
|
|
6350
6384
|
"--border-color": "#121313"
|
|
6351
|
-
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), L = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6385
|
+
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), L = r(() => n.settings[n.option.field]?.checkbox ? Ws : Us), R = r({
|
|
6352
6386
|
get: () => [...n.option.children || []],
|
|
6353
6387
|
set: (e) => {
|
|
6354
6388
|
c("update:children", {
|
|
@@ -6359,7 +6393,7 @@ var Ma = {
|
|
|
6359
6393
|
}), z = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), B = r(() => A(n.settings, n.parentField)), V = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), ee = r(() => B.value && !V.value), te = r(() => n.isParentPathOpen ?? !0 ? z.value && n.level === 0 ? l.value : !0 : !1);
|
|
6360
6394
|
return (t, n) => {
|
|
6361
6395
|
let r = M("PvTreeItem", !0);
|
|
6362
|
-
return D(), i(
|
|
6396
|
+
return D(), i(qs, {
|
|
6363
6397
|
active: ee.value,
|
|
6364
6398
|
level: e.level
|
|
6365
6399
|
}, {
|
|
@@ -6391,8 +6425,8 @@ var Ma = {
|
|
|
6391
6425
|
onContextmenu: n[6] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6392
6426
|
}, {
|
|
6393
6427
|
trigger: K(() => [
|
|
6394
|
-
q(u(
|
|
6395
|
-
B.value ? (D(), i(
|
|
6428
|
+
q(u(Hs, null, null, 512), [[W, I(_) === e.option.node_id && I(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6429
|
+
B.value ? (D(), i(Gs, {
|
|
6396
6430
|
key: 0,
|
|
6397
6431
|
"is-last": V.value
|
|
6398
6432
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6407,7 +6441,7 @@ var Ma = {
|
|
|
6407
6441
|
"settings",
|
|
6408
6442
|
"selected",
|
|
6409
6443
|
"params"
|
|
6410
|
-
])) : (D(), i(
|
|
6444
|
+
])) : (D(), i(Vs, {
|
|
6411
6445
|
key: 2,
|
|
6412
6446
|
label: e.option.label,
|
|
6413
6447
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6463,7 +6497,7 @@ var Ma = {
|
|
|
6463
6497
|
"class",
|
|
6464
6498
|
"onEnd",
|
|
6465
6499
|
"onAdd"
|
|
6466
|
-
])], 8,
|
|
6500
|
+
])], 8, sc)]),
|
|
6467
6501
|
_: 1
|
|
6468
6502
|
}, 8, [
|
|
6469
6503
|
"modelValue",
|
|
@@ -6471,7 +6505,7 @@ var Ma = {
|
|
|
6471
6505
|
"summaryStyles",
|
|
6472
6506
|
"summaryClasses",
|
|
6473
6507
|
"defaultOpen"
|
|
6474
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(
|
|
6508
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(oc, {
|
|
6475
6509
|
key: 1,
|
|
6476
6510
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6477
6511
|
"selected-options": e.selectedOptions,
|
|
@@ -6498,7 +6532,7 @@ var Ma = {
|
|
|
6498
6532
|
"is-draggable",
|
|
6499
6533
|
"disable-selection",
|
|
6500
6534
|
"is-last-root-item"
|
|
6501
|
-
])) : (D(), o("div",
|
|
6535
|
+
])) : (D(), o("div", cc, [(D(), i(N(L.value), {
|
|
6502
6536
|
class: y({ ...I(E)(e.option) }),
|
|
6503
6537
|
option: e.option,
|
|
6504
6538
|
selected: F(e.option.node_id),
|
|
@@ -6515,8 +6549,8 @@ var Ma = {
|
|
|
6515
6549
|
onContextmenu: n[12] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6516
6550
|
}, {
|
|
6517
6551
|
default: K(() => [
|
|
6518
|
-
q(u(
|
|
6519
|
-
B.value ? (D(), i(
|
|
6552
|
+
q(u(Hs, null, null, 512), [[W, I(_) === e.option.node_id && I(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6553
|
+
B.value ? (D(), i(Gs, {
|
|
6520
6554
|
key: 0,
|
|
6521
6555
|
"is-last": V.value
|
|
6522
6556
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6529,7 +6563,7 @@ var Ma = {
|
|
|
6529
6563
|
"option",
|
|
6530
6564
|
"settings",
|
|
6531
6565
|
"params"
|
|
6532
|
-
])) : (D(), i(
|
|
6566
|
+
])) : (D(), i(Vs, {
|
|
6533
6567
|
key: 2,
|
|
6534
6568
|
label: e.option.label,
|
|
6535
6569
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6592,12 +6626,12 @@ var Ma = {
|
|
|
6592
6626
|
"class",
|
|
6593
6627
|
"onEnd",
|
|
6594
6628
|
"onAdd"
|
|
6595
|
-
])], 8,
|
|
6629
|
+
])], 8, lc)]))]),
|
|
6596
6630
|
_: 1
|
|
6597
6631
|
}, 8, ["active", "level"]);
|
|
6598
6632
|
};
|
|
6599
6633
|
}
|
|
6600
|
-
}), [["__scopeId", "data-v-eb5f5907"]]),
|
|
6634
|
+
}), [["__scopeId", "data-v-eb5f5907"]]), dc = (e) => {
|
|
6601
6635
|
let t = [], n = !1;
|
|
6602
6636
|
function r(e) {
|
|
6603
6637
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -6640,7 +6674,7 @@ var Ma = {
|
|
|
6640
6674
|
newChildren: r
|
|
6641
6675
|
}), n || (n = !0, v(i));
|
|
6642
6676
|
} };
|
|
6643
|
-
},
|
|
6677
|
+
}, fc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6644
6678
|
__name: "PvTree",
|
|
6645
6679
|
props: /* @__PURE__ */ g({
|
|
6646
6680
|
settings: {},
|
|
@@ -6670,14 +6704,14 @@ var Ma = {
|
|
|
6670
6704
|
"update:treeOpen"
|
|
6671
6705
|
],
|
|
6672
6706
|
setup(e) {
|
|
6673
|
-
m(
|
|
6674
|
-
let n = e, i = z(e, "selectedOptions"), a = z(e, "options"), c = z(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
6707
|
+
m(Ys, null) || Qs();
|
|
6708
|
+
let n = e, i = z(e, "selectedOptions"), a = z(e, "options"), c = z(e, "treeOpen"), { handleUpdateChildren: l } = dc(a), d = (e, t) => {
|
|
6675
6709
|
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];
|
|
6676
6710
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
6677
6711
|
...n.defaultSettings,
|
|
6678
6712
|
...n.settings[t]
|
|
6679
6713
|
}, e), {}));
|
|
6680
|
-
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(
|
|
6714
|
+
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(uc, {
|
|
6681
6715
|
"is-last-root-item": n === a.value.length - 1,
|
|
6682
6716
|
"is-parent-path-open": !0,
|
|
6683
6717
|
"tree-open": c.value,
|
|
@@ -6700,19 +6734,19 @@ var Ma = {
|
|
|
6700
6734
|
"onUpdate:children"
|
|
6701
6735
|
])]))), 128))], 2)]));
|
|
6702
6736
|
}
|
|
6703
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
6737
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), pc = /* @__PURE__ */ d({
|
|
6704
6738
|
__name: "PvTreeGroup",
|
|
6705
6739
|
setup(e) {
|
|
6706
|
-
return
|
|
6740
|
+
return Qs(), (e, t) => j(e.$slots, "default");
|
|
6707
6741
|
}
|
|
6708
|
-
}),
|
|
6742
|
+
}), mc = { class: "pv-full-width" }, hc = {
|
|
6709
6743
|
key: 0,
|
|
6710
6744
|
class: "pv-flex pv-stack-4",
|
|
6711
6745
|
style: { "--flex-justify": "space-between" }
|
|
6712
|
-
},
|
|
6746
|
+
}, gc = {
|
|
6713
6747
|
key: 1,
|
|
6714
6748
|
class: "pv-text-subdued pv-text-title-sm"
|
|
6715
|
-
},
|
|
6749
|
+
}, _c = ["data-disabled"], vc = /* @__PURE__ */ d({
|
|
6716
6750
|
__name: "PvProgressBar",
|
|
6717
6751
|
props: {
|
|
6718
6752
|
disabled: {
|
|
@@ -6729,22 +6763,22 @@ var Ma = {
|
|
|
6729
6763
|
},
|
|
6730
6764
|
setup(e) {
|
|
6731
6765
|
let t = e, n = r(() => Math.min(100, Math.max(0, t.progress))), i = r(() => `${n.value}% Complete`);
|
|
6732
|
-
return (r, c) => (D(), o("div",
|
|
6766
|
+
return (r, c) => (D(), o("div", mc, [e.showLabel || e.secondaryLabel ? (D(), o("div", hc, [e.showLabel ? (D(), o("p", {
|
|
6733
6767
|
key: 0,
|
|
6734
6768
|
class: y(e.labelVariant === "secondary" ? "pv-text-subdued pv-text-title-sm" : "pv-text-brand pv-text-title-sm")
|
|
6735
|
-
}, F(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span",
|
|
6769
|
+
}, F(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span", gc, F(e.secondaryLabel), 1)) : a("", !0)])) : a("", !0), s("div", {
|
|
6736
6770
|
class: "pv-progress-bar",
|
|
6737
6771
|
"data-disabled": t.disabled ? !0 : void 0,
|
|
6738
6772
|
style: x({ "--progress": `${n.value}%` })
|
|
6739
|
-
}, null, 12,
|
|
6773
|
+
}, null, 12, _c)]));
|
|
6740
6774
|
}
|
|
6741
|
-
}),
|
|
6775
|
+
}), yc = {
|
|
6742
6776
|
class: "pv-flex",
|
|
6743
6777
|
style: {
|
|
6744
6778
|
"--flex-gap": "4px",
|
|
6745
6779
|
height: "24px"
|
|
6746
6780
|
}
|
|
6747
|
-
},
|
|
6781
|
+
}, bc = /* @__PURE__ */ d({
|
|
6748
6782
|
__name: "PvDistributionBar",
|
|
6749
6783
|
props: { values: {} },
|
|
6750
6784
|
setup(e) {
|
|
@@ -6767,41 +6801,41 @@ var Ma = {
|
|
|
6767
6801
|
default: return "pv-data-surface-visualization-1";
|
|
6768
6802
|
}
|
|
6769
6803
|
};
|
|
6770
|
-
return (n, r) => (D(), o("div",
|
|
6804
|
+
return (n, r) => (D(), o("div", yc, [(D(!0), o(t, null, A(e.values, (e, t) => (D(), o("div", {
|
|
6771
6805
|
key: t,
|
|
6772
6806
|
class: y([l(t)]),
|
|
6773
6807
|
style: x(c(e, t))
|
|
6774
6808
|
}, null, 6))), 128))]));
|
|
6775
6809
|
}
|
|
6776
|
-
}),
|
|
6810
|
+
}), xc = {
|
|
6777
6811
|
key: 0,
|
|
6778
6812
|
class: "pv-range-single-slider"
|
|
6779
|
-
},
|
|
6813
|
+
}, Sc = [
|
|
6780
6814
|
"id",
|
|
6781
6815
|
"aria-label",
|
|
6782
6816
|
"disabled",
|
|
6783
6817
|
"max",
|
|
6784
6818
|
"min",
|
|
6785
6819
|
"step"
|
|
6786
|
-
],
|
|
6820
|
+
], Cc = ["aria-label"], wc = {
|
|
6787
6821
|
key: 0,
|
|
6788
6822
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
6789
6823
|
style: { "line-height": "1" }
|
|
6790
|
-
},
|
|
6824
|
+
}, Tc = [
|
|
6791
6825
|
"aria-label",
|
|
6792
6826
|
"disabled",
|
|
6793
6827
|
"max",
|
|
6794
6828
|
"min",
|
|
6795
6829
|
"step",
|
|
6796
6830
|
"value"
|
|
6797
|
-
],
|
|
6831
|
+
], Ec = [
|
|
6798
6832
|
"aria-label",
|
|
6799
6833
|
"disabled",
|
|
6800
6834
|
"max",
|
|
6801
6835
|
"min",
|
|
6802
6836
|
"step",
|
|
6803
6837
|
"value"
|
|
6804
|
-
],
|
|
6838
|
+
], Dc = {
|
|
6805
6839
|
key: 1,
|
|
6806
6840
|
class: "pv-flex",
|
|
6807
6841
|
style: {
|
|
@@ -6809,15 +6843,15 @@ var Ma = {
|
|
|
6809
6843
|
"--flex-gap": "0.75rem",
|
|
6810
6844
|
"--flex-wrap": "wrap"
|
|
6811
6845
|
}
|
|
6812
|
-
},
|
|
6846
|
+
}, Oc = { class: "pv-text-body-sm" }, kc = [
|
|
6813
6847
|
"disabled",
|
|
6814
6848
|
"step",
|
|
6815
6849
|
"value"
|
|
6816
|
-
],
|
|
6850
|
+
], Ac = { class: "pv-text-body-sm" }, jc = [
|
|
6817
6851
|
"disabled",
|
|
6818
6852
|
"step",
|
|
6819
6853
|
"value"
|
|
6820
|
-
],
|
|
6854
|
+
], Mc = 0, Nc = 100, Pc = /* @__PURE__ */ d({
|
|
6821
6855
|
inheritAttrs: !1,
|
|
6822
6856
|
__name: "PvRange",
|
|
6823
6857
|
props: /* @__PURE__ */ g({
|
|
@@ -6894,7 +6928,7 @@ var Ma = {
|
|
|
6894
6928
|
}).format(e);
|
|
6895
6929
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
6896
6930
|
}, P = r(() => E(t.step)), B = r(() => P.value !== null && P.value > 0 ? P.value : 0), V = r(() => B.value > 0 ? String(B.value) : "any"), ee = r(() => P.value === null ? "1" : P.value > 0 ? String(P.value) : "any"), te = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), H = r(() => {
|
|
6897
|
-
let e = E(t.min) ??
|
|
6931
|
+
let e = E(t.min) ?? Mc, n = E(t.max) ?? Nc;
|
|
6898
6932
|
return e > n ? {
|
|
6899
6933
|
max: e,
|
|
6900
6934
|
min: n
|
|
@@ -6920,7 +6954,7 @@ var Ma = {
|
|
|
6920
6954
|
}
|
|
6921
6955
|
return t.split(".")[1]?.length ?? 0;
|
|
6922
6956
|
}, Y = r(() => {
|
|
6923
|
-
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(
|
|
6957
|
+
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Mc, r ?? Mc, i ?? Mc), o = n ?? Math.max(Nc, r ?? Nc, i ?? Nc);
|
|
6924
6958
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (B.value > 0 ? B.value : 1)), {
|
|
6925
6959
|
max: o,
|
|
6926
6960
|
min: a
|
|
@@ -6961,7 +6995,7 @@ var Ma = {
|
|
|
6961
6995
|
"--range-track-color": te.value,
|
|
6962
6996
|
"--value-max": `${me.value}%`,
|
|
6963
6997
|
"--value-min": `${pe.value}%`
|
|
6964
|
-
})), ge = r(() => ({ left: `${pe.value}%` })), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), ye = () => E(t.min) !== null || Y.value.min ===
|
|
6998
|
+
})), ge = r(() => ({ left: `${pe.value}%` })), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), ye = () => E(t.min) !== null || Y.value.min === Mc, be = () => E(t.max) !== null || Y.value.max === Nc, xe = (e, t) => {
|
|
6965
6999
|
c.value = {
|
|
6966
7000
|
max: t >= Y.value.max && be() ? null : t,
|
|
6967
7001
|
min: e <= Y.value.min && ye() ? null : e
|
|
@@ -7034,7 +7068,7 @@ var Ma = {
|
|
|
7034
7068
|
};
|
|
7035
7069
|
return G([X, Y], Me, { immediate: !0 }), S(() => {
|
|
7036
7070
|
ze(), De();
|
|
7037
|
-
}), (r, c) => e.mode === "single" ? (D(), o("div",
|
|
7071
|
+
}), (r, c) => e.mode === "single" ? (D(), o("div", xc, [e.showValueTooltips && v.value ? (D(), o("span", {
|
|
7038
7072
|
key: 0,
|
|
7039
7073
|
class: "pv-range-tooltip",
|
|
7040
7074
|
style: x(J.value)
|
|
@@ -7051,7 +7085,7 @@ var Ma = {
|
|
|
7051
7085
|
onChange: Oe,
|
|
7052
7086
|
onPointerdown: ke,
|
|
7053
7087
|
onPointerup: Oe
|
|
7054
|
-
}), null, 16,
|
|
7088
|
+
}), null, 16, Sc), [[
|
|
7055
7089
|
U,
|
|
7056
7090
|
n.value,
|
|
7057
7091
|
void 0,
|
|
@@ -7066,7 +7100,7 @@ var Ma = {
|
|
|
7066
7100
|
"--flex-gap": "0"
|
|
7067
7101
|
}
|
|
7068
7102
|
}), [
|
|
7069
|
-
e.showBoundLabels ? (D(), o("div",
|
|
7103
|
+
e.showBoundLabels ? (D(), o("div", wc, [s("span", null, F(N(Y.value.min)), 1), s("span", null, F(N(Y.value.max)), 1)])) : a("", !0),
|
|
7070
7104
|
s("div", {
|
|
7071
7105
|
ref_key: "sliderRef",
|
|
7072
7106
|
ref: b,
|
|
@@ -7098,7 +7132,7 @@ var Ma = {
|
|
|
7098
7132
|
onInput: Ae,
|
|
7099
7133
|
onPointerdown: c[1] ||= (e) => Te("min"),
|
|
7100
7134
|
onPointerup: we
|
|
7101
|
-
}, null, 40,
|
|
7135
|
+
}, null, 40, Tc),
|
|
7102
7136
|
s("input", {
|
|
7103
7137
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
7104
7138
|
type: "range",
|
|
@@ -7112,9 +7146,9 @@ var Ma = {
|
|
|
7112
7146
|
onInput: je,
|
|
7113
7147
|
onPointerdown: c[2] ||= (e) => Te("max"),
|
|
7114
7148
|
onPointerup: we
|
|
7115
|
-
}, null, 40,
|
|
7149
|
+
}, null, 40, Ec)
|
|
7116
7150
|
], 38),
|
|
7117
|
-
e.showInputs ? (D(), o("div",
|
|
7151
|
+
e.showInputs ? (D(), o("div", Dc, [
|
|
7118
7152
|
s("label", {
|
|
7119
7153
|
class: "pv-flex-vertical",
|
|
7120
7154
|
for: f,
|
|
@@ -7125,7 +7159,7 @@ var Ma = {
|
|
|
7125
7159
|
"max-width": "75px",
|
|
7126
7160
|
"min-width": "0"
|
|
7127
7161
|
}
|
|
7128
|
-
}, [s("span",
|
|
7162
|
+
}, [s("span", Oc, F(e.minLabel), 1), s("input", {
|
|
7129
7163
|
id: f,
|
|
7130
7164
|
class: "pv-input-text",
|
|
7131
7165
|
disabled: e.disabled,
|
|
@@ -7139,7 +7173,7 @@ var Ma = {
|
|
|
7139
7173
|
onFocus: c[4] ||= (e) => Ie("min"),
|
|
7140
7174
|
onInput: Pe,
|
|
7141
7175
|
onKeydown: c[5] ||= re((e) => Le(e, "min"), ["enter"])
|
|
7142
|
-
}, null, 40,
|
|
7176
|
+
}, null, 40, kc)]),
|
|
7143
7177
|
s("label", {
|
|
7144
7178
|
class: "pv-flex-vertical",
|
|
7145
7179
|
for: d,
|
|
@@ -7150,7 +7184,7 @@ var Ma = {
|
|
|
7150
7184
|
"max-width": "75px",
|
|
7151
7185
|
"min-width": "0"
|
|
7152
7186
|
}
|
|
7153
|
-
}, [s("span",
|
|
7187
|
+
}, [s("span", Ac, F(e.maxLabel), 1), s("input", {
|
|
7154
7188
|
id: d,
|
|
7155
7189
|
class: "pv-input-text",
|
|
7156
7190
|
disabled: e.disabled,
|
|
@@ -7164,7 +7198,7 @@ var Ma = {
|
|
|
7164
7198
|
onFocus: c[7] ||= (e) => Ie("max"),
|
|
7165
7199
|
onInput: Fe,
|
|
7166
7200
|
onKeydown: c[8] ||= re((e) => Le(e, "max"), ["enter"])
|
|
7167
|
-
}, null, 40,
|
|
7201
|
+
}, null, 40, jc)]),
|
|
7168
7202
|
e.showClear && ve.value ? (D(), i($, {
|
|
7169
7203
|
key: 0,
|
|
7170
7204
|
class: "pv-text-brand",
|
|
@@ -7181,26 +7215,26 @@ var Ma = {
|
|
|
7181
7215
|
variant: "ghost",
|
|
7182
7216
|
onClick: Ee
|
|
7183
7217
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
7184
|
-
], 16,
|
|
7218
|
+
], 16, Cc));
|
|
7185
7219
|
}
|
|
7186
|
-
}),
|
|
7220
|
+
}), Fc = [
|
|
7187
7221
|
"aria-label",
|
|
7188
7222
|
"checked",
|
|
7189
7223
|
"disabled",
|
|
7190
7224
|
"name"
|
|
7191
|
-
],
|
|
7225
|
+
], Ic = {
|
|
7192
7226
|
key: 3,
|
|
7193
7227
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
7194
|
-
},
|
|
7228
|
+
}, Lc = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Rc = {
|
|
7195
7229
|
key: 0,
|
|
7196
7230
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7197
|
-
},
|
|
7231
|
+
}, zc = {
|
|
7198
7232
|
key: 1,
|
|
7199
7233
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7200
|
-
},
|
|
7234
|
+
}, Bc = {
|
|
7201
7235
|
key: 4,
|
|
7202
7236
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
7203
|
-
},
|
|
7237
|
+
}, Vc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
7204
7238
|
__name: "PvFilterPanelOptionRow",
|
|
7205
7239
|
props: {
|
|
7206
7240
|
ariaLabel: {},
|
|
@@ -7273,7 +7307,7 @@ var Ma = {
|
|
|
7273
7307
|
disabled: e.disabled,
|
|
7274
7308
|
name: e.name,
|
|
7275
7309
|
onChange: g
|
|
7276
|
-
}, null, 40,
|
|
7310
|
+
}, null, 40, Fc)) : (D(), i(rs, {
|
|
7277
7311
|
key: 1,
|
|
7278
7312
|
ariaLabel: e.ariaLabel || e.label,
|
|
7279
7313
|
disabled: e.disabled,
|
|
@@ -7286,12 +7320,12 @@ var Ma = {
|
|
|
7286
7320
|
"indeterminate",
|
|
7287
7321
|
"modelValue"
|
|
7288
7322
|
])),
|
|
7289
|
-
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span",
|
|
7290
|
-
s("span",
|
|
7291
|
-
e.subduedText ? (D(), o("span",
|
|
7292
|
-
e.subText ? (D(), o("span",
|
|
7323
|
+
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span", Ic, [
|
|
7324
|
+
s("span", Lc, F(e.label), 1),
|
|
7325
|
+
e.subduedText ? (D(), o("span", Rc, F(e.subduedText), 1)) : a("", !0),
|
|
7326
|
+
e.subText ? (D(), o("span", zc, F(e.subText), 1)) : a("", !0)
|
|
7293
7327
|
])),
|
|
7294
|
-
f.value ? (D(), o("span",
|
|
7328
|
+
f.value ? (D(), o("span", Bc, [j(t.$slots, "result-count", {}, () => [l("(" + F(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
7295
7329
|
e.showFocusAction ? (D(), i($, {
|
|
7296
7330
|
key: 5,
|
|
7297
7331
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -7307,26 +7341,26 @@ var Ma = {
|
|
|
7307
7341
|
])) : a("", !0)
|
|
7308
7342
|
], 6));
|
|
7309
7343
|
}
|
|
7310
|
-
}), [["__scopeId", "data-v-d5f24abf"]]),
|
|
7344
|
+
}), [["__scopeId", "data-v-d5f24abf"]]), Hc = [
|
|
7311
7345
|
"totalCount",
|
|
7312
7346
|
"total_count",
|
|
7313
7347
|
"resultCount",
|
|
7314
7348
|
"result_count",
|
|
7315
7349
|
"row_count",
|
|
7316
7350
|
"count"
|
|
7317
|
-
],
|
|
7351
|
+
], Uc = new Intl.NumberFormat("en-US", {
|
|
7318
7352
|
maximumFractionDigits: 1,
|
|
7319
7353
|
notation: "compact"
|
|
7320
|
-
}),
|
|
7321
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
7354
|
+
}), Wc = (e) => typeof e == "object" && !!e, Gc = (e) => {
|
|
7355
|
+
if (typeof e == "number" && Number.isFinite(e)) return Uc.format(e);
|
|
7322
7356
|
if (typeof e == "string") {
|
|
7323
7357
|
let t = e.trim();
|
|
7324
7358
|
if (!t) return;
|
|
7325
7359
|
let n = Number(t);
|
|
7326
|
-
return Number.isFinite(n) ?
|
|
7360
|
+
return Number.isFinite(n) ? Uc.format(n) : e;
|
|
7327
7361
|
}
|
|
7328
|
-
},
|
|
7329
|
-
let n =
|
|
7362
|
+
}, Kc = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), qc = (e, t = {}) => {
|
|
7363
|
+
let n = Kc(t.dataType, t.valueDecimals);
|
|
7330
7364
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
7331
7365
|
currency: "USD",
|
|
7332
7366
|
maximumFractionDigits: n,
|
|
@@ -7338,11 +7372,11 @@ var Ma = {
|
|
|
7338
7372
|
minimumFractionDigits: n
|
|
7339
7373
|
}).format(e);
|
|
7340
7374
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
7341
|
-
},
|
|
7375
|
+
}, Jc = (e, t, n = {}) => e !== null && t !== null ? `${qc(e, n)}–${qc(t, n)}` : e === null ? t === null ? "" : `≤ ${qc(t, n)}` : `${qc(e, n)}+`, Yc = (e, t) => {
|
|
7342
7376
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
7343
7377
|
if (!n) return null;
|
|
7344
7378
|
try {
|
|
7345
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
7379
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : Wc(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
7346
7380
|
return n({
|
|
7347
7381
|
context: e.metadata,
|
|
7348
7382
|
value: t
|
|
@@ -7350,24 +7384,24 @@ var Ma = {
|
|
|
7350
7384
|
} catch {
|
|
7351
7385
|
return null;
|
|
7352
7386
|
}
|
|
7353
|
-
},
|
|
7387
|
+
}, Xc = (e, t) => {
|
|
7354
7388
|
let n = e.metadata;
|
|
7355
|
-
if (!
|
|
7389
|
+
if (!Wc(n)) return null;
|
|
7356
7390
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
7357
7391
|
let t = n[e];
|
|
7358
7392
|
if (t != null && String(t).trim()) return String(t);
|
|
7359
7393
|
}
|
|
7360
7394
|
return null;
|
|
7361
|
-
},
|
|
7362
|
-
let t =
|
|
7395
|
+
}, Zc = (e, t) => e.label || Xc(e, t) || Yc(e, t) || e.value, Qc = (e) => {
|
|
7396
|
+
let t = Gc(e?.resultCount);
|
|
7363
7397
|
if (t !== void 0) return t;
|
|
7364
7398
|
let n = e?.metadata;
|
|
7365
|
-
if (
|
|
7366
|
-
let t =
|
|
7399
|
+
if (Wc(n)) for (let e of Hc) {
|
|
7400
|
+
let t = Gc(n[e]);
|
|
7367
7401
|
if (t !== void 0) return t;
|
|
7368
7402
|
}
|
|
7369
|
-
return
|
|
7370
|
-
},
|
|
7403
|
+
return Gc(e?.totalChildCount);
|
|
7404
|
+
}, $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" && !!e, tl = (e) => {
|
|
7371
7405
|
try {
|
|
7372
7406
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7373
7407
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7381,7 +7415,7 @@ var Ma = {
|
|
|
7381
7415
|
} catch {
|
|
7382
7416
|
return [];
|
|
7383
7417
|
}
|
|
7384
|
-
},
|
|
7418
|
+
}, nl = (e) => {
|
|
7385
7419
|
if (!e.startsWith("__")) return null;
|
|
7386
7420
|
let t = e.slice(2).split("__");
|
|
7387
7421
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7394,76 +7428,76 @@ var Ma = {
|
|
|
7394
7428
|
pairs: n,
|
|
7395
7429
|
value: n[0].value
|
|
7396
7430
|
};
|
|
7397
|
-
},
|
|
7431
|
+
}, rl = (e) => {
|
|
7398
7432
|
if (e == null) return null;
|
|
7399
|
-
if (!e.startsWith(
|
|
7433
|
+
if (!e.startsWith($c)) return nl(e) ?? {
|
|
7400
7434
|
pairs: [],
|
|
7401
7435
|
value: e
|
|
7402
7436
|
};
|
|
7403
|
-
let t =
|
|
7437
|
+
let t = tl(e.slice(32));
|
|
7404
7438
|
return {
|
|
7405
7439
|
field: t[0]?.field,
|
|
7406
7440
|
pairs: t,
|
|
7407
7441
|
value: t[0]?.value ?? e
|
|
7408
7442
|
};
|
|
7409
|
-
},
|
|
7443
|
+
}, il = (e, t) => `${$c}${encodeURIComponent(JSON.stringify([[e, t]]))}`, al = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : el(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) : rl(e.value)?.value ?? e.value : null, ol = (e, t) => e?.field ? e.field : e?.colField ? e.colField : rl(e?.value)?.field ?? t, sl = (e) => e.flatMap((e) => [e, ...e.children?.length ? sl(e.children) : []]), cl = (e, t, n, r) => ol(e, r) === t && al(e) === n, ll = (e) => {
|
|
7410
7444
|
let t = e;
|
|
7411
7445
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7412
|
-
},
|
|
7446
|
+
}, ul = (e) => {
|
|
7413
7447
|
let t = e;
|
|
7414
|
-
return
|
|
7448
|
+
return ll(e) ? {
|
|
7415
7449
|
...t,
|
|
7416
|
-
conditions: (t.conditions ?? []).map(
|
|
7450
|
+
conditions: (t.conditions ?? []).map(ul)
|
|
7417
7451
|
} : { ...t };
|
|
7418
|
-
},
|
|
7452
|
+
}, dl = (e, t) => {
|
|
7419
7453
|
if (!e) return null;
|
|
7420
7454
|
let n = t instanceof Set ? t : new Set(t);
|
|
7421
|
-
if (!n.size) return
|
|
7422
|
-
if (!
|
|
7455
|
+
if (!n.size) return ul(e);
|
|
7456
|
+
if (!ll(e)) {
|
|
7423
7457
|
let t = e;
|
|
7424
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7458
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : ul(e);
|
|
7425
7459
|
}
|
|
7426
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7460
|
+
let r = e, i = (r.conditions ?? []).map((e) => dl(e, n)).filter((e) => !!e);
|
|
7427
7461
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7428
7462
|
...r,
|
|
7429
7463
|
conditions: i
|
|
7430
7464
|
} : null;
|
|
7431
|
-
},
|
|
7465
|
+
}, fl = (e) => e ? [e.field, ...(e.children ?? []).flatMap(fl)] : [], pl = (e) => e ? e.children?.length ? e.children.flatMap(pl) : [e.field] : [], ml = (e) => {
|
|
7432
7466
|
let t = e?.context ?? {};
|
|
7433
|
-
return t.aggregateFieldHierarchy ?
|
|
7434
|
-
},
|
|
7467
|
+
return t.aggregateFieldHierarchy ? fl(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7468
|
+
}, hl = (e) => {
|
|
7435
7469
|
let t = e?.context ?? {};
|
|
7436
7470
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7437
|
-
},
|
|
7471
|
+
}, gl = (e) => ml(e).length > 0, _l = (e, t) => {
|
|
7438
7472
|
for (let n of e ?? []) {
|
|
7439
7473
|
if (!n) continue;
|
|
7440
7474
|
if (n.value === t) return n;
|
|
7441
|
-
let e =
|
|
7475
|
+
let e = _l(n.children, t);
|
|
7442
7476
|
if (e) return e;
|
|
7443
7477
|
}
|
|
7444
|
-
},
|
|
7478
|
+
}, vl = (e, t, n = []) => {
|
|
7445
7479
|
for (let r of e ?? []) {
|
|
7446
7480
|
if (!r) continue;
|
|
7447
7481
|
let e = [...n, r];
|
|
7448
7482
|
if (r.value === t) return e;
|
|
7449
|
-
let i =
|
|
7483
|
+
let i = vl(r.children, t, e);
|
|
7450
7484
|
if (i) return i;
|
|
7451
7485
|
}
|
|
7452
|
-
},
|
|
7453
|
-
let n =
|
|
7486
|
+
}, yl = (e, t) => {
|
|
7487
|
+
let n = _l(t, e), r = n ? ol(n, "") : void 0, i = n ? al(n) : null;
|
|
7454
7488
|
if (r && i !== null) return {
|
|
7455
7489
|
field: r,
|
|
7456
7490
|
value: i
|
|
7457
7491
|
};
|
|
7458
|
-
let a =
|
|
7492
|
+
let a = rl(e);
|
|
7459
7493
|
return {
|
|
7460
7494
|
field: a?.field,
|
|
7461
7495
|
value: a?.value ?? e
|
|
7462
7496
|
};
|
|
7463
|
-
},
|
|
7497
|
+
}, bl = (e, t, n) => {
|
|
7464
7498
|
let r = (e) => {
|
|
7465
7499
|
if (!e) return;
|
|
7466
|
-
let i =
|
|
7500
|
+
let i = ol(e, ""), a = al(e);
|
|
7467
7501
|
if (i === t && a === n) return e.value;
|
|
7468
7502
|
for (let t of e.children ?? []) {
|
|
7469
7503
|
let e = r(t);
|
|
@@ -7475,9 +7509,9 @@ var Ma = {
|
|
|
7475
7509
|
if (e) return e;
|
|
7476
7510
|
}
|
|
7477
7511
|
return `__${t}__${n}`;
|
|
7478
|
-
},
|
|
7512
|
+
}, xl = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...xl(e.children)]), Sl = (e, t) => {
|
|
7479
7513
|
if (e.state !== "selected") return null;
|
|
7480
|
-
let { field: n, value: r } =
|
|
7514
|
+
let { field: n, value: r } = yl(e.id, t);
|
|
7481
7515
|
if (!n) return null;
|
|
7482
7516
|
let i = [{
|
|
7483
7517
|
colId: n,
|
|
@@ -7485,8 +7519,8 @@ var Ma = {
|
|
|
7485
7519
|
filterType: "text",
|
|
7486
7520
|
type: "equals"
|
|
7487
7521
|
}];
|
|
7488
|
-
for (let n of
|
|
7489
|
-
let e =
|
|
7522
|
+
for (let n of xl(e.children)) {
|
|
7523
|
+
let e = yl(n.id, t);
|
|
7490
7524
|
e.field && i.push({
|
|
7491
7525
|
colId: e.field,
|
|
7492
7526
|
filter: e.value,
|
|
@@ -7499,10 +7533,10 @@ var Ma = {
|
|
|
7499
7533
|
filterType: "join",
|
|
7500
7534
|
type: "AND"
|
|
7501
7535
|
};
|
|
7502
|
-
},
|
|
7503
|
-
let t =
|
|
7536
|
+
}, Cl = (e) => {
|
|
7537
|
+
let t = ml(e.colDef), n = dl(e.baseModel, t);
|
|
7504
7538
|
if (!t.length) return n;
|
|
7505
|
-
let r = e.state.map((t) =>
|
|
7539
|
+
let r = e.state.map((t) => Sl(t, e.options)).filter((e) => !!e);
|
|
7506
7540
|
if (!r.length) return n;
|
|
7507
7541
|
let i = r.length === 1 ? r[0] : {
|
|
7508
7542
|
conditions: r,
|
|
@@ -7514,17 +7548,17 @@ var Ma = {
|
|
|
7514
7548
|
filterType: "join",
|
|
7515
7549
|
type: "AND"
|
|
7516
7550
|
} : i;
|
|
7517
|
-
},
|
|
7551
|
+
}, wl = (e, t, n) => {
|
|
7518
7552
|
if (!e) return [];
|
|
7519
7553
|
let r = e;
|
|
7520
|
-
if (
|
|
7554
|
+
if (ll(e)) {
|
|
7521
7555
|
let e = r.conditions ?? [];
|
|
7522
7556
|
if (r.type === "AND") {
|
|
7523
7557
|
let r = e.find((e) => {
|
|
7524
7558
|
let r = e;
|
|
7525
7559
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
7526
7560
|
});
|
|
7527
|
-
return e.flatMap((e) =>
|
|
7561
|
+
return e.flatMap((e) => wl(e, t, n).map((e) => ({
|
|
7528
7562
|
...e,
|
|
7529
7563
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
7530
7564
|
colId: r.colId,
|
|
@@ -7532,20 +7566,20 @@ var Ma = {
|
|
|
7532
7566
|
} : void 0)
|
|
7533
7567
|
})));
|
|
7534
7568
|
}
|
|
7535
|
-
return e.flatMap((e) =>
|
|
7569
|
+
return e.flatMap((e) => wl(e, t, n));
|
|
7536
7570
|
}
|
|
7537
7571
|
return r.colId && t.has(r.colId) ? [{
|
|
7538
7572
|
colId: r.colId,
|
|
7539
7573
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
7540
7574
|
type: r.type
|
|
7541
7575
|
}] : [];
|
|
7542
|
-
},
|
|
7543
|
-
let t =
|
|
7576
|
+
}, Tl = (e) => {
|
|
7577
|
+
let t = ml(e.colDef);
|
|
7544
7578
|
if (!t.length) return [];
|
|
7545
|
-
let n = new Set(
|
|
7579
|
+
let n = new Set(pl(e.colDef.context?.aggregateFieldHierarchy)), r = hl(e.colDef), i = wl(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
7546
7580
|
for (let t of i) {
|
|
7547
7581
|
if (!t.filter) continue;
|
|
7548
|
-
let n =
|
|
7582
|
+
let n = bl(e.options, t.colId, String(t.filter));
|
|
7549
7583
|
if (t.type === "equals") {
|
|
7550
7584
|
let e = a.get(n);
|
|
7551
7585
|
a.set(n, {
|
|
@@ -7556,7 +7590,7 @@ var Ma = {
|
|
|
7556
7590
|
continue;
|
|
7557
7591
|
}
|
|
7558
7592
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
7559
|
-
let r =
|
|
7593
|
+
let r = bl(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
7560
7594
|
children: [],
|
|
7561
7595
|
id: r,
|
|
7562
7596
|
state: "selected"
|
|
@@ -7568,150 +7602,153 @@ var Ma = {
|
|
|
7568
7602
|
}
|
|
7569
7603
|
}
|
|
7570
7604
|
return [...a.values()];
|
|
7571
|
-
},
|
|
7572
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
7605
|
+
}, El = (e) => {
|
|
7606
|
+
let t = /* @__PURE__ */ new Map(), n = ml(e.colDef);
|
|
7573
7607
|
if (!n.length) return t;
|
|
7574
|
-
let r =
|
|
7608
|
+
let r = wl(e.model, new Set(n), new Set(pl(e.colDef.context?.aggregateFieldHierarchy)));
|
|
7575
7609
|
for (let e of r) {
|
|
7576
7610
|
if (e.type !== "equals" || !e.filter) continue;
|
|
7577
7611
|
let n = t.get(e.colId) ?? [];
|
|
7578
7612
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
7579
7613
|
}
|
|
7580
7614
|
return t;
|
|
7581
|
-
},
|
|
7615
|
+
}, Dl = (e) => e.map((e) => ({
|
|
7582
7616
|
...e,
|
|
7583
7617
|
children: e.children?.map((e) => ({
|
|
7584
7618
|
...e,
|
|
7585
|
-
children: e.children ?
|
|
7619
|
+
children: e.children ? Dl(e.children) : void 0
|
|
7586
7620
|
}))
|
|
7587
|
-
})),
|
|
7621
|
+
})), Ol = (e, t) => e.flatMap((e) => {
|
|
7588
7622
|
if (e.id === t) return [];
|
|
7589
|
-
let n = e.children ?
|
|
7623
|
+
let n = e.children ? Ol(e.children, t) : void 0;
|
|
7590
7624
|
return [{
|
|
7591
7625
|
...e,
|
|
7592
7626
|
children: n?.length ? n : void 0
|
|
7593
7627
|
}];
|
|
7594
|
-
}),
|
|
7628
|
+
}), kl = (e, t) => {
|
|
7595
7629
|
for (let n of e) {
|
|
7596
7630
|
if (n.id === t) return n;
|
|
7597
|
-
let e = n.children ?
|
|
7631
|
+
let e = n.children ? kl(n.children, t) : void 0;
|
|
7598
7632
|
if (e) return e;
|
|
7599
7633
|
}
|
|
7600
|
-
},
|
|
7601
|
-
let r = (
|
|
7634
|
+
}, Al = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, jl = (e, t) => [...Ol(e, t.id), t], Ml = (e) => (e.children ?? []).flatMap((e) => [e.value, ...Ml(e)]), Nl = (e, t) => Ml(t).reduce((e, t) => Ol(e, t), e), Pl = (e, t) => [t.value, ...Ml(t)].reduce((e, t) => Ol(e, t), e), Fl = (e, t, n) => {
|
|
7635
|
+
let r = (vl(n, t.value) ?? []).slice(0, -1).reverse();
|
|
7602
7636
|
for (let t of r) {
|
|
7603
|
-
let n =
|
|
7637
|
+
let n = kl(e, t.value);
|
|
7604
7638
|
if (n?.state === "selected") return n;
|
|
7605
7639
|
}
|
|
7606
|
-
},
|
|
7607
|
-
let t =
|
|
7640
|
+
}, Il = (e) => {
|
|
7641
|
+
let t = Dl(e.state), n = Fl(t, e.option, e.options);
|
|
7608
7642
|
if (n) {
|
|
7609
7643
|
let r = n.children ?? [];
|
|
7610
|
-
return n.children = e.checked ?
|
|
7644
|
+
return n.children = e.checked ? Pl(r, e.option) : [...Pl(r, e.option), {
|
|
7611
7645
|
id: e.option.value,
|
|
7612
7646
|
state: "deselected"
|
|
7613
7647
|
}], n.children.length || delete n.children, t;
|
|
7614
7648
|
}
|
|
7615
|
-
return
|
|
7649
|
+
return Al(e.option) ? e.checked ? jl(Nl(t, e.option), {
|
|
7616
7650
|
id: e.option.value,
|
|
7617
7651
|
state: "selected"
|
|
7618
|
-
}) :
|
|
7652
|
+
}) : Ol(t, e.option.value) : e.checked ? jl(t, {
|
|
7619
7653
|
id: e.option.value,
|
|
7620
7654
|
state: "selected"
|
|
7621
|
-
}) :
|
|
7622
|
-
},
|
|
7655
|
+
}) : Ol(t, e.option.value);
|
|
7656
|
+
}, Ll = (e) => {
|
|
7623
7657
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
7624
7658
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
7625
7659
|
};
|
|
7626
7660
|
return n(e), t;
|
|
7627
|
-
},
|
|
7628
|
-
let t =
|
|
7661
|
+
}, Rl = (e) => {
|
|
7662
|
+
let t = Ll(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
7629
7663
|
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 = {
|
|
7630
|
-
indeterminate:
|
|
7664
|
+
indeterminate: xl(a?.children).length > 0 || !o && c || o && l,
|
|
7631
7665
|
selected: o
|
|
7632
7666
|
};
|
|
7633
7667
|
return n.set(e.value, u), u;
|
|
7634
7668
|
};
|
|
7635
7669
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
7636
7670
|
return n;
|
|
7637
|
-
},
|
|
7671
|
+
}, zl = (e) => Rl(e).get(e.option.value) ?? Rl({
|
|
7638
7672
|
options: [e.option],
|
|
7639
7673
|
state: e.state
|
|
7640
7674
|
}).get(e.option.value) ?? {
|
|
7641
7675
|
indeterminate: !1,
|
|
7642
7676
|
selected: !1
|
|
7643
|
-
},
|
|
7677
|
+
}, Bl = (e) => e.state.flatMap((t) => {
|
|
7644
7678
|
if (t.state !== "selected") return [];
|
|
7645
|
-
let n =
|
|
7679
|
+
let n = _l(e.options, t.id);
|
|
7646
7680
|
if (n) return [n];
|
|
7647
|
-
let { field: r, value: i } =
|
|
7681
|
+
let { field: r, value: i } = yl(t.id, e.options);
|
|
7648
7682
|
return [{
|
|
7649
7683
|
colField: r,
|
|
7650
7684
|
label: i,
|
|
7651
7685
|
metadata: { rawValue: i },
|
|
7652
|
-
value: r ?
|
|
7686
|
+
value: r ? il(r, i) : t.id
|
|
7653
7687
|
}];
|
|
7654
|
-
}),
|
|
7688
|
+
}), Vl = (e) => e.filter((e) => e.state === "selected").length, Hl = ["open"], Ul = {
|
|
7655
7689
|
class: "pv-flex pv-text-body-md",
|
|
7656
7690
|
style: {
|
|
7657
7691
|
"--flex-align": "center",
|
|
7658
7692
|
"--flex-gap": "0.5rem"
|
|
7659
7693
|
}
|
|
7660
|
-
},
|
|
7694
|
+
}, Wl = {
|
|
7661
7695
|
class: "pv-flex-vertical pv-surface-accent pv-inset-inline-24",
|
|
7662
7696
|
style: { "--flex-align": "stretch" }
|
|
7663
|
-
},
|
|
7697
|
+
}, Gl = {
|
|
7664
7698
|
key: 0,
|
|
7665
7699
|
class: "pv-flex-vertical",
|
|
7666
7700
|
style: {
|
|
7667
7701
|
"--flex-align": "stretch",
|
|
7668
7702
|
"--flex-gap": "0.5rem"
|
|
7669
7703
|
}
|
|
7670
|
-
},
|
|
7704
|
+
}, Kl = {
|
|
7671
7705
|
key: 0,
|
|
7672
7706
|
class: "pv-flex",
|
|
7673
7707
|
style: {
|
|
7674
7708
|
"--flex-gap": "0.5rem",
|
|
7675
7709
|
"--flex-wrap": "wrap"
|
|
7676
7710
|
}
|
|
7677
|
-
},
|
|
7711
|
+
}, ql = {
|
|
7678
7712
|
key: 1,
|
|
7679
7713
|
class: "pv-flex",
|
|
7680
7714
|
style: { "--flex-justify": "flex-end" }
|
|
7681
|
-
},
|
|
7715
|
+
}, Jl = {
|
|
7682
7716
|
key: 2,
|
|
7683
7717
|
class: "pv-flex-vertical",
|
|
7684
7718
|
style: {
|
|
7685
7719
|
"--flex-align": "stretch",
|
|
7686
7720
|
"--flex-gap": "0.5rem"
|
|
7687
7721
|
}
|
|
7688
|
-
},
|
|
7722
|
+
}, Yl = {
|
|
7723
|
+
key: 3,
|
|
7724
|
+
class: "pv-flex pv-text-body-xs pv-text-subdued"
|
|
7725
|
+
}, Xl = { key: 0 }, Zl = {
|
|
7689
7726
|
key: 1,
|
|
7690
7727
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7691
7728
|
style: { margin: "0" }
|
|
7692
|
-
},
|
|
7729
|
+
}, Ql = {
|
|
7693
7730
|
key: 1,
|
|
7694
7731
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7695
7732
|
style: { margin: "0" }
|
|
7696
|
-
},
|
|
7733
|
+
}, $l = {
|
|
7697
7734
|
key: 2,
|
|
7698
7735
|
class: "pv-flex-vertical",
|
|
7699
7736
|
style: {
|
|
7700
7737
|
"--flex-align": "stretch",
|
|
7701
7738
|
"--flex-gap": "0.5rem"
|
|
7702
7739
|
}
|
|
7703
|
-
},
|
|
7740
|
+
}, eu = { key: 0 }, tu = {
|
|
7704
7741
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
7705
7742
|
style: { margin: "0" }
|
|
7706
|
-
},
|
|
7743
|
+
}, nu = {
|
|
7707
7744
|
key: 1,
|
|
7708
7745
|
class: "pv-text-title-sm pv-text-subdued",
|
|
7709
7746
|
style: { margin: "0" }
|
|
7710
|
-
},
|
|
7747
|
+
}, ru = {
|
|
7711
7748
|
key: 2,
|
|
7712
7749
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7713
7750
|
style: { margin: "0" }
|
|
7714
|
-
},
|
|
7751
|
+
}, iu = {
|
|
7715
7752
|
key: 3,
|
|
7716
7753
|
class: "pv-flex-vertical",
|
|
7717
7754
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -7719,14 +7756,14 @@ var Ma = {
|
|
|
7719
7756
|
"--flex-align": "stretch",
|
|
7720
7757
|
"--flex-gap": "0.5rem"
|
|
7721
7758
|
}
|
|
7722
|
-
},
|
|
7759
|
+
}, au = {
|
|
7723
7760
|
class: "pv-flex",
|
|
7724
7761
|
style: {
|
|
7725
7762
|
"--flex-align": "center",
|
|
7726
7763
|
"--flex-gap": "0.5rem",
|
|
7727
7764
|
"--flex-wrap": "wrap"
|
|
7728
7765
|
}
|
|
7729
|
-
},
|
|
7766
|
+
}, ou = {
|
|
7730
7767
|
key: 4,
|
|
7731
7768
|
class: "pv-flex",
|
|
7732
7769
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -7735,7 +7772,7 @@ var Ma = {
|
|
|
7735
7772
|
"--flex-gap": "0.5rem",
|
|
7736
7773
|
cursor: "pointer"
|
|
7737
7774
|
}
|
|
7738
|
-
},
|
|
7775
|
+
}, su = { class: "pv-text-body-sm" }, cu = 5, lu = 500, uu = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
7739
7776
|
__name: "PvFilterPanelAccordion",
|
|
7740
7777
|
props: { filter: {} },
|
|
7741
7778
|
emits: [
|
|
@@ -7747,7 +7784,7 @@ var Ma = {
|
|
|
7747
7784
|
"search-change"
|
|
7748
7785
|
],
|
|
7749
7786
|
setup(e, { emit: n }) {
|
|
7750
|
-
let c = e, d = n, f = k({}), p = R(), m = k(c.filter.searchQuery ?? ""), h = k(
|
|
7787
|
+
let c = e, d = n, f = k({}), p = R(), m = k(c.filter.searchQuery ?? ""), h = k(cu), 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 ?? []), M = r(() => new Set(j.value)), P = r(() => c.filter.valueLabels?.true ?? "Yes"), L = r(() => c.filter.filterOptionsSortDescription || "Suggested"), z = (e) => {
|
|
7751
7788
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
7752
7789
|
return [
|
|
7753
7790
|
e.value,
|
|
@@ -7757,7 +7794,7 @@ var Ma = {
|
|
|
7757
7794
|
e.matchedValue,
|
|
7758
7795
|
e.matchedField
|
|
7759
7796
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
7760
|
-
}, B = 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 ?
|
|
7797
|
+
}, B = 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 ? Vl(E.value) || void 0 : j.value.length || void 0), V = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), ee = (e, t = 0) => e.flatMap((e) => [
|
|
7761
7798
|
{
|
|
7762
7799
|
depth: t,
|
|
7763
7800
|
kind: "option",
|
|
@@ -7775,16 +7812,16 @@ var Ma = {
|
|
|
7775
7812
|
}), H = r(() => T.value || c.filter.singleSelect ? [] : j.value.map((e) => f.value[e] ?? {
|
|
7776
7813
|
label: e,
|
|
7777
7814
|
value: e
|
|
7778
|
-
})), U = r(() => T.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !M.value.has(e.option.value))), W = r(() => U.value.length > h.value), ne = r(() => W.value || c.filter.hasMore), q = r(() => U.value.slice(0, h.value)), re = r(() => T.value ?
|
|
7815
|
+
})), U = r(() => T.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !M.value.has(e.option.value))), W = r(() => U.value.length > h.value), ne = r(() => W.value || c.filter.hasMore), q = r(() => U.value.slice(0, h.value)), re = r(() => T.value ? Rl({
|
|
7779
7816
|
options: S.value,
|
|
7780
7817
|
state: E.value
|
|
7781
|
-
}) : /* @__PURE__ */ new Map()), J = (e) =>
|
|
7818
|
+
}) : /* @__PURE__ */ new Map()), J = (e) => Zc(e, c.filter.colDef), ie = (e) => Qc(e), Y = (e) => T.value ? re.value.get(e.value) ?? {
|
|
7782
7819
|
indeterminate: !1,
|
|
7783
7820
|
selected: !1
|
|
7784
7821
|
} : {
|
|
7785
7822
|
indeterminate: !1,
|
|
7786
7823
|
selected: M.value.has(e.value)
|
|
7787
|
-
}, ae = (e) => Y(e).selected, oe = (e) => Y(e).indeterminate, se = (e) =>
|
|
7824
|
+
}, ae = (e) => Y(e).selected, oe = (e) => Y(e).indeterminate, se = (e) => al(e) ?? e.value, ce = (e) => ol(e, c.filter.key), ue = (e) => {
|
|
7788
7825
|
let t = ce(e), n = se(e);
|
|
7789
7826
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
7790
7827
|
}, de = (e) => ({
|
|
@@ -7813,7 +7850,7 @@ var Ma = {
|
|
|
7813
7850
|
rowsLoading: c.filter.isLoading
|
|
7814
7851
|
}
|
|
7815
7852
|
})), me = () => {
|
|
7816
|
-
W.value ? h.value +=
|
|
7853
|
+
W.value ? h.value += cu : c.filter.hasMore && d("load-more", m.value.trim());
|
|
7817
7854
|
}, he = (e) => {
|
|
7818
7855
|
d("load-more", m.value.trim(), e.value);
|
|
7819
7856
|
}, ge = (e) => {
|
|
@@ -7838,7 +7875,7 @@ var Ma = {
|
|
|
7838
7875
|
if (T.value) {
|
|
7839
7876
|
d("filter-change", {
|
|
7840
7877
|
type: "aggregate-selection",
|
|
7841
|
-
value:
|
|
7878
|
+
value: Il({
|
|
7842
7879
|
checked: t,
|
|
7843
7880
|
option: e,
|
|
7844
7881
|
options: S.value,
|
|
@@ -7865,12 +7902,12 @@ var Ma = {
|
|
|
7865
7902
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
7866
7903
|
};
|
|
7867
7904
|
G([m, () => c.filter.key], () => {
|
|
7868
|
-
h.value =
|
|
7905
|
+
h.value = cu;
|
|
7869
7906
|
});
|
|
7870
7907
|
let we = () => {
|
|
7871
|
-
let e =
|
|
7908
|
+
let e = sl(S.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
7872
7909
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
7873
|
-
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
7910
|
+
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - lu)));
|
|
7874
7911
|
};
|
|
7875
7912
|
return G(S, () => {
|
|
7876
7913
|
c.filter.isOpen && we();
|
|
@@ -7891,7 +7928,7 @@ var Ma = {
|
|
|
7891
7928
|
"data-testid": "pv-filter-panel-accordion",
|
|
7892
7929
|
open: e.filter.isOpen,
|
|
7893
7930
|
onToggle: ge
|
|
7894
|
-
}, [s("summary",
|
|
7931
|
+
}, [s("summary", Ul, [
|
|
7895
7932
|
u(Z, {
|
|
7896
7933
|
"aria-hidden": "true",
|
|
7897
7934
|
class: "pv-text-subdued",
|
|
@@ -7904,9 +7941,9 @@ var Ma = {
|
|
|
7904
7941
|
size: "sm",
|
|
7905
7942
|
variant: "secondary"
|
|
7906
7943
|
}, null, 8, ["value"])) : a("", !0)
|
|
7907
|
-
]), s("div",
|
|
7908
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div",
|
|
7909
|
-
e.filter.filterGroupOptions?.length ? (D(), o("div",
|
|
7944
|
+
]), s("div", Wl, [w.value ? (D(), o(t, { key: 0 }, [
|
|
7945
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div", Gl, [
|
|
7946
|
+
e.filter.filterGroupOptions?.length ? (D(), o("div", Kl, [(D(!0), o(t, null, A(e.filter.filterGroupOptions, (t) => (D(), i($, {
|
|
7910
7947
|
key: t.field,
|
|
7911
7948
|
disabled: e.filter.disabled,
|
|
7912
7949
|
label: t.label,
|
|
@@ -7919,7 +7956,7 @@ var Ma = {
|
|
|
7919
7956
|
"variant",
|
|
7920
7957
|
"onClick"
|
|
7921
7958
|
]))), 128))])) : a("", !0),
|
|
7922
|
-
e.filter.displayPreferencesIcon ? (D(), o("div",
|
|
7959
|
+
e.filter.displayPreferencesIcon ? (D(), o("div", ql, [u($, {
|
|
7923
7960
|
ariaLabel: "Open preferences",
|
|
7924
7961
|
disabled: e.filter.disabled,
|
|
7925
7962
|
leftIcon: "sliders-horizontal",
|
|
@@ -7941,7 +7978,7 @@ var Ma = {
|
|
|
7941
7978
|
"disabled",
|
|
7942
7979
|
"placeholder"
|
|
7943
7980
|
])),
|
|
7944
|
-
H.value.length ? (D(), o("div",
|
|
7981
|
+
H.value.length ? (D(), o("div", Jl, [(D(!0), o(t, null, A(H.value, (t) => (D(), i(Vc, {
|
|
7945
7982
|
key: t.value,
|
|
7946
7983
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
7947
7984
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
@@ -7978,10 +8015,10 @@ var Ma = {
|
|
|
7978
8015
|
"onFocusValue",
|
|
7979
8016
|
"onToggleValue"
|
|
7980
8017
|
]))), 128))])) : a("", !0),
|
|
7981
|
-
e.filter.isLoading ? (D(), o("div",
|
|
7982
|
-
!y.value.length && !H.value.length && !ne.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, pe.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p",
|
|
7983
|
-
U.value.length || ne.value ? (D(), o("div",
|
|
7984
|
-
U.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div",
|
|
8018
|
+
e.filter.isLoading ? (D(), o("div", Yl, [u(ke, { size: "sm" }), e.filter.loadingText ? (D(), o("span", Xl, F(e.filter.loadingText), 1)) : a("", !0)])) : (D(), o(t, { key: 4 }, [
|
|
8019
|
+
!y.value.length && !H.value.length && !ne.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, pe.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", Zl, "No values available."))], 64)) : !te.value.length && !H.value.length && !ne.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, pe.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", Ql, "No matching values."))], 64)) : a("", !0),
|
|
8020
|
+
U.value.length || ne.value ? (D(), o("div", $l, [
|
|
8021
|
+
U.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", eu, [e.filter.filterOptionsSortTooltip ? (D(), i(Zn, {
|
|
7985
8022
|
key: 0,
|
|
7986
8023
|
variant: "dark",
|
|
7987
8024
|
disableInteractive: !0,
|
|
@@ -7990,11 +8027,11 @@ var Ma = {
|
|
|
7990
8027
|
"use-teleport": !0,
|
|
7991
8028
|
style: { "--max-width": "200px" }
|
|
7992
8029
|
}, {
|
|
7993
|
-
trigger: K(() => [s("p",
|
|
8030
|
+
trigger: K(() => [s("p", tu, F(L.value), 1)]),
|
|
7994
8031
|
content: K(() => [l(F(e.filter.filterOptionsSortTooltip), 1)]),
|
|
7995
8032
|
_: 1
|
|
7996
|
-
})) : (D(), o("p",
|
|
7997
|
-
(D(!0), o(t, null, A(q.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(
|
|
8033
|
+
})) : (D(), o("p", nu, F(L.value), 1))])) : a("", !0),
|
|
8034
|
+
(D(!0), o(t, null, A(q.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(Vc, {
|
|
7998
8035
|
key: 0,
|
|
7999
8036
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8000
8037
|
depth: n.depth,
|
|
@@ -8061,7 +8098,7 @@ var Ma = {
|
|
|
8061
8098
|
])) : a("", !0),
|
|
8062
8099
|
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), b(_({ key: 3 }, pe.value)), null, 16)) : a("", !0)
|
|
8063
8100
|
], 64))
|
|
8064
|
-
], 64)) : C.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(
|
|
8101
|
+
], 64)) : C.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(Pc, {
|
|
8065
8102
|
key: 1,
|
|
8066
8103
|
mode: "dual",
|
|
8067
8104
|
rangeValue: e.filter.rangeValue,
|
|
@@ -8082,7 +8119,7 @@ var Ma = {
|
|
|
8082
8119
|
"min",
|
|
8083
8120
|
"step",
|
|
8084
8121
|
"value-decimals"
|
|
8085
|
-
])) : C.value === "range" ? (D(), o("p",
|
|
8122
|
+
])) : C.value === "range" ? (D(), o("p", ru, " Range filters require minimum and maximum bounds. ")) : C.value === "boolean" ? (D(), o("div", iu, [s("div", au, [u($, {
|
|
8086
8123
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
8087
8124
|
label: P.value,
|
|
8088
8125
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
@@ -8107,37 +8144,37 @@ var Ma = {
|
|
|
8107
8144
|
label: "Clear",
|
|
8108
8145
|
variant: "ghost",
|
|
8109
8146
|
onClick: r[3] ||= (e) => _e(null)
|
|
8110
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : C.value === "exists" ? (D(), o("label",
|
|
8147
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : C.value === "exists" ? (D(), o("label", ou, [u(rs, {
|
|
8111
8148
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
8112
8149
|
modelValue: e.filter.existsValue ?? !1,
|
|
8113
8150
|
"onUpdate:modelValue": ve
|
|
8114
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
8151
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", su, F(g.value), 1)])) : a("", !0)])], 40, Hl));
|
|
8115
8152
|
}
|
|
8116
|
-
}), [["__scopeId", "data-v-
|
|
8153
|
+
}), [["__scopeId", "data-v-3ed68672"]]), du = {
|
|
8117
8154
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
8118
8155
|
"data-testid": "pv-filter-panel-applied-section",
|
|
8119
8156
|
style: {
|
|
8120
8157
|
"--flex-align": "stretch",
|
|
8121
8158
|
"--flex-gap": "1rem"
|
|
8122
8159
|
}
|
|
8123
|
-
},
|
|
8160
|
+
}, fu = {
|
|
8124
8161
|
key: 0,
|
|
8125
8162
|
class: "pv-flex-vertical",
|
|
8126
8163
|
style: {
|
|
8127
8164
|
"--flex-align": "stretch",
|
|
8128
8165
|
"--flex-gap": "1rem"
|
|
8129
8166
|
}
|
|
8130
|
-
},
|
|
8167
|
+
}, pu = { class: "pv-text-title-md" }, mu = {
|
|
8131
8168
|
class: "pv-flex",
|
|
8132
8169
|
style: {
|
|
8133
8170
|
"--flex-gap": "0.375rem",
|
|
8134
8171
|
"--flex-wrap": "wrap"
|
|
8135
8172
|
}
|
|
8136
|
-
},
|
|
8173
|
+
}, hu = {
|
|
8137
8174
|
key: 1,
|
|
8138
8175
|
class: "pv-text-body-sm pv-text-subdued",
|
|
8139
8176
|
style: { margin: "0" }
|
|
8140
|
-
},
|
|
8177
|
+
}, gu = /* @__PURE__ */ d({
|
|
8141
8178
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
8142
8179
|
props: {
|
|
8143
8180
|
appliedCount: { default: 0 },
|
|
@@ -8152,7 +8189,7 @@ var Ma = {
|
|
|
8152
8189
|
let r = n, a = (e, t) => {
|
|
8153
8190
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
8154
8191
|
};
|
|
8155
|
-
return (n, r) => (D(), o("section",
|
|
8192
|
+
return (n, r) => (D(), o("section", du, [e.appliedCount ? (D(), o("div", fu, [(D(!0), o(t, null, A(e.appliedGroups, (n) => (D(), o("div", {
|
|
8156
8193
|
key: n.key,
|
|
8157
8194
|
class: "pv-flex-vertical pv-border-bottom",
|
|
8158
8195
|
style: {
|
|
@@ -8160,7 +8197,7 @@ var Ma = {
|
|
|
8160
8197
|
"--flex-gap": "12px",
|
|
8161
8198
|
"padding-bottom": "12px"
|
|
8162
8199
|
}
|
|
8163
|
-
}, [s("span",
|
|
8200
|
+
}, [s("span", pu, F(n.label), 1), s("div", mu, [(D(!0), o(t, null, A(n.values, (t) => (D(), i(pr, {
|
|
8164
8201
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
8165
8202
|
label: t.label,
|
|
8166
8203
|
showClear: !e.readOnly,
|
|
@@ -8169,9 +8206,9 @@ var Ma = {
|
|
|
8169
8206
|
"label",
|
|
8170
8207
|
"showClear",
|
|
8171
8208
|
"onHandleClose"
|
|
8172
|
-
]))), 128))])]))), 128))])) : (D(), o("p",
|
|
8209
|
+
]))), 128))])]))), 128))])) : (D(), o("p", hu, "No filters applied yet."))]));
|
|
8173
8210
|
}
|
|
8174
|
-
}),
|
|
8211
|
+
}), _u = { class: "pv-horizontal-scroller" }, vu = ["aria-label"], yu = 1, bu = /* @__PURE__ */ d({
|
|
8175
8212
|
__name: "PvHorizontalScroller",
|
|
8176
8213
|
props: {
|
|
8177
8214
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -8195,7 +8232,7 @@ var Ma = {
|
|
|
8195
8232
|
let e = u.value;
|
|
8196
8233
|
if (!e) return;
|
|
8197
8234
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
8198
|
-
n.value = e.scrollLeft >
|
|
8235
|
+
n.value = e.scrollLeft > yu, c.value = e.scrollLeft < t - yu;
|
|
8199
8236
|
}, h = () => {
|
|
8200
8237
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
8201
8238
|
}, g = () => {
|
|
@@ -8215,7 +8252,7 @@ var Ma = {
|
|
|
8215
8252
|
h(), g();
|
|
8216
8253
|
}), S(() => {
|
|
8217
8254
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
8218
|
-
}), (t, r) => (D(), o("div",
|
|
8255
|
+
}), (t, r) => (D(), o("div", _u, [
|
|
8219
8256
|
s("div", {
|
|
8220
8257
|
ref_key: "scrollContainer",
|
|
8221
8258
|
ref: u,
|
|
@@ -8226,7 +8263,7 @@ var Ma = {
|
|
|
8226
8263
|
ref_key: "contentContainer",
|
|
8227
8264
|
ref: l,
|
|
8228
8265
|
class: "pv-horizontal-scroller-content"
|
|
8229
|
-
}, [j(t.$slots, "default")], 512)], 10,
|
|
8266
|
+
}, [j(t.$slots, "default")], 512)], 10, vu),
|
|
8230
8267
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
8231
8268
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
8232
8269
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -8259,18 +8296,18 @@ var Ma = {
|
|
|
8259
8296
|
])) : a("", !0)], 2)
|
|
8260
8297
|
]));
|
|
8261
8298
|
}
|
|
8262
|
-
}),
|
|
8299
|
+
}), xu = {
|
|
8263
8300
|
key: 0,
|
|
8264
8301
|
class: "pv-border-bottom",
|
|
8265
8302
|
"data-testid": "pv-filter-panel-category-row"
|
|
8266
|
-
},
|
|
8303
|
+
}, Su = {
|
|
8267
8304
|
class: "pv-flex",
|
|
8268
8305
|
style: {
|
|
8269
8306
|
"--flex-align": "center",
|
|
8270
8307
|
"--flex-gap": "8px",
|
|
8271
8308
|
padding: "8px 12px"
|
|
8272
8309
|
}
|
|
8273
|
-
},
|
|
8310
|
+
}, Cu = /* @__PURE__ */ d({
|
|
8274
8311
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
8275
8312
|
props: /* @__PURE__ */ g({
|
|
8276
8313
|
categoryOrder: {},
|
|
@@ -8291,7 +8328,7 @@ var Ma = {
|
|
|
8291
8328
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
8292
8329
|
return G(l, (e) => {
|
|
8293
8330
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
8294
|
-
}, { immediate: !0 }), (e, n) => l.value.length ? (D(), o("div",
|
|
8331
|
+
}, { immediate: !0 }), (e, n) => l.value.length ? (D(), o("div", xu, [u(bu, {
|
|
8295
8332
|
ariaLabel: "Filter categories",
|
|
8296
8333
|
buttonSize: "md",
|
|
8297
8334
|
buttonVariant: "ghost",
|
|
@@ -8300,7 +8337,7 @@ var Ma = {
|
|
|
8300
8337
|
rightAriaLabel: "Scroll filter categories right",
|
|
8301
8338
|
showFades: ""
|
|
8302
8339
|
}, {
|
|
8303
|
-
default: K(() => [s("div",
|
|
8340
|
+
default: K(() => [s("div", Su, [u($, {
|
|
8304
8341
|
label: "All",
|
|
8305
8342
|
size: "md",
|
|
8306
8343
|
variant: f(null),
|
|
@@ -8319,17 +8356,17 @@ var Ma = {
|
|
|
8319
8356
|
_: 1
|
|
8320
8357
|
})])) : a("", !0);
|
|
8321
8358
|
}
|
|
8322
|
-
}),
|
|
8359
|
+
}), wu = (e, t, n) => {
|
|
8323
8360
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
8324
8361
|
if (r.length <= 1) return "Search";
|
|
8325
8362
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
8326
8363
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
8327
|
-
},
|
|
8328
|
-
if (!r ||
|
|
8364
|
+
}, Tu = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Eu = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
8365
|
+
if (!r || Tu(i) === Tu(r)) return e;
|
|
8329
8366
|
if (!a || !n) return r;
|
|
8330
8367
|
let o = t(n);
|
|
8331
8368
|
return o ? `${o}: ${r}` : r;
|
|
8332
|
-
},
|
|
8369
|
+
}, Du = () => ({
|
|
8333
8370
|
booleanValue: null,
|
|
8334
8371
|
existsValue: !1,
|
|
8335
8372
|
rangeValue: {
|
|
@@ -8337,15 +8374,15 @@ var Ma = {
|
|
|
8337
8374
|
min: null
|
|
8338
8375
|
},
|
|
8339
8376
|
values: []
|
|
8340
|
-
}),
|
|
8341
|
-
conditions: e.conditions.map(
|
|
8377
|
+
}), Ou = (e) => typeof e == "object" && !!e && !Array.isArray(e), ku = (e) => Ou(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", Au = (e) => Ou(e) && e.filterType === "join" && Array.isArray(e.conditions), ju = (e) => e, Mu = (e) => Au(e) ? {
|
|
8378
|
+
conditions: e.conditions.map(Mu),
|
|
8342
8379
|
filterType: "join",
|
|
8343
8380
|
type: e.type
|
|
8344
|
-
} : { ...e },
|
|
8345
|
-
if (!
|
|
8346
|
-
if (
|
|
8381
|
+
} : { ...e }, Nu = (e) => {
|
|
8382
|
+
if (!Ou(e)) return null;
|
|
8383
|
+
if (Au(e)) {
|
|
8347
8384
|
let t = e.conditions.flatMap((e) => {
|
|
8348
|
-
let t =
|
|
8385
|
+
let t = Nu(e);
|
|
8349
8386
|
return t ? [t] : [];
|
|
8350
8387
|
});
|
|
8351
8388
|
return t.length ? {
|
|
@@ -8354,43 +8391,43 @@ var Ma = {
|
|
|
8354
8391
|
type: e.type === "OR" ? "OR" : "AND"
|
|
8355
8392
|
} : null;
|
|
8356
8393
|
}
|
|
8357
|
-
return
|
|
8358
|
-
},
|
|
8394
|
+
return ku(e) ? { ...e } : null;
|
|
8395
|
+
}, Pu = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, Fu = (e) => Ou(e) && !Au(e) && !ku(e), Iu = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), Lu = {
|
|
8359
8396
|
number: "agNumberColumnFilter",
|
|
8360
8397
|
set: "agSetColumnFilter",
|
|
8361
8398
|
text: "agTextColumnFilter"
|
|
8362
|
-
},
|
|
8399
|
+
}, Ru = (e) => {
|
|
8363
8400
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
8364
8401
|
let t = e.filterParams;
|
|
8365
8402
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
8366
|
-
},
|
|
8367
|
-
let n =
|
|
8368
|
-
return r ? n.findIndex((e) =>
|
|
8369
|
-
},
|
|
8370
|
-
let n =
|
|
8403
|
+
}, zu = (e, t) => {
|
|
8404
|
+
let n = Ru(e), r = t.filterType ? Lu[t.filterType] : void 0;
|
|
8405
|
+
return r ? n.findIndex((e) => Ou(e) && e.filter === r) : -1;
|
|
8406
|
+
}, Bu = (e, t) => {
|
|
8407
|
+
let n = Ru(e);
|
|
8371
8408
|
if (!n.length) return null;
|
|
8372
|
-
let r = Array(n.length).fill(null), i =
|
|
8409
|
+
let r = Array(n.length).fill(null), i = zu(e, t);
|
|
8373
8410
|
return i < 0 ? null : (r[i] = t, {
|
|
8374
8411
|
filterModels: r,
|
|
8375
8412
|
filterType: "multi"
|
|
8376
8413
|
});
|
|
8377
|
-
},
|
|
8378
|
-
if (!
|
|
8414
|
+
}, Vu = (e, t) => {
|
|
8415
|
+
if (!Fu(e)) return null;
|
|
8379
8416
|
let n = e[t];
|
|
8380
|
-
return
|
|
8381
|
-
},
|
|
8417
|
+
return Ou(n) ? n : null;
|
|
8418
|
+
}, Hu = (e) => e ? Iu(e) ? e.filterModels.filter((e) => Ou(e)) : [e] : [], Uu = (e) => Fu(e) ? { ...e } : {}, Wu = (e) => Iu(e) ? {
|
|
8382
8419
|
...e,
|
|
8383
8420
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
8384
|
-
} : { ...e },
|
|
8385
|
-
let n =
|
|
8421
|
+
} : { ...e }, Gu = (e, t) => {
|
|
8422
|
+
let n = Uu(e);
|
|
8386
8423
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
8387
|
-
},
|
|
8424
|
+
}, Ku = /* @__PURE__ */ new Set(), qu = (e, t) => {
|
|
8388
8425
|
let n = `${e}:${t ?? "unknown"}`;
|
|
8389
|
-
|
|
8390
|
-
},
|
|
8391
|
-
let a =
|
|
8392
|
-
if (
|
|
8393
|
-
let o =
|
|
8426
|
+
Ku.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.`), Ku.add(n));
|
|
8427
|
+
}, Ju = (e, t, n, r, i) => {
|
|
8428
|
+
let a = Vu(e, t);
|
|
8429
|
+
if (Iu(a) && r) {
|
|
8430
|
+
let o = Uu(e), s = Wu(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
8394
8431
|
if (!n) {
|
|
8395
8432
|
for (let e of l) c[e] = null;
|
|
8396
8433
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -8403,15 +8440,15 @@ var Ma = {
|
|
|
8403
8440
|
c[e] = n;
|
|
8404
8441
|
for (let e of t) c[e] = null;
|
|
8405
8442
|
} else {
|
|
8406
|
-
let e =
|
|
8443
|
+
let e = zu(i, n), r = c.findIndex((e) => !e), a = Ru(i).length > 0;
|
|
8407
8444
|
if (e >= 0) {
|
|
8408
8445
|
for (; c.length <= e;) c.push(null);
|
|
8409
|
-
c[e] &&
|
|
8446
|
+
c[e] && qu(t, n.filterType), c[e] = n;
|
|
8410
8447
|
} else if (r >= 0) c[r] = n;
|
|
8411
8448
|
else if (!a) c.push(n);
|
|
8412
8449
|
else {
|
|
8413
8450
|
let e = Math.max(0, c.length - 1);
|
|
8414
|
-
|
|
8451
|
+
qu(t, n.filterType), c[e] = n;
|
|
8415
8452
|
}
|
|
8416
8453
|
}
|
|
8417
8454
|
return o[t] = {
|
|
@@ -8419,54 +8456,54 @@ var Ma = {
|
|
|
8419
8456
|
filterModels: c
|
|
8420
8457
|
}, o;
|
|
8421
8458
|
}
|
|
8422
|
-
if (!n) return
|
|
8423
|
-
let o =
|
|
8424
|
-
return o[t] =
|
|
8425
|
-
},
|
|
8459
|
+
if (!n) return Gu(e, t);
|
|
8460
|
+
let o = Uu(e);
|
|
8461
|
+
return o[t] = Bu(i, n) ?? n, o;
|
|
8462
|
+
}, Yu = (e, t) => {
|
|
8426
8463
|
if (e) {
|
|
8427
|
-
if (
|
|
8428
|
-
e.conditions.forEach((e) =>
|
|
8464
|
+
if (Au(e)) {
|
|
8465
|
+
e.conditions.forEach((e) => Yu(e, t));
|
|
8429
8466
|
return;
|
|
8430
8467
|
}
|
|
8431
8468
|
t(e);
|
|
8432
8469
|
}
|
|
8433
|
-
},
|
|
8434
|
-
if (!
|
|
8470
|
+
}, Xu = (e, t) => Au(e) ? e.conditions.length > 0 && e.conditions.every((e) => Xu(e, t)) : e.colId === t, Zu = (e) => {
|
|
8471
|
+
if (!Au(e)) return e.colId;
|
|
8435
8472
|
let t = /* @__PURE__ */ new Set();
|
|
8436
|
-
return
|
|
8437
|
-
},
|
|
8438
|
-
if (!e ||
|
|
8439
|
-
if (!
|
|
8440
|
-
let n = e.conditions.flatMap((e) =>
|
|
8473
|
+
return Yu(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
8474
|
+
}, Qu = (e, t) => {
|
|
8475
|
+
if (!e || Xu(e, t)) return null;
|
|
8476
|
+
if (!Au(e) || e.type !== "AND") return Mu(e);
|
|
8477
|
+
let n = e.conditions.flatMap((e) => Xu(e, t) ? [] : [Mu(e)]);
|
|
8441
8478
|
return n.length ? n.length === 1 ? n[0] : {
|
|
8442
8479
|
conditions: n,
|
|
8443
8480
|
filterType: e.filterType,
|
|
8444
8481
|
type: e.type
|
|
8445
8482
|
} : null;
|
|
8446
|
-
},
|
|
8447
|
-
let r =
|
|
8448
|
-
return n ? r ?
|
|
8483
|
+
}, $u = (e, t, n) => {
|
|
8484
|
+
let r = Qu(Nu(e), t);
|
|
8485
|
+
return n ? r ? Au(r) && r.type === "AND" ? ju({
|
|
8449
8486
|
...r,
|
|
8450
8487
|
conditions: [...r.conditions, n]
|
|
8451
|
-
}) :
|
|
8488
|
+
}) : ju({
|
|
8452
8489
|
conditions: [r, n],
|
|
8453
8490
|
filterType: "join",
|
|
8454
8491
|
type: "AND"
|
|
8455
|
-
}) :
|
|
8456
|
-
},
|
|
8492
|
+
}) : ju(n) : ju(r);
|
|
8493
|
+
}, ed = (e, t) => {
|
|
8457
8494
|
e.includes(t) || e.push(t);
|
|
8458
|
-
},
|
|
8495
|
+
}, td = (e) => {
|
|
8459
8496
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
8460
8497
|
let t = String(e.filter);
|
|
8461
8498
|
return t === "true" || t === "false";
|
|
8462
|
-
},
|
|
8499
|
+
}, nd = (e) => e.filterType === "boolean" || td(e), rd = (e, t) => {
|
|
8463
8500
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8464
|
-
e.values.forEach((e) =>
|
|
8501
|
+
e.values.forEach((e) => ed(t.values, String(e)));
|
|
8465
8502
|
return;
|
|
8466
8503
|
}
|
|
8467
8504
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8468
8505
|
let n = String(e.filter);
|
|
8469
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8506
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), ed(t.values, n);
|
|
8470
8507
|
return;
|
|
8471
8508
|
}
|
|
8472
8509
|
if (e.filterType === "boolean") {
|
|
@@ -8490,7 +8527,7 @@ var Ma = {
|
|
|
8490
8527
|
...t.rangeValue,
|
|
8491
8528
|
max: e.filter
|
|
8492
8529
|
}));
|
|
8493
|
-
},
|
|
8530
|
+
}, id = (e, t) => {
|
|
8494
8531
|
if (e.type === "notBlank") {
|
|
8495
8532
|
t.existsValue = !0;
|
|
8496
8533
|
return;
|
|
@@ -8500,12 +8537,12 @@ var Ma = {
|
|
|
8500
8537
|
return;
|
|
8501
8538
|
}
|
|
8502
8539
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8503
|
-
e.values.forEach((e) =>
|
|
8540
|
+
e.values.forEach((e) => ed(t.values, String(e)));
|
|
8504
8541
|
return;
|
|
8505
8542
|
}
|
|
8506
8543
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8507
8544
|
let n = String(e.filter);
|
|
8508
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8545
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), ed(t.values, n);
|
|
8509
8546
|
return;
|
|
8510
8547
|
}
|
|
8511
8548
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -8518,29 +8555,29 @@ var Ma = {
|
|
|
8518
8555
|
...t.rangeValue,
|
|
8519
8556
|
max: e.filter
|
|
8520
8557
|
}));
|
|
8521
|
-
},
|
|
8558
|
+
}, ad = (e, t = "advanced") => {
|
|
8522
8559
|
let n = /* @__PURE__ */ new Map();
|
|
8523
8560
|
if (t === "regular") {
|
|
8524
|
-
if (!
|
|
8561
|
+
if (!Fu(e)) return n;
|
|
8525
8562
|
for (let [t, r] of Object.entries(e)) {
|
|
8526
|
-
let e =
|
|
8527
|
-
|
|
8563
|
+
let e = Du();
|
|
8564
|
+
Hu(r).forEach((t) => rd(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
8528
8565
|
}
|
|
8529
8566
|
return n;
|
|
8530
8567
|
}
|
|
8531
|
-
let r =
|
|
8568
|
+
let r = Nu(e);
|
|
8532
8569
|
if (!r) return n;
|
|
8533
|
-
let i =
|
|
8570
|
+
let i = Au(r) && r.type === "AND" ? r.conditions : [r];
|
|
8534
8571
|
for (let e of i) {
|
|
8535
|
-
let t =
|
|
8572
|
+
let t = Zu(e);
|
|
8536
8573
|
if (!t) continue;
|
|
8537
|
-
let r = n.get(t) ??
|
|
8538
|
-
|
|
8539
|
-
e.colId === t &&
|
|
8574
|
+
let r = n.get(t) ?? Du();
|
|
8575
|
+
Yu(e, (e) => {
|
|
8576
|
+
e.colId === t && id(e, r);
|
|
8540
8577
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
8541
8578
|
}
|
|
8542
8579
|
return n;
|
|
8543
|
-
},
|
|
8580
|
+
}, od = (e, t = "advanced") => t === "regular" ? Fu(e) && Object.keys(e).length > 0 : Nu(e) !== null, sd = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", cd = (e, t, n = "advanced") => n === "regular" ? Gu(e, t) : ju(Qu(Nu(e), t)), ld = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Ju(e, t, null, nd, a) : cd(e, t, r) : r === "regular" ? Ju(e, t, i === "text" ? {
|
|
8544
8581
|
filter: String(n),
|
|
8545
8582
|
filterType: "text",
|
|
8546
8583
|
type: "equals"
|
|
@@ -8548,30 +8585,30 @@ var Ma = {
|
|
|
8548
8585
|
filter: n,
|
|
8549
8586
|
filterType: "boolean",
|
|
8550
8587
|
type: n ? "true" : "false"
|
|
8551
|
-
},
|
|
8588
|
+
}, nd, a) : i === "text" ? $u(e, t, {
|
|
8552
8589
|
colId: t,
|
|
8553
8590
|
filter: String(n),
|
|
8554
8591
|
filterType: "text",
|
|
8555
8592
|
type: "equals"
|
|
8556
|
-
}) :
|
|
8593
|
+
}) : $u(e, t, {
|
|
8557
8594
|
colId: t,
|
|
8558
8595
|
filterType: "boolean",
|
|
8559
8596
|
type: n ? "true" : "false"
|
|
8560
|
-
}),
|
|
8597
|
+
}), ud = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Ju(e, t, {
|
|
8561
8598
|
filterType: r,
|
|
8562
8599
|
type: "notBlank"
|
|
8563
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
8600
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : $u(e, t, {
|
|
8564
8601
|
colId: t,
|
|
8565
8602
|
filterType: r,
|
|
8566
8603
|
type: "notBlank"
|
|
8567
|
-
}) : i === "regular" ?
|
|
8568
|
-
let o =
|
|
8569
|
-
if (i === "regular") return o === null && s === null ?
|
|
8604
|
+
}) : i === "regular" ? Ju(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : cd(e, t, i), dd = (e, t, n, r, i = "advanced", a) => {
|
|
8605
|
+
let o = Pu(n), s = Pu(r);
|
|
8606
|
+
if (i === "regular") return o === null && s === null ? Ju(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Ju(e, t, {
|
|
8570
8607
|
filter: o,
|
|
8571
8608
|
filterTo: s,
|
|
8572
8609
|
filterType: "number",
|
|
8573
8610
|
type: "inRange"
|
|
8574
|
-
}, (e) => e.filterType === "number", a) :
|
|
8611
|
+
}, (e) => e.filterType === "number", a) : Ju(e, t, {
|
|
8575
8612
|
filter: o ?? s,
|
|
8576
8613
|
filterType: "number",
|
|
8577
8614
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -8587,29 +8624,29 @@ var Ma = {
|
|
|
8587
8624
|
filter: s,
|
|
8588
8625
|
filterType: "number",
|
|
8589
8626
|
type: "lessThanOrEqual"
|
|
8590
|
-
}), c.length ?
|
|
8627
|
+
}), c.length ? $u(e, t, c.length === 1 ? c[0] : {
|
|
8591
8628
|
conditions: c,
|
|
8592
8629
|
filterType: "join",
|
|
8593
8630
|
type: "AND"
|
|
8594
|
-
}) :
|
|
8595
|
-
},
|
|
8631
|
+
}) : cd(e, t);
|
|
8632
|
+
}, fd = (e, t, n, r = "advanced", i) => {
|
|
8596
8633
|
let a = Array.from(new Set(n));
|
|
8597
|
-
if (r === "regular") return a.length ?
|
|
8634
|
+
if (r === "regular") return a.length ? Ju(e, t, {
|
|
8598
8635
|
filterType: "set",
|
|
8599
8636
|
values: a
|
|
8600
|
-
}, (e) => e.filterType === "set", i) :
|
|
8637
|
+
}, (e) => e.filterType === "set", i) : Ju(e, t, null, (e) => e.filterType === "set", i);
|
|
8601
8638
|
let o = a.map((e) => ({
|
|
8602
8639
|
colId: t,
|
|
8603
8640
|
filter: e,
|
|
8604
8641
|
filterType: "text",
|
|
8605
8642
|
type: "equals"
|
|
8606
8643
|
}));
|
|
8607
|
-
return o.length ?
|
|
8644
|
+
return o.length ? $u(e, t, o.length === 1 ? o[0] : {
|
|
8608
8645
|
conditions: o,
|
|
8609
8646
|
filterType: "join",
|
|
8610
8647
|
type: "OR"
|
|
8611
|
-
}) :
|
|
8612
|
-
},
|
|
8648
|
+
}) : cd(e, t);
|
|
8649
|
+
}, pd = Symbol("PvFilterStore"), md = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, hd = (e, t) => t ?? e, gd = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), _d = (e) => {
|
|
8613
8650
|
let t = /* @__PURE__ */ new Map();
|
|
8614
8651
|
for (let n of e) {
|
|
8615
8652
|
if (!n) continue;
|
|
@@ -8621,34 +8658,34 @@ var Ma = {
|
|
|
8621
8658
|
t.set(n.value, {
|
|
8622
8659
|
...e,
|
|
8623
8660
|
...n,
|
|
8624
|
-
children:
|
|
8625
|
-
totalChildCount:
|
|
8661
|
+
children: _d([...e.children ?? [], ...n.children ?? []]),
|
|
8662
|
+
totalChildCount: hd(e.totalChildCount, n.totalChildCount)
|
|
8626
8663
|
});
|
|
8627
8664
|
}
|
|
8628
8665
|
return [...t.values()];
|
|
8629
|
-
},
|
|
8666
|
+
}, vd = (e, t) => {
|
|
8630
8667
|
for (let n of e ?? []) {
|
|
8631
8668
|
if (!n) continue;
|
|
8632
8669
|
if (n.value === t) return n;
|
|
8633
|
-
let e =
|
|
8670
|
+
let e = vd(n.children, t);
|
|
8634
8671
|
if (e) return e;
|
|
8635
8672
|
}
|
|
8636
|
-
},
|
|
8673
|
+
}, yd = (e, t, n) => {
|
|
8637
8674
|
if (!e || t === null) return !1;
|
|
8638
8675
|
if (e.value === t) return !0;
|
|
8639
|
-
let r =
|
|
8640
|
-
return r !== null && r === t ||
|
|
8641
|
-
},
|
|
8642
|
-
let r =
|
|
8676
|
+
let r = al(e);
|
|
8677
|
+
return r !== null && r === t || cl(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => yd(e, t, n)) ?? !1;
|
|
8678
|
+
}, bd = (e, t, n) => {
|
|
8679
|
+
let r = vd(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
8643
8680
|
return e.map((e) => e && (e.value === t ? {
|
|
8644
8681
|
...e,
|
|
8645
|
-
children:
|
|
8646
|
-
totalChildCount:
|
|
8682
|
+
children: _d([...e.children ?? [], ...i]),
|
|
8683
|
+
totalChildCount: hd(e.totalChildCount, r?.totalChildCount)
|
|
8647
8684
|
} : e.children?.length ? {
|
|
8648
8685
|
...e,
|
|
8649
|
-
children:
|
|
8686
|
+
children: bd(e.children, t, n).filter((e) => !!e)
|
|
8650
8687
|
} : e));
|
|
8651
|
-
},
|
|
8688
|
+
}, xd = (e, t) => `${e}::${t}`, Sd = () => {
|
|
8652
8689
|
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) => {
|
|
8653
8690
|
_.value = e;
|
|
8654
8691
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -8657,11 +8694,11 @@ var Ma = {
|
|
|
8657
8694
|
let r = n ? o : i;
|
|
8658
8695
|
r.value[e] = t;
|
|
8659
8696
|
}, w = () => {
|
|
8660
|
-
o.value =
|
|
8697
|
+
o.value = gd(i.value), s.value = gd(a.value);
|
|
8661
8698
|
}, T = () => {
|
|
8662
8699
|
o.value = {}, s.value = {};
|
|
8663
8700
|
}, E = () => {
|
|
8664
|
-
i.value =
|
|
8701
|
+
i.value = gd(o.value), a.value = gd(s.value), T();
|
|
8665
8702
|
}, D = (e, t) => {
|
|
8666
8703
|
c.value[e] = t;
|
|
8667
8704
|
}, O = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -8683,7 +8720,7 @@ var Ma = {
|
|
|
8683
8720
|
if (!o) return [];
|
|
8684
8721
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
8685
8722
|
c.value[n.field] = s;
|
|
8686
|
-
let l = n.parentId ?
|
|
8723
|
+
let l = n.parentId ? vd(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 ? xd(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
8687
8724
|
h.value[b] = x;
|
|
8688
8725
|
try {
|
|
8689
8726
|
let c = await o({
|
|
@@ -8694,17 +8731,17 @@ var Ma = {
|
|
|
8694
8731
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
8695
8732
|
});
|
|
8696
8733
|
if (h.value[b] !== x) return [];
|
|
8697
|
-
let l =
|
|
8734
|
+
let l = md(c);
|
|
8698
8735
|
if (n.parentId) {
|
|
8699
|
-
let e =
|
|
8736
|
+
let e = xd(n.field, n.parentId);
|
|
8700
8737
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
8701
8738
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
8702
8739
|
let _ = a.value[n.field] ?? [], y;
|
|
8703
|
-
y = n.parentId ?
|
|
8740
|
+
y = n.parentId ? bd(r.value[n.field] ?? [], n.parentId, l.values) : v ? _d([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
8704
8741
|
for (let e of _) {
|
|
8705
8742
|
if (!e) continue;
|
|
8706
|
-
let t =
|
|
8707
|
-
y.some((e) =>
|
|
8743
|
+
let t = al(e) ?? e.value;
|
|
8744
|
+
y.some((e) => yd(e, t, n.field)) || y.push(e);
|
|
8708
8745
|
}
|
|
8709
8746
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
8710
8747
|
} finally {
|
|
@@ -8737,20 +8774,20 @@ var Ma = {
|
|
|
8737
8774
|
stagedFilterSelectedMetadataMap: s,
|
|
8738
8775
|
stagedFilterSelectedValueMap: o
|
|
8739
8776
|
};
|
|
8740
|
-
},
|
|
8741
|
-
O(
|
|
8742
|
-
},
|
|
8777
|
+
}, Cd = (e) => {
|
|
8778
|
+
O(pd, e);
|
|
8779
|
+
}, wd = () => m(pd, null), Td = () => wd() ?? Sd(), Ed = "__range__", Dd = "__boolean__", Od = "__exists__", kd = new Set([
|
|
8743
8780
|
"value",
|
|
8744
8781
|
"range",
|
|
8745
8782
|
"boolean",
|
|
8746
8783
|
"exists"
|
|
8747
8784
|
]);
|
|
8748
|
-
function
|
|
8785
|
+
function Ad(e, t, n) {
|
|
8749
8786
|
f();
|
|
8750
|
-
let i = k(t.value), a =
|
|
8787
|
+
let i = k(t.value), a = Sd(), o = wd(), 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(() => {
|
|
8751
8788
|
let n = p.value;
|
|
8752
8789
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
8753
|
-
}), y = r(() =>
|
|
8790
|
+
}), y = r(() => ad(v.value, _.value)), b = (e, t) => {
|
|
8754
8791
|
let n = e.applyFilterModel;
|
|
8755
8792
|
if (typeof n == "function") {
|
|
8756
8793
|
n(t);
|
|
@@ -8841,7 +8878,7 @@ function Od(e, t, n) {
|
|
|
8841
8878
|
});
|
|
8842
8879
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
8843
8880
|
let t = D(e), n = t.filterPanelType;
|
|
8844
|
-
if (n &&
|
|
8881
|
+
if (n && kd.has(n)) return n;
|
|
8845
8882
|
if (t.filterPanelRange) return "range";
|
|
8846
8883
|
if (t.dataType === "boolean") return "boolean";
|
|
8847
8884
|
if (e.filter) return "value";
|
|
@@ -8881,30 +8918,30 @@ function Od(e, t, n) {
|
|
|
8881
8918
|
...r,
|
|
8882
8919
|
...i
|
|
8883
8920
|
].filter(Boolean)));
|
|
8884
|
-
}, K = (e) => _.value === "advanced" &&
|
|
8921
|
+
}, K = (e) => _.value === "advanced" && gl(e), q = (e, t) => K(e) ? El({
|
|
8885
8922
|
colDef: e,
|
|
8886
8923
|
model: v.value,
|
|
8887
8924
|
options: t
|
|
8888
8925
|
}) : new Map(W(e).map((e) => [e, y.value.get(e)?.values ?? []])), re = (e, t, n, r) => {
|
|
8889
8926
|
let i = /* @__PURE__ */ new Set();
|
|
8890
|
-
for (let t of
|
|
8927
|
+
for (let t of sl(r)) for (let [r, a] of n) for (let n of a) cl(t, r, n, e) && i.add(`${r}:${n}`);
|
|
8891
8928
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
8892
8929
|
colField: t === e ? void 0 : t,
|
|
8893
8930
|
label: n,
|
|
8894
8931
|
metadata: { rawValue: n },
|
|
8895
|
-
value: t === e ? n :
|
|
8932
|
+
value: t === e ? n : il(t, n)
|
|
8896
8933
|
}]));
|
|
8897
8934
|
}, J = (e, t, n) => {
|
|
8898
8935
|
let r = /* @__PURE__ */ new Set();
|
|
8899
|
-
for (let i of
|
|
8900
|
-
let n =
|
|
8936
|
+
for (let i of sl(n)) {
|
|
8937
|
+
let n = ol(i, e), a = al(i);
|
|
8901
8938
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
8902
8939
|
}
|
|
8903
8940
|
return Array.from(r);
|
|
8904
8941
|
}, ie = (t) => Object.fromEntries(W(t).map((t) => [t, e.focusedValues[t] ?? []])), Y = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), ae = (e) => Y(e)?.headerName ?? e, oe = (e) => {
|
|
8905
8942
|
let t = D(e);
|
|
8906
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
8907
|
-
}, se = (e, t) =>
|
|
8943
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : wu(O(e), t.queryColIds, ae);
|
|
8944
|
+
}, se = (e, t) => Eu({
|
|
8908
8945
|
fallbackSubText: e.subText,
|
|
8909
8946
|
getDisplayName: ae,
|
|
8910
8947
|
matchedField: e.matchedField,
|
|
@@ -8922,7 +8959,7 @@ function Od(e, t, n) {
|
|
|
8922
8959
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
8923
8960
|
label: Y(e)?.headerName ?? e
|
|
8924
8961
|
}));
|
|
8925
|
-
}, ue = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => W(t.colDef).includes(e)), de = (e, t, n) =>
|
|
8962
|
+
}, ue = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => W(t.colDef).includes(e)), de = (e, t, n) => sl(ue(e)?.knownOptions ?? []).find((r) => r.value === n || cl(r, t, n, e)), X = r(() => e.colDefs.filter(F).map((t) => {
|
|
8926
8963
|
let n = O(t), r = D(t), i = M(t), a = ce(I(n), t), o = ce(te(n), t), s = {
|
|
8927
8964
|
category: N(t),
|
|
8928
8965
|
colDef: t,
|
|
@@ -8955,6 +8992,7 @@ function Od(e, t, n) {
|
|
|
8955
8992
|
key: n,
|
|
8956
8993
|
knownOptions: o,
|
|
8957
8994
|
label: t.headerName || n,
|
|
8995
|
+
loadingText: r.filterOptionsLoadingText,
|
|
8958
8996
|
rangeMax: A(r.filterPanelRange?.max),
|
|
8959
8997
|
rangeMin: A(r.filterPanelRange?.min),
|
|
8960
8998
|
rangeStep: A(r.filterPanelRange?.step),
|
|
@@ -8980,7 +9018,7 @@ function Od(e, t, n) {
|
|
|
8980
9018
|
...s,
|
|
8981
9019
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
8982
9020
|
};
|
|
8983
|
-
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) : q(t, c), d = re(n, t, u, c), f = [...c, ...d], p = K(t) ?
|
|
9021
|
+
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) : q(t, c), d = re(n, t, u, c), f = [...c, ...d], p = K(t) ? Tl({
|
|
8984
9022
|
colDef: t,
|
|
8985
9023
|
model: v.value,
|
|
8986
9024
|
options: f
|
|
@@ -9000,19 +9038,19 @@ function Od(e, t, n) {
|
|
|
9000
9038
|
label: e.label,
|
|
9001
9039
|
values: t
|
|
9002
9040
|
}] : [];
|
|
9003
|
-
})), pe = r(() => fe.value.reduce((e, t) => e + t.values.length, 0)), me = r(() =>
|
|
9041
|
+
})), pe = r(() => fe.value.reduce((e, t) => e + t.values.length, 0)), me = r(() => od(v.value, _.value)), he = r(() => me.value || pe.value > 0), ge = (e) => {
|
|
9004
9042
|
let t = ue(e.field);
|
|
9005
9043
|
if (!t || t.type !== e.filter.type) return !0;
|
|
9006
9044
|
if (e.filter.type === "value") {
|
|
9007
9045
|
if (t.isAggregate && e.option) {
|
|
9008
|
-
let { selected: n } =
|
|
9046
|
+
let { selected: n } = zl({
|
|
9009
9047
|
option: e.option,
|
|
9010
9048
|
options: t.knownOptions ?? [],
|
|
9011
9049
|
state: t.aggregateSelectionState ?? []
|
|
9012
9050
|
});
|
|
9013
9051
|
return e.filter.checked ? n : !n;
|
|
9014
9052
|
}
|
|
9015
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
9053
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? al(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
9016
9054
|
return e.filter.checked ? a : !a;
|
|
9017
9055
|
}
|
|
9018
9056
|
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;
|
|
@@ -9026,14 +9064,14 @@ function Od(e, t, n) {
|
|
|
9026
9064
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
9027
9065
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
9028
9066
|
if (!e) return !1;
|
|
9029
|
-
let r =
|
|
9067
|
+
let r = ol(e, t), i = al(e) ?? e.value;
|
|
9030
9068
|
return r !== n || c.has(i);
|
|
9031
9069
|
});
|
|
9032
9070
|
if (i) {
|
|
9033
|
-
let e =
|
|
9071
|
+
let e = al(i) ?? i.value, n = ol(i, t);
|
|
9034
9072
|
l.some((r) => {
|
|
9035
|
-
let i =
|
|
9036
|
-
return
|
|
9073
|
+
let i = al(r) ?? r.value;
|
|
9074
|
+
return ol(r, t) === n && i === e;
|
|
9037
9075
|
}) || l.push(i);
|
|
9038
9076
|
}
|
|
9039
9077
|
o.value[t] = l;
|
|
@@ -9043,7 +9081,7 @@ function Od(e, t, n) {
|
|
|
9043
9081
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
9044
9082
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
9045
9083
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
9046
|
-
a.value[t.key] =
|
|
9084
|
+
a.value[t.key] = Bl({
|
|
9047
9085
|
options: t.knownOptions ?? [],
|
|
9048
9086
|
state: n
|
|
9049
9087
|
});
|
|
@@ -9072,48 +9110,48 @@ function Od(e, t, n) {
|
|
|
9072
9110
|
return t === null ? [] : [{
|
|
9073
9111
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
9074
9112
|
type: "boolean",
|
|
9075
|
-
value:
|
|
9113
|
+
value: Dd
|
|
9076
9114
|
}];
|
|
9077
9115
|
}, we = (e) => e.existsValue ? [{
|
|
9078
9116
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
9079
9117
|
type: "exists",
|
|
9080
|
-
value:
|
|
9118
|
+
value: Od
|
|
9081
9119
|
}] : [], Te = (e) => {
|
|
9082
9120
|
let t = e.rangeValue ?? {
|
|
9083
9121
|
max: null,
|
|
9084
9122
|
min: null
|
|
9085
9123
|
};
|
|
9086
9124
|
return t.min === null && t.max === null ? [] : [{
|
|
9087
|
-
label:
|
|
9125
|
+
label: Jc(t.min, t.max, {
|
|
9088
9126
|
dataType: e.dataType,
|
|
9089
9127
|
valueDecimals: e.valueDecimals
|
|
9090
9128
|
}),
|
|
9091
9129
|
type: "range",
|
|
9092
|
-
value:
|
|
9130
|
+
value: Ed
|
|
9093
9131
|
}];
|
|
9094
9132
|
}, Ee = (e, t, n) => {
|
|
9095
9133
|
let r = n.get(t) ?? null;
|
|
9096
9134
|
return {
|
|
9097
|
-
field: r ?
|
|
9098
|
-
label: r ?
|
|
9099
|
-
resultCount:
|
|
9135
|
+
field: r ? ol(r, e.key) : void 0,
|
|
9136
|
+
label: r ? Zc(r, e.colDef) : t,
|
|
9137
|
+
resultCount: Qc(r),
|
|
9100
9138
|
subText: r?.subText,
|
|
9101
9139
|
subduedText: r?.subduedText,
|
|
9102
9140
|
type: "value",
|
|
9103
|
-
value: r ?
|
|
9141
|
+
value: r ? al(r) ?? r.value : t
|
|
9104
9142
|
};
|
|
9105
9143
|
}, De = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
9106
9144
|
field: e.field,
|
|
9107
9145
|
label: e.label,
|
|
9108
9146
|
type: "boolean",
|
|
9109
|
-
value:
|
|
9110
|
-
}] : []), Oe = (e) =>
|
|
9147
|
+
value: Dd
|
|
9148
|
+
}] : []), Oe = (e) => Bl({
|
|
9111
9149
|
options: e.knownOptions ?? [],
|
|
9112
9150
|
state: e.aggregateSelectionState ?? []
|
|
9113
9151
|
}).map((t) => ({
|
|
9114
9152
|
field: e.key,
|
|
9115
|
-
label:
|
|
9116
|
-
resultCount:
|
|
9153
|
+
label: Zc(t, e.colDef),
|
|
9154
|
+
resultCount: Qc(t),
|
|
9117
9155
|
subText: t.subText,
|
|
9118
9156
|
subduedText: t.subduedText,
|
|
9119
9157
|
type: "value",
|
|
@@ -9124,7 +9162,7 @@ function Od(e, t, n) {
|
|
|
9124
9162
|
if (e.type === "boolean") return Ce(e);
|
|
9125
9163
|
if (e.type === "exists") return we(e);
|
|
9126
9164
|
if (e.isAggregate) return [...Oe(e), ...De(e)];
|
|
9127
|
-
let t = new Map(
|
|
9165
|
+
let t = new Map(sl(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
9128
9166
|
return [...(e.selectedValues ?? []).map((n) => Ee(e, n, t)), ...De(e)];
|
|
9129
9167
|
}, Ae = () => {
|
|
9130
9168
|
Re(), Se(null, "clear-all");
|
|
@@ -9136,9 +9174,9 @@ function Od(e, t, n) {
|
|
|
9136
9174
|
Re();
|
|
9137
9175
|
let e = p.value;
|
|
9138
9176
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
9139
|
-
}, Ne = (e) =>
|
|
9177
|
+
}, Ne = (e) => sd(ue(e)?.dataType), Pe = (e, t, n = "value-toggle") => {
|
|
9140
9178
|
let r = ue(e);
|
|
9141
|
-
r?.isAggregate && (be(r, t), Se(
|
|
9179
|
+
r?.isAggregate && (be(r, t), Se(Cl({
|
|
9142
9180
|
baseModel: v.value,
|
|
9143
9181
|
colDef: r.colDef,
|
|
9144
9182
|
options: r.knownOptions ?? [],
|
|
@@ -9153,7 +9191,7 @@ function Od(e, t, n) {
|
|
|
9153
9191
|
if (t.type === "value") {
|
|
9154
9192
|
let r = ue(e), i = de(e, n, t.value);
|
|
9155
9193
|
if (r?.isAggregate && i) {
|
|
9156
|
-
Pe(e,
|
|
9194
|
+
Pe(e, Il({
|
|
9157
9195
|
checked: t.checked,
|
|
9158
9196
|
option: i,
|
|
9159
9197
|
options: r.knownOptions ?? [],
|
|
@@ -9169,10 +9207,10 @@ function Od(e, t, n) {
|
|
|
9169
9207
|
return;
|
|
9170
9208
|
}
|
|
9171
9209
|
if (t.type === "boolean") {
|
|
9172
|
-
Se(
|
|
9210
|
+
Se(ld(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
9173
9211
|
return;
|
|
9174
9212
|
}
|
|
9175
|
-
Se(
|
|
9213
|
+
Se(ud(v.value, n, t.value, Ne(n), _.value, r), "exists-change", n, "exists");
|
|
9176
9214
|
}, Ie = (e, t, n, r) => {
|
|
9177
9215
|
let i = p.value;
|
|
9178
9216
|
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;
|
|
@@ -9192,7 +9230,7 @@ function Od(e, t, n) {
|
|
|
9192
9230
|
}, Le = (e, t, r) => {
|
|
9193
9231
|
n("load-more", e.key, e.colDef, t, r), Z(e, t, r ? "child-load-more" : "load-more", r);
|
|
9194
9232
|
}, Q = (e, t, n) => {
|
|
9195
|
-
Se(
|
|
9233
|
+
Se(dd(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
9196
9234
|
}, Re = () => {
|
|
9197
9235
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
9198
9236
|
l.clear();
|
|
@@ -9227,7 +9265,7 @@ function Od(e, t, n) {
|
|
|
9227
9265
|
n("controlled-change", t, l, s.colDef);
|
|
9228
9266
|
return;
|
|
9229
9267
|
}
|
|
9230
|
-
ye(t, r, l, a ? o : void 0), Se(
|
|
9268
|
+
ye(t, r, l, a ? o : void 0), Se(fd(v.value, r, l, _.value, Y(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
9231
9269
|
};
|
|
9232
9270
|
return {
|
|
9233
9271
|
resolvedFilters: X,
|
|
@@ -9251,8 +9289,8 @@ function Od(e, t, n) {
|
|
|
9251
9289
|
handleSearchChange: $,
|
|
9252
9290
|
handleSuggestionClick: (e) => {
|
|
9253
9291
|
if (e.filter.type === "value" && e.option) {
|
|
9254
|
-
let t = ue(e.field), n =
|
|
9255
|
-
t?.isAggregate ? Pe(e.field,
|
|
9292
|
+
let t = ue(e.field), n = ol(e.option, e.field), r = al(e.option) ?? e.filter.value;
|
|
9293
|
+
t?.isAggregate ? Pe(e.field, Il({
|
|
9256
9294
|
checked: e.filter.checked,
|
|
9257
9295
|
option: e.option,
|
|
9258
9296
|
options: t.knownOptions ?? [],
|
|
@@ -9263,21 +9301,21 @@ function Od(e, t, n) {
|
|
|
9263
9301
|
},
|
|
9264
9302
|
removeAppliedFilter: (e, t, n) => {
|
|
9265
9303
|
let r = n ?? ue(e)?.type ?? "value";
|
|
9266
|
-
if (r === "range" || !n && t ===
|
|
9267
|
-
Se(
|
|
9304
|
+
if (r === "range" || !n && t === Ed) {
|
|
9305
|
+
Se(dd(v.value, e, null, null, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "range");
|
|
9268
9306
|
return;
|
|
9269
9307
|
}
|
|
9270
|
-
if (r === "boolean" || !n && t ===
|
|
9271
|
-
Se(
|
|
9308
|
+
if (r === "boolean" || !n && t === Dd) {
|
|
9309
|
+
Se(ld(v.value, e, null, _.value, "boolean", Y(e) ?? ue(e)?.colDef), "remove-filter", e, "boolean");
|
|
9272
9310
|
return;
|
|
9273
9311
|
}
|
|
9274
|
-
if (r === "exists" || !n && t ===
|
|
9275
|
-
Se(
|
|
9312
|
+
if (r === "exists" || !n && t === Od) {
|
|
9313
|
+
Se(ud(v.value, e, !1, "text", _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "exists");
|
|
9276
9314
|
return;
|
|
9277
9315
|
}
|
|
9278
9316
|
let i = ue(e);
|
|
9279
9317
|
if (r === "value" && i?.isAggregate) {
|
|
9280
|
-
let e =
|
|
9318
|
+
let e = _l(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? Il({
|
|
9281
9319
|
checked: !1,
|
|
9282
9320
|
option: e,
|
|
9283
9321
|
options: i.knownOptions ?? [],
|
|
@@ -9287,34 +9325,34 @@ function Od(e, t, n) {
|
|
|
9287
9325
|
return;
|
|
9288
9326
|
}
|
|
9289
9327
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
9290
|
-
ye(ue(e)?.key ?? e, e, a), Se(
|
|
9328
|
+
ye(ue(e)?.key ?? e, e, a), Se(fd(v.value, e, a, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "value");
|
|
9291
9329
|
}
|
|
9292
9330
|
};
|
|
9293
9331
|
}
|
|
9294
9332
|
//#endregion
|
|
9295
9333
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9296
|
-
var
|
|
9334
|
+
var jd = ["aria-label"], Md = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, Nd = { class: "pv-filter-panel-body pv-flex-vertical" }, Pd = {
|
|
9297
9335
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
9298
9336
|
"data-testid": "pv-filter-panel-filters-view"
|
|
9299
|
-
},
|
|
9337
|
+
}, Fd = {
|
|
9300
9338
|
key: 0,
|
|
9301
9339
|
"aria-label": "Filter suggestions",
|
|
9302
9340
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
9303
9341
|
"data-testid": "pv-filter-panel-suggestions"
|
|
9304
|
-
},
|
|
9342
|
+
}, Id = { class: "pv-filter-panel-suggestion-tags pv-flex" }, Ld = {
|
|
9305
9343
|
key: 1,
|
|
9306
9344
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9307
|
-
},
|
|
9345
|
+
}, Rd = {
|
|
9308
9346
|
key: 2,
|
|
9309
9347
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9310
|
-
},
|
|
9348
|
+
}, zd = {
|
|
9311
9349
|
key: 3,
|
|
9312
9350
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
9313
9351
|
style: { "--inset-size": "8px" }
|
|
9314
|
-
},
|
|
9352
|
+
}, Bd = {
|
|
9315
9353
|
key: 0,
|
|
9316
9354
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
9317
|
-
},
|
|
9355
|
+
}, Vd = { class: "pv-filter-panel-actions pv-flex" }, Hd = { class: "pv-filter-panel-actions pv-flex" }, Ud = { class: "pv-text-body-sm" }, Wd = { class: "pv-filter-panel-modal-footer pv-flex" }, Gd = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
9318
9356
|
__name: "PvFilterPanel",
|
|
9319
9357
|
props: /* @__PURE__ */ g({
|
|
9320
9358
|
applyLabel: { default: "Apply" },
|
|
@@ -9392,7 +9430,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9392
9430
|
"suggestion-click"
|
|
9393
9431
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
9394
9432
|
setup(e, { emit: n }) {
|
|
9395
|
-
let c = e, l = z(e, "filterModel"), d = z(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: M } =
|
|
9433
|
+
let c = e, l = z(e, "filterModel"), d = z(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: M } = Ad(c, l, f), N = k("filters"), P = k({}), L = k(null), R = k(!1), B = k(!1), V = (e) => e.colDef.context?.filterCollapsedByDefault === !0, ee = r(() => L.value === null ? p.value : p.value.filter((e) => e.category === L.value)), te = r(() => ee.value.filter((e) => !V(e))), H = r(() => ee.value.filter(V)), U = r(() => R.value ? [...te.value, ...H.value] : te.value), G = r(() => `${R.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), ne = r(() => N.value === "filters" && H.value.length > 0), re = r(() => ne.value || !c.readOnly && (g.value || c.staged)), J = r(() => U.value.map((e) => ({
|
|
9396
9434
|
...e,
|
|
9397
9435
|
isOpen: P.value[e.key] ?? e.isOpen ?? !1
|
|
9398
9436
|
}))), ie = r(() => [{
|
|
@@ -9426,7 +9464,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9426
9464
|
"aria-label": e.ariaLabel,
|
|
9427
9465
|
style: x(Y.value)
|
|
9428
9466
|
}, [
|
|
9429
|
-
s("div",
|
|
9467
|
+
s("div", Md, [u(Sr, {
|
|
9430
9468
|
modelValue: N.value,
|
|
9431
9469
|
options: ie.value,
|
|
9432
9470
|
class: "pv-filter-panel-mode-control",
|
|
@@ -9440,8 +9478,8 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9440
9478
|
variant: "secondary",
|
|
9441
9479
|
onClick: r[0] ||= (e) => d.value = !0
|
|
9442
9480
|
}))]),
|
|
9443
|
-
s("div",
|
|
9444
|
-
!e.readOnly && I(_).length ? (D(), o("section",
|
|
9481
|
+
s("div", Nd, [q(s("div", Pd, [
|
|
9482
|
+
!e.readOnly && I(_).length ? (D(), o("section", Fd, [r[6] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Id, [(D(!0), o(t, null, A(I(_), (e) => (D(), i(Yr, {
|
|
9445
9483
|
key: I(C)(e),
|
|
9446
9484
|
icon: e.icon,
|
|
9447
9485
|
"icon-classes": e.iconClasses,
|
|
@@ -9454,7 +9492,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9454
9492
|
"onHandleClick"
|
|
9455
9493
|
]))), 128))])])) : a("", !0),
|
|
9456
9494
|
j(n.$slots, "suggestions", {}, void 0, !0),
|
|
9457
|
-
u(
|
|
9495
|
+
u(Cu, {
|
|
9458
9496
|
modelValue: L.value,
|
|
9459
9497
|
"onUpdate:modelValue": r[1] ||= (e) => L.value = e,
|
|
9460
9498
|
"category-order": e.categoryOrder,
|
|
@@ -9464,7 +9502,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9464
9502
|
"category-order",
|
|
9465
9503
|
"filters"
|
|
9466
9504
|
]),
|
|
9467
|
-
I(p).length ? ee.value.length ? (D(), o("div",
|
|
9505
|
+
I(p).length ? ee.value.length ? (D(), o("div", zd, [(D(!0), o(t, null, A(J.value, (e) => (D(), i(uu, {
|
|
9468
9506
|
key: e.key,
|
|
9469
9507
|
filter: e,
|
|
9470
9508
|
onFilterChange: (t) => I(w)(e.key, t),
|
|
@@ -9479,8 +9517,8 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9479
9517
|
"onLoadMore",
|
|
9480
9518
|
"onOpenChange",
|
|
9481
9519
|
"onSearchChange"
|
|
9482
|
-
]))), 128))])) : (D(), o("div",
|
|
9483
|
-
], 512), [[W, N.value === "filters"]]), q(u(
|
|
9520
|
+
]))), 128))])) : (D(), o("div", Rd, " No filters in this category. ")) : (D(), o("div", Ld, " No filters available. "))
|
|
9521
|
+
], 512), [[W, N.value === "filters"]]), q(u(gu, {
|
|
9484
9522
|
"applied-count": I(h),
|
|
9485
9523
|
"applied-groups": I(m),
|
|
9486
9524
|
"read-only": e.readOnly,
|
|
@@ -9491,13 +9529,13 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9491
9529
|
"read-only",
|
|
9492
9530
|
"onRemoveFilter"
|
|
9493
9531
|
]), [[W, N.value === "applied"]])]),
|
|
9494
|
-
re.value ? (D(), o("div",
|
|
9532
|
+
re.value ? (D(), o("div", Bd, [s("div", Vd, [ne.value ? (D(), i($, {
|
|
9495
9533
|
key: 0,
|
|
9496
9534
|
class: "pv-text-brand",
|
|
9497
9535
|
label: G.value,
|
|
9498
9536
|
variant: "ghost",
|
|
9499
9537
|
onClick: r[4] ||= (e) => R.value = !R.value
|
|
9500
|
-
}, null, 8, ["label"])) : a("", !0)]), s("div",
|
|
9538
|
+
}, null, 8, ["label"])) : a("", !0)]), s("div", Hd, [I(g) && !e.readOnly ? (D(), i($, {
|
|
9501
9539
|
key: 0,
|
|
9502
9540
|
class: "pv-text-brand",
|
|
9503
9541
|
label: e.clearAllLabel,
|
|
@@ -9512,14 +9550,14 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9512
9550
|
variant: "primary",
|
|
9513
9551
|
onClick: I(y)
|
|
9514
9552
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
9515
|
-
], 12,
|
|
9553
|
+
], 12, jd)), u(Fr, {
|
|
9516
9554
|
modelValue: B.value,
|
|
9517
9555
|
"onUpdate:modelValue": r[5] ||= (e) => B.value = e,
|
|
9518
9556
|
header: e.clearAllHeader,
|
|
9519
9557
|
style: { "--max-width": "440px" }
|
|
9520
9558
|
}, {
|
|
9521
|
-
body: K(() => [s("p",
|
|
9522
|
-
footer: K(() => [s("div",
|
|
9559
|
+
body: K(() => [s("p", Ud, F(e.clearAllBody), 1)]),
|
|
9560
|
+
footer: K(() => [s("div", Wd, [u($, {
|
|
9523
9561
|
label: e.cancelLabel,
|
|
9524
9562
|
variant: "ghost",
|
|
9525
9563
|
onClick: se
|
|
@@ -9531,16 +9569,16 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9531
9569
|
_: 1
|
|
9532
9570
|
}, 8, ["modelValue", "header"])], 64));
|
|
9533
9571
|
}
|
|
9534
|
-
}), [["__scopeId", "data-v-bc38ed4b"]]),
|
|
9572
|
+
}), [["__scopeId", "data-v-bc38ed4b"]]), Kd = ["for"], qd = [
|
|
9535
9573
|
"id",
|
|
9536
9574
|
"type",
|
|
9537
9575
|
"value",
|
|
9538
9576
|
"name",
|
|
9539
9577
|
"disabled"
|
|
9540
|
-
],
|
|
9578
|
+
], Jd = { key: 0 }, Yd = {
|
|
9541
9579
|
class: "pv-inset-square",
|
|
9542
9580
|
style: { "--inset-size": "0px 2px" }
|
|
9543
|
-
},
|
|
9581
|
+
}, Xd = /* @__PURE__ */ d({
|
|
9544
9582
|
__name: "PvFilterModalSelectItem",
|
|
9545
9583
|
props: /* @__PURE__ */ g({
|
|
9546
9584
|
rounded: { type: Boolean },
|
|
@@ -9573,55 +9611,55 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9573
9611
|
value: e.value,
|
|
9574
9612
|
name: e.name,
|
|
9575
9613
|
disabled: e.disabled
|
|
9576
|
-
}, null, 8,
|
|
9577
|
-
e.label ? (D(), o("span",
|
|
9578
|
-
s("span",
|
|
9579
|
-
], 8,
|
|
9614
|
+
}, null, 8, qd), [[te, n.value]]),
|
|
9615
|
+
e.label ? (D(), o("span", Jd, F(e.label), 1)) : a("", !0),
|
|
9616
|
+
s("span", Yd, F(e.rightCounterBadge), 1)
|
|
9617
|
+
], 8, Kd));
|
|
9580
9618
|
}
|
|
9581
|
-
}),
|
|
9619
|
+
}), Zd = ["aria-label"], Qd = {
|
|
9582
9620
|
class: "pv-filter-modal pv-flex",
|
|
9583
9621
|
style: {
|
|
9584
9622
|
"--flex-align": "stretch",
|
|
9585
9623
|
"--flex-gap": "0"
|
|
9586
9624
|
}
|
|
9587
|
-
},
|
|
9625
|
+
}, $d = {
|
|
9588
9626
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
9589
9627
|
"aria-label": "Filter categories",
|
|
9590
9628
|
style: { "--flex-gap": "0.25rem" }
|
|
9591
|
-
},
|
|
9629
|
+
}, ef = {
|
|
9592
9630
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
9593
9631
|
style: {
|
|
9594
9632
|
"--flex-align": "stretch",
|
|
9595
9633
|
"--flex-gap": "0.75rem"
|
|
9596
9634
|
}
|
|
9597
|
-
},
|
|
9635
|
+
}, tf = {
|
|
9598
9636
|
key: 0,
|
|
9599
9637
|
class: "pv-flex",
|
|
9600
9638
|
style: {
|
|
9601
9639
|
"--flex-gap": "0.5rem",
|
|
9602
9640
|
"flex-wrap": "wrap"
|
|
9603
9641
|
}
|
|
9604
|
-
},
|
|
9642
|
+
}, nf = {
|
|
9605
9643
|
key: 1,
|
|
9606
9644
|
class: "pv-inset-square-8"
|
|
9607
|
-
},
|
|
9645
|
+
}, rf = {
|
|
9608
9646
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
9609
9647
|
style: {
|
|
9610
9648
|
"--flex-align": "stretch",
|
|
9611
9649
|
"--flex-gap": "0.75rem"
|
|
9612
9650
|
}
|
|
9613
|
-
},
|
|
9651
|
+
}, af = {
|
|
9614
9652
|
key: 1,
|
|
9615
9653
|
class: "pv-text-body-sm pv-text-subdued pv-stack-8",
|
|
9616
9654
|
style: { "font-weight": "500" }
|
|
9617
|
-
},
|
|
9655
|
+
}, of = {
|
|
9618
9656
|
key: 0,
|
|
9619
9657
|
class: "pv-text-body-xs pv-text-subdued",
|
|
9620
9658
|
style: { margin: "0" }
|
|
9621
|
-
},
|
|
9659
|
+
}, sf = {
|
|
9622
9660
|
key: 3,
|
|
9623
9661
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
9624
|
-
},
|
|
9662
|
+
}, cf = {
|
|
9625
9663
|
key: 0,
|
|
9626
9664
|
class: "pv-flex pv-border-top",
|
|
9627
9665
|
style: {
|
|
@@ -9630,7 +9668,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9630
9668
|
"margin-top": "0.75rem",
|
|
9631
9669
|
"padding-top": "0.75rem"
|
|
9632
9670
|
}
|
|
9633
|
-
},
|
|
9671
|
+
}, lf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
9634
9672
|
__name: "PvFilterModal",
|
|
9635
9673
|
props: /* @__PURE__ */ g({
|
|
9636
9674
|
header: { default: "Filters" },
|
|
@@ -9709,7 +9747,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9709
9747
|
"suggestion-click"
|
|
9710
9748
|
], ["update:filterModel", "update:visible"]),
|
|
9711
9749
|
setup(e, { emit: n }) {
|
|
9712
|
-
let c = e, l = z(e, "filterModel"), d = z(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } =
|
|
9750
|
+
let c = e, l = z(e, "filterModel"), d = z(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = Ad(c, l, f), v = k(null), b = R(), S = k(""), C = r(() => p.value.filter((e) => e.type === "value")), w = r(() => {
|
|
9713
9751
|
let e = C.value;
|
|
9714
9752
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
9715
9753
|
}), T = r(() => w.value?.isAggregate === !0), E = r(() => w.value?.aggregateSelectionState ?? []), O = r(() => new Set(w.value?.selectedValues ?? [])), M = r(() => S.value.trim().toLowerCase()), P = (e) => {
|
|
@@ -9726,7 +9764,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9726
9764
|
let e = w.value;
|
|
9727
9765
|
if (!e) return {};
|
|
9728
9766
|
let t = {};
|
|
9729
|
-
for (let n of
|
|
9767
|
+
for (let n of sl([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
9730
9768
|
return t;
|
|
9731
9769
|
}), B = r(() => w.value?.colDef.context?.filterPanel ?? {}), V = k(Object.fromEntries(C.value.flatMap((e) => {
|
|
9732
9770
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
@@ -9778,22 +9816,22 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9778
9816
|
options: e.get(t)
|
|
9779
9817
|
};
|
|
9780
9818
|
});
|
|
9781
|
-
}), Y = r(() => T.value && w.value ?
|
|
9819
|
+
}), Y = r(() => T.value && w.value ? Rl({
|
|
9782
9820
|
options: w.value.knownOptions ?? [],
|
|
9783
9821
|
state: E.value
|
|
9784
|
-
}) : /* @__PURE__ */ new Map()), ae = (e) => e.isAggregate ?
|
|
9822
|
+
}) : /* @__PURE__ */ new Map()), ae = (e) => e.isAggregate ? Vl(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, oe = (e) => T.value ? Y.value.get(e.value) ?? {
|
|
9785
9823
|
indeterminate: !1,
|
|
9786
9824
|
selected: !1
|
|
9787
9825
|
} : {
|
|
9788
9826
|
indeterminate: !1,
|
|
9789
9827
|
selected: O.value.has(e.value)
|
|
9790
|
-
}, se = (e) => w.value ?
|
|
9828
|
+
}, se = (e) => w.value ? Zc(e, w.value.colDef) : e.label || e.value, ce = (e) => al(e) ?? e.value, ue = (e) => ol(e, w.value?.key ?? ""), de = (e, t) => {
|
|
9791
9829
|
let n = w.value;
|
|
9792
9830
|
if (n) {
|
|
9793
9831
|
if (n.isAggregate) {
|
|
9794
9832
|
_(n.key, {
|
|
9795
9833
|
type: "aggregate-selection",
|
|
9796
|
-
value:
|
|
9834
|
+
value: Il({
|
|
9797
9835
|
checked: t,
|
|
9798
9836
|
option: e,
|
|
9799
9837
|
options: n.knownOptions ?? [],
|
|
@@ -9813,7 +9851,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9813
9851
|
for (let e of q.value) oe(e).selected || de(e, !0);
|
|
9814
9852
|
}, fe = () => {
|
|
9815
9853
|
if (T.value) {
|
|
9816
|
-
for (let e of
|
|
9854
|
+
for (let e of sl(w.value?.knownOptions ?? [])) oe(e).selected && de(e, !1);
|
|
9817
9855
|
return;
|
|
9818
9856
|
}
|
|
9819
9857
|
for (let e of re.value) de(e, !1);
|
|
@@ -9853,7 +9891,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9853
9891
|
width: e.maxWidth,
|
|
9854
9892
|
maxWidth: e.maxWidth
|
|
9855
9893
|
})
|
|
9856
|
-
}, [s("div",
|
|
9894
|
+
}, [s("div", Qd, [s("nav", $d, [(D(!0), o(t, null, A(C.value, (e) => (D(), i(Xd, {
|
|
9857
9895
|
key: e.key,
|
|
9858
9896
|
modelValue: me.value,
|
|
9859
9897
|
"onUpdate:modelValue": r[0] ||= (e) => me.value = e,
|
|
@@ -9867,7 +9905,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9867
9905
|
"label",
|
|
9868
9906
|
"right-counter-badge",
|
|
9869
9907
|
"value"
|
|
9870
|
-
]))), 128))]), s("div",
|
|
9908
|
+
]))), 128))]), s("div", ef, [
|
|
9871
9909
|
u(ni, {
|
|
9872
9910
|
modelValue: S.value,
|
|
9873
9911
|
"onUpdate:modelValue": r[1] ||= (e) => S.value = e,
|
|
@@ -9879,7 +9917,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9879
9917
|
"disabled",
|
|
9880
9918
|
"placeholder"
|
|
9881
9919
|
]),
|
|
9882
|
-
Object.keys(B.value).length ? (D(), o("div",
|
|
9920
|
+
Object.keys(B.value).length ? (D(), o("div", tf, [(D(!0), o(t, null, A(B.value, (e, t) => (D(), i(Co, {
|
|
9883
9921
|
key: `facet-${t}`,
|
|
9884
9922
|
disabled: w.value?.disabled,
|
|
9885
9923
|
label: e.headerName || I(ye)(t),
|
|
@@ -9894,8 +9932,8 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9894
9932
|
"options",
|
|
9895
9933
|
"onUpdate:modelValue"
|
|
9896
9934
|
]))), 128))])) : a("", !0),
|
|
9897
|
-
w.value?.isLoading ? (D(), o("div",
|
|
9898
|
-
s("div",
|
|
9935
|
+
w.value?.isLoading ? (D(), o("div", nf, [u(ke, { size: "sm" })])) : w.value ? (D(), o(t, { key: 2 }, [
|
|
9936
|
+
s("div", rf, [(D(!0), o(t, null, A(ie.value, (e) => (D(), o("div", {
|
|
9899
9937
|
key: `section-${e.key}`,
|
|
9900
9938
|
class: "pv-flex-vertical",
|
|
9901
9939
|
style: {
|
|
@@ -9916,17 +9954,17 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9916
9954
|
"field",
|
|
9917
9955
|
"options",
|
|
9918
9956
|
"section"
|
|
9919
|
-
])) : e.label ? (D(), o("p",
|
|
9957
|
+
])) : e.label ? (D(), o("p", af, F(e.label), 1)) : a("", !0), (D(!0), o(t, null, A(e.options, (e) => (D(), o("div", {
|
|
9920
9958
|
key: `option-${e.value}`,
|
|
9921
9959
|
class: y(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": oe(e).selected }])
|
|
9922
|
-
}, [u(
|
|
9960
|
+
}, [u(Vc, {
|
|
9923
9961
|
control: w.value.singleSelect ? "radio" : "checkbox",
|
|
9924
9962
|
disabled: w.value.disabled || e.isSelectable === !1,
|
|
9925
9963
|
indeterminate: oe(e).indeterminate,
|
|
9926
9964
|
label: se(e),
|
|
9927
9965
|
name: I(b),
|
|
9928
9966
|
"query-text": S.value,
|
|
9929
|
-
"result-count": I(
|
|
9967
|
+
"result-count": I(Qc)(e),
|
|
9930
9968
|
selected: oe(e).selected,
|
|
9931
9969
|
"sub-text": e.subText,
|
|
9932
9970
|
"subdued-text": e.subduedText,
|
|
@@ -9946,7 +9984,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9946
9984
|
"value",
|
|
9947
9985
|
"onToggleValue"
|
|
9948
9986
|
])], 2))), 128))]))), 128))]),
|
|
9949
|
-
q.value.length ? a("", !0) : (D(), o("p",
|
|
9987
|
+
q.value.length ? a("", !0) : (D(), o("p", of, " No matching values. ")),
|
|
9950
9988
|
w.value.hasMore ? (D(), i($, {
|
|
9951
9989
|
key: 1,
|
|
9952
9990
|
class: "pv-text-brand",
|
|
@@ -9957,7 +9995,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9957
9995
|
onClick: pe
|
|
9958
9996
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
9959
9997
|
], 64)) : a("", !0),
|
|
9960
|
-
w.value && !e.readOnly ? (D(), o("div",
|
|
9998
|
+
w.value && !e.readOnly ? (D(), o("div", sf, [w.value.singleSelect ? a("", !0) : (D(), i($, {
|
|
9961
9999
|
key: 0,
|
|
9962
10000
|
disabled: w.value.disabled,
|
|
9963
10001
|
label: e.selectAllLabel,
|
|
@@ -9969,7 +10007,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9969
10007
|
variant: "ghost",
|
|
9970
10008
|
onClick: fe
|
|
9971
10009
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
9972
|
-
])]), e.staged ? (D(), o("div",
|
|
10010
|
+
])]), e.staged ? (D(), o("div", cf, [u($, {
|
|
9973
10011
|
label: e.cancelLabel,
|
|
9974
10012
|
variant: "ghost",
|
|
9975
10013
|
onClick: I(g)
|
|
@@ -9977,14 +10015,14 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9977
10015
|
label: e.applyLabel,
|
|
9978
10016
|
variant: "primary",
|
|
9979
10017
|
onClick: I(h)
|
|
9980
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
10018
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, Zd)]),
|
|
9981
10019
|
_: 3
|
|
9982
10020
|
}, 8, ["modelValue"]));
|
|
9983
10021
|
}
|
|
9984
|
-
}), [["__scopeId", "data-v-2ad285b3"]]),
|
|
10022
|
+
}), [["__scopeId", "data-v-2ad285b3"]]), uf = ["tabindex"], df = {
|
|
9985
10023
|
key: 0,
|
|
9986
10024
|
class: "pv-hover-action-menu__actions"
|
|
9987
|
-
},
|
|
10025
|
+
}, ff = { class: "pv-hover-action-menu__action-group" }, pf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
9988
10026
|
__name: "PvHoverActionMenu",
|
|
9989
10027
|
props: {
|
|
9990
10028
|
disabled: {
|
|
@@ -10007,12 +10045,12 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10007
10045
|
class: y(["pv-hover-action-menu", d.value]),
|
|
10008
10046
|
tabindex: e.options.length ? 0 : void 0,
|
|
10009
10047
|
"data-testid": "pv-hover-action-menu"
|
|
10010
|
-
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div",
|
|
10048
|
+
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", df, [u(Rs, {
|
|
10011
10049
|
variant: e.variant,
|
|
10012
10050
|
"data-testid": "pv-hover-action-menu-actions",
|
|
10013
10051
|
onClick: r[0] ||= J(() => {}, ["stop"])
|
|
10014
10052
|
}, {
|
|
10015
|
-
default: K(() => [s("div",
|
|
10053
|
+
default: K(() => [s("div", ff, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(Zn, {
|
|
10016
10054
|
key: t.id,
|
|
10017
10055
|
variant: "dark",
|
|
10018
10056
|
position: "top-center",
|
|
@@ -10040,9 +10078,9 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10040
10078
|
_: 2
|
|
10041
10079
|
}, 1032, ["description"]))), 128))])]),
|
|
10042
10080
|
_: 1
|
|
10043
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
10081
|
+
}, 8, ["variant"])])) : a("", !0)], 10, uf));
|
|
10044
10082
|
}
|
|
10045
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
10083
|
+
}), [["__scopeId", "data-v-6325cd25"]]), mf = () => {
|
|
10046
10084
|
let e = (e, n) => {
|
|
10047
10085
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
10048
10086
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -10055,13 +10093,13 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10055
10093
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
10056
10094
|
} : null
|
|
10057
10095
|
};
|
|
10058
|
-
},
|
|
10096
|
+
}, hf = { class: "pv-flex" }, gf = { class: "pv-text-body-md" }, _f = ["textContent"], vf = {
|
|
10059
10097
|
key: 0,
|
|
10060
10098
|
class: "pv-text-body-xs"
|
|
10061
|
-
},
|
|
10099
|
+
}, yf = { key: 0 }, bf = {
|
|
10062
10100
|
class: "pv-text-subdued pv-text-body-xs",
|
|
10063
10101
|
style: { "font-weight": "500" }
|
|
10064
|
-
},
|
|
10102
|
+
}, xf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10065
10103
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
10066
10104
|
props: {
|
|
10067
10105
|
id: {},
|
|
@@ -10111,13 +10149,13 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10111
10149
|
bold: !1
|
|
10112
10150
|
}), n;
|
|
10113
10151
|
});
|
|
10114
|
-
return (e, n) => (D(), o("div", null, [s("div",
|
|
10152
|
+
return (e, n) => (D(), o("div", null, [s("div", hf, [u(Z, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", gf, [(D(!0), o(t, null, A(m.value, (e, t) => (D(), o("span", {
|
|
10115
10153
|
key: t,
|
|
10116
10154
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
10117
10155
|
textContent: F(e.text)
|
|
10118
|
-
}, null, 12,
|
|
10156
|
+
}, null, 12, _f))), 128))]), f.value ? (D(), o("p", vf, [c.value ? a("", !0) : (D(), o("span", yf, "Search in ")), s("span", bf, F(f.value), 1)])) : a("", !0)])])]));
|
|
10119
10157
|
}
|
|
10120
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
10158
|
+
}), [["__scopeId", "data-v-ff951d17"]]), Sf = /* @__PURE__ */ d({
|
|
10121
10159
|
__name: "QueryFormatter",
|
|
10122
10160
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
10123
10161
|
modelValue: { required: !0 },
|
|
@@ -10131,7 +10169,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10131
10169
|
}),
|
|
10132
10170
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
10133
10171
|
setup(e) {
|
|
10134
|
-
let n = e, s = z(e, "modelValue"), c = z(e, "wrap-content"), { removeQueryOption: l } =
|
|
10172
|
+
let n = e, s = z(e, "modelValue"), c = z(e, "wrap-content"), { removeQueryOption: l } = mf(), u = r(() => {
|
|
10135
10173
|
let e = s.value?.queryTerms || [];
|
|
10136
10174
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
10137
10175
|
}), 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) => {
|
|
@@ -10163,17 +10201,17 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10163
10201
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
10164
10202
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
10165
10203
|
}
|
|
10166
|
-
}),
|
|
10204
|
+
}), Cf = [
|
|
10167
10205
|
"disabled",
|
|
10168
10206
|
"placeholder",
|
|
10169
10207
|
"data-invalid"
|
|
10170
|
-
],
|
|
10208
|
+
], wf = {
|
|
10171
10209
|
key: 2,
|
|
10172
10210
|
class: "pv-text-red pv-text-body-xs"
|
|
10173
|
-
},
|
|
10211
|
+
}, Tf = {
|
|
10174
10212
|
key: 1,
|
|
10175
10213
|
class: "pv-text-center"
|
|
10176
|
-
},
|
|
10214
|
+
}, Ef = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10177
10215
|
__name: "PvQueryBuilderInput",
|
|
10178
10216
|
props: /* @__PURE__ */ g({
|
|
10179
10217
|
placeholder: { default: "Search" },
|
|
@@ -10221,7 +10259,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10221
10259
|
"update:options"
|
|
10222
10260
|
],
|
|
10223
10261
|
setup(e) {
|
|
10224
|
-
let n = e, c = { renderer:
|
|
10262
|
+
let n = e, c = { renderer: xf }, l = V("search-input"), d = z(e, "searchText"), f = z(e, "query"), p = z(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = mf(), 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 = () => {
|
|
10225
10263
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
10226
10264
|
};
|
|
10227
10265
|
n.enableCustomOptionsInput && Y("Enter", () => {
|
|
@@ -10305,7 +10343,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10305
10343
|
"--inset-size": "4px",
|
|
10306
10344
|
"--flex-gap": "4px"
|
|
10307
10345
|
}, e.enableWrapQueryTerms || S.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
10308
|
-
}, [u(
|
|
10346
|
+
}, [u(Sf, {
|
|
10309
10347
|
modelValue: f.value,
|
|
10310
10348
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
10311
10349
|
"wrap-content": S.value,
|
|
@@ -10326,7 +10364,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10326
10364
|
style: x(d.value ? "min-width: 8rem;" : void 0),
|
|
10327
10365
|
onFocus: L,
|
|
10328
10366
|
onBlur: L
|
|
10329
|
-
}, null, 44,
|
|
10367
|
+
}, null, 44, Cf), [[U, d.value]])], 4),
|
|
10330
10368
|
f.value && !e.hideClearButton ? (D(), i($, {
|
|
10331
10369
|
key: 1,
|
|
10332
10370
|
variant: "ghost",
|
|
@@ -10334,7 +10372,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10334
10372
|
size: "md",
|
|
10335
10373
|
onClick: E
|
|
10336
10374
|
})) : a("", !0),
|
|
10337
|
-
T.value ? (D(), o("p",
|
|
10375
|
+
T.value ? (D(), o("p", wf, F(w.value), 1)) : a("", !0),
|
|
10338
10376
|
j.value.length > 0 || e.optionsLoading ? (D(), i(gr, {
|
|
10339
10377
|
key: 3,
|
|
10340
10378
|
class: y({ "pv-hide": !v.value }),
|
|
@@ -10344,7 +10382,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10344
10382
|
},
|
|
10345
10383
|
isList: !0
|
|
10346
10384
|
}, {
|
|
10347
|
-
default: K(() => [e.optionsLoading ? (D(), o("div",
|
|
10385
|
+
default: K(() => [e.optionsLoading ? (D(), o("div", Tf, [u(ke, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, A(j.value, (e, t) => (D(), i(oo, _({
|
|
10348
10386
|
key: `${t}-${e.searchText}`,
|
|
10349
10387
|
ref_for: !0
|
|
10350
10388
|
}, e, {
|
|
@@ -10355,7 +10393,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10355
10393
|
}, 8, ["class"])) : a("", !0)
|
|
10356
10394
|
], 32)), [[I(de), M]]);
|
|
10357
10395
|
}
|
|
10358
|
-
}), [["__scopeId", "data-v-37925d70"]]),
|
|
10396
|
+
}), [["__scopeId", "data-v-37925d70"]]), Df = { class: "sidebar-header-content" }, Of = { class: "content-panel" }, kf = 300, Af = /* @__PURE__ */ d({
|
|
10359
10397
|
__name: "PvSidebar",
|
|
10360
10398
|
props: /* @__PURE__ */ g({
|
|
10361
10399
|
disableToggle: { type: Boolean },
|
|
@@ -10382,7 +10420,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10382
10420
|
}, h = () => {
|
|
10383
10421
|
n.newVersion || r.value && (u && clearTimeout(u), u = setTimeout(() => {
|
|
10384
10422
|
l.value = !0;
|
|
10385
|
-
},
|
|
10423
|
+
}, kf));
|
|
10386
10424
|
}, g = () => {
|
|
10387
10425
|
n.newVersion || (u &&= (clearTimeout(u), null), m(), l.value = !1);
|
|
10388
10426
|
}, _ = () => {
|
|
@@ -10401,111 +10439,111 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10401
10439
|
onMouseenter: h,
|
|
10402
10440
|
onMouseleave: g,
|
|
10403
10441
|
onFocusin: h
|
|
10404
|
-
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div",
|
|
10442
|
+
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div", Df, [j(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (D(), i($, {
|
|
10405
10443
|
key: 0,
|
|
10406
10444
|
class: "sidebar-toggle",
|
|
10407
10445
|
"left-icon": r.value ? "panel-left-open" : "panel-left-close",
|
|
10408
10446
|
"aria-label": r.value ? "Open sidebar" : "Close sidebar",
|
|
10409
10447
|
variant: "ghost",
|
|
10410
10448
|
onClick: _
|
|
10411
|
-
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div",
|
|
10449
|
+
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div", Of, [j(t.$slots, "default")])], 2));
|
|
10412
10450
|
}
|
|
10413
|
-
}),
|
|
10451
|
+
}), jf = { class: "sidebar-panel" }, Mf = {
|
|
10414
10452
|
key: 0,
|
|
10415
10453
|
class: "sidebar-additional-header"
|
|
10416
|
-
},
|
|
10454
|
+
}, Nf = { class: "sidebar-header-content pv-full-width" }, Pf = {
|
|
10417
10455
|
key: 0,
|
|
10418
10456
|
class: "pv-sidebar-nav-header"
|
|
10419
|
-
},
|
|
10457
|
+
}, Ff = ["aria-label", "aria-expanded"], If = {
|
|
10420
10458
|
class: "pv-flex",
|
|
10421
10459
|
style: { "min-width": "0" }
|
|
10422
|
-
},
|
|
10460
|
+
}, Lf = {
|
|
10423
10461
|
class: "pv-avatar-xs",
|
|
10424
10462
|
style: {
|
|
10425
10463
|
"border-radius": "4px",
|
|
10426
10464
|
"flex-shrink": "0"
|
|
10427
10465
|
}
|
|
10428
|
-
},
|
|
10466
|
+
}, Rf = ["src"], zf = { key: 1 }, Bf = ["title"], Vf = {
|
|
10429
10467
|
class: "pv-popover",
|
|
10430
10468
|
style: {
|
|
10431
10469
|
width: "fit-content",
|
|
10432
10470
|
"max-width": "280px",
|
|
10433
10471
|
"margin-top": "4px"
|
|
10434
10472
|
}
|
|
10435
|
-
},
|
|
10473
|
+
}, Hf = {
|
|
10436
10474
|
role: "list",
|
|
10437
10475
|
class: "pv-popover-list pv-flow",
|
|
10438
10476
|
style: { "--flow-size": "0.25rem" }
|
|
10439
|
-
},
|
|
10477
|
+
}, Uf = ["data-active"], Wf = ["href"], Gf = {
|
|
10440
10478
|
class: "pv-avatar-xs",
|
|
10441
10479
|
style: { "border-radius": "4px" }
|
|
10442
|
-
},
|
|
10480
|
+
}, Kf = ["src"], qf = { key: 1 }, Jf = ["title"], Yf = ["data-active"], Xf = ["href"], Zf = ["title"], Qf = { class: "pv-sidebar-nav" }, $f = { key: 0 }, ep = {
|
|
10443
10481
|
key: 1,
|
|
10444
10482
|
role: "list",
|
|
10445
10483
|
class: "pv-full-width pv-flow",
|
|
10446
10484
|
style: { "--flow-size": "0.25rem" }
|
|
10447
|
-
},
|
|
10485
|
+
}, tp = [
|
|
10448
10486
|
"href",
|
|
10449
10487
|
"aria-current",
|
|
10450
10488
|
"title"
|
|
10451
|
-
],
|
|
10489
|
+
], np = {
|
|
10452
10490
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10453
10491
|
"data-sidebar-expanded-content": "",
|
|
10454
10492
|
style: { "flex-wrap": "wrap" }
|
|
10455
|
-
},
|
|
10493
|
+
}, rp = {
|
|
10456
10494
|
key: 0,
|
|
10457
10495
|
class: "pv-tag-purple pv-tag-sm"
|
|
10458
|
-
},
|
|
10496
|
+
}, ip = {
|
|
10459
10497
|
class: "pv-popover",
|
|
10460
10498
|
style: { "--position": "static" }
|
|
10461
|
-
},
|
|
10499
|
+
}, ap = {
|
|
10462
10500
|
role: "list",
|
|
10463
10501
|
class: "pv-popover-list"
|
|
10464
|
-
},
|
|
10502
|
+
}, op = ["data-active"], sp = ["href"], cp = {
|
|
10465
10503
|
key: 0,
|
|
10466
10504
|
class: "pv-tag-purple pv-tag-sm"
|
|
10467
|
-
},
|
|
10505
|
+
}, lp = ["onClick", "onAuxclick"], up = { "data-sidebar-expanded-content": "" }, dp = { class: "pv-sidebar-nav-nested" }, fp = [
|
|
10468
10506
|
"href",
|
|
10469
10507
|
"aria-current",
|
|
10470
10508
|
"title"
|
|
10471
|
-
],
|
|
10509
|
+
], pp = {
|
|
10472
10510
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10473
10511
|
style: { "flex-wrap": "wrap" }
|
|
10474
|
-
},
|
|
10512
|
+
}, mp = {
|
|
10475
10513
|
key: 0,
|
|
10476
10514
|
class: "pv-tag-purple pv-tag-sm"
|
|
10477
|
-
},
|
|
10515
|
+
}, hp = {
|
|
10478
10516
|
class: "pv-popover",
|
|
10479
10517
|
style: {
|
|
10480
10518
|
"--position": "static",
|
|
10481
10519
|
"--height": "350px"
|
|
10482
10520
|
}
|
|
10483
|
-
},
|
|
10521
|
+
}, gp = {
|
|
10484
10522
|
role: "list",
|
|
10485
10523
|
class: "pv-popover-list"
|
|
10486
|
-
},
|
|
10524
|
+
}, _p = ["data-active"], vp = ["href"], yp = {
|
|
10487
10525
|
key: 0,
|
|
10488
10526
|
class: "pv-tag-purple pv-tag-sm"
|
|
10489
|
-
},
|
|
10527
|
+
}, bp = {
|
|
10490
10528
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
10491
10529
|
style: { "--bottom": "0" }
|
|
10492
|
-
},
|
|
10530
|
+
}, xp = ["aria-expanded"], Sp = { class: "pv-popover pv-text-default pv-text-body-md" }, Cp = [
|
|
10493
10531
|
"aria-label",
|
|
10494
10532
|
"aria-expanded",
|
|
10495
10533
|
"title"
|
|
10496
|
-
],
|
|
10534
|
+
], wp = {
|
|
10497
10535
|
class: "pv-avatar-xs",
|
|
10498
10536
|
style: {
|
|
10499
10537
|
"border-radius": "50%",
|
|
10500
10538
|
"flex-shrink": "0"
|
|
10501
10539
|
}
|
|
10502
|
-
},
|
|
10540
|
+
}, Tp = ["src"], Ep = { key: 1 }, Dp = {
|
|
10503
10541
|
class: "pv-truncate",
|
|
10504
10542
|
"data-sidebar-expanded-content": ""
|
|
10505
|
-
},
|
|
10543
|
+
}, Op = {
|
|
10506
10544
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
10507
10545
|
style: { "--height": "750px" }
|
|
10508
|
-
},
|
|
10546
|
+
}, kp = { class: "content-panel" }, Ap = /* @__PURE__ */ d({
|
|
10509
10547
|
__name: "PvSidebarV2",
|
|
10510
10548
|
props: /* @__PURE__ */ g({
|
|
10511
10549
|
disableToggle: { type: Boolean },
|
|
@@ -10572,7 +10610,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10572
10610
|
}]]),
|
|
10573
10611
|
onTransitionend: B
|
|
10574
10612
|
}, [
|
|
10575
|
-
s("div",
|
|
10613
|
+
s("div", jf, [s("div", null, [I(h) ? (D(), o("div", Mf, [j(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": T.value }]]) }, [s("div", Nf, [e.organizations && e.organizations.length ? (D(), o("div", Pf, [u(Yn, {
|
|
10576
10614
|
modelValue: N.value,
|
|
10577
10615
|
"onUpdate:modelValue": r[0] ||= (e) => N.value = e,
|
|
10578
10616
|
position: T.value ? "right-top" : "bottom-left",
|
|
@@ -10587,30 +10625,30 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10587
10625
|
class: "pv-nav-list-item pv-full-width pv-space-between",
|
|
10588
10626
|
"aria-label": `Switch organization: ${S.value?.label}`,
|
|
10589
10627
|
"aria-expanded": N.value
|
|
10590
|
-
}, [s("div",
|
|
10628
|
+
}, [s("div", If, [s("span", Lf, [S.value?.avatarUrl ? (D(), o("img", {
|
|
10591
10629
|
key: 0,
|
|
10592
10630
|
src: S.value.avatarUrl,
|
|
10593
10631
|
alt: "Organization Avatar"
|
|
10594
|
-
}, null, 8,
|
|
10632
|
+
}, null, 8, Rf)) : (D(), o("span", zf, F(S.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
10595
10633
|
class: "pv-text-title-lg pv-truncate",
|
|
10596
10634
|
"data-sidebar-expanded-content": "",
|
|
10597
10635
|
title: S.value?.label
|
|
10598
|
-
}, F(S.value?.label), 9,
|
|
10636
|
+
}, F(S.value?.label), 9, Bf)]), u(Z, {
|
|
10599
10637
|
name: "chevron-down",
|
|
10600
10638
|
class: "pv-icon-16",
|
|
10601
10639
|
"data-sidebar-expanded-content": ""
|
|
10602
|
-
})], 8,
|
|
10603
|
-
content: K(() => [s("div",
|
|
10640
|
+
})], 8, Ff)]),
|
|
10641
|
+
content: K(() => [s("div", Vf, [s("ul", Hf, [(D(!0), o(t, null, A(e.organizations, (e) => (D(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
10604
10642
|
class: "pv-flex",
|
|
10605
10643
|
href: e.url
|
|
10606
|
-
}, [s("div",
|
|
10644
|
+
}, [s("div", Gf, [e.avatarUrl ? (D(), o("img", {
|
|
10607
10645
|
key: 0,
|
|
10608
10646
|
src: e.avatarUrl,
|
|
10609
10647
|
alt: "Organization Avatar"
|
|
10610
|
-
}, null, 8,
|
|
10648
|
+
}, null, 8, Kf)) : (D(), o("span", qf, F(e.label.slice(0, 1)), 1))]), s("span", {
|
|
10611
10649
|
class: "pv-truncate pv-flex-item",
|
|
10612
10650
|
title: e.label
|
|
10613
|
-
}, F(e.label), 9,
|
|
10651
|
+
}, F(e.label), 9, Jf)], 8, Wf)], 8, Uf), (D(!0), o(t, null, A(e.entities, (e) => (D(), o("li", {
|
|
10614
10652
|
key: e.value,
|
|
10615
10653
|
style: { "padding-left": "0.5rem" },
|
|
10616
10654
|
"data-active": e.active || void 0
|
|
@@ -10621,7 +10659,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10621
10659
|
}, [u(Z, { name: "corner-down-right" }), s("span", {
|
|
10622
10660
|
class: "pv-truncate",
|
|
10623
10661
|
title: e.label
|
|
10624
|
-
}, F(e.label), 9,
|
|
10662
|
+
}, F(e.label), 9, Zf)], 8, Xf)], 8, Yf))), 128))], 64))), 128))])])]),
|
|
10625
10663
|
_: 1
|
|
10626
10664
|
}, 8, [
|
|
10627
10665
|
"modelValue",
|
|
@@ -10644,9 +10682,9 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10644
10682
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
10645
10683
|
content: K(() => [l(F(T.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
10646
10684
|
_: 1
|
|
10647
|
-
}))], 2)]), s("div",
|
|
10648
|
-
I(m) ? (D(), o("div",
|
|
10649
|
-
e.navItems && e.navItems.length ? (D(), o("ul",
|
|
10685
|
+
}))], 2)]), s("div", Qf, [
|
|
10686
|
+
I(m) ? (D(), o("div", $f, [j(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
10687
|
+
e.navItems && e.navItems.length ? (D(), o("ul", ep, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [!e.children || e.children.length === 0 ? (D(), i(Yn, {
|
|
10650
10688
|
key: 0,
|
|
10651
10689
|
"show-on-hover": "",
|
|
10652
10690
|
"enable-group-sync": "",
|
|
@@ -10666,8 +10704,8 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10666
10704
|
key: 0,
|
|
10667
10705
|
name: e.icon,
|
|
10668
10706
|
class: "pv-nav-icon"
|
|
10669
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
10670
|
-
content: K(() => [s("div",
|
|
10707
|
+
}, null, 8, ["name"])) : a("", !0), s("span", np, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", rp, F(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, tp)]),
|
|
10708
|
+
content: K(() => [s("div", ip, [s("ul", ap, [s("li", { "data-active": e.active || void 0 }, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", cp, F(e.badge.toUpperCase()), 1)) : a("", !0)], 16, sp)], 8, op)])])]),
|
|
10671
10709
|
_: 2
|
|
10672
10710
|
}, 1032, [
|
|
10673
10711
|
"use-teleport",
|
|
@@ -10699,14 +10737,14 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10699
10737
|
key: 0,
|
|
10700
10738
|
name: e.icon,
|
|
10701
10739
|
class: "pv-nav-icon"
|
|
10702
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
10703
|
-
default: K(() => [s("div",
|
|
10740
|
+
}, null, 8, ["name"])) : a("", !0), s("span", up, F(e.label), 1)], 40, lp)]),
|
|
10741
|
+
default: K(() => [s("div", dp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("a", _({
|
|
10704
10742
|
key: e.value,
|
|
10705
10743
|
href: e.url
|
|
10706
10744
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
10707
10745
|
"aria-current": e.active ? "page" : void 0,
|
|
10708
10746
|
title: e.label
|
|
10709
|
-
}), [s("span",
|
|
10747
|
+
}), [s("span", pp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", mp, F(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, fp))), 128))])]),
|
|
10710
10748
|
_: 2
|
|
10711
10749
|
}, 1032, [
|
|
10712
10750
|
"modelValue",
|
|
@@ -10714,17 +10752,17 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10714
10752
|
"default-open",
|
|
10715
10753
|
"summary-attrs"
|
|
10716
10754
|
])]),
|
|
10717
|
-
content: K(() => [s("div",
|
|
10755
|
+
content: K(() => [s("div", hp, [s("ul", gp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("li", {
|
|
10718
10756
|
key: e.value,
|
|
10719
10757
|
"data-active": e.active || void 0
|
|
10720
|
-
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span",
|
|
10758
|
+
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", yp, F(e.badge.toUpperCase()), 1)) : a("", !0)], 16, vp)], 8, _p))), 128))])])]),
|
|
10721
10759
|
_: 2
|
|
10722
10760
|
}, 1032, [
|
|
10723
10761
|
"use-teleport",
|
|
10724
10762
|
"teleport-location",
|
|
10725
10763
|
"disabled"
|
|
10726
10764
|
]))]))), 128))])) : a("", !0),
|
|
10727
|
-
s("div",
|
|
10765
|
+
s("div", bp, [I(g) ? (D(), i(Yn, {
|
|
10728
10766
|
key: 0,
|
|
10729
10767
|
modelValue: M.value,
|
|
10730
10768
|
"onUpdate:modelValue": r[1] ||= (e) => M.value = e,
|
|
@@ -10745,8 +10783,8 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10745
10783
|
}, [u(Z, {
|
|
10746
10784
|
name: "help-circle",
|
|
10747
10785
|
class: "pv-icon-20 pv-nav-icon"
|
|
10748
|
-
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8,
|
|
10749
|
-
content: K(() => [s("div",
|
|
10786
|
+
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, xp)]),
|
|
10787
|
+
content: K(() => [s("div", Sp, [j(n.$slots, "sidebar-help-content")])]),
|
|
10750
10788
|
_: 3
|
|
10751
10789
|
}, 8, [
|
|
10752
10790
|
"modelValue",
|
|
@@ -10772,12 +10810,12 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10772
10810
|
"aria-label": e.profile.name,
|
|
10773
10811
|
"aria-expanded": P.value,
|
|
10774
10812
|
title: e.profile.name
|
|
10775
|
-
}, [s("span",
|
|
10813
|
+
}, [s("span", wp, [e.profile.avatarUrl ? (D(), o("img", {
|
|
10776
10814
|
key: 0,
|
|
10777
10815
|
src: e.profile.avatarUrl,
|
|
10778
10816
|
alt: ""
|
|
10779
|
-
}, null, 8,
|
|
10780
|
-
content: K(() => [s("div",
|
|
10817
|
+
}, null, 8, Tp)) : (D(), o("span", Ep, F(e.profile.name.slice(0, 1)), 1))]), s("span", Dp, F(e.profile.name), 1)], 8, Cp)]),
|
|
10818
|
+
content: K(() => [s("div", Op, [j(n.$slots, "sidebar-profile-content")])]),
|
|
10781
10819
|
_: 3
|
|
10782
10820
|
}, 8, [
|
|
10783
10821
|
"modelValue",
|
|
@@ -10787,7 +10825,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10787
10825
|
"teleport-location"
|
|
10788
10826
|
])) : a("", !0)])
|
|
10789
10827
|
])]),
|
|
10790
|
-
s("div",
|
|
10828
|
+
s("div", kp, [j(n.$slots, "default")]),
|
|
10791
10829
|
s("div", {
|
|
10792
10830
|
ref_key: "popoverTeleportTarget",
|
|
10793
10831
|
ref: b,
|
|
@@ -10795,11 +10833,11 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10795
10833
|
}, null, 512)
|
|
10796
10834
|
], 34));
|
|
10797
10835
|
}
|
|
10798
|
-
}),
|
|
10836
|
+
}), jp = {
|
|
10799
10837
|
class: "pv-toc",
|
|
10800
10838
|
role: "list",
|
|
10801
10839
|
style: { "min-width": "160px" }
|
|
10802
|
-
},
|
|
10840
|
+
}, Mp = ["aria-current"], Np = ["href", "onClick"], Pp = /* @__PURE__ */ d({
|
|
10803
10841
|
__name: "PvTableOfContents",
|
|
10804
10842
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
10805
10843
|
modelValue: { required: !1 },
|
|
@@ -10810,7 +10848,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10810
10848
|
let r = z(e, "modelValue"), c = n, u = (e, t) => {
|
|
10811
10849
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
10812
10850
|
};
|
|
10813
|
-
return (n, c) => (D(), o("ul",
|
|
10851
|
+
return (n, c) => (D(), o("ul", jp, [(D(!0), o(t, null, A(e.items, (e) => (D(), o("li", {
|
|
10814
10852
|
key: e.id,
|
|
10815
10853
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
10816
10854
|
}, [s("a", {
|
|
@@ -10819,9 +10857,9 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10819
10857
|
}, [e.icon ? (D(), i(Z, {
|
|
10820
10858
|
key: 0,
|
|
10821
10859
|
name: e.icon
|
|
10822
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + F(e.label), 1)], 8,
|
|
10860
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + F(e.label), 1)], 8, Np)], 8, Mp))), 128))]));
|
|
10823
10861
|
}
|
|
10824
|
-
}),
|
|
10862
|
+
}), Fp = { class: "pv-flex" }, Ip = ["data-clickable", "onClick"], Lp = /* @__PURE__ */ d({
|
|
10825
10863
|
__name: "PvStepper",
|
|
10826
10864
|
props: {
|
|
10827
10865
|
count: { default: 5 },
|
|
@@ -10834,14 +10872,14 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10834
10872
|
emits: ["update:active"],
|
|
10835
10873
|
setup(e) {
|
|
10836
10874
|
let n = e;
|
|
10837
|
-
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",
|
|
10875
|
+
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", Fp, [(D(!0), o(t, null, A(e.count, (t, r) => (D(), o("div", {
|
|
10838
10876
|
key: r,
|
|
10839
10877
|
"data-clickable": e.clickable,
|
|
10840
10878
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
10841
10879
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
10842
|
-
}, null, 10,
|
|
10880
|
+
}, null, 10, Ip))), 128))]));
|
|
10843
10881
|
}
|
|
10844
|
-
}),
|
|
10882
|
+
}), Rp = { theme: {
|
|
10845
10883
|
preset: xe,
|
|
10846
10884
|
options: {
|
|
10847
10885
|
darkModeSelector: "none",
|
|
@@ -10850,15 +10888,15 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10850
10888
|
order: "pit-viper-v2, primevue"
|
|
10851
10889
|
}
|
|
10852
10890
|
}
|
|
10853
|
-
} },
|
|
10854
|
-
e.use(be,
|
|
10855
|
-
},
|
|
10856
|
-
let e = m(
|
|
10891
|
+
} }, zp = (e) => {
|
|
10892
|
+
e.use(be, Rp);
|
|
10893
|
+
}, Bp = Symbol.for("pv.rum-context"), Vp = () => {
|
|
10894
|
+
let e = m(Bp, void 0);
|
|
10857
10895
|
return () => {
|
|
10858
10896
|
let t = e?.value;
|
|
10859
10897
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
10860
10898
|
};
|
|
10861
|
-
},
|
|
10899
|
+
}, Hp = (e, t = {}, n = {}) => {
|
|
10862
10900
|
try {
|
|
10863
10901
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
10864
10902
|
let r = n.consumer == null ? t : {
|
|
@@ -10867,7 +10905,7 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10867
10905
|
};
|
|
10868
10906
|
window.DD_RUM.addAction(e, r);
|
|
10869
10907
|
} catch {}
|
|
10870
|
-
},
|
|
10908
|
+
}, Up = (e) => {
|
|
10871
10909
|
queueMicrotask(() => {
|
|
10872
10910
|
try {
|
|
10873
10911
|
e();
|
|
@@ -10875,6 +10913,6 @@ var kd = ["aria-label"], Ad = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10875
10913
|
});
|
|
10876
10914
|
};
|
|
10877
10915
|
//#endregion
|
|
10878
|
-
export { xi as ContextCardEnum, Zr as PvAccordion,
|
|
10916
|
+
export { xi as ContextCardEnum, Zr as PvAccordion, Rs as PvActionBar, $n as PvActionButton, nr as PvAiButton, ga as PvAvatar, Zo as PvAvatarGroup, Vr as PvBanner, da as PvBreadcrumbs, $ as PvButton, sr as PvButtonWithTooltip, Ts as PvCard, rs as PvCheckbox, Ei as PvCompanyLabel, kr as PvCompanyLogo, Kr as PvCompanyTag, Re as PvCounterBadge, li as PvDatePicker, di as PvDateTime, bc as PvDistributionBar, bi as PvDrawer, yr as PvDropdown, Gr as PvEmptyErrorState, Ps as PvExpandableContent, xs as PvFileInput, lf as PvFilterModal, Gd as PvFilterPanel, Uo as PvGhostInput, Jo as PvHeader, bu as PvHorizontalScroller, pf as PvHoverActionMenu, Z as PvIcon, ms as PvInput, Ns as PvInsightCard, ho as PvMenu, oo as PvMenuItem, Fr as PvModal, Co as PvMultiSelectButton, Mo as PvPagination, mr as PvPill, gr as PvPopover, xr as PvPopoverMenu, Yn as PvPopoverV2, vc as PvProgressBar, Ef as PvQueryBuilderInput, ss as PvRadioGroup, Pc as PvRange, ws as PvRating, dr as PvReleaseBadge, ni as PvSearchInput, Sr as PvSegmentedControl, To as PvSelectButton, Fo as PvSelectableCard, Bo as PvSidePanel, Af as PvSidebar, Ap as PvSidebarV2, ls as PvSkeleton, ta as PvSpinesContextCard, aa as PvSpinesContextDrawer, ke as PvSpinner, ur as PvSplitButton, cs as PvSprite, Lp as PvStepper, Yr as PvSuggestionTag, Ba as PvSwitch, Er as PvTabList, Pp as PvTableOfContents, ca as PvTabs, pr as PvTag, Ii as PvTextArea, Is as PvToast, Bi as PvToggleButton, ts as PvToggleGroup, ar as PvTooltip, Zn as PvTooltipV2, fc as PvTree, pc as PvTreeGroup, Es as PvWidget, Bp as RumContextKey, Hp as addRumAction, Sd as createPvFilterStore, Up as deferRumTask, Cd as providePvFilterStore, ui as useDateTime, wd as useOptionalPvFilterStore, zp as usePvComponents, Td as usePvFilterStore, Vp as useRumContext };
|
|
10879
10917
|
|
|
10880
10918
|
//# sourceMappingURL=pv-components-base.mjs.map
|