@turquoisehealth/pit-viper 2.206.1 → 2.206.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 +24 -0
- package/_site/assets/css/pit-viper-consumer.css +24 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +21 -0
- package/_site/assets/css/pit-viper-v2.css +43 -0
- package/_site/assets/css/pit-viper.css +24 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-avatar-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvAvatarGroup/PvAvatarGroup.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvAvatarGroup/types.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +563 -557
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/PvAvatarGroup.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/types.d.ts +2 -0
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +31 -25
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1 -1
- package/pv-components/dist/web/components/pv-header/pv-header.js +2 -2
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}.pv-split-button[data-v-3689aaf0]{--flex-gap:0}[data-v-3689aaf0] .pv-split-button__action{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}[data-v-3689aaf0] .pv-split-button__menu-trigger{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;position:relative}[data-v-3689aaf0] .pv-split-button__menu-content>*{justify-content:flex-start;width:100%}[data-v-3689aaf0] .pv-split-button__menu-trigger:before{content:"";background-color:var(--color-border,#e3e7ea);pointer-events:none;width:1px;height:50%;min-height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)translate(-150%)}[class*=pv-status]{&[data-v-0324bf60]:before,&[data-v-0324bf60]:after{margin-inline-end:0}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-aefd2b6b]{background-color:#0000;border:none}.pv-icon-button[data-v-aefd2b6b]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-aefd2b6b]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-a93608b0]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-a93608b0]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-a93608b0]:hover,&[data-v-a93608b0]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-a93608b0]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-a93608b0]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-a93608b0]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-a93608b0]{pointer-events:auto;color:inherit}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-06cc192f]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-06cc192f]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-drop-zone[data-v-ecab1929]{min-height:0}.tree-item-continued[data-v-ecab1929]{position:relative}.tree-item-continued[data-v-ecab1929]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.tree-item-continued .tree-component-nested-middle-symbol[data-v-ecab1929]:before{display:none}.tree-component-end-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-end-symbol[data-v-ecab1929]:before,.tree-component-end-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute}.tree-component-end-symbol[data-v-ecab1929]:before{width:1px;height:14px;top:-6px;left:8px;transform:translate(-50%)}.tree-component-end-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:8px;left:8px}.tree-component-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-middle-symbol[data-v-ecab1929]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:28px;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-nested-middle-symbol[data-v-ecab1929]:before,.tree-component-nested-middle-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute;left:50%}.tree-component-nested-middle-symbol[data-v-ecab1929]:before{width:1px;height:28px;top:-4px;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:50%;transform:translateY(-50%)}.pv-tree-drop-zone[data-v-8e33078d],.pv-tree-drop-zone[data-v-7589558e]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-7e00be1a]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-7e00be1a]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-7e00be1a]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-7e00be1a]{--lines:1}.pv-filter-panel-option-row-right[data-v-7e00be1a]{text-align:right;flex:none}summary[data-v-4478d3f6]{background-image:none;padding-right:2px}[data-v-4478d3f6] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-4478d3f6]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-2eb64a2a]{height:100%;max-height:100vh}.pv-filter-panel-actions[data-v-2eb64a2a],.pv-filter-panel-header[data-v-2eb64a2a],.pv-filter-panel-suggestion-tags[data-v-2eb64a2a]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-2eb64a2a],.pv-filter-panel-filters-view[data-v-2eb64a2a]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-2eb64a2a]{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-2eb64a2a]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-2eb64a2a]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-2eb64a2a]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-2eb64a2a]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-2eb64a2a],.pv-filter-panel-footer[data-v-2eb64a2a],.pv-filter-panel-suggestions[data-v-2eb64a2a]{padding:12px}.pv-filter-panel-filter-list[data-v-2eb64a2a]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-2eb64a2a]{--flex-justify:flex-end;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-2eb64a2a]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-2eb64a2a]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-2eb64a2a]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-2eb64a2a]{margin:0}.pv-filter-panel-suggestions[data-v-2eb64a2a]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-2eb64a2a]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-f6b1c07d]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-f6b1c07d]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-f6b1c07d]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-f6b1c07d]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-e2a82095]{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-e2a82095]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-e2a82095]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-e2a82095]: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-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}.pv-split-button[data-v-3689aaf0]{--flex-gap:0}[data-v-3689aaf0] .pv-split-button__action{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}[data-v-3689aaf0] .pv-split-button__menu-trigger{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;position:relative}[data-v-3689aaf0] .pv-split-button__menu-content>*{justify-content:flex-start;width:100%}[data-v-3689aaf0] .pv-split-button__menu-trigger:before{content:"";background-color:var(--color-border,#e3e7ea);pointer-events:none;width:1px;height:50%;min-height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)translate(-150%)}[class*=pv-status]{&[data-v-0324bf60]:before,&[data-v-0324bf60]:after{margin-inline-end:0}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-aefd2b6b]{background-color:#0000;border:none}.pv-icon-button[data-v-aefd2b6b]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-aefd2b6b]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-a93608b0]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-a93608b0]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-a93608b0]:hover,&[data-v-a93608b0]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-a93608b0]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-a93608b0]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-a93608b0]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-a93608b0]{pointer-events:auto;color:inherit}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-06cc192f]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-06cc192f]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-drop-zone[data-v-ecab1929]{min-height:0}.tree-item-continued[data-v-ecab1929]{position:relative}.tree-item-continued[data-v-ecab1929]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.tree-item-continued .tree-component-nested-middle-symbol[data-v-ecab1929]:before{display:none}.tree-component-end-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-end-symbol[data-v-ecab1929]:before,.tree-component-end-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute}.tree-component-end-symbol[data-v-ecab1929]:before{width:1px;height:14px;top:-6px;left:8px;transform:translate(-50%)}.tree-component-end-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:8px;left:8px}.tree-component-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-middle-symbol[data-v-ecab1929]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:28px;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-nested-middle-symbol[data-v-ecab1929]:before,.tree-component-nested-middle-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute;left:50%}.tree-component-nested-middle-symbol[data-v-ecab1929]:before{width:1px;height:28px;top:-4px;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:50%;transform:translateY(-50%)}.pv-tree-drop-zone[data-v-8e33078d],.pv-tree-drop-zone[data-v-7589558e]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-7e00be1a]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-7e00be1a]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-7e00be1a]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-7e00be1a]{--lines:1}.pv-filter-panel-option-row-right[data-v-7e00be1a]{text-align:right;flex:none}summary[data-v-4478d3f6]{background-image:none;padding-right:2px}[data-v-4478d3f6] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-4478d3f6]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-14259e0c]{height:100%;max-height:inherit}.pv-filter-panel-actions[data-v-14259e0c],.pv-filter-panel-header[data-v-14259e0c],.pv-filter-panel-suggestion-tags[data-v-14259e0c]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-14259e0c],.pv-filter-panel-filters-view[data-v-14259e0c]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-14259e0c]{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-14259e0c]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-14259e0c]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-14259e0c]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-14259e0c]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-14259e0c],.pv-filter-panel-footer[data-v-14259e0c],.pv-filter-panel-suggestions[data-v-14259e0c]{padding:12px}.pv-filter-panel-filter-list[data-v-14259e0c]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-14259e0c]{--flex-justify:flex-end;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-14259e0c]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-14259e0c]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-14259e0c]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-14259e0c]{margin:0}.pv-filter-panel-suggestions[data-v-14259e0c]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-14259e0c]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-f6b1c07d]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-f6b1c07d]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-f6b1c07d]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-f6b1c07d]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-e2a82095]{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-e2a82095]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-e2a82095]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-e2a82095]: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, onMounted as C, onUnmounted as w, onUpdated as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, unref as F, useAttrs as ee, useId as I, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as B, vModelDynamic as te, vModelRadio as ne, vModelText as V, vShow as re, watch as H, watchEffect as ie, withCtx as U, withDirectives as W, withKeys as ae, withModifiers as G } from "vue";
|
|
4
4
|
import { onClickOutside as oe, onKeyStroke as se, useDebounceFn as K, useElementBounding as q, useElementHover as ce, useToggle as le, watchDebounced as ue } from "@vueuse/core";
|
|
@@ -3917,7 +3917,7 @@ var ki = {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
}), ja = {
|
|
3919
3919
|
key: 0,
|
|
3920
|
-
class: "pv-
|
|
3920
|
+
class: "pv-heading-2"
|
|
3921
3921
|
}, Ma = ["id"], Na = { class: "pv-flex" }, Pa = ["id"], Fa = {
|
|
3922
3922
|
key: 0,
|
|
3923
3923
|
class: "pv-border-left",
|
|
@@ -3949,7 +3949,7 @@ var ki = {
|
|
|
3949
3949
|
}, [A(t.$slots, "right")], 8, Pa), e.showAskTqButton ? (E(), o("div", Fa, [u(zn, {
|
|
3950
3950
|
id: e.askTqButtonId,
|
|
3951
3951
|
label: "AskTQ",
|
|
3952
|
-
size: "
|
|
3952
|
+
size: "xl",
|
|
3953
3953
|
"hide-icon": ""
|
|
3954
3954
|
}, null, 8, ["id"])])) : a("", !0)])], 2));
|
|
3955
3955
|
}
|
|
@@ -3971,22 +3971,25 @@ var ki = {
|
|
|
3971
3971
|
size: e.size
|
|
3972
3972
|
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) }, P(e.label), 3)]));
|
|
3973
3973
|
}
|
|
3974
|
-
}), za = ["data-more"], Ba = ["src", "alt"], Va = {
|
|
3975
|
-
key: 2,
|
|
3976
|
-
class: "pv-avatar-sm"
|
|
3977
|
-
}, Ha = /* @__PURE__ */ d({
|
|
3974
|
+
}), za = ["data-more"], Ba = ["src", "alt"], Va = /* @__PURE__ */ d({
|
|
3978
3975
|
__name: "PvAvatarGroup",
|
|
3979
3976
|
props: {
|
|
3980
3977
|
items: {},
|
|
3981
|
-
maxDisplayed: {}
|
|
3978
|
+
maxDisplayed: {},
|
|
3979
|
+
size: {}
|
|
3982
3980
|
},
|
|
3983
3981
|
setup(e) {
|
|
3984
3982
|
let n = e, i = r(() => n.maxDisplayed >= 7 ? 7 : n.maxDisplayed), a = r(() => {
|
|
3985
3983
|
let e = n.items.length - i.value;
|
|
3986
3984
|
return e > 0 ? e : 0;
|
|
3987
|
-
})
|
|
3985
|
+
}), s = {
|
|
3986
|
+
md: "pv-avatar-20",
|
|
3987
|
+
lg: "pv-avatar-xs",
|
|
3988
|
+
xl: "pv-avatar-sm",
|
|
3989
|
+
xxl: "pv-avatar-md"
|
|
3990
|
+
}, c = r(() => s[n.size ?? "xl"]);
|
|
3988
3991
|
return (n, r) => (E(), o("ul", {
|
|
3989
|
-
class: "pv-avatar-group",
|
|
3992
|
+
class: y(["pv-avatar-group", e.size && e.size !== "xl" ? `pv-avatar-group-${e.size}` : ""]),
|
|
3990
3993
|
role: "list",
|
|
3991
3994
|
"data-more": a.value <= 0 ? void 0 : a.value,
|
|
3992
3995
|
"data-testid": "pv-avatar-group"
|
|
@@ -3997,15 +4000,18 @@ var ki = {
|
|
|
3997
4000
|
key: 1,
|
|
3998
4001
|
src: e.image,
|
|
3999
4002
|
alt: e.alt ?? ""
|
|
4000
|
-
}, null, 8, Ba)) : (E(), o("div",
|
|
4003
|
+
}, null, 8, Ba)) : (E(), o("div", {
|
|
4004
|
+
key: 2,
|
|
4005
|
+
class: y(c.value)
|
|
4006
|
+
}, null, 2))]))), 128))], 10, za));
|
|
4001
4007
|
}
|
|
4002
|
-
}),
|
|
4008
|
+
}), Ha = ["for"], Ua = [
|
|
4003
4009
|
"id",
|
|
4004
4010
|
"type",
|
|
4005
4011
|
"value",
|
|
4006
4012
|
"name",
|
|
4007
4013
|
"disabled"
|
|
4008
|
-
],
|
|
4014
|
+
], Wa = { key: 1 }, Ga = /* @__PURE__ */ d({
|
|
4009
4015
|
__name: "PvToggleButton",
|
|
4010
4016
|
props: /* @__PURE__ */ g({
|
|
4011
4017
|
size: { default: "xl" },
|
|
@@ -4055,12 +4061,12 @@ var ki = {
|
|
|
4055
4061
|
value: e.value,
|
|
4056
4062
|
name: e.name,
|
|
4057
4063
|
disabled: e.disabled
|
|
4058
|
-
}, null, 8,
|
|
4064
|
+
}, null, 8, Ua), [[te, n.value]]),
|
|
4059
4065
|
e.leftIcon ? (E(), i(X, {
|
|
4060
4066
|
key: 0,
|
|
4061
4067
|
name: e.leftIcon
|
|
4062
4068
|
}, null, 8, ["name"])) : a("", !0),
|
|
4063
|
-
e.label ? (E(), o("span",
|
|
4069
|
+
e.label ? (E(), o("span", Wa, P(e.label), 1)) : a("", !0),
|
|
4064
4070
|
e.rightIcon ? (E(), i(X, {
|
|
4065
4071
|
key: 2,
|
|
4066
4072
|
name: e.rightIcon
|
|
@@ -4070,15 +4076,15 @@ var ki = {
|
|
|
4070
4076
|
value: e.rightCounterBadge,
|
|
4071
4077
|
variant: u.value
|
|
4072
4078
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
4073
|
-
], 10,
|
|
4079
|
+
], 10, Ha));
|
|
4074
4080
|
}
|
|
4075
|
-
}),
|
|
4081
|
+
}), Ka = { class: "pv-flex" }, qa = [
|
|
4076
4082
|
"name",
|
|
4077
4083
|
"value",
|
|
4078
4084
|
"checked",
|
|
4079
4085
|
"disabled",
|
|
4080
4086
|
"onChange"
|
|
4081
|
-
],
|
|
4087
|
+
], Ja = { key: 1 }, Ya = /* @__PURE__ */ d({
|
|
4082
4088
|
__name: "PvToggleGroup",
|
|
4083
4089
|
props: /* @__PURE__ */ g({
|
|
4084
4090
|
disabled: { type: Boolean },
|
|
@@ -4100,7 +4106,7 @@ var ki = {
|
|
|
4100
4106
|
r.value = e;
|
|
4101
4107
|
}
|
|
4102
4108
|
};
|
|
4103
|
-
return (n, u) => (E(), o("div",
|
|
4109
|
+
return (n, u) => (E(), o("div", Ka, [(E(!0), o(t, null, k(e.options, (t) => (E(), i(Pn, {
|
|
4104
4110
|
key: t.value,
|
|
4105
4111
|
description: e.hideLabels ? t.label : ""
|
|
4106
4112
|
}, {
|
|
@@ -4113,21 +4119,21 @@ var ki = {
|
|
|
4113
4119
|
class: "pv-radio",
|
|
4114
4120
|
disabled: e.disabled || t.disabled,
|
|
4115
4121
|
onChange: (e) => l(t)
|
|
4116
|
-
}, null, 40,
|
|
4122
|
+
}, null, 40, qa),
|
|
4117
4123
|
t.icon ? (E(), i(X, {
|
|
4118
4124
|
key: 0,
|
|
4119
4125
|
name: t.icon
|
|
4120
4126
|
}, null, 8, ["name"])) : a("", !0),
|
|
4121
|
-
e.hideLabels ? a("", !0) : (E(), o("span",
|
|
4127
|
+
e.hideLabels ? a("", !0) : (E(), o("span", Ja, P(t.label), 1))
|
|
4122
4128
|
], 2)]),
|
|
4123
4129
|
_: 2
|
|
4124
4130
|
}, 1032, ["description"]))), 128))]));
|
|
4125
4131
|
}
|
|
4126
|
-
}),
|
|
4132
|
+
}), Xa = [
|
|
4127
4133
|
"aria-label",
|
|
4128
4134
|
"disabled",
|
|
4129
4135
|
"indeterminate"
|
|
4130
|
-
],
|
|
4136
|
+
], Za = /* @__PURE__ */ d({
|
|
4131
4137
|
__name: "PvCheckbox",
|
|
4132
4138
|
props: /* @__PURE__ */ g({
|
|
4133
4139
|
ariaLabel: {},
|
|
@@ -4148,13 +4154,13 @@ var ki = {
|
|
|
4148
4154
|
"aria-label": e.ariaLabel,
|
|
4149
4155
|
disabled: e.disabled,
|
|
4150
4156
|
indeterminate: e.indeterminate
|
|
4151
|
-
}, null, 8,
|
|
4157
|
+
}, null, 8, Xa)), [[B, t.value]]);
|
|
4152
4158
|
}
|
|
4153
|
-
}),
|
|
4159
|
+
}), Qa = ["aria-label", "aria-labelledby"], $a = ["id"], eo = [
|
|
4154
4160
|
"name",
|
|
4155
4161
|
"value",
|
|
4156
4162
|
"disabled"
|
|
4157
|
-
],
|
|
4163
|
+
], to = /* @__PURE__ */ d({
|
|
4158
4164
|
__name: "PvRadioGroup",
|
|
4159
4165
|
props: /* @__PURE__ */ g({
|
|
4160
4166
|
options: { default: () => [] },
|
|
@@ -4185,7 +4191,7 @@ var ki = {
|
|
|
4185
4191
|
key: 0,
|
|
4186
4192
|
id: F(u),
|
|
4187
4193
|
class: "pv-label pv-stack-8"
|
|
4188
|
-
}, P(e.label), 9,
|
|
4194
|
+
}, P(e.label), 9, $a)) : a("", !0), s("div", {
|
|
4189
4195
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
4190
4196
|
style: x(f.value)
|
|
4191
4197
|
}, [(E(!0), o(t, null, k(e.options, (t) => (E(), o("label", {
|
|
@@ -4198,9 +4204,9 @@ var ki = {
|
|
|
4198
4204
|
name: d.value,
|
|
4199
4205
|
value: t.value,
|
|
4200
4206
|
disabled: e.disabled || t.disabled
|
|
4201
|
-
}, null, 8,
|
|
4207
|
+
}, null, 8, eo), [[ne, i.value]]), l(" " + P(t.label), 1)]))), 128))], 6)], 8, Qa));
|
|
4202
4208
|
}
|
|
4203
|
-
}),
|
|
4209
|
+
}), no = /* @__PURE__ */ d({
|
|
4204
4210
|
__name: "PvSprite",
|
|
4205
4211
|
props: {
|
|
4206
4212
|
src: {},
|
|
@@ -4221,7 +4227,7 @@ var ki = {
|
|
|
4221
4227
|
id: "pv-sprite-content"
|
|
4222
4228
|
}, null, -1)]));
|
|
4223
4229
|
}
|
|
4224
|
-
}),
|
|
4230
|
+
}), ro = /* @__PURE__ */ d({
|
|
4225
4231
|
__name: "PvSkeleton",
|
|
4226
4232
|
props: {
|
|
4227
4233
|
size: { default: "md" },
|
|
@@ -4248,18 +4254,18 @@ var ki = {
|
|
|
4248
4254
|
"width"
|
|
4249
4255
|
]));
|
|
4250
4256
|
}
|
|
4251
|
-
}),
|
|
4257
|
+
}), io = ["for"], ao = {
|
|
4252
4258
|
key: 0,
|
|
4253
4259
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
4254
4260
|
style: { "--inset-size": "6px 10px" }
|
|
4255
|
-
},
|
|
4261
|
+
}, oo = { class: "pv-relative pv-flex-item" }, so = [
|
|
4256
4262
|
"disabled",
|
|
4257
4263
|
"type",
|
|
4258
4264
|
"placeholder",
|
|
4259
4265
|
"id",
|
|
4260
4266
|
"data-invalid",
|
|
4261
4267
|
"step"
|
|
4262
|
-
],
|
|
4268
|
+
], co = /* @__PURE__ */ d({
|
|
4263
4269
|
__name: "PvInput",
|
|
4264
4270
|
props: /* @__PURE__ */ g({
|
|
4265
4271
|
showLabel: { type: Boolean },
|
|
@@ -4286,8 +4292,8 @@ var ki = {
|
|
|
4286
4292
|
"data-testid": "pv-input-label",
|
|
4287
4293
|
class: "pv-label pv-stack-8",
|
|
4288
4294
|
for: e.id
|
|
4289
|
-
}, [A(n.$slots, "label")], 8,
|
|
4290
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div",
|
|
4295
|
+
}, [A(n.$slots, "label")], 8, io)) : a("", !0),
|
|
4296
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div", ao, P(e.prefixLabel), 1)) : a("", !0), s("div", oo, [e.inputIcon ? (E(), i(X, {
|
|
4291
4297
|
key: 0,
|
|
4292
4298
|
class: "pv-absolute input-icon-position",
|
|
4293
4299
|
name: e.inputIcon
|
|
@@ -4305,7 +4311,7 @@ var ki = {
|
|
|
4305
4311
|
id: e.id,
|
|
4306
4312
|
"data-invalid": e.error ? !0 : void 0,
|
|
4307
4313
|
step: e.step
|
|
4308
|
-
}), null, 16,
|
|
4314
|
+
}), null, 16, so), [[te, c.value]])])], 2),
|
|
4309
4315
|
e.lowerLabel ? (E(), o("p", {
|
|
4310
4316
|
key: 1,
|
|
4311
4317
|
"data-testid": "pv-input-lower-label",
|
|
@@ -4317,7 +4323,7 @@ var ki = {
|
|
|
4317
4323
|
}, P(e.lowerLabel), 3)) : a("", !0)
|
|
4318
4324
|
], 64));
|
|
4319
4325
|
}
|
|
4320
|
-
}),
|
|
4326
|
+
}), lo = ["data-rating"], uo = ["value"], fo = /* @__PURE__ */ d({
|
|
4321
4327
|
__name: "PvRating",
|
|
4322
4328
|
props: {
|
|
4323
4329
|
variant: { default: "dot" },
|
|
@@ -4336,9 +4342,9 @@ var ki = {
|
|
|
4336
4342
|
min: "0",
|
|
4337
4343
|
max: "5",
|
|
4338
4344
|
value: e.value
|
|
4339
|
-
}, "4.0 stars", 8,
|
|
4345
|
+
}, "4.0 stars", 8, uo)], 12, lo));
|
|
4340
4346
|
}
|
|
4341
|
-
}),
|
|
4347
|
+
}), po = /* @__PURE__ */ d({
|
|
4342
4348
|
__name: "PvCard",
|
|
4343
4349
|
props: {
|
|
4344
4350
|
href: {},
|
|
@@ -4364,34 +4370,34 @@ var ki = {
|
|
|
4364
4370
|
"class"
|
|
4365
4371
|
]));
|
|
4366
4372
|
}
|
|
4367
|
-
}),
|
|
4373
|
+
}), mo = /* @__PURE__ */ d({
|
|
4368
4374
|
__name: "PvWidget",
|
|
4369
4375
|
setup(e) {
|
|
4370
|
-
return (e, t) => (E(), i(
|
|
4376
|
+
return (e, t) => (E(), i(po, { class: "pv-inset-square-16" }, {
|
|
4371
4377
|
default: U(() => [A(e.$slots, "default")]),
|
|
4372
4378
|
_: 3
|
|
4373
4379
|
}));
|
|
4374
4380
|
}
|
|
4375
|
-
}),
|
|
4381
|
+
}), ho = {
|
|
4376
4382
|
class: "pv-flex-vertical",
|
|
4377
4383
|
style: {
|
|
4378
4384
|
"--flex-align": "flex-start",
|
|
4379
4385
|
"--flex-gap": "0.25rem"
|
|
4380
4386
|
}
|
|
4381
|
-
},
|
|
4387
|
+
}, go = {
|
|
4382
4388
|
key: 0,
|
|
4383
4389
|
class: "pv-flex",
|
|
4384
4390
|
style: { "--flex-gap": "0.25rem" }
|
|
4385
|
-
},
|
|
4391
|
+
}, _o = { class: "pv-text-body-sm" }, vo = {
|
|
4386
4392
|
key: 1,
|
|
4387
4393
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
4388
|
-
},
|
|
4394
|
+
}, yo = {
|
|
4389
4395
|
key: 2,
|
|
4390
4396
|
class: "pv-heading-2"
|
|
4391
|
-
},
|
|
4397
|
+
}, bo = {
|
|
4392
4398
|
key: 3,
|
|
4393
4399
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
4394
|
-
},
|
|
4400
|
+
}, xo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4395
4401
|
__name: "PvInsightCard",
|
|
4396
4402
|
props: {
|
|
4397
4403
|
icon: { default: "ai" },
|
|
@@ -4411,22 +4417,22 @@ var ki = {
|
|
|
4411
4417
|
emits: ["click", "icon-click"],
|
|
4412
4418
|
setup(e) {
|
|
4413
4419
|
let t = e, n = r(() => t.icon || t.insight);
|
|
4414
|
-
return (t, r) => (E(), i(
|
|
4420
|
+
return (t, r) => (E(), i(po, {
|
|
4415
4421
|
variant: "secondary",
|
|
4416
4422
|
interactive: e.interactive,
|
|
4417
4423
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
4418
4424
|
class: "pv-relative"
|
|
4419
4425
|
}, {
|
|
4420
|
-
default: U(() => [s("div",
|
|
4421
|
-
n.value ? (E(), o("div",
|
|
4426
|
+
default: U(() => [s("div", ho, [
|
|
4427
|
+
n.value ? (E(), o("div", go, [e.icon ? (E(), i(X, {
|
|
4422
4428
|
key: 0,
|
|
4423
4429
|
style: { color: "#218c88" },
|
|
4424
4430
|
name: e.icon,
|
|
4425
4431
|
size: 12
|
|
4426
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
4427
|
-
e.upperLabel ? (E(), o("span",
|
|
4428
|
-
e.title ? (E(), o("span",
|
|
4429
|
-
e.description ? (E(), o("span",
|
|
4432
|
+
}, null, 8, ["name"])) : a("", !0), s("span", _o, P(e.insight), 1)])) : a("", !0),
|
|
4433
|
+
e.upperLabel ? (E(), o("span", vo, P(e.upperLabel), 1)) : a("", !0),
|
|
4434
|
+
e.title ? (E(), o("span", yo, P(e.title), 1)) : a("", !0),
|
|
4435
|
+
e.description ? (E(), o("span", bo, P(e.description), 1)) : a("", !0)
|
|
4430
4436
|
]), e.showButton ? (E(), i(Q, {
|
|
4431
4437
|
key: 0,
|
|
4432
4438
|
"left-icon": "new-tab",
|
|
@@ -4439,7 +4445,7 @@ var ki = {
|
|
|
4439
4445
|
_: 1
|
|
4440
4446
|
}, 8, ["interactive"]));
|
|
4441
4447
|
}
|
|
4442
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
4448
|
+
}), [["__scopeId", "data-v-c1185c07"]]), So = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4443
4449
|
__name: "PvExpandableContent",
|
|
4444
4450
|
props: {
|
|
4445
4451
|
lines: { default: 4 },
|
|
@@ -4477,7 +4483,7 @@ var ki = {
|
|
|
4477
4483
|
"left-icon": i.value ? "chevron-up" : "chevron-down"
|
|
4478
4484
|
}, null, 8, ["label", "left-icon"])], 6));
|
|
4479
4485
|
}
|
|
4480
|
-
}), [["__scopeId", "data-v-06cc192f"]]),
|
|
4486
|
+
}), [["__scopeId", "data-v-06cc192f"]]), Co = { class: "pv-text-body-md" }, wo = /* @__PURE__ */ d({
|
|
4481
4487
|
__name: "PvToast",
|
|
4482
4488
|
props: {
|
|
4483
4489
|
variant: { default: "info" },
|
|
@@ -4502,7 +4508,7 @@ var ki = {
|
|
|
4502
4508
|
name: e.icon ? e.icon : n[e.variant],
|
|
4503
4509
|
size: 20
|
|
4504
4510
|
}, null, 8, ["name"]),
|
|
4505
|
-
s("p",
|
|
4511
|
+
s("p", Co, P(e.label), 1),
|
|
4506
4512
|
A(r.$slots, "default"),
|
|
4507
4513
|
u(Q, {
|
|
4508
4514
|
variant: "ghost",
|
|
@@ -4514,25 +4520,25 @@ var ki = {
|
|
|
4514
4520
|
}, null, 8, ["inverse"])
|
|
4515
4521
|
], 2));
|
|
4516
4522
|
}
|
|
4517
|
-
}),
|
|
4523
|
+
}), To = ["data-style"], Eo = /* @__PURE__ */ d({
|
|
4518
4524
|
__name: "PvActionBar",
|
|
4519
4525
|
props: { variant: { default: "white" } },
|
|
4520
4526
|
setup(e) {
|
|
4521
4527
|
return (t, n) => (E(), o("div", {
|
|
4522
4528
|
class: "pv-action-bar-container",
|
|
4523
4529
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
4524
|
-
}, [A(t.$slots, "default")], 8,
|
|
4530
|
+
}, [A(t.$slots, "default")], 8, To));
|
|
4525
4531
|
}
|
|
4526
|
-
}),
|
|
4532
|
+
}), Do = {
|
|
4527
4533
|
class: "pv-flex-vertical",
|
|
4528
4534
|
style: { "--flex-align": "flex-start" }
|
|
4529
|
-
},
|
|
4535
|
+
}, Oo = ["for"], ko = [
|
|
4530
4536
|
"rows",
|
|
4531
4537
|
"disabled",
|
|
4532
4538
|
"placeholder",
|
|
4533
4539
|
"id",
|
|
4534
4540
|
"data-invalid"
|
|
4535
|
-
],
|
|
4541
|
+
], Ao = /* @__PURE__ */ d({
|
|
4536
4542
|
__name: "PvTextArea",
|
|
4537
4543
|
props: /* @__PURE__ */ g({
|
|
4538
4544
|
error: { type: Boolean },
|
|
@@ -4549,12 +4555,12 @@ var ki = {
|
|
|
4549
4555
|
emits: ["update:modelValue"],
|
|
4550
4556
|
setup(e) {
|
|
4551
4557
|
let t = L(e, "modelValue");
|
|
4552
|
-
return (n, r) => (E(), o("div",
|
|
4558
|
+
return (n, r) => (E(), o("div", Do, [
|
|
4553
4559
|
n.$slots.label ? (E(), o("label", {
|
|
4554
4560
|
key: 0,
|
|
4555
4561
|
class: "pv-label",
|
|
4556
4562
|
for: e.id
|
|
4557
|
-
}, [A(n.$slots, "label")], 8,
|
|
4563
|
+
}, [A(n.$slots, "label")], 8, Oo)) : a("", !0),
|
|
4558
4564
|
W(s("textarea", _(n.$attrs, {
|
|
4559
4565
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
4560
4566
|
class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
|
|
@@ -4563,7 +4569,7 @@ var ki = {
|
|
|
4563
4569
|
placeholder: e.placeholder,
|
|
4564
4570
|
id: e.id,
|
|
4565
4571
|
"data-invalid": e.error ? !0 : void 0
|
|
4566
|
-
}), null, 16,
|
|
4572
|
+
}), null, 16, ko), [[V, t.value]]),
|
|
4567
4573
|
e.lowerLabel ? (E(), o("p", {
|
|
4568
4574
|
key: 1,
|
|
4569
4575
|
style: { "margin-left": "12px" },
|
|
@@ -4574,20 +4580,20 @@ var ki = {
|
|
|
4574
4580
|
}, P(e.lowerLabel), 3)) : a("", !0)
|
|
4575
4581
|
]));
|
|
4576
4582
|
}
|
|
4577
|
-
}),
|
|
4583
|
+
}), jo = {
|
|
4578
4584
|
class: "pv-flex pv-truncate",
|
|
4579
4585
|
style: {
|
|
4580
4586
|
"min-width": "0",
|
|
4581
4587
|
"min-height": "20px"
|
|
4582
4588
|
}
|
|
4583
|
-
},
|
|
4589
|
+
}, Mo = ["title"], No = /* @__PURE__ */ d({
|
|
4584
4590
|
__name: "PvSimpleItemTree",
|
|
4585
4591
|
props: {
|
|
4586
4592
|
label: {},
|
|
4587
4593
|
icon: {}
|
|
4588
4594
|
},
|
|
4589
4595
|
setup(e) {
|
|
4590
|
-
return (t, n) => (E(), o("div",
|
|
4596
|
+
return (t, n) => (E(), o("div", jo, [e.icon ? (E(), i(X, {
|
|
4591
4597
|
key: 0,
|
|
4592
4598
|
name: e.icon
|
|
4593
4599
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -4597,9 +4603,9 @@ var ki = {
|
|
|
4597
4603
|
"min-width": "0"
|
|
4598
4604
|
},
|
|
4599
4605
|
title: e.label
|
|
4600
|
-
}, P(e.label), 9,
|
|
4606
|
+
}, P(e.label), 9, Mo)]));
|
|
4601
4607
|
}
|
|
4602
|
-
}),
|
|
4608
|
+
}), Po = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4603
4609
|
__name: "PvTreeReorderIcon",
|
|
4604
4610
|
setup(e) {
|
|
4605
4611
|
return (e, t) => (E(), i(X, {
|
|
@@ -4607,7 +4613,7 @@ var ki = {
|
|
|
4607
4613
|
class: "reorder-icon pv-text-tertiary"
|
|
4608
4614
|
}));
|
|
4609
4615
|
}
|
|
4610
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
4616
|
+
}), [["__scopeId", "data-v-1efb9068"]]), Fo = /* @__PURE__ */ d({
|
|
4611
4617
|
__name: "PvButtonTreeItem",
|
|
4612
4618
|
props: {
|
|
4613
4619
|
selected: { type: Boolean },
|
|
@@ -4642,7 +4648,7 @@ var ki = {
|
|
|
4642
4648
|
_: 3
|
|
4643
4649
|
}, 8, ["class"]));
|
|
4644
4650
|
}
|
|
4645
|
-
}),
|
|
4651
|
+
}), Io = /* @__PURE__ */ d({
|
|
4646
4652
|
__name: "PvCheckboxTreeItem",
|
|
4647
4653
|
props: {
|
|
4648
4654
|
selected: { type: Boolean },
|
|
@@ -4671,13 +4677,13 @@ var ki = {
|
|
|
4671
4677
|
"pv-tree-item-selected": e.selected,
|
|
4672
4678
|
"pv-tree-item-disabled": e.disableSelection
|
|
4673
4679
|
}
|
|
4674
|
-
]) }, [e.disableSelection ? a("", !0) : (E(), i(
|
|
4680
|
+
]) }, [e.disableSelection ? a("", !0) : (E(), i(Za, {
|
|
4675
4681
|
key: 0,
|
|
4676
4682
|
checked: e.selected,
|
|
4677
4683
|
onClick: s
|
|
4678
4684
|
}, null, 8, ["checked"])), A(t.$slots, "default")], 2));
|
|
4679
4685
|
}
|
|
4680
|
-
}),
|
|
4686
|
+
}), Lo = () => {
|
|
4681
4687
|
let e = O(null);
|
|
4682
4688
|
return {
|
|
4683
4689
|
hoveredId: e,
|
|
@@ -4688,15 +4694,15 @@ var ki = {
|
|
|
4688
4694
|
e.value = null;
|
|
4689
4695
|
}
|
|
4690
4696
|
};
|
|
4691
|
-
},
|
|
4697
|
+
}, Ro = Symbol("DraggingStateKey"), zo = Symbol("DraggingGroupNameKey"), Bo = Symbol("DropIndicatorKey"), Vo = () => {
|
|
4692
4698
|
let e = O(!1), t = O(null), n = O(null);
|
|
4693
|
-
return D(
|
|
4699
|
+
return D(Ro, e), D(zo, t), D(Bo, n), {
|
|
4694
4700
|
isDragging: e,
|
|
4695
4701
|
draggingGroupName: t,
|
|
4696
4702
|
dropIndicator: n
|
|
4697
4703
|
};
|
|
4698
|
-
},
|
|
4699
|
-
let e = m(
|
|
4704
|
+
}, Ho = () => {
|
|
4705
|
+
let e = m(Ro, O(!1)), t = m(zo, O(null)), n = m(Bo, O(null)), r = (n) => {
|
|
4700
4706
|
e.value = !0, t.value = n ?? null;
|
|
4701
4707
|
}, i = () => {
|
|
4702
4708
|
e.value = !1, t.value = null, o();
|
|
@@ -4718,8 +4724,8 @@ var ki = {
|
|
|
4718
4724
|
onDragStart: r,
|
|
4719
4725
|
onDragEnd: i
|
|
4720
4726
|
};
|
|
4721
|
-
},
|
|
4722
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
4727
|
+
}, Uo = () => {
|
|
4728
|
+
let { setDropIndicator: e, clearDropIndicator: t } = Ho();
|
|
4723
4729
|
return {
|
|
4724
4730
|
getDragGroupConfig: (e, t) => {
|
|
4725
4731
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -4754,8 +4760,8 @@ var ki = {
|
|
|
4754
4760
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
4755
4761
|
}
|
|
4756
4762
|
};
|
|
4757
|
-
},
|
|
4758
|
-
let { dropIndicator: e } =
|
|
4763
|
+
}, Wo = () => {
|
|
4764
|
+
let { dropIndicator: e } = Ho();
|
|
4759
4765
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
4760
4766
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
4761
4767
|
return {
|
|
@@ -4764,13 +4770,13 @@ var ki = {
|
|
|
4764
4770
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
4765
4771
|
};
|
|
4766
4772
|
} };
|
|
4767
|
-
},
|
|
4773
|
+
}, Go = { class: "pv-flex pv-full-width" }, Ko = {
|
|
4768
4774
|
key: 0,
|
|
4769
4775
|
class: "tree-component-nested-middle-symbol"
|
|
4770
|
-
},
|
|
4776
|
+
}, qo = {
|
|
4771
4777
|
key: 1,
|
|
4772
4778
|
class: "tree-component-end-symbol"
|
|
4773
|
-
},
|
|
4779
|
+
}, Jo = ["data-parent-id"], Yo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4774
4780
|
__name: "PvSimpleNestedTreeItem",
|
|
4775
4781
|
props: {
|
|
4776
4782
|
option: {},
|
|
@@ -4787,9 +4793,9 @@ var ki = {
|
|
|
4787
4793
|
},
|
|
4788
4794
|
emits: ["handle-tree-select", "update:children"],
|
|
4789
4795
|
setup(e, { emit: t }) {
|
|
4790
|
-
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } =
|
|
4796
|
+
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } = Ho(), { dragAndDropIndicatorClasses: m } = Wo(), { hoveredId: h, handleMouseEnter: g, handleMouseLeave: _ } = Lo(), { canItemBeDragged: v, getDragAndDropDisabled: b, handleMoveCallback: S, getDragGroupConfig: C, canAcceptDrop: w } = Uo(), T = () => {
|
|
4791
4797
|
f(C(n.settings, n.option).name);
|
|
4792
|
-
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ?
|
|
4798
|
+
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ? Io : Fo), k = r(() => n.settings[n.parentField]?.showNestedTree), A = r(() => n.index === n.totalSiblings - 1), N = r({
|
|
4793
4799
|
get: () => [...n.option.children || []],
|
|
4794
4800
|
set: (e) => {
|
|
4795
4801
|
c("update:children", {
|
|
@@ -4819,7 +4825,7 @@ var ki = {
|
|
|
4819
4825
|
onMouseleave: n[2] ||= (e) => F(_)(),
|
|
4820
4826
|
onContextmenu: n[3] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4821
4827
|
}, {
|
|
4822
|
-
default: U(() => [W(u(
|
|
4828
|
+
default: U(() => [W(u(Po, null, null, 512), [[re, F(h) === e.option.node_id && F(v)(e.isDraggable, e.settings, e.option)]]), s("div", Go, [!A.value && k.value ? (E(), o("div", Ko)) : k.value ? (E(), o("div", qo)) : a("", !0), e.settings[e.option.field]?.renderer ? (E(), i(M(e.settings[e.option.field]?.renderer), {
|
|
4823
4829
|
key: 2,
|
|
4824
4830
|
option: e.option,
|
|
4825
4831
|
settings: e.settings,
|
|
@@ -4830,7 +4836,7 @@ var ki = {
|
|
|
4830
4836
|
"settings",
|
|
4831
4837
|
"is-draggable",
|
|
4832
4838
|
"params"
|
|
4833
|
-
])) : (E(), i(
|
|
4839
|
+
])) : (E(), i(No, {
|
|
4834
4840
|
key: 3,
|
|
4835
4841
|
label: e.option.label,
|
|
4836
4842
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4892,13 +4898,13 @@ var ki = {
|
|
|
4892
4898
|
"class",
|
|
4893
4899
|
"onEnd",
|
|
4894
4900
|
"onAdd"
|
|
4895
|
-
])], 8,
|
|
4901
|
+
])], 8, Jo)], 6);
|
|
4896
4902
|
};
|
|
4897
4903
|
}
|
|
4898
|
-
}), [["__scopeId", "data-v-ecab1929"]]),
|
|
4904
|
+
}), [["__scopeId", "data-v-ecab1929"]]), Xo = {
|
|
4899
4905
|
class: "pv-flow",
|
|
4900
4906
|
style: { "--flow-size": "0px" }
|
|
4901
|
-
},
|
|
4907
|
+
}, Zo = ["data-parent-id"], Qo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4902
4908
|
__name: "PvSimpleNestedTree",
|
|
4903
4909
|
props: {
|
|
4904
4910
|
option: {},
|
|
@@ -4911,9 +4917,9 @@ var ki = {
|
|
|
4911
4917
|
},
|
|
4912
4918
|
emits: ["handle-tree-select", "update:children"],
|
|
4913
4919
|
setup(e, { emit: t }) {
|
|
4914
|
-
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
4920
|
+
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = Lo(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = Uo(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = Ho(), { dragAndDropIndicatorClasses: C } = Wo(), w = () => {
|
|
4915
4921
|
b(h(n.settings, n.option).name);
|
|
4916
|
-
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ?
|
|
4922
|
+
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ? Io : Fo, A = r({
|
|
4917
4923
|
get: () => [...n.option.children || []],
|
|
4918
4924
|
set: (e) => {
|
|
4919
4925
|
a("update:children", {
|
|
@@ -4922,7 +4928,7 @@ var ki = {
|
|
|
4922
4928
|
});
|
|
4923
4929
|
}
|
|
4924
4930
|
}), j = r(() => n.isParentPathOpen ?? !0);
|
|
4925
|
-
return (t, n) => (E(), o("div",
|
|
4931
|
+
return (t, n) => (E(), o("div", Xo, [(E(), i(M(k(e.option)), {
|
|
4926
4932
|
option: e.option,
|
|
4927
4933
|
selected: O(e.option.node_id),
|
|
4928
4934
|
"disable-selection": e.disableSelection,
|
|
@@ -4938,7 +4944,7 @@ var ki = {
|
|
|
4938
4944
|
onMouseleave: n[2] ||= (e) => F(d)(),
|
|
4939
4945
|
onContextmenu: n[3] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4940
4946
|
}, {
|
|
4941
|
-
default: U(() => [W(u(
|
|
4947
|
+
default: U(() => [W(u(Po, null, null, 512), [[re, F(c) === e.option.node_id && F(p)(e.isDraggable, e.settings, e.option)]]), e.settings[e.option.field]?.renderer ? (E(), i(M(e.settings[e.option.field]?.renderer), {
|
|
4942
4948
|
key: 0,
|
|
4943
4949
|
option: e.option,
|
|
4944
4950
|
settings: e.settings,
|
|
@@ -4949,7 +4955,7 @@ var ki = {
|
|
|
4949
4955
|
"settings",
|
|
4950
4956
|
"selected",
|
|
4951
4957
|
"params"
|
|
4952
|
-
])) : (E(), i(
|
|
4958
|
+
])) : (E(), i(No, {
|
|
4953
4959
|
key: 1,
|
|
4954
4960
|
label: e.option.label,
|
|
4955
4961
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4976,7 +4982,7 @@ var ki = {
|
|
|
4976
4982
|
onEnd: F(S),
|
|
4977
4983
|
onAdd: F(S)
|
|
4978
4984
|
}, {
|
|
4979
|
-
item: U(({ element: r, index: i }) => [u(
|
|
4985
|
+
item: U(({ element: r, index: i }) => [u(Yo, {
|
|
4980
4986
|
"is-parent-path-open": e.isParentPathOpen,
|
|
4981
4987
|
option: r,
|
|
4982
4988
|
settings: e.settings,
|
|
@@ -5011,9 +5017,9 @@ var ki = {
|
|
|
5011
5017
|
"class",
|
|
5012
5018
|
"onEnd",
|
|
5013
5019
|
"onAdd"
|
|
5014
|
-
])], 8,
|
|
5020
|
+
])], 8, Zo)]));
|
|
5015
5021
|
}
|
|
5016
|
-
}), [["__scopeId", "data-v-8e33078d"]]),
|
|
5022
|
+
}), [["__scopeId", "data-v-8e33078d"]]), $o = ["data-parent-id"], es = { key: 2 }, ts = ["data-parent-id"], ns = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5017
5023
|
__name: "PvTreeItem",
|
|
5018
5024
|
props: {
|
|
5019
5025
|
option: {},
|
|
@@ -5038,12 +5044,12 @@ var ki = {
|
|
|
5038
5044
|
H(() => n.treeOpen, (e) => {
|
|
5039
5045
|
e !== void 0 && (c.value = e);
|
|
5040
5046
|
});
|
|
5041
|
-
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } =
|
|
5047
|
+
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } = Uo(), { hoveredId: g, handleMouseEnter: _, handleMouseLeave: v } = Lo(), { isDragging: b, draggingGroupName: S, onDragStart: C, onDragEnd: w } = Ho(), { dragAndDropIndicatorClasses: T } = Wo(), D = () => {
|
|
5042
5048
|
C(l(n.settings, n.option).name);
|
|
5043
5049
|
}, k = (e) => ({
|
|
5044
5050
|
paddingLeft: `${e * 24 + (n.settings[n.option.field]?.additionalNestingLevel ?? 0) * 24}px`,
|
|
5045
5051
|
"--border-color": "#121313"
|
|
5046
|
-
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), N = r(() => n.settings[n.option.field]?.checkbox ?
|
|
5052
|
+
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), N = r(() => n.settings[n.option.field]?.checkbox ? Io : Fo), P = r({
|
|
5047
5053
|
get: () => [...n.option.children || []],
|
|
5048
5054
|
set: (e) => {
|
|
5049
5055
|
a("update:children", {
|
|
@@ -5081,7 +5087,7 @@ var ki = {
|
|
|
5081
5087
|
onSummaryMouseleave: n[5] ||= (e) => F(v)(),
|
|
5082
5088
|
onContextmenu: n[6] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5083
5089
|
}, {
|
|
5084
|
-
trigger: U(() => [W(u(
|
|
5090
|
+
trigger: U(() => [W(u(Po, null, null, 512), [[re, F(g) === e.option.node_id && F(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(M(e.settings[e.option.field]?.renderer), {
|
|
5085
5091
|
key: 0,
|
|
5086
5092
|
option: e.option,
|
|
5087
5093
|
settings: e.settings,
|
|
@@ -5092,7 +5098,7 @@ var ki = {
|
|
|
5092
5098
|
"settings",
|
|
5093
5099
|
"selected",
|
|
5094
5100
|
"params"
|
|
5095
|
-
])) : (E(), i(
|
|
5101
|
+
])) : (E(), i(No, {
|
|
5096
5102
|
key: 1,
|
|
5097
5103
|
label: e.option.label,
|
|
5098
5104
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5141,7 +5147,7 @@ var ki = {
|
|
|
5141
5147
|
"class",
|
|
5142
5148
|
"onEnd",
|
|
5143
5149
|
"onAdd"
|
|
5144
|
-
])], 8,
|
|
5150
|
+
])], 8, $o)]),
|
|
5145
5151
|
_: 1
|
|
5146
5152
|
}, 8, [
|
|
5147
5153
|
"modelValue",
|
|
@@ -5149,7 +5155,7 @@ var ki = {
|
|
|
5149
5155
|
"summaryStyles",
|
|
5150
5156
|
"summaryClasses",
|
|
5151
5157
|
"defaultOpen"
|
|
5152
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (E(), i(
|
|
5158
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (E(), i(Qo, {
|
|
5153
5159
|
key: 1,
|
|
5154
5160
|
"is-parent-path-open": e.isParentPathOpen,
|
|
5155
5161
|
"selected-options": e.selectedOptions,
|
|
@@ -5170,7 +5176,7 @@ var ki = {
|
|
|
5170
5176
|
"is-draggable",
|
|
5171
5177
|
"disable-selection",
|
|
5172
5178
|
"is-last-root-item"
|
|
5173
|
-
])) : (E(), o("div",
|
|
5179
|
+
])) : (E(), o("div", es, [(E(), i(M(N.value), {
|
|
5174
5180
|
class: y({ ...F(T)(e.option) }),
|
|
5175
5181
|
option: e.option,
|
|
5176
5182
|
selected: A(e.option.node_id),
|
|
@@ -5186,7 +5192,7 @@ var ki = {
|
|
|
5186
5192
|
onMouseleave: n[11] ||= (e) => F(v)(),
|
|
5187
5193
|
onContextmenu: n[12] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5188
5194
|
}, {
|
|
5189
|
-
default: U(() => [W(u(
|
|
5195
|
+
default: U(() => [W(u(Po, null, null, 512), [[re, F(g) === e.option.node_id && F(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(M(e.settings[e.option.field]?.renderer), {
|
|
5190
5196
|
key: 0,
|
|
5191
5197
|
option: e.option,
|
|
5192
5198
|
settings: e.settings,
|
|
@@ -5195,7 +5201,7 @@ var ki = {
|
|
|
5195
5201
|
"option",
|
|
5196
5202
|
"settings",
|
|
5197
5203
|
"params"
|
|
5198
|
-
])) : (E(), i(
|
|
5204
|
+
])) : (E(), i(No, {
|
|
5199
5205
|
key: 1,
|
|
5200
5206
|
label: e.option.label,
|
|
5201
5207
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5251,10 +5257,10 @@ var ki = {
|
|
|
5251
5257
|
"class",
|
|
5252
5258
|
"onEnd",
|
|
5253
5259
|
"onAdd"
|
|
5254
|
-
])], 8,
|
|
5260
|
+
])], 8, ts)]));
|
|
5255
5261
|
};
|
|
5256
5262
|
}
|
|
5257
|
-
}), [["__scopeId", "data-v-7589558e"]]),
|
|
5263
|
+
}), [["__scopeId", "data-v-7589558e"]]), rs = (e) => {
|
|
5258
5264
|
let t = [], n = !1;
|
|
5259
5265
|
function r(e) {
|
|
5260
5266
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -5297,7 +5303,7 @@ var ki = {
|
|
|
5297
5303
|
newChildren: r
|
|
5298
5304
|
}), n || (n = !0, v(i));
|
|
5299
5305
|
} };
|
|
5300
|
-
},
|
|
5306
|
+
}, is = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5301
5307
|
__name: "PvTree",
|
|
5302
5308
|
props: /* @__PURE__ */ g({
|
|
5303
5309
|
settings: {},
|
|
@@ -5327,14 +5333,14 @@ var ki = {
|
|
|
5327
5333
|
"update:treeOpen"
|
|
5328
5334
|
],
|
|
5329
5335
|
setup(e) {
|
|
5330
|
-
m(
|
|
5331
|
-
let n = e, i = L(e, "selectedOptions"), a = L(e, "options"), c = L(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
5336
|
+
m(Ro, null) || Vo();
|
|
5337
|
+
let n = e, i = L(e, "selectedOptions"), a = L(e, "options"), c = L(e, "treeOpen"), { handleUpdateChildren: l } = rs(a), d = (e, t) => {
|
|
5332
5338
|
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];
|
|
5333
5339
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
5334
5340
|
...n.defaultSettings,
|
|
5335
5341
|
...n.settings[t]
|
|
5336
5342
|
}, e), {}));
|
|
5337
|
-
return (n, r) => (E(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(E(!0), o(t, null, k(a.value, (t, n) => (E(), o("div", { key: t.node_id }, [u(
|
|
5343
|
+
return (n, r) => (E(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(E(!0), o(t, null, k(a.value, (t, n) => (E(), o("div", { key: t.node_id }, [u(ns, {
|
|
5338
5344
|
"is-last-root-item": n === a.value.length - 1,
|
|
5339
5345
|
"is-parent-path-open": !0,
|
|
5340
5346
|
"tree-open": c.value,
|
|
@@ -5357,15 +5363,15 @@ var ki = {
|
|
|
5357
5363
|
"onUpdate:children"
|
|
5358
5364
|
])]))), 128))], 2)]));
|
|
5359
5365
|
}
|
|
5360
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
5366
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), as = /* @__PURE__ */ d({
|
|
5361
5367
|
__name: "PvTreeGroup",
|
|
5362
5368
|
setup(e) {
|
|
5363
|
-
return
|
|
5369
|
+
return Vo(), (e, t) => A(e.$slots, "default");
|
|
5364
5370
|
}
|
|
5365
|
-
}),
|
|
5371
|
+
}), os = {
|
|
5366
5372
|
key: 0,
|
|
5367
5373
|
class: "pv-text-brand pv-text-title-sm pv-stack-4"
|
|
5368
|
-
},
|
|
5374
|
+
}, ss = ["data-disabled"], cs = /* @__PURE__ */ d({
|
|
5369
5375
|
__name: "PvProgressBar",
|
|
5370
5376
|
props: {
|
|
5371
5377
|
progress: {},
|
|
@@ -5374,19 +5380,19 @@ var ki = {
|
|
|
5374
5380
|
},
|
|
5375
5381
|
setup(e) {
|
|
5376
5382
|
let n = e;
|
|
5377
|
-
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p",
|
|
5383
|
+
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p", os, P(n.progress) + "% Complete", 1)) : a("", !0), s("div", {
|
|
5378
5384
|
class: "pv-progress-bar",
|
|
5379
5385
|
"data-disabled": n.disabled ? !0 : void 0,
|
|
5380
5386
|
style: x({ "--progress": `${n.progress}%` })
|
|
5381
|
-
}, null, 12,
|
|
5387
|
+
}, null, 12, ss)], 64));
|
|
5382
5388
|
}
|
|
5383
|
-
}),
|
|
5389
|
+
}), ls = {
|
|
5384
5390
|
class: "pv-flex",
|
|
5385
5391
|
style: {
|
|
5386
5392
|
"--flex-gap": "4px",
|
|
5387
5393
|
height: "24px"
|
|
5388
5394
|
}
|
|
5389
|
-
},
|
|
5395
|
+
}, us = /* @__PURE__ */ d({
|
|
5390
5396
|
__name: "PvDistributionBar",
|
|
5391
5397
|
props: { values: {} },
|
|
5392
5398
|
setup(e) {
|
|
@@ -5409,41 +5415,41 @@ var ki = {
|
|
|
5409
5415
|
default: return "pv-data-surface-visualization-1";
|
|
5410
5416
|
}
|
|
5411
5417
|
};
|
|
5412
|
-
return (n, r) => (E(), o("div",
|
|
5418
|
+
return (n, r) => (E(), o("div", ls, [(E(!0), o(t, null, k(e.values, (e, t) => (E(), o("div", {
|
|
5413
5419
|
key: t,
|
|
5414
5420
|
class: y([s(t)]),
|
|
5415
5421
|
style: x(a(e, t))
|
|
5416
5422
|
}, null, 6))), 128))]));
|
|
5417
5423
|
}
|
|
5418
|
-
}),
|
|
5424
|
+
}), ds = {
|
|
5419
5425
|
key: 0,
|
|
5420
5426
|
class: "pv-range-single-slider"
|
|
5421
|
-
},
|
|
5427
|
+
}, fs = [
|
|
5422
5428
|
"id",
|
|
5423
5429
|
"aria-label",
|
|
5424
5430
|
"disabled",
|
|
5425
5431
|
"max",
|
|
5426
5432
|
"min",
|
|
5427
5433
|
"step"
|
|
5428
|
-
],
|
|
5434
|
+
], ps = ["aria-label"], ms = {
|
|
5429
5435
|
key: 0,
|
|
5430
5436
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
5431
5437
|
style: { "line-height": "1" }
|
|
5432
|
-
},
|
|
5438
|
+
}, hs = [
|
|
5433
5439
|
"aria-label",
|
|
5434
5440
|
"disabled",
|
|
5435
5441
|
"max",
|
|
5436
5442
|
"min",
|
|
5437
5443
|
"step",
|
|
5438
5444
|
"value"
|
|
5439
|
-
],
|
|
5445
|
+
], gs = [
|
|
5440
5446
|
"aria-label",
|
|
5441
5447
|
"disabled",
|
|
5442
5448
|
"max",
|
|
5443
5449
|
"min",
|
|
5444
5450
|
"step",
|
|
5445
5451
|
"value"
|
|
5446
|
-
],
|
|
5452
|
+
], _s = {
|
|
5447
5453
|
key: 1,
|
|
5448
5454
|
class: "pv-flex",
|
|
5449
5455
|
style: {
|
|
@@ -5451,15 +5457,15 @@ var ki = {
|
|
|
5451
5457
|
"--flex-gap": "0.75rem",
|
|
5452
5458
|
"--flex-wrap": "wrap"
|
|
5453
5459
|
}
|
|
5454
|
-
},
|
|
5460
|
+
}, vs = { class: "pv-text-body-sm" }, ys = [
|
|
5455
5461
|
"disabled",
|
|
5456
5462
|
"step",
|
|
5457
5463
|
"value"
|
|
5458
|
-
],
|
|
5464
|
+
], bs = { class: "pv-text-body-sm" }, xs = [
|
|
5459
5465
|
"disabled",
|
|
5460
5466
|
"step",
|
|
5461
5467
|
"value"
|
|
5462
|
-
],
|
|
5468
|
+
], Ss = 0, Cs = 100, ws = /* @__PURE__ */ d({
|
|
5463
5469
|
inheritAttrs: !1,
|
|
5464
5470
|
__name: "PvRange",
|
|
5465
5471
|
props: /* @__PURE__ */ g({
|
|
@@ -5536,7 +5542,7 @@ var ki = {
|
|
|
5536
5542
|
}).format(e);
|
|
5537
5543
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
5538
5544
|
}, R = r(() => D(t.step)), z = r(() => R.value !== null && R.value > 0 ? R.value : 0), B = r(() => z.value > 0 ? String(z.value) : "any"), te = r(() => R.value === null ? "1" : R.value > 0 ? String(R.value) : "any"), ne = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), re = r(() => {
|
|
5539
|
-
let e = D(t.min) ??
|
|
5545
|
+
let e = D(t.min) ?? Ss, n = D(t.max) ?? Cs;
|
|
5540
5546
|
return e > n ? {
|
|
5541
5547
|
max: e,
|
|
5542
5548
|
min: n
|
|
@@ -5562,7 +5568,7 @@ var ki = {
|
|
|
5562
5568
|
}
|
|
5563
5569
|
return t.split(".")[1]?.length ?? 0;
|
|
5564
5570
|
}, K = r(() => {
|
|
5565
|
-
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(
|
|
5571
|
+
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(Ss, r ?? Ss, i ?? Ss), o = n ?? Math.max(Cs, r ?? Cs, i ?? Cs);
|
|
5566
5572
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (z.value > 0 ? z.value : 1)), {
|
|
5567
5573
|
max: o,
|
|
5568
5574
|
min: a
|
|
@@ -5603,7 +5609,7 @@ var ki = {
|
|
|
5603
5609
|
"--range-track-color": ne.value,
|
|
5604
5610
|
"--value-max": `${he.value}%`,
|
|
5605
5611
|
"--value-min": `${me.value}%`
|
|
5606
|
-
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), be = () => D(t.min) !== null || K.value.min ===
|
|
5612
|
+
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), be = () => D(t.min) !== null || K.value.min === Ss, xe = () => D(t.max) !== null || K.value.max === Cs, Se = (e, t) => {
|
|
5607
5613
|
c.value = {
|
|
5608
5614
|
max: t >= K.value.max && xe() ? null : t,
|
|
5609
5615
|
min: e <= K.value.min && be() ? null : e
|
|
@@ -5676,7 +5682,7 @@ var ki = {
|
|
|
5676
5682
|
};
|
|
5677
5683
|
return H([Y, K], Ne, { immediate: !0 }), S(() => {
|
|
5678
5684
|
Be(), Oe();
|
|
5679
|
-
}), (r, c) => e.mode === "single" ? (E(), o("div",
|
|
5685
|
+
}), (r, c) => e.mode === "single" ? (E(), o("div", ds, [e.showValueTooltips && v.value ? (E(), o("span", {
|
|
5680
5686
|
key: 0,
|
|
5681
5687
|
class: "pv-range-tooltip",
|
|
5682
5688
|
style: x(oe.value)
|
|
@@ -5693,7 +5699,7 @@ var ki = {
|
|
|
5693
5699
|
onChange: ke,
|
|
5694
5700
|
onPointerdown: Ae,
|
|
5695
5701
|
onPointerup: ke
|
|
5696
|
-
}), null, 16,
|
|
5702
|
+
}), null, 16, fs), [[
|
|
5697
5703
|
V,
|
|
5698
5704
|
n.value,
|
|
5699
5705
|
void 0,
|
|
@@ -5708,7 +5714,7 @@ var ki = {
|
|
|
5708
5714
|
"--flex-gap": "0"
|
|
5709
5715
|
}
|
|
5710
5716
|
}), [
|
|
5711
|
-
e.showBoundLabels ? (E(), o("div",
|
|
5717
|
+
e.showBoundLabels ? (E(), o("div", ms, [s("span", null, P(N(K.value.min)), 1), s("span", null, P(N(K.value.max)), 1)])) : a("", !0),
|
|
5712
5718
|
s("div", {
|
|
5713
5719
|
ref_key: "sliderRef",
|
|
5714
5720
|
ref: b,
|
|
@@ -5740,7 +5746,7 @@ var ki = {
|
|
|
5740
5746
|
onInput: je,
|
|
5741
5747
|
onPointerdown: c[1] ||= (e) => Ee("min"),
|
|
5742
5748
|
onPointerup: Te
|
|
5743
|
-
}, null, 40,
|
|
5749
|
+
}, null, 40, hs),
|
|
5744
5750
|
s("input", {
|
|
5745
5751
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
5746
5752
|
type: "range",
|
|
@@ -5754,9 +5760,9 @@ var ki = {
|
|
|
5754
5760
|
onInput: Me,
|
|
5755
5761
|
onPointerdown: c[2] ||= (e) => Ee("max"),
|
|
5756
5762
|
onPointerup: Te
|
|
5757
|
-
}, null, 40,
|
|
5763
|
+
}, null, 40, gs)
|
|
5758
5764
|
], 38),
|
|
5759
|
-
e.showInputs ? (E(), o("div",
|
|
5765
|
+
e.showInputs ? (E(), o("div", _s, [
|
|
5760
5766
|
s("label", {
|
|
5761
5767
|
class: "pv-flex-vertical",
|
|
5762
5768
|
for: f,
|
|
@@ -5767,7 +5773,7 @@ var ki = {
|
|
|
5767
5773
|
"max-width": "75px",
|
|
5768
5774
|
"min-width": "0"
|
|
5769
5775
|
}
|
|
5770
|
-
}, [s("span",
|
|
5776
|
+
}, [s("span", vs, P(e.minLabel), 1), s("input", {
|
|
5771
5777
|
id: f,
|
|
5772
5778
|
class: "pv-input-text",
|
|
5773
5779
|
disabled: e.disabled,
|
|
@@ -5781,7 +5787,7 @@ var ki = {
|
|
|
5781
5787
|
onFocus: c[4] ||= (e) => Ie("min"),
|
|
5782
5788
|
onInput: Fe,
|
|
5783
5789
|
onKeydown: c[5] ||= ae((e) => Le(e, "min"), ["enter"])
|
|
5784
|
-
}, null, 40,
|
|
5790
|
+
}, null, 40, ys)]),
|
|
5785
5791
|
s("label", {
|
|
5786
5792
|
class: "pv-flex-vertical",
|
|
5787
5793
|
for: d,
|
|
@@ -5792,7 +5798,7 @@ var ki = {
|
|
|
5792
5798
|
"max-width": "75px",
|
|
5793
5799
|
"min-width": "0"
|
|
5794
5800
|
}
|
|
5795
|
-
}, [s("span",
|
|
5801
|
+
}, [s("span", bs, P(e.maxLabel), 1), s("input", {
|
|
5796
5802
|
id: d,
|
|
5797
5803
|
class: "pv-input-text",
|
|
5798
5804
|
disabled: e.disabled,
|
|
@@ -5806,7 +5812,7 @@ var ki = {
|
|
|
5806
5812
|
onFocus: c[7] ||= (e) => Ie("max"),
|
|
5807
5813
|
onInput: X,
|
|
5808
5814
|
onKeydown: c[8] ||= ae((e) => Le(e, "max"), ["enter"])
|
|
5809
|
-
}, null, 40,
|
|
5815
|
+
}, null, 40, xs)]),
|
|
5810
5816
|
e.showClear && ye.value ? (E(), i(Q, {
|
|
5811
5817
|
key: 0,
|
|
5812
5818
|
class: "pv-text-brand",
|
|
@@ -5823,21 +5829,21 @@ var ki = {
|
|
|
5823
5829
|
variant: "ghost",
|
|
5824
5830
|
onClick: De
|
|
5825
5831
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
5826
|
-
], 16,
|
|
5832
|
+
], 16, ps));
|
|
5827
5833
|
}
|
|
5828
|
-
}),
|
|
5834
|
+
}), Ts = {
|
|
5829
5835
|
key: 1,
|
|
5830
5836
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
5831
|
-
},
|
|
5837
|
+
}, Es = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Ds = {
|
|
5832
5838
|
key: 0,
|
|
5833
5839
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
5834
|
-
},
|
|
5840
|
+
}, Os = {
|
|
5835
5841
|
key: 1,
|
|
5836
5842
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
5837
|
-
},
|
|
5843
|
+
}, ks = {
|
|
5838
5844
|
key: 2,
|
|
5839
5845
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
5840
|
-
},
|
|
5846
|
+
}, As = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5841
5847
|
__name: "PvFilterPanelOptionRow",
|
|
5842
5848
|
props: {
|
|
5843
5849
|
ariaLabel: {},
|
|
@@ -5897,7 +5903,7 @@ var ki = {
|
|
|
5897
5903
|
"data-testid": "pv-filter-panel-option-row",
|
|
5898
5904
|
style: x(m.value)
|
|
5899
5905
|
}, [
|
|
5900
|
-
u(
|
|
5906
|
+
u(Za, {
|
|
5901
5907
|
ariaLabel: e.ariaLabel || e.label,
|
|
5902
5908
|
disabled: e.disabled,
|
|
5903
5909
|
indeterminate: e.indeterminate,
|
|
@@ -5909,12 +5915,12 @@ var ki = {
|
|
|
5909
5915
|
"indeterminate",
|
|
5910
5916
|
"modelValue"
|
|
5911
5917
|
]),
|
|
5912
|
-
e.renderer ? (E(), i(M(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span",
|
|
5913
|
-
s("span",
|
|
5914
|
-
e.subduedText ? (E(), o("span",
|
|
5915
|
-
e.subText ? (E(), o("span",
|
|
5918
|
+
e.renderer ? (E(), i(M(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span", Ts, [
|
|
5919
|
+
s("span", Es, P(e.label), 1),
|
|
5920
|
+
e.subduedText ? (E(), o("span", Ds, P(e.subduedText), 1)) : a("", !0),
|
|
5921
|
+
e.subText ? (E(), o("span", Os, P(e.subText), 1)) : a("", !0)
|
|
5916
5922
|
])),
|
|
5917
|
-
p.value ? (E(), o("span",
|
|
5923
|
+
p.value ? (E(), o("span", ks, [A(t.$slots, "result-count", {}, () => [l("(" + P(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
5918
5924
|
e.showFocusAction ? (E(), i(Q, {
|
|
5919
5925
|
key: 3,
|
|
5920
5926
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -5930,26 +5936,26 @@ var ki = {
|
|
|
5930
5936
|
])) : a("", !0)
|
|
5931
5937
|
], 6));
|
|
5932
5938
|
}
|
|
5933
|
-
}), [["__scopeId", "data-v-7e00be1a"]]),
|
|
5939
|
+
}), [["__scopeId", "data-v-7e00be1a"]]), js = [
|
|
5934
5940
|
"totalCount",
|
|
5935
5941
|
"total_count",
|
|
5936
5942
|
"resultCount",
|
|
5937
5943
|
"result_count",
|
|
5938
5944
|
"row_count",
|
|
5939
5945
|
"count"
|
|
5940
|
-
],
|
|
5946
|
+
], Ms = new Intl.NumberFormat("en-US", {
|
|
5941
5947
|
maximumFractionDigits: 1,
|
|
5942
5948
|
notation: "compact"
|
|
5943
|
-
}),
|
|
5944
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
5949
|
+
}), Ns = (e) => typeof e == "object" && !!e, Ps = (e) => {
|
|
5950
|
+
if (typeof e == "number" && Number.isFinite(e)) return Ms.format(e);
|
|
5945
5951
|
if (typeof e == "string") {
|
|
5946
5952
|
let t = e.trim();
|
|
5947
5953
|
if (!t) return;
|
|
5948
5954
|
let n = Number(t);
|
|
5949
|
-
return Number.isFinite(n) ?
|
|
5955
|
+
return Number.isFinite(n) ? Ms.format(n) : e;
|
|
5950
5956
|
}
|
|
5951
|
-
},
|
|
5952
|
-
let n =
|
|
5957
|
+
}, Fs = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), Is = (e, t = {}) => {
|
|
5958
|
+
let n = Fs(t.dataType, t.valueDecimals);
|
|
5953
5959
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
5954
5960
|
currency: "USD",
|
|
5955
5961
|
maximumFractionDigits: n,
|
|
@@ -5961,11 +5967,11 @@ var ki = {
|
|
|
5961
5967
|
minimumFractionDigits: n
|
|
5962
5968
|
}).format(e);
|
|
5963
5969
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
5964
|
-
},
|
|
5970
|
+
}, Ls = (e, t, n = {}) => e !== null && t !== null ? `${Is(e, n)}–${Is(t, n)}` : e === null ? t === null ? "" : `≤ ${Is(t, n)}` : `${Is(e, n)}+`, Rs = (e, t) => {
|
|
5965
5971
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
5966
5972
|
if (!n) return null;
|
|
5967
5973
|
try {
|
|
5968
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
5974
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : Ns(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
5969
5975
|
return n({
|
|
5970
5976
|
context: e.metadata,
|
|
5971
5977
|
value: t
|
|
@@ -5973,24 +5979,24 @@ var ki = {
|
|
|
5973
5979
|
} catch {
|
|
5974
5980
|
return null;
|
|
5975
5981
|
}
|
|
5976
|
-
},
|
|
5982
|
+
}, zs = (e, t) => {
|
|
5977
5983
|
let n = e.metadata;
|
|
5978
|
-
if (!
|
|
5984
|
+
if (!Ns(n)) return null;
|
|
5979
5985
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
5980
5986
|
let t = n[e];
|
|
5981
5987
|
if (t != null && String(t).trim()) return String(t);
|
|
5982
5988
|
}
|
|
5983
5989
|
return null;
|
|
5984
|
-
},
|
|
5985
|
-
let t =
|
|
5990
|
+
}, Bs = (e, t) => e.label || zs(e, t) || Rs(e, t) || e.value, Vs = (e) => {
|
|
5991
|
+
let t = Ps(e?.resultCount);
|
|
5986
5992
|
if (t !== void 0) return t;
|
|
5987
5993
|
let n = e?.metadata;
|
|
5988
|
-
if (
|
|
5989
|
-
let t =
|
|
5994
|
+
if (Ns(n)) for (let e of js) {
|
|
5995
|
+
let t = Ps(n[e]);
|
|
5990
5996
|
if (t !== void 0) return t;
|
|
5991
5997
|
}
|
|
5992
|
-
return
|
|
5993
|
-
},
|
|
5998
|
+
return Ps(e?.totalChildCount);
|
|
5999
|
+
}, Hs = "__pv_filter_panel_scoped_value__", Us = (e) => typeof e == "object" && !!e, Ws = (e) => {
|
|
5994
6000
|
try {
|
|
5995
6001
|
let t = JSON.parse(decodeURIComponent(e));
|
|
5996
6002
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -6004,7 +6010,7 @@ var ki = {
|
|
|
6004
6010
|
} catch {
|
|
6005
6011
|
return [];
|
|
6006
6012
|
}
|
|
6007
|
-
},
|
|
6013
|
+
}, Gs = (e) => {
|
|
6008
6014
|
if (!e.startsWith("__")) return null;
|
|
6009
6015
|
let t = e.slice(2).split("__");
|
|
6010
6016
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -6017,76 +6023,76 @@ var ki = {
|
|
|
6017
6023
|
pairs: n,
|
|
6018
6024
|
value: n[0].value
|
|
6019
6025
|
};
|
|
6020
|
-
},
|
|
6026
|
+
}, Ks = (e) => {
|
|
6021
6027
|
if (e == null) return null;
|
|
6022
|
-
if (!e.startsWith(
|
|
6028
|
+
if (!e.startsWith(Hs)) return Gs(e) ?? {
|
|
6023
6029
|
pairs: [],
|
|
6024
6030
|
value: e
|
|
6025
6031
|
};
|
|
6026
|
-
let t =
|
|
6032
|
+
let t = Ws(e.slice(32));
|
|
6027
6033
|
return {
|
|
6028
6034
|
field: t[0]?.field,
|
|
6029
6035
|
pairs: t,
|
|
6030
6036
|
value: t[0]?.value ?? e
|
|
6031
6037
|
};
|
|
6032
|
-
},
|
|
6038
|
+
}, qs = (e, t) => `${Hs}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Js = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : Us(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) : Ks(e.value)?.value ?? e.value : null, Ys = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Ks(e?.value)?.field ?? t, Xs = (e) => e.flatMap((e) => [e, ...e.children?.length ? Xs(e.children) : []]), Zs = (e, t, n, r) => Ys(e, r) === t && Js(e) === n, Qs = (e) => {
|
|
6033
6039
|
let t = e;
|
|
6034
6040
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
6035
|
-
},
|
|
6041
|
+
}, $s = (e) => {
|
|
6036
6042
|
let t = e;
|
|
6037
|
-
return
|
|
6043
|
+
return Qs(e) ? {
|
|
6038
6044
|
...t,
|
|
6039
|
-
conditions: (t.conditions ?? []).map(
|
|
6045
|
+
conditions: (t.conditions ?? []).map($s)
|
|
6040
6046
|
} : { ...t };
|
|
6041
|
-
},
|
|
6047
|
+
}, ec = (e, t) => {
|
|
6042
6048
|
if (!e) return null;
|
|
6043
6049
|
let n = t instanceof Set ? t : new Set(t);
|
|
6044
|
-
if (!n.size) return
|
|
6045
|
-
if (
|
|
6050
|
+
if (!n.size) return $s(e);
|
|
6051
|
+
if (!Qs(e)) {
|
|
6046
6052
|
let t = e;
|
|
6047
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
6053
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : $s(e);
|
|
6048
6054
|
}
|
|
6049
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
6055
|
+
let r = e, i = (r.conditions ?? []).map((e) => ec(e, n)).filter((e) => !!e);
|
|
6050
6056
|
return i.length ? i.length === 1 ? i[0] : {
|
|
6051
6057
|
...r,
|
|
6052
6058
|
conditions: i
|
|
6053
6059
|
} : null;
|
|
6054
|
-
},
|
|
6060
|
+
}, tc = (e) => e ? [e.field, ...(e.children ?? []).flatMap(tc)] : [], nc = (e) => e ? e.children?.length ? e.children.flatMap(nc) : [e.field] : [], rc = (e) => {
|
|
6055
6061
|
let t = e?.context ?? {};
|
|
6056
|
-
return t.aggregateFieldHierarchy ?
|
|
6057
|
-
},
|
|
6062
|
+
return t.aggregateFieldHierarchy ? tc(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
6063
|
+
}, ic = (e) => {
|
|
6058
6064
|
let t = e?.context ?? {};
|
|
6059
6065
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6060
|
-
},
|
|
6066
|
+
}, ac = (e) => rc(e).length > 0, oc = (e, t) => {
|
|
6061
6067
|
for (let n of e ?? []) {
|
|
6062
6068
|
if (!n) continue;
|
|
6063
6069
|
if (n.value === t) return n;
|
|
6064
|
-
let e =
|
|
6070
|
+
let e = oc(n.children, t);
|
|
6065
6071
|
if (e) return e;
|
|
6066
6072
|
}
|
|
6067
|
-
},
|
|
6073
|
+
}, sc = (e, t, n = []) => {
|
|
6068
6074
|
for (let r of e ?? []) {
|
|
6069
6075
|
if (!r) continue;
|
|
6070
6076
|
let e = [...n, r];
|
|
6071
6077
|
if (r.value === t) return e;
|
|
6072
|
-
let i =
|
|
6078
|
+
let i = sc(r.children, t, e);
|
|
6073
6079
|
if (i) return i;
|
|
6074
6080
|
}
|
|
6075
|
-
},
|
|
6076
|
-
let n =
|
|
6081
|
+
}, cc = (e, t) => {
|
|
6082
|
+
let n = oc(t, e), r = n ? Ys(n, "") : void 0, i = n ? Js(n) : null;
|
|
6077
6083
|
if (r && i !== null) return {
|
|
6078
6084
|
field: r,
|
|
6079
6085
|
value: i
|
|
6080
6086
|
};
|
|
6081
|
-
let a =
|
|
6087
|
+
let a = Ks(e);
|
|
6082
6088
|
return {
|
|
6083
6089
|
field: a?.field,
|
|
6084
6090
|
value: a?.value ?? e
|
|
6085
6091
|
};
|
|
6086
|
-
},
|
|
6092
|
+
}, lc = (e, t, n) => {
|
|
6087
6093
|
let r = (e) => {
|
|
6088
6094
|
if (!e) return;
|
|
6089
|
-
let i =
|
|
6095
|
+
let i = Ys(e, ""), a = Js(e);
|
|
6090
6096
|
if (i === t && a === n) return e.value;
|
|
6091
6097
|
for (let t of e.children ?? []) {
|
|
6092
6098
|
let e = r(t);
|
|
@@ -6098,9 +6104,9 @@ var ki = {
|
|
|
6098
6104
|
if (e) return e;
|
|
6099
6105
|
}
|
|
6100
6106
|
return `__${t}__${n}`;
|
|
6101
|
-
},
|
|
6107
|
+
}, uc = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...uc(e.children)]), dc = (e, t) => {
|
|
6102
6108
|
if (e.state !== "selected") return null;
|
|
6103
|
-
let { field: n, value: r } =
|
|
6109
|
+
let { field: n, value: r } = cc(e.id, t);
|
|
6104
6110
|
if (!n) return null;
|
|
6105
6111
|
let i = [{
|
|
6106
6112
|
colId: n,
|
|
@@ -6108,8 +6114,8 @@ var ki = {
|
|
|
6108
6114
|
filterType: "text",
|
|
6109
6115
|
type: "equals"
|
|
6110
6116
|
}];
|
|
6111
|
-
for (let n of
|
|
6112
|
-
let e =
|
|
6117
|
+
for (let n of uc(e.children)) {
|
|
6118
|
+
let e = cc(n.id, t);
|
|
6113
6119
|
e.field && i.push({
|
|
6114
6120
|
colId: e.field,
|
|
6115
6121
|
filter: e.value,
|
|
@@ -6122,10 +6128,10 @@ var ki = {
|
|
|
6122
6128
|
filterType: "join",
|
|
6123
6129
|
type: "AND"
|
|
6124
6130
|
};
|
|
6125
|
-
},
|
|
6126
|
-
let t =
|
|
6131
|
+
}, fc = (e) => {
|
|
6132
|
+
let t = rc(e.colDef), n = ec(e.baseModel, t);
|
|
6127
6133
|
if (!t.length) return n;
|
|
6128
|
-
let r = e.state.map((t) =>
|
|
6134
|
+
let r = e.state.map((t) => dc(t, e.options)).filter((e) => !!e);
|
|
6129
6135
|
if (!r.length) return n;
|
|
6130
6136
|
let i = r.length === 1 ? r[0] : {
|
|
6131
6137
|
conditions: r,
|
|
@@ -6137,17 +6143,17 @@ var ki = {
|
|
|
6137
6143
|
filterType: "join",
|
|
6138
6144
|
type: "AND"
|
|
6139
6145
|
} : i;
|
|
6140
|
-
},
|
|
6146
|
+
}, pc = (e, t, n) => {
|
|
6141
6147
|
if (!e) return [];
|
|
6142
6148
|
let r = e;
|
|
6143
|
-
if (
|
|
6149
|
+
if (Qs(e)) {
|
|
6144
6150
|
let e = r.conditions ?? [];
|
|
6145
6151
|
if (r.type === "AND") {
|
|
6146
6152
|
let r = e.find((e) => {
|
|
6147
6153
|
let r = e;
|
|
6148
6154
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
6149
6155
|
});
|
|
6150
|
-
return e.flatMap((e) =>
|
|
6156
|
+
return e.flatMap((e) => pc(e, t, n).map((e) => ({
|
|
6151
6157
|
...e,
|
|
6152
6158
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
6153
6159
|
colId: r.colId,
|
|
@@ -6155,20 +6161,20 @@ var ki = {
|
|
|
6155
6161
|
} : void 0)
|
|
6156
6162
|
})));
|
|
6157
6163
|
}
|
|
6158
|
-
return e.flatMap((e) =>
|
|
6164
|
+
return e.flatMap((e) => pc(e, t, n));
|
|
6159
6165
|
}
|
|
6160
6166
|
return r.colId && t.has(r.colId) ? [{
|
|
6161
6167
|
colId: r.colId,
|
|
6162
6168
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
6163
6169
|
type: r.type
|
|
6164
6170
|
}] : [];
|
|
6165
|
-
},
|
|
6166
|
-
let t =
|
|
6171
|
+
}, mc = (e) => {
|
|
6172
|
+
let t = rc(e.colDef);
|
|
6167
6173
|
if (!t.length) return [];
|
|
6168
|
-
let n = new Set(
|
|
6174
|
+
let n = new Set(nc(e.colDef.context?.aggregateFieldHierarchy)), r = ic(e.colDef), i = pc(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
6169
6175
|
for (let t of i) {
|
|
6170
6176
|
if (!t.filter) continue;
|
|
6171
|
-
let n =
|
|
6177
|
+
let n = lc(e.options, t.colId, String(t.filter));
|
|
6172
6178
|
if (t.type === "equals") {
|
|
6173
6179
|
let e = a.get(n);
|
|
6174
6180
|
a.set(n, {
|
|
@@ -6179,7 +6185,7 @@ var ki = {
|
|
|
6179
6185
|
continue;
|
|
6180
6186
|
}
|
|
6181
6187
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
6182
|
-
let r =
|
|
6188
|
+
let r = lc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
6183
6189
|
children: [],
|
|
6184
6190
|
id: r,
|
|
6185
6191
|
state: "selected"
|
|
@@ -6191,150 +6197,150 @@ var ki = {
|
|
|
6191
6197
|
}
|
|
6192
6198
|
}
|
|
6193
6199
|
return [...a.values()];
|
|
6194
|
-
},
|
|
6195
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
6200
|
+
}, hc = (e) => {
|
|
6201
|
+
let t = /* @__PURE__ */ new Map(), n = rc(e.colDef);
|
|
6196
6202
|
if (!n.length) return t;
|
|
6197
|
-
let r =
|
|
6203
|
+
let r = pc(e.model, new Set(n), new Set(nc(e.colDef.context?.aggregateFieldHierarchy)));
|
|
6198
6204
|
for (let e of r) {
|
|
6199
6205
|
if (e.type !== "equals" || !e.filter) continue;
|
|
6200
6206
|
let n = t.get(e.colId) ?? [];
|
|
6201
6207
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
6202
6208
|
}
|
|
6203
6209
|
return t;
|
|
6204
|
-
},
|
|
6210
|
+
}, gc = (e) => e.map((e) => ({
|
|
6205
6211
|
...e,
|
|
6206
6212
|
children: e.children?.map((e) => ({
|
|
6207
6213
|
...e,
|
|
6208
|
-
children: e.children ?
|
|
6214
|
+
children: e.children ? gc(e.children) : void 0
|
|
6209
6215
|
}))
|
|
6210
|
-
})),
|
|
6216
|
+
})), _c = (e, t) => e.flatMap((e) => {
|
|
6211
6217
|
if (e.id === t) return [];
|
|
6212
|
-
let n = e.children ?
|
|
6218
|
+
let n = e.children ? _c(e.children, t) : void 0;
|
|
6213
6219
|
return [{
|
|
6214
6220
|
...e,
|
|
6215
6221
|
children: n?.length ? n : void 0
|
|
6216
6222
|
}];
|
|
6217
|
-
}),
|
|
6223
|
+
}), vc = (e, t) => {
|
|
6218
6224
|
for (let n of e) {
|
|
6219
6225
|
if (n.id === t) return n;
|
|
6220
|
-
let e = n.children ?
|
|
6226
|
+
let e = n.children ? vc(n.children, t) : void 0;
|
|
6221
6227
|
if (e) return e;
|
|
6222
6228
|
}
|
|
6223
|
-
},
|
|
6224
|
-
let r = (
|
|
6229
|
+
}, yc = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, bc = (e, t) => [..._c(e, t.id), t], xc = (e) => (e.children ?? []).flatMap((e) => [e.value, ...xc(e)]), Sc = (e, t) => xc(t).reduce((e, t) => _c(e, t), e), Cc = (e, t) => [t.value, ...xc(t)].reduce((e, t) => _c(e, t), e), wc = (e, t, n) => {
|
|
6230
|
+
let r = (sc(n, t.value) ?? []).slice(0, -1).reverse();
|
|
6225
6231
|
for (let t of r) {
|
|
6226
|
-
let n =
|
|
6232
|
+
let n = vc(e, t.value);
|
|
6227
6233
|
if (n?.state === "selected") return n;
|
|
6228
6234
|
}
|
|
6229
|
-
},
|
|
6230
|
-
let t =
|
|
6235
|
+
}, Tc = (e) => {
|
|
6236
|
+
let t = gc(e.state), n = wc(t, e.option, e.options);
|
|
6231
6237
|
if (n) {
|
|
6232
6238
|
let r = n.children ?? [];
|
|
6233
|
-
return n.children = e.checked ?
|
|
6239
|
+
return n.children = e.checked ? Cc(r, e.option) : [...Cc(r, e.option), {
|
|
6234
6240
|
id: e.option.value,
|
|
6235
6241
|
state: "deselected"
|
|
6236
6242
|
}], n.children.length || delete n.children, t;
|
|
6237
6243
|
}
|
|
6238
|
-
return
|
|
6244
|
+
return yc(e.option) ? e.checked ? bc(Sc(t, e.option), {
|
|
6239
6245
|
id: e.option.value,
|
|
6240
6246
|
state: "selected"
|
|
6241
|
-
}) :
|
|
6247
|
+
}) : _c(t, e.option.value) : e.checked ? bc(t, {
|
|
6242
6248
|
id: e.option.value,
|
|
6243
6249
|
state: "selected"
|
|
6244
|
-
}) :
|
|
6245
|
-
},
|
|
6250
|
+
}) : _c(t, e.option.value);
|
|
6251
|
+
}, Ec = (e) => {
|
|
6246
6252
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
6247
6253
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
6248
6254
|
};
|
|
6249
6255
|
return n(e), t;
|
|
6250
|
-
},
|
|
6251
|
-
let t =
|
|
6256
|
+
}, Dc = (e) => {
|
|
6257
|
+
let t = Ec(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
6252
6258
|
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 = {
|
|
6253
|
-
indeterminate:
|
|
6259
|
+
indeterminate: uc(a?.children).length > 0 || !o && c || o && l,
|
|
6254
6260
|
selected: o
|
|
6255
6261
|
};
|
|
6256
6262
|
return n.set(e.value, u), u;
|
|
6257
6263
|
};
|
|
6258
6264
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
6259
6265
|
return n;
|
|
6260
|
-
},
|
|
6266
|
+
}, Oc = (e) => Dc(e).get(e.option.value) ?? Dc({
|
|
6261
6267
|
options: [e.option],
|
|
6262
6268
|
state: e.state
|
|
6263
6269
|
}).get(e.option.value) ?? {
|
|
6264
6270
|
indeterminate: !1,
|
|
6265
6271
|
selected: !1
|
|
6266
|
-
},
|
|
6272
|
+
}, kc = (e) => e.state.flatMap((t) => {
|
|
6267
6273
|
if (t.state !== "selected") return [];
|
|
6268
|
-
let n =
|
|
6274
|
+
let n = oc(e.options, t.id);
|
|
6269
6275
|
if (n) return [n];
|
|
6270
|
-
let { field: r, value: i } =
|
|
6276
|
+
let { field: r, value: i } = cc(t.id, e.options);
|
|
6271
6277
|
return [{
|
|
6272
6278
|
colField: r,
|
|
6273
6279
|
label: i,
|
|
6274
6280
|
metadata: { rawValue: i },
|
|
6275
|
-
value: r ?
|
|
6281
|
+
value: r ? qs(r, i) : t.id
|
|
6276
6282
|
}];
|
|
6277
|
-
}),
|
|
6283
|
+
}), Ac = (e) => e.filter((e) => e.state === "selected").length, jc = ["open"], Mc = {
|
|
6278
6284
|
class: "pv-flex pv-text-body-md",
|
|
6279
6285
|
style: {
|
|
6280
6286
|
"--flex-align": "center",
|
|
6281
6287
|
"--flex-gap": "0.5rem"
|
|
6282
6288
|
}
|
|
6283
|
-
},
|
|
6289
|
+
}, Nc = {
|
|
6284
6290
|
class: "pv-flex-vertical pv-surface-accent pv-inset-inline-24",
|
|
6285
6291
|
style: { "--flex-align": "stretch" }
|
|
6286
|
-
},
|
|
6292
|
+
}, Pc = {
|
|
6287
6293
|
key: 0,
|
|
6288
6294
|
class: "pv-flex-vertical",
|
|
6289
6295
|
style: {
|
|
6290
6296
|
"--flex-align": "stretch",
|
|
6291
6297
|
"--flex-gap": "0.5rem"
|
|
6292
6298
|
}
|
|
6293
|
-
},
|
|
6299
|
+
}, Fc = {
|
|
6294
6300
|
key: 0,
|
|
6295
6301
|
class: "pv-flex",
|
|
6296
6302
|
style: {
|
|
6297
6303
|
"--flex-gap": "0.5rem",
|
|
6298
6304
|
"--flex-wrap": "wrap"
|
|
6299
6305
|
}
|
|
6300
|
-
},
|
|
6306
|
+
}, Ic = {
|
|
6301
6307
|
key: 1,
|
|
6302
6308
|
class: "pv-flex",
|
|
6303
6309
|
style: { "--flex-justify": "flex-end" }
|
|
6304
|
-
},
|
|
6310
|
+
}, Lc = {
|
|
6305
6311
|
key: 2,
|
|
6306
6312
|
class: "pv-flex-vertical",
|
|
6307
6313
|
style: {
|
|
6308
6314
|
"--flex-align": "stretch",
|
|
6309
6315
|
"--flex-gap": "0.5rem"
|
|
6310
6316
|
}
|
|
6311
|
-
},
|
|
6317
|
+
}, Rc = { key: 3 }, zc = {
|
|
6312
6318
|
key: 1,
|
|
6313
6319
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6314
6320
|
style: { margin: "0" }
|
|
6315
|
-
},
|
|
6321
|
+
}, Bc = {
|
|
6316
6322
|
key: 1,
|
|
6317
6323
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6318
6324
|
style: { margin: "0" }
|
|
6319
|
-
},
|
|
6325
|
+
}, Vc = {
|
|
6320
6326
|
key: 2,
|
|
6321
6327
|
class: "pv-flex-vertical",
|
|
6322
6328
|
style: {
|
|
6323
6329
|
"--flex-align": "stretch",
|
|
6324
6330
|
"--flex-gap": "0.5rem"
|
|
6325
6331
|
}
|
|
6326
|
-
},
|
|
6332
|
+
}, Hc = { key: 0 }, Uc = {
|
|
6327
6333
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
6328
6334
|
style: { margin: "0" }
|
|
6329
|
-
},
|
|
6335
|
+
}, Wc = {
|
|
6330
6336
|
key: 1,
|
|
6331
6337
|
class: "pv-text-title-sm pv-text-subdued",
|
|
6332
6338
|
style: { margin: "0" }
|
|
6333
|
-
},
|
|
6339
|
+
}, Gc = {
|
|
6334
6340
|
key: 2,
|
|
6335
6341
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6336
6342
|
style: { margin: "0" }
|
|
6337
|
-
},
|
|
6343
|
+
}, Kc = {
|
|
6338
6344
|
key: 3,
|
|
6339
6345
|
class: "pv-flex-vertical",
|
|
6340
6346
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -6342,14 +6348,14 @@ var ki = {
|
|
|
6342
6348
|
"--flex-align": "stretch",
|
|
6343
6349
|
"--flex-gap": "0.5rem"
|
|
6344
6350
|
}
|
|
6345
|
-
},
|
|
6351
|
+
}, qc = {
|
|
6346
6352
|
class: "pv-flex",
|
|
6347
6353
|
style: {
|
|
6348
6354
|
"--flex-align": "center",
|
|
6349
6355
|
"--flex-gap": "0.5rem",
|
|
6350
6356
|
"--flex-wrap": "wrap"
|
|
6351
6357
|
}
|
|
6352
|
-
},
|
|
6358
|
+
}, Jc = {
|
|
6353
6359
|
key: 4,
|
|
6354
6360
|
class: "pv-flex",
|
|
6355
6361
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -6358,7 +6364,7 @@ var ki = {
|
|
|
6358
6364
|
"--flex-gap": "0.5rem",
|
|
6359
6365
|
cursor: "pointer"
|
|
6360
6366
|
}
|
|
6361
|
-
},
|
|
6367
|
+
}, Yc = { class: "pv-text-body-sm" }, Xc = 5, Zc = 500, Qc = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
6362
6368
|
__name: "PvFilterPanelAccordion",
|
|
6363
6369
|
props: { filter: {} },
|
|
6364
6370
|
emits: [
|
|
@@ -6370,7 +6376,7 @@ var ki = {
|
|
|
6370
6376
|
"search-change"
|
|
6371
6377
|
],
|
|
6372
6378
|
setup(e, { emit: n }) {
|
|
6373
|
-
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(
|
|
6379
|
+
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(Xc), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), v = r(() => c.filter.options ?? []), y = r(() => [...c.filter.knownOptions ?? [], ...v.value]), S = r(() => c.filter.type ?? "value"), C = r(() => S.value === "value"), w = r(() => C.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), D = r(() => p.value.trim().toLowerCase()), A = r(() => c.filter.selectedValues ?? []), j = r(() => new Set(A.value)), N = r(() => c.filter.valueLabels?.true ?? "Yes"), F = r(() => c.filter.filterOptionsSortDescription || "Suggested"), ee = (e) => {
|
|
6374
6380
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
6375
6381
|
return [
|
|
6376
6382
|
e.value,
|
|
@@ -6380,7 +6386,7 @@ var ki = {
|
|
|
6380
6386
|
e.matchedValue,
|
|
6381
6387
|
e.matchedField
|
|
6382
6388
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
6383
|
-
}, I = r(() => S.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : S.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : S.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ?
|
|
6389
|
+
}, I = r(() => S.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : S.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : S.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ? Ac(T.value) || void 0 : A.value.length || void 0), L = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), R = (e, t = 0) => e.flatMap((e) => [
|
|
6384
6390
|
{
|
|
6385
6391
|
depth: t,
|
|
6386
6392
|
kind: "option",
|
|
@@ -6398,16 +6404,16 @@ var ki = {
|
|
|
6398
6404
|
}), B = r(() => w.value ? [] : A.value.map((e) => f.value[e] ?? {
|
|
6399
6405
|
label: e,
|
|
6400
6406
|
value: e
|
|
6401
|
-
})), te = r(() => w.value ? z.value : z.value.filter((e) => e.kind === "child-load-more" || !j.value.has(e.option.value))), ne = r(() => te.value.length > m.value), V = r(() => ne.value || c.filter.hasMore), re = r(() => te.value.slice(0, m.value)), ie = r(() => w.value ?
|
|
6407
|
+
})), te = r(() => w.value ? z.value : z.value.filter((e) => e.kind === "child-load-more" || !j.value.has(e.option.value))), ne = r(() => te.value.length > m.value), V = r(() => ne.value || c.filter.hasMore), re = r(() => te.value.slice(0, m.value)), ie = r(() => w.value ? Dc({
|
|
6402
6408
|
options: y.value,
|
|
6403
6409
|
state: T.value
|
|
6404
|
-
}) : /* @__PURE__ */ new Map()), W = (e) =>
|
|
6410
|
+
}) : /* @__PURE__ */ new Map()), W = (e) => Bs(e, c.filter.colDef), ae = (e) => Vs(e), G = (e) => w.value ? ie.value.get(e.value) ?? {
|
|
6405
6411
|
indeterminate: !1,
|
|
6406
6412
|
selected: !1
|
|
6407
6413
|
} : {
|
|
6408
6414
|
indeterminate: !1,
|
|
6409
6415
|
selected: j.value.has(e.value)
|
|
6410
|
-
}, oe = (e) => G(e).selected, se = (e) => G(e).indeterminate, K = (e) =>
|
|
6416
|
+
}, oe = (e) => G(e).selected, se = (e) => G(e).indeterminate, K = (e) => Js(e) ?? e.value, q = (e) => Ys(e, c.filter.key), ce = (e) => {
|
|
6411
6417
|
let t = q(e), n = K(e);
|
|
6412
6418
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
6413
6419
|
}, le = (e) => ({
|
|
@@ -6436,7 +6442,7 @@ var ki = {
|
|
|
6436
6442
|
rowsLoading: c.filter.isLoading
|
|
6437
6443
|
}
|
|
6438
6444
|
})), Y = () => {
|
|
6439
|
-
ne.value ? m.value +=
|
|
6445
|
+
ne.value ? m.value += Xc : c.filter.hasMore && d("load-more", p.value.trim());
|
|
6440
6446
|
}, pe = (e) => {
|
|
6441
6447
|
d("load-more", p.value.trim(), e.value);
|
|
6442
6448
|
}, me = (e) => {
|
|
@@ -6461,7 +6467,7 @@ var ki = {
|
|
|
6461
6467
|
if (w.value) {
|
|
6462
6468
|
d("filter-change", {
|
|
6463
6469
|
type: "aggregate-selection",
|
|
6464
|
-
value:
|
|
6470
|
+
value: Tc({
|
|
6465
6471
|
checked: t,
|
|
6466
6472
|
option: e,
|
|
6467
6473
|
options: y.value,
|
|
@@ -6488,12 +6494,12 @@ var ki = {
|
|
|
6488
6494
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
6489
6495
|
};
|
|
6490
6496
|
H([p, () => c.filter.key], () => {
|
|
6491
|
-
m.value =
|
|
6497
|
+
m.value = Xc;
|
|
6492
6498
|
});
|
|
6493
6499
|
let Se = () => {
|
|
6494
|
-
let e =
|
|
6500
|
+
let e = Xs(y.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
6495
6501
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
6496
|
-
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
6502
|
+
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Zc)));
|
|
6497
6503
|
};
|
|
6498
6504
|
return H(y, () => {
|
|
6499
6505
|
c.filter.isOpen && Se();
|
|
@@ -6514,7 +6520,7 @@ var ki = {
|
|
|
6514
6520
|
"data-testid": "pv-filter-panel-accordion",
|
|
6515
6521
|
open: e.filter.isOpen,
|
|
6516
6522
|
onToggle: me
|
|
6517
|
-
}, [s("summary",
|
|
6523
|
+
}, [s("summary", Mc, [
|
|
6518
6524
|
u(X, {
|
|
6519
6525
|
"aria-hidden": "true",
|
|
6520
6526
|
class: "pv-text-subdued",
|
|
@@ -6527,9 +6533,9 @@ var ki = {
|
|
|
6527
6533
|
size: "sm",
|
|
6528
6534
|
variant: "secondary"
|
|
6529
6535
|
}, null, 8, ["value"])) : a("", !0)
|
|
6530
|
-
]), s("div",
|
|
6531
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div",
|
|
6532
|
-
e.filter.filterGroupOptions?.length ? (E(), o("div",
|
|
6536
|
+
]), s("div", Nc, [C.value ? (E(), o(t, { key: 0 }, [
|
|
6537
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div", Pc, [
|
|
6538
|
+
e.filter.filterGroupOptions?.length ? (E(), o("div", Fc, [(E(!0), o(t, null, k(e.filter.filterGroupOptions, (t) => (E(), i(Q, {
|
|
6533
6539
|
key: t.field,
|
|
6534
6540
|
disabled: e.filter.disabled,
|
|
6535
6541
|
label: t.label,
|
|
@@ -6542,7 +6548,7 @@ var ki = {
|
|
|
6542
6548
|
"variant",
|
|
6543
6549
|
"onClick"
|
|
6544
6550
|
]))), 128))])) : a("", !0),
|
|
6545
|
-
e.filter.displayPreferencesIcon ? (E(), o("div",
|
|
6551
|
+
e.filter.displayPreferencesIcon ? (E(), o("div", Ic, [u(Q, {
|
|
6546
6552
|
ariaLabel: "Open preferences",
|
|
6547
6553
|
disabled: e.filter.disabled,
|
|
6548
6554
|
leftIcon: "sliders-horizontal",
|
|
@@ -6564,7 +6570,7 @@ var ki = {
|
|
|
6564
6570
|
"disabled",
|
|
6565
6571
|
"placeholder"
|
|
6566
6572
|
])),
|
|
6567
|
-
B.value.length ? (E(), o("div",
|
|
6573
|
+
B.value.length ? (E(), o("div", Lc, [(E(!0), o(t, null, k(B.value, (t) => (E(), i(As, {
|
|
6568
6574
|
key: t.value,
|
|
6569
6575
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
6570
6576
|
"focus-text": e.filter.focusText,
|
|
@@ -6597,10 +6603,10 @@ var ki = {
|
|
|
6597
6603
|
"onFocusValue",
|
|
6598
6604
|
"onToggleValue"
|
|
6599
6605
|
]))), 128))])) : a("", !0),
|
|
6600
|
-
e.filter.isLoading ? (E(), o("div",
|
|
6601
|
-
!v.value.length && !B.value.length && !V.value ? (E(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (E(), i(M(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-values" }), null, 16)) : (E(), o("p",
|
|
6602
|
-
te.value.length || V.value ? (E(), o("div",
|
|
6603
|
-
te.value.length && !e.filter.hideOptionsSortDescription ? (E(), o("div",
|
|
6606
|
+
e.filter.isLoading ? (E(), o("div", Rc, [u(Oe, { size: "sm" })])) : (E(), o(t, { key: 4 }, [
|
|
6607
|
+
!v.value.length && !B.value.length && !V.value ? (E(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (E(), i(M(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-values" }), null, 16)) : (E(), o("p", zc, "No values available."))], 64)) : !z.value.length && !B.value.length && !V.value ? (E(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (E(), i(M(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-matches" }), null, 16)) : (E(), o("p", Bc, "No matching values."))], 64)) : a("", !0),
|
|
6608
|
+
te.value.length || V.value ? (E(), o("div", Vc, [
|
|
6609
|
+
te.value.length && !e.filter.hideOptionsSortDescription ? (E(), o("div", Hc, [e.filter.filterOptionsSortTooltip ? (E(), i(Pn, {
|
|
6604
6610
|
key: 0,
|
|
6605
6611
|
variant: "dark",
|
|
6606
6612
|
disableInteractive: !0,
|
|
@@ -6609,11 +6615,11 @@ var ki = {
|
|
|
6609
6615
|
"use-teleport": !0,
|
|
6610
6616
|
style: { "--max-width": "200px" }
|
|
6611
6617
|
}, {
|
|
6612
|
-
trigger: U(() => [s("p",
|
|
6618
|
+
trigger: U(() => [s("p", Uc, P(F.value), 1)]),
|
|
6613
6619
|
content: U(() => [l(P(e.filter.filterOptionsSortTooltip), 1)]),
|
|
6614
6620
|
_: 1
|
|
6615
|
-
})) : (E(), o("p",
|
|
6616
|
-
(E(!0), o(t, null, k(re.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(
|
|
6621
|
+
})) : (E(), o("p", Wc, P(F.value), 1))])) : a("", !0),
|
|
6622
|
+
(E(!0), o(t, null, k(re.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(As, {
|
|
6617
6623
|
key: 0,
|
|
6618
6624
|
depth: n.depth,
|
|
6619
6625
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
@@ -6676,7 +6682,7 @@ var ki = {
|
|
|
6676
6682
|
])) : a("", !0),
|
|
6677
6683
|
e.filter.filterFooterRenderer ? (E(), i(M(e.filter.filterFooterRenderer), b(_({ key: 3 }, fe.value)), null, 16)) : a("", !0)
|
|
6678
6684
|
], 64))
|
|
6679
|
-
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(
|
|
6685
|
+
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(ws, {
|
|
6680
6686
|
key: 1,
|
|
6681
6687
|
mode: "dual",
|
|
6682
6688
|
rangeValue: e.filter.rangeValue,
|
|
@@ -6697,7 +6703,7 @@ var ki = {
|
|
|
6697
6703
|
"min",
|
|
6698
6704
|
"step",
|
|
6699
6705
|
"value-decimals"
|
|
6700
|
-
])) : S.value === "range" ? (E(), o("p",
|
|
6706
|
+
])) : S.value === "range" ? (E(), o("p", Gc, " Range filters require minimum and maximum bounds. ")) : S.value === "boolean" ? (E(), o("div", Kc, [s("div", qc, [u(Q, {
|
|
6701
6707
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6702
6708
|
label: N.value,
|
|
6703
6709
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
@@ -6722,37 +6728,37 @@ var ki = {
|
|
|
6722
6728
|
label: "Clear",
|
|
6723
6729
|
variant: "ghost",
|
|
6724
6730
|
onClick: r[3] ||= (e) => he(null)
|
|
6725
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label",
|
|
6731
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label", Jc, [u(Za, {
|
|
6726
6732
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6727
6733
|
modelValue: e.filter.existsValue ?? !1,
|
|
6728
6734
|
"onUpdate:modelValue": ge
|
|
6729
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
6735
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Yc, P(h.value), 1)])) : a("", !0)])], 40, jc));
|
|
6730
6736
|
}
|
|
6731
|
-
}), [["__scopeId", "data-v-4478d3f6"]]),
|
|
6737
|
+
}), [["__scopeId", "data-v-4478d3f6"]]), $c = {
|
|
6732
6738
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
6733
6739
|
"data-testid": "pv-filter-panel-applied-section",
|
|
6734
6740
|
style: {
|
|
6735
6741
|
"--flex-align": "stretch",
|
|
6736
6742
|
"--flex-gap": "1rem"
|
|
6737
6743
|
}
|
|
6738
|
-
},
|
|
6744
|
+
}, el = {
|
|
6739
6745
|
key: 0,
|
|
6740
6746
|
class: "pv-flex-vertical",
|
|
6741
6747
|
style: {
|
|
6742
6748
|
"--flex-align": "stretch",
|
|
6743
6749
|
"--flex-gap": "1rem"
|
|
6744
6750
|
}
|
|
6745
|
-
},
|
|
6751
|
+
}, tl = { class: "pv-text-title-md" }, nl = {
|
|
6746
6752
|
class: "pv-flex",
|
|
6747
6753
|
style: {
|
|
6748
6754
|
"--flex-gap": "0.375rem",
|
|
6749
6755
|
"--flex-wrap": "wrap"
|
|
6750
6756
|
}
|
|
6751
|
-
},
|
|
6757
|
+
}, rl = {
|
|
6752
6758
|
key: 1,
|
|
6753
6759
|
class: "pv-text-body-sm pv-text-subdued",
|
|
6754
6760
|
style: { margin: "0" }
|
|
6755
|
-
},
|
|
6761
|
+
}, il = /* @__PURE__ */ d({
|
|
6756
6762
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
6757
6763
|
props: {
|
|
6758
6764
|
appliedCount: { default: 0 },
|
|
@@ -6767,7 +6773,7 @@ var ki = {
|
|
|
6767
6773
|
let r = n, a = (e, t) => {
|
|
6768
6774
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
6769
6775
|
};
|
|
6770
|
-
return (n, r) => (E(), o("section",
|
|
6776
|
+
return (n, r) => (E(), o("section", $c, [e.appliedCount ? (E(), o("div", el, [(E(!0), o(t, null, k(e.appliedGroups, (n) => (E(), o("div", {
|
|
6771
6777
|
key: n.key,
|
|
6772
6778
|
class: "pv-flex-vertical pv-border-bottom",
|
|
6773
6779
|
style: {
|
|
@@ -6775,7 +6781,7 @@ var ki = {
|
|
|
6775
6781
|
"--flex-gap": "12px",
|
|
6776
6782
|
"padding-bottom": "12px"
|
|
6777
6783
|
}
|
|
6778
|
-
}, [s("span",
|
|
6784
|
+
}, [s("span", tl, P(n.label), 1), s("div", nl, [(E(!0), o(t, null, k(n.values, (t) => (E(), i(er, {
|
|
6779
6785
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
6780
6786
|
label: t.label,
|
|
6781
6787
|
showClear: !e.readOnly,
|
|
@@ -6784,9 +6790,9 @@ var ki = {
|
|
|
6784
6790
|
"label",
|
|
6785
6791
|
"showClear",
|
|
6786
6792
|
"onHandleClose"
|
|
6787
|
-
]))), 128))])]))), 128))])) : (E(), o("p",
|
|
6793
|
+
]))), 128))])]))), 128))])) : (E(), o("p", rl, "No filters applied yet."))]));
|
|
6788
6794
|
}
|
|
6789
|
-
}),
|
|
6795
|
+
}), al = { class: "pv-horizontal-scroller" }, ol = ["aria-label"], sl = 1, cl = /* @__PURE__ */ d({
|
|
6790
6796
|
__name: "PvHorizontalScroller",
|
|
6791
6797
|
props: {
|
|
6792
6798
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -6810,7 +6816,7 @@ var ki = {
|
|
|
6810
6816
|
let e = u.value;
|
|
6811
6817
|
if (!e) return;
|
|
6812
6818
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
6813
|
-
n.value = e.scrollLeft >
|
|
6819
|
+
n.value = e.scrollLeft > sl, c.value = e.scrollLeft < t - sl;
|
|
6814
6820
|
}, h = () => {
|
|
6815
6821
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
6816
6822
|
}, g = () => {
|
|
@@ -6830,7 +6836,7 @@ var ki = {
|
|
|
6830
6836
|
h(), g();
|
|
6831
6837
|
}), S(() => {
|
|
6832
6838
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
6833
|
-
}), (t, r) => (E(), o("div",
|
|
6839
|
+
}), (t, r) => (E(), o("div", al, [
|
|
6834
6840
|
s("div", {
|
|
6835
6841
|
ref_key: "scrollContainer",
|
|
6836
6842
|
ref: u,
|
|
@@ -6841,7 +6847,7 @@ var ki = {
|
|
|
6841
6847
|
ref_key: "contentContainer",
|
|
6842
6848
|
ref: l,
|
|
6843
6849
|
class: "pv-horizontal-scroller-content"
|
|
6844
|
-
}, [A(t.$slots, "default")], 512)], 10,
|
|
6850
|
+
}, [A(t.$slots, "default")], 512)], 10, ol),
|
|
6845
6851
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
6846
6852
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
6847
6853
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -6874,18 +6880,18 @@ var ki = {
|
|
|
6874
6880
|
])) : a("", !0)], 2)
|
|
6875
6881
|
]));
|
|
6876
6882
|
}
|
|
6877
|
-
}),
|
|
6883
|
+
}), ll = {
|
|
6878
6884
|
key: 0,
|
|
6879
6885
|
class: "pv-border-bottom",
|
|
6880
6886
|
"data-testid": "pv-filter-panel-category-row"
|
|
6881
|
-
},
|
|
6887
|
+
}, ul = {
|
|
6882
6888
|
class: "pv-flex",
|
|
6883
6889
|
style: {
|
|
6884
6890
|
"--flex-align": "center",
|
|
6885
6891
|
"--flex-gap": "8px",
|
|
6886
6892
|
padding: "8px 12px"
|
|
6887
6893
|
}
|
|
6888
|
-
},
|
|
6894
|
+
}, dl = /* @__PURE__ */ d({
|
|
6889
6895
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
6890
6896
|
props: /* @__PURE__ */ g({
|
|
6891
6897
|
categoryOrder: {},
|
|
@@ -6906,7 +6912,7 @@ var ki = {
|
|
|
6906
6912
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
6907
6913
|
return H(l, (e) => {
|
|
6908
6914
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
6909
|
-
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div",
|
|
6915
|
+
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div", ll, [u(cl, {
|
|
6910
6916
|
ariaLabel: "Filter categories",
|
|
6911
6917
|
buttonSize: "md",
|
|
6912
6918
|
buttonVariant: "ghost",
|
|
@@ -6915,7 +6921,7 @@ var ki = {
|
|
|
6915
6921
|
rightAriaLabel: "Scroll filter categories right",
|
|
6916
6922
|
showFades: ""
|
|
6917
6923
|
}, {
|
|
6918
|
-
default: U(() => [s("div",
|
|
6924
|
+
default: U(() => [s("div", ul, [u(Q, {
|
|
6919
6925
|
label: "All",
|
|
6920
6926
|
size: "md",
|
|
6921
6927
|
variant: f(null),
|
|
@@ -6934,17 +6940,17 @@ var ki = {
|
|
|
6934
6940
|
_: 1
|
|
6935
6941
|
})])) : a("", !0);
|
|
6936
6942
|
}
|
|
6937
|
-
}),
|
|
6943
|
+
}), fl = (e, t, n) => {
|
|
6938
6944
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
6939
6945
|
if (r.length <= 1) return "Search";
|
|
6940
6946
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
6941
6947
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
6942
|
-
},
|
|
6943
|
-
if (!r ||
|
|
6948
|
+
}, pl = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), ml = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
6949
|
+
if (!r || pl(i) === pl(r)) return e;
|
|
6944
6950
|
if (!a || !n) return r;
|
|
6945
6951
|
let o = t(n);
|
|
6946
6952
|
return o ? `${o}: ${r}` : r;
|
|
6947
|
-
},
|
|
6953
|
+
}, hl = () => ({
|
|
6948
6954
|
booleanValue: null,
|
|
6949
6955
|
existsValue: !1,
|
|
6950
6956
|
rangeValue: {
|
|
@@ -6952,15 +6958,15 @@ var ki = {
|
|
|
6952
6958
|
min: null
|
|
6953
6959
|
},
|
|
6954
6960
|
values: []
|
|
6955
|
-
}),
|
|
6956
|
-
conditions: e.conditions.map(
|
|
6961
|
+
}), gl = (e) => typeof e == "object" && !!e && !Array.isArray(e), _l = (e) => gl(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", vl = (e) => gl(e) && e.filterType === "join" && Array.isArray(e.conditions), yl = (e) => e, bl = (e) => vl(e) ? {
|
|
6962
|
+
conditions: e.conditions.map(bl),
|
|
6957
6963
|
filterType: "join",
|
|
6958
6964
|
type: e.type
|
|
6959
|
-
} : { ...e },
|
|
6960
|
-
if (!
|
|
6961
|
-
if (
|
|
6965
|
+
} : { ...e }, xl = (e) => {
|
|
6966
|
+
if (!gl(e)) return null;
|
|
6967
|
+
if (vl(e)) {
|
|
6962
6968
|
let t = e.conditions.flatMap((e) => {
|
|
6963
|
-
let t =
|
|
6969
|
+
let t = xl(e);
|
|
6964
6970
|
return t ? [t] : [];
|
|
6965
6971
|
});
|
|
6966
6972
|
return t.length ? {
|
|
@@ -6969,43 +6975,43 @@ var ki = {
|
|
|
6969
6975
|
type: e.type === "OR" ? "OR" : "AND"
|
|
6970
6976
|
} : null;
|
|
6971
6977
|
}
|
|
6972
|
-
return
|
|
6973
|
-
},
|
|
6978
|
+
return _l(e) ? { ...e } : null;
|
|
6979
|
+
}, Sl = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, Cl = (e) => gl(e) && !vl(e) && !_l(e), wl = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), Tl = {
|
|
6974
6980
|
number: "agNumberColumnFilter",
|
|
6975
6981
|
set: "agSetColumnFilter",
|
|
6976
6982
|
text: "agTextColumnFilter"
|
|
6977
|
-
},
|
|
6983
|
+
}, El = (e) => {
|
|
6978
6984
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
6979
6985
|
let t = e.filterParams;
|
|
6980
6986
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
6987
|
+
}, Dl = (e, t) => {
|
|
6988
|
+
let n = El(e), r = t.filterType ? Tl[t.filterType] : void 0;
|
|
6989
|
+
return r ? n.findIndex((e) => gl(e) && e.filter === r) : -1;
|
|
6981
6990
|
}, Ol = (e, t) => {
|
|
6982
|
-
let n =
|
|
6983
|
-
return r ? n.findIndex((e) => _l(e) && e.filter === r) : -1;
|
|
6984
|
-
}, kl = (e, t) => {
|
|
6985
|
-
let n = Dl(e);
|
|
6991
|
+
let n = El(e);
|
|
6986
6992
|
if (!n.length) return null;
|
|
6987
|
-
let r = Array(n.length).fill(null), i =
|
|
6993
|
+
let r = Array(n.length).fill(null), i = Dl(e, t);
|
|
6988
6994
|
return i < 0 ? null : (r[i] = t, {
|
|
6989
6995
|
filterModels: r,
|
|
6990
6996
|
filterType: "multi"
|
|
6991
6997
|
});
|
|
6992
|
-
},
|
|
6993
|
-
if (!
|
|
6998
|
+
}, kl = (e, t) => {
|
|
6999
|
+
if (!Cl(e)) return null;
|
|
6994
7000
|
let n = e[t];
|
|
6995
|
-
return
|
|
6996
|
-
},
|
|
7001
|
+
return gl(n) ? n : null;
|
|
7002
|
+
}, Al = (e) => e ? wl(e) ? e.filterModels.filter((e) => gl(e)) : [e] : [], jl = (e) => Cl(e) ? { ...e } : {}, Ml = (e) => wl(e) ? {
|
|
6997
7003
|
...e,
|
|
6998
7004
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
6999
|
-
} : { ...e },
|
|
7000
|
-
let n =
|
|
7005
|
+
} : { ...e }, Nl = (e, t) => {
|
|
7006
|
+
let n = jl(e);
|
|
7001
7007
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
7002
|
-
},
|
|
7008
|
+
}, Pl = /* @__PURE__ */ new Set(), Fl = (e, t) => {
|
|
7003
7009
|
let n = `${e}:${t ?? "unknown"}`;
|
|
7004
|
-
|
|
7005
|
-
},
|
|
7006
|
-
let a =
|
|
7007
|
-
if (
|
|
7008
|
-
let o =
|
|
7010
|
+
Pl.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.`), Pl.add(n));
|
|
7011
|
+
}, Il = (e, t, n, r, i) => {
|
|
7012
|
+
let a = kl(e, t);
|
|
7013
|
+
if (wl(a) && r) {
|
|
7014
|
+
let o = jl(e), s = Ml(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
7009
7015
|
if (!n) {
|
|
7010
7016
|
for (let e of l) c[e] = null;
|
|
7011
7017
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -7018,15 +7024,15 @@ var ki = {
|
|
|
7018
7024
|
c[e] = n;
|
|
7019
7025
|
for (let e of t) c[e] = null;
|
|
7020
7026
|
} else {
|
|
7021
|
-
let e =
|
|
7027
|
+
let e = Dl(i, n), r = c.findIndex((e) => !e), a = El(i).length > 0;
|
|
7022
7028
|
if (e >= 0) {
|
|
7023
7029
|
for (; c.length <= e;) c.push(null);
|
|
7024
|
-
c[e] &&
|
|
7030
|
+
c[e] && Fl(t, n.filterType), c[e] = n;
|
|
7025
7031
|
} else if (r >= 0) c[r] = n;
|
|
7026
7032
|
else if (!a) c.push(n);
|
|
7027
7033
|
else {
|
|
7028
7034
|
let e = Math.max(0, c.length - 1);
|
|
7029
|
-
|
|
7035
|
+
Fl(t, n.filterType), c[e] = n;
|
|
7030
7036
|
}
|
|
7031
7037
|
}
|
|
7032
7038
|
return o[t] = {
|
|
@@ -7034,54 +7040,54 @@ var ki = {
|
|
|
7034
7040
|
filterModels: c
|
|
7035
7041
|
}, o;
|
|
7036
7042
|
}
|
|
7037
|
-
if (!n) return
|
|
7038
|
-
let o =
|
|
7039
|
-
return o[t] =
|
|
7040
|
-
},
|
|
7043
|
+
if (!n) return Nl(e, t);
|
|
7044
|
+
let o = jl(e);
|
|
7045
|
+
return o[t] = Ol(i, n) ?? n, o;
|
|
7046
|
+
}, Ll = (e, t) => {
|
|
7041
7047
|
if (e) {
|
|
7042
|
-
if (
|
|
7043
|
-
e.conditions.forEach((e) =>
|
|
7048
|
+
if (vl(e)) {
|
|
7049
|
+
e.conditions.forEach((e) => Ll(e, t));
|
|
7044
7050
|
return;
|
|
7045
7051
|
}
|
|
7046
7052
|
t(e);
|
|
7047
7053
|
}
|
|
7048
|
-
},
|
|
7049
|
-
if (!
|
|
7054
|
+
}, Rl = (e, t) => vl(e) ? e.conditions.length > 0 && e.conditions.every((e) => Rl(e, t)) : e.colId === t, zl = (e) => {
|
|
7055
|
+
if (!vl(e)) return e.colId;
|
|
7050
7056
|
let t = /* @__PURE__ */ new Set();
|
|
7051
|
-
return
|
|
7052
|
-
},
|
|
7053
|
-
if (!e ||
|
|
7054
|
-
if (!
|
|
7055
|
-
let n = e.conditions.flatMap((e) =>
|
|
7057
|
+
return Ll(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
7058
|
+
}, Bl = (e, t) => {
|
|
7059
|
+
if (!e || Rl(e, t)) return null;
|
|
7060
|
+
if (!vl(e) || e.type !== "AND") return bl(e);
|
|
7061
|
+
let n = e.conditions.flatMap((e) => Rl(e, t) ? [] : [bl(e)]);
|
|
7056
7062
|
return n.length ? n.length === 1 ? n[0] : {
|
|
7057
7063
|
conditions: n,
|
|
7058
7064
|
filterType: e.filterType,
|
|
7059
7065
|
type: e.type
|
|
7060
7066
|
} : null;
|
|
7061
|
-
},
|
|
7062
|
-
let r =
|
|
7063
|
-
return n ? r ?
|
|
7067
|
+
}, Vl = (e, t, n) => {
|
|
7068
|
+
let r = Bl(xl(e), t);
|
|
7069
|
+
return n ? r ? vl(r) && r.type === "AND" ? yl({
|
|
7064
7070
|
...r,
|
|
7065
7071
|
conditions: [...r.conditions, n]
|
|
7066
|
-
}) :
|
|
7072
|
+
}) : yl({
|
|
7067
7073
|
conditions: [r, n],
|
|
7068
7074
|
filterType: "join",
|
|
7069
7075
|
type: "AND"
|
|
7070
|
-
}) :
|
|
7071
|
-
},
|
|
7076
|
+
}) : yl(n) : yl(r);
|
|
7077
|
+
}, Hl = (e, t) => {
|
|
7072
7078
|
e.includes(t) || e.push(t);
|
|
7073
|
-
},
|
|
7079
|
+
}, Ul = (e) => {
|
|
7074
7080
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
7075
7081
|
let t = String(e.filter);
|
|
7076
7082
|
return t === "true" || t === "false";
|
|
7077
|
-
},
|
|
7083
|
+
}, Wl = (e) => e.filterType === "boolean" || Ul(e), Gl = (e, t) => {
|
|
7078
7084
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7079
|
-
e.values.forEach((e) =>
|
|
7085
|
+
e.values.forEach((e) => Hl(t.values, String(e)));
|
|
7080
7086
|
return;
|
|
7081
7087
|
}
|
|
7082
7088
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7083
7089
|
let n = String(e.filter);
|
|
7084
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7090
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Hl(t.values, n);
|
|
7085
7091
|
return;
|
|
7086
7092
|
}
|
|
7087
7093
|
if (e.filterType === "boolean") {
|
|
@@ -7105,7 +7111,7 @@ var ki = {
|
|
|
7105
7111
|
...t.rangeValue,
|
|
7106
7112
|
max: e.filter
|
|
7107
7113
|
}));
|
|
7108
|
-
},
|
|
7114
|
+
}, Kl = (e, t) => {
|
|
7109
7115
|
if (e.type === "notBlank") {
|
|
7110
7116
|
t.existsValue = !0;
|
|
7111
7117
|
return;
|
|
@@ -7115,12 +7121,12 @@ var ki = {
|
|
|
7115
7121
|
return;
|
|
7116
7122
|
}
|
|
7117
7123
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7118
|
-
e.values.forEach((e) =>
|
|
7124
|
+
e.values.forEach((e) => Hl(t.values, String(e)));
|
|
7119
7125
|
return;
|
|
7120
7126
|
}
|
|
7121
7127
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7122
7128
|
let n = String(e.filter);
|
|
7123
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7129
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Hl(t.values, n);
|
|
7124
7130
|
return;
|
|
7125
7131
|
}
|
|
7126
7132
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -7133,29 +7139,29 @@ var ki = {
|
|
|
7133
7139
|
...t.rangeValue,
|
|
7134
7140
|
max: e.filter
|
|
7135
7141
|
}));
|
|
7136
|
-
},
|
|
7142
|
+
}, ql = (e, t = "advanced") => {
|
|
7137
7143
|
let n = /* @__PURE__ */ new Map();
|
|
7138
7144
|
if (t === "regular") {
|
|
7139
|
-
if (!
|
|
7145
|
+
if (!Cl(e)) return n;
|
|
7140
7146
|
for (let [t, r] of Object.entries(e)) {
|
|
7141
|
-
let e =
|
|
7142
|
-
|
|
7147
|
+
let e = hl();
|
|
7148
|
+
Al(r).forEach((t) => Gl(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
7143
7149
|
}
|
|
7144
7150
|
return n;
|
|
7145
7151
|
}
|
|
7146
|
-
let r =
|
|
7152
|
+
let r = xl(e);
|
|
7147
7153
|
if (!r) return n;
|
|
7148
|
-
let i =
|
|
7154
|
+
let i = vl(r) && r.type === "AND" ? r.conditions : [r];
|
|
7149
7155
|
for (let e of i) {
|
|
7150
|
-
let t =
|
|
7156
|
+
let t = zl(e);
|
|
7151
7157
|
if (!t) continue;
|
|
7152
|
-
let r = n.get(t) ??
|
|
7153
|
-
|
|
7154
|
-
e.colId === t &&
|
|
7158
|
+
let r = n.get(t) ?? hl();
|
|
7159
|
+
Ll(e, (e) => {
|
|
7160
|
+
e.colId === t && Kl(e, r);
|
|
7155
7161
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
7156
7162
|
}
|
|
7157
7163
|
return n;
|
|
7158
|
-
},
|
|
7164
|
+
}, Jl = (e, t = "advanced") => t === "regular" ? Cl(e) && Object.keys(e).length > 0 : xl(e) !== null, Yl = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Xl = (e, t, n = "advanced") => n === "regular" ? Nl(e, t) : yl(Bl(xl(e), t)), Zl = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Il(e, t, null, Wl, a) : Xl(e, t, r) : r === "regular" ? Il(e, t, i === "text" ? {
|
|
7159
7165
|
filter: String(n),
|
|
7160
7166
|
filterType: "text",
|
|
7161
7167
|
type: "equals"
|
|
@@ -7163,30 +7169,30 @@ var ki = {
|
|
|
7163
7169
|
filter: n,
|
|
7164
7170
|
filterType: "boolean",
|
|
7165
7171
|
type: n ? "true" : "false"
|
|
7166
|
-
},
|
|
7172
|
+
}, Wl, a) : i === "text" ? Vl(e, t, {
|
|
7167
7173
|
colId: t,
|
|
7168
7174
|
filter: String(n),
|
|
7169
7175
|
filterType: "text",
|
|
7170
7176
|
type: "equals"
|
|
7171
|
-
}) :
|
|
7177
|
+
}) : Vl(e, t, {
|
|
7172
7178
|
colId: t,
|
|
7173
7179
|
filterType: "boolean",
|
|
7174
7180
|
type: n ? "true" : "false"
|
|
7175
|
-
}),
|
|
7181
|
+
}), Ql = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Il(e, t, {
|
|
7176
7182
|
filterType: r,
|
|
7177
7183
|
type: "notBlank"
|
|
7178
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
7184
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Vl(e, t, {
|
|
7179
7185
|
colId: t,
|
|
7180
7186
|
filterType: r,
|
|
7181
7187
|
type: "notBlank"
|
|
7182
|
-
}) : i === "regular" ?
|
|
7183
|
-
let o =
|
|
7184
|
-
if (i === "regular") return o === null && s === null ?
|
|
7188
|
+
}) : i === "regular" ? Il(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Xl(e, t, i), $l = (e, t, n, r, i = "advanced", a) => {
|
|
7189
|
+
let o = Sl(n), s = Sl(r);
|
|
7190
|
+
if (i === "regular") return o === null && s === null ? Il(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Il(e, t, {
|
|
7185
7191
|
filter: o,
|
|
7186
7192
|
filterTo: s,
|
|
7187
7193
|
filterType: "number",
|
|
7188
7194
|
type: "inRange"
|
|
7189
|
-
}, (e) => e.filterType === "number", a) :
|
|
7195
|
+
}, (e) => e.filterType === "number", a) : Il(e, t, {
|
|
7190
7196
|
filter: o ?? s,
|
|
7191
7197
|
filterType: "number",
|
|
7192
7198
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -7202,29 +7208,29 @@ var ki = {
|
|
|
7202
7208
|
filter: s,
|
|
7203
7209
|
filterType: "number",
|
|
7204
7210
|
type: "lessThanOrEqual"
|
|
7205
|
-
}), c.length ?
|
|
7211
|
+
}), c.length ? Vl(e, t, c.length === 1 ? c[0] : {
|
|
7206
7212
|
conditions: c,
|
|
7207
7213
|
filterType: "join",
|
|
7208
7214
|
type: "AND"
|
|
7209
|
-
}) :
|
|
7210
|
-
},
|
|
7215
|
+
}) : Xl(e, t);
|
|
7216
|
+
}, eu = (e, t, n, r = "advanced", i) => {
|
|
7211
7217
|
let a = Array.from(new Set(n));
|
|
7212
|
-
if (r === "regular") return a.length ?
|
|
7218
|
+
if (r === "regular") return a.length ? Il(e, t, {
|
|
7213
7219
|
filterType: "set",
|
|
7214
7220
|
values: a
|
|
7215
|
-
}, (e) => e.filterType === "set", i) :
|
|
7221
|
+
}, (e) => e.filterType === "set", i) : Il(e, t, null, (e) => e.filterType === "set", i);
|
|
7216
7222
|
let o = a.map((e) => ({
|
|
7217
7223
|
colId: t,
|
|
7218
7224
|
filter: e,
|
|
7219
7225
|
filterType: "text",
|
|
7220
7226
|
type: "equals"
|
|
7221
7227
|
}));
|
|
7222
|
-
return o.length ?
|
|
7228
|
+
return o.length ? Vl(e, t, o.length === 1 ? o[0] : {
|
|
7223
7229
|
conditions: o,
|
|
7224
7230
|
filterType: "join",
|
|
7225
7231
|
type: "OR"
|
|
7226
|
-
}) :
|
|
7227
|
-
},
|
|
7232
|
+
}) : Xl(e, t);
|
|
7233
|
+
}, tu = Symbol("PvFilterStore"), nu = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, ru = (e, t) => t ?? e, iu = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), au = (e) => {
|
|
7228
7234
|
let t = /* @__PURE__ */ new Map();
|
|
7229
7235
|
for (let n of e) {
|
|
7230
7236
|
if (!n) continue;
|
|
@@ -7236,34 +7242,34 @@ var ki = {
|
|
|
7236
7242
|
t.set(n.value, {
|
|
7237
7243
|
...e,
|
|
7238
7244
|
...n,
|
|
7239
|
-
children:
|
|
7240
|
-
totalChildCount:
|
|
7245
|
+
children: au([...e.children ?? [], ...n.children ?? []]),
|
|
7246
|
+
totalChildCount: ru(e.totalChildCount, n.totalChildCount)
|
|
7241
7247
|
});
|
|
7242
7248
|
}
|
|
7243
7249
|
return [...t.values()];
|
|
7244
|
-
},
|
|
7250
|
+
}, ou = (e, t) => {
|
|
7245
7251
|
for (let n of e ?? []) {
|
|
7246
7252
|
if (!n) continue;
|
|
7247
7253
|
if (n.value === t) return n;
|
|
7248
|
-
let e =
|
|
7254
|
+
let e = ou(n.children, t);
|
|
7249
7255
|
if (e) return e;
|
|
7250
7256
|
}
|
|
7251
|
-
},
|
|
7257
|
+
}, su = (e, t, n) => {
|
|
7252
7258
|
if (!e || t === null) return !1;
|
|
7253
7259
|
if (e.value === t) return !0;
|
|
7254
|
-
let r =
|
|
7255
|
-
return r !== null && r === t ||
|
|
7256
|
-
},
|
|
7257
|
-
let r =
|
|
7260
|
+
let r = Js(e);
|
|
7261
|
+
return r !== null && r === t || Zs(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => su(e, t, n)) ?? !1;
|
|
7262
|
+
}, cu = (e, t, n) => {
|
|
7263
|
+
let r = ou(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
7258
7264
|
return e.map((e) => e && (e.value === t ? {
|
|
7259
7265
|
...e,
|
|
7260
|
-
children:
|
|
7261
|
-
totalChildCount:
|
|
7266
|
+
children: au([...e.children ?? [], ...i]),
|
|
7267
|
+
totalChildCount: ru(e.totalChildCount, r?.totalChildCount)
|
|
7262
7268
|
} : e.children?.length ? {
|
|
7263
7269
|
...e,
|
|
7264
|
-
children:
|
|
7270
|
+
children: cu(e.children, t, n).filter((e) => !!e)
|
|
7265
7271
|
} : e));
|
|
7266
|
-
},
|
|
7272
|
+
}, lu = (e, t) => `${e}::${t}`, uu = () => {
|
|
7267
7273
|
let e = O(null), t = O(null), n = O(), r = O({}), i = O({}), a = O({}), o = O({}), s = O({}), c = O({}), l = O({}), u = O({}), d = O({}), f = O({}), p = O({}), m = O({}), h = O({}), g = O({}), _ = O(), v = O({}), y = (e) => {
|
|
7268
7274
|
_.value = e;
|
|
7269
7275
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7272,11 +7278,11 @@ var ki = {
|
|
|
7272
7278
|
let r = n ? o : i;
|
|
7273
7279
|
r.value[e] = t;
|
|
7274
7280
|
}, w = () => {
|
|
7275
|
-
o.value =
|
|
7281
|
+
o.value = iu(i.value), s.value = iu(a.value);
|
|
7276
7282
|
}, T = () => {
|
|
7277
7283
|
o.value = {}, s.value = {};
|
|
7278
7284
|
}, E = () => {
|
|
7279
|
-
i.value =
|
|
7285
|
+
i.value = iu(o.value), a.value = iu(s.value), T();
|
|
7280
7286
|
}, D = (e, t) => {
|
|
7281
7287
|
c.value[e] = t;
|
|
7282
7288
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7298,7 +7304,7 @@ var ki = {
|
|
|
7298
7304
|
if (!o) return [];
|
|
7299
7305
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7300
7306
|
c.value[n.field] = s;
|
|
7301
|
-
let l = n.parentId ?
|
|
7307
|
+
let l = n.parentId ? ou(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 ? lu(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
7302
7308
|
h.value[b] = x;
|
|
7303
7309
|
try {
|
|
7304
7310
|
let c = await o({
|
|
@@ -7309,17 +7315,17 @@ var ki = {
|
|
|
7309
7315
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7310
7316
|
});
|
|
7311
7317
|
if (h.value[b] !== x) return [];
|
|
7312
|
-
let l =
|
|
7318
|
+
let l = nu(c);
|
|
7313
7319
|
if (n.parentId) {
|
|
7314
|
-
let e =
|
|
7320
|
+
let e = lu(n.field, n.parentId);
|
|
7315
7321
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7316
7322
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7317
7323
|
let _ = a.value[n.field] ?? [], y;
|
|
7318
|
-
y = n.parentId ?
|
|
7324
|
+
y = n.parentId ? cu(r.value[n.field] ?? [], n.parentId, l.values) : v ? au([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
7319
7325
|
for (let e of _) {
|
|
7320
7326
|
if (!e) continue;
|
|
7321
|
-
let t =
|
|
7322
|
-
y.some((e) =>
|
|
7327
|
+
let t = Js(e) ?? e.value;
|
|
7328
|
+
y.some((e) => su(e, t, n.field)) || y.push(e);
|
|
7323
7329
|
}
|
|
7324
7330
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7325
7331
|
} finally {
|
|
@@ -7352,20 +7358,20 @@ var ki = {
|
|
|
7352
7358
|
stagedFilterSelectedMetadataMap: s,
|
|
7353
7359
|
stagedFilterSelectedValueMap: o
|
|
7354
7360
|
};
|
|
7355
|
-
},
|
|
7356
|
-
D(
|
|
7357
|
-
},
|
|
7361
|
+
}, du = (e) => {
|
|
7362
|
+
D(tu, e);
|
|
7363
|
+
}, fu = () => m(tu, null), pu = () => fu() ?? uu(), mu = "__range__", hu = "__boolean__", gu = "__exists__", _u = new Set([
|
|
7358
7364
|
"value",
|
|
7359
7365
|
"range",
|
|
7360
7366
|
"boolean",
|
|
7361
7367
|
"exists"
|
|
7362
7368
|
]);
|
|
7363
|
-
function
|
|
7369
|
+
function vu(e, t, n) {
|
|
7364
7370
|
f();
|
|
7365
|
-
let i = O(t.value), a =
|
|
7371
|
+
let i = O(t.value), a = uu(), o = fu(), 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(() => {
|
|
7366
7372
|
let n = p.value;
|
|
7367
7373
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
7368
|
-
}), y = r(() =>
|
|
7374
|
+
}), y = r(() => ql(v.value, _.value)), b = (e, t) => {
|
|
7369
7375
|
let n = e.applyFilterModel;
|
|
7370
7376
|
if (typeof n == "function") {
|
|
7371
7377
|
n(t);
|
|
@@ -7456,7 +7462,7 @@ function yu(e, t, n) {
|
|
|
7456
7462
|
});
|
|
7457
7463
|
let D = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
7458
7464
|
let t = D(e), n = t.filterPanelType;
|
|
7459
|
-
if (n &&
|
|
7465
|
+
if (n && _u.has(n)) return n;
|
|
7460
7466
|
if (t.filterPanelRange) return "range";
|
|
7461
7467
|
if (t.dataType === "boolean") return "boolean";
|
|
7462
7468
|
if (e.filter) return "value";
|
|
@@ -7496,30 +7502,30 @@ function yu(e, t, n) {
|
|
|
7496
7502
|
...r,
|
|
7497
7503
|
...i
|
|
7498
7504
|
].filter(Boolean)));
|
|
7499
|
-
}, W = (e) => _.value === "advanced" &&
|
|
7505
|
+
}, W = (e) => _.value === "advanced" && ac(e), ae = (e, t) => W(e) ? hc({
|
|
7500
7506
|
colDef: e,
|
|
7501
7507
|
model: v.value,
|
|
7502
7508
|
options: t
|
|
7503
7509
|
}) : new Map(U(e).map((e) => [e, y.value.get(e)?.values ?? []])), G = (e, t, n, r) => {
|
|
7504
7510
|
let i = /* @__PURE__ */ new Set();
|
|
7505
|
-
for (let t of
|
|
7511
|
+
for (let t of Xs(r)) for (let [r, a] of n) for (let n of a) Zs(t, r, n, e) && i.add(`${r}:${n}`);
|
|
7506
7512
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
7507
7513
|
colField: t === e ? void 0 : t,
|
|
7508
7514
|
label: n,
|
|
7509
7515
|
metadata: { rawValue: n },
|
|
7510
|
-
value: t === e ? n :
|
|
7516
|
+
value: t === e ? n : qs(t, n)
|
|
7511
7517
|
}]));
|
|
7512
7518
|
}, oe = (e, t, n) => {
|
|
7513
7519
|
let r = /* @__PURE__ */ new Set();
|
|
7514
|
-
for (let i of
|
|
7515
|
-
let n =
|
|
7520
|
+
for (let i of Xs(n)) {
|
|
7521
|
+
let n = Ys(i, e), a = Js(i);
|
|
7516
7522
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
7517
7523
|
}
|
|
7518
7524
|
return Array.from(r);
|
|
7519
7525
|
}, se = (t) => Object.fromEntries(U(t).map((t) => [t, e.focusedValues[t] ?? []])), K = (t) => e.colDefs.find((e) => k(e) === t || e.field === t || e.colId === t), q = (e) => K(e)?.headerName ?? e, ce = (e) => {
|
|
7520
7526
|
let t = D(e);
|
|
7521
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
7522
|
-
}, le = (e, t) =>
|
|
7527
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : fl(k(e), t.queryColIds, q);
|
|
7528
|
+
}, le = (e, t) => ml({
|
|
7523
7529
|
fallbackSubText: e.subText,
|
|
7524
7530
|
getDisplayName: q,
|
|
7525
7531
|
matchedField: e.matchedField,
|
|
@@ -7537,7 +7543,7 @@ function yu(e, t, n) {
|
|
|
7537
7543
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
7538
7544
|
label: K(e)?.headerName ?? e
|
|
7539
7545
|
}));
|
|
7540
|
-
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => U(t.colDef).includes(e)), fe = (e, t, n) =>
|
|
7546
|
+
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => U(t.colDef).includes(e)), fe = (e, t, n) => Xs(J(e)?.knownOptions ?? []).find((r) => r.value === n || Zs(r, t, n, e)), Y = r(() => e.colDefs.filter(F).map((t) => {
|
|
7541
7547
|
let n = k(t), r = D(t), i = M(t), a = ue(ee(n), t), o = ue(ne(n), t), s = {
|
|
7542
7548
|
category: N(t),
|
|
7543
7549
|
colDef: t,
|
|
@@ -7591,7 +7597,7 @@ function yu(e, t, n) {
|
|
|
7591
7597
|
...s,
|
|
7592
7598
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
7593
7599
|
};
|
|
7594
|
-
let c = o, l = ae(t, c), u = G(n, t, l, c), d = [...c, ...u], f = W(t) ?
|
|
7600
|
+
let c = o, l = ae(t, c), u = G(n, t, l, c), d = [...c, ...u], f = W(t) ? mc({
|
|
7595
7601
|
colDef: t,
|
|
7596
7602
|
model: v.value,
|
|
7597
7603
|
options: d
|
|
@@ -7610,19 +7616,19 @@ function yu(e, t, n) {
|
|
|
7610
7616
|
label: e.label,
|
|
7611
7617
|
values: t
|
|
7612
7618
|
}] : [];
|
|
7613
|
-
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() =>
|
|
7619
|
+
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => Jl(v.value, _.value)), ge = r(() => he.value || me.value > 0), _e = (e) => {
|
|
7614
7620
|
let t = J(e.field);
|
|
7615
7621
|
if (!t || t.type !== e.filter.type) return !0;
|
|
7616
7622
|
if (e.filter.type === "value") {
|
|
7617
7623
|
if (t.isAggregate && e.option) {
|
|
7618
|
-
let { selected: n } =
|
|
7624
|
+
let { selected: n } = Oc({
|
|
7619
7625
|
option: e.option,
|
|
7620
7626
|
options: t.knownOptions ?? [],
|
|
7621
7627
|
state: t.aggregateSelectionState ?? []
|
|
7622
7628
|
});
|
|
7623
7629
|
return e.filter.checked ? n : !n;
|
|
7624
7630
|
}
|
|
7625
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
7631
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Js(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
7626
7632
|
return e.filter.checked ? a : !a;
|
|
7627
7633
|
}
|
|
7628
7634
|
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;
|
|
@@ -7636,14 +7642,14 @@ function yu(e, t, n) {
|
|
|
7636
7642
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
7637
7643
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
7638
7644
|
if (!e) return !1;
|
|
7639
|
-
let r =
|
|
7645
|
+
let r = Ys(e, t), i = Js(e) ?? e.value;
|
|
7640
7646
|
return r !== n || c.has(i);
|
|
7641
7647
|
});
|
|
7642
7648
|
if (i) {
|
|
7643
|
-
let e =
|
|
7649
|
+
let e = Js(i) ?? i.value, n = Ys(i, t);
|
|
7644
7650
|
l.some((r) => {
|
|
7645
|
-
let i =
|
|
7646
|
-
return
|
|
7651
|
+
let i = Js(r) ?? r.value;
|
|
7652
|
+
return Ys(r, t) === n && i === e;
|
|
7647
7653
|
}) || l.push(i);
|
|
7648
7654
|
}
|
|
7649
7655
|
o.value[t] = l;
|
|
@@ -7653,7 +7659,7 @@ function yu(e, t, n) {
|
|
|
7653
7659
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
7654
7660
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
7655
7661
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
7656
|
-
a.value[t.key] =
|
|
7662
|
+
a.value[t.key] = kc({
|
|
7657
7663
|
options: t.knownOptions ?? [],
|
|
7658
7664
|
state: n
|
|
7659
7665
|
});
|
|
@@ -7682,48 +7688,48 @@ function yu(e, t, n) {
|
|
|
7682
7688
|
return t === null ? [] : [{
|
|
7683
7689
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
7684
7690
|
type: "boolean",
|
|
7685
|
-
value:
|
|
7691
|
+
value: hu
|
|
7686
7692
|
}];
|
|
7687
7693
|
}, Te = (e) => e.existsValue ? [{
|
|
7688
7694
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
7689
7695
|
type: "exists",
|
|
7690
|
-
value:
|
|
7696
|
+
value: gu
|
|
7691
7697
|
}] : [], Ee = (e) => {
|
|
7692
7698
|
let t = e.rangeValue ?? {
|
|
7693
7699
|
max: null,
|
|
7694
7700
|
min: null
|
|
7695
7701
|
};
|
|
7696
7702
|
return t.min === null && t.max === null ? [] : [{
|
|
7697
|
-
label:
|
|
7703
|
+
label: Ls(t.min, t.max, {
|
|
7698
7704
|
dataType: e.dataType,
|
|
7699
7705
|
valueDecimals: e.valueDecimals
|
|
7700
7706
|
}),
|
|
7701
7707
|
type: "range",
|
|
7702
|
-
value:
|
|
7708
|
+
value: mu
|
|
7703
7709
|
}];
|
|
7704
7710
|
}, De = (e, t, n) => {
|
|
7705
7711
|
let r = n.get(t) ?? null;
|
|
7706
7712
|
return {
|
|
7707
|
-
field: r ?
|
|
7708
|
-
label: r ?
|
|
7709
|
-
resultCount:
|
|
7713
|
+
field: r ? Ys(r, e.key) : void 0,
|
|
7714
|
+
label: r ? Bs(r, e.colDef) : t,
|
|
7715
|
+
resultCount: Vs(r),
|
|
7710
7716
|
subText: r?.subText,
|
|
7711
7717
|
subduedText: r?.subduedText,
|
|
7712
7718
|
type: "value",
|
|
7713
|
-
value: r ?
|
|
7719
|
+
value: r ? Js(r) ?? r.value : t
|
|
7714
7720
|
};
|
|
7715
7721
|
}, Oe = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
7716
7722
|
field: e.field,
|
|
7717
7723
|
label: e.label,
|
|
7718
7724
|
type: "boolean",
|
|
7719
|
-
value:
|
|
7720
|
-
}] : []), ke = (e) =>
|
|
7725
|
+
value: hu
|
|
7726
|
+
}] : []), ke = (e) => kc({
|
|
7721
7727
|
options: e.knownOptions ?? [],
|
|
7722
7728
|
state: e.aggregateSelectionState ?? []
|
|
7723
7729
|
}).map((t) => ({
|
|
7724
7730
|
field: e.key,
|
|
7725
|
-
label:
|
|
7726
|
-
resultCount:
|
|
7731
|
+
label: Bs(t, e.colDef),
|
|
7732
|
+
resultCount: Vs(t),
|
|
7727
7733
|
subText: t.subText,
|
|
7728
7734
|
subduedText: t.subduedText,
|
|
7729
7735
|
type: "value",
|
|
@@ -7733,7 +7739,7 @@ function yu(e, t, n) {
|
|
|
7733
7739
|
if (e.type === "boolean") return we(e);
|
|
7734
7740
|
if (e.type === "exists") return Te(e);
|
|
7735
7741
|
if (e.isAggregate) return [...ke(e), ...Oe(e)];
|
|
7736
|
-
let t = new Map(
|
|
7742
|
+
let t = new Map(Xs(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
7737
7743
|
return [...(e.selectedValues ?? []).map((n) => De(e, n, t)), ...Oe(e)];
|
|
7738
7744
|
}, je = () => {
|
|
7739
7745
|
ze(), Ce(null, "clear-all");
|
|
@@ -7745,9 +7751,9 @@ function yu(e, t, n) {
|
|
|
7745
7751
|
ze();
|
|
7746
7752
|
let e = p.value;
|
|
7747
7753
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
7748
|
-
}, Pe = (e) =>
|
|
7754
|
+
}, Pe = (e) => Yl(J(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
7749
7755
|
let r = J(e);
|
|
7750
|
-
r?.isAggregate && (xe(r, t), Ce(
|
|
7756
|
+
r?.isAggregate && (xe(r, t), Ce(fc({
|
|
7751
7757
|
baseModel: v.value,
|
|
7752
7758
|
colDef: r.colDef,
|
|
7753
7759
|
options: r.knownOptions ?? [],
|
|
@@ -7762,7 +7768,7 @@ function yu(e, t, n) {
|
|
|
7762
7768
|
if (t.type === "value") {
|
|
7763
7769
|
let r = J(e), i = fe(e, n, t.value);
|
|
7764
7770
|
if (r?.isAggregate && i) {
|
|
7765
|
-
Fe(e,
|
|
7771
|
+
Fe(e, Tc({
|
|
7766
7772
|
checked: t.checked,
|
|
7767
7773
|
option: i,
|
|
7768
7774
|
options: r.knownOptions ?? [],
|
|
@@ -7778,10 +7784,10 @@ function yu(e, t, n) {
|
|
|
7778
7784
|
return;
|
|
7779
7785
|
}
|
|
7780
7786
|
if (t.type === "boolean") {
|
|
7781
|
-
Ce(
|
|
7787
|
+
Ce(Zl(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
7782
7788
|
return;
|
|
7783
7789
|
}
|
|
7784
|
-
Ce(
|
|
7790
|
+
Ce(Ql(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
7785
7791
|
}, Ie = (e, t, n, r) => {
|
|
7786
7792
|
let i = p.value;
|
|
7787
7793
|
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;
|
|
@@ -7801,7 +7807,7 @@ function yu(e, t, n) {
|
|
|
7801
7807
|
}, Le = (e, t, r) => {
|
|
7802
7808
|
n("load-more", e.key, e.colDef, t, r), Z(e, t, r ? "child-load-more" : "load-more", r);
|
|
7803
7809
|
}, Re = (e, t, n) => {
|
|
7804
|
-
Ce(
|
|
7810
|
+
Ce($l(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
7805
7811
|
}, ze = () => {
|
|
7806
7812
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
7807
7813
|
l.clear();
|
|
@@ -7832,7 +7838,7 @@ function yu(e, t, n) {
|
|
|
7832
7838
|
Z(e, t, "open");
|
|
7833
7839
|
}, Ue = (e, t, n, r, i) => {
|
|
7834
7840
|
let a = y.value.get(t)?.values ?? [], o = r ? Array.from(new Set([...a, n])) : a.filter((e) => e !== n);
|
|
7835
|
-
be(e, t, o, r ? i : void 0), Ce(
|
|
7841
|
+
be(e, t, o, r ? i : void 0), Ce(eu(v.value, t, o, _.value, K(t) ?? J(e)?.colDef), "value-toggle", t, "value");
|
|
7836
7842
|
};
|
|
7837
7843
|
return {
|
|
7838
7844
|
resolvedFilters: Y,
|
|
@@ -7856,8 +7862,8 @@ function yu(e, t, n) {
|
|
|
7856
7862
|
handleSearchChange: Ve,
|
|
7857
7863
|
handleSuggestionClick: (e) => {
|
|
7858
7864
|
if (e.filter.type === "value" && e.option) {
|
|
7859
|
-
let t = J(e.field), n =
|
|
7860
|
-
t?.isAggregate ? Fe(e.field,
|
|
7865
|
+
let t = J(e.field), n = Ys(e.option, e.field), r = Js(e.option) ?? e.filter.value;
|
|
7866
|
+
t?.isAggregate ? Fe(e.field, Tc({
|
|
7861
7867
|
checked: e.filter.checked,
|
|
7862
7868
|
option: e.option,
|
|
7863
7869
|
options: t.knownOptions ?? [],
|
|
@@ -7868,21 +7874,21 @@ function yu(e, t, n) {
|
|
|
7868
7874
|
},
|
|
7869
7875
|
removeAppliedFilter: (e, t, n) => {
|
|
7870
7876
|
let r = n ?? J(e)?.type ?? "value";
|
|
7871
|
-
if (r === "range" || !n && t ===
|
|
7872
|
-
Ce(
|
|
7877
|
+
if (r === "range" || !n && t === mu) {
|
|
7878
|
+
Ce($l(v.value, e, null, null, _.value, K(e) ?? J(e)?.colDef), "remove-filter", e, "range");
|
|
7873
7879
|
return;
|
|
7874
7880
|
}
|
|
7875
|
-
if (r === "boolean" || !n && t ===
|
|
7876
|
-
Ce(
|
|
7881
|
+
if (r === "boolean" || !n && t === hu) {
|
|
7882
|
+
Ce(Zl(v.value, e, null, _.value, "boolean", K(e) ?? J(e)?.colDef), "remove-filter", e, "boolean");
|
|
7877
7883
|
return;
|
|
7878
7884
|
}
|
|
7879
|
-
if (r === "exists" || !n && t ===
|
|
7880
|
-
Ce(
|
|
7885
|
+
if (r === "exists" || !n && t === gu) {
|
|
7886
|
+
Ce(Ql(v.value, e, !1, "text", _.value, K(e) ?? J(e)?.colDef), "remove-filter", e, "exists");
|
|
7881
7887
|
return;
|
|
7882
7888
|
}
|
|
7883
7889
|
let i = J(e);
|
|
7884
7890
|
if (r === "value" && i?.isAggregate) {
|
|
7885
|
-
let e =
|
|
7891
|
+
let e = oc(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? Tc({
|
|
7886
7892
|
checked: !1,
|
|
7887
7893
|
option: e,
|
|
7888
7894
|
options: i.knownOptions ?? [],
|
|
@@ -7892,37 +7898,37 @@ function yu(e, t, n) {
|
|
|
7892
7898
|
return;
|
|
7893
7899
|
}
|
|
7894
7900
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
7895
|
-
be(J(e)?.key ?? e, e, a), Ce(
|
|
7901
|
+
be(J(e)?.key ?? e, e, a), Ce(eu(v.value, e, a, _.value, K(e) ?? J(e)?.colDef), "remove-filter", e, "value");
|
|
7896
7902
|
}
|
|
7897
7903
|
};
|
|
7898
7904
|
}
|
|
7899
7905
|
//#endregion
|
|
7900
7906
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7901
|
-
var
|
|
7907
|
+
var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, xu = { class: "pv-filter-panel-body pv-flex-vertical" }, Su = {
|
|
7902
7908
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
7903
7909
|
"data-testid": "pv-filter-panel-filters-view"
|
|
7904
|
-
},
|
|
7910
|
+
}, Cu = {
|
|
7905
7911
|
key: 0,
|
|
7906
7912
|
"aria-label": "Filter suggestions",
|
|
7907
7913
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
7908
7914
|
"data-testid": "pv-filter-panel-suggestions"
|
|
7909
|
-
},
|
|
7915
|
+
}, wu = { class: "pv-filter-panel-suggestion-tags pv-flex" }, Tu = {
|
|
7910
7916
|
key: 1,
|
|
7911
7917
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7912
|
-
},
|
|
7918
|
+
}, Eu = {
|
|
7913
7919
|
key: 2,
|
|
7914
7920
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7915
|
-
},
|
|
7921
|
+
}, Du = {
|
|
7916
7922
|
key: 3,
|
|
7917
7923
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
7918
7924
|
style: { "--inset-size": "8px" }
|
|
7919
|
-
},
|
|
7925
|
+
}, Ou = {
|
|
7920
7926
|
key: 0,
|
|
7921
7927
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
7922
|
-
},
|
|
7928
|
+
}, ku = {
|
|
7923
7929
|
key: 1,
|
|
7924
7930
|
class: "pv-filter-panel-actions pv-flex"
|
|
7925
|
-
},
|
|
7931
|
+
}, Au = { class: "pv-text-body-sm" }, ju = { class: "pv-filter-panel-modal-footer pv-flex" }, Mu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
7926
7932
|
__name: "PvFilterPanel",
|
|
7927
7933
|
props: /* @__PURE__ */ g({
|
|
7928
7934
|
applyLabel: { default: "Apply" },
|
|
@@ -7998,7 +8004,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
7998
8004
|
"suggestion-click"
|
|
7999
8005
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
8000
8006
|
setup(e, { emit: n }) {
|
|
8001
|
-
let c = e, l = L(e, "filterModel"), d = L(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: D, handleSuggestionClick: j, removeAppliedFilter: M } =
|
|
8007
|
+
let c = e, l = L(e, "filterModel"), d = L(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: D, handleSuggestionClick: j, removeAppliedFilter: M } = vu(c, l, f), N = O("filters"), ee = O({}), I = O(null), R = O(!1), z = O(!1), B = (e) => e.colDef.context?.filterCollapsedByDefault === !0, te = r(() => I.value === null ? p.value : p.value.filter((e) => e.category === I.value)), ne = r(() => te.value.filter((e) => !B(e))), V = r(() => te.value.filter(B)), H = r(() => R.value ? [...ne.value, ...V.value] : ne.value), ie = r(() => `${R.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), ae = r(() => H.value.map((e) => ({
|
|
8002
8008
|
...e,
|
|
8003
8009
|
isOpen: ee.value[e.key] ?? e.isOpen ?? !1
|
|
8004
8010
|
}))), G = r(() => [{
|
|
@@ -8032,7 +8038,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8032
8038
|
"aria-label": e.ariaLabel,
|
|
8033
8039
|
style: x(oe.value)
|
|
8034
8040
|
}, [
|
|
8035
|
-
s("div",
|
|
8041
|
+
s("div", bu, [u(ur, {
|
|
8036
8042
|
modelValue: N.value,
|
|
8037
8043
|
options: G.value,
|
|
8038
8044
|
class: "pv-filter-panel-mode-control",
|
|
@@ -8046,8 +8052,8 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8046
8052
|
variant: "secondary",
|
|
8047
8053
|
onClick: r[0] ||= (e) => d.value = !0
|
|
8048
8054
|
}))]),
|
|
8049
|
-
s("div",
|
|
8050
|
-
!e.readOnly && F(_).length ? (E(), o("section",
|
|
8055
|
+
s("div", xu, [W(s("div", Su, [
|
|
8056
|
+
!e.readOnly && F(_).length ? (E(), o("section", Cu, [r[6] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", wu, [(E(!0), o(t, null, k(F(_), (e) => (E(), i(Lr, {
|
|
8051
8057
|
key: F(C)(e),
|
|
8052
8058
|
icon: e.icon,
|
|
8053
8059
|
"icon-classes": e.iconClasses,
|
|
@@ -8060,7 +8066,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8060
8066
|
"onHandleClick"
|
|
8061
8067
|
]))), 128))])])) : a("", !0),
|
|
8062
8068
|
A(n.$slots, "suggestions", {}, void 0, !0),
|
|
8063
|
-
u(
|
|
8069
|
+
u(dl, {
|
|
8064
8070
|
modelValue: I.value,
|
|
8065
8071
|
"onUpdate:modelValue": r[1] ||= (e) => I.value = e,
|
|
8066
8072
|
"category-order": e.categoryOrder,
|
|
@@ -8070,7 +8076,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8070
8076
|
"category-order",
|
|
8071
8077
|
"filters"
|
|
8072
8078
|
]),
|
|
8073
|
-
F(p).length ? te.value.length ? (E(), o("div",
|
|
8079
|
+
F(p).length ? te.value.length ? (E(), o("div", Du, [(E(!0), o(t, null, k(ae.value, (e) => (E(), i(Qc, {
|
|
8074
8080
|
key: e.key,
|
|
8075
8081
|
filter: e,
|
|
8076
8082
|
onFilterChange: (t) => F(w)(e.key, t),
|
|
@@ -8091,8 +8097,8 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8091
8097
|
label: ie.value,
|
|
8092
8098
|
variant: "ghost",
|
|
8093
8099
|
onClick: r[4] ||= (e) => R.value = !R.value
|
|
8094
|
-
}, null, 8, ["label"])) : a("", !0)])) : (E(), o("div",
|
|
8095
|
-
], 512), [[re, N.value === "filters"]]), W(u(
|
|
8100
|
+
}, null, 8, ["label"])) : a("", !0)])) : (E(), o("div", Eu, " No filters in this category. ")) : (E(), o("div", Tu, " No filters available. "))
|
|
8101
|
+
], 512), [[re, N.value === "filters"]]), W(u(il, {
|
|
8096
8102
|
"applied-count": F(h),
|
|
8097
8103
|
"applied-groups": F(m),
|
|
8098
8104
|
"read-only": e.readOnly,
|
|
@@ -8103,13 +8109,13 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8103
8109
|
"read-only",
|
|
8104
8110
|
"onRemoveFilter"
|
|
8105
8111
|
]), [[re, N.value === "applied"]])]),
|
|
8106
|
-
(F(g) || e.staged) && !e.readOnly ? (E(), o("div",
|
|
8112
|
+
(F(g) || e.staged) && !e.readOnly ? (E(), o("div", Ou, [F(g) ? (E(), i(Q, {
|
|
8107
8113
|
key: 0,
|
|
8108
8114
|
class: "pv-text-brand",
|
|
8109
8115
|
label: e.clearAllLabel,
|
|
8110
8116
|
variant: "ghost",
|
|
8111
8117
|
onClick: le
|
|
8112
|
-
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div",
|
|
8118
|
+
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div", ku, [u(Q, {
|
|
8113
8119
|
label: e.cancelLabel,
|
|
8114
8120
|
variant: "ghost",
|
|
8115
8121
|
onClick: F(b)
|
|
@@ -8118,14 +8124,14 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8118
8124
|
variant: "primary",
|
|
8119
8125
|
onClick: F(y)
|
|
8120
8126
|
}, null, 8, ["label", "onClick"])])) : a("", !0)])) : a("", !0)
|
|
8121
|
-
], 12,
|
|
8127
|
+
], 12, yu)), u(Cr, {
|
|
8122
8128
|
modelValue: z.value,
|
|
8123
8129
|
"onUpdate:modelValue": r[5] ||= (e) => z.value = e,
|
|
8124
8130
|
header: e.clearAllHeader,
|
|
8125
8131
|
style: { "--max-width": "440px" }
|
|
8126
8132
|
}, {
|
|
8127
|
-
body: U(() => [s("p",
|
|
8128
|
-
footer: U(() => [s("div",
|
|
8133
|
+
body: U(() => [s("p", Au, P(e.clearAllBody), 1)]),
|
|
8134
|
+
footer: U(() => [s("div", ju, [u(Q, {
|
|
8129
8135
|
label: e.cancelLabel,
|
|
8130
8136
|
variant: "ghost",
|
|
8131
8137
|
onClick: q
|
|
@@ -8137,16 +8143,16 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8137
8143
|
_: 1
|
|
8138
8144
|
}, 8, ["modelValue", "header"])], 64));
|
|
8139
8145
|
}
|
|
8140
|
-
}), [["__scopeId", "data-v-
|
|
8146
|
+
}), [["__scopeId", "data-v-14259e0c"]]), Nu = ["for"], Pu = [
|
|
8141
8147
|
"id",
|
|
8142
8148
|
"type",
|
|
8143
8149
|
"value",
|
|
8144
8150
|
"name",
|
|
8145
8151
|
"disabled"
|
|
8146
|
-
],
|
|
8152
|
+
], Fu = { key: 0 }, Iu = {
|
|
8147
8153
|
class: "pv-inset-square",
|
|
8148
8154
|
style: { "--inset-size": "0px 2px" }
|
|
8149
|
-
},
|
|
8155
|
+
}, Lu = /* @__PURE__ */ d({
|
|
8150
8156
|
__name: "PvFilterModalSelectItem",
|
|
8151
8157
|
props: /* @__PURE__ */ g({
|
|
8152
8158
|
rounded: { type: Boolean },
|
|
@@ -8179,44 +8185,44 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8179
8185
|
value: e.value,
|
|
8180
8186
|
name: e.name,
|
|
8181
8187
|
disabled: e.disabled
|
|
8182
|
-
}, null, 8,
|
|
8183
|
-
e.label ? (E(), o("span",
|
|
8184
|
-
s("span",
|
|
8185
|
-
], 8,
|
|
8188
|
+
}, null, 8, Pu), [[te, n.value]]),
|
|
8189
|
+
e.label ? (E(), o("span", Fu, P(e.label), 1)) : a("", !0),
|
|
8190
|
+
s("span", Iu, P(e.rightCounterBadge), 1)
|
|
8191
|
+
], 8, Nu));
|
|
8186
8192
|
}
|
|
8187
|
-
}),
|
|
8193
|
+
}), Ru = ["aria-label"], zu = {
|
|
8188
8194
|
class: "pv-filter-modal pv-flex",
|
|
8189
8195
|
style: {
|
|
8190
8196
|
"--flex-align": "stretch",
|
|
8191
8197
|
"--flex-gap": "0"
|
|
8192
8198
|
}
|
|
8193
|
-
},
|
|
8199
|
+
}, Bu = {
|
|
8194
8200
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
8195
8201
|
"aria-label": "Filter categories",
|
|
8196
8202
|
style: { "--flex-gap": "0.25rem" }
|
|
8197
|
-
},
|
|
8203
|
+
}, Vu = {
|
|
8198
8204
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
8199
8205
|
style: {
|
|
8200
8206
|
"--flex-align": "stretch",
|
|
8201
8207
|
"--flex-gap": "0.75rem"
|
|
8202
8208
|
}
|
|
8203
|
-
},
|
|
8209
|
+
}, Hu = {
|
|
8204
8210
|
key: 0,
|
|
8205
8211
|
class: "pv-inset-square-8"
|
|
8206
|
-
},
|
|
8212
|
+
}, Uu = {
|
|
8207
8213
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
8208
8214
|
style: {
|
|
8209
8215
|
"--flex-align": "stretch",
|
|
8210
8216
|
"--flex-gap": "0.25rem"
|
|
8211
8217
|
}
|
|
8212
|
-
},
|
|
8218
|
+
}, Wu = {
|
|
8213
8219
|
key: 0,
|
|
8214
8220
|
class: "pv-text-body-xs pv-text-subdued",
|
|
8215
8221
|
style: { margin: "0" }
|
|
8216
|
-
},
|
|
8222
|
+
}, Gu = {
|
|
8217
8223
|
key: 2,
|
|
8218
8224
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
8219
|
-
},
|
|
8225
|
+
}, Ku = {
|
|
8220
8226
|
key: 0,
|
|
8221
8227
|
class: "pv-flex pv-border-top",
|
|
8222
8228
|
style: {
|
|
@@ -8225,7 +8231,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8225
8231
|
"margin-top": "0.75rem",
|
|
8226
8232
|
"padding-top": "0.75rem"
|
|
8227
8233
|
}
|
|
8228
|
-
},
|
|
8234
|
+
}, qu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8229
8235
|
__name: "PvFilterModal",
|
|
8230
8236
|
props: /* @__PURE__ */ g({
|
|
8231
8237
|
header: { default: "Filters" },
|
|
@@ -8302,7 +8308,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8302
8308
|
"suggestion-click"
|
|
8303
8309
|
], ["update:filterModel", "update:visible"]),
|
|
8304
8310
|
setup(e, { emit: n }) {
|
|
8305
|
-
let c = e, l = L(e, "filterModel"), d = L(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } =
|
|
8311
|
+
let c = e, l = L(e, "filterModel"), d = L(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = vu(c, l, f), v = O(null), y = O(""), b = r(() => p.value.filter((e) => e.type === "value")), S = r(() => {
|
|
8306
8312
|
let e = b.value;
|
|
8307
8313
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
8308
8314
|
}), C = r(() => S.value?.isAggregate === !0), w = r(() => S.value?.aggregateSelectionState ?? []), T = r(() => new Set(S.value?.selectedValues ?? [])), D = r(() => y.value.trim().toLowerCase()), j = (e) => {
|
|
@@ -8319,7 +8325,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8319
8325
|
let e = S.value;
|
|
8320
8326
|
if (!e) return {};
|
|
8321
8327
|
let t = {};
|
|
8322
|
-
for (let n of
|
|
8328
|
+
for (let n of Xs([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
8323
8329
|
return t;
|
|
8324
8330
|
}), N = r(() => {
|
|
8325
8331
|
let e = S.value?.options ?? [], t = D.value;
|
|
@@ -8327,22 +8333,22 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8327
8333
|
}), P = r(() => C.value ? [] : (S.value?.selectedValues ?? []).map((e) => M.value[e] ?? {
|
|
8328
8334
|
label: e,
|
|
8329
8335
|
value: e
|
|
8330
|
-
})), ee = r(() => C.value ? N.value : N.value.filter((e) => !T.value.has(e.value))), I = r(() => C.value && S.value ?
|
|
8336
|
+
})), ee = r(() => C.value ? N.value : N.value.filter((e) => !T.value.has(e.value))), I = r(() => C.value && S.value ? Dc({
|
|
8331
8337
|
options: S.value.knownOptions ?? [],
|
|
8332
8338
|
state: w.value
|
|
8333
|
-
}) : /* @__PURE__ */ new Map()), R = (e) => e.isAggregate ?
|
|
8339
|
+
}) : /* @__PURE__ */ new Map()), R = (e) => e.isAggregate ? Ac(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, z = (e) => C.value ? I.value.get(e.value) ?? {
|
|
8334
8340
|
indeterminate: !1,
|
|
8335
8341
|
selected: !1
|
|
8336
8342
|
} : {
|
|
8337
8343
|
indeterminate: !1,
|
|
8338
8344
|
selected: T.value.has(e.value)
|
|
8339
|
-
}, B = (e) => S.value ?
|
|
8345
|
+
}, B = (e) => S.value ? Bs(e, S.value.colDef) : e.label || e.value, te = (e) => Js(e) ?? e.value, ne = (e) => Ys(e, S.value?.key ?? ""), V = (e, t) => {
|
|
8340
8346
|
let n = S.value;
|
|
8341
8347
|
if (n) {
|
|
8342
8348
|
if (n.isAggregate) {
|
|
8343
8349
|
_(n.key, {
|
|
8344
8350
|
type: "aggregate-selection",
|
|
8345
|
-
value:
|
|
8351
|
+
value: Tc({
|
|
8346
8352
|
checked: t,
|
|
8347
8353
|
option: e,
|
|
8348
8354
|
options: n.knownOptions ?? [],
|
|
@@ -8362,7 +8368,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8362
8368
|
for (let e of N.value) z(e).selected || V(e, !0);
|
|
8363
8369
|
}, ie = () => {
|
|
8364
8370
|
if (C.value) {
|
|
8365
|
-
for (let e of
|
|
8371
|
+
for (let e of Xs(S.value?.knownOptions ?? [])) z(e).selected && V(e, !1);
|
|
8366
8372
|
return;
|
|
8367
8373
|
}
|
|
8368
8374
|
for (let e of P.value) V(e, !1);
|
|
@@ -8402,7 +8408,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8402
8408
|
width: e.maxWidth,
|
|
8403
8409
|
maxWidth: e.maxWidth
|
|
8404
8410
|
})
|
|
8405
|
-
}, [s("div",
|
|
8411
|
+
}, [s("div", zu, [s("nav", Bu, [(E(!0), o(t, null, k(b.value, (e) => (E(), i(Lu, {
|
|
8406
8412
|
key: e.key,
|
|
8407
8413
|
modelValue: ae.value,
|
|
8408
8414
|
"onUpdate:modelValue": r[0] ||= (e) => ae.value = e,
|
|
@@ -8416,7 +8422,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8416
8422
|
"label",
|
|
8417
8423
|
"right-counter-badge",
|
|
8418
8424
|
"value"
|
|
8419
|
-
]))), 128))]), s("div",
|
|
8425
|
+
]))), 128))]), s("div", Vu, [
|
|
8420
8426
|
u(Wr, {
|
|
8421
8427
|
modelValue: y.value,
|
|
8422
8428
|
"onUpdate:modelValue": r[1] ||= (e) => y.value = e,
|
|
@@ -8428,16 +8434,16 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8428
8434
|
"disabled",
|
|
8429
8435
|
"placeholder"
|
|
8430
8436
|
]),
|
|
8431
|
-
S.value?.isLoading ? (E(), o("div",
|
|
8432
|
-
s("div",
|
|
8437
|
+
S.value?.isLoading ? (E(), o("div", Hu, [u(Oe, { size: "sm" })])) : S.value ? (E(), o(t, { key: 1 }, [
|
|
8438
|
+
s("div", Uu, [(E(!0), o(t, null, k(P.value, (e) => (E(), o("div", {
|
|
8433
8439
|
key: `selected-${e.value}`,
|
|
8434
8440
|
class: "pv-inset-square-8 pv-surface-highlight pv-radius"
|
|
8435
|
-
}, [u(
|
|
8441
|
+
}, [u(As, {
|
|
8436
8442
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8437
8443
|
indeterminate: z(e).indeterminate,
|
|
8438
8444
|
label: B(e),
|
|
8439
8445
|
"query-text": y.value,
|
|
8440
|
-
"result-count": F(
|
|
8446
|
+
"result-count": F(Vs)(e),
|
|
8441
8447
|
selected: !0,
|
|
8442
8448
|
"sub-text": e.subText,
|
|
8443
8449
|
"subdued-text": e.subduedText,
|
|
@@ -8456,12 +8462,12 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8456
8462
|
])]))), 128)), (E(!0), o(t, null, k(ee.value, (e) => (E(), o("div", {
|
|
8457
8463
|
key: `option-${e.value}`,
|
|
8458
8464
|
class: "pv-inset-square-8 pv-radius"
|
|
8459
|
-
}, [u(
|
|
8465
|
+
}, [u(As, {
|
|
8460
8466
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8461
8467
|
indeterminate: z(e).indeterminate,
|
|
8462
8468
|
label: B(e),
|
|
8463
8469
|
"query-text": y.value,
|
|
8464
|
-
"result-count": F(
|
|
8470
|
+
"result-count": F(Vs)(e),
|
|
8465
8471
|
selected: z(e).selected,
|
|
8466
8472
|
"sub-text": e.subText,
|
|
8467
8473
|
"subdued-text": e.subduedText,
|
|
@@ -8479,7 +8485,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8479
8485
|
"value",
|
|
8480
8486
|
"onToggleValue"
|
|
8481
8487
|
])]))), 128))]),
|
|
8482
|
-
!P.value.length && !ee.value.length ? (E(), o("p",
|
|
8488
|
+
!P.value.length && !ee.value.length ? (E(), o("p", Wu, " No matching values. ")) : a("", !0),
|
|
8483
8489
|
S.value.hasMore ? (E(), i(Q, {
|
|
8484
8490
|
key: 1,
|
|
8485
8491
|
class: "pv-text-brand",
|
|
@@ -8490,7 +8496,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8490
8496
|
onClick: W
|
|
8491
8497
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
8492
8498
|
], 64)) : a("", !0),
|
|
8493
|
-
S.value && !e.readOnly ? (E(), o("div",
|
|
8499
|
+
S.value && !e.readOnly ? (E(), o("div", Gu, [u(Q, {
|
|
8494
8500
|
disabled: S.value.disabled,
|
|
8495
8501
|
label: e.selectAllLabel,
|
|
8496
8502
|
variant: "ghost",
|
|
@@ -8501,7 +8507,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8501
8507
|
variant: "ghost",
|
|
8502
8508
|
onClick: ie
|
|
8503
8509
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
8504
|
-
])]), e.staged ? (E(), o("div",
|
|
8510
|
+
])]), e.staged ? (E(), o("div", Ku, [u(Q, {
|
|
8505
8511
|
label: e.cancelLabel,
|
|
8506
8512
|
variant: "ghost",
|
|
8507
8513
|
onClick: F(g)
|
|
@@ -8509,14 +8515,14 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8509
8515
|
label: e.applyLabel,
|
|
8510
8516
|
variant: "primary",
|
|
8511
8517
|
onClick: F(h)
|
|
8512
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
8518
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, Ru)]),
|
|
8513
8519
|
_: 3
|
|
8514
8520
|
}, 8, ["modelValue"]));
|
|
8515
8521
|
}
|
|
8516
|
-
}), [["__scopeId", "data-v-f6b1c07d"]]),
|
|
8522
|
+
}), [["__scopeId", "data-v-f6b1c07d"]]), Ju = ["tabindex"], Yu = {
|
|
8517
8523
|
key: 0,
|
|
8518
8524
|
class: "pv-hover-action-menu__actions"
|
|
8519
|
-
},
|
|
8525
|
+
}, Xu = { class: "pv-hover-action-menu__action-group" }, Zu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8520
8526
|
__name: "PvHoverActionMenu",
|
|
8521
8527
|
props: {
|
|
8522
8528
|
disabled: {
|
|
@@ -8539,12 +8545,12 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8539
8545
|
class: y(["pv-hover-action-menu", d.value]),
|
|
8540
8546
|
tabindex: e.options.length ? 0 : void 0,
|
|
8541
8547
|
"data-testid": "pv-hover-action-menu"
|
|
8542
|
-
}, [A(n.$slots, "default", {}, void 0, !0), e.options.length ? (E(), o("div",
|
|
8548
|
+
}, [A(n.$slots, "default", {}, void 0, !0), e.options.length ? (E(), o("div", Yu, [u(Eo, {
|
|
8543
8549
|
variant: e.variant,
|
|
8544
8550
|
"data-testid": "pv-hover-action-menu-actions",
|
|
8545
8551
|
onClick: r[0] ||= G(() => {}, ["stop"])
|
|
8546
8552
|
}, {
|
|
8547
|
-
default: U(() => [s("div",
|
|
8553
|
+
default: U(() => [s("div", Xu, [(E(!0), o(t, null, k(e.options, (t) => (E(), i(Pn, {
|
|
8548
8554
|
key: t.id,
|
|
8549
8555
|
variant: "dark",
|
|
8550
8556
|
position: "top-center",
|
|
@@ -8572,9 +8578,9 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8572
8578
|
_: 2
|
|
8573
8579
|
}, 1032, ["description"]))), 128))])]),
|
|
8574
8580
|
_: 1
|
|
8575
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
8581
|
+
}, 8, ["variant"])])) : a("", !0)], 10, Ju));
|
|
8576
8582
|
}
|
|
8577
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
8583
|
+
}), [["__scopeId", "data-v-6325cd25"]]), Qu = () => {
|
|
8578
8584
|
let e = (e, n) => {
|
|
8579
8585
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
8580
8586
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -8588,13 +8594,13 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8588
8594
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
8589
8595
|
}
|
|
8590
8596
|
};
|
|
8591
|
-
},
|
|
8597
|
+
}, $u = { class: "pv-flex" }, ed = { class: "pv-text-body-md" }, td = ["textContent"], nd = {
|
|
8592
8598
|
key: 0,
|
|
8593
8599
|
class: "pv-text-body-xs"
|
|
8594
|
-
},
|
|
8600
|
+
}, rd = { key: 0 }, id = {
|
|
8595
8601
|
class: "pv-text-subdued pv-text-body-xs",
|
|
8596
8602
|
style: { "font-weight": "500" }
|
|
8597
|
-
},
|
|
8603
|
+
}, ad = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8598
8604
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
8599
8605
|
props: {
|
|
8600
8606
|
id: {},
|
|
@@ -8641,13 +8647,13 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8641
8647
|
bold: !1
|
|
8642
8648
|
}), n;
|
|
8643
8649
|
});
|
|
8644
|
-
return (e, n) => (E(), o("div", null, [s("div",
|
|
8650
|
+
return (e, n) => (E(), o("div", null, [s("div", $u, [u(X, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", ed, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
8645
8651
|
key: t,
|
|
8646
8652
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
8647
8653
|
textContent: P(e.text)
|
|
8648
|
-
}, null, 12,
|
|
8654
|
+
}, null, 12, td))), 128))]), f.value ? (E(), o("p", nd, [c.value ? a("", !0) : (E(), o("span", rd, "Search in ")), s("span", id, P(f.value), 1)])) : a("", !0)])])]));
|
|
8649
8655
|
}
|
|
8650
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
8656
|
+
}), [["__scopeId", "data-v-ff951d17"]]), od = /* @__PURE__ */ d({
|
|
8651
8657
|
__name: "QueryFormatter",
|
|
8652
8658
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
8653
8659
|
modelValue: { required: !0 },
|
|
@@ -8661,7 +8667,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8661
8667
|
}),
|
|
8662
8668
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8663
8669
|
setup(e) {
|
|
8664
|
-
let n = e, s = L(e, "modelValue"), c = L(e, "wrap-content"), { removeQueryOption: l } =
|
|
8670
|
+
let n = e, s = L(e, "modelValue"), c = L(e, "wrap-content"), { removeQueryOption: l } = Qu(), u = r(() => {
|
|
8665
8671
|
let e = s.value?.queryTerms || [];
|
|
8666
8672
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8667
8673
|
}), 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) => {
|
|
@@ -8693,17 +8699,17 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8693
8699
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
8694
8700
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
8695
8701
|
}
|
|
8696
|
-
}),
|
|
8702
|
+
}), sd = [
|
|
8697
8703
|
"disabled",
|
|
8698
8704
|
"placeholder",
|
|
8699
8705
|
"data-invalid"
|
|
8700
|
-
],
|
|
8706
|
+
], cd = {
|
|
8701
8707
|
key: 2,
|
|
8702
8708
|
class: "pv-text-red pv-text-body-xs"
|
|
8703
|
-
},
|
|
8709
|
+
}, ld = {
|
|
8704
8710
|
key: 1,
|
|
8705
8711
|
class: "pv-text-center"
|
|
8706
|
-
},
|
|
8712
|
+
}, ud = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8707
8713
|
__name: "PvQueryBuilderInput",
|
|
8708
8714
|
props: /* @__PURE__ */ g({
|
|
8709
8715
|
placeholder: { default: "Search" },
|
|
@@ -8751,7 +8757,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8751
8757
|
"update:options"
|
|
8752
8758
|
],
|
|
8753
8759
|
setup(e) {
|
|
8754
|
-
let n = e, c = { renderer:
|
|
8760
|
+
let n = e, c = { renderer: ad }, l = z("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = Qu(), v = O(!1), b = O(!1), S = O(!1), C = r(() => f.value === null ? n.placeholder : ""), w = O(null), T = r(() => w.value !== null && w.value !== "" && !b.value), D = () => {
|
|
8755
8761
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
8756
8762
|
};
|
|
8757
8763
|
n.enableCustomOptionsInput && se("Enter", () => {
|
|
@@ -8835,7 +8841,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8835
8841
|
"--inset-size": "4px",
|
|
8836
8842
|
"--flex-gap": "4px"
|
|
8837
8843
|
}, e.enableWrapQueryTerms || S.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
8838
|
-
}, [u(
|
|
8844
|
+
}, [u(od, {
|
|
8839
8845
|
modelValue: f.value,
|
|
8840
8846
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
8841
8847
|
"wrap-content": S.value,
|
|
@@ -8856,7 +8862,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8856
8862
|
style: x(d.value ? "min-width: 8rem;" : void 0),
|
|
8857
8863
|
onFocus: I,
|
|
8858
8864
|
onBlur: I
|
|
8859
|
-
}, null, 44,
|
|
8865
|
+
}, null, 44, sd), [[V, d.value]])], 4),
|
|
8860
8866
|
f.value && !e.hideClearButton ? (E(), i(Q, {
|
|
8861
8867
|
key: 1,
|
|
8862
8868
|
variant: "ghost",
|
|
@@ -8864,7 +8870,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8864
8870
|
size: "md",
|
|
8865
8871
|
onClick: D
|
|
8866
8872
|
})) : a("", !0),
|
|
8867
|
-
T.value ? (E(), o("p",
|
|
8873
|
+
T.value ? (E(), o("p", cd, P(w.value), 1)) : a("", !0),
|
|
8868
8874
|
j.value.length > 0 || e.optionsLoading ? (E(), i(rr, {
|
|
8869
8875
|
key: 3,
|
|
8870
8876
|
class: y({ "pv-hide": !v.value }),
|
|
@@ -8874,7 +8880,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8874
8880
|
},
|
|
8875
8881
|
isList: !0
|
|
8876
8882
|
}, {
|
|
8877
|
-
default: U(() => [e.optionsLoading ? (E(), o("div",
|
|
8883
|
+
default: U(() => [e.optionsLoading ? (E(), o("div", ld, [u(Oe, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(j.value, (e, t) => (E(), i($i, _({
|
|
8878
8884
|
key: `${t}-${e.searchText}`,
|
|
8879
8885
|
ref_for: !0
|
|
8880
8886
|
}, e, {
|
|
@@ -8885,7 +8891,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8885
8891
|
}, 8, ["class"])) : a("", !0)
|
|
8886
8892
|
], 32)), [[F(de), M]]);
|
|
8887
8893
|
}
|
|
8888
|
-
}), [["__scopeId", "data-v-e2a82095"]]),
|
|
8894
|
+
}), [["__scopeId", "data-v-e2a82095"]]), dd = { class: "sidebar-header" }, fd = { class: "sidebar-header-content" }, pd = { class: "content-panel" }, md = 300, hd = /* @__PURE__ */ d({
|
|
8889
8895
|
__name: "PvSidebar",
|
|
8890
8896
|
props: /* @__PURE__ */ g({
|
|
8891
8897
|
disableToggle: { type: Boolean },
|
|
@@ -8911,7 +8917,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8911
8917
|
}, m = () => {
|
|
8912
8918
|
n.value && (l && clearTimeout(l), l = setTimeout(() => {
|
|
8913
8919
|
c.value = !0;
|
|
8914
|
-
},
|
|
8920
|
+
}, md));
|
|
8915
8921
|
}, h = () => {
|
|
8916
8922
|
l &&= (clearTimeout(l), null), p(), c.value = !1;
|
|
8917
8923
|
}, g = () => {
|
|
@@ -8926,20 +8932,20 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8926
8932
|
onMouseenter: m,
|
|
8927
8933
|
onMouseleave: h,
|
|
8928
8934
|
onFocusin: m
|
|
8929
|
-
}, [s("div",
|
|
8935
|
+
}, [s("div", dd, [s("div", fd, [A(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (E(), i(Q, {
|
|
8930
8936
|
key: 0,
|
|
8931
8937
|
class: "sidebar-toggle",
|
|
8932
8938
|
"left-icon": n.value ? "panel-left-open" : "panel-left-close",
|
|
8933
8939
|
"aria-label": n.value ? "Open sidebar" : "Close sidebar",
|
|
8934
8940
|
variant: "secondary",
|
|
8935
8941
|
onClick: g
|
|
8936
|
-
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div",
|
|
8942
|
+
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div", pd, [A(t.$slots, "default")])], 2));
|
|
8937
8943
|
}
|
|
8938
|
-
}),
|
|
8944
|
+
}), gd = {
|
|
8939
8945
|
class: "pv-toc",
|
|
8940
8946
|
role: "list",
|
|
8941
8947
|
style: { "min-width": "160px" }
|
|
8942
|
-
},
|
|
8948
|
+
}, _d = ["aria-current"], vd = ["href", "onClick"], yd = /* @__PURE__ */ d({
|
|
8943
8949
|
__name: "PvTableOfContents",
|
|
8944
8950
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
8945
8951
|
modelValue: { required: !1 },
|
|
@@ -8950,7 +8956,7 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8950
8956
|
let r = L(e, "modelValue"), c = n, u = (e, t) => {
|
|
8951
8957
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
8952
8958
|
};
|
|
8953
|
-
return (n, c) => (E(), o("ul",
|
|
8959
|
+
return (n, c) => (E(), o("ul", gd, [(E(!0), o(t, null, k(e.items, (e) => (E(), o("li", {
|
|
8954
8960
|
key: e.id,
|
|
8955
8961
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
8956
8962
|
}, [s("a", {
|
|
@@ -8959,9 +8965,9 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8959
8965
|
}, [e.icon ? (E(), i(X, {
|
|
8960
8966
|
key: 0,
|
|
8961
8967
|
name: e.icon
|
|
8962
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + P(e.label), 1)], 8,
|
|
8968
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + P(e.label), 1)], 8, vd)], 8, _d))), 128))]));
|
|
8963
8969
|
}
|
|
8964
|
-
}),
|
|
8970
|
+
}), bd = { class: "pv-flex" }, xd = ["data-clickable", "onClick"], Sd = /* @__PURE__ */ d({
|
|
8965
8971
|
__name: "PvStepper",
|
|
8966
8972
|
props: {
|
|
8967
8973
|
count: { default: 5 },
|
|
@@ -8974,14 +8980,14 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8974
8980
|
emits: ["update:active"],
|
|
8975
8981
|
setup(e) {
|
|
8976
8982
|
let n = e;
|
|
8977
|
-
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div",
|
|
8983
|
+
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div", bd, [(E(!0), o(t, null, k(e.count, (t, r) => (E(), o("div", {
|
|
8978
8984
|
key: r,
|
|
8979
8985
|
"data-clickable": e.clickable,
|
|
8980
8986
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
8981
8987
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
8982
|
-
}, null, 10,
|
|
8988
|
+
}, null, 10, xd))), 128))]));
|
|
8983
8989
|
}
|
|
8984
|
-
}),
|
|
8990
|
+
}), Cd = { theme: {
|
|
8985
8991
|
preset: be,
|
|
8986
8992
|
options: {
|
|
8987
8993
|
darkModeSelector: "none",
|
|
@@ -8990,10 +8996,10 @@ var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8990
8996
|
order: "pit-viper-v2, primevue"
|
|
8991
8997
|
}
|
|
8992
8998
|
}
|
|
8993
|
-
} },
|
|
8994
|
-
e.use(ye,
|
|
8999
|
+
} }, wd = (e) => {
|
|
9000
|
+
e.use(ye, Cd);
|
|
8995
9001
|
};
|
|
8996
9002
|
//#endregion
|
|
8997
|
-
export { zr as PvAccordion,
|
|
9003
|
+
export { zr as PvAccordion, Eo as PvActionBar, In as PvActionButton, zn as PvAiButton, pi as PvAvatar, Va as PvAvatarGroup, kr as PvBanner, ci as PvBreadcrumbs, Q as PvButton, Jn as PvButtonWithTooltip, po as PvCard, Za as PvCheckbox, Ra as PvCompanyLabel, _r as PvCompanyLogo, Pr as PvCompanyTag, Le as PvCounterBadge, Gr as PvDatePicker, qr as PvDateTime, us as PvDistributionBar, ni as PvDrawer, sr as PvDropdown, Nr as PvEmptyErrorState, So as PvExpandableContent, qu as PvFilterModal, Mu as PvFilterPanel, Aa as PvGhostInput, Ia as PvHeader, cl as PvHorizontalScroller, Zu as PvHoverActionMenu, X as PvIcon, co as PvInput, xo as PvInsightCard, ra as PvMenu, $i as PvMenuItem, Cr as PvModal, ua as PvMultiSelectButton, ya as PvPagination, tr as PvPill, rr as PvPopover, lr as PvPopoverMenu, Mn as PvPopoverV2, cs as PvProgressBar, ud as PvQueryBuilderInput, to as PvRadioGroup, ws as PvRange, fo as PvRating, Qn as PvReleaseBadge, Wr as PvSearchInput, ur as PvSegmentedControl, fa as PvSelectButton, Sa as PvSelectableCard, Da as PvSidePanel, hd as PvSidebar, ro as PvSkeleton, Oe as PvSpinner, Zn as PvSplitButton, no as PvSprite, Sd as PvStepper, Lr as PvSuggestionTag, Li as PvSwitch, mr as PvTabList, yd as PvTableOfContents, ai as PvTabs, er as PvTag, Ao as PvTextArea, wo as PvToast, Ga as PvToggleButton, Ya as PvToggleGroup, Kn as PvTooltip, Pn as PvTooltipV2, is as PvTree, as as PvTreeGroup, mo as PvWidget, uu as createPvFilterStore, du as providePvFilterStore, Kr as useDateTime, fu as useOptionalPvFilterStore, wd as usePvComponents, pu as usePvFilterStore };
|
|
8998
9004
|
|
|
8999
9005
|
//# sourceMappingURL=pv-components-base.mjs.map
|