@turquoisehealth/pit-viper 2.240.2 → 2.241.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 +19 -0
- package/_site/assets/css/pit-viper-consumer.css +15 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +13 -0
- package/_site/assets/css/pit-viper-v2.css +19 -0
- package/_site/assets/css/pit-viper.css +15 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-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-popover-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-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/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +701 -694
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +806 -799
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +12 -8
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +11 -7
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +11 -7
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +11 -7
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +11 -7
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +11 -7
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +16 -9
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +494 -486
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-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-7b85ebe3]{font-size:14px}.pv-popover-pinned-sections[data-v-7b85ebe3]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-7b85ebe3]{overflow-y:auto}.pv-button-icon[aria-expanded=true][data-v-bb8eae3f]{background-color:var(--button-icon-pressed-background-color,#c7d8db)}.pv-select[data-v-bb8eae3f]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-b18beebf]{border:none}.pv-tab-list :where(li)[data-active][data-v-b18beebf]:after{content:"";background-color:var(--tab-list-indicator-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-557e720d]{color:var(--color-text-subdued,#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-9130f2b2]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-9130f2b2]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-9130f2b2]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-9130f2b2]:hover,&[data-v-9130f2b2]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-9130f2b2]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-9130f2b2]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-9130f2b2]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-9130f2b2]{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-cfa4cb54]{color:var(--color-text-subdued,#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-query-builder-input-wrapper[data-v-fb2cc737]{background:var(--color-background-accent,var(--secondary-lighten-8,#f7f8f8));border-radius:var(--corner-radius-M,4px);border:1px solid var(--color-border,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-fb2cc737]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-fb2cc737]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fb2cc737]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-group-label[data-v-fb2cc737]{padding:.5rem .5rem .25rem;font-weight:500;display:block}.pv-query-builder-option-active[data-v-fb2cc737]{background-color:var(--popover-list-item-hover-background-color,#f5f5f5);border-radius:var(--popover-list-item-radius,4px)}.pv-query-builder-input-wrapper[data-v-fb2cc737]: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-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-button-icon[aria-expanded=true][data-v-bb8eae3f]{background-color:var(--button-icon-pressed-background-color,#c7d8db)}.pv-select[data-v-bb8eae3f]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-b18beebf]{border:none}.pv-tab-list :where(li)[data-active][data-v-b18beebf]:after{content:"";background-color:var(--tab-list-indicator-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-557e720d]{color:var(--color-text-subdued,#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-9130f2b2]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-9130f2b2]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-9130f2b2]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-9130f2b2]:hover,&[data-v-9130f2b2]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-9130f2b2]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-9130f2b2]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-9130f2b2]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-9130f2b2]{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-cfa4cb54]{color:var(--color-text-subdued,#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-query-builder-input-wrapper[data-v-62aa7767]{background:var(--color-background-accent,var(--secondary-lighten-8,#f7f8f8));border-radius:var(--corner-radius-M,4px);border:1px solid var(--color-border,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-62aa7767]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-62aa7767]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-62aa7767]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-group-label[data-v-62aa7767]{padding:.5rem .5rem .25rem;font-weight:500;display:block}.pv-query-builder-option-active[data-v-62aa7767]{background-color:var(--popover-list-item-hover-background-color,#f5f5f5);border-radius:var(--popover-list-item-radius,4px)}.pv-query-builder-input-wrapper[data-v-62aa7767]: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 J, withKeys as re, withModifiers as ie } from "vue";
|
|
4
4
|
import { onClickOutside as ae, onKeyStroke as Y, useDebounceFn as oe, useElementBounding as se, useElementHover as ce, useMutationObserver as X, useResizeObserver as le, useToggle as ue, watchDebounced as de } from "@vueuse/core";
|
|
@@ -1861,12 +1861,13 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1861
1861
|
type: Boolean,
|
|
1862
1862
|
default: !1
|
|
1863
1863
|
},
|
|
1864
|
-
listId: { default: void 0 },
|
|
1865
|
-
listRole: { default: "list" },
|
|
1866
1864
|
isSortable: {
|
|
1867
1865
|
type: Boolean,
|
|
1868
1866
|
default: !1
|
|
1869
|
-
}
|
|
1867
|
+
},
|
|
1868
|
+
listClass: { default: void 0 },
|
|
1869
|
+
listId: { default: void 0 },
|
|
1870
|
+
listRole: { default: "list" }
|
|
1870
1871
|
},
|
|
1871
1872
|
emits: ["list-order-updated"],
|
|
1872
1873
|
setup(e, { expose: n, emit: i }) {
|
|
@@ -1891,13 +1892,13 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1891
1892
|
id: e.listId,
|
|
1892
1893
|
ref: "popoverList",
|
|
1893
1894
|
role: e.listRole,
|
|
1894
|
-
class: "pv-popover-list",
|
|
1895
|
+
class: y(["pv-popover-list", e.listClass]),
|
|
1895
1896
|
style: x(e.cssCustomListProperties)
|
|
1896
|
-
}, [j(n.$slots, "default", {}, void 0, !0)],
|
|
1897
|
+
}, [j(n.$slots, "default", {}, void 0, !0)], 14, Cr),
|
|
1897
1898
|
j(n.$slots, "footer", {}, void 0, !0)
|
|
1898
1899
|
], 64)) : j(n.$slots, "default", { key: 1 }, void 0, !0)], 14, Sr));
|
|
1899
1900
|
}
|
|
1900
|
-
}), [["__scopeId", "data-v-
|
|
1901
|
+
}), [["__scopeId", "data-v-fe6e9c6a"]]), Tr = [
|
|
1901
1902
|
"aria-label",
|
|
1902
1903
|
"aria-expanded",
|
|
1903
1904
|
"aria-controls",
|
|
@@ -4995,10 +4996,10 @@ var Ba = {
|
|
|
4995
4996
|
_: 3
|
|
4996
4997
|
}, 16, ["modelValue", "offset"]));
|
|
4997
4998
|
}
|
|
4998
|
-
}), No = {
|
|
4999
|
+
}), No = { class: "pv-popover-scroll" }, Po = {
|
|
4999
5000
|
key: 0,
|
|
5000
5001
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
5001
|
-
},
|
|
5002
|
+
}, Fo = /* @__PURE__ */ d({
|
|
5002
5003
|
__name: "PvSelectButton",
|
|
5003
5004
|
props: /* @__PURE__ */ g({
|
|
5004
5005
|
defaultOpen: { type: Boolean },
|
|
@@ -5143,48 +5144,52 @@ var Ba = {
|
|
|
5143
5144
|
"selectedOption"
|
|
5144
5145
|
])]),
|
|
5145
5146
|
content: q(() => [s("div", {
|
|
5146
|
-
class: "pv-popover",
|
|
5147
|
+
class: "pv-popover pv-popover-scrollable",
|
|
5147
5148
|
"data-test-id": "pv-popover",
|
|
5148
5149
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
5149
|
-
}, [
|
|
5150
|
-
"
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5150
|
+
}, [s("div", No, [
|
|
5151
|
+
e.disableSearchInput ? a("", !0) : (D(), o("div", Po, [u(ui, {
|
|
5152
|
+
"model-value": m.value,
|
|
5153
|
+
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
5154
|
+
class: "pv-stack-4",
|
|
5155
|
+
placeholder: e.searchPlaceholder
|
|
5156
|
+
}, null, 8, ["model-value", "placeholder"])])),
|
|
5157
|
+
S.value.length > 0 ? (D(), i(wo, {
|
|
5158
|
+
key: 1,
|
|
5159
|
+
selectedItems: C.value,
|
|
5160
|
+
"onUpdate:selectedItems": n[1] ||= (e) => C.value = e,
|
|
5161
|
+
options: S.value,
|
|
5162
|
+
config: l.value,
|
|
5163
|
+
queryText: e.highlightSearchText ? m.value : null,
|
|
5164
|
+
singleSelect: !0,
|
|
5165
|
+
disableDeselect: e.disableDeselect,
|
|
5166
|
+
childrenDisplay: e.childrenDisplay,
|
|
5167
|
+
onHandleSelected: w
|
|
5168
|
+
}, null, 8, [
|
|
5169
|
+
"selectedItems",
|
|
5170
|
+
"options",
|
|
5171
|
+
"config",
|
|
5172
|
+
"queryText",
|
|
5173
|
+
"disableDeselect",
|
|
5174
|
+
"childrenDisplay"
|
|
5175
|
+
])) : (D(), i(Na, { key: 2 })),
|
|
5176
|
+
j(t.$slots, "footer")
|
|
5177
|
+
])], 4)]),
|
|
5178
|
+
_: 3
|
|
5174
5179
|
}, 16, ["modelValue"]));
|
|
5175
5180
|
}
|
|
5176
|
-
}),
|
|
5181
|
+
}), Io = {
|
|
5177
5182
|
short: 5,
|
|
5178
5183
|
long: 7
|
|
5179
|
-
},
|
|
5180
|
-
if (n <=
|
|
5184
|
+
}, Lo = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
5185
|
+
if (n <= Io[e]) return Array.from({ length: n }, (e, t) => ({
|
|
5181
5186
|
page: t + 1,
|
|
5182
5187
|
label: (t + 1).toString()
|
|
5183
5188
|
}));
|
|
5184
5189
|
let r = [{
|
|
5185
5190
|
page: 1,
|
|
5186
5191
|
label: "1"
|
|
5187
|
-
}], i =
|
|
5192
|
+
}], i = Io[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
5188
5193
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
5189
5194
|
page: 0,
|
|
5190
5195
|
label: "..."
|
|
@@ -5203,11 +5208,11 @@ var Ba = {
|
|
|
5203
5208
|
page: n,
|
|
5204
5209
|
label: n.toString()
|
|
5205
5210
|
}), r;
|
|
5206
|
-
} }),
|
|
5211
|
+
} }), Ro = ["data-style"], zo = ["data-testid", "aria-current"], Bo = {
|
|
5207
5212
|
key: 0,
|
|
5208
5213
|
class: "dots-button",
|
|
5209
5214
|
disabled: ""
|
|
5210
|
-
},
|
|
5215
|
+
}, Vo = ["onClick"], Ho = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
5211
5216
|
__name: "PvPagination",
|
|
5212
5217
|
props: /* @__PURE__ */ g({
|
|
5213
5218
|
size: { default: "lg" },
|
|
@@ -5220,7 +5225,7 @@ var Ba = {
|
|
|
5220
5225
|
}),
|
|
5221
5226
|
emits: ["update:modelValue"],
|
|
5222
5227
|
setup(e) {
|
|
5223
|
-
let { getPaginations: n } =
|
|
5228
|
+
let { getPaginations: n } = Lo({ variant: e.variant }), r = B(e, "modelValue");
|
|
5224
5229
|
return (i, a) => (D(), o("ol", {
|
|
5225
5230
|
role: "list",
|
|
5226
5231
|
class: "pv-pagination",
|
|
@@ -5242,10 +5247,10 @@ var Ba = {
|
|
|
5242
5247
|
key: e.page,
|
|
5243
5248
|
"data-testid": `pagination-button-${e.page}`,
|
|
5244
5249
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
5245
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
5250
|
+
}, [e.label === "..." ? (D(), o("button", Bo, I(e.label), 1)) : (D(), o("button", {
|
|
5246
5251
|
key: 1,
|
|
5247
5252
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
5248
|
-
}, I(e.label), 9,
|
|
5253
|
+
}, I(e.label), 9, Vo))], 8, zo))), 128)),
|
|
5249
5254
|
s("li", null, [u($, {
|
|
5250
5255
|
"data-testid": "pagination-right-arrow-icon",
|
|
5251
5256
|
disabled: r.value === e.maxPages,
|
|
@@ -5254,14 +5259,14 @@ var Ba = {
|
|
|
5254
5259
|
variant: "ghost",
|
|
5255
5260
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
5256
5261
|
}, null, 8, ["disabled"])])
|
|
5257
|
-
], 8,
|
|
5262
|
+
], 8, Ro));
|
|
5258
5263
|
}
|
|
5259
|
-
}), [["__scopeId", "data-v-cfa4cb54"]]),
|
|
5264
|
+
}), [["__scopeId", "data-v-cfa4cb54"]]), Uo = ["for"], Wo = [
|
|
5260
5265
|
"checked",
|
|
5261
5266
|
"type",
|
|
5262
5267
|
"value",
|
|
5263
5268
|
"id"
|
|
5264
|
-
],
|
|
5269
|
+
], Go = /* @__PURE__ */ d({
|
|
5265
5270
|
__name: "PvSelectableCard",
|
|
5266
5271
|
props: {
|
|
5267
5272
|
variant: { default: "default" },
|
|
@@ -5283,34 +5288,34 @@ var Ba = {
|
|
|
5283
5288
|
type: e.deselect ? "checkbox" : "radio",
|
|
5284
5289
|
value: e.value,
|
|
5285
5290
|
id: t.value
|
|
5286
|
-
}, null, 8,
|
|
5291
|
+
}, null, 8, Wo), j(n.$slots, "default")], 10, Uo));
|
|
5287
5292
|
}
|
|
5288
|
-
}),
|
|
5293
|
+
}), Ko = { class: "pv-layout-two-sidebar" }, qo = ["data-hidden"], Jo = { "data-layout": "main-section" }, Yo = ["data-hidden"], Xo = /* @__PURE__ */ d({
|
|
5289
5294
|
__name: "PvSidePanel",
|
|
5290
5295
|
props: {
|
|
5291
5296
|
showLeftSidebar: { type: Boolean },
|
|
5292
5297
|
showRightSidebar: { type: Boolean }
|
|
5293
5298
|
},
|
|
5294
5299
|
setup(e) {
|
|
5295
|
-
return (t, n) => (D(), o("div",
|
|
5300
|
+
return (t, n) => (D(), o("div", Ko, [
|
|
5296
5301
|
s("div", {
|
|
5297
5302
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
5298
5303
|
"data-testid": "pv-side-panel-left",
|
|
5299
5304
|
"data-layout": "left-sidebar"
|
|
5300
|
-
}, [j(t.$slots, "left-sidebar")], 8,
|
|
5301
|
-
s("div",
|
|
5305
|
+
}, [j(t.$slots, "left-sidebar")], 8, qo),
|
|
5306
|
+
s("div", Jo, [j(t.$slots, "main")]),
|
|
5302
5307
|
s("div", {
|
|
5303
5308
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
5304
5309
|
"data-testid": "pv-side-panel-right",
|
|
5305
5310
|
"data-layout": "right-sidebar"
|
|
5306
|
-
}, [j(t.$slots, "right-sidebar")], 8,
|
|
5311
|
+
}, [j(t.$slots, "right-sidebar")], 8, Yo)
|
|
5307
5312
|
]));
|
|
5308
5313
|
}
|
|
5309
|
-
}),
|
|
5314
|
+
}), Zo = ["data-style"], Qo = [
|
|
5310
5315
|
"placeholder",
|
|
5311
5316
|
"disabled",
|
|
5312
5317
|
"name"
|
|
5313
|
-
],
|
|
5318
|
+
], $o = /* @__PURE__ */ d({
|
|
5314
5319
|
__name: "PvGhostInput",
|
|
5315
5320
|
props: /* @__PURE__ */ g({
|
|
5316
5321
|
variant: { default: "h1" },
|
|
@@ -5372,7 +5377,7 @@ var Ba = {
|
|
|
5372
5377
|
placeholder: e.placeholder,
|
|
5373
5378
|
disabled: e.disabled,
|
|
5374
5379
|
name: n[e.variant]
|
|
5375
|
-
}), null, 16,
|
|
5380
|
+
}), null, 16, Qo), [[G, l.value]]),
|
|
5376
5381
|
e.showEditIcon ? (D(), i($, {
|
|
5377
5382
|
key: 0,
|
|
5378
5383
|
"left-icon": "edit",
|
|
@@ -5380,12 +5385,12 @@ var Ba = {
|
|
|
5380
5385
|
variant: "ghost",
|
|
5381
5386
|
onClick: d
|
|
5382
5387
|
})) : a("", !0)
|
|
5383
|
-
], 8,
|
|
5388
|
+
], 8, Zo));
|
|
5384
5389
|
}
|
|
5385
|
-
}),
|
|
5390
|
+
}), es = {
|
|
5386
5391
|
key: 0,
|
|
5387
5392
|
class: "pv-heading-2"
|
|
5388
|
-
},
|
|
5393
|
+
}, ts = ["id"], ns = { class: "pv-flex" }, rs = ["id"], is = /* @__PURE__ */ d({
|
|
5389
5394
|
__name: "PvHeader",
|
|
5390
5395
|
props: {
|
|
5391
5396
|
as: { default: "div" },
|
|
@@ -5413,14 +5418,14 @@ var Ba = {
|
|
|
5413
5418
|
"background-color": "#fdfdfc"
|
|
5414
5419
|
}
|
|
5415
5420
|
}, {
|
|
5416
|
-
default: q(() => [e.title ? (D(), o("span",
|
|
5421
|
+
default: q(() => [e.title ? (D(), o("span", es, I(e.title), 1)) : (D(), o("div", {
|
|
5417
5422
|
key: 1,
|
|
5418
5423
|
id: e.headerTitleId,
|
|
5419
5424
|
class: "pv-flex"
|
|
5420
|
-
}, [j(r.$slots, "left")], 8,
|
|
5425
|
+
}, [j(r.$slots, "left")], 8, ts)), s("div", ns, [s("div", {
|
|
5421
5426
|
id: e.headerActionsId,
|
|
5422
5427
|
class: "pv-flex"
|
|
5423
|
-
}, [j(r.$slots, "right")], 8,
|
|
5428
|
+
}, [j(r.$slots, "right")], 8, rs), e.showAskTqButton ? (D(), o("div", {
|
|
5424
5429
|
key: 0,
|
|
5425
5430
|
class: y({ "pv-border-left": L(n) }),
|
|
5426
5431
|
style: { "padding-inline-start": "0.5rem" }
|
|
@@ -5433,7 +5438,7 @@ var Ba = {
|
|
|
5433
5438
|
_: 3
|
|
5434
5439
|
}, 8, ["class"]));
|
|
5435
5440
|
}
|
|
5436
|
-
}),
|
|
5441
|
+
}), as = ["data-more"], os = ["src", "alt"], ss = /* @__PURE__ */ d({
|
|
5437
5442
|
__name: "PvAvatarGroup",
|
|
5438
5443
|
props: {
|
|
5439
5444
|
items: {},
|
|
@@ -5462,18 +5467,18 @@ var Ba = {
|
|
|
5462
5467
|
key: 1,
|
|
5463
5468
|
src: e.image,
|
|
5464
5469
|
alt: e.alt ?? ""
|
|
5465
|
-
}, null, 8,
|
|
5470
|
+
}, null, 8, os)) : (D(), o("div", {
|
|
5466
5471
|
key: 2,
|
|
5467
5472
|
class: y(c.value)
|
|
5468
|
-
}, null, 2))]))), 128))], 10,
|
|
5473
|
+
}, null, 2))]))), 128))], 10, as));
|
|
5469
5474
|
}
|
|
5470
|
-
}),
|
|
5475
|
+
}), cs = { class: "pv-flex" }, ls = [
|
|
5471
5476
|
"name",
|
|
5472
5477
|
"value",
|
|
5473
5478
|
"checked",
|
|
5474
5479
|
"disabled",
|
|
5475
5480
|
"onChange"
|
|
5476
|
-
],
|
|
5481
|
+
], us = { key: 1 }, ds = /* @__PURE__ */ d({
|
|
5477
5482
|
__name: "PvToggleGroup",
|
|
5478
5483
|
props: /* @__PURE__ */ g({
|
|
5479
5484
|
disabled: { type: Boolean },
|
|
@@ -5495,7 +5500,7 @@ var Ba = {
|
|
|
5495
5500
|
r.value = e;
|
|
5496
5501
|
}
|
|
5497
5502
|
};
|
|
5498
|
-
return (n, u) => (D(), o("div",
|
|
5503
|
+
return (n, u) => (D(), o("div", cs, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
5499
5504
|
key: t.value,
|
|
5500
5505
|
description: e.hideLabels ? t.label : ""
|
|
5501
5506
|
}, {
|
|
@@ -5508,21 +5513,21 @@ var Ba = {
|
|
|
5508
5513
|
class: "pv-radio",
|
|
5509
5514
|
disabled: e.disabled || t.disabled,
|
|
5510
5515
|
onChange: (e) => l(t)
|
|
5511
|
-
}, null, 40,
|
|
5516
|
+
}, null, 40, ls),
|
|
5512
5517
|
t.icon ? (D(), i(Q, {
|
|
5513
5518
|
key: 0,
|
|
5514
5519
|
name: t.icon
|
|
5515
5520
|
}, null, 8, ["name"])) : a("", !0),
|
|
5516
|
-
e.hideLabels ? a("", !0) : (D(), o("span",
|
|
5521
|
+
e.hideLabels ? a("", !0) : (D(), o("span", us, I(t.label), 1))
|
|
5517
5522
|
], 2)]),
|
|
5518
5523
|
_: 2
|
|
5519
5524
|
}, 1032, ["description"]))), 128))]));
|
|
5520
5525
|
}
|
|
5521
|
-
}),
|
|
5526
|
+
}), fs = [
|
|
5522
5527
|
"aria-label",
|
|
5523
5528
|
"disabled",
|
|
5524
5529
|
"indeterminate"
|
|
5525
|
-
],
|
|
5530
|
+
], ps = /* @__PURE__ */ d({
|
|
5526
5531
|
__name: "PvCheckbox",
|
|
5527
5532
|
props: /* @__PURE__ */ g({
|
|
5528
5533
|
ariaLabel: {},
|
|
@@ -5543,13 +5548,13 @@ var Ba = {
|
|
|
5543
5548
|
"aria-label": e.ariaLabel,
|
|
5544
5549
|
disabled: e.disabled,
|
|
5545
5550
|
indeterminate: e.indeterminate
|
|
5546
|
-
}, null, 8,
|
|
5551
|
+
}, null, 8, fs)), [[ee, t.value]]);
|
|
5547
5552
|
}
|
|
5548
|
-
}),
|
|
5553
|
+
}), ms = ["aria-label", "aria-labelledby"], hs = ["id"], gs = [
|
|
5549
5554
|
"name",
|
|
5550
5555
|
"value",
|
|
5551
5556
|
"disabled"
|
|
5552
|
-
],
|
|
5557
|
+
], _s = /* @__PURE__ */ d({
|
|
5553
5558
|
__name: "PvRadioGroup",
|
|
5554
5559
|
props: /* @__PURE__ */ g({
|
|
5555
5560
|
ariaLabel: {},
|
|
@@ -5580,7 +5585,7 @@ var Ba = {
|
|
|
5580
5585
|
key: 0,
|
|
5581
5586
|
id: L(u),
|
|
5582
5587
|
class: "pv-label pv-stack-8"
|
|
5583
|
-
}, I(e.label), 9,
|
|
5588
|
+
}, I(e.label), 9, hs)) : a("", !0), s("div", {
|
|
5584
5589
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
5585
5590
|
style: x(f.value)
|
|
5586
5591
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -5593,9 +5598,9 @@ var Ba = {
|
|
|
5593
5598
|
name: d.value,
|
|
5594
5599
|
value: t.value,
|
|
5595
5600
|
disabled: e.disabled || t.disabled
|
|
5596
|
-
}, null, 8,
|
|
5601
|
+
}, null, 8, gs), [[W, i.value]]), l(" " + I(t.label), 1)]))), 128))], 6)], 8, ms));
|
|
5597
5602
|
}
|
|
5598
|
-
}),
|
|
5603
|
+
}), vs = /* @__PURE__ */ d({
|
|
5599
5604
|
__name: "PvSprite",
|
|
5600
5605
|
props: {
|
|
5601
5606
|
src: {},
|
|
@@ -5616,7 +5621,7 @@ var Ba = {
|
|
|
5616
5621
|
id: "pv-sprite-content"
|
|
5617
5622
|
}, null, -1)]));
|
|
5618
5623
|
}
|
|
5619
|
-
}),
|
|
5624
|
+
}), ys = /* @__PURE__ */ d({
|
|
5620
5625
|
__name: "PvSkeleton",
|
|
5621
5626
|
props: {
|
|
5622
5627
|
size: { default: "md" },
|
|
@@ -5643,18 +5648,18 @@ var Ba = {
|
|
|
5643
5648
|
"width"
|
|
5644
5649
|
]));
|
|
5645
5650
|
}
|
|
5646
|
-
}),
|
|
5651
|
+
}), bs = ["for"], xs = {
|
|
5647
5652
|
key: 0,
|
|
5648
5653
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
5649
5654
|
style: { "--inset-size": "6px 10px" }
|
|
5650
|
-
},
|
|
5655
|
+
}, Ss = { class: "pv-relative pv-flex-item" }, Cs = [
|
|
5651
5656
|
"disabled",
|
|
5652
5657
|
"type",
|
|
5653
5658
|
"placeholder",
|
|
5654
5659
|
"id",
|
|
5655
5660
|
"data-invalid",
|
|
5656
5661
|
"step"
|
|
5657
|
-
],
|
|
5662
|
+
], ws = /* @__PURE__ */ d({
|
|
5658
5663
|
__name: "PvInput",
|
|
5659
5664
|
props: /* @__PURE__ */ g({
|
|
5660
5665
|
showLabel: { type: Boolean },
|
|
@@ -5681,8 +5686,8 @@ var Ba = {
|
|
|
5681
5686
|
"data-testid": "pv-input-label",
|
|
5682
5687
|
class: "pv-label pv-stack-8",
|
|
5683
5688
|
for: e.id
|
|
5684
|
-
}, [j(n.$slots, "label")], 8,
|
|
5685
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div",
|
|
5689
|
+
}, [j(n.$slots, "label")], 8, bs)) : a("", !0),
|
|
5690
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", xs, I(e.prefixLabel), 1)) : a("", !0), s("div", Ss, [e.inputIcon ? (D(), i(Q, {
|
|
5686
5691
|
key: 0,
|
|
5687
5692
|
class: "pv-absolute input-icon-position",
|
|
5688
5693
|
name: e.inputIcon
|
|
@@ -5700,7 +5705,7 @@ var Ba = {
|
|
|
5700
5705
|
id: e.id,
|
|
5701
5706
|
"data-invalid": e.error ? !0 : void 0,
|
|
5702
5707
|
step: e.step
|
|
5703
|
-
}), null, 16,
|
|
5708
|
+
}), null, 16, Cs), [[U, c.value]])])], 2),
|
|
5704
5709
|
e.lowerLabel ? (D(), o("p", {
|
|
5705
5710
|
key: 1,
|
|
5706
5711
|
"data-testid": "pv-input-lower-label",
|
|
@@ -5712,15 +5717,15 @@ var Ba = {
|
|
|
5712
5717
|
}, I(e.lowerLabel), 3)) : a("", !0)
|
|
5713
5718
|
], 64));
|
|
5714
5719
|
}
|
|
5715
|
-
}),
|
|
5720
|
+
}), Ts = { class: "pv-stack-8" }, Es = { class: "pv-input-file" }, Ds = [
|
|
5716
5721
|
"id",
|
|
5717
5722
|
"accept",
|
|
5718
5723
|
"disabled",
|
|
5719
5724
|
"multiple"
|
|
5720
|
-
],
|
|
5725
|
+
], Os = ["for"], ks = {
|
|
5721
5726
|
key: 0,
|
|
5722
5727
|
class: "pv-stack-8"
|
|
5723
|
-
},
|
|
5728
|
+
}, As = { class: "pv-flex-item pv-truncate pv-text-body-sm" }, js = /* @__PURE__ */ d({
|
|
5724
5729
|
__name: "PvFileInput",
|
|
5725
5730
|
props: /* @__PURE__ */ g({
|
|
5726
5731
|
helperText: {},
|
|
@@ -5746,7 +5751,7 @@ var Ba = {
|
|
|
5746
5751
|
}, m = (e) => {
|
|
5747
5752
|
d.value = d.value.filter((t) => t !== e);
|
|
5748
5753
|
}, h = r(() => !c.showSelectedFile || d.value.length === 0 ? c.helperText : d.value.length === 1 ? d.value[0].name : `${d.value.length} files selected`);
|
|
5749
|
-
return (n, r) => (D(), o("div",
|
|
5754
|
+
return (n, r) => (D(), o("div", Ts, [s("div", Es, [
|
|
5750
5755
|
s("input", {
|
|
5751
5756
|
id: L(f),
|
|
5752
5757
|
type: "file",
|
|
@@ -5755,11 +5760,11 @@ var Ba = {
|
|
|
5755
5760
|
disabled: e.disabled,
|
|
5756
5761
|
multiple: e.multiple,
|
|
5757
5762
|
onChange: p
|
|
5758
|
-
}, null, 40,
|
|
5763
|
+
}, null, 40, Ds),
|
|
5759
5764
|
s("label", {
|
|
5760
5765
|
for: L(f),
|
|
5761
5766
|
class: "pv-label"
|
|
5762
|
-
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8,
|
|
5767
|
+
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8, Os),
|
|
5763
5768
|
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),
|
|
5764
5769
|
e.showSelectedFile && d.value.length === 1 ? (D(), i($, {
|
|
5765
5770
|
key: 0,
|
|
@@ -5769,10 +5774,10 @@ var Ba = {
|
|
|
5769
5774
|
"aria-label": "Remove file",
|
|
5770
5775
|
onClick: r[0] ||= (e) => m(d.value[0])
|
|
5771
5776
|
})) : a("", !0)
|
|
5772
|
-
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul",
|
|
5777
|
+
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul", ks, [(D(!0), o(t, null, A(d.value, (e) => (D(), o("li", {
|
|
5773
5778
|
key: e.name,
|
|
5774
5779
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
5775
|
-
}, [s("p",
|
|
5780
|
+
}, [s("p", As, I(e.name), 1), u($, {
|
|
5776
5781
|
"left-icon": "trash",
|
|
5777
5782
|
variant: "destructive",
|
|
5778
5783
|
size: "md",
|
|
@@ -5780,7 +5785,7 @@ var Ba = {
|
|
|
5780
5785
|
onClick: (t) => m(e)
|
|
5781
5786
|
}, null, 8, ["onClick"])]))), 128))])) : a("", !0)]));
|
|
5782
5787
|
}
|
|
5783
|
-
}),
|
|
5788
|
+
}), Ms = ["data-rating"], Ns = ["value"], Ps = /* @__PURE__ */ d({
|
|
5784
5789
|
__name: "PvRating",
|
|
5785
5790
|
props: {
|
|
5786
5791
|
variant: { default: "dot" },
|
|
@@ -5799,18 +5804,18 @@ var Ba = {
|
|
|
5799
5804
|
min: "0",
|
|
5800
5805
|
max: "5",
|
|
5801
5806
|
value: e.value
|
|
5802
|
-
}, "4.0 stars", 8,
|
|
5807
|
+
}, "4.0 stars", 8, Ns)], 12, Ms));
|
|
5803
5808
|
}
|
|
5804
|
-
}),
|
|
5809
|
+
}), Fs = {
|
|
5805
5810
|
key: 0,
|
|
5806
5811
|
class: "pv-flex pv-full-width"
|
|
5807
|
-
},
|
|
5812
|
+
}, Is = { class: "pv-flex-item pv-truncate" }, Ls = { class: "pv-card-hover-action__action pv-flex" }, Rs = {
|
|
5808
5813
|
key: 1,
|
|
5809
5814
|
class: "pv-flex pv-full-width"
|
|
5810
|
-
},
|
|
5815
|
+
}, zs = { class: "pv-flex-item pv-truncate" }, Bs = { class: "pv-card-hover-action__action pv-flex" }, Vs = {
|
|
5811
5816
|
key: 2,
|
|
5812
5817
|
class: "pv-flex pv-full-width"
|
|
5813
|
-
},
|
|
5818
|
+
}, Hs = { class: "pv-flex-item pv-truncate" }, Us = { class: "pv-card-hover-action__action pv-flex" }, Ws = /* @__PURE__ */ d({
|
|
5814
5819
|
__name: "PvCard",
|
|
5815
5820
|
props: {
|
|
5816
5821
|
href: {},
|
|
@@ -5846,9 +5851,9 @@ var Ba = {
|
|
|
5846
5851
|
"data-testid": "pv-card"
|
|
5847
5852
|
}, {
|
|
5848
5853
|
default: q(() => [c.value ? (D(), o(t, { key: 0 }, [
|
|
5849
|
-
e.headerAction ? (D(), o("div",
|
|
5850
|
-
e.descriptionAction ? (D(), o("div",
|
|
5851
|
-
e.footerAction ? (D(), o("div",
|
|
5854
|
+
e.headerAction ? (D(), o("div", Fs, [s("div", Is, [j(n.$slots, "header")]), s("div", Ls, [j(n.$slots, "header-action")])])) : a("", !0),
|
|
5855
|
+
e.descriptionAction ? (D(), o("div", Rs, [s("div", zs, [j(n.$slots, "description")]), s("div", Bs, [j(n.$slots, "description-action")])])) : a("", !0),
|
|
5856
|
+
e.footerAction ? (D(), o("div", Vs, [s("div", Hs, [j(n.$slots, "footer")]), s("div", Us, [j(n.$slots, "footer-action")])])) : a("", !0)
|
|
5852
5857
|
], 64)) : j(n.$slots, "default", { key: 1 })]),
|
|
5853
5858
|
_: 3
|
|
5854
5859
|
}, 8, [
|
|
@@ -5858,34 +5863,34 @@ var Ba = {
|
|
|
5858
5863
|
"style"
|
|
5859
5864
|
]));
|
|
5860
5865
|
}
|
|
5861
|
-
}),
|
|
5866
|
+
}), Gs = /* @__PURE__ */ d({
|
|
5862
5867
|
__name: "PvWidget",
|
|
5863
5868
|
setup(e) {
|
|
5864
|
-
return (e, t) => (D(), i(
|
|
5869
|
+
return (e, t) => (D(), i(Ws, { class: "pv-inset-square-16" }, {
|
|
5865
5870
|
default: q(() => [j(e.$slots, "default")]),
|
|
5866
5871
|
_: 3
|
|
5867
5872
|
}));
|
|
5868
5873
|
}
|
|
5869
|
-
}),
|
|
5874
|
+
}), Ks = {
|
|
5870
5875
|
class: "pv-flex-vertical",
|
|
5871
5876
|
style: {
|
|
5872
5877
|
"--flex-align": "flex-start",
|
|
5873
5878
|
"--flex-gap": "0.25rem"
|
|
5874
5879
|
}
|
|
5875
|
-
},
|
|
5880
|
+
}, qs = {
|
|
5876
5881
|
key: 0,
|
|
5877
5882
|
class: "pv-flex",
|
|
5878
5883
|
style: { "--flex-gap": "0.25rem" }
|
|
5879
|
-
},
|
|
5884
|
+
}, Js = { class: "pv-text-body-sm" }, Ys = {
|
|
5880
5885
|
key: 1,
|
|
5881
5886
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
5882
|
-
},
|
|
5887
|
+
}, Xs = {
|
|
5883
5888
|
key: 2,
|
|
5884
5889
|
class: "pv-heading-2"
|
|
5885
|
-
},
|
|
5890
|
+
}, Zs = {
|
|
5886
5891
|
key: 3,
|
|
5887
5892
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
5888
|
-
},
|
|
5893
|
+
}, Qs = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
5889
5894
|
__name: "PvInsightCard",
|
|
5890
5895
|
props: {
|
|
5891
5896
|
icon: { default: "ai" },
|
|
@@ -5905,22 +5910,22 @@ var Ba = {
|
|
|
5905
5910
|
emits: ["click", "icon-click"],
|
|
5906
5911
|
setup(e) {
|
|
5907
5912
|
let t = e, n = r(() => t.icon || t.insight);
|
|
5908
|
-
return (t, r) => (D(), i(
|
|
5913
|
+
return (t, r) => (D(), i(Ws, {
|
|
5909
5914
|
variant: "secondary",
|
|
5910
5915
|
interactive: e.interactive,
|
|
5911
5916
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
5912
5917
|
class: "pv-relative"
|
|
5913
5918
|
}, {
|
|
5914
|
-
default: q(() => [s("div",
|
|
5915
|
-
n.value ? (D(), o("div",
|
|
5919
|
+
default: q(() => [s("div", Ks, [
|
|
5920
|
+
n.value ? (D(), o("div", qs, [e.icon ? (D(), i(Q, {
|
|
5916
5921
|
key: 0,
|
|
5917
5922
|
style: { color: "#218c88" },
|
|
5918
5923
|
name: e.icon,
|
|
5919
5924
|
size: 12
|
|
5920
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
5921
|
-
e.upperLabel ? (D(), o("span",
|
|
5922
|
-
e.title ? (D(), o("span",
|
|
5923
|
-
e.description ? (D(), o("span",
|
|
5925
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Js, I(e.insight), 1)])) : a("", !0),
|
|
5926
|
+
e.upperLabel ? (D(), o("span", Ys, I(e.upperLabel), 1)) : a("", !0),
|
|
5927
|
+
e.title ? (D(), o("span", Xs, I(e.title), 1)) : a("", !0),
|
|
5928
|
+
e.description ? (D(), o("span", Zs, I(e.description), 1)) : a("", !0)
|
|
5924
5929
|
]), e.showButton ? (D(), i($, {
|
|
5925
5930
|
key: 0,
|
|
5926
5931
|
"left-icon": "new-tab",
|
|
@@ -5933,7 +5938,7 @@ var Ba = {
|
|
|
5933
5938
|
_: 1
|
|
5934
5939
|
}, 8, ["interactive"]));
|
|
5935
5940
|
}
|
|
5936
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
5941
|
+
}), [["__scopeId", "data-v-c1185c07"]]), $s = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
5937
5942
|
__name: "PvExpandableContent",
|
|
5938
5943
|
props: {
|
|
5939
5944
|
lines: { default: 4 },
|
|
@@ -5987,7 +5992,7 @@ var Ba = {
|
|
|
5987
5992
|
"left-icon": l.value ? "chevron-up" : "chevron-down"
|
|
5988
5993
|
}, null, 8, ["label", "left-icon"])) : a("", !0)], 6));
|
|
5989
5994
|
}
|
|
5990
|
-
}), [["__scopeId", "data-v-fc5fc7e0"]]),
|
|
5995
|
+
}), [["__scopeId", "data-v-fc5fc7e0"]]), ec = { class: "pv-text-body-md" }, tc = /* @__PURE__ */ d({
|
|
5991
5996
|
__name: "PvToast",
|
|
5992
5997
|
props: {
|
|
5993
5998
|
variant: { default: "info" },
|
|
@@ -6012,7 +6017,7 @@ var Ba = {
|
|
|
6012
6017
|
name: e.icon ? e.icon : n[e.variant],
|
|
6013
6018
|
size: 20
|
|
6014
6019
|
}, null, 8, ["name"]),
|
|
6015
|
-
s("p",
|
|
6020
|
+
s("p", ec, I(e.label), 1),
|
|
6016
6021
|
j(r.$slots, "default"),
|
|
6017
6022
|
u($, {
|
|
6018
6023
|
variant: "ghost",
|
|
@@ -6024,29 +6029,29 @@ var Ba = {
|
|
|
6024
6029
|
}, null, 8, ["inverse"])
|
|
6025
6030
|
], 2));
|
|
6026
6031
|
}
|
|
6027
|
-
}),
|
|
6032
|
+
}), nc = ["data-style"], rc = /* @__PURE__ */ d({
|
|
6028
6033
|
__name: "PvActionBar",
|
|
6029
6034
|
props: { variant: { default: "white" } },
|
|
6030
6035
|
setup(e) {
|
|
6031
6036
|
return (t, n) => (D(), o("div", {
|
|
6032
6037
|
class: "pv-action-bar-container",
|
|
6033
6038
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
6034
|
-
}, [j(t.$slots, "default")], 8,
|
|
6039
|
+
}, [j(t.$slots, "default")], 8, nc));
|
|
6035
6040
|
}
|
|
6036
|
-
}),
|
|
6041
|
+
}), ic = {
|
|
6037
6042
|
class: "pv-flex pv-truncate",
|
|
6038
6043
|
style: {
|
|
6039
6044
|
"min-width": "0",
|
|
6040
6045
|
"min-height": "20px"
|
|
6041
6046
|
}
|
|
6042
|
-
},
|
|
6047
|
+
}, ac = ["title"], oc = /* @__PURE__ */ d({
|
|
6043
6048
|
__name: "PvSimpleItemTree",
|
|
6044
6049
|
props: {
|
|
6045
6050
|
label: {},
|
|
6046
6051
|
icon: {}
|
|
6047
6052
|
},
|
|
6048
6053
|
setup(e) {
|
|
6049
|
-
return (t, n) => (D(), o("div",
|
|
6054
|
+
return (t, n) => (D(), o("div", ic, [e.icon ? (D(), i(Q, {
|
|
6050
6055
|
key: 0,
|
|
6051
6056
|
name: e.icon
|
|
6052
6057
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -6056,9 +6061,9 @@ var Ba = {
|
|
|
6056
6061
|
"min-width": "0"
|
|
6057
6062
|
},
|
|
6058
6063
|
title: e.label
|
|
6059
|
-
}, I(e.label), 9,
|
|
6064
|
+
}, I(e.label), 9, ac)]));
|
|
6060
6065
|
}
|
|
6061
|
-
}),
|
|
6066
|
+
}), sc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6062
6067
|
__name: "PvTreeReorderIcon",
|
|
6063
6068
|
setup(e) {
|
|
6064
6069
|
return (e, t) => (D(), i(Q, {
|
|
@@ -6066,7 +6071,7 @@ var Ba = {
|
|
|
6066
6071
|
class: "reorder-icon pv-text-tertiary"
|
|
6067
6072
|
}));
|
|
6068
6073
|
}
|
|
6069
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
6074
|
+
}), [["__scopeId", "data-v-1efb9068"]]), cc = /* @__PURE__ */ d({
|
|
6070
6075
|
__name: "PvButtonTreeItem",
|
|
6071
6076
|
props: {
|
|
6072
6077
|
selected: { type: Boolean },
|
|
@@ -6101,7 +6106,7 @@ var Ba = {
|
|
|
6101
6106
|
_: 3
|
|
6102
6107
|
}, 8, ["class"]));
|
|
6103
6108
|
}
|
|
6104
|
-
}),
|
|
6109
|
+
}), lc = /* @__PURE__ */ d({
|
|
6105
6110
|
__name: "PvCheckboxTreeItem",
|
|
6106
6111
|
props: {
|
|
6107
6112
|
selected: { type: Boolean },
|
|
@@ -6130,38 +6135,38 @@ var Ba = {
|
|
|
6130
6135
|
"pv-tree-item-selected": e.selected,
|
|
6131
6136
|
"pv-tree-item-disabled": e.disableSelection
|
|
6132
6137
|
}
|
|
6133
|
-
]) }, [e.disableSelection ? a("", !0) : (D(), i(
|
|
6138
|
+
]) }, [e.disableSelection ? a("", !0) : (D(), i(ps, {
|
|
6134
6139
|
key: 0,
|
|
6135
6140
|
checked: e.selected,
|
|
6136
6141
|
onClick: s
|
|
6137
6142
|
}, null, 8, ["checked"])), j(t.$slots, "default")], 2));
|
|
6138
6143
|
}
|
|
6139
|
-
}),
|
|
6144
|
+
}), uc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6140
6145
|
__name: "PvTreeConnector",
|
|
6141
6146
|
props: { isLast: { type: Boolean } },
|
|
6142
6147
|
setup(e) {
|
|
6143
6148
|
return (t, n) => (D(), o("div", { class: y(e.isLast ? "pv-tree-connector-end" : "pv-tree-connector-middle") }, null, 2));
|
|
6144
6149
|
}
|
|
6145
|
-
}), [["__scopeId", "data-v-2a7afaff"]]),
|
|
6150
|
+
}), [["__scopeId", "data-v-2a7afaff"]]), dc = () => ({
|
|
6146
6151
|
indentPadding: (e, t = 0) => `${(e + t) * 24}px`,
|
|
6147
6152
|
connectorOffset: (e) => `${e * 24 + 8}px`,
|
|
6148
6153
|
showsConnector: (e, t) => !!(t && e[t]?.showNestedTree),
|
|
6149
6154
|
showsChildConnectors: (e, t) => !!e[t]?.showNestedTree,
|
|
6150
6155
|
childLevel: ({ level: e, showNestedTree: t, childrenShowNestedTree: n, additionalNestingLevel: r = 0 }) => e + (n && !t ? 0 : 1) + r
|
|
6151
|
-
}),
|
|
6156
|
+
}), fc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6152
6157
|
__name: "PvTreeConnectorGroup",
|
|
6153
6158
|
props: {
|
|
6154
6159
|
active: { type: Boolean },
|
|
6155
6160
|
level: {}
|
|
6156
6161
|
},
|
|
6157
6162
|
setup(e) {
|
|
6158
|
-
let t = e, { connectorOffset: n } =
|
|
6163
|
+
let t = e, { connectorOffset: n } = dc(), i = r(() => t.active ? { "--tree-connector-left": n(t.level) } : {});
|
|
6159
6164
|
return (t, n) => (D(), o("div", {
|
|
6160
6165
|
class: y({ "pv-tree-connector-line": e.active }),
|
|
6161
6166
|
style: x(i.value)
|
|
6162
6167
|
}, [j(t.$slots, "default", {}, void 0, !0)], 6));
|
|
6163
6168
|
}
|
|
6164
|
-
}), [["__scopeId", "data-v-fb9813d5"]]),
|
|
6169
|
+
}), [["__scopeId", "data-v-fb9813d5"]]), pc = () => {
|
|
6165
6170
|
let e = k(null);
|
|
6166
6171
|
return {
|
|
6167
6172
|
hoveredId: e,
|
|
@@ -6172,15 +6177,15 @@ var Ba = {
|
|
|
6172
6177
|
e.value = null;
|
|
6173
6178
|
}
|
|
6174
6179
|
};
|
|
6175
|
-
},
|
|
6180
|
+
}, mc = Symbol("DraggingStateKey"), hc = Symbol("DraggingGroupNameKey"), gc = Symbol("DropIndicatorKey"), _c = () => {
|
|
6176
6181
|
let e = k(!1), t = k(null), n = k(null);
|
|
6177
|
-
return O(
|
|
6182
|
+
return O(mc, e), O(hc, t), O(gc, n), {
|
|
6178
6183
|
isDragging: e,
|
|
6179
6184
|
draggingGroupName: t,
|
|
6180
6185
|
dropIndicator: n
|
|
6181
6186
|
};
|
|
6182
|
-
},
|
|
6183
|
-
let e = m(
|
|
6187
|
+
}, vc = () => {
|
|
6188
|
+
let e = m(mc, k(!1)), t = m(hc, k(null)), n = m(gc, k(null)), r = (n) => {
|
|
6184
6189
|
e.value = !0, t.value = n ?? null;
|
|
6185
6190
|
}, i = () => {
|
|
6186
6191
|
e.value = !1, t.value = null, o();
|
|
@@ -6202,8 +6207,8 @@ var Ba = {
|
|
|
6202
6207
|
onDragStart: r,
|
|
6203
6208
|
onDragEnd: i
|
|
6204
6209
|
};
|
|
6205
|
-
},
|
|
6206
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
6210
|
+
}, yc = () => {
|
|
6211
|
+
let { setDropIndicator: e, clearDropIndicator: t } = vc();
|
|
6207
6212
|
return {
|
|
6208
6213
|
getDragGroupConfig: (e, t) => {
|
|
6209
6214
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -6238,8 +6243,8 @@ var Ba = {
|
|
|
6238
6243
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
6239
6244
|
}
|
|
6240
6245
|
};
|
|
6241
|
-
},
|
|
6242
|
-
let { dropIndicator: e } =
|
|
6246
|
+
}, bc = () => {
|
|
6247
|
+
let { dropIndicator: e } = vc();
|
|
6243
6248
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
6244
6249
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
6245
6250
|
return {
|
|
@@ -6248,7 +6253,7 @@ var Ba = {
|
|
|
6248
6253
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
6249
6254
|
};
|
|
6250
6255
|
} };
|
|
6251
|
-
},
|
|
6256
|
+
}, xc = { class: "pv-flex pv-full-width" }, Sc = ["data-parent-id"], Cc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6252
6257
|
__name: "PvSimpleNestedTreeItem",
|
|
6253
6258
|
props: {
|
|
6254
6259
|
option: {},
|
|
@@ -6264,9 +6269,9 @@ var Ba = {
|
|
|
6264
6269
|
},
|
|
6265
6270
|
emits: ["handle-tree-select", "update:children"],
|
|
6266
6271
|
setup(e, { emit: t }) {
|
|
6267
|
-
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } =
|
|
6272
|
+
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } = vc(), { dragAndDropIndicatorClasses: p } = bc(), { hoveredId: m, handleMouseEnter: h, handleMouseLeave: g } = pc(), { canItemBeDragged: _, getDragAndDropDisabled: v, handleMoveCallback: b, getDragGroupConfig: S, canAcceptDrop: C } = yc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = dc(), k = () => {
|
|
6268
6273
|
d(S(n.settings, n.option).name);
|
|
6269
|
-
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6274
|
+
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? lc : cc), P = r(() => T(n.settings, n.parentField)), F = r(() => n.index === n.totalSiblings - 1), I = r(() => P.value && !F.value), R = r(() => O({
|
|
6270
6275
|
level: n.level,
|
|
6271
6276
|
showNestedTree: P.value,
|
|
6272
6277
|
childrenShowNestedTree: E(n.settings, n.option.field)
|
|
@@ -6281,7 +6286,7 @@ var Ba = {
|
|
|
6281
6286
|
}), B = r(() => n.isParentPathOpen ?? !0);
|
|
6282
6287
|
return (t, n) => {
|
|
6283
6288
|
let r = M("PvSimpleNestedTreeItem", !0);
|
|
6284
|
-
return D(), i(
|
|
6289
|
+
return D(), i(fc, {
|
|
6285
6290
|
active: I.value,
|
|
6286
6291
|
level: e.level
|
|
6287
6292
|
}, {
|
|
@@ -6301,7 +6306,7 @@ var Ba = {
|
|
|
6301
6306
|
onMouseleave: n[2] ||= (e) => L(g)(),
|
|
6302
6307
|
onContextmenu: n[3] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6303
6308
|
}, {
|
|
6304
|
-
default: q(() => [J(u(
|
|
6309
|
+
default: q(() => [J(u(sc, null, null, 512), [[te, L(m) === e.option.node_id && L(_)(e.isDraggable, e.settings, e.option)]]), s("div", xc, [P.value ? (D(), i(uc, {
|
|
6305
6310
|
key: 0,
|
|
6306
6311
|
"is-last": F.value
|
|
6307
6312
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
@@ -6315,7 +6320,7 @@ var Ba = {
|
|
|
6315
6320
|
"settings",
|
|
6316
6321
|
"is-draggable",
|
|
6317
6322
|
"params"
|
|
6318
|
-
])) : (D(), i(
|
|
6323
|
+
])) : (D(), i(oc, {
|
|
6319
6324
|
key: 2,
|
|
6320
6325
|
label: e.option.label,
|
|
6321
6326
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6377,12 +6382,12 @@ var Ba = {
|
|
|
6377
6382
|
"class",
|
|
6378
6383
|
"onEnd",
|
|
6379
6384
|
"onAdd"
|
|
6380
|
-
])], 8,
|
|
6385
|
+
])], 8, Sc)]),
|
|
6381
6386
|
_: 1
|
|
6382
6387
|
}, 8, ["active", "level"]);
|
|
6383
6388
|
};
|
|
6384
6389
|
}
|
|
6385
|
-
}), [["__scopeId", "data-v-f706f606"]]),
|
|
6390
|
+
}), [["__scopeId", "data-v-f706f606"]]), wc = ["data-parent-id"], Tc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6386
6391
|
__name: "PvSimpleNestedTree",
|
|
6387
6392
|
props: {
|
|
6388
6393
|
option: {},
|
|
@@ -6398,14 +6403,14 @@ var Ba = {
|
|
|
6398
6403
|
},
|
|
6399
6404
|
emits: ["handle-tree-select", "update:children"],
|
|
6400
6405
|
setup(e, { emit: t }) {
|
|
6401
|
-
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
6406
|
+
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = pc(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = yc(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = vc(), { dragAndDropIndicatorClasses: C } = bc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = dc(), k = () => {
|
|
6402
6407
|
b(h(n.settings, n.option).name);
|
|
6403
6408
|
}, A = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), j = r(() => T(n.settings, n.parentField)), M = r(() => O({
|
|
6404
6409
|
level: n.level,
|
|
6405
6410
|
showNestedTree: j.value,
|
|
6406
6411
|
childrenShowNestedTree: E(n.settings, n.option.field),
|
|
6407
6412
|
additionalNestingLevel: A.value
|
|
6408
|
-
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ?
|
|
6413
|
+
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ? lc : cc, I = r({
|
|
6409
6414
|
get: () => [...n.option.children || []],
|
|
6410
6415
|
set: (e) => {
|
|
6411
6416
|
o("update:children", {
|
|
@@ -6414,7 +6419,7 @@ var Ba = {
|
|
|
6414
6419
|
});
|
|
6415
6420
|
}
|
|
6416
6421
|
}), 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);
|
|
6417
|
-
return (t, n) => (D(), i(
|
|
6422
|
+
return (t, n) => (D(), i(fc, {
|
|
6418
6423
|
class: "pv-flow",
|
|
6419
6424
|
style: { "--flow-size": "0px" },
|
|
6420
6425
|
active: B.value,
|
|
@@ -6437,8 +6442,8 @@ var Ba = {
|
|
|
6437
6442
|
onContextmenu: n[3] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6438
6443
|
}, {
|
|
6439
6444
|
default: q(() => [
|
|
6440
|
-
J(u(
|
|
6441
|
-
j.value ? (D(), i(
|
|
6445
|
+
J(u(sc, null, null, 512), [[te, L(c) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6446
|
+
j.value ? (D(), i(uc, {
|
|
6442
6447
|
key: 0,
|
|
6443
6448
|
"is-last": z.value
|
|
6444
6449
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6453,7 +6458,7 @@ var Ba = {
|
|
|
6453
6458
|
"settings",
|
|
6454
6459
|
"selected",
|
|
6455
6460
|
"params"
|
|
6456
|
-
])) : (D(), i(
|
|
6461
|
+
])) : (D(), i(oc, {
|
|
6457
6462
|
key: 2,
|
|
6458
6463
|
label: e.option.label,
|
|
6459
6464
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6481,7 +6486,7 @@ var Ba = {
|
|
|
6481
6486
|
onEnd: L(S),
|
|
6482
6487
|
onAdd: L(S)
|
|
6483
6488
|
}, {
|
|
6484
|
-
item: q(({ element: r, index: i }) => [u(
|
|
6489
|
+
item: q(({ element: r, index: i }) => [u(Cc, {
|
|
6485
6490
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6486
6491
|
option: r,
|
|
6487
6492
|
settings: e.settings,
|
|
@@ -6516,11 +6521,11 @@ var Ba = {
|
|
|
6516
6521
|
"class",
|
|
6517
6522
|
"onEnd",
|
|
6518
6523
|
"onAdd"
|
|
6519
|
-
])], 8,
|
|
6524
|
+
])], 8, wc)]),
|
|
6520
6525
|
_: 1
|
|
6521
6526
|
}, 8, ["active", "level"]));
|
|
6522
6527
|
}
|
|
6523
|
-
}), [["__scopeId", "data-v-26eb4678"]]),
|
|
6528
|
+
}), [["__scopeId", "data-v-26eb4678"]]), Ec = ["data-parent-id"], Dc = { key: 2 }, Oc = ["data-parent-id"], kc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6524
6529
|
__name: "PvTreeItem",
|
|
6525
6530
|
props: {
|
|
6526
6531
|
option: {},
|
|
@@ -6548,12 +6553,12 @@ var Ba = {
|
|
|
6548
6553
|
K(() => n.treeOpen, (e) => {
|
|
6549
6554
|
e !== void 0 && (l.value = e);
|
|
6550
6555
|
});
|
|
6551
|
-
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } =
|
|
6556
|
+
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } = yc(), { hoveredId: _, handleMouseEnter: v, handleMouseLeave: b } = pc(), { isDragging: S, draggingGroupName: C, onDragStart: w, onDragEnd: T } = vc(), { dragAndDropIndicatorClasses: E } = bc(), { indentPadding: O, showsConnector: A } = dc(), j = () => {
|
|
6552
6557
|
w(d(n.settings, n.option).name);
|
|
6553
6558
|
}, P = (e) => ({
|
|
6554
6559
|
paddingLeft: O(e, n.settings[n.option.field]?.additionalNestingLevel ?? 0),
|
|
6555
6560
|
"--border-color": "#121313"
|
|
6556
|
-
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), I = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6561
|
+
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), I = r(() => n.settings[n.option.field]?.checkbox ? lc : cc), R = r({
|
|
6557
6562
|
get: () => [...n.option.children || []],
|
|
6558
6563
|
set: (e) => {
|
|
6559
6564
|
c("update:children", {
|
|
@@ -6564,7 +6569,7 @@ var Ba = {
|
|
|
6564
6569
|
}), 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);
|
|
6565
6570
|
return (t, n) => {
|
|
6566
6571
|
let r = M("PvTreeItem", !0);
|
|
6567
|
-
return D(), i(
|
|
6572
|
+
return D(), i(fc, {
|
|
6568
6573
|
active: H.value,
|
|
6569
6574
|
level: e.level
|
|
6570
6575
|
}, {
|
|
@@ -6596,8 +6601,8 @@ var Ba = {
|
|
|
6596
6601
|
onContextmenu: n[6] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6597
6602
|
}, {
|
|
6598
6603
|
trigger: q(() => [
|
|
6599
|
-
J(u(
|
|
6600
|
-
B.value ? (D(), i(
|
|
6604
|
+
J(u(sc, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6605
|
+
B.value ? (D(), i(uc, {
|
|
6601
6606
|
key: 0,
|
|
6602
6607
|
"is-last": V.value
|
|
6603
6608
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6612,7 +6617,7 @@ var Ba = {
|
|
|
6612
6617
|
"settings",
|
|
6613
6618
|
"selected",
|
|
6614
6619
|
"params"
|
|
6615
|
-
])) : (D(), i(
|
|
6620
|
+
])) : (D(), i(oc, {
|
|
6616
6621
|
key: 2,
|
|
6617
6622
|
label: e.option.label,
|
|
6618
6623
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6668,7 +6673,7 @@ var Ba = {
|
|
|
6668
6673
|
"class",
|
|
6669
6674
|
"onEnd",
|
|
6670
6675
|
"onAdd"
|
|
6671
|
-
])], 8,
|
|
6676
|
+
])], 8, Ec)]),
|
|
6672
6677
|
_: 1
|
|
6673
6678
|
}, 8, [
|
|
6674
6679
|
"modelValue",
|
|
@@ -6676,7 +6681,7 @@ var Ba = {
|
|
|
6676
6681
|
"summaryStyles",
|
|
6677
6682
|
"summaryClasses",
|
|
6678
6683
|
"defaultOpen"
|
|
6679
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(
|
|
6684
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(Tc, {
|
|
6680
6685
|
key: 1,
|
|
6681
6686
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6682
6687
|
"selected-options": e.selectedOptions,
|
|
@@ -6703,7 +6708,7 @@ var Ba = {
|
|
|
6703
6708
|
"is-draggable",
|
|
6704
6709
|
"disable-selection",
|
|
6705
6710
|
"is-last-root-item"
|
|
6706
|
-
])) : (D(), o("div",
|
|
6711
|
+
])) : (D(), o("div", Dc, [(D(), i(N(I.value), {
|
|
6707
6712
|
class: y({ ...L(E)(e.option) }),
|
|
6708
6713
|
option: e.option,
|
|
6709
6714
|
selected: F(e.option.node_id),
|
|
@@ -6720,8 +6725,8 @@ var Ba = {
|
|
|
6720
6725
|
onContextmenu: n[12] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6721
6726
|
}, {
|
|
6722
6727
|
default: q(() => [
|
|
6723
|
-
J(u(
|
|
6724
|
-
B.value ? (D(), i(
|
|
6728
|
+
J(u(sc, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6729
|
+
B.value ? (D(), i(uc, {
|
|
6725
6730
|
key: 0,
|
|
6726
6731
|
"is-last": V.value
|
|
6727
6732
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6734,7 +6739,7 @@ var Ba = {
|
|
|
6734
6739
|
"option",
|
|
6735
6740
|
"settings",
|
|
6736
6741
|
"params"
|
|
6737
|
-
])) : (D(), i(
|
|
6742
|
+
])) : (D(), i(oc, {
|
|
6738
6743
|
key: 2,
|
|
6739
6744
|
label: e.option.label,
|
|
6740
6745
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6797,12 +6802,12 @@ var Ba = {
|
|
|
6797
6802
|
"class",
|
|
6798
6803
|
"onEnd",
|
|
6799
6804
|
"onAdd"
|
|
6800
|
-
])], 8,
|
|
6805
|
+
])], 8, Oc)]))]),
|
|
6801
6806
|
_: 1
|
|
6802
6807
|
}, 8, ["active", "level"]);
|
|
6803
6808
|
};
|
|
6804
6809
|
}
|
|
6805
|
-
}), [["__scopeId", "data-v-eb5f5907"]]),
|
|
6810
|
+
}), [["__scopeId", "data-v-eb5f5907"]]), Ac = (e) => {
|
|
6806
6811
|
let t = [], n = !1;
|
|
6807
6812
|
function r(e) {
|
|
6808
6813
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -6845,7 +6850,7 @@ var Ba = {
|
|
|
6845
6850
|
newChildren: r
|
|
6846
6851
|
}), n || (n = !0, v(i));
|
|
6847
6852
|
} };
|
|
6848
|
-
},
|
|
6853
|
+
}, jc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6849
6854
|
__name: "PvTree",
|
|
6850
6855
|
props: /* @__PURE__ */ g({
|
|
6851
6856
|
settings: {},
|
|
@@ -6875,14 +6880,14 @@ var Ba = {
|
|
|
6875
6880
|
"update:treeOpen"
|
|
6876
6881
|
],
|
|
6877
6882
|
setup(e) {
|
|
6878
|
-
m(
|
|
6879
|
-
let n = e, i = B(e, "selectedOptions"), a = B(e, "options"), c = B(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
6883
|
+
m(mc, null) || _c();
|
|
6884
|
+
let n = e, i = B(e, "selectedOptions"), a = B(e, "options"), c = B(e, "treeOpen"), { handleUpdateChildren: l } = Ac(a), d = (e, t) => {
|
|
6880
6885
|
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];
|
|
6881
6886
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
6882
6887
|
...n.defaultSettings,
|
|
6883
6888
|
...n.settings[t]
|
|
6884
6889
|
}, e), {}));
|
|
6885
|
-
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(
|
|
6890
|
+
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(kc, {
|
|
6886
6891
|
"is-last-root-item": n === a.value.length - 1,
|
|
6887
6892
|
"is-parent-path-open": !0,
|
|
6888
6893
|
"tree-open": c.value,
|
|
@@ -6905,19 +6910,19 @@ var Ba = {
|
|
|
6905
6910
|
"onUpdate:children"
|
|
6906
6911
|
])]))), 128))], 2)]));
|
|
6907
6912
|
}
|
|
6908
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
6913
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), Mc = /* @__PURE__ */ d({
|
|
6909
6914
|
__name: "PvTreeGroup",
|
|
6910
6915
|
setup(e) {
|
|
6911
|
-
return
|
|
6916
|
+
return _c(), (e, t) => j(e.$slots, "default");
|
|
6912
6917
|
}
|
|
6913
|
-
}),
|
|
6918
|
+
}), Nc = { class: "pv-full-width" }, Pc = {
|
|
6914
6919
|
key: 0,
|
|
6915
6920
|
class: "pv-flex pv-stack-4",
|
|
6916
6921
|
style: { "--flex-justify": "space-between" }
|
|
6917
|
-
},
|
|
6922
|
+
}, Fc = {
|
|
6918
6923
|
key: 1,
|
|
6919
6924
|
class: "pv-text-subdued pv-text-title-sm"
|
|
6920
|
-
},
|
|
6925
|
+
}, Ic = ["data-disabled"], Lc = /* @__PURE__ */ d({
|
|
6921
6926
|
__name: "PvProgressBar",
|
|
6922
6927
|
props: {
|
|
6923
6928
|
disabled: {
|
|
@@ -6934,22 +6939,22 @@ var Ba = {
|
|
|
6934
6939
|
},
|
|
6935
6940
|
setup(e) {
|
|
6936
6941
|
let t = e, n = r(() => Math.min(100, Math.max(0, t.progress))), i = r(() => `${n.value}% Complete`);
|
|
6937
|
-
return (r, c) => (D(), o("div",
|
|
6942
|
+
return (r, c) => (D(), o("div", Nc, [e.showLabel || e.secondaryLabel ? (D(), o("div", Pc, [e.showLabel ? (D(), o("p", {
|
|
6938
6943
|
key: 0,
|
|
6939
6944
|
class: y(e.labelVariant === "secondary" ? "pv-text-subdued pv-text-title-sm" : "pv-text-brand pv-text-title-sm")
|
|
6940
|
-
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span",
|
|
6945
|
+
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span", Fc, I(e.secondaryLabel), 1)) : a("", !0)])) : a("", !0), s("div", {
|
|
6941
6946
|
class: "pv-progress-bar",
|
|
6942
6947
|
"data-disabled": t.disabled ? !0 : void 0,
|
|
6943
6948
|
style: x({ "--progress": `${n.value}%` })
|
|
6944
|
-
}, null, 12,
|
|
6949
|
+
}, null, 12, Ic)]));
|
|
6945
6950
|
}
|
|
6946
|
-
}),
|
|
6951
|
+
}), Rc = {
|
|
6947
6952
|
class: "pv-flex",
|
|
6948
6953
|
style: {
|
|
6949
6954
|
"--flex-gap": "4px",
|
|
6950
6955
|
height: "24px"
|
|
6951
6956
|
}
|
|
6952
|
-
},
|
|
6957
|
+
}, zc = /* @__PURE__ */ d({
|
|
6953
6958
|
__name: "PvDistributionBar",
|
|
6954
6959
|
props: { values: {} },
|
|
6955
6960
|
setup(e) {
|
|
@@ -6972,16 +6977,16 @@ var Ba = {
|
|
|
6972
6977
|
default: return "pv-data-surface-visualization-1";
|
|
6973
6978
|
}
|
|
6974
6979
|
};
|
|
6975
|
-
return (n, r) => (D(), o("div",
|
|
6980
|
+
return (n, r) => (D(), o("div", Rc, [(D(!0), o(t, null, A(e.values, (e, t) => (D(), o("div", {
|
|
6976
6981
|
key: t,
|
|
6977
6982
|
class: y([l(t)]),
|
|
6978
6983
|
style: x(c(e, t))
|
|
6979
6984
|
}, null, 6))), 128))]));
|
|
6980
6985
|
}
|
|
6981
|
-
}),
|
|
6986
|
+
}), Bc = {
|
|
6982
6987
|
key: 0,
|
|
6983
6988
|
class: "pv-range-single-slider"
|
|
6984
|
-
},
|
|
6989
|
+
}, Vc = [
|
|
6985
6990
|
"id",
|
|
6986
6991
|
"aria-label",
|
|
6987
6992
|
"aria-valuetext",
|
|
@@ -6990,11 +6995,11 @@ var Ba = {
|
|
|
6990
6995
|
"min",
|
|
6991
6996
|
"step",
|
|
6992
6997
|
"value"
|
|
6993
|
-
],
|
|
6998
|
+
], Hc = ["aria-label"], Uc = {
|
|
6994
6999
|
key: 0,
|
|
6995
7000
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
6996
7001
|
style: { "line-height": "1" }
|
|
6997
|
-
},
|
|
7002
|
+
}, Wc = [
|
|
6998
7003
|
"aria-label",
|
|
6999
7004
|
"aria-valuetext",
|
|
7000
7005
|
"disabled",
|
|
@@ -7002,7 +7007,7 @@ var Ba = {
|
|
|
7002
7007
|
"min",
|
|
7003
7008
|
"step",
|
|
7004
7009
|
"value"
|
|
7005
|
-
],
|
|
7010
|
+
], Gc = [
|
|
7006
7011
|
"aria-label",
|
|
7007
7012
|
"aria-valuetext",
|
|
7008
7013
|
"disabled",
|
|
@@ -7010,7 +7015,7 @@ var Ba = {
|
|
|
7010
7015
|
"min",
|
|
7011
7016
|
"step",
|
|
7012
7017
|
"value"
|
|
7013
|
-
],
|
|
7018
|
+
], Kc = {
|
|
7014
7019
|
key: 1,
|
|
7015
7020
|
class: "pv-flex",
|
|
7016
7021
|
style: {
|
|
@@ -7018,15 +7023,15 @@ var Ba = {
|
|
|
7018
7023
|
"--flex-gap": "0.75rem",
|
|
7019
7024
|
"--flex-wrap": "wrap"
|
|
7020
7025
|
}
|
|
7021
|
-
},
|
|
7026
|
+
}, qc = { class: "pv-text-body-sm" }, Jc = [
|
|
7022
7027
|
"disabled",
|
|
7023
7028
|
"step",
|
|
7024
7029
|
"value"
|
|
7025
|
-
],
|
|
7030
|
+
], Yc = { class: "pv-text-body-sm" }, Xc = [
|
|
7026
7031
|
"disabled",
|
|
7027
7032
|
"step",
|
|
7028
7033
|
"value"
|
|
7029
|
-
],
|
|
7034
|
+
], Zc = 0, Qc = 100, $c = 1e4, el = "4.6875rem", tl = .01, nl = /* @__PURE__ */ d({
|
|
7030
7035
|
inheritAttrs: !1,
|
|
7031
7036
|
__name: "PvRange",
|
|
7032
7037
|
props: /* @__PURE__ */ g({
|
|
@@ -7118,7 +7123,7 @@ var Ba = {
|
|
|
7118
7123
|
let r = ae(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
7119
7124
|
return Math.exp(i + n * (a - i)) - r;
|
|
7120
7125
|
}, se = (e, t) => Math.max(0, Math.min(100, Y(e, t) * 100)), ce = r(() => {
|
|
7121
|
-
let e = E(t.min) ??
|
|
7126
|
+
let e = E(t.min) ?? Zc, n = E(t.max) ?? Qc;
|
|
7122
7127
|
return e > n ? {
|
|
7123
7128
|
max: e,
|
|
7124
7129
|
min: n
|
|
@@ -7141,7 +7146,7 @@ var Ba = {
|
|
|
7141
7146
|
}
|
|
7142
7147
|
return t.split(".")[1]?.length ?? 0;
|
|
7143
7148
|
}, Z = r(() => {
|
|
7144
|
-
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(
|
|
7149
|
+
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Zc, r ?? Zc, i ?? Zc), o = n ?? Math.max(Qc, r ?? Qc, i ?? Qc);
|
|
7145
7150
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (U.value > 0 ? U.value : 1)), {
|
|
7146
7151
|
max: o,
|
|
7147
7152
|
min: a
|
|
@@ -7182,14 +7187,14 @@ var Ba = {
|
|
|
7182
7187
|
"--range-track-color": ie.value,
|
|
7183
7188
|
"--value-max": `${De.value}%`,
|
|
7184
7189
|
"--value-min": `${Ee.value}%`
|
|
7185
|
-
})), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => V.value ? Math.round(Y(e, t) *
|
|
7190
|
+
})), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => V.value ? Math.round(Y(e, t) * $c) : e, Ne = (e, t) => V.value ? oe(e / $c, t) : e, Pe = r(() => V.value ? 0 : Z.value.min), Fe = r(() => V.value ? $c : Z.value.max), Ie = r(() => Me(Te.value.min, Z.value)), Le = r(() => Me(Te.value.max, Z.value)), Re = r(() => V.value ? 0 : ce.value.min), ze = r(() => V.value ? $c : ce.value.max), Be = r(() => Me(X.value, ce.value)), Ve = r(() => Math.max(P(Z.value.min).length, P(Z.value.max).length, 3)), He = r(() => {
|
|
7186
7191
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
7187
7192
|
return {
|
|
7188
7193
|
"--flex-align": "stretch",
|
|
7189
7194
|
"--flex-gap": "0",
|
|
7190
|
-
"--pv-range-input-width": `max(${
|
|
7195
|
+
"--pv-range-input-width": `max(${el}, calc(${Ve.value}ch + ${e}))`
|
|
7191
7196
|
};
|
|
7192
|
-
}), Ue = () => E(t.min) !== null || Z.value.min ===
|
|
7197
|
+
}), Ue = () => E(t.min) !== null || Z.value.min === Zc, We = () => E(t.max) !== null || Z.value.max === Qc, Ge = (e, t) => {
|
|
7193
7198
|
c.value = {
|
|
7194
7199
|
max: t >= Z.value.max && We() ? null : t,
|
|
7195
7200
|
min: e <= Z.value.min && Ue() ? null : e
|
|
@@ -7236,7 +7241,7 @@ var Ba = {
|
|
|
7236
7241
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
7237
7242
|
if (!a && !o) return;
|
|
7238
7243
|
e.preventDefault();
|
|
7239
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(oe(Y(i, r) + s *
|
|
7244
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(oe(Y(i, r) + s * tl * c, r), a ? "up" : "down");
|
|
7240
7245
|
l === i && (l = i + s * _e(i, W.value)), Xe(n), Je(n, l, !1);
|
|
7241
7246
|
}, ct = () => {
|
|
7242
7247
|
g.value !== "min" && (m.value = P(Te.value.min)), g.value !== "max" && (p.value = P(Te.value.max));
|
|
@@ -7281,7 +7286,7 @@ var Ba = {
|
|
|
7281
7286
|
};
|
|
7282
7287
|
return K([Te, Z], ct, { immediate: !0 }), S(() => {
|
|
7283
7288
|
_t(), Qe();
|
|
7284
|
-
}), (n, r) => e.mode === "single" ? (D(), o("div",
|
|
7289
|
+
}), (n, r) => e.mode === "single" ? (D(), o("div", Bc, [e.showValueTooltips && v.value ? (D(), o("span", {
|
|
7285
7290
|
key: 0,
|
|
7286
7291
|
class: "pv-range-tooltip",
|
|
7287
7292
|
style: x(de.value)
|
|
@@ -7300,7 +7305,7 @@ var Ba = {
|
|
|
7300
7305
|
onInput: it,
|
|
7301
7306
|
onPointerdown: rt,
|
|
7302
7307
|
onPointerup: $e
|
|
7303
|
-
}), null, 16,
|
|
7308
|
+
}), null, 16, Vc)])) : (D(), o("div", _({ key: 1 }, L(l), {
|
|
7304
7309
|
class: "pv-flex-vertical",
|
|
7305
7310
|
"data-testid": "pv-range-dual",
|
|
7306
7311
|
role: "group",
|
|
@@ -7310,7 +7315,7 @@ var Ba = {
|
|
|
7310
7315
|
"--flex-gap": "0"
|
|
7311
7316
|
}
|
|
7312
7317
|
}), [
|
|
7313
|
-
e.showBoundLabels ? (D(), o("div",
|
|
7318
|
+
e.showBoundLabels ? (D(), o("div", Uc, [s("span", null, I(F(Z.value.min)), 1), s("span", null, I(F(Z.value.max)), 1)])) : a("", !0),
|
|
7314
7319
|
s("div", {
|
|
7315
7320
|
ref_key: "sliderRef",
|
|
7316
7321
|
ref: b,
|
|
@@ -7345,7 +7350,7 @@ var Ba = {
|
|
|
7345
7350
|
onKeydown: r[0] ||= (e) => st(e, "min"),
|
|
7346
7351
|
onPointerdown: r[1] ||= (e) => Xe("min"),
|
|
7347
7352
|
onPointerup: Ye
|
|
7348
|
-
}, null, 40,
|
|
7353
|
+
}, null, 40, Wc),
|
|
7349
7354
|
s("input", {
|
|
7350
7355
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
7351
7356
|
type: "range",
|
|
@@ -7362,14 +7367,14 @@ var Ba = {
|
|
|
7362
7367
|
onKeydown: r[2] ||= (e) => st(e, "max"),
|
|
7363
7368
|
onPointerdown: r[3] ||= (e) => Xe("max"),
|
|
7364
7369
|
onPointerup: Ye
|
|
7365
|
-
}, null, 40,
|
|
7370
|
+
}, null, 40, Gc)
|
|
7366
7371
|
], 38),
|
|
7367
|
-
e.showInputs ? (D(), o("div",
|
|
7372
|
+
e.showInputs ? (D(), o("div", Kc, [
|
|
7368
7373
|
s("label", {
|
|
7369
7374
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7370
7375
|
for: f,
|
|
7371
7376
|
style: x(He.value)
|
|
7372
|
-
}, [s("span",
|
|
7377
|
+
}, [s("span", qc, I(e.minLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Q, {
|
|
7373
7378
|
key: 0,
|
|
7374
7379
|
class: "pv-range-input-icon",
|
|
7375
7380
|
name: e.inputIcon
|
|
@@ -7386,12 +7391,12 @@ var Ba = {
|
|
|
7386
7391
|
onFocus: r[5] ||= (e) => ft("min"),
|
|
7387
7392
|
onInput: ut,
|
|
7388
7393
|
onKeydown: r[6] ||= re((e) => mt(e, "min"), ["enter"])
|
|
7389
|
-
}, null, 40,
|
|
7394
|
+
}, null, 40, Jc)], 2)], 4),
|
|
7390
7395
|
s("label", {
|
|
7391
7396
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7392
7397
|
for: d,
|
|
7393
7398
|
style: x(He.value)
|
|
7394
|
-
}, [s("span",
|
|
7399
|
+
}, [s("span", Yc, I(e.maxLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Q, {
|
|
7395
7400
|
key: 0,
|
|
7396
7401
|
class: "pv-range-input-icon",
|
|
7397
7402
|
name: e.inputIcon
|
|
@@ -7408,7 +7413,7 @@ var Ba = {
|
|
|
7408
7413
|
onFocus: r[8] ||= (e) => ft("max"),
|
|
7409
7414
|
onInput: dt,
|
|
7410
7415
|
onKeydown: r[9] ||= re((e) => mt(e, "max"), ["enter"])
|
|
7411
|
-
}, null, 40,
|
|
7416
|
+
}, null, 40, Xc)], 2)], 4),
|
|
7412
7417
|
e.showClear && je.value ? (D(), i($, {
|
|
7413
7418
|
key: 0,
|
|
7414
7419
|
class: "pv-text-brand",
|
|
@@ -7425,26 +7430,26 @@ var Ba = {
|
|
|
7425
7430
|
variant: "ghost",
|
|
7426
7431
|
onClick: Ze
|
|
7427
7432
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
7428
|
-
], 16,
|
|
7433
|
+
], 16, Hc));
|
|
7429
7434
|
}
|
|
7430
|
-
}),
|
|
7435
|
+
}), rl = [
|
|
7431
7436
|
"aria-label",
|
|
7432
7437
|
"checked",
|
|
7433
7438
|
"disabled",
|
|
7434
7439
|
"name"
|
|
7435
|
-
],
|
|
7440
|
+
], il = {
|
|
7436
7441
|
key: 3,
|
|
7437
7442
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
7438
|
-
},
|
|
7443
|
+
}, al = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, ol = {
|
|
7439
7444
|
key: 0,
|
|
7440
7445
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7441
|
-
},
|
|
7446
|
+
}, sl = {
|
|
7442
7447
|
key: 1,
|
|
7443
7448
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7444
|
-
},
|
|
7449
|
+
}, cl = {
|
|
7445
7450
|
key: 4,
|
|
7446
7451
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
7447
|
-
},
|
|
7452
|
+
}, ll = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
7448
7453
|
__name: "PvFilterPanelOptionRow",
|
|
7449
7454
|
props: {
|
|
7450
7455
|
ariaLabel: {},
|
|
@@ -7517,7 +7522,7 @@ var Ba = {
|
|
|
7517
7522
|
disabled: e.disabled,
|
|
7518
7523
|
name: e.name,
|
|
7519
7524
|
onChange: g
|
|
7520
|
-
}, null, 40,
|
|
7525
|
+
}, null, 40, rl)) : (D(), i(ps, {
|
|
7521
7526
|
key: 1,
|
|
7522
7527
|
ariaLabel: e.ariaLabel || e.label,
|
|
7523
7528
|
disabled: e.disabled,
|
|
@@ -7530,12 +7535,12 @@ var Ba = {
|
|
|
7530
7535
|
"indeterminate",
|
|
7531
7536
|
"modelValue"
|
|
7532
7537
|
])),
|
|
7533
|
-
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span",
|
|
7534
|
-
s("span",
|
|
7535
|
-
e.subduedText ? (D(), o("span",
|
|
7536
|
-
e.subText ? (D(), o("span",
|
|
7538
|
+
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span", il, [
|
|
7539
|
+
s("span", al, I(e.label), 1),
|
|
7540
|
+
e.subduedText ? (D(), o("span", ol, I(e.subduedText), 1)) : a("", !0),
|
|
7541
|
+
e.subText ? (D(), o("span", sl, I(e.subText), 1)) : a("", !0)
|
|
7537
7542
|
])),
|
|
7538
|
-
f.value ? (D(), o("span",
|
|
7543
|
+
f.value ? (D(), o("span", cl, [j(t.$slots, "result-count", {}, () => [l("(" + I(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
7539
7544
|
e.showFocusAction ? (D(), i($, {
|
|
7540
7545
|
key: 5,
|
|
7541
7546
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -7551,26 +7556,26 @@ var Ba = {
|
|
|
7551
7556
|
])) : a("", !0)
|
|
7552
7557
|
], 6));
|
|
7553
7558
|
}
|
|
7554
|
-
}), [["__scopeId", "data-v-d5f24abf"]]),
|
|
7559
|
+
}), [["__scopeId", "data-v-d5f24abf"]]), ul = [
|
|
7555
7560
|
"totalCount",
|
|
7556
7561
|
"total_count",
|
|
7557
7562
|
"resultCount",
|
|
7558
7563
|
"result_count",
|
|
7559
7564
|
"row_count",
|
|
7560
7565
|
"count"
|
|
7561
|
-
],
|
|
7566
|
+
], dl = new Intl.NumberFormat("en-US", {
|
|
7562
7567
|
maximumFractionDigits: 1,
|
|
7563
7568
|
notation: "compact"
|
|
7564
|
-
}),
|
|
7565
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
7569
|
+
}), fl = (e) => typeof e == "object" && !!e, pl = (e) => {
|
|
7570
|
+
if (typeof e == "number" && Number.isFinite(e)) return dl.format(e);
|
|
7566
7571
|
if (typeof e == "string") {
|
|
7567
7572
|
let t = e.trim();
|
|
7568
7573
|
if (!t) return;
|
|
7569
7574
|
let n = Number(t);
|
|
7570
|
-
return Number.isFinite(n) ?
|
|
7575
|
+
return Number.isFinite(n) ? dl.format(n) : e;
|
|
7571
7576
|
}
|
|
7572
|
-
},
|
|
7573
|
-
let n =
|
|
7577
|
+
}, ml = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), hl = (e, t = {}) => {
|
|
7578
|
+
let n = ml(t.dataType, t.valueDecimals);
|
|
7574
7579
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
7575
7580
|
currency: "USD",
|
|
7576
7581
|
maximumFractionDigits: n,
|
|
@@ -7582,11 +7587,11 @@ var Ba = {
|
|
|
7582
7587
|
minimumFractionDigits: n
|
|
7583
7588
|
}).format(e);
|
|
7584
7589
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
7585
|
-
},
|
|
7590
|
+
}, gl = (e, t, n = {}) => e !== null && t !== null ? `${hl(e, n)}–${hl(t, n)}` : e === null ? t === null ? "" : `≤ ${hl(t, n)}` : `${hl(e, n)}+`, _l = (e, t) => {
|
|
7586
7591
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
7587
7592
|
if (!n) return null;
|
|
7588
7593
|
try {
|
|
7589
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
7594
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : fl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
7590
7595
|
return n({
|
|
7591
7596
|
context: e.metadata,
|
|
7592
7597
|
value: t
|
|
@@ -7594,24 +7599,24 @@ var Ba = {
|
|
|
7594
7599
|
} catch {
|
|
7595
7600
|
return null;
|
|
7596
7601
|
}
|
|
7597
|
-
},
|
|
7602
|
+
}, vl = (e, t) => {
|
|
7598
7603
|
let n = e.metadata;
|
|
7599
|
-
if (!
|
|
7604
|
+
if (!fl(n)) return null;
|
|
7600
7605
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
7601
7606
|
let t = n[e];
|
|
7602
7607
|
if (t != null && String(t).trim()) return String(t);
|
|
7603
7608
|
}
|
|
7604
7609
|
return null;
|
|
7605
|
-
},
|
|
7606
|
-
let t =
|
|
7610
|
+
}, yl = (e, t) => e.label || vl(e, t) || _l(e, t) || e.value, bl = (e) => {
|
|
7611
|
+
let t = pl(e?.resultCount);
|
|
7607
7612
|
if (t !== void 0) return t;
|
|
7608
7613
|
let n = e?.metadata;
|
|
7609
|
-
if (
|
|
7610
|
-
let t =
|
|
7614
|
+
if (fl(n)) for (let e of ul) {
|
|
7615
|
+
let t = pl(n[e]);
|
|
7611
7616
|
if (t !== void 0) return t;
|
|
7612
7617
|
}
|
|
7613
|
-
return
|
|
7614
|
-
},
|
|
7618
|
+
return pl(e?.totalChildCount);
|
|
7619
|
+
}, xl = "__pv_filter_panel_scoped_value__", Sl = (e) => typeof e == "object" && !!e, Cl = (e) => {
|
|
7615
7620
|
try {
|
|
7616
7621
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7617
7622
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7625,7 +7630,7 @@ var Ba = {
|
|
|
7625
7630
|
} catch {
|
|
7626
7631
|
return [];
|
|
7627
7632
|
}
|
|
7628
|
-
},
|
|
7633
|
+
}, wl = (e) => {
|
|
7629
7634
|
if (!e.startsWith("__")) return null;
|
|
7630
7635
|
let t = e.slice(2).split("__");
|
|
7631
7636
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7638,76 +7643,76 @@ var Ba = {
|
|
|
7638
7643
|
pairs: n,
|
|
7639
7644
|
value: n[0].value
|
|
7640
7645
|
};
|
|
7641
|
-
},
|
|
7646
|
+
}, Tl = (e) => {
|
|
7642
7647
|
if (e == null) return null;
|
|
7643
|
-
if (!e.startsWith(
|
|
7648
|
+
if (!e.startsWith(xl)) return wl(e) ?? {
|
|
7644
7649
|
pairs: [],
|
|
7645
7650
|
value: e
|
|
7646
7651
|
};
|
|
7647
|
-
let t =
|
|
7652
|
+
let t = Cl(e.slice(32));
|
|
7648
7653
|
return {
|
|
7649
7654
|
field: t[0]?.field,
|
|
7650
7655
|
pairs: t,
|
|
7651
7656
|
value: t[0]?.value ?? e
|
|
7652
7657
|
};
|
|
7653
|
-
},
|
|
7658
|
+
}, El = (e, t) => `${xl}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Dl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : Sl(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) : Tl(e.value)?.value ?? e.value : null, Ol = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Tl(e?.value)?.field ?? t, kl = (e) => e.flatMap((e) => [e, ...e.children?.length ? kl(e.children) : []]), Al = (e, t, n, r) => Ol(e, r) === t && Dl(e) === n, jl = (e) => {
|
|
7654
7659
|
let t = e;
|
|
7655
7660
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7656
|
-
},
|
|
7661
|
+
}, Ml = (e) => {
|
|
7657
7662
|
let t = e;
|
|
7658
|
-
return
|
|
7663
|
+
return jl(e) ? {
|
|
7659
7664
|
...t,
|
|
7660
|
-
conditions: (t.conditions ?? []).map(
|
|
7665
|
+
conditions: (t.conditions ?? []).map(Ml)
|
|
7661
7666
|
} : { ...t };
|
|
7662
|
-
},
|
|
7667
|
+
}, Nl = (e, t) => {
|
|
7663
7668
|
if (!e) return null;
|
|
7664
7669
|
let n = t instanceof Set ? t : new Set(t);
|
|
7665
|
-
if (!n.size) return
|
|
7666
|
-
if (!
|
|
7670
|
+
if (!n.size) return Ml(e);
|
|
7671
|
+
if (!jl(e)) {
|
|
7667
7672
|
let t = e;
|
|
7668
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7673
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Ml(e);
|
|
7669
7674
|
}
|
|
7670
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7675
|
+
let r = e, i = (r.conditions ?? []).map((e) => Nl(e, n)).filter((e) => !!e);
|
|
7671
7676
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7672
7677
|
...r,
|
|
7673
7678
|
conditions: i
|
|
7674
7679
|
} : null;
|
|
7675
|
-
},
|
|
7680
|
+
}, Pl = (e) => e ? [e.field, ...(e.children ?? []).flatMap(Pl)] : [], Fl = (e) => e ? e.children?.length ? e.children.flatMap(Fl) : [e.field] : [], Il = (e) => {
|
|
7676
7681
|
let t = e?.context ?? {};
|
|
7677
|
-
return t.aggregateFieldHierarchy ?
|
|
7678
|
-
},
|
|
7682
|
+
return t.aggregateFieldHierarchy ? Pl(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7683
|
+
}, Ll = (e) => {
|
|
7679
7684
|
let t = e?.context ?? {};
|
|
7680
7685
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7681
|
-
},
|
|
7686
|
+
}, Rl = (e) => Il(e).length > 0, zl = (e, t) => {
|
|
7682
7687
|
for (let n of e ?? []) {
|
|
7683
7688
|
if (!n) continue;
|
|
7684
7689
|
if (n.value === t) return n;
|
|
7685
|
-
let e =
|
|
7690
|
+
let e = zl(n.children, t);
|
|
7686
7691
|
if (e) return e;
|
|
7687
7692
|
}
|
|
7688
|
-
},
|
|
7693
|
+
}, Bl = (e, t, n = []) => {
|
|
7689
7694
|
for (let r of e ?? []) {
|
|
7690
7695
|
if (!r) continue;
|
|
7691
7696
|
let e = [...n, r];
|
|
7692
7697
|
if (r.value === t) return e;
|
|
7693
|
-
let i =
|
|
7698
|
+
let i = Bl(r.children, t, e);
|
|
7694
7699
|
if (i) return i;
|
|
7695
7700
|
}
|
|
7696
|
-
},
|
|
7697
|
-
let n =
|
|
7701
|
+
}, Vl = (e, t) => {
|
|
7702
|
+
let n = zl(t, e), r = n ? Ol(n, "") : void 0, i = n ? Dl(n) : null;
|
|
7698
7703
|
if (r && i !== null) return {
|
|
7699
7704
|
field: r,
|
|
7700
7705
|
value: i
|
|
7701
7706
|
};
|
|
7702
|
-
let a =
|
|
7707
|
+
let a = Tl(e);
|
|
7703
7708
|
return {
|
|
7704
7709
|
field: a?.field,
|
|
7705
7710
|
value: a?.value ?? e
|
|
7706
7711
|
};
|
|
7707
|
-
},
|
|
7712
|
+
}, Hl = (e, t, n) => {
|
|
7708
7713
|
let r = (e) => {
|
|
7709
7714
|
if (!e) return;
|
|
7710
|
-
let i =
|
|
7715
|
+
let i = Ol(e, ""), a = Dl(e);
|
|
7711
7716
|
if (i === t && a === n) return e.value;
|
|
7712
7717
|
for (let t of e.children ?? []) {
|
|
7713
7718
|
let e = r(t);
|
|
@@ -7719,9 +7724,9 @@ var Ba = {
|
|
|
7719
7724
|
if (e) return e;
|
|
7720
7725
|
}
|
|
7721
7726
|
return `__${t}__${n}`;
|
|
7722
|
-
},
|
|
7727
|
+
}, Ul = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...Ul(e.children)]), Wl = (e, t) => {
|
|
7723
7728
|
if (e.state !== "selected") return null;
|
|
7724
|
-
let { field: n, value: r } =
|
|
7729
|
+
let { field: n, value: r } = Vl(e.id, t);
|
|
7725
7730
|
if (!n) return null;
|
|
7726
7731
|
let i = [{
|
|
7727
7732
|
colId: n,
|
|
@@ -7729,8 +7734,8 @@ var Ba = {
|
|
|
7729
7734
|
filterType: "text",
|
|
7730
7735
|
type: "equals"
|
|
7731
7736
|
}];
|
|
7732
|
-
for (let n of
|
|
7733
|
-
let e =
|
|
7737
|
+
for (let n of Ul(e.children)) {
|
|
7738
|
+
let e = Vl(n.id, t);
|
|
7734
7739
|
e.field && i.push({
|
|
7735
7740
|
colId: e.field,
|
|
7736
7741
|
filter: e.value,
|
|
@@ -7743,10 +7748,10 @@ var Ba = {
|
|
|
7743
7748
|
filterType: "join",
|
|
7744
7749
|
type: "AND"
|
|
7745
7750
|
};
|
|
7746
|
-
},
|
|
7747
|
-
let t =
|
|
7751
|
+
}, Gl = (e) => {
|
|
7752
|
+
let t = Il(e.colDef), n = Nl(e.baseModel, t);
|
|
7748
7753
|
if (!t.length) return n;
|
|
7749
|
-
let r = e.state.map((t) =>
|
|
7754
|
+
let r = e.state.map((t) => Wl(t, e.options)).filter((e) => !!e);
|
|
7750
7755
|
if (!r.length) return n;
|
|
7751
7756
|
let i = r.length === 1 ? r[0] : {
|
|
7752
7757
|
conditions: r,
|
|
@@ -7758,17 +7763,17 @@ var Ba = {
|
|
|
7758
7763
|
filterType: "join",
|
|
7759
7764
|
type: "AND"
|
|
7760
7765
|
} : i;
|
|
7761
|
-
},
|
|
7766
|
+
}, Kl = (e, t, n) => {
|
|
7762
7767
|
if (!e) return [];
|
|
7763
7768
|
let r = e;
|
|
7764
|
-
if (
|
|
7769
|
+
if (jl(e)) {
|
|
7765
7770
|
let e = r.conditions ?? [];
|
|
7766
7771
|
if (r.type === "AND") {
|
|
7767
7772
|
let r = e.find((e) => {
|
|
7768
7773
|
let r = e;
|
|
7769
7774
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
7770
7775
|
});
|
|
7771
|
-
return e.flatMap((e) =>
|
|
7776
|
+
return e.flatMap((e) => Kl(e, t, n).map((e) => ({
|
|
7772
7777
|
...e,
|
|
7773
7778
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
7774
7779
|
colId: r.colId,
|
|
@@ -7776,20 +7781,20 @@ var Ba = {
|
|
|
7776
7781
|
} : void 0)
|
|
7777
7782
|
})));
|
|
7778
7783
|
}
|
|
7779
|
-
return e.flatMap((e) =>
|
|
7784
|
+
return e.flatMap((e) => Kl(e, t, n));
|
|
7780
7785
|
}
|
|
7781
7786
|
return r.colId && t.has(r.colId) ? [{
|
|
7782
7787
|
colId: r.colId,
|
|
7783
7788
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
7784
7789
|
type: r.type
|
|
7785
7790
|
}] : [];
|
|
7786
|
-
},
|
|
7787
|
-
let t =
|
|
7791
|
+
}, ql = (e) => {
|
|
7792
|
+
let t = Il(e.colDef);
|
|
7788
7793
|
if (!t.length) return [];
|
|
7789
|
-
let n = new Set(
|
|
7794
|
+
let n = new Set(Fl(e.colDef.context?.aggregateFieldHierarchy)), r = Ll(e.colDef), i = Kl(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
7790
7795
|
for (let t of i) {
|
|
7791
7796
|
if (!t.filter) continue;
|
|
7792
|
-
let n =
|
|
7797
|
+
let n = Hl(e.options, t.colId, String(t.filter));
|
|
7793
7798
|
if (t.type === "equals") {
|
|
7794
7799
|
let e = a.get(n);
|
|
7795
7800
|
a.set(n, {
|
|
@@ -7800,7 +7805,7 @@ var Ba = {
|
|
|
7800
7805
|
continue;
|
|
7801
7806
|
}
|
|
7802
7807
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
7803
|
-
let r =
|
|
7808
|
+
let r = Hl(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
7804
7809
|
children: [],
|
|
7805
7810
|
id: r,
|
|
7806
7811
|
state: "selected"
|
|
@@ -7812,155 +7817,155 @@ var Ba = {
|
|
|
7812
7817
|
}
|
|
7813
7818
|
}
|
|
7814
7819
|
return [...a.values()];
|
|
7815
|
-
},
|
|
7816
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
7820
|
+
}, Jl = (e) => {
|
|
7821
|
+
let t = /* @__PURE__ */ new Map(), n = Il(e.colDef);
|
|
7817
7822
|
if (!n.length) return t;
|
|
7818
|
-
let r =
|
|
7823
|
+
let r = Kl(e.model, new Set(n), new Set(Fl(e.colDef.context?.aggregateFieldHierarchy)));
|
|
7819
7824
|
for (let e of r) {
|
|
7820
7825
|
if (e.type !== "equals" || !e.filter) continue;
|
|
7821
7826
|
let n = t.get(e.colId) ?? [];
|
|
7822
7827
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
7823
7828
|
}
|
|
7824
7829
|
return t;
|
|
7825
|
-
},
|
|
7830
|
+
}, Yl = (e) => e.map((e) => ({
|
|
7826
7831
|
...e,
|
|
7827
7832
|
children: e.children?.map((e) => ({
|
|
7828
7833
|
...e,
|
|
7829
|
-
children: e.children ?
|
|
7834
|
+
children: e.children ? Yl(e.children) : void 0
|
|
7830
7835
|
}))
|
|
7831
|
-
})),
|
|
7836
|
+
})), Xl = (e, t) => e.flatMap((e) => {
|
|
7832
7837
|
if (e.id === t) return [];
|
|
7833
|
-
let n = e.children ?
|
|
7838
|
+
let n = e.children ? Xl(e.children, t) : void 0;
|
|
7834
7839
|
return [{
|
|
7835
7840
|
...e,
|
|
7836
7841
|
children: n?.length ? n : void 0
|
|
7837
7842
|
}];
|
|
7838
|
-
}),
|
|
7843
|
+
}), Zl = (e, t) => {
|
|
7839
7844
|
for (let n of e) {
|
|
7840
7845
|
if (n.id === t) return n;
|
|
7841
|
-
let e = n.children ?
|
|
7846
|
+
let e = n.children ? Zl(n.children, t) : void 0;
|
|
7842
7847
|
if (e) return e;
|
|
7843
7848
|
}
|
|
7844
|
-
},
|
|
7845
|
-
let r = (
|
|
7849
|
+
}, Ql = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, $l = (e, t) => [...Xl(e, t.id), t], eu = (e) => (e.children ?? []).flatMap((e) => [e.value, ...eu(e)]), tu = (e, t) => eu(t).reduce((e, t) => Xl(e, t), e), nu = (e, t) => [t.value, ...eu(t)].reduce((e, t) => Xl(e, t), e), ru = (e, t, n) => {
|
|
7850
|
+
let r = (Bl(n, t.value) ?? []).slice(0, -1).reverse();
|
|
7846
7851
|
for (let t of r) {
|
|
7847
|
-
let n =
|
|
7852
|
+
let n = Zl(e, t.value);
|
|
7848
7853
|
if (n?.state === "selected") return n;
|
|
7849
7854
|
}
|
|
7850
|
-
},
|
|
7851
|
-
let t =
|
|
7855
|
+
}, iu = (e) => {
|
|
7856
|
+
let t = Yl(e.state), n = ru(t, e.option, e.options);
|
|
7852
7857
|
if (n) {
|
|
7853
7858
|
let r = n.children ?? [];
|
|
7854
|
-
return n.children = e.checked ?
|
|
7859
|
+
return n.children = e.checked ? nu(r, e.option) : [...nu(r, e.option), {
|
|
7855
7860
|
id: e.option.value,
|
|
7856
7861
|
state: "deselected"
|
|
7857
7862
|
}], n.children.length || delete n.children, t;
|
|
7858
7863
|
}
|
|
7859
|
-
return
|
|
7864
|
+
return Ql(e.option) ? e.checked ? $l(tu(t, e.option), {
|
|
7860
7865
|
id: e.option.value,
|
|
7861
7866
|
state: "selected"
|
|
7862
|
-
}) :
|
|
7867
|
+
}) : Xl(t, e.option.value) : e.checked ? $l(t, {
|
|
7863
7868
|
id: e.option.value,
|
|
7864
7869
|
state: "selected"
|
|
7865
|
-
}) :
|
|
7866
|
-
},
|
|
7870
|
+
}) : Xl(t, e.option.value);
|
|
7871
|
+
}, au = (e) => {
|
|
7867
7872
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
7868
7873
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
7869
7874
|
};
|
|
7870
7875
|
return n(e), t;
|
|
7871
|
-
},
|
|
7872
|
-
let t =
|
|
7876
|
+
}, ou = (e) => {
|
|
7877
|
+
let t = au(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
7873
7878
|
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 = {
|
|
7874
|
-
indeterminate:
|
|
7879
|
+
indeterminate: Ul(a?.children).length > 0 || !o && c || o && l,
|
|
7875
7880
|
selected: o
|
|
7876
7881
|
};
|
|
7877
7882
|
return n.set(e.value, u), u;
|
|
7878
7883
|
};
|
|
7879
7884
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
7880
7885
|
return n;
|
|
7881
|
-
},
|
|
7886
|
+
}, su = (e) => ou(e).get(e.option.value) ?? ou({
|
|
7882
7887
|
options: [e.option],
|
|
7883
7888
|
state: e.state
|
|
7884
7889
|
}).get(e.option.value) ?? {
|
|
7885
7890
|
indeterminate: !1,
|
|
7886
7891
|
selected: !1
|
|
7887
|
-
},
|
|
7892
|
+
}, cu = (e) => e.state.flatMap((t) => {
|
|
7888
7893
|
if (t.state !== "selected") return [];
|
|
7889
|
-
let n =
|
|
7894
|
+
let n = zl(e.options, t.id);
|
|
7890
7895
|
if (n) return [n];
|
|
7891
|
-
let { field: r, value: i } =
|
|
7896
|
+
let { field: r, value: i } = Vl(t.id, e.options);
|
|
7892
7897
|
return [{
|
|
7893
7898
|
colField: r,
|
|
7894
7899
|
label: i,
|
|
7895
7900
|
metadata: { rawValue: i },
|
|
7896
|
-
value: r ?
|
|
7901
|
+
value: r ? El(r, i) : t.id
|
|
7897
7902
|
}];
|
|
7898
|
-
}),
|
|
7903
|
+
}), lu = (e) => e.filter((e) => e.state === "selected").length, uu = ["open"], du = {
|
|
7899
7904
|
class: "pv-flex pv-text-body-md",
|
|
7900
7905
|
style: {
|
|
7901
7906
|
"--flex-align": "center",
|
|
7902
7907
|
"--flex-gap": "0.5rem"
|
|
7903
7908
|
}
|
|
7904
|
-
},
|
|
7909
|
+
}, fu = {
|
|
7905
7910
|
key: 1,
|
|
7906
7911
|
class: "pv-filter-panel-refresh-status",
|
|
7907
7912
|
"data-testid": "pv-filter-panel-refresh-status",
|
|
7908
7913
|
role: "status"
|
|
7909
|
-
},
|
|
7914
|
+
}, pu = { class: "pv-visually-hidden" }, mu = ["aria-busy"], hu = {
|
|
7910
7915
|
key: 0,
|
|
7911
7916
|
class: "pv-flex-vertical",
|
|
7912
7917
|
style: {
|
|
7913
7918
|
"--flex-align": "stretch",
|
|
7914
7919
|
"--flex-gap": "0.5rem"
|
|
7915
7920
|
}
|
|
7916
|
-
},
|
|
7921
|
+
}, gu = {
|
|
7917
7922
|
key: 0,
|
|
7918
7923
|
class: "pv-flex",
|
|
7919
7924
|
style: {
|
|
7920
7925
|
"--flex-gap": "0.5rem",
|
|
7921
7926
|
"--flex-wrap": "wrap"
|
|
7922
7927
|
}
|
|
7923
|
-
},
|
|
7928
|
+
}, _u = {
|
|
7924
7929
|
key: 1,
|
|
7925
7930
|
class: "pv-flex",
|
|
7926
7931
|
style: { "--flex-justify": "flex-end" }
|
|
7927
|
-
},
|
|
7932
|
+
}, vu = {
|
|
7928
7933
|
key: 2,
|
|
7929
7934
|
class: "pv-flex-vertical",
|
|
7930
7935
|
style: {
|
|
7931
7936
|
"--flex-align": "stretch",
|
|
7932
7937
|
"--flex-gap": "0.5rem"
|
|
7933
7938
|
}
|
|
7934
|
-
},
|
|
7939
|
+
}, yu = {
|
|
7935
7940
|
key: 3,
|
|
7936
7941
|
class: "pv-flex pv-text-body-xs pv-text-subdued"
|
|
7937
|
-
},
|
|
7942
|
+
}, bu = { key: 0 }, xu = {
|
|
7938
7943
|
key: 1,
|
|
7939
7944
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7940
7945
|
style: { margin: "0" }
|
|
7941
|
-
},
|
|
7946
|
+
}, Su = {
|
|
7942
7947
|
key: 1,
|
|
7943
7948
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7944
7949
|
style: { margin: "0" }
|
|
7945
|
-
},
|
|
7950
|
+
}, Cu = {
|
|
7946
7951
|
key: 2,
|
|
7947
7952
|
class: "pv-flex-vertical",
|
|
7948
7953
|
style: {
|
|
7949
7954
|
"--flex-align": "stretch",
|
|
7950
7955
|
"--flex-gap": "0.5rem"
|
|
7951
7956
|
}
|
|
7952
|
-
},
|
|
7957
|
+
}, wu = { key: 0 }, Tu = {
|
|
7953
7958
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
7954
7959
|
style: { margin: "0" }
|
|
7955
|
-
},
|
|
7960
|
+
}, Eu = {
|
|
7956
7961
|
key: 1,
|
|
7957
7962
|
class: "pv-text-title-sm pv-text-subdued",
|
|
7958
7963
|
style: { margin: "0" }
|
|
7959
|
-
},
|
|
7964
|
+
}, Du = {
|
|
7960
7965
|
key: 2,
|
|
7961
7966
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7962
7967
|
style: { margin: "0" }
|
|
7963
|
-
},
|
|
7968
|
+
}, Ou = {
|
|
7964
7969
|
key: 3,
|
|
7965
7970
|
class: "pv-flex-vertical",
|
|
7966
7971
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -7968,14 +7973,14 @@ var Ba = {
|
|
|
7968
7973
|
"--flex-align": "stretch",
|
|
7969
7974
|
"--flex-gap": "0.5rem"
|
|
7970
7975
|
}
|
|
7971
|
-
},
|
|
7976
|
+
}, ku = {
|
|
7972
7977
|
class: "pv-flex",
|
|
7973
7978
|
style: {
|
|
7974
7979
|
"--flex-align": "center",
|
|
7975
7980
|
"--flex-gap": "0.5rem",
|
|
7976
7981
|
"--flex-wrap": "wrap"
|
|
7977
7982
|
}
|
|
7978
|
-
},
|
|
7983
|
+
}, Au = {
|
|
7979
7984
|
key: 4,
|
|
7980
7985
|
class: "pv-flex",
|
|
7981
7986
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -7984,7 +7989,7 @@ var Ba = {
|
|
|
7984
7989
|
"--flex-gap": "0.5rem",
|
|
7985
7990
|
cursor: "pointer"
|
|
7986
7991
|
}
|
|
7987
|
-
},
|
|
7992
|
+
}, ju = { class: "pv-text-body-sm" }, Mu = 5, Nu = 500, Pu = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
7988
7993
|
__name: "PvFilterPanelAccordion",
|
|
7989
7994
|
props: {
|
|
7990
7995
|
disableWhileLoading: {
|
|
@@ -8002,7 +8007,7 @@ var Ba = {
|
|
|
8002
8007
|
"search-change"
|
|
8003
8008
|
],
|
|
8004
8009
|
setup(e, { emit: n }) {
|
|
8005
|
-
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = z(), g = k(c.filter.searchQuery ?? ""), v = k(
|
|
8010
|
+
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = z(), g = k(c.filter.searchQuery ?? ""), v = k(Mu), 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(() => {
|
|
8006
8011
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
8007
8012
|
return t && !n ? [{
|
|
8008
8013
|
label: R.value,
|
|
@@ -8027,7 +8032,7 @@ var Ba = {
|
|
|
8027
8032
|
e.matchedValue,
|
|
8028
8033
|
e.matchedField
|
|
8029
8034
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
8030
|
-
}, 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 ?
|
|
8035
|
+
}, 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 ? lu(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) => [
|
|
8031
8036
|
{
|
|
8032
8037
|
depth: t,
|
|
8033
8038
|
kind: "option",
|
|
@@ -8052,16 +8057,16 @@ var Ba = {
|
|
|
8052
8057
|
re.value = O.value || c.filter.singleSelect ? [] : [...P.value];
|
|
8053
8058
|
};
|
|
8054
8059
|
se();
|
|
8055
|
-
let ce = r(() => O.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !ie.value.has(e.option.value))), X = r(() => ce.value.length > v.value), le = r(() => X.value || c.filter.hasMore), ue = r(() => ce.value.slice(0, v.value)), fe = r(() => O.value ?
|
|
8060
|
+
let ce = r(() => O.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !ie.value.has(e.option.value))), X = r(() => ce.value.length > v.value), le = r(() => X.value || c.filter.hasMore), ue = r(() => ce.value.slice(0, v.value)), fe = r(() => O.value ? ou({
|
|
8056
8061
|
options: w.value,
|
|
8057
8062
|
state: j.value
|
|
8058
|
-
}) : /* @__PURE__ */ new Map()), Z = (e) =>
|
|
8063
|
+
}) : /* @__PURE__ */ new Map()), Z = (e) => yl(e, c.filter.colDef), pe = (e) => bl(e), me = (e) => O.value ? fe.value.get(e.value) ?? {
|
|
8059
8064
|
indeterminate: !1,
|
|
8060
8065
|
selected: !1
|
|
8061
8066
|
} : {
|
|
8062
8067
|
indeterminate: !1,
|
|
8063
8068
|
selected: F.value.has(e.value)
|
|
8064
|
-
}, he = (e) => me(e).selected, ge = (e) => me(e).indeterminate, _e = (e) =>
|
|
8069
|
+
}, he = (e) => me(e).selected, ge = (e) => me(e).indeterminate, _e = (e) => Dl(e) ?? e.value, ve = (e) => Ol(e, c.filter.key), ye = (e) => {
|
|
8065
8070
|
let t = ve(e), n = _e(e);
|
|
8066
8071
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
8067
8072
|
}, be = (e) => ({
|
|
@@ -8090,7 +8095,7 @@ var Ba = {
|
|
|
8090
8095
|
rowsLoading: c.filter.isLoading
|
|
8091
8096
|
}
|
|
8092
8097
|
})), we = () => {
|
|
8093
|
-
V.value || (X.value ? v.value +=
|
|
8098
|
+
V.value || (X.value ? v.value += Mu : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
8094
8099
|
}, Te = (e) => {
|
|
8095
8100
|
V.value || d("load-more", g.value.trim(), e.value);
|
|
8096
8101
|
}, Ee = (e) => {
|
|
@@ -8116,7 +8121,7 @@ var Ba = {
|
|
|
8116
8121
|
if (O.value) {
|
|
8117
8122
|
d("filter-change", {
|
|
8118
8123
|
type: "aggregate-selection",
|
|
8119
|
-
value:
|
|
8124
|
+
value: iu({
|
|
8120
8125
|
checked: t,
|
|
8121
8126
|
option: e,
|
|
8122
8127
|
options: w.value,
|
|
@@ -8144,12 +8149,12 @@ var Ba = {
|
|
|
8144
8149
|
V.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
8145
8150
|
};
|
|
8146
8151
|
K([g, () => c.filter.key], () => {
|
|
8147
|
-
v.value =
|
|
8152
|
+
v.value = Mu;
|
|
8148
8153
|
});
|
|
8149
8154
|
let Fe = () => {
|
|
8150
|
-
let e =
|
|
8155
|
+
let e = kl(w.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
8151
8156
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
8152
|
-
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
8157
|
+
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Nu)));
|
|
8153
8158
|
};
|
|
8154
8159
|
return K(w, () => {
|
|
8155
8160
|
c.filter.isOpen && Fe();
|
|
@@ -8176,7 +8181,7 @@ var Ba = {
|
|
|
8176
8181
|
"data-testid": "pv-filter-panel-accordion",
|
|
8177
8182
|
open: e.filter.isOpen,
|
|
8178
8183
|
onToggle: Ee
|
|
8179
|
-
}, [s("summary",
|
|
8184
|
+
}, [s("summary", du, [
|
|
8180
8185
|
u(Q, {
|
|
8181
8186
|
"aria-hidden": "true",
|
|
8182
8187
|
class: "pv-text-subdued",
|
|
@@ -8189,7 +8194,7 @@ var Ba = {
|
|
|
8189
8194
|
size: "sm",
|
|
8190
8195
|
variant: "secondary"
|
|
8191
8196
|
}, null, 8, ["value"])) : a("", !0),
|
|
8192
|
-
oe.value ? (D(), o("span",
|
|
8197
|
+
oe.value ? (D(), o("span", fu, [u(Me, { size: "sm" }), s("span", pu, I(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
|
|
8193
8198
|
]), s("div", {
|
|
8194
8199
|
ref_key: "filterContent",
|
|
8195
8200
|
ref: f,
|
|
@@ -8200,8 +8205,8 @@ var Ba = {
|
|
|
8200
8205
|
minHeight: m.value ? `${m.value}px` : void 0
|
|
8201
8206
|
})
|
|
8202
8207
|
}, [E.value ? (D(), o(t, { key: 0 }, [
|
|
8203
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div",
|
|
8204
|
-
e.filter.filterGroupOptions?.length ? (D(), o("div",
|
|
8208
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div", hu, [
|
|
8209
|
+
e.filter.filterGroupOptions?.length ? (D(), o("div", gu, [(D(!0), o(t, null, A(e.filter.filterGroupOptions, (e) => (D(), i($, {
|
|
8205
8210
|
key: e.field,
|
|
8206
8211
|
disabled: V.value,
|
|
8207
8212
|
label: e.label,
|
|
@@ -8214,7 +8219,7 @@ var Ba = {
|
|
|
8214
8219
|
"variant",
|
|
8215
8220
|
"onClick"
|
|
8216
8221
|
]))), 128))])) : a("", !0),
|
|
8217
|
-
e.filter.displayPreferencesIcon ? (D(), o("div",
|
|
8222
|
+
e.filter.displayPreferencesIcon ? (D(), o("div", _u, [u($, {
|
|
8218
8223
|
ariaLabel: "Open preferences",
|
|
8219
8224
|
disabled: V.value,
|
|
8220
8225
|
leftIcon: "sliders-horizontal",
|
|
@@ -8236,7 +8241,7 @@ var Ba = {
|
|
|
8236
8241
|
"disabled",
|
|
8237
8242
|
"placeholder"
|
|
8238
8243
|
])),
|
|
8239
|
-
ae.value.length ? (D(), o("div",
|
|
8244
|
+
ae.value.length ? (D(), o("div", vu, [(D(!0), o(t, null, A(ae.value, (t) => (D(), i(ll, {
|
|
8240
8245
|
key: t.value,
|
|
8241
8246
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8242
8247
|
disabled: V.value || t.isSelectable === !1,
|
|
@@ -8274,10 +8279,10 @@ var Ba = {
|
|
|
8274
8279
|
"onFocusValue",
|
|
8275
8280
|
"onToggleValue"
|
|
8276
8281
|
]))), 128))])) : a("", !0),
|
|
8277
|
-
e.filter.isLoading && !Y.value ? (D(), o("div",
|
|
8278
|
-
!C.value.length && !ae.value.length && !le.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, Ce.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p",
|
|
8279
|
-
ce.value.length || le.value ? (D(), o("div",
|
|
8280
|
-
ce.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div",
|
|
8282
|
+
e.filter.isLoading && !Y.value ? (D(), o("div", yu, [u(Me, { size: "sm" }), e.filter.loadingText ? (D(), o("span", bu, I(e.filter.loadingText), 1)) : a("", !0)])) : (D(), o(t, { key: 4 }, [
|
|
8283
|
+
!C.value.length && !ae.value.length && !le.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, Ce.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", xu, "No values available."))], 64)) : !te.value.length && !ae.value.length && !le.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, Ce.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", Su, "No matching values."))], 64)) : a("", !0),
|
|
8284
|
+
ce.value.length || le.value ? (D(), o("div", Cu, [
|
|
8285
|
+
ce.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", wu, [e.filter.filterOptionsSortTooltip ? (D(), i(ir, {
|
|
8281
8286
|
key: 0,
|
|
8282
8287
|
variant: "dark",
|
|
8283
8288
|
disableInteractive: !0,
|
|
@@ -8286,11 +8291,11 @@ var Ba = {
|
|
|
8286
8291
|
"use-teleport": !0,
|
|
8287
8292
|
style: { "--max-width": "200px" }
|
|
8288
8293
|
}, {
|
|
8289
|
-
trigger: q(() => [s("p",
|
|
8294
|
+
trigger: q(() => [s("p", Tu, I(B.value), 1)]),
|
|
8290
8295
|
content: q(() => [l(I(e.filter.filterOptionsSortTooltip), 1)]),
|
|
8291
8296
|
_: 1
|
|
8292
|
-
})) : (D(), o("p",
|
|
8293
|
-
(D(!0), o(t, null, A(ue.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(
|
|
8297
|
+
})) : (D(), o("p", Eu, I(B.value), 1))])) : a("", !0),
|
|
8298
|
+
(D(!0), o(t, null, A(ue.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(ll, {
|
|
8294
8299
|
key: 0,
|
|
8295
8300
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8296
8301
|
depth: n.depth,
|
|
@@ -8357,7 +8362,7 @@ var Ba = {
|
|
|
8357
8362
|
])) : a("", !0),
|
|
8358
8363
|
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), b(_({ key: 3 }, Ce.value)), null, 16)) : a("", !0)
|
|
8359
8364
|
], 64))
|
|
8360
|
-
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(
|
|
8365
|
+
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(nl, {
|
|
8361
8366
|
key: 1,
|
|
8362
8367
|
mode: "dual",
|
|
8363
8368
|
rangeValue: e.filter.rangeValue,
|
|
@@ -8384,7 +8389,7 @@ var Ba = {
|
|
|
8384
8389
|
"slider-step",
|
|
8385
8390
|
"step",
|
|
8386
8391
|
"value-decimals"
|
|
8387
|
-
])) : T.value === "range" ? (D(), o("p",
|
|
8392
|
+
])) : T.value === "range" ? (D(), o("p", Du, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (D(), o("div", Ou, [s("div", ku, [(D(!0), o(t, null, A(H.value, (t) => (D(), i($, {
|
|
8388
8393
|
key: String(t.value),
|
|
8389
8394
|
disabled: V.value,
|
|
8390
8395
|
label: t.label,
|
|
@@ -8402,43 +8407,43 @@ var Ba = {
|
|
|
8402
8407
|
label: "Clear",
|
|
8403
8408
|
variant: "ghost",
|
|
8404
8409
|
onClick: r[1] ||= (e) => De(null)
|
|
8405
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label",
|
|
8410
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label", Au, [u(ps, {
|
|
8406
8411
|
disabled: V.value,
|
|
8407
8412
|
modelValue: e.filter.existsValue ?? !1,
|
|
8408
8413
|
"onUpdate:modelValue": Oe
|
|
8409
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
8414
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", ju, I(y.value), 1)])) : a("", !0)], 12, mu)], 40, uu));
|
|
8410
8415
|
}
|
|
8411
|
-
}), [["__scopeId", "data-v-073616dc"]]),
|
|
8416
|
+
}), [["__scopeId", "data-v-073616dc"]]), Fu = {
|
|
8412
8417
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
8413
8418
|
"data-testid": "pv-filter-panel-applied-section",
|
|
8414
8419
|
style: {
|
|
8415
8420
|
"--flex-align": "stretch",
|
|
8416
8421
|
"--flex-gap": "1rem"
|
|
8417
8422
|
}
|
|
8418
|
-
},
|
|
8423
|
+
}, Iu = {
|
|
8419
8424
|
key: 0,
|
|
8420
8425
|
class: "pv-flex-vertical",
|
|
8421
8426
|
style: {
|
|
8422
8427
|
"--flex-align": "stretch",
|
|
8423
8428
|
"--flex-gap": "1rem"
|
|
8424
8429
|
}
|
|
8425
|
-
},
|
|
8430
|
+
}, Lu = { class: "pv-text-title-md" }, Ru = {
|
|
8426
8431
|
class: "pv-flex",
|
|
8427
8432
|
style: {
|
|
8428
8433
|
"--flex-gap": "0.375rem",
|
|
8429
8434
|
"--flex-wrap": "wrap"
|
|
8430
8435
|
}
|
|
8431
|
-
},
|
|
8436
|
+
}, zu = { class: "pv-text-title-md" }, Bu = {
|
|
8432
8437
|
class: "pv-flex",
|
|
8433
8438
|
style: {
|
|
8434
8439
|
"--flex-gap": "0.375rem",
|
|
8435
8440
|
"--flex-wrap": "wrap"
|
|
8436
8441
|
}
|
|
8437
|
-
},
|
|
8442
|
+
}, Vu = {
|
|
8438
8443
|
key: 1,
|
|
8439
8444
|
class: "pv-text-body-sm pv-text-subdued",
|
|
8440
8445
|
style: { margin: "0" }
|
|
8441
|
-
},
|
|
8446
|
+
}, Hu = /* @__PURE__ */ d({
|
|
8442
8447
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
8443
8448
|
props: {
|
|
8444
8449
|
appliedCount: { default: 0 },
|
|
@@ -8454,7 +8459,7 @@ var Ba = {
|
|
|
8454
8459
|
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) => {
|
|
8455
8460
|
c("remove-filter", t.field ?? e, t.value, t.type);
|
|
8456
8461
|
};
|
|
8457
|
-
return (n, r) => (D(), o("section",
|
|
8462
|
+
return (n, r) => (D(), o("section", Fu, [u.value ? (D(), o("div", Iu, [(D(!0), o(t, null, A(l.value, (e) => (D(), o("div", {
|
|
8458
8463
|
key: `external-${e.key}`,
|
|
8459
8464
|
class: "pv-flex-vertical pv-border-bottom",
|
|
8460
8465
|
"data-testid": "pv-filter-panel-external-filter-group",
|
|
@@ -8463,7 +8468,7 @@ var Ba = {
|
|
|
8463
8468
|
"--flex-gap": "12px",
|
|
8464
8469
|
"padding-bottom": "12px"
|
|
8465
8470
|
}
|
|
8466
|
-
}, [s("span",
|
|
8471
|
+
}, [s("span", Lu, I(e.label), 1), s("div", Ru, [(D(!0), o(t, null, A(e.values, (t) => (D(), i(br, {
|
|
8467
8472
|
key: `${e.key}-${t.value}`,
|
|
8468
8473
|
label: t.label,
|
|
8469
8474
|
showClear: d(e),
|
|
@@ -8480,7 +8485,7 @@ var Ba = {
|
|
|
8480
8485
|
"--flex-gap": "12px",
|
|
8481
8486
|
"padding-bottom": "12px"
|
|
8482
8487
|
}
|
|
8483
|
-
}, [s("span",
|
|
8488
|
+
}, [s("span", zu, I(n.label), 1), s("div", Bu, [(D(!0), o(t, null, A(n.values, (t) => (D(), i(br, {
|
|
8484
8489
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
8485
8490
|
label: t.label,
|
|
8486
8491
|
showClear: !e.readOnly,
|
|
@@ -8489,9 +8494,9 @@ var Ba = {
|
|
|
8489
8494
|
"label",
|
|
8490
8495
|
"showClear",
|
|
8491
8496
|
"onHandleClose"
|
|
8492
|
-
]))), 128))])]))), 128))])) : (D(), o("p",
|
|
8497
|
+
]))), 128))])]))), 128))])) : (D(), o("p", Vu, "No filters applied yet."))]));
|
|
8493
8498
|
}
|
|
8494
|
-
}),
|
|
8499
|
+
}), Uu = { class: "pv-horizontal-scroller" }, Wu = ["aria-label"], Gu = 1, Ku = /* @__PURE__ */ d({
|
|
8495
8500
|
__name: "PvHorizontalScroller",
|
|
8496
8501
|
props: {
|
|
8497
8502
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -8515,7 +8520,7 @@ var Ba = {
|
|
|
8515
8520
|
let e = u.value;
|
|
8516
8521
|
if (!e) return;
|
|
8517
8522
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
8518
|
-
n.value = e.scrollLeft >
|
|
8523
|
+
n.value = e.scrollLeft > Gu, c.value = e.scrollLeft < t - Gu;
|
|
8519
8524
|
}, h = () => {
|
|
8520
8525
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
8521
8526
|
}, g = () => {
|
|
@@ -8535,7 +8540,7 @@ var Ba = {
|
|
|
8535
8540
|
h(), g();
|
|
8536
8541
|
}), S(() => {
|
|
8537
8542
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
8538
|
-
}), (t, r) => (D(), o("div",
|
|
8543
|
+
}), (t, r) => (D(), o("div", Uu, [
|
|
8539
8544
|
s("div", {
|
|
8540
8545
|
ref_key: "scrollContainer",
|
|
8541
8546
|
ref: u,
|
|
@@ -8546,7 +8551,7 @@ var Ba = {
|
|
|
8546
8551
|
ref_key: "contentContainer",
|
|
8547
8552
|
ref: l,
|
|
8548
8553
|
class: "pv-horizontal-scroller-content"
|
|
8549
|
-
}, [j(t.$slots, "default")], 512)], 10,
|
|
8554
|
+
}, [j(t.$slots, "default")], 512)], 10, Wu),
|
|
8550
8555
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
8551
8556
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
8552
8557
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -8579,18 +8584,18 @@ var Ba = {
|
|
|
8579
8584
|
])) : a("", !0)], 2)
|
|
8580
8585
|
]));
|
|
8581
8586
|
}
|
|
8582
|
-
}),
|
|
8587
|
+
}), qu = {
|
|
8583
8588
|
key: 0,
|
|
8584
8589
|
class: "pv-border-bottom",
|
|
8585
8590
|
"data-testid": "pv-filter-panel-category-row"
|
|
8586
|
-
},
|
|
8591
|
+
}, Ju = {
|
|
8587
8592
|
class: "pv-flex",
|
|
8588
8593
|
style: {
|
|
8589
8594
|
"--flex-align": "center",
|
|
8590
8595
|
"--flex-gap": "8px",
|
|
8591
8596
|
padding: "8px 12px"
|
|
8592
8597
|
}
|
|
8593
|
-
},
|
|
8598
|
+
}, Yu = /* @__PURE__ */ d({
|
|
8594
8599
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
8595
8600
|
props: /* @__PURE__ */ g({
|
|
8596
8601
|
allCategoriesLabel: { default: "All" },
|
|
@@ -8612,7 +8617,7 @@ var Ba = {
|
|
|
8612
8617
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
8613
8618
|
return K(l, (e) => {
|
|
8614
8619
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
8615
|
-
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div",
|
|
8620
|
+
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div", qu, [u(Ku, {
|
|
8616
8621
|
ariaLabel: "Filter categories",
|
|
8617
8622
|
buttonSize: "lg",
|
|
8618
8623
|
buttonVariant: "ghost",
|
|
@@ -8621,7 +8626,7 @@ var Ba = {
|
|
|
8621
8626
|
rightAriaLabel: "Scroll filter categories right",
|
|
8622
8627
|
showFades: ""
|
|
8623
8628
|
}, {
|
|
8624
|
-
default: q(() => [s("div",
|
|
8629
|
+
default: q(() => [s("div", Ju, [u($, {
|
|
8625
8630
|
label: e.allCategoriesLabel,
|
|
8626
8631
|
variant: f(null),
|
|
8627
8632
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -8638,17 +8643,17 @@ var Ba = {
|
|
|
8638
8643
|
_: 1
|
|
8639
8644
|
})])) : a("", !0);
|
|
8640
8645
|
}
|
|
8641
|
-
}),
|
|
8646
|
+
}), Xu = (e, t, n) => {
|
|
8642
8647
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
8643
8648
|
if (r.length <= 1) return "Search";
|
|
8644
8649
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
8645
8650
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
8646
|
-
},
|
|
8647
|
-
if (!r ||
|
|
8651
|
+
}, Zu = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Qu = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
8652
|
+
if (!r || Zu(i) === Zu(r)) return e;
|
|
8648
8653
|
if (!a || !n) return r;
|
|
8649
8654
|
let o = t(n);
|
|
8650
8655
|
return o ? `${o}: ${r}` : r;
|
|
8651
|
-
},
|
|
8656
|
+
}, $u = () => ({
|
|
8652
8657
|
booleanValue: null,
|
|
8653
8658
|
existsValue: !1,
|
|
8654
8659
|
rangeValue: {
|
|
@@ -8656,15 +8661,15 @@ var Ba = {
|
|
|
8656
8661
|
min: null
|
|
8657
8662
|
},
|
|
8658
8663
|
values: []
|
|
8659
|
-
}),
|
|
8660
|
-
conditions: e.conditions.map(
|
|
8664
|
+
}), ed = (e) => typeof e == "object" && !!e && !Array.isArray(e), td = (e) => ed(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", nd = (e) => ed(e) && e.filterType === "join" && Array.isArray(e.conditions), rd = (e) => e, id = (e) => nd(e) ? {
|
|
8665
|
+
conditions: e.conditions.map(id),
|
|
8661
8666
|
filterType: "join",
|
|
8662
8667
|
type: e.type
|
|
8663
|
-
} : { ...e },
|
|
8664
|
-
if (
|
|
8665
|
-
if (
|
|
8668
|
+
} : { ...e }, ad = (e) => {
|
|
8669
|
+
if (!ed(e)) return null;
|
|
8670
|
+
if (nd(e)) {
|
|
8666
8671
|
let t = e.conditions.flatMap((e) => {
|
|
8667
|
-
let t =
|
|
8672
|
+
let t = ad(e);
|
|
8668
8673
|
return t ? [t] : [];
|
|
8669
8674
|
});
|
|
8670
8675
|
return t.length ? {
|
|
@@ -8673,43 +8678,43 @@ var Ba = {
|
|
|
8673
8678
|
type: e.type === "OR" ? "OR" : "AND"
|
|
8674
8679
|
} : null;
|
|
8675
8680
|
}
|
|
8676
|
-
return
|
|
8677
|
-
},
|
|
8681
|
+
return td(e) ? { ...e } : null;
|
|
8682
|
+
}, od = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, sd = (e) => ed(e) && !nd(e) && !td(e), cd = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), ld = {
|
|
8678
8683
|
number: "agNumberColumnFilter",
|
|
8679
8684
|
set: "agSetColumnFilter",
|
|
8680
8685
|
text: "agTextColumnFilter"
|
|
8681
|
-
},
|
|
8686
|
+
}, ud = (e) => {
|
|
8682
8687
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
8683
8688
|
let t = e.filterParams;
|
|
8684
8689
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
8685
|
-
}, ud = (e, t) => {
|
|
8686
|
-
let n = ld(e), r = t.filterType ? cd[t.filterType] : void 0;
|
|
8687
|
-
return r ? n.findIndex((e) => $u(e) && e.filter === r) : -1;
|
|
8688
8690
|
}, dd = (e, t) => {
|
|
8689
|
-
let n =
|
|
8691
|
+
let n = ud(e), r = t.filterType ? ld[t.filterType] : void 0;
|
|
8692
|
+
return r ? n.findIndex((e) => ed(e) && e.filter === r) : -1;
|
|
8693
|
+
}, fd = (e, t) => {
|
|
8694
|
+
let n = ud(e);
|
|
8690
8695
|
if (!n.length) return null;
|
|
8691
|
-
let r = Array(n.length).fill(null), i =
|
|
8696
|
+
let r = Array(n.length).fill(null), i = dd(e, t);
|
|
8692
8697
|
return i < 0 ? null : (r[i] = t, {
|
|
8693
8698
|
filterModels: r,
|
|
8694
8699
|
filterType: "multi"
|
|
8695
8700
|
});
|
|
8696
|
-
},
|
|
8697
|
-
if (!
|
|
8701
|
+
}, pd = (e, t) => {
|
|
8702
|
+
if (!sd(e)) return null;
|
|
8698
8703
|
let n = e[t];
|
|
8699
|
-
return
|
|
8700
|
-
},
|
|
8704
|
+
return ed(n) ? n : null;
|
|
8705
|
+
}, md = (e) => e ? cd(e) ? e.filterModels.filter((e) => ed(e)) : [e] : [], hd = (e) => sd(e) ? { ...e } : {}, gd = (e) => cd(e) ? {
|
|
8701
8706
|
...e,
|
|
8702
8707
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
8703
|
-
} : { ...e },
|
|
8704
|
-
let n =
|
|
8708
|
+
} : { ...e }, _d = (e, t) => {
|
|
8709
|
+
let n = hd(e);
|
|
8705
8710
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
8706
|
-
},
|
|
8711
|
+
}, vd = /* @__PURE__ */ new Set(), yd = (e, t) => {
|
|
8707
8712
|
let n = `${e}:${t ?? "unknown"}`;
|
|
8708
|
-
|
|
8709
|
-
},
|
|
8710
|
-
let a =
|
|
8711
|
-
if (
|
|
8712
|
-
let o =
|
|
8713
|
+
vd.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.`), vd.add(n));
|
|
8714
|
+
}, bd = (e, t, n, r, i) => {
|
|
8715
|
+
let a = pd(e, t);
|
|
8716
|
+
if (cd(a) && r) {
|
|
8717
|
+
let o = hd(e), s = gd(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
8713
8718
|
if (!n) {
|
|
8714
8719
|
for (let e of l) c[e] = null;
|
|
8715
8720
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -8722,15 +8727,15 @@ var Ba = {
|
|
|
8722
8727
|
c[e] = n;
|
|
8723
8728
|
for (let e of t) c[e] = null;
|
|
8724
8729
|
} else {
|
|
8725
|
-
let e =
|
|
8730
|
+
let e = dd(i, n), r = c.findIndex((e) => !e), a = ud(i).length > 0;
|
|
8726
8731
|
if (e >= 0) {
|
|
8727
8732
|
for (; c.length <= e;) c.push(null);
|
|
8728
|
-
c[e] &&
|
|
8733
|
+
c[e] && yd(t, n.filterType), c[e] = n;
|
|
8729
8734
|
} else if (r >= 0) c[r] = n;
|
|
8730
8735
|
else if (!a) c.push(n);
|
|
8731
8736
|
else {
|
|
8732
8737
|
let e = Math.max(0, c.length - 1);
|
|
8733
|
-
|
|
8738
|
+
yd(t, n.filterType), c[e] = n;
|
|
8734
8739
|
}
|
|
8735
8740
|
}
|
|
8736
8741
|
return o[t] = {
|
|
@@ -8738,54 +8743,54 @@ var Ba = {
|
|
|
8738
8743
|
filterModels: c
|
|
8739
8744
|
}, o;
|
|
8740
8745
|
}
|
|
8741
|
-
if (!n) return
|
|
8742
|
-
let o =
|
|
8743
|
-
return o[t] =
|
|
8744
|
-
},
|
|
8746
|
+
if (!n) return _d(e, t);
|
|
8747
|
+
let o = hd(e);
|
|
8748
|
+
return o[t] = fd(i, n) ?? n, o;
|
|
8749
|
+
}, xd = (e, t) => {
|
|
8745
8750
|
if (e) {
|
|
8746
|
-
if (
|
|
8747
|
-
e.conditions.forEach((e) =>
|
|
8751
|
+
if (nd(e)) {
|
|
8752
|
+
e.conditions.forEach((e) => xd(e, t));
|
|
8748
8753
|
return;
|
|
8749
8754
|
}
|
|
8750
8755
|
t(e);
|
|
8751
8756
|
}
|
|
8752
|
-
},
|
|
8753
|
-
if (!
|
|
8757
|
+
}, Sd = (e, t) => nd(e) ? e.conditions.length > 0 && e.conditions.every((e) => Sd(e, t)) : e.colId === t, Cd = (e) => {
|
|
8758
|
+
if (!nd(e)) return e.colId;
|
|
8754
8759
|
let t = /* @__PURE__ */ new Set();
|
|
8755
|
-
return
|
|
8756
|
-
},
|
|
8757
|
-
if (!e ||
|
|
8758
|
-
if (!
|
|
8759
|
-
let n = e.conditions.flatMap((e) =>
|
|
8760
|
+
return xd(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
8761
|
+
}, wd = (e, t) => {
|
|
8762
|
+
if (!e || Sd(e, t)) return null;
|
|
8763
|
+
if (!nd(e) || e.type !== "AND") return id(e);
|
|
8764
|
+
let n = e.conditions.flatMap((e) => Sd(e, t) ? [] : [id(e)]);
|
|
8760
8765
|
return n.length ? n.length === 1 ? n[0] : {
|
|
8761
8766
|
conditions: n,
|
|
8762
8767
|
filterType: e.filterType,
|
|
8763
8768
|
type: e.type
|
|
8764
8769
|
} : null;
|
|
8765
|
-
},
|
|
8766
|
-
let r =
|
|
8767
|
-
return n ? r ?
|
|
8770
|
+
}, Td = (e, t, n) => {
|
|
8771
|
+
let r = wd(ad(e), t);
|
|
8772
|
+
return n ? r ? nd(r) && r.type === "AND" ? rd({
|
|
8768
8773
|
...r,
|
|
8769
8774
|
conditions: [...r.conditions, n]
|
|
8770
|
-
}) :
|
|
8775
|
+
}) : rd({
|
|
8771
8776
|
conditions: [r, n],
|
|
8772
8777
|
filterType: "join",
|
|
8773
8778
|
type: "AND"
|
|
8774
|
-
}) :
|
|
8775
|
-
},
|
|
8779
|
+
}) : rd(n) : rd(r);
|
|
8780
|
+
}, Ed = (e, t) => {
|
|
8776
8781
|
e.includes(t) || e.push(t);
|
|
8777
|
-
},
|
|
8782
|
+
}, Dd = (e) => {
|
|
8778
8783
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
8779
8784
|
let t = String(e.filter);
|
|
8780
8785
|
return t === "true" || t === "false";
|
|
8781
|
-
},
|
|
8786
|
+
}, Od = (e) => e.filterType === "boolean" || Dd(e), kd = (e, t) => {
|
|
8782
8787
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8783
|
-
e.values.forEach((e) =>
|
|
8788
|
+
e.values.forEach((e) => Ed(t.values, String(e)));
|
|
8784
8789
|
return;
|
|
8785
8790
|
}
|
|
8786
8791
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8787
8792
|
let n = String(e.filter);
|
|
8788
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8793
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ed(t.values, n);
|
|
8789
8794
|
return;
|
|
8790
8795
|
}
|
|
8791
8796
|
if (e.filterType === "boolean") {
|
|
@@ -8809,7 +8814,7 @@ var Ba = {
|
|
|
8809
8814
|
...t.rangeValue,
|
|
8810
8815
|
max: e.filter
|
|
8811
8816
|
}));
|
|
8812
|
-
},
|
|
8817
|
+
}, Ad = (e, t) => {
|
|
8813
8818
|
if (e.type === "notBlank") {
|
|
8814
8819
|
t.existsValue = !0;
|
|
8815
8820
|
return;
|
|
@@ -8819,12 +8824,12 @@ var Ba = {
|
|
|
8819
8824
|
return;
|
|
8820
8825
|
}
|
|
8821
8826
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8822
|
-
e.values.forEach((e) =>
|
|
8827
|
+
e.values.forEach((e) => Ed(t.values, String(e)));
|
|
8823
8828
|
return;
|
|
8824
8829
|
}
|
|
8825
8830
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8826
8831
|
let n = String(e.filter);
|
|
8827
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8832
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ed(t.values, n);
|
|
8828
8833
|
return;
|
|
8829
8834
|
}
|
|
8830
8835
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -8837,29 +8842,29 @@ var Ba = {
|
|
|
8837
8842
|
...t.rangeValue,
|
|
8838
8843
|
max: e.filter
|
|
8839
8844
|
}));
|
|
8840
|
-
},
|
|
8845
|
+
}, jd = (e, t = "advanced") => {
|
|
8841
8846
|
let n = /* @__PURE__ */ new Map();
|
|
8842
8847
|
if (t === "regular") {
|
|
8843
|
-
if (!
|
|
8848
|
+
if (!sd(e)) return n;
|
|
8844
8849
|
for (let [t, r] of Object.entries(e)) {
|
|
8845
|
-
let e =
|
|
8846
|
-
|
|
8850
|
+
let e = $u();
|
|
8851
|
+
md(r).forEach((t) => kd(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
8847
8852
|
}
|
|
8848
8853
|
return n;
|
|
8849
8854
|
}
|
|
8850
|
-
let r =
|
|
8855
|
+
let r = ad(e);
|
|
8851
8856
|
if (!r) return n;
|
|
8852
|
-
let i =
|
|
8857
|
+
let i = nd(r) && r.type === "AND" ? r.conditions : [r];
|
|
8853
8858
|
for (let e of i) {
|
|
8854
|
-
let t =
|
|
8859
|
+
let t = Cd(e);
|
|
8855
8860
|
if (!t) continue;
|
|
8856
|
-
let r = n.get(t) ??
|
|
8857
|
-
|
|
8858
|
-
e.colId === t &&
|
|
8861
|
+
let r = n.get(t) ?? $u();
|
|
8862
|
+
xd(e, (e) => {
|
|
8863
|
+
e.colId === t && Ad(e, r);
|
|
8859
8864
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
8860
8865
|
}
|
|
8861
8866
|
return n;
|
|
8862
|
-
},
|
|
8867
|
+
}, Md = (e, t = "advanced") => t === "regular" ? sd(e) && Object.keys(e).length > 0 : ad(e) !== null, Nd = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Pd = (e, t, n = "advanced") => n === "regular" ? _d(e, t) : rd(wd(ad(e), t)), Fd = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? bd(e, t, null, Od, a) : Pd(e, t, r) : r === "regular" ? bd(e, t, i === "text" ? {
|
|
8863
8868
|
filter: String(n),
|
|
8864
8869
|
filterType: "text",
|
|
8865
8870
|
type: "equals"
|
|
@@ -8867,30 +8872,30 @@ var Ba = {
|
|
|
8867
8872
|
filter: n,
|
|
8868
8873
|
filterType: "boolean",
|
|
8869
8874
|
type: n ? "true" : "false"
|
|
8870
|
-
},
|
|
8875
|
+
}, Od, a) : i === "text" ? Td(e, t, {
|
|
8871
8876
|
colId: t,
|
|
8872
8877
|
filter: String(n),
|
|
8873
8878
|
filterType: "text",
|
|
8874
8879
|
type: "equals"
|
|
8875
|
-
}) :
|
|
8880
|
+
}) : Td(e, t, {
|
|
8876
8881
|
colId: t,
|
|
8877
8882
|
filterType: "boolean",
|
|
8878
8883
|
type: n ? "true" : "false"
|
|
8879
|
-
}),
|
|
8884
|
+
}), Id = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? bd(e, t, {
|
|
8880
8885
|
filterType: r,
|
|
8881
8886
|
type: "notBlank"
|
|
8882
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
8887
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Td(e, t, {
|
|
8883
8888
|
colId: t,
|
|
8884
8889
|
filterType: r,
|
|
8885
8890
|
type: "notBlank"
|
|
8886
|
-
}) : i === "regular" ?
|
|
8887
|
-
let o =
|
|
8888
|
-
if (i === "regular") return o === null && s === null ?
|
|
8891
|
+
}) : i === "regular" ? bd(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Pd(e, t, i), Ld = (e, t, n, r, i = "advanced", a) => {
|
|
8892
|
+
let o = od(n), s = od(r);
|
|
8893
|
+
if (i === "regular") return o === null && s === null ? bd(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? bd(e, t, {
|
|
8889
8894
|
filter: o,
|
|
8890
8895
|
filterTo: s,
|
|
8891
8896
|
filterType: "number",
|
|
8892
8897
|
type: "inRange"
|
|
8893
|
-
}, (e) => e.filterType === "number", a) :
|
|
8898
|
+
}, (e) => e.filterType === "number", a) : bd(e, t, {
|
|
8894
8899
|
filter: o ?? s,
|
|
8895
8900
|
filterType: "number",
|
|
8896
8901
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -8906,29 +8911,29 @@ var Ba = {
|
|
|
8906
8911
|
filter: s,
|
|
8907
8912
|
filterType: "number",
|
|
8908
8913
|
type: "lessThanOrEqual"
|
|
8909
|
-
}), c.length ?
|
|
8914
|
+
}), c.length ? Td(e, t, c.length === 1 ? c[0] : {
|
|
8910
8915
|
conditions: c,
|
|
8911
8916
|
filterType: "join",
|
|
8912
8917
|
type: "AND"
|
|
8913
|
-
}) :
|
|
8914
|
-
},
|
|
8918
|
+
}) : Pd(e, t);
|
|
8919
|
+
}, Rd = (e, t, n, r = "advanced", i) => {
|
|
8915
8920
|
let a = Array.from(new Set(n));
|
|
8916
|
-
if (r === "regular") return a.length ?
|
|
8921
|
+
if (r === "regular") return a.length ? bd(e, t, {
|
|
8917
8922
|
filterType: "set",
|
|
8918
8923
|
values: a
|
|
8919
|
-
}, (e) => e.filterType === "set", i) :
|
|
8924
|
+
}, (e) => e.filterType === "set", i) : bd(e, t, null, (e) => e.filterType === "set", i);
|
|
8920
8925
|
let o = a.map((e) => ({
|
|
8921
8926
|
colId: t,
|
|
8922
8927
|
filter: e,
|
|
8923
8928
|
filterType: "text",
|
|
8924
8929
|
type: "equals"
|
|
8925
8930
|
}));
|
|
8926
|
-
return o.length ?
|
|
8931
|
+
return o.length ? Td(e, t, o.length === 1 ? o[0] : {
|
|
8927
8932
|
conditions: o,
|
|
8928
8933
|
filterType: "join",
|
|
8929
8934
|
type: "OR"
|
|
8930
|
-
}) :
|
|
8931
|
-
},
|
|
8935
|
+
}) : Pd(e, t);
|
|
8936
|
+
}, zd = Symbol("PvFilterStore"), Bd = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Vd = (e, t) => t ?? e, Hd = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Ud = (e) => {
|
|
8932
8937
|
let t = /* @__PURE__ */ new Map();
|
|
8933
8938
|
for (let n of e) {
|
|
8934
8939
|
if (!n) continue;
|
|
@@ -8940,34 +8945,34 @@ var Ba = {
|
|
|
8940
8945
|
t.set(n.value, {
|
|
8941
8946
|
...e,
|
|
8942
8947
|
...n,
|
|
8943
|
-
children:
|
|
8944
|
-
totalChildCount:
|
|
8948
|
+
children: Ud([...e.children ?? [], ...n.children ?? []]),
|
|
8949
|
+
totalChildCount: Vd(e.totalChildCount, n.totalChildCount)
|
|
8945
8950
|
});
|
|
8946
8951
|
}
|
|
8947
8952
|
return [...t.values()];
|
|
8948
|
-
},
|
|
8953
|
+
}, Wd = (e, t) => {
|
|
8949
8954
|
for (let n of e ?? []) {
|
|
8950
8955
|
if (!n) continue;
|
|
8951
8956
|
if (n.value === t) return n;
|
|
8952
|
-
let e =
|
|
8957
|
+
let e = Wd(n.children, t);
|
|
8953
8958
|
if (e) return e;
|
|
8954
8959
|
}
|
|
8955
|
-
},
|
|
8960
|
+
}, Gd = (e, t, n) => {
|
|
8956
8961
|
if (!e || t === null) return !1;
|
|
8957
8962
|
if (e.value === t) return !0;
|
|
8958
|
-
let r =
|
|
8959
|
-
return r !== null && r === t ||
|
|
8960
|
-
},
|
|
8961
|
-
let r =
|
|
8963
|
+
let r = Dl(e);
|
|
8964
|
+
return r !== null && r === t || Al(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Gd(e, t, n)) ?? !1;
|
|
8965
|
+
}, Kd = (e, t, n) => {
|
|
8966
|
+
let r = Wd(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
8962
8967
|
return e.map((e) => e && (e.value === t ? {
|
|
8963
8968
|
...e,
|
|
8964
|
-
children:
|
|
8965
|
-
totalChildCount:
|
|
8969
|
+
children: Ud([...e.children ?? [], ...i]),
|
|
8970
|
+
totalChildCount: Vd(e.totalChildCount, r?.totalChildCount)
|
|
8966
8971
|
} : e.children?.length ? {
|
|
8967
8972
|
...e,
|
|
8968
|
-
children:
|
|
8973
|
+
children: Kd(e.children, t, n).filter((e) => !!e)
|
|
8969
8974
|
} : e));
|
|
8970
|
-
},
|
|
8975
|
+
}, qd = (e, t) => `${e}::${t}`, Jd = () => {
|
|
8971
8976
|
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) => {
|
|
8972
8977
|
v.value = e;
|
|
8973
8978
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -8976,11 +8981,11 @@ var Ba = {
|
|
|
8976
8981
|
let r = n ? o : i;
|
|
8977
8982
|
r.value[e] = t;
|
|
8978
8983
|
}, T = () => {
|
|
8979
|
-
o.value =
|
|
8984
|
+
o.value = Hd(i.value), s.value = Hd(a.value);
|
|
8980
8985
|
}, E = () => {
|
|
8981
8986
|
o.value = {}, s.value = {};
|
|
8982
8987
|
}, D = () => {
|
|
8983
|
-
i.value =
|
|
8988
|
+
i.value = Hd(o.value), a.value = Hd(s.value), E();
|
|
8984
8989
|
}, O = (e, t) => {
|
|
8985
8990
|
c.value[e] = t;
|
|
8986
8991
|
}, A = (e, t) => {
|
|
@@ -9004,7 +9009,7 @@ var Ba = {
|
|
|
9004
9009
|
if (!o) return [];
|
|
9005
9010
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
9006
9011
|
c.value[n.field] = s;
|
|
9007
|
-
let u = n.parentId ?
|
|
9012
|
+
let u = n.parentId ? Wd(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 ? qd(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
9008
9013
|
g.value[x] = S;
|
|
9009
9014
|
try {
|
|
9010
9015
|
let c = await o({
|
|
@@ -9016,17 +9021,17 @@ var Ba = {
|
|
|
9016
9021
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
9017
9022
|
});
|
|
9018
9023
|
if (g.value[x] !== S) return [];
|
|
9019
|
-
let u =
|
|
9024
|
+
let u = Bd(c);
|
|
9020
9025
|
if (n.parentId) {
|
|
9021
|
-
let e =
|
|
9026
|
+
let e = qd(n.field, n.parentId);
|
|
9022
9027
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
9023
9028
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
9024
9029
|
let v = a.value[n.field] ?? [], b;
|
|
9025
|
-
b = n.parentId ?
|
|
9030
|
+
b = n.parentId ? Kd(r.value[n.field] ?? [], n.parentId, u.values) : y ? Ud([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
9026
9031
|
for (let e of v) {
|
|
9027
9032
|
if (!e) continue;
|
|
9028
|
-
let t =
|
|
9029
|
-
b.some((e) =>
|
|
9033
|
+
let t = Dl(e) ?? e.value;
|
|
9034
|
+
b.some((e) => Gd(e, t, n.field)) || b.push(e);
|
|
9030
9035
|
}
|
|
9031
9036
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
9032
9037
|
} finally {
|
|
@@ -9061,20 +9066,20 @@ var Ba = {
|
|
|
9061
9066
|
stagedFilterSelectedMetadataMap: s,
|
|
9062
9067
|
stagedFilterSelectedValueMap: o
|
|
9063
9068
|
};
|
|
9064
|
-
},
|
|
9065
|
-
O(
|
|
9066
|
-
},
|
|
9069
|
+
}, Yd = (e) => {
|
|
9070
|
+
O(zd, e);
|
|
9071
|
+
}, Xd = () => m(zd, null), Zd = () => Xd() ?? Jd(), Qd = "__range__", $d = "__boolean__", ef = "__exists__", tf = new Set([
|
|
9067
9072
|
"value",
|
|
9068
9073
|
"range",
|
|
9069
9074
|
"boolean",
|
|
9070
9075
|
"exists"
|
|
9071
9076
|
]);
|
|
9072
|
-
function
|
|
9077
|
+
function nf(e, t, n) {
|
|
9073
9078
|
f();
|
|
9074
|
-
let i = k(t.value), a =
|
|
9079
|
+
let i = k(t.value), a = Jd(), o = Xd(), 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(() => {
|
|
9075
9080
|
let n = p.value;
|
|
9076
9081
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
9077
|
-
}), y = r(() =>
|
|
9082
|
+
}), y = r(() => jd(v.value, _.value)), b = (e, t) => {
|
|
9078
9083
|
let n = e.applyFilterModel;
|
|
9079
9084
|
if (typeof n == "function") {
|
|
9080
9085
|
n(t);
|
|
@@ -9165,7 +9170,7 @@ function tf(e, t, n) {
|
|
|
9165
9170
|
});
|
|
9166
9171
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
9167
9172
|
let t = D(e), n = t.filterPanelType;
|
|
9168
|
-
if (n &&
|
|
9173
|
+
if (n && tf.has(n)) return n;
|
|
9169
9174
|
if (t.filterPanelRange) return "range";
|
|
9170
9175
|
if (t.dataType === "boolean") return "boolean";
|
|
9171
9176
|
if (e.filter) return "value";
|
|
@@ -9205,30 +9210,30 @@ function tf(e, t, n) {
|
|
|
9205
9210
|
...r,
|
|
9206
9211
|
...i
|
|
9207
9212
|
].filter(Boolean)));
|
|
9208
|
-
}, q = (e) => _.value === "advanced" &&
|
|
9213
|
+
}, q = (e) => _.value === "advanced" && Rl(e), J = (e, t) => q(e) ? Jl({
|
|
9209
9214
|
colDef: e,
|
|
9210
9215
|
model: v.value,
|
|
9211
9216
|
options: t
|
|
9212
9217
|
}) : new Map(te(e).map((e) => [e, y.value.get(e)?.values ?? []])), re = (e, t, n, r) => {
|
|
9213
9218
|
let i = /* @__PURE__ */ new Set();
|
|
9214
|
-
for (let t of
|
|
9219
|
+
for (let t of kl(r)) for (let [r, a] of n) for (let n of a) Al(t, r, n, e) && i.add(`${r}:${n}`);
|
|
9215
9220
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
9216
9221
|
colField: t === e ? void 0 : t,
|
|
9217
9222
|
label: n,
|
|
9218
9223
|
metadata: { rawValue: n },
|
|
9219
|
-
value: t === e ? n :
|
|
9224
|
+
value: t === e ? n : El(t, n)
|
|
9220
9225
|
}]));
|
|
9221
9226
|
}, ie = (e, t, n) => {
|
|
9222
9227
|
let r = /* @__PURE__ */ new Set();
|
|
9223
|
-
for (let i of
|
|
9224
|
-
let n =
|
|
9228
|
+
for (let i of kl(n)) {
|
|
9229
|
+
let n = Ol(i, e), a = Dl(i);
|
|
9225
9230
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
9226
9231
|
}
|
|
9227
9232
|
return Array.from(r);
|
|
9228
9233
|
}, ae = (t) => Object.fromEntries(te(t).map((t) => [t, e.focusedValues[t] ?? []])), Y = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), oe = (e) => Y(e)?.headerName ?? e, se = (e) => {
|
|
9229
9234
|
let t = D(e);
|
|
9230
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
9231
|
-
}, ce = (e, t) =>
|
|
9235
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Xu(O(e), t.queryColIds, oe);
|
|
9236
|
+
}, ce = (e, t) => Qu({
|
|
9232
9237
|
fallbackSubText: e.subText,
|
|
9233
9238
|
getDisplayName: oe,
|
|
9234
9239
|
matchedField: e.matchedField,
|
|
@@ -9246,7 +9251,7 @@ function tf(e, t, n) {
|
|
|
9246
9251
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
9247
9252
|
label: Y(e)?.headerName ?? e
|
|
9248
9253
|
}));
|
|
9249
|
-
}, ue = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) => te(t.colDef).includes(e)), de = (e, t, n) =>
|
|
9254
|
+
}, ue = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) => te(t.colDef).includes(e)), de = (e, t, n) => kl(ue(e)?.knownOptions ?? []).find((r) => r.value === n || Al(r, t, n, e)), fe = r(() => e.colDefs.filter(I).map((t) => {
|
|
9250
9255
|
let n = O(t), r = D(t), i = M(t), a = X(L(n), t), o = X(U(n), t), s = {
|
|
9251
9256
|
category: N(t),
|
|
9252
9257
|
colDef: t,
|
|
@@ -9308,7 +9313,7 @@ function tf(e, t, n) {
|
|
|
9308
9313
|
...s,
|
|
9309
9314
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
9310
9315
|
};
|
|
9311
|
-
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : J(t, c), f = re(n, t, d, c), p = [...c, ...f], m = q(t) ?
|
|
9316
|
+
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : J(t, c), f = re(n, t, d, c), p = [...c, ...f], m = q(t) ? ql({
|
|
9312
9317
|
colDef: t,
|
|
9313
9318
|
model: v.value,
|
|
9314
9319
|
options: p
|
|
@@ -9328,19 +9333,19 @@ function tf(e, t, n) {
|
|
|
9328
9333
|
label: e.label,
|
|
9329
9334
|
values: t
|
|
9330
9335
|
}] : [];
|
|
9331
|
-
})), pe = r(() => Z.value.reduce((e, t) => e + t.values.length, 0)), me = r(() =>
|
|
9336
|
+
})), pe = r(() => Z.value.reduce((e, t) => e + t.values.length, 0)), me = r(() => Md(v.value, _.value)), he = r(() => me.value || pe.value > 0), ge = (e) => {
|
|
9332
9337
|
let t = ue(e.field);
|
|
9333
9338
|
if (!t || t.type !== e.filter.type) return !0;
|
|
9334
9339
|
if (e.filter.type === "value") {
|
|
9335
9340
|
if (t.isAggregate && e.option) {
|
|
9336
|
-
let { selected: n } =
|
|
9341
|
+
let { selected: n } = su({
|
|
9337
9342
|
option: e.option,
|
|
9338
9343
|
options: t.knownOptions ?? [],
|
|
9339
9344
|
state: t.aggregateSelectionState ?? []
|
|
9340
9345
|
});
|
|
9341
9346
|
return e.filter.checked ? n : !n;
|
|
9342
9347
|
}
|
|
9343
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
9348
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Dl(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
9344
9349
|
return e.filter.checked ? a : !a;
|
|
9345
9350
|
}
|
|
9346
9351
|
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;
|
|
@@ -9354,14 +9359,14 @@ function tf(e, t, n) {
|
|
|
9354
9359
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
9355
9360
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
9356
9361
|
if (!e) return !1;
|
|
9357
|
-
let r =
|
|
9362
|
+
let r = Ol(e, t), i = Dl(e) ?? e.value;
|
|
9358
9363
|
return r !== n || c.has(i);
|
|
9359
9364
|
});
|
|
9360
9365
|
if (i) {
|
|
9361
|
-
let e =
|
|
9366
|
+
let e = Dl(i) ?? i.value, n = Ol(i, t);
|
|
9362
9367
|
l.some((r) => {
|
|
9363
|
-
let i =
|
|
9364
|
-
return
|
|
9368
|
+
let i = Dl(r) ?? r.value;
|
|
9369
|
+
return Ol(r, t) === n && i === e;
|
|
9365
9370
|
}) || l.push(i);
|
|
9366
9371
|
}
|
|
9367
9372
|
o.value[t] = l;
|
|
@@ -9371,7 +9376,7 @@ function tf(e, t, n) {
|
|
|
9371
9376
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
9372
9377
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
9373
9378
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
9374
|
-
a.value[t.key] =
|
|
9379
|
+
a.value[t.key] = cu({
|
|
9375
9380
|
options: t.knownOptions ?? [],
|
|
9376
9381
|
state: n
|
|
9377
9382
|
});
|
|
@@ -9400,48 +9405,48 @@ function tf(e, t, n) {
|
|
|
9400
9405
|
return t === null ? [] : [{
|
|
9401
9406
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
9402
9407
|
type: "boolean",
|
|
9403
|
-
value:
|
|
9408
|
+
value: $d
|
|
9404
9409
|
}];
|
|
9405
9410
|
}, Te = (e) => e.existsValue ? [{
|
|
9406
9411
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
9407
9412
|
type: "exists",
|
|
9408
|
-
value:
|
|
9413
|
+
value: ef
|
|
9409
9414
|
}] : [], Ee = (e) => {
|
|
9410
9415
|
let t = e.rangeValue ?? {
|
|
9411
9416
|
max: null,
|
|
9412
9417
|
min: null
|
|
9413
9418
|
};
|
|
9414
9419
|
return t.min === null && t.max === null ? [] : [{
|
|
9415
|
-
label:
|
|
9420
|
+
label: gl(t.min, t.max, {
|
|
9416
9421
|
dataType: e.dataType,
|
|
9417
9422
|
valueDecimals: e.valueDecimals
|
|
9418
9423
|
}),
|
|
9419
9424
|
type: "range",
|
|
9420
|
-
value:
|
|
9425
|
+
value: Qd
|
|
9421
9426
|
}];
|
|
9422
9427
|
}, De = (e, t, n) => {
|
|
9423
9428
|
let r = n.get(t) ?? null;
|
|
9424
9429
|
return {
|
|
9425
|
-
field: r ?
|
|
9426
|
-
label: r ?
|
|
9427
|
-
resultCount:
|
|
9430
|
+
field: r ? Ol(r, e.key) : void 0,
|
|
9431
|
+
label: r ? yl(r, e.colDef) : t,
|
|
9432
|
+
resultCount: bl(r),
|
|
9428
9433
|
subText: r?.subText,
|
|
9429
9434
|
subduedText: r?.subduedText,
|
|
9430
9435
|
type: "value",
|
|
9431
|
-
value: r ?
|
|
9436
|
+
value: r ? Dl(r) ?? r.value : t
|
|
9432
9437
|
};
|
|
9433
9438
|
}, Oe = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
9434
9439
|
field: e.field,
|
|
9435
9440
|
label: e.label,
|
|
9436
9441
|
type: "boolean",
|
|
9437
|
-
value:
|
|
9438
|
-
}] : []), ke = (e) =>
|
|
9442
|
+
value: $d
|
|
9443
|
+
}] : []), ke = (e) => cu({
|
|
9439
9444
|
options: e.knownOptions ?? [],
|
|
9440
9445
|
state: e.aggregateSelectionState ?? []
|
|
9441
9446
|
}).map((t) => ({
|
|
9442
9447
|
field: e.key,
|
|
9443
|
-
label:
|
|
9444
|
-
resultCount:
|
|
9448
|
+
label: yl(t, e.colDef),
|
|
9449
|
+
resultCount: bl(t),
|
|
9445
9450
|
subText: t.subText,
|
|
9446
9451
|
subduedText: t.subduedText,
|
|
9447
9452
|
type: "value",
|
|
@@ -9452,7 +9457,7 @@ function tf(e, t, n) {
|
|
|
9452
9457
|
if (e.type === "boolean") return we(e);
|
|
9453
9458
|
if (e.type === "exists") return Te(e);
|
|
9454
9459
|
if (e.isAggregate) return [...ke(e), ...Oe(e)];
|
|
9455
|
-
let t = new Map(
|
|
9460
|
+
let t = new Map(kl(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
9456
9461
|
return [...(e.selectedValues ?? []).map((n) => De(e, n, t)), ...Oe(e)];
|
|
9457
9462
|
}, je = () => {
|
|
9458
9463
|
Be(), Ce(null, "clear-all");
|
|
@@ -9464,9 +9469,9 @@ function tf(e, t, n) {
|
|
|
9464
9469
|
Be();
|
|
9465
9470
|
let e = p.value;
|
|
9466
9471
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
9467
|
-
}, Pe = (e) =>
|
|
9472
|
+
}, Pe = (e) => Nd(ue(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
9468
9473
|
let r = ue(e);
|
|
9469
|
-
r?.isAggregate && (be(r, t), Ce(
|
|
9474
|
+
r?.isAggregate && (be(r, t), Ce(Gl({
|
|
9470
9475
|
baseModel: v.value,
|
|
9471
9476
|
colDef: r.colDef,
|
|
9472
9477
|
options: r.knownOptions ?? [],
|
|
@@ -9481,7 +9486,7 @@ function tf(e, t, n) {
|
|
|
9481
9486
|
if (t.type === "value") {
|
|
9482
9487
|
let r = ue(e), i = de(e, n, t.value);
|
|
9483
9488
|
if (r?.isAggregate && i) {
|
|
9484
|
-
Fe(e,
|
|
9489
|
+
Fe(e, iu({
|
|
9485
9490
|
checked: t.checked,
|
|
9486
9491
|
option: i,
|
|
9487
9492
|
options: r.knownOptions ?? [],
|
|
@@ -9497,10 +9502,10 @@ function tf(e, t, n) {
|
|
|
9497
9502
|
return;
|
|
9498
9503
|
}
|
|
9499
9504
|
if (t.type === "boolean") {
|
|
9500
|
-
Ce(
|
|
9505
|
+
Ce(Fd(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
9501
9506
|
return;
|
|
9502
9507
|
}
|
|
9503
|
-
Ce(
|
|
9508
|
+
Ce(Id(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
9504
9509
|
}, Le = (e, t, n, r) => {
|
|
9505
9510
|
let i = p.value;
|
|
9506
9511
|
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;
|
|
@@ -9520,7 +9525,7 @@ function tf(e, t, n) {
|
|
|
9520
9525
|
}, ze = (e, t, r) => {
|
|
9521
9526
|
n("load-more", e.key, e.colDef, t, r), Re(e, t, r ? "child-load-more" : "load-more", r);
|
|
9522
9527
|
}, Q = (e, t, n) => {
|
|
9523
|
-
Ce(
|
|
9528
|
+
Ce(Ld(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
9524
9529
|
}, Be = () => {
|
|
9525
9530
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
9526
9531
|
l.clear();
|
|
@@ -9560,7 +9565,7 @@ function tf(e, t, n) {
|
|
|
9560
9565
|
n("controlled-change", t, l, s.colDef);
|
|
9561
9566
|
return;
|
|
9562
9567
|
}
|
|
9563
|
-
ye(t, r, l, a ? o : void 0), Ce(
|
|
9568
|
+
ye(t, r, l, a ? o : void 0), Ce(Rd(v.value, r, l, _.value, Y(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
9564
9569
|
};
|
|
9565
9570
|
return {
|
|
9566
9571
|
resolvedFilters: fe,
|
|
@@ -9585,8 +9590,8 @@ function tf(e, t, n) {
|
|
|
9585
9590
|
handleSearchChange: Ue,
|
|
9586
9591
|
handleSuggestionClick: (e) => {
|
|
9587
9592
|
if (e.filter.type === "value" && e.option) {
|
|
9588
|
-
let t = ue(e.field), n =
|
|
9589
|
-
t?.isAggregate ? Fe(e.field,
|
|
9593
|
+
let t = ue(e.field), n = Ol(e.option, e.field), r = Dl(e.option) ?? e.filter.value;
|
|
9594
|
+
t?.isAggregate ? Fe(e.field, iu({
|
|
9590
9595
|
checked: e.filter.checked,
|
|
9591
9596
|
option: e.option,
|
|
9592
9597
|
options: t.knownOptions ?? [],
|
|
@@ -9597,21 +9602,21 @@ function tf(e, t, n) {
|
|
|
9597
9602
|
},
|
|
9598
9603
|
removeAppliedFilter: (e, t, n) => {
|
|
9599
9604
|
let r = n ?? ue(e)?.type ?? "value";
|
|
9600
|
-
if (r === "range" || !n && t ===
|
|
9601
|
-
Ce(
|
|
9605
|
+
if (r === "range" || !n && t === Qd) {
|
|
9606
|
+
Ce(Ld(v.value, e, null, null, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "range");
|
|
9602
9607
|
return;
|
|
9603
9608
|
}
|
|
9604
|
-
if (r === "boolean" || !n && t ===
|
|
9605
|
-
Ce(
|
|
9609
|
+
if (r === "boolean" || !n && t === $d) {
|
|
9610
|
+
Ce(Fd(v.value, e, null, _.value, "boolean", Y(e) ?? ue(e)?.colDef), "remove-filter", e, "boolean");
|
|
9606
9611
|
return;
|
|
9607
9612
|
}
|
|
9608
|
-
if (r === "exists" || !n && t ===
|
|
9609
|
-
Ce(
|
|
9613
|
+
if (r === "exists" || !n && t === ef) {
|
|
9614
|
+
Ce(Id(v.value, e, !1, "text", _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "exists");
|
|
9610
9615
|
return;
|
|
9611
9616
|
}
|
|
9612
9617
|
let i = ue(e);
|
|
9613
9618
|
if (r === "value" && i?.isAggregate) {
|
|
9614
|
-
let e =
|
|
9619
|
+
let e = zl(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? iu({
|
|
9615
9620
|
checked: !1,
|
|
9616
9621
|
option: e,
|
|
9617
9622
|
options: i.knownOptions ?? [],
|
|
@@ -9621,7 +9626,7 @@ function tf(e, t, n) {
|
|
|
9621
9626
|
return;
|
|
9622
9627
|
}
|
|
9623
9628
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
9624
|
-
ye(ue(e)?.key ?? e, e, a), Ce(
|
|
9629
|
+
ye(ue(e)?.key ?? e, e, a), Ce(Rd(v.value, e, a, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "value");
|
|
9625
9630
|
},
|
|
9626
9631
|
setFacetSelections: Ge,
|
|
9627
9632
|
usesHandlerFacets: $
|
|
@@ -9629,32 +9634,32 @@ function tf(e, t, n) {
|
|
|
9629
9634
|
}
|
|
9630
9635
|
//#endregion
|
|
9631
9636
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9632
|
-
var
|
|
9637
|
+
var rf = ["aria-label"], af = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, of = { class: "pv-filter-panel-body pv-flex-vertical" }, sf = {
|
|
9633
9638
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
9634
9639
|
"data-testid": "pv-filter-panel-filters-view"
|
|
9635
|
-
},
|
|
9640
|
+
}, cf = {
|
|
9636
9641
|
key: 0,
|
|
9637
9642
|
"aria-label": "Filter suggestions",
|
|
9638
9643
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
9639
9644
|
"data-testid": "pv-filter-panel-suggestions"
|
|
9640
|
-
},
|
|
9645
|
+
}, lf = { class: "pv-filter-panel-suggestion-tags pv-flex" }, uf = {
|
|
9641
9646
|
key: 1,
|
|
9642
9647
|
class: "pv-filter-panel-search pv-border-bottom",
|
|
9643
9648
|
"data-testid": "pv-filter-panel-search"
|
|
9644
|
-
},
|
|
9649
|
+
}, df = {
|
|
9645
9650
|
key: 2,
|
|
9646
9651
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9647
|
-
},
|
|
9652
|
+
}, ff = {
|
|
9648
9653
|
key: 3,
|
|
9649
9654
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9650
|
-
},
|
|
9655
|
+
}, pf = {
|
|
9651
9656
|
key: 4,
|
|
9652
9657
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
9653
9658
|
style: { "--inset-size": "8px" }
|
|
9654
|
-
},
|
|
9659
|
+
}, mf = {
|
|
9655
9660
|
key: 0,
|
|
9656
9661
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
9657
|
-
},
|
|
9662
|
+
}, hf = { class: "pv-filter-panel-actions pv-flex" }, gf = { class: "pv-text-body-sm" }, _f = { class: "pv-filter-panel-modal-footer pv-flex" }, vf = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
9658
9663
|
__name: "PvFilterPanel",
|
|
9659
9664
|
props: /* @__PURE__ */ g({
|
|
9660
9665
|
allCategoriesLabel: { default: "All" },
|
|
@@ -9745,7 +9750,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9745
9750
|
"suggestion-click"
|
|
9746
9751
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
9747
9752
|
setup(e, { emit: n }) {
|
|
9748
|
-
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 } =
|
|
9753
|
+
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 } = nf(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);
|
|
9749
9754
|
K(ee, (e) => {
|
|
9750
9755
|
e && (F.value = null);
|
|
9751
9756
|
}), K(F, (e) => {
|
|
@@ -9787,7 +9792,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9787
9792
|
"aria-label": e.ariaLabel,
|
|
9788
9793
|
style: x(he.value)
|
|
9789
9794
|
}, [
|
|
9790
|
-
s("div",
|
|
9795
|
+
s("div", af, [u(Ar, {
|
|
9791
9796
|
modelValue: N.value,
|
|
9792
9797
|
options: me.value,
|
|
9793
9798
|
class: "pv-filter-panel-mode-control",
|
|
@@ -9801,8 +9806,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9801
9806
|
variant: "secondary",
|
|
9802
9807
|
onClick: r[0] ||= (e) => d.value = !0
|
|
9803
9808
|
}))]),
|
|
9804
|
-
s("div",
|
|
9805
|
-
!e.readOnly && L(_).length ? (D(), o("section",
|
|
9809
|
+
s("div", of, [J(s("div", sf, [
|
|
9810
|
+
!e.readOnly && L(_).length ? (D(), o("section", cf, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", lf, [(D(!0), o(t, null, A(L(_), (e) => (D(), i(ri, {
|
|
9806
9811
|
key: L(C)(e),
|
|
9807
9812
|
icon: e.icon,
|
|
9808
9813
|
"icon-classes": e.iconClasses,
|
|
@@ -9815,7 +9820,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9815
9820
|
"onHandleClick"
|
|
9816
9821
|
]))), 128))])])) : a("", !0),
|
|
9817
9822
|
j(n.$slots, "suggestions", {}, void 0, !0),
|
|
9818
|
-
u(
|
|
9823
|
+
u(Yu, {
|
|
9819
9824
|
modelValue: F.value,
|
|
9820
9825
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
9821
9826
|
"all-categories-label": e.allCategoriesLabel,
|
|
@@ -9827,12 +9832,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9827
9832
|
"category-order",
|
|
9828
9833
|
"filters"
|
|
9829
9834
|
]),
|
|
9830
|
-
e.enableFilterSearch && L(p).length ? (D(), o("div",
|
|
9835
|
+
e.enableFilterSearch && L(p).length ? (D(), o("div", uf, [u(ui, {
|
|
9831
9836
|
modelValue: V.value,
|
|
9832
9837
|
"onUpdate:modelValue": r[2] ||= (e) => V.value = e,
|
|
9833
9838
|
placeholder: e.filterSearchPlaceholder
|
|
9834
9839
|
}, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
|
|
9835
|
-
L(p).length ? G.value.length ? (D(), o("div",
|
|
9840
|
+
L(p).length ? G.value.length ? (D(), o("div", pf, [(D(!0), o(t, null, A(pe.value, (t) => (D(), i(Pu, {
|
|
9836
9841
|
key: t.key,
|
|
9837
9842
|
"disable-while-loading": e.disableWhileLoading,
|
|
9838
9843
|
filter: t,
|
|
@@ -9855,8 +9860,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9855
9860
|
label: oe.value,
|
|
9856
9861
|
variant: "ghost",
|
|
9857
9862
|
onClick: r[5] ||= (e) => R.value = !R.value
|
|
9858
|
-
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div",
|
|
9859
|
-
], 512), [[te, N.value === "filters"]]), J(u(
|
|
9863
|
+
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div", ff, I(Y.value), 1)) : (D(), o("div", df, " No filters available. "))
|
|
9864
|
+
], 512), [[te, N.value === "filters"]]), J(u(Hu, {
|
|
9860
9865
|
"applied-count": L(h),
|
|
9861
9866
|
"applied-groups": L(m),
|
|
9862
9867
|
"external-filters": ce.value,
|
|
@@ -9870,7 +9875,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9870
9875
|
"read-only",
|
|
9871
9876
|
"onRemoveFilter"
|
|
9872
9877
|
]), [[te, N.value === "applied"]])]),
|
|
9873
|
-
Z.value ? (D(), o("div",
|
|
9878
|
+
Z.value ? (D(), o("div", mf, [s("div", hf, [fe.value && !e.readOnly ? (D(), i($, {
|
|
9874
9879
|
key: 0,
|
|
9875
9880
|
class: "pv-text-brand",
|
|
9876
9881
|
label: e.clearAllLabel,
|
|
@@ -9885,14 +9890,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9885
9890
|
variant: "primary",
|
|
9886
9891
|
onClick: L(y)
|
|
9887
9892
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
9888
|
-
], 12,
|
|
9893
|
+
], 12, rf)), u(Ur, {
|
|
9889
9894
|
modelValue: z.value,
|
|
9890
9895
|
"onUpdate:modelValue": r[7] ||= (e) => z.value = e,
|
|
9891
9896
|
header: e.clearAllHeader,
|
|
9892
9897
|
style: { "--max-width": "440px" }
|
|
9893
9898
|
}, {
|
|
9894
|
-
body: q(() => [s("p",
|
|
9895
|
-
footer: q(() => [s("div",
|
|
9899
|
+
body: q(() => [s("p", gf, I(e.clearAllBody), 1)]),
|
|
9900
|
+
footer: q(() => [s("div", _f, [u($, {
|
|
9896
9901
|
label: e.cancelLabel,
|
|
9897
9902
|
variant: "ghost",
|
|
9898
9903
|
onClick: ve
|
|
@@ -9904,16 +9909,16 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9904
9909
|
_: 1
|
|
9905
9910
|
}, 8, ["modelValue", "header"])], 64));
|
|
9906
9911
|
}
|
|
9907
|
-
}), [["__scopeId", "data-v-59a9b1c6"]]),
|
|
9912
|
+
}), [["__scopeId", "data-v-59a9b1c6"]]), yf = ["for"], bf = [
|
|
9908
9913
|
"id",
|
|
9909
9914
|
"type",
|
|
9910
9915
|
"value",
|
|
9911
9916
|
"name",
|
|
9912
9917
|
"disabled"
|
|
9913
|
-
],
|
|
9918
|
+
], xf = { key: 0 }, Sf = {
|
|
9914
9919
|
class: "pv-inset-square",
|
|
9915
9920
|
style: { "--inset-size": "0px 2px" }
|
|
9916
|
-
},
|
|
9921
|
+
}, Cf = /* @__PURE__ */ d({
|
|
9917
9922
|
__name: "PvFilterModalSelectItem",
|
|
9918
9923
|
props: /* @__PURE__ */ g({
|
|
9919
9924
|
rounded: { type: Boolean },
|
|
@@ -9946,55 +9951,55 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9946
9951
|
value: e.value,
|
|
9947
9952
|
name: e.name,
|
|
9948
9953
|
disabled: e.disabled
|
|
9949
|
-
}, null, 8,
|
|
9950
|
-
e.label ? (D(), o("span",
|
|
9951
|
-
s("span",
|
|
9952
|
-
], 8,
|
|
9954
|
+
}, null, 8, bf), [[U, n.value]]),
|
|
9955
|
+
e.label ? (D(), o("span", xf, I(e.label), 1)) : a("", !0),
|
|
9956
|
+
s("span", Sf, I(e.rightCounterBadge), 1)
|
|
9957
|
+
], 8, yf));
|
|
9953
9958
|
}
|
|
9954
|
-
}),
|
|
9959
|
+
}), wf = ["aria-label"], Tf = {
|
|
9955
9960
|
class: "pv-filter-modal pv-flex",
|
|
9956
9961
|
style: {
|
|
9957
9962
|
"--flex-align": "stretch",
|
|
9958
9963
|
"--flex-gap": "0"
|
|
9959
9964
|
}
|
|
9960
|
-
},
|
|
9965
|
+
}, Ef = {
|
|
9961
9966
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
9962
9967
|
"aria-label": "Filter categories",
|
|
9963
9968
|
style: { "--flex-gap": "0.25rem" }
|
|
9964
|
-
},
|
|
9969
|
+
}, Df = {
|
|
9965
9970
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
9966
9971
|
style: {
|
|
9967
9972
|
"--flex-align": "stretch",
|
|
9968
9973
|
"--flex-gap": "0.75rem"
|
|
9969
9974
|
}
|
|
9970
|
-
},
|
|
9975
|
+
}, Of = {
|
|
9971
9976
|
key: 0,
|
|
9972
9977
|
class: "pv-flex",
|
|
9973
9978
|
style: {
|
|
9974
9979
|
"--flex-gap": "0.5rem",
|
|
9975
9980
|
"flex-wrap": "wrap"
|
|
9976
9981
|
}
|
|
9977
|
-
},
|
|
9982
|
+
}, kf = {
|
|
9978
9983
|
key: 1,
|
|
9979
9984
|
class: "pv-inset-square-8"
|
|
9980
|
-
},
|
|
9985
|
+
}, Af = {
|
|
9981
9986
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
9982
9987
|
style: {
|
|
9983
9988
|
"--flex-align": "stretch",
|
|
9984
9989
|
"--flex-gap": "0.75rem"
|
|
9985
9990
|
}
|
|
9986
|
-
},
|
|
9991
|
+
}, jf = {
|
|
9987
9992
|
key: 1,
|
|
9988
9993
|
class: "pv-text-body-sm pv-text-subdued pv-stack-8",
|
|
9989
9994
|
style: { "font-weight": "500" }
|
|
9990
|
-
},
|
|
9995
|
+
}, Mf = {
|
|
9991
9996
|
key: 0,
|
|
9992
9997
|
class: "pv-text-body-xs pv-text-subdued",
|
|
9993
9998
|
style: { margin: "0" }
|
|
9994
|
-
},
|
|
9999
|
+
}, Nf = {
|
|
9995
10000
|
key: 3,
|
|
9996
10001
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
9997
|
-
},
|
|
10002
|
+
}, Pf = {
|
|
9998
10003
|
key: 0,
|
|
9999
10004
|
class: "pv-flex pv-border-top",
|
|
10000
10005
|
style: {
|
|
@@ -10003,7 +10008,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10003
10008
|
"margin-top": "0.75rem",
|
|
10004
10009
|
"padding-top": "0.75rem"
|
|
10005
10010
|
}
|
|
10006
|
-
},
|
|
10011
|
+
}, Ff = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
10007
10012
|
__name: "PvFilterModal",
|
|
10008
10013
|
props: /* @__PURE__ */ g({
|
|
10009
10014
|
header: { default: "Filters" },
|
|
@@ -10089,7 +10094,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10089
10094
|
"suggestion-click"
|
|
10090
10095
|
], ["update:filterModel", "update:visible"]),
|
|
10091
10096
|
setup(e, { emit: n }) {
|
|
10092
|
-
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 } =
|
|
10097
|
+
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 } = nf(c, l, f), w = k(null), T = z(), E = k(""), O = r(() => p.value.filter((e) => e.type === "value")), M = r(() => {
|
|
10093
10098
|
let e = O.value;
|
|
10094
10099
|
return e.find((e) => e.key === w.value) ?? e[0] ?? null;
|
|
10095
10100
|
}), 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) => {
|
|
@@ -10106,7 +10111,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10106
10111
|
let e = M.value;
|
|
10107
10112
|
if (!e) return {};
|
|
10108
10113
|
let t = {};
|
|
10109
|
-
for (let n of
|
|
10114
|
+
for (let n of kl([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
10110
10115
|
return t;
|
|
10111
10116
|
}), U = r(() => M.value?.colDef.context?.filterPanel ?? {}), W = k(Object.fromEntries(O.value.flatMap((e) => {
|
|
10112
10117
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
@@ -10172,22 +10177,22 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10172
10177
|
options: [...i.filter((e) => ce.value.has(e.value)), ...i.filter((e) => !ce.value.has(e.value))]
|
|
10173
10178
|
};
|
|
10174
10179
|
});
|
|
10175
|
-
}), fe = r(() => P.value && M.value ?
|
|
10180
|
+
}), fe = r(() => P.value && M.value ? ou({
|
|
10176
10181
|
options: M.value.knownOptions ?? [],
|
|
10177
10182
|
state: F.value
|
|
10178
|
-
}) : /* @__PURE__ */ new Map()), Z = (e) => e.isAggregate ?
|
|
10183
|
+
}) : /* @__PURE__ */ new Map()), Z = (e) => e.isAggregate ? lu(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, pe = (e) => P.value ? fe.value.get(e.value) ?? {
|
|
10179
10184
|
indeterminate: !1,
|
|
10180
10185
|
selected: !1
|
|
10181
10186
|
} : {
|
|
10182
10187
|
indeterminate: !1,
|
|
10183
10188
|
selected: R.value.has(e.value)
|
|
10184
|
-
}, me = (e) => M.value ?
|
|
10189
|
+
}, me = (e) => M.value ? yl(e, M.value.colDef) : e.label || e.value, he = (e) => Dl(e) ?? e.value, ge = (e) => Ol(e, M.value?.key ?? ""), _e = (e, t) => {
|
|
10185
10190
|
let n = M.value;
|
|
10186
10191
|
if (n) {
|
|
10187
10192
|
if (n.isAggregate) {
|
|
10188
10193
|
_(n.key, {
|
|
10189
10194
|
type: "aggregate-selection",
|
|
10190
|
-
value:
|
|
10195
|
+
value: iu({
|
|
10191
10196
|
checked: t,
|
|
10192
10197
|
option: e,
|
|
10193
10198
|
options: n.knownOptions ?? [],
|
|
@@ -10207,7 +10212,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10207
10212
|
for (let e of Y.value) pe(e).selected || _e(e, !0);
|
|
10208
10213
|
}, ye = () => {
|
|
10209
10214
|
if (P.value) {
|
|
10210
|
-
for (let e of
|
|
10215
|
+
for (let e of kl(M.value?.knownOptions ?? [])) pe(e).selected && _e(e, !1);
|
|
10211
10216
|
return;
|
|
10212
10217
|
}
|
|
10213
10218
|
for (let e of oe.value) _e(e, !1);
|
|
@@ -10254,7 +10259,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10254
10259
|
width: e.maxWidth,
|
|
10255
10260
|
maxWidth: e.maxWidth
|
|
10256
10261
|
})
|
|
10257
|
-
}, [s("div",
|
|
10262
|
+
}, [s("div", Tf, [s("nav", Ef, [(D(!0), o(t, null, A(O.value, (e) => (D(), i(Cf, {
|
|
10258
10263
|
key: e.key,
|
|
10259
10264
|
modelValue: xe.value,
|
|
10260
10265
|
"onUpdate:modelValue": r[0] ||= (e) => xe.value = e,
|
|
@@ -10268,7 +10273,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10268
10273
|
"label",
|
|
10269
10274
|
"right-counter-badge",
|
|
10270
10275
|
"value"
|
|
10271
|
-
]))), 128))]), s("div",
|
|
10276
|
+
]))), 128))]), s("div", Df, [
|
|
10272
10277
|
u(ui, {
|
|
10273
10278
|
modelValue: E.value,
|
|
10274
10279
|
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
@@ -10280,7 +10285,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10280
10285
|
"disabled",
|
|
10281
10286
|
"placeholder"
|
|
10282
10287
|
]),
|
|
10283
|
-
Object.keys(U.value).length ? (D(), o("div",
|
|
10288
|
+
Object.keys(U.value).length ? (D(), o("div", Of, [(D(!0), o(t, null, A(U.value, (e, t) => (D(), i(Mo, {
|
|
10284
10289
|
key: `facet-${t}`,
|
|
10285
10290
|
disabled: M.value?.disabled,
|
|
10286
10291
|
label: e.headerName || L(Se)(t),
|
|
@@ -10295,8 +10300,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10295
10300
|
"options",
|
|
10296
10301
|
"onUpdate:modelValue"
|
|
10297
10302
|
]))), 128))])) : a("", !0),
|
|
10298
|
-
M.value?.isLoading ? (D(), o("div",
|
|
10299
|
-
s("div",
|
|
10303
|
+
M.value?.isLoading ? (D(), o("div", kf, [u(Me, { size: "sm" })])) : M.value ? (D(), o(t, { key: 2 }, [
|
|
10304
|
+
s("div", Af, [(D(!0), o(t, null, A(ue.value, (e) => (D(), o("div", {
|
|
10300
10305
|
key: `section-${e.key}`,
|
|
10301
10306
|
class: "pv-flex-vertical",
|
|
10302
10307
|
style: {
|
|
@@ -10317,17 +10322,17 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10317
10322
|
"field",
|
|
10318
10323
|
"options",
|
|
10319
10324
|
"section"
|
|
10320
|
-
])) : e.label ? (D(), o("p",
|
|
10325
|
+
])) : e.label ? (D(), o("p", jf, I(e.label), 1)) : a("", !0), (D(!0), o(t, null, A(e.options, (e) => (D(), o("div", {
|
|
10321
10326
|
key: `option-${e.value}`,
|
|
10322
10327
|
class: y(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": pe(e).selected }])
|
|
10323
|
-
}, [u(
|
|
10328
|
+
}, [u(ll, {
|
|
10324
10329
|
control: M.value.singleSelect ? "radio" : "checkbox",
|
|
10325
10330
|
disabled: M.value.disabled || e.isSelectable === !1,
|
|
10326
10331
|
indeterminate: pe(e).indeterminate,
|
|
10327
10332
|
label: me(e),
|
|
10328
10333
|
name: L(T),
|
|
10329
10334
|
"query-text": E.value,
|
|
10330
|
-
"result-count": L(
|
|
10335
|
+
"result-count": L(bl)(e),
|
|
10331
10336
|
selected: pe(e).selected,
|
|
10332
10337
|
"sub-text": e.subText,
|
|
10333
10338
|
"subdued-text": e.subduedText,
|
|
@@ -10347,7 +10352,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10347
10352
|
"value",
|
|
10348
10353
|
"onToggleValue"
|
|
10349
10354
|
])], 2))), 128))]))), 128))]),
|
|
10350
|
-
Y.value.length ? a("", !0) : (D(), o("p",
|
|
10355
|
+
Y.value.length ? a("", !0) : (D(), o("p", Mf, " No matching values. ")),
|
|
10351
10356
|
M.value.hasMore ? (D(), i($, {
|
|
10352
10357
|
key: 1,
|
|
10353
10358
|
class: "pv-text-brand",
|
|
@@ -10358,7 +10363,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10358
10363
|
onClick: be
|
|
10359
10364
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
10360
10365
|
], 64)) : a("", !0),
|
|
10361
|
-
M.value && !e.readOnly ? (D(), o("div",
|
|
10366
|
+
M.value && !e.readOnly ? (D(), o("div", Nf, [M.value.singleSelect ? a("", !0) : (D(), i($, {
|
|
10362
10367
|
key: 0,
|
|
10363
10368
|
disabled: M.value.disabled,
|
|
10364
10369
|
label: e.selectAllLabel,
|
|
@@ -10370,7 +10375,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10370
10375
|
variant: "ghost",
|
|
10371
10376
|
onClick: ye
|
|
10372
10377
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
10373
|
-
])]), e.staged ? (D(), o("div",
|
|
10378
|
+
])]), e.staged ? (D(), o("div", Pf, [u($, {
|
|
10374
10379
|
label: e.cancelLabel,
|
|
10375
10380
|
variant: "ghost",
|
|
10376
10381
|
onClick: L(g)
|
|
@@ -10378,14 +10383,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10378
10383
|
label: e.applyLabel,
|
|
10379
10384
|
variant: "primary",
|
|
10380
10385
|
onClick: L(h)
|
|
10381
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
10386
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, wf)]),
|
|
10382
10387
|
_: 3
|
|
10383
10388
|
}, 8, ["modelValue"]));
|
|
10384
10389
|
}
|
|
10385
|
-
}), [["__scopeId", "data-v-e3f66d03"]]),
|
|
10390
|
+
}), [["__scopeId", "data-v-e3f66d03"]]), If = ["tabindex"], Lf = {
|
|
10386
10391
|
key: 0,
|
|
10387
10392
|
class: "pv-hover-action-menu__actions"
|
|
10388
|
-
},
|
|
10393
|
+
}, Rf = { class: "pv-hover-action-menu__action-group" }, zf = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
10389
10394
|
__name: "PvHoverActionMenu",
|
|
10390
10395
|
props: {
|
|
10391
10396
|
disabled: {
|
|
@@ -10408,12 +10413,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10408
10413
|
class: y(["pv-hover-action-menu", d.value]),
|
|
10409
10414
|
tabindex: e.options.length ? 0 : void 0,
|
|
10410
10415
|
"data-testid": "pv-hover-action-menu"
|
|
10411
|
-
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div",
|
|
10416
|
+
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", Lf, [u(rc, {
|
|
10412
10417
|
variant: e.variant,
|
|
10413
10418
|
"data-testid": "pv-hover-action-menu-actions",
|
|
10414
10419
|
onClick: r[0] ||= ie(() => {}, ["stop"])
|
|
10415
10420
|
}, {
|
|
10416
|
-
default: q(() => [s("div",
|
|
10421
|
+
default: q(() => [s("div", Rf, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
10417
10422
|
key: t.id,
|
|
10418
10423
|
variant: "dark",
|
|
10419
10424
|
position: "top-center",
|
|
@@ -10441,9 +10446,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10441
10446
|
_: 2
|
|
10442
10447
|
}, 1032, ["description"]))), 128))])]),
|
|
10443
10448
|
_: 1
|
|
10444
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
10449
|
+
}, 8, ["variant"])])) : a("", !0)], 10, If));
|
|
10445
10450
|
}
|
|
10446
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
10451
|
+
}), [["__scopeId", "data-v-6325cd25"]]), Bf = () => {
|
|
10447
10452
|
let e = (e, n) => {
|
|
10448
10453
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
10449
10454
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -10456,7 +10461,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10456
10461
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
10457
10462
|
} : null
|
|
10458
10463
|
};
|
|
10459
|
-
},
|
|
10464
|
+
}, Vf = /* @__PURE__ */ d({
|
|
10460
10465
|
__name: "QueryFormatter",
|
|
10461
10466
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
10462
10467
|
modelValue: { required: !0 },
|
|
@@ -10470,7 +10475,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10470
10475
|
}),
|
|
10471
10476
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
10472
10477
|
setup(e) {
|
|
10473
|
-
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } =
|
|
10478
|
+
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } = Bf(), u = r(() => {
|
|
10474
10479
|
let e = s.value?.queryTerms || [];
|
|
10475
10480
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
10476
10481
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -10506,27 +10511,27 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10506
10511
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
10507
10512
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
10508
10513
|
}
|
|
10509
|
-
}),
|
|
10514
|
+
}), Hf = [
|
|
10510
10515
|
"aria-expanded",
|
|
10511
10516
|
"aria-activedescendant",
|
|
10512
10517
|
"disabled",
|
|
10513
10518
|
"placeholder",
|
|
10514
10519
|
"data-invalid"
|
|
10515
|
-
],
|
|
10520
|
+
], Uf = {
|
|
10516
10521
|
key: 2,
|
|
10517
10522
|
class: "pv-text-red pv-text-body-xs"
|
|
10518
|
-
},
|
|
10523
|
+
}, Wf = ["id"], Gf = [
|
|
10519
10524
|
"id",
|
|
10520
10525
|
"aria-selected",
|
|
10521
10526
|
"aria-describedby",
|
|
10522
10527
|
"onMouseenter"
|
|
10523
|
-
],
|
|
10528
|
+
], Kf = {
|
|
10524
10529
|
key: 1,
|
|
10525
10530
|
role: "presentation"
|
|
10526
|
-
},
|
|
10531
|
+
}, qf = {
|
|
10527
10532
|
key: 1,
|
|
10528
10533
|
class: "pv-text-center"
|
|
10529
|
-
},
|
|
10534
|
+
}, Jf = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
10530
10535
|
__name: "PvQueryBuilderInput",
|
|
10531
10536
|
props: /* @__PURE__ */ g({
|
|
10532
10537
|
placeholder: { default: "Search" },
|
|
@@ -10579,7 +10584,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10579
10584
|
width: "100%",
|
|
10580
10585
|
maxWidth: "100%",
|
|
10581
10586
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
10582
|
-
}, f = H("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } =
|
|
10587
|
+
}, f = H("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = Bf(), C = k(!1), w = k(!1), T = k(!1), E = V(), O = r(() => !!(E.header || E.footer || E.empty)), M = z(), N = `${M}-options`, P = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, R = r(() => ae.value.length > 0 || n.optionsLoading || O.value), ee = r(() => m.value === null ? n.placeholder : ""), U = k(null), W = r(() => U.value !== null && U.value !== "" && !w.value), ne = () => {
|
|
10583
10588
|
m.value = null, p.value = "", U.value = null, T.value = !1;
|
|
10584
10589
|
};
|
|
10585
10590
|
Y("Enter", (e) => {
|
|
@@ -10703,7 +10708,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10703
10708
|
"--inset-size": "4px",
|
|
10704
10709
|
"--flex-gap": "4px"
|
|
10705
10710
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
10706
|
-
}, [u(
|
|
10711
|
+
}, [u(Vf, {
|
|
10707
10712
|
modelValue: m.value,
|
|
10708
10713
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
10709
10714
|
"wrap-content": T.value,
|
|
@@ -10729,7 +10734,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10729
10734
|
style: x(p.value ? "min-width: 8rem;" : void 0),
|
|
10730
10735
|
onFocus: _e,
|
|
10731
10736
|
onBlur: _e
|
|
10732
|
-
}, null, 44,
|
|
10737
|
+
}, null, 44, Hf), [[G, p.value]])], 4),
|
|
10733
10738
|
m.value && !e.hideClearButton ? (D(), i($, {
|
|
10734
10739
|
key: 1,
|
|
10735
10740
|
variant: "ghost",
|
|
@@ -10737,20 +10742,22 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10737
10742
|
size: "md",
|
|
10738
10743
|
onClick: ne
|
|
10739
10744
|
})) : a("", !0),
|
|
10740
|
-
W.value ? (D(), o("p",
|
|
10745
|
+
W.value ? (D(), o("p", Uf, I(U.value), 1)) : a("", !0),
|
|
10741
10746
|
R.value ? J((D(), i(wr, {
|
|
10742
10747
|
key: 3,
|
|
10748
|
+
class: "pv-scrollbar-visible",
|
|
10743
10749
|
"css-custom-properties": d,
|
|
10744
10750
|
isList: !0,
|
|
10751
|
+
listClass: "pv-scrollbar-visible",
|
|
10745
10752
|
listId: N,
|
|
10746
10753
|
listRole: "listbox"
|
|
10747
10754
|
}, c({
|
|
10748
|
-
default: q(() => [e.optionsLoading ? (D(), o("div",
|
|
10755
|
+
default: q(() => [e.optionsLoading ? (D(), o("div", qf, [u(Me, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [ae.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(oe.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
10749
10756
|
key: 0,
|
|
10750
10757
|
id: F(r),
|
|
10751
10758
|
role: "presentation",
|
|
10752
10759
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
10753
|
-
}, I(e), 9,
|
|
10760
|
+
}, I(e), 9, Wf)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
10754
10761
|
key: `${e}-${t.id}`,
|
|
10755
10762
|
id: P(ce.value.get(t) ?? -1),
|
|
10756
10763
|
role: "option",
|
|
@@ -10762,7 +10769,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10762
10769
|
config: l,
|
|
10763
10770
|
queryText: p.value,
|
|
10764
10771
|
onHandleSelected: (e) => he(t)
|
|
10765
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
10772
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, Gf))), 128))], 64))), 128)) : n.$slots.empty ? (D(), o("li", Kf, [j(n.$slots, "empty", {}, void 0, !0)])) : a("", !0)], 64))]),
|
|
10766
10773
|
_: 2
|
|
10767
10774
|
}, [n.$slots.header ? {
|
|
10768
10775
|
name: "header",
|
|
@@ -10775,7 +10782,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10775
10782
|
} : void 0]), 1536)), [[te, C.value]]) : a("", !0)
|
|
10776
10783
|
], 34)), [[L(Z), me]]);
|
|
10777
10784
|
}
|
|
10778
|
-
}), [["__scopeId", "data-v-
|
|
10785
|
+
}), [["__scopeId", "data-v-62aa7767"]]), Yf = { class: "sidebar-header-content" }, Xf = { class: "content-panel" }, Zf = 300, Qf = /* @__PURE__ */ d({
|
|
10779
10786
|
__name: "PvSidebar",
|
|
10780
10787
|
props: /* @__PURE__ */ g({
|
|
10781
10788
|
disableToggle: { type: Boolean },
|
|
@@ -10802,7 +10809,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10802
10809
|
}, h = () => {
|
|
10803
10810
|
n.newVersion || r.value && (u && clearTimeout(u), u = setTimeout(() => {
|
|
10804
10811
|
l.value = !0;
|
|
10805
|
-
},
|
|
10812
|
+
}, Zf));
|
|
10806
10813
|
}, g = () => {
|
|
10807
10814
|
n.newVersion || (u &&= (clearTimeout(u), null), m(), l.value = !1);
|
|
10808
10815
|
}, _ = () => {
|
|
@@ -10821,119 +10828,119 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10821
10828
|
onMouseenter: h,
|
|
10822
10829
|
onMouseleave: g,
|
|
10823
10830
|
onFocusin: h
|
|
10824
|
-
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div",
|
|
10831
|
+
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div", Yf, [j(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (D(), i($, {
|
|
10825
10832
|
key: 0,
|
|
10826
10833
|
class: "sidebar-toggle",
|
|
10827
10834
|
"left-icon": r.value ? "panel-left-open" : "panel-left-close",
|
|
10828
10835
|
"aria-label": r.value ? "Open sidebar" : "Close sidebar",
|
|
10829
10836
|
variant: "ghost",
|
|
10830
10837
|
onClick: _
|
|
10831
|
-
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div",
|
|
10838
|
+
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div", Xf, [j(t.$slots, "default")])], 2));
|
|
10832
10839
|
}
|
|
10833
|
-
}),
|
|
10840
|
+
}), $f = {
|
|
10834
10841
|
key: 0,
|
|
10835
10842
|
class: "sidebar-additional-header"
|
|
10836
|
-
},
|
|
10843
|
+
}, ep = { class: "sidebar-header-content pv-full-width" }, tp = {
|
|
10837
10844
|
key: 0,
|
|
10838
10845
|
class: "pv-sidebar-nav-header"
|
|
10839
|
-
},
|
|
10846
|
+
}, np = ["aria-label", "aria-expanded"], rp = {
|
|
10840
10847
|
class: "pv-flex",
|
|
10841
10848
|
style: { "min-width": "0" }
|
|
10842
|
-
},
|
|
10849
|
+
}, ip = {
|
|
10843
10850
|
class: "pv-avatar-xs",
|
|
10844
10851
|
style: {
|
|
10845
10852
|
"border-radius": "4px",
|
|
10846
10853
|
"flex-shrink": "0"
|
|
10847
10854
|
}
|
|
10848
|
-
},
|
|
10855
|
+
}, ap = ["src"], op = { key: 1 }, sp = ["title"], cp = {
|
|
10849
10856
|
class: "pv-popover",
|
|
10850
10857
|
style: {
|
|
10851
10858
|
width: "fit-content",
|
|
10852
10859
|
"max-width": "280px",
|
|
10853
10860
|
"margin-top": "4px"
|
|
10854
10861
|
}
|
|
10855
|
-
},
|
|
10862
|
+
}, lp = {
|
|
10856
10863
|
role: "list",
|
|
10857
10864
|
class: "pv-popover-list pv-flow",
|
|
10858
10865
|
style: { "--flow-size": "0.25rem" },
|
|
10859
10866
|
"data-testid": "pv-sidebar-org-list"
|
|
10860
|
-
},
|
|
10867
|
+
}, up = ["data-active"], dp = ["href", "data-org-value"], fp = {
|
|
10861
10868
|
class: "pv-avatar-xs",
|
|
10862
10869
|
style: { "border-radius": "4px" }
|
|
10863
|
-
},
|
|
10870
|
+
}, pp = ["src"], mp = { key: 1 }, hp = ["title"], gp = ["data-active"], _p = ["href", "data-org-value"], vp = ["title"], yp = { class: "pv-sidebar-nav" }, bp = { key: 0 }, xp = {
|
|
10864
10871
|
key: 1,
|
|
10865
10872
|
role: "list",
|
|
10866
10873
|
class: "pv-full-width pv-flow",
|
|
10867
10874
|
style: { "--flow-size": "0.25rem" }
|
|
10868
|
-
},
|
|
10875
|
+
}, Sp = {
|
|
10869
10876
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10870
10877
|
"data-sidebar-expanded-content": "",
|
|
10871
10878
|
style: { "flex-wrap": "wrap" }
|
|
10872
|
-
},
|
|
10879
|
+
}, Cp = {
|
|
10873
10880
|
key: 0,
|
|
10874
10881
|
class: "pv-tag-purple pv-tag-sm"
|
|
10875
|
-
},
|
|
10882
|
+
}, wp = ["onClick", "onKeydown"], Tp = [
|
|
10876
10883
|
"href",
|
|
10877
10884
|
"aria-current",
|
|
10878
10885
|
"title"
|
|
10879
|
-
],
|
|
10886
|
+
], Ep = {
|
|
10880
10887
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10881
10888
|
"data-sidebar-expanded-content": "",
|
|
10882
10889
|
style: { "flex-wrap": "wrap" }
|
|
10883
|
-
},
|
|
10890
|
+
}, Dp = {
|
|
10884
10891
|
key: 0,
|
|
10885
10892
|
class: "pv-tag-purple pv-tag-sm"
|
|
10886
|
-
},
|
|
10893
|
+
}, Op = {
|
|
10887
10894
|
class: "pv-popover",
|
|
10888
10895
|
style: { "--position": "static" }
|
|
10889
|
-
},
|
|
10896
|
+
}, kp = {
|
|
10890
10897
|
role: "list",
|
|
10891
10898
|
class: "pv-popover-list"
|
|
10892
|
-
},
|
|
10899
|
+
}, Ap = ["data-active"], jp = ["href"], Mp = {
|
|
10893
10900
|
key: 0,
|
|
10894
10901
|
class: "pv-tag-purple pv-tag-sm"
|
|
10895
|
-
},
|
|
10902
|
+
}, Np = ["onClick", "onAuxclick"], Pp = { "data-sidebar-expanded-content": "" }, Fp = { class: "pv-sidebar-nav-nested" }, Ip = [
|
|
10896
10903
|
"href",
|
|
10897
10904
|
"aria-current",
|
|
10898
10905
|
"title"
|
|
10899
|
-
],
|
|
10906
|
+
], Lp = {
|
|
10900
10907
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10901
10908
|
style: { "flex-wrap": "wrap" }
|
|
10902
|
-
},
|
|
10909
|
+
}, Rp = {
|
|
10903
10910
|
key: 0,
|
|
10904
10911
|
class: "pv-tag-purple pv-tag-sm"
|
|
10905
|
-
},
|
|
10912
|
+
}, zp = {
|
|
10906
10913
|
class: "pv-popover",
|
|
10907
10914
|
style: {
|
|
10908
10915
|
"--position": "static",
|
|
10909
10916
|
"--height": "350px"
|
|
10910
10917
|
}
|
|
10911
|
-
},
|
|
10918
|
+
}, Bp = {
|
|
10912
10919
|
role: "list",
|
|
10913
10920
|
class: "pv-popover-list"
|
|
10914
|
-
},
|
|
10921
|
+
}, Vp = ["data-active"], Hp = ["href"], Up = {
|
|
10915
10922
|
key: 0,
|
|
10916
10923
|
class: "pv-tag-purple pv-tag-sm"
|
|
10917
|
-
},
|
|
10924
|
+
}, Wp = {
|
|
10918
10925
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
10919
10926
|
style: { "--bottom": "0" }
|
|
10920
|
-
},
|
|
10927
|
+
}, Gp = ["aria-expanded"], Kp = { class: "pv-popover pv-text-default pv-text-body-md" }, qp = [
|
|
10921
10928
|
"aria-label",
|
|
10922
10929
|
"aria-expanded",
|
|
10923
10930
|
"title"
|
|
10924
|
-
],
|
|
10931
|
+
], Jp = {
|
|
10925
10932
|
class: "pv-avatar-xs",
|
|
10926
10933
|
style: {
|
|
10927
10934
|
"border-radius": "50%",
|
|
10928
10935
|
"flex-shrink": "0"
|
|
10929
10936
|
}
|
|
10930
|
-
},
|
|
10937
|
+
}, Yp = ["src"], Xp = { key: 1 }, Zp = {
|
|
10931
10938
|
class: "pv-truncate",
|
|
10932
10939
|
"data-sidebar-expanded-content": ""
|
|
10933
|
-
},
|
|
10940
|
+
}, Qp = {
|
|
10934
10941
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
10935
10942
|
style: { "--height": "750px" }
|
|
10936
|
-
},
|
|
10943
|
+
}, $p = { class: "content-panel" }, em = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", tm = /* @__PURE__ */ d({
|
|
10937
10944
|
__name: "PvSidebarV2",
|
|
10938
10945
|
props: /* @__PURE__ */ g({
|
|
10939
10946
|
disableToggle: { type: Boolean },
|
|
@@ -10957,11 +10964,11 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10957
10964
|
})), ee, U = (e) => e.hoverPanelSlot ? p ? (R.value, Yn(p, e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, W = (e, t, n) => {
|
|
10958
10965
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
10959
10966
|
}, G = (e) => {
|
|
10960
|
-
let t = P.get(e), n = t?.querySelector(
|
|
10967
|
+
let t = P.get(e), n = t?.querySelector(em);
|
|
10961
10968
|
if (n) return n;
|
|
10962
10969
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
10963
|
-
if (t.matches(
|
|
10964
|
-
let e = t.querySelector(
|
|
10970
|
+
if (t.matches(em)) return t;
|
|
10971
|
+
let e = t.querySelector(em);
|
|
10965
10972
|
if (e) return e;
|
|
10966
10973
|
}
|
|
10967
10974
|
}, te = (e, t) => {
|
|
@@ -11042,7 +11049,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11042
11049
|
ref_key: "sidebarPanel",
|
|
11043
11050
|
ref: E,
|
|
11044
11051
|
class: "sidebar-panel"
|
|
11045
|
-
}, [s("div", null, [L(h) ? (D(), o("div",
|
|
11052
|
+
}, [s("div", null, [L(h) ? (D(), o("div", $f, [j(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": X.value }]]) }, [s("div", ep, [e.organizations && e.organizations.length ? (D(), o("div", tp, [u(nr, {
|
|
11046
11053
|
modelValue: fe.value,
|
|
11047
11054
|
"onUpdate:modelValue": r[0] ||= (e) => fe.value = e,
|
|
11048
11055
|
position: X.value ? "right-top" : "bottom-left",
|
|
@@ -11059,32 +11066,32 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11059
11066
|
"data-testid": "pv-sidebar-org-switcher",
|
|
11060
11067
|
"aria-label": `Switch organization: ${Y.value?.label}`,
|
|
11061
11068
|
"aria-expanded": fe.value
|
|
11062
|
-
}, [s("div",
|
|
11069
|
+
}, [s("div", rp, [s("span", ip, [Y.value?.avatarUrl ? (D(), o("img", {
|
|
11063
11070
|
key: 0,
|
|
11064
11071
|
src: Y.value.avatarUrl,
|
|
11065
11072
|
alt: "Organization Avatar"
|
|
11066
|
-
}, null, 8,
|
|
11073
|
+
}, null, 8, ap)) : (D(), o("span", op, I(Y.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
11067
11074
|
class: "pv-text-title-lg pv-truncate",
|
|
11068
11075
|
"data-sidebar-expanded-content": "",
|
|
11069
11076
|
title: Y.value?.label
|
|
11070
|
-
}, I(Y.value?.label), 9,
|
|
11077
|
+
}, I(Y.value?.label), 9, sp)]), u(Q, {
|
|
11071
11078
|
name: "chevron-down",
|
|
11072
11079
|
class: "pv-icon-16",
|
|
11073
11080
|
"data-sidebar-expanded-content": ""
|
|
11074
|
-
})], 8,
|
|
11075
|
-
content: q(() => [s("div",
|
|
11081
|
+
})], 8, np)]),
|
|
11082
|
+
content: q(() => [s("div", cp, [s("ul", lp, [(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", {
|
|
11076
11083
|
class: "pv-flex",
|
|
11077
11084
|
href: e.url,
|
|
11078
11085
|
"data-testid": "pv-sidebar-org-option",
|
|
11079
11086
|
"data-org-value": e.value
|
|
11080
|
-
}, [s("div",
|
|
11087
|
+
}, [s("div", fp, [e.avatarUrl ? (D(), o("img", {
|
|
11081
11088
|
key: 0,
|
|
11082
11089
|
src: e.avatarUrl,
|
|
11083
11090
|
alt: "Organization Avatar"
|
|
11084
|
-
}, null, 8,
|
|
11091
|
+
}, null, 8, pp)) : (D(), o("span", mp, I(e.label.slice(0, 1)), 1))]), s("span", {
|
|
11085
11092
|
class: "pv-truncate pv-flex-item",
|
|
11086
11093
|
title: e.label
|
|
11087
|
-
}, I(e.label), 9,
|
|
11094
|
+
}, I(e.label), 9, hp)], 8, dp)], 8, up), (D(!0), o(t, null, A(e.entities, (e) => (D(), o("li", {
|
|
11088
11095
|
key: e.value,
|
|
11089
11096
|
style: { "padding-left": "0.5rem" },
|
|
11090
11097
|
"data-active": e.active || void 0
|
|
@@ -11097,7 +11104,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11097
11104
|
}, [u(Q, { name: "corner-down-right" }), s("span", {
|
|
11098
11105
|
class: "pv-truncate",
|
|
11099
11106
|
title: e.label
|
|
11100
|
-
}, I(e.label), 9,
|
|
11107
|
+
}, I(e.label), 9, vp)], 8, _p)], 8, gp))), 128))], 64))), 128))])])]),
|
|
11101
11108
|
_: 1
|
|
11102
11109
|
}, 8, [
|
|
11103
11110
|
"modelValue",
|
|
@@ -11120,9 +11127,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11120
11127
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
11121
11128
|
content: q(() => [l(I(X.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
11122
11129
|
_: 1
|
|
11123
|
-
}))], 2)]), s("div",
|
|
11124
|
-
L(m) ? (D(), o("div",
|
|
11125
|
-
e.navItems && e.navItems.length ? (D(), o("ul",
|
|
11130
|
+
}))], 2)]), s("div", yp, [
|
|
11131
|
+
L(m) ? (D(), o("div", bp, [j(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
11132
|
+
e.navItems && e.navItems.length ? (D(), o("ul", xp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [U(e) ? (D(), i(nr, {
|
|
11126
11133
|
key: 0,
|
|
11127
11134
|
modelValue: O.value[e.value],
|
|
11128
11135
|
"onUpdate:modelValue": (t) => O.value[e.value] = t,
|
|
@@ -11152,7 +11159,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11152
11159
|
key: 0,
|
|
11153
11160
|
name: e.icon,
|
|
11154
11161
|
class: "pv-nav-icon"
|
|
11155
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11162
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Sp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Cp, I(e.badge.toUpperCase()), 1)) : a("", !0)])]),
|
|
11156
11163
|
_: 2
|
|
11157
11164
|
}, 1040, [
|
|
11158
11165
|
"href",
|
|
@@ -11169,7 +11176,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11169
11176
|
class: "pv-sidebar-hover-panel",
|
|
11170
11177
|
onClick: (t) => J(t, e.value),
|
|
11171
11178
|
onKeydown: (t) => ie(t, e.value)
|
|
11172
|
-
}, [j(n.$slots, e.hoverPanelSlot)], 40,
|
|
11179
|
+
}, [j(n.$slots, e.hoverPanelSlot)], 40, wp)]),
|
|
11173
11180
|
_: 2
|
|
11174
11181
|
}, 1032, [
|
|
11175
11182
|
"modelValue",
|
|
@@ -11198,8 +11205,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11198
11205
|
key: 0,
|
|
11199
11206
|
name: e.icon,
|
|
11200
11207
|
class: "pv-nav-icon"
|
|
11201
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11202
|
-
content: q(() => [s("div",
|
|
11208
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Ep, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Dp, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Tp)]),
|
|
11209
|
+
content: q(() => [s("div", Op, [s("ul", kp, [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", Mp, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, jp)], 8, Ap)])])]),
|
|
11203
11210
|
_: 2
|
|
11204
11211
|
}, 1032, [
|
|
11205
11212
|
"use-teleport",
|
|
@@ -11232,14 +11239,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11232
11239
|
key: 0,
|
|
11233
11240
|
name: e.icon,
|
|
11234
11241
|
class: "pv-nav-icon"
|
|
11235
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11236
|
-
default: q(() => [s("div",
|
|
11242
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Pp, I(e.label), 1)], 40, Np)]),
|
|
11243
|
+
default: q(() => [s("div", Fp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("a", _({
|
|
11237
11244
|
key: e.value,
|
|
11238
11245
|
href: e.url
|
|
11239
11246
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
11240
11247
|
"aria-current": e.active ? "page" : void 0,
|
|
11241
11248
|
title: e.label
|
|
11242
|
-
}), [s("span",
|
|
11249
|
+
}), [s("span", Lp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Rp, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Ip))), 128))])]),
|
|
11243
11250
|
_: 2
|
|
11244
11251
|
}, 1032, [
|
|
11245
11252
|
"modelValue",
|
|
@@ -11247,17 +11254,17 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11247
11254
|
"default-open",
|
|
11248
11255
|
"summary-attrs"
|
|
11249
11256
|
])]),
|
|
11250
|
-
content: q(() => [s("div",
|
|
11257
|
+
content: q(() => [s("div", zp, [s("ul", Bp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("li", {
|
|
11251
11258
|
key: e.value,
|
|
11252
11259
|
"data-active": e.active || void 0
|
|
11253
|
-
}, [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",
|
|
11260
|
+
}, [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", Up, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Hp)], 8, Vp))), 128))])])]),
|
|
11254
11261
|
_: 2
|
|
11255
11262
|
}, 1032, [
|
|
11256
11263
|
"use-teleport",
|
|
11257
11264
|
"teleport-location",
|
|
11258
11265
|
"disabled"
|
|
11259
11266
|
]))]))), 128))])) : a("", !0),
|
|
11260
|
-
s("div",
|
|
11267
|
+
s("div", Wp, [L(g) ? (D(), i(nr, {
|
|
11261
11268
|
key: 0,
|
|
11262
11269
|
modelValue: de.value,
|
|
11263
11270
|
"onUpdate:modelValue": r[1] ||= (e) => de.value = e,
|
|
@@ -11279,8 +11286,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11279
11286
|
}, [u(Q, {
|
|
11280
11287
|
name: "help-circle",
|
|
11281
11288
|
class: "pv-icon-20 pv-nav-icon"
|
|
11282
|
-
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8,
|
|
11283
|
-
content: q(() => [s("div",
|
|
11289
|
+
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, Gp)]),
|
|
11290
|
+
content: q(() => [s("div", Kp, [j(n.$slots, "sidebar-help-content")])]),
|
|
11284
11291
|
_: 3
|
|
11285
11292
|
}, 8, [
|
|
11286
11293
|
"modelValue",
|
|
@@ -11308,12 +11315,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11308
11315
|
"aria-label": e.profile.name,
|
|
11309
11316
|
"aria-expanded": Z.value,
|
|
11310
11317
|
title: e.profile.name
|
|
11311
|
-
}, [s("span",
|
|
11318
|
+
}, [s("span", Jp, [e.profile.avatarUrl ? (D(), o("img", {
|
|
11312
11319
|
key: 0,
|
|
11313
11320
|
src: e.profile.avatarUrl,
|
|
11314
11321
|
alt: ""
|
|
11315
|
-
}, null, 8,
|
|
11316
|
-
content: q(() => [s("div",
|
|
11322
|
+
}, null, 8, Yp)) : (D(), o("span", Xp, I(e.profile.name.slice(0, 1)), 1))]), s("span", Zp, I(e.profile.name), 1)], 8, qp)]),
|
|
11323
|
+
content: q(() => [s("div", Qp, [j(n.$slots, "sidebar-profile-content")])]),
|
|
11317
11324
|
_: 3
|
|
11318
11325
|
}, 8, [
|
|
11319
11326
|
"modelValue",
|
|
@@ -11323,7 +11330,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11323
11330
|
"teleport-location"
|
|
11324
11331
|
])) : a("", !0)])
|
|
11325
11332
|
])], 512),
|
|
11326
|
-
s("div",
|
|
11333
|
+
s("div", $p, [j(n.$slots, "default")]),
|
|
11327
11334
|
s("div", {
|
|
11328
11335
|
ref_key: "popoverTeleportTarget",
|
|
11329
11336
|
ref: T,
|
|
@@ -11331,11 +11338,11 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11331
11338
|
}, null, 512)
|
|
11332
11339
|
], 38));
|
|
11333
11340
|
}
|
|
11334
|
-
}),
|
|
11341
|
+
}), nm = {
|
|
11335
11342
|
class: "pv-toc",
|
|
11336
11343
|
role: "list",
|
|
11337
11344
|
style: { "min-width": "160px" }
|
|
11338
|
-
},
|
|
11345
|
+
}, rm = ["aria-current"], im = ["href", "onClick"], am = /* @__PURE__ */ d({
|
|
11339
11346
|
__name: "PvTableOfContents",
|
|
11340
11347
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
11341
11348
|
modelValue: { required: !1 },
|
|
@@ -11346,7 +11353,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11346
11353
|
let r = B(e, "modelValue"), c = n, u = (e, t) => {
|
|
11347
11354
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
11348
11355
|
};
|
|
11349
|
-
return (n, c) => (D(), o("ul",
|
|
11356
|
+
return (n, c) => (D(), o("ul", nm, [(D(!0), o(t, null, A(e.items, (e) => (D(), o("li", {
|
|
11350
11357
|
key: e.id,
|
|
11351
11358
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
11352
11359
|
}, [s("a", {
|
|
@@ -11355,9 +11362,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11355
11362
|
}, [e.icon ? (D(), i(Q, {
|
|
11356
11363
|
key: 0,
|
|
11357
11364
|
name: e.icon
|
|
11358
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8,
|
|
11365
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8, im)], 8, rm))), 128))]));
|
|
11359
11366
|
}
|
|
11360
|
-
}),
|
|
11367
|
+
}), om = { class: "pv-flex" }, sm = ["data-clickable", "onClick"], cm = /* @__PURE__ */ d({
|
|
11361
11368
|
__name: "PvStepper",
|
|
11362
11369
|
props: {
|
|
11363
11370
|
count: { default: 5 },
|
|
@@ -11370,14 +11377,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11370
11377
|
emits: ["update:active"],
|
|
11371
11378
|
setup(e) {
|
|
11372
11379
|
let n = e;
|
|
11373
|
-
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",
|
|
11380
|
+
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", om, [(D(!0), o(t, null, A(e.count, (t, r) => (D(), o("div", {
|
|
11374
11381
|
key: r,
|
|
11375
11382
|
"data-clickable": e.clickable,
|
|
11376
11383
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
11377
11384
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
11378
|
-
}, null, 10,
|
|
11385
|
+
}, null, 10, sm))), 128))]));
|
|
11379
11386
|
}
|
|
11380
|
-
}),
|
|
11387
|
+
}), lm = { theme: {
|
|
11381
11388
|
preset: we,
|
|
11382
11389
|
options: {
|
|
11383
11390
|
darkModeSelector: "none",
|
|
@@ -11386,15 +11393,15 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11386
11393
|
order: "pit-viper-v2, primevue"
|
|
11387
11394
|
}
|
|
11388
11395
|
}
|
|
11389
|
-
} },
|
|
11390
|
-
e.use(Ce,
|
|
11391
|
-
},
|
|
11392
|
-
let e = m(
|
|
11396
|
+
} }, um = (e) => {
|
|
11397
|
+
e.use(Ce, lm);
|
|
11398
|
+
}, dm = Symbol.for("pv.rum-context"), fm = () => {
|
|
11399
|
+
let e = m(dm, void 0);
|
|
11393
11400
|
return () => {
|
|
11394
11401
|
let t = e?.value;
|
|
11395
11402
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
11396
11403
|
};
|
|
11397
|
-
},
|
|
11404
|
+
}, pm = (e, t = {}, n = {}) => {
|
|
11398
11405
|
try {
|
|
11399
11406
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
11400
11407
|
let r = n.consumer == null ? t : {
|
|
@@ -11403,7 +11410,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11403
11410
|
};
|
|
11404
11411
|
window.DD_RUM.addAction(e, r);
|
|
11405
11412
|
} catch {}
|
|
11406
|
-
},
|
|
11413
|
+
}, mm = (e) => {
|
|
11407
11414
|
queueMicrotask(() => {
|
|
11408
11415
|
try {
|
|
11409
11416
|
e();
|
|
@@ -11411,6 +11418,6 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11411
11418
|
});
|
|
11412
11419
|
};
|
|
11413
11420
|
//#endregion
|
|
11414
|
-
export { ki as ContextCardEnum, ai as PvAccordion,
|
|
11421
|
+
export { ki as ContextCardEnum, ai as PvAccordion, rc as PvActionBar, or as PvActionButton, lr as PvAiButton, wa as PvAvatar, ss as PvAvatarGroup, Yr as PvBanner, ya as PvBreadcrumbs, $ as PvButton, mr as PvButtonWithTooltip, Ws as PvCard, ps as PvCheckbox, Pi as PvCompanyLabel, Lr as PvCompanyLogo, ei as PvCompanyTag, He as PvCounterBadge, _i as PvDatePicker, yi as PvDateTime, zc as PvDistributionBar, Oi as PvDrawer, Dr as PvDropdown, $r as PvEmptyErrorState, $s as PvExpandableContent, js as PvFileInput, Ff as PvFilterModal, vf as PvFilterPanel, $o as PvGhostInput, is as PvHeader, Ku as PvHorizontalScroller, zf as PvHoverActionMenu, Q as PvIcon, ws as PvInput, Qs as PvInsightCard, wo as PvMenu, go as PvMenuItem, Ur as PvModal, Mo as PvMultiSelectButton, Ho as PvPagination, xr as PvPill, wr as PvPopover, kr as PvPopoverMenu, nr as PvPopoverV2, Lc as PvProgressBar, Jf as PvQueryBuilderInput, _s as PvRadioGroup, nl as PvRange, Ps as PvRating, vr as PvReleaseBadge, ui as PvSearchInput, Ar as PvSegmentedControl, Fo as PvSelectButton, Go as PvSelectableCard, Xo as PvSidePanel, Qf as PvSidebar, tm as PvSidebarV2, ys as PvSkeleton, la as PvSpinesContextCard, pa as PvSpinesContextDrawer, Me as PvSpinner, _r as PvSplitButton, vs as PvSprite, cm as PvStepper, ri as PvSuggestionTag, Ya as PvSwitch, Pr as PvTabList, am as PvTableOfContents, ga as PvTabs, br as PvTag, Wi as PvTextArea, tc as PvToast, Ji as PvToggleButton, ds as PvToggleGroup, fr as PvTooltip, ir as PvTooltipV2, jc as PvTree, Mc as PvTreeGroup, Gs as PvWidget, dm as RumContextKey, pm as addRumAction, Jd as createPvFilterStore, mm as deferRumTask, Yd as providePvFilterStore, vi as useDateTime, Xd as useOptionalPvFilterStore, um as usePvComponents, Zd as usePvFilterStore, fm as useRumContext };
|
|
11415
11422
|
|
|
11416
11423
|
//# sourceMappingURL=pv-components-base.mjs.map
|