@turquoisehealth/pit-viper 2.238.0 → 2.239.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +1 -1
- package/_site/assets/css/pit-viper-consumer.css +1 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
- package/_site/assets/css/pit-viper-v2.css +1 -1
- package/_site/assets/css/pit-viper.css +1 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +25 -0
- package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +25 -0
- package/pv-components/dist/vue/base/components/base/PvTabs/PvTabs.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvTabs/types.d.ts +5 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +839 -769
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +25 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +964 -987
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +2 -0
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1396 -1369
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +715 -677
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1028 -1003
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1035 -1010
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1021 -995
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1186 -1161
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +22 -12
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue.d.ts +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-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-f2cf1712]:before,&[data-v-f2cf1712]:after{margin-inline-end:0}}.pv-popover-list[data-v-246a9400]{font-size:14px}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-a64056ef]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-connector-middle[data-v-2a7afaff],.pv-tree-connector-end[data-v-2a7afaff]{width:16px;min-width:16px;height:16px;position:relative}.pv-tree-connector-middle[data-v-2a7afaff]:after,.pv-tree-connector-end[data-v-2a7afaff]:after{content:"";background:var(--tree-connector-color,#d2d8dc);width:8px;height:1px;position:absolute;top:50%;left:50%;transform:translateY(-50%)}.pv-tree-connector-end[data-v-2a7afaff]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:14px;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.pv-tree-connector-line[data-v-fb9813d5]{position:relative}.pv-tree-connector-line[data-v-fb9813d5]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.pv-tree-drop-zone[data-v-f706f606],.pv-tree-drop-zone[data-v-26eb4678],.pv-tree-drop-zone[data-v-eb5f5907]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-073616dc]{background-image:none;padding-right:2px}[data-v-073616dc] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-073616dc]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-073616dc]{margin-left:auto;display:inline-flex}.pv-filter-panel[data-v-9d8e7121]{min-height:0;max-height:100dvh;overflow:hidden}.pv-filter-panel-actions[data-v-9d8e7121],.pv-filter-panel-header[data-v-9d8e7121],.pv-filter-panel-suggestion-tags[data-v-9d8e7121]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-9d8e7121],.pv-filter-panel-filters-view[data-v-9d8e7121]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-9d8e7121]{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-9d8e7121]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-9d8e7121]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-9d8e7121]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-9d8e7121]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-9d8e7121],.pv-filter-panel-footer[data-v-9d8e7121],.pv-filter-panel-suggestions[data-v-9d8e7121]{padding:12px}.pv-filter-panel-filter-list[data-v-9d8e7121]{--flex-align:stretch;--flex-gap:8px;padding-block:8px}.pv-filter-panel-collapsed-filters-toggle[data-v-9d8e7121]{align-self:flex-start}.pv-filter-panel-footer[data-v-9d8e7121]{--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-9d8e7121]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-9d8e7121]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-9d8e7121]{--flex-justify:flex-end}.pv-filter-panel-search[data-v-9d8e7121]{padding:8px 12px}.pv-filter-panel-section-title[data-v-9d8e7121]{margin:0}.pv-filter-panel-suggestions[data-v-9d8e7121]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-9d8e7121]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-e3f66d03]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-e3f66d03]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-e3f66d03]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-e3f66d03]{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-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-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-f2cf1712]:before,&[data-v-f2cf1712]:after{margin-inline-end:0}}.pv-popover-list[data-v-246a9400]{font-size:14px}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-a64056ef]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-connector-middle[data-v-2a7afaff],.pv-tree-connector-end[data-v-2a7afaff]{width:16px;min-width:16px;height:16px;position:relative}.pv-tree-connector-middle[data-v-2a7afaff]:after,.pv-tree-connector-end[data-v-2a7afaff]:after{content:"";background:var(--tree-connector-color,#d2d8dc);width:8px;height:1px;position:absolute;top:50%;left:50%;transform:translateY(-50%)}.pv-tree-connector-end[data-v-2a7afaff]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:14px;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.pv-tree-connector-line[data-v-fb9813d5]{position:relative}.pv-tree-connector-line[data-v-fb9813d5]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.pv-tree-drop-zone[data-v-f706f606],.pv-tree-drop-zone[data-v-26eb4678],.pv-tree-drop-zone[data-v-eb5f5907]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-073616dc]{background-image:none;padding-right:2px}[data-v-073616dc] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-073616dc]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-073616dc]{margin-left:auto;display:inline-flex}.pv-filter-panel[data-v-59a9b1c6]{min-height:0;max-height:100dvh;overflow:hidden}.pv-filter-panel-actions[data-v-59a9b1c6],.pv-filter-panel-header[data-v-59a9b1c6],.pv-filter-panel-suggestion-tags[data-v-59a9b1c6]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-59a9b1c6],.pv-filter-panel-filters-view[data-v-59a9b1c6]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-59a9b1c6]{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-59a9b1c6]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-59a9b1c6]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-59a9b1c6]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-59a9b1c6]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-59a9b1c6],.pv-filter-panel-footer[data-v-59a9b1c6],.pv-filter-panel-suggestions[data-v-59a9b1c6]{padding:12px}.pv-filter-panel-filter-list[data-v-59a9b1c6]{--flex-align:stretch;--flex-gap:8px;padding-block:8px}.pv-filter-panel-collapsed-filters-toggle[data-v-59a9b1c6]{align-self:flex-start}.pv-filter-panel-footer[data-v-59a9b1c6]{--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-59a9b1c6]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-59a9b1c6]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-59a9b1c6]{--flex-justify:flex-end}.pv-filter-panel-search[data-v-59a9b1c6]{padding:8px 12px}.pv-filter-panel-section-title[data-v-59a9b1c6]{margin:0}.pv-filter-panel-suggestions[data-v-59a9b1c6]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-59a9b1c6]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-e3f66d03]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-e3f66d03]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-e3f66d03]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-e3f66d03]{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-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
3
|
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onBeforeUpdate as C, onMounted as w, onUnmounted as T, onUpdated as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowReactive as P, shallowRef as F, toDisplayString as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as ee, vModelDynamic as U, vModelRadio as W, vModelText as G, vShow as te, watch as K, watchEffect as ne, withCtx as q, withDirectives as re, withKeys as ie, withModifiers as ae } from "vue";
|
|
4
4
|
import { onClickOutside as oe, onKeyStroke as J, useDebounceFn as se, useElementBounding as ce, useElementHover as le, useMutationObserver as Y, useResizeObserver as ue, useToggle as de, watchDebounced as fe } from "@vueuse/core";
|
|
@@ -3289,7 +3289,12 @@ var _i = () => ({
|
|
|
3289
3289
|
_: 1
|
|
3290
3290
|
}, 8, ["modelValue", "close-on-click-outside"]));
|
|
3291
3291
|
}
|
|
3292
|
-
}), pa = [
|
|
3292
|
+
}), pa = [
|
|
3293
|
+
"data-active",
|
|
3294
|
+
"data-type",
|
|
3295
|
+
"data-testid",
|
|
3296
|
+
"onClick"
|
|
3297
|
+
], ma = { type: "button" }, ha = /* @__PURE__ */ d({
|
|
3293
3298
|
__name: "PvTabs",
|
|
3294
3299
|
props: /* @__PURE__ */ g({
|
|
3295
3300
|
tabs: {},
|
|
@@ -3298,12 +3303,16 @@ var _i = () => ({
|
|
|
3298
3303
|
modelValue: { required: !0 },
|
|
3299
3304
|
modelModifiers: {}
|
|
3300
3305
|
}),
|
|
3301
|
-
emits: ["update:modelValue"],
|
|
3302
|
-
setup(e) {
|
|
3303
|
-
let n = B(e, "modelValue"),
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3306
|
+
emits: /* @__PURE__ */ g(["add-button-click"], ["update:modelValue"]),
|
|
3307
|
+
setup(e, { emit: n }) {
|
|
3308
|
+
let r = n, c = B(e, "modelValue"), u = (e) => e.value ?? e.label, d = (e) => {
|
|
3309
|
+
if (e.type === "addButton") {
|
|
3310
|
+
r("add-button-click", u(e));
|
|
3311
|
+
return;
|
|
3312
|
+
}
|
|
3313
|
+
c.value = u(e);
|
|
3314
|
+
}, f = (e) => e.type !== "addButton" && u(e) === c.value ? !0 : null;
|
|
3315
|
+
return (n, r) => (D(), o("ul", {
|
|
3307
3316
|
"data-testid": "pv-tabs",
|
|
3308
3317
|
role: "list",
|
|
3309
3318
|
class: y({
|
|
@@ -3311,11 +3320,12 @@ var _i = () => ({
|
|
|
3311
3320
|
"pv-tab-list": e.size === "xl"
|
|
3312
3321
|
})
|
|
3313
3322
|
}, [(D(!0), o(t, null, A(e.tabs, (e) => (D(), o("li", {
|
|
3314
|
-
key: e
|
|
3315
|
-
"data-active":
|
|
3316
|
-
"data-
|
|
3323
|
+
key: u(e),
|
|
3324
|
+
"data-active": f(e),
|
|
3325
|
+
"data-type": e.type === "addButton" ? "add-button" : null,
|
|
3326
|
+
"data-testid": e.type === "addButton" ? "pv-tab-add-button" : "pv-tab",
|
|
3317
3327
|
type: "button",
|
|
3318
|
-
onClick: () =>
|
|
3328
|
+
onClick: () => d(e)
|
|
3319
3329
|
}, [s("button", ma, [
|
|
3320
3330
|
e.icon ? (D(), i(Z, {
|
|
3321
3331
|
key: 0,
|
|
@@ -3325,7 +3335,7 @@ var _i = () => ({
|
|
|
3325
3335
|
e.counter ? (D(), i(He, {
|
|
3326
3336
|
key: 1,
|
|
3327
3337
|
value: e.counter,
|
|
3328
|
-
variant:
|
|
3338
|
+
variant: f(e) ? "primary" : "tertiary",
|
|
3329
3339
|
size: "sm"
|
|
3330
3340
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
3331
3341
|
])], 8, pa))), 128))], 2));
|
|
@@ -3621,10 +3631,14 @@ var za = {
|
|
|
3621
3631
|
"align-items": "flex-start",
|
|
3622
3632
|
"--flex-gap": "0"
|
|
3623
3633
|
}
|
|
3624
|
-
}, Ba = ["title"], Va = ["title"], Ha = {
|
|
3625
|
-
|
|
3634
|
+
}, Ba = ["title"], Va = ["title"], Ha = { style: {
|
|
3635
|
+
"max-width": "220px",
|
|
3636
|
+
"white-space": "normal",
|
|
3637
|
+
"overflow-wrap": "break-word"
|
|
3638
|
+
} }, Ua = {
|
|
3639
|
+
key: 5,
|
|
3626
3640
|
class: "pv-text-subdued pv-text-body-md"
|
|
3627
|
-
},
|
|
3641
|
+
}, Wa = /* @__PURE__ */ d({
|
|
3628
3642
|
inheritAttrs: !1,
|
|
3629
3643
|
__name: "PvMenuBaseItem",
|
|
3630
3644
|
props: {
|
|
@@ -3637,6 +3651,7 @@ var za = {
|
|
|
3637
3651
|
subduedText: {},
|
|
3638
3652
|
icon: {},
|
|
3639
3653
|
hoverTitle: {},
|
|
3654
|
+
description: {},
|
|
3640
3655
|
rumActionName: {},
|
|
3641
3656
|
popoverRole: {},
|
|
3642
3657
|
companyName: {},
|
|
@@ -3654,19 +3669,19 @@ var za = {
|
|
|
3654
3669
|
config: {}
|
|
3655
3670
|
},
|
|
3656
3671
|
setup(e) {
|
|
3657
|
-
let n = e, c = k(null), l = k(null),
|
|
3658
|
-
let r =
|
|
3672
|
+
let n = e, c = k(null), l = k(null), d = r(() => n.menuOptionConfig?.size === "lg" ? "sm" : "lg"), f = r(() => n.menuOptionConfig?.size === "xl" ? 20 : void 0), p = r(() => n.subText || null), m = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), h = (e, t, n) => {
|
|
3673
|
+
let r = m(n), i = RegExp(`(${r})`, "gi");
|
|
3659
3674
|
e.innerHTML = t.replace(i, "<span data-test-id=\"pv-matched-text\" style=\"font-weight: bold;\">$1</span>");
|
|
3660
|
-
},
|
|
3675
|
+
}, g = () => {
|
|
3661
3676
|
if (n.queryText) {
|
|
3662
|
-
let e = new RegExp(
|
|
3663
|
-
c.value &&
|
|
3664
|
-
} else c.value && (c.value.textContent = n.text), l.value &&
|
|
3677
|
+
let e = new RegExp(m(n.queryText), "gi").test(n.text);
|
|
3678
|
+
c.value && h(c.value, n.text, n.queryText), l.value && p.value && (e ? l.value.textContent = p.value : h(l.value, p.value, n.queryText));
|
|
3679
|
+
} else c.value && (c.value.textContent = n.text), l.value && p.value && (l.value.textContent = p.value);
|
|
3665
3680
|
};
|
|
3666
3681
|
return w(() => {
|
|
3667
|
-
|
|
3682
|
+
g();
|
|
3668
3683
|
}), K(() => n.queryText, () => {
|
|
3669
|
-
|
|
3684
|
+
g();
|
|
3670
3685
|
}), (n, r) => (D(), o(t, null, [
|
|
3671
3686
|
e.avatar ? (D(), i(Ca, {
|
|
3672
3687
|
key: 0,
|
|
@@ -3674,7 +3689,7 @@ var za = {
|
|
|
3674
3689
|
image: e.avatar.image,
|
|
3675
3690
|
variant: e.avatar.variant,
|
|
3676
3691
|
shape: e.avatar.shape,
|
|
3677
|
-
size:
|
|
3692
|
+
size: d.value
|
|
3678
3693
|
}, null, 8, [
|
|
3679
3694
|
"initials",
|
|
3680
3695
|
"image",
|
|
@@ -3686,7 +3701,7 @@ var za = {
|
|
|
3686
3701
|
key: 1,
|
|
3687
3702
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
3688
3703
|
name: e.icon,
|
|
3689
|
-
size:
|
|
3704
|
+
size: f.value
|
|
3690
3705
|
}, null, 8, [
|
|
3691
3706
|
"class",
|
|
3692
3707
|
"name",
|
|
@@ -3707,7 +3722,7 @@ var za = {
|
|
|
3707
3722
|
key: 0,
|
|
3708
3723
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
3709
3724
|
style: { "padding-left": "4px" }
|
|
3710
|
-
}, I(e.subduedText), 3)) : a("", !0)], 8, Ba),
|
|
3725
|
+
}, I(e.subduedText), 3)) : a("", !0)], 8, Ba), p.value ? (D(), o("span", {
|
|
3711
3726
|
key: 0,
|
|
3712
3727
|
ref_key: "subText",
|
|
3713
3728
|
ref: l,
|
|
@@ -3717,20 +3732,38 @@ var za = {
|
|
|
3717
3732
|
"pv-truncate",
|
|
3718
3733
|
{ "pv-text-subdued": !e.disabled }
|
|
3719
3734
|
]),
|
|
3720
|
-
title: e.hoverTitle ??
|
|
3721
|
-
}, I(
|
|
3722
|
-
e.
|
|
3735
|
+
title: e.hoverTitle ?? p.value
|
|
3736
|
+
}, I(p.value), 11, Va)) : a("", !0)]),
|
|
3737
|
+
e.description ? (D(), i(ir, {
|
|
3723
3738
|
key: 3,
|
|
3739
|
+
variant: "dark",
|
|
3740
|
+
position: "top-center",
|
|
3741
|
+
useTeleport: !0,
|
|
3742
|
+
showOnHover: !0,
|
|
3743
|
+
disableInteractive: !0,
|
|
3744
|
+
style: { "pointer-events": "auto" }
|
|
3745
|
+
}, {
|
|
3746
|
+
trigger: q(() => [u(Z, {
|
|
3747
|
+
size: 12,
|
|
3748
|
+
name: "info-circle",
|
|
3749
|
+
class: "pv-text-subdued",
|
|
3750
|
+
onClick: r[0] ||= ae(() => {}, ["stop", "prevent"])
|
|
3751
|
+
})]),
|
|
3752
|
+
content: q(() => [s("div", Ha, I(e.description), 1)]),
|
|
3753
|
+
_: 1
|
|
3754
|
+
})) : a("", !0),
|
|
3755
|
+
e.secondaryText && typeof e.secondaryText == "number" ? (D(), i(He, {
|
|
3756
|
+
key: 4,
|
|
3724
3757
|
value: e.secondaryText,
|
|
3725
3758
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
3726
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span",
|
|
3759
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span", Ua, I(e.secondaryText), 1)) : a("", !0)
|
|
3727
3760
|
], 64));
|
|
3728
3761
|
}
|
|
3729
|
-
}),
|
|
3762
|
+
}), Ga = ["for"], Ka = { key: 0 }, qa = [
|
|
3730
3763
|
"disabled",
|
|
3731
3764
|
"aria-label",
|
|
3732
3765
|
"id"
|
|
3733
|
-
],
|
|
3766
|
+
], Ja = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
3734
3767
|
__name: "PvSwitch",
|
|
3735
3768
|
props: /* @__PURE__ */ g({
|
|
3736
3769
|
size: { default: "md" },
|
|
@@ -3762,16 +3795,16 @@ var za = {
|
|
|
3762
3795
|
"pv-input-xsmall": e.size === "sm",
|
|
3763
3796
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
3764
3797
|
}])
|
|
3765
|
-
}, [e.label ? (D(), o("span",
|
|
3798
|
+
}, [e.label ? (D(), o("span", Ka, I(e.label), 1)) : a("", !0), re(s("input", {
|
|
3766
3799
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
3767
3800
|
disabled: e.disabled,
|
|
3768
3801
|
"aria-label": e.ariaLabel,
|
|
3769
3802
|
type: "checkbox",
|
|
3770
3803
|
role: "switch",
|
|
3771
3804
|
id: L(t)
|
|
3772
|
-
}, null, 8,
|
|
3805
|
+
}, null, 8, qa), [[ee, n.value]])], 10, Ga));
|
|
3773
3806
|
}
|
|
3774
|
-
}), [["__scopeId", "data-v-73e6d2b2"]]),
|
|
3807
|
+
}), [["__scopeId", "data-v-73e6d2b2"]]), Ya = ["aria-label"], Xa = /* @__PURE__ */ d({
|
|
3775
3808
|
__name: "PvMenuItemAction",
|
|
3776
3809
|
props: {
|
|
3777
3810
|
action: {},
|
|
@@ -3808,7 +3841,7 @@ var za = {
|
|
|
3808
3841
|
role: "img",
|
|
3809
3842
|
"aria-label": o.value,
|
|
3810
3843
|
onClick: t[0] ||= ae(() => {}, ["stop"])
|
|
3811
|
-
}, [u(Z, { name: n.value }, null, 8, ["name"])], 10,
|
|
3844
|
+
}, [u(Z, { name: n.value }, null, 8, ["name"])], 10, Ya)]),
|
|
3812
3845
|
_: 2
|
|
3813
3846
|
}, [o.value ? {
|
|
3814
3847
|
name: "content",
|
|
@@ -3816,7 +3849,7 @@ var za = {
|
|
|
3816
3849
|
key: "0"
|
|
3817
3850
|
} : void 0]), 1024));
|
|
3818
3851
|
}
|
|
3819
|
-
}),
|
|
3852
|
+
}), Za = Symbol("SelectedItemsKey"), Qa = Symbol("EnableCascadeSelectionKey"), $a = Symbol("MenuInteractionModeKey"), eo = Symbol("MenuAncestorIdsKey"), to = Symbol("OriginalOptionsMapKey"), no = Symbol("CascadeSelectedParentIdsKey"), ro = Symbol("CascadeDeselectedChildIdsKey"), io = Symbol("ParentSelectsAllChildrenKey"), ao = Symbol("EnableChildExpansionKey"), oo = ["data-testid"], so = [
|
|
3820
3853
|
"hidden",
|
|
3821
3854
|
"type",
|
|
3822
3855
|
"checked",
|
|
@@ -3824,10 +3857,10 @@ var za = {
|
|
|
3824
3857
|
"tabindex",
|
|
3825
3858
|
"aria-hidden",
|
|
3826
3859
|
"disabled"
|
|
3827
|
-
],
|
|
3860
|
+
], co = {
|
|
3828
3861
|
key: 4,
|
|
3829
3862
|
class: "pv-menu-item-action"
|
|
3830
|
-
},
|
|
3863
|
+
}, lo = ["aria-label", "aria-expanded"], uo = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
3831
3864
|
inheritAttrs: !1,
|
|
3832
3865
|
__name: "PvMenuItemVariant",
|
|
3833
3866
|
props: {
|
|
@@ -3846,6 +3879,7 @@ var za = {
|
|
|
3846
3879
|
subduedText: {},
|
|
3847
3880
|
icon: {},
|
|
3848
3881
|
hoverTitle: {},
|
|
3882
|
+
description: {},
|
|
3849
3883
|
rumActionName: {},
|
|
3850
3884
|
popoverRole: {},
|
|
3851
3885
|
companyName: {},
|
|
@@ -3864,7 +3898,7 @@ var za = {
|
|
|
3864
3898
|
},
|
|
3865
3899
|
emits: ["handle-selected", "toggle-expanded"],
|
|
3866
3900
|
setup(e, { emit: t }) {
|
|
3867
|
-
let n = e, c = H("inputRef"), l = m(
|
|
3901
|
+
let n = e, c = H("inputRef"), l = m(Za, void 0), d = m(Qa, k(!1)), p = m(to, void 0), h = m(no, void 0), g = m($a, r(() => !1)), b = r(() => {
|
|
3868
3902
|
if (!d.value || !Na(n)) return [];
|
|
3869
3903
|
let e = n.children ? Pa(n.children) : [];
|
|
3870
3904
|
if (p?.value) {
|
|
@@ -3936,8 +3970,8 @@ var za = {
|
|
|
3936
3970
|
"aria-hidden": L(g) ? !0 : void 0,
|
|
3937
3971
|
disabled: e.disabled,
|
|
3938
3972
|
onChange: r[0] ||= (e) => L(g) ? void 0 : I(e)
|
|
3939
|
-
}, null, 42,
|
|
3940
|
-
e.menuOptionConfig?.renderer ? (D(), i(N(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: x.value }), null, 16, ["selected"])) : (D(), i(
|
|
3973
|
+
}, null, 42, so),
|
|
3974
|
+
e.menuOptionConfig?.renderer ? (D(), i(N(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: x.value }), null, 16, ["selected"])) : (D(), i(Wa, _({ key: 1 }, T.value, {
|
|
3941
3975
|
menuOptionConfig: e.menuOptionConfig,
|
|
3942
3976
|
queryText: e.queryText,
|
|
3943
3977
|
highlightSearchText: e.highlightSearchText
|
|
@@ -3951,7 +3985,7 @@ var za = {
|
|
|
3951
3985
|
name: "check",
|
|
3952
3986
|
class: "pv-text-success"
|
|
3953
3987
|
})) : a("", !0),
|
|
3954
|
-
e.menuOptionConfig?.variant === "toggle" ? (D(), i(
|
|
3988
|
+
e.menuOptionConfig?.variant === "toggle" ? (D(), i(Ja, {
|
|
3955
3989
|
key: 3,
|
|
3956
3990
|
modelValue: x.value,
|
|
3957
3991
|
ariaLabel: n.text || "Toggle",
|
|
@@ -3959,7 +3993,7 @@ var za = {
|
|
|
3959
3993
|
hideCheckIcon: "",
|
|
3960
3994
|
style: { "pointer-events": "none" }
|
|
3961
3995
|
}, null, 8, ["modelValue", "ariaLabel"])) : a("", !0),
|
|
3962
|
-
E.value ? (D(), o("span",
|
|
3996
|
+
E.value ? (D(), o("span", co, [u(Xa, {
|
|
3963
3997
|
action: E.value,
|
|
3964
3998
|
option: n,
|
|
3965
3999
|
disabled: e.disabled
|
|
@@ -3978,10 +4012,10 @@ var za = {
|
|
|
3978
4012
|
}, [u(Z, {
|
|
3979
4013
|
name: e.chevronIcon ?? "chevron-right",
|
|
3980
4014
|
size: 12
|
|
3981
|
-
}, null, 8, ["name"])], 8,
|
|
3982
|
-
], 16,
|
|
4015
|
+
}, null, 8, ["name"])], 8, lo)) : a("", !0)
|
|
4016
|
+
], 16, oo));
|
|
3983
4017
|
}
|
|
3984
|
-
}), [["__scopeId", "data-v-f337a1d6"]]),
|
|
4018
|
+
}), [["__scopeId", "data-v-f337a1d6"]]), fo = ["data-active"], po = { key: 0 }, mo = 4, ho = /* @__PURE__ */ d({
|
|
3985
4019
|
inheritAttrs: !1,
|
|
3986
4020
|
__name: "PvMenuItem",
|
|
3987
4021
|
props: /* @__PURE__ */ g({
|
|
@@ -3997,6 +4031,7 @@ var za = {
|
|
|
3997
4031
|
subduedText: {},
|
|
3998
4032
|
icon: {},
|
|
3999
4033
|
hoverTitle: {},
|
|
4034
|
+
description: {},
|
|
4000
4035
|
rumActionName: {},
|
|
4001
4036
|
popoverRole: {},
|
|
4002
4037
|
companyName: {},
|
|
@@ -4017,7 +4052,7 @@ var za = {
|
|
|
4017
4052
|
}),
|
|
4018
4053
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
4019
4054
|
setup(e, { emit: n }) {
|
|
4020
|
-
let i = e, s = m(
|
|
4055
|
+
let i = e, s = m(Za, void 0), c = B(e, "selectedIds"), l = m(ao, k(!1)), d = m(io, k(!1)), f = m($a, r(() => !1)), p = R(), h = r(() => {
|
|
4021
4056
|
if (!f.value) return {};
|
|
4022
4057
|
let e = new Set([
|
|
4023
4058
|
"aria-checked",
|
|
@@ -4034,7 +4069,7 @@ var za = {
|
|
|
4034
4069
|
"tabindex"
|
|
4035
4070
|
]);
|
|
4036
4071
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
4037
|
-
}), g = m(
|
|
4072
|
+
}), g = m(no, void 0), v = m(ro, void 0), b = k(i.defaultExpanded ?? !1);
|
|
4038
4073
|
K(() => i.defaultExpanded, (e) => {
|
|
4039
4074
|
e && (b.value = !0);
|
|
4040
4075
|
});
|
|
@@ -4055,7 +4090,7 @@ var za = {
|
|
|
4055
4090
|
}), N = r(() => Na({
|
|
4056
4091
|
...i,
|
|
4057
4092
|
children: w.value
|
|
4058
|
-
}) && i.level <
|
|
4093
|
+
}) && i.level < mo), P = r(() => N.value ? l.value ? b.value : !0 : !1), F = r(() => b.value ? "chevron-down" : "chevron-right"), I = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), z = n, V = r(() => C.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), H = async () => {
|
|
4059
4094
|
if (S.value) return;
|
|
4060
4095
|
if (!i.handleSeeMore) {
|
|
4061
4096
|
z("see-more", {
|
|
@@ -4105,7 +4140,7 @@ var za = {
|
|
|
4105
4140
|
};
|
|
4106
4141
|
return (n, r) => {
|
|
4107
4142
|
let s = M("PvMenuItem", !0);
|
|
4108
|
-
return D(), o(t, null, [u(
|
|
4143
|
+
return D(), o(t, null, [u(uo, _({
|
|
4109
4144
|
...j.value,
|
|
4110
4145
|
...h.value
|
|
4111
4146
|
}, {
|
|
@@ -4153,7 +4188,7 @@ var za = {
|
|
|
4153
4188
|
"queryText",
|
|
4154
4189
|
"highlightSearchText",
|
|
4155
4190
|
"level"
|
|
4156
|
-
])], 10,
|
|
4191
|
+
])], 10, fo))), 128)), V.value ? (D(), o("li", po, [u($, {
|
|
4157
4192
|
class: "pv-text-brand",
|
|
4158
4193
|
variant: "ghost",
|
|
4159
4194
|
label: "See more",
|
|
@@ -4163,12 +4198,12 @@ var za = {
|
|
|
4163
4198
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
4164
4199
|
};
|
|
4165
4200
|
}
|
|
4166
|
-
}),
|
|
4201
|
+
}), go = ["role"], _o = [
|
|
4167
4202
|
"data-active",
|
|
4168
4203
|
"data-option-id",
|
|
4169
4204
|
"data-testid",
|
|
4170
4205
|
"role"
|
|
4171
|
-
],
|
|
4206
|
+
], vo = ["role"], yo = ["data-pv-menu-ancestors"], bo = ["id", "aria-label"], xo = ["data-active", "data-option-id"], So = "__pv-menu-see-more__", Co = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
4172
4207
|
inheritAttrs: !1,
|
|
4173
4208
|
__name: "PvMenu",
|
|
4174
4209
|
props: /* @__PURE__ */ g({
|
|
@@ -4211,8 +4246,8 @@ var za = {
|
|
|
4211
4246
|
}, M = () => {
|
|
4212
4247
|
let e = p.value;
|
|
4213
4248
|
E(), e && v(() => Ce(e));
|
|
4214
|
-
}, N = [...m(
|
|
4215
|
-
O(
|
|
4249
|
+
}, N = [...m(eo, []), h];
|
|
4250
|
+
O(eo, N), oe(g, (e) => {
|
|
4216
4251
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
4217
4252
|
}, { ignore: [S] });
|
|
4218
4253
|
let P = F(f.value);
|
|
@@ -4224,10 +4259,10 @@ var za = {
|
|
|
4224
4259
|
};
|
|
4225
4260
|
K(P, (e) => {
|
|
4226
4261
|
e !== I && e !== f.value && R(e);
|
|
4227
|
-
}), O(
|
|
4262
|
+
}), O(Za, P), O($a, r(() => l.childrenDisplay === "popover"));
|
|
4228
4263
|
let V = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
4229
|
-
O(
|
|
4230
|
-
let H = m(
|
|
4264
|
+
O(Qa, V);
|
|
4265
|
+
let H = m(to, void 0), ee = m(io, k(!1)), U = m(no, void 0), W = m(ro, void 0), G = r(() => l.singleSelect || l.config?.variant === "radio"), ne = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), ie = (e, t, n = !1, r = !0) => {
|
|
4231
4266
|
let i = !r || p.value !== e.id;
|
|
4232
4267
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
4233
4268
|
T(), n && xe(b.value ?? document.getElementById(h), 0);
|
|
@@ -4307,7 +4342,7 @@ var za = {
|
|
|
4307
4342
|
return G.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
4308
4343
|
}, pe = (e) => fe(e) === "menuitem" ? void 0 : !!de(e), X = (e) => e.children?.length && !l.highlightParentItems ? null : fe(e) !== "menuitemcheckbox" && de(e) || p.value === e.id ? !0 : null, me = (e) => fe(e) !== "menuitemcheckbox" && se.value.has(e.id) ? !0 : null, he = (e, t) => !!(!t || se.value.has(e.id) || U?.value?.has(e.id) || e.children?.length && ce(e.children)), ge = k(), _e = k(), ve = r(() => {
|
|
4309
4344
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && he(e, l.isLoading)).map((e) => e.id);
|
|
4310
|
-
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(
|
|
4345
|
+
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(So), ge.value && e.includes(ge.value) ? ge.value : e[0];
|
|
4311
4346
|
}), ye = r(() => {
|
|
4312
4347
|
let e = ne.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
4313
4348
|
return e.some((e) => e.id === _e.value) ? _e.value : e[0]?.id;
|
|
@@ -4402,7 +4437,7 @@ var za = {
|
|
|
4402
4437
|
"data-testid": e.itemTestId,
|
|
4403
4438
|
class: y(e.itemClass),
|
|
4404
4439
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4405
|
-
}, [u(
|
|
4440
|
+
}, [u(ho, _({ ref_for: !0 }, le(t), {
|
|
4406
4441
|
"aria-checked": e.childrenDisplay === "popover" ? pe(t) : void 0,
|
|
4407
4442
|
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? L(h) : void 0,
|
|
4408
4443
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
@@ -4438,7 +4473,7 @@ var za = {
|
|
|
4438
4473
|
"tabindex",
|
|
4439
4474
|
"onFocus",
|
|
4440
4475
|
"onKeydown"
|
|
4441
|
-
])], 10,
|
|
4476
|
+
])], 10, _o)), [[te, he(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (D(), o("li", {
|
|
4442
4477
|
key: 0,
|
|
4443
4478
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4444
4479
|
}, [u($, {
|
|
@@ -4448,9 +4483,9 @@ var za = {
|
|
|
4448
4483
|
loading: e.isSeeMoreLoading,
|
|
4449
4484
|
disabled: e.isSeeMoreLoading,
|
|
4450
4485
|
role: e.childrenDisplay === "popover" ? "menuitem" : void 0,
|
|
4451
|
-
tabindex: e.childrenDisplay === "popover" ? ve.value ===
|
|
4486
|
+
tabindex: e.childrenDisplay === "popover" ? ve.value === So ? 0 : -1 : void 0,
|
|
4452
4487
|
"data-testid": "pv-menu-see-more",
|
|
4453
|
-
onFocus: c[1] ||= (e) => ge.value =
|
|
4488
|
+
onFocus: c[1] ||= (e) => ge.value = So,
|
|
4454
4489
|
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ? Ee(t) : void 0,
|
|
4455
4490
|
onClick: c[3] ||= (e) => d("see-more", { parentId: void 0 })
|
|
4456
4491
|
}, null, 8, [
|
|
@@ -4458,7 +4493,7 @@ var za = {
|
|
|
4458
4493
|
"disabled",
|
|
4459
4494
|
"role",
|
|
4460
4495
|
"tabindex"
|
|
4461
|
-
])], 8,
|
|
4496
|
+
])], 8, vo)) : a("", !0)], 16, go), e.childrenDisplay === "popover" && ne.value ? (D(), i(n, {
|
|
4462
4497
|
key: 0,
|
|
4463
4498
|
to: "body"
|
|
4464
4499
|
}, [s("div", {
|
|
@@ -4492,7 +4527,7 @@ var za = {
|
|
|
4492
4527
|
"data-option-id": t.id,
|
|
4493
4528
|
class: y(e.itemClass),
|
|
4494
4529
|
role: "none"
|
|
4495
|
-
}, [u(
|
|
4530
|
+
}, [u(ho, _({ ref_for: !0 }, Y(t), {
|
|
4496
4531
|
"aria-checked": pe(t),
|
|
4497
4532
|
"aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
|
|
4498
4533
|
"data-active": me(t),
|
|
@@ -4522,35 +4557,35 @@ var za = {
|
|
|
4522
4557
|
"tabindex",
|
|
4523
4558
|
"onFocus",
|
|
4524
4559
|
"onKeydown"
|
|
4525
|
-
])], 10,
|
|
4560
|
+
])], 10, xo))), 128))], 8, bo)], !0)]),
|
|
4526
4561
|
_: 3
|
|
4527
|
-
})], 12,
|
|
4562
|
+
})], 12, yo)])) : a("", !0)], 64));
|
|
4528
4563
|
}
|
|
4529
|
-
}), [["__scopeId", "data-v-f14f755f"]]),
|
|
4564
|
+
}), [["__scopeId", "data-v-f14f755f"]]), wo = ["data-dd-action-name"], To = {
|
|
4530
4565
|
key: 1,
|
|
4531
4566
|
class: "pv-inset-square-8"
|
|
4532
|
-
},
|
|
4567
|
+
}, Eo = {
|
|
4533
4568
|
key: 1,
|
|
4534
4569
|
class: "pv-text-body-sm pv-inset-inline",
|
|
4535
4570
|
style: {
|
|
4536
4571
|
color: "#89989b",
|
|
4537
4572
|
"--inset-size": "8px"
|
|
4538
4573
|
}
|
|
4539
|
-
},
|
|
4574
|
+
}, Do = {
|
|
4540
4575
|
key: 2,
|
|
4541
4576
|
class: "pv-border-top",
|
|
4542
4577
|
style: { margin: "8px 0" }
|
|
4543
|
-
},
|
|
4578
|
+
}, Oo = {
|
|
4544
4579
|
key: 3,
|
|
4545
4580
|
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
4546
4581
|
style: { "justify-content": "center" }
|
|
4547
|
-
},
|
|
4582
|
+
}, ko = { key: 0 }, Ao = {
|
|
4548
4583
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
4549
4584
|
style: {
|
|
4550
4585
|
"--flex-justify": "space-between",
|
|
4551
4586
|
"--bottom": "0"
|
|
4552
4587
|
}
|
|
4553
|
-
},
|
|
4588
|
+
}, jo = /* @__PURE__ */ d({
|
|
4554
4589
|
__name: "PvMultiSelectButton",
|
|
4555
4590
|
props: /* @__PURE__ */ g({
|
|
4556
4591
|
companyLogo: {},
|
|
@@ -4653,7 +4688,7 @@ var za = {
|
|
|
4653
4688
|
};
|
|
4654
4689
|
return t(c.options), e;
|
|
4655
4690
|
}), f = F(/* @__PURE__ */ new Set()), m = F(/* @__PURE__ */ new Map());
|
|
4656
|
-
O(
|
|
4691
|
+
O(to, d), O(no, f), O(ro, m), O(io, r(() => c.parentSelectsAllChildren)), O(ao, r(() => !!c.enableChildExpansion));
|
|
4657
4692
|
let g = n, y = r(() => {
|
|
4658
4693
|
let e = /* @__PURE__ */ new Map();
|
|
4659
4694
|
for (let [t, n] of d.value) Na(n) && e.set(t, n.children ? Pa(n.children) : []);
|
|
@@ -4844,11 +4879,11 @@ var za = {
|
|
|
4844
4879
|
"onUpdate:modelValue": r[1] ||= (e) => z.value = e,
|
|
4845
4880
|
class: "pv-stack-4",
|
|
4846
4881
|
placeholder: e.searchPlaceholder
|
|
4847
|
-
}, null, 8, ["model-value", "placeholder"])], 8,
|
|
4848
|
-
n.$slots.header || L(_e) ? (D(), o("div",
|
|
4882
|
+
}, null, 8, ["model-value", "placeholder"])], 8, wo)),
|
|
4883
|
+
n.$slots.header || L(_e) ? (D(), o("div", To, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
4849
4884
|
oe.value.length > 0 ? (D(), o(t, { key: 2 }, [fe.value ? (D(!0), o(t, { key: 0 }, A(ue.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
4850
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span",
|
|
4851
|
-
u(
|
|
4885
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", Eo, I(t), 1)),
|
|
4886
|
+
u(Co, {
|
|
4852
4887
|
selectedItems: re.value,
|
|
4853
4888
|
"onUpdate:selectedItems": r[2] ||= (e) => re.value = e,
|
|
4854
4889
|
options: i,
|
|
@@ -4874,8 +4909,8 @@ var za = {
|
|
|
4874
4909
|
"enableCascadeSelection",
|
|
4875
4910
|
"hasMoreOptions"
|
|
4876
4911
|
]),
|
|
4877
|
-
ue.value && s !== ue.value.length - 1 ? (D(), o("div",
|
|
4878
|
-
]))), 128)) : (D(), i(
|
|
4912
|
+
ue.value && s !== ue.value.length - 1 ? (D(), o("div", Do)) : a("", !0)
|
|
4913
|
+
]))), 128)) : (D(), i(Co, {
|
|
4879
4914
|
key: 1,
|
|
4880
4915
|
selectedItems: re.value,
|
|
4881
4916
|
"onUpdate:selectedItems": r[3] ||= (e) => re.value = e,
|
|
@@ -4900,8 +4935,8 @@ var za = {
|
|
|
4900
4935
|
"isSeeMoreLoading",
|
|
4901
4936
|
"hasMoreOptions"
|
|
4902
4937
|
]))], 64)) : a("", !0),
|
|
4903
|
-
e.isLoading ? (D(), o("div",
|
|
4904
|
-
s("div",
|
|
4938
|
+
e.isLoading ? (D(), o("div", Oo, [u(Ne, { variant: "dark" }), e.loadingText ? (D(), o("span", ko, I(e.loadingText), 1)) : a("", !0)])) : oe.value.length === 0 ? (D(), o(t, { key: 4 }, [L(ve) ? j(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (D(), i(Ma, { key: 1 }))], 64)) : a("", !0),
|
|
4939
|
+
s("div", Ao, [L(ye) ? j(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(ba, {
|
|
4905
4940
|
key: 1,
|
|
4906
4941
|
variant: e.menuActionsVariant,
|
|
4907
4942
|
disabled: e.isLoading,
|
|
@@ -4919,10 +4954,10 @@ var za = {
|
|
|
4919
4954
|
_: 3
|
|
4920
4955
|
}, 16, ["modelValue", "offset"]));
|
|
4921
4956
|
}
|
|
4922
|
-
}),
|
|
4957
|
+
}), Mo = {
|
|
4923
4958
|
key: 0,
|
|
4924
4959
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
4925
|
-
},
|
|
4960
|
+
}, No = /* @__PURE__ */ d({
|
|
4926
4961
|
__name: "PvSelectButton",
|
|
4927
4962
|
props: /* @__PURE__ */ g({
|
|
4928
4963
|
defaultOpen: { type: Boolean },
|
|
@@ -5070,12 +5105,12 @@ var za = {
|
|
|
5070
5105
|
class: "pv-popover",
|
|
5071
5106
|
"data-test-id": "pv-popover",
|
|
5072
5107
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
5073
|
-
}, [e.disableSearchInput ? a("", !0) : (D(), o("div",
|
|
5108
|
+
}, [e.disableSearchInput ? a("", !0) : (D(), o("div", Mo, [u(li, {
|
|
5074
5109
|
"model-value": m.value,
|
|
5075
5110
|
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
5076
5111
|
class: "pv-stack-4",
|
|
5077
5112
|
placeholder: e.searchPlaceholder
|
|
5078
|
-
}, null, 8, ["model-value", "placeholder"])])), S.value.length > 0 ? (D(), i(
|
|
5113
|
+
}, null, 8, ["model-value", "placeholder"])])), S.value.length > 0 ? (D(), i(Co, {
|
|
5079
5114
|
key: 1,
|
|
5080
5115
|
selectedItems: C.value,
|
|
5081
5116
|
"onUpdate:selectedItems": n[1] ||= (e) => C.value = e,
|
|
@@ -5097,18 +5132,18 @@ var za = {
|
|
|
5097
5132
|
_: 1
|
|
5098
5133
|
}, 16, ["modelValue"]));
|
|
5099
5134
|
}
|
|
5100
|
-
}),
|
|
5135
|
+
}), Po = {
|
|
5101
5136
|
short: 5,
|
|
5102
5137
|
long: 7
|
|
5103
|
-
},
|
|
5104
|
-
if (n <=
|
|
5138
|
+
}, Fo = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
5139
|
+
if (n <= Po[e]) return Array.from({ length: n }, (e, t) => ({
|
|
5105
5140
|
page: t + 1,
|
|
5106
5141
|
label: (t + 1).toString()
|
|
5107
5142
|
}));
|
|
5108
5143
|
let r = [{
|
|
5109
5144
|
page: 1,
|
|
5110
5145
|
label: "1"
|
|
5111
|
-
}], i =
|
|
5146
|
+
}], i = Po[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
5112
5147
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
5113
5148
|
page: 0,
|
|
5114
5149
|
label: "..."
|
|
@@ -5127,11 +5162,11 @@ var za = {
|
|
|
5127
5162
|
page: n,
|
|
5128
5163
|
label: n.toString()
|
|
5129
5164
|
}), r;
|
|
5130
|
-
} }),
|
|
5165
|
+
} }), Io = ["data-style"], Lo = ["data-testid", "aria-current"], Ro = {
|
|
5131
5166
|
key: 0,
|
|
5132
5167
|
class: "dots-button",
|
|
5133
5168
|
disabled: ""
|
|
5134
|
-
},
|
|
5169
|
+
}, zo = ["onClick"], Bo = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5135
5170
|
__name: "PvPagination",
|
|
5136
5171
|
props: /* @__PURE__ */ g({
|
|
5137
5172
|
size: { default: "lg" },
|
|
@@ -5144,7 +5179,7 @@ var za = {
|
|
|
5144
5179
|
}),
|
|
5145
5180
|
emits: ["update:modelValue"],
|
|
5146
5181
|
setup(e) {
|
|
5147
|
-
let { getPaginations: n } =
|
|
5182
|
+
let { getPaginations: n } = Fo({ variant: e.variant }), r = B(e, "modelValue");
|
|
5148
5183
|
return (i, a) => (D(), o("ol", {
|
|
5149
5184
|
role: "list",
|
|
5150
5185
|
class: "pv-pagination",
|
|
@@ -5166,10 +5201,10 @@ var za = {
|
|
|
5166
5201
|
key: e.page,
|
|
5167
5202
|
"data-testid": `pagination-button-${e.page}`,
|
|
5168
5203
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
5169
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
5204
|
+
}, [e.label === "..." ? (D(), o("button", Ro, I(e.label), 1)) : (D(), o("button", {
|
|
5170
5205
|
key: 1,
|
|
5171
5206
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
5172
|
-
}, I(e.label), 9,
|
|
5207
|
+
}, I(e.label), 9, zo))], 8, Lo))), 128)),
|
|
5173
5208
|
s("li", null, [u($, {
|
|
5174
5209
|
"data-testid": "pagination-right-arrow-icon",
|
|
5175
5210
|
disabled: r.value === e.maxPages,
|
|
@@ -5178,14 +5213,14 @@ var za = {
|
|
|
5178
5213
|
variant: "ghost",
|
|
5179
5214
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
5180
5215
|
}, null, 8, ["disabled"])])
|
|
5181
|
-
], 8,
|
|
5216
|
+
], 8, Io));
|
|
5182
5217
|
}
|
|
5183
|
-
}), [["__scopeId", "data-v-6c36dca2"]]),
|
|
5218
|
+
}), [["__scopeId", "data-v-6c36dca2"]]), Vo = ["for"], Ho = [
|
|
5184
5219
|
"checked",
|
|
5185
5220
|
"type",
|
|
5186
5221
|
"value",
|
|
5187
5222
|
"id"
|
|
5188
|
-
],
|
|
5223
|
+
], Uo = /* @__PURE__ */ d({
|
|
5189
5224
|
__name: "PvSelectableCard",
|
|
5190
5225
|
props: {
|
|
5191
5226
|
variant: { default: "default" },
|
|
@@ -5207,34 +5242,34 @@ var za = {
|
|
|
5207
5242
|
type: e.deselect ? "checkbox" : "radio",
|
|
5208
5243
|
value: e.value,
|
|
5209
5244
|
id: t.value
|
|
5210
|
-
}, null, 8,
|
|
5245
|
+
}, null, 8, Ho), j(n.$slots, "default")], 10, Vo));
|
|
5211
5246
|
}
|
|
5212
|
-
}),
|
|
5247
|
+
}), Wo = { class: "pv-layout-two-sidebar" }, Go = ["data-hidden"], Ko = { "data-layout": "main-section" }, qo = ["data-hidden"], Jo = /* @__PURE__ */ d({
|
|
5213
5248
|
__name: "PvSidePanel",
|
|
5214
5249
|
props: {
|
|
5215
5250
|
showLeftSidebar: { type: Boolean },
|
|
5216
5251
|
showRightSidebar: { type: Boolean }
|
|
5217
5252
|
},
|
|
5218
5253
|
setup(e) {
|
|
5219
|
-
return (t, n) => (D(), o("div",
|
|
5254
|
+
return (t, n) => (D(), o("div", Wo, [
|
|
5220
5255
|
s("div", {
|
|
5221
5256
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
5222
5257
|
"data-testid": "pv-side-panel-left",
|
|
5223
5258
|
"data-layout": "left-sidebar"
|
|
5224
|
-
}, [j(t.$slots, "left-sidebar")], 8,
|
|
5225
|
-
s("div",
|
|
5259
|
+
}, [j(t.$slots, "left-sidebar")], 8, Go),
|
|
5260
|
+
s("div", Ko, [j(t.$slots, "main")]),
|
|
5226
5261
|
s("div", {
|
|
5227
5262
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
5228
5263
|
"data-testid": "pv-side-panel-right",
|
|
5229
5264
|
"data-layout": "right-sidebar"
|
|
5230
|
-
}, [j(t.$slots, "right-sidebar")], 8,
|
|
5265
|
+
}, [j(t.$slots, "right-sidebar")], 8, qo)
|
|
5231
5266
|
]));
|
|
5232
5267
|
}
|
|
5233
|
-
}),
|
|
5268
|
+
}), Yo = ["data-style"], Xo = [
|
|
5234
5269
|
"placeholder",
|
|
5235
5270
|
"disabled",
|
|
5236
5271
|
"name"
|
|
5237
|
-
],
|
|
5272
|
+
], Zo = /* @__PURE__ */ d({
|
|
5238
5273
|
__name: "PvGhostInput",
|
|
5239
5274
|
props: /* @__PURE__ */ g({
|
|
5240
5275
|
variant: { default: "h1" },
|
|
@@ -5296,7 +5331,7 @@ var za = {
|
|
|
5296
5331
|
placeholder: e.placeholder,
|
|
5297
5332
|
disabled: e.disabled,
|
|
5298
5333
|
name: n[e.variant]
|
|
5299
|
-
}), null, 16,
|
|
5334
|
+
}), null, 16, Xo), [[G, l.value]]),
|
|
5300
5335
|
e.showEditIcon ? (D(), i($, {
|
|
5301
5336
|
key: 0,
|
|
5302
5337
|
"left-icon": "edit",
|
|
@@ -5304,12 +5339,12 @@ var za = {
|
|
|
5304
5339
|
variant: "ghost",
|
|
5305
5340
|
onClick: d
|
|
5306
5341
|
})) : a("", !0)
|
|
5307
|
-
], 8,
|
|
5342
|
+
], 8, Yo));
|
|
5308
5343
|
}
|
|
5309
|
-
}),
|
|
5344
|
+
}), Qo = {
|
|
5310
5345
|
key: 0,
|
|
5311
5346
|
class: "pv-heading-2"
|
|
5312
|
-
},
|
|
5347
|
+
}, $o = ["id"], es = { class: "pv-flex" }, ts = ["id"], ns = /* @__PURE__ */ d({
|
|
5313
5348
|
__name: "PvHeader",
|
|
5314
5349
|
props: {
|
|
5315
5350
|
as: { default: "div" },
|
|
@@ -5337,14 +5372,14 @@ var za = {
|
|
|
5337
5372
|
"background-color": "#fdfdfc"
|
|
5338
5373
|
}
|
|
5339
5374
|
}, {
|
|
5340
|
-
default: q(() => [e.title ? (D(), o("span",
|
|
5375
|
+
default: q(() => [e.title ? (D(), o("span", Qo, I(e.title), 1)) : (D(), o("div", {
|
|
5341
5376
|
key: 1,
|
|
5342
5377
|
id: e.headerTitleId,
|
|
5343
5378
|
class: "pv-flex"
|
|
5344
|
-
}, [j(r.$slots, "left")], 8,
|
|
5379
|
+
}, [j(r.$slots, "left")], 8, $o)), s("div", es, [s("div", {
|
|
5345
5380
|
id: e.headerActionsId,
|
|
5346
5381
|
class: "pv-flex"
|
|
5347
|
-
}, [j(r.$slots, "right")], 8,
|
|
5382
|
+
}, [j(r.$slots, "right")], 8, ts), e.showAskTqButton ? (D(), o("div", {
|
|
5348
5383
|
key: 0,
|
|
5349
5384
|
class: y({ "pv-border-left": L(n) }),
|
|
5350
5385
|
style: { "padding-inline-start": "0.5rem" }
|
|
@@ -5357,7 +5392,7 @@ var za = {
|
|
|
5357
5392
|
_: 3
|
|
5358
5393
|
}, 8, ["class"]));
|
|
5359
5394
|
}
|
|
5360
|
-
}),
|
|
5395
|
+
}), rs = ["data-more"], is = ["src", "alt"], as = /* @__PURE__ */ d({
|
|
5361
5396
|
__name: "PvAvatarGroup",
|
|
5362
5397
|
props: {
|
|
5363
5398
|
items: {},
|
|
@@ -5386,18 +5421,18 @@ var za = {
|
|
|
5386
5421
|
key: 1,
|
|
5387
5422
|
src: e.image,
|
|
5388
5423
|
alt: e.alt ?? ""
|
|
5389
|
-
}, null, 8,
|
|
5424
|
+
}, null, 8, is)) : (D(), o("div", {
|
|
5390
5425
|
key: 2,
|
|
5391
5426
|
class: y(c.value)
|
|
5392
|
-
}, null, 2))]))), 128))], 10,
|
|
5427
|
+
}, null, 2))]))), 128))], 10, rs));
|
|
5393
5428
|
}
|
|
5394
|
-
}),
|
|
5429
|
+
}), os = { class: "pv-flex" }, ss = [
|
|
5395
5430
|
"name",
|
|
5396
5431
|
"value",
|
|
5397
5432
|
"checked",
|
|
5398
5433
|
"disabled",
|
|
5399
5434
|
"onChange"
|
|
5400
|
-
],
|
|
5435
|
+
], cs = { key: 1 }, ls = /* @__PURE__ */ d({
|
|
5401
5436
|
__name: "PvToggleGroup",
|
|
5402
5437
|
props: /* @__PURE__ */ g({
|
|
5403
5438
|
disabled: { type: Boolean },
|
|
@@ -5419,7 +5454,7 @@ var za = {
|
|
|
5419
5454
|
r.value = e;
|
|
5420
5455
|
}
|
|
5421
5456
|
};
|
|
5422
|
-
return (n, u) => (D(), o("div",
|
|
5457
|
+
return (n, u) => (D(), o("div", os, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
5423
5458
|
key: t.value,
|
|
5424
5459
|
description: e.hideLabels ? t.label : ""
|
|
5425
5460
|
}, {
|
|
@@ -5432,21 +5467,21 @@ var za = {
|
|
|
5432
5467
|
class: "pv-radio",
|
|
5433
5468
|
disabled: e.disabled || t.disabled,
|
|
5434
5469
|
onChange: (e) => l(t)
|
|
5435
|
-
}, null, 40,
|
|
5470
|
+
}, null, 40, ss),
|
|
5436
5471
|
t.icon ? (D(), i(Z, {
|
|
5437
5472
|
key: 0,
|
|
5438
5473
|
name: t.icon
|
|
5439
5474
|
}, null, 8, ["name"])) : a("", !0),
|
|
5440
|
-
e.hideLabels ? a("", !0) : (D(), o("span",
|
|
5475
|
+
e.hideLabels ? a("", !0) : (D(), o("span", cs, I(t.label), 1))
|
|
5441
5476
|
], 2)]),
|
|
5442
5477
|
_: 2
|
|
5443
5478
|
}, 1032, ["description"]))), 128))]));
|
|
5444
5479
|
}
|
|
5445
|
-
}),
|
|
5480
|
+
}), us = [
|
|
5446
5481
|
"aria-label",
|
|
5447
5482
|
"disabled",
|
|
5448
5483
|
"indeterminate"
|
|
5449
|
-
],
|
|
5484
|
+
], ds = /* @__PURE__ */ d({
|
|
5450
5485
|
__name: "PvCheckbox",
|
|
5451
5486
|
props: /* @__PURE__ */ g({
|
|
5452
5487
|
ariaLabel: {},
|
|
@@ -5467,13 +5502,13 @@ var za = {
|
|
|
5467
5502
|
"aria-label": e.ariaLabel,
|
|
5468
5503
|
disabled: e.disabled,
|
|
5469
5504
|
indeterminate: e.indeterminate
|
|
5470
|
-
}, null, 8,
|
|
5505
|
+
}, null, 8, us)), [[ee, t.value]]);
|
|
5471
5506
|
}
|
|
5472
|
-
}),
|
|
5507
|
+
}), fs = ["aria-label", "aria-labelledby"], ps = ["id"], ms = [
|
|
5473
5508
|
"name",
|
|
5474
5509
|
"value",
|
|
5475
5510
|
"disabled"
|
|
5476
|
-
],
|
|
5511
|
+
], hs = /* @__PURE__ */ d({
|
|
5477
5512
|
__name: "PvRadioGroup",
|
|
5478
5513
|
props: /* @__PURE__ */ g({
|
|
5479
5514
|
ariaLabel: {},
|
|
@@ -5504,7 +5539,7 @@ var za = {
|
|
|
5504
5539
|
key: 0,
|
|
5505
5540
|
id: L(u),
|
|
5506
5541
|
class: "pv-label pv-stack-8"
|
|
5507
|
-
}, I(e.label), 9,
|
|
5542
|
+
}, I(e.label), 9, ps)) : a("", !0), s("div", {
|
|
5508
5543
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
5509
5544
|
style: x(f.value)
|
|
5510
5545
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -5517,9 +5552,9 @@ var za = {
|
|
|
5517
5552
|
name: d.value,
|
|
5518
5553
|
value: t.value,
|
|
5519
5554
|
disabled: e.disabled || t.disabled
|
|
5520
|
-
}, null, 8,
|
|
5555
|
+
}, null, 8, ms), [[W, i.value]]), l(" " + I(t.label), 1)]))), 128))], 6)], 8, fs));
|
|
5521
5556
|
}
|
|
5522
|
-
}),
|
|
5557
|
+
}), gs = /* @__PURE__ */ d({
|
|
5523
5558
|
__name: "PvSprite",
|
|
5524
5559
|
props: {
|
|
5525
5560
|
src: {},
|
|
@@ -5540,7 +5575,7 @@ var za = {
|
|
|
5540
5575
|
id: "pv-sprite-content"
|
|
5541
5576
|
}, null, -1)]));
|
|
5542
5577
|
}
|
|
5543
|
-
}),
|
|
5578
|
+
}), _s = /* @__PURE__ */ d({
|
|
5544
5579
|
__name: "PvSkeleton",
|
|
5545
5580
|
props: {
|
|
5546
5581
|
size: { default: "md" },
|
|
@@ -5567,18 +5602,18 @@ var za = {
|
|
|
5567
5602
|
"width"
|
|
5568
5603
|
]));
|
|
5569
5604
|
}
|
|
5570
|
-
}),
|
|
5605
|
+
}), vs = ["for"], ys = {
|
|
5571
5606
|
key: 0,
|
|
5572
5607
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
5573
5608
|
style: { "--inset-size": "6px 10px" }
|
|
5574
|
-
},
|
|
5609
|
+
}, bs = { class: "pv-relative pv-flex-item" }, xs = [
|
|
5575
5610
|
"disabled",
|
|
5576
5611
|
"type",
|
|
5577
5612
|
"placeholder",
|
|
5578
5613
|
"id",
|
|
5579
5614
|
"data-invalid",
|
|
5580
5615
|
"step"
|
|
5581
|
-
],
|
|
5616
|
+
], Ss = /* @__PURE__ */ d({
|
|
5582
5617
|
__name: "PvInput",
|
|
5583
5618
|
props: /* @__PURE__ */ g({
|
|
5584
5619
|
showLabel: { type: Boolean },
|
|
@@ -5605,8 +5640,8 @@ var za = {
|
|
|
5605
5640
|
"data-testid": "pv-input-label",
|
|
5606
5641
|
class: "pv-label pv-stack-8",
|
|
5607
5642
|
for: e.id
|
|
5608
|
-
}, [j(n.$slots, "label")], 8,
|
|
5609
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div",
|
|
5643
|
+
}, [j(n.$slots, "label")], 8, vs)) : a("", !0),
|
|
5644
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", ys, I(e.prefixLabel), 1)) : a("", !0), s("div", bs, [e.inputIcon ? (D(), i(Z, {
|
|
5610
5645
|
key: 0,
|
|
5611
5646
|
class: "pv-absolute input-icon-position",
|
|
5612
5647
|
name: e.inputIcon
|
|
@@ -5624,7 +5659,7 @@ var za = {
|
|
|
5624
5659
|
id: e.id,
|
|
5625
5660
|
"data-invalid": e.error ? !0 : void 0,
|
|
5626
5661
|
step: e.step
|
|
5627
|
-
}), null, 16,
|
|
5662
|
+
}), null, 16, xs), [[U, c.value]])])], 2),
|
|
5628
5663
|
e.lowerLabel ? (D(), o("p", {
|
|
5629
5664
|
key: 1,
|
|
5630
5665
|
"data-testid": "pv-input-lower-label",
|
|
@@ -5636,15 +5671,15 @@ var za = {
|
|
|
5636
5671
|
}, I(e.lowerLabel), 3)) : a("", !0)
|
|
5637
5672
|
], 64));
|
|
5638
5673
|
}
|
|
5639
|
-
}),
|
|
5674
|
+
}), Cs = { class: "pv-stack-8" }, ws = { class: "pv-input-file" }, Ts = [
|
|
5640
5675
|
"id",
|
|
5641
5676
|
"accept",
|
|
5642
5677
|
"disabled",
|
|
5643
5678
|
"multiple"
|
|
5644
|
-
],
|
|
5679
|
+
], Es = ["for"], Ds = {
|
|
5645
5680
|
key: 0,
|
|
5646
5681
|
class: "pv-stack-8"
|
|
5647
|
-
},
|
|
5682
|
+
}, Os = { class: "pv-flex-item pv-truncate pv-text-body-sm" }, ks = /* @__PURE__ */ d({
|
|
5648
5683
|
__name: "PvFileInput",
|
|
5649
5684
|
props: /* @__PURE__ */ g({
|
|
5650
5685
|
helperText: {},
|
|
@@ -5670,7 +5705,7 @@ var za = {
|
|
|
5670
5705
|
}, m = (e) => {
|
|
5671
5706
|
d.value = d.value.filter((t) => t !== e);
|
|
5672
5707
|
}, h = r(() => !c.showSelectedFile || d.value.length === 0 ? c.helperText : d.value.length === 1 ? d.value[0].name : `${d.value.length} files selected`);
|
|
5673
|
-
return (n, r) => (D(), o("div",
|
|
5708
|
+
return (n, r) => (D(), o("div", Cs, [s("div", ws, [
|
|
5674
5709
|
s("input", {
|
|
5675
5710
|
id: L(f),
|
|
5676
5711
|
type: "file",
|
|
@@ -5679,11 +5714,11 @@ var za = {
|
|
|
5679
5714
|
disabled: e.disabled,
|
|
5680
5715
|
multiple: e.multiple,
|
|
5681
5716
|
onChange: p
|
|
5682
|
-
}, null, 40,
|
|
5717
|
+
}, null, 40, Ts),
|
|
5683
5718
|
s("label", {
|
|
5684
5719
|
for: L(f),
|
|
5685
5720
|
class: "pv-label"
|
|
5686
|
-
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8,
|
|
5721
|
+
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8, Es),
|
|
5687
5722
|
s("p", { class: y(["pv-text-body-sm", e.showSelectedFile && d.value.length ? "pv-flex-item pv-truncate" : "pv-text-subdued"]) }, I(h.value), 3),
|
|
5688
5723
|
e.showSelectedFile && d.value.length === 1 ? (D(), i($, {
|
|
5689
5724
|
key: 0,
|
|
@@ -5693,10 +5728,10 @@ var za = {
|
|
|
5693
5728
|
"aria-label": "Remove file",
|
|
5694
5729
|
onClick: r[0] ||= (e) => m(d.value[0])
|
|
5695
5730
|
})) : a("", !0)
|
|
5696
|
-
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul",
|
|
5731
|
+
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul", Ds, [(D(!0), o(t, null, A(d.value, (e) => (D(), o("li", {
|
|
5697
5732
|
key: e.name,
|
|
5698
5733
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
5699
|
-
}, [s("p",
|
|
5734
|
+
}, [s("p", Os, I(e.name), 1), u($, {
|
|
5700
5735
|
"left-icon": "trash",
|
|
5701
5736
|
variant: "destructive",
|
|
5702
5737
|
size: "md",
|
|
@@ -5704,7 +5739,7 @@ var za = {
|
|
|
5704
5739
|
onClick: (t) => m(e)
|
|
5705
5740
|
}, null, 8, ["onClick"])]))), 128))])) : a("", !0)]));
|
|
5706
5741
|
}
|
|
5707
|
-
}),
|
|
5742
|
+
}), As = ["data-rating"], js = ["value"], Ms = /* @__PURE__ */ d({
|
|
5708
5743
|
__name: "PvRating",
|
|
5709
5744
|
props: {
|
|
5710
5745
|
variant: { default: "dot" },
|
|
@@ -5723,18 +5758,18 @@ var za = {
|
|
|
5723
5758
|
min: "0",
|
|
5724
5759
|
max: "5",
|
|
5725
5760
|
value: e.value
|
|
5726
|
-
}, "4.0 stars", 8,
|
|
5761
|
+
}, "4.0 stars", 8, js)], 12, As));
|
|
5727
5762
|
}
|
|
5728
|
-
}),
|
|
5763
|
+
}), Ns = {
|
|
5729
5764
|
key: 0,
|
|
5730
5765
|
class: "pv-flex pv-full-width"
|
|
5731
|
-
},
|
|
5766
|
+
}, Ps = { class: "pv-flex-item pv-truncate" }, Fs = { class: "pv-card-hover-action__action pv-flex" }, Is = {
|
|
5732
5767
|
key: 1,
|
|
5733
5768
|
class: "pv-flex pv-full-width"
|
|
5734
|
-
},
|
|
5769
|
+
}, Ls = { class: "pv-flex-item pv-truncate" }, Rs = { class: "pv-card-hover-action__action pv-flex" }, zs = {
|
|
5735
5770
|
key: 2,
|
|
5736
5771
|
class: "pv-flex pv-full-width"
|
|
5737
|
-
},
|
|
5772
|
+
}, Bs = { class: "pv-flex-item pv-truncate" }, Vs = { class: "pv-card-hover-action__action pv-flex" }, Hs = /* @__PURE__ */ d({
|
|
5738
5773
|
__name: "PvCard",
|
|
5739
5774
|
props: {
|
|
5740
5775
|
href: {},
|
|
@@ -5770,9 +5805,9 @@ var za = {
|
|
|
5770
5805
|
"data-testid": "pv-card"
|
|
5771
5806
|
}, {
|
|
5772
5807
|
default: q(() => [c.value ? (D(), o(t, { key: 0 }, [
|
|
5773
|
-
e.headerAction ? (D(), o("div",
|
|
5774
|
-
e.descriptionAction ? (D(), o("div",
|
|
5775
|
-
e.footerAction ? (D(), o("div",
|
|
5808
|
+
e.headerAction ? (D(), o("div", Ns, [s("div", Ps, [j(n.$slots, "header")]), s("div", Fs, [j(n.$slots, "header-action")])])) : a("", !0),
|
|
5809
|
+
e.descriptionAction ? (D(), o("div", Is, [s("div", Ls, [j(n.$slots, "description")]), s("div", Rs, [j(n.$slots, "description-action")])])) : a("", !0),
|
|
5810
|
+
e.footerAction ? (D(), o("div", zs, [s("div", Bs, [j(n.$slots, "footer")]), s("div", Vs, [j(n.$slots, "footer-action")])])) : a("", !0)
|
|
5776
5811
|
], 64)) : j(n.$slots, "default", { key: 1 })]),
|
|
5777
5812
|
_: 3
|
|
5778
5813
|
}, 8, [
|
|
@@ -5782,34 +5817,34 @@ var za = {
|
|
|
5782
5817
|
"style"
|
|
5783
5818
|
]));
|
|
5784
5819
|
}
|
|
5785
|
-
}),
|
|
5820
|
+
}), Us = /* @__PURE__ */ d({
|
|
5786
5821
|
__name: "PvWidget",
|
|
5787
5822
|
setup(e) {
|
|
5788
|
-
return (e, t) => (D(), i(
|
|
5823
|
+
return (e, t) => (D(), i(Hs, { class: "pv-inset-square-16" }, {
|
|
5789
5824
|
default: q(() => [j(e.$slots, "default")]),
|
|
5790
5825
|
_: 3
|
|
5791
5826
|
}));
|
|
5792
5827
|
}
|
|
5793
|
-
}),
|
|
5828
|
+
}), Ws = {
|
|
5794
5829
|
class: "pv-flex-vertical",
|
|
5795
5830
|
style: {
|
|
5796
5831
|
"--flex-align": "flex-start",
|
|
5797
5832
|
"--flex-gap": "0.25rem"
|
|
5798
5833
|
}
|
|
5799
|
-
},
|
|
5834
|
+
}, Gs = {
|
|
5800
5835
|
key: 0,
|
|
5801
5836
|
class: "pv-flex",
|
|
5802
5837
|
style: { "--flex-gap": "0.25rem" }
|
|
5803
|
-
},
|
|
5838
|
+
}, Ks = { class: "pv-text-body-sm" }, qs = {
|
|
5804
5839
|
key: 1,
|
|
5805
5840
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
5806
|
-
},
|
|
5841
|
+
}, Js = {
|
|
5807
5842
|
key: 2,
|
|
5808
5843
|
class: "pv-heading-2"
|
|
5809
|
-
},
|
|
5844
|
+
}, Ys = {
|
|
5810
5845
|
key: 3,
|
|
5811
5846
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
5812
|
-
},
|
|
5847
|
+
}, Xs = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5813
5848
|
__name: "PvInsightCard",
|
|
5814
5849
|
props: {
|
|
5815
5850
|
icon: { default: "ai" },
|
|
@@ -5829,22 +5864,22 @@ var za = {
|
|
|
5829
5864
|
emits: ["click", "icon-click"],
|
|
5830
5865
|
setup(e) {
|
|
5831
5866
|
let t = e, n = r(() => t.icon || t.insight);
|
|
5832
|
-
return (t, r) => (D(), i(
|
|
5867
|
+
return (t, r) => (D(), i(Hs, {
|
|
5833
5868
|
variant: "secondary",
|
|
5834
5869
|
interactive: e.interactive,
|
|
5835
5870
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
5836
5871
|
class: "pv-relative"
|
|
5837
5872
|
}, {
|
|
5838
|
-
default: q(() => [s("div",
|
|
5839
|
-
n.value ? (D(), o("div",
|
|
5873
|
+
default: q(() => [s("div", Ws, [
|
|
5874
|
+
n.value ? (D(), o("div", Gs, [e.icon ? (D(), i(Z, {
|
|
5840
5875
|
key: 0,
|
|
5841
5876
|
style: { color: "#218c88" },
|
|
5842
5877
|
name: e.icon,
|
|
5843
5878
|
size: 12
|
|
5844
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
5845
|
-
e.upperLabel ? (D(), o("span",
|
|
5846
|
-
e.title ? (D(), o("span",
|
|
5847
|
-
e.description ? (D(), o("span",
|
|
5879
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Ks, I(e.insight), 1)])) : a("", !0),
|
|
5880
|
+
e.upperLabel ? (D(), o("span", qs, I(e.upperLabel), 1)) : a("", !0),
|
|
5881
|
+
e.title ? (D(), o("span", Js, I(e.title), 1)) : a("", !0),
|
|
5882
|
+
e.description ? (D(), o("span", Ys, I(e.description), 1)) : a("", !0)
|
|
5848
5883
|
]), e.showButton ? (D(), i($, {
|
|
5849
5884
|
key: 0,
|
|
5850
5885
|
"left-icon": "new-tab",
|
|
@@ -5857,7 +5892,7 @@ var za = {
|
|
|
5857
5892
|
_: 1
|
|
5858
5893
|
}, 8, ["interactive"]));
|
|
5859
5894
|
}
|
|
5860
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
5895
|
+
}), [["__scopeId", "data-v-c1185c07"]]), Zs = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5861
5896
|
__name: "PvExpandableContent",
|
|
5862
5897
|
props: {
|
|
5863
5898
|
lines: { default: 4 },
|
|
@@ -5911,7 +5946,7 @@ var za = {
|
|
|
5911
5946
|
"left-icon": l.value ? "chevron-up" : "chevron-down"
|
|
5912
5947
|
}, null, 8, ["label", "left-icon"])) : a("", !0)], 6));
|
|
5913
5948
|
}
|
|
5914
|
-
}), [["__scopeId", "data-v-fc5fc7e0"]]),
|
|
5949
|
+
}), [["__scopeId", "data-v-fc5fc7e0"]]), Qs = { class: "pv-text-body-md" }, $s = /* @__PURE__ */ d({
|
|
5915
5950
|
__name: "PvToast",
|
|
5916
5951
|
props: {
|
|
5917
5952
|
variant: { default: "info" },
|
|
@@ -5936,7 +5971,7 @@ var za = {
|
|
|
5936
5971
|
name: e.icon ? e.icon : n[e.variant],
|
|
5937
5972
|
size: 20
|
|
5938
5973
|
}, null, 8, ["name"]),
|
|
5939
|
-
s("p",
|
|
5974
|
+
s("p", Qs, I(e.label), 1),
|
|
5940
5975
|
j(r.$slots, "default"),
|
|
5941
5976
|
u($, {
|
|
5942
5977
|
variant: "ghost",
|
|
@@ -5948,29 +5983,29 @@ var za = {
|
|
|
5948
5983
|
}, null, 8, ["inverse"])
|
|
5949
5984
|
], 2));
|
|
5950
5985
|
}
|
|
5951
|
-
}),
|
|
5986
|
+
}), ec = ["data-style"], tc = /* @__PURE__ */ d({
|
|
5952
5987
|
__name: "PvActionBar",
|
|
5953
5988
|
props: { variant: { default: "white" } },
|
|
5954
5989
|
setup(e) {
|
|
5955
5990
|
return (t, n) => (D(), o("div", {
|
|
5956
5991
|
class: "pv-action-bar-container",
|
|
5957
5992
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
5958
|
-
}, [j(t.$slots, "default")], 8,
|
|
5993
|
+
}, [j(t.$slots, "default")], 8, ec));
|
|
5959
5994
|
}
|
|
5960
|
-
}),
|
|
5995
|
+
}), nc = {
|
|
5961
5996
|
class: "pv-flex pv-truncate",
|
|
5962
5997
|
style: {
|
|
5963
5998
|
"min-width": "0",
|
|
5964
5999
|
"min-height": "20px"
|
|
5965
6000
|
}
|
|
5966
|
-
},
|
|
6001
|
+
}, rc = ["title"], ic = /* @__PURE__ */ d({
|
|
5967
6002
|
__name: "PvSimpleItemTree",
|
|
5968
6003
|
props: {
|
|
5969
6004
|
label: {},
|
|
5970
6005
|
icon: {}
|
|
5971
6006
|
},
|
|
5972
6007
|
setup(e) {
|
|
5973
|
-
return (t, n) => (D(), o("div",
|
|
6008
|
+
return (t, n) => (D(), o("div", nc, [e.icon ? (D(), i(Z, {
|
|
5974
6009
|
key: 0,
|
|
5975
6010
|
name: e.icon
|
|
5976
6011
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -5980,9 +6015,9 @@ var za = {
|
|
|
5980
6015
|
"min-width": "0"
|
|
5981
6016
|
},
|
|
5982
6017
|
title: e.label
|
|
5983
|
-
}, I(e.label), 9,
|
|
6018
|
+
}, I(e.label), 9, rc)]));
|
|
5984
6019
|
}
|
|
5985
|
-
}),
|
|
6020
|
+
}), ac = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5986
6021
|
__name: "PvTreeReorderIcon",
|
|
5987
6022
|
setup(e) {
|
|
5988
6023
|
return (e, t) => (D(), i(Z, {
|
|
@@ -5990,7 +6025,7 @@ var za = {
|
|
|
5990
6025
|
class: "reorder-icon pv-text-tertiary"
|
|
5991
6026
|
}));
|
|
5992
6027
|
}
|
|
5993
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
6028
|
+
}), [["__scopeId", "data-v-1efb9068"]]), oc = /* @__PURE__ */ d({
|
|
5994
6029
|
__name: "PvButtonTreeItem",
|
|
5995
6030
|
props: {
|
|
5996
6031
|
selected: { type: Boolean },
|
|
@@ -6025,7 +6060,7 @@ var za = {
|
|
|
6025
6060
|
_: 3
|
|
6026
6061
|
}, 8, ["class"]));
|
|
6027
6062
|
}
|
|
6028
|
-
}),
|
|
6063
|
+
}), sc = /* @__PURE__ */ d({
|
|
6029
6064
|
__name: "PvCheckboxTreeItem",
|
|
6030
6065
|
props: {
|
|
6031
6066
|
selected: { type: Boolean },
|
|
@@ -6054,38 +6089,38 @@ var za = {
|
|
|
6054
6089
|
"pv-tree-item-selected": e.selected,
|
|
6055
6090
|
"pv-tree-item-disabled": e.disableSelection
|
|
6056
6091
|
}
|
|
6057
|
-
]) }, [e.disableSelection ? a("", !0) : (D(), i(
|
|
6092
|
+
]) }, [e.disableSelection ? a("", !0) : (D(), i(ds, {
|
|
6058
6093
|
key: 0,
|
|
6059
6094
|
checked: e.selected,
|
|
6060
6095
|
onClick: s
|
|
6061
6096
|
}, null, 8, ["checked"])), j(t.$slots, "default")], 2));
|
|
6062
6097
|
}
|
|
6063
|
-
}),
|
|
6098
|
+
}), cc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6064
6099
|
__name: "PvTreeConnector",
|
|
6065
6100
|
props: { isLast: { type: Boolean } },
|
|
6066
6101
|
setup(e) {
|
|
6067
6102
|
return (t, n) => (D(), o("div", { class: y(e.isLast ? "pv-tree-connector-end" : "pv-tree-connector-middle") }, null, 2));
|
|
6068
6103
|
}
|
|
6069
|
-
}), [["__scopeId", "data-v-2a7afaff"]]),
|
|
6104
|
+
}), [["__scopeId", "data-v-2a7afaff"]]), lc = () => ({
|
|
6070
6105
|
indentPadding: (e, t = 0) => `${(e + t) * 24}px`,
|
|
6071
6106
|
connectorOffset: (e) => `${e * 24 + 8}px`,
|
|
6072
6107
|
showsConnector: (e, t) => !!(t && e[t]?.showNestedTree),
|
|
6073
6108
|
showsChildConnectors: (e, t) => !!e[t]?.showNestedTree,
|
|
6074
6109
|
childLevel: ({ level: e, showNestedTree: t, childrenShowNestedTree: n, additionalNestingLevel: r = 0 }) => e + (n && !t ? 0 : 1) + r
|
|
6075
|
-
}),
|
|
6110
|
+
}), uc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6076
6111
|
__name: "PvTreeConnectorGroup",
|
|
6077
6112
|
props: {
|
|
6078
6113
|
active: { type: Boolean },
|
|
6079
6114
|
level: {}
|
|
6080
6115
|
},
|
|
6081
6116
|
setup(e) {
|
|
6082
|
-
let t = e, { connectorOffset: n } =
|
|
6117
|
+
let t = e, { connectorOffset: n } = lc(), i = r(() => t.active ? { "--tree-connector-left": n(t.level) } : {});
|
|
6083
6118
|
return (t, n) => (D(), o("div", {
|
|
6084
6119
|
class: y({ "pv-tree-connector-line": e.active }),
|
|
6085
6120
|
style: x(i.value)
|
|
6086
6121
|
}, [j(t.$slots, "default", {}, void 0, !0)], 6));
|
|
6087
6122
|
}
|
|
6088
|
-
}), [["__scopeId", "data-v-fb9813d5"]]),
|
|
6123
|
+
}), [["__scopeId", "data-v-fb9813d5"]]), dc = () => {
|
|
6089
6124
|
let e = k(null);
|
|
6090
6125
|
return {
|
|
6091
6126
|
hoveredId: e,
|
|
@@ -6096,15 +6131,15 @@ var za = {
|
|
|
6096
6131
|
e.value = null;
|
|
6097
6132
|
}
|
|
6098
6133
|
};
|
|
6099
|
-
},
|
|
6134
|
+
}, fc = Symbol("DraggingStateKey"), pc = Symbol("DraggingGroupNameKey"), mc = Symbol("DropIndicatorKey"), hc = () => {
|
|
6100
6135
|
let e = k(!1), t = k(null), n = k(null);
|
|
6101
|
-
return O(
|
|
6136
|
+
return O(fc, e), O(pc, t), O(mc, n), {
|
|
6102
6137
|
isDragging: e,
|
|
6103
6138
|
draggingGroupName: t,
|
|
6104
6139
|
dropIndicator: n
|
|
6105
6140
|
};
|
|
6106
|
-
},
|
|
6107
|
-
let e = m(
|
|
6141
|
+
}, gc = () => {
|
|
6142
|
+
let e = m(fc, k(!1)), t = m(pc, k(null)), n = m(mc, k(null)), r = (n) => {
|
|
6108
6143
|
e.value = !0, t.value = n ?? null;
|
|
6109
6144
|
}, i = () => {
|
|
6110
6145
|
e.value = !1, t.value = null, o();
|
|
@@ -6126,8 +6161,8 @@ var za = {
|
|
|
6126
6161
|
onDragStart: r,
|
|
6127
6162
|
onDragEnd: i
|
|
6128
6163
|
};
|
|
6129
|
-
},
|
|
6130
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
6164
|
+
}, _c = () => {
|
|
6165
|
+
let { setDropIndicator: e, clearDropIndicator: t } = gc();
|
|
6131
6166
|
return {
|
|
6132
6167
|
getDragGroupConfig: (e, t) => {
|
|
6133
6168
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -6162,8 +6197,8 @@ var za = {
|
|
|
6162
6197
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
6163
6198
|
}
|
|
6164
6199
|
};
|
|
6165
|
-
},
|
|
6166
|
-
let { dropIndicator: e } =
|
|
6200
|
+
}, vc = () => {
|
|
6201
|
+
let { dropIndicator: e } = gc();
|
|
6167
6202
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
6168
6203
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
6169
6204
|
return {
|
|
@@ -6172,7 +6207,7 @@ var za = {
|
|
|
6172
6207
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
6173
6208
|
};
|
|
6174
6209
|
} };
|
|
6175
|
-
},
|
|
6210
|
+
}, yc = { class: "pv-flex pv-full-width" }, bc = ["data-parent-id"], xc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6176
6211
|
__name: "PvSimpleNestedTreeItem",
|
|
6177
6212
|
props: {
|
|
6178
6213
|
option: {},
|
|
@@ -6188,9 +6223,9 @@ var za = {
|
|
|
6188
6223
|
},
|
|
6189
6224
|
emits: ["handle-tree-select", "update:children"],
|
|
6190
6225
|
setup(e, { emit: t }) {
|
|
6191
|
-
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } =
|
|
6226
|
+
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } = gc(), { dragAndDropIndicatorClasses: p } = vc(), { hoveredId: m, handleMouseEnter: h, handleMouseLeave: g } = dc(), { canItemBeDragged: _, getDragAndDropDisabled: v, handleMoveCallback: b, getDragGroupConfig: S, canAcceptDrop: C } = _c(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = lc(), k = () => {
|
|
6192
6227
|
d(S(n.settings, n.option).name);
|
|
6193
|
-
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6228
|
+
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? sc : oc), P = r(() => T(n.settings, n.parentField)), F = r(() => n.index === n.totalSiblings - 1), I = r(() => P.value && !F.value), R = r(() => O({
|
|
6194
6229
|
level: n.level,
|
|
6195
6230
|
showNestedTree: P.value,
|
|
6196
6231
|
childrenShowNestedTree: E(n.settings, n.option.field)
|
|
@@ -6205,7 +6240,7 @@ var za = {
|
|
|
6205
6240
|
}), B = r(() => n.isParentPathOpen ?? !0);
|
|
6206
6241
|
return (t, n) => {
|
|
6207
6242
|
let r = M("PvSimpleNestedTreeItem", !0);
|
|
6208
|
-
return D(), i(
|
|
6243
|
+
return D(), i(uc, {
|
|
6209
6244
|
active: I.value,
|
|
6210
6245
|
level: e.level
|
|
6211
6246
|
}, {
|
|
@@ -6225,7 +6260,7 @@ var za = {
|
|
|
6225
6260
|
onMouseleave: n[2] ||= (e) => L(g)(),
|
|
6226
6261
|
onContextmenu: n[3] ||= ae((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6227
6262
|
}, {
|
|
6228
|
-
default: q(() => [re(u(
|
|
6263
|
+
default: q(() => [re(u(ac, null, null, 512), [[te, L(m) === e.option.node_id && L(_)(e.isDraggable, e.settings, e.option)]]), s("div", yc, [P.value ? (D(), i(cc, {
|
|
6229
6264
|
key: 0,
|
|
6230
6265
|
"is-last": F.value
|
|
6231
6266
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
@@ -6239,7 +6274,7 @@ var za = {
|
|
|
6239
6274
|
"settings",
|
|
6240
6275
|
"is-draggable",
|
|
6241
6276
|
"params"
|
|
6242
|
-
])) : (D(), i(
|
|
6277
|
+
])) : (D(), i(ic, {
|
|
6243
6278
|
key: 2,
|
|
6244
6279
|
label: e.option.label,
|
|
6245
6280
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6301,12 +6336,12 @@ var za = {
|
|
|
6301
6336
|
"class",
|
|
6302
6337
|
"onEnd",
|
|
6303
6338
|
"onAdd"
|
|
6304
|
-
])], 8,
|
|
6339
|
+
])], 8, bc)]),
|
|
6305
6340
|
_: 1
|
|
6306
6341
|
}, 8, ["active", "level"]);
|
|
6307
6342
|
};
|
|
6308
6343
|
}
|
|
6309
|
-
}), [["__scopeId", "data-v-f706f606"]]),
|
|
6344
|
+
}), [["__scopeId", "data-v-f706f606"]]), Sc = ["data-parent-id"], Cc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6310
6345
|
__name: "PvSimpleNestedTree",
|
|
6311
6346
|
props: {
|
|
6312
6347
|
option: {},
|
|
@@ -6322,14 +6357,14 @@ var za = {
|
|
|
6322
6357
|
},
|
|
6323
6358
|
emits: ["handle-tree-select", "update:children"],
|
|
6324
6359
|
setup(e, { emit: t }) {
|
|
6325
|
-
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
6360
|
+
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = dc(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = _c(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = gc(), { dragAndDropIndicatorClasses: C } = vc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = lc(), k = () => {
|
|
6326
6361
|
b(h(n.settings, n.option).name);
|
|
6327
6362
|
}, A = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), j = r(() => T(n.settings, n.parentField)), M = r(() => O({
|
|
6328
6363
|
level: n.level,
|
|
6329
6364
|
showNestedTree: j.value,
|
|
6330
6365
|
childrenShowNestedTree: E(n.settings, n.option.field),
|
|
6331
6366
|
additionalNestingLevel: A.value
|
|
6332
|
-
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ?
|
|
6367
|
+
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ? sc : oc, I = r({
|
|
6333
6368
|
get: () => [...n.option.children || []],
|
|
6334
6369
|
set: (e) => {
|
|
6335
6370
|
o("update:children", {
|
|
@@ -6338,7 +6373,7 @@ var za = {
|
|
|
6338
6373
|
});
|
|
6339
6374
|
}
|
|
6340
6375
|
}), R = r(() => n.isParentPathOpen ?? !0), z = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), B = r(() => j.value && !z.value);
|
|
6341
|
-
return (t, n) => (D(), i(
|
|
6376
|
+
return (t, n) => (D(), i(uc, {
|
|
6342
6377
|
class: "pv-flow",
|
|
6343
6378
|
style: { "--flow-size": "0px" },
|
|
6344
6379
|
active: B.value,
|
|
@@ -6361,8 +6396,8 @@ var za = {
|
|
|
6361
6396
|
onContextmenu: n[3] ||= ae((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6362
6397
|
}, {
|
|
6363
6398
|
default: q(() => [
|
|
6364
|
-
re(u(
|
|
6365
|
-
j.value ? (D(), i(
|
|
6399
|
+
re(u(ac, null, null, 512), [[te, L(c) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6400
|
+
j.value ? (D(), i(cc, {
|
|
6366
6401
|
key: 0,
|
|
6367
6402
|
"is-last": z.value
|
|
6368
6403
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6377,7 +6412,7 @@ var za = {
|
|
|
6377
6412
|
"settings",
|
|
6378
6413
|
"selected",
|
|
6379
6414
|
"params"
|
|
6380
|
-
])) : (D(), i(
|
|
6415
|
+
])) : (D(), i(ic, {
|
|
6381
6416
|
key: 2,
|
|
6382
6417
|
label: e.option.label,
|
|
6383
6418
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6405,7 +6440,7 @@ var za = {
|
|
|
6405
6440
|
onEnd: L(S),
|
|
6406
6441
|
onAdd: L(S)
|
|
6407
6442
|
}, {
|
|
6408
|
-
item: q(({ element: r, index: i }) => [u(
|
|
6443
|
+
item: q(({ element: r, index: i }) => [u(xc, {
|
|
6409
6444
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6410
6445
|
option: r,
|
|
6411
6446
|
settings: e.settings,
|
|
@@ -6440,11 +6475,11 @@ var za = {
|
|
|
6440
6475
|
"class",
|
|
6441
6476
|
"onEnd",
|
|
6442
6477
|
"onAdd"
|
|
6443
|
-
])], 8,
|
|
6478
|
+
])], 8, Sc)]),
|
|
6444
6479
|
_: 1
|
|
6445
6480
|
}, 8, ["active", "level"]));
|
|
6446
6481
|
}
|
|
6447
|
-
}), [["__scopeId", "data-v-26eb4678"]]),
|
|
6482
|
+
}), [["__scopeId", "data-v-26eb4678"]]), wc = ["data-parent-id"], Tc = { key: 2 }, Ec = ["data-parent-id"], Dc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6448
6483
|
__name: "PvTreeItem",
|
|
6449
6484
|
props: {
|
|
6450
6485
|
option: {},
|
|
@@ -6472,12 +6507,12 @@ var za = {
|
|
|
6472
6507
|
K(() => n.treeOpen, (e) => {
|
|
6473
6508
|
e !== void 0 && (l.value = e);
|
|
6474
6509
|
});
|
|
6475
|
-
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } =
|
|
6510
|
+
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } = _c(), { hoveredId: _, handleMouseEnter: v, handleMouseLeave: b } = dc(), { isDragging: S, draggingGroupName: C, onDragStart: w, onDragEnd: T } = gc(), { dragAndDropIndicatorClasses: E } = vc(), { indentPadding: O, showsConnector: A } = lc(), j = () => {
|
|
6476
6511
|
w(d(n.settings, n.option).name);
|
|
6477
6512
|
}, P = (e) => ({
|
|
6478
6513
|
paddingLeft: O(e, n.settings[n.option.field]?.additionalNestingLevel ?? 0),
|
|
6479
6514
|
"--border-color": "#121313"
|
|
6480
|
-
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), I = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6515
|
+
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), I = r(() => n.settings[n.option.field]?.checkbox ? sc : oc), R = r({
|
|
6481
6516
|
get: () => [...n.option.children || []],
|
|
6482
6517
|
set: (e) => {
|
|
6483
6518
|
c("update:children", {
|
|
@@ -6488,7 +6523,7 @@ var za = {
|
|
|
6488
6523
|
}), z = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), B = r(() => A(n.settings, n.parentField)), V = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), H = r(() => B.value && !V.value), ee = r(() => n.isParentPathOpen ?? !0 ? z.value && n.level === 0 ? l.value : !0 : !1);
|
|
6489
6524
|
return (t, n) => {
|
|
6490
6525
|
let r = M("PvTreeItem", !0);
|
|
6491
|
-
return D(), i(
|
|
6526
|
+
return D(), i(uc, {
|
|
6492
6527
|
active: H.value,
|
|
6493
6528
|
level: e.level
|
|
6494
6529
|
}, {
|
|
@@ -6520,8 +6555,8 @@ var za = {
|
|
|
6520
6555
|
onContextmenu: n[6] ||= ae((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6521
6556
|
}, {
|
|
6522
6557
|
trigger: q(() => [
|
|
6523
|
-
re(u(
|
|
6524
|
-
B.value ? (D(), i(
|
|
6558
|
+
re(u(ac, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6559
|
+
B.value ? (D(), i(cc, {
|
|
6525
6560
|
key: 0,
|
|
6526
6561
|
"is-last": V.value
|
|
6527
6562
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6536,7 +6571,7 @@ var za = {
|
|
|
6536
6571
|
"settings",
|
|
6537
6572
|
"selected",
|
|
6538
6573
|
"params"
|
|
6539
|
-
])) : (D(), i(
|
|
6574
|
+
])) : (D(), i(ic, {
|
|
6540
6575
|
key: 2,
|
|
6541
6576
|
label: e.option.label,
|
|
6542
6577
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6592,7 +6627,7 @@ var za = {
|
|
|
6592
6627
|
"class",
|
|
6593
6628
|
"onEnd",
|
|
6594
6629
|
"onAdd"
|
|
6595
|
-
])], 8,
|
|
6630
|
+
])], 8, wc)]),
|
|
6596
6631
|
_: 1
|
|
6597
6632
|
}, 8, [
|
|
6598
6633
|
"modelValue",
|
|
@@ -6600,7 +6635,7 @@ var za = {
|
|
|
6600
6635
|
"summaryStyles",
|
|
6601
6636
|
"summaryClasses",
|
|
6602
6637
|
"defaultOpen"
|
|
6603
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(
|
|
6638
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(Cc, {
|
|
6604
6639
|
key: 1,
|
|
6605
6640
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6606
6641
|
"selected-options": e.selectedOptions,
|
|
@@ -6627,7 +6662,7 @@ var za = {
|
|
|
6627
6662
|
"is-draggable",
|
|
6628
6663
|
"disable-selection",
|
|
6629
6664
|
"is-last-root-item"
|
|
6630
|
-
])) : (D(), o("div",
|
|
6665
|
+
])) : (D(), o("div", Tc, [(D(), i(N(I.value), {
|
|
6631
6666
|
class: y({ ...L(E)(e.option) }),
|
|
6632
6667
|
option: e.option,
|
|
6633
6668
|
selected: F(e.option.node_id),
|
|
@@ -6644,8 +6679,8 @@ var za = {
|
|
|
6644
6679
|
onContextmenu: n[12] ||= ae((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6645
6680
|
}, {
|
|
6646
6681
|
default: q(() => [
|
|
6647
|
-
re(u(
|
|
6648
|
-
B.value ? (D(), i(
|
|
6682
|
+
re(u(ac, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6683
|
+
B.value ? (D(), i(cc, {
|
|
6649
6684
|
key: 0,
|
|
6650
6685
|
"is-last": V.value
|
|
6651
6686
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6658,7 +6693,7 @@ var za = {
|
|
|
6658
6693
|
"option",
|
|
6659
6694
|
"settings",
|
|
6660
6695
|
"params"
|
|
6661
|
-
])) : (D(), i(
|
|
6696
|
+
])) : (D(), i(ic, {
|
|
6662
6697
|
key: 2,
|
|
6663
6698
|
label: e.option.label,
|
|
6664
6699
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6721,12 +6756,12 @@ var za = {
|
|
|
6721
6756
|
"class",
|
|
6722
6757
|
"onEnd",
|
|
6723
6758
|
"onAdd"
|
|
6724
|
-
])], 8,
|
|
6759
|
+
])], 8, Ec)]))]),
|
|
6725
6760
|
_: 1
|
|
6726
6761
|
}, 8, ["active", "level"]);
|
|
6727
6762
|
};
|
|
6728
6763
|
}
|
|
6729
|
-
}), [["__scopeId", "data-v-eb5f5907"]]),
|
|
6764
|
+
}), [["__scopeId", "data-v-eb5f5907"]]), Oc = (e) => {
|
|
6730
6765
|
let t = [], n = !1;
|
|
6731
6766
|
function r(e) {
|
|
6732
6767
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -6769,7 +6804,7 @@ var za = {
|
|
|
6769
6804
|
newChildren: r
|
|
6770
6805
|
}), n || (n = !0, v(i));
|
|
6771
6806
|
} };
|
|
6772
|
-
},
|
|
6807
|
+
}, kc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6773
6808
|
__name: "PvTree",
|
|
6774
6809
|
props: /* @__PURE__ */ g({
|
|
6775
6810
|
settings: {},
|
|
@@ -6799,14 +6834,14 @@ var za = {
|
|
|
6799
6834
|
"update:treeOpen"
|
|
6800
6835
|
],
|
|
6801
6836
|
setup(e) {
|
|
6802
|
-
m(
|
|
6803
|
-
let n = e, i = B(e, "selectedOptions"), a = B(e, "options"), c = B(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
6837
|
+
m(fc, null) || hc();
|
|
6838
|
+
let n = e, i = B(e, "selectedOptions"), a = B(e, "options"), c = B(e, "treeOpen"), { handleUpdateChildren: l } = Oc(a), d = (e, t) => {
|
|
6804
6839
|
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];
|
|
6805
6840
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
6806
6841
|
...n.defaultSettings,
|
|
6807
6842
|
...n.settings[t]
|
|
6808
6843
|
}, e), {}));
|
|
6809
|
-
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(
|
|
6844
|
+
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(Dc, {
|
|
6810
6845
|
"is-last-root-item": n === a.value.length - 1,
|
|
6811
6846
|
"is-parent-path-open": !0,
|
|
6812
6847
|
"tree-open": c.value,
|
|
@@ -6829,19 +6864,19 @@ var za = {
|
|
|
6829
6864
|
"onUpdate:children"
|
|
6830
6865
|
])]))), 128))], 2)]));
|
|
6831
6866
|
}
|
|
6832
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
6867
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), Ac = /* @__PURE__ */ d({
|
|
6833
6868
|
__name: "PvTreeGroup",
|
|
6834
6869
|
setup(e) {
|
|
6835
|
-
return
|
|
6870
|
+
return hc(), (e, t) => j(e.$slots, "default");
|
|
6836
6871
|
}
|
|
6837
|
-
}),
|
|
6872
|
+
}), jc = { class: "pv-full-width" }, Mc = {
|
|
6838
6873
|
key: 0,
|
|
6839
6874
|
class: "pv-flex pv-stack-4",
|
|
6840
6875
|
style: { "--flex-justify": "space-between" }
|
|
6841
|
-
},
|
|
6876
|
+
}, Nc = {
|
|
6842
6877
|
key: 1,
|
|
6843
6878
|
class: "pv-text-subdued pv-text-title-sm"
|
|
6844
|
-
},
|
|
6879
|
+
}, Pc = ["data-disabled"], Fc = /* @__PURE__ */ d({
|
|
6845
6880
|
__name: "PvProgressBar",
|
|
6846
6881
|
props: {
|
|
6847
6882
|
disabled: {
|
|
@@ -6858,22 +6893,22 @@ var za = {
|
|
|
6858
6893
|
},
|
|
6859
6894
|
setup(e) {
|
|
6860
6895
|
let t = e, n = r(() => Math.min(100, Math.max(0, t.progress))), i = r(() => `${n.value}% Complete`);
|
|
6861
|
-
return (r, c) => (D(), o("div",
|
|
6896
|
+
return (r, c) => (D(), o("div", jc, [e.showLabel || e.secondaryLabel ? (D(), o("div", Mc, [e.showLabel ? (D(), o("p", {
|
|
6862
6897
|
key: 0,
|
|
6863
6898
|
class: y(e.labelVariant === "secondary" ? "pv-text-subdued pv-text-title-sm" : "pv-text-brand pv-text-title-sm")
|
|
6864
|
-
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span",
|
|
6899
|
+
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span", Nc, I(e.secondaryLabel), 1)) : a("", !0)])) : a("", !0), s("div", {
|
|
6865
6900
|
class: "pv-progress-bar",
|
|
6866
6901
|
"data-disabled": t.disabled ? !0 : void 0,
|
|
6867
6902
|
style: x({ "--progress": `${n.value}%` })
|
|
6868
|
-
}, null, 12,
|
|
6903
|
+
}, null, 12, Pc)]));
|
|
6869
6904
|
}
|
|
6870
|
-
}),
|
|
6905
|
+
}), Ic = {
|
|
6871
6906
|
class: "pv-flex",
|
|
6872
6907
|
style: {
|
|
6873
6908
|
"--flex-gap": "4px",
|
|
6874
6909
|
height: "24px"
|
|
6875
6910
|
}
|
|
6876
|
-
},
|
|
6911
|
+
}, Lc = /* @__PURE__ */ d({
|
|
6877
6912
|
__name: "PvDistributionBar",
|
|
6878
6913
|
props: { values: {} },
|
|
6879
6914
|
setup(e) {
|
|
@@ -6896,16 +6931,16 @@ var za = {
|
|
|
6896
6931
|
default: return "pv-data-surface-visualization-1";
|
|
6897
6932
|
}
|
|
6898
6933
|
};
|
|
6899
|
-
return (n, r) => (D(), o("div",
|
|
6934
|
+
return (n, r) => (D(), o("div", Ic, [(D(!0), o(t, null, A(e.values, (e, t) => (D(), o("div", {
|
|
6900
6935
|
key: t,
|
|
6901
6936
|
class: y([l(t)]),
|
|
6902
6937
|
style: x(c(e, t))
|
|
6903
6938
|
}, null, 6))), 128))]));
|
|
6904
6939
|
}
|
|
6905
|
-
}),
|
|
6940
|
+
}), Rc = {
|
|
6906
6941
|
key: 0,
|
|
6907
6942
|
class: "pv-range-single-slider"
|
|
6908
|
-
},
|
|
6943
|
+
}, zc = [
|
|
6909
6944
|
"id",
|
|
6910
6945
|
"aria-label",
|
|
6911
6946
|
"aria-valuetext",
|
|
@@ -6914,11 +6949,11 @@ var za = {
|
|
|
6914
6949
|
"min",
|
|
6915
6950
|
"step",
|
|
6916
6951
|
"value"
|
|
6917
|
-
],
|
|
6952
|
+
], Bc = ["aria-label"], Vc = {
|
|
6918
6953
|
key: 0,
|
|
6919
6954
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
6920
6955
|
style: { "line-height": "1" }
|
|
6921
|
-
},
|
|
6956
|
+
}, Hc = [
|
|
6922
6957
|
"aria-label",
|
|
6923
6958
|
"aria-valuetext",
|
|
6924
6959
|
"disabled",
|
|
@@ -6926,7 +6961,7 @@ var za = {
|
|
|
6926
6961
|
"min",
|
|
6927
6962
|
"step",
|
|
6928
6963
|
"value"
|
|
6929
|
-
],
|
|
6964
|
+
], Uc = [
|
|
6930
6965
|
"aria-label",
|
|
6931
6966
|
"aria-valuetext",
|
|
6932
6967
|
"disabled",
|
|
@@ -6934,7 +6969,7 @@ var za = {
|
|
|
6934
6969
|
"min",
|
|
6935
6970
|
"step",
|
|
6936
6971
|
"value"
|
|
6937
|
-
],
|
|
6972
|
+
], Wc = {
|
|
6938
6973
|
key: 1,
|
|
6939
6974
|
class: "pv-flex",
|
|
6940
6975
|
style: {
|
|
@@ -6942,15 +6977,15 @@ var za = {
|
|
|
6942
6977
|
"--flex-gap": "0.75rem",
|
|
6943
6978
|
"--flex-wrap": "wrap"
|
|
6944
6979
|
}
|
|
6945
|
-
},
|
|
6980
|
+
}, Gc = { class: "pv-text-body-sm" }, Kc = [
|
|
6946
6981
|
"disabled",
|
|
6947
6982
|
"step",
|
|
6948
6983
|
"value"
|
|
6949
|
-
],
|
|
6984
|
+
], qc = { class: "pv-text-body-sm" }, Jc = [
|
|
6950
6985
|
"disabled",
|
|
6951
6986
|
"step",
|
|
6952
6987
|
"value"
|
|
6953
|
-
],
|
|
6988
|
+
], Yc = 0, Xc = 100, Zc = 1e4, Qc = "4.6875rem", $c = .01, el = /* @__PURE__ */ d({
|
|
6954
6989
|
inheritAttrs: !1,
|
|
6955
6990
|
__name: "PvRange",
|
|
6956
6991
|
props: /* @__PURE__ */ g({
|
|
@@ -7042,7 +7077,7 @@ var za = {
|
|
|
7042
7077
|
let r = oe(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
7043
7078
|
return Math.exp(i + n * (a - i)) - r;
|
|
7044
7079
|
}, ce = (e, t) => Math.max(0, Math.min(100, J(e, t) * 100)), le = r(() => {
|
|
7045
|
-
let e = E(t.min) ??
|
|
7080
|
+
let e = E(t.min) ?? Yc, n = E(t.max) ?? Xc;
|
|
7046
7081
|
return e > n ? {
|
|
7047
7082
|
max: e,
|
|
7048
7083
|
min: n
|
|
@@ -7065,7 +7100,7 @@ var za = {
|
|
|
7065
7100
|
}
|
|
7066
7101
|
return t.split(".")[1]?.length ?? 0;
|
|
7067
7102
|
}, X = r(() => {
|
|
7068
|
-
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(
|
|
7103
|
+
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Yc, r ?? Yc, i ?? Yc), o = n ?? Math.max(Xc, r ?? Xc, i ?? Xc);
|
|
7069
7104
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (U.value > 0 ? U.value : 1)), {
|
|
7070
7105
|
max: o,
|
|
7071
7106
|
min: a
|
|
@@ -7106,14 +7141,14 @@ var za = {
|
|
|
7106
7141
|
"--range-track-color": ae.value,
|
|
7107
7142
|
"--value-max": `${Oe.value}%`,
|
|
7108
7143
|
"--value-min": `${De.value}%`
|
|
7109
|
-
})), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => ({ left: `${Oe.value}%` })), Me = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Ne = (e, t) => V.value ? Math.round(J(e, t) *
|
|
7144
|
+
})), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => ({ left: `${Oe.value}%` })), Me = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Ne = (e, t) => V.value ? Math.round(J(e, t) * Zc) : e, Pe = (e, t) => V.value ? se(e / Zc, t) : e, Fe = r(() => V.value ? 0 : X.value.min), Ie = r(() => V.value ? Zc : X.value.max), Le = r(() => Ne(Ee.value.min, X.value)), Re = r(() => Ne(Ee.value.max, X.value)), ze = r(() => V.value ? 0 : le.value.min), Be = r(() => V.value ? Zc : le.value.max), Ve = r(() => Ne(Y.value, le.value)), Q = r(() => Math.max(P(X.value.min).length, P(X.value.max).length, 3)), He = r(() => {
|
|
7110
7145
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
7111
7146
|
return {
|
|
7112
7147
|
"--flex-align": "stretch",
|
|
7113
7148
|
"--flex-gap": "0",
|
|
7114
|
-
"--pv-range-input-width": `max(${
|
|
7149
|
+
"--pv-range-input-width": `max(${Qc}, calc(${Q.value}ch + ${e}))`
|
|
7115
7150
|
};
|
|
7116
|
-
}), Ue = () => E(t.min) !== null || X.value.min ===
|
|
7151
|
+
}), Ue = () => E(t.min) !== null || X.value.min === Yc, We = () => E(t.max) !== null || X.value.max === Xc, Ge = (e, t) => {
|
|
7117
7152
|
c.value = {
|
|
7118
7153
|
max: t >= X.value.max && We() ? null : t,
|
|
7119
7154
|
min: e <= X.value.min && Ue() ? null : e
|
|
@@ -7160,7 +7195,7 @@ var za = {
|
|
|
7160
7195
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
7161
7196
|
if (!a && !o) return;
|
|
7162
7197
|
e.preventDefault();
|
|
7163
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = Se(se(J(i, r) + s *
|
|
7198
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = Se(se(J(i, r) + s * $c * c, r), a ? "up" : "down");
|
|
7164
7199
|
l === i && (l = i + s * ve(i, W.value)), Xe(n), Je(n, l, !1);
|
|
7165
7200
|
}, ct = () => {
|
|
7166
7201
|
g.value !== "min" && (m.value = P(Ee.value.min)), g.value !== "max" && (p.value = P(Ee.value.max));
|
|
@@ -7205,7 +7240,7 @@ var za = {
|
|
|
7205
7240
|
};
|
|
7206
7241
|
return K([Ee, X], ct, { immediate: !0 }), S(() => {
|
|
7207
7242
|
_t(), Qe();
|
|
7208
|
-
}), (n, r) => e.mode === "single" ? (D(), o("div",
|
|
7243
|
+
}), (n, r) => e.mode === "single" ? (D(), o("div", Rc, [e.showValueTooltips && v.value ? (D(), o("span", {
|
|
7209
7244
|
key: 0,
|
|
7210
7245
|
class: "pv-range-tooltip",
|
|
7211
7246
|
style: x(fe.value)
|
|
@@ -7224,7 +7259,7 @@ var za = {
|
|
|
7224
7259
|
onInput: it,
|
|
7225
7260
|
onPointerdown: rt,
|
|
7226
7261
|
onPointerup: $e
|
|
7227
|
-
}), null, 16,
|
|
7262
|
+
}), null, 16, zc)])) : (D(), o("div", _({ key: 1 }, L(l), {
|
|
7228
7263
|
class: "pv-flex-vertical",
|
|
7229
7264
|
"data-testid": "pv-range-dual",
|
|
7230
7265
|
role: "group",
|
|
@@ -7234,7 +7269,7 @@ var za = {
|
|
|
7234
7269
|
"--flex-gap": "0"
|
|
7235
7270
|
}
|
|
7236
7271
|
}), [
|
|
7237
|
-
e.showBoundLabels ? (D(), o("div",
|
|
7272
|
+
e.showBoundLabels ? (D(), o("div", Vc, [s("span", null, I(F(X.value.min)), 1), s("span", null, I(F(X.value.max)), 1)])) : a("", !0),
|
|
7238
7273
|
s("div", {
|
|
7239
7274
|
ref_key: "sliderRef",
|
|
7240
7275
|
ref: b,
|
|
@@ -7269,7 +7304,7 @@ var za = {
|
|
|
7269
7304
|
onKeydown: r[0] ||= (e) => st(e, "min"),
|
|
7270
7305
|
onPointerdown: r[1] ||= (e) => Xe("min"),
|
|
7271
7306
|
onPointerup: Ye
|
|
7272
|
-
}, null, 40,
|
|
7307
|
+
}, null, 40, Hc),
|
|
7273
7308
|
s("input", {
|
|
7274
7309
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
7275
7310
|
type: "range",
|
|
@@ -7286,14 +7321,14 @@ var za = {
|
|
|
7286
7321
|
onKeydown: r[2] ||= (e) => st(e, "max"),
|
|
7287
7322
|
onPointerdown: r[3] ||= (e) => Xe("max"),
|
|
7288
7323
|
onPointerup: Ye
|
|
7289
|
-
}, null, 40,
|
|
7324
|
+
}, null, 40, Uc)
|
|
7290
7325
|
], 38),
|
|
7291
|
-
e.showInputs ? (D(), o("div",
|
|
7326
|
+
e.showInputs ? (D(), o("div", Wc, [
|
|
7292
7327
|
s("label", {
|
|
7293
7328
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7294
7329
|
for: f,
|
|
7295
7330
|
style: x(He.value)
|
|
7296
|
-
}, [s("span",
|
|
7331
|
+
}, [s("span", Gc, I(e.minLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Z, {
|
|
7297
7332
|
key: 0,
|
|
7298
7333
|
class: "pv-range-input-icon",
|
|
7299
7334
|
name: e.inputIcon
|
|
@@ -7310,12 +7345,12 @@ var za = {
|
|
|
7310
7345
|
onFocus: r[5] ||= (e) => ft("min"),
|
|
7311
7346
|
onInput: ut,
|
|
7312
7347
|
onKeydown: r[6] ||= ie((e) => mt(e, "min"), ["enter"])
|
|
7313
|
-
}, null, 40,
|
|
7348
|
+
}, null, 40, Kc)], 2)], 4),
|
|
7314
7349
|
s("label", {
|
|
7315
7350
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7316
7351
|
for: d,
|
|
7317
7352
|
style: x(He.value)
|
|
7318
|
-
}, [s("span",
|
|
7353
|
+
}, [s("span", qc, I(e.maxLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Z, {
|
|
7319
7354
|
key: 0,
|
|
7320
7355
|
class: "pv-range-input-icon",
|
|
7321
7356
|
name: e.inputIcon
|
|
@@ -7332,7 +7367,7 @@ var za = {
|
|
|
7332
7367
|
onFocus: r[8] ||= (e) => ft("max"),
|
|
7333
7368
|
onInput: dt,
|
|
7334
7369
|
onKeydown: r[9] ||= ie((e) => mt(e, "max"), ["enter"])
|
|
7335
|
-
}, null, 40,
|
|
7370
|
+
}, null, 40, Jc)], 2)], 4),
|
|
7336
7371
|
e.showClear && Me.value ? (D(), i($, {
|
|
7337
7372
|
key: 0,
|
|
7338
7373
|
class: "pv-text-brand",
|
|
@@ -7349,26 +7384,26 @@ var za = {
|
|
|
7349
7384
|
variant: "ghost",
|
|
7350
7385
|
onClick: Ze
|
|
7351
7386
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
7352
|
-
], 16,
|
|
7387
|
+
], 16, Bc));
|
|
7353
7388
|
}
|
|
7354
|
-
}),
|
|
7389
|
+
}), tl = [
|
|
7355
7390
|
"aria-label",
|
|
7356
7391
|
"checked",
|
|
7357
7392
|
"disabled",
|
|
7358
7393
|
"name"
|
|
7359
|
-
],
|
|
7394
|
+
], nl = {
|
|
7360
7395
|
key: 3,
|
|
7361
7396
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
7362
|
-
},
|
|
7397
|
+
}, rl = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, il = {
|
|
7363
7398
|
key: 0,
|
|
7364
7399
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7365
|
-
},
|
|
7400
|
+
}, al = {
|
|
7366
7401
|
key: 1,
|
|
7367
7402
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7368
|
-
},
|
|
7403
|
+
}, ol = {
|
|
7369
7404
|
key: 4,
|
|
7370
7405
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
7371
|
-
},
|
|
7406
|
+
}, sl = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
7372
7407
|
__name: "PvFilterPanelOptionRow",
|
|
7373
7408
|
props: {
|
|
7374
7409
|
ariaLabel: {},
|
|
@@ -7441,7 +7476,7 @@ var za = {
|
|
|
7441
7476
|
disabled: e.disabled,
|
|
7442
7477
|
name: e.name,
|
|
7443
7478
|
onChange: g
|
|
7444
|
-
}, null, 40,
|
|
7479
|
+
}, null, 40, tl)) : (D(), i(ds, {
|
|
7445
7480
|
key: 1,
|
|
7446
7481
|
ariaLabel: e.ariaLabel || e.label,
|
|
7447
7482
|
disabled: e.disabled,
|
|
@@ -7454,12 +7489,12 @@ var za = {
|
|
|
7454
7489
|
"indeterminate",
|
|
7455
7490
|
"modelValue"
|
|
7456
7491
|
])),
|
|
7457
|
-
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span",
|
|
7458
|
-
s("span",
|
|
7459
|
-
e.subduedText ? (D(), o("span",
|
|
7460
|
-
e.subText ? (D(), o("span",
|
|
7492
|
+
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span", nl, [
|
|
7493
|
+
s("span", rl, I(e.label), 1),
|
|
7494
|
+
e.subduedText ? (D(), o("span", il, I(e.subduedText), 1)) : a("", !0),
|
|
7495
|
+
e.subText ? (D(), o("span", al, I(e.subText), 1)) : a("", !0)
|
|
7461
7496
|
])),
|
|
7462
|
-
f.value ? (D(), o("span",
|
|
7497
|
+
f.value ? (D(), o("span", ol, [j(t.$slots, "result-count", {}, () => [l("(" + I(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
7463
7498
|
e.showFocusAction ? (D(), i($, {
|
|
7464
7499
|
key: 5,
|
|
7465
7500
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -7475,26 +7510,26 @@ var za = {
|
|
|
7475
7510
|
])) : a("", !0)
|
|
7476
7511
|
], 6));
|
|
7477
7512
|
}
|
|
7478
|
-
}), [["__scopeId", "data-v-d5f24abf"]]),
|
|
7513
|
+
}), [["__scopeId", "data-v-d5f24abf"]]), cl = [
|
|
7479
7514
|
"totalCount",
|
|
7480
7515
|
"total_count",
|
|
7481
7516
|
"resultCount",
|
|
7482
7517
|
"result_count",
|
|
7483
7518
|
"row_count",
|
|
7484
7519
|
"count"
|
|
7485
|
-
],
|
|
7520
|
+
], ll = new Intl.NumberFormat("en-US", {
|
|
7486
7521
|
maximumFractionDigits: 1,
|
|
7487
7522
|
notation: "compact"
|
|
7488
|
-
}),
|
|
7489
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
7523
|
+
}), ul = (e) => typeof e == "object" && !!e, dl = (e) => {
|
|
7524
|
+
if (typeof e == "number" && Number.isFinite(e)) return ll.format(e);
|
|
7490
7525
|
if (typeof e == "string") {
|
|
7491
7526
|
let t = e.trim();
|
|
7492
7527
|
if (!t) return;
|
|
7493
7528
|
let n = Number(t);
|
|
7494
|
-
return Number.isFinite(n) ?
|
|
7529
|
+
return Number.isFinite(n) ? ll.format(n) : e;
|
|
7495
7530
|
}
|
|
7496
|
-
},
|
|
7497
|
-
let n =
|
|
7531
|
+
}, fl = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), pl = (e, t = {}) => {
|
|
7532
|
+
let n = fl(t.dataType, t.valueDecimals);
|
|
7498
7533
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
7499
7534
|
currency: "USD",
|
|
7500
7535
|
maximumFractionDigits: n,
|
|
@@ -7506,11 +7541,11 @@ var za = {
|
|
|
7506
7541
|
minimumFractionDigits: n
|
|
7507
7542
|
}).format(e);
|
|
7508
7543
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
7509
|
-
},
|
|
7544
|
+
}, ml = (e, t, n = {}) => e !== null && t !== null ? `${pl(e, n)}–${pl(t, n)}` : e === null ? t === null ? "" : `≤ ${pl(t, n)}` : `${pl(e, n)}+`, hl = (e, t) => {
|
|
7510
7545
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
7511
7546
|
if (!n) return null;
|
|
7512
7547
|
try {
|
|
7513
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
7548
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : ul(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
7514
7549
|
return n({
|
|
7515
7550
|
context: e.metadata,
|
|
7516
7551
|
value: t
|
|
@@ -7518,24 +7553,24 @@ var za = {
|
|
|
7518
7553
|
} catch {
|
|
7519
7554
|
return null;
|
|
7520
7555
|
}
|
|
7521
|
-
},
|
|
7556
|
+
}, gl = (e, t) => {
|
|
7522
7557
|
let n = e.metadata;
|
|
7523
|
-
if (!
|
|
7558
|
+
if (!ul(n)) return null;
|
|
7524
7559
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
7525
7560
|
let t = n[e];
|
|
7526
7561
|
if (t != null && String(t).trim()) return String(t);
|
|
7527
7562
|
}
|
|
7528
7563
|
return null;
|
|
7529
|
-
},
|
|
7530
|
-
let t =
|
|
7564
|
+
}, _l = (e, t) => e.label || gl(e, t) || hl(e, t) || e.value, vl = (e) => {
|
|
7565
|
+
let t = dl(e?.resultCount);
|
|
7531
7566
|
if (t !== void 0) return t;
|
|
7532
7567
|
let n = e?.metadata;
|
|
7533
|
-
if (
|
|
7534
|
-
let t =
|
|
7568
|
+
if (ul(n)) for (let e of cl) {
|
|
7569
|
+
let t = dl(n[e]);
|
|
7535
7570
|
if (t !== void 0) return t;
|
|
7536
7571
|
}
|
|
7537
|
-
return
|
|
7538
|
-
},
|
|
7572
|
+
return dl(e?.totalChildCount);
|
|
7573
|
+
}, yl = "__pv_filter_panel_scoped_value__", bl = (e) => typeof e == "object" && !!e, xl = (e) => {
|
|
7539
7574
|
try {
|
|
7540
7575
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7541
7576
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7549,7 +7584,7 @@ var za = {
|
|
|
7549
7584
|
} catch {
|
|
7550
7585
|
return [];
|
|
7551
7586
|
}
|
|
7552
|
-
},
|
|
7587
|
+
}, Sl = (e) => {
|
|
7553
7588
|
if (!e.startsWith("__")) return null;
|
|
7554
7589
|
let t = e.slice(2).split("__");
|
|
7555
7590
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7562,76 +7597,76 @@ var za = {
|
|
|
7562
7597
|
pairs: n,
|
|
7563
7598
|
value: n[0].value
|
|
7564
7599
|
};
|
|
7565
|
-
},
|
|
7600
|
+
}, Cl = (e) => {
|
|
7566
7601
|
if (e == null) return null;
|
|
7567
|
-
if (!e.startsWith(
|
|
7602
|
+
if (!e.startsWith(yl)) return Sl(e) ?? {
|
|
7568
7603
|
pairs: [],
|
|
7569
7604
|
value: e
|
|
7570
7605
|
};
|
|
7571
|
-
let t =
|
|
7606
|
+
let t = xl(e.slice(32));
|
|
7572
7607
|
return {
|
|
7573
7608
|
field: t[0]?.field,
|
|
7574
7609
|
pairs: t,
|
|
7575
7610
|
value: t[0]?.value ?? e
|
|
7576
7611
|
};
|
|
7577
|
-
},
|
|
7612
|
+
}, wl = (e, t) => `${yl}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Tl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : bl(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) : Cl(e.value)?.value ?? e.value : null, El = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Cl(e?.value)?.field ?? t, Dl = (e) => e.flatMap((e) => [e, ...e.children?.length ? Dl(e.children) : []]), Ol = (e, t, n, r) => El(e, r) === t && Tl(e) === n, kl = (e) => {
|
|
7578
7613
|
let t = e;
|
|
7579
7614
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7580
|
-
},
|
|
7615
|
+
}, Al = (e) => {
|
|
7581
7616
|
let t = e;
|
|
7582
|
-
return
|
|
7617
|
+
return kl(e) ? {
|
|
7583
7618
|
...t,
|
|
7584
|
-
conditions: (t.conditions ?? []).map(
|
|
7619
|
+
conditions: (t.conditions ?? []).map(Al)
|
|
7585
7620
|
} : { ...t };
|
|
7586
|
-
},
|
|
7621
|
+
}, jl = (e, t) => {
|
|
7587
7622
|
if (!e) return null;
|
|
7588
7623
|
let n = t instanceof Set ? t : new Set(t);
|
|
7589
|
-
if (!n.size) return
|
|
7590
|
-
if (!
|
|
7624
|
+
if (!n.size) return Al(e);
|
|
7625
|
+
if (!kl(e)) {
|
|
7591
7626
|
let t = e;
|
|
7592
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7627
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Al(e);
|
|
7593
7628
|
}
|
|
7594
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7629
|
+
let r = e, i = (r.conditions ?? []).map((e) => jl(e, n)).filter((e) => !!e);
|
|
7595
7630
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7596
7631
|
...r,
|
|
7597
7632
|
conditions: i
|
|
7598
7633
|
} : null;
|
|
7599
|
-
},
|
|
7634
|
+
}, Ml = (e) => e ? [e.field, ...(e.children ?? []).flatMap(Ml)] : [], Nl = (e) => e ? e.children?.length ? e.children.flatMap(Nl) : [e.field] : [], Pl = (e) => {
|
|
7600
7635
|
let t = e?.context ?? {};
|
|
7601
|
-
return t.aggregateFieldHierarchy ?
|
|
7602
|
-
},
|
|
7636
|
+
return t.aggregateFieldHierarchy ? Ml(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7637
|
+
}, Fl = (e) => {
|
|
7603
7638
|
let t = e?.context ?? {};
|
|
7604
7639
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7605
|
-
},
|
|
7640
|
+
}, Il = (e) => Pl(e).length > 0, Ll = (e, t) => {
|
|
7606
7641
|
for (let n of e ?? []) {
|
|
7607
7642
|
if (!n) continue;
|
|
7608
7643
|
if (n.value === t) return n;
|
|
7609
|
-
let e =
|
|
7644
|
+
let e = Ll(n.children, t);
|
|
7610
7645
|
if (e) return e;
|
|
7611
7646
|
}
|
|
7612
|
-
},
|
|
7647
|
+
}, Rl = (e, t, n = []) => {
|
|
7613
7648
|
for (let r of e ?? []) {
|
|
7614
7649
|
if (!r) continue;
|
|
7615
7650
|
let e = [...n, r];
|
|
7616
7651
|
if (r.value === t) return e;
|
|
7617
|
-
let i =
|
|
7652
|
+
let i = Rl(r.children, t, e);
|
|
7618
7653
|
if (i) return i;
|
|
7619
7654
|
}
|
|
7620
|
-
},
|
|
7621
|
-
let n =
|
|
7655
|
+
}, zl = (e, t) => {
|
|
7656
|
+
let n = Ll(t, e), r = n ? El(n, "") : void 0, i = n ? Tl(n) : null;
|
|
7622
7657
|
if (r && i !== null) return {
|
|
7623
7658
|
field: r,
|
|
7624
7659
|
value: i
|
|
7625
7660
|
};
|
|
7626
|
-
let a =
|
|
7661
|
+
let a = Cl(e);
|
|
7627
7662
|
return {
|
|
7628
7663
|
field: a?.field,
|
|
7629
7664
|
value: a?.value ?? e
|
|
7630
7665
|
};
|
|
7631
|
-
},
|
|
7666
|
+
}, Bl = (e, t, n) => {
|
|
7632
7667
|
let r = (e) => {
|
|
7633
7668
|
if (!e) return;
|
|
7634
|
-
let i =
|
|
7669
|
+
let i = El(e, ""), a = Tl(e);
|
|
7635
7670
|
if (i === t && a === n) return e.value;
|
|
7636
7671
|
for (let t of e.children ?? []) {
|
|
7637
7672
|
let e = r(t);
|
|
@@ -7643,9 +7678,9 @@ var za = {
|
|
|
7643
7678
|
if (e) return e;
|
|
7644
7679
|
}
|
|
7645
7680
|
return `__${t}__${n}`;
|
|
7646
|
-
},
|
|
7681
|
+
}, Vl = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...Vl(e.children)]), Hl = (e, t) => {
|
|
7647
7682
|
if (e.state !== "selected") return null;
|
|
7648
|
-
let { field: n, value: r } =
|
|
7683
|
+
let { field: n, value: r } = zl(e.id, t);
|
|
7649
7684
|
if (!n) return null;
|
|
7650
7685
|
let i = [{
|
|
7651
7686
|
colId: n,
|
|
@@ -7653,8 +7688,8 @@ var za = {
|
|
|
7653
7688
|
filterType: "text",
|
|
7654
7689
|
type: "equals"
|
|
7655
7690
|
}];
|
|
7656
|
-
for (let n of
|
|
7657
|
-
let e =
|
|
7691
|
+
for (let n of Vl(e.children)) {
|
|
7692
|
+
let e = zl(n.id, t);
|
|
7658
7693
|
e.field && i.push({
|
|
7659
7694
|
colId: e.field,
|
|
7660
7695
|
filter: e.value,
|
|
@@ -7667,10 +7702,10 @@ var za = {
|
|
|
7667
7702
|
filterType: "join",
|
|
7668
7703
|
type: "AND"
|
|
7669
7704
|
};
|
|
7670
|
-
},
|
|
7671
|
-
let t =
|
|
7705
|
+
}, Ul = (e) => {
|
|
7706
|
+
let t = Pl(e.colDef), n = jl(e.baseModel, t);
|
|
7672
7707
|
if (!t.length) return n;
|
|
7673
|
-
let r = e.state.map((t) =>
|
|
7708
|
+
let r = e.state.map((t) => Hl(t, e.options)).filter((e) => !!e);
|
|
7674
7709
|
if (!r.length) return n;
|
|
7675
7710
|
let i = r.length === 1 ? r[0] : {
|
|
7676
7711
|
conditions: r,
|
|
@@ -7682,17 +7717,17 @@ var za = {
|
|
|
7682
7717
|
filterType: "join",
|
|
7683
7718
|
type: "AND"
|
|
7684
7719
|
} : i;
|
|
7685
|
-
},
|
|
7720
|
+
}, Wl = (e, t, n) => {
|
|
7686
7721
|
if (!e) return [];
|
|
7687
7722
|
let r = e;
|
|
7688
|
-
if (
|
|
7723
|
+
if (kl(e)) {
|
|
7689
7724
|
let e = r.conditions ?? [];
|
|
7690
7725
|
if (r.type === "AND") {
|
|
7691
7726
|
let r = e.find((e) => {
|
|
7692
7727
|
let r = e;
|
|
7693
7728
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
7694
7729
|
});
|
|
7695
|
-
return e.flatMap((e) =>
|
|
7730
|
+
return e.flatMap((e) => Wl(e, t, n).map((e) => ({
|
|
7696
7731
|
...e,
|
|
7697
7732
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
7698
7733
|
colId: r.colId,
|
|
@@ -7700,20 +7735,20 @@ var za = {
|
|
|
7700
7735
|
} : void 0)
|
|
7701
7736
|
})));
|
|
7702
7737
|
}
|
|
7703
|
-
return e.flatMap((e) =>
|
|
7738
|
+
return e.flatMap((e) => Wl(e, t, n));
|
|
7704
7739
|
}
|
|
7705
7740
|
return r.colId && t.has(r.colId) ? [{
|
|
7706
7741
|
colId: r.colId,
|
|
7707
7742
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
7708
7743
|
type: r.type
|
|
7709
7744
|
}] : [];
|
|
7710
|
-
},
|
|
7711
|
-
let t =
|
|
7745
|
+
}, Gl = (e) => {
|
|
7746
|
+
let t = Pl(e.colDef);
|
|
7712
7747
|
if (!t.length) return [];
|
|
7713
|
-
let n = new Set(
|
|
7748
|
+
let n = new Set(Nl(e.colDef.context?.aggregateFieldHierarchy)), r = Fl(e.colDef), i = Wl(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
7714
7749
|
for (let t of i) {
|
|
7715
7750
|
if (!t.filter) continue;
|
|
7716
|
-
let n =
|
|
7751
|
+
let n = Bl(e.options, t.colId, String(t.filter));
|
|
7717
7752
|
if (t.type === "equals") {
|
|
7718
7753
|
let e = a.get(n);
|
|
7719
7754
|
a.set(n, {
|
|
@@ -7724,7 +7759,7 @@ var za = {
|
|
|
7724
7759
|
continue;
|
|
7725
7760
|
}
|
|
7726
7761
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
7727
|
-
let r =
|
|
7762
|
+
let r = Bl(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
7728
7763
|
children: [],
|
|
7729
7764
|
id: r,
|
|
7730
7765
|
state: "selected"
|
|
@@ -7736,155 +7771,155 @@ var za = {
|
|
|
7736
7771
|
}
|
|
7737
7772
|
}
|
|
7738
7773
|
return [...a.values()];
|
|
7739
|
-
},
|
|
7740
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
7774
|
+
}, Kl = (e) => {
|
|
7775
|
+
let t = /* @__PURE__ */ new Map(), n = Pl(e.colDef);
|
|
7741
7776
|
if (!n.length) return t;
|
|
7742
|
-
let r =
|
|
7777
|
+
let r = Wl(e.model, new Set(n), new Set(Nl(e.colDef.context?.aggregateFieldHierarchy)));
|
|
7743
7778
|
for (let e of r) {
|
|
7744
7779
|
if (e.type !== "equals" || !e.filter) continue;
|
|
7745
7780
|
let n = t.get(e.colId) ?? [];
|
|
7746
7781
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
7747
7782
|
}
|
|
7748
7783
|
return t;
|
|
7749
|
-
},
|
|
7784
|
+
}, ql = (e) => e.map((e) => ({
|
|
7750
7785
|
...e,
|
|
7751
7786
|
children: e.children?.map((e) => ({
|
|
7752
7787
|
...e,
|
|
7753
|
-
children: e.children ?
|
|
7788
|
+
children: e.children ? ql(e.children) : void 0
|
|
7754
7789
|
}))
|
|
7755
|
-
})),
|
|
7790
|
+
})), Jl = (e, t) => e.flatMap((e) => {
|
|
7756
7791
|
if (e.id === t) return [];
|
|
7757
|
-
let n = e.children ?
|
|
7792
|
+
let n = e.children ? Jl(e.children, t) : void 0;
|
|
7758
7793
|
return [{
|
|
7759
7794
|
...e,
|
|
7760
7795
|
children: n?.length ? n : void 0
|
|
7761
7796
|
}];
|
|
7762
|
-
}),
|
|
7797
|
+
}), Yl = (e, t) => {
|
|
7763
7798
|
for (let n of e) {
|
|
7764
7799
|
if (n.id === t) return n;
|
|
7765
|
-
let e = n.children ?
|
|
7800
|
+
let e = n.children ? Yl(n.children, t) : void 0;
|
|
7766
7801
|
if (e) return e;
|
|
7767
7802
|
}
|
|
7768
|
-
},
|
|
7769
|
-
let r = (
|
|
7803
|
+
}, Xl = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, Zl = (e, t) => [...Jl(e, t.id), t], Ql = (e) => (e.children ?? []).flatMap((e) => [e.value, ...Ql(e)]), $l = (e, t) => Ql(t).reduce((e, t) => Jl(e, t), e), eu = (e, t) => [t.value, ...Ql(t)].reduce((e, t) => Jl(e, t), e), tu = (e, t, n) => {
|
|
7804
|
+
let r = (Rl(n, t.value) ?? []).slice(0, -1).reverse();
|
|
7770
7805
|
for (let t of r) {
|
|
7771
|
-
let n =
|
|
7806
|
+
let n = Yl(e, t.value);
|
|
7772
7807
|
if (n?.state === "selected") return n;
|
|
7773
7808
|
}
|
|
7774
|
-
},
|
|
7775
|
-
let t =
|
|
7809
|
+
}, nu = (e) => {
|
|
7810
|
+
let t = ql(e.state), n = tu(t, e.option, e.options);
|
|
7776
7811
|
if (n) {
|
|
7777
7812
|
let r = n.children ?? [];
|
|
7778
|
-
return n.children = e.checked ?
|
|
7813
|
+
return n.children = e.checked ? eu(r, e.option) : [...eu(r, e.option), {
|
|
7779
7814
|
id: e.option.value,
|
|
7780
7815
|
state: "deselected"
|
|
7781
7816
|
}], n.children.length || delete n.children, t;
|
|
7782
7817
|
}
|
|
7783
|
-
return
|
|
7818
|
+
return Xl(e.option) ? e.checked ? Zl($l(t, e.option), {
|
|
7784
7819
|
id: e.option.value,
|
|
7785
7820
|
state: "selected"
|
|
7786
|
-
}) :
|
|
7821
|
+
}) : Jl(t, e.option.value) : e.checked ? Zl(t, {
|
|
7787
7822
|
id: e.option.value,
|
|
7788
7823
|
state: "selected"
|
|
7789
|
-
}) :
|
|
7790
|
-
},
|
|
7824
|
+
}) : Jl(t, e.option.value);
|
|
7825
|
+
}, ru = (e) => {
|
|
7791
7826
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
7792
7827
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
7793
7828
|
};
|
|
7794
7829
|
return n(e), t;
|
|
7795
|
-
},
|
|
7796
|
-
let t =
|
|
7830
|
+
}, iu = (e) => {
|
|
7831
|
+
let t = ru(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
7797
7832
|
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 = {
|
|
7798
|
-
indeterminate:
|
|
7833
|
+
indeterminate: Vl(a?.children).length > 0 || !o && c || o && l,
|
|
7799
7834
|
selected: o
|
|
7800
7835
|
};
|
|
7801
7836
|
return n.set(e.value, u), u;
|
|
7802
7837
|
};
|
|
7803
7838
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
7804
7839
|
return n;
|
|
7805
|
-
},
|
|
7840
|
+
}, au = (e) => iu(e).get(e.option.value) ?? iu({
|
|
7806
7841
|
options: [e.option],
|
|
7807
7842
|
state: e.state
|
|
7808
7843
|
}).get(e.option.value) ?? {
|
|
7809
7844
|
indeterminate: !1,
|
|
7810
7845
|
selected: !1
|
|
7811
|
-
},
|
|
7846
|
+
}, ou = (e) => e.state.flatMap((t) => {
|
|
7812
7847
|
if (t.state !== "selected") return [];
|
|
7813
|
-
let n =
|
|
7848
|
+
let n = Ll(e.options, t.id);
|
|
7814
7849
|
if (n) return [n];
|
|
7815
|
-
let { field: r, value: i } =
|
|
7850
|
+
let { field: r, value: i } = zl(t.id, e.options);
|
|
7816
7851
|
return [{
|
|
7817
7852
|
colField: r,
|
|
7818
7853
|
label: i,
|
|
7819
7854
|
metadata: { rawValue: i },
|
|
7820
|
-
value: r ?
|
|
7855
|
+
value: r ? wl(r, i) : t.id
|
|
7821
7856
|
}];
|
|
7822
|
-
}),
|
|
7857
|
+
}), su = (e) => e.filter((e) => e.state === "selected").length, cu = ["open"], lu = {
|
|
7823
7858
|
class: "pv-flex pv-text-body-md",
|
|
7824
7859
|
style: {
|
|
7825
7860
|
"--flex-align": "center",
|
|
7826
7861
|
"--flex-gap": "0.5rem"
|
|
7827
7862
|
}
|
|
7828
|
-
},
|
|
7863
|
+
}, uu = {
|
|
7829
7864
|
key: 1,
|
|
7830
7865
|
class: "pv-filter-panel-refresh-status",
|
|
7831
7866
|
"data-testid": "pv-filter-panel-refresh-status",
|
|
7832
7867
|
role: "status"
|
|
7833
|
-
},
|
|
7868
|
+
}, du = { class: "pv-visually-hidden" }, fu = ["aria-busy"], pu = {
|
|
7834
7869
|
key: 0,
|
|
7835
7870
|
class: "pv-flex-vertical",
|
|
7836
7871
|
style: {
|
|
7837
7872
|
"--flex-align": "stretch",
|
|
7838
7873
|
"--flex-gap": "0.5rem"
|
|
7839
7874
|
}
|
|
7840
|
-
},
|
|
7875
|
+
}, mu = {
|
|
7841
7876
|
key: 0,
|
|
7842
7877
|
class: "pv-flex",
|
|
7843
7878
|
style: {
|
|
7844
7879
|
"--flex-gap": "0.5rem",
|
|
7845
7880
|
"--flex-wrap": "wrap"
|
|
7846
7881
|
}
|
|
7847
|
-
},
|
|
7882
|
+
}, hu = {
|
|
7848
7883
|
key: 1,
|
|
7849
7884
|
class: "pv-flex",
|
|
7850
7885
|
style: { "--flex-justify": "flex-end" }
|
|
7851
|
-
},
|
|
7886
|
+
}, gu = {
|
|
7852
7887
|
key: 2,
|
|
7853
7888
|
class: "pv-flex-vertical",
|
|
7854
7889
|
style: {
|
|
7855
7890
|
"--flex-align": "stretch",
|
|
7856
7891
|
"--flex-gap": "0.5rem"
|
|
7857
7892
|
}
|
|
7858
|
-
},
|
|
7893
|
+
}, _u = {
|
|
7859
7894
|
key: 3,
|
|
7860
7895
|
class: "pv-flex pv-text-body-xs pv-text-subdued"
|
|
7861
|
-
},
|
|
7896
|
+
}, vu = { key: 0 }, yu = {
|
|
7862
7897
|
key: 1,
|
|
7863
7898
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7864
7899
|
style: { margin: "0" }
|
|
7865
|
-
},
|
|
7900
|
+
}, bu = {
|
|
7866
7901
|
key: 1,
|
|
7867
7902
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7868
7903
|
style: { margin: "0" }
|
|
7869
|
-
},
|
|
7904
|
+
}, xu = {
|
|
7870
7905
|
key: 2,
|
|
7871
7906
|
class: "pv-flex-vertical",
|
|
7872
7907
|
style: {
|
|
7873
7908
|
"--flex-align": "stretch",
|
|
7874
7909
|
"--flex-gap": "0.5rem"
|
|
7875
7910
|
}
|
|
7876
|
-
},
|
|
7911
|
+
}, Su = { key: 0 }, Cu = {
|
|
7877
7912
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
7878
7913
|
style: { margin: "0" }
|
|
7879
|
-
},
|
|
7914
|
+
}, wu = {
|
|
7880
7915
|
key: 1,
|
|
7881
7916
|
class: "pv-text-title-sm pv-text-subdued",
|
|
7882
7917
|
style: { margin: "0" }
|
|
7883
|
-
},
|
|
7918
|
+
}, Tu = {
|
|
7884
7919
|
key: 2,
|
|
7885
7920
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7886
7921
|
style: { margin: "0" }
|
|
7887
|
-
},
|
|
7922
|
+
}, Eu = {
|
|
7888
7923
|
key: 3,
|
|
7889
7924
|
class: "pv-flex-vertical",
|
|
7890
7925
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -7892,14 +7927,14 @@ var za = {
|
|
|
7892
7927
|
"--flex-align": "stretch",
|
|
7893
7928
|
"--flex-gap": "0.5rem"
|
|
7894
7929
|
}
|
|
7895
|
-
},
|
|
7930
|
+
}, Du = {
|
|
7896
7931
|
class: "pv-flex",
|
|
7897
7932
|
style: {
|
|
7898
7933
|
"--flex-align": "center",
|
|
7899
7934
|
"--flex-gap": "0.5rem",
|
|
7900
7935
|
"--flex-wrap": "wrap"
|
|
7901
7936
|
}
|
|
7902
|
-
},
|
|
7937
|
+
}, Ou = {
|
|
7903
7938
|
key: 4,
|
|
7904
7939
|
class: "pv-flex",
|
|
7905
7940
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -7908,7 +7943,7 @@ var za = {
|
|
|
7908
7943
|
"--flex-gap": "0.5rem",
|
|
7909
7944
|
cursor: "pointer"
|
|
7910
7945
|
}
|
|
7911
|
-
},
|
|
7946
|
+
}, ku = { class: "pv-text-body-sm" }, Au = 5, ju = 500, Mu = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
7912
7947
|
__name: "PvFilterPanelAccordion",
|
|
7913
7948
|
props: {
|
|
7914
7949
|
disableWhileLoading: {
|
|
@@ -7926,7 +7961,7 @@ var za = {
|
|
|
7926
7961
|
"search-change"
|
|
7927
7962
|
],
|
|
7928
7963
|
setup(e, { emit: n }) {
|
|
7929
|
-
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = z(), g = k(c.filter.searchQuery ?? ""), v = k(
|
|
7964
|
+
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = z(), g = k(c.filter.searchQuery ?? ""), v = k(Au), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), S = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => [...c.filter.knownOptions ?? [], ...C.value]), T = r(() => c.filter.type ?? "value"), E = r(() => T.value === "value"), O = r(() => E.value && c.filter.isAggregate === !0), j = r(() => c.filter.aggregateSelectionState ?? []), M = r(() => g.value.trim().toLowerCase()), P = r(() => c.filter.selectedValues ?? []), F = r(() => new Set(P.value)), R = r(() => c.filter.valueLabels?.true ?? "Yes"), B = r(() => c.filter.filterOptionsSortDescription || "Suggested"), V = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), H = r(() => {
|
|
7930
7965
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
7931
7966
|
return t && !n ? [{
|
|
7932
7967
|
label: R.value,
|
|
@@ -7951,7 +7986,7 @@ var za = {
|
|
|
7951
7986
|
e.matchedValue,
|
|
7952
7987
|
e.matchedField
|
|
7953
7988
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
7954
|
-
}, U = r(() => T.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 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ?
|
|
7989
|
+
}, U = r(() => T.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 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ? su(j.value) || void 0 : P.value.length || void 0), W = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), G = (e, t = 0) => e.flatMap((e) => [
|
|
7955
7990
|
{
|
|
7956
7991
|
depth: t,
|
|
7957
7992
|
kind: "option",
|
|
@@ -7976,16 +8011,16 @@ var za = {
|
|
|
7976
8011
|
ie.value = O.value || c.filter.singleSelect ? [] : [...P.value];
|
|
7977
8012
|
};
|
|
7978
8013
|
ce();
|
|
7979
|
-
let le = r(() => O.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !ae.value.has(e.option.value))), Y = r(() => le.value.length > v.value), ue = r(() => Y.value || c.filter.hasMore), de = r(() => le.value.slice(0, v.value)), pe = r(() => O.value ?
|
|
8014
|
+
let le = r(() => O.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !ae.value.has(e.option.value))), Y = r(() => le.value.length > v.value), ue = r(() => Y.value || c.filter.hasMore), de = r(() => le.value.slice(0, v.value)), pe = r(() => O.value ? iu({
|
|
7980
8015
|
options: w.value,
|
|
7981
8016
|
state: j.value
|
|
7982
|
-
}) : /* @__PURE__ */ new Map()), X = (e) =>
|
|
8017
|
+
}) : /* @__PURE__ */ new Map()), X = (e) => _l(e, c.filter.colDef), me = (e) => vl(e), he = (e) => O.value ? pe.value.get(e.value) ?? {
|
|
7983
8018
|
indeterminate: !1,
|
|
7984
8019
|
selected: !1
|
|
7985
8020
|
} : {
|
|
7986
8021
|
indeterminate: !1,
|
|
7987
8022
|
selected: F.value.has(e.value)
|
|
7988
|
-
}, ge = (e) => he(e).selected, _e = (e) => he(e).indeterminate, ve = (e) =>
|
|
8023
|
+
}, ge = (e) => he(e).selected, _e = (e) => he(e).indeterminate, ve = (e) => Tl(e) ?? e.value, ye = (e) => El(e, c.filter.key), be = (e) => {
|
|
7989
8024
|
let t = ye(e), n = ve(e);
|
|
7990
8025
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
7991
8026
|
}, xe = (e) => ({
|
|
@@ -8014,7 +8049,7 @@ var za = {
|
|
|
8014
8049
|
rowsLoading: c.filter.isLoading
|
|
8015
8050
|
}
|
|
8016
8051
|
})), Te = () => {
|
|
8017
|
-
V.value || (Y.value ? v.value +=
|
|
8052
|
+
V.value || (Y.value ? v.value += Au : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
8018
8053
|
}, Ee = (e) => {
|
|
8019
8054
|
V.value || d("load-more", g.value.trim(), e.value);
|
|
8020
8055
|
}, De = (e) => {
|
|
@@ -8040,7 +8075,7 @@ var za = {
|
|
|
8040
8075
|
if (O.value) {
|
|
8041
8076
|
d("filter-change", {
|
|
8042
8077
|
type: "aggregate-selection",
|
|
8043
|
-
value:
|
|
8078
|
+
value: nu({
|
|
8044
8079
|
checked: t,
|
|
8045
8080
|
option: e,
|
|
8046
8081
|
options: w.value,
|
|
@@ -8068,12 +8103,12 @@ var za = {
|
|
|
8068
8103
|
V.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
8069
8104
|
};
|
|
8070
8105
|
K([g, () => c.filter.key], () => {
|
|
8071
|
-
v.value =
|
|
8106
|
+
v.value = Au;
|
|
8072
8107
|
});
|
|
8073
8108
|
let Ie = () => {
|
|
8074
|
-
let e =
|
|
8109
|
+
let e = Dl(w.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
8075
8110
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
8076
|
-
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
8111
|
+
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - ju)));
|
|
8077
8112
|
};
|
|
8078
8113
|
return K(w, () => {
|
|
8079
8114
|
c.filter.isOpen && Ie();
|
|
@@ -8100,7 +8135,7 @@ var za = {
|
|
|
8100
8135
|
"data-testid": "pv-filter-panel-accordion",
|
|
8101
8136
|
open: e.filter.isOpen,
|
|
8102
8137
|
onToggle: De
|
|
8103
|
-
}, [s("summary",
|
|
8138
|
+
}, [s("summary", lu, [
|
|
8104
8139
|
u(Z, {
|
|
8105
8140
|
"aria-hidden": "true",
|
|
8106
8141
|
class: "pv-text-subdued",
|
|
@@ -8113,7 +8148,7 @@ var za = {
|
|
|
8113
8148
|
size: "sm",
|
|
8114
8149
|
variant: "secondary"
|
|
8115
8150
|
}, null, 8, ["value"])) : a("", !0),
|
|
8116
|
-
se.value ? (D(), o("span",
|
|
8151
|
+
se.value ? (D(), o("span", uu, [u(Ne, { size: "sm" }), s("span", du, I(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
|
|
8117
8152
|
]), s("div", {
|
|
8118
8153
|
ref_key: "filterContent",
|
|
8119
8154
|
ref: f,
|
|
@@ -8124,8 +8159,8 @@ var za = {
|
|
|
8124
8159
|
minHeight: m.value ? `${m.value}px` : void 0
|
|
8125
8160
|
})
|
|
8126
8161
|
}, [E.value ? (D(), o(t, { key: 0 }, [
|
|
8127
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div",
|
|
8128
|
-
e.filter.filterGroupOptions?.length ? (D(), o("div",
|
|
8162
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div", pu, [
|
|
8163
|
+
e.filter.filterGroupOptions?.length ? (D(), o("div", mu, [(D(!0), o(t, null, A(e.filter.filterGroupOptions, (e) => (D(), i($, {
|
|
8129
8164
|
key: e.field,
|
|
8130
8165
|
disabled: V.value,
|
|
8131
8166
|
label: e.label,
|
|
@@ -8138,7 +8173,7 @@ var za = {
|
|
|
8138
8173
|
"variant",
|
|
8139
8174
|
"onClick"
|
|
8140
8175
|
]))), 128))])) : a("", !0),
|
|
8141
|
-
e.filter.displayPreferencesIcon ? (D(), o("div",
|
|
8176
|
+
e.filter.displayPreferencesIcon ? (D(), o("div", hu, [u($, {
|
|
8142
8177
|
ariaLabel: "Open preferences",
|
|
8143
8178
|
disabled: V.value,
|
|
8144
8179
|
leftIcon: "sliders-horizontal",
|
|
@@ -8160,7 +8195,7 @@ var za = {
|
|
|
8160
8195
|
"disabled",
|
|
8161
8196
|
"placeholder"
|
|
8162
8197
|
])),
|
|
8163
|
-
oe.value.length ? (D(), o("div",
|
|
8198
|
+
oe.value.length ? (D(), o("div", gu, [(D(!0), o(t, null, A(oe.value, (t) => (D(), i(sl, {
|
|
8164
8199
|
key: t.value,
|
|
8165
8200
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8166
8201
|
disabled: V.value || t.isSelectable === !1,
|
|
@@ -8198,10 +8233,10 @@ var za = {
|
|
|
8198
8233
|
"onFocusValue",
|
|
8199
8234
|
"onToggleValue"
|
|
8200
8235
|
]))), 128))])) : a("", !0),
|
|
8201
|
-
e.filter.isLoading && !J.value ? (D(), o("div",
|
|
8202
|
-
!C.value.length && !oe.value.length && !ue.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, we.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p",
|
|
8203
|
-
le.value.length || ue.value ? (D(), o("div",
|
|
8204
|
-
le.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div",
|
|
8236
|
+
e.filter.isLoading && !J.value ? (D(), o("div", _u, [u(Ne, { size: "sm" }), e.filter.loadingText ? (D(), o("span", vu, I(e.filter.loadingText), 1)) : a("", !0)])) : (D(), o(t, { key: 4 }, [
|
|
8237
|
+
!C.value.length && !oe.value.length && !ue.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, we.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", yu, "No values available."))], 64)) : !te.value.length && !oe.value.length && !ue.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, we.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", bu, "No matching values."))], 64)) : a("", !0),
|
|
8238
|
+
le.value.length || ue.value ? (D(), o("div", xu, [
|
|
8239
|
+
le.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", Su, [e.filter.filterOptionsSortTooltip ? (D(), i(ir, {
|
|
8205
8240
|
key: 0,
|
|
8206
8241
|
variant: "dark",
|
|
8207
8242
|
disableInteractive: !0,
|
|
@@ -8210,11 +8245,11 @@ var za = {
|
|
|
8210
8245
|
"use-teleport": !0,
|
|
8211
8246
|
style: { "--max-width": "200px" }
|
|
8212
8247
|
}, {
|
|
8213
|
-
trigger: q(() => [s("p",
|
|
8248
|
+
trigger: q(() => [s("p", Cu, I(B.value), 1)]),
|
|
8214
8249
|
content: q(() => [l(I(e.filter.filterOptionsSortTooltip), 1)]),
|
|
8215
8250
|
_: 1
|
|
8216
|
-
})) : (D(), o("p",
|
|
8217
|
-
(D(!0), o(t, null, A(de.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(
|
|
8251
|
+
})) : (D(), o("p", wu, I(B.value), 1))])) : a("", !0),
|
|
8252
|
+
(D(!0), o(t, null, A(de.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(sl, {
|
|
8218
8253
|
key: 0,
|
|
8219
8254
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8220
8255
|
depth: n.depth,
|
|
@@ -8281,7 +8316,7 @@ var za = {
|
|
|
8281
8316
|
])) : a("", !0),
|
|
8282
8317
|
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), b(_({ key: 3 }, we.value)), null, 16)) : a("", !0)
|
|
8283
8318
|
], 64))
|
|
8284
|
-
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(
|
|
8319
|
+
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(el, {
|
|
8285
8320
|
key: 1,
|
|
8286
8321
|
mode: "dual",
|
|
8287
8322
|
rangeValue: e.filter.rangeValue,
|
|
@@ -8308,7 +8343,7 @@ var za = {
|
|
|
8308
8343
|
"slider-step",
|
|
8309
8344
|
"step",
|
|
8310
8345
|
"value-decimals"
|
|
8311
|
-
])) : T.value === "range" ? (D(), o("p",
|
|
8346
|
+
])) : T.value === "range" ? (D(), o("p", Tu, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (D(), o("div", Eu, [s("div", Du, [(D(!0), o(t, null, A(H.value, (t) => (D(), i($, {
|
|
8312
8347
|
key: String(t.value),
|
|
8313
8348
|
disabled: V.value,
|
|
8314
8349
|
label: t.label,
|
|
@@ -8326,52 +8361,77 @@ var za = {
|
|
|
8326
8361
|
label: "Clear",
|
|
8327
8362
|
variant: "ghost",
|
|
8328
8363
|
onClick: r[1] ||= (e) => Oe(null)
|
|
8329
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label",
|
|
8364
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label", Ou, [u(ds, {
|
|
8330
8365
|
disabled: V.value,
|
|
8331
8366
|
modelValue: e.filter.existsValue ?? !1,
|
|
8332
8367
|
"onUpdate:modelValue": ke
|
|
8333
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
8368
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", ku, I(y.value), 1)])) : a("", !0)], 12, fu)], 40, cu));
|
|
8334
8369
|
}
|
|
8335
|
-
}), [["__scopeId", "data-v-073616dc"]]),
|
|
8370
|
+
}), [["__scopeId", "data-v-073616dc"]]), Nu = {
|
|
8336
8371
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
8337
8372
|
"data-testid": "pv-filter-panel-applied-section",
|
|
8338
8373
|
style: {
|
|
8339
8374
|
"--flex-align": "stretch",
|
|
8340
8375
|
"--flex-gap": "1rem"
|
|
8341
8376
|
}
|
|
8342
|
-
},
|
|
8377
|
+
}, Pu = {
|
|
8343
8378
|
key: 0,
|
|
8344
8379
|
class: "pv-flex-vertical",
|
|
8345
8380
|
style: {
|
|
8346
8381
|
"--flex-align": "stretch",
|
|
8347
8382
|
"--flex-gap": "1rem"
|
|
8348
8383
|
}
|
|
8349
|
-
},
|
|
8384
|
+
}, Fu = { class: "pv-text-title-md" }, Iu = {
|
|
8350
8385
|
class: "pv-flex",
|
|
8351
8386
|
style: {
|
|
8352
8387
|
"--flex-gap": "0.375rem",
|
|
8353
8388
|
"--flex-wrap": "wrap"
|
|
8354
8389
|
}
|
|
8355
|
-
},
|
|
8390
|
+
}, Lu = { class: "pv-text-title-md" }, Ru = {
|
|
8391
|
+
class: "pv-flex",
|
|
8392
|
+
style: {
|
|
8393
|
+
"--flex-gap": "0.375rem",
|
|
8394
|
+
"--flex-wrap": "wrap"
|
|
8395
|
+
}
|
|
8396
|
+
}, zu = {
|
|
8356
8397
|
key: 1,
|
|
8357
8398
|
class: "pv-text-body-sm pv-text-subdued",
|
|
8358
8399
|
style: { margin: "0" }
|
|
8359
|
-
},
|
|
8400
|
+
}, Bu = /* @__PURE__ */ d({
|
|
8360
8401
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
8361
8402
|
props: {
|
|
8362
8403
|
appliedCount: { default: 0 },
|
|
8363
8404
|
appliedGroups: { default: () => [] },
|
|
8405
|
+
externalFilters: { default: () => [] },
|
|
8364
8406
|
readOnly: {
|
|
8365
8407
|
type: Boolean,
|
|
8366
8408
|
default: !1
|
|
8367
8409
|
}
|
|
8368
8410
|
},
|
|
8369
|
-
emits: ["remove-filter"],
|
|
8411
|
+
emits: ["remove-filter", "remove-external-filter"],
|
|
8370
8412
|
setup(e, { emit: n }) {
|
|
8371
|
-
let
|
|
8372
|
-
|
|
8413
|
+
let a = e, c = n, l = r(() => a.externalFilters.filter((e) => e.values.length > 0)), u = r(() => a.appliedCount > 0 || l.value.length > 0), d = (e) => !a.readOnly && e.removable !== !1, f = (e, t) => {
|
|
8414
|
+
c("remove-filter", t.field ?? e, t.value, t.type);
|
|
8373
8415
|
};
|
|
8374
|
-
return (n, r) => (D(), o("section",
|
|
8416
|
+
return (n, r) => (D(), o("section", Nu, [u.value ? (D(), o("div", Pu, [(D(!0), o(t, null, A(l.value, (e) => (D(), o("div", {
|
|
8417
|
+
key: `external-${e.key}`,
|
|
8418
|
+
class: "pv-flex-vertical pv-border-bottom",
|
|
8419
|
+
"data-testid": "pv-filter-panel-external-filter-group",
|
|
8420
|
+
style: {
|
|
8421
|
+
"--flex-align": "stretch",
|
|
8422
|
+
"--flex-gap": "12px",
|
|
8423
|
+
"padding-bottom": "12px"
|
|
8424
|
+
}
|
|
8425
|
+
}, [s("span", Fu, I(e.label), 1), s("div", Iu, [(D(!0), o(t, null, A(e.values, (t) => (D(), i(br, {
|
|
8426
|
+
key: `${e.key}-${t.value}`,
|
|
8427
|
+
label: t.label,
|
|
8428
|
+
showClear: d(e),
|
|
8429
|
+
onHandleClose: (n) => c("remove-external-filter", e.key, t.value)
|
|
8430
|
+
}, null, 8, [
|
|
8431
|
+
"label",
|
|
8432
|
+
"showClear",
|
|
8433
|
+
"onHandleClose"
|
|
8434
|
+
]))), 128))])]))), 128)), (D(!0), o(t, null, A(e.appliedGroups, (n) => (D(), o("div", {
|
|
8375
8435
|
key: n.key,
|
|
8376
8436
|
class: "pv-flex-vertical pv-border-bottom",
|
|
8377
8437
|
style: {
|
|
@@ -8379,18 +8439,18 @@ var za = {
|
|
|
8379
8439
|
"--flex-gap": "12px",
|
|
8380
8440
|
"padding-bottom": "12px"
|
|
8381
8441
|
}
|
|
8382
|
-
}, [s("span",
|
|
8442
|
+
}, [s("span", Lu, I(n.label), 1), s("div", Ru, [(D(!0), o(t, null, A(n.values, (t) => (D(), i(br, {
|
|
8383
8443
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
8384
8444
|
label: t.label,
|
|
8385
8445
|
showClear: !e.readOnly,
|
|
8386
|
-
onHandleClose: (e) =>
|
|
8446
|
+
onHandleClose: (e) => f(n.key, t)
|
|
8387
8447
|
}, null, 8, [
|
|
8388
8448
|
"label",
|
|
8389
8449
|
"showClear",
|
|
8390
8450
|
"onHandleClose"
|
|
8391
|
-
]))), 128))])]))), 128))])) : (D(), o("p",
|
|
8451
|
+
]))), 128))])]))), 128))])) : (D(), o("p", zu, "No filters applied yet."))]));
|
|
8392
8452
|
}
|
|
8393
|
-
}),
|
|
8453
|
+
}), Vu = { class: "pv-horizontal-scroller" }, Hu = ["aria-label"], Uu = 1, Wu = /* @__PURE__ */ d({
|
|
8394
8454
|
__name: "PvHorizontalScroller",
|
|
8395
8455
|
props: {
|
|
8396
8456
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -8414,7 +8474,7 @@ var za = {
|
|
|
8414
8474
|
let e = u.value;
|
|
8415
8475
|
if (!e) return;
|
|
8416
8476
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
8417
|
-
n.value = e.scrollLeft >
|
|
8477
|
+
n.value = e.scrollLeft > Uu, c.value = e.scrollLeft < t - Uu;
|
|
8418
8478
|
}, h = () => {
|
|
8419
8479
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
8420
8480
|
}, g = () => {
|
|
@@ -8434,7 +8494,7 @@ var za = {
|
|
|
8434
8494
|
h(), g();
|
|
8435
8495
|
}), S(() => {
|
|
8436
8496
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
8437
|
-
}), (t, r) => (D(), o("div",
|
|
8497
|
+
}), (t, r) => (D(), o("div", Vu, [
|
|
8438
8498
|
s("div", {
|
|
8439
8499
|
ref_key: "scrollContainer",
|
|
8440
8500
|
ref: u,
|
|
@@ -8445,7 +8505,7 @@ var za = {
|
|
|
8445
8505
|
ref_key: "contentContainer",
|
|
8446
8506
|
ref: l,
|
|
8447
8507
|
class: "pv-horizontal-scroller-content"
|
|
8448
|
-
}, [j(t.$slots, "default")], 512)], 10,
|
|
8508
|
+
}, [j(t.$slots, "default")], 512)], 10, Hu),
|
|
8449
8509
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
8450
8510
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
8451
8511
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -8478,18 +8538,18 @@ var za = {
|
|
|
8478
8538
|
])) : a("", !0)], 2)
|
|
8479
8539
|
]));
|
|
8480
8540
|
}
|
|
8481
|
-
}),
|
|
8541
|
+
}), Gu = {
|
|
8482
8542
|
key: 0,
|
|
8483
8543
|
class: "pv-border-bottom",
|
|
8484
8544
|
"data-testid": "pv-filter-panel-category-row"
|
|
8485
|
-
},
|
|
8545
|
+
}, Ku = {
|
|
8486
8546
|
class: "pv-flex",
|
|
8487
8547
|
style: {
|
|
8488
8548
|
"--flex-align": "center",
|
|
8489
8549
|
"--flex-gap": "8px",
|
|
8490
8550
|
padding: "8px 12px"
|
|
8491
8551
|
}
|
|
8492
|
-
},
|
|
8552
|
+
}, qu = /* @__PURE__ */ d({
|
|
8493
8553
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
8494
8554
|
props: /* @__PURE__ */ g({
|
|
8495
8555
|
allCategoriesLabel: { default: "All" },
|
|
@@ -8511,7 +8571,7 @@ var za = {
|
|
|
8511
8571
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
8512
8572
|
return K(l, (e) => {
|
|
8513
8573
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
8514
|
-
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div",
|
|
8574
|
+
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div", Gu, [u(Wu, {
|
|
8515
8575
|
ariaLabel: "Filter categories",
|
|
8516
8576
|
buttonSize: "lg",
|
|
8517
8577
|
buttonVariant: "ghost",
|
|
@@ -8520,7 +8580,7 @@ var za = {
|
|
|
8520
8580
|
rightAriaLabel: "Scroll filter categories right",
|
|
8521
8581
|
showFades: ""
|
|
8522
8582
|
}, {
|
|
8523
|
-
default: q(() => [s("div",
|
|
8583
|
+
default: q(() => [s("div", Ku, [u($, {
|
|
8524
8584
|
label: e.allCategoriesLabel,
|
|
8525
8585
|
variant: f(null),
|
|
8526
8586
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -8537,17 +8597,17 @@ var za = {
|
|
|
8537
8597
|
_: 1
|
|
8538
8598
|
})])) : a("", !0);
|
|
8539
8599
|
}
|
|
8540
|
-
}),
|
|
8600
|
+
}), Ju = (e, t, n) => {
|
|
8541
8601
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
8542
8602
|
if (r.length <= 1) return "Search";
|
|
8543
8603
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
8544
8604
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
8545
|
-
},
|
|
8546
|
-
if (!r ||
|
|
8605
|
+
}, Yu = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Xu = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
8606
|
+
if (!r || Yu(i) === Yu(r)) return e;
|
|
8547
8607
|
if (!a || !n) return r;
|
|
8548
8608
|
let o = t(n);
|
|
8549
8609
|
return o ? `${o}: ${r}` : r;
|
|
8550
|
-
},
|
|
8610
|
+
}, Zu = () => ({
|
|
8551
8611
|
booleanValue: null,
|
|
8552
8612
|
existsValue: !1,
|
|
8553
8613
|
rangeValue: {
|
|
@@ -8555,15 +8615,15 @@ var za = {
|
|
|
8555
8615
|
min: null
|
|
8556
8616
|
},
|
|
8557
8617
|
values: []
|
|
8558
|
-
}),
|
|
8559
|
-
conditions: e.conditions.map(
|
|
8618
|
+
}), Qu = (e) => typeof e == "object" && !!e && !Array.isArray(e), $u = (e) => Qu(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", ed = (e) => Qu(e) && e.filterType === "join" && Array.isArray(e.conditions), td = (e) => e, nd = (e) => ed(e) ? {
|
|
8619
|
+
conditions: e.conditions.map(nd),
|
|
8560
8620
|
filterType: "join",
|
|
8561
8621
|
type: e.type
|
|
8562
|
-
} : { ...e },
|
|
8563
|
-
if (!
|
|
8564
|
-
if (
|
|
8622
|
+
} : { ...e }, rd = (e) => {
|
|
8623
|
+
if (!Qu(e)) return null;
|
|
8624
|
+
if (ed(e)) {
|
|
8565
8625
|
let t = e.conditions.flatMap((e) => {
|
|
8566
|
-
let t =
|
|
8626
|
+
let t = rd(e);
|
|
8567
8627
|
return t ? [t] : [];
|
|
8568
8628
|
});
|
|
8569
8629
|
return t.length ? {
|
|
@@ -8572,43 +8632,43 @@ var za = {
|
|
|
8572
8632
|
type: e.type === "OR" ? "OR" : "AND"
|
|
8573
8633
|
} : null;
|
|
8574
8634
|
}
|
|
8575
|
-
return
|
|
8576
|
-
},
|
|
8635
|
+
return $u(e) ? { ...e } : null;
|
|
8636
|
+
}, id = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ad = (e) => Qu(e) && !ed(e) && !$u(e), od = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), sd = {
|
|
8577
8637
|
number: "agNumberColumnFilter",
|
|
8578
8638
|
set: "agSetColumnFilter",
|
|
8579
8639
|
text: "agTextColumnFilter"
|
|
8580
|
-
},
|
|
8640
|
+
}, cd = (e) => {
|
|
8581
8641
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
8582
8642
|
let t = e.filterParams;
|
|
8583
8643
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
8584
|
-
},
|
|
8585
|
-
let n =
|
|
8586
|
-
return r ? n.findIndex((e) =>
|
|
8587
|
-
},
|
|
8588
|
-
let n =
|
|
8644
|
+
}, ld = (e, t) => {
|
|
8645
|
+
let n = cd(e), r = t.filterType ? sd[t.filterType] : void 0;
|
|
8646
|
+
return r ? n.findIndex((e) => Qu(e) && e.filter === r) : -1;
|
|
8647
|
+
}, ud = (e, t) => {
|
|
8648
|
+
let n = cd(e);
|
|
8589
8649
|
if (!n.length) return null;
|
|
8590
|
-
let r = Array(n.length).fill(null), i =
|
|
8650
|
+
let r = Array(n.length).fill(null), i = ld(e, t);
|
|
8591
8651
|
return i < 0 ? null : (r[i] = t, {
|
|
8592
8652
|
filterModels: r,
|
|
8593
8653
|
filterType: "multi"
|
|
8594
8654
|
});
|
|
8595
|
-
},
|
|
8596
|
-
if (!
|
|
8655
|
+
}, dd = (e, t) => {
|
|
8656
|
+
if (!ad(e)) return null;
|
|
8597
8657
|
let n = e[t];
|
|
8598
|
-
return
|
|
8599
|
-
},
|
|
8658
|
+
return Qu(n) ? n : null;
|
|
8659
|
+
}, fd = (e) => e ? od(e) ? e.filterModels.filter((e) => Qu(e)) : [e] : [], pd = (e) => ad(e) ? { ...e } : {}, md = (e) => od(e) ? {
|
|
8600
8660
|
...e,
|
|
8601
8661
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
8602
|
-
} : { ...e },
|
|
8603
|
-
let n =
|
|
8662
|
+
} : { ...e }, hd = (e, t) => {
|
|
8663
|
+
let n = pd(e);
|
|
8604
8664
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
8605
|
-
},
|
|
8665
|
+
}, gd = /* @__PURE__ */ new Set(), _d = (e, t) => {
|
|
8606
8666
|
let n = `${e}:${t ?? "unknown"}`;
|
|
8607
|
-
|
|
8608
|
-
},
|
|
8609
|
-
let a =
|
|
8610
|
-
if (
|
|
8611
|
-
let o =
|
|
8667
|
+
gd.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.`), gd.add(n));
|
|
8668
|
+
}, vd = (e, t, n, r, i) => {
|
|
8669
|
+
let a = dd(e, t);
|
|
8670
|
+
if (od(a) && r) {
|
|
8671
|
+
let o = pd(e), s = md(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
8612
8672
|
if (!n) {
|
|
8613
8673
|
for (let e of l) c[e] = null;
|
|
8614
8674
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -8621,15 +8681,15 @@ var za = {
|
|
|
8621
8681
|
c[e] = n;
|
|
8622
8682
|
for (let e of t) c[e] = null;
|
|
8623
8683
|
} else {
|
|
8624
|
-
let e =
|
|
8684
|
+
let e = ld(i, n), r = c.findIndex((e) => !e), a = cd(i).length > 0;
|
|
8625
8685
|
if (e >= 0) {
|
|
8626
8686
|
for (; c.length <= e;) c.push(null);
|
|
8627
|
-
c[e] &&
|
|
8687
|
+
c[e] && _d(t, n.filterType), c[e] = n;
|
|
8628
8688
|
} else if (r >= 0) c[r] = n;
|
|
8629
8689
|
else if (!a) c.push(n);
|
|
8630
8690
|
else {
|
|
8631
8691
|
let e = Math.max(0, c.length - 1);
|
|
8632
|
-
|
|
8692
|
+
_d(t, n.filterType), c[e] = n;
|
|
8633
8693
|
}
|
|
8634
8694
|
}
|
|
8635
8695
|
return o[t] = {
|
|
@@ -8637,54 +8697,54 @@ var za = {
|
|
|
8637
8697
|
filterModels: c
|
|
8638
8698
|
}, o;
|
|
8639
8699
|
}
|
|
8640
|
-
if (!n) return
|
|
8641
|
-
let o =
|
|
8642
|
-
return o[t] =
|
|
8643
|
-
},
|
|
8700
|
+
if (!n) return hd(e, t);
|
|
8701
|
+
let o = pd(e);
|
|
8702
|
+
return o[t] = ud(i, n) ?? n, o;
|
|
8703
|
+
}, yd = (e, t) => {
|
|
8644
8704
|
if (e) {
|
|
8645
|
-
if (
|
|
8646
|
-
e.conditions.forEach((e) =>
|
|
8705
|
+
if (ed(e)) {
|
|
8706
|
+
e.conditions.forEach((e) => yd(e, t));
|
|
8647
8707
|
return;
|
|
8648
8708
|
}
|
|
8649
8709
|
t(e);
|
|
8650
8710
|
}
|
|
8651
|
-
},
|
|
8652
|
-
if (!
|
|
8711
|
+
}, bd = (e, t) => ed(e) ? e.conditions.length > 0 && e.conditions.every((e) => bd(e, t)) : e.colId === t, xd = (e) => {
|
|
8712
|
+
if (!ed(e)) return e.colId;
|
|
8653
8713
|
let t = /* @__PURE__ */ new Set();
|
|
8654
|
-
return
|
|
8655
|
-
},
|
|
8656
|
-
if (!e ||
|
|
8657
|
-
if (!
|
|
8658
|
-
let n = e.conditions.flatMap((e) =>
|
|
8714
|
+
return yd(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
8715
|
+
}, Sd = (e, t) => {
|
|
8716
|
+
if (!e || bd(e, t)) return null;
|
|
8717
|
+
if (!ed(e) || e.type !== "AND") return nd(e);
|
|
8718
|
+
let n = e.conditions.flatMap((e) => bd(e, t) ? [] : [nd(e)]);
|
|
8659
8719
|
return n.length ? n.length === 1 ? n[0] : {
|
|
8660
8720
|
conditions: n,
|
|
8661
8721
|
filterType: e.filterType,
|
|
8662
8722
|
type: e.type
|
|
8663
8723
|
} : null;
|
|
8664
|
-
},
|
|
8665
|
-
let r =
|
|
8666
|
-
return n ? r ?
|
|
8724
|
+
}, Cd = (e, t, n) => {
|
|
8725
|
+
let r = Sd(rd(e), t);
|
|
8726
|
+
return n ? r ? ed(r) && r.type === "AND" ? td({
|
|
8667
8727
|
...r,
|
|
8668
8728
|
conditions: [...r.conditions, n]
|
|
8669
|
-
}) :
|
|
8729
|
+
}) : td({
|
|
8670
8730
|
conditions: [r, n],
|
|
8671
8731
|
filterType: "join",
|
|
8672
8732
|
type: "AND"
|
|
8673
|
-
}) :
|
|
8674
|
-
},
|
|
8733
|
+
}) : td(n) : td(r);
|
|
8734
|
+
}, wd = (e, t) => {
|
|
8675
8735
|
e.includes(t) || e.push(t);
|
|
8676
|
-
},
|
|
8736
|
+
}, Td = (e) => {
|
|
8677
8737
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
8678
8738
|
let t = String(e.filter);
|
|
8679
8739
|
return t === "true" || t === "false";
|
|
8680
|
-
},
|
|
8740
|
+
}, Ed = (e) => e.filterType === "boolean" || Td(e), Dd = (e, t) => {
|
|
8681
8741
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8682
|
-
e.values.forEach((e) =>
|
|
8742
|
+
e.values.forEach((e) => wd(t.values, String(e)));
|
|
8683
8743
|
return;
|
|
8684
8744
|
}
|
|
8685
8745
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8686
8746
|
let n = String(e.filter);
|
|
8687
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8747
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), wd(t.values, n);
|
|
8688
8748
|
return;
|
|
8689
8749
|
}
|
|
8690
8750
|
if (e.filterType === "boolean") {
|
|
@@ -8708,7 +8768,7 @@ var za = {
|
|
|
8708
8768
|
...t.rangeValue,
|
|
8709
8769
|
max: e.filter
|
|
8710
8770
|
}));
|
|
8711
|
-
},
|
|
8771
|
+
}, Od = (e, t) => {
|
|
8712
8772
|
if (e.type === "notBlank") {
|
|
8713
8773
|
t.existsValue = !0;
|
|
8714
8774
|
return;
|
|
@@ -8718,12 +8778,12 @@ var za = {
|
|
|
8718
8778
|
return;
|
|
8719
8779
|
}
|
|
8720
8780
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8721
|
-
e.values.forEach((e) =>
|
|
8781
|
+
e.values.forEach((e) => wd(t.values, String(e)));
|
|
8722
8782
|
return;
|
|
8723
8783
|
}
|
|
8724
8784
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8725
8785
|
let n = String(e.filter);
|
|
8726
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8786
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), wd(t.values, n);
|
|
8727
8787
|
return;
|
|
8728
8788
|
}
|
|
8729
8789
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -8736,29 +8796,29 @@ var za = {
|
|
|
8736
8796
|
...t.rangeValue,
|
|
8737
8797
|
max: e.filter
|
|
8738
8798
|
}));
|
|
8739
|
-
},
|
|
8799
|
+
}, kd = (e, t = "advanced") => {
|
|
8740
8800
|
let n = /* @__PURE__ */ new Map();
|
|
8741
8801
|
if (t === "regular") {
|
|
8742
|
-
if (!
|
|
8802
|
+
if (!ad(e)) return n;
|
|
8743
8803
|
for (let [t, r] of Object.entries(e)) {
|
|
8744
|
-
let e =
|
|
8745
|
-
|
|
8804
|
+
let e = Zu();
|
|
8805
|
+
fd(r).forEach((t) => Dd(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
8746
8806
|
}
|
|
8747
8807
|
return n;
|
|
8748
8808
|
}
|
|
8749
|
-
let r =
|
|
8809
|
+
let r = rd(e);
|
|
8750
8810
|
if (!r) return n;
|
|
8751
|
-
let i =
|
|
8811
|
+
let i = ed(r) && r.type === "AND" ? r.conditions : [r];
|
|
8752
8812
|
for (let e of i) {
|
|
8753
|
-
let t =
|
|
8813
|
+
let t = xd(e);
|
|
8754
8814
|
if (!t) continue;
|
|
8755
|
-
let r = n.get(t) ??
|
|
8756
|
-
|
|
8757
|
-
e.colId === t &&
|
|
8815
|
+
let r = n.get(t) ?? Zu();
|
|
8816
|
+
yd(e, (e) => {
|
|
8817
|
+
e.colId === t && Od(e, r);
|
|
8758
8818
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
8759
8819
|
}
|
|
8760
8820
|
return n;
|
|
8761
|
-
},
|
|
8821
|
+
}, Ad = (e, t = "advanced") => t === "regular" ? ad(e) && Object.keys(e).length > 0 : rd(e) !== null, jd = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Md = (e, t, n = "advanced") => n === "regular" ? hd(e, t) : td(Sd(rd(e), t)), Nd = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? vd(e, t, null, Ed, a) : Md(e, t, r) : r === "regular" ? vd(e, t, i === "text" ? {
|
|
8762
8822
|
filter: String(n),
|
|
8763
8823
|
filterType: "text",
|
|
8764
8824
|
type: "equals"
|
|
@@ -8766,30 +8826,30 @@ var za = {
|
|
|
8766
8826
|
filter: n,
|
|
8767
8827
|
filterType: "boolean",
|
|
8768
8828
|
type: n ? "true" : "false"
|
|
8769
|
-
},
|
|
8829
|
+
}, Ed, a) : i === "text" ? Cd(e, t, {
|
|
8770
8830
|
colId: t,
|
|
8771
8831
|
filter: String(n),
|
|
8772
8832
|
filterType: "text",
|
|
8773
8833
|
type: "equals"
|
|
8774
|
-
}) :
|
|
8834
|
+
}) : Cd(e, t, {
|
|
8775
8835
|
colId: t,
|
|
8776
8836
|
filterType: "boolean",
|
|
8777
8837
|
type: n ? "true" : "false"
|
|
8778
|
-
}),
|
|
8838
|
+
}), Pd = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? vd(e, t, {
|
|
8779
8839
|
filterType: r,
|
|
8780
8840
|
type: "notBlank"
|
|
8781
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
8841
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Cd(e, t, {
|
|
8782
8842
|
colId: t,
|
|
8783
8843
|
filterType: r,
|
|
8784
8844
|
type: "notBlank"
|
|
8785
|
-
}) : i === "regular" ?
|
|
8786
|
-
let o =
|
|
8787
|
-
if (i === "regular") return o === null && s === null ?
|
|
8845
|
+
}) : i === "regular" ? vd(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Md(e, t, i), Fd = (e, t, n, r, i = "advanced", a) => {
|
|
8846
|
+
let o = id(n), s = id(r);
|
|
8847
|
+
if (i === "regular") return o === null && s === null ? vd(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? vd(e, t, {
|
|
8788
8848
|
filter: o,
|
|
8789
8849
|
filterTo: s,
|
|
8790
8850
|
filterType: "number",
|
|
8791
8851
|
type: "inRange"
|
|
8792
|
-
}, (e) => e.filterType === "number", a) :
|
|
8852
|
+
}, (e) => e.filterType === "number", a) : vd(e, t, {
|
|
8793
8853
|
filter: o ?? s,
|
|
8794
8854
|
filterType: "number",
|
|
8795
8855
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -8805,29 +8865,29 @@ var za = {
|
|
|
8805
8865
|
filter: s,
|
|
8806
8866
|
filterType: "number",
|
|
8807
8867
|
type: "lessThanOrEqual"
|
|
8808
|
-
}), c.length ?
|
|
8868
|
+
}), c.length ? Cd(e, t, c.length === 1 ? c[0] : {
|
|
8809
8869
|
conditions: c,
|
|
8810
8870
|
filterType: "join",
|
|
8811
8871
|
type: "AND"
|
|
8812
|
-
}) :
|
|
8813
|
-
},
|
|
8872
|
+
}) : Md(e, t);
|
|
8873
|
+
}, Id = (e, t, n, r = "advanced", i) => {
|
|
8814
8874
|
let a = Array.from(new Set(n));
|
|
8815
|
-
if (r === "regular") return a.length ?
|
|
8875
|
+
if (r === "regular") return a.length ? vd(e, t, {
|
|
8816
8876
|
filterType: "set",
|
|
8817
8877
|
values: a
|
|
8818
|
-
}, (e) => e.filterType === "set", i) :
|
|
8878
|
+
}, (e) => e.filterType === "set", i) : vd(e, t, null, (e) => e.filterType === "set", i);
|
|
8819
8879
|
let o = a.map((e) => ({
|
|
8820
8880
|
colId: t,
|
|
8821
8881
|
filter: e,
|
|
8822
8882
|
filterType: "text",
|
|
8823
8883
|
type: "equals"
|
|
8824
8884
|
}));
|
|
8825
|
-
return o.length ?
|
|
8885
|
+
return o.length ? Cd(e, t, o.length === 1 ? o[0] : {
|
|
8826
8886
|
conditions: o,
|
|
8827
8887
|
filterType: "join",
|
|
8828
8888
|
type: "OR"
|
|
8829
|
-
}) :
|
|
8830
|
-
},
|
|
8889
|
+
}) : Md(e, t);
|
|
8890
|
+
}, Ld = Symbol("PvFilterStore"), Rd = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, zd = (e, t) => t ?? e, Bd = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Vd = (e) => {
|
|
8831
8891
|
let t = /* @__PURE__ */ new Map();
|
|
8832
8892
|
for (let n of e) {
|
|
8833
8893
|
if (!n) continue;
|
|
@@ -8839,34 +8899,34 @@ var za = {
|
|
|
8839
8899
|
t.set(n.value, {
|
|
8840
8900
|
...e,
|
|
8841
8901
|
...n,
|
|
8842
|
-
children:
|
|
8843
|
-
totalChildCount:
|
|
8902
|
+
children: Vd([...e.children ?? [], ...n.children ?? []]),
|
|
8903
|
+
totalChildCount: zd(e.totalChildCount, n.totalChildCount)
|
|
8844
8904
|
});
|
|
8845
8905
|
}
|
|
8846
8906
|
return [...t.values()];
|
|
8847
|
-
},
|
|
8907
|
+
}, Hd = (e, t) => {
|
|
8848
8908
|
for (let n of e ?? []) {
|
|
8849
8909
|
if (!n) continue;
|
|
8850
8910
|
if (n.value === t) return n;
|
|
8851
|
-
let e =
|
|
8911
|
+
let e = Hd(n.children, t);
|
|
8852
8912
|
if (e) return e;
|
|
8853
8913
|
}
|
|
8854
|
-
},
|
|
8914
|
+
}, Ud = (e, t, n) => {
|
|
8855
8915
|
if (!e || t === null) return !1;
|
|
8856
8916
|
if (e.value === t) return !0;
|
|
8857
|
-
let r =
|
|
8858
|
-
return r !== null && r === t ||
|
|
8859
|
-
},
|
|
8860
|
-
let r =
|
|
8917
|
+
let r = Tl(e);
|
|
8918
|
+
return r !== null && r === t || Ol(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Ud(e, t, n)) ?? !1;
|
|
8919
|
+
}, Wd = (e, t, n) => {
|
|
8920
|
+
let r = Hd(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
8861
8921
|
return e.map((e) => e && (e.value === t ? {
|
|
8862
8922
|
...e,
|
|
8863
|
-
children:
|
|
8864
|
-
totalChildCount:
|
|
8923
|
+
children: Vd([...e.children ?? [], ...i]),
|
|
8924
|
+
totalChildCount: zd(e.totalChildCount, r?.totalChildCount)
|
|
8865
8925
|
} : e.children?.length ? {
|
|
8866
8926
|
...e,
|
|
8867
|
-
children:
|
|
8927
|
+
children: Wd(e.children, t, n).filter((e) => !!e)
|
|
8868
8928
|
} : e));
|
|
8869
|
-
},
|
|
8929
|
+
}, Gd = (e, t) => `${e}::${t}`, Kd = () => {
|
|
8870
8930
|
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k({}), v = k(), y = k({}), b = (e) => {
|
|
8871
8931
|
v.value = e;
|
|
8872
8932
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -8875,11 +8935,11 @@ var za = {
|
|
|
8875
8935
|
let r = n ? o : i;
|
|
8876
8936
|
r.value[e] = t;
|
|
8877
8937
|
}, T = () => {
|
|
8878
|
-
o.value =
|
|
8938
|
+
o.value = Bd(i.value), s.value = Bd(a.value);
|
|
8879
8939
|
}, E = () => {
|
|
8880
8940
|
o.value = {}, s.value = {};
|
|
8881
8941
|
}, D = () => {
|
|
8882
|
-
i.value =
|
|
8942
|
+
i.value = Bd(o.value), a.value = Bd(s.value), E();
|
|
8883
8943
|
}, O = (e, t) => {
|
|
8884
8944
|
c.value[e] = t;
|
|
8885
8945
|
}, A = (e, t) => {
|
|
@@ -8903,7 +8963,7 @@ var za = {
|
|
|
8903
8963
|
if (!o) return [];
|
|
8904
8964
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
8905
8965
|
c.value[n.field] = s;
|
|
8906
|
-
let u = n.parentId ?
|
|
8966
|
+
let u = n.parentId ? Hd(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b = M(n.field, y), x = n.parentId ? Gd(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
8907
8967
|
g.value[x] = S;
|
|
8908
8968
|
try {
|
|
8909
8969
|
let c = await o({
|
|
@@ -8915,17 +8975,17 @@ var za = {
|
|
|
8915
8975
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
8916
8976
|
});
|
|
8917
8977
|
if (g.value[x] !== S) return [];
|
|
8918
|
-
let u =
|
|
8978
|
+
let u = Rd(c);
|
|
8919
8979
|
if (n.parentId) {
|
|
8920
|
-
let e =
|
|
8980
|
+
let e = Gd(n.field, n.parentId);
|
|
8921
8981
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
8922
8982
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
8923
8983
|
let v = a.value[n.field] ?? [], b;
|
|
8924
|
-
b = n.parentId ?
|
|
8984
|
+
b = n.parentId ? Wd(r.value[n.field] ?? [], n.parentId, u.values) : y ? Vd([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
8925
8985
|
for (let e of v) {
|
|
8926
8986
|
if (!e) continue;
|
|
8927
|
-
let t =
|
|
8928
|
-
b.some((e) =>
|
|
8987
|
+
let t = Tl(e) ?? e.value;
|
|
8988
|
+
b.some((e) => Ud(e, t, n.field)) || b.push(e);
|
|
8929
8989
|
}
|
|
8930
8990
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
8931
8991
|
} finally {
|
|
@@ -8960,20 +9020,20 @@ var za = {
|
|
|
8960
9020
|
stagedFilterSelectedMetadataMap: s,
|
|
8961
9021
|
stagedFilterSelectedValueMap: o
|
|
8962
9022
|
};
|
|
8963
|
-
},
|
|
8964
|
-
O(
|
|
8965
|
-
},
|
|
9023
|
+
}, qd = (e) => {
|
|
9024
|
+
O(Ld, e);
|
|
9025
|
+
}, Jd = () => m(Ld, null), Yd = () => Jd() ?? Kd(), Xd = "__range__", Zd = "__boolean__", Qd = "__exists__", $d = new Set([
|
|
8966
9026
|
"value",
|
|
8967
9027
|
"range",
|
|
8968
9028
|
"boolean",
|
|
8969
9029
|
"exists"
|
|
8970
9030
|
]);
|
|
8971
|
-
function
|
|
9031
|
+
function ef(e, t, n) {
|
|
8972
9032
|
f();
|
|
8973
|
-
let i = k(t.value), a =
|
|
9033
|
+
let i = k(t.value), a = Kd(), o = Jd(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = P(/* @__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(() => {
|
|
8974
9034
|
let n = p.value;
|
|
8975
9035
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
8976
|
-
}), y = r(() =>
|
|
9036
|
+
}), y = r(() => kd(v.value, _.value)), b = (e, t) => {
|
|
8977
9037
|
let n = e.applyFilterModel;
|
|
8978
9038
|
if (typeof n == "function") {
|
|
8979
9039
|
n(t);
|
|
@@ -9064,7 +9124,7 @@ function Zd(e, t, n) {
|
|
|
9064
9124
|
});
|
|
9065
9125
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
9066
9126
|
let t = D(e), n = t.filterPanelType;
|
|
9067
|
-
if (n &&
|
|
9127
|
+
if (n && $d.has(n)) return n;
|
|
9068
9128
|
if (t.filterPanelRange) return "range";
|
|
9069
9129
|
if (t.dataType === "boolean") return "boolean";
|
|
9070
9130
|
if (e.filter) return "value";
|
|
@@ -9104,30 +9164,30 @@ function Zd(e, t, n) {
|
|
|
9104
9164
|
...r,
|
|
9105
9165
|
...i
|
|
9106
9166
|
].filter(Boolean)));
|
|
9107
|
-
}, q = (e) => _.value === "advanced" &&
|
|
9167
|
+
}, q = (e) => _.value === "advanced" && Il(e), re = (e, t) => q(e) ? Kl({
|
|
9108
9168
|
colDef: e,
|
|
9109
9169
|
model: v.value,
|
|
9110
9170
|
options: t
|
|
9111
9171
|
}) : new Map(te(e).map((e) => [e, y.value.get(e)?.values ?? []])), ie = (e, t, n, r) => {
|
|
9112
9172
|
let i = /* @__PURE__ */ new Set();
|
|
9113
|
-
for (let t of
|
|
9173
|
+
for (let t of Dl(r)) for (let [r, a] of n) for (let n of a) Ol(t, r, n, e) && i.add(`${r}:${n}`);
|
|
9114
9174
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
9115
9175
|
colField: t === e ? void 0 : t,
|
|
9116
9176
|
label: n,
|
|
9117
9177
|
metadata: { rawValue: n },
|
|
9118
|
-
value: t === e ? n :
|
|
9178
|
+
value: t === e ? n : wl(t, n)
|
|
9119
9179
|
}]));
|
|
9120
9180
|
}, ae = (e, t, n) => {
|
|
9121
9181
|
let r = /* @__PURE__ */ new Set();
|
|
9122
|
-
for (let i of
|
|
9123
|
-
let n =
|
|
9182
|
+
for (let i of Dl(n)) {
|
|
9183
|
+
let n = El(i, e), a = Tl(i);
|
|
9124
9184
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
9125
9185
|
}
|
|
9126
9186
|
return Array.from(r);
|
|
9127
9187
|
}, oe = (t) => Object.fromEntries(te(t).map((t) => [t, e.focusedValues[t] ?? []])), J = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), se = (e) => J(e)?.headerName ?? e, ce = (e) => {
|
|
9128
9188
|
let t = D(e);
|
|
9129
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
9130
|
-
}, le = (e, t) =>
|
|
9189
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Ju(O(e), t.queryColIds, se);
|
|
9190
|
+
}, le = (e, t) => Xu({
|
|
9131
9191
|
fallbackSubText: e.subText,
|
|
9132
9192
|
getDisplayName: se,
|
|
9133
9193
|
matchedField: e.matchedField,
|
|
@@ -9145,7 +9205,7 @@ function Zd(e, t, n) {
|
|
|
9145
9205
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
9146
9206
|
label: J(e)?.headerName ?? e
|
|
9147
9207
|
}));
|
|
9148
|
-
}, de = (e) => pe.value.find((t) => t.key === e) ?? pe.value.find((t) => te(t.colDef).includes(e)), fe = (e, t, n) =>
|
|
9208
|
+
}, de = (e) => pe.value.find((t) => t.key === e) ?? pe.value.find((t) => te(t.colDef).includes(e)), fe = (e, t, n) => Dl(de(e)?.knownOptions ?? []).find((r) => r.value === n || Ol(r, t, n, e)), pe = r(() => e.colDefs.filter(I).map((t) => {
|
|
9149
9209
|
let n = O(t), r = D(t), i = M(t), a = Y(L(n), t), o = Y(U(n), t), s = {
|
|
9150
9210
|
category: N(t),
|
|
9151
9211
|
colDef: t,
|
|
@@ -9207,7 +9267,7 @@ function Zd(e, t, n) {
|
|
|
9207
9267
|
...s,
|
|
9208
9268
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
9209
9269
|
};
|
|
9210
|
-
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : re(t, c), f = ie(n, t, d, c), p = [...c, ...f], m = q(t) ?
|
|
9270
|
+
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : re(t, c), f = ie(n, t, d, c), p = [...c, ...f], m = q(t) ? Gl({
|
|
9211
9271
|
colDef: t,
|
|
9212
9272
|
model: v.value,
|
|
9213
9273
|
options: p
|
|
@@ -9227,19 +9287,19 @@ function Zd(e, t, n) {
|
|
|
9227
9287
|
label: e.label,
|
|
9228
9288
|
values: t
|
|
9229
9289
|
}] : [];
|
|
9230
|
-
})), me = r(() => X.value.reduce((e, t) => e + t.values.length, 0)), he = r(() =>
|
|
9290
|
+
})), me = r(() => X.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => Ad(v.value, _.value)), ge = r(() => he.value || me.value > 0), _e = (e) => {
|
|
9231
9291
|
let t = de(e.field);
|
|
9232
9292
|
if (!t || t.type !== e.filter.type) return !0;
|
|
9233
9293
|
if (e.filter.type === "value") {
|
|
9234
9294
|
if (t.isAggregate && e.option) {
|
|
9235
|
-
let { selected: n } =
|
|
9295
|
+
let { selected: n } = au({
|
|
9236
9296
|
option: e.option,
|
|
9237
9297
|
options: t.knownOptions ?? [],
|
|
9238
9298
|
state: t.aggregateSelectionState ?? []
|
|
9239
9299
|
});
|
|
9240
9300
|
return e.filter.checked ? n : !n;
|
|
9241
9301
|
}
|
|
9242
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
9302
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Tl(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
9243
9303
|
return e.filter.checked ? a : !a;
|
|
9244
9304
|
}
|
|
9245
9305
|
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;
|
|
@@ -9253,14 +9313,14 @@ function Zd(e, t, n) {
|
|
|
9253
9313
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
9254
9314
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
9255
9315
|
if (!e) return !1;
|
|
9256
|
-
let r =
|
|
9316
|
+
let r = El(e, t), i = Tl(e) ?? e.value;
|
|
9257
9317
|
return r !== n || c.has(i);
|
|
9258
9318
|
});
|
|
9259
9319
|
if (i) {
|
|
9260
|
-
let e =
|
|
9320
|
+
let e = Tl(i) ?? i.value, n = El(i, t);
|
|
9261
9321
|
l.some((r) => {
|
|
9262
|
-
let i =
|
|
9263
|
-
return
|
|
9322
|
+
let i = Tl(r) ?? r.value;
|
|
9323
|
+
return El(r, t) === n && i === e;
|
|
9264
9324
|
}) || l.push(i);
|
|
9265
9325
|
}
|
|
9266
9326
|
o.value[t] = l;
|
|
@@ -9270,7 +9330,7 @@ function Zd(e, t, n) {
|
|
|
9270
9330
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
9271
9331
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
9272
9332
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
9273
|
-
a.value[t.key] =
|
|
9333
|
+
a.value[t.key] = ou({
|
|
9274
9334
|
options: t.knownOptions ?? [],
|
|
9275
9335
|
state: n
|
|
9276
9336
|
});
|
|
@@ -9299,48 +9359,48 @@ function Zd(e, t, n) {
|
|
|
9299
9359
|
return t === null ? [] : [{
|
|
9300
9360
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
9301
9361
|
type: "boolean",
|
|
9302
|
-
value:
|
|
9362
|
+
value: Zd
|
|
9303
9363
|
}];
|
|
9304
9364
|
}, Ee = (e) => e.existsValue ? [{
|
|
9305
9365
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
9306
9366
|
type: "exists",
|
|
9307
|
-
value:
|
|
9367
|
+
value: Qd
|
|
9308
9368
|
}] : [], De = (e) => {
|
|
9309
9369
|
let t = e.rangeValue ?? {
|
|
9310
9370
|
max: null,
|
|
9311
9371
|
min: null
|
|
9312
9372
|
};
|
|
9313
9373
|
return t.min === null && t.max === null ? [] : [{
|
|
9314
|
-
label:
|
|
9374
|
+
label: ml(t.min, t.max, {
|
|
9315
9375
|
dataType: e.dataType,
|
|
9316
9376
|
valueDecimals: e.valueDecimals
|
|
9317
9377
|
}),
|
|
9318
9378
|
type: "range",
|
|
9319
|
-
value:
|
|
9379
|
+
value: Xd
|
|
9320
9380
|
}];
|
|
9321
9381
|
}, Oe = (e, t, n) => {
|
|
9322
9382
|
let r = n.get(t) ?? null;
|
|
9323
9383
|
return {
|
|
9324
|
-
field: r ?
|
|
9325
|
-
label: r ?
|
|
9326
|
-
resultCount:
|
|
9384
|
+
field: r ? El(r, e.key) : void 0,
|
|
9385
|
+
label: r ? _l(r, e.colDef) : t,
|
|
9386
|
+
resultCount: vl(r),
|
|
9327
9387
|
subText: r?.subText,
|
|
9328
9388
|
subduedText: r?.subduedText,
|
|
9329
9389
|
type: "value",
|
|
9330
|
-
value: r ?
|
|
9390
|
+
value: r ? Tl(r) ?? r.value : t
|
|
9331
9391
|
};
|
|
9332
9392
|
}, ke = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
9333
9393
|
field: e.field,
|
|
9334
9394
|
label: e.label,
|
|
9335
9395
|
type: "boolean",
|
|
9336
|
-
value:
|
|
9337
|
-
}] : []), Ae = (e) =>
|
|
9396
|
+
value: Zd
|
|
9397
|
+
}] : []), Ae = (e) => ou({
|
|
9338
9398
|
options: e.knownOptions ?? [],
|
|
9339
9399
|
state: e.aggregateSelectionState ?? []
|
|
9340
9400
|
}).map((t) => ({
|
|
9341
9401
|
field: e.key,
|
|
9342
|
-
label:
|
|
9343
|
-
resultCount:
|
|
9402
|
+
label: _l(t, e.colDef),
|
|
9403
|
+
resultCount: vl(t),
|
|
9344
9404
|
subText: t.subText,
|
|
9345
9405
|
subduedText: t.subduedText,
|
|
9346
9406
|
type: "value",
|
|
@@ -9351,7 +9411,7 @@ function Zd(e, t, n) {
|
|
|
9351
9411
|
if (e.type === "boolean") return Te(e);
|
|
9352
9412
|
if (e.type === "exists") return Ee(e);
|
|
9353
9413
|
if (e.isAggregate) return [...Ae(e), ...ke(e)];
|
|
9354
|
-
let t = new Map(
|
|
9414
|
+
let t = new Map(Dl(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
9355
9415
|
return [...(e.selectedValues ?? []).map((n) => Oe(e, n, t)), ...ke(e)];
|
|
9356
9416
|
}, Me = () => {
|
|
9357
9417
|
Ve(), we(null, "clear-all");
|
|
@@ -9363,9 +9423,9 @@ function Zd(e, t, n) {
|
|
|
9363
9423
|
Ve();
|
|
9364
9424
|
let e = p.value;
|
|
9365
9425
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
9366
|
-
}, Fe = (e) =>
|
|
9426
|
+
}, Fe = (e) => jd(de(e)?.dataType), Ie = (e, t, n = "value-toggle") => {
|
|
9367
9427
|
let r = de(e);
|
|
9368
|
-
r?.isAggregate && (xe(r, t), we(
|
|
9428
|
+
r?.isAggregate && (xe(r, t), we(Ul({
|
|
9369
9429
|
baseModel: v.value,
|
|
9370
9430
|
colDef: r.colDef,
|
|
9371
9431
|
options: r.knownOptions ?? [],
|
|
@@ -9380,7 +9440,7 @@ function Zd(e, t, n) {
|
|
|
9380
9440
|
if (t.type === "value") {
|
|
9381
9441
|
let r = de(e), i = fe(e, n, t.value);
|
|
9382
9442
|
if (r?.isAggregate && i) {
|
|
9383
|
-
Ie(e,
|
|
9443
|
+
Ie(e, nu({
|
|
9384
9444
|
checked: t.checked,
|
|
9385
9445
|
option: i,
|
|
9386
9446
|
options: r.knownOptions ?? [],
|
|
@@ -9396,10 +9456,10 @@ function Zd(e, t, n) {
|
|
|
9396
9456
|
return;
|
|
9397
9457
|
}
|
|
9398
9458
|
if (t.type === "boolean") {
|
|
9399
|
-
we(
|
|
9459
|
+
we(Nd(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
9400
9460
|
return;
|
|
9401
9461
|
}
|
|
9402
|
-
we(
|
|
9462
|
+
we(Pd(v.value, n, t.value, Fe(n), _.value, r), "exists-change", n, "exists");
|
|
9403
9463
|
}, Re = (e, t, n, r) => {
|
|
9404
9464
|
let i = p.value;
|
|
9405
9465
|
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;
|
|
@@ -9419,7 +9479,7 @@ function Zd(e, t, n) {
|
|
|
9419
9479
|
}, Be = (e, t, r) => {
|
|
9420
9480
|
n("load-more", e.key, e.colDef, t, r), ze(e, t, r ? "child-load-more" : "load-more", r);
|
|
9421
9481
|
}, Z = (e, t, n) => {
|
|
9422
|
-
we(
|
|
9482
|
+
we(Fd(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
9423
9483
|
}, Ve = () => {
|
|
9424
9484
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
9425
9485
|
l.clear();
|
|
@@ -9459,7 +9519,7 @@ function Zd(e, t, n) {
|
|
|
9459
9519
|
n("controlled-change", t, l, s.colDef);
|
|
9460
9520
|
return;
|
|
9461
9521
|
}
|
|
9462
|
-
be(t, r, l, a ? o : void 0), we(
|
|
9522
|
+
be(t, r, l, a ? o : void 0), we(Id(v.value, r, l, _.value, J(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
9463
9523
|
};
|
|
9464
9524
|
return {
|
|
9465
9525
|
resolvedFilters: pe,
|
|
@@ -9484,8 +9544,8 @@ function Zd(e, t, n) {
|
|
|
9484
9544
|
handleSearchChange: Ue,
|
|
9485
9545
|
handleSuggestionClick: (e) => {
|
|
9486
9546
|
if (e.filter.type === "value" && e.option) {
|
|
9487
|
-
let t = de(e.field), n =
|
|
9488
|
-
t?.isAggregate ? Ie(e.field,
|
|
9547
|
+
let t = de(e.field), n = El(e.option, e.field), r = Tl(e.option) ?? e.filter.value;
|
|
9548
|
+
t?.isAggregate ? Ie(e.field, nu({
|
|
9489
9549
|
checked: e.filter.checked,
|
|
9490
9550
|
option: e.option,
|
|
9491
9551
|
options: t.knownOptions ?? [],
|
|
@@ -9496,21 +9556,21 @@ function Zd(e, t, n) {
|
|
|
9496
9556
|
},
|
|
9497
9557
|
removeAppliedFilter: (e, t, n) => {
|
|
9498
9558
|
let r = n ?? de(e)?.type ?? "value";
|
|
9499
|
-
if (r === "range" || !n && t ===
|
|
9500
|
-
we(
|
|
9559
|
+
if (r === "range" || !n && t === Xd) {
|
|
9560
|
+
we(Fd(v.value, e, null, null, _.value, J(e) ?? de(e)?.colDef), "remove-filter", e, "range");
|
|
9501
9561
|
return;
|
|
9502
9562
|
}
|
|
9503
|
-
if (r === "boolean" || !n && t ===
|
|
9504
|
-
we(
|
|
9563
|
+
if (r === "boolean" || !n && t === Zd) {
|
|
9564
|
+
we(Nd(v.value, e, null, _.value, "boolean", J(e) ?? de(e)?.colDef), "remove-filter", e, "boolean");
|
|
9505
9565
|
return;
|
|
9506
9566
|
}
|
|
9507
|
-
if (r === "exists" || !n && t ===
|
|
9508
|
-
we(
|
|
9567
|
+
if (r === "exists" || !n && t === Qd) {
|
|
9568
|
+
we(Pd(v.value, e, !1, "text", _.value, J(e) ?? de(e)?.colDef), "remove-filter", e, "exists");
|
|
9509
9569
|
return;
|
|
9510
9570
|
}
|
|
9511
9571
|
let i = de(e);
|
|
9512
9572
|
if (r === "value" && i?.isAggregate) {
|
|
9513
|
-
let e =
|
|
9573
|
+
let e = Ll(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? nu({
|
|
9514
9574
|
checked: !1,
|
|
9515
9575
|
option: e,
|
|
9516
9576
|
options: i.knownOptions ?? [],
|
|
@@ -9520,7 +9580,7 @@ function Zd(e, t, n) {
|
|
|
9520
9580
|
return;
|
|
9521
9581
|
}
|
|
9522
9582
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
9523
|
-
be(de(e)?.key ?? e, e, a), we(
|
|
9583
|
+
be(de(e)?.key ?? e, e, a), we(Id(v.value, e, a, _.value, J(e) ?? de(e)?.colDef), "remove-filter", e, "value");
|
|
9524
9584
|
},
|
|
9525
9585
|
setFacetSelections: Ge,
|
|
9526
9586
|
usesHandlerFacets: $
|
|
@@ -9528,32 +9588,32 @@ function Zd(e, t, n) {
|
|
|
9528
9588
|
}
|
|
9529
9589
|
//#endregion
|
|
9530
9590
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9531
|
-
var
|
|
9591
|
+
var tf = ["aria-label"], nf = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, rf = { class: "pv-filter-panel-body pv-flex-vertical" }, af = {
|
|
9532
9592
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
9533
9593
|
"data-testid": "pv-filter-panel-filters-view"
|
|
9534
|
-
},
|
|
9594
|
+
}, of = {
|
|
9535
9595
|
key: 0,
|
|
9536
9596
|
"aria-label": "Filter suggestions",
|
|
9537
9597
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
9538
9598
|
"data-testid": "pv-filter-panel-suggestions"
|
|
9539
|
-
},
|
|
9599
|
+
}, sf = { class: "pv-filter-panel-suggestion-tags pv-flex" }, cf = {
|
|
9540
9600
|
key: 1,
|
|
9541
9601
|
class: "pv-filter-panel-search pv-border-bottom",
|
|
9542
9602
|
"data-testid": "pv-filter-panel-search"
|
|
9543
|
-
},
|
|
9603
|
+
}, lf = {
|
|
9544
9604
|
key: 2,
|
|
9545
9605
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9546
|
-
},
|
|
9606
|
+
}, uf = {
|
|
9547
9607
|
key: 3,
|
|
9548
9608
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9549
|
-
},
|
|
9609
|
+
}, df = {
|
|
9550
9610
|
key: 4,
|
|
9551
9611
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
9552
9612
|
style: { "--inset-size": "8px" }
|
|
9553
|
-
},
|
|
9613
|
+
}, ff = {
|
|
9554
9614
|
key: 0,
|
|
9555
9615
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
9556
|
-
},
|
|
9616
|
+
}, pf = { class: "pv-filter-panel-actions pv-flex" }, mf = { class: "pv-text-body-sm" }, hf = { class: "pv-filter-panel-modal-footer pv-flex" }, gf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
9557
9617
|
__name: "PvFilterPanel",
|
|
9558
9618
|
props: /* @__PURE__ */ g({
|
|
9559
9619
|
allCategoriesLabel: { default: "All" },
|
|
@@ -9591,6 +9651,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9591
9651
|
type: Boolean,
|
|
9592
9652
|
default: !1
|
|
9593
9653
|
},
|
|
9654
|
+
externalFilters: { default: () => [] },
|
|
9594
9655
|
filterHasMoreMap: { default: () => ({}) },
|
|
9595
9656
|
filterLoadingMap: { default: () => ({}) },
|
|
9596
9657
|
filterLoadingMoreMap: { default: () => ({}) },
|
|
@@ -9635,6 +9696,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9635
9696
|
"facet-change",
|
|
9636
9697
|
"filter-change",
|
|
9637
9698
|
"focus-change",
|
|
9699
|
+
"remove-external-filter",
|
|
9638
9700
|
"handle-settings-icon",
|
|
9639
9701
|
"load-more",
|
|
9640
9702
|
"open-change",
|
|
@@ -9642,36 +9704,38 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9642
9704
|
"suggestion-click"
|
|
9643
9705
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
9644
9706
|
setup(e, { emit: n }) {
|
|
9645
|
-
let c = e, l = B(e, "filterModel"), d = B(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: M } =
|
|
9707
|
+
let c = e, l = B(e, "filterModel"), d = B(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: M } = ef(c, l, f), N = k("filters"), P = k({}), F = k(null), R = k(!1), z = k(!1), V = k(""), H = r(() => c.enableFilterSearch ? V.value.trim().toLowerCase() : ""), ee = r(() => H.value.length > 0), U = (e) => e.label.toLowerCase().includes(H.value);
|
|
9646
9708
|
K(ee, (e) => {
|
|
9647
9709
|
e && (F.value = null);
|
|
9648
9710
|
}), K(F, (e) => {
|
|
9649
9711
|
e !== null && (V.value = "");
|
|
9650
9712
|
});
|
|
9651
|
-
let W = (e) => e.colDef.context?.filterCollapsedByDefault === !0, G = r(() => ee.value ? p.value.filter(U) : F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), ne = r(() => G.value.filter((e) => !W(e))), ie = r(() => G.value.filter(W)), ae = r(() => F.value !== null), oe = r(() => ae.value || ee.value || R.value ? [...ne.value, ...ie.value] : ne.value), J = r(() => ee.value ? "No filters match your search." : "No filters in this category."), se = r(() => `${R.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), ce = r(() => N.value === "filters" && !ae.value && !ee.value && ie.value.length > 0), le = r(() => !c.readOnly && (
|
|
9713
|
+
let W = (e) => e.colDef.context?.filterCollapsedByDefault === !0, G = r(() => ee.value ? p.value.filter(U) : F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), ne = r(() => G.value.filter((e) => !W(e))), ie = r(() => G.value.filter(W)), ae = r(() => F.value !== null), oe = r(() => ae.value || ee.value || R.value ? [...ne.value, ...ie.value] : ne.value), J = r(() => ee.value ? "No filters match your search." : "No filters in this category."), se = r(() => `${R.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), ce = r(() => N.value === "filters" && !ae.value && !ee.value && ie.value.length > 0), le = r(() => c.externalFilters.filter((e) => e.values.length > 0)), Y = r(() => le.value.filter((e) => e.removable !== !1)), ue = r(() => le.value.reduce((e, t) => e + t.values.length, 0)), de = r(() => Y.value.reduce((e, t) => e + t.values.length, 0)), fe = r(() => h.value + ue.value), pe = r(() => g.value || de.value > 0), X = r(() => !c.readOnly && (pe.value || c.staged)), me = r(() => oe.value.map((e) => ({
|
|
9652
9714
|
...e,
|
|
9653
9715
|
isOpen: P.value[e.key] ?? e.isOpen ?? !1
|
|
9654
|
-
}))),
|
|
9716
|
+
}))), he = r(() => [{
|
|
9655
9717
|
label: "Filters",
|
|
9656
9718
|
value: "filters"
|
|
9657
9719
|
}, {
|
|
9658
|
-
label: `Applied (${
|
|
9720
|
+
label: `Applied (${fe.value})`,
|
|
9659
9721
|
value: "applied"
|
|
9660
|
-
}]),
|
|
9722
|
+
}]), ge = r(() => ({
|
|
9661
9723
|
"--flex-align": "stretch",
|
|
9662
9724
|
"--flex-gap": "0",
|
|
9663
9725
|
flex: `0 0 ${c.width}`,
|
|
9664
9726
|
minHeight: "0",
|
|
9665
9727
|
width: c.width
|
|
9666
|
-
})),
|
|
9728
|
+
})), _e = (e) => {
|
|
9667
9729
|
(e === "filters" || e === "applied") && (N.value = e);
|
|
9668
|
-
},
|
|
9730
|
+
}, ve = (e, t) => {
|
|
9669
9731
|
P.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
9670
|
-
},
|
|
9732
|
+
}, ye = () => {
|
|
9671
9733
|
z.value = !1;
|
|
9672
|
-
},
|
|
9673
|
-
S(),
|
|
9674
|
-
|
|
9734
|
+
}, be = () => {
|
|
9735
|
+
g.value && S(), Y.value.forEach((e) => {
|
|
9736
|
+
e.values.forEach((t) => f("remove-external-filter", e.key, t.value));
|
|
9737
|
+
}), z.value = !1;
|
|
9738
|
+
}, xe = () => {
|
|
9675
9739
|
z.value = !0;
|
|
9676
9740
|
};
|
|
9677
9741
|
return (n, r) => (D(), o(t, null, [d.value ? a("", !0) : (D(), o("div", {
|
|
@@ -9680,14 +9744,14 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9680
9744
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
9681
9745
|
"data-testid": "pv-filter-panel",
|
|
9682
9746
|
"aria-label": e.ariaLabel,
|
|
9683
|
-
style: x(
|
|
9747
|
+
style: x(ge.value)
|
|
9684
9748
|
}, [
|
|
9685
|
-
s("div",
|
|
9749
|
+
s("div", nf, [u(kr, {
|
|
9686
9750
|
modelValue: N.value,
|
|
9687
|
-
options:
|
|
9751
|
+
options: he.value,
|
|
9688
9752
|
class: "pv-filter-panel-mode-control",
|
|
9689
9753
|
size: "xl",
|
|
9690
|
-
"onUpdate:modelValue":
|
|
9754
|
+
"onUpdate:modelValue": _e
|
|
9691
9755
|
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("", !0) : (D(), i($, {
|
|
9692
9756
|
key: 0,
|
|
9693
9757
|
ariaLabel: "Collapse filters",
|
|
@@ -9696,8 +9760,8 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9696
9760
|
variant: "secondary",
|
|
9697
9761
|
onClick: r[0] ||= (e) => d.value = !0
|
|
9698
9762
|
}))]),
|
|
9699
|
-
s("div",
|
|
9700
|
-
!e.readOnly && L(_).length ? (D(), o("section",
|
|
9763
|
+
s("div", rf, [re(s("div", af, [
|
|
9764
|
+
!e.readOnly && L(_).length ? (D(), o("section", of, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", sf, [(D(!0), o(t, null, A(L(_), (e) => (D(), i(ni, {
|
|
9701
9765
|
key: L(C)(e),
|
|
9702
9766
|
icon: e.icon,
|
|
9703
9767
|
"icon-classes": e.iconClasses,
|
|
@@ -9710,7 +9774,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9710
9774
|
"onHandleClick"
|
|
9711
9775
|
]))), 128))])])) : a("", !0),
|
|
9712
9776
|
j(n.$slots, "suggestions", {}, void 0, !0),
|
|
9713
|
-
u(
|
|
9777
|
+
u(qu, {
|
|
9714
9778
|
modelValue: F.value,
|
|
9715
9779
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
9716
9780
|
"all-categories-label": e.allCategoriesLabel,
|
|
@@ -9722,12 +9786,12 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9722
9786
|
"category-order",
|
|
9723
9787
|
"filters"
|
|
9724
9788
|
]),
|
|
9725
|
-
e.enableFilterSearch && L(p).length ? (D(), o("div",
|
|
9789
|
+
e.enableFilterSearch && L(p).length ? (D(), o("div", cf, [u(li, {
|
|
9726
9790
|
modelValue: V.value,
|
|
9727
9791
|
"onUpdate:modelValue": r[2] ||= (e) => V.value = e,
|
|
9728
9792
|
placeholder: e.filterSearchPlaceholder
|
|
9729
9793
|
}, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
|
|
9730
|
-
L(p).length ? G.value.length ? (D(), o("div",
|
|
9794
|
+
L(p).length ? G.value.length ? (D(), o("div", df, [(D(!0), o(t, null, A(me.value, (t) => (D(), i(Mu, {
|
|
9731
9795
|
key: t.key,
|
|
9732
9796
|
"disable-while-loading": e.disableWhileLoading,
|
|
9733
9797
|
filter: t,
|
|
@@ -9735,7 +9799,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9735
9799
|
onFocusChange: r[3] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
9736
9800
|
onHandleSettingsIcon: r[4] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
9737
9801
|
onLoadMore: (e, n) => L(T)(t, e, n),
|
|
9738
|
-
onOpenChange: (e) =>
|
|
9802
|
+
onOpenChange: (e) => ve(t, e),
|
|
9739
9803
|
onSearchChange: (e) => L(E)(t, e)
|
|
9740
9804
|
}, null, 8, [
|
|
9741
9805
|
"disable-while-loading",
|
|
@@ -9750,24 +9814,27 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9750
9814
|
label: se.value,
|
|
9751
9815
|
variant: "ghost",
|
|
9752
9816
|
onClick: r[5] ||= (e) => R.value = !R.value
|
|
9753
|
-
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div",
|
|
9754
|
-
], 512), [[te, N.value === "filters"]]), re(u(
|
|
9817
|
+
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div", uf, I(J.value), 1)) : (D(), o("div", lf, " No filters available. "))
|
|
9818
|
+
], 512), [[te, N.value === "filters"]]), re(u(Bu, {
|
|
9755
9819
|
"applied-count": L(h),
|
|
9756
9820
|
"applied-groups": L(m),
|
|
9821
|
+
"external-filters": le.value,
|
|
9757
9822
|
"read-only": e.readOnly,
|
|
9823
|
+
onRemoveExternalFilter: r[6] ||= (e, t) => f("remove-external-filter", e, t),
|
|
9758
9824
|
onRemoveFilter: L(M)
|
|
9759
9825
|
}, null, 8, [
|
|
9760
9826
|
"applied-count",
|
|
9761
9827
|
"applied-groups",
|
|
9828
|
+
"external-filters",
|
|
9762
9829
|
"read-only",
|
|
9763
9830
|
"onRemoveFilter"
|
|
9764
9831
|
]), [[te, N.value === "applied"]])]),
|
|
9765
|
-
|
|
9832
|
+
X.value ? (D(), o("div", ff, [s("div", pf, [pe.value && !e.readOnly ? (D(), i($, {
|
|
9766
9833
|
key: 0,
|
|
9767
9834
|
class: "pv-text-brand",
|
|
9768
9835
|
label: e.clearAllLabel,
|
|
9769
9836
|
variant: "ghost",
|
|
9770
|
-
onClick:
|
|
9837
|
+
onClick: xe
|
|
9771
9838
|
}, null, 8, ["label"])) : a("", !0), e.staged && !e.readOnly ? (D(), o(t, { key: 1 }, [u($, {
|
|
9772
9839
|
label: e.cancelLabel,
|
|
9773
9840
|
variant: "ghost",
|
|
@@ -9777,35 +9844,35 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9777
9844
|
variant: "primary",
|
|
9778
9845
|
onClick: L(y)
|
|
9779
9846
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
9780
|
-
], 12,
|
|
9847
|
+
], 12, tf)), u(Hr, {
|
|
9781
9848
|
modelValue: z.value,
|
|
9782
|
-
"onUpdate:modelValue": r[
|
|
9849
|
+
"onUpdate:modelValue": r[7] ||= (e) => z.value = e,
|
|
9783
9850
|
header: e.clearAllHeader,
|
|
9784
9851
|
style: { "--max-width": "440px" }
|
|
9785
9852
|
}, {
|
|
9786
|
-
body: q(() => [s("p",
|
|
9787
|
-
footer: q(() => [s("div",
|
|
9853
|
+
body: q(() => [s("p", mf, I(e.clearAllBody), 1)]),
|
|
9854
|
+
footer: q(() => [s("div", hf, [u($, {
|
|
9788
9855
|
label: e.cancelLabel,
|
|
9789
9856
|
variant: "ghost",
|
|
9790
|
-
onClick:
|
|
9857
|
+
onClick: ye
|
|
9791
9858
|
}, null, 8, ["label"]), u($, {
|
|
9792
9859
|
label: e.clearAllLabel,
|
|
9793
9860
|
variant: "primary",
|
|
9794
|
-
onClick:
|
|
9861
|
+
onClick: be
|
|
9795
9862
|
}, null, 8, ["label"])])]),
|
|
9796
9863
|
_: 1
|
|
9797
9864
|
}, 8, ["modelValue", "header"])], 64));
|
|
9798
9865
|
}
|
|
9799
|
-
}), [["__scopeId", "data-v-
|
|
9866
|
+
}), [["__scopeId", "data-v-59a9b1c6"]]), _f = ["for"], vf = [
|
|
9800
9867
|
"id",
|
|
9801
9868
|
"type",
|
|
9802
9869
|
"value",
|
|
9803
9870
|
"name",
|
|
9804
9871
|
"disabled"
|
|
9805
|
-
],
|
|
9872
|
+
], yf = { key: 0 }, bf = {
|
|
9806
9873
|
class: "pv-inset-square",
|
|
9807
9874
|
style: { "--inset-size": "0px 2px" }
|
|
9808
|
-
},
|
|
9875
|
+
}, xf = /* @__PURE__ */ d({
|
|
9809
9876
|
__name: "PvFilterModalSelectItem",
|
|
9810
9877
|
props: /* @__PURE__ */ g({
|
|
9811
9878
|
rounded: { type: Boolean },
|
|
@@ -9838,55 +9905,55 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9838
9905
|
value: e.value,
|
|
9839
9906
|
name: e.name,
|
|
9840
9907
|
disabled: e.disabled
|
|
9841
|
-
}, null, 8,
|
|
9842
|
-
e.label ? (D(), o("span",
|
|
9843
|
-
s("span",
|
|
9844
|
-
], 8,
|
|
9908
|
+
}, null, 8, vf), [[U, n.value]]),
|
|
9909
|
+
e.label ? (D(), o("span", yf, I(e.label), 1)) : a("", !0),
|
|
9910
|
+
s("span", bf, I(e.rightCounterBadge), 1)
|
|
9911
|
+
], 8, _f));
|
|
9845
9912
|
}
|
|
9846
|
-
}),
|
|
9913
|
+
}), Sf = ["aria-label"], Cf = {
|
|
9847
9914
|
class: "pv-filter-modal pv-flex",
|
|
9848
9915
|
style: {
|
|
9849
9916
|
"--flex-align": "stretch",
|
|
9850
9917
|
"--flex-gap": "0"
|
|
9851
9918
|
}
|
|
9852
|
-
},
|
|
9919
|
+
}, wf = {
|
|
9853
9920
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
9854
9921
|
"aria-label": "Filter categories",
|
|
9855
9922
|
style: { "--flex-gap": "0.25rem" }
|
|
9856
|
-
},
|
|
9923
|
+
}, Tf = {
|
|
9857
9924
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
9858
9925
|
style: {
|
|
9859
9926
|
"--flex-align": "stretch",
|
|
9860
9927
|
"--flex-gap": "0.75rem"
|
|
9861
9928
|
}
|
|
9862
|
-
},
|
|
9929
|
+
}, Ef = {
|
|
9863
9930
|
key: 0,
|
|
9864
9931
|
class: "pv-flex",
|
|
9865
9932
|
style: {
|
|
9866
9933
|
"--flex-gap": "0.5rem",
|
|
9867
9934
|
"flex-wrap": "wrap"
|
|
9868
9935
|
}
|
|
9869
|
-
},
|
|
9936
|
+
}, Df = {
|
|
9870
9937
|
key: 1,
|
|
9871
9938
|
class: "pv-inset-square-8"
|
|
9872
|
-
},
|
|
9939
|
+
}, Of = {
|
|
9873
9940
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
9874
9941
|
style: {
|
|
9875
9942
|
"--flex-align": "stretch",
|
|
9876
9943
|
"--flex-gap": "0.75rem"
|
|
9877
9944
|
}
|
|
9878
|
-
},
|
|
9945
|
+
}, kf = {
|
|
9879
9946
|
key: 1,
|
|
9880
9947
|
class: "pv-text-body-sm pv-text-subdued pv-stack-8",
|
|
9881
9948
|
style: { "font-weight": "500" }
|
|
9882
|
-
},
|
|
9949
|
+
}, Af = {
|
|
9883
9950
|
key: 0,
|
|
9884
9951
|
class: "pv-text-body-xs pv-text-subdued",
|
|
9885
9952
|
style: { margin: "0" }
|
|
9886
|
-
},
|
|
9953
|
+
}, jf = {
|
|
9887
9954
|
key: 3,
|
|
9888
9955
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
9889
|
-
},
|
|
9956
|
+
}, Mf = {
|
|
9890
9957
|
key: 0,
|
|
9891
9958
|
class: "pv-flex pv-border-top",
|
|
9892
9959
|
style: {
|
|
@@ -9895,7 +9962,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9895
9962
|
"margin-top": "0.75rem",
|
|
9896
9963
|
"padding-top": "0.75rem"
|
|
9897
9964
|
}
|
|
9898
|
-
},
|
|
9965
|
+
}, Nf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
9899
9966
|
__name: "PvFilterModal",
|
|
9900
9967
|
props: /* @__PURE__ */ g({
|
|
9901
9968
|
header: { default: "Filters" },
|
|
@@ -9931,6 +9998,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9931
9998
|
type: Boolean,
|
|
9932
9999
|
default: !1
|
|
9933
10000
|
},
|
|
10001
|
+
externalFilters: {},
|
|
9934
10002
|
filterHasMoreMap: { default: () => ({}) },
|
|
9935
10003
|
filterLoadingMap: { default: () => ({}) },
|
|
9936
10004
|
filterLoadingMoreMap: { default: () => ({}) },
|
|
@@ -9972,6 +10040,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9972
10040
|
"facet-change",
|
|
9973
10041
|
"filter-change",
|
|
9974
10042
|
"focus-change",
|
|
10043
|
+
"remove-external-filter",
|
|
9975
10044
|
"handle-settings-icon",
|
|
9976
10045
|
"load-more",
|
|
9977
10046
|
"open-change",
|
|
@@ -9979,7 +10048,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9979
10048
|
"suggestion-click"
|
|
9980
10049
|
], ["update:filterModel", "update:visible"]),
|
|
9981
10050
|
setup(e, { emit: n }) {
|
|
9982
|
-
let c = e, l = B(e, "filterModel"), d = B(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: b, usesHandlerFacets: C } =
|
|
10051
|
+
let c = e, l = B(e, "filterModel"), d = B(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: b, usesHandlerFacets: C } = ef(c, l, f), w = k(null), T = z(), E = k(""), O = r(() => p.value.filter((e) => e.type === "value")), M = r(() => {
|
|
9983
10052
|
let e = O.value;
|
|
9984
10053
|
return e.find((e) => e.key === w.value) ?? e[0] ?? null;
|
|
9985
10054
|
}), P = r(() => M.value?.isAggregate === !0), F = r(() => M.value?.aggregateSelectionState ?? []), R = r(() => new Set(M.value?.selectedValues ?? [])), V = r(() => E.value.trim().toLowerCase()), H = (e) => {
|
|
@@ -9996,7 +10065,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9996
10065
|
let e = M.value;
|
|
9997
10066
|
if (!e) return {};
|
|
9998
10067
|
let t = {};
|
|
9999
|
-
for (let n of
|
|
10068
|
+
for (let n of Dl([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
10000
10069
|
return t;
|
|
10001
10070
|
}), U = r(() => M.value?.colDef.context?.filterPanel ?? {}), W = k(Object.fromEntries(O.value.flatMap((e) => {
|
|
10002
10071
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
@@ -10062,22 +10131,22 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10062
10131
|
options: [...i.filter((e) => le.value.has(e.value)), ...i.filter((e) => !le.value.has(e.value))]
|
|
10063
10132
|
};
|
|
10064
10133
|
});
|
|
10065
|
-
}), pe = r(() => P.value && M.value ?
|
|
10134
|
+
}), pe = r(() => P.value && M.value ? iu({
|
|
10066
10135
|
options: M.value.knownOptions ?? [],
|
|
10067
10136
|
state: F.value
|
|
10068
|
-
}) : /* @__PURE__ */ new Map()), X = (e) => e.isAggregate ?
|
|
10137
|
+
}) : /* @__PURE__ */ new Map()), X = (e) => e.isAggregate ? su(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, me = (e) => P.value ? pe.value.get(e.value) ?? {
|
|
10069
10138
|
indeterminate: !1,
|
|
10070
10139
|
selected: !1
|
|
10071
10140
|
} : {
|
|
10072
10141
|
indeterminate: !1,
|
|
10073
10142
|
selected: R.value.has(e.value)
|
|
10074
|
-
}, he = (e) => M.value ?
|
|
10143
|
+
}, he = (e) => M.value ? _l(e, M.value.colDef) : e.label || e.value, ge = (e) => Tl(e) ?? e.value, _e = (e) => El(e, M.value?.key ?? ""), ve = (e, t) => {
|
|
10075
10144
|
let n = M.value;
|
|
10076
10145
|
if (n) {
|
|
10077
10146
|
if (n.isAggregate) {
|
|
10078
10147
|
_(n.key, {
|
|
10079
10148
|
type: "aggregate-selection",
|
|
10080
|
-
value:
|
|
10149
|
+
value: nu({
|
|
10081
10150
|
checked: t,
|
|
10082
10151
|
option: e,
|
|
10083
10152
|
options: n.knownOptions ?? [],
|
|
@@ -10097,7 +10166,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10097
10166
|
for (let e of J.value) me(e).selected || ve(e, !0);
|
|
10098
10167
|
}, be = () => {
|
|
10099
10168
|
if (P.value) {
|
|
10100
|
-
for (let e of
|
|
10169
|
+
for (let e of Dl(M.value?.knownOptions ?? [])) me(e).selected && ve(e, !1);
|
|
10101
10170
|
return;
|
|
10102
10171
|
}
|
|
10103
10172
|
for (let e of se.value) ve(e, !1);
|
|
@@ -10144,7 +10213,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10144
10213
|
width: e.maxWidth,
|
|
10145
10214
|
maxWidth: e.maxWidth
|
|
10146
10215
|
})
|
|
10147
|
-
}, [s("div",
|
|
10216
|
+
}, [s("div", Cf, [s("nav", wf, [(D(!0), o(t, null, A(O.value, (e) => (D(), i(xf, {
|
|
10148
10217
|
key: e.key,
|
|
10149
10218
|
modelValue: Se.value,
|
|
10150
10219
|
"onUpdate:modelValue": r[0] ||= (e) => Se.value = e,
|
|
@@ -10158,7 +10227,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10158
10227
|
"label",
|
|
10159
10228
|
"right-counter-badge",
|
|
10160
10229
|
"value"
|
|
10161
|
-
]))), 128))]), s("div",
|
|
10230
|
+
]))), 128))]), s("div", Tf, [
|
|
10162
10231
|
u(li, {
|
|
10163
10232
|
modelValue: E.value,
|
|
10164
10233
|
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
@@ -10170,7 +10239,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10170
10239
|
"disabled",
|
|
10171
10240
|
"placeholder"
|
|
10172
10241
|
]),
|
|
10173
|
-
Object.keys(U.value).length ? (D(), o("div",
|
|
10242
|
+
Object.keys(U.value).length ? (D(), o("div", Ef, [(D(!0), o(t, null, A(U.value, (e, t) => (D(), i(jo, {
|
|
10174
10243
|
key: `facet-${t}`,
|
|
10175
10244
|
disabled: M.value?.disabled,
|
|
10176
10245
|
label: e.headerName || L(Ce)(t),
|
|
@@ -10185,8 +10254,8 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10185
10254
|
"options",
|
|
10186
10255
|
"onUpdate:modelValue"
|
|
10187
10256
|
]))), 128))])) : a("", !0),
|
|
10188
|
-
M.value?.isLoading ? (D(), o("div",
|
|
10189
|
-
s("div",
|
|
10257
|
+
M.value?.isLoading ? (D(), o("div", Df, [u(Ne, { size: "sm" })])) : M.value ? (D(), o(t, { key: 2 }, [
|
|
10258
|
+
s("div", Of, [(D(!0), o(t, null, A(de.value, (e) => (D(), o("div", {
|
|
10190
10259
|
key: `section-${e.key}`,
|
|
10191
10260
|
class: "pv-flex-vertical",
|
|
10192
10261
|
style: {
|
|
@@ -10207,17 +10276,17 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10207
10276
|
"field",
|
|
10208
10277
|
"options",
|
|
10209
10278
|
"section"
|
|
10210
|
-
])) : e.label ? (D(), o("p",
|
|
10279
|
+
])) : e.label ? (D(), o("p", kf, I(e.label), 1)) : a("", !0), (D(!0), o(t, null, A(e.options, (e) => (D(), o("div", {
|
|
10211
10280
|
key: `option-${e.value}`,
|
|
10212
10281
|
class: y(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": me(e).selected }])
|
|
10213
|
-
}, [u(
|
|
10282
|
+
}, [u(sl, {
|
|
10214
10283
|
control: M.value.singleSelect ? "radio" : "checkbox",
|
|
10215
10284
|
disabled: M.value.disabled || e.isSelectable === !1,
|
|
10216
10285
|
indeterminate: me(e).indeterminate,
|
|
10217
10286
|
label: he(e),
|
|
10218
10287
|
name: L(T),
|
|
10219
10288
|
"query-text": E.value,
|
|
10220
|
-
"result-count": L(
|
|
10289
|
+
"result-count": L(vl)(e),
|
|
10221
10290
|
selected: me(e).selected,
|
|
10222
10291
|
"sub-text": e.subText,
|
|
10223
10292
|
"subdued-text": e.subduedText,
|
|
@@ -10237,7 +10306,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10237
10306
|
"value",
|
|
10238
10307
|
"onToggleValue"
|
|
10239
10308
|
])], 2))), 128))]))), 128))]),
|
|
10240
|
-
J.value.length ? a("", !0) : (D(), o("p",
|
|
10309
|
+
J.value.length ? a("", !0) : (D(), o("p", Af, " No matching values. ")),
|
|
10241
10310
|
M.value.hasMore ? (D(), i($, {
|
|
10242
10311
|
key: 1,
|
|
10243
10312
|
class: "pv-text-brand",
|
|
@@ -10248,7 +10317,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10248
10317
|
onClick: xe
|
|
10249
10318
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
10250
10319
|
], 64)) : a("", !0),
|
|
10251
|
-
M.value && !e.readOnly ? (D(), o("div",
|
|
10320
|
+
M.value && !e.readOnly ? (D(), o("div", jf, [M.value.singleSelect ? a("", !0) : (D(), i($, {
|
|
10252
10321
|
key: 0,
|
|
10253
10322
|
disabled: M.value.disabled,
|
|
10254
10323
|
label: e.selectAllLabel,
|
|
@@ -10260,7 +10329,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10260
10329
|
variant: "ghost",
|
|
10261
10330
|
onClick: be
|
|
10262
10331
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
10263
|
-
])]), e.staged ? (D(), o("div",
|
|
10332
|
+
])]), e.staged ? (D(), o("div", Mf, [u($, {
|
|
10264
10333
|
label: e.cancelLabel,
|
|
10265
10334
|
variant: "ghost",
|
|
10266
10335
|
onClick: L(g)
|
|
@@ -10268,14 +10337,14 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10268
10337
|
label: e.applyLabel,
|
|
10269
10338
|
variant: "primary",
|
|
10270
10339
|
onClick: L(h)
|
|
10271
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
10340
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, Sf)]),
|
|
10272
10341
|
_: 3
|
|
10273
10342
|
}, 8, ["modelValue"]));
|
|
10274
10343
|
}
|
|
10275
|
-
}), [["__scopeId", "data-v-e3f66d03"]]),
|
|
10344
|
+
}), [["__scopeId", "data-v-e3f66d03"]]), Pf = ["tabindex"], Ff = {
|
|
10276
10345
|
key: 0,
|
|
10277
10346
|
class: "pv-hover-action-menu__actions"
|
|
10278
|
-
},
|
|
10347
|
+
}, If = { class: "pv-hover-action-menu__action-group" }, Lf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10279
10348
|
__name: "PvHoverActionMenu",
|
|
10280
10349
|
props: {
|
|
10281
10350
|
disabled: {
|
|
@@ -10298,12 +10367,12 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10298
10367
|
class: y(["pv-hover-action-menu", d.value]),
|
|
10299
10368
|
tabindex: e.options.length ? 0 : void 0,
|
|
10300
10369
|
"data-testid": "pv-hover-action-menu"
|
|
10301
|
-
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div",
|
|
10370
|
+
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", Ff, [u(tc, {
|
|
10302
10371
|
variant: e.variant,
|
|
10303
10372
|
"data-testid": "pv-hover-action-menu-actions",
|
|
10304
10373
|
onClick: r[0] ||= ae(() => {}, ["stop"])
|
|
10305
10374
|
}, {
|
|
10306
|
-
default: q(() => [s("div",
|
|
10375
|
+
default: q(() => [s("div", If, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
10307
10376
|
key: t.id,
|
|
10308
10377
|
variant: "dark",
|
|
10309
10378
|
position: "top-center",
|
|
@@ -10331,9 +10400,9 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10331
10400
|
_: 2
|
|
10332
10401
|
}, 1032, ["description"]))), 128))])]),
|
|
10333
10402
|
_: 1
|
|
10334
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
10403
|
+
}, 8, ["variant"])])) : a("", !0)], 10, Pf));
|
|
10335
10404
|
}
|
|
10336
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
10405
|
+
}), [["__scopeId", "data-v-6325cd25"]]), Rf = () => {
|
|
10337
10406
|
let e = (e, n) => {
|
|
10338
10407
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
10339
10408
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -10346,13 +10415,13 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10346
10415
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
10347
10416
|
} : null
|
|
10348
10417
|
};
|
|
10349
|
-
},
|
|
10418
|
+
}, zf = { class: "pv-flex" }, Bf = { class: "pv-text-body-md" }, Vf = ["textContent"], Hf = {
|
|
10350
10419
|
key: 0,
|
|
10351
10420
|
class: "pv-text-body-xs"
|
|
10352
|
-
},
|
|
10421
|
+
}, Uf = { key: 0 }, Wf = {
|
|
10353
10422
|
class: "pv-text-subdued pv-text-body-xs",
|
|
10354
10423
|
style: { "font-weight": "500" }
|
|
10355
|
-
},
|
|
10424
|
+
}, Gf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10356
10425
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
10357
10426
|
props: {
|
|
10358
10427
|
id: {},
|
|
@@ -10362,6 +10431,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10362
10431
|
subduedText: {},
|
|
10363
10432
|
icon: {},
|
|
10364
10433
|
hoverTitle: {},
|
|
10434
|
+
description: {},
|
|
10365
10435
|
rumActionName: {},
|
|
10366
10436
|
popoverRole: {},
|
|
10367
10437
|
companyName: {},
|
|
@@ -10402,13 +10472,13 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10402
10472
|
bold: !1
|
|
10403
10473
|
}), n;
|
|
10404
10474
|
});
|
|
10405
|
-
return (e, n) => (D(), o("div", null, [s("div",
|
|
10475
|
+
return (e, n) => (D(), o("div", null, [s("div", zf, [u(Z, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", Bf, [(D(!0), o(t, null, A(m.value, (e, t) => (D(), o("span", {
|
|
10406
10476
|
key: t,
|
|
10407
10477
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
10408
10478
|
textContent: I(e.text)
|
|
10409
|
-
}, null, 12,
|
|
10479
|
+
}, null, 12, Vf))), 128))]), f.value ? (D(), o("p", Hf, [c.value ? a("", !0) : (D(), o("span", Uf, "Search in ")), s("span", Wf, I(f.value), 1)])) : a("", !0)])])]));
|
|
10410
10480
|
}
|
|
10411
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
10481
|
+
}), [["__scopeId", "data-v-ff951d17"]]), Kf = /* @__PURE__ */ d({
|
|
10412
10482
|
__name: "QueryFormatter",
|
|
10413
10483
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
10414
10484
|
modelValue: { required: !0 },
|
|
@@ -10422,7 +10492,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10422
10492
|
}),
|
|
10423
10493
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
10424
10494
|
setup(e) {
|
|
10425
|
-
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } =
|
|
10495
|
+
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } = Rf(), u = r(() => {
|
|
10426
10496
|
let e = s.value?.queryTerms || [];
|
|
10427
10497
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
10428
10498
|
}), 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) => {
|
|
@@ -10454,17 +10524,17 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10454
10524
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
10455
10525
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
10456
10526
|
}
|
|
10457
|
-
}),
|
|
10527
|
+
}), qf = [
|
|
10458
10528
|
"disabled",
|
|
10459
10529
|
"placeholder",
|
|
10460
10530
|
"data-invalid"
|
|
10461
|
-
],
|
|
10531
|
+
], Jf = {
|
|
10462
10532
|
key: 2,
|
|
10463
10533
|
class: "pv-text-red pv-text-body-xs"
|
|
10464
|
-
},
|
|
10534
|
+
}, Yf = {
|
|
10465
10535
|
key: 1,
|
|
10466
10536
|
class: "pv-text-center"
|
|
10467
|
-
},
|
|
10537
|
+
}, Xf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10468
10538
|
__name: "PvQueryBuilderInput",
|
|
10469
10539
|
props: /* @__PURE__ */ g({
|
|
10470
10540
|
placeholder: { default: "Search" },
|
|
@@ -10513,7 +10583,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10513
10583
|
"update:options"
|
|
10514
10584
|
],
|
|
10515
10585
|
setup(e) {
|
|
10516
|
-
let n = e, c = { renderer:
|
|
10586
|
+
let n = e, c = { renderer: Gf }, l = H("search-input"), d = B(e, "searchText"), f = B(e, "query"), p = B(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = Rf(), v = k(!1), b = k(!1), S = k(!1), C = r(() => f.value === null ? n.placeholder : ""), w = k(null), T = r(() => w.value !== null && w.value !== "" && !b.value), E = () => {
|
|
10517
10587
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
10518
10588
|
};
|
|
10519
10589
|
n.enableCustomOptionsInput && J("Enter", () => {
|
|
@@ -10597,7 +10667,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10597
10667
|
"--inset-size": "4px",
|
|
10598
10668
|
"--flex-gap": "4px"
|
|
10599
10669
|
}, e.enableWrapQueryTerms || S.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
10600
|
-
}, [u(
|
|
10670
|
+
}, [u(Kf, {
|
|
10601
10671
|
modelValue: f.value,
|
|
10602
10672
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
10603
10673
|
"wrap-content": S.value,
|
|
@@ -10618,7 +10688,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10618
10688
|
style: x(d.value ? "min-width: 8rem;" : void 0),
|
|
10619
10689
|
onFocus: F,
|
|
10620
10690
|
onBlur: F
|
|
10621
|
-
}, null, 44,
|
|
10691
|
+
}, null, 44, qf), [[G, d.value]])], 4),
|
|
10622
10692
|
f.value && !e.hideClearButton ? (D(), i($, {
|
|
10623
10693
|
key: 1,
|
|
10624
10694
|
variant: "ghost",
|
|
@@ -10626,7 +10696,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10626
10696
|
size: "md",
|
|
10627
10697
|
onClick: E
|
|
10628
10698
|
})) : a("", !0),
|
|
10629
|
-
T.value ? (D(), o("p",
|
|
10699
|
+
T.value ? (D(), o("p", Jf, I(w.value), 1)) : a("", !0),
|
|
10630
10700
|
j.value.length > 0 || e.optionsLoading ? (D(), i(Cr, {
|
|
10631
10701
|
key: 3,
|
|
10632
10702
|
class: y({ "pv-hide": !v.value }),
|
|
@@ -10636,7 +10706,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10636
10706
|
},
|
|
10637
10707
|
isList: !0
|
|
10638
10708
|
}, {
|
|
10639
|
-
default: q(() => [e.optionsLoading ? (D(), o("div",
|
|
10709
|
+
default: q(() => [e.optionsLoading ? (D(), o("div", Yf, [u(Ne, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, A(j.value, (e, t) => (D(), i(ho, _({
|
|
10640
10710
|
key: `${t}-${e.searchText}`,
|
|
10641
10711
|
ref_for: !0
|
|
10642
10712
|
}, e, {
|
|
@@ -10647,7 +10717,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10647
10717
|
}, 8, ["class"])) : a("", !0)
|
|
10648
10718
|
], 34)), [[L(X), M]]);
|
|
10649
10719
|
}
|
|
10650
|
-
}), [["__scopeId", "data-v-97679942"]]),
|
|
10720
|
+
}), [["__scopeId", "data-v-97679942"]]), Zf = { class: "sidebar-header-content" }, Qf = { class: "content-panel" }, $f = 300, ep = /* @__PURE__ */ d({
|
|
10651
10721
|
__name: "PvSidebar",
|
|
10652
10722
|
props: /* @__PURE__ */ g({
|
|
10653
10723
|
disableToggle: { type: Boolean },
|
|
@@ -10674,7 +10744,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10674
10744
|
}, h = () => {
|
|
10675
10745
|
n.newVersion || r.value && (u && clearTimeout(u), u = setTimeout(() => {
|
|
10676
10746
|
l.value = !0;
|
|
10677
|
-
},
|
|
10747
|
+
}, $f));
|
|
10678
10748
|
}, g = () => {
|
|
10679
10749
|
n.newVersion || (u &&= (clearTimeout(u), null), m(), l.value = !1);
|
|
10680
10750
|
}, _ = () => {
|
|
@@ -10693,119 +10763,119 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10693
10763
|
onMouseenter: h,
|
|
10694
10764
|
onMouseleave: g,
|
|
10695
10765
|
onFocusin: h
|
|
10696
|
-
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div",
|
|
10766
|
+
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div", Zf, [j(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (D(), i($, {
|
|
10697
10767
|
key: 0,
|
|
10698
10768
|
class: "sidebar-toggle",
|
|
10699
10769
|
"left-icon": r.value ? "panel-left-open" : "panel-left-close",
|
|
10700
10770
|
"aria-label": r.value ? "Open sidebar" : "Close sidebar",
|
|
10701
10771
|
variant: "ghost",
|
|
10702
10772
|
onClick: _
|
|
10703
|
-
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div",
|
|
10773
|
+
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div", Qf, [j(t.$slots, "default")])], 2));
|
|
10704
10774
|
}
|
|
10705
|
-
}),
|
|
10775
|
+
}), tp = {
|
|
10706
10776
|
key: 0,
|
|
10707
10777
|
class: "sidebar-additional-header"
|
|
10708
|
-
},
|
|
10778
|
+
}, np = { class: "sidebar-header-content pv-full-width" }, rp = {
|
|
10709
10779
|
key: 0,
|
|
10710
10780
|
class: "pv-sidebar-nav-header"
|
|
10711
|
-
},
|
|
10781
|
+
}, ip = ["aria-label", "aria-expanded"], ap = {
|
|
10712
10782
|
class: "pv-flex",
|
|
10713
10783
|
style: { "min-width": "0" }
|
|
10714
|
-
},
|
|
10784
|
+
}, op = {
|
|
10715
10785
|
class: "pv-avatar-xs",
|
|
10716
10786
|
style: {
|
|
10717
10787
|
"border-radius": "4px",
|
|
10718
10788
|
"flex-shrink": "0"
|
|
10719
10789
|
}
|
|
10720
|
-
},
|
|
10790
|
+
}, sp = ["src"], cp = { key: 1 }, lp = ["title"], up = {
|
|
10721
10791
|
class: "pv-popover",
|
|
10722
10792
|
style: {
|
|
10723
10793
|
width: "fit-content",
|
|
10724
10794
|
"max-width": "280px",
|
|
10725
10795
|
"margin-top": "4px"
|
|
10726
10796
|
}
|
|
10727
|
-
},
|
|
10797
|
+
}, dp = {
|
|
10728
10798
|
role: "list",
|
|
10729
10799
|
class: "pv-popover-list pv-flow",
|
|
10730
10800
|
style: { "--flow-size": "0.25rem" },
|
|
10731
10801
|
"data-testid": "pv-sidebar-org-list"
|
|
10732
|
-
},
|
|
10802
|
+
}, fp = ["data-active"], pp = ["href", "data-org-value"], mp = {
|
|
10733
10803
|
class: "pv-avatar-xs",
|
|
10734
10804
|
style: { "border-radius": "4px" }
|
|
10735
|
-
},
|
|
10805
|
+
}, hp = ["src"], gp = { key: 1 }, _p = ["title"], vp = ["data-active"], yp = ["href", "data-org-value"], bp = ["title"], xp = { class: "pv-sidebar-nav" }, Sp = { key: 0 }, Cp = {
|
|
10736
10806
|
key: 1,
|
|
10737
10807
|
role: "list",
|
|
10738
10808
|
class: "pv-full-width pv-flow",
|
|
10739
10809
|
style: { "--flow-size": "0.25rem" }
|
|
10740
|
-
},
|
|
10810
|
+
}, wp = {
|
|
10741
10811
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10742
10812
|
"data-sidebar-expanded-content": "",
|
|
10743
10813
|
style: { "flex-wrap": "wrap" }
|
|
10744
|
-
},
|
|
10814
|
+
}, Tp = {
|
|
10745
10815
|
key: 0,
|
|
10746
10816
|
class: "pv-tag-purple pv-tag-sm"
|
|
10747
|
-
},
|
|
10817
|
+
}, Ep = ["onClick", "onKeydown"], Dp = [
|
|
10748
10818
|
"href",
|
|
10749
10819
|
"aria-current",
|
|
10750
10820
|
"title"
|
|
10751
|
-
],
|
|
10821
|
+
], Op = {
|
|
10752
10822
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10753
10823
|
"data-sidebar-expanded-content": "",
|
|
10754
10824
|
style: { "flex-wrap": "wrap" }
|
|
10755
|
-
},
|
|
10825
|
+
}, kp = {
|
|
10756
10826
|
key: 0,
|
|
10757
10827
|
class: "pv-tag-purple pv-tag-sm"
|
|
10758
|
-
},
|
|
10828
|
+
}, Ap = {
|
|
10759
10829
|
class: "pv-popover",
|
|
10760
10830
|
style: { "--position": "static" }
|
|
10761
|
-
},
|
|
10831
|
+
}, jp = {
|
|
10762
10832
|
role: "list",
|
|
10763
10833
|
class: "pv-popover-list"
|
|
10764
|
-
},
|
|
10834
|
+
}, Mp = ["data-active"], Np = ["href"], Pp = {
|
|
10765
10835
|
key: 0,
|
|
10766
10836
|
class: "pv-tag-purple pv-tag-sm"
|
|
10767
|
-
},
|
|
10837
|
+
}, Fp = ["onClick", "onAuxclick"], Ip = { "data-sidebar-expanded-content": "" }, Lp = { class: "pv-sidebar-nav-nested" }, Rp = [
|
|
10768
10838
|
"href",
|
|
10769
10839
|
"aria-current",
|
|
10770
10840
|
"title"
|
|
10771
|
-
],
|
|
10841
|
+
], zp = {
|
|
10772
10842
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10773
10843
|
style: { "flex-wrap": "wrap" }
|
|
10774
|
-
},
|
|
10844
|
+
}, Bp = {
|
|
10775
10845
|
key: 0,
|
|
10776
10846
|
class: "pv-tag-purple pv-tag-sm"
|
|
10777
|
-
},
|
|
10847
|
+
}, Vp = {
|
|
10778
10848
|
class: "pv-popover",
|
|
10779
10849
|
style: {
|
|
10780
10850
|
"--position": "static",
|
|
10781
10851
|
"--height": "350px"
|
|
10782
10852
|
}
|
|
10783
|
-
},
|
|
10853
|
+
}, Hp = {
|
|
10784
10854
|
role: "list",
|
|
10785
10855
|
class: "pv-popover-list"
|
|
10786
|
-
},
|
|
10856
|
+
}, Up = ["data-active"], Wp = ["href"], Gp = {
|
|
10787
10857
|
key: 0,
|
|
10788
10858
|
class: "pv-tag-purple pv-tag-sm"
|
|
10789
|
-
},
|
|
10859
|
+
}, Kp = {
|
|
10790
10860
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
10791
10861
|
style: { "--bottom": "0" }
|
|
10792
|
-
},
|
|
10862
|
+
}, qp = ["aria-expanded"], Jp = { class: "pv-popover pv-text-default pv-text-body-md" }, Yp = [
|
|
10793
10863
|
"aria-label",
|
|
10794
10864
|
"aria-expanded",
|
|
10795
10865
|
"title"
|
|
10796
|
-
],
|
|
10866
|
+
], Xp = {
|
|
10797
10867
|
class: "pv-avatar-xs",
|
|
10798
10868
|
style: {
|
|
10799
10869
|
"border-radius": "50%",
|
|
10800
10870
|
"flex-shrink": "0"
|
|
10801
10871
|
}
|
|
10802
|
-
},
|
|
10872
|
+
}, Zp = ["src"], Qp = { key: 1 }, $p = {
|
|
10803
10873
|
class: "pv-truncate",
|
|
10804
10874
|
"data-sidebar-expanded-content": ""
|
|
10805
|
-
},
|
|
10875
|
+
}, em = {
|
|
10806
10876
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
10807
10877
|
style: { "--height": "750px" }
|
|
10808
|
-
},
|
|
10878
|
+
}, tm = { class: "content-panel" }, nm = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", rm = /* @__PURE__ */ d({
|
|
10809
10879
|
__name: "PvSidebarV2",
|
|
10810
10880
|
props: /* @__PURE__ */ g({
|
|
10811
10881
|
disableToggle: { type: Boolean },
|
|
@@ -10829,11 +10899,11 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10829
10899
|
})), ee, U = (e) => e.hoverPanelSlot ? p ? (R.value, Yn(p, e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, W = (e, t, n) => {
|
|
10830
10900
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
10831
10901
|
}, G = (e) => {
|
|
10832
|
-
let t = P.get(e), n = t?.querySelector(
|
|
10902
|
+
let t = P.get(e), n = t?.querySelector(nm);
|
|
10833
10903
|
if (n) return n;
|
|
10834
10904
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
10835
|
-
if (t.matches(
|
|
10836
|
-
let e = t.querySelector(
|
|
10905
|
+
if (t.matches(nm)) return t;
|
|
10906
|
+
let e = t.querySelector(nm);
|
|
10837
10907
|
if (e) return e;
|
|
10838
10908
|
}
|
|
10839
10909
|
}, te = (e, t) => {
|
|
@@ -10914,7 +10984,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10914
10984
|
ref_key: "sidebarPanel",
|
|
10915
10985
|
ref: E,
|
|
10916
10986
|
class: "sidebar-panel"
|
|
10917
|
-
}, [s("div", null, [L(h) ? (D(), o("div",
|
|
10987
|
+
}, [s("div", null, [L(h) ? (D(), o("div", tp, [j(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": Y.value }]]) }, [s("div", np, [e.organizations && e.organizations.length ? (D(), o("div", rp, [u(nr, {
|
|
10918
10988
|
modelValue: pe.value,
|
|
10919
10989
|
"onUpdate:modelValue": r[0] ||= (e) => pe.value = e,
|
|
10920
10990
|
position: Y.value ? "right-top" : "bottom-left",
|
|
@@ -10931,32 +11001,32 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10931
11001
|
"data-testid": "pv-sidebar-org-switcher",
|
|
10932
11002
|
"aria-label": `Switch organization: ${J.value?.label}`,
|
|
10933
11003
|
"aria-expanded": pe.value
|
|
10934
|
-
}, [s("div",
|
|
11004
|
+
}, [s("div", ap, [s("span", op, [J.value?.avatarUrl ? (D(), o("img", {
|
|
10935
11005
|
key: 0,
|
|
10936
11006
|
src: J.value.avatarUrl,
|
|
10937
11007
|
alt: "Organization Avatar"
|
|
10938
|
-
}, null, 8,
|
|
11008
|
+
}, null, 8, sp)) : (D(), o("span", cp, I(J.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
10939
11009
|
class: "pv-text-title-lg pv-truncate",
|
|
10940
11010
|
"data-sidebar-expanded-content": "",
|
|
10941
11011
|
title: J.value?.label
|
|
10942
|
-
}, I(J.value?.label), 9,
|
|
11012
|
+
}, I(J.value?.label), 9, lp)]), u(Z, {
|
|
10943
11013
|
name: "chevron-down",
|
|
10944
11014
|
class: "pv-icon-16",
|
|
10945
11015
|
"data-sidebar-expanded-content": ""
|
|
10946
|
-
})], 8,
|
|
10947
|
-
content: q(() => [s("div",
|
|
11016
|
+
})], 8, ip)]),
|
|
11017
|
+
content: q(() => [s("div", up, [s("ul", dp, [(D(!0), o(t, null, A(e.organizations, (e) => (D(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
10948
11018
|
class: "pv-flex",
|
|
10949
11019
|
href: e.url,
|
|
10950
11020
|
"data-testid": "pv-sidebar-org-option",
|
|
10951
11021
|
"data-org-value": e.value
|
|
10952
|
-
}, [s("div",
|
|
11022
|
+
}, [s("div", mp, [e.avatarUrl ? (D(), o("img", {
|
|
10953
11023
|
key: 0,
|
|
10954
11024
|
src: e.avatarUrl,
|
|
10955
11025
|
alt: "Organization Avatar"
|
|
10956
|
-
}, null, 8,
|
|
11026
|
+
}, null, 8, hp)) : (D(), o("span", gp, I(e.label.slice(0, 1)), 1))]), s("span", {
|
|
10957
11027
|
class: "pv-truncate pv-flex-item",
|
|
10958
11028
|
title: e.label
|
|
10959
|
-
}, I(e.label), 9,
|
|
11029
|
+
}, I(e.label), 9, _p)], 8, pp)], 8, fp), (D(!0), o(t, null, A(e.entities, (e) => (D(), o("li", {
|
|
10960
11030
|
key: e.value,
|
|
10961
11031
|
style: { "padding-left": "0.5rem" },
|
|
10962
11032
|
"data-active": e.active || void 0
|
|
@@ -10969,7 +11039,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10969
11039
|
}, [u(Z, { name: "corner-down-right" }), s("span", {
|
|
10970
11040
|
class: "pv-truncate",
|
|
10971
11041
|
title: e.label
|
|
10972
|
-
}, I(e.label), 9,
|
|
11042
|
+
}, I(e.label), 9, bp)], 8, yp)], 8, vp))), 128))], 64))), 128))])])]),
|
|
10973
11043
|
_: 1
|
|
10974
11044
|
}, 8, [
|
|
10975
11045
|
"modelValue",
|
|
@@ -10992,9 +11062,9 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10992
11062
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
10993
11063
|
content: q(() => [l(I(Y.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
10994
11064
|
_: 1
|
|
10995
|
-
}))], 2)]), s("div",
|
|
10996
|
-
L(m) ? (D(), o("div",
|
|
10997
|
-
e.navItems && e.navItems.length ? (D(), o("ul",
|
|
11065
|
+
}))], 2)]), s("div", xp, [
|
|
11066
|
+
L(m) ? (D(), o("div", Sp, [j(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
11067
|
+
e.navItems && e.navItems.length ? (D(), o("ul", Cp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [U(e) ? (D(), i(nr, {
|
|
10998
11068
|
key: 0,
|
|
10999
11069
|
modelValue: O.value[e.value],
|
|
11000
11070
|
"onUpdate:modelValue": (t) => O.value[e.value] = t,
|
|
@@ -11024,7 +11094,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11024
11094
|
key: 0,
|
|
11025
11095
|
name: e.icon,
|
|
11026
11096
|
class: "pv-nav-icon"
|
|
11027
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11097
|
+
}, null, 8, ["name"])) : a("", !0), s("span", wp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Tp, I(e.badge.toUpperCase()), 1)) : a("", !0)])]),
|
|
11028
11098
|
_: 2
|
|
11029
11099
|
}, 1040, [
|
|
11030
11100
|
"href",
|
|
@@ -11041,7 +11111,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11041
11111
|
class: "pv-sidebar-hover-panel",
|
|
11042
11112
|
onClick: (t) => re(t, e.value),
|
|
11043
11113
|
onKeydown: (t) => ae(t, e.value)
|
|
11044
|
-
}, [j(n.$slots, e.hoverPanelSlot)], 40,
|
|
11114
|
+
}, [j(n.$slots, e.hoverPanelSlot)], 40, Ep)]),
|
|
11045
11115
|
_: 2
|
|
11046
11116
|
}, 1032, [
|
|
11047
11117
|
"modelValue",
|
|
@@ -11070,8 +11140,8 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11070
11140
|
key: 0,
|
|
11071
11141
|
name: e.icon,
|
|
11072
11142
|
class: "pv-nav-icon"
|
|
11073
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11074
|
-
content: q(() => [s("div",
|
|
11143
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Op, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", kp, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Dp)]),
|
|
11144
|
+
content: q(() => [s("div", Ap, [s("ul", jp, [s("li", { "data-active": e.active || void 0 }, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Pp, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Np)], 8, Mp)])])]),
|
|
11075
11145
|
_: 2
|
|
11076
11146
|
}, 1032, [
|
|
11077
11147
|
"use-teleport",
|
|
@@ -11104,14 +11174,14 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11104
11174
|
key: 0,
|
|
11105
11175
|
name: e.icon,
|
|
11106
11176
|
class: "pv-nav-icon"
|
|
11107
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11108
|
-
default: q(() => [s("div",
|
|
11177
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Ip, I(e.label), 1)], 40, Fp)]),
|
|
11178
|
+
default: q(() => [s("div", Lp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("a", _({
|
|
11109
11179
|
key: e.value,
|
|
11110
11180
|
href: e.url
|
|
11111
11181
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
11112
11182
|
"aria-current": e.active ? "page" : void 0,
|
|
11113
11183
|
title: e.label
|
|
11114
|
-
}), [s("span",
|
|
11184
|
+
}), [s("span", zp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Bp, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Rp))), 128))])]),
|
|
11115
11185
|
_: 2
|
|
11116
11186
|
}, 1032, [
|
|
11117
11187
|
"modelValue",
|
|
@@ -11119,17 +11189,17 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11119
11189
|
"default-open",
|
|
11120
11190
|
"summary-attrs"
|
|
11121
11191
|
])]),
|
|
11122
|
-
content: q(() => [s("div",
|
|
11192
|
+
content: q(() => [s("div", Vp, [s("ul", Hp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("li", {
|
|
11123
11193
|
key: e.value,
|
|
11124
11194
|
"data-active": e.active || void 0
|
|
11125
|
-
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span",
|
|
11195
|
+
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Gp, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Wp)], 8, Up))), 128))])])]),
|
|
11126
11196
|
_: 2
|
|
11127
11197
|
}, 1032, [
|
|
11128
11198
|
"use-teleport",
|
|
11129
11199
|
"teleport-location",
|
|
11130
11200
|
"disabled"
|
|
11131
11201
|
]))]))), 128))])) : a("", !0),
|
|
11132
|
-
s("div",
|
|
11202
|
+
s("div", Kp, [L(g) ? (D(), i(nr, {
|
|
11133
11203
|
key: 0,
|
|
11134
11204
|
modelValue: fe.value,
|
|
11135
11205
|
"onUpdate:modelValue": r[1] ||= (e) => fe.value = e,
|
|
@@ -11151,8 +11221,8 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11151
11221
|
}, [u(Z, {
|
|
11152
11222
|
name: "help-circle",
|
|
11153
11223
|
class: "pv-icon-20 pv-nav-icon"
|
|
11154
|
-
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8,
|
|
11155
|
-
content: q(() => [s("div",
|
|
11224
|
+
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, qp)]),
|
|
11225
|
+
content: q(() => [s("div", Jp, [j(n.$slots, "sidebar-help-content")])]),
|
|
11156
11226
|
_: 3
|
|
11157
11227
|
}, 8, [
|
|
11158
11228
|
"modelValue",
|
|
@@ -11180,12 +11250,12 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11180
11250
|
"aria-label": e.profile.name,
|
|
11181
11251
|
"aria-expanded": X.value,
|
|
11182
11252
|
title: e.profile.name
|
|
11183
|
-
}, [s("span",
|
|
11253
|
+
}, [s("span", Xp, [e.profile.avatarUrl ? (D(), o("img", {
|
|
11184
11254
|
key: 0,
|
|
11185
11255
|
src: e.profile.avatarUrl,
|
|
11186
11256
|
alt: ""
|
|
11187
|
-
}, null, 8,
|
|
11188
|
-
content: q(() => [s("div",
|
|
11257
|
+
}, null, 8, Zp)) : (D(), o("span", Qp, I(e.profile.name.slice(0, 1)), 1))]), s("span", $p, I(e.profile.name), 1)], 8, Yp)]),
|
|
11258
|
+
content: q(() => [s("div", em, [j(n.$slots, "sidebar-profile-content")])]),
|
|
11189
11259
|
_: 3
|
|
11190
11260
|
}, 8, [
|
|
11191
11261
|
"modelValue",
|
|
@@ -11195,7 +11265,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11195
11265
|
"teleport-location"
|
|
11196
11266
|
])) : a("", !0)])
|
|
11197
11267
|
])], 512),
|
|
11198
|
-
s("div",
|
|
11268
|
+
s("div", tm, [j(n.$slots, "default")]),
|
|
11199
11269
|
s("div", {
|
|
11200
11270
|
ref_key: "popoverTeleportTarget",
|
|
11201
11271
|
ref: T,
|
|
@@ -11203,11 +11273,11 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11203
11273
|
}, null, 512)
|
|
11204
11274
|
], 38));
|
|
11205
11275
|
}
|
|
11206
|
-
}),
|
|
11276
|
+
}), im = {
|
|
11207
11277
|
class: "pv-toc",
|
|
11208
11278
|
role: "list",
|
|
11209
11279
|
style: { "min-width": "160px" }
|
|
11210
|
-
},
|
|
11280
|
+
}, am = ["aria-current"], om = ["href", "onClick"], sm = /* @__PURE__ */ d({
|
|
11211
11281
|
__name: "PvTableOfContents",
|
|
11212
11282
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
11213
11283
|
modelValue: { required: !1 },
|
|
@@ -11218,7 +11288,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11218
11288
|
let r = B(e, "modelValue"), c = n, u = (e, t) => {
|
|
11219
11289
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
11220
11290
|
};
|
|
11221
|
-
return (n, c) => (D(), o("ul",
|
|
11291
|
+
return (n, c) => (D(), o("ul", im, [(D(!0), o(t, null, A(e.items, (e) => (D(), o("li", {
|
|
11222
11292
|
key: e.id,
|
|
11223
11293
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
11224
11294
|
}, [s("a", {
|
|
@@ -11227,9 +11297,9 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11227
11297
|
}, [e.icon ? (D(), i(Z, {
|
|
11228
11298
|
key: 0,
|
|
11229
11299
|
name: e.icon
|
|
11230
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8,
|
|
11300
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8, om)], 8, am))), 128))]));
|
|
11231
11301
|
}
|
|
11232
|
-
}),
|
|
11302
|
+
}), cm = { class: "pv-flex" }, lm = ["data-clickable", "onClick"], um = /* @__PURE__ */ d({
|
|
11233
11303
|
__name: "PvStepper",
|
|
11234
11304
|
props: {
|
|
11235
11305
|
count: { default: 5 },
|
|
@@ -11242,14 +11312,14 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11242
11312
|
emits: ["update:active"],
|
|
11243
11313
|
setup(e) {
|
|
11244
11314
|
let n = e;
|
|
11245
|
-
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (D(), o("div",
|
|
11315
|
+
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (D(), o("div", cm, [(D(!0), o(t, null, A(e.count, (t, r) => (D(), o("div", {
|
|
11246
11316
|
key: r,
|
|
11247
11317
|
"data-clickable": e.clickable,
|
|
11248
11318
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
11249
11319
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
11250
|
-
}, null, 10,
|
|
11320
|
+
}, null, 10, lm))), 128))]));
|
|
11251
11321
|
}
|
|
11252
|
-
}),
|
|
11322
|
+
}), dm = { theme: {
|
|
11253
11323
|
preset: Te,
|
|
11254
11324
|
options: {
|
|
11255
11325
|
darkModeSelector: "none",
|
|
@@ -11258,15 +11328,15 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11258
11328
|
order: "pit-viper-v2, primevue"
|
|
11259
11329
|
}
|
|
11260
11330
|
}
|
|
11261
|
-
} },
|
|
11262
|
-
e.use(we,
|
|
11263
|
-
},
|
|
11264
|
-
let e = m(
|
|
11331
|
+
} }, fm = (e) => {
|
|
11332
|
+
e.use(we, dm);
|
|
11333
|
+
}, pm = Symbol.for("pv.rum-context"), mm = () => {
|
|
11334
|
+
let e = m(pm, void 0);
|
|
11265
11335
|
return () => {
|
|
11266
11336
|
let t = e?.value;
|
|
11267
11337
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
11268
11338
|
};
|
|
11269
|
-
},
|
|
11339
|
+
}, hm = (e, t = {}, n = {}) => {
|
|
11270
11340
|
try {
|
|
11271
11341
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
11272
11342
|
let r = n.consumer == null ? t : {
|
|
@@ -11275,7 +11345,7 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11275
11345
|
};
|
|
11276
11346
|
window.DD_RUM.addAction(e, r);
|
|
11277
11347
|
} catch {}
|
|
11278
|
-
},
|
|
11348
|
+
}, gm = (e) => {
|
|
11279
11349
|
queueMicrotask(() => {
|
|
11280
11350
|
try {
|
|
11281
11351
|
e();
|
|
@@ -11283,6 +11353,6 @@ var Qd = ["aria-label"], $d = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11283
11353
|
});
|
|
11284
11354
|
};
|
|
11285
11355
|
//#endregion
|
|
11286
|
-
export { Oi as ContextCardEnum, ii as PvAccordion,
|
|
11356
|
+
export { Oi as ContextCardEnum, ii as PvAccordion, tc as PvActionBar, or as PvActionButton, lr as PvAiButton, Ca as PvAvatar, as as PvAvatarGroup, Jr as PvBanner, va as PvBreadcrumbs, $ as PvButton, mr as PvButtonWithTooltip, Hs as PvCard, ds as PvCheckbox, Ni as PvCompanyLabel, Ir as PvCompanyLogo, $r as PvCompanyTag, He as PvCounterBadge, gi as PvDatePicker, vi as PvDateTime, Lc as PvDistributionBar, Di as PvDrawer, Er as PvDropdown, Qr as PvEmptyErrorState, Zs as PvExpandableContent, ks as PvFileInput, Nf as PvFilterModal, gf as PvFilterPanel, Zo as PvGhostInput, ns as PvHeader, Wu as PvHorizontalScroller, Lf as PvHoverActionMenu, Z as PvIcon, Ss as PvInput, Xs as PvInsightCard, Co as PvMenu, ho as PvMenuItem, Hr as PvModal, jo as PvMultiSelectButton, Bo as PvPagination, xr as PvPill, Cr as PvPopover, Or as PvPopoverMenu, nr as PvPopoverV2, Fc as PvProgressBar, Xf as PvQueryBuilderInput, hs as PvRadioGroup, el as PvRange, Ms as PvRating, vr as PvReleaseBadge, li as PvSearchInput, kr as PvSegmentedControl, No as PvSelectButton, Uo as PvSelectableCard, Jo as PvSidePanel, ep as PvSidebar, rm as PvSidebarV2, _s as PvSkeleton, ca as PvSpinesContextCard, fa as PvSpinesContextDrawer, Ne as PvSpinner, _r as PvSplitButton, gs as PvSprite, um as PvStepper, ni as PvSuggestionTag, Ja as PvSwitch, Nr as PvTabList, sm as PvTableOfContents, ha as PvTabs, br as PvTag, Ui as PvTextArea, $s as PvToast, qi as PvToggleButton, ls as PvToggleGroup, fr as PvTooltip, ir as PvTooltipV2, kc as PvTree, Ac as PvTreeGroup, Us as PvWidget, pm as RumContextKey, hm as addRumAction, Kd as createPvFilterStore, gm as deferRumTask, qd as providePvFilterStore, _i as useDateTime, Jd as useOptionalPvFilterStore, fm as usePvComponents, Yd as usePvFilterStore, mm as useRumContext };
|
|
11287
11357
|
|
|
11288
11358
|
//# sourceMappingURL=pv-components-base.mjs.map
|