@turquoisehealth/pit-viper 2.240.1 → 2.240.3-dev.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 +26 -11
- package/_site/assets/css/pit-viper-consumer.css +26 -11
- package/_site/assets/css/pit-viper-v2-scoped.css +23 -11
- package/_site/assets/css/pit-viper-v2.css +27 -12
- package/_site/assets/css/pit-viper.css +26 -11
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/ai/stats.html +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-reasoning-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-step-list-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/pv-components-ai.mjs +33 -35
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -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/pv-components-base.mjs +559 -552
- 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/PvSortableList/PvSortableList.vue.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue.d.ts +6 -0
- 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/charts/PvDataTableWithChart/types.d.ts +14 -0
- 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 +584 -553
- 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 +1053 -1042
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +522 -524
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +11 -7
- package/pv-components/dist/web/components/pv-step-list/pv-step-list.js +372 -369
- package/pv-components/dist/web/pv-components.iife.js +36 -36
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
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-6772fde2]{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-6772fde2]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-6772fde2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-6772fde2]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-group-label[data-v-6772fde2]{padding:.5rem .5rem .25rem;font-weight:500;display:block}.pv-query-builder-option-active[data-v-6772fde2]{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-6772fde2]: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
|
-
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
|
|
4
|
-
import { onClickOutside as
|
|
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
|
+
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";
|
|
5
5
|
import { useSortable as fe } from "@vueuse/integrations/useSortable.mjs";
|
|
6
6
|
import { vOnClickOutside as Z } from "@vueuse/components";
|
|
7
7
|
import pe from "primevue/datepicker";
|
|
@@ -1127,7 +1127,7 @@ function Xn(e, t = {}) {
|
|
|
1127
1127
|
characterData: !0
|
|
1128
1128
|
}));
|
|
1129
1129
|
};
|
|
1130
|
-
return w(v), S(g),
|
|
1130
|
+
return w(v), S(g), K(() => L(n), () => {
|
|
1131
1131
|
c.value && v();
|
|
1132
1132
|
}), {
|
|
1133
1133
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1201,9 +1201,9 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1201
1201
|
"position-try-fallbacks: flip-block",
|
|
1202
1202
|
"position-visibility: anchors-visible",
|
|
1203
1203
|
`anchor-scope: ${tr}`
|
|
1204
|
-
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C =
|
|
1204
|
+
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C = ce(y), E = ce(S), O = k(!1), A = k(!1), M = k(!1), N = $n({
|
|
1205
1205
|
root: _,
|
|
1206
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1206
|
+
close: () => t.disableClickOutsideToClose ? !1 : (ie(), !0)
|
|
1207
1207
|
}), P = {
|
|
1208
1208
|
"top-center": "top",
|
|
1209
1209
|
"bottom-center": "bottom",
|
|
@@ -1268,7 +1268,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1268
1268
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1269
1269
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1270
1270
|
};
|
|
1271
|
-
}),
|
|
1271
|
+
}), H = () => {}, ee = () => ({});
|
|
1272
1272
|
if (!h) {
|
|
1273
1273
|
let e = [];
|
|
1274
1274
|
t.disableAutoPlacement || e.push(jn({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(kn(t.offset));
|
|
@@ -1277,41 +1277,41 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1277
1277
|
strategy: t.positioningStrategy,
|
|
1278
1278
|
middleware: e
|
|
1279
1279
|
});
|
|
1280
|
-
|
|
1281
|
-
let i =
|
|
1282
|
-
c.value &&
|
|
1280
|
+
H = n.update, ee = () => n.floatingStyles.value;
|
|
1281
|
+
let i = se(b), a = oe(() => {
|
|
1282
|
+
c.value && H();
|
|
1283
1283
|
}, 5);
|
|
1284
|
-
|
|
1284
|
+
K([
|
|
1285
1285
|
i.top,
|
|
1286
1286
|
i.left,
|
|
1287
1287
|
i.width,
|
|
1288
1288
|
i.height
|
|
1289
|
-
], a),
|
|
1290
|
-
t.disableClickOutsideToClose ||
|
|
1289
|
+
], a), ae(_, () => {
|
|
1290
|
+
t.disableClickOutsideToClose || re(!1);
|
|
1291
1291
|
}, { ignore: r(() => [
|
|
1292
1292
|
S.value,
|
|
1293
1293
|
".p-datepicker-panel",
|
|
1294
1294
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1295
1295
|
]) });
|
|
1296
1296
|
}
|
|
1297
|
-
let
|
|
1298
|
-
...
|
|
1297
|
+
let U = r(() => ({
|
|
1298
|
+
...ee(),
|
|
1299
1299
|
zIndex: t.zIndex
|
|
1300
|
-
})),
|
|
1301
|
-
U && clearTimeout(U), U = void 0;
|
|
1302
|
-
}, K = () => {
|
|
1300
|
+
})), W, G, ne = () => {
|
|
1303
1301
|
W && clearTimeout(W), W = void 0;
|
|
1304
|
-
}, ae = (e) => {
|
|
1305
|
-
re(), K(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? U = setTimeout(() => {
|
|
1306
|
-
c.value = !0, U = void 0;
|
|
1307
|
-
}, t.delay) : c.value = e);
|
|
1308
1302
|
}, q = () => {
|
|
1309
|
-
|
|
1310
|
-
},
|
|
1303
|
+
G && clearTimeout(G), G = void 0;
|
|
1304
|
+
}, re = (e) => {
|
|
1305
|
+
ne(), q(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? W = setTimeout(() => {
|
|
1306
|
+
c.value = !0, W = void 0;
|
|
1307
|
+
}, t.delay) : c.value = e);
|
|
1308
|
+
}, ie = () => {
|
|
1309
|
+
ne(), q(), c.value = !1;
|
|
1310
|
+
}, Y = () => {
|
|
1311
1311
|
let e = S.value;
|
|
1312
1312
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1313
1313
|
}, X = r(() => !!c.value && (E.value || A.value)), le = r(() => !t.showOnHover || M.value ? !1 : t.disableInteractive ? C.value || O.value : C.value || O.value || X.value);
|
|
1314
|
-
|
|
1314
|
+
K([
|
|
1315
1315
|
C,
|
|
1316
1316
|
O,
|
|
1317
1317
|
A
|
|
@@ -1327,48 +1327,48 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1327
1327
|
}, Z = () => {
|
|
1328
1328
|
if (t.showOnHover) {
|
|
1329
1329
|
if (t.disableClickOutsideToClose) return;
|
|
1330
|
-
if (!c.value && !
|
|
1331
|
-
M.value = !1,
|
|
1330
|
+
if (!c.value && !W && t.enableClickToggle) {
|
|
1331
|
+
M.value = !1, re(!0);
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
|
-
M.value = !0,
|
|
1334
|
+
M.value = !0, ie();
|
|
1335
1335
|
return;
|
|
1336
1336
|
}
|
|
1337
|
-
|
|
1337
|
+
re(W ? !1 : !c.value);
|
|
1338
1338
|
}, pe = (e) => {
|
|
1339
1339
|
let t = e.newState === "open";
|
|
1340
1340
|
c.value !== t && (c.value = t);
|
|
1341
1341
|
}, me = (e) => {
|
|
1342
|
-
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1342
|
+
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), re(!1));
|
|
1343
1343
|
};
|
|
1344
|
-
return
|
|
1344
|
+
return K(c, async (e) => {
|
|
1345
1345
|
if (t.showOnHover && t.enableGroupSync && N(!!e), !h) {
|
|
1346
|
-
e &&
|
|
1346
|
+
e && H();
|
|
1347
1347
|
return;
|
|
1348
1348
|
}
|
|
1349
|
-
await v(),
|
|
1350
|
-
}),
|
|
1349
|
+
await v(), Y();
|
|
1350
|
+
}), K(le, (e) => {
|
|
1351
1351
|
if (t.showOnHover) {
|
|
1352
1352
|
if (e) {
|
|
1353
|
-
|
|
1353
|
+
re(!0);
|
|
1354
1354
|
return;
|
|
1355
1355
|
}
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
}, t.closeDelay)) :
|
|
1356
|
+
ne(), t.closeDelay > 0 ? (q(), G = setTimeout(() => {
|
|
1357
|
+
G = void 0, le.value || re(!1);
|
|
1358
|
+
}, t.closeDelay)) : re(!1);
|
|
1359
1359
|
}
|
|
1360
|
-
}),
|
|
1361
|
-
e ? h && c.value && v(
|
|
1360
|
+
}), K(m, (e) => {
|
|
1361
|
+
e ? h && c.value && v(Y) : ie();
|
|
1362
1362
|
}), w(() => {
|
|
1363
|
-
b.value = y.value, g.value = !0, c.value && v(() => h ?
|
|
1363
|
+
b.value = y.value, g.value = !0, c.value && v(() => h ? Y() : H());
|
|
1364
1364
|
}), T(() => {
|
|
1365
|
-
|
|
1366
|
-
}),
|
|
1365
|
+
ne(), q();
|
|
1366
|
+
}), K(() => t.disabled, (e) => {
|
|
1367
1367
|
if (!e) {
|
|
1368
|
-
le.value &&
|
|
1368
|
+
le.value && re(!0);
|
|
1369
1369
|
return;
|
|
1370
1370
|
}
|
|
1371
|
-
O.value &&= !1, A.value &&= !1,
|
|
1371
|
+
O.value &&= !1, A.value &&= !1, re(!1);
|
|
1372
1372
|
}), (r, l) => (D(), o("div", {
|
|
1373
1373
|
ref_key: "root",
|
|
1374
1374
|
ref: _,
|
|
@@ -1395,14 +1395,14 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1395
1395
|
key: 1,
|
|
1396
1396
|
to: e.teleportLocation,
|
|
1397
1397
|
disabled: !t.useTeleport || e.disabled
|
|
1398
|
-
}, [
|
|
1398
|
+
}, [J(s("div", {
|
|
1399
1399
|
ref_key: "floating",
|
|
1400
1400
|
ref: S,
|
|
1401
1401
|
class: "pv-floating",
|
|
1402
|
-
style: x(
|
|
1402
|
+
style: x(U.value),
|
|
1403
1403
|
onFocusin: de,
|
|
1404
1404
|
onFocusout: fe
|
|
1405
|
-
}, [j(r.$slots, "content")], 36), [[
|
|
1405
|
+
}, [j(r.$slots, "content")], 36), [[te, c.value]])], 8, ["to", "disabled"])) : a("", !0)], 36));
|
|
1406
1406
|
}
|
|
1407
1407
|
}), rr = ["data-variant"], ir = /* @__PURE__ */ d({
|
|
1408
1408
|
__name: "PvTooltipV2",
|
|
@@ -1438,11 +1438,11 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1438
1438
|
setup(e) {
|
|
1439
1439
|
let t = e, n = f(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = Xn("content", { host: a }), d = r(() => a ? u.value : o.value), m = r(() => !!t.description || d.value);
|
|
1440
1440
|
return (t, n) => (D(), i(nr, b(p(t.$props)), c({
|
|
1441
|
-
trigger:
|
|
1441
|
+
trigger: q(() => [j(t.$slots, "trigger", {}, () => [s("p", null, I(e.label), 1)])]),
|
|
1442
1442
|
_: 2
|
|
1443
1443
|
}, [m.value ? {
|
|
1444
1444
|
name: "content",
|
|
1445
|
-
fn:
|
|
1445
|
+
fn: q(() => [s("div", {
|
|
1446
1446
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1447
1447
|
role: "tooltip",
|
|
1448
1448
|
"data-variant": e.variant
|
|
@@ -1481,13 +1481,13 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1481
1481
|
"disable-interactive": !0,
|
|
1482
1482
|
"use-teleport": !0
|
|
1483
1483
|
}, c({
|
|
1484
|
-
trigger:
|
|
1484
|
+
trigger: q(() => [s("button", {
|
|
1485
1485
|
type: "button",
|
|
1486
1486
|
class: y(["pv-button-link-tertiary", { "pv-action-button-reveal-on-hover": !e.alwaysShow }]),
|
|
1487
1487
|
style: { "--button-icon-only-padding": "0px" },
|
|
1488
1488
|
"aria-label": e.tooltipText,
|
|
1489
1489
|
disabled: e.disabled,
|
|
1490
|
-
onClick:
|
|
1490
|
+
onClick: ie(o, ["stop"])
|
|
1491
1491
|
}, [u(Q, {
|
|
1492
1492
|
name: e.icon,
|
|
1493
1493
|
size: a[e.size]
|
|
@@ -1495,7 +1495,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1495
1495
|
_: 2
|
|
1496
1496
|
}, [e.tooltipText ? {
|
|
1497
1497
|
name: "content",
|
|
1498
|
-
fn:
|
|
1498
|
+
fn: q(() => [l(I(e.tooltipText), 1)]),
|
|
1499
1499
|
key: "0"
|
|
1500
1500
|
} : void 0]), 1032, ["position"]));
|
|
1501
1501
|
}
|
|
@@ -1548,7 +1548,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1548
1548
|
delay: { default: 0 }
|
|
1549
1549
|
},
|
|
1550
1550
|
setup(e) {
|
|
1551
|
-
let t = e, n =
|
|
1551
|
+
let t = e, n = H("rootRef"), { present: i } = Xn("tooltip-content", { host: r(() => {
|
|
1552
1552
|
let e = n.value?.getRootNode();
|
|
1553
1553
|
return e instanceof ShadowRoot ? e.host : null;
|
|
1554
1554
|
}) }), s = r(() => t.delay > 0), c = k(!1), l = k(!1), u, d = () => {
|
|
@@ -1580,12 +1580,12 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1580
1580
|
onMouseleave: m,
|
|
1581
1581
|
onFocusin: h,
|
|
1582
1582
|
onFocusout: g
|
|
1583
|
-
}, [j(t.$slots, "label"), L(i) ?
|
|
1583
|
+
}, [j(t.$slots, "label"), L(i) ? J((D(), o("div", {
|
|
1584
1584
|
key: 0,
|
|
1585
1585
|
role: "tooltip",
|
|
1586
1586
|
id: e.ariaLabelledBy,
|
|
1587
1587
|
"data-testid": "pv-tooltip-content"
|
|
1588
|
-
}, [j(t.$slots, "tooltip-content")], 8, dr)), [[
|
|
1588
|
+
}, [j(t.$slots, "tooltip-content")], 8, dr)), [[te, f.value]]) : a("", !0)], 42, ur));
|
|
1589
1589
|
}
|
|
1590
1590
|
}), pr = { class: "pv-text-body-sm" }, mr = /* @__PURE__ */ d({
|
|
1591
1591
|
__name: "PvButtonWithTooltip",
|
|
@@ -1626,8 +1626,8 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1626
1626
|
delay: e.delay,
|
|
1627
1627
|
size: n.value
|
|
1628
1628
|
}, {
|
|
1629
|
-
"tooltip-content":
|
|
1630
|
-
label:
|
|
1629
|
+
"tooltip-content": q(() => [s("p", pr, I(e.tooltipText), 1)]),
|
|
1630
|
+
label: q(() => [u($, b(p(a.value)), null, 16)]),
|
|
1631
1631
|
_: 1
|
|
1632
1632
|
}, 8, [
|
|
1633
1633
|
"variant",
|
|
@@ -1692,7 +1692,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1692
1692
|
position: e.position,
|
|
1693
1693
|
offset: e.offset
|
|
1694
1694
|
}, {
|
|
1695
|
-
trigger:
|
|
1695
|
+
trigger: q(() => [u($, {
|
|
1696
1696
|
class: "pv-split-button__menu-trigger",
|
|
1697
1697
|
size: e.size,
|
|
1698
1698
|
variant: e.variant,
|
|
@@ -1706,7 +1706,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1706
1706
|
"inverse",
|
|
1707
1707
|
"leftIcon"
|
|
1708
1708
|
])]),
|
|
1709
|
-
content:
|
|
1709
|
+
content: q(() => [s("div", gr, [j(n.$slots, "menu-content", {}, void 0, !0)])]),
|
|
1710
1710
|
_: 3
|
|
1711
1711
|
}, 8, [
|
|
1712
1712
|
"modelValue",
|
|
@@ -1788,7 +1788,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1788
1788
|
size: 12,
|
|
1789
1789
|
name: "close",
|
|
1790
1790
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
1791
|
-
onClick: r[0] ||=
|
|
1791
|
+
onClick: r[0] ||= ie((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
1792
1792
|
}, null, 8, ["data-dd-action-name"])) : a("", !0)
|
|
1793
1793
|
], 14, yr));
|
|
1794
1794
|
}
|
|
@@ -1861,16 +1861,17 @@ 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 }) {
|
|
1873
|
-
let a = k(null), c =
|
|
1874
|
+
let a = k(null), c = H("popoverList"), l = e, u = i;
|
|
1874
1875
|
l.isSortable && l.isList && fe(c, [], {
|
|
1875
1876
|
animation: 150,
|
|
1876
1877
|
onUpdate: () => {
|
|
@@ -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",
|
|
@@ -1951,7 +1952,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1951
1952
|
}, E = (e) => {
|
|
1952
1953
|
p.value && (e.stopPropagation(), p.value = !1, h.value?.focus());
|
|
1953
1954
|
};
|
|
1954
|
-
t({ closeDropdown: T }),
|
|
1955
|
+
t({ closeDropdown: T }), K(p, (e) => {
|
|
1955
1956
|
e ? v(() => {
|
|
1956
1957
|
S(), f("dropdown-open");
|
|
1957
1958
|
}) : f("dropdown-closed");
|
|
@@ -1963,10 +1964,10 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1963
1964
|
zIndex: 10,
|
|
1964
1965
|
...d.popoverCssProperties
|
|
1965
1966
|
} : d.popoverCssProperties);
|
|
1966
|
-
return (t, r) =>
|
|
1967
|
+
return (t, r) => J((D(), o("div", {
|
|
1967
1968
|
class: "pv-relative",
|
|
1968
1969
|
style: { width: "fit-content" },
|
|
1969
|
-
onKeydown:
|
|
1970
|
+
onKeydown: re(E, ["esc"])
|
|
1970
1971
|
}, [s("button", {
|
|
1971
1972
|
ref_key: "triggerRef",
|
|
1972
1973
|
ref: h,
|
|
@@ -1999,7 +2000,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1999
2000
|
isSortable: e.isSortable,
|
|
2000
2001
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
2001
2002
|
}, {
|
|
2002
|
-
default:
|
|
2003
|
+
default: q(() => [j(t.$slots, "default", {}, () => [e.isLoading ? (D(), o("span", Er, "Loading...")) : a("", !0)], !0)]),
|
|
2003
2004
|
_: 3
|
|
2004
2005
|
}, 8, [
|
|
2005
2006
|
"id",
|
|
@@ -2022,7 +2023,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2022
2023
|
alignment: e.alignment,
|
|
2023
2024
|
"css-custom-properties": e.cssCustomProperties
|
|
2024
2025
|
}, {
|
|
2025
|
-
default:
|
|
2026
|
+
default: q(() => [j(t.$slots, "content")]),
|
|
2026
2027
|
_: 3
|
|
2027
2028
|
}, 8, ["alignment", "css-custom-properties"])]));
|
|
2028
2029
|
}
|
|
@@ -2046,7 +2047,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2046
2047
|
position: "bottom-right",
|
|
2047
2048
|
style: { width: "100%" }
|
|
2048
2049
|
}, c({
|
|
2049
|
-
trigger:
|
|
2050
|
+
trigger: q(() => [u($, {
|
|
2050
2051
|
class: y(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
2051
2052
|
variant: "ghost",
|
|
2052
2053
|
label: e.label,
|
|
@@ -2069,7 +2070,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2069
2070
|
_: 2
|
|
2070
2071
|
}, [e.disabledReason ? {
|
|
2071
2072
|
name: "content",
|
|
2072
|
-
fn:
|
|
2073
|
+
fn: q(() => [l(I(e.disabledReason), 1)]),
|
|
2073
2074
|
key: "0"
|
|
2074
2075
|
} : void 0]), 1024))), 128))], 2));
|
|
2075
2076
|
}
|
|
@@ -2113,7 +2114,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2113
2114
|
"pv-icon": n.value,
|
|
2114
2115
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
2115
2116
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
2116
|
-
return
|
|
2117
|
+
return K(u, () => {
|
|
2117
2118
|
n.value = !0;
|
|
2118
2119
|
}), (e, t) => (D(), o("div", Fr, [n.value ? (D(), o("div", {
|
|
2119
2120
|
key: 0,
|
|
@@ -2163,8 +2164,8 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2163
2164
|
}),
|
|
2164
2165
|
emits: ["update:modelValue"],
|
|
2165
2166
|
setup(e) {
|
|
2166
|
-
let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i =
|
|
2167
|
-
|
|
2167
|
+
let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i = H("dialog"), c = B(e, "modelValue");
|
|
2168
|
+
K(() => c.value, () => {
|
|
2168
2169
|
c.value ? i.value?.showModal() : i.value?.close();
|
|
2169
2170
|
});
|
|
2170
2171
|
let l = () => {
|
|
@@ -2315,7 +2316,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2315
2316
|
"data-testid": "pv-company-tag-close-icon",
|
|
2316
2317
|
size: 12,
|
|
2317
2318
|
name: "close",
|
|
2318
|
-
onClick: r[0] ||=
|
|
2319
|
+
onClick: r[0] ||= ie((n) => t.$emit("handle-close", e.companyName), ["stop"])
|
|
2319
2320
|
})) : a("", !0)
|
|
2320
2321
|
], 2));
|
|
2321
2322
|
}
|
|
@@ -2445,18 +2446,18 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2445
2446
|
}),
|
|
2446
2447
|
emits: ["update:modelValue"],
|
|
2447
2448
|
setup(e, { expose: t }) {
|
|
2448
|
-
let n = e, i =
|
|
2449
|
+
let n = e, i = H("search-input"), c = B(e, "modelValue"), l = r(() => ({
|
|
2449
2450
|
"pv-input-search": !0,
|
|
2450
2451
|
"pv-full-width": !0,
|
|
2451
2452
|
"pv-input-padded-end": !0,
|
|
2452
2453
|
"pv-input-small": n.size === "lg"
|
|
2453
2454
|
}));
|
|
2454
2455
|
return w(() => {
|
|
2455
|
-
n.displayShortcut &&
|
|
2456
|
+
n.displayShortcut && Y(li, (e) => {
|
|
2456
2457
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
2457
2458
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
2458
2459
|
});
|
|
2459
|
-
}), t({ input: i }), (t, n) => (D(), o("div", oi, [
|
|
2460
|
+
}), t({ input: i }), (t, n) => (D(), o("div", oi, [J(s("input", {
|
|
2460
2461
|
ref: "search-input",
|
|
2461
2462
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
2462
2463
|
"data-testid": "pv-search-input",
|
|
@@ -2464,7 +2465,7 @@ var Zn = /* @__PURE__ */ new Set(), Qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2464
2465
|
disabled: e.disabled,
|
|
2465
2466
|
class: y(l.value),
|
|
2466
2467
|
placeholder: e.placeholder
|
|
2467
|
-
}, null, 10, si), [[
|
|
2468
|
+
}, null, 10, si), [[G, c.value]]), e.displayShortcut ? (D(), o("kbd", ci, I(li))) : a("", !0)]));
|
|
2468
2469
|
}
|
|
2469
2470
|
}), [["__scopeId", "data-v-9e0c84d9"]]), di = /^\d{4}-\d{2}-\d{2}$/;
|
|
2470
2471
|
function fi(e) {
|
|
@@ -2547,7 +2548,7 @@ var _i = /* @__PURE__ */ d({
|
|
|
2547
2548
|
maxDate: s.value,
|
|
2548
2549
|
disabledDates: c.value
|
|
2549
2550
|
}), {
|
|
2550
|
-
inputicon:
|
|
2551
|
+
inputicon: q((e) => [u(Q, {
|
|
2551
2552
|
name: "calendar",
|
|
2552
2553
|
onClick: e.clickCallback
|
|
2553
2554
|
}, null, 8, ["onClick"])]),
|
|
@@ -2639,18 +2640,18 @@ var vi = () => ({
|
|
|
2639
2640
|
}),
|
|
2640
2641
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
2641
2642
|
setup(e, { emit: n }) {
|
|
2642
|
-
let r = e, i = n, c =
|
|
2643
|
+
let r = e, i = n, c = H("sidePanel"), l = B(e, "searchInput"), d = B(e, "modelValue"), f = () => {
|
|
2643
2644
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
2644
2645
|
}, p = () => {
|
|
2645
|
-
c.value &&
|
|
2646
|
+
c.value && ae(c.value, () => {
|
|
2646
2647
|
d.value && (i("click-outside"), f());
|
|
2647
2648
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
2648
2649
|
};
|
|
2649
2650
|
return w(() => {
|
|
2650
2651
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && p();
|
|
2651
|
-
}),
|
|
2652
|
+
}), K(() => d.value, () => {
|
|
2652
2653
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
2653
|
-
}),
|
|
2654
|
+
}), Y("Escape", () => {
|
|
2654
2655
|
c.value && d.value && f();
|
|
2655
2656
|
}), (n, i) => (D(), o("div", {
|
|
2656
2657
|
class: "pv-drawer pv-surface",
|
|
@@ -2963,7 +2964,7 @@ var vi = () => ({
|
|
|
2963
2964
|
key: 0,
|
|
2964
2965
|
description: e.hiddenValues.join(", ")
|
|
2965
2966
|
}, {
|
|
2966
|
-
trigger:
|
|
2967
|
+
trigger: q(() => [u(br, {
|
|
2967
2968
|
label: `+${e.hiddenValues.length} more`,
|
|
2968
2969
|
size: "sm"
|
|
2969
2970
|
}, null, 8, ["label"])]),
|
|
@@ -3002,7 +3003,7 @@ var vi = () => ({
|
|
|
3002
3003
|
class: "pv-label",
|
|
3003
3004
|
for: e.id
|
|
3004
3005
|
}, [j(n.$slots, "label")], 8, Hi)) : a("", !0),
|
|
3005
|
-
|
|
3006
|
+
J(s("textarea", _(n.$attrs, {
|
|
3006
3007
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
3007
3008
|
class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
|
|
3008
3009
|
rows: e.rows,
|
|
@@ -3010,7 +3011,7 @@ var vi = () => ({
|
|
|
3010
3011
|
placeholder: e.placeholder,
|
|
3011
3012
|
id: e.id,
|
|
3012
3013
|
"data-invalid": e.error ? !0 : void 0
|
|
3013
|
-
}), null, 16, Ui), [[
|
|
3014
|
+
}), null, 16, Ui), [[G, t.value]]),
|
|
3014
3015
|
e.lowerLabel ? (D(), o("p", {
|
|
3015
3016
|
key: 1,
|
|
3016
3017
|
style: { "margin-left": "12px" },
|
|
@@ -3069,7 +3070,7 @@ var vi = () => ({
|
|
|
3069
3070
|
class: y(d.value),
|
|
3070
3071
|
for: f.value
|
|
3071
3072
|
}, [
|
|
3072
|
-
|
|
3073
|
+
J(s("input", {
|
|
3073
3074
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
3074
3075
|
class: "pv-hide",
|
|
3075
3076
|
id: f.value,
|
|
@@ -3077,7 +3078,7 @@ var vi = () => ({
|
|
|
3077
3078
|
value: e.value,
|
|
3078
3079
|
name: e.name,
|
|
3079
3080
|
disabled: e.disabled
|
|
3080
|
-
}, null, 8, Ki), [[
|
|
3081
|
+
}, null, 8, Ki), [[U, n.value]]),
|
|
3081
3082
|
e.leftIcon ? (D(), i(Q, {
|
|
3082
3083
|
key: 0,
|
|
3083
3084
|
name: e.leftIcon
|
|
@@ -3270,7 +3271,7 @@ var vi = () => ({
|
|
|
3270
3271
|
onClickOutside: f,
|
|
3271
3272
|
style: { width: "320px" }
|
|
3272
3273
|
}, {
|
|
3273
|
-
header:
|
|
3274
|
+
header: q(() => [s("div", ua, [u(br, { label: L(Ai)[e.item.variant] }, null, 8, ["label"]), u($, {
|
|
3274
3275
|
"left-icon": "close",
|
|
3275
3276
|
"aria-label": "Close",
|
|
3276
3277
|
variant: "ghost",
|
|
@@ -3279,7 +3280,7 @@ var vi = () => ({
|
|
|
3279
3280
|
key: 0,
|
|
3280
3281
|
label: d.value
|
|
3281
3282
|
}, null, 8, ["label"])) : (D(), o("h2", da, I(d.value), 1))]),
|
|
3282
|
-
footer:
|
|
3283
|
+
footer: q(() => [u(na, {
|
|
3283
3284
|
item: e.item,
|
|
3284
3285
|
"on-submit-feedback": e.onSubmitFeedback,
|
|
3285
3286
|
"success-message": e.feedbackSuccessMessage,
|
|
@@ -3290,7 +3291,7 @@ var vi = () => ({
|
|
|
3290
3291
|
"success-message",
|
|
3291
3292
|
"error-message"
|
|
3292
3293
|
])]),
|
|
3293
|
-
default:
|
|
3294
|
+
default: q(() => [s("div", fa, [u(Bi, {
|
|
3294
3295
|
item: e.item,
|
|
3295
3296
|
onLabelClick: n[0] ||= (e) => a("label-click", e)
|
|
3296
3297
|
}, null, 8, ["item"])])]),
|
|
@@ -3574,11 +3575,11 @@ var vi = () => ({
|
|
|
3574
3575
|
variant: "dark",
|
|
3575
3576
|
"tooltip-position": "top-left"
|
|
3576
3577
|
}, {
|
|
3577
|
-
label:
|
|
3578
|
+
label: q(() => [u(Q, {
|
|
3578
3579
|
name: "close",
|
|
3579
|
-
onClick: r[0] ||=
|
|
3580
|
+
onClick: r[0] ||= ie((e) => n.$emit("handle-clear"), ["stop"])
|
|
3580
3581
|
})]),
|
|
3581
|
-
"tooltip-content":
|
|
3582
|
+
"tooltip-content": q(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
3582
3583
|
_: 1
|
|
3583
3584
|
})) : a("", !0)
|
|
3584
3585
|
], 10, Ta));
|
|
@@ -3701,7 +3702,7 @@ var Ba = {
|
|
|
3701
3702
|
};
|
|
3702
3703
|
return w(() => {
|
|
3703
3704
|
g();
|
|
3704
|
-
}),
|
|
3705
|
+
}), K(() => [
|
|
3705
3706
|
n.queryText,
|
|
3706
3707
|
n.text,
|
|
3707
3708
|
n.subText
|
|
@@ -3781,13 +3782,13 @@ var Ba = {
|
|
|
3781
3782
|
disableInteractive: !0,
|
|
3782
3783
|
style: { "pointer-events": "auto" }
|
|
3783
3784
|
}, {
|
|
3784
|
-
trigger:
|
|
3785
|
+
trigger: q(() => [u(Q, {
|
|
3785
3786
|
size: 12,
|
|
3786
3787
|
name: "info-circle",
|
|
3787
3788
|
class: "pv-text-subdued",
|
|
3788
|
-
onClick: r[0] ||=
|
|
3789
|
+
onClick: r[0] ||= ie(() => {}, ["stop", "prevent"])
|
|
3789
3790
|
})]),
|
|
3790
|
-
content:
|
|
3791
|
+
content: q(() => [s("div", Ua, I(e.description), 1)]),
|
|
3791
3792
|
_: 1
|
|
3792
3793
|
})) : e.secondaryText && typeof e.secondaryText == "number" ? (D(), i(He, {
|
|
3793
3794
|
key: 6,
|
|
@@ -3832,14 +3833,14 @@ var Ba = {
|
|
|
3832
3833
|
"pv-input-xsmall": e.size === "sm",
|
|
3833
3834
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
3834
3835
|
}])
|
|
3835
|
-
}, [e.label ? (D(), o("span", qa, I(e.label), 1)) : a("", !0),
|
|
3836
|
+
}, [e.label ? (D(), o("span", qa, I(e.label), 1)) : a("", !0), J(s("input", {
|
|
3836
3837
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
3837
3838
|
disabled: e.disabled,
|
|
3838
3839
|
"aria-label": e.ariaLabel,
|
|
3839
3840
|
type: "checkbox",
|
|
3840
3841
|
role: "switch",
|
|
3841
3842
|
id: L(t)
|
|
3842
|
-
}, null, 8, Ja), [[
|
|
3843
|
+
}, null, 8, Ja), [[ee, n.value]])], 10, Ka));
|
|
3843
3844
|
}
|
|
3844
3845
|
}), [["__scopeId", "data-v-73e6d2b2"]]), Xa = ["aria-label"], Za = /* @__PURE__ */ d({
|
|
3845
3846
|
__name: "PvMenuItemAction",
|
|
@@ -3873,16 +3874,16 @@ var Ba = {
|
|
|
3873
3874
|
"disable-interactive": !0,
|
|
3874
3875
|
"use-teleport": !0
|
|
3875
3876
|
}, c({
|
|
3876
|
-
trigger:
|
|
3877
|
+
trigger: q(() => [s("span", {
|
|
3877
3878
|
class: y(["pv-text-brand", { "pv-action-button-reveal-on-hover": !f.value }]),
|
|
3878
3879
|
role: "img",
|
|
3879
3880
|
"aria-label": o.value,
|
|
3880
|
-
onClick: t[0] ||=
|
|
3881
|
+
onClick: t[0] ||= ie(() => {}, ["stop"])
|
|
3881
3882
|
}, [u(Q, { name: n.value }, null, 8, ["name"])], 10, Xa)]),
|
|
3882
3883
|
_: 2
|
|
3883
3884
|
}, [o.value ? {
|
|
3884
3885
|
name: "content",
|
|
3885
|
-
fn:
|
|
3886
|
+
fn: q(() => [l(I(o.value), 1)]),
|
|
3886
3887
|
key: "0"
|
|
3887
3888
|
} : void 0]), 1024));
|
|
3888
3889
|
}
|
|
@@ -3937,7 +3938,7 @@ var Ba = {
|
|
|
3937
3938
|
},
|
|
3938
3939
|
emits: ["handle-selected", "toggle-expanded"],
|
|
3939
3940
|
setup(e, { emit: t }) {
|
|
3940
|
-
let n = e, c =
|
|
3941
|
+
let n = e, c = H("inputRef"), l = m(Qa, void 0), d = m($a, k(!1)), p = m(no, void 0), h = m(ro, void 0), g = m(eo, r(() => !1)), b = r(() => {
|
|
3941
3942
|
if (!d.value || !Pa(n)) return [];
|
|
3942
3943
|
let e = n.children ? Fa(n.children) : [];
|
|
3943
3944
|
if (p?.value) {
|
|
@@ -4047,7 +4048,7 @@ var Ba = {
|
|
|
4047
4048
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
4048
4049
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
4049
4050
|
"aria-expanded": e.expanded,
|
|
4050
|
-
onClick: r[1] ||=
|
|
4051
|
+
onClick: r[1] ||= ie((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
4051
4052
|
}, [u(Q, {
|
|
4052
4053
|
name: e.chevronIcon ?? "chevron-right",
|
|
4053
4054
|
size: 12
|
|
@@ -4111,11 +4112,11 @@ var Ba = {
|
|
|
4111
4112
|
]);
|
|
4112
4113
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
4113
4114
|
}), g = m(ro, void 0), v = m(io, void 0), b = k(i.defaultExpanded ?? !1);
|
|
4114
|
-
|
|
4115
|
+
K(() => i.defaultExpanded, (e) => {
|
|
4115
4116
|
e && (b.value = !0);
|
|
4116
4117
|
});
|
|
4117
4118
|
let S = k(!1), C = k(!1), w = k(i.children ?? []), T = k(/* @__PURE__ */ new Set());
|
|
4118
|
-
|
|
4119
|
+
K(() => i.children, (e) => {
|
|
4119
4120
|
if (!e) {
|
|
4120
4121
|
w.value = [];
|
|
4121
4122
|
return;
|
|
@@ -4131,7 +4132,7 @@ var Ba = {
|
|
|
4131
4132
|
}), N = r(() => Pa({
|
|
4132
4133
|
...i,
|
|
4133
4134
|
children: w.value
|
|
4134
|
-
}) && i.level < ho), P = r(() => N.value ? l.value ? b.value : !0 : !1), F = r(() => b.value ? "chevron-down" : "chevron-right"), I = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), z = n, V = r(() => C.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length),
|
|
4135
|
+
}) && i.level < ho), P = r(() => N.value ? l.value ? b.value : !0 : !1), F = r(() => b.value ? "chevron-down" : "chevron-right"), I = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), z = n, V = r(() => C.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), H = async () => {
|
|
4135
4136
|
if (S.value) return;
|
|
4136
4137
|
if (!i.handleSeeMore) {
|
|
4137
4138
|
z("see-more", {
|
|
@@ -4166,7 +4167,7 @@ var Ba = {
|
|
|
4166
4167
|
} finally {
|
|
4167
4168
|
S.value = !1;
|
|
4168
4169
|
}
|
|
4169
|
-
},
|
|
4170
|
+
}, ee = (e) => {
|
|
4170
4171
|
if (l.value && N.value && e.option.id === i.id && !d.value) {
|
|
4171
4172
|
E();
|
|
4172
4173
|
return;
|
|
@@ -4176,7 +4177,7 @@ var Ba = {
|
|
|
4176
4177
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
4177
4178
|
}
|
|
4178
4179
|
z("handle-selected", e);
|
|
4179
|
-
},
|
|
4180
|
+
}, U = (e) => {
|
|
4180
4181
|
z("handle-selected", e);
|
|
4181
4182
|
};
|
|
4182
4183
|
return (n, r) => {
|
|
@@ -4192,7 +4193,7 @@ var Ba = {
|
|
|
4192
4193
|
showChevron: L(l) && N.value,
|
|
4193
4194
|
chevronIcon: F.value,
|
|
4194
4195
|
expanded: b.value,
|
|
4195
|
-
onHandleSelected:
|
|
4196
|
+
onHandleSelected: ee,
|
|
4196
4197
|
onToggleExpanded: E,
|
|
4197
4198
|
selected: I(i)
|
|
4198
4199
|
}), null, 16, [
|
|
@@ -4220,7 +4221,7 @@ var Ba = {
|
|
|
4220
4221
|
queryText: e.queryText,
|
|
4221
4222
|
highlightSearchText: e.highlightSearchText,
|
|
4222
4223
|
level: e.level + 1,
|
|
4223
|
-
onHandleSelected:
|
|
4224
|
+
onHandleSelected: U,
|
|
4224
4225
|
onSeeMore: r[1] ||= (e) => z("see-more", e)
|
|
4225
4226
|
}), null, 16, [
|
|
4226
4227
|
"disabled",
|
|
@@ -4235,7 +4236,7 @@ var Ba = {
|
|
|
4235
4236
|
label: "See more",
|
|
4236
4237
|
loading: S.value,
|
|
4237
4238
|
"data-testid": "pv-menu-item-see-more",
|
|
4238
|
-
onClick:
|
|
4239
|
+
onClick: H
|
|
4239
4240
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
4240
4241
|
};
|
|
4241
4242
|
}
|
|
@@ -4288,60 +4289,60 @@ var Ba = {
|
|
|
4288
4289
|
let e = p.value;
|
|
4289
4290
|
E(), e && v(() => Se(e));
|
|
4290
4291
|
}, N = [...m(to, []), h];
|
|
4291
|
-
O(to, N),
|
|
4292
|
+
O(to, N), ae(g, (e) => {
|
|
4292
4293
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
4293
4294
|
}, { ignore: [S] });
|
|
4294
4295
|
let P = F(f.value);
|
|
4295
|
-
|
|
4296
|
+
K(f, (e) => {
|
|
4296
4297
|
P.value = e;
|
|
4297
4298
|
});
|
|
4298
4299
|
let I, R = (e) => {
|
|
4299
4300
|
I = e, f.value = e;
|
|
4300
4301
|
};
|
|
4301
|
-
|
|
4302
|
+
K(P, (e) => {
|
|
4302
4303
|
e !== I && e !== f.value && R(e);
|
|
4303
4304
|
}), O(Qa, P), O(eo, r(() => l.childrenDisplay === "popover"));
|
|
4304
4305
|
let V = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
4305
4306
|
O($a, V);
|
|
4306
|
-
let
|
|
4307
|
+
let H = m(no, void 0), ee = m(ao, k(!1)), U = m(ro, void 0), W = m(io, void 0), G = r(() => l.singleSelect || l.config?.variant === "radio"), ne = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), re = (e, t, n = !1, r = !0) => {
|
|
4307
4308
|
let i = !r || p.value !== e.id;
|
|
4308
4309
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
4309
4310
|
T(), n && be(b.value ?? document.getElementById(h), 0);
|
|
4310
4311
|
}));
|
|
4311
|
-
},
|
|
4312
|
+
}, ie = (e, t = !1) => {
|
|
4312
4313
|
if (l.readOnly) return;
|
|
4313
4314
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
4314
4315
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
4315
4316
|
let t = e.event.currentTarget?.closest("li");
|
|
4316
|
-
t &&
|
|
4317
|
+
t && re(n, t);
|
|
4317
4318
|
return;
|
|
4318
4319
|
}
|
|
4319
4320
|
let r;
|
|
4320
4321
|
if (V.value && Pa(n)) {
|
|
4321
4322
|
let e;
|
|
4322
|
-
if (
|
|
4323
|
-
let t =
|
|
4323
|
+
if (ee.value && H?.value) {
|
|
4324
|
+
let t = H.value.get(n.id);
|
|
4324
4325
|
e = Ia(t?.children ? Fa(t.children) : [], n.children ? Fa(n.children) : []);
|
|
4325
4326
|
} else e = n.children ? Fa(n.children) : [];
|
|
4326
|
-
let t = e.map((e) => e.id), i = P.value, a = (
|
|
4327
|
-
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e],
|
|
4328
|
-
let e = new Set(
|
|
4329
|
-
a ? e.delete(n.id) : e.add(n.id),
|
|
4327
|
+
let t = e.map((e) => e.id), i = P.value, a = (U?.value?.has(n.id) ?? !1) || t.some((e) => i.some((t) => t.id === e));
|
|
4328
|
+
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], U?.value) {
|
|
4329
|
+
let e = new Set(U.value);
|
|
4330
|
+
a ? e.delete(n.id) : e.add(n.id), U.value = e;
|
|
4330
4331
|
}
|
|
4331
|
-
if (
|
|
4332
|
-
let e = new Map(
|
|
4333
|
-
e.delete(n.id),
|
|
4332
|
+
if (W?.value?.has(n.id)) {
|
|
4333
|
+
let e = new Map(W.value);
|
|
4334
|
+
e.delete(n.id), W.value = e;
|
|
4334
4335
|
}
|
|
4335
|
-
} else if (
|
|
4336
|
+
} else if (G.value) r = P.value.length === 1 && P.value[0].id === n.id ? l.disableDeselect ? P.value : [] : [n];
|
|
4336
4337
|
else {
|
|
4337
4338
|
let e = P.value.findIndex((e) => e.id === n.id);
|
|
4338
|
-
if (r = e > -1 ? [...P.value.slice(0, e), ...P.value.slice(e + 1)] : [...P.value, n], V.value &&
|
|
4339
|
+
if (r = e > -1 ? [...P.value.slice(0, e), ...P.value.slice(e + 1)] : [...P.value, n], V.value && U?.value && W?.value) {
|
|
4339
4340
|
let t = e > -1;
|
|
4340
|
-
for (let e of
|
|
4341
|
-
let r =
|
|
4341
|
+
for (let e of U.value) {
|
|
4342
|
+
let r = H?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
4342
4343
|
if (!r || !(Fa(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
4343
|
-
let i = new Map(
|
|
4344
|
-
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e),
|
|
4344
|
+
let i = new Map(W.value), a = new Set(i.get(e) ?? []);
|
|
4345
|
+
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), W.value = i;
|
|
4345
4346
|
break;
|
|
4346
4347
|
}
|
|
4347
4348
|
}
|
|
@@ -4350,23 +4351,23 @@ var Ba = {
|
|
|
4350
4351
|
...e,
|
|
4351
4352
|
option: n
|
|
4352
4353
|
} : e);
|
|
4353
|
-
},
|
|
4354
|
-
let t =
|
|
4354
|
+
}, Y = (e) => {
|
|
4355
|
+
let t = ne.value;
|
|
4355
4356
|
if (!t) return;
|
|
4356
4357
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
4357
|
-
|
|
4358
|
+
ie({
|
|
4358
4359
|
...e,
|
|
4359
4360
|
option: n
|
|
4360
4361
|
}, !0), p.value = void 0, v(() => Se(t.id));
|
|
4361
|
-
},
|
|
4362
|
+
}, oe = r(() => new Set(P.value.map((e) => e.id))), se = (e) => {
|
|
4362
4363
|
for (let t of e) {
|
|
4363
|
-
if (
|
|
4364
|
-
let e = t.children?.length ?
|
|
4364
|
+
if (oe.value.has(t.id)) return t;
|
|
4365
|
+
let e = t.children?.length ? se(t.children) : void 0;
|
|
4365
4366
|
if (e) return e;
|
|
4366
4367
|
}
|
|
4367
|
-
},
|
|
4368
|
+
}, ce = (e) => {
|
|
4368
4369
|
if (l.childrenDisplay !== "popover" || !e.children?.length) return e;
|
|
4369
|
-
let t =
|
|
4370
|
+
let t = se(e.children);
|
|
4370
4371
|
return {
|
|
4371
4372
|
...e,
|
|
4372
4373
|
children: void 0,
|
|
@@ -4378,14 +4379,14 @@ var Ba = {
|
|
|
4378
4379
|
...e,
|
|
4379
4380
|
children: void 0,
|
|
4380
4381
|
totalChildCount: void 0
|
|
4381
|
-
}), le = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, ue = (e) =>
|
|
4382
|
+
}), le = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, ue = (e) => oe.value.has(e.id) || V.value && U?.value?.has(e.id) || (V.value || l.childrenDisplay === "popover") && e.children?.length && se(e.children) ? !0 : null, de = (e) => {
|
|
4382
4383
|
let t = e.config?.variant ?? l.config?.variant;
|
|
4383
|
-
return
|
|
4384
|
-
}, fe = (e) => de(e) === "menuitem" ? void 0 : !!ue(e), Z = (e) => e.children?.length && !l.highlightParentItems ? null : de(e) !== "menuitemcheckbox" && ue(e) || p.value === e.id ? !0 : null, pe = (e) => de(e) !== "menuitemcheckbox" &&
|
|
4384
|
+
return G.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
4385
|
+
}, fe = (e) => de(e) === "menuitem" ? void 0 : !!ue(e), Z = (e) => e.children?.length && !l.highlightParentItems ? null : de(e) !== "menuitemcheckbox" && ue(e) || p.value === e.id ? !0 : null, pe = (e) => de(e) !== "menuitemcheckbox" && oe.value.has(e.id) ? !0 : null, me = (e, t) => !!(!t || oe.value.has(e.id) || U?.value?.has(e.id) || e.children?.length && se(e.children)), he = k(), ge = k(), _e = r(() => {
|
|
4385
4386
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && me(e, l.isLoading)).map((e) => e.id);
|
|
4386
4387
|
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Co), he.value && e.includes(he.value) ? he.value : e[0];
|
|
4387
4388
|
}), ve = r(() => {
|
|
4388
|
-
let e =
|
|
4389
|
+
let e = ne.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
4389
4390
|
return e.some((e) => e.id === ge.value) ? ge.value : e[0]?.id;
|
|
4390
4391
|
}), ye = (e) => {
|
|
4391
4392
|
let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
@@ -4399,7 +4400,7 @@ var Ba = {
|
|
|
4399
4400
|
}, Se = (e) => {
|
|
4400
4401
|
ye(g.value).find((t) => t.dataset.optionId === e)?.focus();
|
|
4401
4402
|
};
|
|
4402
|
-
|
|
4403
|
+
K(p, (e) => {
|
|
4403
4404
|
ge.value = void 0, e && v(() => {
|
|
4404
4405
|
let t = Array.from(g.value?.children ?? []).find((t) => t.dataset.optionId === e);
|
|
4405
4406
|
t && (C.value = t, T());
|
|
@@ -4417,11 +4418,11 @@ var Ba = {
|
|
|
4417
4418
|
if (!(e.target !== e.currentTarget || Ce(e, g.value))) switch (e.key) {
|
|
4418
4419
|
case "ArrowRight":
|
|
4419
4420
|
if (!t.children?.length) break;
|
|
4420
|
-
e.preventDefault(),
|
|
4421
|
+
e.preventDefault(), re(t, e.currentTarget, !0, !1);
|
|
4421
4422
|
break;
|
|
4422
4423
|
case "Enter":
|
|
4423
4424
|
case " ":
|
|
4424
|
-
e.preventDefault(), t.children?.length ?
|
|
4425
|
+
e.preventDefault(), t.children?.length ? re(t, e.currentTarget, !0, !1) : ie({
|
|
4425
4426
|
event: e,
|
|
4426
4427
|
option: t
|
|
4427
4428
|
});
|
|
@@ -4456,7 +4457,7 @@ var Ba = {
|
|
|
4456
4457
|
}
|
|
4457
4458
|
case "Enter":
|
|
4458
4459
|
case " ":
|
|
4459
|
-
e.preventDefault(),
|
|
4460
|
+
e.preventDefault(), Y({
|
|
4460
4461
|
event: e,
|
|
4461
4462
|
option: t
|
|
4462
4463
|
});
|
|
@@ -4471,14 +4472,14 @@ var Ba = {
|
|
|
4471
4472
|
ref: g,
|
|
4472
4473
|
role: e.childrenDisplay === "popover" ? "menu" : "list",
|
|
4473
4474
|
class: "pv-popover-list"
|
|
4474
|
-
}, r.$attrs), [(D(!0), o(t, null, A(e.options, (t) =>
|
|
4475
|
+
}, r.$attrs), [(D(!0), o(t, null, A(e.options, (t) => J((D(), o("li", {
|
|
4475
4476
|
key: t.id,
|
|
4476
4477
|
"data-active": Z(t),
|
|
4477
4478
|
"data-option-id": t.id,
|
|
4478
4479
|
"data-testid": e.itemTestId,
|
|
4479
4480
|
class: y(e.itemClass),
|
|
4480
4481
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4481
|
-
}, [u(go, _({ ref_for: !0 },
|
|
4482
|
+
}, [u(go, _({ ref_for: !0 }, ce(t), {
|
|
4482
4483
|
"aria-checked": e.childrenDisplay === "popover" ? fe(t) : void 0,
|
|
4483
4484
|
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? L(h) : void 0,
|
|
4484
4485
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
@@ -4495,7 +4496,7 @@ var Ba = {
|
|
|
4495
4496
|
tabindex: e.childrenDisplay === "popover" ? _e.value === t.id ? 0 : -1 : void 0,
|
|
4496
4497
|
onFocus: (e) => he.value = t.id,
|
|
4497
4498
|
onKeydown: (n) => e.childrenDisplay === "popover" ? we(n, t) : void 0,
|
|
4498
|
-
onHandleSelected:
|
|
4499
|
+
onHandleSelected: ie,
|
|
4499
4500
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
4500
4501
|
}), null, 16, [
|
|
4501
4502
|
"aria-checked",
|
|
@@ -4514,7 +4515,7 @@ var Ba = {
|
|
|
4514
4515
|
"tabindex",
|
|
4515
4516
|
"onFocus",
|
|
4516
4517
|
"onKeydown"
|
|
4517
|
-
])], 10, vo)), [[
|
|
4518
|
+
])], 10, vo)), [[te, me(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (D(), o("li", {
|
|
4518
4519
|
key: 0,
|
|
4519
4520
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4520
4521
|
}, [u($, {
|
|
@@ -4534,7 +4535,7 @@ var Ba = {
|
|
|
4534
4535
|
"disabled",
|
|
4535
4536
|
"role",
|
|
4536
4537
|
"tabindex"
|
|
4537
|
-
])], 8, yo)) : a("", !0)], 16, _o), e.childrenDisplay === "popover" &&
|
|
4538
|
+
])], 8, yo)) : a("", !0)], 16, _o), e.childrenDisplay === "popover" && ne.value ? (D(), i(n, {
|
|
4538
4539
|
key: 0,
|
|
4539
4540
|
to: "body"
|
|
4540
4541
|
}, [s("div", {
|
|
@@ -4551,18 +4552,18 @@ var Ba = {
|
|
|
4551
4552
|
maxWidth: "calc(100vw - 16px)"
|
|
4552
4553
|
}
|
|
4553
4554
|
}, {
|
|
4554
|
-
default:
|
|
4555
|
-
option:
|
|
4555
|
+
default: q(() => [j(r.$slots, "popover", {
|
|
4556
|
+
option: ne.value,
|
|
4556
4557
|
popoverId: L(h),
|
|
4557
4558
|
close: M
|
|
4558
4559
|
}, () => [s("ul", {
|
|
4559
4560
|
id: L(h),
|
|
4560
4561
|
ref_key: "nestedMenuRef",
|
|
4561
4562
|
ref: b,
|
|
4562
|
-
"aria-label": `${
|
|
4563
|
+
"aria-label": `${ne.value.text} options`,
|
|
4563
4564
|
class: "pv-popover-list",
|
|
4564
4565
|
role: "menu"
|
|
4565
|
-
}, [(D(!0), o(t, null, A(
|
|
4566
|
+
}, [(D(!0), o(t, null, A(ne.value.children, (t) => (D(), o("li", {
|
|
4566
4567
|
key: t.id,
|
|
4567
4568
|
"data-active": pe(t),
|
|
4568
4569
|
"data-option-id": t.id,
|
|
@@ -4582,7 +4583,7 @@ var Ba = {
|
|
|
4582
4583
|
tabindex: ve.value === t.id ? 0 : -1,
|
|
4583
4584
|
onFocus: (e) => ge.value = t.id,
|
|
4584
4585
|
onKeydown: (e) => Ee(e, t),
|
|
4585
|
-
onHandleSelected:
|
|
4586
|
+
onHandleSelected: Y,
|
|
4586
4587
|
onSeeMore: c[4] ||= (e) => d("see-more", e)
|
|
4587
4588
|
}), null, 16, [
|
|
4588
4589
|
"aria-checked",
|
|
@@ -4751,7 +4752,7 @@ var Ba = {
|
|
|
4751
4752
|
state: "deselected"
|
|
4752
4753
|
}))), t.push(r);
|
|
4753
4754
|
}
|
|
4754
|
-
for (let n of
|
|
4755
|
+
for (let n of G.value) e.has(n.id) || t.push({
|
|
4755
4756
|
id: n.id,
|
|
4756
4757
|
state: "selected"
|
|
4757
4758
|
});
|
|
@@ -4759,18 +4760,18 @@ var Ba = {
|
|
|
4759
4760
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
4760
4761
|
let e = c.additionalCounter ?? 0;
|
|
4761
4762
|
if (c.enableCascadeSelection && c.countSelectedParents && R.value?.length) return Ra(R.value) + e;
|
|
4762
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
4763
|
-
let t = new Set(
|
|
4763
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return G.value.length + e;
|
|
4764
|
+
let t = new Set(G.value.map((e) => e.id));
|
|
4764
4765
|
return La(c.options, t) + e;
|
|
4765
|
-
}), T = r(() =>
|
|
4766
|
+
}), T = r(() => G.value.length > 0 ? !0 : c.enableCascadeSelection && R.value?.length ? R.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
4766
4767
|
g("see-more", e ?? {});
|
|
4767
|
-
}, k =
|
|
4768
|
-
|
|
4769
|
-
}, H = () => {
|
|
4770
|
-
V.value && (P.value = W.value, R.value = S());
|
|
4768
|
+
}, k = H("searchInputRef"), [M, N] = ue(c.defaultOpen), P = B(e, "modelValue"), R = B(e, "selectionState"), z = B(e, "searchInput"), V = r(() => c.menuActionsVariant === "cancel-confirm"), ee = (e) => {
|
|
4769
|
+
G.value = e, V.value || (P.value = e, R.value = S());
|
|
4771
4770
|
}, U = () => {
|
|
4772
|
-
V.value && (
|
|
4773
|
-
}, W =
|
|
4771
|
+
V.value && (P.value = G.value, R.value = S());
|
|
4772
|
+
}, W = () => {
|
|
4773
|
+
V.value && (G.value = P.value);
|
|
4774
|
+
}, G = F(P.value), te = (e) => d.value.get(e), ne = (e) => {
|
|
4774
4775
|
if (!c.enableCascadeSelection || !e) return;
|
|
4775
4776
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
4776
4777
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -4786,55 +4787,55 @@ var Ba = {
|
|
|
4786
4787
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
4787
4788
|
continue;
|
|
4788
4789
|
}
|
|
4789
|
-
a(
|
|
4790
|
+
a(te(r.id), r.id);
|
|
4790
4791
|
}
|
|
4791
|
-
f.value = t, m.value = n,
|
|
4792
|
-
},
|
|
4793
|
-
get: () =>
|
|
4792
|
+
f.value = t, m.value = n, G.value = r;
|
|
4793
|
+
}, J = r({
|
|
4794
|
+
get: () => G.value,
|
|
4794
4795
|
set: (e) => {
|
|
4795
|
-
|
|
4796
|
+
ee(e);
|
|
4796
4797
|
}
|
|
4797
|
-
}),
|
|
4798
|
+
}), re = () => {
|
|
4798
4799
|
z.value = "", M.value = !1;
|
|
4799
|
-
},
|
|
4800
|
+
}, ie = r(() => {
|
|
4800
4801
|
let e = c.size === "lg" ? 24 : 30;
|
|
4801
4802
|
return c.overlayTrigger ? -e : void 0;
|
|
4802
4803
|
});
|
|
4803
|
-
|
|
4804
|
+
K(() => P.value, (e) => {
|
|
4804
4805
|
if (c.enableCascadeSelection && R.value?.length && e.length === 0) {
|
|
4805
|
-
|
|
4806
|
+
ne(R.value);
|
|
4806
4807
|
return;
|
|
4807
4808
|
}
|
|
4808
|
-
|
|
4809
|
-
}),
|
|
4810
|
-
|
|
4809
|
+
G.value = e;
|
|
4810
|
+
}), K(() => [R.value, c.options], () => {
|
|
4811
|
+
ne(R.value);
|
|
4811
4812
|
}, {
|
|
4812
4813
|
deep: !0,
|
|
4813
4814
|
immediate: !0
|
|
4814
|
-
}),
|
|
4815
|
-
e ? (
|
|
4815
|
+
}), K(M, (e) => {
|
|
4816
|
+
e ? (W(), v(() => {
|
|
4816
4817
|
c.overlayTrigger && !c.disableSearchInput && k.value?.input?.focus(), g("dropdown-open");
|
|
4817
|
-
})) : (
|
|
4818
|
+
})) : (W(), g("dropdown-closed"));
|
|
4818
4819
|
});
|
|
4819
|
-
let
|
|
4820
|
+
let ae = r(() => {
|
|
4820
4821
|
if (z.value === "") return c.options;
|
|
4821
4822
|
let e = z.value.toLocaleLowerCase();
|
|
4822
4823
|
return c.enableCascadeSelection ? za(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
4823
|
-
}),
|
|
4824
|
+
}), oe = () => {
|
|
4824
4825
|
if (c.enableCascadeSelection) {
|
|
4825
4826
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
4826
4827
|
for (let r of n) Pa(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
4827
4828
|
};
|
|
4828
|
-
t(
|
|
4829
|
+
t(ae.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
4829
4830
|
}
|
|
4830
|
-
let e = c.enableCascadeSelection ? Fa(
|
|
4831
|
-
g("select-all", e.length),
|
|
4831
|
+
let e = c.enableCascadeSelection ? Fa(ae.value) : ae.value;
|
|
4832
|
+
g("select-all", e.length), ee(e);
|
|
4833
|
+
}, se = () => {
|
|
4834
|
+
g("clear-all", G.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), ee([]);
|
|
4832
4835
|
}, ce = () => {
|
|
4833
|
-
|
|
4834
|
-
}, Y = () => {
|
|
4835
|
-
U(), ae();
|
|
4836
|
+
W(), re();
|
|
4836
4837
|
}, X = () => {
|
|
4837
|
-
|
|
4838
|
+
U(), re();
|
|
4838
4839
|
}, le = r(() => {
|
|
4839
4840
|
if (!c.groupings) return;
|
|
4840
4841
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -4854,17 +4855,17 @@ var Ba = {
|
|
|
4854
4855
|
slotContext: c.slotContext,
|
|
4855
4856
|
isOpen: M.value,
|
|
4856
4857
|
isLoading: c.isLoading
|
|
4857
|
-
})), Z = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), pe = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), me =
|
|
4858
|
+
})), Z = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), pe = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), me = H("popoverContentRef"), he = r(() => {
|
|
4858
4859
|
let e = me.value?.getRootNode();
|
|
4859
4860
|
return e instanceof ShadowRoot ? e.host : null;
|
|
4860
4861
|
}), { present: ge } = Xn("header", { host: he }), { present: _e } = Xn("no-results", { host: he }), { present: ve } = Xn("footer", { host: he });
|
|
4861
|
-
return
|
|
4862
|
-
M.value &&
|
|
4862
|
+
return Y("Escape", () => {
|
|
4863
|
+
M.value && re();
|
|
4863
4864
|
}), (n, r) => (D(), i(nr, _({
|
|
4864
4865
|
modelValue: L(M),
|
|
4865
4866
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
4866
|
-
}, e.popoverProperties, { offset:
|
|
4867
|
-
trigger:
|
|
4867
|
+
}, e.popoverProperties, { offset: ie.value }), {
|
|
4868
|
+
trigger: q(() => [u(ka, {
|
|
4868
4869
|
ref: "select-button-trigger-ref",
|
|
4869
4870
|
variant: e.variant,
|
|
4870
4871
|
size: e.size,
|
|
@@ -4879,9 +4880,9 @@ var Ba = {
|
|
|
4879
4880
|
open: L(M),
|
|
4880
4881
|
"counter-value": w.value,
|
|
4881
4882
|
"counter-style": e.counterStyle,
|
|
4882
|
-
"selected-items":
|
|
4883
|
+
"selected-items": G.value,
|
|
4883
4884
|
"data-dd-action-name": Z.value,
|
|
4884
|
-
onHandleClear:
|
|
4885
|
+
onHandleClear: se,
|
|
4885
4886
|
onHandleToggleDropdown: r[0] ||= (e) => L(N)()
|
|
4886
4887
|
}, null, 8, [
|
|
4887
4888
|
"variant",
|
|
@@ -4900,7 +4901,7 @@ var Ba = {
|
|
|
4900
4901
|
"selected-items",
|
|
4901
4902
|
"data-dd-action-name"
|
|
4902
4903
|
])]),
|
|
4903
|
-
content:
|
|
4904
|
+
content: q(() => [s("div", {
|
|
4904
4905
|
ref_key: "popoverContentRef",
|
|
4905
4906
|
ref: me,
|
|
4906
4907
|
class: "pv-popover",
|
|
@@ -4922,11 +4923,11 @@ var Ba = {
|
|
|
4922
4923
|
placeholder: e.searchPlaceholder
|
|
4923
4924
|
}, null, 8, ["model-value", "placeholder"])], 8, To)),
|
|
4924
4925
|
n.$slots.header || L(ge) ? (D(), o("div", Eo, [j(n.$slots, "header", b(p(fe.value)))])) : a("", !0),
|
|
4925
|
-
|
|
4926
|
+
ae.value.length > 0 ? (D(), o(t, { key: 2 }, [de.value ? (D(!0), o(t, { key: 0 }, A(le.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
4926
4927
|
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", Do, I(t), 1)),
|
|
4927
4928
|
u(wo, {
|
|
4928
|
-
selectedItems:
|
|
4929
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
4929
|
+
selectedItems: J.value,
|
|
4930
|
+
"onUpdate:selectedItems": r[2] ||= (e) => J.value = e,
|
|
4930
4931
|
options: i,
|
|
4931
4932
|
config: l.value,
|
|
4932
4933
|
singleSelect: e.singleSelect,
|
|
@@ -4953,9 +4954,9 @@ var Ba = {
|
|
|
4953
4954
|
le.value && s !== le.value.length - 1 ? (D(), o("div", Oo)) : a("", !0)
|
|
4954
4955
|
]))), 128)) : (D(), i(wo, {
|
|
4955
4956
|
key: 1,
|
|
4956
|
-
selectedItems:
|
|
4957
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
4958
|
-
options:
|
|
4957
|
+
selectedItems: J.value,
|
|
4958
|
+
"onUpdate:selectedItems": r[3] ||= (e) => J.value = e,
|
|
4959
|
+
options: ae.value,
|
|
4959
4960
|
config: l.value,
|
|
4960
4961
|
singleSelect: e.singleSelect,
|
|
4961
4962
|
queryText: e.highlightSearchText ? z.value : null,
|
|
@@ -4976,15 +4977,15 @@ var Ba = {
|
|
|
4976
4977
|
"isSeeMoreLoading",
|
|
4977
4978
|
"hasMoreOptions"
|
|
4978
4979
|
]))], 64)) : a("", !0),
|
|
4979
|
-
e.isLoading ? (D(), o("div", ko, [u(Me, { variant: "dark" }), e.loadingText ? (D(), o("span", Ao, I(e.loadingText), 1)) : a("", !0)])) :
|
|
4980
|
+
e.isLoading ? (D(), o("div", ko, [u(Me, { variant: "dark" }), e.loadingText ? (D(), o("span", Ao, I(e.loadingText), 1)) : a("", !0)])) : ae.value.length === 0 ? (D(), o(t, { key: 4 }, [L(_e) ? j(n.$slots, "no-results", b(_({ key: 0 }, fe.value))) : (D(), i(Na, { key: 1 }))], 64)) : a("", !0),
|
|
4980
4981
|
s("div", jo, [L(ve) ? j(n.$slots, "footer", b(_({ key: 0 }, fe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(xa, {
|
|
4981
4982
|
key: 1,
|
|
4982
4983
|
variant: e.menuActionsVariant,
|
|
4983
4984
|
disabled: e.isLoading,
|
|
4984
4985
|
rumFilterName: e.rumFilterName,
|
|
4985
|
-
onHandleClearAll:
|
|
4986
|
-
onHandleSelectAll:
|
|
4987
|
-
onHandleCancel:
|
|
4986
|
+
onHandleClearAll: se,
|
|
4987
|
+
onHandleSelectAll: oe,
|
|
4988
|
+
onHandleCancel: ce,
|
|
4988
4989
|
onHandleConfirm: X
|
|
4989
4990
|
}, null, 8, [
|
|
4990
4991
|
"variant",
|
|
@@ -5059,7 +5060,7 @@ var Ba = {
|
|
|
5059
5060
|
counterBadgeVariant: n.counterBadgeVariant,
|
|
5060
5061
|
size: n.size
|
|
5061
5062
|
})), d = t, [f] = ue(n.defaultOpen), p = B(e, "modelValue"), m = B(e, "searchInput");
|
|
5062
|
-
|
|
5063
|
+
K(f, (e) => {
|
|
5063
5064
|
d(e ? "dropdown-open" : "dropdown-closed");
|
|
5064
5065
|
});
|
|
5065
5066
|
let g = r(() => !n.staticLabel && p.value && p.value.text ? p.value.text : n.label), v = r(() => p.value?.icon || n.icon), y = r(() => {
|
|
@@ -5092,13 +5093,13 @@ var Ba = {
|
|
|
5092
5093
|
}, E = () => {
|
|
5093
5094
|
f.value = !1, m.value = "";
|
|
5094
5095
|
};
|
|
5095
|
-
return
|
|
5096
|
+
return Y("Escape", () => {
|
|
5096
5097
|
f.value && E();
|
|
5097
5098
|
}), (t, n) => (D(), i(nr, _({
|
|
5098
5099
|
modelValue: L(f),
|
|
5099
5100
|
"onUpdate:modelValue": n[2] ||= (e) => h(f) ? f.value = e : null
|
|
5100
5101
|
}, c.value), {
|
|
5101
|
-
trigger:
|
|
5102
|
+
trigger: q(() => [u(ka, {
|
|
5102
5103
|
class: "pv-full-width",
|
|
5103
5104
|
ref: "select-button-trigger-ref",
|
|
5104
5105
|
variant: e.variant,
|
|
@@ -5142,7 +5143,7 @@ var Ba = {
|
|
|
5142
5143
|
"renderer",
|
|
5143
5144
|
"selectedOption"
|
|
5144
5145
|
])]),
|
|
5145
|
-
content:
|
|
5146
|
+
content: q(() => [s("div", {
|
|
5146
5147
|
class: "pv-popover",
|
|
5147
5148
|
"data-test-id": "pv-popover",
|
|
5148
5149
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -5323,7 +5324,7 @@ var Ba = {
|
|
|
5323
5324
|
}),
|
|
5324
5325
|
emits: ["update:modelValue"],
|
|
5325
5326
|
setup(e) {
|
|
5326
|
-
let t =
|
|
5327
|
+
let t = H("inputRef"), n = {
|
|
5327
5328
|
h1: "ghost-input-h1",
|
|
5328
5329
|
h2: "ghost-input-h2",
|
|
5329
5330
|
h3: "ghost-input-h3",
|
|
@@ -5346,7 +5347,7 @@ var Ba = {
|
|
|
5346
5347
|
};
|
|
5347
5348
|
w(() => {
|
|
5348
5349
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
5349
|
-
}),
|
|
5350
|
+
}), K(() => l.value, () => {
|
|
5350
5351
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
5351
5352
|
});
|
|
5352
5353
|
let f = (e) => {
|
|
@@ -5362,7 +5363,7 @@ var Ba = {
|
|
|
5362
5363
|
"data-style": r[e.variant]
|
|
5363
5364
|
}, [
|
|
5364
5365
|
j(f.$slots, "action"),
|
|
5365
|
-
|
|
5366
|
+
J(s("input", _({
|
|
5366
5367
|
ref_key: "inputRef",
|
|
5367
5368
|
ref: t
|
|
5368
5369
|
}, c, {
|
|
@@ -5372,7 +5373,7 @@ var Ba = {
|
|
|
5372
5373
|
placeholder: e.placeholder,
|
|
5373
5374
|
disabled: e.disabled,
|
|
5374
5375
|
name: n[e.variant]
|
|
5375
|
-
}), null, 16, Zo), [[
|
|
5376
|
+
}), null, 16, Zo), [[G, l.value]]),
|
|
5376
5377
|
e.showEditIcon ? (D(), i($, {
|
|
5377
5378
|
key: 0,
|
|
5378
5379
|
"left-icon": "edit",
|
|
@@ -5400,7 +5401,7 @@ var Ba = {
|
|
|
5400
5401
|
title: {}
|
|
5401
5402
|
},
|
|
5402
5403
|
setup(e) {
|
|
5403
|
-
let t =
|
|
5404
|
+
let t = H("rootRef"), { present: n } = Xn("right", { host: r(() => {
|
|
5404
5405
|
let e = t.value?.getRootNode();
|
|
5405
5406
|
return e instanceof ShadowRoot ? e.host : null;
|
|
5406
5407
|
}) });
|
|
@@ -5413,7 +5414,7 @@ var Ba = {
|
|
|
5413
5414
|
"background-color": "#fdfdfc"
|
|
5414
5415
|
}
|
|
5415
5416
|
}, {
|
|
5416
|
-
default:
|
|
5417
|
+
default: q(() => [e.title ? (D(), o("span", $o, I(e.title), 1)) : (D(), o("div", {
|
|
5417
5418
|
key: 1,
|
|
5418
5419
|
id: e.headerTitleId,
|
|
5419
5420
|
class: "pv-flex"
|
|
@@ -5499,7 +5500,7 @@ var Ba = {
|
|
|
5499
5500
|
key: t.value,
|
|
5500
5501
|
description: e.hideLabels ? t.label : ""
|
|
5501
5502
|
}, {
|
|
5502
|
-
trigger:
|
|
5503
|
+
trigger: q(() => [s("label", { class: y(["pv-label pv-label-hover pv-flex pv-toggle-small", { "pv-disabled": e.disabled || t.disabled }]) }, [
|
|
5503
5504
|
s("input", {
|
|
5504
5505
|
type: "radio",
|
|
5505
5506
|
name: c.value,
|
|
@@ -5535,7 +5536,7 @@ var Ba = {
|
|
|
5535
5536
|
emits: ["update:modelValue"],
|
|
5536
5537
|
setup(e) {
|
|
5537
5538
|
let t = B(e, "modelValue");
|
|
5538
|
-
return (n, r) =>
|
|
5539
|
+
return (n, r) => J((D(), o("input", {
|
|
5539
5540
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
5540
5541
|
class: "pv-checkbox",
|
|
5541
5542
|
type: "checkbox",
|
|
@@ -5543,7 +5544,7 @@ var Ba = {
|
|
|
5543
5544
|
"aria-label": e.ariaLabel,
|
|
5544
5545
|
disabled: e.disabled,
|
|
5545
5546
|
indeterminate: e.indeterminate
|
|
5546
|
-
}, null, 8, ds)), [[
|
|
5547
|
+
}, null, 8, ds)), [[ee, t.value]]);
|
|
5547
5548
|
}
|
|
5548
5549
|
}), ps = ["aria-label", "aria-labelledby"], ms = ["id"], hs = [
|
|
5549
5550
|
"name",
|
|
@@ -5586,14 +5587,14 @@ var Ba = {
|
|
|
5586
5587
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
5587
5588
|
key: String(t.value),
|
|
5588
5589
|
class: "pv-label pv-flex"
|
|
5589
|
-
}, [
|
|
5590
|
+
}, [J(s("input", {
|
|
5590
5591
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
5591
5592
|
class: "pv-radio",
|
|
5592
5593
|
type: "radio",
|
|
5593
5594
|
name: d.value,
|
|
5594
5595
|
value: t.value,
|
|
5595
5596
|
disabled: e.disabled || t.disabled
|
|
5596
|
-
}, null, 8, hs), [[
|
|
5597
|
+
}, null, 8, hs), [[W, i.value]]), l(" " + I(t.label), 1)]))), 128))], 6)], 8, ps));
|
|
5597
5598
|
}
|
|
5598
5599
|
}), _s = /* @__PURE__ */ d({
|
|
5599
5600
|
__name: "PvSprite",
|
|
@@ -5686,7 +5687,7 @@ var Ba = {
|
|
|
5686
5687
|
key: 0,
|
|
5687
5688
|
class: "pv-absolute input-icon-position",
|
|
5688
5689
|
name: e.inputIcon
|
|
5689
|
-
}, null, 8, ["name"])) : a("", !0),
|
|
5690
|
+
}, null, 8, ["name"])) : a("", !0), J(s("input", _(n.$attrs, {
|
|
5690
5691
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
5691
5692
|
"data-testid": "pv-input",
|
|
5692
5693
|
class: ["pv-input-text", {
|
|
@@ -5700,7 +5701,7 @@ var Ba = {
|
|
|
5700
5701
|
id: e.id,
|
|
5701
5702
|
"data-invalid": e.error ? !0 : void 0,
|
|
5702
5703
|
step: e.step
|
|
5703
|
-
}), null, 16, Ss), [[
|
|
5704
|
+
}), null, 16, Ss), [[U, c.value]])])], 2),
|
|
5704
5705
|
e.lowerLabel ? (D(), o("p", {
|
|
5705
5706
|
key: 1,
|
|
5706
5707
|
"data-testid": "pv-input-lower-label",
|
|
@@ -5845,7 +5846,7 @@ var Ba = {
|
|
|
5845
5846
|
style: x(c.value ? { "--flex-align": "flex-start" } : void 0),
|
|
5846
5847
|
"data-testid": "pv-card"
|
|
5847
5848
|
}, {
|
|
5848
|
-
default:
|
|
5849
|
+
default: q(() => [c.value ? (D(), o(t, { key: 0 }, [
|
|
5849
5850
|
e.headerAction ? (D(), o("div", Ps, [s("div", Fs, [j(n.$slots, "header")]), s("div", Is, [j(n.$slots, "header-action")])])) : a("", !0),
|
|
5850
5851
|
e.descriptionAction ? (D(), o("div", Ls, [s("div", Rs, [j(n.$slots, "description")]), s("div", zs, [j(n.$slots, "description-action")])])) : a("", !0),
|
|
5851
5852
|
e.footerAction ? (D(), o("div", Bs, [s("div", Vs, [j(n.$slots, "footer")]), s("div", Hs, [j(n.$slots, "footer-action")])])) : a("", !0)
|
|
@@ -5862,7 +5863,7 @@ var Ba = {
|
|
|
5862
5863
|
__name: "PvWidget",
|
|
5863
5864
|
setup(e) {
|
|
5864
5865
|
return (e, t) => (D(), i(Us, { class: "pv-inset-square-16" }, {
|
|
5865
|
-
default:
|
|
5866
|
+
default: q(() => [j(e.$slots, "default")]),
|
|
5866
5867
|
_: 3
|
|
5867
5868
|
}));
|
|
5868
5869
|
}
|
|
@@ -5911,7 +5912,7 @@ var Ba = {
|
|
|
5911
5912
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
5912
5913
|
class: "pv-relative"
|
|
5913
5914
|
}, {
|
|
5914
|
-
default:
|
|
5915
|
+
default: q(() => [s("div", Gs, [
|
|
5915
5916
|
n.value ? (D(), o("div", Ks, [e.icon ? (D(), i(Q, {
|
|
5916
5917
|
key: 0,
|
|
5917
5918
|
style: { color: "#218c88" },
|
|
@@ -5928,7 +5929,7 @@ var Ba = {
|
|
|
5928
5929
|
variant: "ghost",
|
|
5929
5930
|
size: "md",
|
|
5930
5931
|
class: "pv-insight-button",
|
|
5931
|
-
onClick: r[0] ||=
|
|
5932
|
+
onClick: r[0] ||= ie((e) => t.$emit("icon-click"), ["stop"])
|
|
5932
5933
|
})) : a("", !0)]),
|
|
5933
5934
|
_: 1
|
|
5934
5935
|
}, 8, ["interactive"]));
|
|
@@ -5961,7 +5962,7 @@ var Ba = {
|
|
|
5961
5962
|
};
|
|
5962
5963
|
w(() => {
|
|
5963
5964
|
f(), document.fonts?.ready.then(f);
|
|
5964
|
-
}),
|
|
5965
|
+
}), K(() => n.lines, f), le(c, f), X(c, f, {
|
|
5965
5966
|
characterData: !0,
|
|
5966
5967
|
childList: !0,
|
|
5967
5968
|
subtree: !0
|
|
@@ -6097,7 +6098,7 @@ var Ba = {
|
|
|
6097
6098
|
]),
|
|
6098
6099
|
onClick: o
|
|
6099
6100
|
}, {
|
|
6100
|
-
default:
|
|
6101
|
+
default: q(() => [j(t.$slots, "default")]),
|
|
6101
6102
|
_: 3
|
|
6102
6103
|
}, 8, ["class"]));
|
|
6103
6104
|
}
|
|
@@ -6285,7 +6286,7 @@ var Ba = {
|
|
|
6285
6286
|
active: I.value,
|
|
6286
6287
|
level: e.level
|
|
6287
6288
|
}, {
|
|
6288
|
-
default:
|
|
6289
|
+
default: q(() => [(D(), i(N(j.value), {
|
|
6289
6290
|
class: y({ ...L(p)(e.option) }),
|
|
6290
6291
|
option: e.option,
|
|
6291
6292
|
selected: A(e.option.node_id),
|
|
@@ -6299,9 +6300,9 @@ var Ba = {
|
|
|
6299
6300
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
6300
6301
|
onMouseenter: n[1] ||= (t) => L(h)(e.option.node_id),
|
|
6301
6302
|
onMouseleave: n[2] ||= (e) => L(g)(),
|
|
6302
|
-
onContextmenu: n[3] ||=
|
|
6303
|
+
onContextmenu: n[3] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6303
6304
|
}, {
|
|
6304
|
-
default:
|
|
6305
|
+
default: q(() => [J(u(oc, null, null, 512), [[te, L(m) === e.option.node_id && L(_)(e.isDraggable, e.settings, e.option)]]), s("div", bc, [P.value ? (D(), i(lc, {
|
|
6305
6306
|
key: 0,
|
|
6306
6307
|
"is-last": F.value
|
|
6307
6308
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
@@ -6342,7 +6343,7 @@ var Ba = {
|
|
|
6342
6343
|
onEnd: L(f),
|
|
6343
6344
|
onAdd: L(f)
|
|
6344
6345
|
}, {
|
|
6345
|
-
item:
|
|
6346
|
+
item: q(({ element: i, index: a }) => [u(r, {
|
|
6346
6347
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6347
6348
|
option: i,
|
|
6348
6349
|
settings: e.settings,
|
|
@@ -6420,7 +6421,7 @@ var Ba = {
|
|
|
6420
6421
|
active: B.value,
|
|
6421
6422
|
level: e.level
|
|
6422
6423
|
}, {
|
|
6423
|
-
default:
|
|
6424
|
+
default: q(() => [(D(), i(N(F(e.option)), {
|
|
6424
6425
|
option: e.option,
|
|
6425
6426
|
selected: P(e.option.node_id),
|
|
6426
6427
|
"disable-selection": e.disableSelection,
|
|
@@ -6434,10 +6435,10 @@ var Ba = {
|
|
|
6434
6435
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
6435
6436
|
onMouseenter: n[1] ||= (t) => L(l)(e.option.node_id),
|
|
6436
6437
|
onMouseleave: n[2] ||= (e) => L(d)(),
|
|
6437
|
-
onContextmenu: n[3] ||=
|
|
6438
|
+
onContextmenu: n[3] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6438
6439
|
}, {
|
|
6439
|
-
default:
|
|
6440
|
-
|
|
6440
|
+
default: q(() => [
|
|
6441
|
+
J(u(oc, null, null, 512), [[te, L(c) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6441
6442
|
j.value ? (D(), i(lc, {
|
|
6442
6443
|
key: 0,
|
|
6443
6444
|
"is-last": z.value
|
|
@@ -6481,7 +6482,7 @@ var Ba = {
|
|
|
6481
6482
|
onEnd: L(S),
|
|
6482
6483
|
onAdd: L(S)
|
|
6483
6484
|
}, {
|
|
6484
|
-
item:
|
|
6485
|
+
item: q(({ element: r, index: i }) => [u(Sc, {
|
|
6485
6486
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6486
6487
|
option: r,
|
|
6487
6488
|
settings: e.settings,
|
|
@@ -6545,7 +6546,7 @@ var Ba = {
|
|
|
6545
6546
|
emits: ["handle-tree-select", "update:children"],
|
|
6546
6547
|
setup(e, { emit: t }) {
|
|
6547
6548
|
let n = e, c = t, l = k(n.treeOpen ?? n.settings[n.option.field]?.defaultExpanded ?? !1);
|
|
6548
|
-
|
|
6549
|
+
K(() => n.treeOpen, (e) => {
|
|
6549
6550
|
e !== void 0 && (l.value = e);
|
|
6550
6551
|
});
|
|
6551
6552
|
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } = vc(), { hoveredId: _, handleMouseEnter: v, handleMouseLeave: b } = fc(), { isDragging: S, draggingGroupName: C, onDragStart: w, onDragEnd: T } = _c(), { dragAndDropIndicatorClasses: E } = yc(), { indentPadding: O, showsConnector: A } = uc(), j = () => {
|
|
@@ -6561,14 +6562,14 @@ var Ba = {
|
|
|
6561
6562
|
newChildren: e
|
|
6562
6563
|
});
|
|
6563
6564
|
}
|
|
6564
|
-
}), 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),
|
|
6565
|
+
}), 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
6566
|
return (t, n) => {
|
|
6566
6567
|
let r = M("PvTreeItem", !0);
|
|
6567
6568
|
return D(), i(dc, {
|
|
6568
|
-
active:
|
|
6569
|
+
active: H.value,
|
|
6569
6570
|
level: e.level
|
|
6570
6571
|
}, {
|
|
6571
|
-
default:
|
|
6572
|
+
default: q(() => [e.option.children && e.option.children.length > 0 && e.settings && e.settings[e.option.field]?.accordion ? (D(), i(ai, {
|
|
6572
6573
|
key: 0,
|
|
6573
6574
|
modelValue: l.value,
|
|
6574
6575
|
"onUpdate:modelValue": n[3] ||= (e) => l.value = e,
|
|
@@ -6582,7 +6583,7 @@ var Ba = {
|
|
|
6582
6583
|
enableTriggerFullWidth: "",
|
|
6583
6584
|
summaryStyles: {
|
|
6584
6585
|
...P(e.level),
|
|
6585
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
6586
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ee.value }) ?? {},
|
|
6586
6587
|
"justify-content": "flex-start"
|
|
6587
6588
|
},
|
|
6588
6589
|
summaryClasses: {
|
|
@@ -6593,10 +6594,10 @@ var Ba = {
|
|
|
6593
6594
|
"chevron-variant": "horizontal",
|
|
6594
6595
|
onSummaryMouseenter: n[4] ||= (t) => L(v)(e.option.node_id),
|
|
6595
6596
|
onSummaryMouseleave: n[5] ||= (e) => L(b)(),
|
|
6596
|
-
onContextmenu: n[6] ||=
|
|
6597
|
+
onContextmenu: n[6] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6597
6598
|
}, {
|
|
6598
|
-
trigger:
|
|
6599
|
-
|
|
6599
|
+
trigger: q(() => [
|
|
6600
|
+
J(u(oc, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6600
6601
|
B.value ? (D(), i(lc, {
|
|
6601
6602
|
key: 0,
|
|
6602
6603
|
"is-last": V.value
|
|
@@ -6618,7 +6619,7 @@ var Ba = {
|
|
|
6618
6619
|
icon: e.settings[e.option.field]?.icon
|
|
6619
6620
|
}, null, 8, ["label", "icon"]))
|
|
6620
6621
|
]),
|
|
6621
|
-
default:
|
|
6622
|
+
default: q(() => [s("div", { "data-parent-id": e.option.node_id }, [u(L(ye), {
|
|
6622
6623
|
modelValue: R.value,
|
|
6623
6624
|
"onUpdate:modelValue": n[2] ||= (e) => R.value = e,
|
|
6624
6625
|
"parent-id": e.option.node_id,
|
|
@@ -6631,7 +6632,7 @@ var Ba = {
|
|
|
6631
6632
|
onEnd: L(T),
|
|
6632
6633
|
onAdd: L(T)
|
|
6633
6634
|
}, {
|
|
6634
|
-
item:
|
|
6635
|
+
item: q(({ element: i, index: a }) => [u(r, {
|
|
6635
6636
|
"is-parent-path-open": e.isParentPathOpen && l.value,
|
|
6636
6637
|
"selected-options": e.selectedOptions,
|
|
6637
6638
|
option: i,
|
|
@@ -6712,15 +6713,15 @@ var Ba = {
|
|
|
6712
6713
|
icon: e.settings[e.option.field]?.icon,
|
|
6713
6714
|
style: x({
|
|
6714
6715
|
...P(e.level),
|
|
6715
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
6716
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ee.value }) ?? {}
|
|
6716
6717
|
}),
|
|
6717
6718
|
onHandleSelected: n[9] ||= (e) => t.$emit("handle-tree-select", e),
|
|
6718
6719
|
onMouseenter: n[10] ||= (t) => L(v)(e.option.node_id),
|
|
6719
6720
|
onMouseleave: n[11] ||= (e) => L(b)(),
|
|
6720
|
-
onContextmenu: n[12] ||=
|
|
6721
|
+
onContextmenu: n[12] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6721
6722
|
}, {
|
|
6722
|
-
default:
|
|
6723
|
-
|
|
6723
|
+
default: q(() => [
|
|
6724
|
+
J(u(oc, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6724
6725
|
B.value ? (D(), i(lc, {
|
|
6725
6726
|
key: 0,
|
|
6726
6727
|
"is-last": V.value
|
|
@@ -6762,7 +6763,7 @@ var Ba = {
|
|
|
6762
6763
|
onEnd: L(T),
|
|
6763
6764
|
onAdd: L(T)
|
|
6764
6765
|
}, {
|
|
6765
|
-
item:
|
|
6766
|
+
item: q(({ element: i, index: a }) => [u(r, {
|
|
6766
6767
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6767
6768
|
"selected-options": e.selectedOptions,
|
|
6768
6769
|
option: i,
|
|
@@ -7105,19 +7106,19 @@ var Ba = {
|
|
|
7105
7106
|
})), N = (e) => M.value.format(e), P = (e) => N(e), F = (e) => {
|
|
7106
7107
|
let n = N(e);
|
|
7107
7108
|
return t.dataType === "currency" ? `$${n}` : t.dataType === "percent" ? `${n}%` : n;
|
|
7108
|
-
}, V = r(() => t.scale === "log"),
|
|
7109
|
+
}, V = r(() => t.scale === "log"), H = r(() => E(t.step)), ee = r(() => E(t.sliderStep)), U = r(() => H.value !== null && H.value > 0 ? H.value : 0), W = r(() => ee.value !== null && ee.value > 0 ? Math.max(ee.value, U.value) : U.value), G = r(() => U.value > 0 ? String(U.value) : "any"), te = r(() => V.value ? "1" : W.value > 0 ? String(W.value) : "any"), ne = r(() => H.value === null ? 1 : H.value > 0 ? H.value : 0), q = r(() => ee.value !== null && ee.value > 0 ? Math.max(ee.value, ne.value) : ne.value), J = r(() => V.value ? "1" : q.value > 0 ? String(q.value) : "any"), ie = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), ae = (e) => e.min > 0 ? 0 : 1 - e.min, Y = (e, t) => {
|
|
7109
7110
|
if (t.max === t.min) return 0;
|
|
7110
7111
|
if (!V.value) return (e - t.min) / (t.max - t.min);
|
|
7111
|
-
let n =
|
|
7112
|
+
let n = ae(t), r = Math.log(t.min + n), i = Math.log(t.max + n);
|
|
7112
7113
|
if (i === r) return 0;
|
|
7113
7114
|
let a = Math.max(t.min, Math.min(t.max, e));
|
|
7114
7115
|
return (Math.log(a + n) - r) / (i - r);
|
|
7115
|
-
},
|
|
7116
|
+
}, oe = (e, t) => {
|
|
7116
7117
|
let n = Math.max(0, Math.min(1, e));
|
|
7117
7118
|
if (!V.value) return t.min + n * (t.max - t.min);
|
|
7118
|
-
let r =
|
|
7119
|
+
let r = ae(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
7119
7120
|
return Math.exp(i + n * (a - i)) - r;
|
|
7120
|
-
},
|
|
7121
|
+
}, se = (e, t) => Math.max(0, Math.min(100, Y(e, t) * 100)), ce = r(() => {
|
|
7121
7122
|
let e = E(t.min) ?? Xc, n = E(t.max) ?? Zc;
|
|
7122
7123
|
return e > n ? {
|
|
7123
7124
|
max: e,
|
|
@@ -7129,8 +7130,8 @@ var Ba = {
|
|
|
7129
7130
|
max: n,
|
|
7130
7131
|
min: e
|
|
7131
7132
|
};
|
|
7132
|
-
}), X = r(() => E(n.value) ??
|
|
7133
|
-
"--range-track-color":
|
|
7133
|
+
}), X = r(() => E(n.value) ?? ce.value.min), le = r(() => se(X.value, ce.value)), ue = r(() => ({
|
|
7134
|
+
"--range-track-color": ie.value,
|
|
7134
7135
|
"--value": `${le.value}%`
|
|
7135
7136
|
})), de = r(() => ({ left: `${le.value}%` })), fe = (e) => {
|
|
7136
7137
|
if (!Number.isFinite(e)) return 0;
|
|
@@ -7142,13 +7143,13 @@ var Ba = {
|
|
|
7142
7143
|
return t.split(".")[1]?.length ?? 0;
|
|
7143
7144
|
}, Z = r(() => {
|
|
7144
7145
|
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Xc, r ?? Xc, i ?? Xc), o = n ?? Math.max(Zc, r ?? Zc, i ?? Zc);
|
|
7145
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
7146
|
+
return a > o && ([a, o] = [o, a]), a === o && (o = a + (U.value > 0 ? U.value : 1)), {
|
|
7146
7147
|
max: o,
|
|
7147
7148
|
min: a
|
|
7148
7149
|
};
|
|
7149
7150
|
}), pe = (e) => Math.max(Z.value.min, Math.min(Z.value.max, e)), me = r(() => {
|
|
7150
7151
|
let e = Math.max(fe(Z.value.min), fe(Z.value.max));
|
|
7151
|
-
return
|
|
7152
|
+
return U.value <= 0 ? Math.max(6, e) : Math.max(e, fe(U.value));
|
|
7152
7153
|
}), he = (e) => {
|
|
7153
7154
|
let t = Math.min(20, me.value);
|
|
7154
7155
|
return pe(Number(e.toFixed(t)));
|
|
@@ -7159,14 +7160,14 @@ var Ba = {
|
|
|
7159
7160
|
if (t.allowMinMaxEqual) return 0;
|
|
7160
7161
|
let e = Z.value.max - Z.value.min;
|
|
7161
7162
|
if (e <= 0) return 0;
|
|
7162
|
-
let n = Math.max(e / 1e6, 10 ** -me.value), r =
|
|
7163
|
+
let n = Math.max(e / 1e6, 10 ** -me.value), r = U.value > 0 ? U.value : n;
|
|
7163
7164
|
return Math.min(r, e);
|
|
7164
7165
|
}), ye = (e, t, n = "nearest") => {
|
|
7165
7166
|
let r = pe(e);
|
|
7166
7167
|
if (t <= 0) return he(r);
|
|
7167
7168
|
let i = V.value ? 0 : Z.value.min, a = (r - i) / t;
|
|
7168
7169
|
return he((n === "down" ? Math.floor(a) : n === "up" ? Math.ceil(a) : Math.round(a)) * t + i);
|
|
7169
|
-
}, be = (e, t = "nearest") => ye(e, _e(e,
|
|
7170
|
+
}, be = (e, t = "nearest") => ye(e, _e(e, U.value), t), xe = (e, t = "nearest") => be(ye(e, _e(e, W.value), t), t), Se = (e) => ye(e, U.value), Ce = (e, t, n = !0) => {
|
|
7170
7171
|
let r = Math.max(Z.value.min, t - ve.value), i = Math.min(e, r);
|
|
7171
7172
|
return n ? be(i, "down") : he(i);
|
|
7172
7173
|
}, we = (e, t, n = !0) => {
|
|
@@ -7178,11 +7179,11 @@ var Ba = {
|
|
|
7178
7179
|
max: Math.max(n, r),
|
|
7179
7180
|
min: Math.min(n, r)
|
|
7180
7181
|
};
|
|
7181
|
-
}), Ee = r(() =>
|
|
7182
|
-
"--range-track-color":
|
|
7182
|
+
}), Ee = r(() => se(Te.value.min, Z.value)), De = r(() => se(Te.value.max, Z.value)), Oe = r(() => ({
|
|
7183
|
+
"--range-track-color": ie.value,
|
|
7183
7184
|
"--value-max": `${De.value}%`,
|
|
7184
7185
|
"--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(
|
|
7186
|
+
})), 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) * Qc) : e, Ne = (e, t) => V.value ? oe(e / Qc, t) : e, Pe = r(() => V.value ? 0 : Z.value.min), Fe = r(() => V.value ? Qc : 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 ? Qc : 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
7187
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
7187
7188
|
return {
|
|
7188
7189
|
"--flex-align": "stretch",
|
|
@@ -7214,14 +7215,14 @@ var Ba = {
|
|
|
7214
7215
|
}, $e = () => {
|
|
7215
7216
|
v.value = !1, Qe();
|
|
7216
7217
|
}, et = (e, t) => {
|
|
7217
|
-
let n = Math.max(
|
|
7218
|
+
let n = Math.max(ce.value.min, Math.min(ce.value.max, e));
|
|
7218
7219
|
if (t <= 0) return n;
|
|
7219
|
-
let r = V.value ? 0 :
|
|
7220
|
-
return Math.max(
|
|
7221
|
-
}, tt = (e) => et(e, _e(e,
|
|
7220
|
+
let r = V.value ? 0 : ce.value.min, i = (n - r) / t, a = Number((Math.round(i) * t + r).toFixed(20));
|
|
7221
|
+
return Math.max(ce.value.min, Math.min(ce.value.max, a));
|
|
7222
|
+
}, tt = (e) => et(e, _e(e, ne.value)), nt = (e) => tt(et(e, _e(e, q.value))), rt = () => {
|
|
7222
7223
|
t.disabled || (v.value = !0, Qe(), window.addEventListener("pointerup", $e), w = () => window.removeEventListener("pointerup", $e));
|
|
7223
7224
|
}, it = (e) => {
|
|
7224
|
-
n.value = nt(Ne(Number(e.target.value),
|
|
7225
|
+
n.value = nt(Ne(Number(e.target.value), ce.value));
|
|
7225
7226
|
}, at = (e) => {
|
|
7226
7227
|
Xe("min"), Ke(xe(Ne(Number(e.target.value), Z.value)));
|
|
7227
7228
|
}, ot = (e) => {
|
|
@@ -7236,8 +7237,8 @@ var Ba = {
|
|
|
7236
7237
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
7237
7238
|
if (!a && !o) return;
|
|
7238
7239
|
e.preventDefault();
|
|
7239
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(
|
|
7240
|
-
l === i && (l = i + s * _e(i,
|
|
7240
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(oe(Y(i, r) + s * el * c, r), a ? "up" : "down");
|
|
7241
|
+
l === i && (l = i + s * _e(i, W.value)), Xe(n), Je(n, l, !1);
|
|
7241
7242
|
}, ct = () => {
|
|
7242
7243
|
g.value !== "min" && (m.value = P(Te.value.min)), g.value !== "max" && (p.value = P(Te.value.max));
|
|
7243
7244
|
}, lt = (e) => {
|
|
@@ -7255,7 +7256,7 @@ var Ba = {
|
|
|
7255
7256
|
e.preventDefault(), lt(t), e.target.blur();
|
|
7256
7257
|
}, ht = (e) => {
|
|
7257
7258
|
let t = b.value?.getBoundingClientRect();
|
|
7258
|
-
return !t || t.width <= 0 ? null : xe(
|
|
7259
|
+
return !t || t.width <= 0 ? null : xe(oe(Math.max(0, Math.min(1, (e - t.left) / t.width)), Z.value));
|
|
7259
7260
|
}, gt = (e) => {
|
|
7260
7261
|
let n = ht(e);
|
|
7261
7262
|
if (n === null) return;
|
|
@@ -7279,7 +7280,7 @@ var Ba = {
|
|
|
7279
7280
|
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", vt);
|
|
7280
7281
|
}, e.preventDefault();
|
|
7281
7282
|
};
|
|
7282
|
-
return
|
|
7283
|
+
return K([Te, Z], ct, { immediate: !0 }), S(() => {
|
|
7283
7284
|
_t(), Qe();
|
|
7284
7285
|
}), (n, r) => e.mode === "single" ? (D(), o("div", zc, [e.showValueTooltips && v.value ? (D(), o("span", {
|
|
7285
7286
|
key: 0,
|
|
@@ -7292,7 +7293,7 @@ var Ba = {
|
|
|
7292
7293
|
disabled: e.disabled,
|
|
7293
7294
|
max: ze.value,
|
|
7294
7295
|
min: Re.value,
|
|
7295
|
-
step:
|
|
7296
|
+
step: J.value,
|
|
7296
7297
|
style: ue.value,
|
|
7297
7298
|
type: "range",
|
|
7298
7299
|
value: Be.value,
|
|
@@ -7337,7 +7338,7 @@ var Ba = {
|
|
|
7337
7338
|
disabled: e.disabled,
|
|
7338
7339
|
max: Fe.value,
|
|
7339
7340
|
min: Pe.value,
|
|
7340
|
-
step:
|
|
7341
|
+
step: te.value,
|
|
7341
7342
|
value: Ie.value,
|
|
7342
7343
|
onBlur: Ye,
|
|
7343
7344
|
onChange: Ye,
|
|
@@ -7354,7 +7355,7 @@ var Ba = {
|
|
|
7354
7355
|
disabled: e.disabled,
|
|
7355
7356
|
max: Fe.value,
|
|
7356
7357
|
min: Pe.value,
|
|
7357
|
-
step:
|
|
7358
|
+
step: te.value,
|
|
7358
7359
|
value: Le.value,
|
|
7359
7360
|
onBlur: Ye,
|
|
7360
7361
|
onChange: Ye,
|
|
@@ -7379,13 +7380,13 @@ var Ba = {
|
|
|
7379
7380
|
disabled: e.disabled,
|
|
7380
7381
|
inputmode: "decimal",
|
|
7381
7382
|
placeholder: "Min",
|
|
7382
|
-
step:
|
|
7383
|
+
step: G.value,
|
|
7383
7384
|
type: "text",
|
|
7384
7385
|
value: m.value,
|
|
7385
7386
|
onBlur: r[4] ||= (e) => pt("min"),
|
|
7386
7387
|
onFocus: r[5] ||= (e) => ft("min"),
|
|
7387
7388
|
onInput: ut,
|
|
7388
|
-
onKeydown: r[6] ||=
|
|
7389
|
+
onKeydown: r[6] ||= re((e) => mt(e, "min"), ["enter"])
|
|
7389
7390
|
}, null, 40, qc)], 2)], 4),
|
|
7390
7391
|
s("label", {
|
|
7391
7392
|
class: "pv-flex-vertical pv-range-input-label",
|
|
@@ -7401,13 +7402,13 @@ var Ba = {
|
|
|
7401
7402
|
disabled: e.disabled,
|
|
7402
7403
|
inputmode: "decimal",
|
|
7403
7404
|
placeholder: "Max",
|
|
7404
|
-
step:
|
|
7405
|
+
step: G.value,
|
|
7405
7406
|
type: "text",
|
|
7406
7407
|
value: p.value,
|
|
7407
7408
|
onBlur: r[7] ||= (e) => pt("max"),
|
|
7408
7409
|
onFocus: r[8] ||= (e) => ft("max"),
|
|
7409
7410
|
onInput: dt,
|
|
7410
|
-
onKeydown: r[9] ||=
|
|
7411
|
+
onKeydown: r[9] ||= re((e) => mt(e, "max"), ["enter"])
|
|
7411
7412
|
}, null, 40, Yc)], 2)], 4),
|
|
7412
7413
|
e.showClear && je.value ? (D(), i($, {
|
|
7413
7414
|
key: 0,
|
|
@@ -7543,7 +7544,7 @@ var Ba = {
|
|
|
7543
7544
|
leftIcon: "focus",
|
|
7544
7545
|
size: "md",
|
|
7545
7546
|
variant: e.isFocused ? "primary" : "ghost",
|
|
7546
|
-
onClick:
|
|
7547
|
+
onClick: ie(v, ["stop", "prevent"])
|
|
7547
7548
|
}, null, 8, [
|
|
7548
7549
|
"ariaLabel",
|
|
7549
7550
|
"disabled",
|
|
@@ -8002,7 +8003,7 @@ var Ba = {
|
|
|
8002
8003
|
"search-change"
|
|
8003
8004
|
],
|
|
8004
8005
|
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(ju), 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),
|
|
8006
|
+
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = z(), g = k(c.filter.searchQuery ?? ""), v = k(ju), 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
8007
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
8007
8008
|
return t && !n ? [{
|
|
8008
8009
|
label: R.value,
|
|
@@ -8017,7 +8018,7 @@ var Ba = {
|
|
|
8017
8018
|
label: S.value,
|
|
8018
8019
|
value: !1
|
|
8019
8020
|
}];
|
|
8020
|
-
}),
|
|
8021
|
+
}), ee = (e) => {
|
|
8021
8022
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
8022
8023
|
return [
|
|
8023
8024
|
e.value,
|
|
@@ -8027,32 +8028,32 @@ var Ba = {
|
|
|
8027
8028
|
e.matchedValue,
|
|
8028
8029
|
e.matchedField
|
|
8029
8030
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
8030
|
-
},
|
|
8031
|
+
}, 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 ? cu(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
8032
|
{
|
|
8032
8033
|
depth: t,
|
|
8033
8034
|
kind: "option",
|
|
8034
8035
|
option: e
|
|
8035
8036
|
},
|
|
8036
|
-
...e.children?.length ?
|
|
8037
|
-
...
|
|
8037
|
+
...e.children?.length ? G(e.children, t + 1) : [],
|
|
8038
|
+
...W(e) ? [{
|
|
8038
8039
|
depth: t + 1,
|
|
8039
8040
|
kind: "child-load-more",
|
|
8040
8041
|
parent: e
|
|
8041
8042
|
}] : []
|
|
8042
|
-
]),
|
|
8043
|
-
let e =
|
|
8044
|
-
return t ? e.filter((e) => e.kind === "option" &&
|
|
8045
|
-
}),
|
|
8043
|
+
]), te = r(() => {
|
|
8044
|
+
let e = G(C.value), t = M.value;
|
|
8045
|
+
return t ? e.filter((e) => e.kind === "option" && ee(e.option).includes(t)) : e;
|
|
8046
|
+
}), J = r(() => O.value || c.filter.singleSelect ? [] : P.value.map((e) => p.value[e] ?? {
|
|
8046
8047
|
label: e,
|
|
8047
8048
|
value: e
|
|
8048
|
-
})),
|
|
8049
|
+
})), re = k([]), ie = r(() => new Set(re.value)), ae = r(() => re.value.map((e) => p.value[e] ?? {
|
|
8049
8050
|
label: e,
|
|
8050
8051
|
value: e
|
|
8051
|
-
})),
|
|
8052
|
-
|
|
8052
|
+
})), Y = r(() => C.value.length > 0 || ae.value.length > 0), oe = r(() => E.value && c.filter.isOpen && c.filter.isLoading === !0 && Y.value), se = () => {
|
|
8053
|
+
re.value = O.value || c.filter.singleSelect ? [] : [...P.value];
|
|
8053
8054
|
};
|
|
8054
|
-
|
|
8055
|
-
let
|
|
8055
|
+
se();
|
|
8056
|
+
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 ? au({
|
|
8056
8057
|
options: w.value,
|
|
8057
8058
|
state: j.value
|
|
8058
8059
|
}) : /* @__PURE__ */ new Map()), Z = (e) => vl(e, c.filter.colDef), pe = (e) => yl(e), me = (e) => O.value ? fe.value.get(e.value) ?? {
|
|
@@ -8070,13 +8071,13 @@ var Ba = {
|
|
|
8070
8071
|
context: e,
|
|
8071
8072
|
disabled: V.value || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
8072
8073
|
id: e.value,
|
|
8073
|
-
searchText:
|
|
8074
|
+
searchText: ee(e),
|
|
8074
8075
|
secondaryText: pe(e),
|
|
8075
8076
|
subText: e.subText,
|
|
8076
8077
|
subduedText: e.subduedText,
|
|
8077
8078
|
text: Z(e),
|
|
8078
8079
|
totalChildCount: e.totalChildCount
|
|
8079
|
-
}), xe = r(() => C.value.map(be)), Se = r(() =>
|
|
8080
|
+
}), xe = r(() => C.value.map(be)), Se = r(() => J.value.map(be)), Ce = r(() => ({
|
|
8080
8081
|
colDef: c.filter.colDef,
|
|
8081
8082
|
disabled: V.value,
|
|
8082
8083
|
filter: c.filter,
|
|
@@ -8143,7 +8144,7 @@ var Ba = {
|
|
|
8143
8144
|
}, Pe = () => {
|
|
8144
8145
|
V.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
8145
8146
|
};
|
|
8146
|
-
|
|
8147
|
+
K([g, () => c.filter.key], () => {
|
|
8147
8148
|
v.value = ju;
|
|
8148
8149
|
});
|
|
8149
8150
|
let Fe = () => {
|
|
@@ -8151,17 +8152,17 @@ var Ba = {
|
|
|
8151
8152
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
8152
8153
|
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Mu)));
|
|
8153
8154
|
};
|
|
8154
|
-
return
|
|
8155
|
+
return K(w, () => {
|
|
8155
8156
|
c.filter.isOpen && Fe();
|
|
8156
|
-
}, { immediate: !0 }),
|
|
8157
|
+
}, { immediate: !0 }), K(C, () => {
|
|
8157
8158
|
!c.filter.isOpen || !f.value || (m.value = Math.max(m.value, f.value.offsetHeight));
|
|
8158
|
-
}),
|
|
8159
|
-
e ? (Fe(),
|
|
8160
|
-
}),
|
|
8159
|
+
}), K(() => c.filter.isOpen, (e) => {
|
|
8160
|
+
e ? (Fe(), se()) : (p.value = {}, m.value = 0);
|
|
8161
|
+
}), ne(() => {
|
|
8161
8162
|
if (!c.filter.isOpen || O.value || c.filter.singleSelect) return;
|
|
8162
|
-
let e = new Set(ue.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = P.value.filter((t) => !
|
|
8163
|
-
t.length && (
|
|
8164
|
-
}),
|
|
8163
|
+
let e = new Set(ue.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = P.value.filter((t) => !ie.value.has(t) && !e.has(t));
|
|
8164
|
+
t.length && (re.value = [...re.value, ...t]);
|
|
8165
|
+
}), K(() => c.filter.searchQuery, (e) => {
|
|
8165
8166
|
let t = e ?? "";
|
|
8166
8167
|
t !== g.value && (g.value = t);
|
|
8167
8168
|
}), de(g, (e) => {
|
|
@@ -8183,13 +8184,13 @@ var Ba = {
|
|
|
8183
8184
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
8184
8185
|
}, null, 8, ["name"]),
|
|
8185
8186
|
s("span", null, I(e.filter.label), 1),
|
|
8186
|
-
|
|
8187
|
+
U.value ? (D(), i(He, {
|
|
8187
8188
|
key: 0,
|
|
8188
|
-
value:
|
|
8189
|
+
value: U.value,
|
|
8189
8190
|
size: "sm",
|
|
8190
8191
|
variant: "secondary"
|
|
8191
8192
|
}, null, 8, ["value"])) : a("", !0),
|
|
8192
|
-
|
|
8193
|
+
oe.value ? (D(), o("span", du, [u(Me, { size: "sm" }), s("span", fu, I(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
|
|
8193
8194
|
]), s("div", {
|
|
8194
8195
|
ref_key: "filterContent",
|
|
8195
8196
|
ref: f,
|
|
@@ -8236,7 +8237,7 @@ var Ba = {
|
|
|
8236
8237
|
"disabled",
|
|
8237
8238
|
"placeholder"
|
|
8238
8239
|
])),
|
|
8239
|
-
|
|
8240
|
+
ae.value.length ? (D(), o("div", _u, [(D(!0), o(t, null, A(ae.value, (t) => (D(), i(cl, {
|
|
8240
8241
|
key: t.value,
|
|
8241
8242
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8242
8243
|
disabled: V.value || t.isSelectable === !1,
|
|
@@ -8274,10 +8275,10 @@ var Ba = {
|
|
|
8274
8275
|
"onFocusValue",
|
|
8275
8276
|
"onToggleValue"
|
|
8276
8277
|
]))), 128))])) : a("", !0),
|
|
8277
|
-
e.filter.isLoading && !
|
|
8278
|
-
!C.value.length && !
|
|
8279
|
-
|
|
8280
|
-
|
|
8278
|
+
e.filter.isLoading && !Y.value ? (D(), o("div", vu, [u(Me, { size: "sm" }), e.filter.loadingText ? (D(), o("span", yu, I(e.filter.loadingText), 1)) : a("", !0)])) : (D(), o(t, { key: 4 }, [
|
|
8279
|
+
!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", bu, "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", xu, "No matching values."))], 64)) : a("", !0),
|
|
8280
|
+
ce.value.length || le.value ? (D(), o("div", Su, [
|
|
8281
|
+
ce.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", Cu, [e.filter.filterOptionsSortTooltip ? (D(), i(ir, {
|
|
8281
8282
|
key: 0,
|
|
8282
8283
|
variant: "dark",
|
|
8283
8284
|
disableInteractive: !0,
|
|
@@ -8286,8 +8287,8 @@ var Ba = {
|
|
|
8286
8287
|
"use-teleport": !0,
|
|
8287
8288
|
style: { "--max-width": "200px" }
|
|
8288
8289
|
}, {
|
|
8289
|
-
trigger:
|
|
8290
|
-
content:
|
|
8290
|
+
trigger: q(() => [s("p", wu, I(B.value), 1)]),
|
|
8291
|
+
content: q(() => [l(I(e.filter.filterOptionsSortTooltip), 1)]),
|
|
8291
8292
|
_: 1
|
|
8292
8293
|
})) : (D(), o("p", Tu, I(B.value), 1))])) : a("", !0),
|
|
8293
8294
|
(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(cl, {
|
|
@@ -8384,7 +8385,7 @@ var Ba = {
|
|
|
8384
8385
|
"slider-step",
|
|
8385
8386
|
"step",
|
|
8386
8387
|
"value-decimals"
|
|
8387
|
-
])) : T.value === "range" ? (D(), o("p", Eu, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (D(), o("div", Du, [s("div", Ou, [(D(!0), o(t, null, A(
|
|
8388
|
+
])) : T.value === "range" ? (D(), o("p", Eu, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (D(), o("div", Du, [s("div", Ou, [(D(!0), o(t, null, A(H.value, (t) => (D(), i($, {
|
|
8388
8389
|
key: String(t.value),
|
|
8389
8390
|
disabled: V.value,
|
|
8390
8391
|
label: t.label,
|
|
@@ -8610,7 +8611,7 @@ var Ba = {
|
|
|
8610
8611
|
}), d = (e) => {
|
|
8611
8612
|
c.value = e;
|
|
8612
8613
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
8613
|
-
return
|
|
8614
|
+
return K(l, (e) => {
|
|
8614
8615
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
8615
8616
|
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div", Ku, [u(Gu, {
|
|
8616
8617
|
ariaLabel: "Filter categories",
|
|
@@ -8621,7 +8622,7 @@ var Ba = {
|
|
|
8621
8622
|
rightAriaLabel: "Scroll filter categories right",
|
|
8622
8623
|
showFades: ""
|
|
8623
8624
|
}, {
|
|
8624
|
-
default:
|
|
8625
|
+
default: q(() => [s("div", qu, [u($, {
|
|
8625
8626
|
label: e.allCategoriesLabel,
|
|
8626
8627
|
variant: f(null),
|
|
8627
8628
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -9088,9 +9089,9 @@ function tf(e, t, n) {
|
|
|
9088
9089
|
}
|
|
9089
9090
|
b(t, n);
|
|
9090
9091
|
};
|
|
9091
|
-
|
|
9092
|
+
K(() => e.filterOptionsHandler, (e) => {
|
|
9092
9093
|
a.setFilterOptionsHandler(e);
|
|
9093
|
-
}, { immediate: !0 }),
|
|
9094
|
+
}, { immediate: !0 }), K([
|
|
9094
9095
|
() => e.filterOptions,
|
|
9095
9096
|
m,
|
|
9096
9097
|
() => e.filterOptionsHandler
|
|
@@ -9099,7 +9100,7 @@ function tf(e, t, n) {
|
|
|
9099
9100
|
}, {
|
|
9100
9101
|
deep: !0,
|
|
9101
9102
|
immediate: !0
|
|
9102
|
-
}),
|
|
9103
|
+
}), K([
|
|
9103
9104
|
() => e.filterHasMoreMap,
|
|
9104
9105
|
m,
|
|
9105
9106
|
() => e.filterOptionsHandler
|
|
@@ -9108,7 +9109,7 @@ function tf(e, t, n) {
|
|
|
9108
9109
|
}, {
|
|
9109
9110
|
deep: !0,
|
|
9110
9111
|
immediate: !0
|
|
9111
|
-
}),
|
|
9112
|
+
}), K([
|
|
9112
9113
|
() => e.filterLoadingMap,
|
|
9113
9114
|
m,
|
|
9114
9115
|
() => e.filterOptionsHandler
|
|
@@ -9117,7 +9118,7 @@ function tf(e, t, n) {
|
|
|
9117
9118
|
}, {
|
|
9118
9119
|
deep: !0,
|
|
9119
9120
|
immediate: !0
|
|
9120
|
-
}),
|
|
9121
|
+
}), K([
|
|
9121
9122
|
() => e.filterLoadingMoreMap,
|
|
9122
9123
|
m,
|
|
9123
9124
|
() => e.filterOptionsHandler
|
|
@@ -9126,7 +9127,7 @@ function tf(e, t, n) {
|
|
|
9126
9127
|
}, {
|
|
9127
9128
|
deep: !0,
|
|
9128
9129
|
immediate: !0
|
|
9129
|
-
}),
|
|
9130
|
+
}), K([
|
|
9130
9131
|
() => e.filterSearchQueries,
|
|
9131
9132
|
m,
|
|
9132
9133
|
() => e.filterOptionsHandler
|
|
@@ -9135,7 +9136,7 @@ function tf(e, t, n) {
|
|
|
9135
9136
|
}, {
|
|
9136
9137
|
deep: !0,
|
|
9137
9138
|
immediate: !0
|
|
9138
|
-
}),
|
|
9139
|
+
}), K([
|
|
9139
9140
|
t,
|
|
9140
9141
|
m,
|
|
9141
9142
|
() => e.staged
|
|
@@ -9144,7 +9145,7 @@ function tf(e, t, n) {
|
|
|
9144
9145
|
}, {
|
|
9145
9146
|
deep: !0,
|
|
9146
9147
|
immediate: !0
|
|
9147
|
-
}),
|
|
9148
|
+
}), K([() => e.staged, p], ([e]) => {
|
|
9148
9149
|
if (e) {
|
|
9149
9150
|
i.value = t.value;
|
|
9150
9151
|
let e = p.value;
|
|
@@ -9160,7 +9161,7 @@ function tf(e, t, n) {
|
|
|
9160
9161
|
let t = T(e);
|
|
9161
9162
|
_.value === "advanced" && !t && w("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), _.value === "regular" && t && w("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
9162
9163
|
};
|
|
9163
|
-
|
|
9164
|
+
ne(() => {
|
|
9164
9165
|
C("filterModel", !!((e.filterStore || o) && t.value !== null)), C("filterOptions", Object.keys(e.filterOptions).length > 0), C("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), C("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), C("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), C("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), C("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler)), (e.filterStore || o) && v.value;
|
|
9165
9166
|
});
|
|
9166
9167
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
@@ -9174,42 +9175,42 @@ function tf(e, t, n) {
|
|
|
9174
9175
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
9175
9176
|
}, I = (t) => {
|
|
9176
9177
|
let n = D(t), r = O(t);
|
|
9177
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
9178
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && G.value.has(r) ? !1 : !!j(t);
|
|
9178
9179
|
}, L = (e) => (p.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), R = (t) => {
|
|
9179
9180
|
let n = p.value;
|
|
9180
9181
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
9181
|
-
}, z = (e) => p.value.filterHasMoreMap.value[e] ?? !1, B = (e) => p.value.filterLoadingMap.value[e] ?? !1, V = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1,
|
|
9182
|
+
}, z = (e) => p.value.filterHasMoreMap.value[e] ?? !1, B = (e) => p.value.filterLoadingMap.value[e] ?? !1, V = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1, H = (e) => p.value.filterSearchQueries.value[e] ?? "", ee = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
9182
9183
|
label: e.label,
|
|
9183
9184
|
value: e.filter.value
|
|
9184
|
-
}]),
|
|
9185
|
-
...
|
|
9185
|
+
}]), U = (e) => [
|
|
9186
|
+
...ee(e),
|
|
9186
9187
|
...L(e),
|
|
9187
9188
|
...R(e)
|
|
9188
|
-
],
|
|
9189
|
+
], W = (e) => {
|
|
9189
9190
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
9190
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
9191
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(W) : [];
|
|
9191
9192
|
return n ? [n, ...r] : r;
|
|
9192
|
-
},
|
|
9193
|
+
}, G = r(() => {
|
|
9193
9194
|
let t = /* @__PURE__ */ new Set();
|
|
9194
9195
|
for (let n of e.colDefs) {
|
|
9195
9196
|
let e = D(n);
|
|
9196
9197
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
9197
|
-
for (let n of
|
|
9198
|
+
for (let n of W(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
9198
9199
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
9199
9200
|
}
|
|
9200
9201
|
return t;
|
|
9201
|
-
}),
|
|
9202
|
-
let t = O(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i =
|
|
9202
|
+
}), te = (e) => {
|
|
9203
|
+
let t = O(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = W(n.aggregateFieldHierarchy);
|
|
9203
9204
|
return Array.from(new Set([
|
|
9204
9205
|
t,
|
|
9205
9206
|
...r,
|
|
9206
9207
|
...i
|
|
9207
9208
|
].filter(Boolean)));
|
|
9208
|
-
},
|
|
9209
|
+
}, q = (e) => _.value === "advanced" && Ll(e), J = (e, t) => q(e) ? ql({
|
|
9209
9210
|
colDef: e,
|
|
9210
9211
|
model: v.value,
|
|
9211
9212
|
options: t
|
|
9212
|
-
}) : new Map(
|
|
9213
|
+
}) : new Map(te(e).map((e) => [e, y.value.get(e)?.values ?? []])), re = (e, t, n, r) => {
|
|
9213
9214
|
let i = /* @__PURE__ */ new Set();
|
|
9214
9215
|
for (let t of Ol(r)) for (let [r, a] of n) for (let n of a) kl(t, r, n, e) && i.add(`${r}:${n}`);
|
|
9215
9216
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
@@ -9218,19 +9219,19 @@ function tf(e, t, n) {
|
|
|
9218
9219
|
metadata: { rawValue: n },
|
|
9219
9220
|
value: t === e ? n : Tl(t, n)
|
|
9220
9221
|
}]));
|
|
9221
|
-
},
|
|
9222
|
+
}, ie = (e, t, n) => {
|
|
9222
9223
|
let r = /* @__PURE__ */ new Set();
|
|
9223
9224
|
for (let i of Ol(n)) {
|
|
9224
9225
|
let n = Dl(i, e), a = El(i);
|
|
9225
9226
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
9226
9227
|
}
|
|
9227
9228
|
return Array.from(r);
|
|
9228
|
-
},
|
|
9229
|
+
}, 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
9230
|
let t = D(e);
|
|
9230
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Yu(O(e), t.queryColIds,
|
|
9231
|
-
},
|
|
9231
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Yu(O(e), t.queryColIds, oe);
|
|
9232
|
+
}, ce = (e, t) => Zu({
|
|
9232
9233
|
fallbackSubText: e.subText,
|
|
9233
|
-
getDisplayName:
|
|
9234
|
+
getDisplayName: oe,
|
|
9234
9235
|
matchedField: e.matchedField,
|
|
9235
9236
|
matchedValue: e.matchedValue,
|
|
9236
9237
|
primaryText: e.label,
|
|
@@ -9238,16 +9239,16 @@ function tf(e, t, n) {
|
|
|
9238
9239
|
}), X = (e, t) => e.map((e) => ({
|
|
9239
9240
|
...e,
|
|
9240
9241
|
children: e.children?.length ? X(e.children, t) : e.children,
|
|
9241
|
-
subText:
|
|
9242
|
+
subText: ce(e, t)
|
|
9242
9243
|
})), le = (e) => {
|
|
9243
9244
|
let t = D(e).filterGroup;
|
|
9244
9245
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
9245
9246
|
field: e,
|
|
9246
9247
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
9247
|
-
label:
|
|
9248
|
+
label: Y(e)?.headerName ?? e
|
|
9248
9249
|
}));
|
|
9249
|
-
}, ue = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) =>
|
|
9250
|
-
let n = O(t), r = D(t), i = M(t), a = X(L(n), t), o = X(
|
|
9250
|
+
}, ue = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) => te(t.colDef).includes(e)), de = (e, t, n) => Ol(ue(e)?.knownOptions ?? []).find((r) => r.value === n || kl(r, t, n, e)), fe = r(() => e.colDefs.filter(I).map((t) => {
|
|
9251
|
+
let n = O(t), r = D(t), i = M(t), a = X(L(n), t), o = X(U(n), t), s = {
|
|
9251
9252
|
category: N(t),
|
|
9252
9253
|
colDef: t,
|
|
9253
9254
|
controlled: r.filterPanelControlled === !0,
|
|
@@ -9269,10 +9270,10 @@ function tf(e, t, n) {
|
|
|
9269
9270
|
hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
|
|
9270
9271
|
hideSearch: r.filterPanelHideSearch,
|
|
9271
9272
|
focusedValues: e.focusedValues[n] ?? [],
|
|
9272
|
-
focusedValuesByField:
|
|
9273
|
+
focusedValuesByField: ae(t),
|
|
9273
9274
|
hasMore: z(n),
|
|
9274
|
-
isAggregate:
|
|
9275
|
-
isFocusable: e.enableFocusView && (!e.focusableFields.length ||
|
|
9275
|
+
isAggregate: q(t),
|
|
9276
|
+
isFocusable: e.enableFocusView && (!e.focusableFields.length || te(t).some((t) => e.focusableFields.includes(t))),
|
|
9276
9277
|
isLoading: B(n),
|
|
9277
9278
|
isLoadingMore: V(n),
|
|
9278
9279
|
isOpen: !1,
|
|
@@ -9286,8 +9287,8 @@ function tf(e, t, n) {
|
|
|
9286
9287
|
rangeScale: r.filterPanelRange?.scale,
|
|
9287
9288
|
rangeSliderStep: A(r.filterPanelRange?.sliderStep),
|
|
9288
9289
|
rangeStep: A(r.filterPanelRange?.step),
|
|
9289
|
-
searchPlaceholder:
|
|
9290
|
-
searchQuery:
|
|
9290
|
+
searchPlaceholder: se(t),
|
|
9291
|
+
searchQuery: H(n) ?? "",
|
|
9291
9292
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
9292
9293
|
type: i,
|
|
9293
9294
|
valueDecimals: r.valueDecimals ?? null,
|
|
@@ -9308,7 +9309,7 @@ function tf(e, t, n) {
|
|
|
9308
9309
|
...s,
|
|
9309
9310
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
9310
9311
|
};
|
|
9311
|
-
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) :
|
|
9312
|
+
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) ? Kl({
|
|
9312
9313
|
colDef: t,
|
|
9313
9314
|
model: v.value,
|
|
9314
9315
|
options: p
|
|
@@ -9318,7 +9319,7 @@ function tf(e, t, n) {
|
|
|
9318
9319
|
aggregateSelectionState: m,
|
|
9319
9320
|
knownOptions: p,
|
|
9320
9321
|
options: a,
|
|
9321
|
-
selectedValues: s.controlled ? u : m ? m.flatMap((e) => e.state === "selected" ? [e.id] : []) :
|
|
9322
|
+
selectedValues: s.controlled ? u : m ? m.flatMap((e) => e.state === "selected" ? [e.id] : []) : ie(n, d, p)
|
|
9322
9323
|
};
|
|
9323
9324
|
})), Z = r(() => fe.value.flatMap((e) => {
|
|
9324
9325
|
if (e.controlled) return [];
|
|
@@ -9381,9 +9382,9 @@ function tf(e, t, n) {
|
|
|
9381
9382
|
if (e) {
|
|
9382
9383
|
n.add(e);
|
|
9383
9384
|
let t = ue(e);
|
|
9384
|
-
t && (n.add(t.key),
|
|
9385
|
+
t && (n.add(t.key), te(t.colDef).forEach((e) => n.add(e)));
|
|
9385
9386
|
}
|
|
9386
|
-
for (let r of fe.value) r.type === "value" && (e && (n.has(r.key) ||
|
|
9387
|
+
for (let r of fe.value) r.type === "value" && (e && (n.has(r.key) || te(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
9387
9388
|
}, Ce = (r, a, s, c) => {
|
|
9388
9389
|
E(r);
|
|
9389
9390
|
let l = v.value, u = p.value;
|
|
@@ -9477,7 +9478,7 @@ function tf(e, t, n) {
|
|
|
9477
9478
|
Fe(e, t.value);
|
|
9478
9479
|
return;
|
|
9479
9480
|
}
|
|
9480
|
-
let n = t.field ?? e, r =
|
|
9481
|
+
let n = t.field ?? e, r = Y(n) ?? ue(e)?.colDef;
|
|
9481
9482
|
if (t.type === "value") {
|
|
9482
9483
|
let r = ue(e), i = de(e, n, t.value);
|
|
9483
9484
|
if (r?.isAggregate && i) {
|
|
@@ -9507,7 +9508,7 @@ function tf(e, t, n) {
|
|
|
9507
9508
|
}, Re = (e, t, n, r) => {
|
|
9508
9509
|
let i = p.value;
|
|
9509
9510
|
if (!Le(e, t, n, r) || !i) return;
|
|
9510
|
-
let a = Array.from(new Set([...
|
|
9511
|
+
let a = Array.from(new Set([...J(e.colDef, e.knownOptions ?? []).values()].flat()));
|
|
9511
9512
|
i.fetchFilterOptions({
|
|
9512
9513
|
colDef: e.colDef,
|
|
9513
9514
|
field: e.key,
|
|
@@ -9560,7 +9561,7 @@ function tf(e, t, n) {
|
|
|
9560
9561
|
n("controlled-change", t, l, s.colDef);
|
|
9561
9562
|
return;
|
|
9562
9563
|
}
|
|
9563
|
-
ye(t, r, l, a ? o : void 0), Ce(Ld(v.value, r, l, _.value,
|
|
9564
|
+
ye(t, r, l, a ? o : void 0), Ce(Ld(v.value, r, l, _.value, Y(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
9564
9565
|
};
|
|
9565
9566
|
return {
|
|
9566
9567
|
resolvedFilters: fe,
|
|
@@ -9573,7 +9574,7 @@ function tf(e, t, n) {
|
|
|
9573
9574
|
activeFilterModel: v,
|
|
9574
9575
|
effectiveFilterStore: p,
|
|
9575
9576
|
findResolvedFilter: ue,
|
|
9576
|
-
getRepresentedFields:
|
|
9577
|
+
getRepresentedFields: te,
|
|
9577
9578
|
activateFilter: We,
|
|
9578
9579
|
applyStagedFilters: Me,
|
|
9579
9580
|
cancelStagedFilters: Ne,
|
|
@@ -9598,15 +9599,15 @@ function tf(e, t, n) {
|
|
|
9598
9599
|
removeAppliedFilter: (e, t, n) => {
|
|
9599
9600
|
let r = n ?? ue(e)?.type ?? "value";
|
|
9600
9601
|
if (r === "range" || !n && t === Zd) {
|
|
9601
|
-
Ce(Id(v.value, e, null, null, _.value,
|
|
9602
|
+
Ce(Id(v.value, e, null, null, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "range");
|
|
9602
9603
|
return;
|
|
9603
9604
|
}
|
|
9604
9605
|
if (r === "boolean" || !n && t === Qd) {
|
|
9605
|
-
Ce(Pd(v.value, e, null, _.value, "boolean",
|
|
9606
|
+
Ce(Pd(v.value, e, null, _.value, "boolean", Y(e) ?? ue(e)?.colDef), "remove-filter", e, "boolean");
|
|
9606
9607
|
return;
|
|
9607
9608
|
}
|
|
9608
9609
|
if (r === "exists" || !n && t === $d) {
|
|
9609
|
-
Ce(Fd(v.value, e, !1, "text", _.value,
|
|
9610
|
+
Ce(Fd(v.value, e, !1, "text", _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "exists");
|
|
9610
9611
|
return;
|
|
9611
9612
|
}
|
|
9612
9613
|
let i = ue(e);
|
|
@@ -9621,7 +9622,7 @@ function tf(e, t, n) {
|
|
|
9621
9622
|
return;
|
|
9622
9623
|
}
|
|
9623
9624
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
9624
|
-
ye(ue(e)?.key ?? e, e, a), Ce(Ld(v.value, e, a, _.value,
|
|
9625
|
+
ye(ue(e)?.key ?? e, e, a), Ce(Ld(v.value, e, a, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "value");
|
|
9625
9626
|
},
|
|
9626
9627
|
setFacetSelections: Ge,
|
|
9627
9628
|
usesHandlerFacets: $
|
|
@@ -9745,13 +9746,13 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9745
9746
|
"suggestion-click"
|
|
9746
9747
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
9747
9748
|
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 } = tf(c, l, f), N = k("filters"), P = k({}), F = k(null), R = k(!1), z = k(!1), V = k(""),
|
|
9749
|
-
|
|
9749
|
+
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 } = tf(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);
|
|
9750
|
+
K(ee, (e) => {
|
|
9750
9751
|
e && (F.value = null);
|
|
9751
|
-
}),
|
|
9752
|
+
}), K(F, (e) => {
|
|
9752
9753
|
e !== null && (V.value = "");
|
|
9753
9754
|
});
|
|
9754
|
-
let
|
|
9755
|
+
let W = (e) => e.colDef.context?.filterCollapsedByDefault === !0, G = r(() => ee.value ? p.value.filter(U) : F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), ne = r(() => G.value.filter((e) => !W(e))), re = r(() => G.value.filter(W)), ie = r(() => F.value !== null), ae = r(() => ie.value || ee.value || R.value ? [...ne.value, ...re.value] : ne.value), Y = r(() => ee.value ? "No filters match your search." : "No filters in this category."), oe = r(() => `${R.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), se = r(() => N.value === "filters" && !ie.value && !ee.value && re.value.length > 0), ce = r(() => c.externalFilters.filter((e) => e.values.length > 0)), X = r(() => ce.value.filter((e) => e.removable !== !1)), le = r(() => ce.value.reduce((e, t) => e + t.values.length, 0)), ue = r(() => X.value.reduce((e, t) => e + t.values.length, 0)), de = r(() => h.value + le.value), fe = r(() => g.value || ue.value > 0), Z = r(() => !c.readOnly && (fe.value || c.staged)), pe = r(() => ae.value.map((e) => ({
|
|
9755
9756
|
...e,
|
|
9756
9757
|
isOpen: P.value[e.key] ?? e.isOpen ?? !1
|
|
9757
9758
|
}))), me = r(() => [{
|
|
@@ -9801,7 +9802,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9801
9802
|
variant: "secondary",
|
|
9802
9803
|
onClick: r[0] ||= (e) => d.value = !0
|
|
9803
9804
|
}))]),
|
|
9804
|
-
s("div", af, [
|
|
9805
|
+
s("div", af, [J(s("div", of, [
|
|
9805
9806
|
!e.readOnly && L(_).length ? (D(), o("section", sf, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", cf, [(D(!0), o(t, null, A(L(_), (e) => (D(), i(ri, {
|
|
9806
9807
|
key: L(C)(e),
|
|
9807
9808
|
icon: e.icon,
|
|
@@ -9832,7 +9833,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9832
9833
|
"onUpdate:modelValue": r[2] ||= (e) => V.value = e,
|
|
9833
9834
|
placeholder: e.filterSearchPlaceholder
|
|
9834
9835
|
}, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
|
|
9835
|
-
L(p).length ?
|
|
9836
|
+
L(p).length ? G.value.length ? (D(), o("div", ff, [(D(!0), o(t, null, A(pe.value, (t) => (D(), i(Nu, {
|
|
9836
9837
|
key: t.key,
|
|
9837
9838
|
"disable-while-loading": e.disableWhileLoading,
|
|
9838
9839
|
filter: t,
|
|
@@ -9849,17 +9850,17 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9849
9850
|
"onLoadMore",
|
|
9850
9851
|
"onOpenChange",
|
|
9851
9852
|
"onSearchChange"
|
|
9852
|
-
]))), 128)),
|
|
9853
|
+
]))), 128)), se.value ? (D(), i($, {
|
|
9853
9854
|
key: 0,
|
|
9854
9855
|
class: "pv-filter-panel-collapsed-filters-toggle pv-text-brand",
|
|
9855
|
-
label:
|
|
9856
|
+
label: oe.value,
|
|
9856
9857
|
variant: "ghost",
|
|
9857
9858
|
onClick: r[5] ||= (e) => R.value = !R.value
|
|
9858
|
-
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div", df, I(
|
|
9859
|
-
], 512), [[
|
|
9859
|
+
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div", df, I(Y.value), 1)) : (D(), o("div", uf, " No filters available. "))
|
|
9860
|
+
], 512), [[te, N.value === "filters"]]), J(u(Vu, {
|
|
9860
9861
|
"applied-count": L(h),
|
|
9861
9862
|
"applied-groups": L(m),
|
|
9862
|
-
"external-filters":
|
|
9863
|
+
"external-filters": ce.value,
|
|
9863
9864
|
"read-only": e.readOnly,
|
|
9864
9865
|
onRemoveExternalFilter: r[6] ||= (e, t) => f("remove-external-filter", e, t),
|
|
9865
9866
|
onRemoveFilter: L(M)
|
|
@@ -9869,7 +9870,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9869
9870
|
"external-filters",
|
|
9870
9871
|
"read-only",
|
|
9871
9872
|
"onRemoveFilter"
|
|
9872
|
-
]), [[
|
|
9873
|
+
]), [[te, N.value === "applied"]])]),
|
|
9873
9874
|
Z.value ? (D(), o("div", pf, [s("div", mf, [fe.value && !e.readOnly ? (D(), i($, {
|
|
9874
9875
|
key: 0,
|
|
9875
9876
|
class: "pv-text-brand",
|
|
@@ -9891,8 +9892,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9891
9892
|
header: e.clearAllHeader,
|
|
9892
9893
|
style: { "--max-width": "440px" }
|
|
9893
9894
|
}, {
|
|
9894
|
-
body:
|
|
9895
|
-
footer:
|
|
9895
|
+
body: q(() => [s("p", hf, I(e.clearAllBody), 1)]),
|
|
9896
|
+
footer: q(() => [s("div", gf, [u($, {
|
|
9896
9897
|
label: e.cancelLabel,
|
|
9897
9898
|
variant: "ghost",
|
|
9898
9899
|
onClick: ve
|
|
@@ -9938,7 +9939,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9938
9939
|
class: "pv-toggle-ghost",
|
|
9939
9940
|
for: i.value
|
|
9940
9941
|
}, [
|
|
9941
|
-
|
|
9942
|
+
J(s("input", {
|
|
9942
9943
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
9943
9944
|
class: "pv-hide",
|
|
9944
9945
|
id: i.value,
|
|
@@ -9946,7 +9947,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9946
9947
|
value: e.value,
|
|
9947
9948
|
name: e.name,
|
|
9948
9949
|
disabled: e.disabled
|
|
9949
|
-
}, null, 8, yf), [[
|
|
9950
|
+
}, null, 8, yf), [[U, n.value]]),
|
|
9950
9951
|
e.label ? (D(), o("span", bf, I(e.label), 1)) : a("", !0),
|
|
9951
9952
|
s("span", xf, I(e.rightCounterBadge), 1)
|
|
9952
9953
|
], 8, vf));
|
|
@@ -10092,7 +10093,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10092
10093
|
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 } = tf(c, l, f), w = k(null), T = z(), E = k(""), O = r(() => p.value.filter((e) => e.type === "value")), M = r(() => {
|
|
10093
10094
|
let e = O.value;
|
|
10094
10095
|
return e.find((e) => e.key === w.value) ?? e[0] ?? null;
|
|
10095
|
-
}), P = r(() => M.value?.isAggregate === !0), F = r(() => M.value?.aggregateSelectionState ?? []), R = r(() => new Set(M.value?.selectedValues ?? [])), V = r(() => E.value.trim().toLowerCase()),
|
|
10096
|
+
}), 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) => {
|
|
10096
10097
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
10097
10098
|
return [
|
|
10098
10099
|
e.value,
|
|
@@ -10102,57 +10103,57 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10102
10103
|
e.matchedValue,
|
|
10103
10104
|
e.matchedField
|
|
10104
10105
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
10105
|
-
},
|
|
10106
|
+
}, ee = r(() => {
|
|
10106
10107
|
let e = M.value;
|
|
10107
10108
|
if (!e) return {};
|
|
10108
10109
|
let t = {};
|
|
10109
10110
|
for (let n of Ol([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
10110
10111
|
return t;
|
|
10111
|
-
}),
|
|
10112
|
+
}), U = r(() => M.value?.colDef.context?.filterPanel ?? {}), W = k(Object.fromEntries(O.value.flatMap((e) => {
|
|
10112
10113
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
10113
10114
|
return Object.keys(n).length ? [[e.key, n]] : [];
|
|
10114
10115
|
})));
|
|
10115
|
-
for (let [e, t] of Object.entries(
|
|
10116
|
+
for (let [e, t] of Object.entries(W.value)) b(e, t);
|
|
10116
10117
|
S(() => {
|
|
10117
|
-
for (let e of Object.keys(
|
|
10118
|
+
for (let e of Object.keys(W.value)) b(e, {});
|
|
10118
10119
|
});
|
|
10119
|
-
let
|
|
10120
|
+
let G = (e) => {
|
|
10120
10121
|
let t = M.value?.key;
|
|
10121
|
-
return t &&
|
|
10122
|
-
},
|
|
10122
|
+
return t && W.value[t]?.[e] || [];
|
|
10123
|
+
}, te = () => {
|
|
10123
10124
|
let e = M.value?.key;
|
|
10124
10125
|
if (!e) return {};
|
|
10125
|
-
let t =
|
|
10126
|
-
return Object.fromEntries(Object.keys(
|
|
10127
|
-
},
|
|
10126
|
+
let t = W.value[e] ?? {};
|
|
10127
|
+
return Object.fromEntries(Object.keys(U.value).filter((e) => t[e]?.length).map((e) => [e, t[e]]));
|
|
10128
|
+
}, ne = (e) => e.map((e) => ({
|
|
10128
10129
|
id: e,
|
|
10129
10130
|
text: e
|
|
10130
|
-
})),
|
|
10131
|
-
let n = new Set(
|
|
10132
|
-
return
|
|
10133
|
-
},
|
|
10131
|
+
})), J = (e, t) => {
|
|
10132
|
+
let n = new Set(G(e));
|
|
10133
|
+
return ne(t).filter((e) => n.has(e.id));
|
|
10134
|
+
}, re = (e, t) => {
|
|
10134
10135
|
let n = M.value;
|
|
10135
|
-
n && (
|
|
10136
|
-
...
|
|
10136
|
+
n && (W.value[n.key] = {
|
|
10137
|
+
...W.value[n.key],
|
|
10137
10138
|
[e]: t.map((e) => e.id)
|
|
10138
10139
|
});
|
|
10139
|
-
},
|
|
10140
|
+
}, ie = r(() => Object.keys(U.value).map((e) => [e, new Set(G(e))]).filter(([, e]) => e.size > 0)), ae = (e) => ie.value.every(([t, n]) => {
|
|
10140
10141
|
let r = e.metadata?.filters?.[t];
|
|
10141
10142
|
return r === void 0 ? C.value : (Array.isArray(r) ? r : [r]).some((e) => n.has(String(e)));
|
|
10142
|
-
}),
|
|
10143
|
-
let e = (M.value?.options ?? []).filter(
|
|
10144
|
-
return t ? e.filter((e) =>
|
|
10145
|
-
}),
|
|
10143
|
+
}), Y = r(() => {
|
|
10144
|
+
let e = (M.value?.options ?? []).filter(ae), t = V.value;
|
|
10145
|
+
return t ? e.filter((e) => H(e).includes(t)) : e;
|
|
10146
|
+
}), oe = r(() => P.value || M.value?.singleSelect ? [] : (M.value?.selectedValues ?? []).map((e) => ee.value[e] ?? {
|
|
10146
10147
|
label: e,
|
|
10147
10148
|
value: e
|
|
10148
|
-
})),
|
|
10149
|
-
|
|
10149
|
+
})), se = k([]), ce = r(() => new Set(se.value)), X = () => {
|
|
10150
|
+
se.value = P.value || M.value?.singleSelect ? [] : [...M.value?.selectedValues ?? []];
|
|
10150
10151
|
};
|
|
10151
10152
|
X();
|
|
10152
|
-
let le = r(() => P.value || M.value?.singleSelect ?
|
|
10153
|
+
let le = r(() => P.value || M.value?.singleSelect ? Y.value : [...(M.value?.selectedValues ?? []).filter((e) => !Y.value.some((t) => t.value === e)).map((e) => ee.value[e] ?? {
|
|
10153
10154
|
label: e,
|
|
10154
10155
|
value: e
|
|
10155
|
-
}), ...
|
|
10156
|
+
}), ...Y.value]), ue = r(() => {
|
|
10156
10157
|
let e = /* @__PURE__ */ new Map();
|
|
10157
10158
|
for (let t of le.value) {
|
|
10158
10159
|
let n = t.section ?? "";
|
|
@@ -10169,7 +10170,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10169
10170
|
key: t,
|
|
10170
10171
|
label: r?.label ?? t,
|
|
10171
10172
|
section: r,
|
|
10172
|
-
options: [...i.filter((e) =>
|
|
10173
|
+
options: [...i.filter((e) => ce.value.has(e.value)), ...i.filter((e) => !ce.value.has(e.value))]
|
|
10173
10174
|
};
|
|
10174
10175
|
});
|
|
10175
10176
|
}), fe = r(() => P.value && M.value ? au({
|
|
@@ -10204,13 +10205,13 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10204
10205
|
});
|
|
10205
10206
|
}
|
|
10206
10207
|
}, ve = () => {
|
|
10207
|
-
for (let e of
|
|
10208
|
+
for (let e of Y.value) pe(e).selected || _e(e, !0);
|
|
10208
10209
|
}, ye = () => {
|
|
10209
10210
|
if (P.value) {
|
|
10210
10211
|
for (let e of Ol(M.value?.knownOptions ?? [])) pe(e).selected && _e(e, !1);
|
|
10211
10212
|
return;
|
|
10212
10213
|
}
|
|
10213
|
-
for (let e of
|
|
10214
|
+
for (let e of oe.value) _e(e, !1);
|
|
10214
10215
|
}, be = () => {
|
|
10215
10216
|
M.value && f("load-more", M.value.key, M.value.colDef, E.value.trim());
|
|
10216
10217
|
}, xe = r({
|
|
@@ -10219,13 +10220,13 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10219
10220
|
w.value = e;
|
|
10220
10221
|
}
|
|
10221
10222
|
});
|
|
10222
|
-
return
|
|
10223
|
+
return K(() => M.value?.key, (e) => {
|
|
10223
10224
|
E.value = M.value?.searchQuery ?? "", X(), e && d.value && M.value && m(M.value);
|
|
10224
|
-
}),
|
|
10225
|
+
}), K(d, (e) => {
|
|
10225
10226
|
e && (X(), M.value && m(M.value));
|
|
10226
|
-
}), de([() => M.value?.key,
|
|
10227
|
+
}), de([() => M.value?.key, W], () => {
|
|
10227
10228
|
let e = M.value;
|
|
10228
|
-
e && v(e,
|
|
10229
|
+
e && v(e, te(), E.value.trim());
|
|
10229
10230
|
}, {
|
|
10230
10231
|
debounce: 300,
|
|
10231
10232
|
deep: !0,
|
|
@@ -10245,8 +10246,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10245
10246
|
offset: 8,
|
|
10246
10247
|
"z-index": 1e3
|
|
10247
10248
|
}, {
|
|
10248
|
-
trigger:
|
|
10249
|
-
content:
|
|
10249
|
+
trigger: q(() => [j(n.$slots, "trigger", {}, void 0, !0)]),
|
|
10250
|
+
content: q(() => [s("div", {
|
|
10250
10251
|
class: "pv-surface pv-bordered pv-radius-lg pv-inset-square-12",
|
|
10251
10252
|
role: "dialog",
|
|
10252
10253
|
"aria-label": e.ariaLabel,
|
|
@@ -10280,14 +10281,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10280
10281
|
"disabled",
|
|
10281
10282
|
"placeholder"
|
|
10282
10283
|
]),
|
|
10283
|
-
Object.keys(
|
|
10284
|
+
Object.keys(U.value).length ? (D(), o("div", Df, [(D(!0), o(t, null, A(U.value, (e, t) => (D(), i(Mo, {
|
|
10284
10285
|
key: `facet-${t}`,
|
|
10285
10286
|
disabled: M.value?.disabled,
|
|
10286
10287
|
label: e.headerName || L(Se)(t),
|
|
10287
|
-
"model-value":
|
|
10288
|
-
options:
|
|
10288
|
+
"model-value": J(t, e.values),
|
|
10289
|
+
options: ne(e.values),
|
|
10289
10290
|
variant: "secondary",
|
|
10290
|
-
"onUpdate:modelValue": (e) =>
|
|
10291
|
+
"onUpdate:modelValue": (e) => re(t, e)
|
|
10291
10292
|
}, null, 8, [
|
|
10292
10293
|
"disabled",
|
|
10293
10294
|
"label",
|
|
@@ -10347,7 +10348,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10347
10348
|
"value",
|
|
10348
10349
|
"onToggleValue"
|
|
10349
10350
|
])], 2))), 128))]))), 128))]),
|
|
10350
|
-
|
|
10351
|
+
Y.value.length ? a("", !0) : (D(), o("p", jf, " No matching values. ")),
|
|
10351
10352
|
M.value.hasMore ? (D(), i($, {
|
|
10352
10353
|
key: 1,
|
|
10353
10354
|
class: "pv-text-brand",
|
|
@@ -10411,15 +10412,15 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10411
10412
|
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", If, [u(nc, {
|
|
10412
10413
|
variant: e.variant,
|
|
10413
10414
|
"data-testid": "pv-hover-action-menu-actions",
|
|
10414
|
-
onClick: r[0] ||=
|
|
10415
|
+
onClick: r[0] ||= ie(() => {}, ["stop"])
|
|
10415
10416
|
}, {
|
|
10416
|
-
default:
|
|
10417
|
+
default: q(() => [s("div", Lf, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
10417
10418
|
key: t.id,
|
|
10418
10419
|
variant: "dark",
|
|
10419
10420
|
position: "top-center",
|
|
10420
10421
|
description: t.icon ? t.text : void 0
|
|
10421
10422
|
}, {
|
|
10422
|
-
trigger:
|
|
10423
|
+
trigger: q(() => [u($, {
|
|
10423
10424
|
variant: "ghost",
|
|
10424
10425
|
size: "md",
|
|
10425
10426
|
leftIcon: t.icon,
|
|
@@ -10579,21 +10580,21 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10579
10580
|
width: "100%",
|
|
10580
10581
|
maxWidth: "100%",
|
|
10581
10582
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
10582
|
-
}, f =
|
|
10583
|
-
m.value = null, p.value = "",
|
|
10583
|
+
}, f = H("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = zf(), 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 = () => {
|
|
10584
|
+
m.value = null, p.value = "", U.value = null, T.value = !1;
|
|
10584
10585
|
};
|
|
10585
|
-
|
|
10586
|
-
let t =
|
|
10586
|
+
Y("Enter", (e) => {
|
|
10587
|
+
let t = le.value;
|
|
10587
10588
|
if (t) {
|
|
10588
|
-
e.preventDefault(),
|
|
10589
|
+
e.preventDefault(), he(t);
|
|
10589
10590
|
return;
|
|
10590
10591
|
}
|
|
10591
|
-
n.enableCustomOptionsInput && p.value.trim() &&
|
|
10592
|
-
}, { target: f }),
|
|
10593
|
-
se.value.length !== 0 && (e.preventDefault(), C.value = !0,
|
|
10594
|
-
}, { target: f }),
|
|
10595
|
-
C.value && (C.value = !1,
|
|
10596
|
-
}, { target: f }),
|
|
10592
|
+
n.enableCustomOptionsInput && p.value.trim() && re();
|
|
10593
|
+
}, { target: f }), Y(["ArrowDown", "ArrowUp"], (e) => {
|
|
10594
|
+
se.value.length !== 0 && (e.preventDefault(), C.value = !0, fe(e.key === "ArrowDown" ? 1 : -1));
|
|
10595
|
+
}, { target: f }), Y("Escape", () => {
|
|
10596
|
+
C.value && (C.value = !1, X.value = -1);
|
|
10597
|
+
}, { target: f }), Y("Backspace", () => {
|
|
10597
10598
|
if (p.value !== "") return;
|
|
10598
10599
|
let e = m.value?.queryTerms;
|
|
10599
10600
|
if (!e || e.length === 0) return;
|
|
@@ -10604,61 +10605,65 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10604
10605
|
queryTerm: t
|
|
10605
10606
|
}), m.value?.queryTerms.length === 0 && (m.value = null);
|
|
10606
10607
|
}, { target: f });
|
|
10607
|
-
let
|
|
10608
|
+
let re = () => {
|
|
10608
10609
|
p.value.trim() && (m.value = g(m.value, {
|
|
10609
10610
|
id: p.value.trim(),
|
|
10610
10611
|
text: p.value,
|
|
10611
10612
|
queryTerm: { queryText: p.value }
|
|
10612
|
-
}),
|
|
10613
|
-
},
|
|
10613
|
+
}), ve());
|
|
10614
|
+
}, ie = (e) => {
|
|
10615
|
+
let t = e?.queryDisplayField || e?.queryField;
|
|
10616
|
+
if (t) return e?.exactMatch ? t : `Search in ${t}`;
|
|
10617
|
+
}, ae = r(() => {
|
|
10614
10618
|
if (!h.value || h.value.length === 0) return [];
|
|
10615
10619
|
let e = h.value;
|
|
10616
10620
|
return n.processor === "field-only" && (e = h.value.filter((e) => e.queryTerm?.queryField)), m.value && (e = e.filter((e) => !b(m.value, e))), e.map((e) => ({
|
|
10617
10621
|
...e,
|
|
10622
|
+
subText: e.subText ?? ie(e.queryTerm),
|
|
10618
10623
|
searchText: p.value,
|
|
10619
10624
|
context: e.queryTerm
|
|
10620
10625
|
}));
|
|
10621
10626
|
}), oe = r(() => {
|
|
10622
10627
|
let e = /* @__PURE__ */ new Map();
|
|
10623
|
-
for (let t of
|
|
10628
|
+
for (let t of ae.value) {
|
|
10624
10629
|
let n = t.groupingLabel ?? "", r = e.get(n);
|
|
10625
10630
|
r ? r.push(t) : e.set(n, [t]);
|
|
10626
10631
|
}
|
|
10627
10632
|
return Array.from(e.entries());
|
|
10628
|
-
}), se = r(() => oe.value.flatMap(([, e]) => e)), ce = r(() => new Map(se.value.map((e, t) => [e, t]))),
|
|
10633
|
+
}), se = r(() => oe.value.flatMap(([, e]) => e)), ce = r(() => new Map(se.value.map((e, t) => [e, t]))), X = k(-1), le = r(() => {
|
|
10629
10634
|
if (!C.value) return null;
|
|
10630
|
-
let e = se.value[
|
|
10635
|
+
let e = se.value[X.value] ?? null;
|
|
10631
10636
|
return e?.disabled ? null : e;
|
|
10632
|
-
}),
|
|
10637
|
+
}), ue = r(() => le.value ? P(X.value) : void 0), de = (e) => {
|
|
10633
10638
|
v(() => {
|
|
10634
10639
|
document.getElementById(P(e))?.scrollIntoView?.({ block: "nearest" });
|
|
10635
10640
|
});
|
|
10636
|
-
},
|
|
10641
|
+
}, fe = (e) => {
|
|
10637
10642
|
let t = se.value, n = t.length;
|
|
10638
10643
|
if (n === 0) return;
|
|
10639
|
-
let r =
|
|
10644
|
+
let r = X.value === -1 ? e > 0 ? -1 : 0 : X.value;
|
|
10640
10645
|
for (let i = 1; i <= n; i++) {
|
|
10641
10646
|
let a = ((r + e * i) % n + n) % n;
|
|
10642
10647
|
if (!t[a].disabled) {
|
|
10643
|
-
|
|
10648
|
+
X.value = a, de(a);
|
|
10644
10649
|
return;
|
|
10645
10650
|
}
|
|
10646
10651
|
}
|
|
10647
|
-
},
|
|
10648
|
-
e.disabled || (
|
|
10652
|
+
}, pe = (e) => {
|
|
10653
|
+
e.disabled || (X.value = ce.value.get(e) ?? -1);
|
|
10649
10654
|
};
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
}),
|
|
10653
|
-
|
|
10655
|
+
K([se, p], () => {
|
|
10656
|
+
X.value = -1;
|
|
10657
|
+
}), K([
|
|
10658
|
+
ae,
|
|
10654
10659
|
p,
|
|
10655
10660
|
() => n.optionsLoading
|
|
10656
10661
|
], ([e, t, n]) => {
|
|
10657
10662
|
t && t.length > 0 && (e.length > 0 || n || O.value) ? C.value = !0 : (!t || t.length === 0) && (C.value = !1);
|
|
10658
10663
|
}, { immediate: !0 });
|
|
10659
|
-
let
|
|
10660
|
-
n.enableCustomOptionsInput &&
|
|
10661
|
-
},
|
|
10664
|
+
let me = () => {
|
|
10665
|
+
n.enableCustomOptionsInput && re(), X.value = -1, C.value = !1, w.value = !1, T.value = !1;
|
|
10666
|
+
}, he = (e) => {
|
|
10662
10667
|
try {
|
|
10663
10668
|
let t = {
|
|
10664
10669
|
id: e.id,
|
|
@@ -10666,28 +10671,28 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10666
10671
|
queryTerm: e.context,
|
|
10667
10672
|
icon: e.icon
|
|
10668
10673
|
};
|
|
10669
|
-
m.value = g(m.value, t),
|
|
10674
|
+
m.value = g(m.value, t), ve();
|
|
10670
10675
|
} catch (e) {
|
|
10671
10676
|
console.error("Error adding query option:", e);
|
|
10672
10677
|
} finally {
|
|
10673
10678
|
C.value = !1, w.value = !1;
|
|
10674
10679
|
}
|
|
10675
10680
|
};
|
|
10676
|
-
function
|
|
10681
|
+
function ge(e) {
|
|
10677
10682
|
let t = e.target;
|
|
10678
10683
|
t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || f.value?.focus();
|
|
10679
10684
|
}
|
|
10680
|
-
function
|
|
10685
|
+
function _e(e) {
|
|
10681
10686
|
e.type === "focus" && (w.value = !0, C.value = !0);
|
|
10682
10687
|
}
|
|
10683
|
-
let
|
|
10688
|
+
let ve = () => {
|
|
10684
10689
|
p.value = "";
|
|
10685
10690
|
};
|
|
10686
|
-
return (n, r) =>
|
|
10691
|
+
return (n, r) => J((D(), o("div", {
|
|
10687
10692
|
ref: "query-builder-input",
|
|
10688
10693
|
class: y(["pv-relative pv-query-builder-input-wrapper", { "pv-query-builder-input-small": e.size === "lg" }]),
|
|
10689
|
-
onFocus:
|
|
10690
|
-
onClick:
|
|
10694
|
+
onFocus: _e,
|
|
10695
|
+
onClick: ge
|
|
10691
10696
|
}, [
|
|
10692
10697
|
e.hideSearchIcon ? a("", !0) : (D(), i(Q, {
|
|
10693
10698
|
key: 0,
|
|
@@ -10709,7 +10714,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10709
10714
|
"modelValue",
|
|
10710
10715
|
"wrap-content",
|
|
10711
10716
|
"query-term-display-limit"
|
|
10712
|
-
]),
|
|
10717
|
+
]), J(s("input", {
|
|
10713
10718
|
"onUpdate:modelValue": r[2] ||= (e) => p.value = e,
|
|
10714
10719
|
ref: "search-input",
|
|
10715
10720
|
"data-testid": "pv-search-input",
|
|
@@ -10718,30 +10723,32 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10718
10723
|
"aria-autocomplete": "list",
|
|
10719
10724
|
"aria-expanded": R.value && C.value,
|
|
10720
10725
|
"aria-controls": N,
|
|
10721
|
-
"aria-activedescendant":
|
|
10726
|
+
"aria-activedescendant": ue.value,
|
|
10722
10727
|
disabled: e.disabled,
|
|
10723
|
-
placeholder:
|
|
10724
|
-
"data-invalid":
|
|
10728
|
+
placeholder: ee.value,
|
|
10729
|
+
"data-invalid": W.value ? "true" : void 0,
|
|
10725
10730
|
style: x(p.value ? "min-width: 8rem;" : void 0),
|
|
10726
|
-
onFocus:
|
|
10727
|
-
onBlur:
|
|
10728
|
-
}, null, 44, Vf), [[
|
|
10731
|
+
onFocus: _e,
|
|
10732
|
+
onBlur: _e
|
|
10733
|
+
}, null, 44, Vf), [[G, p.value]])], 4),
|
|
10729
10734
|
m.value && !e.hideClearButton ? (D(), i($, {
|
|
10730
10735
|
key: 1,
|
|
10731
10736
|
variant: "ghost",
|
|
10732
10737
|
leftIcon: "close",
|
|
10733
10738
|
size: "md",
|
|
10734
|
-
onClick:
|
|
10739
|
+
onClick: ne
|
|
10735
10740
|
})) : a("", !0),
|
|
10736
|
-
|
|
10737
|
-
R.value ?
|
|
10741
|
+
W.value ? (D(), o("p", Hf, I(U.value), 1)) : a("", !0),
|
|
10742
|
+
R.value ? J((D(), i(wr, {
|
|
10738
10743
|
key: 3,
|
|
10744
|
+
class: "pv-scrollbar-visible",
|
|
10739
10745
|
"css-custom-properties": d,
|
|
10740
10746
|
isList: !0,
|
|
10747
|
+
listClass: "pv-scrollbar-visible",
|
|
10741
10748
|
listId: N,
|
|
10742
10749
|
listRole: "listbox"
|
|
10743
10750
|
}, c({
|
|
10744
|
-
default:
|
|
10751
|
+
default: q(() => [e.optionsLoading ? (D(), o("div", Kf, [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", {
|
|
10745
10752
|
key: 0,
|
|
10746
10753
|
id: F(r),
|
|
10747
10754
|
role: "presentation",
|
|
@@ -10750,28 +10757,28 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10750
10757
|
key: `${e}-${t.id}`,
|
|
10751
10758
|
id: P(ce.value.get(t) ?? -1),
|
|
10752
10759
|
role: "option",
|
|
10753
|
-
"aria-selected": t ===
|
|
10760
|
+
"aria-selected": t === le.value,
|
|
10754
10761
|
"aria-describedby": e ? F(r) : void 0,
|
|
10755
|
-
class: y({ "pv-query-builder-option-active": t ===
|
|
10756
|
-
onMouseenter: (e) =>
|
|
10762
|
+
class: y({ "pv-query-builder-option-active": t === le.value }),
|
|
10763
|
+
onMouseenter: (e) => pe(t)
|
|
10757
10764
|
}, [u(go, _({ ref_for: !0 }, t, {
|
|
10758
10765
|
config: l,
|
|
10759
10766
|
queryText: p.value,
|
|
10760
|
-
onHandleSelected: (e) =>
|
|
10767
|
+
onHandleSelected: (e) => he(t)
|
|
10761
10768
|
}), null, 16, ["queryText", "onHandleSelected"])], 42, Wf))), 128))], 64))), 128)) : n.$slots.empty ? (D(), o("li", Gf, [j(n.$slots, "empty", {}, void 0, !0)])) : a("", !0)], 64))]),
|
|
10762
10769
|
_: 2
|
|
10763
10770
|
}, [n.$slots.header ? {
|
|
10764
10771
|
name: "header",
|
|
10765
|
-
fn:
|
|
10772
|
+
fn: q(() => [j(n.$slots, "header", {}, void 0, !0)]),
|
|
10766
10773
|
key: "0"
|
|
10767
10774
|
} : void 0, n.$slots.footer ? {
|
|
10768
10775
|
name: "footer",
|
|
10769
|
-
fn:
|
|
10776
|
+
fn: q(() => [j(n.$slots, "footer", {}, void 0, !0)]),
|
|
10770
10777
|
key: "1"
|
|
10771
|
-
} : void 0]), 1536)), [[
|
|
10772
|
-
], 34)), [[L(Z),
|
|
10778
|
+
} : void 0]), 1536)), [[te, C.value]]) : a("", !0)
|
|
10779
|
+
], 34)), [[L(Z), me]]);
|
|
10773
10780
|
}
|
|
10774
|
-
}), [["__scopeId", "data-v-
|
|
10781
|
+
}), [["__scopeId", "data-v-62aa7767"]]), Jf = { class: "sidebar-header-content" }, Yf = { class: "content-panel" }, Xf = 300, Zf = /* @__PURE__ */ d({
|
|
10775
10782
|
__name: "PvSidebar",
|
|
10776
10783
|
props: /* @__PURE__ */ g({
|
|
10777
10784
|
disableToggle: { type: Boolean },
|
|
@@ -10787,7 +10794,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10787
10794
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
10788
10795
|
setup(e, { emit: t }) {
|
|
10789
10796
|
let n = e, r = B(e, "modelValue"), c = t, l = k(!1), u = null, d = f(), p = () => d?.proxy?.$el ?? null;
|
|
10790
|
-
|
|
10797
|
+
K(r, () => {
|
|
10791
10798
|
l.value = !1;
|
|
10792
10799
|
});
|
|
10793
10800
|
let m = () => {
|
|
@@ -10946,13 +10953,13 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10946
10953
|
}),
|
|
10947
10954
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
10948
10955
|
setup(e, { emit: n }) {
|
|
10949
|
-
let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = Xn("sidebar-additional-content", { host: p }), { present: h } = Xn("sidebar-additional-header", { host: p }), { present: g } = Xn("sidebar-help-content", { host: p }), { present: b } = Xn("sidebar-profile-content", { host: p }), C = V(), T = k(null), E = k(null), O = k({}), M = k(), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), R = k(0), z =
|
|
10956
|
+
let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = Xn("sidebar-additional-content", { host: p }), { present: h } = Xn("sidebar-additional-header", { host: p }), { present: g } = Xn("sidebar-help-content", { host: p }), { present: b } = Xn("sidebar-profile-content", { host: p }), C = V(), T = k(null), E = k(null), O = k({}), M = k(), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), R = k(0), z = se(E), H = r(() => ({
|
|
10950
10957
|
"--pv-sidebar-hover-panel-height": `${z.height.value}px`,
|
|
10951
10958
|
"--pv-sidebar-hover-panel-left": `${z.right.value}px`,
|
|
10952
10959
|
"--pv-sidebar-hover-panel-top": `${z.top.value}px`
|
|
10953
|
-
})),
|
|
10960
|
+
})), ee, U = (e) => e.hoverPanelSlot ? p ? (R.value, Yn(p, e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, W = (e, t, n) => {
|
|
10954
10961
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
10955
|
-
},
|
|
10962
|
+
}, G = (e) => {
|
|
10956
10963
|
let t = P.get(e), n = t?.querySelector($p);
|
|
10957
10964
|
if (n) return n;
|
|
10958
10965
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
@@ -10960,56 +10967,56 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10960
10967
|
let e = t.querySelector($p);
|
|
10961
10968
|
if (e) return e;
|
|
10962
10969
|
}
|
|
10963
|
-
},
|
|
10970
|
+
}, te = (e, t) => {
|
|
10964
10971
|
if (e.shiftKey) return;
|
|
10965
|
-
let n =
|
|
10972
|
+
let n = G(t);
|
|
10966
10973
|
n && (e.preventDefault(), O.value[t] = !0, v(() => n.focus()));
|
|
10967
|
-
},
|
|
10974
|
+
}, ne = (e) => {
|
|
10968
10975
|
M.value = e, O.value[e] = !1, v(() => {
|
|
10969
10976
|
F.get(e)?.focus({ preventScroll: !0 }), v(() => M.value = void 0);
|
|
10970
10977
|
});
|
|
10978
|
+
}, J = (e, t) => {
|
|
10979
|
+
e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && ne(t);
|
|
10971
10980
|
}, ie = (e, t) => {
|
|
10972
|
-
e.
|
|
10973
|
-
}, q = (e, t) => {
|
|
10974
|
-
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), re(t));
|
|
10981
|
+
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), ne(t));
|
|
10975
10982
|
};
|
|
10976
10983
|
w(() => {
|
|
10977
|
-
p && (
|
|
10984
|
+
p && (ee = new MutationObserver((e) => {
|
|
10978
10985
|
e.some((e) => e.target === p || e.type === "attributes" && e.target.parentNode === p) && (R.value += 1);
|
|
10979
|
-
}),
|
|
10986
|
+
}), ee.observe(p, {
|
|
10980
10987
|
attributes: !0,
|
|
10981
10988
|
attributeFilter: ["slot"],
|
|
10982
10989
|
childList: !0,
|
|
10983
10990
|
subtree: !0
|
|
10984
10991
|
}));
|
|
10985
|
-
}), S(() =>
|
|
10986
|
-
let
|
|
10992
|
+
}), S(() => ee?.disconnect());
|
|
10993
|
+
let ae = (e) => {
|
|
10987
10994
|
for (let t of e) {
|
|
10988
10995
|
if (t.active) return t;
|
|
10989
|
-
let e = t.entities &&
|
|
10996
|
+
let e = t.entities && ae(t.entities);
|
|
10990
10997
|
if (e) return e;
|
|
10991
10998
|
}
|
|
10992
|
-
},
|
|
10999
|
+
}, Y = r(() => (c.organizations && ae(c.organizations)) ?? c.organizations?.[0]), oe = (e) => !!(e.active || e.children?.some((e) => e.active)), ce = k((() => {
|
|
10993
11000
|
let e = {};
|
|
10994
11001
|
return c.navItems?.forEach((t) => {
|
|
10995
|
-
|
|
11002
|
+
oe(t) && (e[t.value] = !0);
|
|
10996
11003
|
}), e;
|
|
10997
11004
|
})());
|
|
10998
|
-
|
|
11005
|
+
K(() => c.navItems, (e) => {
|
|
10999
11006
|
e?.forEach((e) => {
|
|
11000
|
-
|
|
11007
|
+
oe(e) && (ce.value[e.value] = !0);
|
|
11001
11008
|
});
|
|
11002
11009
|
});
|
|
11003
11010
|
let X = B(e, "modelValue"), le = k(!1), ue = n, de = k(!1), fe = k(!1), Z = k(!1), pe = () => {
|
|
11004
11011
|
de.value = !1, O.value = {}, fe.value = !1, Z.value = !1;
|
|
11005
11012
|
};
|
|
11006
|
-
|
|
11013
|
+
K(de, (e) => {
|
|
11007
11014
|
e && (O.value = {}, fe.value = !1, Z.value = !1);
|
|
11008
|
-
}),
|
|
11015
|
+
}), K(fe, (e) => {
|
|
11009
11016
|
e && (de.value = !1, O.value = {}, Z.value = !1);
|
|
11010
|
-
}),
|
|
11017
|
+
}), K(Z, (e) => {
|
|
11011
11018
|
e && (de.value = !1, O.value = {}, fe.value = !1);
|
|
11012
|
-
}),
|
|
11019
|
+
}), K(X, () => {
|
|
11013
11020
|
pe(), le.value = !0;
|
|
11014
11021
|
});
|
|
11015
11022
|
let me = () => {
|
|
@@ -11031,7 +11038,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11031
11038
|
"is-expanded": !X.value,
|
|
11032
11039
|
"is-transitioning": le.value
|
|
11033
11040
|
}]]),
|
|
11034
|
-
style: x(
|
|
11041
|
+
style: x(H.value),
|
|
11035
11042
|
onTransitionend: he
|
|
11036
11043
|
}, [
|
|
11037
11044
|
s("div", {
|
|
@@ -11049,26 +11056,26 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11049
11056
|
"teleport-location": T.value ?? "body",
|
|
11050
11057
|
"css-custom-properties": { width: "100%" }
|
|
11051
11058
|
}, {
|
|
11052
|
-
trigger:
|
|
11059
|
+
trigger: q(() => [s("button", {
|
|
11053
11060
|
type: "button",
|
|
11054
11061
|
class: "pv-nav-list-item pv-full-width pv-space-between",
|
|
11055
11062
|
"data-testid": "pv-sidebar-org-switcher",
|
|
11056
|
-
"aria-label": `Switch organization: ${
|
|
11063
|
+
"aria-label": `Switch organization: ${Y.value?.label}`,
|
|
11057
11064
|
"aria-expanded": fe.value
|
|
11058
|
-
}, [s("div", np, [s("span", rp, [
|
|
11065
|
+
}, [s("div", np, [s("span", rp, [Y.value?.avatarUrl ? (D(), o("img", {
|
|
11059
11066
|
key: 0,
|
|
11060
|
-
src:
|
|
11067
|
+
src: Y.value.avatarUrl,
|
|
11061
11068
|
alt: "Organization Avatar"
|
|
11062
|
-
}, null, 8, ip)) : (D(), o("span", ap, I(
|
|
11069
|
+
}, null, 8, ip)) : (D(), o("span", ap, I(Y.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
11063
11070
|
class: "pv-text-title-lg pv-truncate",
|
|
11064
11071
|
"data-sidebar-expanded-content": "",
|
|
11065
|
-
title:
|
|
11066
|
-
}, I(
|
|
11072
|
+
title: Y.value?.label
|
|
11073
|
+
}, I(Y.value?.label), 9, op)]), u(Q, {
|
|
11067
11074
|
name: "chevron-down",
|
|
11068
11075
|
class: "pv-icon-16",
|
|
11069
11076
|
"data-sidebar-expanded-content": ""
|
|
11070
11077
|
})], 8, tp)]),
|
|
11071
|
-
content:
|
|
11078
|
+
content: q(() => [s("div", sp, [s("ul", cp, [(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", {
|
|
11072
11079
|
class: "pv-flex",
|
|
11073
11080
|
href: e.url,
|
|
11074
11081
|
"data-testid": "pv-sidebar-org-option",
|
|
@@ -11107,18 +11114,18 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11107
11114
|
position: "center-right",
|
|
11108
11115
|
delay: 1e3
|
|
11109
11116
|
}, {
|
|
11110
|
-
trigger:
|
|
11117
|
+
trigger: q(() => [u($, {
|
|
11111
11118
|
class: "sidebar-toggle",
|
|
11112
11119
|
"left-icon": X.value ? "panel-left-open" : "panel-left-close",
|
|
11113
11120
|
"aria-label": X.value ? "Open sidebar" : "Close sidebar",
|
|
11114
11121
|
variant: "ghost",
|
|
11115
11122
|
onClick: me
|
|
11116
11123
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
11117
|
-
content:
|
|
11124
|
+
content: q(() => [l(I(X.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
11118
11125
|
_: 1
|
|
11119
11126
|
}))], 2)]), s("div", vp, [
|
|
11120
11127
|
L(m) ? (D(), o("div", yp, [j(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
11121
|
-
e.navItems && e.navItems.length ? (D(), o("ul", bp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [
|
|
11128
|
+
e.navItems && e.navItems.length ? (D(), o("ul", bp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [U(e) ? (D(), i(nr, {
|
|
11122
11129
|
key: 0,
|
|
11123
11130
|
modelValue: O.value[e.value],
|
|
11124
11131
|
"onUpdate:modelValue": (t) => O.value[e.value] = t,
|
|
@@ -11131,9 +11138,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11131
11138
|
disabled: M.value === e.value,
|
|
11132
11139
|
"css-custom-properties": { width: "100%" }
|
|
11133
11140
|
}, {
|
|
11134
|
-
trigger:
|
|
11141
|
+
trigger: q(() => [(D(), i(N(e.url ? "a" : "button"), _({
|
|
11135
11142
|
ref_for: !0,
|
|
11136
|
-
ref: (t) =>
|
|
11143
|
+
ref: (t) => W(L(F), e.value, t),
|
|
11137
11144
|
class: "pv-nav-list-item",
|
|
11138
11145
|
href: e.url,
|
|
11139
11146
|
type: e.url ? void 0 : "button"
|
|
@@ -11142,9 +11149,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11142
11149
|
"aria-expanded": !!O.value[e.value],
|
|
11143
11150
|
"aria-label": X.value ? e.label : void 0,
|
|
11144
11151
|
title: X.value ? void 0 : e.label,
|
|
11145
|
-
onKeydown:
|
|
11152
|
+
onKeydown: re((t) => te(t, e.value), ["tab"])
|
|
11146
11153
|
}), {
|
|
11147
|
-
default:
|
|
11154
|
+
default: q(() => [e.icon ? (D(), i(Q, {
|
|
11148
11155
|
key: 0,
|
|
11149
11156
|
name: e.icon,
|
|
11150
11157
|
class: "pv-nav-icon"
|
|
@@ -11159,12 +11166,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11159
11166
|
"title",
|
|
11160
11167
|
"onKeydown"
|
|
11161
11168
|
]))]),
|
|
11162
|
-
content:
|
|
11169
|
+
content: q(() => [s("div", {
|
|
11163
11170
|
ref_for: !0,
|
|
11164
|
-
ref: (t) =>
|
|
11171
|
+
ref: (t) => W(L(P), e.value, t),
|
|
11165
11172
|
class: "pv-sidebar-hover-panel",
|
|
11166
|
-
onClick: (t) =>
|
|
11167
|
-
onKeydown: (t) =>
|
|
11173
|
+
onClick: (t) => J(t, e.value),
|
|
11174
|
+
onKeydown: (t) => ie(t, e.value)
|
|
11168
11175
|
}, [j(n.$slots, e.hoverPanelSlot)], 40, Cp)]),
|
|
11169
11176
|
_: 2
|
|
11170
11177
|
}, 1032, [
|
|
@@ -11184,7 +11191,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11184
11191
|
disabled: !X.value,
|
|
11185
11192
|
"css-custom-properties": { width: "100%" }
|
|
11186
11193
|
}, {
|
|
11187
|
-
trigger:
|
|
11194
|
+
trigger: q(() => [s("a", _({
|
|
11188
11195
|
class: "pv-nav-list-item",
|
|
11189
11196
|
href: e.url
|
|
11190
11197
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
@@ -11195,7 +11202,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11195
11202
|
name: e.icon,
|
|
11196
11203
|
class: "pv-nav-icon"
|
|
11197
11204
|
}, null, 8, ["name"])) : a("", !0), s("span", Tp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Ep, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, wp)]),
|
|
11198
|
-
content:
|
|
11205
|
+
content: q(() => [s("div", Dp, [s("ul", Op, [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", jp, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Ap)], 8, kp)])])]),
|
|
11199
11206
|
_: 2
|
|
11200
11207
|
}, 1032, [
|
|
11201
11208
|
"use-teleport",
|
|
@@ -11212,15 +11219,15 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11212
11219
|
disabled: !X.value,
|
|
11213
11220
|
"css-custom-properties": { width: "100%" }
|
|
11214
11221
|
}, {
|
|
11215
|
-
trigger:
|
|
11216
|
-
modelValue:
|
|
11217
|
-
"onUpdate:modelValue": (t) =>
|
|
11218
|
-
"default-open":
|
|
11222
|
+
trigger: q(() => [u(ai, {
|
|
11223
|
+
modelValue: ce.value[e.value],
|
|
11224
|
+
"onUpdate:modelValue": (t) => ce.value[e.value] = t,
|
|
11225
|
+
"default-open": oe(e),
|
|
11219
11226
|
"summary-attrs": { "aria-current": ge(e.children) && X.value ? "page" : void 0 },
|
|
11220
11227
|
"enable-trigger-slot": "",
|
|
11221
11228
|
"enable-trigger-full-width": ""
|
|
11222
11229
|
}, {
|
|
11223
|
-
trigger:
|
|
11230
|
+
trigger: q(() => [s("div", {
|
|
11224
11231
|
class: "pv-flex",
|
|
11225
11232
|
onClick: (t) => e.children.length === 1 && _e(t, e.children[0]),
|
|
11226
11233
|
onAuxclick: (t) => e.children.length === 1 && _e(t, e.children[0])
|
|
@@ -11229,7 +11236,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11229
11236
|
name: e.icon,
|
|
11230
11237
|
class: "pv-nav-icon"
|
|
11231
11238
|
}, null, 8, ["name"])) : a("", !0), s("span", Np, I(e.label), 1)], 40, Mp)]),
|
|
11232
|
-
default:
|
|
11239
|
+
default: q(() => [s("div", Pp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("a", _({
|
|
11233
11240
|
key: e.value,
|
|
11234
11241
|
href: e.url
|
|
11235
11242
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
@@ -11243,7 +11250,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11243
11250
|
"default-open",
|
|
11244
11251
|
"summary-attrs"
|
|
11245
11252
|
])]),
|
|
11246
|
-
content:
|
|
11253
|
+
content: q(() => [s("div", Rp, [s("ul", zp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("li", {
|
|
11247
11254
|
key: e.value,
|
|
11248
11255
|
"data-active": e.active || void 0
|
|
11249
11256
|
}, [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", Hp, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Vp)], 8, Bp))), 128))])])]),
|
|
@@ -11266,7 +11273,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11266
11273
|
offset: 4,
|
|
11267
11274
|
"css-custom-properties": { width: "100%" }
|
|
11268
11275
|
}, {
|
|
11269
|
-
trigger:
|
|
11276
|
+
trigger: q(() => [s("button", {
|
|
11270
11277
|
type: "button",
|
|
11271
11278
|
class: "pv-nav-list-item",
|
|
11272
11279
|
"aria-label": "Help",
|
|
@@ -11276,7 +11283,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11276
11283
|
name: "help-circle",
|
|
11277
11284
|
class: "pv-icon-20 pv-nav-icon"
|
|
11278
11285
|
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, Wp)]),
|
|
11279
|
-
content:
|
|
11286
|
+
content: q(() => [s("div", Gp, [j(n.$slots, "sidebar-help-content")])]),
|
|
11280
11287
|
_: 3
|
|
11281
11288
|
}, 8, [
|
|
11282
11289
|
"modelValue",
|
|
@@ -11297,7 +11304,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11297
11304
|
offset: 4,
|
|
11298
11305
|
"css-custom-properties": { width: "100%" }
|
|
11299
11306
|
}, {
|
|
11300
|
-
trigger:
|
|
11307
|
+
trigger: q(() => [s("button", {
|
|
11301
11308
|
type: "button",
|
|
11302
11309
|
class: "pv-nav-list-item",
|
|
11303
11310
|
"data-testid": "pv-sidebar-profile-trigger",
|
|
@@ -11309,7 +11316,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11309
11316
|
src: e.profile.avatarUrl,
|
|
11310
11317
|
alt: ""
|
|
11311
11318
|
}, null, 8, Jp)) : (D(), o("span", Yp, I(e.profile.name.slice(0, 1)), 1))]), s("span", Xp, I(e.profile.name), 1)], 8, Kp)]),
|
|
11312
|
-
content:
|
|
11319
|
+
content: q(() => [s("div", Zp, [j(n.$slots, "sidebar-profile-content")])]),
|
|
11313
11320
|
_: 3
|
|
11314
11321
|
}, 8, [
|
|
11315
11322
|
"modelValue",
|